/* Hallmark · macrostructure: Split Studio (главная) + Long Document (внутренние) · design-system: вариант А2 от 14.11.2026
 * theme: custom (vibe: "тёплая бумага, зелень логотипа, маяк-набросок") · paper oklch(97% 0.014 85) · accent oklch(42% 0.11 150)
 * display + body: Onest · axes: light / geometric-sans / chromatic-green
 * Сайт ничего не продвигает: ни записи, ни телефона, ни форм (слово Алёны 14.11). */
:root{
  --color-paper:oklch(97% 0.014 85); --color-paper-2:oklch(93.5% 0.02 85); --color-card:oklch(99.2% 0.006 85);
  --color-ink:oklch(23% 0.025 160); --color-ink-2:oklch(42% 0.02 160);
  --color-rule:oklch(86% 0.02 85);
  --color-accent:oklch(50% 0.12 150); --color-accent-deep:oklch(42% 0.11 150); --color-accent-ink:oklch(98% 0.01 150);
  --color-accent-pale:oklch(92% 0.045 150);
  --color-beacon:oklch(56% 0.15 32);
  --color-focus:oklch(55% 0.15 250);
  --font-display:'Onest',system-ui,sans-serif; --font-body:'Onest',system-ui,sans-serif;
  --space-3xs:.25rem; --space-2xs:.5rem; --space-xs:.75rem; --space-sm:1rem; --space-md:1.5rem; --space-lg:2rem; --space-xl:3rem; --space-2xl:4.5rem; --space-3xl:7rem;
  --text-xs:.8125rem; --text-sm:.9375rem; --text-md:1.125rem; --text-lg:1.375rem;
  --text-h3:1.25rem; --text-h2:clamp(1.6rem,2.6vw,2.25rem); --text-h1:clamp(2rem,4vw,3.2rem); --text-display-s:clamp(2.1rem,4.4vw,3.7rem);
  --radius-card:24px; --radius-img:20px; --radius-pill:999px;
  --ease-out:cubic-bezier(.16,1,.3,1); --dur-short:200ms;
}
*{box-sizing:border-box;}
html,body{overflow-x:clip;}
body{margin:0; background:var(--color-paper); color:var(--color-ink); font-family:var(--font-body); font-size:var(--text-md); line-height:1.6; -webkit-font-smoothing:antialiased;}
img{display:block; max-width:100%;}
a{color:inherit;}
p{margin:0;}
h1,h2,h3{margin:0; font-family:var(--font-display); font-style:normal; overflow-wrap:anywhere; min-width:0;}
.wrap{max-width:1200px; margin:0 auto; padding:0 var(--space-md);}
:focus-visible{outline:3px solid var(--color-focus); outline-offset:3px; border-radius:8px;}
.skip{position:absolute; left:-9999px; top:0; z-index:50; padding:var(--space-xs) var(--space-sm); background:var(--color-card);}
.skip:focus{left:var(--space-sm); top:var(--space-sm);}

/* ── шапка ── */
.top{position:sticky; top:0; z-index:20; background:oklch(97% 0.014 85 / .92); backdrop-filter:blur(12px); border-bottom:1px solid transparent;}
.top .wrap{display:flex; align-items:center; gap:var(--space-lg); padding-top:var(--space-xs); padding-bottom:var(--space-xs);}
.brand{display:flex; align-items:center; gap:var(--space-xs); text-decoration:none; white-space:nowrap;}
.brand img{width:48px; height:48px; object-fit:cover; object-position:50% 30%; mix-blend-mode:multiply;}
.brand b{display:block; font-weight:700; font-size:1.0625rem; line-height:1.2;}
.brand small{display:block; font-size:var(--text-xs); color:var(--color-ink-2);}
.nav{display:flex; gap:var(--space-3xs); margin-left:auto;}
.nav a{padding:var(--space-2xs) var(--space-xs); border-radius:var(--radius-pill); text-decoration:none; font-size:var(--text-sm); font-weight:500; color:var(--color-ink-2); white-space:nowrap; transition:background var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);}
.nav a:hover, .nav a[aria-current]{background:var(--color-paper-2); color:var(--color-ink);}
#menu{display:none;}
.burger{display:none; margin-left:auto; width:44px; height:44px; align-items:center; justify-content:center; border:1px solid var(--color-rule); border-radius:12px; cursor:pointer; font-size:20px; background:var(--color-card);}
.mnav{display:none;}

