/* ==========================================================================
   rubtsovsk-pc.top - Премиальный кибер-стиль для компьютерного магазина
   ========================================================================== */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/Inter.woff2') format('woff2-variations'),
        url('fonts/Inter.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700 900;
    font-display: swap;
    src: url('fonts/Montserrat-ExtraBold.ttf') format('truetype');
}

:root {
    --bg-main: #090c15;
    --bg-surface: #101524;
    --bg-card: rgba(18, 24, 41, 0.75);
    --bg-card-hover: rgba(26, 35, 60, 0.85);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(99, 102, 241, 0.3);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent-primary: #6366f1;
    /* Indigo */
    --accent-secondary: #06b6d4;
    /* Cyan */
    --accent-emerald: #10b981;
    /* Emerald Green (High FPS) */
    --accent-amber: #f59e0b;
    /* Amber (Medium FPS) */
    --accent-rose: #f43f5e;
    /* Rose (Low FPS) */

    --shadow-glow: 0 0 35px rgba(99, 102, 241, 0.15);
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-price: 'Montserrat', var(--font-main);
    --font-mono: 'JetBrains Mono', monospace;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #fff;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background: radial-gradient(circle at 50% 0%, #151b33 0%, var(--bg-main) 70%);
}

/* Фоновые градиентные световые пятна (Ambient Glow) */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #6366f1, transparent 70%);
    top: -150px;
    left: -100px;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #06b6d4, transparent 70%);
    top: 30%;
    right: -150px;
}

.glow-3 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, #8b5cf6, transparent 70%);
    bottom: 10%;
    left: 20%;
}

.container {
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Шапка (Header)
   ========================================================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(9, 12, 21, 0.75);
    border-bottom: 1px solid var(--border-subtle);
    padding: 16px 0;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1340px;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: var(--text-primary);
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-accent {
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

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

.badge-geo {
    font-size: 0.74rem;
    font-weight: 600;
    background: rgba(6, 182, 212, 0.15);
    color: #67e8f9;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(6, 182, 212, 0.3);
    margin-left: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}

.nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.nav-link:active {
    transform: translateY(0);
}

.nav-link-stock {
    color: #f3e8ff !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.22) 0%, rgba(147, 51, 234, 0.14) 100%);
    border: 1px solid rgba(168, 85, 247, 0.45);
    padding: 9px 18px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.2);
}

.nav-link.active {
    color: #38bdf8 !important;
    background: rgba(6, 182, 212, 0.15) !important;
    border-color: rgba(6, 182, 212, 0.45) !important;
    box-shadow: 0 0 14px rgba(6, 182, 212, 0.25);
}

/* Хлебные крошки (Breadcrumbs) */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.breadcrumbs a {
    color: #94a3b8 !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: #38bdf8 !important;
    text-decoration: underline;
}

.breadcrumbs .sep {
    color: #475569;
    user-select: none;
}

.breadcrumbs .current {
    color: #f1f5f9;
    font-weight: 600;
}

.nav-link-stock:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.35) 0%, rgba(147, 51, 234, 0.25) 100%);
    border-color: rgba(168, 85, 247, 0.7);
    color: #fff !important;
    box-shadow: 0 0 22px rgba(168, 85, 247, 0.4);
    transform: translateY(-1px);
}

.header-cta {
    flex-shrink: 0;
}

.header-cta .btn-telegram {
    padding: 9px 20px;
    font-size: 0.92rem;
    font-weight: 700;
}

@media (max-width: 1280px) {
    .header-container {
        padding: 0 20px;
        gap: 14px;
    }

    .nav {
        gap: 8px;
    }

    .nav-link {
        padding: 8px 13px;
        font-size: 0.86rem;
    }

    .nav-link-stock {
        padding: 8px 13px;
    }
}

@media (max-width: 1060px) {
    .nav-link-hide-tablet {
        display: none;
    }
}

/* ==========================================================================
   Кнопки (Buttons)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    letter-spacing: 0.2px;
}

.btn svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.btn-primary,
.btn-telegram,
.btn-whatsapp,
.btn-order-active {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.btn-primary svg,
.btn-telegram svg,
.btn-whatsapp svg,
.btn-order-active svg {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.28));
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-telegram {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #fff;
    box-shadow: 0 4px 18px rgba(2, 132, 199, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-telegram:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(2, 132, 199, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
    color: #fff;
    box-shadow: 0 4px 18px rgba(22, 128, 61, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(22, 128, 61, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding: 80px 0 60px;
    text-align: center;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #c7d2fe;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-emerald);
    box-shadow: 0 0 10px var(--accent-emerald);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.3);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

.hero-title {
    font-size: clamp(2.3rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1px;
    max-width: 900px;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 720px;
    margin-bottom: 36px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 960px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(12px);
    padding: 24px 20px;
    border-radius: var(--radius-md);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.stat-number {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #fff 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* ==========================================================================
   Секции общие стили
   ========================================================================== */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 48px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-secondary);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

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

