/* =============================================
   SVTech - HyperPC Style Design System
   ============================================= */

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

:root {
    /* Wine-tinted backgrounds */
    --bg-dark: #12080a;
    /* Deep wine-black */
    --bg-card: #1a0c0f;
    /* Wine-tinted card */
    --bg-card-hover: #220f13;
    --bg-input: #1a0c0f;
    --text-primary: #ffffff;
    --text-secondary: #b0a0a0;
    --text-muted: #7a6666;

    /* Wine Palette */
    --accent: #8B1538;
    /* Wine Red */
    --accent-light: #a3162e;
    /* Brighter Wine */
    --accent-dark: #4a0913;
    /* Dark Wine */
    --accent-glow: rgba(139, 21, 56, 0.5);

    /* Use Silver/Platinum for contrast */
    --gold: #e0e0e0;
    --gold-light: #ffffff;

    --border: #3a2528;
    /* Wine-tinted border */
    --border-light: #4a3538;
    --success: #22c55e;

    --gradient-wine: linear-gradient(135deg, #8B1538, #a3162e);
    --gradient-premium: linear-gradient(135deg, #a3162e, #8B1538);
    --gradient-bg: linear-gradient(180deg, #12080a 0%, #1a0c0f 50%, #12080a 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =============================================
   Header
   ============================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 0.8rem 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-primary);
}

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

.logo-graffiti {
    display: flex;
    align-items: center;
}

.logo-graffiti img {
    height: 36px;
    width: auto;
    display: block;
}

.nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

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

.social-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.phone-link {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* =============================================
   Hero Section - Premium Enhanced
   ============================================= */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 2rem 80px;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

/* Main animated background */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        600px at 20% 30%,
        rgba(163, 22, 46, 0.25) 0%,
        transparent 80%
    ),
    radial-gradient(
        500px at 80% 70%,
        rgba(139, 21, 56, 0.2) 0%,
        transparent 80%
    ),
    radial-gradient(
        400px at 50% 50%,
        rgba(163, 22, 46, 0.1) 0%,
        transparent 80%
    );
    background-attachment: fixed;
    animation: gradientFlow 15s ease-in-out infinite;
    z-index: 0;
}

@keyframes gradientFlow {
    0% {
        background: radial-gradient(
            600px at 20% 30%,
            rgba(163, 22, 46, 0.25) 0%,
            transparent 80%
        ),
        radial-gradient(
            500px at 80% 70%,
            rgba(139, 21, 56, 0.2) 0%,
            transparent 80%
        ),
        radial-gradient(
            400px at 50% 50%,
            rgba(163, 22, 46, 0.1) 0%,
            transparent 80%
        );
    }
    50% {
        background: radial-gradient(
            600px at 60% 50%,
            rgba(139, 21, 56, 0.3) 0%,
            transparent 80%
        ),
        radial-gradient(
            500px at 30% 60%,
            rgba(163, 22, 46, 0.15) 0%,
            transparent 80%
        ),
        radial-gradient(
            400px at 70% 40%,
            rgba(139, 21, 56, 0.12) 0%,
            transparent 80%
        );
    }
    100% {
        background: radial-gradient(
            600px at 20% 30%,
            rgba(163, 22, 46, 0.25) 0%,
            transparent 80%
        ),
        radial-gradient(
            500px at 80% 70%,
            rgba(139, 21, 56, 0.2) 0%,
            transparent 80%
        ),
        radial-gradient(
            400px at 50% 50%,
            rgba(163, 22, 46, 0.1) 0%,
            transparent 80%
        );
    }
}

/* Animated orbs */
.hero .orb-left {
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle at 30% 30%, rgba(163, 22, 46, 0.3), transparent 70%);
    bottom: -300px;
    left: -300px;
    filter: blur(40px);
    animation: float1 40s linear infinite;
    z-index: 1;
}

.hero .orb-center {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at 50% 50%, rgba(139, 21, 56, 0.25), transparent 70%);
    top: 20%;
    right: -200px;
    filter: blur(50px);
    animation: float2 50s linear infinite;
    z-index: 1;
}

