/* 1. ГЛОБАЛЬНЫЕ НАСТРОЙКИ */
:root {
    --bg-dark: #0c0a07;
    --graphite: #15120c;
    --card-bg: #1c1810;
    --accent: #d4a017;
    --accent-hover: #f0b429;
    --text-white: #fffaf0;
    --text-gray: #a39b86;
    --border: rgba(255, 255, 255, 0.08);
}

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

html {
    font-size: 16px; /* База для rem */
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.section-padding {
    padding: 4rem 0;
}

/* 2. ШАПКА */
.header {
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px); /* Эффект стекла */
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);

    text-align: center;
}

.header__inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;    
}

.logo {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
    flex-shrink: 1;    
}

@media (max-width: 1100px) {
    .logo {
        font-size: 1.1rem;
    }
}

.logo span {
    color: var(--accent);
}

.phone-link {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: 0.3s;
    white-space: nowrap;
    flex-shrink: 0;    
}

@media (max-width: 420px) {
    .header__inner {
        flex-direction: column;
        gap: 10px;
    }
}

/* 3. HERO BLOCK (Первый экран) */
.hero {
    padding: 3rem 0;
    background: radial-gradient(circle at top right, #222 0%, #0a0a0a 100%);
}

.hero__grid {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 992px) {
    .hero__grid {
        grid-template-columns: 1.1fr 0.9fr; /* Две колонки на ПК */
        align-items: center;
    }
}

.main-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    /* Создаем квадратный контейнер */
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--card-bg); /* Фон, пока грузится фото */
}

.main-card__img {
    width: 100%;
    height: 100%;
    display: block;
    /* Это свойство обрезает края, если фото не квадратное, 
       сохраняя пропорции и центрируя объект */
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.discount-tag {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: var(--accent);
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(161, 37, 37, 0.4);
    
}

.hero__offer h1 {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 900;
}

@media (max-width: 768px) {
    .hero__offer h1 {
        font-size: 1.6rem;
    }
    .hero__offer{
        text-align: center;
    }
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 1.2rem;
    max-width: 520px;
}

.hero-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.8rem 0;
}

.hero-features li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #ddd;
}

.hero-features li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 900;
}

.hero-safe {
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-gray);
    text-align: left;
}

.price {
    margin-bottom: 2rem;
}

.price__old {
    display: block;
    font-size: 1.25rem;
    color: var(--text-gray);
    text-decoration: line-through;
}

.price__new {
    font-size: 4rem;
    font-weight: 900;
    color: var(--text-white); /* Было --white */
    line-height: 1;
}

@media (max-width: 768px) {
    .price__new {
        font-size: 3rem;
    }
    .hero-safe{
        text-align: center;
    }
}

.price-note {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 6px;
}

/* 4. ТАЙМЕР */
.timer {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
    text-align: center;
}

.timer-note {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-top: 6px;
}

.timer__display {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.75rem;
}

.t-item span {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent);
    display: block;
}

.t-item label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-gray);
    letter-spacing: 1px;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05); /* Едва заметный фон */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 18px;
    border-radius: 50px;
    margin-top: 1.5rem;
    transition: 0.3s;
}

/* Базовый скелет кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2rem;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    width: 100%; /* По умолчанию на всю ширину (удобно для мобилок) */
    box-sizing: border-box;
}

/* Модификаторы цветов */

/* Главная (Винная) */
.btn--primary {
    background: var(--accent);
    color: #fff;
}
.btn--primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 20px rgba(139, 26, 26, 0.4);
}

/* Прозрачная (Стекло/Отзывы) */
.btn--secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}
.btn--secondary:hover {
    background: #fff;
    color: #000;
}

/* Если нужна кнопка не на всю ширину (например, в десктопной версии) */
@media (min-width: 768px) {
    .btn--inline {
        width: auto;
    }
}

/* Пульсирующая точка */
.stock-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    position: relative;
}

.stock-dot::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ff4d4d;
    border-radius: 50%;
    animation: stockPulse 2s infinite;
}

@keyframes stockPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.stock-text {
    font-size: 0.85rem;
    color: #bbb;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.stock-text strong {
    color: #fff;
    font-weight: 700;
}

/* 6. ВИДЕО БЛОК */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    aspect-ratio: 9 / 16; /* Важно: укажи пропорции своего видео (например 9/16 или 3/4) */
    background: #000;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

#mainVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0; /* Изначально видео не видно */
    transition: opacity 0.6s ease; /* Плавное появление видео */
}

.video-poster-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: pointer;
    transition:
        opacity 0.6s ease,
        visibility 0.6s;
}

.video-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Красивая кнопка Play с пульсацией */
.play-btn-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 0 rgba(161, 37, 37, 0.5);
    animation: pulse 2s infinite;
}

.play-triangle {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #fff;
    margin-left: 5px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(161, 37, 37, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(161, 37, 37, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(161, 37, 37, 0);
    }
}

/* Когда видео активно */
.video-wrapper.is-playing #mainVideo {
    opacity: 1;
}

.video-wrapper.is-playing .video-poster-layer {
    opacity: 0;
    visibility: hidden;
}

/* 7. КАТАЛОГ И СЛАЙДЕРЫ */
.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 3rem;
    text-transform: uppercase;
}

.trust-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 3rem;
    text-transform: uppercase;
    color: var(--text-white);
}


.reviews-intro {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.95rem;
    max-width: 700px;
    margin: -2rem auto 3rem;
    line-height: 1.6;
}

/* Блок характеристик */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.info-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.info-card__icon {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.05);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.info-card__text span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 0.2rem;
}

.info-card__text strong {
    font-size: 1.1rem;
    color: var(--text-white);
}

/* Стили таблицы */
.size-table + .size-table-title {
    margin-top: 3rem;
}

.size-table-title--secondary {
    margin-top: 3.5rem;
    font-size: 1.35rem;
    color: var(--text-white);
    opacity: 0.9;
}

.size-table-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
}


.size-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    min-width: 600px; /* Чтобы данные не сжимались слишком сильно */
}

.size-table th {
    background: #252525;
    padding: 1.2rem 0.5rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.size-table td {
    padding: 1.2rem 0.5rem;
    border-bottom: 1px solid #333;
    font-size: 1.1rem;
}

.row-alt {
    background: rgba(255, 255, 255, 0.02); /* Тонкая полоска зебры */
}

.size-table td:first-child {
    font-weight: 800;
    color: var(--text-white);
}

.size-hint {
    margin-top: 1.5rem;
    text-align: center;
    font-style: italic;
    color: var(--text-gray);
    font-size: 0.9rem;
}
/* --- АДАПТАЦИЯ ТАБЛИЦЫ ПОД МОБИЛЬНЫЕ (ИСПРАВЛЕНО) --- */
@media (max-width: 768px) {
    .size-table-wrapper {
        padding: 1rem 0.5rem;
    }

    /* Убираем ограничение ширины, которое ломает мобильную верстку */
    .size-table {
        min-width: auto !important;
        display: block !important;
        width: 100% !important;
    }

    .size-table tbody,
    .size-table tr,
    .size-table td {
        display: block !important;
        width: 100% !important;
    }

    /* Скрываем стандартную шапку */
    .size-table thead {
        display: none !important;
    }

    .size-table tr {
        margin-bottom: 2rem;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.03);
        overflow: hidden;
    }

    .size-table td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 1.1rem 1rem !important; /* Увеличил отступы для удобства 40+ */
        border-bottom: 1px solid #333 !important;
        text-align: right !important;
        font-size: 1.1rem !important; /* Крупный шрифт для значений */
        color: #fff !important;
    }

    .size-table td:last-child {
        border-bottom: none !important;
    }

    /* Названия параметров слева */
    .size-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--accent) !important;
        text-align: left;
        font-size: 0.8rem;
        text-transform: uppercase;
        flex: 1; /* Занимает всё свободное место слева */
        margin-right: 10px;
    }

    /* Плашка с размером (заголовок карточки) */
    .size-table td:first-child {
        background: #252525 !important;
        justify-content: center !important;
        font-size: 1.4rem !important;
        font-weight: 900 !important;
        color: #fff !important;
        padding: 0.8rem !important;
    }

    .size-table td:first-child::before {
        display: none !important;
    }
}

/* Блок характеристик */
.product-selection {
    display: grid;
    gap: 2rem;
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 2rem;
    border: 1px solid var(--border);
}

@media (min-width: 992px) {
    .product-selection {
        grid-template-columns: 1fr 1fr;
    }
}

.product-visual {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
}

.product-visual img {
    width: 100%;
    display: block;
    transition: 0.5s ease;
}

.color-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 20px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.control-label {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-gray);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.color-picker {
    display: flex;
    gap: 15px;
    margin-bottom: 2rem;
}

