/* ==========================================================================
   FreshGTA — стили (v2)
   Шрифты -> токены/темы -> база -> фон/декор -> навигация -> кнопки
   -> секции -> каталог/отзывы -> детальная -> адаптив
   ========================================================================== */

/* -------------------- Шрифты: ровно 3 семейства -------------------- */
@font-face { /* 1. Главный заголовок (Hero) */
    font-family: 'FGTitle';
    src: url('/fonts/bebas.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}
@font-face { /* 2. Заголовки / названия / цены */
    font-family: 'FGHead';
    src: url('/fonts/sf-semibold.otf') format('opentype');
    font-weight: 600;
    font-display: swap;
}
@font-face { /* 3. Мелкий текст */
    font-family: 'FGText';
    src: url('/fonts/sf-light.otf') format('opentype');
    font-weight: 300;
    font-display: swap;
}

/* -------------------- Токены -------------------- */
:root {
    --accent: #9fe635;
    --accent-hi: #c6ff63;
    --accent-lo: #7bc41f;
    --red: #e5484d;

    --maxw: 1200px;
    --nav-h: 88px;

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

    --font-title: 'FGTitle', 'Bebas Neue', Impact, sans-serif;
    --font-head: 'FGHead', 'Segoe UI', system-ui, sans-serif;
    --font-text: 'FGText', 'Segoe UI', system-ui, sans-serif;
}

/* Тёмная тема — по умолчанию */
[data-theme='dark'] {
    --bg: #242424;
    --bg-2: #1e1e1e;
    --text: #f3f3f3;
    --text-muted: #a6a6a6;
    --card-bg: #2b2b2b;
    --card-bg-2: #262626;
    --card-border: rgba(255, 255, 255, 0.09);
    --card-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
    --card-shadow-hover: 0 30px 60px rgba(0, 0, 0, 0.62);
    --glass-bg: rgba(36, 36, 36, 0.6);
    --glass-border: rgba(255, 255, 255, 0.12);
    --hairline: rgba(255, 255, 255, 0.12);
    --grid-color: rgba(255, 255, 255, 0.035);
    --skeleton: rgba(255, 255, 255, 0.08);
    --skeleton-shine: rgba(255, 255, 255, 0.05);
    --shape-a: rgba(159, 230, 53, 0.16);
    --shape-b: rgba(120, 150, 255, 0.05);
    --shape-c: rgba(255, 255, 255, 0.045);
    --orb-a: rgba(159, 230, 53, 0.28);
    --btn-bg: #3d3d40;
    --btn-text: #ffffff;
    --btn-text-hover: #12200a;
    --btn-border: rgba(255, 255, 255, 0.18);
    --btn-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
    --wm-stroke: rgba(255, 255, 255, 0.05);
    --grain-blend: overlay;
    --grain-opacity: 0.06;
}

/* Светлая тема — оживлённая, не «унылая» */
[data-theme='light'] {
    --bg: #ffffff;
    --bg-2: #f4f6f0;
    --text: #15160f;
    --text-muted: #5c5f55;
    --card-bg: #ffffff;
    --card-bg-2: #fbfcf8;
    --card-border: rgba(20, 22, 12, 0.10);
    --card-shadow: 0 12px 34px rgba(40, 60, 10, 0.09);
    --card-shadow-hover: 0 26px 56px rgba(60, 90, 20, 0.18);
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(20, 22, 12, 0.08);
    --hairline: rgba(20, 22, 12, 0.10);
    --grid-color: rgba(20, 30, 10, 0.045);
    --skeleton: rgba(20, 22, 12, 0.07);
    --skeleton-shine: rgba(20, 22, 12, 0.035);
    --shape-a: rgba(159, 230, 53, 0.10);
    --shape-b: rgba(90, 170, 255, 0.08);
    --shape-c: rgba(20, 40, 0, 0.04);
    --orb-a: rgba(159, 230, 53, 0.10);
    --btn-bg: #17180f;
    --btn-text: #ffffff;
    --btn-text-hover: #14210a;
    --btn-border: transparent;
    --btn-shadow: 0 10px 26px rgba(30, 40, 0, 0.18);
    --wm-stroke: rgba(20, 30, 0, 0.06);
    --grain-blend: multiply;
    --grain-opacity: 0.04;
}

/* -------------------- Сброс / база -------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent; /* убираем синие отклики на телефоне */
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-text);
    font-size: 17px;
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
    padding-top: var(--nav-h);
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

img {
    max-width: 100%;
    display: block;
    -webkit-user-drag: none;
    user-select: none;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.1; }
button { font-family: inherit; cursor: pointer; color: inherit; background: none; border: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.main { position: relative; z-index: 1; }

/* -------------------- Фон / декор -------------------- */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

.bg__grid {
    position: absolute;
    inset: -2px;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 78%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 78%);
}

.bg__shape {
    position: absolute;
    display: block;
    border-radius: 50%;
    filter: blur(64px);
    will-change: transform;
}
.bg__shape--1 { width: 620px; height: 620px; top: -160px; left: -120px; background: radial-gradient(circle at 40% 40%, var(--shape-a), transparent 70%); }
.bg__shape--2 { width: 540px; height: 540px; top: 32%; right: -160px; background: radial-gradient(circle at 50% 50%, var(--shape-a), transparent 70%); }
.bg__shape--3 { width: 480px; height: 480px; bottom: -140px; left: 6%; background: radial-gradient(circle at 50% 50%, var(--shape-c), transparent 70%); }
.bg__shape--4 { width: 400px; height: 400px; top: 8%; left: 44%; background: radial-gradient(circle at 50% 50%, var(--shape-b), transparent 70%); }
.bg__shape--5 { width: 360px; height: 360px; top: 62%; left: 30%; background: radial-gradient(circle at 50% 50%, var(--shape-a), transparent 72%); }
.bg__shape--6 { width: 300px; height: 300px; top: 120%; right: 18%; background: radial-gradient(circle at 50% 50%, var(--shape-c), transparent 70%); }
/* На белой теме зелёные «шарики» делаем мягкими размытыми пятнами, не кислотными */
[data-theme='light'] .bg__shape { filter: blur(96px); }
[data-theme='light'] .hero__orb { filter: blur(70px); }

.bg__grain {
    position: absolute;
    inset: 0;
    opacity: var(--grain-opacity);
    mix-blend-mode: var(--grain-blend);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Индикатор прокрутки */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; pointer-events: none; }
.scroll-progress__bar { display: block; height: 100%; width: 0; background: var(--accent); box-shadow: 0 0 12px var(--accent); transition: width 0.1s linear; }

/* Курсор-кольцо (мгновенно следует, без задержки) */
.cursor-dot { display: none; }
@media (hover: hover) and (pointer: fine) {
    .cursor-dot {
        display: block;
        position: fixed;
        top: 0; left: 0;
        width: 30px; height: 30px;
        margin: -15px 0 0 -15px;
        border: 1.5px solid var(--accent);
        border-radius: 50%;
        opacity: 0;
        pointer-events: none;
        z-index: 9998;
        box-shadow: 0 0 14px rgba(159, 230, 53, 0.35);
        transition: width 0.18s var(--ease), height 0.18s var(--ease), margin 0.18s var(--ease), background 0.2s var(--ease), opacity 0.25s var(--ease);
        will-change: transform;
    }
    /* На интерактиве кольцо тёмное — видно на салатовой заливке кнопок */
    .cursor-dot.is-active { width: 52px; height: 52px; margin: -26px 0 0 -26px; border-color: #14210a; background: rgba(20, 33, 10, 0.14); box-shadow: none; }
    /* Прячем системный курсор везде, включая галерею (grab/grabbing) */
    html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor [data-scroll],
    html.has-cursor .gallery__track, html.has-cursor .gallery__track.is-dragging { cursor: none; }
}

/* -------------------- Интро-заставка -------------------- */
.intro {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg); pointer-events: none; overflow: hidden;
    animation: introWipe 0.7s cubic-bezier(0.76, 0, 0.24, 1) 1.55s forwards;
}
.intro__grid {
    position: absolute; inset: -2px;
    background-image: linear-gradient(var(--grid-color) 1px, transparent 1px), linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 60px 60px;
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000, transparent 75%);
    mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000, transparent 75%);
    opacity: 0; animation: introGrid 0.7s var(--ease) 0.1s forwards;
}
.intro__box { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; animation: introFade 0.45s var(--ease) 1.5s forwards; }
.intro__mark { width: auto; height: 60px; filter: drop-shadow(0 0 34px rgba(159, 230, 53, 0.55)); animation: introMark 0.7s var(--ease) both; }
.intro__name { font-family: var(--font-title); font-weight: 400; font-size: 40px; letter-spacing: 2px; color: var(--text); opacity: 0; animation: introName 0.55s var(--ease) 0.35s forwards; }
.intro__bar { position: relative; width: 180px; height: 3px; background: var(--hairline); overflow: hidden; opacity: 0; animation: introName 0.4s var(--ease) 0.4s forwards; }
.intro__bar-fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent-lo), var(--accent), var(--accent-hi)); transform: scaleX(0); transform-origin: left; box-shadow: 0 0 12px var(--accent); animation: introBar 1.05s var(--ease) 0.45s forwards; }
.intro__caption { font-family: var(--font-text); font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--text-muted); opacity: 0; animation: introName 0.5s var(--ease) 0.7s forwards; }
@keyframes introMark { from { transform: scale(0.4) rotate(-45deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes introName { to { opacity: 1; } }
@keyframes introGrid { to { opacity: 1; } }
@keyframes introBar { to { transform: scaleX(1); } }
@keyframes introFade { to { opacity: 0; transform: translateY(-14px); } }
@keyframes introWipe { to { transform: translateY(-100%); } }
@media (prefers-reduced-motion: reduce) { .intro { display: none; } }

/* -------------------- Liquid-glass навигация (сверху, по центру) -------------------- */
.glass {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22);
}

.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 60; display: flex; justify-content: center; padding: 0 16px; }
.nav__inner {
    width: 100%;
    max-width: 1120px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
}

.nav__brand { justify-self: start; display: flex; align-items: center; gap: 10px; }
.nav__logo-mark { width: auto; height: 26px; flex: none; object-fit: contain; }
.nav__logo-text { font-family: var(--font-title); font-weight: 400; font-size: 23px; letter-spacing: 1px; line-height: 1; margin-top: 2px; }

.nav__links { justify-self: center; display: flex; gap: 4px; list-style: none; }
.nav__link { position: relative; display: block; padding: 8px 14px; font-family: var(--font-text); font-size: 15px; color: var(--text); transition: color 0.2s var(--ease); }
.nav__link::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease); }
.nav__link:hover { color: var(--accent); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__actions { justify-self: end; display: flex; align-items: center; gap: 8px; }

.nav__theme { position: relative; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; color: var(--text); transition: color 0.25s var(--ease), transform 0.2s var(--ease); }
.nav__theme:hover { color: var(--accent); }
.nav__theme:active { transform: scale(0.9); }
.nav__theme-ico { position: absolute; display: flex; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.nav__theme-ico svg { width: 22px; height: 22px; }
[data-theme='light'] .nav__theme-ico--sun { opacity: 1; transform: rotate(0) scale(1); }
[data-theme='light'] .nav__theme-ico--moon { opacity: 0; transform: rotate(-90deg) scale(0.6); }
[data-theme='dark'] .nav__theme-ico--sun { opacity: 0; transform: rotate(90deg) scale(0.6); }
[data-theme='dark'] .nav__theme-ico--moon { opacity: 1; transform: rotate(0) scale(1); }

.nav__burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; padding: 9px; }
.nav__burger span { display: block; height: 2px; width: 100%; background: var(--text); transition: transform 0.3s var(--ease), opacity 0.2s var(--ease); }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------------------- Кнопки: заливка «полоса загрузки» -------------------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 30px;
    background: var(--btn-bg);
    color: var(--btn-text);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.3px;
    border: 1px solid var(--btn-border);
    border-radius: 0;
    overflow: hidden;
    isolation: isolate;
    box-shadow: var(--btn-shadow);
    transition: transform 0.15s var(--ease), box-shadow 0.25s var(--ease), color 0.4s var(--ease) 0.1s, border-color 0.3s var(--ease);
}
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.5s var(--ease);
    z-index: -1;
}
.btn:hover { color: var(--btn-text-hover); border-color: var(--accent); box-shadow: 0 14px 34px rgba(159, 230, 53, 0.32); transform: translateY(-2px); }
.btn:hover::before { transform: scaleX(1); }
.btn:active { transform: translateY(0) scale(0.96); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn__label { position: relative; z-index: 1; }

/* -------------------- Секции / заголовки -------------------- */
.section { position: relative; padding: 110px 0; scroll-margin-top: var(--nav-h); }

.section__head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 50px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-text); font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase;
    color: var(--accent); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--accent); display: inline-block; }