@keyframes float1 {
    0% {
        opacity: 0.35;
        transform: translate(0, 0) scale(1);
    }
    25% {
        opacity: 0.5;
        transform: translate(60px, -80px) scale(1.05);
    }
    50% {
        opacity: 0.7;
        transform: translate(100px, -100px) scale(1.1);
    }
    75% {
        opacity: 0.5;
        transform: translate(60px, -60px) scale(1.05);
    }
    100% {
        opacity: 0.35;
        transform: translate(0, 0) scale(1);
    }
}

@keyframes float2 {
    0% {
        opacity: 0.25;
        transform: translate(0, 0) scale(1);
    }
    25% {
        opacity: 0.4;
        transform: translate(-100px, 60px) scale(1.05);
    }
    50% {
        opacity: 0.6;
        transform: translate(-150px, 100px) scale(1.1);
    }
    75% {
        opacity: 0.4;
        transform: translate(-100px, 70px) scale(1.05);
    }
    100% {
        opacity: 0.25;
        transform: translate(0, 0) scale(1);
    }
}

/* Floating PC Icons */
.floating-icon {
    position: absolute;
    font-size: 4rem;
    opacity: 0.08;
    z-index: 2;
    text-shadow: 0 0 20px rgba(139, 21, 56, 0.4);
    filter: drop-shadow(0 0 10px rgba(163, 22, 46, 0.3));
    pointer-events: none !important;
    will-change: transform;
}

.icon-1 {
    top: 10%;
    left: 5%;
    animation: floatIcon1 25s ease-in-out infinite;
    font-size: 5rem;
}

.icon-2 {
    top: 20%;
    right: 8%;
    animation: floatIcon2 30s ease-in-out infinite;
    font-size: 4.5rem;
}

.icon-3 {
    top: 35%;
    left: 10%;
    animation: floatIcon3 28s ease-in-out infinite;
    font-size: 4rem;
}

.icon-4 {
    bottom: 20%;
    right: 12%;
    animation: floatIcon4 32s ease-in-out infinite;
    font-size: 4.5rem;
}

.icon-5 {
    bottom: 15%;
    left: 8%;
    animation: floatIcon5 27s ease-in-out infinite;
    font-size: 4rem;
}

.icon-6 {
    top: 60%;
    right: 5%;
    animation: floatIcon6 29s ease-in-out infinite;
    font-size: 4.5rem;
}

@keyframes floatIcon1 {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.05;
    }
    25% {
        transform: translate(80px, -60px) rotate(15deg) scale(1.1);
        opacity: 0.12;
    }
    50% {
        transform: translate(40px, -120px) rotate(30deg) scale(1);
        opacity: 0.08;
    }
    75% {
        transform: translate(-40px, -80px) rotate(15deg) scale(0.95);
        opacity: 0.1;
    }
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.05;
    }
}

@keyframes floatIcon2 {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.06;
    }
    25% {
        transform: translate(-100px, 80px) rotate(-20deg) scale(0.95);
        opacity: 0.1;
    }
    50% {
        transform: translate(-80px, 150px) rotate(-30deg) scale(1.1);
        opacity: 0.12;
    }
    75% {
        transform: translate(-30px, 100px) rotate(-15deg) scale(1);
        opacity: 0.08;
    }
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.06;
    }
}

@keyframes floatIcon3 {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.07;
    }
    25% {
        transform: translate(60px, 100px) rotate(25deg) scale(1.05);
        opacity: 0.11;
    }
    50% {
        transform: translate(100px, 200px) rotate(45deg) scale(1);
        opacity: 0.09;
    }
    75% {
        transform: translate(50px, 120px) rotate(25deg) scale(0.98);
        opacity: 0.1;
    }
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.07;
    }
}

@keyframes floatIcon4 {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.06;
    }
    25% {
        transform: translate(-90px, -70px) rotate(-25deg) scale(1.1);
        opacity: 0.12;
    }
    50% {
        transform: translate(-150px, -140px) rotate(-50deg) scale(1);
        opacity: 0.08;
    }
    75% {
        transform: translate(-80px, -90px) rotate(-25deg) scale(0.95);
        opacity: 0.1;
    }
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.06;
    }
}

