/* ============================================
   АНТОН КУЛЕВ — видеооператор
   тёмная кинематографичная тема
   ============================================ */

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

:root {
    --ink:        #08090b;
    --ink-2:      #0d0f13;
    --panel:      #111318;
    --panel-2:    #16191f;
    --line:       rgba(255, 255, 255, .09);
    --line-2:     rgba(255, 255, 255, .16);
    --txt:        #d9d7d2;
    --txt-dim:    #8b8a86;
    --txt-faint:  #5f5f5c;
    --warm:       #d99a54;
    --warm-soft:  rgba(217, 154, 84, .16);

    --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
    --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --ease: cubic-bezier(.22, .61, .36, 1);
    --max: 1240px;
}

html { scroll-behavior: smooth; }

body {
    background: var(--ink);
    color: var(--txt);
    font-family: var(--sans);
    font-weight: 300;
    line-height: 1.7;
    letter-spacing: .01em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }

/* плёночное зерно */
.grain {
    position: fixed; inset: 0; z-index: 9000; pointer-events: none;
    opacity: .045; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* индикатор прокрутки */
.scroll-progress {
    position: fixed; top: 0; left: 0; right: 0; height: 2px;
    z-index: 850; pointer-events: none;
}
.scroll-progress span {
    display: block; height: 100%; width: 0;
    background: linear-gradient(90deg, rgba(217,154,84,.25), var(--warm));
    transition: width .12s linear;
}

/* ---------- HEADER ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 800;
    background: linear-gradient(to bottom, rgba(8,9,11,.9), rgba(8,9,11,.45) 70%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .4s var(--ease), background .4s var(--ease);
}
.site-header.is-scrolled {
    background: rgba(8,9,11,.95);
    border-bottom-color: var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--warm); box-shadow: 0 0 0 4px var(--warm-soft);
    animation: rec-pulse 2.6s var(--ease) infinite;
}
@keyframes rec-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 4px var(--warm-soft); }
    50%      { opacity: .55; box-shadow: 0 0 0 8px rgba(217,154,84,.05); }
}
.brand-text {
    font-family: var(--serif); font-size: 1.32rem; letter-spacing: .04em;
    display: flex; align-items: baseline; gap: 10px;
}
.brand-text em {
    font-family: var(--sans); font-style: normal; font-size: .62rem;
    letter-spacing: .22em; text-transform: uppercase; color: var(--txt-faint);
}
.site-nav { display: flex; gap: clamp(12px, 2.2vw, 30px); }
.site-nav a {
    font-size: .76rem; letter-spacing: .16em; text-transform: uppercase;
    color: var(--txt-dim); position: relative; padding: 4px 0;
    transition: color .3s var(--ease);
}
.site-nav a::after {
    content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
    background: var(--warm); transition: width .4s var(--ease);
}
.site-nav a:hover { color: var(--txt); }
.site-nav a:hover::after { width: 100%; }

/* ---------- ZONES ---------- */
.zone { position: relative; }

/* ============================================
   HERO — проявка коллажа
   ============================================ */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex; align-items: center;
    padding: 120px 0 90px;
    background: #06070a;
    overflow: hidden;
    isolation: isolate;
}

.hero-gallery { position: absolute; inset: 0; z-index: 0; overflow: hidden; }

.hero-mosaic {
    position: absolute; inset: -3%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-auto-flow: dense;
    gap: 2px;
}
.hero-tile {
    position: relative; overflow: hidden; background: #0a0b0e;
}
.hero-tile img {
    width: 100%; height: 100%; object-fit: cover;
}
.hero-tile--wide { grid-column: span 2; }

/* слой «непроявленной» фотографии */
.hero-gallery__base {
    position: absolute; inset: 0;
    opacity: .55;
    filter: grayscale(1) brightness(.38) contrast(1.25);
}

/* слой «проявленного» кадра */
.hero-gallery__lit {
    position: absolute; inset: 0;
    opacity: .80;                       /* максимум 80% — текст остаётся читаемым */
    filter: saturate(1.14) brightness(1.35) contrast(1.06);
    -webkit-mask-image: none;
            mask-image: none;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    transition: opacity .8s var(--ease);
    will-change: mask-image;
}
.hero-gallery__lit { opacity: .78; }

