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

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    background-color: #111111;
    color: #E0E0E0;
}

body {
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* СТИЛИЗАЦИЯ ЗАГОЛОВКОВ И СЕКЦИЙ */
.section {
    padding: 100px 0;
    border-bottom: 1px solid #222222;
}

.section-header {
    margin-bottom: 50px;
    max-width: 700px;
}

.section-header.center {
    margin: 0 auto 60px auto;
    text-align: center;
}

.section-subtitle {
    display: inline-block;
    color: #FF6B00;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.2;
}

.section-intro {
    font-size: 18px;
    color: #A0A0A0;
    margin-top: 15px;
}

/* КНОПКИ */
.btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: #FF6B00;
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: #E55B00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

.btn-secondary {
    background-color: #222222;
    color: #FFFFFF;
    border: 1px solid #333333;
}

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

.btn-block {
    display: block;
    width: 100%;
}

/* ШАПКА САЙТА */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #222222;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-zone {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background-color: #FF6B00;
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 20px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 1px;
    line-height: 1.1;
}

.logo-subtitle {
    font-size: 9px;
    color: #777777;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 2px;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #A0A0A0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #FF6B00;
}

.header-contacts {
    text-align: right;
    display: flex;
    flex-direction: column;
}

.header-phone {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
}

.header-worktime {
    font-size: 11px;
    color: #777777;
}