/* ── кнопки и ссылки ── */
.btn{display:inline-flex; align-items:center; gap:.5em; padding:.95rem 1.5rem; border-radius:var(--radius-pill); font:600 var(--text-sm)/1 var(--font-body); text-decoration:none; white-space:nowrap; transition:background var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out);}
.btn-main{background:var(--color-accent-deep); color:var(--color-accent-ink);}
.btn-main:hover{background:var(--color-ink);}
.btn-main:active{transform:translateY(1px);}
.btn-ghost{border:1px solid var(--color-rule); color:var(--color-ink);}
.btn-ghost:hover{background:var(--color-card); border-color:var(--color-ink-2);}
.link{font-weight:600; text-decoration:underline; text-decoration-thickness:1.5px; text-underline-offset:5px; white-space:nowrap;}
.link:hover{color:var(--color-accent-deep);}
.more{font-size:var(--text-sm); font-weight:600; color:var(--color-accent-deep); text-decoration:none; white-space:nowrap;}
.more::after{content:' →';}

/* ── первый экран ── */
.hero{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:var(--space-2xl); align-items:end;}
.hero-text{padding:var(--space-xl) 0 var(--space-2xl);}
.where{margin:0 0 var(--space-md); font-size:var(--text-sm); color:var(--color-ink-2);}
.hero h1{font-weight:800; font-size:var(--text-display-s); line-height:1.06; letter-spacing:-.025em;}
.hl{color:var(--color-accent-deep);}
.lead{margin-top:var(--space-md); max-width:30em; font-size:var(--text-lg); line-height:1.5; color:var(--color-ink-2);}
.acts{display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-md); margin-top:var(--space-lg);}
.facts{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--space-md); margin-top:var(--space-xl); padding-top:var(--space-md); border-top:1px solid var(--color-rule);}
.facts-head{grid-column:1/-1; font-size:var(--text-xs); font-weight:600; color:var(--color-ink-2);}
.facts b{display:block; font-family:var(--font-display); font-weight:800; font-size:2rem; line-height:1; letter-spacing:-.02em;}
.facts span{display:block; margin-top:var(--space-2xs); font-size:.875rem; line-height:1.4; color:var(--color-ink-2);}
.stage{position:relative; align-self:stretch; min-height:720px;}
.stage .lh{position:absolute; right:-18%; top:0; height:96%; width:auto; z-index:0;}
.stage .kid{position:absolute; left:2%; bottom:0; width:100%; z-index:1;}
.shore{height:1px; background:var(--color-rule);}

/* ── разделы главной ── */
.sec{padding:var(--space-2xl) 0 var(--space-3xl);}
.sec.tint{background:var(--color-paper-2);}
.sec-head h2{font-weight:800; font-size:var(--text-h2); letter-spacing:-.02em;}
.sec-head p{margin-top:var(--space-2xs); max-width:42em; color:var(--color-ink-2);}
.sec-head{display:flex; flex-direction:column;}
.sec-foot{margin-top:var(--space-lg); display:flex; flex-wrap:wrap; gap:var(--space-md);}

.grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:var(--space-md); margin-top:var(--space-lg);}
.pr{display:flex; flex-direction:column; gap:6px; text-decoration:none; transition:transform var(--dur-short) var(--ease-out);}
.pr:hover{transform:translateY(-3px);}
.pr img,.pr .noimg{width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:var(--radius-img); background:var(--color-card); margin-bottom:6px;}
.pr b{font-size:1.0625rem; line-height:1.3;}
.pr span{font-size:var(--text-sm); line-height:1.45; color:var(--color-ink-2);}