.section__title { font-family: var(--font-head); font-weight: 600; font-size: clamp(30px, 5vw, 48px); letter-spacing: -0.5px; text-align: center; }

/* Появление при скролле */
.reveal { opacity: 1; transform: none; }
html.reveal-ready .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
html.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }

/* -------------------- Hero -------------------- */
.hero { position: relative; min-height: calc(100vh - var(--nav-h)); display: flex; align-items: center; justify-content: center; text-align: center; padding: 72px 24px 104px; overflow: hidden; }
.hero { perspective: 1100px; }
.hero__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 30px; transform-style: preserve-3d; }
.hero__fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 0.8s var(--ease); }
.hero__fx.is-on { opacity: 1; }
.hero__title { transform-style: preserve-3d; }

.hero__watermark {
    position: absolute; top: 50%; left: 50%; z-index: 0;
    transform: translate(calc(-50% + var(--wmx, 0px)), calc(-50% + var(--wmy, 0px))) rotate(-4deg);
    font-family: var(--font-title); font-size: clamp(200px, 46vw, 660px); line-height: 1; white-space: nowrap;
    color: transparent; -webkit-text-stroke: 2px var(--wm-stroke); letter-spacing: 4px; pointer-events: none;
    transition: transform 0.25s var(--ease);
}
.hero__title { transition: transform 0.2s var(--ease); will-change: transform; }
.hero__orb { position: absolute; z-index: 1; border-radius: 50%; filter: blur(46px); pointer-events: none; }
.hero__orb--a { width: 260px; height: 260px; top: 16%; left: 12%; background: radial-gradient(circle, var(--orb-a), transparent 68%); animation: floatA 11s ease-in-out infinite; }
.hero__orb--b { width: 220px; height: 220px; bottom: 14%; right: 14%; background: radial-gradient(circle, var(--shape-b), transparent 68%); animation: floatB 13s ease-in-out infinite; }
@keyframes floatA { 50% { transform: translate(24px, -26px); } }
@keyframes floatB { 50% { transform: translate(-22px, 20px); } }

