/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: white;
    background-color: #25262d;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Colors */
:root {
    --metal-50: #f7f7f8;
    --metal-100: #eeeef1;
    --metal-200: #d9dae0;
    --metal-300: #b7b9c4;
    --metal-400: #9193a4;
    --metal-500: #737689;
    --metal-600: #5c5e70;
    --metal-700: #4a4c5a;
    --metal-800: #40414d;
    --metal-900: #383943;
    --metal-950: #25262d;
    --grill-gold: #F9C455;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.3s ease;
    background: transparent;
    opacity: 0;
    transform: translateY(-12px);
}

.header.scrolled {
    background: rgba(56, 57, 67, 0.8);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Header background when mobile menu is open */
.header.mobile-menu-open {
    background: rgba(56, 57, 67, 0.95);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.header.header-enter {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--grill-gold);
    text-shadow: 0 0 10px rgba(249, 196, 85, 0.5);
    transition: all 0.3s ease;
}

.logo:hover .logo-text {
    text-shadow: 0 0 20px rgba(249, 196, 85, 0.8);
}

/* Desktop Navigation */
.nav-desktop {
    display: none;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: 0.05em;
    cursor: pointer;
    outline: none;
}

.nav-link:hover {
    color: white;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 2rem;
    height: 2rem;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 50;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn span {
    display: block;
    width: 1.5rem;
    height: 0.125rem;
    background-color: white;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.375rem, 0.375rem);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.375rem, -0.375rem);
}

/* Mobile Navigation */
.nav-mobile {
    display: none;
    overflow: hidden;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    background: transparent;
}

.nav-mobile.active {
    display: block;
}

.nav-link-mobile {
    display: block;
    padding: 0.75rem 1.5rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    touch-action: manipulation;
    outline: none;
}

.nav-link-mobile:hover {
    color: var(--grill-gold);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.hero-image {
    position: absolute;
    inset: 0;
    background: url('images/background.jpg') center/cover no-repeat;
    animation: heroScale 20s ease-in-out infinite;
}

@keyframes heroScale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-out 1.2s both;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-accent {
    color: var(--grill-gold);
}

.hero-button-container {
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 1.4s both;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-button-container {
        flex-direction: row;
        justify-content: center;
    }
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-button::before {
    content: '';
    position: absolute;
    inset: -0.25rem;
    background: linear-gradient(90deg, rgba(249, 196, 85, 0.2), rgba(249, 196, 85, 0.1), rgba(249, 196, 85, 0.2));
    border-radius: 9999px;
    filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-button:hover::before {
    opacity: 1;
}

.hero-button span {
    position: relative;
    padding: 1rem 2rem;
    border-radius: 9999px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(249, 196, 85, 0.3);
    background: rgba(249, 196, 85, 0.9);
    color: black;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-button:hover span {
    background: rgba(249, 196, 85, 0.9);
}

.hero-button-secondary span {
    background: rgba(64, 65, 77, 0.8);
    border-color: rgba(145, 147, 164, 0.3);
    color: white;
}

.hero-button-secondary:hover span {
    background: rgba(64, 65, 77, 0.9);
}

/* Hero promo */
.hero-promo {
    font-weight: 700;
    text-transform: uppercase;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2rem;
    z-index: 10;
    text-align: center;
    margin: 0 auto;
    color: var(--metal-300);
    font-size: 1.25rem;
    animation: fadeInUp 0.8s ease-out 1.6s both;
}

.accent-glow {
    color: var(--grill-gold);
    text-shadow: 0 0 10px rgba(249, 196, 85, 0.5);
}

@media (min-width: 768px) {
    .hero-promo { font-size: 1.5rem; }
}

.hero-promo .accent-glow { font-size: 1.1em; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animated Background */
.animated-background {
    position: absolute;
    inset: 0;
    z-index: -10;
    overflow: hidden;
    pointer-events: none;
}

.animated-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--metal-950), var(--metal-900), var(--metal-800));
}

.animated-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent, transparent, rgba(37, 38, 45, 0.4));
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out both;
}

