/* ======================= DARK PREMIUM THEME VARIABLES ======================= */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #252525;
    --bg-card: #1f1f1f;
    --text-primary: #fdfcf0;
    --text-secondary: #b0b0b0;
    --text-muted: #707070;
    --accent-gold: #aa8740;
    --accent-gold-hover: #f4e697;
    --accent-gold-dark: #8f6f35;
    --border-color: #333333;
    --border-light: #404040;
    --error-color: #e74c3c;
    --success-color: #1b4332;
  --font-main: 'Montserrat', sans-serif;
  --font-heading: 'Cormorant Garamond', serif;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ======================= RESET & BASE ======================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip; /* clip вместо hidden — не создаёт containing block для position: sticky */
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: clip; /* clip вместо hidden — не создаёт containing block для position: sticky */
}

/* ======================= TYPOGRAPHY - HEADINGS ======================= */
h1, h2, h3, h4, h5, h6,
.section-title,
.page-title,
.hero-title,
.hero-subtitle,
.step-title,
.product-card-title,
.faq-question,
.product-title,
.cart-item-title,
.modal h2,
.review-card-name {
    font-family: var(--font-heading);
    font-weight: 600;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ======================= HEADER (Auto-hiding) ======================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #000000;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.header.header-hidden {
    transform: translateY(-100%);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

.header-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.header-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 300;
    font-size: 0.95rem;
    letter-spacing: 1px;
    position: relative;
    transition: var(--transition);
    font-family: var(--font-main);
    text-transform: uppercase;
    font-size: 0.85rem;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: width 0.3s ease;
}

.header-nav a:hover::after {
    width: 100%;
}

.header-nav a:hover {
    color: var(--accent-gold);
}

/* Menu Arrows */
.menu-arrow {
    font-size: 0.6rem;
    margin-left: 5px;
    display: inline-block;
    transition: transform 0.3s ease;
    vertical-align: middle;
}

.has-mega-menu:hover .menu-arrow,
.has-dropdown:hover .menu-arrow {
    transform: rotate(180deg);
}

/* Mega Menu & Dropdown */
.header-nav li {
    position: relative;
}

.has-mega-menu {
    position: static;
}

.mega-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #000000;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    padding: 40px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Прослойка для предотвращения дребезжания мега-меню */
.has-mega-menu::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
    z-index: 998;
}

.mega-menu-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.mega-menu-column {
    padding: 0 30px;
    position: relative;
}

.mega-menu-column:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(255, 215, 0, 0.2) 20%, 
        rgba(255, 215, 0, 0.2) 80%, 
        transparent 100%);
}

.mega-menu-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin: 0 0 20px 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.mega-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-list li {
    margin-bottom: 12px;
}

.mega-menu-list a {
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-transform: none;
    padding: 8px 0;
}

.mega-menu-list a::after {
    display: none;
}

.mega-menu-list a:hover {
    color: var(--accent-gold);
}

.mega-menu-list a:hover .mega-menu-icon {
    transform: scale(1.05);
    opacity: 1;
}

/* Иконки в мега-меню */
.mega-menu-icon {
    width: auto;
    height: 24px;
    max-width: 36px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.85;
}

.mega-menu-text {
    text-align: center;
    white-space: nowrap;
}

/* Dropdown Menu */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #0a0a0a;
    border: 1px solid #D4AF37;
    padding: 20px 15px;
    min-width: 300px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    list-style: none;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    pointer-events: none;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* Прослойка для предотвращения дребезжания dropdown */
.has-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 15px;
    z-index: 998;
}

.dropdown-menu li {
    margin: 0;
    display: flex;
}

.dropdown-menu a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px 12px;
    min-height: 85px;
    width: 100%;
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.3;
    transition: all 0.3s ease;
    border-radius: 4px;
    position: relative;
    text-transform: none;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    color: var(--accent-gold);
    background-color: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.dropdown-menu a:hover .dropdown-icon {
    opacity: 1;
    transform: translateY(-3px) scale(1.08);
}

/* Иконки в dropdown меню */
.dropdown-icon {
    width: 28px;
    height: 28px;
    stroke: #D4AF37;
    stroke-width: 1;
    fill: none;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    opacity: 0.85;
    flex-shrink: 0;
}

/* Текст в dropdown меню */
.dropdown-menu span {
    display: block;
    width: 100%;
    line-height: 1.3;
}

/* Адаптивность - скрываем иконки на мобильных */
@media (max-width: 1024px) {
    .dropdown-icon {
        display: none;
    }
    
    .dropdown-menu {
        grid-template-columns: 1fr;
        min-width: 220px;
        padding: 15px 10px;
        gap: 5px;
    }
    
    .dropdown-menu a {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        padding: 12px 15px;
        min-height: auto;
    }
    
    .dropdown-menu span {
        text-align: left;
    }
}

/* Адаптивность иконок мега-меню для планшетов и мобильных */
@media (max-width: 1024px) {
    .mega-menu-icon {
        display: none;
    }
    
    .mega-menu-list a {
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
        padding: 0;
    }
    
    .mega-menu-text {
        white-space: normal;
        text-align: left;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-link {
    position: relative;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.cart-link:hover {
    color: var(--accent-gold);
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: var(--accent-gold);
    color: var(--bg-primary);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 0;
    min-width: 16px;
    height: 16px;
    text-align: center;
    line-height: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Анимации корзины */
@keyframes cart-shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-2px) rotate(-3deg); }
    40% { transform: translateX(2px) rotate(3deg); }
    60% { transform: translateX(-1px) rotate(-2deg); }
    80% { transform: translateX(1px) rotate(2deg); }
    100% { transform: translateX(0) rotate(0); }
}

@keyframes cart-fly-up {
    0% {
        opacity: 0;
        transform: translate(0, 8px) scale(0.9);
    }
    20% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(0, -18px) scale(0.95);
    }
}

@keyframes cart-gold-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.6);
    }
    100% {
        box-shadow: 0 0 0 16px rgba(212, 175, 55, 0);
    }
}

.cart-link--shake {
    animation: cart-shake 0.6s ease;
}

.cart-link--glow {
    color: #D4AF37;
    animation: cart-gold-pulse 0.6s ease;
}

.cart-fly-hint {
    position: absolute;
    top: -14px;
    right: -4px;
    background: #D4AF37;
    color: #000;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
    animation: cart-fly-up 0.8s ease-out forwards;
}

.header-phone {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 300;
    font-size: 1rem;
    letter-spacing: 0.3px;
    transition: var(--transition);
    font-family: var(--font-main);
}

.header-phone .phone-code {
    color: var(--accent-gold);
    font-weight: 500;
}

.header-phone:hover {
    color: var(--accent-gold);
}

.header-phone:hover .phone-code {
    color: var(--accent-gold-hover);
}

/* ======================= MOBILE CART STICKY BAR ======================= */
.mobile-cart-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.92);
    border-top: 1px solid #D4AF37;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    z-index: 999;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.35s ease-out, opacity 0.35s ease-out;
}

.mobile-cart-bar-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.mobile-cart-bar-text {
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.mobile-cart-bar-text strong {
    color: var(--accent-gold);
    font-weight: 600;
}

/* Контейнер для огонька в плашке корзины */
/* Мобильный виджет огонька (отдельный, не в корзине) */
.mobile-fire-widget {
    position: fixed;
    right: 12px;
    bottom: 12px;
    z-index: 950;
}

.mobile-fire-widget canvas {
    border-radius: 50%;
}

.mobile-fire-mute {
    transition: opacity 0.2s;
}

.mobile-fire-mute.muted {
    opacity: 0.5;
}

.mobile-fire-mute svg {
    width: 16px;
    height: 16px;
}

.mobile-cart-bar-fire {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.mobile-cart-bar-fire canvas {
    width: 44px;
    height: 44px;
    cursor: pointer;
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.5));
}

/* Кнопка mute рядом с огоньком в плашке */
.mobile-cart-bar-mute {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.6);
    background: rgba(0, 0, 0, 0.8);
    color: #D4AF37;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.mobile-cart-bar-mute svg {
    width: 12px;
    height: 12px;
}

.mobile-cart-bar-mute.muted {
    opacity: 0.5;
}

