/* =========================================================
   Christmas Design Box — по макетам «Макет платформы.pdf» и «screen 1–9.pdf»
   ========================================================= */
@font-face { font-family: "Felidae"; src: url(../fonts/felidae.woff2) format("woff2"); font-display: swap; }

:root {
  --bg: #EBEBEB;
  --ink: #000;
  --brown: #422108;  --brown-1: #5A2C18; --brown-2: #45220B;
  --dg: #2D4215;     --dg-1: #546D37;    --dg-2: #2F4416;
  --lg: #99B579;     --lg-1: #B9D699;    --lg-2: #749253;
  --green: #4D642F;  --green-logo: #425926;
  --hero-1: #567038; --hero-2: #2E4315;
  --gray: #8A8A8A;   --gray2: #5E5E5E;
  --line: rgba(66, 33, 8, .14);
  --paper: #F5F4F1;
  --u: calc(min(100vw, 1440px) / 1440);
  --pad: 60px;
  --r: 10px;
  --font: "Helvetica Neue", "HelveticaNeue", Helvetica, Arial, sans-serif;
  --serif: "Felidae", "Times New Roman", serif;
  --mono: "Roboto Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.25 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; }
::selection { background: var(--green); color: #fff; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* ---------- Кнопки ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 49px; padding: 0 30px; border-radius: 8px; font-size: 16px; line-height: 1; white-space: nowrap;
  color: #fff; overflow: hidden; isolation: isolate; transition: color .5s var(--ease), box-shadow .5s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; transform: translateY(102%); transition: transform .7s var(--ease); }
.btn:hover::before, .btn.is-done::before { transform: none; }
.btn > * { position: relative; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn--brown { background: var(--brown); }
.btn--brown::before { background: var(--green); }
.btn--green { background: var(--green); }
.btn--green::before { background: #fff; }
.btn--green:hover { color: var(--brown); }
.btn--line { color: var(--brown); box-shadow: inset 0 0 0 1px var(--brown); }
.btn--line::before { background: var(--brown); }
.btn--line:hover, .btn--line.is-done { color: #fff; }
.btn--outline-light { box-shadow: inset 0 0 0 1px #fff; }
.btn--outline-light::before { background: #fff; }
.btn--outline-light:hover { color: var(--brown); }
.btn--sm { height: 40px; padding: 0 20px; font-size: 14px; border-radius: 7px; }
.btn--xs { height: 32px; padding: 0 14px; font-size: 13px; gap: 6px; border-radius: 6px; }
.btn--xs svg { width: 14px; height: 14px; }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--brown); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .6s var(--ease), color .3s; }
.link:hover { background-size: 0 1px; background-position: 100% 100%; color: var(--green); }
.link svg { width: 13px; height: 13px; }

/* ---------- Шапка ---------- */
.top {
  position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: 96px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 max(var(--pad), calc(50% - 720px + var(--pad)));
  transition: background .5s, height .6s var(--ease), box-shadow .5s;
}
.top.is-scrolled { height: 68px; background: rgba(235, 235, 235, .97); box-shadow: 0 1px 0 var(--line); }
.top__brand { font: 400 14px/1 var(--mono); text-transform: uppercase; color: #1F2E0E; letter-spacing: .01em; }
.top__nav { display: flex; align-items: center; gap: 32px; }
.top__link { position: relative; color: var(--brown); font-size: 15px; line-height: 1; padding: 6px 0; }
.top__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.top__link:hover::after { transform: scaleX(1); transform-origin: left; }
.top__tg { height: 40px; padding: 0 20px; font-size: 15px; margin-left: 8px; }

/* =========================================================
   HERO — коробка с вылетающими карточками
   ========================================================= */
.hero { position: relative; max-width: 1440px; margin: 0 auto; height: max(640px, calc(1010 * var(--u))); }
.hero__left { position: absolute; z-index: 6; left: var(--pad); top: 156px; bottom: calc(325 * var(--u)); width: 300px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.hero__left > * { pointer-events: auto; }
.hero__lead { margin: 0; font-size: 16px; line-height: 20px; text-align: justify; hyphens: auto; }
.hero__lead .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 2px; margin-bottom: -2px; }
.hero__lead .w > span { display: inline-block; }
.hero__cta { display: grid; gap: calc(26 * var(--u) + 4px); justify-items: start; }
.hero__cta .btn { width: 209px; padding: 0; }
.countdown { display: grid; gap: 10px; color: var(--gray); font-size: 16px; line-height: 16px; }
.countdown__val { font-variant-numeric: tabular-nums; }
.countdown__val i { font-style: normal; animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { opacity: .2; } }
.hero__eyebrow { position: absolute; left: 0; right: 0; bottom: calc(26 * var(--u)); margin: 0; text-align: center; color: var(--gray2); font-size: 16px; }

.box { position: absolute; z-index: 3; left: calc(532 * var(--u)); top: calc(358 * var(--u)); width: calc(405 * var(--u)); height: calc(342 * var(--u)); }
.box__back { position: absolute; inset: calc(22 * var(--u)) 0 0; background: #3F5826; border-radius: 0 14px 14px 14px; }
.box__tab { position: absolute; left: 0; bottom: calc(100% - 3px); width: 42%; height: calc(24 * var(--u) + 4px); background: #3F5826; border-radius: 10px 6px 0 0; clip-path: polygon(0 0, 86% 0, 100% 100%, 0 100%); }
.box__fly { position: absolute; inset: 0; z-index: 1; clip-path: polygon(-300% -300%, 400% -300%, 400% 21%, 100% 21%, 100% 100%, 0% 100%, 0% 21%, -300% 21%); }
.fly {
  position: absolute; left: 0; top: 0; width: calc(265 * var(--u)); aspect-ratio: 3 / 4; margin: calc(-177 * var(--u)) 0 0 calc(-132.5 * var(--u));
  border-radius: 3px; overflow: hidden; background: #ddd; box-shadow: 0 18px 36px -16px rgba(25, 20, 5, .45);
  will-change: transform; backface-visibility: hidden; cursor: pointer;
}
.fly img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.box__front {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: calc(270 * var(--u));
  border-radius: 14px; background: linear-gradient(180deg, var(--hero-1), var(--hero-2));
  display: grid; place-items: center; transform-origin: 50% 100%; box-shadow: 0 -14px 40px -24px rgba(0, 0, 0, .35); cursor: pointer;
}
.box__title { margin: 0; color: #fff; font: 400 calc(73 * var(--u)) / .86 var(--serif); text-align: center; display: grid; pointer-events: none; }
.box__title span { display: block; }
.hint-m { display: none; }
.box__hint { position: absolute; left: 50%; top: calc(100% + 18px); translate: -50% 0; margin: 0; white-space: nowrap; font: 400 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .02em; color: var(--gray); }

/* =========================================================
   Заголовки Felidae
   ========================================================= */
.ftitle { display: flex; flex-direction: column; align-items: center; width: fit-content; margin: 0 auto; font: 400 max(40px, calc(72 * var(--u))) / 1 var(--serif); color: var(--brown); text-align: center; }
.ftitle > span { display: block; overflow: hidden; padding: 0 .06em .14em; margin-bottom: -.14em; }
.ftitle > span > span { display: block; }
.ko > span { -webkit-text-stroke: .1em var(--bg); paint-order: stroke fill; }
.ftitle--stats { font-size: max(36px, calc(62 * var(--u))); align-items: flex-start; text-align: left; }
.ftitle--stats > span:nth-child(2) { padding-left: calc(249 * var(--u)); }

/* ---------- Календарь ---------- */
.cal { max-width: 1440px; margin: 0 auto; padding: calc(24 * var(--u)) var(--pad) 0; }
.cal__lead { width: min(565px, 100%); margin: calc(44 * var(--u) + 4px) auto 0; color: rgba(0, 0, 0, .6); font-size: 16px; line-height: 20px; text-align: justify; hyphens: auto; }
.folders { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 30px; margin-top: calc(60 * var(--u) + 2px); perspective: 1800px; }
.folder { --c: var(--brown); --c1: var(--brown-1); --c2: var(--brown-2); position: relative; display: block; height: calc(305 * var(--u) + 21px); min-height: 250px; color: #fff; outline-offset: 6px; }
.folder--wide { grid-column: span 2; }
.folder.c-dg { --c: var(--dg); --c1: var(--dg-1); --c2: var(--dg-2); }
.folder.c-lg { --c: var(--lg); --c1: var(--lg-1); --c2: var(--lg-2); }
.folder__tab { position: absolute; left: 0; top: 0; width: 126px; height: 25px; background: var(--c); border-radius: 9px 6px 0 0; clip-path: polygon(0 0, 108px 0, 100% 100%, 0 100%); }
.folder__back { position: absolute; inset: 21px 0 0; background: var(--c); border-radius: 0 var(--r) var(--r) var(--r); }
.folder__row { position: absolute; left: 20px; right: 22px; top: 21px; height: 66px; display: flex; align-items: center; justify-content: space-between; font-size: 16px; line-height: 1; z-index: 1; }
.folder__papers { position: absolute; left: 14px; right: 14px; top: 87px; bottom: 0; pointer-events: none; }
.paper { position: absolute; bottom: 30px; width: 34%; aspect-ratio: 3 / 4; border-radius: 4px; overflow: hidden; background: #fff; box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .5); }
.paper img { width: 100%; height: 100%; object-fit: cover; }
.paper:nth-child(1) { left: 10%; } .paper:nth-child(2) { left: 33%; } .paper:nth-child(3) { left: 56%; }
.folder--wide .paper { width: 20%; }
.folder--wide .paper:nth-child(1) { left: 26%; } .folder--wide .paper:nth-child(2) { left: 40%; } .folder--wide .paper:nth-child(3) { left: 54%; }
.paper--sw { display: flex; flex-direction: column; }
.paper--sw i { flex: 1; }
.paper--cut { background: none; box-shadow: none; overflow: visible; }
.paper--cut img { object-fit: contain; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .35)); }
.folder__front {
  position: absolute; left: 0; right: 0; bottom: 0; top: 87px; z-index: 3; border-radius: var(--r);
  background: linear-gradient(180deg, var(--c1), var(--c2)); padding: 0 20px 21px;
  display: flex; flex-direction: column; justify-content: flex-end; transform-origin: 50% 100%;
}
.folder__title { margin: 0; font-size: 26px; line-height: 1.1; font-weight: 400; }
.folder__desc { margin: 12px 0 0; max-width: 215px; font-size: 16px; line-height: 19px; color: rgba(255, 255, 255, .6); }
.folder__go { display: inline-flex; align-items: center; gap: 6px; }
.folder__go svg { width: 16px; height: 16px; }
.folder__until, .folder__row .folder__go { transition: opacity .45s var(--ease), transform .7s var(--ease); }
.folder__row .folder__go { position: absolute; right: 0; opacity: 0; transform: translateX(-10px); }
.folder:not(.is-locked):hover .folder__until { opacity: 0; transform: translateY(-6px); }
.folder:not(.is-locked):hover .folder__go { opacity: 1; transform: none; }
.folder__front { transition: transform .9s var(--ease); }
.folder:not(.is-locked):hover .folder__front { transform: perspective(1200px) rotateX(-9deg); }
.paper { transition: transform 1s var(--ease); }
.folder:hover .paper:nth-child(1) { transform: translate(-18%, -112%) rotate(-9deg); }
.folder:hover .paper:nth-child(2) { transform: translateY(-128%) rotate(1deg); transition-delay: .04s; }
.folder:hover .paper:nth-child(3) { transform: translate(18%, -108%) rotate(8deg); transition-delay: .08s; }
.folder.is-locked:hover .folder__front { animation: nope .5s; }
@keyframes nope { 20%, 60% { translate: -5px 0; } 40%, 80% { translate: 5px 0; } }
.folder.is-locked .folder__papers, .folder.is-locked .folder__go { display: none; }
.folder.is-today .folder__tab::after { content: ""; position: absolute; left: 14px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .2; } }

.tips { margin-top: calc(56 * var(--u) + 10px); display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.tips__lbl { margin: 0; color: var(--gray2); font-size: 14px; }
.tips__row { display: flex; flex-wrap: wrap; gap: 6px; }
.tipbtn { width: 46px; height: 32px; border-radius: 6px; display: grid; place-items: center; font-size: 13px; color: var(--brown); box-shadow: inset 0 0 0 1px var(--line); transition: background .4s, color .4s, box-shadow .4s; }
.tipbtn:hover { background: var(--brown); color: #fff; box-shadow: inset 0 0 0 1px var(--brown); }
.tipbtn.is-locked { opacity: .45; }
.tipbtn.is-today { box-shadow: inset 0 0 0 1px var(--green); color: var(--green); }

/* ---------- Цифры ---------- */
.stats { max-width: 1440px; margin: 0 auto; padding: calc(144 * var(--u)) var(--pad) 0; }
.stats__row { display: flex; flex-wrap: wrap; margin: calc(68 * var(--u)) 0 0 calc(274 * var(--u)); }
.stat { display: grid; gap: calc(28 * var(--u)); padding-right: 20px; }
.stat:nth-child(1) { width: calc(240 * var(--u)); } .stat:nth-child(2) { width: calc(210 * var(--u)); } .stat:nth-child(3) { width: calc(195 * var(--u)); }
.stat b { font-size: max(64px, calc(122 * var(--u))); line-height: .8; font-weight: 500; color: var(--green); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--brown); font-size: 16px; line-height: 19px; }

/* ---------- Автор ---------- */
.author { max-width: 1440px; margin: 0 auto; padding: calc(141 * var(--u)) var(--pad) 0; }
.author__box { position: relative; overflow: hidden; background: var(--brown); color: #fff; border-radius: 12px; min-height: calc(589 * var(--u)); padding: calc(69 * var(--u)) calc(70 * var(--u)) calc(64 * var(--u)); display: flex; flex-direction: column; justify-content: space-between; gap: 60px; }
.author__top { margin: 0; font-size: 16px; position: relative; z-index: 2; }
.author__bottom { position: relative; z-index: 2; }
.author__text { margin: 0; width: min(365px, 100%); font-size: 16px; line-height: 21px; }
.author__btns { display: flex; gap: 18px; margin-top: 35px; flex-wrap: wrap; }
.author__btns .btn--green { width: 229px; padding: 0; }
.author__btns .btn--outline-light { width: 180px; padding: 0; }
.author__pics { position: absolute; inset: 0; pointer-events: none; }
.apic { position: absolute; transform-origin: 0 0; object-fit: cover; box-shadow: -20px 30px 60px rgba(0, 0, 0, .35); will-change: transform; }
.apic--1 { left: calc(1054 * var(--u)); top: calc(49.6 * var(--u)); width: calc(341.3 * var(--u)); height: calc(455 * var(--u)); rotate: 19deg; }
.apic--2 { left: calc(610.2 * var(--u)); top: calc(174.9 * var(--u)); width: calc(332 * var(--u)); height: calc(590 * var(--u)); rotate: -13.58deg; }
.apic--3 { left: calc(917.3 * var(--u)); top: calc(80.9 * var(--u)); width: calc(360.7 * var(--u)); height: calc(481 * var(--u)); rotate: 8.79deg; }

/* ---------- Подвал ---------- */
.foot { max-width: 1440px; margin: 0 auto; padding: calc(262 * var(--u)) var(--pad) 34px; }
.foot__logo { display: flex; flex-direction: column; align-items: center; margin: 0 0 calc(130 * var(--u)); font: 400 max(56px, calc(134 * var(--u))) / .87 var(--serif); color: var(--green-logo); }
.foot__logo > span { display: block; overflow: hidden; padding: 0 .05em .16em; margin-bottom: -.16em; }
.foot__logo > span > span { display: block; }
.foot__row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--brown); font-size: 16px; }
.foot__row a:hover { color: var(--green); }

/* =========================================================
   СТРАНИЦА ПОДАРКА
   ========================================================= */
.page { max-width: 1440px; margin: 0 auto; padding: 132px var(--pad) 0; }
.phead { --c: var(--brown); position: relative; color: #fff; }
.phead.c-dg { --c: var(--dg); }
.phead.c-lg { --c: var(--lg); }
.phead__tab { position: relative; width: calc(470 * var(--u) + 4px); min-width: 200px; height: max(34px, calc(64 * var(--u))); background: var(--c); border-radius: 12px 10px 0 0; clip-path: polygon(0 0, calc(100% - 36px) 0, 100% 100%, 0 100%); margin-bottom: -3px; }
.phead__body { position: relative; height: max(520px, calc(581 * var(--u))); background: var(--c); border-radius: 0 12px 12px 12px; overflow: hidden; }
.phead__info { position: absolute; z-index: 3; left: calc(80 * var(--u) + 4px); top: calc(76 * var(--u)); bottom: calc(60 * var(--u)); width: max(300px, calc(366 * var(--u))); display: flex; flex-direction: column; }
.phead__meta { display: flex; justify-content: space-between; font-size: 16px; line-height: 1; }
.phead__title { margin: auto 0 0; font-weight: 400; font-size: max(44px, calc(76 * var(--u))); line-height: 1; letter-spacing: -.01em; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; white-space: nowrap; width: max-content; }
.phead__title > span { display: block; }
.phead__lead { margin: calc(26 * var(--u) + 6px) 0 0; max-width: 345px; font-size: 14px; line-height: 18px; color: rgba(255, 255, 255, .6); }
.phead__facts { display: flex; gap: calc(24 * var(--u) + 6px); flex-wrap: wrap; margin-top: calc(52 * var(--u) + 6px); }
.phead__facts div { display: grid; gap: 6px; }
.phead__facts b { font-size: max(30px, calc(42 * var(--u))); font-weight: 400; line-height: .9; }
.phead__facts span { font-size: 14px; color: rgba(255, 255, 255, .6); }
.stagebox { position: absolute; inset: 0; pointer-events: none; }
.stage { position: absolute; left: 0; top: 0; width: 1320px; height: 581px; transform-origin: 0 0; }
.stage > * { pointer-events: auto; }
.st-num { position: absolute; left: 892px; top: 296px; font-size: 372px; line-height: 1; font-weight: 400; letter-spacing: -.04em; color: rgba(255, 255, 255, .1); pointer-events: none !important; white-space: nowrap; }
.st-card { position: absolute; width: 268px; height: 312px; overflow: hidden; box-shadow: 0 34px 60px -20px rgba(0, 0, 0, .55), 0 8px 18px rgba(0, 0, 0, .12); will-change: transform; }
.st-card img { position: absolute; max-width: none; }
.st-cut { position: absolute; will-change: transform; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .33)); }
.st-cut img { width: 100%; height: 100%; }
.st-word { position: absolute; background: #fff; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.fan { position: absolute; left: 1040px; top: 153px; width: 0; height: 0; }
.strip {
  position: absolute; left: -66px; top: -28px; width: 132px; height: 394px; background: #fff; padding: 43px 6px 6px;
  transform-origin: 66px 28px; display: flex; flex-direction: column; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .45); cursor: pointer;
}
.strip::before { content: ""; position: absolute; left: 50%; top: 28px; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--dg); }
.strip i { flex: 1; }
.strip i.silver { background: url(../img/head/silver.webp) center / cover; }

.pbody { padding-top: calc(90 * var(--u) + 20px); }
.sec { margin-top: calc(120 * var(--u) + 20px); }
.sec:first-child { margin-top: 0; }
.sec__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 18px 40px; margin-bottom: calc(40 * var(--u) + 8px); }
.sec__title { margin: 0; font: 400 max(30px, calc(44 * var(--u))) / 1.1 var(--font); letter-spacing: -.02em; color: var(--brown); }
.sec__title > span { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.sec__title > span > span { display: block; }
.sec__title em { font-style: normal; color: var(--green); }
.sec__count { color: var(--gray); font: 400 13px/1 var(--mono); text-transform: uppercase; white-space: nowrap; }
.sec__desc { grid-column: 1 / -1; margin: 0; max-width: 565px; color: rgba(0, 0, 0, .6); font-size: 16px; line-height: 20px; }

.dlbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 24px 28px; border-radius: 12px; background: var(--paper); }
.dlbar p { margin: 0; color: var(--gray2); font-size: 14px; }
.dlbar p b { display: block; color: var(--brown); font-weight: 400; font-size: 20px; margin-bottom: 4px; }
.dlbar__btns { display: flex; gap: 10px; flex-wrap: wrap; }

.tabs { display: flex; flex-wrap: wrap; gap: 6px 4px; border-bottom: 2px solid var(--brown); margin-bottom: 36px; }
.tabbtn { position: relative; height: 40px; padding: 0 40px 0 18px; font-size: 15px; color: var(--brown); background: rgba(66, 33, 8, .07); border-radius: 9px 6px 0 0; clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 100%, 0 100%); transition: background .5s var(--ease), color .5s var(--ease); }
.tabbtn small { margin-left: 8px; font: 400 11px/1 var(--mono); opacity: .55; }
.tabbtn:hover { background: rgba(66, 33, 8, .15); }
.tabbtn.is-on { background: var(--brown); color: #fff; }

/* ---- Шрифты ---- */
.fgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fcell { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 20px 20px 18px; border-radius: 12px; background: var(--paper); overflow: hidden; isolation: isolate; }
.fcell::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--brown); clip-path: circle(0% at var(--mx, 50%) var(--my, 50%)); transition: clip-path .8s var(--ease); }
.fcell:hover::before { clip-path: circle(150% at var(--mx, 50%) var(--my, 50%)); }
.fcell__top { display: flex; justify-content: space-between; gap: 12px; font: 400 11px/1.3 var(--mono); text-transform: uppercase; color: var(--gray); transition: color .5s; }
.fcell__pv { position: relative; aspect-ratio: 1642 / 659; margin: 4px -6px; }
.fcell__pv i { position: absolute; inset: 0; background: var(--brown); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; transition: background .5s, transform .9s var(--ease); }
.fcell__pv span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 44px; color: var(--brown); transition: color .5s, transform .9s var(--ease); }
.fcell__name { margin: 0; font-size: 19px; color: var(--brown); transition: color .5s; }
.fcell__about { margin: 4px 0 0; font-size: 13px; line-height: 17px; color: var(--gray2); transition: color .5s; }
.fcell__bot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; font: 400 11px/1 var(--mono); text-transform: uppercase; color: var(--gray); transition: color .5s; }
.fcell:hover .fcell__pv i { background: #fff; transform: scale(1.06); }
.fcell:hover .fcell__pv span { transform: scale(1.06); }
.fcell:hover .fcell__pv span, .fcell:hover .fcell__name, .fcell:hover .link { color: #fff; }
.fcell:hover .fcell__about, .fcell:hover .fcell__top, .fcell:hover .fcell__bot { color: rgba(255, 255, 255, .62); }
.tag-warn { color: #A12628; }
.fcell:hover .tag-warn { color: #FFC2C2; }
.pairs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 30px; }
.pair { display: grid; gap: 14px; align-content: start; }
.pair__img { aspect-ratio: 1200 / 1465; border-radius: 10px; overflow: hidden; }
.pair__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.pair__img:hover img { transform: scale(1.05); }
.pair__names { margin: 0; color: var(--brown); font-size: 21px; }
.pair__names em { font-style: normal; color: var(--green); margin: 0 8px; }
.pair p { margin: 0; color: var(--gray2); font-size: 14px; line-height: 18px; }
.pair__dl { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---- Фильмы ---- */
.mgrid { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 30px 16px; }
.movie { margin: 0; }
.movie__p { aspect-ratio: 756 / 963; border-radius: 6px; overflow: hidden; background: #ddd; transition: transform .9s var(--ease), box-shadow .9s var(--ease); }
.movie__p img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .7s; }
.mgrid:hover .movie__p img { filter: grayscale(.7) brightness(.95); }
.mgrid .movie:hover .movie__p img { filter: none; transform: scale(1.06); }
.movie:hover .movie__p { transform: translateY(-8px); box-shadow: 0 24px 40px -20px rgba(66, 33, 8, .6); }
.movie figcaption { display: flex; gap: 8px; margin-top: 12px; color: var(--brown); font-size: 14px; line-height: 18px; }
.movie figcaption span { color: var(--green); font: 400 11px/1.6 var(--mono); }
.mpanel__about { margin: -6px 0 30px; max-width: 565px; color: rgba(0, 0, 0, .6); line-height: 20px; }

/* ---- Промпты ---- */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.how div { border-top: 2px solid var(--brown); padding-top: 18px; }
.how b { display: block; color: var(--green); font: 500 36px/1 var(--font); letter-spacing: -.03em; margin-bottom: 14px; }
.how p { margin: 0; color: var(--gray2); line-height: 20px; }
.pkey { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; align-items: end; background: var(--dg); color: #fff; padding: 30px; border-radius: 12px; margin-bottom: 40px; }
.pkey__lbl { margin: 0 0 10px; font: 400 11px/1 var(--mono); text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.pkey__t { margin: 0; font-size: 15px; line-height: 21px; color: rgba(255, 255, 255, .9); max-width: 820px; }
.prgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 46px 30px; }
.prompt { display: flex; flex-direction: column; gap: 16px; }
.prompt__img { position: relative; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: #ddd; }
.prompt__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.prompt:hover .prompt__img img { transform: scale(1.05); }
.prompt__n { position: absolute; left: 12px; top: 12px; background: var(--bg); color: var(--brown); font: 400 11px/1 var(--mono); padding: 7px 10px; border-radius: 6px; }
.prompt__t { margin: 0; font-size: 14px; line-height: 19px; color: var(--gray2); }
.prompt__t b { color: var(--brown); font-weight: 400; font-size: 16px; }
.prompt__t.is-clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.prompt__row { display: flex; gap: 14px; align-items: center; justify-content: space-between; margin-top: auto; }
.linkbtn { font-size: 13px; color: var(--gray2); text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--green); }

/* ---- Палитры ---- */
.palgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 54px 30px; }
.pal__sw { display: flex; height: calc(200 * var(--u) + 80px); border-radius: 12px; overflow: hidden; }
.sw { position: relative; flex: 1; background: var(--c); color: #fff; overflow: hidden; transition: flex 1s var(--ease); }
.pal__sw:hover .sw { flex: .8; }
.pal__sw .sw:hover { flex: 1.7; }
.sw__hex { position: absolute; left: 14px; bottom: 12px; font: 400 13px/1 var(--mono); }
.sw__copy { position: absolute; right: 12px; top: 12px; width: 18px; height: 18px; opacity: 0; transform: translateY(-6px); transition: .5s var(--ease); }
.sw:hover .sw__copy { opacity: 1; transform: none; }
.sw--light, .sw--light .sw__hex { color: var(--brown); }
.sw--gold { background: url(../img/misc/gold.webp) center / cover; }
.sw--silver { background: url(../img/misc/silver.webp) center / cover; }
.sw.is-copied::after { content: ""; position: absolute; left: var(--x, 50%); top: var(--y, 50%); width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, .5); translate: -50% -50%; animation: ripple .9s var(--ease) forwards; }
@keyframes ripple { to { width: 700px; height: 700px; opacity: 0; } }
.pal__info { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-top: 16px; }
.pal__info h4 { margin: 0; color: var(--brown); font-weight: 400; font-size: 22px; }
.pal__info p { margin: 4px 0 0; color: var(--gray2); font-size: 14px; line-height: 18px; }
.pal__n { color: var(--green); font: 400 12px/1 var(--mono); margin-right: 8px; }

/* ---- Подарки ---- */
.gprog { position: sticky; top: 73px; z-index: 5; display: flex; align-items: center; gap: 24px; padding: 18px 0; background: var(--bg); border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.gprog__bar { flex: 1; height: 3px; border-radius: 3px; background: var(--line); position: relative; overflow: hidden; }
.gprog__bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--green); border-radius: 3px; }
.gprog__txt { color: var(--brown); font-size: 15px; white-space: nowrap; }
.gprog__txt b { font-weight: 500; color: var(--green); }
.ggrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 70px 60px; }
.glist h3 { margin: 0 0 16px; color: var(--brown); font: 400 28px/1.1 var(--font); letter-spacing: -.02em; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.glist h3 small { font: 400 11px/1 var(--mono); text-transform: uppercase; color: var(--gray); }
.gitem { position: relative; display: grid; grid-template-columns: 26px 1fr auto; gap: 16px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); cursor: pointer; }
.gitem input { position: absolute; opacity: 0; pointer-events: none; }
.gbox { width: 22px; height: 22px; margin-top: 1px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--brown); display: grid; place-items: center; transition: background .4s, box-shadow .4s; }
.gbox svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .6s var(--ease) .05s; }
.gitem input:checked + .gbox { background: var(--green); box-shadow: inset 0 0 0 1.5px var(--green); }
.gitem input:checked + .gbox svg { stroke-dashoffset: 0; }
.gitem input:focus-visible + .gbox { outline: 2px solid var(--green); outline-offset: 3px; }
.gitem:hover .gbox { box-shadow: inset 0 0 0 1.5px var(--green); }
.gtxt b { display: inline; font-weight: 400; color: var(--brown); font-size: 17px; line-height: 21px; background: linear-gradient(var(--gray), var(--gray)) 0 60% / 0 1px no-repeat; transition: background-size .7s var(--ease), color .4s; }
.gtxt span { display: block; margin-top: 3px; font-size: 14px; color: var(--gray2); line-height: 18px; }
.gitem input:checked ~ .gtxt b { background-size: 100% 1px; color: var(--gray); }
.gitem .link { font-size: 14px; margin-top: 2px; }
.gnone { font: 400 11px/1.6 var(--mono); text-transform: uppercase; color: var(--gray); }

/* ---- Вдохновение ---- */
.igal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
.igal button { position: relative; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; background: #ddd; }
.igal img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.igal:hover img { filter: brightness(.8) saturate(.8); }
.igal button:hover img { filter: none; transform: scale(1.06); }
.igal span { position: absolute; left: 8px; top: 8px; font: 400 10px/1 var(--mono); color: var(--brown); background: var(--bg); padding: 5px 7px; border-radius: 5px; }
.insp { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: calc(80 * var(--u) + 10px); align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.insp:nth-child(even) .insp__img { order: 2; }
.insp__img { aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: #ddd; }
.insp__img img { width: 100%; height: 100%; object-fit: contain; transition: transform 1.4s var(--ease); }
.insp__img:hover img { transform: scale(1.03); }
.insp__n { font: 500 max(48px, calc(80 * var(--u))) / .9 var(--font); letter-spacing: -.04em; color: var(--green); }
.insp__style { margin: 18px 0 6px; color: var(--brown); font-weight: 400; font-size: max(26px, calc(38 * var(--u))); line-height: 1.1; }
.insp__sub { color: var(--gray2); font: 400 12px/1 var(--mono); text-transform: uppercase; }
.insp__lbl { margin: 28px 0 10px; font: 400 11px/1 var(--mono); text-transform: uppercase; color: var(--green); }
.insp ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.insp li { position: relative; padding-left: 22px; color: var(--brown); line-height: 21px; }
.insp li::before { content: ""; position: absolute; left: 0; top: 10px; width: 10px; height: 1px; background: var(--green); }
.insp__feat p:last-child { margin: 0; color: var(--gray2); line-height: 21px; }

/* ---- Фоны ---- */
.bggrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.bgt { position: relative; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: #d8d8d8; }
.bgt img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.bgt__ov { position: absolute; inset: auto 8px 8px; display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 8px 12px; border-radius: 8px; background: var(--brown); color: #fff; font: 400 11px/1 var(--mono); transform: translateY(calc(100% + 12px)); transition: transform .7s var(--ease); }
.bgt__ov i { width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); transition: background .3s; }
.bgt__ov i:hover { background: var(--green); }
.bgt__ov svg { width: 15px; height: 15px; }
.bgt:hover img { transform: scale(1.06); }
.bgt:hover .bgt__ov, .bgt:focus-visible .bgt__ov { transform: none; }
.bgt.is-hidden { display: none; }
.phone { width: min(330px, 76vw, calc((100svh - 160px) * 9 / 16)); aspect-ratio: 9 / 16; border-radius: 34px; padding: 9px; background: #160A02; box-shadow: 0 40px 80px rgba(0, 0, 0, .5); }
.phone__scr { position: relative; width: 100%; height: 100%; border-radius: 26px; overflow: hidden; background-size: cover; background-position: center; }
.phone__bar { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; gap: 4px; }
.phone__bar i { flex: 1; height: 2px; background: rgba(255, 255, 255, .5); border-radius: 2px; }
.phone__bar i:first-child { background: #fff; }
.phone__user { position: absolute; left: 14px; top: 24px; display: flex; align-items: center; gap: 8px; color: #fff; font-size: 12px; text-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.phone__user i { width: 24px; height: 24px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 1.5px #fff; }

/* ---- Стикеры ---- */
.stbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; color: var(--gray2); font-size: 14px; }
.swatches { display: flex; align-items: center; gap: 10px; }
.swatches button { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); }
.swatches button.is-on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--brown); }
.stwrap { border-radius: 14px; overflow: hidden; background: var(--paper); transition: background .8s var(--ease); }
.stwrap.is-dark { background: var(--brown); }
.stwrap.is-green { background: var(--dg); }
.stgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.stk { position: relative; aspect-ratio: 1; box-shadow: inset -1px -1px 0 var(--line); }
.stwrap.is-dark .stk, .stwrap.is-green .stk { box-shadow: inset -1px -1px 0 rgba(255, 255, 255, .1); }
.stk img { position: absolute; left: 14%; top: 14%; width: 72%; height: 72%; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .14)); }
.stk__dl { position: absolute; right: 10px; bottom: 10px; font: 400 10px/1 var(--mono); color: var(--brown); opacity: 0; transform: translateY(6px); transition: .5s var(--ease); }
.stwrap.is-dark .stk__dl, .stwrap.is-green .stk__dl { color: #fff; }
.stk:hover .stk__dl { opacity: 1; transform: none; }

/* ---- Открытки ---- */
.cgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 46px 26px; }
.pcard__img { display: block; width: 100%; border-radius: 10px; overflow: hidden; background: #ddd; will-change: transform; transition: box-shadow .8s var(--ease); }
.pcard__img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.pcard:hover .pcard__img { box-shadow: 0 30px 50px -24px rgba(66, 33, 8, .6); }
.pcard__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; color: var(--brown); font-size: 15px; }
.pcard__row b { font-weight: 400; }
.pcard__row b span { color: var(--green); margin-right: 6px; font: 400 11px/1 var(--mono); }
.pcard__btns { display: flex; gap: 6px; flex: none; }
.finale { margin-top: calc(120 * var(--u) + 20px); background: var(--dg); color: #fff; border-radius: 14px; padding: calc(80 * var(--u) + 20px) 30px; text-align: center; display: grid; justify-items: center; gap: 26px; }
.finale h2 { margin: 0; font: 400 max(34px, calc(56 * var(--u))) / 1.05 var(--font); letter-spacing: -.025em; }
.finale p { margin: 0; max-width: 520px; line-height: 21px; color: rgba(255, 255, 255, .75); }

/* ---- навигация между окнами ---- */
.pnav { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: calc(130 * var(--u) + 20px); }
.pnav .folder { height: 230px; min-height: 0; }
.pnav .folder__desc { display: none; }
.pnav .paper { width: 15%; }
.pnav .paper:nth-child(1) { left: 30%; } .pnav .paper:nth-child(2) { left: 42%; } .pnav .paper:nth-child(3) { left: 54%; }

/* =========================================================
   Слои
   ========================================================= */
.wipe { position: fixed; inset: 0; z-index: 150; pointer-events: none; display: grid; place-items: center; visibility: hidden; }
.wipe__bg { position: absolute; inset: 0; background: var(--c, var(--brown)); }
.wipe.is-on { visibility: visible; pointer-events: auto; }
.wipe__t { position: relative; color: #fff; font: 400 max(44px, calc(110 * var(--u))) / 1 var(--serif); overflow: hidden; padding: 0 16px .12em; text-align: center; }
.wipe__t span { display: block; }

.lightbox { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 70px 20px 30px; background: rgba(28, 13, 3, .92); opacity: 0; visibility: hidden; }
.lightbox.is-on { visibility: visible; }
.lightbox__body { display: grid; justify-items: center; gap: 20px; max-height: 100%; }
.lightbox__body > img { max-width: min(92vw, 1000px); max-height: calc(100svh - 170px); object-fit: contain; border-radius: 8px; }
.lbx-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.xbtn { position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); transition: background .4s, transform .6s var(--ease); font-size: 18px; }
.xbtn:hover { background: var(--green); transform: rotate(90deg); }
.xbtn span { position: absolute; width: 18px; height: 1.5px; background: currentColor; rotate: 45deg; }
.xbtn span + span { rotate: -45deg; }
.lb-prev, .lb-next { top: 50%; margin-top: -24px; }
.lb-prev { left: 20px; right: auto; } .lb-next { right: 20px; }
.lb-prev:hover, .lb-next:hover { transform: none; }

.toast { position: fixed; z-index: 160; left: 50%; bottom: 24px; display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); padding: 14px 20px; border-radius: 10px; background: var(--brown); color: #fff; font-size: 15px; translate: -50% 0; transform: translateY(calc(100% + 40px)); visibility: hidden; transition: transform .7s var(--ease), visibility 0s .7s; pointer-events: none; }
.toast.is-on { transform: none; visibility: visible; transition: transform .7s var(--ease); }
.toast i { width: 16px; height: 16px; flex: none; border-radius: 4px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }

.tip { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 20px; background: rgba(235, 235, 235, .7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; visibility: hidden; }
.tip.is-on { visibility: visible; }
.tip__card { position: relative; width: min(460px, 100%); background: #fff; padding: 40px 34px 34px; border-radius: 0 14px 14px 14px; box-shadow: 0 40px 80px -30px rgba(66, 33, 8, .45); }
.tip__card::before { content: "Микросовет"; position: absolute; left: 0; top: -26px; height: 27px; width: 150px; display: flex; align-items: center; padding: 3px 0 0 16px; font-size: 13px; color: #fff; background: var(--brown); border-radius: 9px 6px 0 0; clip-path: polygon(0 0, 128px 0, 100% 100%, 0 100%); }
.tip__date { margin: 0 0 14px; color: var(--green); font: 400 12px/1 var(--mono); text-transform: uppercase; }
.tip__text { margin: 0 0 26px; color: var(--brown); font-size: 20px; line-height: 27px; }

.cursor { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label, .has-cursor .box__front, .has-cursor .fly { cursor: none; }
.cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; border-radius: 50%; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--brown); transition: opacity .3s, background .3s; }
.cursor__ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; box-shadow: inset 0 0 0 1px var(--brown); display: grid; place-items: center; color: #fff; font-size: 13px; white-space: nowrap; transition: background .4s, box-shadow .4s; }
.cursor__ring span { opacity: 0; transition: opacity .3s; }
.cursor.is-link .cursor__ring { background: rgba(77, 100, 47, .12); box-shadow: inset 0 0 0 1px var(--green); }
.cursor.is-link .cursor__dot, .cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-label .cursor__ring { background: var(--green); box-shadow: none; }
.cursor.is-label .cursor__ring span { opacity: 1; }
.cursor.is-light .cursor__ring { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .85); }
.cursor.is-light .cursor__dot { background: #fff; }
.cursor.is-light.is-label .cursor__ring { background: #fff; color: var(--brown); }
.cursor.is-light.is-link .cursor__ring { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px #fff; }

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 1100px) {
  :root { --pad: 40px; }
  .mgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 22px; }
  .bggrid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .stgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .igal { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  :root { --pad: 16px; }
  .hero__lead { text-align: left; hyphens: manual; }
  .top { height: 66px; padding: 12px 16px; }
  .top.is-scrolled { height: 66px; padding-top: 12px; }
  .top__brand { font-size: 13px; }
  .top__link { display: none; }
  .top__tg { width: auto; padding: 0 16px; height: 40px; font-size: 14px; }

  .hero { height: auto; padding: 92px 16px 40px; display: flex; flex-direction: column; }
  .hero__left { position: static; width: auto; display: contents; }
  .hero__lead { order: 1; font-size: 15px; line-height: 19px; }
  .box { order: 2; position: relative; left: auto; top: auto; width: min(76vw, 340px); height: calc(min(76vw, 340px) * .845); margin: 180px auto 46px; }
  .box__back { inset: 14px 0 0; }
  .box__tab { height: 16px; }
  .fly { width: calc(min(76vw, 340px) * .654); margin: calc(min(76vw, 340px) * -.437) 0 0 calc(min(76vw, 340px) * -.327); }
  .box__front { height: 79%; }
  .box__title { font-size: calc(min(76vw, 340px) * .18); }
  .box__hint { top: calc(100% + 12px); font-size: 10px; }
  .hint-m { display: inline; } .hint-d { display: none; }
  .hero__cta { order: 3; margin-top: 30px; }
  .hero__eyebrow { order: 4; position: static; margin-top: 50px; font-size: 14px; }

  .cal { padding-top: 40px; }
  .ftitle--stats { align-items: center; text-align: center; }
  .ftitle--stats > span:nth-child(2) { padding-left: 0; }
  .cal__lead { margin-top: 24px; text-align: left; }
  .folders { grid-template-columns: 1fr; margin-top: 36px; row-gap: 14px; }
  .folder--wide { grid-column: auto; }
  .folder { height: 240px; }
  .folder .paper, .folder--wide .paper { width: 24%; }
  .folder .paper:nth-child(1) { left: 36%; } .folder .paper:nth-child(2) { left: 52%; } .folder .paper:nth-child(3) { left: 68%; }

  .stats { padding-top: 90px; }
  .stats__row { margin: 40px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 34px 16px; }
  .stat, .stat:nth-child(n) { width: auto; gap: 12px; }

  .author { padding-top: 90px; }
  .author__box { padding: 28px 20px 26px; min-height: 0; gap: 0; }
  .author__top { order: 1; }
  .author__pics { order: 2; position: relative; inset: auto; height: 330px; margin: 10px -20px 10px; }
  .author__bottom { order: 3; }
  .apic--1 { left: 56%; top: 10px; width: 150px; height: 200px; }
  .apic--2 { left: 6%; top: 90px; width: 140px; height: 248px; }
  .apic--3 { left: 32%; top: 34px; width: 160px; height: 214px; }
  .author__btns .btn--green, .author__btns .btn--outline-light { width: auto; padding: 0 22px; }

  .foot { padding-top: 110px; }
  .foot__logo { margin-bottom: 60px; }
  .foot__row { flex-direction: column; align-items: center; gap: 8px; font-size: 14px; }

  .page { padding-top: 96px; }
  .phead__tab { width: 62%; height: 34px; clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 100%, 0 100%); }
  .phead__body { height: auto; display: flex; flex-direction: column-reverse; }
  .phead__info { position: relative; left: auto; top: auto; bottom: auto; width: auto; padding: 0 20px 26px; }
  .phead__title { margin-top: 26px; }
  .stagebox { position: relative; height: 330px; overflow: hidden; }
  .sec__head { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fcell { padding: 14px; }
  .fcell__about { display: none; }
  .pairs, .prgrid, .palgrid, .ggrid, .how { grid-template-columns: 1fr; }
  .mgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 10px; }
  .movie figcaption { font-size: 12px; line-height: 15px; }
  .bggrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 14px; }
  .igal { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .pcard__row { flex-direction: column; align-items: flex-start; }
  .insp { grid-template-columns: 1fr; gap: 26px; padding: 36px 0; }
  .insp:nth-child(even) .insp__img { order: 0; }
  .pkey { grid-template-columns: 1fr; padding: 22px; }
  .pnav { grid-template-columns: 1fr; gap: 14px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabbtn { flex: none; }
  .gprog { top: 66px; }
  .gitem { grid-template-columns: 26px 1fr; }
  .gitem .link, .gitem .gnone { grid-column: 2; justify-self: start; }
  .bgt__ov { transform: none; inset: auto 4px 4px; padding: 4px 4px 4px 8px; font-size: 10px; }
  .stk__dl { opacity: 1; transform: none; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.is-loading .top, .is-loading .hero { visibility: hidden; animation: cdb-show 0s 4s forwards; }
@keyframes cdb-show { to { visibility: visible; } }

/* ---------- Экран загрузки ---------- */
.loader { position: fixed; inset: 0; z-index: 250; }
.loader__panel { position: absolute; inset: 0; background: linear-gradient(180deg, var(--hero-1), var(--hero-2)); clip-path: inset(0px 0px 0px 0px round 0px); will-change: clip-path; }
.loader__title { position: absolute; left: 50%; top: 50%; margin: 0; translate: -50% -50%; display: grid; color: #fff; font: 400 72px / .86 var(--serif); text-align: center; white-space: nowrap; will-change: transform; }
.loader__title span { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.loader__pct { position: absolute; left: 50%; bottom: 40px; translate: -50% 0; color: rgba(255, 255, 255, .7); font: 400 13px/1 var(--mono); letter-spacing: .04em; }
.loader__pct::after { content: "%"; }

.loader { animation: cdb-hide 0s 9s forwards; }
@keyframes cdb-hide { to { visibility: hidden; } }
.folder:hover { z-index: 4; }
@media (max-width: 860px) { .hero { overflow-x: clip; } }
html { overflow-x: clip; }
