:root {
    --primary-color: #4a90e2;   
    --accent-color: #d06a3a;     
    --dark-color: #3d3533;       
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --border-color: #e2e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    background-color: var(--white);
}
[id] {
    scroll-margin-top: 90px !important; 
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: #357abd;
    border-color: #357abd;
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--white);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background-color: #b8572a;
    border-color: #b8572a;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--dark-color);
    color: var(--dark-color);
}

.btn-outline:hover {
    background-color: var(--dark-color);
    color: var(--white);
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
}

.site-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}
/* Десктопные контакты */
.header-contacts {
    display: flex;
    align-items: center;
    gap: 20px;
}
.logo img {
    height: 70px;
    width: auto;
}

/* --- Элегантное подчёркивание меню при наведении --- */
.main-nav a {
    color: var(--dark-color);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 8px 0;
    display: inline-block;
}
/* Создаем скрытую линию под ссылкой */
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease, left 0.3s ease;
}
/* Плавное разворачивание линии из центра */
.main-nav a:hover::after {
    width: 100%;
    left: 0;
}
.main-nav a:hover {    
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.phone-link {
    font-weight: 700;
    color: var(--dark-color);
    text-decoration: none;
    margin-right: 20px;
    font-size: 16px;
}

/* Главный экран */
.hero-block {
    position: relative;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 60px 0;
    overflow: hidden;
    background: transparent; 
}

.hero-bg-layer {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('images/industrial-bg2.jpg');
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -1;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.6) 100%);
    z-index: 1;
}
/* Контент и карточки приподнимаются выше */
.hero-wrap {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}


.hero-info h1 {
    font-size: 44px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--white);
    font-weight: 700;
}

.hero-info p {
    font-size: 16px;
    margin-bottom: 35px;
    color: #e2e8f0;
}

.hero-actions .btn {
    margin-right: 15px;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feat-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 8px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
/* Эффект  приподнимания карточки и легкого свечения */
.feat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--primary-color);
}
.feat-card p {
    font-size: 14px;
    color: #475569;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}
/* Выделенная подложка для иконки */
.feat-badge {
    background-color: rgba(74, 144, 226, 0.1);
    color: var(--primary-color);
    width: 52px;
    height: 52px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.feat-card:hover .feat-badge {
    background-color: var(--primary-color);
    color: var(--white);
}
.feat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.feat-num {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-color); 
    line-height: 1;
}

/* Блок "О компании"  */
.about-block {
    position: relative;
    z-index: 3;
    background-color: #f8fafc; 
    
    /* геометрическая сетка CSS */
    background-image: 
        linear-gradient(to right, rgba(74, 144, 226, 0.2) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(74, 144, 226, 0.1) 1px, transparent 1px);
    background-size: 40px 40px; /* Размер ячейки сетки */
    
    padding: 100px 0;
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}
.about-pattern-overlay {
    position: absolute;
    top: -10%,
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.05) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
    z-index: 1;
}
.about-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    position: relative;
    padding-left: 25px;
}
.text-accent-line {
    position: absolute;
    left: 0;
    top: 5px;
    width: 4px;
    height: calc(100% - 10px);
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.about-text p {
    font-size: 16px;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 20px;
}
.about-text p:last-child {
    margin-bottom: 0;
}


.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.stat-box {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 40px 30px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    position: relative;
}

.stat-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px rgba(74, 144, 226, 0.08);
    border-color: rgba(74, 144, 226, 0.3);
}

/* Иконки внутри плашек статистики */
.stat-icon-wrapper {
    width: 44px;
    height: 44px;
    background-color: var(--light-bg);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    transition: background-color 0.3s, color 0.3s;
}

.stat-box:hover .stat-icon-wrapper {
    background-color: var(--primary-color);
    color: #ffffff;
}

.stat-box h3 {
    font-size: 40px;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -1px;
}
.stat-box:first-child:hover h3 {
    color: var(--primary-color);
}
.stat-box:last-child:hover h3 {
    color: var(--accent-color);
}

.stat-box p {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    margin: 0;
}

.courses-block {
    background-color: #0f172a; 
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    padding: 100px 0;
}
.courses-block .section-title {
    color: var(--white);
}
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.course-card {
    background-color: #1e293b; 
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease, background-color 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05); 
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.course-card:hover {
    transform: translateY(-8px);
    background-color: #1e293b;
    box-shape: 0 20px 40px rgba(74, 144, 226, 0.15);
    border-color: rgba(74, 144, 226, 0.4);
}

/* Декоративная иконка внутри темной карточки */
.course-icon {
    width: 56px;
    height: 56px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}
.course-card:hover .course-icon {
    background-color: var(--accent-color);
    color: var(--white);
    transform: scale(1.05);
}

/* Текст внутри карточек */
.course-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.3;
}

.course-card p {
    font-size: 14px;
    color: #94a3b8; 
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
}

/* Ссылка-кнопка */
.btn-card-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.btn-card-action span {
    transition: transform 0.3s ease;
    display: inline-block;
}

.course-card:hover .btn-card-action {
    color: #60a5fa; /* Облегченный синий для идеальной читаемости на темном */
}

.course-card:hover .btn-card-action span {
    transform: translateX(5px);
}


/* --- Лицензии и документы: Фоновая картинка с оверлеем --- */
.licenses-block {
    position: relative;
    z-index: 3;
    background-image: url('images/licen.jpeg'); 
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 100px 0;
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.05), 0 20px 40px rgba(0, 0, 0, 0.05);
}

/* Оверлей для осветления картинки, чтобы текст не сливался */
.lic-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.6) 10%, rgba(241, 245, 249, 0.8) 100%);
    z-index: 1;
}

