/* sections.css: секции главной страницы. Каждая секция это цветной блок; ритм: беж, зелёный | чёрный, песок, беж, зелёный, чёрный. */

/* ---------- Цветные блоки: меняют локальные переменные, компоненты подхватывают сами ---------- */
.block--green, .block--ink, .block--sand { background: var(--bg); color: var(--ink); }
.block--green { --bg: #4A5942; --ink: #EEE8E2; --ink-2: #D2CBBB; --surface: rgba(238,232,226,.1); --line: rgba(238,232,226,.28); --accent: #BAAC80; --on-accent: #202020; --accent-ink: #E2D9D2; --focus: #E2D9D2; }
.block--ink   { --bg: #202020; --ink: #E2D9D2; --ink-2: #B5AEA7; --surface: rgba(226,217,210,.08); --line: rgba(226,217,210,.22); --accent: #BAAC80; --on-accent: #202020; --accent-ink: #BAAC80; --focus: #BAAC80; }
.block--sand  { --bg: #BAAC80; --ink: #202020; --ink-2: #33301F; --surface: rgba(32,32,32,.08); --line: rgba(32,32,32,.3); --accent: #202020; --on-accent: #EFE9E4; --accent-ink: #202020; --focus: #202020; }
.block { position: relative; overflow: clip; }

/* Лучи как фирменный мотив (рисуются в modes.js: [data-halo]) */
.halo { position: absolute; pointer-events: none; aspect-ratio: 1; }
.halo svg { width: 100%; height: 100%; }
.halo--spin { animation: spin 120s linear infinite; }

/* Copyright notice, after the rotation panel. */
.rights-notice { padding-block: 22px; margin-bottom: var(--stack); }
.rights-notice__inner { display: flex; align-items: flex-start; gap: 18px; }
.rights-notice__mark { flex-shrink: 0; font: 400 30px/1.3 var(--font-body); }
.rights-notice h2 { margin-bottom: 5px; font: 600 23px/1.4 var(--font-body); letter-spacing: normal; text-wrap: pretty; }
.rights-notice p { max-width: 790px; font: 400 18px/1.5 var(--font-body); }
@media (max-width: 600px) {
  .rights-notice { padding-block: 18px; }
  .rights-notice h2 { font-size: 20px; }
  .rights-notice p { font-size: 17px; }
}

/* ---------- Hero ---------- */
.hero { margin-top: calc(var(--nav-h) * -1); padding-block: calc(40px + var(--nav-h)) 72px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(32px, 6vw, 88px); align-items: center;
  min-height: min(740px, calc(100dvh - var(--nav-h) - 40px)); position: relative; }
.hero h1 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem); line-height: 1.1; font-weight: 600; letter-spacing: -.012em; }
.lead { margin-top: var(--stack); font-size: 1.375rem; line-height: 1.45; color: var(--ink); max-width: 30em; }
.lead > span { display: block; }
.hero__description { margin-top: calc(var(--stack) / 2); }
.beta-form { margin-top: var(--stack); max-width: 580px; }
.beta-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.beta-form__row--end { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.formats.hero__formats { margin-top: var(--stack); }
.hero__visual { position: relative; display: grid; justify-items: center; align-items: center; }
.hero__visual .phone { --phone-w: 296px; position: relative; z-index: 1; }
.hero.block { overflow: visible; overflow-x: clip; }
.hero > .halo { --w: min(1380px, 115vw); width: var(--w); left: 50%; top: 45%; margin: calc(var(--w) / -2) 0 0 calc(var(--w) / -2); color: var(--brand-sand); opacity: .14; }
.hero__copy { position: relative; z-index: 1; }

/* Выделение слова: жирнее и с толстой цветной чертой снизу */
.marker { font-style: normal; font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--underline); text-decoration-thickness: .16em; text-underline-offset: .18em; text-decoration-skip-ink: none; }

/* Маленький ряд форматов внутри колонки формы */
.formats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.formats li { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; font-size: .875rem; color: var(--ink-2); }
.formats .icon { width: 18px; height: 18px; color: var(--accent-ink); }

@media (max-width: 860px) {
  .hero { padding-block: calc(24px + var(--nav-h)) 56px; }
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__visual { order: 2; padding-top: 24px; }
  .hero__visual .phone { --phone-w: 260px; }
  .hero > .halo { --w: 1000px; left: 50%; top: 80%; }
  .beta-form .btn { width: 100%; }
  .beta-form__row { grid-template-columns: 1fr; }
  .beta-form__row--end { align-items: stretch; }
}

/* ---------- Что слушать: зелёный | чёрный, на всю ширину ---------- */
.modes { --phone-w: clamp(236px, 22vw, 288px); color: #E2D9D2; padding-block: var(--section-y);
  background: linear-gradient(90deg, #4A5942 50%, #202020 50%); }
.modes__head { display: grid; justify-items: center; gap: 28px; text-align: center; margin-bottom: 56px; }
.modes__head h2 { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem); line-height: 1.15; max-width: 18em; }

.switch-row { display: flex; align-items: center; gap: 18px; font-weight: 500; }
.switch-row .l, .switch-row .r { opacity: .55; transition: opacity .3s; min-width: 7.5em; }
.switch-row .l { text-align: right; }
.modes[data-mode="full"] .switch-row .l, .modes[data-mode="music"] .switch-row .r { opacity: 1; }
.switch { position: relative; width: 104px; height: 52px; padding: 0; border: 0; border-radius: var(--r-pill); background: #E2D9D2; color: #202020; transition: transform .25s var(--ease); }
.switch:hover { transform: scale(1.03); }
.switch:active { transform: scale(.98); }
.switch:focus-visible { outline: 3px solid #BAAC80; outline-offset: 4px; }
.switch__icon { position: absolute; top: 50%; width: 22px; height: 22px; margin-top: -11px; opacity: .55; }
.switch__icon--l { left: 15px; } .switch__icon--r { right: 15px; }
.switch__knob { position: absolute; top: 5px; left: 5px; width: 42px; height: 42px; border-radius: 50%; background: #202020; color: #E2D9D2;
  display: grid; place-items: center; transition: transform .45s var(--ease); }
.switch__knob .icon { grid-area: 1 / 1; width: 22px; height: 22px; transition: opacity .3s; }
.switch__knob .icon--music { opacity: 0; }
.modes[data-mode="music"] .switch__knob { transform: translateX(52px); }
.modes[data-mode="music"] .switch__knob .icon--full { opacity: 0; }
.modes[data-mode="music"] .switch__knob .icon--music { opacity: 1; }

.modes__stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.mode { display: flex; align-items: center; gap: clamp(24px, 3vw, 44px); padding-inline: clamp(16px, 3vw, 48px); }
.mode--full  { justify-content: flex-end; }
.mode--music { justify-content: flex-start; }
.mode__preview { position: relative; flex: 0 0 auto; }
/* Keep decorative preview text outside the named mode-selection button. */
.mode__phone { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; display: block; padding: 0; margin: 0; border: 0; background: none; border-radius: 46px; }
.mode__phone:focus-visible { outline: 3px solid var(--brand-sand); outline-offset: 4px; }
.mode--full  { --dim: rgba(74, 89, 66, .62); }
.mode--music { --dim: rgba(32, 32, 32, .62); }
.mode:not(.is-active) .phone::after { opacity: 1; }
.mode:not(.is-active) .mode__preview:hover .phone::after { opacity: .55; }

.plates { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; width: clamp(190px, 17vw, 236px); transition: opacity .5s var(--ease); }
.plate { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border-radius: 20px; font-weight: 500; font-size: 1.0625rem; line-height: 1.25;
  color: var(--brand-light); background: rgba(226,217,210,.1); box-shadow: inset 0 0 0 1px rgba(226,217,210,.2); }
.plate .icon { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: #E2D9D2; color: #202020; }
.mode--music .plate .icon { background: #BAAC80; }
.plate--main { padding: 16px 22px 16px 16px; font-size: 1.375rem; font-family: var(--font-display); font-weight: 500; background: #BAAC80; color: #202020; box-shadow: none; }
.plate--main .icon { width: 52px; height: 52px; padding: 12px; background: #202020 !important; color: #E2D9D2; }
.plates--music { width: clamp(220px, 21vw, 300px); gap: 14px; }
.plates__sub { list-style: none; }
.plates__sub ul { list-style: none; margin: 0; padding: 0 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px 6px 9px; border-radius: 999px; font-size: .9375rem; font-weight: 500; background: rgba(226,217,210,.1); box-shadow: inset 0 0 0 1px rgba(226,217,210,.2); }
.chip .icon { width: 18px; height: 18px; color: #BAAC80; }
.mode.is-active .plates__sub, .mode.is-active .plate { animation: plate-in .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes plate-in { from { opacity: 0; transform: translateX(var(--from, 14px)); } to { opacity: 1; transform: none; } }
.mode--full .plate { --from: -14px; }

@media (max-width: 1039px) {
  .modes, .modes[data-mode="full"] { background: #4A5942; }
  .modes[data-mode="music"] { background: #202020; }
  .modes__head { margin-bottom: 36px; }
  .modes__stage { grid-template-columns: 1fr; }
  .mode { flex-direction: column; justify-content: center; gap: 28px; padding-inline: 0; }
  .mode--music .plates { order: 2; }
  .modes[data-mode="full"] .mode--music, .modes[data-mode="music"] .mode--full { display: none; }
  .plates { width: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
  .mode:not(.is-active) .plates, .mode:not(.is-active) .phone::after { opacity: 1; }
  .mode:not(.is-active) .phone::after { opacity: 0; }
  .plates__sub { width: 100%; } .plates__sub ul { justify-content: center; padding: 0; }
  .switch-row .l, .switch-row .r { min-width: 0; }
  .switch-row .l { min-width: 3em; }
}
.modes.is-paused .ray i, .modes.is-paused .ring__spin, .modes.is-paused .ring__core, .modes.is-paused .ring__core b { animation-play-state: paused; }

/* ---------- Миссия (песок) ---------- */
.mission { padding-block: var(--section-y); }
.mission__inner { position: relative; z-index: 1; display: grid; gap: 56px; }
.mission h2, .partners h2 { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem); line-height: 1.15; }
.mission__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px clamp(28px, 4vw, 64px); }
.mission__cols > div { padding-top: 24px; border-top: 2px solid var(--ink); }
.mission__cols h3 { font-size: 1.25rem; font-weight: 500; }
.mission__cols p { margin-top: 14px; font-size: 1.1875rem; line-height: 1.45; color: var(--ink-2); }
.mission .halo { width: 640px; right: -240px; top: 50%; margin-top: -320px; color: #202020; opacity: .12; }
@media (max-width: 860px) { .mission__cols { grid-template-columns: 1fr; } }

/* ---------- Партнёры ---------- */
.partners { padding-block: var(--section-y) 48px; }
.partners__grid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 80px; height: 100%; padding: 12px; border-radius: 20px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s; }
.tile:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 40%, transparent); }
.tile[aria-disabled="true"] { cursor: default; }
.tile--brand { background: var(--brand-green); color: var(--brand-beige); }
.partner-mark { display: flex; flex: 1; min-width: 0; align-items: center; justify-content: center; }
.partner-link-icon { width: 16px; height: 16px; flex: 0 0 16px; }
.partner-logo { width: 160px; max-width: 100%; height: auto; }
.partner-logo--plyn { width: 108px; }
.tile--cta { position: relative; justify-content: center; background: var(--accent); color: var(--on-accent); box-shadow: none; font-weight: 600; font-size: .875rem; text-align: center; }
.tile--cta > span:not(.icon) { max-width: calc(100% - 40px); }
.tile--cta .icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 1rem; height: 1rem; }
.tile--cta:hover { box-shadow: none; }
@media (max-width: 760px) {
  .partners__grid { grid-template-columns: 1fr; width: calc(100% - 24px); max-width: 240px; margin: 20px auto 0; gap: 10px; }
  .tile { min-height: 56px; padding: 10px 16px; border-radius: 16px; }
  .tile--brand { padding-block: 6px; }
  .partner-logo--plyn { width: 88px; }
}

/* ---------- Форма для авторов и связи (зелёный блок, светлая карточка) ---------- */
.contribute { padding-block: var(--section-y); }
.contribute__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.contribute__copy { display: grid; gap: 22px; position: sticky; top: calc(var(--nav-h) + 32px); }
.contribute h2 { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem); line-height: 1.15; }
.contribute__copy p { color: var(--ink-2); font-size: 1.25rem; line-height: 1.45; }
.card-form { --bg: #E2D9D2; --surface: #EFE9E4; --ink: #202020; --ink-2: #514E4B; --line: rgba(32,32,32,.2); --accent: #4A5942; --on-accent: #EEE8E2; --accent-ink: #3B4835; --focus: #4A5942;
  background: #EFE9E4; color: var(--ink); border-radius: var(--r-surface); padding: clamp(22px, 4vw, 40px); }
.card-form .input { background: var(--bg); }
.card-form__two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.card-form__note { font-size: .875rem; color: var(--ink-2); flex: 1 1 220px; }
.card-form__note a { color: inherit; }
@media (max-width: 860px) {
  .contribute__grid { grid-template-columns: 1fr; }
  .contribute__copy { position: static; }
  .card-form__two { grid-template-columns: 1fr; }
  .card-form__foot .btn { width: 100%; }
}

/* ---------- Палітыка ---------- */
.support__inner { display: grid; gap: 24px; max-width: 640px; }
.support h1 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3rem); line-height: 1.1; font-weight: 600; }
.support p { font-size: 1.25rem; line-height: 1.5; color: var(--ink-2); }
.support .btn { justify-self: start; }
.support__soon { font-size: 1.125rem !important; }
.doc { max-width: 720px; display: grid; gap: 18px; }
.doc h1 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3rem); line-height: 1.1; font-weight: 600; }
.doc h2 { font-size: 1.25rem; margin-top: 18px; }
.doc p, .doc li { font-size: 1.125rem; line-height: 1.55; color: var(--ink-2); }
.doc ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.doc a:not(.btn) { color: var(--ink); }
.doc__draft { padding: 14px 18px; border-radius: var(--r-field); background: var(--marker); color: var(--ink) !important; font-size: 1rem !important; }

/* Несколько ссылок */
.links { display: grid; gap: 10px; }
.link-row { display: flex; gap: 10px; align-items: center; }
.link-row .input { flex: 1 1 auto; min-width: 0; }
.link-btn { flex: 0 0 auto; display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-field); border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); transition: background-color .2s, color .2s; }
.link-btn:hover { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.link-btn .icon { width: 22px; height: 22px; }
.flink { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); text-decoration: none; transition: background-color .25s, color .25s; }
.flink:hover { background: var(--ink); color: var(--bg); }
.flink .icon { width: 22px; height: 22px; }

/* ---------- Страницы форм: сообщение из бэты, анкета, памятка ---------- */
.page-form { padding-block: 48px var(--section-y); }
.page-form__wrap { max-width: 760px; display: grid; gap: 32px; }
.page-form__head { display: grid; gap: 14px; }
.page-form__head h1 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3rem); line-height: 1.1; font-weight: 600; }
.page-form__head p { font-size: 1.25rem; line-height: 1.5; color: var(--ink-2); max-width: 30em; }
.page-form .card-form { box-shadow: inset 0 0 0 1px var(--line); --form-gap: 24px; }
.page-form textarea.input { min-height: 96px; }
.scale { flex-wrap: nowrap; gap: 6px; }
.scale .pill { flex: 1 1 0; min-width: 0; }
.scale .pill span { width: 100%; justify-content: center; padding: 0; min-width: 0; }
.scale__ends { display: flex; justify-content: space-between; font-size: .875rem; color: var(--ink-2); }
@media (max-width: 520px) { .scale { gap: 4px; } .scale .pill span { min-height: 40px; font-size: .9375rem; } }