.hero__eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-text); font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--text-muted);
    padding: 9px 18px; border: 1px solid var(--hairline); background: var(--glass-bg);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero__eyebrow::before { content: ''; width: 8px; height: 8px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.hero__title { font-family: var(--font-title); font-weight: 400; line-height: 0.86; display: flex; flex-direction: column; gap: 2px; }
.hero__make { position: relative; display: inline-block; font-size: clamp(58px, 13vw, 150px); color: var(--text); letter-spacing: 2px; }
.hero__strike {
    position: absolute; left: -3%; right: -3%; top: 50%; height: 0.07em; background: var(--red); opacity: 0.95;
    transform: rotate(-5deg) scaleX(1); transform-origin: left center;
    box-shadow: 0 0 18px rgba(229, 72, 77, 0.5);
}
html.reveal-ready .hero__strike { animation: heroStrike 0.9s var(--ease) 2.35s both; }
@keyframes heroStrike { from { transform: rotate(-5deg) scaleX(0); } to { transform: rotate(-5deg) scaleX(1); } }

.hero__buy {
    font-size: clamp(84px, 21vw, 240px); letter-spacing: 3px;
    background: linear-gradient(100deg, var(--accent) 0%, var(--accent-hi) 45%, #ffffff 52%, var(--accent-hi) 60%, var(--accent) 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text; color: var(--accent); -webkit-text-fill-color: transparent;
    animation: buyGrad 5s linear infinite;
    filter: drop-shadow(0 0 46px rgba(159, 230, 53, 0.45));
}
@keyframes buyGrad { to { background-position: 220% 0; } }

.hero__cta { padding: 18px 44px; font-size: 18px; }

.hero__scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2; width: 26px; height: 42px; border: 2px solid var(--hairline); border-radius: 14px; display: flex; justify-content: center; padding-top: 7px; }
.hero__scroll-dot { width: 4px; height: 8px; background: var(--accent); border-radius: 2px; animation: scrollDot 1.6s var(--ease) infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(12px); } 100% { opacity: 0; } }