/* ГЛАВНЫЙ ЭКРАН */
.hero {
    position: relative;
    padding: 200px 0 140px 0;
    background: linear-gradient(135deg, #161616 0%, #090909 100%);
    border-bottom: 1px solid #222222;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(#FF6B00 0.5px, transparent 0.5px);
    background-size: 24px 24px;
    opacity: 0.05;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(255, 107, 0, 0.1);
    border: 1px solid rgba(255, 107, 0, 0.2);
    color: #FF6B00;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 3px;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.15;
    margin-bottom: 25px;
}

.hero-desc {
    font-size: 18px;
    color: #A0A0A0;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 750px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* СЕКЦИЯ О КОМПАНИИ И КАТАЛОГ */
.about-section {
    background-color: #141414;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.about-lead {
    font-size: 18px;
    color: #FFFFFF;
    margin-bottom: 15px;
    line-height: 1.6;
}

.about-text-block p {
    color: #A0A0A0;
    margin-bottom: 15px;
}

.about-partners {
    background-color: #1A1A1A;
    border: 1px solid #252525;
    padding: 30px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.partners-title {
    font-size: 14px;
    color: #777777;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.partners-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    background-color: #222222;
    border: 1px solid #333333;
    color: #FFFFFF;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
}

/* КАТАЛОЖНЫЙ БЛОК */
.catalog-box {
    border-top: 1px solid #252525;
    padding-top: 50px;
}

.catalog-title {
    font-size: 22px;
    color: #FFFFFF;
    font-weight: 700;
    margin-bottom: 30px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.catalog-card {
    background-color: #1A1A1A;
    border: 1px solid #252525;
    padding: 25px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.catalog-card:hover {
    border-color: #FF6B00;
    transform: translateY(-3px);
}

.card-icon {
    font-size: 28px;
    margin-bottom: 15px;
}

.catalog-card h4 {
    font-size: 16px;
    color: #FFFFFF;
    font-weight: 700;
    margin-bottom: 10px;
}

.catalog-card p {
    font-size: 13px;
    color: #888888;
    line-height: 1.5;
}

/* КОММЕРЧЕСКОЕ ПРЕДЛОЖЕНИЕ */
.kp-section {
    background-color: #111111;
}

.kp-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.kp-text {
    font-size: 16px;
    color: #A0A0A0;
    margin-bottom: 30px;
}

.kp-download-box {
    margin-top: 20px;
}

.btn-download {
    padding: 15px 30px;
    font-size: 14px;
}

.kp-form-block {
    background-color: #1A1A1A;
    border: 1px solid #252525;
    padding: 40px;
    border-radius: 6px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.form-title {
    font-size: 20px;
    color: #FFFFFF;
    font-weight: 700;
    margin-bottom: 25px;
    border-left: 3px solid #FF6B00;
    padding-left: 12px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #888888;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.form-group input, .form-group textarea {
    width: 100%;
    background-color: #111111;
    border: 1px solid #333333;
    padding: 12px 15px;
    color: #FFFFFF;
    font-family: inherit;
    font-size: 14px;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #FF6B00;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

/* ПРЕИМУЩЕСТВА */
.benefits-section {
    background-color: #141414;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.benefit-card {
    background-color: #1A1A1A;
    border-top: 3px solid #333333;
    padding: 40px 30px;
    border-radius: 0 0 4px 4px;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    border-top-color: #FF6B00;
    background-color: #1D1D1D;
}

.benefit-num {
    font-size: 14px;
    font-weight: 700;
    color: #FF6B00;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.benefit-card h4 {
    font-size: 18px;
    color: #FFFFFF;
    font-weight: 700;
    margin-bottom: 12px;
}

.benefit-card p {
    font-size: 14px;
    color: #888888;
    line-height: 1.6;
}

/* КОМАНДА */
.team-section {
    background-color: #111111;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-card {
    background-color: #1A1A1A;
    border: 1px solid #252525;
    border-radius: 4px;
    overflow: hidden;
}

.team-img-stub {
    width: 100%;
    height: 200px;
    background-color: #222222;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444444;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid #252525;
}

.team-info {
    padding: 25px;
}

.team-info h4 {
    font-size: 18px;
    color: #FFFFFF;
    font-weight: 700;
}

.team-role {
    display: block;
    font-size: 12px;
    color: #FF6B00;
    font-weight: 600;
    margin-bottom: 15px;
}

.team-bio {
    font-size: 13px;
    color: #888888;
    line-height: 1.5;
}

/* КОНТАКТЫ */
.contacts-section {
    background-color: #141414;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-item {
    margin-bottom: 25px;
}

.contact-label {
    display: block;
    font-size: 12px;
    color: #666666;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-value {
    font-size: 16px;
    color: #FFFFFF;
    text-decoration: none;
}

.contact-value.font-highlight {
    font-size: 24px;
    font-weight: 800;
    color: #FF6B00;
}

.requisites-box {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #252525;
}

.requisites-box h5 {
    font-size: 14px;
    color: #FFFFFF;
    font-weight: 700;
    margin-bottom: 8px;
}

.requisites-box p {
    font-size: 13px;
    color: #777777;
    line-height: 1.6;
}

/* РОДИТЕЛЬСКИЙ КОНТЕНЕР ДЛЯ КАРТЫ */
.contacts-map-block {
    width: 100%;
    height: 100%;
    min-height: 450px; /* Увеличили высоту для лучшей наглядности */
}

/* КОНТЕЙНЕР КАРТЫ (Убрали flex-центрирование) */
.map-stub {
    width: 100%;
    height: 100%;
    background-color: #1A1A1A;
    border: 1px solid #252525;
    border-radius: 4px;
    position: relative;
    overflow: hidden; /* Чтобы углы карты не вылезали за радиус скругления */
}

/* КРИТИЧЕСКОЕ ПРАВИЛО: Растягиваем саму карту на весь блок */
.map-stub ymaps, 
.map-stub iframe, 
.map-stub > div {
    width: 100% !important;
    height: 100% !important;
    position: absolute;
    top: 0;
    left: 0;
}

.map-stub-content span {
    display: block;
    font-size: 16px;
    color: #FFFFFF;
    font-weight: 600;
    margin-bottom: 8px;
}

.map-stub-content p {
    font-size: 13px;
    color: #666666;
}

/* ПОДВАЛ */
.footer {
    background-color: #0F0F0F;
    padding: 40px 0;
    border-top: 1px solid #1A1A1A;
    font-size: 13px;
    color: #555555;
}

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

.footer-note {
    max-width: 450px;
    text-align: right;
}

/* АДАПТИВНОСТЬ */
@media (max-width: 992px) {
    .nav { display: none; } /* Для простоты в базовом шаблоне */
    .hero-title { font-size: 36px; }
    .about-grid, .kp-wrapper, .contacts-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-note { text-align: center; }
    .section { padding: 60px 0; }
}

.sidebar-card {
    background-color: #1A1A1A;
    border: 1px solid #252525;
    border-left: 4px solid #FF6B00;
    padding: 30px;
    border-radius: 0 6px 6px 0;
}

.sidebar-card h4 {
    font-size: 20px;
    color: #FFFFFF;
    font-weight: 700;
    margin-bottom: 15px;
}

.sidebar-card p {
    font-size: 14px;
    color: #888888;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Адаптивность для планшетов и мобильных телефонов */
@media (max-width: 992px) {
    .calculator-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .calculator-sidebar {
        position: static;
    }
    
    .sidebar-card {
        border-left: none;
        border-top: 4px solid #FF6B00;
        border-radius: 0 0 6px 6px;
    }
}

/* Сохраняем исходный цвет текста логотипы и убираем подчеркивание */
.logo-text-link {
    color: inherit !important;
}
.logo-text-link:hover {
    opacity: 0.9; /* Небольшой визуальный отклик при наведении */
}

/* СЖАТИЕ ШРИФТА ТЕЛЕФОНА НА МОБИЛЬНЫХ ЭКРАНАХ */
@media (max-width: 768px) {
    .adaptive-phone {
        font-size: 1.05rem !important; /* Уменьшаем размер, чтобы номер гарантированно поместился */
        letter-spacing: -0.3px !important; /* Слегка уплотняем цифры между собой */
        white-space: nowrap !important; /* Запрещаем перенос номера на вторую строчку */
    }
}

@media (max-width: 480px) {
    .adaptive-phone {
        font-size: 0.95rem !important; /* Дополнительное уменьшение для самых узких экранов */
    }
}
/* ТОЧЕЧНОЕ ИСПРАВЛЕНИЕ ЛЮФТА С ВОЗВРАТОМ МОБИЛЬНОГО МЕНЮ */

/* 1. Блокируем несанкционированные сдвиги всей страницы вбок */
html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* 2. Адаптация шапки и возврат меню для экранов меньше 992px (смартфоны и планшеты) */
@media (max-width: 992px) {
    /* Разрешаем элементам шапки выстраиваться вертикально, увеличиваем высоту */
    .header-container {
        height: auto !important;
        padding: 12px 0 !important;
        flex-direction: column !important;
        justify-content: center !important;
        gap: 12px !important;
    }

    /* Выравниваем логотип по центру */
    .logo-zone {
        justify-content: center !important;
        width: 100% !important;
    }

    /* Возвращаем меню на экраны! Переопределяем старое правило display: none */
    .mobile-scroll-nav {
        display: flex !important; 
        gap: 15px !important; /* Делаем отступы между ссылками чуть компактнее */
        width: 100% !important;
        justify-content: center !important;
        overflow-x: auto !important; /* Если ссылки не влезают, они плавно листаются пальцем влево-вправо */
        white-space: nowrap !important; /* Запрещаем ссылкам переноситься на вторую строчку */
        padding: 5px 10px !important;
        
        /* Скрываем некрасивую полосу прокрутки в браузере, оставляя сам скролл рабочим */
        -webkit-overflow-scrolling: touch;
    }
    .mobile-scroll-nav::-webkit-scrollbar {
        display: none;
    }

    /* Делаем ссылки в меню чуть крупнее для удобного нажатия пальцем */
    .mobile-scroll-nav .nav-link {
        font-size: 13px !important;
        padding: 4px 6px !important;
    }

    /* Центрируем блок с телефоном в самом низу шапки */
    .header-contacts {
        text-align: center !important;
        align-items: center !important;
        width: 100% !important;
    }
}

/* Дополнительное микро-сжатие шрифтов для самых маленьких экранов (до 480px) */
@media (max-width: 480px) {
    .logo-title {
        font-size: 17px !important;
    }
    .logo-subtitle {
        font-size: 8px !important;
    }
    .adaptive-phone {
        font-size: 1rem !important;
    }
}

/* СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА ПОЛИТИКИ 152-ФЗ */
.policy-modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 1100; /* Выше фиксированной шапки */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 17, 17, 0.85); /* Затемненный фон */
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.policy-content {
    background-color: #1A1A1A; /* В цвет блоков сайта */
    color: #E0E0E0;
    max-width: 650px;
    width: 100%;
    max-height: 80vh;
    border-radius: 6px;
    border: 1px solid #252525;
    border-top: 4px solid #FF6B00; /* Ваш фирменный оранжевый акцент */
    padding: 30px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
}

.policy-content h2 {
    color: #FFFFFF;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 700;
}

.policy-scroll-text {
    overflow-y: auto; /* Включает прокрутку текста */
    padding-right: 10px;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}

.policy-scroll-text p {
    margin-bottom: 15px;
    color: #A0A0A0;
}

.policy-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #777777;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.policy-close:hover {
    color: #FF6B00;
}

/* Красивый скроллбар для текста политики */
.policy-scroll-text::-webkit-scrollbar {
    width: 4px;
}
.policy-scroll-text::-webkit-scrollbar-track {
    background: #111111;
}
.policy-scroll-text::-webkit-scrollbar-thumb {
    background: #FF6B00;
    border-radius: 2px;
}
