/* 1. БАЗОВЫЕ НАСТРОЙКИ */
:root {
    --primary-red: #B6003D;
    --accent-blue: #070041;
    --accent-yellow: #FDB90B;
    --text-dark: #2d2d2d;
    --text-gray: #7a7a7a;
    --bg-light: #f4f4f4;
    --white: #ffffff;
    --radius: 40px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 0;
    padding-top: 82px;
}

/* Якорные ссылки: блок не прячется под фиксированной шапкой */
section[id],
footer[id] {
    scroll-margin-top: 82px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 2. ШАПКА САЙТА */
.site-header {
    background-color: var(--white);
    padding: 16px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.site-header .container {
    position: relative;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
}

.logo img {
    height: 44px;
    width: auto;
}

/* Навигация */
.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    margin: 0 20px;
    font-size: 15px;
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.header-phone {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-blue);
    text-decoration: none !important;
    white-space: nowrap;
    letter-spacing: 0.02em;
    -webkit-tap-highlight-color: transparent;
}

.header-phone:link,
.header-phone:visited {
    color: var(--accent-blue);
    text-decoration: none !important;
}

.site-header .header-phone:hover {
    color: var(--primary-red);
}

/* Кнопка Продукция */
.btn-products {
    background: #1a1a1a;
    color: white;
    text-decoration: none;
    padding: 12px 26px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-callback {
    background: var(--primary-red);
    color: #fff;
    border: none;
    padding: 12px 26px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.btn-callback:hover {
    opacity: 0.85;
}

/* Кнопка «гамбургер» (моб. / планшет) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 10px;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover {
    background: rgba(0, 0, 0, 0.04);
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.nav-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.nav-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.site-header.nav-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* 3. ПЕРВЫЙ ЭКРАН (ГРИД) */
.hero-section {
    padding: 20px 0 10px;
}
.main-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
}

.info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
}

h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
}

h1 span { color: var(--text-gray); }

.description {
    color: var(--text-gray);
    font-size: 17px;
    max-width: 550px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.btn-main {
    display: inline-block;
    background: var(--primary-red);
    color: white;
    text-decoration: none;
    padding: 22px 50px;
    border-radius: 60px;
    font-weight: 700;
    margin-bottom: 60px;
    width: fit-content;
}

.features {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: auto;
}

.feature-item { display: flex; gap: 10px; }

.arrow {
    background: #f4f4f4;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
    color: var(--primary-red);
}

.image-card {
    background: #d1d1d1;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 280px;
}

.main-img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    display: block;
}

/* 4. ОСТАЛЬНЫЕ БЛОКИ (КРАТКО) */
.advantages, .catalog-section, .cooperation, .order-samples, .download-section {
    padding: 60px 0;
}

.section-title { font-size: 42px; font-weight: 800; margin-bottom: 40px; }

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 35px;
    height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-step .step-content,
.card-stat .step-content {
    margin-top: auto;
}

.card-step,
.card-stat {
    justify-content: flex-start;
}

.card-step .step-num,
.card-stat .stat-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-red);
    line-height: 1;
}

.card-step .step-content,
.card-stat .step-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-step .step-content strong,
.card-stat .step-content p {
    font-weight: 700;
}

.card-img {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}

/* ТЕМНЫЕ БАННЕРЫ */
.coop-banner, .samples-banner, .price-banner {
    background-color: #1a1a1a;
    color: white;
    border-radius: var(--radius);
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    margin-bottom: 20px;
}

.price-form-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.price-form-container h2 {
    margin: 0;
    line-height: 1.15;
}

.price-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
}

.price-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.price-features .mini-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    font-size: 18px;
    line-height: 1;
    margin-top: 2px;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
}

.lead-form input {
    width: 100%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 18px;
    border-radius: 50px;
    color: white;
    margin: 0;
}

.catalog-mockup {
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-mockup img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.catalog-header .section-title {
    margin-bottom: 0;
}

.catalog-header .btn-main {
    margin-bottom: 0;
    flex-shrink: 0;
}

.product-item h3 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-dark);
}

.product-item h3 span {
    display: block;
    font-weight: 600;
    color: var(--text-gray);
    font-size: 15px;
    margin-top: 6px;
}

/* КАТАЛОГ */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.product-item {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
}

.product-preview {
    background: #f4f4f4;
    border-radius: 25px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
}

.product-preview img {
   width: 100%;
    height: 100%;
    /* Меняем cover на contain, чтобы видеть картинку целиком */
    object-fit: contain; 
    border-radius: 25px;
    /* Добавляем внутренний отступ, чтобы картинка не касалась краев */
    padding: 10px; 
}

