/* =============================================
   KISVEK Portfolio — Grunge Editorial Zine
   ============================================= */

:root {
    --color-black: #0a0a0a;
    --color-white: #f5f5f5;
    --color-red: #8b1538;
    --color-red-bright: #c41e3a;
    --color-gray: #888;
    --color-dark-gray: #1a1a1a;
    --font-main: 'Inter', -apple-system, sans-serif;
    --font-display: 'Bebas Neue', 'Inter', sans-serif;
    --font-hand: 'Caveat', cursive;
    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --section-padding: 120px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background: var(--color-black);
    color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    cursor: none;
}

@media (hover: none), (max-width: 768px) {
    body { cursor: auto; }
    .cursor { display: none !important; }
}

img { max-width: 100%; display: block; }

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* =============================================
   Custom Cursor
   ============================================= */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    pointer-events: none;
    mix-blend-mode: difference;
}

.cursor__blob {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-white);
    transform: translate(-50%, -50%);
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.35s ease,
                opacity 0.25s ease;
}

.cursor__dot {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-white);
    transform: translate(-50%, -50%);
}

.cursor.is-hover .cursor__blob {
    width: 80px;
    height: 80px;
    background: var(--color-red);
    border-color: transparent;
}

.cursor.is-text .cursor__blob {
    width: 24px;
    height: 24px;
}

/* =============================================
   Grain overlay
   ============================================= */
.grain {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.08;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    background-size: 220px 220px;
    animation: grain-shift 0.9s steps(4) infinite;
}

@keyframes grain-shift {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(-5px, 3px); }
    50%  { transform: translate(3px, -4px); }
    75%  { transform: translate(-2px, 2px); }
    100% { transform: translate(0, 0); }
}

/* =============================================
   Loader
   ============================================= */
.loader {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: var(--color-black);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transition: opacity 0.6s ease, visibility 0.6s;
}

.loader.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader__word {
    display: flex;
    gap: 12px;
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 96px);
    letter-spacing: 0.08em;
    color: var(--color-white);
}

.loader__word span {
    display: inline-block;
    opacity: 0;
    transform: translateY(60px);
    animation: loader-letter 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.loader__word span:nth-child(1) { animation-delay: 0.0s; }
.loader__word span:nth-child(2) { animation-delay: 0.08s; }
.loader__word span:nth-child(3) { animation-delay: 0.16s; }
.loader__word span:nth-child(4) { animation-delay: 0.24s; color: var(--color-red-bright); }
.loader__word span:nth-child(5) { animation-delay: 0.32s; }
.loader__word span:nth-child(6) { animation-delay: 0.40s; }

@keyframes loader-letter {
    to { opacity: 1; transform: translateY(0); }
}

.loader__bar {
    width: min(280px, 60vw);
    height: 1px;
    background: rgba(255,255,255,0.15);
    overflow: hidden;
    position: relative;
}

.loader__bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--color-red-bright);
    animation: loader-fill 1.3s cubic-bezier(0.7, 0, 0.3, 1) forwards;
    animation-delay: 0.3s;
}

@keyframes loader-fill {
    to { width: 100%; }
}

/* =============================================
   Slide indicator
   ============================================= */
.slide-indicator {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 1001;
    display: flex;
    gap: 8px;
    align-items: baseline;
    font-family: var(--font-display);
    font-size: 16px;
    letter-spacing: 0.2em;
    color: var(--color-white);
    mix-blend-mode: difference;
    opacity: 0.85;
}

.slide-indicator__current {
    font-size: 22px;
    color: var(--color-red-bright);
    min-width: 26px;
    display: inline-block;
}

.slide-indicator__sep { opacity: 0.5; padding: 0 4px; }
.slide-indicator__total { opacity: 0.6; }

@media (max-width: 768px) {
    .slide-indicator {
        bottom: 20px;
        right: 20px;
        font-size: 12px;
    }
    .slide-indicator__current { font-size: 16px; }
}

/* =============================================
   Side rail (vertical)
   ============================================= */
