/* ========== БАЗОВЫЕ СТИЛИ ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #14261C;
    background-color: #F4F6F4;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Heebo', sans-serif;
    font-weight: 500;
    line-height: 1.2;
    color: #14261C;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== УТИЛИТЫ ========== */
.text-center { text-align: center; }
.text-white { color: #ffffff; }
.text-dark { color: #14261C; }
.text-red { color: #e20000; }
.text-gray { color: #4E5652; }

.bg-white { background-color: #ffffff; }
.bg-dark { background-color: #14261C; }
.bg-light { background-color: #F4F6F4; }
.bg-red { background-color: #e20000; }
.bg-gray { background-color: #f5f5f5; }

/* ========== КНОПКИ ========== */
.btn {
    display: inline-block;
    padding: 14px 22px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border: 2px solid #e20000;
    color: #e20000;
    background: transparent;
    transition: all 0.3s;
    cursor: pointer;
}

.btn:hover {
    background: #e20000;
    color: #ffffff;
}

.btn-xl {
    padding: 16px 40px;
    font-size: 15px;margin-top: 40px;
}

.btn-block {
    display: flex;
    width: 100%;
    justify-content: center;
}

.btn-whatsapp {
    background: #25D366;
    border-color: #25D366;
    color: #ffffff;
}

.btn-whatsapp:hover {
    background: transparent;
    color: #25D366;
}

.btn-telegram {
    background: #0088cc;
    border-color: #0088cc;
    color: #ffffff;
}

.btn-telegram:hover {
    background: transparent;
    color: #0088cc;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-margin-top {
    margin-top: 20px;
}

/* ========== ШАПКА ========== */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: transparent;
    padding: 20px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 60px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 24px;
}

.main-nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: #e20000;
}

.phone-header {
    color: #ffffff;
}

.phone-header p {
    font-size: 14px;
    margin-bottom: 5px;
}

.phone-header a {
    color: #e20000;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
}

/* ========== HERO СЕКЦИЯ ========== */
.hero-section {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(20, 38, 28, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 14px;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
}

.hero-title {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero-text {
    font-size: 18px;
    max-width: 600px;
    margin-bottom: 30px;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
}

.hero-phone {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.hero-phone .icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e20000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.hero-phone a {
    color: #ffffff;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    transition: color 0.3s;
}

.hero-phone a:hover {
    color: #e20000;
}

/* ========== СЕКЦИИ ========== */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 500;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 18px;
    color: #4E5652;
    margin-bottom: 40px;
}

/* ========== СЕТКИ ========== */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* ========== КАРТОЧКИ ========== */
.service-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #14261C;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.service-card li:before {
    content: "✓";
    color: #e20000;
    position: absolute;
    left: 0;
}

.service-card-transparent {
    background: transparent;
    text-align: center;
    color: #ffffff;
    box-shadow: none;
    padding: 20px;
}

.service-card-transparent h3 {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 10px;
}

.service-card-transparent p {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

/* ========== СЧЁТЧИКИ ========== */
.counter-item {
    text-align: center;
}

.counter-number {
    font-size: 48px;
    font-weight: 700;
    color: #e20000;
    line-height: 1;
}

.counter-label {
    color: #4E5652;
    margin-top: 10px;
}

.counter-grid {
    margin-top: 20px;
}

/* ========== ШАГИ ========== */
.step-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.step-icon {
    width: 64px;
    height: 64px;
    background: #e20000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
    flex-shrink: 0;
}

.step-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.step-item p {
    color: #4E5652;
    margin-bottom: 0;
}

/* ========== БЛОК ОПЫТА ========== */
.experience-block {
    background: linear-gradient(135deg, #14261C 0%, #1e3527 100%);
    color: #ffffff;
    padding: 50px;
    border-radius: 16px;
    margin-bottom: 60px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.experience-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.experience-title {
    flex: 1;
    min-width: 250px;
}

.experience-title h3 {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #ffffff;
}

.experience-divider {
    width: 80px;
    height: 4px;
    background: #e20000;
    margin: 20px 0;
}

.experience-text {
    flex: 2;
}

.experience-text p {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255,255,255,0.95);
}

.experience-text strong {
    color: #e20000;
}

/* ========== БЛОК О КОМПАНИИ ========== */
.about-right-block {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
}

.about-right-block h3 {
    font-size: 32px;
    margin-bottom: 20px;
}

.about-divider {
    width: 60px;
    height: 3px;
    background: #e20000;
    margin: 20px 0;
}

.stats-with-year {
    margin-bottom: 30px;
}

.stats-year {
    font-size: 48px;
    font-weight: 700;
    color: #e20000;
    line-height: 1;
}

.stats-year-label {
    color: #4E5652;
    font-size: 16px;
}

.region-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.region-info p {
    color: #4E5652;
    margin-bottom: 10px;
}

.region-info i {
    color: #e20000;
    margin-right: 8px;
}


/* ========== БЛОК ОБУЧЕНИЯ ========== */
.training-right-block {
    text-align: center;
}

.training-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.training-icon-large {
    font-size: 80px;
    color: #e20000;
    margin-bottom: 30px;
}

.training-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.training-feature-item {
    text-align: center;
}

.training-feature-number {
    font-size: 36px;
    font-weight: 700;
    color: #14261C;
}

.training-feature-label {
    color: #4E5652;
}

.training-list {
    list-style: none;
    margin-top: 30px;
    text-align: left;
}

.training-list li {
    margin-bottom: 15px;
}

.training-list i {
    color: #e20000;
    margin-right: 10px;
}

.quote-block {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin: 30px 0;
}

.quote-text {
    font-size: 18px;
    font-style: italic;
    color: #e20000;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.training-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* ========== ТЕСТЫ ========== */
.tests-section {
    background: linear-gradient(rgba(20, 38, 28, 0.95), rgba(20, 38, 28, 0.95)), url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOTIwIiBoZWlnaHQ9IjEwODAiPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9IiMxNDI2MUMiLz48cGF0aCBkPSJNMCAwaDE5MjB2MTA4MEgweiIgZmlsbD0ibm9uZSIvPjwvc3ZnPg==');
    background-size: cover;
    color: #ffffff;
    position: relative;
}

.tests-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(20, 38, 28, 0.8);
}

.tests-content {
    position: relative;
    z-index: 2;
}

.tests-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.tests-header h6 {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.9);
}

.tests-header h2 {
    color: #ffffff;
}

.test-icon {
    margin-bottom: 20px;
}

.tests-grid {
    margin-bottom: 30px;
}

/* ========== КОНТАКТНАЯ СЕКЦИЯ ========== */
.contact-section {
    background: #14261C;
    color: #ffffff;
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-right-block {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    color: #14261C;
}

.contact-right-block h3 {
    font-size: 28px;
    margin-bottom: 20px;
    font-family: 'Heebo', sans-serif;
}

.about-divider {
    width: 60px;
    height: 3px;
    background: #e20000;
    margin: 20px 0;
}

.contact-info p {
    margin-bottom: 15px;
}

.contact-info i {
    color: #e20000;
    width: 25px;
    margin-right: 10px;
}

.contact-info a {
    color: #14261C;
    text-decoration: none;
    border-bottom: 1px dashed #e20000;
}

.contact-info a:hover {
    color: #e20000;
}

.phone-large {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.phone-large small {
    font-size: 14px;
    color: #4E5652;
    margin-bottom: 5px;
    display: block;
}

.phone-large a {
    font-size: 32px;
    font-weight: 700;
    color: #14261C;
    text-decoration: none;
    letter-spacing: 1px;
}

.contact-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.contact-btn {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
}

.contact-btn.call {
    background: #e20000;
    border-color: #e20000;
    color: #ffffff;
}

.contact-btn.call:hover {
    background: transparent;
    color: #e20000;
}

.contact-btn.whatsapp {
    background: #25D366;
    border-color: #25D366;
    color: #ffffff;
}

.contact-btn.whatsapp:hover {
    background: transparent;
    color: #25D366;
}

.contact-btn.telegram {
    background: #0088cc;
    border-color: #0088cc;
    color: #ffffff;
}

.contact-btn.telegram:hover {
    background: transparent;
    color: #0088cc;
}

.working-hours {
    margin-top: 30px;
    font-size: 14px;
    color: #4E5652;
    text-align: center;
}

.working-hours i {
    color: #e20000;
    margin-right: 5px;
}

/* ========== ФУТЕР ========== */
.footer {
    background: #14261C;
    color: #fff;
    padding: 0 0 20px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #4E5652;
    margin-top: 40px;
}

.copyright {
    color: #ffffff;
    font-size: 14px;
}

.developer {
    color: #ffffff;
    font-size: 14px;
}

.developer a {
    color: #e20000;
    text-decoration: none;
    border-bottom: 1px solid #e20000;
}

.developer a:hover {
    border-bottom: 2px solid #e20000;
}
/* ========== ЧАТ-ВИДЖЕТ ========== */
.chaty-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 100;
}

.chaty-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #e20000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    cursor: pointer;
    margin-bottom: 10px;
    transition: transform 0.3s;
    text-decoration: none;
}

.chaty-btn:hover {
    transform: scale(1.1);
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
    }
    
    .main-nav {
        display: none;
        width: 100%;
        margin-top: 20px;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .grid-2,
    .grid-3,
    .grid-4,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .experience-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .experience-divider {
        margin: 20px auto;
    }
    
    .contact-buttons {
        flex-direction: column;
    }
    
    .contact-btn {
        width: 100%;
    }
    
    .training-buttons {
        flex-direction: column;
    }
}

/* ========== ИСПРАВЛЕНИЕ ДЛЯ МОБИЛЬНОГО МЕНЮ ========== */
@media (max-width: 768px) {
    /* Увеличиваем отступ сверху для hero-секции, чтобы она не наезжала на шапку */
    .hero-section {
        padding-top: 100px; /* Добавляем отступ сверху */
        min-height: calc(100vh - 20px); /* Немного уменьшаем высоту */
    }
    
    /* Фиксируем шапку при открытом меню */
    .site-header {
        position: fixed;
        background: rgba(20, 38, 28, 0.95); /* Добавляем фон при фиксации */
        backdrop-filter: blur(5px); /* Эффект размытия */
        padding: 10px 0;
        z-index: 1000;
    }
    
    /* Стили для открытого меню */
    .main-nav.active {
        display: block;
        position: fixed;
        top: 80px; /* Отступ от шапки */
        left: 0;
        right: 0;
        background: #14261C;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
        z-index: 999;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    /* Затемнение фона при открытом меню */
    body.menu-open {
        overflow: hidden;
    }
    
    body.menu-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 998;
        pointer-events: none;
    }
    
    /* Отступ для hero-контента */
    .hero-content {
        padding-top: 20px;
    }
    
    /* Уменьшаем размер заголовка на мобильных */
    .hero-title {
        font-size: 36px !important;
    }
    
    .hero-text {
        font-size: 16px;
    }
    
    .hero-phone a {
        font-size: 20px;
    }
    
    /* Корректировка для страницы СМИ */
    .page-header {
        padding-top: 120px; /* Увеличиваем отступ сверху */
    }
}