@keyframes floatIcon5 {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.07;
    }
    25% {
        transform: translate(110px, -90px) rotate(30deg) scale(0.95);
        opacity: 0.1;
    }
    50% {
        transform: translate(180px, -180px) rotate(60deg) scale(1.1);
        opacity: 0.12;
    }
    75% {
        transform: translate(100px, -110px) rotate(30deg) scale(1);
        opacity: 0.08;
    }
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.07;
    }
}

@keyframes floatIcon6 {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.06;
    }
    25% {
        transform: translate(-70px, 110px) rotate(-35deg) scale(1.05);
        opacity: 0.11;
    }
    50% {
        transform: translate(-120px, 220px) rotate(-70deg) scale(1);
        opacity: 0.09;
    }
    75% {
        transform: translate(-60px, 130px) rotate(-35deg) scale(0.98);
        opacity: 0.1;
    }
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.06;
    }
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title span {
    background: var(--gradient-wine);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-title span::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 3px;
    background: var(--gradient-wine);
    border-radius: 2px;
    opacity: 0.7;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

/* =============================================
   Product Lines Grid (Home Page) - Premium Enhanced
   ============================================= */

.product-lines {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.product-line-card {
    background: linear-gradient(145deg, rgba(26, 12, 15, 0.9), rgba(18, 8, 10, 0.95));
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    animation: fadeInUp 0.8s ease-out backwards;
}

.product-line-card:nth-child(1) {
    animation-delay: 0.1s;
}

.product-line-card:nth-child(2) {
    animation-delay: 0.2s;
}

.product-line-card:nth-child(3) {
    animation-delay: 0.3s;
}

.product-line-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* Top wine gradient line */
.product-line-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-wine);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

/* Shine effect on hover */
.product-line-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.product-line-card:hover::after {
    left: 100%;
}

.product-line-card:hover::before {
    opacity: 1;
}

.product-line-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--accent);
    box-shadow:
        0 25px 50px rgba(139, 21, 56, 0.3),
        0 0 0 1px rgba(139, 21, 56, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.product-line-image {
    height: 220px;
    background: linear-gradient(135deg, #1a0c0f, #12080a);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Subtle wine radial glow in image area */
.product-line-image::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at center, rgba(139, 21, 56, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.product-line-image img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
}

.product-line-card:hover .product-line-image img {
    transform: scale(1.1) translateY(-5px);
}

.product-line-body {
    padding: 1.5rem;
    position: relative;
}

.product-line-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.product-line-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    line-height: 1.6;
    min-height: 44px;
}

.product-line-price {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.product-line-price span {
    color: var(--accent-light);
    font-weight: 700;
    font-size: 1.3rem;
}

.product-line-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* Target Audience Info Blocks */
.product-line-info {
    margin: 1rem 0 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border-left: 3px solid var(--accent);
}

.info-block {
    margin-bottom: 0.8rem;
}

.info-block:last-child {
    margin-bottom: 0;
}

.info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.info-value {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* =============================================
   Buttons
   ============================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: var(--text-primary);
    border: 1px solid var(--accent);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 21, 56, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent-light);
    color: var(--accent-light);
}

.btn-gold {
    background: var(--gradient-premium);
    color: #fff;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--accent-glow);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1rem;
}

/* =============================================
   Section
   ============================================= */

.section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title span {
    color: var(--accent-light);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* =============================================
   Catalog Page - Product Grid
   ============================================= */

.catalog-hero {
    padding: 140px 2rem 60px;
    background: var(--bg-dark);
    text-align: center;
}

.catalog-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.catalog-title span {
    color: var(--accent-light);
}

.catalog-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    padding: 3rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.pc-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
}

.pc-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(139, 21, 56, 0.2);
}

.pc-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
}

.pc-card-image {
    height: 320px;
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
}

.pc-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.pc-card:hover .pc-card-image img {
    transform: scale(1.05);
}