/* Выносим весь контент поверх оверлея */
.licenses-container-inner {
    position: relative;
    z-index: 2;
}

.licenses-wrap {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.lic-info-card {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.lic-lead {
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark-color);
    margin-bottom: 30px;
}

.lic-lead strong {
    color: var(--primary-color);
}

/* Список преимуществ */
.lic-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lic-features-list li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.lic-check-icon {
    background-color: rgba(74, 144, 226, 0.1);
    color: var(--primary-color);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.lic-features-list strong {
    display: block;
    font-size: 15px;
    color: var(--dark-color);
    margin-bottom: 4px;
}

.lic-features-list p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.lic-docs-container {
    display: flex;
    justify-content: center;
}

.doc-preview-frame {
    position: relative;
    width: 100%;
    max-width: 360px;
    height: 480px;
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 16px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.doc-preview-frame:hover {
    transform: translateY(-6px) rotate(0.5deg);
    box-shadow: 0 25px 45px rgba(15, 23, 42, 0.18);
}

.doc-inner-border {
    width: 100%;
    height: 100%;
    border: 2px double #94a3b8;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.75);
    position: relative;
    z-index: 2;
}

.doc-watermark-bg {
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background-image: radial-gradient(rgba(74, 144, 226, 0.03) 2px, transparent 0);
    background-size: 16px 16px;
    transform: rotate(15deg);
    z-index: 1;
}

.doc-header-emblem {
    color: #94a3b8;
    margin-bottom: 40px;
}

.doc-title-text {
    font-size: 15px;
    font-weight: 600;
    color: #475569;
    line-height: 1.4;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.doc-sub-text {
    font-size: 12px;
    color: #94a3b8;
    font-family: monospace;
    margin-top: auto;
}

.doc-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 3;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.doc-preview-frame:hover .doc-hover-overlay {
    opacity: 1;
}

.btn-zoom {
    background-color: var(--white);
    color: var(--dark-color);
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.doc-preview-frame:hover .btn-zoom {
    transform: translateY(0);
}

@media (max-width: 992px) {
    .licenses-wrap {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}


/* Форма */
.form-block {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.form-wrap max-width: 800px; {
    margin: 0 auto;
}

.form-block h2 {
    margin-bottom: 15px;
}

.form-block p {
    color: #cbd5e1;
    margin-bottom: 40px;
}

.form-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.form-group input {
    padding: 15px;
    border: none;
    border-radius: 4px;
    width: 280px;
    font-family: inherit;
    font-size: 15px;
}

.privacy-label {
    font-size: 12px;
    color: #94a3b8;
    display: block;
    margin-top: 20px;
}

/* Футер */
.site-footer {
    background-color: #2b2524;
    color: #94a3b8;
    padding: 30px 0;
    font-size: 14px;
    border-top: 1px solid #3d3533;
}

.footer-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-block {
        padding: 70px 0;
    }
    .hero-bg-layer {
        position: absolute; 
        top: 0;
        height: 100%;
    }
    .header-wrap {
        flex-direction: column;
        gap: 15px;
    }
    .hero-info h1 {
        font-size: 32px;
    }
    .hero-block {
        min-height: auto;
    }
    .hero-wrap {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr;
    }
}
/* --- Стилизация блока Контактов --- */
.contacts-block {
    position: relative;
    z-index: 3;
    background-color: #f8fafc;
    padding: 100px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.contacts-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
    align-items: stretch; /* Растягивает карту и инфо-блок на одинаковую высоту */
}

/* Карточка с контактными данными */
.contacts-info {
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
}

/* Строка контакта (иконка + текст) */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background-color: rgba(74, 144, 226, 0.08); /* Светло-синий фон под иконку */
    color: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 13px;
    text-transform: uppercase;
    color: #64748b; /* Спокойный серый для подзаголовков */
    margin-bottom: 4px;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.contact-text p {
    font-size: 16px;
    color: var(--dark-color);
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
}

/* Интерактивные ссылки телефона и почты */
.contact-link {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-color);
}

.weekend-badge {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 400;
}

/* --- Контейнер интерактивной карты --- */
.contacts-map {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-height: 400px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    background-color: #cbd5e1;
}

/* Обеспечиваем бесшовное встраивание Яндекс скрипта */
.contacts-map ymaps {
    border-radius: 12px;
    overflow: hidden;
}

.map-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    z-index: 1;
}

/* Адаптивный дизайн для планшетов и мобильных телефонов */
@media (max-width: 992px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .contacts-block {
        padding: 70px 0;
    }
    .contacts-info {
        padding: 30px;
    }
    .contacts-map {
        min-height: 350px;
    }
}
/* Кнопка-моб (изначально скрыта на ПК) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 110;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--dark-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* --------------------------------------------------------------------------
   Адаптив для мобильных устройств (Экран меньше 992px)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .header-wrap {
        padding: 12px 20px;
    }

    /* моб кнопка */
    .menu-toggle {
        display: flex;
    }

    .phone-link {
        font-size: 15px;
    }

    /* Превращаем навигацию в скрытую выпадающую панель */
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
        padding: 20px;
        flex-direction: column;
        gap: 10px;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 105;
        border-top: 1px solid var(--border-color);
    }

    /* Класс открытия меню (активируется через JS) */
    .main-nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .main-nav a {
        margin: 0;
        width: 100%;
        text-align: center;
        padding: 12px 0;
        font-size: 16px;
    }
    
    .main-nav a::after {
        display: none; 
    }

    /* Анимация кнопки в крестик */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}