.side-rail {
    position: fixed;
    left: 24px;
    bottom: 32px;
    z-index: 1000;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-white);
    opacity: 0.4;
    mix-blend-mode: difference;
}

@media (max-width: 1024px) { .side-rail { display: none; } }

/* =============================================
   Navigation
   ============================================= */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(10, 10, 10, 0.55);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: transform var(--transition), opacity var(--transition);
}

.nav--hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.nav__logo {
    position: relative;
    font-family: var(--font-display);
    font-size: 18px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    cursor: pointer;
}

.nav__logo::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 2px;
    width: 100%;
    color: var(--color-red-bright);
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translateX(-2px);
    mix-blend-mode: screen;
}

.nav__logo:hover::before {
    opacity: 0.8;
    animation: glitch 0.5s steps(3) infinite;
}

@keyframes glitch {
    0%   { transform: translate(-2px, 0); }
    33%  { transform: translate(3px, -1px); }
    66%  { transform: translate(-1px, 2px); }
    100% { transform: translate(-2px, 0); }
}

.nav__menu {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav__link {
    position: relative;
    display: inline-block;
    padding: 6px 2px;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.18em;
    text-transform: lowercase;
    color: var(--color-white);
    text-decoration: none;
    overflow: hidden;
    transition: color 0.3s ease;
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 1px;
    background: var(--color-red-bright);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.45s cubic-bezier(0.7, 0, 0.2, 1);
}

.nav__link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav__link-text {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.7, 0, 0.2, 1);
}

.nav__link:hover .nav__link-text {
    transform: translateY(-1px);
    color: var(--color-red-bright);
}

.nav__burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.nav__burger span {
    width: 24px;
    height: 1px;
    background: var(--color-white);
    transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--color-black);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu--active { opacity: 1; visibility: visible; }

.mobile-menu__list { list-style: none; text-align: center; }
.mobile-menu__list li { margin: 24px 0; }

.mobile-menu__list a {
    font-family: var(--font-display);
    font-size: 32px;
    letter-spacing: 0.1em;
    text-transform: lowercase;
    color: var(--color-white);
    text-decoration: none;
    opacity: 0.6;
    transition: opacity var(--transition), color var(--transition);
}

.mobile-menu__list a:hover { opacity: 1; color: var(--color-red-bright); }

/* =============================================
   Split text animation
   ============================================= */
[data-split] {
    display: inline-block;
}

.split-word {
    display: inline-block;
    white-space: nowrap;
}

.split-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(60%) rotate(5deg);
    will-change: transform, opacity;
}

.split-char.is-in {
    animation: split-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes split-in {
    to { opacity: 1; transform: translateY(0) rotate(0); }
}

/* =============================================
   Hero
   ============================================= */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: var(--color-black);
}

.hero__bg {
    position: absolute;
    inset: 0;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    animation: hero-zoom 14s ease-in-out infinite alternate;
}

@keyframes hero-zoom {
    from { transform: scale(1.05); }
    to   { transform: scale(1.12); }
}

.hero__overlay {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
}

.hero__overlay img {
    width: 100%;
    height: auto;
}

.hero__scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.5;
    animation: bounce 2.4s ease-in-out infinite;
}

.hero__scroll-arrow {
    width: 1px;
    height: 40px;
    background: var(--color-white);
    position: relative;
}

.hero__scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    width: 9px;
    height: 9px;
    border-right: 1px solid var(--color-white);
    border-bottom: 1px solid var(--color-white);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.3; }
    50%      { transform: translateX(-50%) translateY(10px); opacity: 0.7; }
}

/* =============================================
   Marquee
   ============================================= */
.marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 28px 0;
    background: var(--color-black);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.marquee__track {
    display: flex;
    gap: 48px;
    white-space: nowrap;
    width: max-content;
    animation: marquee-scroll 28s linear infinite;
}

.marquee--reverse .marquee__track {
    animation-direction: reverse;
}

.marquee__item {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 56px);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-white);
    opacity: 0.75;
}

.marquee__item.accent {
    color: var(--color-red-bright);
    font-style: italic;
}