.mobile-cart-bar-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background-color: #D4AF37;
    color: #000;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.6);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.4);
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    flex-shrink: 0;
}

.mobile-cart-bar-button:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.55);
}

.mobile-cart-bar--visible {
    transform: translateY(0);
    opacity: 1;
}

.mobile-cart-bar--pulse {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.5);
    animation: cart-gold-pulse 0.6s ease;
}

@media (max-width: 767px) {
    .mobile-cart-bar {
        display: flex;
    }
}

@media (min-width: 768px) {
    .mobile-cart-bar {
        display: none !important;
    }
}

.mobile-nav-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 101;
}

.mobile-nav-icon,
.mobile-nav-icon::before,
.mobile-nav-icon::after {
    content: '';
    position: absolute;
    left: 0;
    height: 2px;
    width: 100%;
    background-color: var(--accent-gold);
    transition: var(--transition);
}

.mobile-nav-icon::before {
    top: -8px;
}

.mobile-nav-icon::after {
    bottom: -8px;
}

.mobile-nav-button.active .mobile-nav-icon {
    background-color: transparent;
}

.mobile-nav-button.active .mobile-nav-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-nav-button.active .mobile-nav-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    font-size: 3rem;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 101;
    line-height: 1;
    padding: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-nav-close:hover {
    color: var(--accent-gold);
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.mobile-nav li {
    margin-bottom: 30px;
}

.mobile-nav a {
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    font-family: var(--font-main);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.mobile-nav a:hover {
    color: var(--accent-gold);
}

/* ======================= SPA SECTIONS ======================= */
#app {
    min-height: 100vh;
    padding-top: 70px;
}

/* Обычные страницы (index, catalog): секции видны по умолчанию */
.section {
    display: block;
    min-height: auto;
}

/* Только внутри SPA (#app): секции скрыты до активации через JS */
#app .section {
    display: none;
    min-height: calc(100vh - 70px);
}

#app .section.active {
    display: block;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-primary);
    text-align: center;
}

/* ======================= HERO SECTION ======================= */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('../img/hero.jpg'); 
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: background-image 0.3s ease-in-out;
    overflow: hidden; /* Предотвращает выход контента за границы */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 0, 0, 0.5);
    color: #fdfcf0;
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
    word-spacing: 0.05em;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 0, 0, 0.5);
    color: rgba(253, 252, 240, 0.9);
    font-family: var(--font-main);
    letter-spacing: 0.02em;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-trust-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2.5rem;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 4px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    flex-wrap: wrap;
    justify-content: center;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.hero-trust-icon {
    width: 18px;
    height: 18px;
    color: var(--accent-gold);
    flex-shrink: 0;
}

.hero-trust-separator {
    color: rgba(255, 215, 0, 0.4);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.hero-trust-item span {
    font-size: 0.85rem;
    color: rgba(253, 252, 240, 0.9);
    font-family: var(--font-main);
    letter-spacing: 0.3px;
    line-height: 1.5;
    white-space: nowrap;
}

.hero-button {
    display: inline-block;
    background-color: var(--accent-gold);
    color: var(--bg-primary);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    padding: 18px 40px;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    font-family: var(--font-heading);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

.hero-button:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Hero Trust Markers */
.hero-trust-markers {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-trust-marker {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-trust-marker-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.hero-trust-marker-text {
    font-size: 0.85rem;
    color: rgba(253, 252, 240, 0.9);
    font-family: var(--font-main);
    line-height: 1.4;
    text-align: left;
}

.hero-trust-marker-text strong {
    display: block;
    font-size: 1rem;
    color: var(--accent-gold);
    font-weight: 600;
}

/* Hero CTA Buttons */
.hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hero-button-primary {
    background-color: var(--accent-gold);
    color: var(--bg-primary);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

.hero-button-primary:hover {
    background-color: var(--accent-gold-hover);
    box-shadow: 0 6px 30px rgba(255, 215, 0, 0.5);
}

.hero-button-secondary {
    background-color: transparent;
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
    box-shadow: none;
}

.hero-button-secondary:hover {
    background-color: var(--accent-gold);
    color: var(--bg-primary);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

@media (max-width: 768px) {
    .hero-trust-markers {
        gap: 20px;
    }
    
    .hero-trust-marker-icon {
        width: 28px;
        height: 28px;
    }
    
    .hero-trust-marker-text {
        font-size: 0.8rem;
    }
    
    .hero-trust-marker-text strong {
        font-size: 0.9rem;
    }
    
    .hero-cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-button-primary,
    .hero-button-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

/* ======================= PROCESS SECTION ======================= */
.process-section {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--text-primary);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.step {
    background-color: var(--bg-card);
    padding: 40px 30px;
    border-radius: 0;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-gold);
}

.step-icon {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 20px;
    line-height: 1;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.step p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ======================= FAQ SECTION ======================= */
.faq-section {
    padding: 80px 0;
    background-color: var(--bg-primary);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 25px 0;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--accent-gold);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
    color: var(--accent-gold);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-answer p {
    padding: 0 0 25px 0;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* ======================= ARTICLES ======================= */
.articles-section {
    padding: 100px 0 80px;
    background-color: var(--bg-primary);
}

.articles-page-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 15px 0;
    letter-spacing: 1px;
}

.articles-page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0 0 50px 0;
    font-family: var(--font-main);
    letter-spacing: 0.3px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.article-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    transition: var(--transition);
}

.article-card:hover {
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.article-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: var(--bg-card);
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card:hover .article-card-image img {
    transform: scale(1.05);
}

.article-card-content {
    padding: 30px;
}

.article-card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 15px 0;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

.article-card-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 15px 0;
    font-family: var(--font-main);
}

.article-card-date {
    font-size: 0.85rem;
    color: var(--accent-gold);
    font-family: var(--font-main);
    letter-spacing: 0.3px;
}

/* Article Single Page */
.article-single-section {
    padding: 100px 0 80px;
    background-color: var(--bg-primary);
}

.article-header {
    margin-bottom: 40px;
}

.article-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 20px 0;
    line-height: 1.3;
    letter-spacing: 1px;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-family: var(--font-main);
}

.article-date,
.article-reading-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-featured-image {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 50px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    font-family: var(--font-main);
    line-height: 1.8;
    color: var(--text-primary);
}

.article-content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin: 40px 0 20px 0;
    letter-spacing: 0.5px;
}

.article-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 30px 0 15px 0;
}

.article-content p {
    margin: 0 0 20px 0;
    font-size: 1.05rem;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.master-tip {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(255, 215, 0, 0.02) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-left: 4px solid var(--accent-gold);
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 0;
}

.master-tip-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--accent-gold);
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.master-tip-header svg {
    color: var(--accent-gold);
}

.master-tip p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.article-footer {
    max-width: 800px;
    margin: 60px auto 0;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.article-back-link {
    color: var(--accent-gold);
    text-decoration: none;
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: var(--transition);
}

.article-back-link:hover {
    color: var(--accent-gold-hover);
    text-decoration: underline;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-family: var(--font-main);
}

.share-link {
    color: var(--accent-gold);
    text-decoration: none;
    transition: var(--transition);
}

.share-link:hover {
    color: var(--accent-gold-hover);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
}

/* ======================= GALLERY ======================= */
.gallery-section {
    padding: 100px 0 80px;
    background-color: var(--bg-primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-gold);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ======================= CATALOG ======================= */
.catalog-section {
    padding: 80px 0;
    background-color: var(--bg-primary);
}

.catalog-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 12px 30px;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
}

.filter-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.filter-btn.active {
    background-color: var(--accent-gold);
    color: var(--bg-primary);
    border-color: var(--accent-gold);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Catalog page - strict 3 columns on desktop */
.catalog-page-section .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1200px) {
    .catalog-page-section .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .catalog-page-section .catalog-grid {
        grid-template-columns: 1fr;
    }
}

/* Catalog Page */
.catalog-page-section {
    padding: 80px 0;
    background-color: var(--bg-primary);
}

.catalog-page-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin-top: 30px;
}

.catalog-sidebar {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 30px 20px;
    height: fit-content;
    position: sticky;
    top: 100px;
    max-width: 260px;
    width: 100%;
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin: 0 0 30px 0;
    letter-spacing: 1px;
}

.filter-group {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.filter-group:last-of-type {
    border-bottom: none;
    margin-bottom: 25px;
}

.filter-group-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 15px 0;
    letter-spacing: 0.5px;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-list li {
    margin-bottom: 12px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.filter-checkbox:hover {
    color: var(--accent-gold);
}

.filter-checkbox input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    position: relative;
    flex-shrink: 0;
    transition: var(--transition);
}

.checkbox-custom .stock-indicator-small {
    display: none;
}

.filter-checkbox input[type="checkbox"]:checked + .checkbox-custom {
    border-color: var(--accent-gold);
    background-color: rgba(255, 215, 0, 0.1);
}

.filter-checkbox input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--accent-gold);
    font-size: 0.8rem;
    font-weight: 600;
}

.stock-indicator-small {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--accent-gold);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s ease-in-out infinite;
}

.filter-reset-btn {
    width: 100%;
    padding: 12px 20px;
    background-color: transparent;
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}

.filter-reset-btn:hover {
    background-color: rgba(255, 215, 0, 0.1);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.catalog-main {
    min-height: 500px;
}

.catalog-page-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 40px 0;
    letter-spacing: 1px;
}

/* Catalog More Button */
.catalog-more-section {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 60px;
}

.catalog-more-button {
    display: inline-block;
    background-color: var(--accent-gold);
    color: var(--bg-primary);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    padding: 20px 50px;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    font-family: var(--font-heading);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

.catalog-more-button:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 215, 0, 0.4);
}

