@layer components {
  /* ---------- единый фон страницы: пятна живут на уровне <main>, секции прозрачны и не имеют стыков ---------- */
  .page { position: relative; overflow: clip; }
  .page-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none;
    /* на коротких страницах (вход, регистрация) нижние пятна выходили за <main> и срезались ровной линией — гасим их к низу */
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 320px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 320px), transparent); }
  .page-bg .orb { position: absolute; }
  .page-bg .b1 { left: -8%; top: 14%; width: 520px; height: 520px; }
  .page-bg .b2 { right: -6%; top: 24%; width: 440px; height: 440px; animation-delay: -9s; }
  .page-bg .b3 { left: 30%; top: 37%; width: 560px; height: 560px; opacity: .75; animation-delay: -15s; }
  .page-bg .b4 { right: 8%; top: 52%; width: 380px; height: 380px; opacity: .8; animation-delay: -5s; }
  .page-bg .b5 { left: -4%; top: 68%; width: 480px; height: 480px; opacity: .7; animation-delay: -12s; }
  .page-bg .b6 { right: -8%; top: 86%; width: 520px; height: 520px; opacity: .8; animation-delay: -18s; }
  .page > section { position: relative; z-index: 1; }
  .sec[id], .hero[id] { scroll-margin-top: 104px; }

  /* ---------- hero ---------- */
  .hero { position: relative; padding-block: 132px 72px; overflow-x: clip; min-height: 760px; }
  .hero .fog { position: absolute; inset: -20% -10% -28%; z-index: 0; will-change: transform;
    background: radial-gradient(40% 50% at 20% 30%, rgba(var(--mint-rgb), .16), transparent 70%), radial-gradient(35% 45% at 80% 20%, rgba(var(--lime-rgb), .12), transparent 70%),
      radial-gradient(45% 55% at 60% 90%, rgba(var(--flame-rgb), .16), transparent 70%), radial-gradient(60% 60% at 50% 50%, rgba(57,40,91,.6), transparent 80%);
    animation: fog 18s ease-in-out infinite alternate;
    /* пятна у нижнего края обрезались ровной линией на фоне номинаций и ездили вместе с анимацией — гасим низ маской */
    -webkit-mask-image: linear-gradient(to bottom, #000 45%, rgba(0,0,0,.45) 68%, transparent 92%); mask-image: linear-gradient(to bottom, #000 45%, rgba(0,0,0,.45) 68%, transparent 92%); }
  @keyframes fog { from { transform: translate3d(-3%, -2%, 0) scale(1); } to { transform: translate3d(3%, 4%, 0) scale(1.08); } }
  .hero-gl { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
  .hero-gl.ready { opacity: 1; }
  .hero .wrap { position: relative; z-index: 2; }
  /* Логотипы организаторов над заголовком вместо надписи (заказчик, 2026-10-22); высоты подобраны под оптический вес знаков */
  .hero-orgs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
  .hero-orgs li { display: flex; align-items: center; }
  .hero-orgs li + li { padding-left: 22px; border-left: 1px solid rgba(255,255,255,.18); }
  .hero-orgs img { display: block; width: auto; height: 30px; }
  .hero-orgs .org-priority { height: 16px; }
  .hero-orgs .org-genai { height: 32px; }
  /* Телефон: одна строка без переноса, высоты тянутся от ширины экрана (сумма ширин знаков при 12/24/26 px ≈ 281 px) */
  @media (max-width: 479px) {
    .hero-orgs { flex-wrap: nowrap; gap: 12px; }
    .hero-orgs li + li { padding-left: 12px; }
    .hero-orgs img { height: min(24px, calc((100vw - 80px) * .0854)); }
    .hero-orgs .org-priority { height: min(12px, calc((100vw - 80px) * .0427)); }
    .hero-orgs .org-genai { height: min(26px, calc((100vw - 80px) * .0925)); }
  }
  @media (min-width: 1024px) {
    .hero-orgs img { height: 38px; }
    .hero-orgs .org-priority { height: 20px; }
    .hero-orgs .org-genai { height: 40px; }
  }
  .hero h1 { font-family: var(--font-display); font-weight: 900; font-size: var(--step-5); line-height: .92; letter-spacing: -.035em; margin: 18px 0 22px; text-wrap: balance; }
  .hero h1 .x { color: var(--mint); text-shadow: 0 0 28px rgba(var(--mint-rgb), .65); }
  .hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: end; margin-top: 40px; }
  .hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
  /* слоган под кнопками вместо счётчиков (заказчик, 2026-10-22) */
  .hero-slogan { margin: 18px 0 0; font-family: var(--font-data); font-size: 1rem; color: var(--fg-dim); }
  .hero-slogan b { color: var(--lime); font-weight: 700; white-space: nowrap; }

  /* таймер — общий компонент, см. components.css (используется и на главной, и в кабинете) */

  /* ---------- секции ---------- */
  .sec { position: relative; padding-block: 88px; }
  .sec .wrap { position: relative; z-index: 1; }
  .page-head { padding-block: 132px 0; }

  /* 3D-наклон карточек за курсором (переменные ставит tilt.js) */
  .tilt { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .55s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease); will-change: transform; }
  .tilt:hover { transition-duration: .12s, .35s, .35s; }
  @media (prefers-reduced-motion: reduce), (hover: none) { .tilt, .tilt:hover { transform: none; } }

  /* номинации */
  .noms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .nom { min-height: 400px; display: flex; flex-direction: column; justify-content: space-between; padding: 28px; overflow: hidden; }
  .nom > div { position: relative; z-index: 1; }
  .nom:hover { border-color: rgba(var(--c-rgb), .5); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 30px 70px -30px rgba(var(--c-rgb), .55); }
  .nom .tag { font-family: var(--font-data); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: rgb(var(--c-rgb)); }
  .nom h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -.02em; line-height: 1.05; margin: 14px 0 12px; color: rgb(var(--c-rgb)); text-shadow: 0 0 22px rgba(var(--c-rgb), .55); max-width: calc(100% - 96px); }
  .nom p { color: var(--fg-dim); margin: 0; font-size: .98rem; }
  .nom .prizes { font-family: var(--font-data); display: grid; gap: 6px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 14px; margin-top: 22px; font-size: .85rem; color: var(--fg-dim); font-variant-numeric: tabular-nums; }
  .nom .prizes div { display: flex; justify-content: space-between; gap: 12px; }
  .nom .prizes b { color: var(--fg); font-weight: 600; }
  .nom .prizes div:first-child b { color: rgb(var(--c-rgb)); font-weight: 700; }
  .nom .when { font-size: .78rem; color: var(--fg-dim); margin-top: 10px; }
  /* фигуры номинаций: WebGL-канвас с теми же мешами, что в hero (nom-3d.js); .gem — CSS-фоллбек без WebGL */
  .nom .nom-gl { position: absolute; right: 10px; top: 10px; width: 120px; height: 120px; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .8s ease; }
  .nom.gl-ready .nom-gl { opacity: 1; }
  .nom.gl-ready .gem { display: none; }
  /* фоллбек: сфера / куб / тор на CSS, объём задан градиентами и тенями, движется только transform */
  .nom .gem { position: absolute; right: 22px; top: 22px; width: 84px; height: 84px; z-index: 0; border-radius: 50%; will-change: transform; animation: bob 6s ease-in-out infinite;
    background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.95), rgba(var(--c-rgb), .95) 22%, rgba(var(--c-rgb), .55) 58%, rgba(var(--c-rgb), .25) 100%);
    box-shadow: inset -14px -16px 28px rgba(0,0,0,.45), inset 6px 8px 14px rgba(255,255,255,.25), 0 18px 40px -12px rgba(var(--c-rgb), .6); }
  @keyframes bob { 50% { transform: translateY(-8px) scale(1.04); } }
  .c-lime .gem { border-radius: 22%; animation-name: bob-rot;
    background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(var(--c-rgb), .95) 28%, rgba(var(--c-rgb), .55) 70%, rgba(var(--c-rgb), .3));
    box-shadow: inset -12px -14px 24px rgba(0,0,0,.45), inset 8px 8px 16px rgba(255,255,255,.3), 0 18px 40px -12px rgba(var(--c-rgb), .6); }
  @keyframes bob-rot { 0%, 100% { transform: rotate(14deg); } 50% { transform: translateY(-8px) rotate(20deg) scale(1.04); } }
  .c-peach .gem { width: 96px; height: 96px; right: 16px; top: 18px; background: none; box-shadow: none; border-radius: 0; animation-name: bob-torus; transform: perspective(260px) rotateX(58deg) rotate(-18deg); }
  .c-peach .gem::before, .c-peach .gem::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
  /* кольцо: коническая заливка даёт блик и тень по окружности, маска вырезает отверстие */
  .c-peach .gem::before {
    background: conic-gradient(from 210deg, rgba(255,255,255,.96), rgba(var(--c-rgb), .95) 18%, rgba(var(--flame-rgb), .85) 42%, rgba(120,40,30,.9) 58%, rgba(var(--flame-rgb), .85) 76%, rgba(var(--c-rgb), .95) 90%, rgba(255,255,255,.96));
    -webkit-mask: radial-gradient(circle, transparent 44%, #000 45%); mask: radial-gradient(circle, transparent 44%, #000 45%);
    box-shadow: 0 22px 44px -10px rgba(var(--flame-rgb), .65); }
  /* внутренняя тень отверстия и внешний блик — объём трубки */
  .c-peach .gem::after { box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), inset 0 -10px 18px rgba(0,0,0,.35), inset 0 8px 14px rgba(255,255,255,.18);
    -webkit-mask: radial-gradient(circle, transparent 44%, #000 45%); mask: radial-gradient(circle, transparent 44%, #000 45%); }
  @keyframes bob-torus { 0%, 100% { transform: perspective(260px) rotateX(58deg) rotate(-18deg); } 50% { transform: translateY(-8px) perspective(260px) rotateX(58deg) rotate(-4deg); } }

  /* призы */
  .big { font-family: var(--font-display); font-weight: 900; font-size: var(--step-6); letter-spacing: -.05em; line-height: .9; margin: 0; font-variant-numeric: tabular-nums; }
  .big-sm { font-size: clamp(3rem, 12vw, 7rem); }
  .big small { display: block; font-family: var(--font-data); font-weight: 400; font-size: clamp(.85rem, 1.4vw, 1.1rem); letter-spacing: .12em; text-transform: uppercase; color: var(--violet-400); margin-top: 14px; }
  .ptable { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
  .pt { padding: 22px; font-family: var(--font-data); }
  .pt > span { display: block; color: var(--fg-dim); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
  .pt b { display: block; font-size: clamp(1.5rem, 3vw, 2.4rem); margin-top: 8px; font-weight: 700; font-variant-numeric: tabular-nums; }
  .pt i { display: block; font-style: normal; color: var(--violet-400); font-size: .8rem; margin-top: 6px; }
  .pt.c-sun b { color: var(--sun); }
  /* призы: подпись под суммой фонда — обычным регистром (заказчик, 2026-10-24); «×3» в углу карточки — приз в каждой из 3 номинаций */
  .big small.nocaps { text-transform: none; letter-spacing: 0; font-size: clamp(1rem, 1.6vw, 1.25rem); color: var(--paper-dim); }
  .pt > span { padding-right: 56px; } /* не наезжать на «×3» */
  .pt-x { position: absolute; top: 18px; right: 22px; font-family: var(--font-display); font-style: normal; font-weight: 900; font-size: clamp(1.3rem, 2.2vw, 1.75rem); letter-spacing: -.03em; line-height: 1; color: var(--paper); }
  .pt-x .x { color: var(--mint); }
  .pt.c-sun .pt-x .x { color: var(--sun); }
  .pnote { color: var(--fg-dim); margin-top: 22px; font-size: .95rem; }

  /* шаги */
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; } /* подпись под заголовком убрана — отступ как у .sub */
  .step { padding: 26px; }
  .step .n { font-family: var(--font-data); color: var(--mint); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
  .step h4 { font-family: var(--font-display); font-size: 1.15rem; margin: 12px 0 8px; font-weight: 700; }
  .step p { margin: 0; color: var(--fg-dim); font-size: .95rem; }
  .step p strong { color: var(--fg); font-weight: inherit; } /* выделение в тексте шага — цветом основного текста (белый на тёмной теме) */
  .step .date { font-family: var(--font-data); color: var(--fg); font-size: .85rem; margin-top: 14px; display: block; }

  /* жюри */
  /* жюри: фиксированные колонки, чтобы 8 человек вставали ровно 4 + 4; на телефоне 2 в ряд, а не лента во всю ширину (2026-10-23) */
  .jury { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 18px; margin-top: 28px; } /* отступ от заголовка ×2: 14 → 28 px; схлопывается с margin-bottom у .h2 (заказчик, 2026-10-23) */
  @media (max-width: 1023px) { .jury { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  /* член жюри: карточка — сама фотография, без подложки. Фото наклоняется в 3D за курсором (.tilt), по нему идёт блик (--mx/--my из tilt.js),
     кромка загорается неоном, дуотон слабеет; имя не меняется (заказчик). Анимируются только opacity/transform.
     Углы: clip-path по радиусу на самом фото — иначе на время перехода Chrome выносит слои в композит и скругление «мигает» (то острые, то круглые углы).
     Поэтому внутри фото нет своих transform/will-change, а снимок не приближается (заказчик, 2026-10-23). */
  .juror { margin: 0; }
  .juror .photo { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, var(--ink-800), var(--violet-700)); position: relative; isolation: isolate; clip-path: inset(0 round var(--radius)); }
  .juror .photo img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); mix-blend-mode: luminosity; }
  .juror .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(var(--c-rgb), .35), rgba(57,40,91,.6)); mix-blend-mode: color; transition: opacity .45s var(--ease); }
  /* кромка: тонкая светлая рамка как у стекла, при наведении — ярче и в цвет */
  .juror .photo::before { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; padding: 1px; opacity: .35; transition: opacity .35s var(--ease);
    background: linear-gradient(135deg, rgba(255,255,255,.75), rgba(255,255,255,.08) 35%, transparent 60%, rgba(var(--c-rgb), .9));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
  .juror .shine { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .35s var(--ease);
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 30%), rgba(255,255,255,.32), rgba(var(--c-rgb), .16) 38%, transparent 68%), linear-gradient(115deg, transparent 38%, rgba(255,255,255,.10) 48%, transparent 58%); }
  .juror figcaption { margin-top: 14px; display: grid; gap: 6px; font-size: .92rem; }
  .juror figcaption b { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.15; }
  .juror figcaption span { color: var(--fg-dim); font-size: .85rem; }
  .juror .photo:hover::after { opacity: .55; }
  .juror .photo:hover::before, .juror .photo:hover .shine { opacity: 1; }
  @media (hover: none) { .juror .shine { display: none; } }
  @media (max-width: 767px) { .jury { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; } .juror figcaption { margin-top: 10px; font-size: .86rem; } .juror figcaption b { font-size: 1rem; } .juror figcaption span { font-size: .78rem; } }

  /* партнёры: логотипы прямо на фоне, без плашек; пока нет SVG — текстовые заглушки.
     4 в ряд (заказчик, 2026-10-23), неполный последний ряд — по центру, поэтому flex с переносом, а не grid. Ширина пункта
     задана явно (flex: 0 0 …), поэтому max-width: 100% у картинки работает: без неё пункт растягивался до натуральной ширины SVG */
  .plogos { --gap: 40px; list-style: none; margin: 80px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 64px var(--gap); }
  .plogos li { flex: 0 0 calc((100% - 3 * var(--gap)) / 4); display: flex; align-items: center; justify-content: center; min-width: 0; }
  /* Оптический баланс: одинаковая высота делает широкие надписи огромными, а плотные знаки — тяжёлыми. Высота каждого
     логотипа ≈ √(площадь / пропорция), чтобы визуальная площадь была близкой, плюс поправка на плотность заливки
     (BBDO и плашка «Ашманова» — сплошной цвет, их меньше). Новый логотип — добавь строку с --h. */
  .plogos { --k: 1; }
  .plogos img { display: block; height: calc(var(--h, 52px) * var(--k)); width: auto; max-width: 100%; object-fit: contain; }
  .plogo-yandex-cloud { --h: 32px; }   /* 7,4 : 1 */
  .plogo-megafon { --h: 40px; }        /* 5,2 : 1 */
  .plogo-azbuka-vkusa { --h: 56px; }   /* 3,1 : 1, тонкий текст */
  .plogo-ashmanov { --h: 54px; }       /* 2 : 1, сплошная плашка */
  .plogo-tilda { --h: 50px; }          /* 3,7 : 1, тонкие линии */
  .plogo-retail-academy { --h: 56px; } /* 2,9 : 1 */
  .plogo-bbdo { --h: 38px; }           /* 3,5 : 1, сплошная заливка */
  .plogo-tonka { --h: 17px; }          /* 14 : 1, тонкая надпись */
  .plogo-neurolab { --h: 54px; }       /* 3 : 1 */
  .plogo-endowment { --h: 54px; }      /* 3,4 : 1, тонкое кольцо и мелкая подпись */
  @media (max-width: 767px) {
    .plogos { --k: .82; --gap: 24px; row-gap: 44px; }
    .plogos li { flex-basis: calc((100% - var(--gap)) / 2); }
    .plogos .plogo-tonka { flex-basis: 100%; } /* надпись 14:1 в половине экрана — буквы ~10 px */
  }
  .plogo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -.01em; color: var(--violet-200); white-space: nowrap; }

  /* итоги 2025: крупные цифры и 12 карточек в 4 ряда по 3 */
  .res-stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 18px 32px; margin-bottom: 44px; font-family: var(--font-data); }
  .res-stats b { display: block; font-family: var(--font-display); font-weight: 900; font-size: clamp(2.2rem, 4.4vw, 4rem); letter-spacing: -.04em; line-height: 1; color: var(--fg); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .res-stats div:first-child b { color: var(--mint); text-shadow: 0 0 30px rgba(var(--mint-rgb), .5); }
  .res-stats div:last-child b { color: var(--sun); text-shadow: 0 0 30px rgba(var(--sun-rgb), .45); }
  .res-stats span { display: block; margin-top: 10px; color: var(--fg-dim); font-size: .9rem; letter-spacing: .04em; }
  .winners { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .winners li { display: grid; grid-template-rows: auto 1fr auto; gap: 14px; padding: 22px; min-height: 220px; overflow: hidden; }
  .winners li.top { --c-rgb: var(--sun-rgb); }
  .winners li.podium { --c-rgb: var(--mint-rgb); }
  .winners .faces { display: flex; position: relative; z-index: 1; }
  .winners .faces img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ink-900); box-shadow: 0 0 0 1px rgba(255,255,255,.18); background: var(--ink-800); }
  .winners .faces img + img { margin-left: -16px; }
  .winners .top .faces img, .winners .podium .faces img { width: 68px; height: 68px; }
  .winners .who { display: grid; gap: 4px; min-width: 0; align-content: start; position: relative; z-index: 1; padding-right: 18%; }
  .winners .who b { font-size: 1.02rem; line-height: 1.25; }
  .winners .who small { color: var(--fg-dim); font-size: .82rem; }
  .winners .meta { display: flex; align-items: baseline; gap: 14px; position: relative; z-index: 1; }
  .winners .place { position: absolute; top: 22px; right: 22px; z-index: 1; font-family: var(--font-display); font-weight: 900; font-size: 1.15rem; line-height: 1; color: var(--violet-400); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .winners .top .place { color: var(--sun); text-shadow: 0 0 18px rgba(var(--sun-rgb), .5); }
  .winners .podium .place { color: var(--mint); text-shadow: 0 0 18px rgba(var(--mint-rgb), .45); }
  .winners .sum { font-family: var(--font-data); color: var(--fg); font-weight: 600; white-space: nowrap; font-size: .95rem; font-variant-numeric: tabular-nums; }
  .winners .top .sum { color: var(--sun); }
  .winners .podium .sum { color: var(--mint); }
  /* логотип вуза: крупно в правом нижнем углу, частично уходит за край карточки */
  /* Логотип вуза — водяной знак в правом нижнем углу. У каждого файла своя высота (--h, % высоты карточки) и сдвиг за край
     (--r — % ширины, --b — % высоты): эталон — компактные эмблемы ВШЭ, УдГУ и МГИМО (значения по умолчанию, их одобрил заказчик);
     широкие надписи — меньше и целиком, круглые и гербы — крупно с обрезом краем карточки. */
  .winners .ulogo { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .32; }
  .winners .ulogo img { position: absolute; right: var(--r, -8%); bottom: var(--b, -10%); height: var(--h, 60%); width: auto; max-width: none; }
  .winners .ul-central_university_0 { --h: 44%; --r: 5%; --b: 7%; }    /* знак + «ЦУ», 1,5 : 1 — «ЦУ» у нижнего края, целиком */
  .winners .ul-fu_002-2 { --h: 52%; --r: 5%; --b: 6%; }               /* знак над надписью, 1,2 : 1 — надпись целиком */
  .winners .ul-mip_002-2 { --h: 60%; --r: -7%; --b: -10%; }           /* знак, 1 : 1 */
  .winners .ul-mfti-2 { --h: 26%; --r: 5%; --b: 7%; }                 /* только надпись, 3,3 : 1 — целиком */
  .winners .ul-mirea-2 { --h: 52%; --r: 1%; --b: -3%; }               /* круг с надписью, 1,4 : 1 — надпись целиком */
  .winners .ul-mgtu-2 { --h: 60%; --r: -6%; --b: -12%; }              /* герб, 1 : 1 (с полями в файле) */
  .winners .ul-mtusi_emblem { --h: 42%; --r: 28%; --b: -4%; }         /* второй вуз карточки: только эмблема, вровень с гербом МГТУ */
  .winners-full { grid-template-columns: repeat(3, 1fr); }
  .more { margin-top: 28px; }

  /* faq */
  /* faq: слева — пояснение и кнопка (липкие), справа — одна стеклянная панель со списком; высоту анимирует faq.js */
  .faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 48px; align-items: start; margin-top: 28px; }
  .faq-aside { position: sticky; top: 112px; display: grid; justify-items: start; gap: 20px; }
  .faq-aside .sub { margin: 0; }
  .faq { --c-rgb: var(--lime-rgb); padding: 6px 0; }
  .faq details + details { border-top: 1px solid rgba(255, 255, 255, .08); }
  .faq summary { cursor: pointer; padding: 20px 26px; font-weight: 600; list-style: none; display: grid; grid-template-columns: 2.2em minmax(0, 1fr) auto; align-items: baseline; gap: 12px; transition: color .2s var(--ease); }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: "+"; font-family: var(--font-data); color: var(--lime); font-size: 1.3rem; line-height: 1; transition: transform .3s var(--ease); }
  @media (hover: hover) { .faq summary:hover .q { color: var(--lime); } } /* на телефоне подсветка «залипала» после тапа */
  .faq summary:focus-visible { outline: 2px solid var(--lime); outline-offset: -4px; border-radius: 12px; }
  .faq .n { font-family: var(--font-data); font-size: .78rem; color: var(--fg-dim); font-variant-numeric: tabular-nums; transition: color .2s var(--ease); }
  .faq details[open]:not(.closing) .n { color: var(--lime); }
  .faq details[open]:not(.closing) summary::after { transform: rotate(45deg); }
  /* отступы — у вложенного блока: высота .answer должна доходить до нуля, иначе в конце сворачивания — скачок на величину padding */
  .faq .answer { overflow: hidden; }
  .faq .answer-in { padding: 0 26px 22px calc(26px + 2.2em + 12px); color: var(--fg-dim); max-width: calc(65ch + 26px + 2.2em + 12px); }

  /* политика ПД: длинный заголовок — мельче обычного h1, текст ближе к шапке */
  .policy-head .h1 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); line-height: 1.02; }
  .policy-head .sub { margin-bottom: 0; }
  .sec.policy-head { padding-bottom: 0; }
  .policy-head + .sec { padding-top: 32px; }

  /* ошибки */
  .error-main { min-height: 100vh; display: grid; place-items: center; padding-block: 120px 60px; text-align: left; }

  @media (prefers-reduced-motion: reduce) { .hero .fog, .nom .gem, .timer .pulse::after, .digits .colon::before, .digits .colon::after { animation: none; } }
  @media (max-width: 1100px) { .winners, .winners-full { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 900px) {
    .hero { min-height: 0; padding-block: 104px 56px; } /* шапка фиксирована и занимает 70 px: меньший отступ прятал надпись под ней */
    .hero-gl { opacity: 0; } .hero-gl.ready { opacity: .42; }
    .hero-grid, .noms, .ptable, .steps, .faq-layout { grid-template-columns: 1fr; }
    .faq-aside { position: static; }
    .nom { min-height: 0; }
    .nom .nom-gl { width: 96px; height: 96px; right: 6px; top: 6px; }
    .sec { padding-block: 60px; }
    .page-head { padding-top: 104px; } /* шапка фиксирована и занимает ~70 px */
    .sec[id], .hero[id] { scroll-margin-top: 84px; }
    .res-stats { grid-template-columns: repeat(2, 1fr); justify-content: start; }
    .timer-head time { margin-left: 0; flex-basis: 100%; }
    .digits { gap: 4px; } .digits .cell { padding: 12px 4px 10px; border-radius: 12px; }
  }
  @media (max-width: 640px) {
    .winners, .winners-full { grid-template-columns: 1fr; } .plogo-text { font-size: 1.05rem; }
    .faq summary { padding: 18px 18px; grid-template-columns: minmax(0, 1fr) auto; }
    .faq .n { display: none; }
    .faq .answer-in { padding: 0 18px 20px; }
  }
}