.marquee__star {
    font-size: clamp(24px, 3vw, 40px);
    color: var(--color-red-bright);
    align-self: center;
    animation: spin 12s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* =============================================
   Sections base
   ============================================= */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 400;
    letter-spacing: 0.04em;
    margin-bottom: 48px;
    text-transform: uppercase;
    overflow: hidden;
    line-height: 1.05;
}

.section__subtitle {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gray);
    margin-bottom: 48px;
}

/* =============================================
   Fullimage sections + reveal mask
   ============================================= */
.section--fullimage {
    padding: 0;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.section__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.section__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.section__reveal-mask {
    position: absolute;
    inset: 0;
    background: var(--color-black);
    z-index: 5;
    transform-origin: bottom;
    pointer-events: none;
}

.parallax-bg { will-change: transform; }
.parallax-bg img { will-change: transform; }

/* Breathing (reviews) */
.section__bg--breathe img {
    animation: breathe 14s ease-in-out infinite;
    transform-origin: center center;
}

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

/* =============================================
   Scribble dividers
   ============================================= */
.scribble-divider {
    position: relative;
    width: 100%;
    height: 80px;
    background: var(--color-black);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scribble-divider svg {
    width: 100%;
    height: 100%;
}

.scribble-divider path {
    stroke-dasharray: 2600;
    stroke-dashoffset: 2600;
    opacity: 0.85;
    filter: drop-shadow(0 0 2px rgba(139, 21, 56, 0.5));
}

.scribble-divider.is-drawn path {
    animation: draw-scribble 1.8s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

.scribble-divider--alt path { stroke: #c41e3a !important; }

@keyframes draw-scribble {
    to { stroke-dashoffset: 0; }
}

/* =============================================
   Portfolio — STACK cards
   ============================================= */
.section--portfolio {
    padding: 100px 0 140px;
    position: relative;
    background: var(--color-black);
    overflow: hidden;
}

.section--portfolio .section__bg { z-index: 1; }
.section--portfolio .section__bg img {
    object-fit: cover;
    opacity: 0.28;
    filter: blur(8px) saturate(110%);
    transform: scale(1.08);
}

.section--portfolio::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, transparent 20%, rgba(10,10,10,0.85) 80%),
        linear-gradient(180deg, rgba(10,10,10,0.6) 0%, transparent 30%, transparent 70%, rgba(10,10,10,0.8) 100%);
    z-index: 2;
    pointer-events: none;
}

.portfolio-wrap {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

.portfolio-head {
    text-align: center;
}

.portfolio-title {
    font-family: var(--font-display);
    font-size: clamp(56px, 9vw, 120px);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1;
    color: var(--color-white);
    position: relative;
    display: inline-block;
}

.portfolio-title::after {
    content: "video";
    position: absolute;
    inset: 0;
    color: var(--color-red-bright);
    font-family: var(--font-hand);
    font-size: 0.35em;
    font-style: italic;
    transform: translate(50%, 70%) rotate(-6deg);
    letter-spacing: 0;
    text-transform: lowercase;
    font-weight: 700;
    pointer-events: none;
}

.portfolio-sub {
    margin-top: 16px;
    font-size: 13px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-gray);
}

/* Stack of cards */
.stack {
    position: relative;
    width: 340px;
    height: 560px;
    perspective: 1800px;
}

.stack__card {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg,
        hsl(var(--poster-hue), 25%, 14%),
        hsl(var(--poster-hue), 35%, 6%));
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    transform-origin: center center;
    transition:
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.5s ease,
        filter 0.5s ease;
    will-change: transform, opacity, filter;
    cursor: pointer;
}

.stack__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.stack__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Красивый плейсхолдер когда видео не грузится */
.stack__media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 30% 20%, hsla(var(--poster-hue), 70%, 40%, 0.5), transparent 55%),
        radial-gradient(circle at 70% 80%, hsla(calc(var(--poster-hue) + 30), 60%, 35%, 0.4), transparent 55%),
        linear-gradient(135deg, hsl(var(--poster-hue), 30%, 18%), hsl(var(--poster-hue), 40%, 8%));
}