.pc-card-colors {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
    z-index: 5;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.color-option {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-option.black {
    background: #111;
}

.color-option.white {
    background: #f0f0f0;
}

.color-option.active {
    transform: scale(1.2);
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
}

.pc-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pc-card-name {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    text-align: center;
}

.pc-card-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    min-height: 42px;
    /* 2 lines approx */
}

.pc-card-price-block {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pc-card-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pc-card-credit {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.pc-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

/* Replacing neon/gold button styles with premium wine */
.btn-card-primary {
    background: var(--gradient-premium);
    color: #fff;
    font-weight: 600;
    text-align: center;
    padding: 0.8rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.btn-card-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--accent-glow);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-card-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 0.6rem;
    text-align: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-card-secondary:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.pc-fps-meter {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.fps-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    /* Wine border instead of neon */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    background: rgba(114, 14, 30, 0.1);
}

.fps-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    /* White text */
}

.fps-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.fps-text h4 {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.1rem;
}

.fps-text p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.pc-specs-list {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.pc-spec-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pc-spec-item:last-child {
    border-bottom: none;
}

.pc-spec-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.pc-spec-info {
    display: flex;
    flex-direction: column;
}

.pc-spec-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.1rem;
}

.pc-spec-value {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.2;
}

.show-more-link {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 1rem;
    cursor: pointer;
    transition: color 0.3s;
}

.show-more-link:hover {
    color: var(--accent-light);
    /* Wine hover */
}

/* =============================================
   Configurator Page
   ============================================= */

.configurator-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    padding: 140px 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.configurator-main {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
}

.configurator-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.configurator-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.configurator-title span {
    color: var(--accent-light);
    /* Wine instead of gold */
}

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

.config-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-light);
    /* Wine accent */
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.config-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.config-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.config-option:hover {
    border-color: var(--accent);
}

.config-option.selected {
    border-color: var(--accent);
    background: rgba(114, 14, 30, 0.1);
    /* Wine tint */
}

.config-option-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.config-option-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.config-option.selected .config-option-radio {
    border-color: var(--accent);
}

.config-option.selected .config-option-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
}

.config-option-name {
    font-weight: 500;
}

.config-option-price {
    color: var(--text-primary);
    /* Platinum/White */
    font-weight: 600;
}

/* Configurator Sidebar */
.configurator-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
}

.sidebar-image {
    height: 200px;
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.sidebar-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.sidebar-specs {
    margin-bottom: 1.5rem;
}

.sidebar-spec {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}

.sidebar-spec:last-child {
    border-bottom: none;
}

.sidebar-spec-label {
    color: var(--text-muted);
}

.sidebar-spec-value {
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
    max-width: 60%;
}

.sidebar-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-top: 1px solid var(--border);
}

.sidebar-total-label {
    font-size: 1rem;
    color: var(--text-secondary);
}

.sidebar-total-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    /* Platinum/White */
}

/* =============================================
   Features Section
   ============================================= */

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-wine);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.feature-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* =============================================
   News Section
   ============================================= */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-body {
    padding: 1.5rem;
}