/* SEO Text Block */
.catalog-seo-text {
    max-width: 900px;
    margin: 50px auto 0;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-family: var(--font-main);
    line-height: 1.8;
    color: var(--text-primary);
    font-size: 1rem;
}

.catalog-seo-text p {
    margin: 0;
}

@media (max-width: 1024px) {
    .catalog-page-layout {
        grid-template-columns: 1fr;
    }
    
    .catalog-sidebar {
        position: static;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .catalog-page-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .catalog-sidebar {
        width: 100%;
        max-width: none;
        margin: 0 0 24px 0;
        padding: 20px 16px;
    }
}

/* ======================= TABLET CATALOG FILTER BAR (768px–1024px) ======================= */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Один столбец: сверху — горизонтальная панель фильтров, ниже — товары */
    .catalog-page-layout {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-top: 24px;
    }

    /* Сайдбар превращаем в премиальную панель инструментов */
    .catalog-sidebar {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-end;
        gap: 16px 24px;
        width: 100%;
        max-width: none;
        margin: 0 0 24px 0;
        padding: 20px 24px;
        background: radial-gradient(circle at top left,
            rgba(212, 175, 55, 0.18) 0,
            rgba(10, 10, 10, 0.98) 55%,
            #000000 100%);
        border: 1px solid rgba(212, 175, 55, 0.35);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
        position: relative;
        top: 0;
    }

    /* Заголовок «Фильтры» — строка-заголовок панели */
    .catalog-sidebar .sidebar-title {
        flex-basis: 100%;
        margin: 0 0 4px 0;
        font-size: 1.1rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    /* Группы фильтров — компактные колонки в ряд */
    .catalog-sidebar .filter-group {
        border-bottom: none;
        margin: 0;
        padding: 0;
        flex: 1 1 160px;
        min-width: 160px;
    }

    .catalog-sidebar .filter-group.price-filter-group {
        flex: 2 1 260px;
    }

    .catalog-sidebar .filter-group-title {
        margin-bottom: 8px;
        font-size: 0.9rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--text-secondary);
    }

    .catalog-sidebar .filter-list li {
        margin-bottom: 6px;
    }

    .catalog-sidebar .filter-checkbox {
        font-size: 0.85rem;
    }

    /* Блок цены — слегка уплотняем внутригрупповые отступы */
    .catalog-sidebar .price-filter-group #price-slider {
        margin-top: 6px;
    }

    .catalog-sidebar .price-inputs {
        margin-top: 8px;
        gap: 10px;
    }

    .catalog-sidebar .price-input span {
        font-size: 0.8rem;
        color: var(--text-secondary);
    }

    .catalog-sidebar .price-input input {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    /* Кнопка «Сбросить фильтры» — справа, как утилитарная команда */
    .catalog-sidebar .filter-reset-btn {
        flex: 0 0 auto;
        align-self: stretch;
        max-width: 170px;
        margin-left: auto;
        margin-top: auto;
        padding: 10px 18px;
        font-size: 0.8rem;
        letter-spacing: 0.12em;
        border-radius: 999px;
        border-color: rgba(212, 175, 55, 0.7);
        text-transform: uppercase;
        background-color: transparent;
    }

    .catalog-sidebar .filter-reset-btn:hover {
        background-color: rgba(212, 175, 55, 0.12);
    }

    /* Заголовок каталога и тулбар сортировки — чуть ближе к панели фильтров */
    .catalog-main {
        min-height: 500px;
    }

    .catalog-page-title {
        margin-top: 0;
        margin-bottom: 24px;
        font-size: 2.2rem;
    }

    .catalog-toolbar {
        justify-content: flex-end;
        margin-bottom: 16px;
    }
}

.product-card {
    background-color: transparent;
    border-radius: 0;
    overflow: visible;
    border: none;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    /* Едва заметная внутренняя тень для объема */
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

/* Stretched link для всей карточки */
.product-card-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    text-decoration: none;
}

/* Тонкий темно-серый контур для неактивных карточек */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(112, 112, 112, 0.12);
    pointer-events: none;
    transition: var(--transition);
    z-index: 1;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.3), 0 8px 32px rgba(212, 175, 55, 0.15);
}

.product-card:hover::before {
    border-color: transparent;
}

.product-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    z-index: 1;
    pointer-events: none; /* Клики проваливаются к stretched-link */
}

.product-card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: var(--transition);
}

/* Золотая рамка только вокруг изображения при hover */
.product-card:hover .product-card-image {
    outline: 2px solid var(--accent-gold);
    outline-offset: -2px;
}

/* Стикер badge на краюшке фото */
.product-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 3; /* Выше stretched link */
    border-radius: 0;
    border: 1px solid var(--accent-gold);
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--accent-gold);
    font-family: var(--font-main);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    pointer-events: none; /* Не блокирует клик по карточке */
}

.product-card-info {
    padding: 20px;
    position: relative;
    z-index: 1;
    pointer-events: none; /* Клики проваливаются к stretched-link */
}

.product-card-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--accent-gold);
    font-family: var(--font-heading);
    letter-spacing: 0.2px;
    line-height: 1.3;
    transition: var(--transition);
    pointer-events: none; /* Клики проваливаются к stretched-link */
}

/* Эффект при наведении на карточку */
.product-card:hover .product-card-title {
    color: var(--accent-gold-hover);
}

.product-card-price {
    font-size: 1.1rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
    font-family: var(--font-main);
    letter-spacing: 0.2px;
    line-height: 1.4;
    pointer-events: none; /* Клики проваливаются к stretched-link */
}

.product-card-price .price-prefix {
    font-size: 0.9rem;
    font-weight: 400;
    margin-right: 4px;
}

.product-card-price .price-amount {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.product-card-price .price-currency {
    font-size: 0.9rem;
    font-weight: 400;
    margin-left: 4px;
}

.product-card-badge.stock {
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
}

.product-card-badge.custom {
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(253, 252, 240, 0.3);
    color: rgba(253, 252, 240, 0.7);
}

/* Кнопка "Подробнее" на всю ширину */
.product-card-button {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background-color: transparent;
    color: var(--accent-gold);
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: 1px solid var(--accent-gold);
    border-radius: 0;
    font-family: var(--font-main);
    margin-top: 15px;
    position: relative;
    z-index: 2; /* Выше остальных элементов карточки */
    pointer-events: auto; /* ВКЛЮЧАЕМ взаимодействие для кнопки */
}

/* Ховер ТОЛЬКО для самой кнопки (изолированный) */
.product-card-button:hover {
    background-color: var(--accent-gold);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* ======================= PRODUCT DELIVERY INFO ======================= */
.product-delivery-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 215, 0, 0.1);
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.product-delivery-info svg {
    color: var(--accent-gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.product-delivery-info span {
    flex: 1;
}

.delivery-link {
    color: var(--accent-gold);
    text-decoration: underline;
    text-decoration-color: rgba(255, 215, 0, 0.4);
    transition: var(--transition);
}

.delivery-link:hover {
    color: var(--accent-gold-hover);
    text-decoration-color: var(--accent-gold);
}

/* ======================= RETURN/DELIVERY PAGE ======================= */
.return-section {
    padding: 100px 0 80px;
    background-color: var(--bg-primary);
}

.return-page-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 15px 0;
    letter-spacing: 1px;
    text-align: center;
}

.return-page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0 0 50px 0;
    font-family: var(--font-main);
    letter-spacing: 0.3px;
    text-align: center;
}

.tariff-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin: 50px 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.tariff-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 40px 30px;
    position: relative;
    transition: var(--transition);
}