/* -------------------- О нас -------------------- */
.about__text { max-width: 820px; margin: 0 auto; font-family: var(--font-text); font-size: 18px; color: var(--text); text-align: center; }
.about__text p { margin-bottom: 18px; }
.about__text p:last-child { margin-bottom: 0; }
.about__text strong { color: var(--accent); font-weight: 400; }

/* -------------------- Этапы -------------------- */
.steps__wrap { position: relative; }
.steps__route { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; overflow: visible; }
.steps__route-path { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0.5; transition: stroke-dashoffset 2s var(--ease); }
.steps__wrap.is-drawn .steps__route-path { stroke-dashoffset: 0; }

.steps__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 30px; }
.steps__card {
    position: relative; background: linear-gradient(160deg, var(--card-bg), var(--card-bg-2));
    border: 1px solid var(--card-border); box-shadow: var(--card-shadow); padding: 32px 28px;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.steps__card:hover { box-shadow: var(--card-shadow-hover); border-color: rgba(159, 230, 53, 0.4); }
.steps__card--up { transform: translateY(-26px); }
.steps__card--up:hover { transform: translateY(-32px); }
.steps__card--down { transform: translateY(26px); }
.steps__card--down:hover { transform: translateY(20px); }
.steps__num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--accent); color: #14210a; font-family: var(--font-head); font-weight: 600; font-size: 20px; margin-bottom: 18px; box-shadow: 0 0 20px rgba(159, 230, 53, 0.35); }
.steps__name { font-size: 21px; margin-bottom: 10px; }
.steps__desc { font-family: var(--font-text); color: var(--text-muted); font-size: 15px; line-height: 1.55; }