@layer components {
  /* страницы входа/регистрации */
  .auth { position: relative; padding-bottom: 80px; }
  .auth-card { position: relative; z-index: 1; padding: 36px; max-width: 720px; }
  .auth-card .h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
  /* кнопки форм входа/регистрации — одной высоты (обе .btn-lg), основная не короче соседней; на телефоне — столбиком во всю ширину */
  .auth-card .form-actions { gap: 12px; margin-top: 12px; }
  .auth-card .form-actions .btn-primary { min-width: 180px; }
  .auth-card > :last-child { margin-bottom: 0; }
  @media (max-width: 640px) { .auth-card { padding: 22px 18px; } }
  @media (max-width: 479px) { .auth-card .form-actions { flex-direction: column; align-items: stretch; } }
}

/* Плашка о сбое хостинга 2026-11-02 (partials/incident-banner.njk): стоит над первым блоком страницы — шапка фиксирована,
   поэтому отступ сверху берёт на себя плашка, а hero/page-head под ней его уменьшают */
@layer components {
  .incident { position: relative; z-index: 2; padding-top: 96px; }
  .incident-box { display: flex; align-items: baseline; gap: 10px; width: fit-content; max-width: 100%; margin: 0; padding: 9px 16px;
    border-radius: 12px; border: 1px solid rgba(255, 200, 29, .28); background: rgba(255, 200, 29, .06);
    color: var(--paper-dim); font-size: .86rem; line-height: 1.45; }
  .incident-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); transform: translateY(-1px); }
  .incident-box b { color: var(--paper); font-weight: 600; }
  .incident-box a { color: var(--warn); text-decoration: underline; text-underline-offset: 3px; }
  .incident ~ .hero, .incident ~ .page-head { padding-top: 32px; }
  @media (max-width: 900px) {
    .incident { padding-top: 82px; }
    .incident-box { padding: 8px 12px; font-size: .82rem; }
    .incident ~ .hero, .incident ~ .page-head { padding-top: 22px; }
  }
}
