/* ============ Шрифты (локальные) ============ */
/* Inter — прямой, без курсива. Начертание italic не объявляем вовсе,
   а font-synthesis ниже запрещает браузеру рисовать фальшивый наклон. */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("assets/fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JB Mono"; font-weight: 100 800; font-display: swap;
  src: url("assets/fonts/mono-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "JB Mono"; font-weight: 100 800; font-display: swap;
  src: url("assets/fonts/mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Supercharge (Iconian Fonts, бесплатно для личного использования) — только ник, только латиница */
@font-face {
  font-family: "Supercharge"; font-display: swap;
  src: url("assets/fonts/Supercharge-JRgPo.otf") format("opentype");
}
/* Summer Low Rank — «замыленный» шрифт для отдельных тегов в бегущей строке */
@font-face {
  font-family: "LowRank"; font-display: swap;
  src: url("assets/fonts/SummerLowRank22-OVzq3.otf") format("opentype");
}
@font-face {
  font-family: "Manrope"; font-weight: 200 800; font-display: swap;
  src: url("assets/fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope"; font-weight: 200 800; font-display: swap;
  src: url("assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============ Токены ============ */
:root {
  --sun: #ffcf33;
  --night: #15123a;           /* тёмные секции: индиго */
  --night-2: #1e1a52;
  --radius: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --display: "Inter", "Manrope", sans-serif;
  --font: "Manrope", system-ui, sans-serif;
  --mono: "JB Mono", ui-monospace, Consolas, monospace;
  --logo: "Supercharge", "Inter", sans-serif;   /* ник — как логотип KOB */
  --skew: 0deg;               /* без наклона */
}
[data-theme="dark"] {
  --bg: #0b0f22;
  --bg-2: #10152e;
  --card: #161c3d;
  --card-2: #1d2450;
  --text: #edf2ff;
  --muted: #98a3c9;
  --line: rgba(160, 190, 255, .13);
  --ice: #62d0ff;
  --violet: #8b74ff;
  --accent-text: #8fdcff;
  --shadow: 0 20px 50px rgba(0, 0, 0, .45);
  --nav: rgba(16, 21, 46, .72);
}
[data-theme="light"] {
  --bg: #f4f6fb;
  --bg-2: #e9edf5;
  --card: #ffffff;
  --card-2: #f1f4fa;
  --text: #131838;
  --muted: #5b6585;
  --line: rgba(19, 24, 56, .1);
  --ice: #2bb0ea;
  --violet: #6c4dff;
  --accent-text: #5a3bf0;
  --shadow: 0 18px 44px rgba(40, 55, 120, .14);
  --nav: rgba(255, 255, 255, .78);
}
/* ---- Оформление «Лето»: небо + солнце ---- */
[data-skin="summer"][data-theme="dark"] {
  --bg: #071c28; --bg-2: #0a2433; --card: #0f2f42; --card-2: #143a50;
  --text: #f1f8ff; --muted: #9fbfd2; --line: rgba(160, 220, 255, .14);
  --ice: #36c2ff; --violet: #ffad1f; --accent-text: #ffc34d;
  --nav: rgba(7, 28, 40, .72); --night: #0b3248; --night-2: #0f4060;
}
[data-skin="summer"][data-theme="light"] {
  --bg: #fffaf1; --bg-2: #fff0d6; --card: #ffffff; --card-2: #fff6e6;
  --text: #13283a; --muted: #5d7385; --line: rgba(19, 40, 58, .1);
  --ice: #1aa7ee; --violet: #ff9800; --accent-text: #d26f00;
  --nav: rgba(255, 252, 245, .8); --night: #0b3248; --night-2: #0f4060;
}
[data-skin="summer"] { --sun: #ffe14d; }

/* ---- Оформление «Кодер»: терминал, всегда тёмное ---- */
[data-skin="code"] {
  --bg: #050a07; --bg-2: #08110b; --card: #0b1710; --card-2: #10211a;
  --text: #c9ffd8; --muted: #6fae86; --line: rgba(57, 255, 136, .18);
  --ice: #39ff88; --violet: #00d4ff; --sun: #f5ff5a; --accent-text: #39ff88;
  --nav: rgba(5, 10, 7, .82); --night: #030805; --night-2: #07120b;
  --shadow: 0 0 0 1px rgba(57, 255, 136, .15), 0 20px 50px rgba(0, 0, 0, .6);
  --display: var(--mono); --font: var(--mono); --skew: 0deg;
}

:root { --grad: linear-gradient(120deg, var(--ice), var(--violet)); }

/* ============ База ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; overflow-x: hidden;
  font-family: var(--font); line-height: 1.6;
  background: var(--bg); color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--violet); color: #fff; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* смена темы кругом от кнопки (View Transitions) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: reveal .6s var(--ease); }
@keyframes reveal { from { clip-path: circle(0 at var(--vx, 90%) var(--vy, 4%)); } to { clip-path: circle(150% at var(--vx, 90%) var(--vy, 4%)); } }

/* заголовки: Inter Black, прямой и плотный */
html { font-synthesis: none; }
.nav__name, .logo__word, .social__name, .h2, .event__name, .marquee__track span, .footer__logo, .sign__board, .about__sticker, .ticket__no {
  font-style: normal; font-weight: 900; letter-spacing: -.03em;
}
/* ник шрифтом Supercharge, как KOB: белый, без обводок и градиентов */
/* text-transform: lowercase — в Supercharge строчные выглядят как заглавные без молний (как KOB) */
.logo .logo__word, .nav .nav__name, .footer .footer__logo span { font-family: var(--logo); font-weight: 400; letter-spacing: .01em; text-transform: lowercase; }
.logo .logo__word { line-height: .9; padding-right: .06em; }
/* «замыленный» тег в бегущей строке */
.marquee .marquee__track > span.lowrank { font-family: "LowRank", var(--display); font-weight: 400; font-size: 30px; line-height: 1; letter-spacing: .04em; text-transform: none; }
.lowrank .no { display: inline-block; font-size: .5em; vertical-align: .75em; margin-left: .04em; border-bottom: .1em solid currentColor; line-height: 1; }

/* ============ Рофл-загрузка ============ */
.boot {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--violet) 22%, var(--night)), var(--night) 70%);
  color: #fff; cursor: pointer;
  transition: opacity .5s, visibility .5s;
  animation: bootFailsafe 0s 7s forwards;   /* если скрипт не запустился — не держим сайт закрытым */
}
.boot.done { opacity: 0; visibility: hidden; }
.boot.skip { display: none; }
@keyframes bootFailsafe { to { opacity: 0; visibility: hidden; } }
.boot__box { width: min(420px, 100%); display: grid; justify-items: center; gap: 22px; }
.boot__emblem {
  position: relative; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--ice) 25%, #1a1f4d), #0c0f2a);
  box-shadow: 0 0 50px color-mix(in srgb, var(--ice) 35%, transparent);
  animation: bootPulse 1.2s ease-in-out infinite;
}
.boot__emblem .emblem__ring { animation-duration: 1.4s; }
@keyframes bootPulse { 50% { transform: scale(1.06); } }
.boot__log { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 7px; font-family: var(--mono); font-size: 14px; min-height: calc(7 * 1.6em); }
.boot__log li { display: flex; justify-content: space-between; gap: 12px; animation: bootLine .25s var(--ease) both; }
.boot__log .t { color: rgba(255, 255, 255, .85); }
.boot__log .t::after { content: "…"; }
.boot__log .r { color: var(--ice); font-weight: 800; white-space: nowrap; opacity: 0; transition: opacity .15s; }
.boot__log li.ok .r { opacity: 1; }
.boot__log li.final { justify-content: center; font-family: var(--display); font-size: 20px; transform: skewX(var(--skew)); color: var(--sun); }
.boot__log li.final .t::after { content: ""; }
@keyframes bootLine { from { opacity: 0; transform: translateY(6px); } }
.boot__bar { width: 100%; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.boot__bar span { display: block; height: 100%; width: 0; background: var(--grad); border-radius: inherit; transition: width .3s var(--ease); }
.boot__hint { margin: 0; font-size: 12px; color: rgba(255, 255, 255, .45); }
/* «Кодер»: лог как загрузка Linux — [ OK ] перед текстом */
[data-skin="code"] .boot { background: #030805; }
[data-skin="code"] .boot__log li { flex-direction: row-reverse; justify-content: flex-end; }
[data-skin="code"] .boot__log .r::before { content: "[ "; color: #c9ffd8; }
[data-skin="code"] .boot__log .r::after { content: " ]"; color: #c9ffd8; }
[data-skin="code"] .boot__log .t { color: #c9ffd8; }
[data-skin="code"] .boot__log .t::after { content: ""; }
[data-skin="code"] .boot__log li.final { flex-direction: row; color: var(--ice); }
[data-skin="code"] .boot__emblem, [data-skin="code"] .boot__bar, [data-skin="code"] .boot__bar span { border-radius: 4px; }

/* ============ Мелкие штуки ============ */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 200; background: var(--grad); transform-origin: left; transform: scaleX(0); }

.paw-layer { position: fixed; inset: 0; pointer-events: none; z-index: 150; }
.paw-print { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; fill: var(--ice); opacity: .55; animation: pawFade 1.4s ease-out forwards; }
@keyframes pawFade { to { opacity: 0; transform: rotate(var(--r)) scale(.6); } }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 600;
  padding: 12px 22px; border-radius: 999px; font-weight: 700;
  background: var(--text); color: var(--bg); box-shadow: var(--shadow);
  transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  transition: transform .35s var(--ease), opacity .35s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* метель (Konami) */
body.blizzard .hero__snow { filter: drop-shadow(0 0 2px #fff); }

/* ============ Навигация ============ */
.nav {
  position: fixed; top: 12px; left: 50%; z-index: 100; translate: -50% 0;
  width: min(1180px, calc(100% - 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 8px 8px 8px 16px; border-radius: 999px;
  background: var(--nav); border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  transition: transform .4s var(--ease), box-shadow .3s;
}
.nav.scrolled { box-shadow: var(--shadow); }
.nav.hidden { transform: translateY(-140%); }
.nav__logo { display: flex; align-items: center; gap: 8px; }
.nav__wolf { width: 28px; height: 28px; fill: none; stroke: url(#iceGrad); stroke-width: 4; stroke-linejoin: miter; }
.nav__name { font-family: var(--display); font-weight: 900; font-size: 18px; text-transform: uppercase; transform: skewX(var(--skew)); letter-spacing: .02em; }
.nav__links { display: flex; gap: 2px; }
.nav__links a { padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14.5px; color: var(--muted); white-space: nowrap; transition: color .2s, background .2s; }
.nav__links a:hover, .nav__links a.active { color: var(--text); background: var(--card-2); }
.nav__actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  height: 40px; min-width: 40px; padding: 0 10px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); background: var(--card); font-weight: 800; font-size: 13px;
  transition: transform .2s var(--ease), background .2s;
}
.icon-btn:hover { transform: scale(1.06); background: var(--card-2); }
[data-theme="dark"] .i-sun, [data-theme="light"] .i-moon { display: none; }
.burger { display: none; flex-direction: column; gap: 4px; }
.burger span { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s; }

/* ============ Кнопки ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 0;
  font-weight: 800; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--primary { color: #fff; background: var(--grad); box-shadow: 0 8px 22px color-mix(in srgb, var(--violet) 40%, transparent); }
.btn--outline { border: 1.5px solid var(--violet); color: var(--accent-text); padding: 9px 18px; font-size: 14px; }
.btn--outline:hover { background: var(--violet); color: #fff; }
.btn--ghost-light { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .2); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .18); }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ============ HERO ============ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; color: #fff; isolation: isolate; background: var(--night); }
.hero__bg {
  position: absolute; inset: -5%; z-index: -3;
  background: center 35% / cover no-repeat;
  animation: heroIn 1.8s var(--ease) both;
  transition: opacity .5s;
}
.hero__bg.swapping { opacity: .25; }
.hero__bg.no-image { background: radial-gradient(circle at 70% 30%, #3b2f9a, var(--night) 70%); }
@keyframes heroIn { from { transform: scale(1.18); filter: blur(10px); } to { transform: scale(1.05); filter: blur(0); } }
.hero__snow { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; pointer-events: none; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .4) 0%, transparent 22%, transparent 45%, color-mix(in srgb, var(--night) 72%, transparent) 78%, var(--bg) 100%),
    linear-gradient(90deg, color-mix(in srgb, var(--night) 75%, transparent) 0%, color-mix(in srgb, var(--night) 25%, transparent) 50%, transparent 75%);
}
[data-theme="light"] .hero__shade {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .4) 0%, transparent 22%, transparent 45%, color-mix(in srgb, var(--night) 72%, transparent) 82%, color-mix(in srgb, var(--night) 90%, transparent) 100%),
    linear-gradient(90deg, color-mix(in srgb, var(--night) 75%, transparent) 0%, color-mix(in srgb, var(--night) 25%, transparent) 50%, transparent 75%);
}
.hero__inner {
  width: min(1180px, 100% - 32px); margin: 0 auto; padding: 130px 0 96px;
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: end;
}

/* бейдж «время у FawyaN» */
.status {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(10px);
  font-size: 14px; font-weight: 600;
}
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: #3ee08f; box-shadow: 0 0 0 0 rgba(62, 224, 143, .6); animation: pulse 2s infinite; }
.status.sleep .status__dot { background: var(--sun); box-shadow: none; animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(62, 224, 143, 0); } 100% { box-shadow: 0 0 0 0 rgba(62, 224, 143, 0); } }

/* логотип: эмблема + слово */
.logo { position: relative; margin: 16px 0 16px; display: flex; align-items: center; gap: clamp(10px, 1.5vw, 20px); font-size: clamp(54px, 9vw, 132px); line-height: 1; }
.emblem {
  position: relative; flex: none; width: .9em; height: .9em; padding: 0; border: 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2a2f6e, #121538); display: grid; place-items: center;
  box-shadow: 0 0 0 .04em rgba(255, 255, 255, .15), 0 10px 40px rgba(98, 208, 255, .35);
  opacity: 0; scale: .3; rotate: -90deg;
  transition: scale .3s var(--ease);
}
.logo.in .emblem { animation: emblemIn .9s var(--ease) .1s forwards; }
@keyframes emblemIn { to { opacity: 1; scale: 1; rotate: 0deg; } }
.emblem:hover { scale: 1.08; }
.emblem:active { scale: .95; }
.emblem__ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--ice), var(--violet), var(--sun) 30%, var(--ice) 45%, transparent 46% 55%, var(--violet) 56%, var(--ice) 80%, transparent 81% 88%, var(--ice) 89%);
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 62% 72%, transparent 74%);
          mask: radial-gradient(circle, transparent 60%, #000 62% 72%, transparent 74%);
  animation: spin 8s linear infinite;
}
.emblem.howling .emblem__ring { animation-duration: .8s; }
@keyframes spin { to { rotate: 360deg; } }
.emblem__wolf { width: 54%; height: 54%; fill: none; stroke: #fff; stroke-width: 4.5; stroke-linejoin: miter; filter: drop-shadow(0 0 8px var(--ice)); }
.emblem.howling .emblem__wolf { animation: howlHead .9s ease-in-out; }
@keyframes howlHead { 30% { transform: rotate(-22deg) translateY(-6%); } 70% { transform: rotate(-22deg) translateY(-6%); } }

.logo__word { display: flex; font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; transform: skewX(var(--skew)); white-space: nowrap; }
.logo__word .ch { display: inline-block; opacity: 0; transform: translateY(40%); text-shadow: 0 6px 30px rgba(0, 0, 0, .35); transition: transform .3s var(--ease), color .3s; }
.logo.in .logo__word .ch { animation: chIn .7s var(--ease) forwards; animation-delay: calc(var(--i) * 55ms + 250ms); }
.logo__word .ch:hover { transform: translateY(-.08em); color: var(--ice); }
.logo__word .ch.accent { background: linear-gradient(160deg, #a8e6ff, var(--ice) 45%, #8b74ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes chIn { to { opacity: 1; transform: none; } }

.howl-bubble {
  position: absolute; left: .2em; top: -.45em; font-family: var(--display); font-size: .26em; font-weight: 900;
  padding: .25em .6em; border-radius: 999px; background: #fff; color: var(--night); white-space: nowrap;
  opacity: 0; transform: translateY(10px) scale(.8); pointer-events: none; transition: opacity .25s, transform .3s var(--ease);
}
.howl-bubble.show { opacity: 1; transform: none; }

.hero__tagline { margin: 0 0 26px; font-size: clamp(18px, 2vw, 23px); font-weight: 700; line-height: 1.4; max-width: 560px; text-shadow: 0 2px 20px rgba(0, 0, 0, .45); }

/* соцсети-«таблетки» */
.socials { display: flex; flex-wrap: wrap; gap: 12px; max-width: 560px; }
.social {
  display: inline-flex; align-items: center; gap: 10px; min-width: 0;
  padding: 6px 18px 6px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .95); color: var(--night);
  font-weight: 700; font-size: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  opacity: 0; translate: 0 20px;
  transition: rotate .35s var(--ease), transform .35s var(--ease), box-shadow .3s;
}
.social:nth-child(odd) { rotate: -2deg; }
.social:nth-child(even) { rotate: 1.5deg; }
.social.in { animation: popIn .7s var(--ease) forwards; animation-delay: calc(var(--i) * 90ms + 700ms); }
@keyframes popIn { to { opacity: 1; translate: 0 0; } }
.social:hover { rotate: 0deg; transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.social__icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); flex: none; transition: transform .4s var(--ease); }
.social:hover .social__icon { transform: rotate(-15deg) scale(1.08); }
.social__icon img { width: 18px; height: 18px; filter: brightness(0) invert(1); }
.social__name { font-family: var(--display); font-weight: 900; font-size: 14px; text-transform: uppercase; transform: skewX(var(--skew)); }
.social__handle { color: #5b6585; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social--primary { flex-basis: 100%; max-width: max-content; background: var(--grad); color: #fff; padding: 8px 24px 8px 8px; font-size: 17px; rotate: -3deg !important; }
.social--primary:hover { rotate: -1deg !important; }
.social--primary .social__icon { width: 42px; height: 42px; background: rgba(0, 0, 0, .2); }
.social--primary .social__name { font-size: 18px; }
.social--primary .social__handle { color: rgba(255, 255, 255, .85); }

/* карточки пожеланий справа */
.hero__right { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.card {
  width: min(310px, 100%); padding: 13px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .96); color: var(--night); box-shadow: 0 15px 40px rgba(0, 0, 0, .3);
  font-size: 14.5px; line-height: 1.45;
  opacity: 0; transform: translateX(40px) rotate(3deg);
}
.card.in { animation: cardIn .8s var(--ease) forwards, bob 6s ease-in-out infinite; animation-delay: calc(var(--i) * 160ms + 1100ms), calc(var(--i) * -2s); }
.card:nth-child(even) { margin-right: 26px; }
.card p { margin: 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card b { display: block; margin-top: 6px; color: var(--violet); font-size: 13px; }
@keyframes cardIn { to { opacity: 1; transform: rotate(var(--r, -1deg)); } }
@keyframes bob { 50% { translate: 0 -8px; } }

.scroll-hint { position: absolute; left: 50%; bottom: 24px; translate: -50% 0; width: 26px; height: 42px; border-radius: 20px; border: 2px solid rgba(255, 255, 255, .5); }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: #fff; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ============ Бегущая строка ============ */
.marquee { position: relative; z-index: 2; overflow: hidden; padding: 14px 0; background: var(--grad); color: #fff; transform: rotate(-1.2deg) scale(1.03); margin-top: -12px; }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee__track > span { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 19px; padding: 0 20px; white-space: nowrap; transform: skewX(var(--skew)); }
.marquee__track > span::after { content: "✦"; margin-left: 40px; color: var(--sun); font-family: var(--display); font-size: 19px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ Секции ============ */
.section { position: relative; padding: 110px 0; }
.section--alt { background: var(--bg-2); }
.section--dark {
  color: #fff; --muted: #b3b9e0;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--violet) 35%, transparent), transparent 45%),
    radial-gradient(circle at 100% 100%, color-mix(in srgb, var(--ice) 22%, transparent), transparent 45%),
    var(--night);
}
.h2 {
  display: flex; align-items: center; gap: 16px; margin: 0 0 12px;
  font-family: var(--display); font-weight: 900; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.05;
}
.h2 > span:last-child { display: inline-block; transform: skewX(var(--skew)); }
.h2__icon {
  flex: none; width: 1.25em; height: 1.25em; border-radius: 50%; display: grid; place-items: center;
  font-size: .62em; background: var(--grad); box-shadow: 0 8px 24px color-mix(in srgb, var(--violet) 40%, transparent);
}
.h2__icon svg { width: 60%; height: 60%; fill: #fff; }
.sub { margin: 0 0 40px; color: var(--muted); font-size: 18px; max-width: 620px; }

.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ============ Обо мне ============ */
.about { display: grid; grid-template-columns: minmax(0, 440px) 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about__photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: 32px;
  background: var(--card) center / cover; box-shadow: var(--shadow);
  rotate: -2.5deg; transition: rotate .6s var(--ease), opacity .8s var(--ease), transform .8s var(--ease);
}
.about__photo:hover { rotate: 0deg; }
.about__sticker {
  position: absolute; right: -16px; top: 26px; width: 88px; height: 88px; border-radius: 50%;
  display: grid; place-content: center; text-align: center; line-height: 1.05;
  background: var(--sun); color: var(--night); font-family: var(--display); font-weight: 900; font-size: 12px;
  box-shadow: 0 10px 30px rgba(255, 207, 51, .45); rotate: 12deg; animation: wobble 5s ease-in-out infinite;
}
.about__sticker b { font-size: 30px; }
@keyframes wobble { 50% { rotate: -6deg; } }
.about__line { margin: 6px 0 22px; font-weight: 700; font-size: 17px; }
.about__line .sep { color: var(--violet); margin: 0 6px; }
.about__text p.lead { margin: 0 0 14px; color: var(--muted); font-size: 18px; }
.bars { display: grid; gap: 12px; margin-top: 28px; }
.bar { display: grid; grid-template-columns: 150px 1fr 40px; gap: 14px; align-items: center; }
.bar__label { font-weight: 700; font-size: 15px; }
.bar__track { height: 10px; border-radius: 999px; background: var(--card-2); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.bar__fill { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width 1.4s var(--ease); }
.bar__val { font-family: var(--display); font-weight: 800; font-size: 14px; text-align: right; color: var(--muted); }

/* ============ Галерея ============ */
.gallery { columns: 3 260px; column-gap: 16px; }
.tile {
  position: relative; display: block; margin: 0 0 16px; break-inside: avoid; overflow: hidden; border-radius: 20px;
  cursor: zoom-in; background: rgba(255, 255, 255, .06);
}
.tile[hidden] { display: none; }
.tile img { width: 100%; height: auto; transition: transform .7s var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; font-weight: 700; color: #fff;
  background: linear-gradient(transparent, rgba(10, 8, 30, .75)); transform: translateY(100%); transition: transform .4s var(--ease);
}
.tile:hover figcaption { transform: none; }
.more { display: flex; justify-content: center; margin-top: 18px; }

/* ============ Фото-разделитель ============ */
.break { position: relative; height: min(72vh, 680px); overflow: hidden; }
.break__bg { position: absolute; inset: -12% 0; background: center / cover no-repeat; will-change: transform; }
.break__tag {
  position: absolute; left: max(16px, calc((100% - 1180px) / 2)); bottom: 26px;
  padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--night); font-weight: 800; font-size: 14px;
}
.break__tag:empty { display: none; }

/* ============ Фесты ============ */
.section#events { overflow: hidden; padding-bottom: 150px; }
.events { border-top: 1px solid var(--line); }
.event {
  display: grid; grid-template-columns: 240px 1fr auto; gap: 24px; align-items: center;
  padding: 30px 6px; border-bottom: 1px solid var(--line);
  transition: background .3s, padding .4s var(--ease);
}
.event:hover { background: var(--card); padding-inline: 18px; }
.event__date { font-weight: 800; color: var(--violet); }
.event__name { display: block; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.05; transform: skewX(var(--skew)); transform-origin: left; }
.event__place { display: block; color: var(--muted); margin-top: 4px; }

/* выглядывающий волк */
.peek { position: absolute; right: max(20px, calc((100% - 1180px) / 2 + 30px)); bottom: 0; width: 170px; height: 150px; overflow: hidden; }
.peek__wolf { position: absolute; left: 0; bottom: -78px; width: 170px; transition: bottom .5s cubic-bezier(.3, 1.6, .5, 1); cursor: pointer; filter: drop-shadow(0 0 1px rgba(19, 24, 56, .35)) drop-shadow(0 6px 14px rgba(19, 24, 56, .12)); }
.peek.in .peek__wolf { bottom: -24px; }
.peek:hover .peek__wolf { bottom: 4px; }
.peek__ear { transform-box: fill-box; transform-origin: bottom center; animation: twitch 4s ease-in-out infinite; }
.peek__ear--r { animation-delay: 1.3s; }
@keyframes twitch { 0%, 88%, 100% { transform: rotate(0); } 92% { transform: rotate(-12deg); } 96% { transform: rotate(6deg); } }
.peek__eyes { transform-box: fill-box; transform-origin: center; animation: blink 5s infinite; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
.peek__tongue { transform-box: fill-box; transform-origin: top center; transform: scaleY(0); transition: transform .3s; }
.peek:hover .peek__tongue { transform: scaleY(1); }
.peek__snow { position: absolute; left: -10px; right: -10px; bottom: -20px; height: 46px; border-radius: 50% 50% 0 0; background: var(--bg); box-shadow: 0 -2px 0 var(--line); }

/* ============ Гостевая книга ============ */
.gb { display: grid; grid-template-columns: 300px minmax(0, 560px); gap: 50px; align-items: start; }
.gb__form { display: grid; gap: 16px; padding: 28px; border-radius: 26px; background: var(--card); box-shadow: var(--shadow); }
.field { display: grid; gap: 7px; }
.field__label { display: flex; justify-content: space-between; font-weight: 700; font-size: 14px; }
.field__count { color: var(--muted); font-weight: 600; }
.field__count.warn { color: #e0a400; }
.field input, .field textarea {
  width: 100%; padding: 12px 16px; border-radius: 14px; resize: vertical; min-height: 48px;
  background: var(--bg); border: 1.5px solid var(--line); outline: none; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 4px color-mix(in srgb, var(--violet) 18%, transparent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.gb__form .btn { justify-self: start; }
.gb__msg { margin: 0; min-height: 1.4em; font-weight: 600; font-size: 14.5px; }
.gb__msg.ok { color: var(--accent-text); }
.gb__msg.err { color: #ff5d7d; }

/* табличка в сугробе */
.sign { position: relative; justify-self: start; width: 260px; height: 300px; margin-top: -24px; }
.sign__board {
  position: absolute; left: 0; right: 0; top: 30px; z-index: 2; padding: 22px 18px; border-radius: 14px;
  background: linear-gradient(180deg, #a87b52, #8a5f3b); color: #fff8e8; text-align: center;
  font-family: var(--display); font-weight: 900; font-size: 19px; line-height: 1.2; text-transform: uppercase;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .15), 0 14px 30px rgba(0, 0, 0, .2);
  rotate: -5deg; transform-origin: bottom center; animation: sway 4s ease-in-out infinite;
}
.sign__board::before { /* снег на табличке */
  content: ""; position: absolute; left: 6px; right: 10px; top: -8px; height: 16px; border-radius: 10px 10px 6px 6px; background: #fff;
}
@keyframes sway { 50% { rotate: -2deg; } }
.sign__post { position: absolute; left: 50%; top: 120px; width: 16px; height: 150px; margin-left: -8px; border-radius: 4px; background: #7a5233; }
.sign__drift { position: absolute; left: -30px; right: -30px; bottom: 0; height: 70px; border-radius: 50% 50% 12px 12px; background: #fff; box-shadow: inset 0 -10px 0 #dfe8f5; }
[data-theme="dark"] .sign__drift { background: #e8eef9; }

.wall { columns: 3 260px; column-gap: 16px; margin-top: 50px; }
.note {
  display: inline-block; width: 100%; margin: 0 0 16px; break-inside: avoid; padding: 18px 20px; border-radius: 18px;
  background: var(--card); box-shadow: 0 8px 26px rgba(0, 0, 0, .08); rotate: var(--r, 0deg);
  opacity: 0; translate: 0 -50px;
}
.note.in { animation: drop .7s cubic-bezier(.3, 1.4, .5, 1) forwards; animation-delay: var(--d, 0ms); }
@keyframes drop { to { opacity: 1; translate: 0 0; } }
.note p { margin: 0 0 10px; white-space: pre-line; overflow-wrap: anywhere; }
.note__meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.note__meta b { color: var(--violet); }
.note--empty { text-align: center; color: var(--muted); }

/* салют */
.burst { position: fixed; z-index: 300; pointer-events: none; font-size: 20px; animation: burst 1.2s cubic-bezier(.2, .7, .4, 1) forwards; }
@keyframes burst { to { transform: translate(var(--x), var(--y)) rotate(var(--rot)); opacity: 0; } }

/* ============ Футер ============ */
.footer { background: var(--night); color: #c9cff0; padding: 34px 0; }
.footer__inner { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer__logo { color: #fff; font-family: var(--display); font-weight: 900; font-size: 18px; text-transform: uppercase; }
.footer__logo span { display: inline-block; transform: skewX(var(--skew)); }
.footer__socials { display: flex; gap: 10px; }
.footer__socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); transition: background .3s, transform .3s var(--ease); }
.footer__socials a:hover { background: var(--grad); transform: translateY(-3px); }
.footer__socials img { width: 18px; height: 18px; filter: brightness(0) invert(1); }
.footer__copy { margin: 0 0 0 auto; font-size: 14px; }

/* ============ Лайтбокс ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 70px 16px;
  background: rgba(8, 7, 24, .93); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; text-align: center; color: #fff; transform: scale(.94); transition: transform .35s var(--ease); }
.lightbox.open figure { transform: none; }
.lightbox img { max-height: 80vh; max-width: min(1100px, 92vw); border-radius: 16px; margin: 0 auto; }
.lightbox figcaption { margin-top: 12px; font-weight: 700; }
.lightbox .icon-btn { position: absolute; color: var(--text); font-size: 20px; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; }
.lightbox__next { right: 18px; top: 50%; }

/* ============ Меню оформлений ============ */
.skin { position: relative; }
#skinIcon { font-size: 17px; line-height: 1; }
.skin__menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 10; min-width: 190px; padding: 6px;
  display: grid; gap: 2px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.97); transform-origin: top right;
  transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.skin.open .skin__menu { opacity: 1; visibility: visible; transform: none; }
.skin__opt {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px;
  background: none; text-align: left; font-weight: 700; font-size: 14.5px;
}
.skin__opt:hover { background: var(--card-2); }
.skin__opt[aria-checked="true"] { background: var(--grad); color: #fff; }
.skin__opt span:first-child { font-size: 18px; }

/* ============ «Лето» ============ */
[data-skin="summer"] .sign__drift { background: #6fcf5c; box-shadow: inset 0 -10px 0 #4fae43; }
[data-skin="summer"] .sign__board::before { display: none; }
[data-skin="summer"] .emblem { background: radial-gradient(circle at 35% 30%, #135a7e, #0b3248); }

/* ============ «Кодер» ============ */
[data-skin="code"] #themeToggle { display: none; }
[data-skin="code"] :is(.nav, .btn, .icon-btn, .social, .social__icon, .status, .card, .note, .gb__form, .field input, .field textarea,
  .tile, .about__photo, .toast, .break__tag, .h2__icon, .skin__menu, .skin__opt, .bar__track, .lightbox img, .sign__board) { border-radius: 4px; }
/* анимация появления фона тоже трогает filter и перебила бы обесцвечивание — здесь она не нужна */
[data-skin="code"] .hero__bg { animation: none; transform: scale(1.05); filter: grayscale(1) contrast(1.2) brightness(.75); }
/* зелёный тон поверх обесцвеченных фото */
[data-skin="code"] .hero__shade::before, [data-skin="code"] .break::after {
  content: ""; position: absolute; inset: 0; background: #1aff7a; mix-blend-mode: color; opacity: .35; pointer-events: none;
}
[data-skin="code"] .break { isolation: isolate; }
.break__tag { z-index: 2; }
[data-skin="code"] .hero::after { /* полосы старого монитора */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px);
}
[data-skin="code"] .break__bg { filter: grayscale(1) contrast(1.15) brightness(.8); }
[data-skin="code"] .about__photo, [data-skin="code"] .tile img { filter: grayscale(.85) contrast(1.1); transition: filter .4s; }
[data-skin="code"] .about__photo:hover, [data-skin="code"] .tile:hover img { filter: none; }
[data-skin="code"] .logo__word::after { content: "_"; color: var(--ice); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
[data-skin="code"] .h2 > span:last-child::before { content: "> "; color: var(--ice); }
[data-skin="code"] .logo__word .ch { text-shadow: 0 0 18px rgba(57, 255, 136, .5); }
[data-skin="code"] :is(.social, .card) { background: rgba(5, 12, 8, .9); color: var(--text); border: 1px solid var(--line); }
[data-skin="code"] .social__handle { color: var(--muted); }
[data-skin="code"] .social--primary { background: var(--ice); color: #03140a; border: 0; }
[data-skin="code"] .social--primary .social__handle { color: #0a3a1f; }
[data-skin="code"] .btn--primary, [data-skin="code"] .skin__opt[aria-checked="true"], [data-skin="code"] .marquee { background: var(--ice); color: #03140a; }
[data-skin="code"] .h2__icon, [data-skin="code"] .social__icon, [data-skin="code"] .bar__fill, [data-skin="code"] .progress { background: var(--ice); }
[data-skin="code"] .social:not(.social--primary) .social__icon img { filter: none; }
[data-skin="code"] .sign__board { background: #0b1710; color: var(--ice); border: 1px solid var(--ice); box-shadow: 0 0 24px rgba(57, 255, 136, .25); }
[data-skin="code"] .sign__board::before { display: none; }
[data-skin="code"] .sign__post { background: #1d3a29; }
[data-skin="code"] .sign__drift { background: #0b1710; box-shadow: inset 0 0 0 1px var(--line); }
[data-skin="code"] .about__sticker { background: var(--ice); }
[data-skin="code"] .emblem { background: #030805; box-shadow: 0 0 0 .04em var(--line), 0 0 40px rgba(57, 255, 136, .35); }
[data-skin="code"] .emblem__wolf { stroke: var(--ice); }

/* ============ Ориентация экрана ============ */
/* Вертикальный экран: всё по центру внизу, одна карточка в углу */
@media (orientation: portrait) {
  .hero__bg { background-position: center top; }
  .hero__shade { background: linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, transparent 16%, transparent 40%, color-mix(in srgb, var(--night) 78%, transparent) 66%, var(--night) 100%); }
  .hero__inner { grid-template-columns: 1fr; padding-bottom: 90px; }
  .hero__left { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .logo { justify-content: center; font-size: clamp(44px, 13vw, 140px); }
  .socials { justify-content: center; }
  .social--primary { flex-basis: auto; }
  .hero__right { position: absolute; top: 84px; right: 14px; width: min(260px, 58vw); }
  .hero__right .card, .hero__right .card.in {
    position: absolute; top: 0; right: 0; width: 100%; margin: 0; font-size: 13px; padding: 10px 13px;
    animation: none; opacity: 0; transform: translateY(-10px) scale(.96); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none;
  }
  .hero__right .card.in.active { opacity: 1; transform: rotate(1.5deg); pointer-events: auto; animation: bob 6s ease-in-out infinite; }
  .card p { -webkit-line-clamp: 3; }
}
/* Горизонтальный низкий экран: телефон лёжа */
@media (orientation: landscape) and (max-height: 540px) {
  .hero__inner { grid-template-columns: 1fr; padding: 86px 0 34px; }
  .hero__right, .scroll-hint, .status { display: none; }
  .logo { font-size: clamp(40px, 14vh, 90px); margin: 0 0 10px; }
  .hero__tagline { font-size: 16px; margin-bottom: 14px; }
  .nav { padding-block: 5px; }
}
.rotating .hero__inner { animation: rotIn .6s var(--ease); }
@keyframes rotIn { from { opacity: 0; transform: translateY(14px); } }

/* ============ Адаптив по ширине ============ */
@media (max-width: 1000px) {
  .about { grid-template-columns: 1fr; }
  .about__photo { max-width: 420px; width: 100%; margin-inline: auto; }
  .gb { grid-template-columns: 1fr; }
  .sign { display: none; }
  .event { grid-template-columns: 1fr auto; }
  .event__date { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .burger { display: inline-flex; }
  .nav { border-radius: 26px; flex-wrap: wrap; }
  .nav__actions .btn { display: none; }
  .nav__links { order: 3; flex-basis: 100%; flex-direction: column; max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
  .nav.open .nav__links { max-height: 280px; padding: 6px 0 4px; }
  .nav.open .burger span:first-child { transform: translateY(3px) rotate(45deg); }
  .nav.open .burger span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .section { padding: 80px 0; }
}
@media (max-width: 560px) {
  .nav { padding-left: 12px; gap: 8px; }
  .nav__actions { gap: 4px; }
  .nav__actions .icon-btn { height: 36px; min-width: 36px; padding: 0 8px; }
  .icon-btn--lang .i { display: none; }
  .nav__name { font-size: 16px; }
  .social--primary { max-width: 100%; font-size: 15px; }
  .bar { grid-template-columns: 1fr 40px; }
  .bar__track { grid-column: 1 / -1; grid-row: 2; }
  .event { grid-template-columns: 1fr; }
  .event .btn { justify-self: start; }
  .about__sticker { right: 6px; }
  .footer__copy { margin-left: 0; flex-basis: 100%; }
  .gb__form { padding: 20px; }
  .peek { right: 16px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