/* -------------------- Отзывы -------------------- */
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 46px; }
.review {
    display: flex; flex-direction: column; gap: 16px;
    background: linear-gradient(160deg, var(--card-bg), var(--card-bg-2));
    border: 1px solid var(--card-border); box-shadow: var(--card-shadow); padding: 28px 26px;
    transition: transform 0.18s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
    will-change: transform;
}
.review:hover { box-shadow: var(--card-shadow-hover); border-color: rgba(159, 230, 53, 0.35); }
.review__head { display: flex; align-items: center; gap: 14px; }
.review__avatar { width: 54px; height: 54px; object-fit: cover; flex: none; background: var(--skeleton); }
.review__meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.review__nick { font-family: var(--font-head); font-weight: 600; font-size: 16px; }
.review__stars { display: inline-flex; gap: 2px; }
.review__stars svg { width: 16px; height: 16px; }
.review__stars .star { color: #767676; }
.review__stars .star--on { color: var(--accent); }
.review__stars .star svg { fill: currentColor; stroke: currentColor; }
.review__text { font-family: var(--font-text); color: var(--text); font-size: 15.5px; line-height: 1.6; flex: 1; }
.review__amount { align-self: stretch; font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--accent); border-top: 1px solid var(--hairline); padding-top: 14px; }
.reviews__cta { text-align: center; }

/* -------------------- Каталог -------------------- */
.catalog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.product {
    display: flex; flex-direction: column; background: var(--card-bg);
    border: 1px solid var(--card-border); box-shadow: var(--card-shadow); overflow: hidden;
    transition: transform 0.18s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
    will-change: transform;
}
.product:hover { box-shadow: var(--card-shadow-hover); border-color: rgba(159, 230, 53, 0.4); }
.product__media { position: relative; aspect-ratio: 16 / 10; background: var(--skeleton); overflow: hidden; }
.product__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.product:hover .product__img { transform: scale(1.06); }
.product__media::after { content: ''; position: absolute; top: 0; left: -70%; width: 45%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent); transform: skewX(-18deg); transition: left 0.7s var(--ease); pointer-events: none; z-index: 1; }
.product:hover .product__media::after { left: 130%; }
.product__tag { position: absolute; top: 14px; left: 14px; background: var(--accent); color: #14210a; font-family: var(--font-head); font-weight: 600; font-size: 12px; letter-spacing: 0.4px; padding: 6px 12px; text-transform: uppercase; box-shadow: 0 6px 16px rgba(159, 230, 53, 0.4); }
.product__body { display: flex; flex-direction: column; gap: 10px; padding: 24px 22px 26px; flex: 1; }
.product__title { font-size: 20px; }
.product__price { font-family: var(--font-head); font-weight: 600; font-size: 22px; color: var(--accent); }
.product__desc { font-family: var(--font-text); color: var(--text-muted); font-size: 14.5px; line-height: 1.55; flex: 1; }
.product__btn { margin-top: 10px; width: 100%; }

/* -------------------- Уже выбрали? (обычная секция, как «О нас») -------------------- */
.chosen__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.chosen__btn { padding: 17px 42px; }
.chosen__note { font-family: var(--font-text); color: var(--text-muted); font-size: 13.5px; }

/* -------------------- Соцсети -------------------- */
.socials__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); justify-content: center; gap: 26px; }
.social-btn {
    position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 28px;
    background: var(--btn-bg); color: var(--btn-text); font-family: var(--font-head); font-weight: 600; font-size: 19px;
    border: 1px solid var(--btn-border); overflow: hidden; isolation: isolate; box-shadow: var(--btn-shadow);
    transition: transform 0.15s var(--ease), box-shadow 0.25s var(--ease), color 0.4s var(--ease) 0.1s, border-color 0.3s var(--ease);
}
.social-btn::before { content: ''; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left center; transition: transform 0.5s var(--ease); z-index: -1; }
.social-btn:hover { color: var(--btn-text-hover); border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 16px 38px rgba(159, 230, 53, 0.3); }
.social-btn:hover::before { transform: scaleX(1); }
.social-btn:active { transform: translateY(0) scale(0.97); }
.social-btn__ico { position: relative; z-index: 1; display: flex; }
.social-btn__ico svg { width: 28px; height: 28px; }
.social-btn__label { position: relative; z-index: 1; }