.about{display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr); gap:var(--space-2xl); align-items:start; margin-top:var(--space-lg);}
.about .big{font-size:var(--text-lg); line-height:1.55;}
.about .big + .big{margin-top:var(--space-md);}
.req{margin:0; padding:var(--space-md); background:var(--color-card); border-radius:var(--radius-card); font-size:var(--text-sm);}
.req div{padding:var(--space-2xs) 0; border-top:1px solid var(--color-rule);}
.req div:first-child{border-top:0; padding-top:0;}
.req dt{color:var(--color-ink-2); font-size:var(--text-xs);}
.req dd{margin:2px 0 0;}

.team{display:grid; grid-template-columns:repeat(auto-fill,minmax(170px,1fr)); gap:var(--space-md); margin-top:var(--space-lg);}
.mate img,.mate .face{width:100%; aspect-ratio:1/1; object-fit:cover; border-radius:var(--radius-img); background:var(--color-card);}
.mate .face{display:flex; align-items:center; justify-content:center; font-weight:800; font-size:2rem; color:var(--color-ink-2);}
.mate b{display:block; margin-top:var(--space-xs); line-height:1.3;}
.mate span{display:block; margin-top:4px; font-size:var(--text-sm); line-height:1.4; color:var(--color-ink-2);}

.vids{display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:var(--space-md); margin-top:var(--space-lg);}
.vid{display:flex; flex-direction:column; background:var(--color-card); border-radius:var(--radius-card); overflow:hidden; text-decoration:none; transition:transform var(--dur-short) var(--ease-out);}
.vth{position:relative; display:block; aspect-ratio:16/9; background:var(--color-paper-2);}
.vth img{display:block; width:100%; height:100%; object-fit:cover;}
.vt{display:flex; gap:var(--space-sm); align-items:baseline; padding:var(--space-sm) var(--space-md) var(--space-md);}
.vid:hover{transform:translateY(-3px);}
.vid i{font-style:normal; font-weight:800; color:var(--color-beacon);}

.news-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:var(--space-md); margin-top:var(--space-lg);}
.news{display:flex; flex-direction:column; background:var(--color-card); border-radius:var(--radius-card); overflow:hidden; text-decoration:none; transition:transform var(--dur-short) var(--ease-out);}
.news:hover{transform:translateY(-3px);}
.news img{width:100%; aspect-ratio:16/10; object-fit:cover;}
.news .in{padding:var(--space-md); display:flex; flex-direction:column; gap:var(--space-2xs);}
.news time{font-size:var(--text-xs); font-weight:600; color:var(--color-ink-2);}
.news b{font-size:1.0625rem; line-height:1.3;}
.news p{font-size:var(--text-sm); line-height:1.45; color:var(--color-ink-2);}
.year{margin-top:var(--space-2xl); display:flex; align-items:baseline; gap:var(--space-sm);}
.year h2{font-weight:800; font-size:var(--text-h2);}
.year span{color:var(--color-ink-2); font-size:var(--text-sm);}

/* ── подвал ── */
.foot{padding:var(--space-2xl) 0 var(--space-xl); background:var(--color-ink); color:var(--color-paper);}
.foot a{color:inherit; text-decoration:none;}
.foot a:hover{text-decoration:underline;}
.foot-grid{display:grid; grid-template-columns:minmax(0,1.4fr) repeat(2,minmax(0,1fr)); gap:var(--space-xl);}
.foot b{display:block; font-family:var(--font-display); font-weight:700; font-size:var(--text-lg);}
.foot p, .foot li{font-size:var(--text-sm); color:oklch(85% 0.02 85);}
.foot p{margin-top:var(--space-2xs); max-width:28em;}
.foot ul{margin:var(--space-xs) 0 0; padding:0; list-style:none; display:flex; flex-direction:column; gap:var(--space-2xs);}
.foot .ttl{font-size:var(--text-xs); font-weight:600; text-transform:none; color:oklch(75% 0.02 85); font-family:var(--font-body);}
.foot-bottom{margin-top:var(--space-xl); padding-top:var(--space-md); border-top:1px solid oklch(40% 0.02 160); font-size:var(--text-xs); color:oklch(75% 0.02 85);}