/* ==========================================================================
   Интерактивный Бенчмаркер
   ========================================================================== */
.benchmarks-section {
    position: relative;
}

.benchmark-controls {
    position: relative;
    z-index: 40;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-card);
    transition: z-index 0.2s ease;
}

.benchmark-controls.dropdown-active,
.benchmark-controls:has(.custom-dropdown.is-open) {
    z-index: 1000;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.control-group:has(.custom-dropdown) {
    z-index: 50;
}

.control-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.select-wrapper {
    position: relative;
    min-width: 290px;
    z-index: 60;
}

/* Кастомный выпадающий список выбора игры (Glassmorphic Custom Dropdown) */
.custom-dropdown {
    position: relative;
    min-width: 290px;
    user-select: none;
    z-index: 70;
}

.custom-dropdown.is-open {
    z-index: 2000;
}

.custom-dropdown-trigger {
    width: 100%;
    padding: 12px 18px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    outline: none;
}

.custom-dropdown-current {
    flex: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-dropdown-trigger:hover,
.custom-dropdown.is-open .custom-dropdown-trigger {
    border-color: var(--accent-secondary);
    background: rgba(20, 30, 55, 0.95);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.25);
}

.dropdown-chevron {
    transition: transform 0.25s ease;
    color: var(--accent-secondary);
    flex-shrink: 0;
}

.custom-dropdown.is-open .dropdown-chevron {
    transform: rotate(180deg);
}

.custom-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    min-width: 320px;
    max-height: 380px;
    background: rgba(11, 16, 32, 0.98);
    border: 1px solid rgba(6, 182, 212, 0.45);
    border-radius: var(--radius-md);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(6, 182, 212, 0.25);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    z-index: 99999;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

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

.custom-dropdown.is-open .custom-dropdown-menu {
    display: flex;
}

.custom-dropdown-search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.5);
}

.custom-dropdown-search-wrap svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.custom-dropdown-search {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.88rem;
    font-family: inherit;
}

.custom-dropdown-search::placeholder {
    color: var(--text-muted);
}

.custom-dropdown-list {
    overflow-y: auto;
    padding: 6px;
    max-height: 290px;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.4) transparent;
}

.custom-dropdown-list::-webkit-scrollbar {
    width: 6px;
}

.custom-dropdown-list::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.4);
    border-radius: 4px;
}

.custom-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.custom-dropdown-item span:first-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 8px;
}

.custom-dropdown-item:hover,
.custom-dropdown-item.is-highlighted {
    background: rgba(99, 102, 241, 0.18);
    color: #fff;
}

.custom-dropdown-item.is-selected {
    background: rgba(6, 182, 212, 0.16);
    color: #38bdf8;
    font-weight: 700;
}

.custom-dropdown-check {
    opacity: 0;
    color: var(--accent-secondary);
    font-size: 0.9rem;
}

.custom-dropdown-item.is-selected .custom-dropdown-check {
    opacity: 1;
}

.custom-dropdown-empty {
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.custom-select {
    width: 100%;
    padding: 12px 18px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
}

.custom-select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.custom-select option {
    background-color: #0f172a;
    color: #fff;
    padding: 10px;
}

.res-toggle,
.sort-toggle {
    display: flex;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 4px;
    gap: 4px;
}

.res-btn,
.sort-btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.res-btn:hover,
.sort-btn:hover {
    color: #fff;
}

.res-btn.active,
.sort-btn.active {
    background: var(--accent-primary);
    color: #fff;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

/* Быстрые теги выбора популярных игр */
.quick-games-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 24px;
    padding: 12px 18px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    flex-wrap: wrap;
}

.quick-games-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;
}

.quick-games-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.quick-game-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

.quick-game-pill:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(99, 102, 241, 0.4);
    color: #fff;
    transform: translateY(-1px);
}

.quick-game-pill.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4) 0%, rgba(6, 182, 212, 0.4) 100%);
    border-color: var(--accent-secondary);
    color: #fff;
    box-shadow: 0 0 16px rgba(6, 182, 212, 0.32);
    font-weight: 700;
}