/* -------------------- Детальная -------------------- */
.detail { padding-top: 60px; }
.detail__back { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--text-muted); margin-bottom: 30px; transition: color 0.25s var(--ease), transform 0.2s var(--ease); }
.detail__back:hover { color: var(--accent); transform: translateX(-3px); }
.detail__back-ico svg { width: 20px; height: 20px; }

.detail__body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 44px; align-items: start; }

.gallery { position: relative; }
.gallery__viewport { position: relative; background: var(--skeleton); border: 1px solid var(--card-border); overflow: hidden; }
.gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; cursor: grab; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.gallery__slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 16 / 9; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.gallery__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; background: var(--accent); color: #14210a; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); transition: transform 0.2s var(--ease), background 0.2s var(--ease); z-index: 2; }
.gallery__arrow:hover { background: var(--accent-hi); }
.gallery__arrow:active { transform: translateY(-50%) scale(0.9); }
.gallery__arrow svg { width: 22px; height: 22px; }
.gallery__arrow--prev { left: 12px; }
.gallery__arrow--next { right: 12px; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumb { flex: 0 0 82px; aspect-ratio: 16 / 10; border: 2px solid transparent; opacity: 0.55; transition: opacity 0.2s var(--ease), border-color 0.2s var(--ease); overflow: hidden; background: var(--skeleton); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.gallery__thumb.is-active { opacity: 1; border-color: var(--accent); }

.detail__info { display: flex; flex-direction: column; gap: 18px; }
.detail__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.detail__tag { background: var(--accent); color: #14210a; font-family: var(--font-head); font-weight: 600; font-size: 12px; text-transform: uppercase; padding: 5px 11px; }
.detail__title { font-size: clamp(26px, 4vw, 40px); letter-spacing: -0.5px; }
.detail__price { font-family: var(--font-head); font-weight: 600; font-size: 30px; color: var(--accent); }
.detail__full { font-family: var(--font-text); font-size: 16px; color: var(--text); line-height: 1.7; }
.detail__full p { margin-bottom: 14px; }
.detail__full strong { color: var(--text); font-weight: 600; }
.detail__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.detail__actions .btn { flex: 1 1 200px; }

/* -------------------- 404 -------------------- */
.notfound { min-height: 78vh; display: flex; align-items: center; }
.notfound__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.notfound__code { font-family: var(--font-title); font-size: clamp(120px, 24vw, 240px); color: var(--accent); line-height: 1; letter-spacing: 4px; filter: drop-shadow(0 0 40px rgba(159, 230, 53, 0.3)); }
.notfound__text { font-family: var(--font-text); color: var(--text-muted); font-size: 18px; }

/* -------------------- Футер -------------------- */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--hairline); padding: 32px 0; margin-top: 40px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__copy { font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.footer__links { display: flex; gap: 20px; font-family: var(--font-text); font-size: 14px; }
.footer__links a { color: var(--text-muted); transition: color 0.2s var(--ease); }
.footer__links a:hover { color: var(--accent); }

/* -------------------- Скелетоны -------------------- */
.skeleton { position: relative; overflow: hidden; background: var(--skeleton); }
.skeleton::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, var(--skeleton-shine), transparent); animation: shimmer 1.5s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }
.skeleton--line { height: 16px; margin: 0 auto 14px; width: 90%; max-width: 760px; }
.skeleton--line.short { width: 50%; }
.skeleton--card { height: 230px; }
.skeleton--product { height: 390px; }
.skeleton--gallery { aspect-ratio: 16 / 9; }
.skeleton--title { height: 40px; width: 70%; }
.skeleton--price { height: 30px; width: 40%; }

/* -------------------- Адаптив: планшет (<1024px) -------------------- */
@media (max-width: 1023px) {
    :root { --nav-h: 64px; }

    /* Полноширинный верхний бар вместо маленькой «плашки» */
    .nav { top: 0; left: 0; right: 0; padding: 0; }
    .nav__inner { max-width: none; grid-template-columns: 1fr auto; gap: 10px; padding: 12px 20px; border-width: 0 0 1px 0; }
    .nav__logo-mark { height: 24px; }
    .nav__logo-text { font-size: 22px; }
    .nav__theme, .nav__burger { width: 46px; height: 46px; }
    .nav__links {
        grid-column: 1 / -1;
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; gap: 2px; padding: 8px 12px 14px;
        background: var(--glass-bg); -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
        border-bottom: 1px solid var(--glass-border);
        transform: translateY(-10px); opacity: 0; pointer-events: none;
        transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
    }
    .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
    .nav__link { padding: 16px 16px; font-size: 17px; border-bottom: 1px solid var(--hairline); }
    .nav__link:last-child { border-bottom: 0; }
    .nav__link::after { display: none; }
    .nav__burger { display: flex; }

    .catalog__grid, .reviews__grid { grid-template-columns: repeat(2, 1fr); }
    .steps__grid { grid-template-columns: repeat(2, 1fr); }
    .steps__route { display: none; }
    .steps__card--up, .steps__card--down { transform: none; }
    .steps__card--up:hover, .steps__card--down:hover { transform: translateY(-6px); }
    .detail__body { grid-template-columns: 1fr; gap: 30px; }
    .section { padding: 84px 0; }
}

/* -------------------- Адаптив: мобильные (<768px) -------------------- */
@media (max-width: 767px) {
    body { font-size: 16px; }
    .catalog__grid, .reviews__grid, .steps__grid { grid-template-columns: 1fr; }
    .socials__grid { grid-template-columns: 1fr; }
    .section { padding: 64px 0; }
    .section__head { margin-bottom: 34px; }
    .container { padding: 0 18px; }
    /* Герой: dvh убирает «провал» вниз из-за адресной строки */
    .hero { padding: 20px 18px 64px; min-height: calc(100vh - var(--nav-h)); min-height: calc(100dvh - var(--nav-h)); }
    .hero__inner { gap: 18px; }
    .hero__eyebrow { font-size: 9.5px; letter-spacing: 1px; padding: 6px 11px; gap: 7px; }
    .hero__eyebrow::before { width: 6px; height: 6px; }
    .hero__scroll { bottom: 14px; }
    /* Детальная страница на телефоне: скриншоты сверху -> инфо -> кнопки снизу */
    .detail { padding-top: 22px; }
    .detail__back { margin-bottom: 16px; font-size: 14px; }
    .detail__body { gap: 22px; }
    .gallery__arrow { width: 38px; height: 38px; }
    .gallery__arrow svg { width: 18px; height: 18px; }
    .gallery__arrow--prev { left: 8px; }
    .gallery__arrow--next { right: 8px; }
    .gallery__thumbs { gap: 8px; margin-top: 10px; }
    .gallery__thumb { flex: 0 0 62px; }
    .detail__info { gap: 13px; }
    .detail__tags { gap: 6px; }
    .detail__title { font-size: 25px; }
    .detail__price { font-size: 25px; }
    .detail__full { font-size: 15px; }
    .detail__actions { flex-direction: column; gap: 10px; margin-top: 6px; }
    .detail__actions .btn { flex: 1 1 100%; width: 100%; }
    /* Параллакс упрощаем */
    .bg__shape--3, .bg__shape--4, .bg__shape--6 { display: none; }
    .bg__shape { filter: blur(50px); }
    .bg__grid { background-size: 44px 44px; }
    .hero__watermark { font-size: 62vw; }
}

/* -------------------- Reduced motion -------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
    .hero__strike { transform: rotate(-5deg) scaleX(1); }
    .hero__buy { opacity: 1; transform: none; }
    .hero__orb--a, .hero__orb--b { animation: none; }
}