.news-date {
    color: var(--accent-light);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.news-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* =============================================
   Footer
   ============================================= */

.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 2.5rem 2rem 1.5rem;
    margin-top: 2.5rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

.footer-logo-graffiti {
    display: flex;
    align-items: center;
}

.footer-logo-graffiti img {
    height: 80px;
    width: auto;
    display: block;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--gold);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    max-width: 1400px;
    margin: 2rem auto 0;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-credit {
    max-width: 1400px;
    margin: 0.8rem auto 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.map-container {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 1rem;
    border: 1px solid var(--border);
}

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 1200px) {
    .product-lines {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .configurator-container {
        grid-template-columns: 1fr;
    }

    .configurator-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.6rem 0;
    }

    .header-container {
        padding: 0 1rem;
        flex-wrap: nowrap;
        gap: 1rem;
        position: relative;
    }

    .logo-graffiti {
        order: 1;
        flex-shrink: 0;
    }

    .logo-graffiti img {
        height: 30px;
    }

    .mobile-menu-toggle {
        display: flex;
        order: 2;
        flex-shrink: 0;
        width: 30px;
        height: 22px;
        cursor: pointer;
        background: transparent;
        border: none;
        padding: 0;
        z-index: 1001;
    }

    .mobile-menu-toggle span {
        width: 100%;
        height: 3px;
        background: var(--text-primary);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

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

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        background: rgba(20, 10, 10, 0.99) !important;
        display: none !important;
        flex-direction: column;
        padding: 1.5rem 1rem;
        gap: 1rem;
        border-bottom: 2px solid var(--gold);
        z-index: 1001;
    }

    .nav.active {
        display: flex !important;
    }

    .nav-link {
        padding: 1rem;
        border-bottom: 1px solid var(--border);
        font-size: 1rem;
        display: block;
        text-align: center;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-link::after {
        display: none;
    }

    .header-actions {
        order: 3;
        width: auto;
        gap: 0.75rem;
        flex-shrink: 1;
        min-width: 0;
    }

    .social-links {
        gap: 0.5rem;
    }

    .phone-link {
        font-size: 0.85rem;
    }

    .hero {
        min-height: 80vh;
        padding: 100px 1rem 60px;
    }

    .hero-title {
        font-size: 2.1rem;
        letter-spacing: -1px;
        margin-bottom: 1.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }

    .floating-icon {
        font-size: 2.5rem;
        opacity: 0.05;
    }

    .nav {
        display: none;
    }

    .product-lines {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        gap: 1rem;
    }

    .product-line-image {
        height: 180px;
    }

    .product-line-body {
        padding: 1.2rem;
    }

    .product-line-name {
        font-size: 1.25rem;
    }

    .product-line-price span {
        font-size: 1.15rem;
    }

    .product-line-actions .btn {
        width: 100%;
    }

    .section {
        padding: 4rem 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .catalog-hero {
        padding: 120px 1rem 40px;
    }

    .catalog-title {
        font-size: 2.2rem;
    }

    .catalog-desc {
        font-size: 1rem;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 1rem;
    }

    .pc-card-image {
        height: 240px;
        padding: 1rem;
    }

    .pc-card-body {
        padding: 1.2rem;
    }

    .pc-card-name {
        font-size: 1.3rem;
    }

    .pc-card-desc {
        min-height: auto;
    }

    .pc-card-actions {
        margin-bottom: 1rem;
        gap: 0.6rem;
    }

    .pc-spec-item {
        padding: 0.6rem 0.8rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .contacts-hero {
        padding: 120px 1rem 40px;
    }

    .contacts-title {
        font-size: 2.2rem;
    }

    .contacts-content {
        padding: 2.5rem 1rem;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .contact-card-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 1rem;
    }

    .contact-card-title {
        font-size: 1.2rem;
    }

    .contact-info-item {
        font-size: 0.95rem;
    }

    .location-section {
        padding: 1.5rem;
    }

    .location-address {
        font-size: 1.2rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .contacts-social {
        padding-top: 2rem;
    }

    .contacts-social-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .footer {
        padding: 2rem 1rem 1rem;
        margin-top: 2rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-logo-graffiti img {
        height: 60px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Configurator Mobile Optimization */
    .configurator-wrapper {
        padding: 80px 0.5rem 2rem;
        gap: 1rem;
    }

    .component-preview-column {
        display: none !important;
    }

    .component-list-wrapper {
        border: none;
    }

    .component-section {
        margin-bottom: 1.5rem;
    }

    .component-header {
        padding: 1rem;
        background: var(--bg-card);
        border-radius: 8px;
        margin-bottom: 0.5rem;
    }

    .component-title {
        font-size: 1.2rem;
    }

    .component-item {
        padding: 0.75rem 0.5rem;
        grid-template-columns: 20px 1fr 90px;
        gap: 0.5rem;
        min-height: 70px;
        align-items: start;
    }

    .component-info {
        gap: 3px;
        min-width: 0;
    }

    .component-name {
        font-size: 0.85rem;
        font-weight: 500;
        line-height: 1.3;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        word-wrap: break-word;
    }

    .component-specs {
        font-size: 0.75rem;
        opacity: 0.8;
        line-height: 1.2;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        word-wrap: break-word;
    }

    .component-price {
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .component-radio {
        margin-top: 3px;
    }

    .config-summary-panel {
        width: 100%;
        position: relative;
        top: 0;
        margin-top: 2rem;
    }
}

@media (max-width: 560px) {
    .header-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .social-links {
        display: none;
    }

    .phone-link {
        font-size: 0.8rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .product-line-info {
        padding: 0.8rem;
    }

    .pc-card-image {
        height: 200px;
    }

    .contacts-social-grid {
        grid-template-columns: 1fr;
    }

    .footer-logo-graffiti img {
        height: 50px;
    }
}

/* =============================================
   Advanced Configurator Layout (Appended)
   ============================================= */

.configurator-wrapper {
    display: flex;
    max-width: 1800px;
    margin: 0 auto;
    padding: 100px 2rem 4rem;
    gap: 2rem;
    position: relative;
    min-height: 100vh;
}

/* --- Left Sidebar Navigation --- */
.config-nav {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
    display: none;
}

@media (min-width: 1400px) {
    .config-nav {
        display: block;
    }
}

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

.config-nav-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px;
    font-size: 0.85rem;
}

.config-nav-item:hover,
.config-nav-item.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.config-nav-item.active {
    border-left: 2px solid var(--gold);
}

.nav-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border);
}

.config-nav-item.selected .nav-status-dot {
    background: var(--gold);
    box-shadow: 0 0 8px var(--gold);
}

/* --- Center Content Area --- */
.config-content {
    flex-grow: 1;
    min-width: 0;
}

.component-group {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    scroll-margin-top: 100px;
}

.component-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.component-title-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.component-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.component-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.component-header:hover .component-icon {
    color: var(--gold);
}

.component-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.component-tabs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.component-tab {
    padding: 0.3rem 0.8rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.component-tab:hover {
    border-color: var(--text-secondary);
}

.filter-label-prefix {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-right: 0.5rem;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
}

.component-tab.active {
    background: var(--text-primary);
    color: var(--bg-dark);
    border-color: var(--text-primary);
}

/* Filter Groups */
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Slider Filter Styles */
.slider-filter {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-top: 0.5rem;
}

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

.slider-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.slider-value {
    color: var(--accent-light);
    font-weight: 700;
    font-size: 1.1rem;
}

.slider-wrapper {
    position: relative;
    padding-bottom: 1.5rem;
}

.capacity-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.capacity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-glow);
    transition: transform 0.2s;
}

.capacity-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.capacity-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px var(--accent-glow);
}

.slider-marks {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.slider-mark {
    position: absolute;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.slider-mark:first-child {
    transform: translateX(0);
}

.slider-mark:last-child {
    transform: translateX(-100%);
}

/* Type Tabs */
.type-tabs {
    margin-bottom: 0.5rem;
}

.component-list-wrapper {
    display: flex;
    gap: 0;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.1);
}

.component-preview-column {
    width: 450px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border);
    background: rgba(10, 10, 10, 0.5);
    position: sticky;
    top: 0;
    max-height: 100vh;
}

.component-preview-img-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(139, 21, 56, 0.1) 0%, transparent 80%);
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
    min-height: 350px;
}

.component-preview-img-container img {
    width: 100%;
    height: 100%;
    max-height: 400px;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

.component-list {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.series-tabs .component-tab {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    opacity: 0.8;
}

.series-tabs .component-tab.active {
    opacity: 1;
    color: var(--accent-light);
    border-color: var(--accent-light);
    background: rgba(139, 21, 56, 0.1);
}

.component-item {
    display: grid;
    grid-template-columns: 24px auto 90px;
    align-items: start;
    padding: 0.4rem 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
    min-height: 48px;
}

.component-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--gold);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.component-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.component-item.active {
    background: rgba(139, 21, 56, 0.12);
}

.component-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--gold);
}

.component-radio {
    width: 12px;
    height: 12px;
    border: 1.5px solid var(--text-muted);
    border-radius: 50%;
    margin-right: 8px;
    margin-top: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.active .component-radio {
    border-color: var(--gold);
    background: radial-gradient(circle, var(--gold) 40%, transparent 50%);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

.component-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    overflow: hidden;
    width: 100%;
}

.component-name {
    font-size: 0.75rem;
    /* ~12px */
    font-weight: 500;
    color: var(--text-primary);
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    word-wrap: break-word;
}

.component-specs {
    font-size: 0.7rem;
    /* ~11px */
    color: var(--text-muted);
    opacity: 0.7;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    word-wrap: break-word;
}

.component-price {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
    letter-spacing: 0.2px;
    margin-top: 4px;
}

.component-item.active .component-price {
    color: var(--text-primary);
}

.show-more-items {
    padding: 0.4rem;
    text-align: center;
    font-size: 0.7rem;
    color: var(--gold);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.show-more-items:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-light);
}

/* --- Right Summary Panel (Sticky) --- */
.config-summary-panel {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    height: fit-content;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
}

.summary-header {
    text-align: center;
    margin-bottom: 1rem;
}

.summary-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.summary-image-container {
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border-radius: 8px;
    padding: 0.8rem;
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    height: 160px;
}

.summary-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.summary-price-block {
    text-align: center;
    margin-bottom: 1rem;
}

.summary-price-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.summary-price-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.summary-price-currency {
    color: var(--accent-light);
    /* Wine accent */
}

.summary-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 1rem;
}