/* ── внутренние страницы ── */
.page-hero{padding:var(--space-xl) 0 var(--space-lg); background:var(--color-paper-2);}
.crumbs{display:flex; flex-wrap:wrap; gap:var(--space-2xs); margin-bottom:var(--space-md); font-size:var(--text-xs); color:var(--color-ink-2);}
.crumbs a{text-decoration:underline; text-underline-offset:3px; white-space:nowrap;}
.crumbs a:hover{color:var(--color-accent-deep);}
.page-hero .kind{font-size:var(--text-sm); font-weight:600; color:var(--color-accent-deep);}
.page-hero h1{margin-top:var(--space-2xs); font-weight:800; font-size:var(--text-h1); line-height:1.1; letter-spacing:-.02em; max-width:24em;}
.page-hero h1.long{font-size:clamp(1.7rem,3vw,2.4rem);}
.page-hero .lead{max-width:40rem;}
.article{padding:var(--space-xl) 0 var(--space-3xl);}
.flow > * + *{margin-top:var(--space-md);}
.flow h2{font-weight:800; font-size:var(--text-h2); letter-spacing:-.02em; margin-top:var(--space-2xl); max-width:30em;}
.flow h3{font-weight:700; font-size:var(--text-lg); line-height:1.3; margin-top:var(--space-xl); max-width:34em;}
.flow h2 + *, .flow h3 + *{margin-top:var(--space-sm);}
.flow h2 a, .flow h3 a, .txt a{color:var(--color-accent-deep); text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:1px;}
.txt{max-width:44rem;}
.txt p{line-height:1.7;}
.txt p + p{margin-top:var(--space-sm);}
.flow .kick{font-size:var(--text-sm); font-weight:600; color:var(--color-accent-deep); margin-top:var(--space-xl);}
figure.one{margin:var(--space-lg) 0 0;}
figure.one img{border-radius:var(--radius-img); max-height:72vh; width:auto; max-width:100%;}
.gal{display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:var(--space-xs); margin-top:var(--space-md);}
.gal img{width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:14px; background:var(--color-card); transition:transform var(--dur-short) var(--ease-out);}
.gal a:hover img{transform:scale(1.02);}
.cards{display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:var(--space-md); margin-top:var(--space-lg);}
.card{display:flex; flex-direction:column; background:var(--color-card); border-radius:var(--radius-card); overflow:hidden;}
.card > img{width:100%; aspect-ratio:4/3; object-fit:cover; background:var(--color-paper-2);}
.card .in{padding:var(--space-md); display:flex; flex-direction:column; gap:var(--space-2xs); flex:1;}
.card h3{font-size:1.0625rem; line-height:1.3; font-weight:700;}
.card p{font-size:var(--text-sm); line-height:1.45; color:var(--color-ink-2);}
.card .more{margin-top:auto; padding-top:var(--space-2xs);}
.vgrid{display:grid; grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr)); gap:var(--space-sm); margin-top:var(--space-md);}
.vone{max-width:820px; margin-top:var(--space-md);}
.yt{position:relative; aspect-ratio:16/9; border-radius:var(--radius-img); overflow:hidden; background:var(--color-ink);}
.yt a, .yt img{display:block; width:100%; height:100%; object-fit:cover;}
.yt iframe{position:absolute; inset:0; width:100%; height:100%; border:0;}
.yt .play, .vth .play{position:absolute; left:50%; top:50%; width:64px; height:64px; margin:-32px 0 0 -32px; border-radius:50%; background:var(--color-card);}
.yt .play::after, .vth .play::after{content:''; position:absolute; left:25px; top:20px; border-style:solid; border-width:12px 0 12px 20px; border-color:transparent transparent transparent var(--color-accent-deep);}
.duo{display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); gap:var(--space-xl); align-items:start;}
.duo figure{margin:0;} .duo img{width:100%; border-radius:var(--radius-img);}
.links{display:flex; flex-wrap:wrap; gap:var(--space-sm); margin-top:var(--space-md);}