.stack__media::after {
    content: "▶";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 42px;
    color: rgba(255,255,255,0.35);
    z-index: 2;
    pointer-events: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.stack__card:hover .stack__media::after {
    color: var(--color-white);
    transform: translate(-50%, -50%) scale(1.15);
}

.stack__media video {
    position: relative;
    z-index: 3;
}

.stack__glow {
    position: absolute;
    inset: -30% -20%;
    background: radial-gradient(circle, hsla(var(--poster-hue), 80%, 50%, 0.3), transparent 60%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    filter: blur(40px);
}

.stack__card--active .stack__glow { opacity: 1; }

.stack__meta {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 5;
    display: flex;
    align-items: baseline;
    gap: 14px;
    color: var(--color-white);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stack__card--active .stack__meta {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.25s;
}

.stack__num {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--color-red-bright);
    letter-spacing: 0.15em;
}

.stack__name {
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: lowercase;
    opacity: 0.9;
}

/* Stack positions */
.stack__card[data-pos="0"]  { transform: translateX(0)     translateZ(0)     rotateY(0)    rotateZ(0);    opacity: 1;   z-index: 10; }
.stack__card[data-pos="1"]  { transform: translateX(60%)   translateZ(-120px) rotateY(-12deg) rotateZ(3deg);  opacity: 0.55; filter: blur(1.5px); z-index: 8; }
.stack__card[data-pos="2"]  { transform: translateX(110%)  translateZ(-240px) rotateY(-18deg) rotateZ(6deg);  opacity: 0.25; filter: blur(3px);   z-index: 6; }
.stack__card[data-pos="-1"] { transform: translateX(-60%)  translateZ(-120px) rotateY(12deg)  rotateZ(-3deg); opacity: 0.55; filter: blur(1.5px); z-index: 8; }
.stack__card[data-pos="-2"] { transform: translateX(-110%) translateZ(-240px) rotateY(18deg)  rotateZ(-6deg); opacity: 0.25; filter: blur(3px);   z-index: 6; }

/* Кнопки */
.stack-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.stack-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.03);
    color: var(--color-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(4px);
    position: relative;
    overflow: hidden;
}

.stack-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--color-red-bright);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
}

.stack-btn:hover::before { transform: scale(1); }
.stack-btn:hover { border-color: var(--color-red-bright); }
.stack-btn:active { transform: scale(0.95); }

.stack-btn svg {
    width: 22px;
    height: 22px;
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.stack-btn--prev:hover svg { transform: translateX(-3px); }
.stack-btn--next:hover svg { transform: translateX(3px); }

.stack-counter {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: 0.15em;
    color: var(--color-white);
    min-width: 90px;
    justify-content: center;
}

.stack-counter__current {
    color: var(--color-red-bright);
    font-size: 32px;
    min-width: 40px;
    text-align: right;
}

.stack-counter__divider {
    width: 20px;
    height: 1px;
    background: rgba(255,255,255,0.4);
}

.stack-counter__total {
    opacity: 0.6;
    font-size: 18px;
}

@media (max-width: 768px) {
    .stack {
        width: 260px;
        height: 440px;
    }
    .stack-btn {
        width: 52px;
        height: 52px;
    }
    .portfolio-wrap { gap: 40px; }
}

/* =============================================
   Results — counter cards
   ============================================= */
.section--results {
    background: var(--color-black);
    padding: 140px 0;
    text-align: center;
    position: relative;
}

.section--results::before {
    content: "stats";
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-hand);
    font-size: 24px;
    color: var(--color-red-bright);
    opacity: 0.6;
    transform: translateX(-50%) rotate(-3deg);
}