.action-btn-small {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.action-btn-small:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.summary-list {
    margin-top: 1.5rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.summary-item {
    margin-bottom: 1rem;
}

.summary-item-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.summary-item-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.3;
}

@media (max-width: 1100px) {
    .configurator-wrapper {
        flex-direction: column;
        padding-top: 80px;
    }

    .config-nav {
        display: none;
    }

    .config-summary-panel {
        width: 100%;
        position: static;
        order: -1;
    }
}

/* =============================================
   Contact Modal (HyperPC Style)
   ============================================= */

.contact-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    justify-content: flex-end;
    /* Align right like a drawer */
}

.contact-overlay.active {
    opacity: 1;
    visibility: visible;
}

.contact-modal {
    width: 100%;
    max-width: 500px;
    height: 100vh;
    background: #111;
    padding: 3rem 2.5rem;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.contact-overlay.active .contact-modal {
    transform: translateX(0);
}

.contact-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.contact-close:hover {
    color: var(--text-primary);
}

.contact-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.contact-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 3rem;
}

.contact-section-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.contact-link-action {
    color: #a0a0a0;
    text-decoration: underline;
    text-decoration-color: #555;
    transition: color 0.2s;
    font-size: 0.9rem;
}

.contact-link-action:hover {
    color: var(--accent-light);
    text-decoration-color: var(--accent-light);
}