.control-hint {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin: -1rem 0 2rem;
}

.color-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: 0.3s;
}

.color-option.active {
    border-color: var(--accent);
    transform: scale(1.1);
}

.size-picker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 2rem;
}

.size-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: #fff;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.size-btn:hover,
.size-btn.active {
    background: #fff;
    color: #000;
}

.order-total {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    text-align: center;
}

.total-price {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.total-note {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto;
}

.form-intro {
    font-size: 0.9rem;
    color: #ddd;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.form-input {
    width: 100%;
    padding: 1.1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.07);
}

.btn--submit {
    margin-top: 10px;
    font-size: 1.1rem;
    padding: 1.3rem;
}

.form-after {
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--text-gray);
}
/* Отзывы */

.reviews-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.review-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 1.25rem;
    transition: 0.3s;
}

.review-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.review-meta strong {
    display: block;
    font-size: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.review-meta span {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.stars {
    margin-left: auto;
    color: #ffcc00;
    font-size: 0.9rem;
}

.review-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 1rem;
}

.review-footer {
    font-size: 0.85rem;
    color: var(--text-gray);
    border-top: 1px solid #333;
    padding-top: 0.8rem;
}

/* ОБНОВЛЕННАЯ СТИЛЬНАЯ КНОПКА ОТЗЫВОВ */

/* Центрируем контейнер кнопки, если он еще не центрирован */
.reviews-action {
    text-align: center;
    margin-top: 4rem;
    padding-bottom: 2rem;
}

/* Состояние скрытого отзыва */
.hidden-review {
    opacity: 0;
    transform: translateY(20px);
    display: none; /* Оставляем для логики, но анимировать будем через класс */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Класс, который мы будем добавлять через JS */
.review-card.show {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
}

.review-card:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(139, 26, 26, 0.15);
}

/* Гарантии */
/* --- ЕДИНЫЙ БЛОК ДОВЕРИЯ И ПРЕИМУЩЕСТВ --- */
.trust-block {
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0.03),
        transparent
    );
    border-top: 1px solid var(--border);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.trust-item {
    text-align: center;
}

.trust-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(161, 37, 37, 0.3)); /* Эффект свечения */
}

.trust-item h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: var(--text-white);
}

.trust-item p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.trust-item--primary .trust-icon {
    filter: drop-shadow(0 0 18px rgba(161, 37, 37, 0.6));
}

.trust-item--primary h3 {
    color: #fff;
}

/* --- ШАГИ ЗАКАЗА --- */
.steps-minimal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.s-step {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-gray);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.s-step span {
    color: var(--accent);
    font-weight: 900;
    margin-right: 8px;
    font-size: 1.4rem;
}

.s-line {
    flex-grow: 1;
    height: 1px;
    background: var(--border);
    margin: 0 20px;
}

/* --- ФУТЕР --- */
.footer-minimal {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    background: #000;
}

.footer-minimal .logo {
    margin-bottom: 15px;
}

.footer-minimal p {
    font-size: 0.85rem;
    color: #555;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .steps-minimal {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start; /* Выравнивание по левому краю на мобилках */
        padding-left: 20px;
    }
    .s-line {
        display: none;
    }
}

/* Контейнер для слайдера внутри выбора товара */
.product-visual {
    width: 100%;
    aspect-ratio: 3 / 4; /* Идеально для одежды */
    background: #121212;
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
}

.product-visual img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Заполняет блок, обрезая лишнее */
    object-position: top; /* Чтобы головы не обрезались, фокус на верх */
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.product-visual img.active {
    opacity: 1;
}

/* Стили стрелочек */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    pointer-events: none; /* Клик проходит сквозь контейнер */
}

.nav-btn {
    pointer-events: auto; /* А на кнопки нажимать можно */
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: 0.3s;
}

.nav-btn:hover {
    background: var(--accent);
}

/* ===== АНИМАЦИЯ ОТПРАВКИ ЗАКАЗА ===== */

.btn--submit.is-loading {
    cursor: not-allowed;
    opacity: 0.7;
    pointer-events: none;
}

.btn--submit .btn-dots::after {
    content: '';
    animation: dots 1.4s infinite steps(4);
}

@keyframes dots {
    0%   { content: ''; }
    25%  { content: '.'; }
    50%  { content: '..'; }
    75%  { content: '...'; }
    100% { content: ''; }
}