/* Результаты бенчмарка (Графики) */
.benchmark-results {
    position: relative;
    z-index: 10;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    box-shadow: var(--shadow-card);
    margin-bottom: 20px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 16px;
}

.results-header-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.results-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.3px;
}

.game-preset-badge {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.preset-tag {
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-weight: 600;
    line-height: 1.2;
}

.preset-tag-settings {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
}

.preset-tag-upscale {
    color: #67e8f9;
    border-color: rgba(6, 182, 212, 0.3);
    background: rgba(6, 182, 212, 0.08);
}

.preset-tag-rt {
    color: #94a3b8;
}

.results-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: default;
}

.legend-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.bullet-ultra {
    background-color: var(--accent-secondary);
    box-shadow: 0 0 8px var(--accent-secondary);
}

.bullet-smooth {
    background-color: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
}

.bullet-playable {
    background-color: var(--accent-amber);
    box-shadow: 0 0 8px var(--accent-amber);
}

.bullet-p01 {
    background-color: #be123c;
    box-shadow: 0 0 8px rgba(190, 18, 60, 0.7);
}

.bullet-p1 {
    background-color: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
}

.bullet-avg {
    background-color: #06b6d4;
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.7);
}

/* Баннеры и подсказки интерактивного сравнения */
.comp-hint-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px dashed rgba(99, 102, 241, 0.35);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.comp-hint-icon {
    color: var(--accent-secondary);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.comp-hint-content strong {
    color: #fff;
}

.comp-active-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 18px;
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.16) 0%, rgba(99, 102, 241, 0.16) 100%);
    border: 1px solid rgba(6, 182, 212, 0.45);
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.15);
}

.comp-active-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.88rem;
}

.comp-base-pill {
    padding: 3px 10px;
    background: var(--accent-secondary);
    color: #0f172a;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.comp-base-name {
    color: #fff;
    font-size: 0.98rem;
    font-weight: 700;
}

.comp-base-note {
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.btn-comp-clear {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-comp-clear:hover {
    background: rgba(244, 63, 94, 0.25);
    border-color: rgba(244, 63, 94, 0.5);
    color: #fb7185;
}

/* ==========================================================================
   Шкала измерений FPS (Ось X / Reference Grid)
   ========================================================================== */
.chart-scale-ruler {
    display: grid;
    grid-template-columns: 280px 1fr 110px;
    align-items: flex-end;
    gap: 16px;
    padding: 0 16px;
    margin-bottom: 9px;
    color: var(--text-muted);
    font-size: 0.74rem;
    font-family: var(--font-mono);
    user-select: none;
}

.ruler-col-info {
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
    color: #64748b;
    font-size: 0.7rem;
}

.ruler-col-track {
    position: relative;
    width: 100%;
    height: 24px;
}

.ruler-tick {
    position: absolute;
    bottom: 0;
    transform: translateX(-50%);
    font-size: 0.72rem;
    color: #94a3b8;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    line-height: 1;
}

.ruler-tick::before {
    content: '';
    width: 1px;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
}

.ruler-tick.tick-threshold-60 {
    color: #34d399;
    font-weight: 800;
}

.ruler-tick.tick-threshold-60::before {
    background: #10b981;
    height: 7px;
}

.ruler-tick.tick-threshold-120 {
    color: #38bdf8;
    font-weight: 800;
}

.ruler-tick.tick-threshold-120::before {
    background: #06b6d4;
    height: 7px;
}

.ruler-col-metrics {
    text-align: right;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
    color: #64748b;
    font-size: 0.7rem;
}

/* Графики баров (Charts Container) */
.charts-container,
.charts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chart-row {
    display: grid;
    grid-template-columns: 280px 1fr 110px;
    align-items: center;
    gap: 16px;
    padding: 8px 16px;
    height: 60px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    user-select: none;
    position: relative;
    box-sizing: border-box;
    overflow: visible;
}

.chart-row:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.chart-row::after {
    content: 'Сравнить относительно этого ПК';
    position: absolute;
    right: 18px;
    top: 0;
    transform: translateY(-50%);
    background: #1e293b;
    border: 1px solid rgba(99, 102, 241, 0.45);
    color: #a5b4fc;
    font-size: 0.64rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.chart-row:hover::after {
    opacity: 1;
    transform: translateY(-50%);
}

.chart-row.is-baseline {
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid var(--accent-secondary);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.22);
    transform: translateX(4px);
}

.chart-row.is-baseline::after,
.chart-row.is-baseline:hover::after {
    display: none !important;
}

.chart-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    overflow: hidden;
    margin-top: 2px;
}

.chart-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    white-space: nowrap;
    min-width: 0;
    line-height: 1.2;
}