.contact-phone {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0.5rem 0 2rem;
    display: block;
    text-decoration: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: #222;
    border: 1px solid #333;
    color: var(--text-primary);
    padding: 0.8rem 1rem;
    border-radius: 50px;
    /* Pill shape */
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
    cursor: pointer;
}

.contact-btn:hover {
    background: #333;
    border-color: #444;
    transform: translateY(-2px);
}

/* Specific icons colors */
.icon-tg {
    color: #2AABEE;
}

.icon-wa {
    color: #25D366;
}

.icon-vk {
    color: #0077FF;
}

.contact-cta {
    background: var(--gradient-premium);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 1rem;
    cursor: pointer;
    transition: transform 0.2s;
    width: fit-content;
}

.contact-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--accent-glow);
}

.contact-footer {
    margin-top: auto;
    padding-top: 3rem;
    color: #555;
    font-size: 0.85rem;
}

/* =============================================
   Contacts Page Styles
   ============================================= */

.contacts-hero {
    padding: 140px 2rem 60px;
    background: var(--bg-dark);
    text-align: center;
}

.contacts-title {
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--gradient-wine);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contacts-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.contact-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

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

.contact-card-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-wine);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 1.5rem;
}

.contact-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: color 0.2s;
}

.contact-info-item svg {
    color: var(--accent-light);
    flex-shrink: 0;
}

.contact-info-item:hover {
    color: var(--accent-light);
}

.location-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
}