.section-title {
    font-size: 3rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3.75rem;
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 4.5rem;
    }
}

.section-accent {
    color: var(--grill-gold);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--metal-300);
    max-width: 32rem;
    margin: 0 auto;
}

/* Features Section */
.features-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    padding: 6rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .features-grid {
        gap: 4rem;
    }
}

.feature-card {
    position: relative;
    width: 100%;
    animation: fadeInUp 1s ease-out both;
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(64,65,77,0.35));
    backdrop-filter: none;
    border-radius: 1rem;
    padding: 2rem;
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    box-sizing: border-box;
    isolation: isolate;
}

/* Remove asymmetric widths for consistent card sizes */

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(64, 65, 77, 0.2);
    backdrop-filter: none;
    border-radius: 1rem;
    border: 1px solid rgba(145, 147, 164, 0.2);
    z-index: 0;
}

.feature-card::after {
    content: none;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.02); }
}

.feature-card:hover::after { content: none; }

.feature-title {
    position: relative;
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: linear-gradient(90deg, #F9C455, #ffe093);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.feature-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--metal-300);
    margin: 0;
    text-align: center;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    text-shadow: none !important;
}

@media (min-width: 1024px) {
    .features-grid { 
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
        max-width: 1200px;
        margin: 0 auto;
    }
    .feature-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: none;
        min-height: 490px;
        text-align: center;
        padding: 1.5rem;
        background: linear-gradient(135deg, rgba(64, 65, 77, 0.4), rgba(56, 57, 67, 0.4));
        border: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    .feature-card:nth-child(odd) { 
        justify-self: stretch;
        margin: 0;
    }
    .feature-card:nth-child(even) {
        justify-self: stretch;
        margin: 0;
    }
    /* Map children to flexbox */
    .feature-card .feature-image { 
        width: 80px;
        height: 80px;
        margin: 0 auto 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .feature-card .feature-title { 
        padding: 0;
        margin: 0 0 1rem 0;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
        height: 6rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .feature-card .feature-description { 
        padding: 0;
        margin: 0;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
        display: block;
        margin-top: 0;
        height: 8rem;
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }
    .feature-image img {
        width: 40px;
        height: 40px;
        object-fit: contain;
        max-width: 100%;
        max-height: 100%;
        filter: none;
    }
}

.feature-image {
    width: 100%;
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1;
    aspect-ratio: auto;
}

/* Mobile: make icon background square */
@media (max-width: 767px) {
    .feature-card .feature-image {
        width: 120px !important;
        height: 120px !important;
        margin: 0 auto !important;
        border-radius: 1rem !important;
    }
    
    .feature-card .feature-image img {
        width: 60px !important;
        height: 60px !important;
    }
}

/* Same aspect ratio on desktop for consistent image height */
@media (min-width: 1024px) {
    .feature-image { aspect-ratio: 16 / 9; }
}

/* Alternate side handled via grid-template-areas above */

.feature-card:hover .feature-image { transform: scale(1.015); }

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    min-height: 0;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.6s ease;
    position: absolute;
    inset: 0;
    z-index: 1;
}

.feature-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.05), transparent);
    pointer-events: none;
    z-index: 2;
}

/* Scroll reveal utility */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Removed incorrect selector for last child block in feature content */

.feature-title::before { content: none; }

@media (min-width: 1024px) {
    .feature-title { font-size: 2.25rem; }
    .feature-title::before { content: none; }
}

@keyframes titleGlow {
    0%, 100% { text-shadow: 0 0 10px rgba(249, 196, 85, 0.3); }
    50% { text-shadow: 0 0 20px rgba(249, 196, 85, 0.6); }
}