.section--results .section__title {
    text-align: center;
    margin-bottom: 80px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.result-card {
    position: relative;
    padding: 48px 24px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
    transition: all 0.4s ease;
    overflow: hidden;
}

.result-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 1px;
    background: var(--color-red-bright);
    transition: left 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.result-card:hover::before { left: 100%; }

.result-card:hover {
    background: rgba(196, 30, 58, 0.04);
    border-color: rgba(196, 30, 58, 0.3);
    transform: translateY(-4px);
}

.result-card__num {
    font-family: var(--font-display);
    font-size: 80px;
    line-height: 1;
    color: var(--color-white);
    display: inline-block;
}

.result-card__unit {
    font-family: var(--font-display);
    font-size: 40px;
    color: var(--color-red-bright);
    display: inline-block;
    margin-left: 4px;
}

.result-card__label {
    margin-top: 12px;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-gray);
}

/* =============================================
   Reviews
   ============================================= */
.section--reviews {
    padding: 0;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    position: relative;
    background: var(--color-black);
}

.section--reviews .section__bg { position: absolute; inset: 0; }
.section--reviews .section__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviews__vignette {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(ellipse at center, transparent 50%, rgba(10,10,10,0.6) 100%),
        linear-gradient(180deg, rgba(10,10,10,0.3) 0%, transparent 18%, transparent 82%, rgba(10,10,10,0.45) 100%);
}

/* =============================================
   Contacts art section
   ============================================= */
.section--contacts-art {
    padding: 0;
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: var(--color-black);
}

.section--contacts-art .section__bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section--contacts-art .section__bg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.qr-zone {
    position: absolute;
    z-index: 10;
    border-radius: 8px;
    text-decoration: none;
    color: transparent;
    cursor: pointer;
    transition: box-shadow 0.4s ease, background 0.4s ease, transform 0.4s ease;
}

.qr-zone:hover,
.qr-zone:focus-visible {
    outline: none;
    background: rgba(196, 30, 58, 0.06);
    box-shadow:
        0 0 0 2px rgba(196, 30, 58, 0.6),
        0 0 40px rgba(196, 30, 58, 0.3);
    transform: scale(1.02);
}

.qr-zone:hover .qr-zone__label,
.qr-zone:focus-visible .qr-zone__label {
    opacity: 1;
    transform: translate(-50%, 0);
}

.qr-zone__label {
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translate(-50%, 8px);
    font-family: var(--font-hand);
    font-weight: 700;
    font-size: 26px;
    color: var(--color-red-bright);
    text-transform: lowercase;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .section--contacts-art .section__bg img { object-fit: cover; }
    .qr-zone {
        background: rgba(245, 245, 245, 0.04);
        backdrop-filter: blur(2px);
        border: 1px dashed rgba(196, 30, 58, 0.5);
    }
    .qr-zone__label {
        opacity: 0.9;
        transform: translate(-50%, 0);
        position: absolute;
        bottom: 8px;
        color: var(--color-white);
        font-size: 18px;
    }
}

/* =============================================
   CTA
   ============================================= */
.section--cta {
    background: var(--color-black);
    text-align: center;
    padding: 180px 0;
    position: relative;
}

.section--cta::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80vw;
    max-width: 900px;
    height: 2px;
    background: radial-gradient(ellipse at center, var(--color-red-bright), transparent 70%);
    transform: translate(-50%, -50%) rotate(-3deg);
    opacity: 0.5;
    pointer-events: none;
}

.cta__title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 64px);
    letter-spacing: 0.04em;
    margin-bottom: 48px;
    line-height: 1.1;
    text-transform: uppercase;
}

.cta__title [data-split] {
    display: inline-block;
    white-space: nowrap;
}

.cta__title br + [data-split] {
    margin-top: 4px;
}

.cta__button {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 22px 56px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-white);
    text-decoration: none;
    border: 1px solid var(--color-white);
    position: relative;
    overflow: hidden;
    transition: color 0.4s ease;
}

.cta__button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--color-red-bright);
    transform: translateX(-101%);
    transition: transform 0.5s cubic-bezier(0.7, 0, 0.2, 1);
    z-index: 0;
}

.cta__button > * { position: relative; z-index: 1; }

.cta__button:hover::before { transform: translateX(0); }
.cta__button:hover {
    color: var(--color-white);
    border-color: var(--color-red-bright);
}