.chart-name-link {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.18s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.chart-name-link:hover {
    color: var(--accent-secondary);
}

.external-icon {
    opacity: 0.4;
    transition: all 0.2s ease;
}

.chart-name-link:hover .external-icon {
    opacity: 1;
    color: var(--accent-secondary);
    transform: translate(1px, -1px);
}

.chart-tag-xeon {
    font-size: 0.66rem;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.2;
}

.chart-tag-core {
    font-size: 0.66rem;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(6, 182, 212, 0.2);
    color: #67e8f9;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.2;
}

.chart-stock-badge {
    font-size: 0.66rem;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.2;
}

.chart-stock-badge.stock-ready {
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.4);
    color: #fde047;
}

.chart-stock-badge.stock-custom {
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: #a5b4fc;
}

.comp-base-tag {
    font-size: 0.66rem;
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--accent-secondary);
    color: #0f172a;
    font-weight: 800;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.2;
}

.chart-desc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: nowrap;
    white-space: nowrap;
    min-width: 0;
    line-height: 1.2;
}

.chart-desc {
    font-size: 0.76rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.chart-price-pill {
    font-size: 0.72rem;
    font-family: var(--font-mono);
    font-weight: 700;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
    padding: 1px 5px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.2;
}

/* Оболочка полосы графика с фоновой сеткой */
.chart-bar-wrapper {
    width: 100%;
    height: 34px;
    background: rgba(15, 23, 42, 0.85);
    border-radius: var(--radius-sm);
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.07);
    overflow: hidden;
    z-index: 1;
}

.chart-grid-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
    z-index: 1;
}

.chart-target-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    pointer-events: none;
    z-index: 3;
}

.chart-target-line.line-60 {
    border-left: 1px dashed rgba(16, 185, 129, 0.45);
}

.chart-target-line.line-120 {
    border-left: 1px dashed rgba(6, 182, 212, 0.45);
}

/* Трехсегментный мульти-бар BenchX */
.chart-multi-bar {
    height: 100%;
    display: flex;
    align-items: stretch;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    z-index: 2;
    transition: width 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.chart-multi-bar .bar-seg {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 7px;
    position: relative;
    min-width: 0;
    transition: background 0.3s ease;
    box-sizing: border-box;
    overflow: hidden;
}

/* 0.1% Min (очень редкие события / микрофризы) */
.chart-multi-bar .seg-p01 {
    background: linear-gradient(90deg, #881337 0%, #be123c 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffe4e6;
}

/* 1% Low (редкие события / плавность) */
.chart-multi-bar .seg-p1 {
    background: linear-gradient(90deg, #047857 0%, #10b981 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    color: #ecfdf5;
}

/* AVG FPS (средняя частота кадров) — стабильный единый цвет шкалы для всех игр */
.chart-multi-bar .seg-avg {
    background: linear-gradient(90deg, #0284c7 0%, #06b6d4 100%);
    box-shadow: inset 0 0 12px rgba(6, 182, 212, 0.4);
    color: #ffffff;
    font-weight: 800;
}

.chart-multi-bar .seg-val {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
    letter-spacing: -0.2px;
    line-height: 1;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.8), 0 0 1px rgba(0, 0, 0, 0.9);
}

.chart-multi-bar .seg-unit {
    font-size: 0.64rem;
    font-weight: 600;
    opacity: 0.85;
    margin-left: 2px;
}

.chart-no-data-msg {
    color: var(--text-muted);
    font-size: 0.74rem;
    padding-left: 12px;
    font-style: italic;
}

/* Правая компактная колонка сравнения и GPU */
.chart-side-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    text-align: right;
    position: relative;
    z-index: 10;
}

.chart-idle-dash {
    color: #475569;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.chart-gpu-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #0d1527;
    color: var(--text-muted);
    line-height: 1.1;
    cursor: help;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.chart-gpu-badge.gpu-optimal {
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.35);
    background: #0d1e25;
}

.chart-gpu-badge.gpu-cpu-bound {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.35);
    background: #1f1b13;
}

.chart-p1-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(99, 102, 241, 0.45);
    background: #0d1527;
    color: #a5b4fc;
    line-height: 1.1;
    cursor: help;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
    position: relative;
    z-index: 12;
    flex-shrink: 0;
}