/* ФОРМЫ */
.lead-form input {
    width: 100%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 18px;
    border-radius: 50px;
    color: white;
    margin-bottom: 12px;
}

.btn-submit {
    width: 100%;
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 20px;
    border-radius: 50px;
    font-weight: 700;
}

/* ФУТЕР */
.footer {
    padding: 60px 0;
    background: #fff;
    border-top: 1px solid #eee;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-logo img {
    height: 40px;
    width: auto;
    display: block;
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.5;
}

.footer-contacts h3,
.footer-socials h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.footer-contacts p,
.footer-contacts a {
    display: block;
    color: var(--text-gray);
    text-decoration: none !important;
    font-size: 14px;
    margin-bottom: 8px;
    -webkit-tap-highlight-color: rgba(182, 0, 61, 0.15);
}

.footer-contacts a:link,
.footer-contacts a:visited {
    color: var(--text-gray);
}

.footer-contacts a:hover {
    color: var(--primary-red);
}

.social-link {
    display: inline-block;
    background: var(--accent-blue);
    color: #fff;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    margin-right: 6px;
}

.social-link:hover {
    background: var(--primary-red);
}

.footer-bottom a {
    color: var(--text-gray);
    font-size: 13px;
    text-decoration: underline;
}

/* МОДАЛЬНОЕ ОКНО */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: #fff;
    border-radius: var(--radius);
    padding: 50px 40px;
    width: 100%;
    max-width: 480px;
    position: relative;
}

.modal h2 {
    margin: 0 0 28px;
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
     text-align: center !important;
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: var(--text-gray);
    line-height: 1;
}

.modal-close:hover {
    color: var(--primary-red);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-form input[type="text"],
.modal-form input[type="tel"],
.modal-form input[type="email"],
.modal-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 14px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
    outline: none;
}

.modal-form input:focus,
.modal-form textarea:focus {
    border-color: var(--primary-red);
}

.modal-form textarea {
    resize: vertical;
}

/* Стили для блока согласия в обеих формах */
.checkbox-label {
    display: flex;
    align-items: flex-start; /* Выравнивание по верху первой строки текста */
    gap: 8px;               /* Фиксированный небольшой зазор между галочкой и текстом */
    margin: 15px 0;         /* Отступы сверху и снизу от блока */
    cursor: pointer;
    width: 100%;            /* Растягиваем на всю ширину */
    box-sizing: border-box;
}

.checkbox-label input[type="checkbox"] {
    appearance: checkbox;   /* Возвращаем стандартный вид, если сброшен */
    -webkit-appearance: checkbox;
    width: 16px;            /* Четкий размер квадратика */
    height: 16px;
    margin: 0;              /* Сбрасываем все внешние отступы, которые его двигают */
    flex-shrink: 0;         /* Чтобы квадратик не сжимался */
    cursor: pointer;
}

.checkbox-label span {
    font-size: 13px;
    line-height: 1.2;
    text-align: left;       /* Всегда по левому краю */
    color: #444;
}

.checkbox-label a {
    color: #B6003D;
    text-decoration: underline;
}

.btn-submit {
    background: var(--primary-red);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    margin-top: 8px;
}

.btn-submit:hover {
    opacity: 0.85;
}

/* АДАПТИВ — планшеты и ниже */
@media (max-width: 1100px) {
    .nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: calc(100% + 0px);
        left: 0;
        right: 0;
        margin: 0;
        padding: 8px 20px 20px;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
        border-top: 1px solid #eee;
        border-radius: 0 0 var(--radius) var(--radius);
    }

    .main-nav a {
        margin: 0;
        padding: 14px 4px;
        border-bottom: 1px solid #eee;
        font-size: 16px;
    }

    .main-nav a:last-child {
        border-bottom: none;
    }

    .site-header.nav-open .main-nav {
        display: flex;
    }

    body.menu-open {
        overflow: hidden;
        touch-action: none;
    }

    .main-grid,
    .coop-banner,
    .samples-banner,
    .price-banner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .price-banner {
        padding: 40px 28px;
    }

    .catalog-header {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
        margin-bottom: 28px;
    }

    .catalog-header .btn-main {
        align-self: flex-start;
    }

    h1 {
        font-size: 36px;
    }

    .section-title {
        font-size: 32px;
    }
}

/* Планшет портрет / крупные телефоны */
@media (max-width: 900px) {
    .info-card {
        padding: 40px 32px;
    }

    .card {
        height: auto;
        min-height: 220px;
    }

    .product-preview {
        height: 240px;
    }
}