.tariff-card:hover {
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.tariff-card-recommended {
    border: 2px solid var(--accent-gold);
    background-color: rgba(255, 215, 0, 0.03);
}

.tariff-card-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background-color: var(--accent-gold);
    color: var(--bg-primary);
    padding: 6px 15px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: var(--font-heading);
}

.tariff-card-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin: 0 0 20px 0;
    letter-spacing: 0.5px;
}

.tariff-card-content {
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.8;
}

.tariff-card-content p {
    margin: 0 0 25px 0;
    font-size: 1rem;
}

.tariff-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tariff-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.tariff-features li:last-child {
    margin-bottom: 0;
}

.tariff-features svg {
    color: var(--accent-gold);
    flex-shrink: 0;
}

.return-policy-section {
    max-width: 900px;
    margin: 60px auto 0;
    padding: 40px 30px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.return-policy-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin: 0 0 30px 0;
    letter-spacing: 0.5px;
    text-align: center;
}

.return-policy-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.return-policy-item {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--accent-gold);
}

.return-policy-item-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin: 0 0 10px 0;
    letter-spacing: 0.3px;
}

.return-policy-item p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
    font-family: var(--font-main);
}

.return-legal-text {
    max-width: 900px;
    margin: 40px auto 0;
    padding: 20px 30px;
    background-color: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: center;
    font-family: var(--font-main);
}

.return-legal-text p {
    margin: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    padding-top: 20px;
    margin-top: 20px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: var(--font-main);
}

@media (max-width: 768px) {
    .tariff-cards {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .tariff-card {
        padding: 30px 20px;
    }
    
    .return-page-title {
        font-size: 2rem;
    }
}

/* ======================= PRODUCT PAGE ======================= */
.product-page {
    padding: 100px 0 40px;
}

main {
    padding-top: 70px;
}

/* Учитываем фиксированный хедер и нижнюю мобильную панель корзины */
@media (max-width: 768px) {
    main {
        padding-top: 80px;   /* немного больше высоты хедера */
        padding-bottom: 80px; /* чтобы контент не уезжал под липкую панель корзины */
    }
}

.reviews-section {
    padding: 100px 0 80px;
    background-color: var(--bg-primary);
}

.breadcrumbs {
    margin-bottom: 30px;
    font-size: 0.9rem;
    padding: 15px 0;
}

.breadcrumbs ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    color: var(--text-muted);
    margin-left: 8px;
}

.breadcrumbs a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumbs a:hover {
    color: var(--accent-gold-hover);
    text-decoration: underline;
}

.breadcrumbs span {
    color: var(--text-secondary);
}

.product-main-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.product-gallery {
    position: relative;
    width: 100%;
    max-width: 100%;
    /* overflow убран — он блокирует position: sticky */
}

/* ======================= STICKY GALLERY (Desktop) ======================= */
@media (min-width: 1025px) {
    .product-gallery {
        position: sticky;
        top: 90px; /* Отступ от фиксированного header (70px + 20px margin) */
        align-self: start; /* start вместо flex-start — для Grid-контейнера */
        max-height: calc(100vh - 110px); /* Ограничение по высоте экрана */
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: var(--accent-gold) var(--bg-secondary);
    }
    
    .product-gallery::-webkit-scrollbar {
        width: 6px;
    }
    
    .product-gallery::-webkit-scrollbar-track {
        background: var(--bg-secondary);
    }
    
    .product-gallery::-webkit-scrollbar-thumb {
        background: var(--accent-gold);
        border-radius: 3px;
    }
    
    .product-gallery::-webkit-scrollbar-thumb:hover {
        background: var(--accent-gold-hover);
    }
}

.product-gallery-main {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    overflow: visible;
    margin-bottom: 15px;
    /* Тонкая золотая рамка (галерейный стиль) */
    border: 2px solid var(--accent-gold);
    /* Черные отступы для эффекта "паспарту" */
    padding: 12px;
    background-color: var(--bg-primary);
}

.product-gallery-main .swiper {
    width: 100%;
    max-width: 100%;
}

.product-gallery-main .swiper-wrapper {
    width: 100%;
    max-width: 100%;
}

.product-gallery-main .swiper {
    background-color: var(--bg-primary);
}

.product-gallery-main .swiper-slide {
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-primary);
    position: relative;
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
}

.product-gallery-main .swiper-slide a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    background-color: var(--bg-primary);
}

.product-gallery-main .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    box-sizing: border-box;
}

.product-gallery-thumbs {
    height: 100px;
    margin-top: 15px;
    /* iOS Safari fix: предотвращаем схлопывание области */
    -webkit-overflow-scrolling: touch;
}

.product-gallery-thumbs .swiper-slide {
    width: auto !important;
    height: 100px;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    overflow: hidden;
    border: 1px solid transparent;
    background-color: var(--bg-primary);
}

.product-gallery-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-color: var(--bg-primary);
}

.product-gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--accent-gold);
    border-width: 1px;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.product-info-top {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-info-bottom {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Цена + CTA сразу после заголовка — кнопки в первом экране */
.product-cta-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Блок "Варианты этой модели" — компактно, без картинок */
.product-variants-block {
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
}
.product-variants-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.product-variants-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.product-variant-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: 0.85rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition);
}
a.product-variant-chip:hover {
    border-color: var(--accent-gold);
    color: var(--text-primary);
}
.product-variant-chip.product-variant-current {
    border-color: var(--accent-gold);
    background: rgba(170, 135, 64, 0.1);
    color: var(--text-primary);
    cursor: default;
}
.product-variant-chip .variant-badge-stock {
    font-size: 0.7rem;
    padding: 1px 5px;
    background: var(--success-color);
    color: #fff;
    border-radius: 2px;
}

.product-sku {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-rating .stars {
    font-size: 1.3rem;
    color: var(--accent-gold);
    letter-spacing: 3px;
    cursor: pointer;
    transition: var(--transition);
}

.product-rating .stars:hover {
    transform: scale(1.1);
}

.product-rating .rating-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.product-rating .rating-link {
    color: var(--accent-gold);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent-gold);
    transition: var(--transition);
    font-weight: 400;
}

.product-rating .rating-link:hover {
    color: var(--accent-gold-hover);
    border-bottom-color: var(--accent-gold-hover);
    border-bottom-style: solid;
}

.product-price {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--accent-gold);
}

.product-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--text-secondary);
    list-style: none;
}

.product-features-list li::before {
    display: none;
}

.product-features-list li svg {
    flex-shrink: 0;
    color: var(--accent-gold);
    width: 24px;
    height: 24px;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--bg-primary);
    border: none;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
    text-align: center;
}

.btn-secondary:hover {
    background-color: var(--accent-gold);
    color: var(--bg-primary);
}

.btn-link {
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px dotted var(--accent-gold);
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
}

.btn-link:hover {
    color: var(--accent-gold-hover);
    border-bottom-color: var(--accent-gold-hover);
}

.btn-success,
.btn-primary.success,
button.success,
.added {
    background-color: var(--success-color);
    color: #fdfcf0;
    border: none;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}

.btn-success:hover,
.btn-primary.success:hover,
button.success:hover,
.added:hover {
    background-color: #2d5a4c;
    color: #fdfcf0;
}

.product-tabs {
    margin-top: 60px;
}

.product-tabs-nav {
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 40px;
}