.sub-row-dot {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.65rem;
}

.comp-diff-fps {
    font-weight: 700;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.comp-diff-fps.is-base {
    color: var(--accent-secondary);
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: 0.5px;
}

.comp-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    line-height: 1.2;
}

.comp-pill.comp-base {
    background: rgba(6, 182, 212, 0.16);
    color: #67e8f9;
    border: 1px solid rgba(6, 182, 212, 0.35);
}

.comp-pill.comp-positive {
    background: rgba(16, 185, 129, 0.16);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.comp-pill.comp-negative {
    background: rgba(244, 63, 94, 0.16);
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.35);
}

.comp-pill.comp-equal {
    background: rgba(6, 182, 212, 0.16);
    color: #67e8f9;
    border: 1px solid rgba(6, 182, 212, 0.35);
}

.comp-same-gpu-floating {
    position: absolute;
    left: 18px;
    top: 0;
    transform: translateY(-50%);
    background: #1c1917;
    border: 1px solid rgba(245, 158, 11, 0.6);
    color: #fbbf24;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    pointer-events: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
    z-index: 15;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1.2;
}

.comp-same-gpu-floating svg {
    flex-shrink: 0;
    color: #fbbf24;
}

.comp-baseline-floating {
    position: absolute;
    right: 18px;
    top: 0;
    transform: translateY(-50%);
    background: var(--accent-secondary);
    color: #0f172a;
    font-size: 0.64rem;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    pointer-events: none;
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.45);
    z-index: 15;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1.2;
}

.gold-star-icon {
    width: 13px;
    height: 13px;
    fill: #facc15;
    stroke: #d97706;
    stroke-width: 1;
    stroke-linejoin: round;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
    flex-shrink: 0;
}

.chart-row.has-same-gpu {
    border-color: rgba(245, 158, 11, 0.35);
}

.chart-row.has-same-gpu:hover {
    border-color: rgba(245, 158, 11, 0.6);
}

.mobile-rotate-prompt {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 9px 16px;
    background: rgba(6, 182, 212, 0.08);
    border: 1px dashed rgba(6, 182, 212, 0.35);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    color: #67e8f9;
    margin-bottom: 14px;
    text-align: center;
    line-height: 1.35;
}

.mobile-rotate-prompt .rotate-icon {
    font-size: 1.1rem;
    display: inline-block;
    animation: rotatePhone 2.6s infinite ease-in-out;
}

@keyframes rotatePhone {
    0%, 15% { transform: rotate(0deg); }
    50%, 65% { transform: rotate(90deg); }
    100% { transform: rotate(0deg); }
}

.benchmark-note {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-md);
    padding: 14px 20px;
}

/* ==========================================================================
   Карточки готовых сборок (Builds Grid)
   ========================================================================== */
.builds-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

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

@media (max-width: 680px) {
    .builds-grid {
        grid-template-columns: 1fr;
    }
}

.build-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(14px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.build-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-accent);
    box-shadow: 0 20px 40px -15px rgba(99, 102, 241, 0.3);
}

.build-card-header {
    padding: 24px 28px 18px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.build-title-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    flex: 1;
}

.build-title-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.build-title {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
    margin-bottom: 4px;
    transition: color 0.2s ease;
}

.build-title-link:hover .build-title {
    color: var(--accent-secondary);
}

.build-title-accent {
    width: 44px;
    height: 3px;
    border-radius: 2px;
    margin-bottom: 8px;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.build-card:hover .build-title-accent {
    width: 72px;
}

.build-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* Статус наличия / под заказ в карточке (Вынесен наверх над заголовком) */
.build-status-wrapper {
    padding: 18px 24px 0;
}

.build-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1.2;
    transition: all 0.2s ease;
    width: fit-content;
}

