@import "reset.css";
@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,100;1,100&family=Comfortaa:wght@400;500&family=Fira+Sans:wght@900&family=IBM+Plex+Serif&family=Mulish:wght@200;700&family=Open+Sans:ital,wght@0,400;0,700;1,300;1,400&family=Russo+One&display=swap');

:root {
    --bgColor: #E3E4E4;
    --bgTitle: #5E4638;
    --bglink: #A68979;
    --white: #ffffff;
}

html, body {
    min-height: 100vh; /* Растягивает страницу на всю высоту экрана */
    margin: 0;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Open Sans', sans-serif;
    background: var(--bgColor);
    font-size: 18px; /* Немного уменьшил базовый размер для баланса */
    color: var(--bgTitle);

}

/* --- Navigation --- */
.nav {
    border-bottom: 1px solid #d8d7d7;
    padding: 20px 0;
    background: var(--bgColor);
}

.container {
    margin: 0 auto;
    padding: 0 15px;
    max-width: 1200px;
}

.nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo img {
    height: 40px; /* Фиксируем высоту логотипа */
}

.nav-list {
    display: flex;
    align-items: center;
    column-gap: 30px;
    font-size: 20px;
    font-weight: 500;
}

.nav-list__link {
    color: var(--bgTitle);
    transition: opacity 0.2s ease-in;
    position: relative;
    display: inline-block;
}

.nav-list__link:hover {
    opacity: 0.7;
}

.nav-list__link--active {
    position: relative;
}

.nav-list__link--active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--bgTitle);
}

/* --- Main Hero Section --- */
.container-main {
    margin: 0 auto;
    padding: 0 15px;
    max-width: 1200px;
}

.main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 0;
    gap: 40px;
}

.main__item {
    flex: 1;
    max-width: 600px;
}

.main__title {
    font-family: 'IBM Plex Serif', serif;
    font-size: clamp(32px, 5vw, 64px); /* Адаптивный размер шрифта */
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--bgTitle);
}

.main__text {
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 30px;
    color: var(--bgTitle);
}

.main__link {
    background: var(--bglink);
    color: var(--white);
    font-size: 18px;
    text-align: center;
    padding: 15px 30px;
    display: inline-block;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    width: fit-content;
}

.main__link:hover {
    background: var(--bgTitle);
}

.main__images {
    flex: 1;
    display: flex;
    justify-content: center;
    animation: Appearance 0.8s ease-out;
}

.main__images img {
    max-width: 100%;
    height: auto;
}