.product-tabs-nav ul {
    display: flex;
    list-style: none;
    gap: 0;
    flex-wrap: wrap;
}

.tab-button {
    background: none;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    font-family: var(--font-main);
    position: relative;
}

.tab-button:hover {
    color: var(--accent-gold);
}

.tab-button.active {
    color: var(--accent-gold);
    border-bottom-color: var(--accent-gold);
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease-in;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-accordion-header {
    display: none;
    width: 100%;
    padding: 15px 20px;
    margin: 0;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-bottom: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    text-align: left;
    font-family: var(--font-main);
}

.tab-accordion-header:first-of-type {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.tab-accordion-header:last-of-type {
    border-bottom: 1px solid var(--border-color);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.tab-accordion-header:hover {
    background-color: var(--bg-card);
}

.tab-accordion-header.active {
    background-color: var(--accent-gold);
    color: var(--bg-primary);
    border-color: var(--accent-gold);
}

.tab-accordion-header::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.tab-accordion-header.active::after {
    content: '−';
}

.product-description p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.specifications-table {
    width: 100%;
    border-collapse: collapse;
}

.specifications-table tr {
    border-bottom: 1px solid var(--border-color);
}

.specifications-table td {
    padding: 18px 0;
    vertical-align: top;
}

.spec-param {
    width: 40%;
    font-weight: 600;
    color: var(--text-primary);
    padding-right: 20px;
}

.spec-value {
    color: var(--text-secondary);
}

.reviews-list {
    display: grid;
    gap: 30px;
}

.review-item {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 0;
    border: 1px solid var(--border-color);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.review-author {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.review-rating {
    font-size: 1.2rem;
    color: var(--accent-gold);
    letter-spacing: 2px;
}

.review-text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.review-photos {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.review-photos img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition);
}

.review-photos img:hover {
    transform: scale(1.1);
}

.review-video {
    margin-top: 15px;
}

.review-video iframe {
    width: 100%;
    max-width: 560px;
    height: 315px;
    border-radius: 0;
}

.installations-gallery {
    margin-top: 40px;
}

.installations-gallery .swiper-slide {
    height: 400px;
}

.installations-gallery .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

/* ======================= CART ======================= */
.cart-empty {
    text-align: center;
    padding: 60px 20px;
}

.cart-empty p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.cart-items {
    display: grid;
    gap: 30px;
}

.cart-list {
    display: grid;
    gap: 20px;
}

.cart-item {
    background-color: var(--bg-card);
    padding: 20px;
    border-radius: 0;
    border: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 20px;
    align-items: center;
}

.cart-item-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 0;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-item-title {
    font-size: 1.2rem;
        font-weight: 600;
    color: var(--text-primary);
}

.cart-item-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--error-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 10px;
    transition: var(--transition);
}

.cart-item-remove:hover {
    transform: scale(1.2);
}

.cart-summary {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 0;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
        font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.cart-total span:last-child {
    color: var(--accent-gold);
    font-size: 2rem;
}

/* ======================= MODAL ======================= */
.modal,
.review-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal.active,
.review-modal[style*="flex"] {
    display: flex;
}

.review-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.review-modal-content {
    position: relative;
    background-color: var(--bg-card);
    border-radius: 0;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2001;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.review-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-primary);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.review-modal-close:hover {
    color: var(--accent-gold);
    transform: rotate(90deg);
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-form input,
.review-form textarea,
.review-form select {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 215, 0, 0.1);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.review-form input::placeholder,
.review-form textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.review-form input:focus,
.review-form textarea:focus,
.review-form select:focus {
    outline: none;
    border-color: var(--accent-gold);
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.1);
}

.review-form-submit {
    width: 100%;
    padding: 15px;
    background-color: var(--accent-gold);
    color: var(--bg-primary);
    border: none;
    border-radius: 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
}

.review-form-submit:hover {
    background-color: var(--accent-gold-hover);
}

.review-card {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 0;
    border: 1px solid var(--border-color);
}

.review-photo {
    margin-top: 15px;
}

.review-photo img {
    max-width: 100%;
    border-radius: 0;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background-color: var(--bg-card);
    border-radius: 0;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2001;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-primary);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--accent-gold);
    transform: rotate(90deg);
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 2rem;
    color: var(--text-primary);
}

/* ======================= FORMS & VALIDATION ======================= */
.custom-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 0;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-main);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input[type="file"] {
    padding: 8px;
    cursor: pointer;
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: var(--error-color);
}

.error-message {
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 4px;
    display: none;
}

.error-message.show {
    display: block;
}

.rating-input {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stars-selector {
    display: flex;
    gap: 5px;
}

.star {
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.star:hover,
.star.active {
    color: var(--accent-gold);
    transform: scale(1.1);
}

.file-preview {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.file-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 0;
    overflow: hidden;
}

.file-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview-item .remove-file {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: var(--error-color);
    color: var(--text-primary);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-submit {
    position: relative;
}

.btn-text {
    display: inline-block;
}

.btn-loader {
    display: none;
}

.btn-submit.loading .btn-text {
    opacity: 0;
}

.btn-submit.loading .btn-loader {
    display: inline-block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* ======================= SWIPER CUSTOM STYLES ======================= */
.swiper-button-next,
.swiper-button-prev {
    background: none !important;
    width: 44px;
    height: 44px;
    color: var(--accent-gold) !important;
    transition: var(--transition);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 24px;
    font-weight: 700;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    transform: scale(1.1);
}

.swiper-pagination-bullet {
    background-color: var(--text-muted);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background-color: var(--accent-gold);
}

/* ======================= FOOTER ======================= */
.footer {
    background-color: #000000;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 60px 0 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: inline-block;
    text-decoration: none;
    margin-bottom: 15px;
}

.footer-logo img {
    height: 40px;
    width: auto;
    display: block;
    opacity: 0.9;
    transition: var(--transition);
}

.footer-logo:hover img {
    opacity: 1;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-family: var(--font-main);
    font-weight: 300;
}

.footer-column-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin: 0 0 20px 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-family: var(--font-main);
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

.footer-legal {
    margin-top: 10px;
}

.footer-legal p {
    margin: 0 0 5px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1.6;
    font-family: var(--font-main);
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-legal {
    margin-top: 10px;
}

.footer-legal p {
    margin: 0 0 5px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1.6;
    font-family: var(--font-main);
}

.footer-phone {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.3px;
    transition: var(--transition);
    font-family: var(--font-main);
}

.footer-phone .phone-code {
    color: #737373;
    font-weight: 500;
}

.footer-phone:hover {
    color: var(--accent-gold);
}

.footer-phone:hover .phone-code {
    color: #737373;
}

.footer-email {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.3px;
    transition: var(--transition);
    font-family: var(--font-main);
    display: block;
    margin-top: 5px;
}

.footer-email:hover {
    color: var(--accent-gold);
}

/* ======================= RESPONSIVE ======================= */
@media (max-width: 1024px) {
    .header-nav,
    .header-phone {
        display: none;
    }
    
    .mega-menu,
    .dropdown-menu {
        display: none;
    }

    .mobile-nav-button {
        display: block;
    }

    /* Логотип не должен быть слишком мелким на мобильных */
    .logo img {
        height: 36px;
        min-height: 36px;
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .product-main {
        grid-template-columns: 1fr;
    }

    .catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    /* Адаптивное фоновое изображение для планшетов */
    .hero-section {
        background-image: url('../img/hero2.jpg');
        background-size: cover;
        background-position: center center;
    }
}

@media (max-width: 768px) {
    /* Логотип на мобильных - минимальный размер */
    .logo img {
        height: 32px;
        min-height: 32px;
    }

    /* Блок "4 шага" — одна колонка на мобильных */
    .process-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Адаптивное фоновое изображение для мобильных устройств */
    .hero-section {
        background-image: url('../img/hero-mobile.jpg');
        background-size: cover;
        background-position: center center;
        /* iOS Safari fix: учитываем фиксированный хедер (70px) */
        padding-top: 70px;
        min-height: calc(100vh + 70px);
    }

    /* Усиленное затемнение для мобильных устройств */
    .hero-overlay {
        background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.85) 25%, rgba(0, 0, 0, 0.75) 50%, rgba(0, 0, 0, 0.5) 75%, rgba(0, 0, 0, 0.2) 100%);
    }

    /* Размытие фона под текстом для лучшей читаемости */
    .hero-content {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        width: 100%;
        max-width: calc(100vw - 40px);
        box-sizing: border-box;
    }

    .hero-title {
        font-size: 2.5rem;
        font-weight: 600;
        line-height: 1.3;
        letter-spacing: 0.01em;
        word-spacing: 0.05em;
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.7);
    }

    .hero-subtitle {
        font-size: 1.15rem;
        line-height: 1.6;
        letter-spacing: 0.02em;
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.7);
        font-weight: 400;
    }

    /* Усиленная тень для кнопки на мобильных */
    .hero-button {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8), 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(0, 0, 0, 0.3);
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Портретная ориентация для планшетов и мобильных */
@media (orientation: portrait) and (max-width: 1024px) {
    .hero-section {
        background-image: url('../img/hero-mobile.jpg');
        background-size: cover;
        background-position: center center;
    }

    .page-title {
        font-size: 2rem;
    }

    .product-title {
        font-size: 2rem;
    }

    .product-main-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-gallery-main .swiper-slide {
        height: 400px;
    }

    .product-tabs-nav {
        display: none;
    }

    .tab-accordion-header {
        display: block;
    }

    .tab-panel {
        display: block !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        padding: 0;
    }

    .tab-panel.active {
        max-height: 2000px;
        padding: 20px 0;
    }

    .breadcrumbs {
        font-size: 0.85rem;
    }

    .breadcrumbs ul {
        gap: 4px;
    }

    .tab-accordion-header:hover {
        background-color: var(--bg-card);
    }

    .tab-accordion-header.active {
        background-color: var(--accent-gold);
        color: var(--bg-primary);
        border-color: var(--accent-gold);
    }

    .tab-accordion-header::after {
        content: '+';
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.5rem;
        font-weight: 300;
        transition: transform 0.3s ease;
    }

    .tab-accordion-header.active::after {
        content: '−';
    }

    .tab-panel {
        display: block !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        padding: 0;
    }

    .tab-panel.active {
        max-height: 2000px;
        padding: 20px 0;
    }

    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cart-item-image {
        margin: 0 auto;
    }

    .modal-content {
        padding: 30px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-column {
        align-items: center;
    }

    .footer-contacts {
        align-items: center;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
        font-weight: 600;
        line-height: 1.3;
        letter-spacing: 0.01em;
        word-spacing: 0.05em;
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.7);
        padding: 0 15px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.6;
        letter-spacing: 0.01em;
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.7);
        font-weight: 400;
        padding: 0 15px;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .catalog-filters {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
    }
}

/* ======================= 404 ERROR PAGE ======================= */
.error-404-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background-color: var(--bg-primary);
}

.error-404-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.error-404-title {
    font-family: var(--font-heading);
    font-size: 8rem;
    font-weight: 600;
    color: var(--accent-gold);
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
    text-shadow: 0 4px 20px rgba(170, 135, 64, 0.3);
}

.error-404-subtitle {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.error-404-text {
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    letter-spacing: 0.3px;
}

.error-404-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.error-404-content .btn-primary,
.error-404-content .btn-secondary {
    margin-top: 0;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 14px 32px;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-secondary:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
        padding: 40px 0 30px;
    }

    .footer-column {
        align-items: center;
    }

    .footer-contacts {
        align-items: center;
    }

    .footer-links {
        text-align: center;
    }

    .error-404-section {
        padding: 60px 20px;
        min-height: calc(100vh - 150px);
    }

    .error-404-title {
        font-size: 5rem;
    }

    .error-404-subtitle {
        font-size: 2rem;
    }

    .error-404-text {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .error-404-title {
        font-size: 4rem;
    }

    .error-404-subtitle {
        font-size: 1.75rem;
    }

    .error-404-text {
        font-size: 0.95rem;
    }
}

/* ======================= CHECKOUT PAGE ======================= */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    margin-top: 40px;
}

.checkout-main {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.checkout-section {
    background-color: rgba(255, 255, 255, 0.02);
    padding: 30px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.checkout-section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin: 0 0 25px 0;
    letter-spacing: 0.5px;
}

.cart-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 215, 0, 0.05);
    transition: var(--transition);
}

.cart-item:hover {
    border-color: rgba(255, 215, 0, 0.15);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

.cart-item-price {
    font-size: 1rem;
    color: var(--accent-gold);
    font-weight: 500;
}

.cart-item-remove {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    background-color: transparent;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-remove:hover {
    background-color: rgba(255, 215, 0, 0.1);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.checkout-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.checkout-form .form-group {
    margin-bottom: 0;
}

.checkout-form label {
    display: block;
    font-family: var(--font-main);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.checkout-form input,
.checkout-form textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 215, 0, 0.1);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.checkout-form input::placeholder,
.checkout-form textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.1);
}

.checkout-form textarea {
    resize: vertical;
    min-height: 60px;
}

.file-upload-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 215, 0, 0.1);
    cursor: pointer;
    transition: var(--transition);
}

.file-upload-label:hover {
    border-color: var(--accent-gold);
    background-color: rgba(255, 255, 255, 0.05);
}

.file-upload-label svg {
    color: var(--accent-gold);
    flex-shrink: 0;
}

.file-upload-label span {
    font-family: var(--font-main);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.checkout-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.checkout-summary {
    background-color: rgba(255, 255, 255, 0.02);
    padding: 30px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.checkout-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

.payment-method {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 215, 0, 0.1);
    cursor: pointer;
    transition: var(--transition);
}

.payment-method:hover {
    border-color: var(--accent-gold);
    background-color: rgba(255, 255, 255, 0.05);
}

.payment-method input[type="radio"] {
    margin-top: 2px;
    accent-color: var(--accent-gold);
}

.payment-method-content {
    flex: 1;
}

.payment-method-title {
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 5px;
}

.payment-method-price {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.payment-method-recommended {
    border-color: rgba(255, 215, 0, 0.3);
}

.payment-method-badge {
    position: absolute;
    top: -10px;
    right: 15px;
    padding: 2px 10px;
    background-color: var(--accent-gold);
    color: #000;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.checkout-total-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-main);
    font-size: 0.95rem;
}

.checkout-total-row span:first-child {
    color: var(--text-secondary);
}

.checkout-total-row span:last-child {
    color: var(--text-primary);
    font-weight: 500;
}

.checkout-fee-row {
    color: var(--accent-gold);
}

.checkout-fee-row span {
    color: var(--accent-gold) !important;
}

.checkout-total-final {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    font-size: 1.2rem;
    font-weight: 600;
}

.checkout-total-final span {
    color: var(--accent-gold) !important;
}

.checkout-submit-btn {
    width: 100%;
    margin-top: 25px;
    padding: 15px 30px;
    background-color: #000;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.checkout-submit-btn:hover {
    background-color: var(--accent-gold);
    color: #000;
}

.checkout-quick-order-btn {
    width: 100%;
    margin-top: 10px;
    padding: 12px 30px;
    background-color: transparent;
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    transition: var(--transition);
}

.checkout-quick-order-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background-color: rgba(255, 255, 255, 0.02);
}

/* ======================= THANK YOU PAGE ======================= */
.thank-you-page {
    min-height: calc(100vh - 400px);
    padding: 80px 0;
    background-color: var(--bg-primary);
}

.thank-you-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 215, 0, 0.1);
    text-align: center;
}