.build-status-pill.in-stock {
    background: rgba(16, 185, 129, 0.14);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.build-status-pill.on-order {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-indicator-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-indicator-dot.green {
    background: #34d399;
    box-shadow: 0 0 8px #34d399;
    animation: pulse-dot 2s infinite ease-in-out;
}

.status-indicator-dot.amber {
    background: #fbbf24;
    box-shadow: 0 0 6px #fbbf24;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.85);
    }
}

.build-badge {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
    white-space: nowrap;
}

.badge-xeon {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-core {
    background: rgba(6, 182, 212, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-in-stock {
    background: rgba(16, 185, 129, 0.16);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-on-order {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* FPS плашка в карточке */
.build-fps-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 14px 24px 0;
    padding: 6px 14px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(6, 182, 212, 0.35);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    color: #67e8f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    width: fit-content;
}

.build-fps-pill svg {
    color: var(--accent-amber);
    flex-shrink: 0;
}

.build-specs {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex-grow: 1;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.spec-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-secondary);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.spec-icon svg {
    width: 15px;
    height: 15px;
    stroke: var(--accent-secondary);
    display: block;
}

.spec-text {
    color: var(--text-primary);
}

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

.build-footer {
    padding: 18px 24px 22px;
    background: rgba(0, 0, 0, 0.28);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.build-price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.build-price-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.build-price-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.build-price-flex {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.build-price {
    font-family: var(--font-price);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #fff;
    line-height: 1.1;
    white-space: nowrap;
}

.build-old-price {
    font-family: var(--font-price);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-muted);
    text-decoration: line-through;
    white-space: nowrap;
}

.build-discount-pill {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 7px;
    background: rgba(244, 63, 94, 0.18);
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.35);
    border-radius: 4px;
}

.build-cash-discount {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: 4px;
    color: #34d399;
    font-size: 0.76rem;
    font-weight: 600;
}

.build-cash-discount strong {
    color: #6ee7b7;
    font-weight: 700;
}

.modal-discount-badge {
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    color: #34d399;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.build-actions-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
}

.build-actions-row.has-two-btns {
    grid-template-columns: 1fr 1.3fr;
}

.btn-card-detail,
.btn-card-modal {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.84rem;
    font-weight: 700;
    text-align: center;
    justify-content: center;
    border-radius: var(--radius-md);
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.25;
}

.btn-order-active {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-order-active:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.55);
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* ==========================================================================
   Преимущества (Why Us)
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: all 0.25s ease;
}

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

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 18px;
}

.feature-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    color: #fff;
}

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

/* ==========================================================================
   Контакты (Contact Box)
   ========================================================================== */
.contact-box {
    background: linear-gradient(135deg, rgba(30, 41, 74, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(99, 102, 241, 0.35);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 56px 40px;
    text-align: center;
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.15);
    max-width: 860px;
    margin: 0 auto;
}

.contact-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
    color: #fff;
}

.contact-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 32px;
    font-size: 0.88rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

/* ==========================================================================
   Подвал (Footer)
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 36px 0 28px;
    margin-top: 48px;
    background: rgba(9, 12, 21, 0.85);
    position: relative;
    z-index: 10;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.footer-dev,
.techno-subfooter-dev {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text-secondary);
}

.techno-dev-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #f1f5f9;
    font-weight: 600;
    text-decoration: none;
    padding: 3px 10px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.28);
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

.techno-dev-badge:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: var(--accent-secondary);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.25), 0 0 10px rgba(99, 102, 241, 0.2);
}

.techno-dev-badge svg {
    flex-shrink: 0;
    stroke: var(--accent-secondary);
    transition: stroke 0.2s ease;
}

.techno-dev-badge:hover svg {
    stroke: #ffffff;
}

@media screen and (max-width: 768px) {
    .footer {
        padding: 28px 0 24px;
        margin-top: 32px;
    }

    .footer-container {
        gap: 18px;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .footer-dev,
    .techno-subfooter-dev {
        justify-content: center;
    }
}

/* ==========================================================================
   Адаптивность (Mobile Media Queries)
   ========================================================================== */
@media (max-width: 860px) {
    .nav {
        display: none;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .mobile-rotate-prompt {
        display: flex;
    }

    .chart-scale-ruler {
        display: none;
    }

    /* На смартфонах в вертикальном положении скрываем узкую полосу — показываем информативные мобильные карточки */
    .chart-bar-wrapper {
        display: none;
    }

    .chart-row {
        height: auto;
        min-height: auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
    }

    .chart-info {
        flex: 1;
        min-width: 0;
        margin-top: 0;
    }

    .chart-metrics {
        flex-shrink: 0;
        min-width: auto;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        text-align: right;
        margin-top: 0;
    }

    .chart-fps-badge {
        text-align: right;
        font-size: 1.15rem;
    }

    .comp-same-gpu-floating,
    .comp-baseline-floating {
        position: static;
        display: inline-flex;
        margin-bottom: 4px;
        font-size: 0.64rem;
        padding: 1px 7px;
    }

    .quick-games-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .quick-games-bar::-webkit-scrollbar {
        display: none;
    }

    .quick-games-list {
        flex-wrap: nowrap;
    }

    .benchmark-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .select-wrapper {
        min-width: 100%;
    }
}

/* При горизонтальном расположении смартфона (Landscape) — активируем полноценные графики! */
@media screen and (orientation: landscape) and (max-width: 950px) {
    .mobile-rotate-prompt {
        display: none;
    }

    .chart-scale-ruler {
        display: grid;
        grid-template-columns: 240px 1fr 100px;
        gap: 12px;
        padding: 0 12px;
        margin-bottom: 8px;
    }

    .chart-bar-wrapper {
        display: flex;
        height: 30px;
        margin-top: 0;
    }

    .chart-row {
        display: grid;
        grid-template-columns: 240px 1fr 100px;
        gap: 12px;
        padding: 6px 12px;
        height: 54px;
    }

    .comp-same-gpu-floating {
        position: absolute;
        left: 14px;
        top: 0;
        transform: translateY(-50%);
        font-size: 0.64rem;
        padding: 1px 8px;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 16px 12px;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }

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

    .contact-card {
        padding: 32px 20px;
    }

    .contact-actions {
        flex-direction: column;
        width: 100%;
    }

    .contact-actions .btn {
        width: 100%;
    }

    /* Адаптивность строк бенчмарка */
    .chart-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
        min-height: auto;
    }

    .chart-info {
        width: 100%;
    }

    .chart-bar-wrapper {
        height: 20px;
        order: 2;
    }

    .chart-metrics {
        order: 3;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        width: 100%;
        text-align: left;
        gap: 8px;
        min-width: auto;
        margin-top: 0;
    }

    .chart-metrics-main {
        flex-direction: row-reverse;
        justify-content: flex-start;
        align-items: center;
        gap: 8px;
    }

    .chart-metrics-sub {
        justify-content: flex-end;
    }

    .comp-active-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .btn-comp-clear {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .header-container {
        padding: 0 14px;
        gap: 8px;
    }

    .logo {
        font-size: 1.15rem;
    }

    .badge-geo {
        display: none;
    }

    .header-cta .btn {
        padding: 7px 11px;
        font-size: 0.78rem;
        white-space: nowrap;
        gap: 6px;
    }

    .header-cta .btn svg {
        width: 16px;
        height: 16px;
    }

    .build-actions-row.has-two-btns {
        grid-template-columns: 1fr 1.25fr;
        gap: 6px;
    }

    .btn-card-detail,
    .btn-card-modal {
        padding: 9px 8px;
        font-size: 0.78rem;
    }

    .build-card-header {
        padding: 16px 16px 12px;
    }

    .build-specs {
        padding: 14px 16px;
    }

    .build-footer {
        padding: 14px 16px 18px;
    }

    .modal-dialog {
        padding: 24px 18px;
    }

    .res-btn {
        padding: 8px 6px;
        font-size: 0.78rem;
    }
}

/* ==========================================================================
   Статусы наличия сборок
   ========================================================================== */
.badge-in-stock {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.badge-on-order {
    background: rgba(148, 163, 184, 0.08) !important;
    color: #94a3b8 !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
}

.admin-login-link {
    opacity: 0.4;
    font-size: 0.8rem;
    transition: opacity 0.2s ease;
}

.admin-login-link:hover {
    opacity: 1;
}

/* ==========================================================================
   Модальное окно заявки (Modal)
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 15, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop.active {
    display: flex;
}

.modal-dialog {
    background: linear-gradient(135deg, #11182c 0%, #0d1222 100%);
    border: 1px solid rgba(99, 102, 241, 0.35);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 520px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 36px 32px;
    position: relative;
    animation: modalSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}



@keyframes modalSlideUp {
    from {
        transform: translateY(20px) scale(0.97);
        opacity: 0;
    }

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

.modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #fff;
}

.modal-header {
    margin-bottom: 24px;
}

.modal-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-secondary);
    margin-bottom: 8px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
    margin-bottom: 8px;
}

.modal-subtitle {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.4;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal-input,
.modal-select,
.modal-textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-input:focus,
.modal-select:focus,
.modal-textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.modal-select option {
    background: #0f172a;
    color: #fff;
}

/* Кастомный селект сборок внутри модального окна */
.form-field-dropdown {
    position: relative;
    z-index: 60;
}

.modal-custom-dropdown {
    width: 100%;
    min-width: 100%;
    position: relative;
    user-select: none;
}

.modal-dropdown-trigger {
    width: 100%;
    padding: 13px 16px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    text-align: left;
    outline: none;
}

.modal-dropdown-trigger:hover,
.modal-custom-dropdown.is-open .modal-dropdown-trigger {
    border-color: var(--accent-secondary);
    background: rgba(20, 30, 55, 0.95);
    box-shadow: 0 0 16px rgba(6, 182, 212, 0.25);
}

.modal-custom-dropdown.is-open .dropdown-chevron {
    transform: rotate(180deg);
}

.modal-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background: rgba(10, 15, 30, 0.98);
    border: 1px solid rgba(6, 182, 212, 0.45);
    border-radius: var(--radius-sm);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(6, 182, 212, 0.2);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-custom-dropdown.is-open .modal-dropdown-menu {
    display: flex;
}

.modal-dropdown-list {
    max-height: 250px;
    overflow-y: auto;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-dropdown-list::-webkit-scrollbar {
    width: 6px;
}

.modal-dropdown-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.modal-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
    gap: 8px;
}

.modal-dropdown-item:hover,
.modal-dropdown-item.is-selected {
    background: rgba(99, 102, 241, 0.18);
    color: #fff;
}

.modal-dropdown-item.is-selected {
    background: rgba(6, 182, 212, 0.15);
    border-left: 3px solid var(--accent-secondary);
    font-weight: 600;
    color: #fff;
}

.modal-dropdown-item .item-title {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-dropdown-item .item-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    flex-shrink: 0;
}

.item-badge.badge-stock {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.item-badge.badge-order {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.item-badge.badge-calc {
    background: rgba(168, 85, 247, 0.18);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.35);
}

.modal-dropdown-item .item-check {
    color: var(--accent-secondary);
    font-weight: 800;
    font-size: 0.95rem;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.modal-dropdown-item.is-selected .item-check {
    opacity: 1;
}

.modal-textarea {
    resize: vertical;
    min-height: 70px;
}

.field-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.form-response {
    margin-top: 10px;
    font-size: 0.88rem;
    text-align: center;
}

.form-response.success {
    color: #34d399;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 12px;
    border-radius: var(--radius-sm);
}

.form-response.error {
    color: #fb7185;
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.3);
    padding: 12px;
    border-radius: var(--radius-sm);
}

/* Картинка в карточке товара на главной */
.build-card-img-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 60%, #151d38 0%, #090d1a 100%);
    border-bottom: 1px solid var(--border-subtle);
    padding: 14px 16px;
    position: relative;
}

.build-card-img-link::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 20%;
    right: 20%;
    height: 18px;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.45) 0%, rgba(6, 182, 212, 0) 75%);
    filter: blur(8px);
    pointer-events: none;
    border-radius: 50%;
}

.build-card-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.75));
    position: relative;
    z-index: 1;
}