.cta__button-arrow {
    transition: transform 0.4s ease;
}

.cta__button:hover .cta__button-arrow {
    transform: translateX(6px);
}

/* =============================================
   Footer
   ============================================= */
.footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__copy {
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-gray);
}

/* =============================================
   Video Modal
   ============================================= */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.video-modal--active { opacity: 1; visibility: visible; }

.video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(6px);
}

.video-modal__content {
    position: relative;
    width: 90vw;
    max-width: 500px;
    aspect-ratio: 9/16;
    max-height: 80vh;
}

.video-modal__content video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.video-modal__close {
    position: absolute;
    top: -56px;
    right: 0;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: 32px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity var(--transition);
}

.video-modal__close:hover { opacity: 1; }

/* =============================================
   Animations (data-animate)
   ============================================= */
[data-animate] {
    opacity: 0;
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate="fade-up"]    { transform: translateY(40px); }
[data-animate="fade-left"]  { transform: translateX(40px); }
[data-animate="fade-right"] { transform: translateX(-40px); }

[data-animate].animated {
    opacity: 1;
    transform: translate(0, 0);
}

/* =============================================
   Mobile
   ============================================= */
@media (max-width: 1024px) {
    :root { --section-padding: 80px; }
    .container { padding: 0 24px; }
    .results-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
    .result-card__num { font-size: 60px; }
    .result-card__unit { font-size: 30px; }
}

@media (max-width: 768px) {
    .nav { padding: 18px 24px; }
    .nav__menu { display: none; }
    .nav__burger { display: flex; }

    .marquee__item  { font-size: 28px; }
    .marquee__star  { font-size: 22px; }
}

/* =============================================
   Scrollbar & selection
   ============================================= */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-black); }
::-webkit-scrollbar-thumb { background: var(--color-red); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-red-bright); }

::selection {
    background: var(--color-red-bright);
    color: var(--color-white);
}

/* =============================================
   Mobile fullimage: обрамление вокруг картинки
   чтобы не было "плоской" дыры в чёрном
   ============================================= */
@media (max-width: 768px) {
    .section--fullimage,
    .section--contacts-art,
    .section--reviews {
        position: relative;
    }

    /* красная тонкая "фотография на плёнке" тени */
    .section--fullimage .section__bg,
    .section--contacts-art .section__bg,
    .section--reviews .section__bg {
        box-shadow:
            0 0 0 1px rgba(196, 30, 58, 0.15),
            0 20px 60px -20px rgba(196, 30, 58, 0.35),
            0 40px 100px -40px rgba(0, 0, 0, 0.8);
    }
}

/* =============================================
   Mobile: показать контент-слайды целиком
   (на узких экранах object-fit: cover обрезает текст клиента)
   ============================================= */
@media (max-width: 768px) {
    /* Fullimage-слайды становятся auto-height и contain,
       чтобы текст и коллажи были видны полностью */
    .section--fullimage,
    .section--reviews,
    .section--contacts-art {
        height: auto;
        min-height: 0;
    }

    .section--fullimage .section__bg,
    .section--reviews .section__bg,
    .section--contacts-art .section__bg {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
    }

    .section--fullimage .section__bg img,
    .section--reviews .section__bg img {
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
    }

    /* Виньетка поверх reviews на моб — чуть легче */
    .section--reviews .reviews__vignette {
        display: none;
    }

    /* Breathing на моб отключим — с object-fit: contain нет смысла */
    .section__bg--breathe img {
        animation: none;
    }

    /* Reveal-маска на моб не нужна (картинка и так статично появляется) */
    .section__reveal-mask {
        display: none;
    }

    /* Contacts: картинка + QR-коды полноразмерные */
    .section--contacts-art .section__bg img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}

/* Совсем узкие экраны — стиль QR-зон как полноразмерные клики */
@media (max-width: 640px) {
    .section--contacts-art .section__bg img { object-fit: contain; }
}

/* =============================================
   Reduced motion
   ============================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001s !important;
    }
}