.thank-you-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.thank-you-icon svg {
    animation: checkmarkAppear 0.6s ease-out;
}

@keyframes checkmarkAppear {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

.thank-you-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin: 0 0 15px 0;
    letter-spacing: 0.5px;
}

.thank-you-subtitle {
    font-family: var(--font-main);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin: 0 0 30px 0;
}

.thank-you-text {
    margin: 0 0 40px 0;
}

.thank-you-text p {
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0 0 15px 0;
}

.thank-you-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 40px 0;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.thank-you-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-align: left;
}

.thank-you-info-item svg {
    color: var(--accent-gold);
    flex-shrink: 0;
    margin-top: 3px;
}

.thank-you-info-item strong {
    display: block;
    font-family: var(--font-main);
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.thank-you-info-item p {
    font-family: var(--font-main);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.thank-you-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
}

.btn-secondary {
    padding: 15px 35px;
    background-color: transparent;
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.btn-secondary:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background-color: rgba(255, 255, 255, 0.02);
}

/* ======================= RESPONSIVE CHECKOUT ======================= */
@media (max-width: 1024px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .checkout-form-row {
        grid-template-columns: 1fr;
    }

    .checkout-section {
        padding: 20px;
    }

    .cart-item {
        grid-template-columns: 80px 1fr auto;
        gap: 15px;
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
    }

    .thank-you-content {
        padding: 40px 20px;
    }

    .thank-you-title {
        font-size: 2rem;
    }

    .thank-you-actions {
        flex-direction: column;
    }

    .thank-you-actions a {
        width: 100%;
        text-align: center;
    }
}

/* ======================= ABOUT PAGE & LEGAL PAGES ======================= */
.legal-page,
.about-page {
    min-height: calc(100vh - 400px);
    padding: 80px 0;
    background-color: var(--bg-primary);
}

.legal-content,
.about-content {
    max-width: 900px;
    margin: 40px auto 0;
}

.legal-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
    padding: 20px 30px;
    background-color: rgba(255, 215, 0, 0.05);
    border-left: 3px solid var(--accent-gold);
}