.build-card:hover .build-card-img {
    transform: scale(1.06);
}

/* ==========================================================================
   Стили согласия на обработку ПД (152-ФЗ) и Legal-страниц
   ========================================================================== */
.form-privacy-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 14px;
    margin-bottom: 4px;
    line-height: 1.45;
}

.form-privacy-note a {
    color: var(--color-cyan);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.form-privacy-note a:hover {
    color: #fff;
}

/* Лид-баннер со сборками в наличии */
.stock-lead-banner {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.18) 0%, rgba(30, 27, 75, 0.4) 100%);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: var(--radius-lg);
    padding: 24px 30px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.stock-lead-content h2,
.stock-lead-content .stock-lead-title {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.stock-lead-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.stock-lead-action {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .stock-lead-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
}

.legal-page-section {
    padding: 32px 0 80px 0;
    min-height: calc(100vh - 200px);
}

.legal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 40px 44px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .legal-card {
        padding: 24px 20px;
    }
}

.legal-section-block {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 26px 30px;
    margin-bottom: 22px;
    transition: border-color 0.2s ease;
}

.legal-section-block:hover {
    border-color: rgba(6, 182, 212, 0.3);
}

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

.legal-section-block h2 {
    font-size: 1.2rem;
    color: #fff;
    margin-top: 0;
    margin-bottom: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-header {
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 24px;
}

.legal-title {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.legal-meta {
    font-size: 0.88rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.legal-content h2,
.legal-section-block h2 {
    font-size: 1.25rem;
    color: #fff;
    margin-top: 0;
    margin-bottom: 14px;
    font-weight: 700;
}

.legal-content p, .legal-content li {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.legal-content ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.legal-content strong {
    color: #fff;
}

.legal-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-cyan);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    transition: transform 0.2s ease;
}

.legal-back-link:hover {
    transform: translateX(-4px);
    color: #fff;
}