.location-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.location-address {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.location-address svg {
    color: var(--accent);
    flex-shrink: 0;
}

.location-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.location-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.location-feature svg {
    color: var(--accent-light);
    flex-shrink: 0;
}

.btn-route {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.map-wrapper iframe {
    display: block;
}

.contacts-social {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.contacts-social h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.contacts-social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-card svg {
    color: var(--accent-light);
    transition: transform 0.3s;
}

.social-card span {
    font-size: 0.9rem;
    font-weight: 500;
}

.social-card:hover {
    border-color: var(--accent);
    background: rgba(139, 21, 56, 0.1);
    color: var(--text-primary);
}

.social-card:hover svg {
    transform: scale(1.15);
}

/* Simple Footer */
.footer-simple {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    padding: 2rem;
}

.footer-simple .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
}

.designer-credit {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Find Us block (Contacts) */
.find-us-section {
    margin-top: 3rem;
}

.find-us-section h3 {
    margin-bottom: 1rem;
}

.find-us-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.find-us-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    min-height: 140px;
}

.find-us-placeholder {
    width: 100%;
    height: 100%;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

@media (max-width: 900px) {
    .find-us-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .find-us-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .contacts-social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Budget Selector Premium Styles */
.budget-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: var(--bg-card-hover);
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.budget-btn {
    flex: 1;
    min-width: 70px;
    padding: 0.6rem 0.4rem;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.budget-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.budget-btn.active {
    background: var(--gradient-wine);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px var(--accent-glow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex !important;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    margin: auto;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease forwards;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    color: var(--text-secondary);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    z-index: 10;
}

.close-modal:hover {
    color: var(--text-primary);
}

.modal-title {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-primary);
    text-align: center;
}

.modal-list {
    overflow-y: auto;
    flex: 1;
    margin-bottom: 1rem;
    padding-right: 0.5rem;
}

.modal-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    width: 30%;
}

.spec-value {
    flex: 1;
    text-align: left;
    padding: 0 1rem;
}

.spec-name {
    font-weight: 500;
    color: var(--text-primary);
}

.spec-detail {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.spec-price {
    font-weight: 600;
    color: var(--gold);
    min-width: 80px;
    text-align: right;
}

.modal-footer {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    text-align: center;
}

/* Specs Button */
.btn-specs {
    width: 100%;
    margin-top: 1rem;
    padding: 0.8rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-specs:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--gold);
    color: var(--gold);
}

/* Order Form Modal Styles */
.order-modal-content {
    max-width: 700px;
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.required {
    color: var(--accent);
}

.form-group input[type="text"],
.form-group input[type="tel"] {
    padding: 0.8rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-card-hover);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.delivery-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.radio-option {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.radio-option:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
}

.radio-option input[type="radio"] {
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.radio-option input[type="radio"]:checked + .radio-label {
    color: var(--gold);
}

.radio-option:has(input:checked) {
    border-color: var(--accent);
    background: var(--bg-card-hover);
}

.radio-label {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.radio-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.radio-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.order-summary {
    padding: 1.5rem;
    background: rgba(139, 21, 56, 0.1);
    border: 1px solid var(--accent);
    border-radius: 8px;
    margin-top: 0.5rem;
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 600;
}

.order-total-price {
    color: var(--gold);
    font-size: 1.5rem;
}

.modal-footer-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.8rem;
    align-items: center;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-light);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    white-space: nowrap;
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 1.5rem 1rem;
        max-height: 90vh;
    }

    .modal-title {
        font-size: 1.3rem;
    }

    .order-form {
        gap: 1.2rem;
    }

    .form-group input[type="text"],
    .form-group input[type="tel"] {
        padding: 0.7rem 0.8rem;
        font-size: 0.95rem;
    }

    .modal-footer-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .btn, .btn-secondary, .btn-outline, .btn-gold {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .delivery-options {
        flex-direction: column;
    }
    
    .radio-option {
        min-width: 100%;
    }

    .radio-title {
        font-size: 0.95rem;
    }

    .radio-desc {
        font-size: 0.75rem;
    }

    .order-summary {
        padding: 1rem;
    }
}