/* Смартфоны */
@media (max-width: 768px) {
    :root {
        --radius: 28px;
    }

    body {
        padding-top: 76px;
    }

    section[id],
    footer[id] {
        scroll-margin-top: 76px;
    }

    .container {
        padding: 0 16px;
    }

    .site-header {
        padding: 10px 0;
    }

    h1 {
        font-size: 28px;
        margin-bottom: 18px;
    }

    .description {
        font-size: 16px;
        margin-bottom: 28px;
    }

    .btn-main {
        width: 100%;
        text-align: center;
        padding: 18px 24px;
        margin-bottom: 32px;
    }

    .features {
        flex-direction: column;
        gap: 16px;
    }

    .image-card {
        min-height: 220px;
        order: -1;
    }

    .main-grid {
        display: flex;
        flex-direction: column;
    }

    .info-card {
        padding: 28px 22px;
    }

    .advantages,
    .catalog-section,
    .download-section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .card {
        padding: 24px;
        min-height: 0;
    }

    .card-img {
        min-height: 200px;
        max-height: 280px;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-preview {
        height: 240px;
    }

    .product-item {
        padding: 18px;
    }

    .product-item h3 {
        font-size: 16px;
    }

    .product-item h3 span {
        font-size: 14px;
    }

    .catalog-header .btn-main {
        width: auto;
        align-self: stretch;
        text-align: center;
    }

    .price-banner {
        padding: 28px 18px;
        gap: 28px;
    }

    .price-form-container h2 {
        font-size: 22px;
    }

    .modal {
        margin: 16px;
        padding: 36px 22px 28px;
        max-width: calc(100vw - 32px);
        max-height: calc(100vh - 32px);
        overflow-y: auto;
    }

    .modal h2 {
        font-size: 22px;
        padding-right: 36px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer {
        padding: 40px 0;
    }

    .footer-bottom {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .header-actions {
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }

    .header-phone {
        font-size: 13px;
    }

    .btn-callback {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 38px;
    }

    .header-phone {
        display: none;
    }

    .header-actions {
        flex-direction: row;
        align-items: center;
    }

    h1 {
        font-size: 24px;
    }

    .section-title {
        font-size: 22px;
    }
}

/* СТРАНИЦА СПАСИБО */
.thanks-section {
    min-height: calc(100vh - 82px - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
}

.thanks-content {
    text-align: center;
    max-width: 800px;
}

.thanks-logo {
    margin-bottom: 40px;
}

.thanks-logo img {
    height: 80px;
    width: auto;
}

.thanks-content h1 {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 30px;
    line-height: 1.1;
}

.thanks-description {
    font-size: 20px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.thanks-actions {
    margin-top: 40px;
}

@media (max-width: 768px) {
    .thanks-section {
        padding: 48px 0 60px;
        min-height: calc(100vh - 76px - 120px);
    }

    .thanks-content h1 {
        font-size: 36px;
    }

    .thanks-description {
        font-size: 18px;
    }

    .thanks-logo img {
        height: 60px;
    }

    .catalog-mockup {
        /* Сдвигаем контент к левому краю */
        justify-content: flex-start; 
    }

    .catalog-mockup img {
        /* Убираем автоматические отступы, если они мешают, 
           и фиксируем максимальную ширину для аккуратности */
        margin-left: 0;
        max-width: 80%; /* Можно отрегулировать по вкусу */
    }
}

.price-features {
        display: flex;
        flex-direction: column;
        gap: 12px; /* Расстояние между пунктами */
        padding: 0;
        margin: 15px 0;
    }

    .price-features li {
        display: block; /* Возвращаем блочный тип для всего пункта */
        padding-left: 25px; /* Освобождаем место под стрелку слева */
        position: relative; /* Чтобы стрелку прижать точно к углу */
        font-size: 15px;
        line-height: 1.4;
        text-align: left;
    }

    .price-features .mini-arrow {
        position: absolute;
        left: 0;
        top: 2px; /* Выравниваем стрелку точно по первой строке текста */
        margin: 0;
        width: 20px;
    }

    .price-features li strong {
        display: inline; /* Заголовок идет в одну строку с текстом */
        margin-right: 4px; /* Небольшой отступ перед пояснением */
    }

    .price-features li p, 
    .price-features li span {
        display: inline; /* Всё остальное тоже в строку */
    }
@media (max-width: 768px) {
    /* Исправляем выравнивание в форме прайса */
    .price-form-container {
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* Выравниваем содержимое формы по левому краю */
    }

    .lead-form {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .checkbox-label {
        padding: 0;         /* Убираем внутренние отступы, если они были */
        justify-content: flex-start;
    }

    .checkbox-label span {
        font-size: 11px;    /* Чуть меньше для узких экранов */
    }

}
}