@media (max-width:980px){
  .nav{display:none;}
  .burger{display:inline-flex;}
  #menu:checked ~ .mnav{display:flex;}
  .mnav{flex-direction:column; width:100%; padding:var(--space-2xs) 0 var(--space-sm);}
  .mnav a{padding:var(--space-xs) 0; text-decoration:none; font-weight:500; white-space:nowrap;}
  .top .wrap{flex-wrap:wrap;}
  .hero{grid-template-columns:1fr; gap:0;}
  .stage{min-height:0; aspect-ratio:4/5; order:-1;}
  .stage .lh{right:0;}
  .hero-text{padding-top:var(--space-lg);}
  .about{grid-template-columns:1fr; gap:var(--space-lg);}
  .foot-grid{grid-template-columns:1fr; gap:var(--space-lg);}
  .duo{grid-template-columns:1fr;}
}
@media (max-width:480px){
  .brand small{display:none;}
  .facts{grid-template-columns:1fr; gap:var(--space-sm);}
  .facts b{font-size:1.6rem;}
  .gal{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (prefers-reduced-motion:reduce){ *{transition-duration:120ms !important;} }

/* добавлено при сборке внутренних страниц */
figure.one img{max-height:480px;}
.gal img.fit{object-fit:contain; padding:6px;}
.support{display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-sm) var(--space-lg); padding:var(--space-md); background:var(--color-card); border-radius:var(--radius-card);}
.support b{flex-basis:100%; font-size:var(--text-sm); color:var(--color-ink-2); font-weight:600;}
.support img{height:64px; width:auto; max-width:180px; object-fit:contain;}
.support span{font-size:var(--text-sm); max-width:22em;}
.post-cover{margin:0; max-width:900px;}
.post-cover img{width:100%; border-radius:var(--radius-img);}

/* ночная проверка 14→15.11: стили, которых не было у внутренних страниц */
.cta-row{display:flex; flex-wrap:wrap; gap:var(--space-sm); margin-top:var(--space-md);}
.cta-row .btn{white-space:normal; line-height:1.3; max-width:100%;}
.btn-river{background:var(--color-accent-deep); color:var(--color-accent-ink);}
.btn-river:hover{background:var(--color-ink);}
.txt, .card .in, .support span, .flow .kick, .flow figcaption{overflow-wrap:anywhere;}
.flow .num{display:inline-flex; align-items:center; justify-content:center; min-width:1.9em; height:1.9em; padding:0 .45em; margin-right:.45em; border-radius:var(--radius-pill); background:var(--color-accent-pale); color:var(--color-accent-deep); font-size:.8em; font-weight:700; line-height:1; vertical-align:.12em;}
.flow figcaption{margin-top:var(--space-2xs); font-size:var(--text-sm); line-height:1.45; color:var(--color-ink-2); max-width:44rem;}
.card > img.fit{object-fit:contain; padding:6px;}
.card .ck{font-size:var(--text-xs); font-weight:600; color:var(--color-ink-2);}
a[href^="/media/"] img{cursor:zoom-in;}
.gal.docs a{text-decoration:none;}
.gal.docs span{display:block; margin-top:6px; font-size:var(--text-sm); color:var(--color-ink-2);}