/* затемнение под текст */
.hero-scrim {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        /* плотное затемнение под колонкой текста */
        radial-gradient(78% 76% at 26% 62%, rgba(6,7,10,.96) 0%, rgba(6,7,10,.80) 34%, rgba(6,7,10,.34) 62%, transparent 82%),
        /* полоса снизу, чтобы подвал кадра не светился */
        linear-gradient(to top, rgba(6,7,10,.90) 0%, rgba(6,7,10,.30) 22%, transparent 42%),
        /* лёгкое общее приглушение, кадр остаётся кадром */
        linear-gradient(rgba(6,7,10,.14), rgba(6,7,10,.14));
}

/* затемнение сверху под шапку */
.hero::after {
    content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(to bottom, rgba(6,7,10,.85), transparent 22%);
}

.hero-inner { position: relative; z-index: 3; width: 100%; }

.eyebrow {
    font-size: .72rem; letter-spacing: .3em; text-transform: uppercase;
    color: var(--warm); margin-bottom: 28px;
}
.hero-title {
    font-family: var(--serif); font-weight: 300;
    font-size: clamp(2.7rem, 8.2vw, 6.6rem);
    line-height: .98; letter-spacing: -.015em;
    display: flex; flex-direction: column; gap: .06em;
    margin-bottom: 34px;
    text-shadow: 0 2px 40px rgba(0,0,0,.55);
}
.hero-title .thin { color: #b9b6ae; font-style: italic; }
.hero-sub {
    max-width: 46ch; font-size: clamp(.95rem, 1.5vw, 1.08rem);
    color: #a9a7a1; margin-bottom: 42px;
    text-shadow: 0 1px 24px rgba(0,0,0,.7);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 68px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 15px 34px; font-size: .76rem; letter-spacing: .18em;
    text-transform: uppercase; border: 1px solid var(--line-2);
    transition: all .35s var(--ease); position: relative; overflow: hidden;
    background: rgba(8,9,11,.25);
}
.btn-solid { background: var(--warm); border-color: var(--warm); color: #14100a; font-weight: 500; }
.btn-solid:hover { background: #eab073; border-color: #eab073; transform: translateY(-2px); }
.btn-ghost { color: var(--txt); }
.btn-ghost:hover { border-color: var(--warm); color: var(--warm); transform: translateY(-2px); }
.btn-sm { padding: 11px 24px; font-size: .7rem; }

.hero-facts {
    display: flex; flex-wrap: wrap; gap: clamp(28px, 6vw, 78px);
    border-top: 1px solid var(--line); padding-top: 26px;
}
.hero-facts dt {
    font-family: var(--serif); font-size: 2.1rem; color: var(--txt);
    line-height: 1; margin-bottom: 6px;
}
.hero-facts dd {
    font-size: .72rem; letter-spacing: .17em; text-transform: uppercase;
    color: var(--txt-faint);
}
.hero-bar {
    position: absolute; left: 0; right: 0; bottom: 0; height: 1px; z-index: 3;
    background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent);
}

.hero-hint {
    position: absolute; z-index: 4; right: clamp(20px, 5vw, 56px); bottom: 34px;
    font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
    color: rgba(255,255,255,.42);
    display: flex; align-items: center; gap: 10px;
    transition: opacity .8s var(--ease);
}
.hero-hint::before {
    content: ''; width: 26px; height: 1px; background: currentColor;
}
.hero.is-touched .hero-hint { opacity: 0; pointer-events: none; }

/* ---------- SECTION HEAD ---------- */
.section-head { margin-bottom: clamp(44px, 6vw, 76px); max-width: 680px; }
.section-head .num {
    display: block; font-size: .7rem; letter-spacing: .3em;
    color: var(--warm); margin-bottom: 14px;
}
.section-head h2 {
    font-family: var(--serif); font-weight: 300;
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    line-height: 1.05; letter-spacing: -.01em; margin-bottom: 14px;
}
.section-lead { color: var(--txt-dim); font-size: .98rem; max-width: 52ch; }

/* ---------- ABOUT ---------- */
.about { padding: clamp(80px, 11vw, 150px) 0; background: var(--ink); }
.about-grid {
    display: grid; grid-template-columns: 330px 1fr;
    gap: clamp(36px, 6vw, 84px); align-items: start;
}
.portrait-col { position: sticky; top: 108px; }
.portrait { position: relative; }
.portrait img {
    width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
    border: 1px solid var(--line);
    filter: grayscale(.35) contrast(1.05);
    transition: filter .6s var(--ease);
}
.portrait:hover img { filter: grayscale(0) contrast(1.05); }
.portrait img.is-missing { background: linear-gradient(150deg, #1b1d23, #0d0f13); }
.portrait figcaption {
    display: flex; align-items: center; gap: 9px;
    font-size: .72rem; letter-spacing: .1em; color: var(--txt-faint);
    margin-top: 14px;
}
.portrait-meta {
    margin-top: 26px; border-top: 1px solid var(--line); padding-top: 18px;
    display: flex; flex-direction: column; gap: 11px;
}
.portrait-meta p { font-size: .82rem; color: var(--txt-dim); }
.portrait-meta span {
    display: block; font-size: .62rem; letter-spacing: .22em;
    text-transform: uppercase; color: var(--txt-faint); margin-bottom: 2px;
}
.dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--warm);
    flex: none; animation: rec-pulse 2.6s var(--ease) infinite;
}

.about-text p {
    font-size: clamp(.95rem, 1.35vw, 1.03rem);
    line-height: 1.85; color: var(--txt-dim); margin-bottom: 1.55em;
}
.about-text p:first-child { color: var(--txt); }
.about-text p:first-child::first-letter {
    font-family: var(--serif); float: left; font-size: 3.6em;
    line-height: .82; padding: .06em .12em 0 0; color: var(--warm);
}
.quote {
    margin: 0 0 1.55em; padding: 4px 0 4px 26px;
    border-left: 1px solid var(--line-2);
    font-family: var(--serif); font-style: italic;
    font-size: clamp(1.05rem, 1.8vw, 1.3rem); line-height: 1.5; color: var(--txt);
}
.pull {
    margin: 44px 0 0; padding: 30px 0 30px 30px;
    border-left: 2px solid var(--warm);
    font-family: var(--serif); font-size: clamp(1.15rem, 2.2vw, 1.55rem);
    font-style: italic; line-height: 1.55; color: var(--txt);
}

/* ---------- BACKSTAGE ---------- */
.backstage {
    padding: clamp(70px, 9vw, 120px) 0;
    background: linear-gradient(180deg, var(--ink-2), var(--ink));
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.backstage-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 16px; }
.bs-item {
    position: relative; overflow: hidden; cursor: pointer;
    border: 1px solid var(--line); background: var(--panel);
}
.bs-item img {
    width: 100%; height: 100%; min-height: 260px; object-fit: cover;
    filter: grayscale(.6) brightness(.82);
    transition: transform .8s var(--ease), filter .6s var(--ease);
}
.bs-item img.is-missing { background: linear-gradient(150deg, #1b1d23, #0d0f13); }
.bs-item:hover img { transform: scale(1.045); filter: grayscale(0) brightness(1); }
.bs-item figcaption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 40px 20px 16px;
    font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--txt); background: linear-gradient(to top, rgba(0,0,0,.85), transparent);
    transform: translateY(6px); opacity: .88;
    transition: all .45s var(--ease);
}
.bs-item:hover figcaption { transform: translateY(0); opacity: 1; }

/* ---------- PORTFOLIO ---------- */
.portfolio { padding: clamp(80px, 11vw, 150px) 0; }

.filters {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: clamp(32px, 4vw, 52px);
    padding-bottom: 26px; border-bottom: 1px solid var(--line);
}
.filter-btn {
    padding: 9px 18px; font-size: .73rem; letter-spacing: .12em;
    text-transform: uppercase; color: var(--txt-dim);
    border: 1px solid var(--line); border-radius: 2px;
    transition: all .32s var(--ease); white-space: nowrap;
}
.filter-btn:hover { color: var(--txt); border-color: var(--line-2); }
.filter-btn.is-active {
    background: var(--warm); border-color: var(--warm);
    color: #14100a; font-weight: 500;
}

.video-grid {
    display: grid; gap: clamp(16px, 2vw, 26px);
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.video-item {
    background: var(--panel); border: 1px solid var(--line);
    overflow: hidden; cursor: pointer;
    transition: transform .5s var(--ease), border-color .4s var(--ease), box-shadow .5s var(--ease);
    animation: card-in .45s var(--ease) both;
}
@keyframes card-in {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}
.video-item:hover {
    transform: translateY(-4px);
    border-color: rgba(217,154,84,.45);
    box-shadow: 0 22px 44px -20px rgba(0,0,0,.9);
}
.thumb {
    position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0b0c0f;
}
.thumb img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;                        /* ← картинка выше fallback */
    filter: brightness(.78) saturate(.9);
    transition: transform .8s var(--ease), filter .5s var(--ease);
}
.thumb img.is-missing { display: none; }

.thumb-fallback {
    position: absolute; inset: 0;
    z-index: 0;                        /* ← fallback ниже картинки */
    display: grid; place-items: center;
    font-family: var(--serif); font-size: 1.1rem; letter-spacing: .12em;
    text-transform: uppercase; color: #3d3f45;
    background:
        radial-gradient(420px 240px at 70% 30%, rgba(217,154,84,.12), transparent 65%),
        linear-gradient(150deg, #1a1d23, #0c0e12);
}
.video-item:hover .thumb img { transform: scale(1.05); filter: brightness(.95) saturate(1); }
.thumb::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(8,9,11,.82), transparent 58%);
}
.play {
    position: absolute; z-index: 2; left: 50%; top: 50%;
    width: 58px; height: 58px; margin: -29px 0 0 -29px;
    border-radius: 50%; border: 1px solid rgba(255,255,255,.55);
    background: rgba(8,9,11,.35); backdrop-filter: blur(6px);
    display: grid; place-items: center;
    opacity: 0; transform: scale(.82);
    transition: all .45s var(--ease);
}
.play::after {
    content: ''; width: 0; height: 0; margin-left: 4px;
    border-left: 13px solid #fff;
    border-top: 8px solid transparent; border-bottom: 8px solid transparent;
}
.video-item:hover .play { opacity: 1; transform: scale(1); }
.duration {
    position: absolute; z-index: 2; right: 12px; bottom: 12px;
    font-size: .68rem; letter-spacing: .1em; color: var(--txt);
    background: rgba(0,0,0,.6); padding: 3px 8px; border: 1px solid var(--line);
}
.video-body { padding: 20px 20px 24px; }
.video-cat {
    font-size: .64rem; letter-spacing: .24em; text-transform: uppercase;
    color: var(--warm); display: block; margin-bottom: 9px;
}
.video-body h3 {
    font-family: var(--serif); font-weight: 400; font-size: 1.3rem;
    line-height: 1.25; margin-bottom: 9px; color: var(--txt);
}
.video-body p {
    font-size: .84rem; line-height: 1.6; color: var(--txt-faint);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.grid-empty { text-align: center; color: var(--txt-faint); padding: 60px 0; font-size: .9rem; }

/* ============================================
   БЛОГ
   ============================================ */
.blog {
    padding: clamp(80px, 10vw, 140px) 0;
    background: var(--ink-2);
    border-top: 1px solid var(--line);
}
.post-grid {
    display: grid; gap: clamp(18px, 2.4vw, 28px);
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.post-card {
    background: var(--panel); border: 1px solid var(--line);
    overflow: hidden;
    transition: transform .5s var(--ease), border-color .4s var(--ease), box-shadow .5s var(--ease);
    animation: card-in .5s var(--ease) both;
}
.post-card:hover {
    transform: translateY(-4px);
    border-color: rgba(217,154,84,.4);
    box-shadow: 0 22px 44px -22px rgba(0,0,0,.9);
}
.post-link { display: flex; flex-direction: column; height: 100%; }
.post-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0b0c0f; }
.post-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    filter: brightness(.8) saturate(.92);
    transition: transform .8s var(--ease), filter .5s var(--ease);
}
.post-thumb img.is-missing { display: none; }
.post-card:hover .post-thumb img { transform: scale(1.05); filter: brightness(1) saturate(1); }
.post-body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.post-meta {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
    color: var(--txt-faint); margin-bottom: 12px;
}
.post-cat { color: var(--warm); }
.post-meta time::before {
    content: '·'; margin-right: 12px; color: var(--txt-faint);
}
.post-body h3 {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(1.25rem, 2vw, 1.45rem); line-height: 1.28;
    margin-bottom: 11px; color: var(--txt);
}
.post-body p {
    font-size: .86rem; line-height: 1.65; color: var(--txt-faint);
    margin-bottom: 18px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-more {
    margin-top: auto; font-size: .7rem; letter-spacing: .18em;
    text-transform: uppercase; color: var(--txt-dim);
    transition: color .3s var(--ease);
}
.post-card:hover .post-more { color: var(--warm); }
.blog-all { margin-top: 40px; text-align: center; }

/* страница блога */
.page-head {
    padding: clamp(120px, 16vw, 190px) 0 clamp(30px, 5vw, 56px);
    background:
        radial-gradient(900px 480px at 20% 0%, rgba(217,154,84,.10), transparent 65%),
        var(--ink-2);
    border-bottom: 1px solid var(--line);
}
.page-head h1 {
    font-family: var(--serif); font-weight: 300;
    font-size: clamp(2.2rem, 5.4vw, 3.8rem); line-height: 1.04;
    margin-bottom: 14px;
}
.page-head p { color: var(--txt-dim); max-width: 56ch; }
.page-body { padding: clamp(50px, 7vw, 90px) 0 clamp(80px, 10vw, 130px); }
.blog-filters {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(30px, 4vw, 48px);
    padding-bottom: 24px; border-bottom: 1px solid var(--line);
}

/* одна статья */
.article { max-width: 760px; margin: 0 auto; }
.article-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
    font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
    color: var(--txt-faint); margin-bottom: 22px;
}
.article-meta .post-cat { color: var(--warm); }
.article h1 {
    font-family: var(--serif); font-weight: 300;
    font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.1;
    margin-bottom: 24px;
}
.article-lead {
    font-size: clamp(1.02rem, 1.7vw, 1.16rem); line-height: 1.7;
    color: var(--txt); padding-bottom: 30px; margin-bottom: 34px;
    border-bottom: 1px solid var(--line);
}
.article-cover {
    margin: 0 0 40px; border: 1px solid var(--line);
}
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-body p {
    font-size: clamp(.97rem, 1.4vw, 1.06rem); line-height: 1.85;
    color: var(--txt-dim); margin-bottom: 1.5em;
}
.article-body h3 {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.25;
    color: var(--txt); margin: 2.2em 0 .9em;
}
.article-body h3:first-child { margin-top: 0; }
.article-body strong { color: var(--txt); font-weight: 500; }
.article-body a { color: var(--warm); border-bottom: 1px solid rgba(217,154,84,.35); }
.article-body blockquote {
    margin: 1.8em 0; padding: 6px 0 6px 26px;
    border-left: 2px solid var(--warm);
    font-family: var(--serif); font-style: italic;
    font-size: 1.15rem; line-height: 1.55; color: var(--txt);
}
.article-back { margin-top: 50px; padding-top: 28px; border-top: 1px solid var(--line); }

/* ---------- CONTACT + ЦЕНЫ ---------- */
.contact {
    padding: clamp(80px, 10vw, 140px) 0;
    background:
        radial-gradient(700px 420px at 50% 0%, rgba(217,154,84,.10), transparent 65%),
        var(--ink);
    border-top: 1px solid var(--line);
    text-align: center;
}
.contact .section-head { margin-left: auto; margin-right: auto; text-align: center; }
.contact .section-lead { margin-left: auto; margin-right: auto; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.contact-note {
    margin-top: 30px; font-size: .74rem; letter-spacing: .16em;
    text-transform: uppercase; color: var(--txt-faint);
}

.rates {
    max-width: 720px; margin: 56px auto 0; text-align: left;
    border: 1px solid var(--line); background: rgba(17,19,24,.6);
    transition: border-color .4s var(--ease);
}
.rates[open] { border-color: var(--line-2); }
.rates summary {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
    padding: 18px 24px; cursor: pointer; list-style: none;
    font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
    color: var(--txt-dim); transition: color .3s var(--ease);
}
.rates summary::-webkit-details-marker { display: none; }
.rates summary:hover { color: var(--txt); }
.rates summary::after {
    content: '+'; font-size: 1.1rem; color: var(--warm);
    line-height: 1; transition: transform .35s var(--ease);
    margin-left: auto;
}
.rates[open] summary::after { transform: rotate(45deg); }
.rates-hint {
    font-size: .68rem; letter-spacing: .1em; text-transform: none;
    color: var(--txt-faint);
}
.rates-body { padding: 4px 24px 26px; border-top: 1px solid var(--line); }
.rate-row {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 20px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.05);
}
.rate-row:last-of-type { border-bottom: 0; }
.rate-name { font-size: .92rem; color: var(--txt); }
.rate-name em {
    display: block; font-style: normal; font-size: .78rem;
    color: var(--txt-faint); margin-top: 4px; line-height: 1.5;
}
.rate-price {
    font-family: var(--serif); font-size: 1.35rem; color: var(--warm);
    white-space: nowrap;
}
.rate-price span {
    font-family: var(--sans); font-size: .72rem; color: var(--txt-faint);
    margin-left: 3px;
}
.rates-notes {
    margin-top: 18px; padding-left: 0; list-style: none;
    display: flex; flex-direction: column; gap: 8px;
}
.rates-notes li {
    position: relative; padding-left: 16px;
    font-size: .78rem; line-height: 1.6; color: var(--txt-faint);
}
.rates-notes li::before {
    content: ''; position: absolute; left: 0; top: .62em;
    width: 4px; height: 4px; border-radius: 50%; background: rgba(217,154,84,.5);
}

/* ---------- FOOTER ---------- */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 26px 0 64px; background: var(--ink);
}
.footer-row {
    display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
    font-size: .74rem; color: var(--txt-faint); letter-spacing: .06em;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.footer-links a {
    border-bottom: 1px solid rgba(255,255,255,.12);
    transition: color .3s var(--ease), border-color .3s var(--ease);
}
.footer-links a:hover { color: var(--txt-dim); border-color: var(--line-2); }
.footer-hint { color: #3a3b39; }

/* ---------- MODAL ---------- */
.modal {
    position: fixed; inset: 0; z-index: 2000;
    display: none; place-items: center;
    padding: clamp(10px, 3vw, 40px);
    background: rgba(4,5,6,.94);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.modal.is-open { display: grid; animation: fade .3s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal-shell {
    position: relative; width: min(1240px, 100%);
    max-height: 94vh; overflow-y: auto;
    background: var(--panel); border: 1px solid var(--line);
    animation: rise .4s var(--ease);
}
@keyframes rise {
    from { opacity: 0; transform: translateY(24px) scale(.99); }
    to   { opacity: 1; transform: none; }
}
.modal-stage { position: relative; background: #000; }
#modalVideo {
    display: block; width: 100%; max-height: 76vh;
    aspect-ratio: 16 / 9; object-fit: contain; background: #000;
}
#modalVideo[hidden] { display: none; }
.modal-frame {
    display: block; width: 100%; aspect-ratio: 16 / 9;
    border: 0; background: #000;
}
.nav-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; z-index: 5;
    display: grid; place-items: center;
    font-size: 20px; color: #fff;
    background: rgba(0,0,0,.5); border: 1px solid var(--line-2);
    border-radius: 50%; backdrop-filter: blur(6px);
    transition: all .3s var(--ease);
}
.nav-arrow[hidden] { display: none; }
.nav-prev { left: 14px; }
.nav-next { right: 14px; }
.nav-arrow:hover { background: var(--warm); color: #14100a; border-color: var(--warm); }

.modal-error { padding: 40px 24px; text-align: center; color: var(--txt-faint); font-size: .88rem; }
.modal-info { padding: clamp(20px, 3vw, 34px); }
.tag {
    display: inline-block; font-size: .64rem; letter-spacing: .24em;
    text-transform: uppercase; color: var(--warm);
    border: 1px solid rgba(217,154,84,.35); padding: 3px 10px; margin-bottom: 14px;
}
.modal-info h3 {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.15; margin-bottom: 12px;
}
.modal-info p { color: var(--txt-dim); font-size: .95rem; max-width: 74ch; }

.modal-close {
    position: absolute; top: 10px; right: 14px; z-index: 6;
    width: 44px; height: 44px; font-size: 26px; line-height: 1;
    color: #fff; background: rgba(0,0,0,.55); border: 1px solid var(--line-2);
    border-radius: 50%; display: grid; place-items: center;
    transition: all .3s var(--ease);
}
.modal-close:hover { background: var(--warm); color: #14100a; border-color: var(--warm); transform: rotate(90deg); }

/* ---------- LIGHTBOX ---------- */
.lightbox {
    position: fixed; inset: 0; z-index: 2100;
    display: none; place-items: center; padding: 4vmin;
    background: rgba(4,5,6,.95);
}
.lightbox.is-open { display: grid; animation: fade .3s var(--ease); }
.lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; border: 1px solid var(--line); }

/* ============================================
   КОТ-ОПЕРАТОР
   ============================================ */
#cat {
    position: fixed; left: 0; top: 0; z-index: 1500;
    width: 132px; height: 90px;
    pointer-events: none; will-change: transform;
    transition: opacity .6s var(--ease);
    opacity: 0;
}
#cat.is-ready { opacity: 1; }
body.is-busy #cat { opacity: 0; }

.cat-flip {
    width: 100%; height: 100%;
    transform-origin: 50% 100%;
    transition: transform .18s var(--ease);
}
.cat-svg { width: 100%; height: 100%; overflow: visible; }

.cat-body, .cat-head, .cat-ear { fill: #1a1c22; stroke: rgba(217,154,84,.42); stroke-width: 1.4; }
.cat-tail {
    fill: none; stroke: #1a1c22; stroke-width: 9; stroke-linecap: round;
    filter: drop-shadow(0 0 1px rgba(217,154,84,.45));
    transform-origin: 56px 88px;
    animation: tail-sway 3.4s ease-in-out infinite;
}
@keyframes tail-sway {
    0%, 100% { transform: rotate(-7deg); }
    50%      { transform: rotate(9deg); }
}
.leg { fill: #15171c; stroke: rgba(217,154,84,.30); stroke-width: 1; transform-origin: 50% 8%; }
#cat.is-running .leg-front-a { animation: step .34s linear infinite; }
#cat.is-running .leg-front-b { animation: step .34s linear infinite .17s; }
#cat.is-running .leg-back-a  { animation: step .34s linear infinite .09s; }
#cat.is-running .leg-back-b  { animation: step .34s linear infinite .26s; }
@keyframes step {
    0%, 100% { transform: rotate(-16deg) translateY(0); }
    50%      { transform: rotate(16deg) translateY(-2px); }
}
.cat-eye { fill: var(--warm); }
.cat-whisker { stroke: rgba(255,255,255,.35); stroke-width: 1; stroke-linecap: round; }

.rig { transform-box: fill-box; transform-origin: 20% 90%; transition: transform .12s linear; }
.rig-body { fill: #232730; stroke: rgba(217,154,84,.55); stroke-width: 1.2; }
.rig-lens { fill: #171a20; stroke: rgba(217,154,84,.55); stroke-width: 1.2; }
.rig-glass { fill: var(--warm); opacity: .9; }
.rig-rec  { fill: #e0553f; animation: rec-pulse 1.6s ease-in-out infinite; }
.rig-mount { fill: #15171c; stroke: rgba(217,154,84,.35); stroke-width: 1; }

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie {
    position: fixed; left: clamp(12px, 3vw, 28px); right: clamp(12px, 3vw, 28px);
    bottom: clamp(12px, 3vw, 28px); z-index: 3000;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; flex-wrap: wrap;
    max-width: 1080px; margin: 0 auto;
    padding: 20px clamp(18px, 3vw, 28px);
    background: rgba(17,19,24,.96);
    border: 1px solid var(--line-2);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 24px 60px -20px rgba(0,0,0,.95);
    animation: cookie-in .5s var(--ease) both;
}
.cookie[hidden] { display: none; }
@keyframes cookie-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
}
.cookie-text { flex: 1 1 380px; min-width: 0; }
.cookie-text strong {
    display: block; font-size: .72rem; letter-spacing: .22em;
    text-transform: uppercase; color: var(--warm); margin-bottom: 6px;
    font-weight: 500;
}
.cookie-text p { font-size: .82rem; line-height: 1.55; color: var(--txt-dim); }
.cookie-text a {
    color: var(--txt); border-bottom: 1px solid rgba(255,255,255,.25);
    transition: color .3s var(--ease), border-color .3s var(--ease);
}
.cookie-text a:hover { color: var(--warm); border-color: var(--warm); }
.cookie-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cookie-decline {
    font-size: .74rem; color: var(--txt-faint); letter-spacing: .06em;
    border-bottom: 1px solid rgba(255,255,255,.12);
    transition: color .3s var(--ease), border-color .3s var(--ease);
}
.cookie-decline:hover { color: var(--txt-dim); border-color: var(--line-2); }

/* ============================================
   REVEAL
   ============================================ */
.reveal { opacity: 1; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================
   ЮРИДИЧЕСКИЕ СТРАНИЦЫ
   ============================================ */
.legal { max-width: 780px; margin: 0 auto; }
.legal h2 {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(1.35rem, 2.4vw, 1.7rem); line-height: 1.25;
    margin: 2.2em 0 .8em; color: var(--txt);
}
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li {
    font-size: .95rem; line-height: 1.8; color: var(--txt-dim);
    margin-bottom: 1em;
}
.legal ul { padding-left: 22px; margin-bottom: 1.2em; }
.legal li { margin-bottom: .5em; }
.legal strong { color: var(--txt); font-weight: 500; }
.legal a { color: var(--warm); border-bottom: 1px solid rgba(217,154,84,.35); }
.legal .updated {
    font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
    color: var(--txt-faint); margin-bottom: 40px;
}

/* ---------- АДАПТИВ ---------- */
@media (max-width: 1100px) {
    .site-nav { gap: 14px; }
    .site-nav a { font-size: .7rem; letter-spacing: .1em; }
}
@media (max-width: 980px) {
    .about-grid { grid-template-columns: 1fr; }
    .portrait-col { position: static; max-width: 380px; }
    .backstage-grid { grid-template-columns: 1fr 1fr; }
    .bs-item:first-child { grid-column: span 2; }
    .hero-mosaic { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(5, 1fr); }
}
@media (max-width: 860px) {
    .site-nav {
        gap: 10px;
        overflow-x: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .site-nav::-webkit-scrollbar { display: none; }
    .site-nav a { font-size: .64rem; letter-spacing: .1em; white-space: nowrap; }
    .brand-text em { display: none; }
    .brand-text { font-size: 1.12rem; }
    /* на узких экранах оставляем только ключевые пункты */
    .site-nav a[href$="#about"],
    .site-nav a[href$="#backstage"] { display: none; }
}
@media (max-width: 720px) {
    .header-row { height: 60px; justify-content: space-between; gap: 12px; }
    .hero { min-height: auto; padding: 110px 0 70px; }
    .hero-mosaic { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(6, 1fr); }
    .hero-title { font-size: clamp(2.4rem, 11vw, 3.4rem); }
    .hero-facts { gap: 26px; }
    .hero-facts dt { font-size: 1.6rem; }
    .hero-hint { display: none; }
    .video-grid { grid-template-columns: 1fr; }
    .post-grid { grid-template-columns: 1fr; }
    .backstage-grid { grid-template-columns: 1fr; }
    .bs-item:first-child { grid-column: span 1; }
    .filters, .blog-filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 18px; }
    .filter-btn { flex: none; }
    #cat { display: none; }
    .footer-row { flex-direction: column; }
    .rate-row { flex-direction: column; gap: 6px; }
    .rates summary { padding: 16px 18px; }
    .rates-body { padding: 4px 18px 22px; }
    .rates-hint { display: none; }
    .cookie { flex-direction: column; align-items: stretch; gap: 16px; }
    .cookie-actions { justify-content: space-between; }
    .nav-arrow { width: 40px; height: 40px; font-size: 17px; }
    .article-body p { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
    #cat { display: none; }
    .hero-gallery__lit { opacity: .35 !important; -webkit-mask-image: none !important; mask-image: none !important; }
}