.legal-section,
.about-section {
    margin-bottom: 50px;
}

.legal-section h2,
.about-section-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin: 0 0 25px 0;
    letter-spacing: 0.5px;
}

.legal-section p,
.about-section p {
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0 0 20px 0;
}

.legal-section ul,
.about-list {
    margin: 20px 0;
    padding-left: 30px;
}

.legal-section li,
.about-list li {
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.contact-info-block {
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--accent-gold);
    margin-top: 20px;
}

.contact-info-block p {
    margin: 8px 0;
}

.contact-info-block a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info-block a:hover {
    text-decoration: underline;
}

/* About Page Specific */
.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.about-feature {
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: var(--transition);
}

.about-feature:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
}

.about-feature svg {
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.about-feature h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 15px 0;
}

.about-feature p {
    margin: 0;
    font-size: 0.95rem;
}

.about-cta {
    padding: 40px;
    background-color: rgba(255, 215, 0, 0.05);
    border: 1px solid var(--accent-gold);
    text-align: center;
    margin-top: 60px;
}

.about-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

/* ======================= PRODUCTION GALLERY ======================= */
.production-gallery {
    margin-top: 50px;
    padding: 40px;
    background-color: rgba(212, 175, 55, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
}

.production-photos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.production-photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    background-color: var(--bg-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.production-photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.15);
}

.production-photo-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.production-photo-item:hover img {
    transform: scale(1.05);
}

.production-photo-caption {
    padding: 15px;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    background-color: rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .production-gallery {
        padding: 25px 20px;
    }
    
    .production-photos {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .production-photo-item img {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .about-features {
        grid-template-columns: 1fr;
    }

    .about-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-cta-buttons a {
        width: 100%;
        max-width: 300px;
    }

    .legal-intro {
        padding: 15px 20px;
    }

    .contact-info-block {
        padding: 20px;
    }
}

/* ======================= FORM VALIDATION ======================= */
.form-group {
    position: relative;
}

.form-error {
    display: none;
    font-family: var(--font-main);
    font-size: 12px;
    color: var(--accent-gold);
    margin-top: 5px;
    opacity: 0;
    animation: fadeInError 0.3s ease-out forwards;
}

.form-error.show {
    display: block;
}

@keyframes fadeInError {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: var(--accent-gold) !important;
    background-color: rgba(255, 215, 0, 0.05) !important;
}

.form-group input.error:focus,
.form-group textarea.error:focus,
.form-group select.error:focus {
    border-color: var(--accent-gold) !important;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.1);
}

/* Для форм на страницах товаров */
.review-form .form-group {
    position: relative;
}

.review-form .form-error {
    color: var(--accent-gold);
}

/* Для формы чекаута */
.checkout-form .form-error {
    color: var(--accent-gold);
}

/* ======================= FIRE ATMOSPHERE / SPARK ======================= */
.fire-atmosphere {
    position: fixed;
    right: 32px;
    bottom: 120px;
    width: 240px;
    max-width: 60vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 950;
    pointer-events: none; /* кликаем только по дочерним элементам */
}

.fire-atmosphere canvas {
    width: 220px;
    height: 220px;
    max-width: 100%;
    display: block;
    filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.45));
    pointer-events: auto;
}

.fire-atmosphere-toggle,
.fire-spark-cta {
    pointer-events: auto;
    font-family: var(--font-main);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.6);
    background: rgba(0, 0, 0, 0.9);
    color: #fdfcf0;
    padding: 8px 16px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7);
}

.fire-atmosphere-toggle:hover,
.fire-spark-cta:hover {
    background: rgba(212, 175, 55, 0.15);
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.5);
    transform: translateY(-1px);
}

.fire-spark-cta {
    font-size: 0.78rem;
    line-height: 1.5;
    white-space: normal;
    padding-inline: 18px;
    background: radial-gradient(circle at top, rgba(212, 175, 55, 0.2), rgba(0, 0, 0, 0.95));
    text-shadow:
        0 0 6px rgba(212, 175, 55, 0.8),
        0 0 18px rgba(212, 175, 55, 0.9);
}

.fire-spark-cta-accent {
    display: inline-block;
    font-weight: 600;
}

.fire-atmosphere--enabled .fire-atmosphere-toggle {
    background: rgba(212, 175, 55, 0.16);
    color: #000;
    box-shadow: 0 0 22px rgba(212, 175, 55, 0.7);
}

@media (max-width: 768px) {
    .fire-atmosphere {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        bottom: 96px; /* немного выше мобильной панели корзины */
        width: min(260px, 80vw);
        max-width: 80vw;
        align-items: center;
        gap: 8px;
    }

    .fire-atmosphere canvas {
        width: 200px;
        height: 200px;
    }

    .fire-atmosphere-toggle,
    .fire-spark-cta {
        font-size: 0.72rem;
        padding-inline: 14px;
    }
}

/* ======================= RECENTLY VIEWED SECTION ======================= */
.recently-viewed-section {
    margin-top: 60px;
    padding: 40px 0;
}

/* Desktop: Табы */
.recently-viewed-tabs {
    display: block;
}

.recently-viewed-accordion {
    display: none;
}

.recently-viewed-tabs-nav {
    margin-bottom: 30px;
}

.recently-viewed-tabs-nav ul {
    display: flex;
    list-style: none;
    gap: 0;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.recently-viewed-tab-button {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-main);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-transform: none;
}

.recently-viewed-tab-button:hover {
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.05);
}

.recently-viewed-tab-button.active {
    color: var(--accent-gold);
    border-bottom-color: var(--accent-gold);
}

.recently-viewed-tabs-content {
    margin-top: 30px;
}

.recently-viewed-tab-panel {
    display: none;
}

 .recently-viewed-tab-panel.active {
    display: block;
}

/* Mobile: Аккордеон */
@media (max-width: 767px) {
    .recently-viewed-tabs {
        display: none;
    }

    .recently-viewed-accordion {
        display: block;
    }

    .recently-viewed-accordion-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        background: var(--bg-secondary);
        border: 1px solid rgba(212, 175, 55, 0.3);
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-family: var(--font-heading);
        font-size: 18px;
        font-weight: 600;
        color: var(--text-primary);
    }

    .recently-viewed-accordion-header:hover {
        background: rgba(212, 175, 55, 0.05);
        border-color: rgba(212, 175, 55, 0.5);
    }

    .recently-viewed-accordion-header.active {
        border-color: var(--accent-gold);
        background: rgba(212, 175, 55, 0.1);
    }

    .recently-viewed-accordion-header .accordion-icon {
        transition: transform 0.3s ease;
        color: var(--accent-gold);
    }

    .recently-viewed-accordion-header.active .accordion-icon {
        transform: rotate(180deg);
    }

    .recently-viewed-accordion-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        margin-top: 15px;
    }

    .recently-viewed-accordion-content.active {
        max-height: 2000px;
    }
}