/* Configurator Section */
.configurator-section {
    min-height: 100vh;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

/* Configuration Toggle Switch */
.config-toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    gap: 0.5rem;
    background: rgba(64, 65, 77, 0.3);
    border-radius: 2rem;
    padding: 0.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.config-toggle {
    background: transparent;
    border: none;
    color: var(--metal-300);
    padding: 1rem 2rem;
    border-radius: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 600;
}

.config-toggle.active {
    background: var(--grill-gold);
    color: var(--metal-900);
    box-shadow: 0 4px 15px rgba(249, 196, 85, 0.3);
}

.config-toggle:hover:not(.active) {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Configuration Display */
.config-display {
    position: relative;
    margin-bottom: 3rem;
}

/* PC version: make config slide narrower */
@media (min-width: 1024px) {
    .config-display {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .config-card {
        max-width: 100%;
    }
    
    .config-toggle-container {
        max-width: 300px;
    }
}

.config-card {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.config-card.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Configuration Order Section */
.config-order-section {
    text-align: center;
    margin-top: 2rem;
}

.config-order-section .config-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem; /* Increase padding for a larger button */
    font-size: 1.25rem; /* Increase font size for better readability */
    font-weight: 500;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    width: auto; /* Allow button width to adjust to content */
    max-width: none; /* Remove any maximum width constraints */
}

.config-order-section .config-button::before {
    content: '';
    position: absolute;
    inset: -0.25rem;
    background: linear-gradient(90deg, rgba(249, 196, 85, 0.2), rgba(249, 196, 85, 0.1), rgba(249, 196, 85, 0.2));
    border-radius: 9999px;
    filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.config-order-section .config-button:hover::before {
    opacity: 1;
}

/* Mobile styles for config toggle */
@media (max-width: 767px) {
    .config-toggle-container {
        margin-bottom: 2rem;
        padding: 0.25rem;
    }
    
    .config-toggle {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .config-order-section {
        margin-top: 1.5rem;
    }
    
    .config-order-section .config-button {
        padding: 0.875rem 1rem;
        font-size: 1rem;
        max-width: 180px;
        width: 180px;
    }
}

/* Reviews Section */
.reviews-section {
    padding: 6rem 0;
    position: relative;
}

.reviews-container {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
}

.reviews-viewport {
    overflow: hidden;
}

@media (min-width: 1024px) {
    .reviews-viewport {
        max-width: calc(100% - 200px);
        margin: 0 auto;
    }
}

.reviews-track {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    transition: transform 0.4s ease;
}

.review-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(64,65,77,0.35));
    border: 1px solid rgba(145, 147, 164, 0.2);
    border-radius: 1rem;
    padding: 0.75rem;
}

@media (min-width: 1024px) {
    .review-slide { 
        grid-template-columns: 360px 1fr; 
        max-width: calc(100% - 200px);
        margin: 0 auto;
    }
}

.review-media {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16; /* вертикальное видео */
    border-radius: 0.75rem;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    max-height: 70vh;
}

.review-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Uniform spacer between media and title */
.review-media + .review-content { margin-top: 0.75rem; }

@media (max-width: 767px) {
  .review-media + .review-content { margin-top: 0.5rem; }
}

.review-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
    margin: 0;
}

.review-title {
    font-size: 3.25rem;
    font-weight: 700;
    color: var(--grill-gold);
    text-shadow: 0 0 10px rgba(249, 196, 85, 0.5);
    margin: 0 0 0.25rem;
}

.review-title:hover {
    text-shadow: 0 0 20px rgba(249, 196, 85, 0.8);
}

.review-text {
    color: var(--metal-300);
    font-size: 3rem;
    margin: 0;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

@media (min-width: 768px) {
    .review-title { 
        font-size: 2.5rem; 
        padding: 0 2rem;
    }
    .review-text { 
        font-size: 1.7rem; 
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .review-title { 
        font-size: 2.5rem; 
        padding: 0 3rem;
    }
    .review-text { 
        font-size: 1.7rem; 
        padding: 0 3rem;
    }
}

/* Center feature titles by default */
.feature-title { text-align: center; }

.reviews-btn {
    background: rgba(64, 65, 77, 0.6);
    border: 1px solid rgba(145, 147, 164, 0.3);
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.reviews-btn:hover {
    background: rgba(64, 65, 77, 0.8);
}

/* PC version: larger buttons */
@media (min-width: 1024px) {
    .reviews-btn {
        width: 4rem;
        height: 4rem;
        font-size: 1.5rem;
    }
}

/* Mobile: reviews carousel with overlay buttons */
@media (max-width: 767px) {
    .reviews-container { 
        grid-template-columns: 1fr; 
        gap: 0.75rem; 
        position: relative;
    }
    .reviews-track { gap: 0.75rem; }
    .review-slide { padding: 0.5rem; gap: 0.75rem; display: flex; flex-direction: column; align-items: stretch; }
    .review-media { margin: 0 !important; }
    .review-content { 
        margin: 0 !important; 
        text-align: center;
        align-items: center;
    }
    .review-title { 
        margin: 0 !important; 
        line-height: 1.2; 
        font-size: 2rem !important;
        text-align: center;
    }
    .review-text { 
        margin-top: 0.25rem !important; 
        font-size: 1.3rem !important;
        text-align: center;
    }
    
    /* Mobile overlay buttons */
    .reviews-btn {
        display: flex !important;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        background: rgba(64, 65, 77, 0.3);
        border: 1px solid rgba(145, 147, 164, 0.2);
        color: white;
        width: 3rem;
        height: 3rem;
        border-radius: 9999px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        backdrop-filter: blur(4px);
    }
    
    .reviews-btn:hover {
        background: rgba(64, 65, 77, 0.6);
        border-color: rgba(145, 147, 164, 0.4);
    }
    
    .reviews-btn-prev {
        left: 0.5rem;
    }
    
    .reviews-btn-next {
        right: 0.5rem;
    }
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.show { display: flex; }

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.modal-dialog {
    position: relative;
    z-index: 1001;
    width: min(560px, 92%);
    background: linear-gradient(135deg, rgba(37,38,45,0.95), rgba(64,65,77,0.9));
    border: 1px solid rgba(145, 147, 164, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.modal-text { color: var(--metal-300); }

.modal-actions {
    margin-top: 1.25rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background: rgba(64, 65, 77, 0.7);
    color: white;
    border: none;
    cursor: pointer;
}

/* Reset native button background inside modal for custom styled button */
.modal .hero-button {
    background: transparent;
    border: none;
    padding: 0;
    -webkit-appearance: none;
            appearance: none;
}

.configurator-container {
    position: relative;
    max-width: 64rem;
    margin: 0 auto;
}

.configurator-carousel {
    position: relative;
}

.carousel-container {
    overflow: visible;
    border-radius: 1rem;
    touch-action: pan-y;
}

.carousel-track {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.config-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.config-card.active {
    box-shadow: 0 0 0 1px rgba(249, 196, 85, 0.5);
    transform: none;
}

/* Выбранная карточка */
.config-card.selected {
    box-shadow: 0 0 0 1px rgba(249, 196, 85, 0.5);
    transform: none;
}

.config-image {
    position: relative;
    height: 16rem;
}

.config-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.config-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

.config-content {
    padding: 2rem;
    background: rgba(64, 65, 77, 0.5);
    backdrop-filter: blur(4px);
}

.config-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.config-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.config-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--grill-gold);
}

.config-description {
    color: var(--metal-300);
    margin-bottom: 1.5rem;
}

.config-features {
    margin-bottom: 2rem;
}

.features-title {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--grill-gold);
    margin-bottom: 0.5rem;
}

.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-item {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.feature-item.available {
    color: var(--metal-300);
}

.feature-item.unavailable {
    color: var(--metal-500);
    text-decoration: line-through;
}

.feature-item::before {
    margin-right: 0.5rem;
    color: var(--grill-gold);
}

.feature-item.unavailable::before {
    color: var(--metal-600);
}

.config-button {
    width: 100%;
    padding: 1rem 3rem;
    border-radius: 9999px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(249, 196, 85, 0.3);
    background: rgba(249, 196, 85, 0.9);
    color: black;
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: none;
    outline: none;
}

/* Кнопка только у выбранной карточки */
.config-card.selected .config-button {
    display: inline-block;
}

.config-button:hover {
    background: rgba(249, 196, 85, 0.9);
}

.config-button:disabled {
    background: rgba(64, 65, 77, 0.4);
    border-color: rgba(145, 147, 164, 0.2);
    color: var(--metal-400);
    cursor: not-allowed;
}

/* Carousel Navigation */
.carousel-btn { 
    display: none; 
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(64, 65, 77, 0.8);
    border: 1px solid rgba(145, 147, 164, 0.3);
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

/* Mobile carousel */
@media (max-width: 767px) {
    .carousel-container {
        overflow: hidden;
    }
    
    .carousel-track {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 0 !important;
        transition: transform 0.4s ease;
        width: 200%; /* Force width for 2 cards */
    }
    
    .config-card {
        flex-shrink: 0;
    }
    
    .carousel-btn {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .carousel-indicators {
        display: flex !important;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1.5rem;
    }
}

@media (min-width: 768px) {
    .carousel-track {
        grid-template-columns: 1fr 1fr;
    }
    
    .carousel-btn {
        display: none;
    }
    
    .carousel-indicators {
        display: none;
    }
}

.carousel-btn:hover {
    background: rgba(64, 65, 77, 0.8);
}

.carousel-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

@media (min-width: 768px) {
    .carousel-btn svg {
        width: 1.5rem;
        height: 1.5rem;
    }
}

.carousel-btn-prev {
    left: 0.5rem;
}

.carousel-btn-next {
    right: 0.5rem;
}

@media (min-width: 768px) {
    .carousel-btn-prev {
        left: -4rem;
    }
    
    .carousel-btn-next {
        right: -4rem;
    }
}

.carousel-indicators { display: none; }

.indicator {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: rgba(145, 147, 164, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background: var(--metal-400);
}

.indicator.active {
    background: var(--grill-gold);
    transform: scale(1.25);
}

/* Footer */
.footer {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-column {
    animation: fadeInUp 0.8s ease-out both;
}

.footer-column:nth-child(2) {
    animation-delay: 0.1s;
}

.footer-column:nth-child(3) {
    animation-delay: 0.2s;
}

.footer-column:nth-child(4) {
    animation-delay: 0.3s;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.footer-accent {
    color: var(--grill-gold);
}

.footer-description {
    color: var(--metal-300);
}

.footer-title {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: white;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--metal-300);
    text-decoration: none;
    transition: color 0.3s ease;
    outline: none;
}

.footer-links a:hover {
    color: white;
}

.footer-address {
    color: var(--metal-300);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: rgba(64, 65, 77, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
    outline: none;
}

.social-link:hover {
    background: rgba(64, 65, 77, 0.7);
    transform: scale(1.1) translateY(-2px);
}

.social-icon {
    width: 1.4rem;
    height: 1.4rem;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.3));
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--metal-700);
    text-align: center;
    color: var(--metal-400);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.footer-copyright {
    transition: transform 0.3s ease;
}

.footer-copyright:hover {
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .feature-content {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-image {
        width: 100%;
        min-height: 80px;
        background: transparent;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .feature-image img {
        position: static;
        width: 48px;
        height: 48px;
        min-height: 0;
    }
    
    .carousel-btn {
        display: none;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
} 

/* Focus handling: remove default outlines, keep for keyboard users */
:focus { outline: none; }
:focus-visible {
    outline: 2px solid var(--grill-gold);
    outline-offset: 2px;
}