/* Концепт главной СПР — «Перекличка». Цвета и шрифты — из брендбука сайта (apps/frontend/app/globals.css). */
:root {
  --paper: #FCFAF5;
  --paper-2: #F3EEE4;
  --ink: #1D1B1B;
  --ink-2: #5E5751;
  --rule: #E3DACC;
  --brand: #4E0000;
  --brand-2: #8A1C1C;
  --gold: #C59566;
  --night: #15100F;
  --night-2: #231A18;
  --night-line: #3B302C;
  --night-ink: #F3ECE2;
  --night-ink-2: #B3A89B;
  --f-sans: Geologica, system-ui, sans-serif;
  --f-serif: Georgia, "Times New Roman", serif;
  --f-small: Roboto, system-ui, sans-serif;
  --f-nav: "Golos Text", system-ui, sans-serif;
  --pad: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --hdr: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.6 var(--f-sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--paper); border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); }

/* — кнопки — */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; height: 52px; padding: 0 26px; border-radius: 12px;
  background: var(--ink); color: var(--paper); font: 500 16px/1 var(--f-sans); transition: background .25s; }
.btn:hover { background: var(--brand); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px #CFC4B3; }
.btn--ghost:hover { background: var(--paper-2); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* — шапка — */
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.hdr.is-solid { background: var(--paper); box-shadow: 0 1px 0 var(--rule); }
.hdr__in { display: flex; align-items: center; gap: 24px; height: var(--hdr); }
.hdr__logo { display: flex; align-items: center; gap: 12px; font: 600 15px/1.15 var(--f-sans); }
.hdr__logo img { width: 44px; height: 44px; }
.hdr__nav { display: flex; gap: 28px; margin-left: auto; font: 500 15px/1 var(--f-nav); }
.hdr__nav a { position: relative; padding: 8px 0; }
.hdr__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.hdr__nav a:hover::after { transform: scaleX(1); }
.hdr__navjoin { display: none; }
.hdr__act { display: flex; align-items: center; gap: 10px; }
.hdr__menu { display: none; height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; box-shadow: inset 0 0 0 1px #CFC4B3; color: var(--ink); font: 500 15px var(--f-nav); cursor: pointer; }
@media (max-width: 1060px) {
  .hdr__nav { display: none; position: fixed; inset: var(--hdr) 0 auto 0; flex-direction: column; gap: 0; padding: 8px var(--pad) 24px; background: var(--paper); box-shadow: 0 1px 0 var(--rule); font-size: 20px; }
  .hdr__nav.is-open { display: flex; }
  .hdr__nav a { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .hdr__nav a::after { display: none; }
  .hdr__navjoin { display: block; }
  .hdr__login { display: none; }
  .hdr__menu { display: inline-flex; align-items: center; }
  .hdr__act { margin-left: auto; }
}
@media (max-width: 440px) { .hdr__logo span { display: none; } }

/* — герой «Перекличка» — */
.hero { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--hdr) + 28px) 0 48px; }
.hero__in { display: flex; flex-direction: column; align-items: center; width: 100%; text-align: center; }
.eyebrow { margin: 0 0 10px; font: italic 400 17px/1.4 var(--f-serif); color: var(--ink-2); }
.hero__word { position: relative; width: 100%; height: clamp(140px, 36vh, 400px); }
@media (max-width: 639px) { .hero__word { height: min(78vw, 40vh); } }
.hero__word canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
@media (hover: hover) and (pointer: fine) { .hero__word canvas { cursor: none; } }
.hero__fallback { display: none; font: 900 clamp(64px, 12vw, 96px)/1 var(--f-sans); letter-spacing: -0.02em; text-transform: uppercase; }
.no-js .hero__word, .calligram-off .hero__word { height: auto; }
.no-js .hero__fallback, .calligram-off .hero__fallback { display: block; }
.no-js .hero__word canvas, .calligram-off .hero__word canvas { display: none; }
.hero__title { margin: clamp(4px, 1.2vh, 16px) 0 0; font: 560 clamp(38px, 5.6vw, 80px)/1.04 var(--f-sans); letter-spacing: -0.02em; }
.hero__lede { max-width: 38em; margin: 18px auto 28px; color: var(--ink-2); font-size: clamp(17px, 1.35vw, 20px); text-wrap: pretty; }
.hero .cta { justify-content: center; }
.hero__note { margin: 26px 0 0; font: 400 13px/1.5 var(--f-small); color: var(--ink-2); }
.js.motion .hero__eyebrow, .js.motion .hero__title, .js.motion .hero__lede, .js.motion .hero .cta, .js.motion .hero__note {
  opacity: 0; transform: translateY(14px); animation: failsafe .6s ease 6s forwards;
}
@keyframes failsafe { to { opacity: 1; transform: none; } }

/* — общие заголовки секций — */
.calls, .faces, .afisha, .news, .projects, .join, .map { padding: clamp(72px, 10vw, 140px) 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26em); gap: 14px 48px; align-items: end; margin-bottom: clamp(32px, 5vw, 60px); }
.sec-head h2 { margin: 0; font: 620 clamp(32px, 4.4vw, 60px)/1.05 var(--f-sans); letter-spacing: -0.02em; }
.sec-head p { margin: 0; color: var(--ink-2); }
@media (max-width: 800px) { .sec-head { grid-template-columns: 1fr; } }
.sec-more { margin: 32px 0 0; font: 500 16px var(--f-sans); }
.sec-more a { padding-bottom: 2px; border-bottom: 1px solid currentColor; }
.split-line { padding-bottom: .06em; }

/* — открытый приём: карточки со штемпелем — */
.calls__grid { display: grid; grid-template-columns: 1.15fr 1.15fr .9fr; gap: 24px; }
.call { position: relative; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--rule); }
.call__link { display: flex; flex-direction: column; height: 100%; border-radius: 16px; }
.call__img { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 16px 16px 0 0; background: var(--paper-2); }
.call__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.call:hover .call__img img { transform: scale(1.03); }
.call__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 22px 24px 26px; }
.call__org { margin: 0; font: 400 13px/1.4 var(--f-small); color: var(--ink-2); }
.call__title { margin: 0; font: 600 24px/1.2 var(--f-sans); letter-spacing: -0.01em; }
.call__when { margin: 0; color: var(--brand); font: 500 16px/1.45 var(--f-sans); }
.call__left { color: var(--ink-2); font-weight: 400; }
.call__text { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.call__go { margin-top: auto; padding-top: 6px; font-weight: 600; }
.call--plays { background: var(--paper-2); box-shadow: none; }
.call--plays .call__body { justify-content: flex-end; padding-top: 168px; }
.stamp { position: absolute; top: -20px; right: -14px; width: 136px; height: 136px; color: var(--brand-2); transform: rotate(-12deg); opacity: .92; mix-blend-mode: multiply; pointer-events: none; }
.call--plays .stamp { top: 22px; right: auto; left: 22px; transform: rotate(-7deg); }
.stamp text { fill: currentColor; font-family: var(--f-sans); }
.stamp__ring { font-size: 10.4px; font-weight: 600; letter-spacing: .06em; }
.stamp__top, .stamp__bot { font-size: 12px; font-weight: 600; letter-spacing: .12em; }
.stamp__mid { font-size: 27px; font-weight: 800; }
@media (max-width: 1060px) { .calls__grid { grid-template-columns: 1fr 1fr; } .call--plays { grid-column: 1 / -1; } .call--plays .call__body { padding-top: 26px; padding-left: 190px; min-height: 190px; } }
@media (max-width: 680px) { .calls__grid { grid-template-columns: 1fr; } .stamp { width: 112px; height: 112px; top: -14px; right: -6px; } .call--plays .call__body { padding: 150px 24px 26px; } .call--plays .stamp { top: 18px; left: 18px; } }

/* — карта Союза (ночь) — */
.map { background: var(--night); color: var(--night-ink); }
.map .sec-head p { color: var(--night-ink-2); }
.map :focus-visible { outline-color: var(--gold); }
.map__stage { position: relative; }
.map__svg { display: block; width: 100%; height: auto; overflow: visible; }
.map__svg .rg { fill: #231B19; stroke: #4A3C37; stroke-width: .7; vector-effect: non-scaling-stroke; transition: fill .8s; }
.map__svg .rg.is-on { fill: #36281F; }
.dot { cursor: pointer; outline: none; }
.dot__core { fill: var(--gold); }
.dot__halo { fill: var(--gold); opacity: .22; }
.dot:hover .dot__core, .dot.is-active .dot__core, .dot:focus-visible .dot__core { fill: #F1D9B0; }
.dot:focus-visible .dot__halo { opacity: .6; }
.ring text { fill: var(--night-ink); opacity: .8; font: 400 8.6px var(--f-small); letter-spacing: .02em; }
.map__card { position: absolute; z-index: 2; width: max-content; max-width: min(300px, 80vw); padding: 14px 16px 16px; border-radius: 12px; background: var(--night-2); color: var(--night-ink); box-shadow: 0 0 0 1px var(--night-line); }
.map__card h3 { margin: 0 0 6px; font: 600 18px/1.25 var(--f-sans); }
.map__card p { margin: 0; color: var(--night-ink-2); font: 400 13px/1.55 var(--f-small); }
.map__card a { display: inline-block; margin-top: 10px; color: var(--gold); font: 500 14px var(--f-sans); }
.map__more { margin: 28px 0 0; font: 500 16px var(--f-sans); }
.map__more a { color: var(--gold); padding-bottom: 2px; border-bottom: 1px solid currentColor; }

/* — лица — */
.faces__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin: 0; padding: 0; list-style: none; }
.face__img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 12px; background: var(--paper-2); }
.face__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) sepia(.18) contrast(1.06); transition: filter .5s, transform .9s var(--ease); }
.face a:hover .face__img img, .face a:focus-visible .face__img img { filter: none; transform: scale(1.03); }
.face figcaption { display: flex; flex-direction: column; gap: 2px; padding-top: 12px; }
.face__name { font: 600 18px/1.3 var(--f-sans); }
.face__meta { color: var(--ink-2); font: 400 13px/1.45 var(--f-small); }
@media (max-width: 1060px) { .faces__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .faces__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* — цитата — */
.quote { padding: clamp(84px, 12vw, 176px) 0; background: var(--paper-2); }
.quote__in { max-width: 980px; text-align: center; }
.quote blockquote { margin: 0; font: italic 400 clamp(26px, 3.3vw, 44px)/1.3 var(--f-serif); text-wrap: balance; }
.quote figcaption { margin-top: 24px; color: var(--ink-2); font: 500 16px var(--f-sans); }
.quote figcaption::before { content: "— "; }
.quote__next { margin-top: 22px; padding: 8px; border: 0; background: none; color: var(--brand); font: 500 15px var(--f-sans); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* — афиша — */
.bill { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.bill__row a { display: grid; grid-template-columns: 170px minmax(0, 1fr) minmax(0, 22em); gap: 24px; align-items: center; padding: 22px 10px; border-bottom: 1px solid var(--rule); transition: background .25s; }
.bill__row a:hover { background: var(--paper-2); }
.bill__date { display: flex; align-items: center; gap: 12px; }
.bill__date b { min-width: 1.3em; font: 600 44px/1 var(--f-sans); font-variant-numeric: tabular-nums; }
.bill__date span { color: var(--ink-2); font: 400 13px/1.35 var(--f-small); }
.bill__title { font: 500 21px/1.3 var(--f-sans); }
.bill__place { color: var(--ink-2); font: 400 14px/1.45 var(--f-small); }
@media (max-width: 800px) { .bill__row a { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 18px 4px; } .bill__date b { font-size: 30px; } .bill__date span br { display: none; } .bill__title { font-size: 18px; } }

/* — новости — */
.news__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.card__img { aspect-ratio: 3 / 2; overflow: hidden; margin-bottom: 14px; border-radius: 12px; background: var(--paper-2); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card a:hover .card__img img { transform: scale(1.03); }
.card time { color: var(--ink-2); font: 400 13px var(--f-small); }
.card h3 { margin: 6px 0 0; font: 500 18px/1.35 var(--f-sans); }
@media (max-width: 1060px) { .news__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .news__grid { grid-template-columns: 1fr; } }

/* — проекты: указатель — */
.index { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.index__row a { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 32px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.index__title { font: 560 clamp(22px, 2.4vw, 34px)/1.2 var(--f-sans); letter-spacing: -0.01em; transition: transform .45s var(--ease), color .3s; }
.index__row a:hover .index__title, .index__row a:focus-visible .index__title { color: var(--brand); transform: translateX(10px); }
.index__sub { color: var(--ink-2); font: 400 15px/1.5 var(--f-small); }
.index__thumb { display: none; }
.index__float { position: fixed; left: 0; top: 0; z-index: 30; width: 320px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; opacity: 0; pointer-events: none; }
.index__float img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (max-width: 800px) {
  .index__row a { grid-template-columns: 96px minmax(0, 1fr); gap: 4px 16px; align-items: center; padding: 18px 0; }
  .index__thumb { display: block; grid-row: span 2; width: 96px; height: 72px; object-fit: cover; border-radius: 8px; }
  .index__sub { grid-column: 2; }
  .index__float { display: none; }
}

/* — финал: следующая строка — */
.join__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.join h2 { margin: 0 0 20px; font: 620 clamp(34px, 4.6vw, 64px)/1.05 var(--f-sans); letter-spacing: -0.02em; }
.join h2 em { color: var(--brand); font-style: oblique 12deg; font-variation-settings: "CRSV" 1; }
.join p { max-width: 34em; margin: 0 0 28px; color: var(--ink-2); }
.join__sheet { position: relative; height: clamp(360px, 44vw, 540px); overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--rule); }
.roll__wrap { position: absolute; inset: 0 36px 84px; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 82%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 82%, transparent); }
.roll { margin: 0; padding: 0; list-style: none; font: italic 400 22px/40px var(--f-serif); background: repeating-linear-gradient(to bottom, transparent 0 39px, var(--rule) 39px 40px); }
.motion .roll { animation: roll 180s linear infinite; }
@keyframes roll { to { transform: translateY(-50%); } }
.roll__you { position: absolute; left: 36px; right: 36px; bottom: 22px; display: flex; align-items: center; height: 44px; margin: 0; border-bottom: 2px solid var(--brand-2); color: #9C9188; font: italic 400 24px/44px var(--f-serif); }
.roll__caret { width: 2px; height: 28px; margin-left: 3px; background: var(--brand-2); animation: caret 1.05s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
@media (max-width: 860px) { .join__in { grid-template-columns: 1fr; } .join__sheet { height: 340px; } }

/* — подвал — */
.ftr { padding: 56px 0 36px; background: var(--paper-2); border-top: 1px solid var(--rule); }
.ftr__in { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.ftr__brand { display: flex; align-items: center; gap: 14px; }
.ftr__brand p { margin: 0; font: 600 16px/1.3 var(--f-sans); }
.ftr__brand span { display: block; margin-top: 4px; color: var(--ink-2); font: 400 13px var(--f-small); }
.ftr__nav { display: flex; flex-direction: column; gap: 10px; font: 400 15px var(--f-nav); }
.ftr__nav a:hover { color: var(--brand); }
.ftr__meta { grid-column: 1 / -1; margin: 20px 0 0; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--ink-2); font: 400 13px var(--f-small); }
@media (max-width: 760px) { .ftr__in { grid-template-columns: 1fr 1fr; } .ftr__brand { grid-column: 1 / -1; } }

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