@keyframes Appearance {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Products Grid --- */
.products {
    padding: 80px 0;
}

.title-h2 {
    color: var(--bgTitle);
    font-size: clamp(28px, 4vw, 48px);
    margin-bottom: 60px;
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.grid__cover {
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.grid__cover:hover {
    transform: scale(1.03);
}

.grid__cover img {
    width: 100%;
    display: block;
}

/* --- Cost Calculator Section --- */
.cost {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 60px;
    padding: 100px 0;
    background-color: rgba(0,0,0,0.02); /* Легкий фон для выделения */
}

.cost__title {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img__final-kr {
    position: absolute;
    animation: rotate 5s linear infinite;
    cursor: pointer;
    width: 100%;
}

.img__final-st {
    position: relative;
    z-index: 2;
    width: 40px;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cost__calc {
    max-width: 500px;
    width: 100%;
}

.form {
    display: flex;
    flex-direction: column;
}

.form__text {
    color: var(--bgTitle);
    font-size: 20px;
    margin-bottom: 10px;
}

.form__select, .form__input {
    color: var(--bgTitle);
    background-color: var(--bgColor);
    font-size: 18px;
    border: 1px solid var(--bgTitle);
    padding: 12px 15px;
    margin-bottom: 25px;
    border-radius: 5px;
    width: 100%;
}

.form__select {
    appearance: none;
    background-image: url(../images/Polygon\ 3.svg);
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

.button__link {
    background: var(--bglink);
    color: var(--white);
    font-size: 18px;
    padding: 15px 40px;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    width: fit-content;
}

.button__link:hover {
    background: var(--bgTitle);
}

.total {
    margin-top: 30px;
    padding: 20px;
    border-left: 4px solid var(--bglink);
}

.total__price {
    color: var(--bgTitle);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.total__info {
    color: var(--bgTitle);
    font-size: 18px;
}

.total__email {
    color: var(--bglink);
    font-weight: 700;
}


/* --- Универсальный футер --- */
.footer {
    margin-top: auto; /* Теперь это будет работать благодаря display: flex в body */
    padding: 60px 0;
    background-color: var(--bglink);
    color: var(--white);
    text-align: center;
    width: 100%; /* Чтобы футер всегда был на всю ширину */
}

.footer__wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.footer__text {
    font-size: 18px;
    margin: 0; /* Убираем лишние отступы у текста */
}

.footer__img img {
    max-width: 150px;
    height: auto;
    display: block;
}

/* Чтобы margin-top: auto работал, в html, body должно быть: */
html, body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Responsive (Mobile) --- */
@media (max-width: 768px) {
    .main {
        flex-direction: column;
        text-align: center;
        padding: 40px 0;
    }
    
    .main__item {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .main__link {
        margin: 0 auto;
    }

    .cost {
        flex-direction: column;
        gap: 40px;
    }

    .nav-row {
        justify-content: center;
        flex-direction: column;
    }

    .nav-list {
        justify-content: center;
        font-size: 18px;
    }
}
/* --- Секция заказа (Вместо расчета) --- */
.order-section {
    padding: 80px 0;
    background-color: rgba(0,0,0,0.03);
}

.order-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.order-form {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Две колонки */
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 16px;
    font-weight: 600;
    color: var(--bgTitle);
    margin-left: 5px;
}

.form-group input, 
.form-group textarea, 
.form-group select {
    padding: 12px 15px;
    border: 1px solid #d8d7d7;
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
    background-color: #fff;
}

.form-group input:focus, 
.form-group textarea:focus, 
.form-group select:focus {
    border-color: var(--bglink);
    box-shadow: 0 0 0 3px rgba(166, 137, 121, 0.2);
}

.order-submit {
    grid-column: span 2; /* Кнопка на всю ширину */
    background-color: var(--bglink);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    padding: 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.order-submit:hover {
    background-color: var(--bgTitle);
    transform: translateY(-2px);
}

/* Адаптивность */
@media (max-width: 600px) {
    .order-form {
        grid-template-columns: 1fr; /* Одна колонка на мобилках */
    }
    
    .form-group label, .order-submit {
        grid-column: span 1;
    }

    .order-wrapper {
        padding: 20px;
    }
}

/* --- Кнопка перехода в каталог --- */
.catalog-btn-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 50px; /* Отступ от картинок */
    margin-bottom: 20px; /* Отступ до следующей секции */
}

.catalog-btn {
    background-color: var(--bglink);
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    padding: 15px 40px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.catalog-btn:hover {
    background-color: var(--bgTitle);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Адаптация для мобильных */
@media (max-width: 600px) {
    .catalog-btn {
        font-size: 18px;
        padding: 12px 30px;
        width: 100%; /* На телефоне кнопка на всю ширину */
        text-align: center;
    }
}

/* --- Шахматная сетка изделий --- */
.grid {
    display: grid;
    /* Создаем 4 колонки одинаковой ширины */
    grid-template-columns: repeat(4, 1fr); 
    /* Устанавливаем высоту одной «строчки» сетки */
    grid-auto-rows: 200px; 
    gap: 20px; /* Расстояние между фото */
    max-width: 1200px;
    margin: 0 auto;
}

.grid__cover {
    position: relative;
    overflow: hidden;
    border-radius: 15px; /* Скругляем углы, чтобы было нежнее */
    transition: transform 0.3s ease;
}

.grid__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Важно! Чтобы фото не растягивалось, а заполняло блок */
    display: block;
    transition: transform 0.5s ease;
}

/* Эффект при наведении */
.grid__cover:hover {
    transform: scale(1.02);
    z-index: 2;
}
.grid__cover:hover img {
    transform: scale(1.1);
}

/* --- Специальные размеры для шахматности --- */

/* Высокая картинка (занимает 2 ряда по высоте) */
.grid__item-tall {
    grid-row: span 2; 
}

/* Широкая картинка (занимает 2 колонки по ширине) */
.grid__item-wide {
    grid-column: span 2;
}

/* Адаптация для планшетов (3 колонки) */
@media (max-width: 992px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Адаптация для мобильных (2 колонки) */
@media (max-width: 600px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px; /* Уменьшаем высоту ячеек на телефоне */
    }
    
    .grid__item-wide {
        grid-column: span 2; /* Широкая картинка на весь экран */
    }
}

.nav-list__link {
    color: var(--bgTitle);
    transition: opacity 0.2s ease-in;
    text-decoration: none;
    
    /* ОЧЕНЬ ВАЖНО: без этого полоска не будет привязана к тексту */
    position: relative; 
    display: inline-block; 
}

.nav-list__link:hover {
    opacity: 0.7;
}

/* Стиль для активной ссылки */
.nav-list__link--active {
    color: var(--bgTitle);
    font-weight: 600; /* Делаем чуть жирнее, чтобы выделялось */
}

/* Та самая полоска */
.nav-list__link--active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 100%; /* Ставит полоску ровно под текстом */
    display: block;
    width: 100%;
    height: 2px; /* Толщина полоски */
    background-color: var(--bgTitle); /* Цвет как у основного текста */
    opacity: 1;
}
/* --- Кнопка "Назад на главную" --- */
.back-btn-wrapper {
    display: flex;
    justify-content: center;
    margin: 50px 0; /* Отступ сверху от товаров и снизу до футера */
}

.back-btn {
    background-color: var(--bglink);
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    padding: 12px 30px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.back-btn:hover {
    background-color: var(--bgTitle);
    transform: translateX(-5px); /* При наведении кнопка чуть сдвигается влево, намекая на возврат */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Адаптация для мобильных */
@media (max-width: 600px) {
    .back-btn {
        font-size: 16px;
        width: 100%; /* На телефоне кнопка на всю ширину */
        text-align: center;
    }
}


/* --- Общие настройки каталога --- */
.katalog {
    display: grid;
    /* Создаем сетку: карточки будут минимум 280px, максимум - заполняют всё пространство */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px; /* Одинаковые отступы между всеми карточками */
    margin: 40px auto;
    padding: 0 20px;
    max-width: 1200px;
}

.catalog-title {
    text-align: center;
    font-family: 'IBM Plex Serif', serif;
    font-size: 42px;
    color: var(--bgTitle);
    margin: 40px 0;
}

/* --- Карточка товара --- */
.product-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(94, 70, 56, 0.1); /* Легкая рамка вместо пунктира */
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

/* --- Изображение товара --- */
.product-img {
    width: 100%;
    height: 300px; /* Все картинки будут одной высоты */
    overflow: hidden;
    background-color: #fbfbfb;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Картинка заполняет блок, не растягиваясь */
    transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

/* --- Информационный блок --- */
.product-info {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-name {
    font-size: 18px;
    font-family: 'Open Sans', sans-serif;
    color: var(--bgTitle);
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.product-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--bgTitle);
    margin-bottom: 20px;
}

.product-price span {
    font-size: 14px;
    font-weight: 400;
}

/* --- Кнопка заказа --- */
.product-btn {
    background-color: var(--bglink);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.3s ease;
    text-align: center;
    margin-top: auto; /* Кнопка всегда будет прижата к низу карточки */
}

.product-btn:hover {
    background-color: var(--bgTitle);
}

/* --- Адаптивность для мобильных --- */
@media (max-width: 600px) {
    .catalog-title {
        font-size: 28px;
    }
    
    .katalog {
        grid-template-columns: 1fr; /* Одна колонка на телефоне */
        gap: 20px;
    }

    .product-img {
        height: 250px;
    }
}

/* --- Улучшенная форма заказа --- */
.order-section {
    padding: 80px 0;
    background-color: #fbfbfb;
}

.order-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.order-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 15px;
    font-weight: 600;
    color: var(--bgTitle);
    margin-left: 5px;
}

.form-group input, .form-group textarea, .form-group select {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--bglink);
    box-shadow: 0 0 0 3px rgba(166, 137, 121, 0.1);
}

/* Стили для блока согласия (Checkbox) */
.consent-group {
    grid-column: span 2;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 10px 0 20px 0;
}

.consent-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-top: 3px;
}

.consent-group label {
    font-size: 12px; /* Маленький шрифт, как в юридических документах */
    line-height: 1.5;
    color: #777;
    text-align: left;
    cursor: pointer;
    font-weight: 400;
}

.consent-group label a {
    color: var(--bglink);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.consent-group label a:hover {
    color: var(--bgTitle);
}

.order-submit {
    grid-column: span 2;
    background-color: var(--bglink);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    padding: 16px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.order-submit:hover {
    background-color: var(--bgTitle);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* --- МОБИЛЬНАЯ ВЕРСИЯ (Самые маленькие телефоны) --- */
@media (max-width: 600px) {
    .order-wrapper {
        padding: 25px 20px;
    }

    .order-form {
        grid-template-columns: 1fr; /* Всё в одну колонку */
    }

    .form-group.full-width, .consent-group, .order-submit {
        grid-column: span 1;
    }

    .order-submit {
        width: 100%;
        padding: 14px;
    }

    .consent-group label {
        font-size: 11px; /* Еще чуть меньше для совсем маленьких экранов */
    }
}






/* --- Сверхмалые экраны (до 400px) --- */
@media (max-width: 400px) {
    /* 1. Навигация */
    .nav-list {
        font-size: 16px; /* Уменьшаем шрифт меню */
        column-gap: 15px;
    }
    
    .logo img {
        height: 30px; /* Уменьшаем логотип */
    }

    /* 2. Главный экран (Hero) */
    .main__title {
        font-size: 28px !important; /* Заставляем заголовок быть компактным */
        line-height: 1.2;
    }

    .main__text {
        font-size: 16px;
        padding: 0 10px;
    }

    .main__link {
        font-size: 16px;
        padding: 12px 20px;
    }

    /* 3. Сетка изделий (Шахматка) */
    .grid {
        grid-template-columns: 1fr; /* Только одна колонка, чтобы фото были крупными */
        grid-auto-rows: auto; 
    }

    .grid__item-wide, .grid__item-tall {
        grid-column: span 1; /* Отменяем растягивание, чтобы не было пустых мест */
        grid-row: span 1;
    }

    /* 4. Форма заказа */
    .order-wrapper {
        padding: 20px 15px; /* Уменьшаем внутренние отступы */
    }

    .order-form {
        gap: 15px;
    }

    .form-group label {
        font-size: 14px;
    }

    .form-group input, 
    .form-group textarea, 
    .form-group select {
        font-size: 14px;
        padding: 10px;
    }

    .order-submit {
        font-size: 16px;
        padding: 12px;
    }

    /* 5. Футер */
    .footer {
        padding: 40px 0;
    }

    .footer__text {
        font-size: 14px;
        padding: 0 10px;
    }

    .footer__img img {
        max-width: 100px;
    }
}


/* --- Стили модального окна --- */
.modal {
    display: none;           /* СКРЫВАЕМ ОКНО ПО УМОЛЧАНИЮ */
    position: fixed;        /* Фиксируем поверх всего сайта */
    z-index: 9999;          /* Ставим самый высокий приоритет, чтобы было над всеми блоками */
    left: 0;
    top: 0;
    width: 100%;            /* Растягиваем на весь экран */
    height: 100%;           /* Растягиваем на весь экран */
    background-color: rgba(0, 0, 0, 0.6); /* Затемняем фон страницы */
    backdrop-filter: blur(5px); /* Размываем задний фон для красоты */
    
    /* Центрируем содержимое окна */
    align-items: center;
    justify-content: center;
}

/* Белое окно внутри темного фона */
.modal__content, .modal-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: modalAppear 0.3s ease-out;
    
    /* Чтобы текст не прилипал к краям */
    box-sizing: border-box;
}

/* Анимация появления */
@keyframes modalAppear {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Кнопка закрытия (крестик) */
.modal__close, .close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
    border: none;
    background: none;
}

.modal__close:hover, .close-modal:hover {
    color: var(--bgTitle);
}
/* Заголовки и текст внутри окна */
.modal__content h2, .modal-title {
    font-family: 'IBM Plex Serif', serif;
    color: var(--bgTitle);
    margin-bottom: 20px;
    text-align: center;
}

.modal__content p, .modal-text {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    text-align: justify;
}

/* --- Секция преимуществ --- */
.advantages {
    padding: 80px 0;
    background-color: var(--bgColor);
}

.adv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.adv-card {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
}

.adv-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.adv-icon {
    font-size: 40px;
    margin-bottom: 20px;
    display: block;
}

.adv-title {
    font-family: 'IBM Plex Serif', serif;
    font-size: 22px;
    color: var(--bgTitle);
    margin-bottom: 15px;
}

.adv-text {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/* --- Инфо-баннер (Цифры) --- */
.info-banner {
    padding: 60px 0;
    background-color: var(--bglink);
    color: #fff;
}

.info-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-num {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.info-label {
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .info-wrapper {
        grid-template-columns: repeat(2, 1fr); /* 2 в ряд на планшетах */
        gap: 40px 20px;
    }
}

@media (max-width: 480px) {
    .info-wrapper {
        grid-template-columns: 1fr; /* 1 в ряд на телефонах */
    }
    
    .adv-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Секция "Как мы работаем" --- */
.how-it-works {
    padding: 80px 0;
    background-color: var(--bgColor);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.process-item {
    text-align: center;
    position: relative;
}

.process-number {
    width: 60px;
    height: 60px;
    background-color: var(--bglink);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 20px auto;
    box-shadow: 0 5px 15px rgba(166, 137, 121, 0.3);
}

.process-title {
    font-family: 'IBM Plex Serif', serif;
    font-size: 22px;
    color: var(--bgTitle);
    margin-bottom: 15px;
}

.process-text {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/* Адаптивность */
@media (max-width: 992px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 в ряд на планшетах */
        justify-items: center;
    }
}

@media (max-width: 600px) {
    .process-grid {
        grid-template-columns: 1fr; /* 1 в ряд на телефонах */
    }
    
    .process-item {
        margin-bottom: 40px;
    }
}

/* Бейдж сверху */
.header__badge {
    display: inline-block;
    background-color: rgba(166, 137, 121, 0.15);
    color: var(--bglink);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 15px;
    border-radius: 50px;
    margin-bottom: 20px;
}

/* Контейнер для кнопок */
.header__btns {
    display: flex;
    gap: 20px;
    justify-content: flex-start; /* Слева, так как текст в main__item обычно слева */
    align-items: center;
    margin-top: 30px;
}

/* Базовый стиль кнопок */
.btn {
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 500;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.btn--primary {
    background-color: var(--bglink);
    color: #fff;
    border: 2px solid var(--bglink);
}

.btn--primary:hover {
    background-color: var(--bgTitle);
    border-color: var(--bgTitle);
    transform: translateY(-3px);
}

.btn--outline {
    background-color: transparent;
    color: var(--bgTitle);
    border: 2px solid var(--bgTitle);
}

.btn--outline:hover {
    background-color: var(--bgTitle);
    color: #fff;
    transform: translateY(-3px);
}

/* Адаптация для мобильных */
@media (max-width: 600px) {
    .header__btns {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        text-align: center;
    }
}
/* Стили для контейнера с чекбоксом */
.order-consent {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.order-consent input {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

/* Стили для активной кнопки (твой текущий цвет) */
/* --- ФИНАЛЬНЫЕ СТИЛИ КНОПКИ ЗАКАЗА (Jewelry Site) --- */

.btn-order {
    /* 1. Интеграция в Grid (чтобы кнопка была на всю ширину или по центру) */
    grid-column: span 2;       /* Растягиваем на обе колонки формы */
    display: block;            /* Делаем блоком */
    width: fit-content;        /* Ширина по контенту */
    min-width: 280px;          /* Минимальная ширина для красоты */
    margin: 30px auto 0;       /* Центрируем: 30px сверху, AUTO по бокам */
    
    /* 2. Оформление (Премиум коричневый) */
    background-color: var(--bglink, #a68a7a); 
    color: #ffffff;
    border: none;
    padding: 16px 40px;
    border-radius: 12px;
    
    /* 3. Текст и шрифт */
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    
    /* 4. Интерактив */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(166, 138, 122, 0.3);
}

/* Эффект при наведении (только если кнопка активна) */
.btn-order:hover:not(:disabled) {
    background-color: var(--bgTitle, #8e7566);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(166, 138, 122, 0.5);
}

/* Стили для ЗАБЛОКИРОВАННОЙ кнопки */
.btn-order:disabled {
    background-color: #d1cccb; /* Светло-серый */
    color: #ffffff;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

/* Адаптация для мобильных */
@media (max-width: 600px) {
    .btn-order {
        grid-column: span 1; /* На мобилках одна колонка */
        width: 100%;        /* На всю ширину экрана */
        max-width: 100%;
    }
}