/* Слайдер с карточками */
.recently-viewed-slider {
    position: relative;
    padding: 20px 0 50px;
}

.recently-viewed-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.recently-viewed-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-gold);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.3);
}

.recently-viewed-card-image {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    background: var(--bg-primary);
}

.recently-viewed-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recently-viewed-card:hover .recently-viewed-card-image img {
    transform: scale(1.05);
}

.recently-viewed-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.recently-viewed-card-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recently-viewed-card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-gold);
    margin-top: auto;
}

.recently-viewed-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 16px;
}

.recently-viewed-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 16px;
}

/* Кнопки навигации Swiper */
.recently-viewed-slider .swiper-button-next,
.recently-viewed-slider .swiper-button-prev {
    color: var(--accent-gold);
    background: rgba(0, 0, 0, 0.7);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.recently-viewed-slider .swiper-button-next:hover,
.recently-viewed-slider .swiper-button-prev:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--accent-gold);
    transform: scale(1.1);
}

.recently-viewed-slider .swiper-button-next::after,
.recently-viewed-slider .swiper-button-prev::after {
    font-size: 20px;
    font-weight: 700;
}

.recently-viewed-slider .swiper-pagination-bullet {
    background: rgba(212, 175, 55, 0.5);
    opacity: 1;
    width: 10px;
    height: 10px;
}

.recently-viewed-slider .swiper-pagination-bullet-active {
    background: var(--accent-gold);
    width: 12px;
    height: 12px;
}

/* Адаптивность */
@media (max-width: 1023px) {
    .recently-viewed-section {
        margin-top: 40px;
        padding: 30px 0;
    }
}

@media (max-width: 767px) {
    .recently-viewed-section {
        margin-top: 30px;
        padding: 20px 0;
    }

    .recently-viewed-card-title {
        font-size: 14px;
    }

    .recently-viewed-card-price {
        font-size: 16px;
    }

    .recently-viewed-slider .swiper-button-next,
    .recently-viewed-slider .swiper-button-prev {
        width: 36px;
        height: 36px;
    }

    .recently-viewed-slider .swiper-button-next::after,
    .recently-viewed-slider .swiper-button-prev::after {
        font-size: 16px;
    }
}

/* ======================= TECHNOLOGY SECTION ======================= */
.technology-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.tech-content {
    display: flex;
    align-items: flex-start;
    gap: 50px;
}

.tech-text {
    flex: 1;
}

.tech-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.tech-text h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin: 30px 0 15px 0;
}

/* Premium Badge Container */
.tech-badge {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 25px;
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.08) 0%, rgba(10, 10, 10, 0.95) 100%);
    border: 2px solid var(--accent-gold);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 55, 0.15);
    transition: var(--transition);
}

.tech-badge:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(212, 175, 55, 0.25);
    transform: translateY(-3px);
}

.tech-badge-image {
    width: 180px;
    height: auto;
    overflow: hidden;
}

.tech-badge-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.2));
}

.tech-badge-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
}

.tech-badge-brand {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.tech-badge-country {
    font-family: var(--font-main);
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

@media (max-width: 1024px) {
    .tech-content {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .tech-text {
        text-align: center;
    }
    
    .tech-badge {
        max-width: 250px;
    }
}

@media (max-width: 768px) {
    .technology-section {
        padding: 60px 0;
    }
    
    .tech-badge {
        padding: 20px;
    }
    
    .tech-badge-image {
        width: 150px;
    }
    
    .tech-badge-brand {
        font-size: 0.9rem;
    }
}

/* ======================= GALLERY CTA SECTION ======================= */
.gallery-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(10, 10, 10, 0.95) 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.gallery-cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 40px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.gallery-cta-icon {
    margin-bottom: 24px;
    opacity: 0.9;
}

.gallery-cta-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.gallery-cta-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin: 0 0 28px 0;
    line-height: 1.7;
}

.gallery-cta-text strong {
    color: var(--accent-gold);
    font-weight: 500;
}

.gallery-cta-content .hero-button {
    display: inline-block;
    margin-bottom: 24px;
}

.gallery-cta-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-cta-links span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.gallery-cta-links a {
    font-size: 0.9rem;
    color: var(--accent-gold);
    text-decoration: none;
    padding: 6px 14px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: var(--transition);
}

.gallery-cta-links a:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--accent-gold);
}

/* Gallery CTA Responsive */
@media (max-width: 768px) {
    .gallery-cta-section {
        padding: 60px 0;
    }
    
    .gallery-cta-content {
        padding: 24px 20px;
    }
    
    .gallery-cta-title {
        font-size: 1.4rem;
    }
    
    .gallery-cta-text {
        font-size: 0.95rem;
    }
    
    .gallery-cta-links {
        flex-direction: column;
        gap: 8px;
    }
    
    .gallery-cta-links a {
        width: 100%;
        text-align: center;
    }
}

/* ======================= COMPARISON SECTION (Steel vs Cast Iron) ======================= */
.comparison-section {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.comparison-item {
    padding: 30px;
    border-radius: 0;
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
}

.comparison-item h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    letter-spacing: 0.5px;
}

.comparison-pro {
    border-color: var(--accent-gold);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, var(--bg-card) 100%);
}

.comparison-pro h3 {
    color: var(--accent-gold);
}

.comparison-con {
    border-color: var(--border-color);
}

.comparison-con h3 {
    color: var(--text-secondary);
}

.comparison-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comparison-item li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    line-height: 1.6;
}

.comparison-item li:last-child {
    border-bottom: none;
}

.comparison-item li strong {
    color: var(--text-primary);
}

.comparison-note {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.comparison-note strong {
    color: var(--accent-gold);
}

@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .comparison-section {
        padding: 60px 0;
    }
}

/* ======================= VIDEO REVIEWS SECTION ======================= */
.video-reviews-section {
    padding: 80px 0;
    background-color: var(--bg-primary);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: -30px 0 40px 0;
    font-family: var(--font-main);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.video-item {
    position: relative;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.video-item iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    display: block;
}

.video-caption {
    display: block;
    padding: 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    font-family: var(--font-main);
}

.video-more {
    margin-top: 40px;
}

@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .video-reviews-section {
        padding: 60px 0;
    }
}

/* ======================= QUIZ TEASER SECTION ======================= */
.quiz-teaser-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, var(--bg-secondary) 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.quiz-teaser-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 40px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.quiz-teaser-content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.quiz-teaser-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0 0 30px 0;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .quiz-teaser-section {
        padding: 60px 0;
    }
    
    .quiz-teaser-content {
        padding: 24px 20px;
    }
    
    .quiz-teaser-content h2 {
        font-size: 1.5rem;
    }
    
    .quiz-teaser-content p {
        font-size: 1rem;
    }
}

/* ======================= LEAD MAGNET SECTION ======================= */
.lead-magnet-section {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.lead-magnet-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.lead-magnet-text h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.lead-magnet-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 0 20px 0;
    line-height: 1.7;
}

.lead-magnet-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lead-magnet-benefits li {
    padding: 8px 0;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.lead-magnet-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 30px;
    background-color: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.lead-magnet-input {
    width: 100%;
    padding: 14px 16px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 0;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-main);
    transition: var(--transition);
}

.lead-magnet-input::placeholder {
    color: var(--text-muted);
}

.lead-magnet-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
}

.lead-magnet-button {
    width: 100%;
    padding: 14px 20px;
    background-color: var(--accent-gold);
    color: var(--bg-primary);
    border: none;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.lead-magnet-button:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.lead-magnet-privacy {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin: 0;
}

.lead-magnet-privacy a {
    color: var(--accent-gold);
    text-decoration: none;
}

.lead-magnet-privacy a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .lead-magnet-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .lead-magnet-section {
        padding: 60px 0;
    }
    
    .lead-magnet-text h2 {
        font-size: 1.5rem;
    }
    
    .lead-magnet-form {
        padding: 20px;
    }
}

/* ======================= RECOMMENDED PRODUCTS SECTION ======================= */
.recommended-section {
    padding: 60px 0;
    background-color: var(--bg-primary);
}

.recommended-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 1024px) {
    .recommended-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .recommended-products-grid {
        grid-template-columns: 1fr;
    }
    
    .recommended-section {
        padding: 40px 0;
    }
}
