/* =========================================================================
   Brew Battle by säwir — одностраничный сайт, телефон в первую очередь.
   Подача премиальной продуктовой страницы: белый фон, текст по центру,
   один предмет в студийном свете, который едет за прокруткой.
   Шрифт системный: на iPhone и Mac это SF, на остальных Helvetica / Arial.
   ========================================================================= */
:root {
  --pad: clamp(20px, 5.6vw, 40px);
  --nav: 48px;
  --ink: #1D1D1F;
  --muted: #6E6E73;
  --line: #D2D2D7;
  --tint: #F5F5F7;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter Display", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: #FFFFFF; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav); }
body { margin: 0; color: var(--ink); font: 400 17px/1.4 var(--sans); letter-spacing: -.01em; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ol, dl, dd { margin: 0; }
ol { padding: 0; list-style: none; }

/* ---------- верхняя строка: липкая, полупрозрачная ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  height: var(--nav); padding: 0 var(--pad); padding-top: env(safe-area-inset-top);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255, 255, 255, .74);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  font-size: 13px;
}
.nav img { height: 15px; width: auto; display: block; }        /* фирменный знак säwir без изменений */
.nav a { color: var(--ink); text-decoration: none; }

/* ---------- предмет: один на всю страницу, закреплён на экране ---------- */
#stage { position: fixed; left: 0; top: 0; z-index: 0; pointer-events: none; width: 450px; height: 600px; transform-origin: 0 0; will-change: transform, opacity; mix-blend-mode: multiply; }   /* белое поле кадра растворяется в белой странице */
#stage canvas { display: block; width: 100%; height: 100%; }

/* ---------- общий каркас ---------- */
main { position: relative; }                     /* без z-index: фоны блоков уходят под предмет, текст остаётся над ним */
.block { position: relative; min-height: calc(100vh - var(--nav)); min-height: calc(100svh - var(--nav)); padding: 56px var(--pad) 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.block > * { position: relative; z-index: 1; }
.block::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #FFFFFF; }
.slot { z-index: 0 !important; }                 /* место, где в этом блоке стоит предмет */

h2 { font: 600 40px/1.07 var(--sans); letter-spacing: -.028em; text-wrap: balance; }
.body { margin-top: 14px; font-size: 19px; line-height: 1.32; color: var(--muted); max-width: 19em; text-wrap: pretty; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 24px; border-radius: 999px; border: 0;
  background: var(--ink); color: #FFFFFF; font: 400 17px/1 var(--sans); letter-spacing: -.01em; text-decoration: none; cursor: pointer;
}
.btn--wide { width: 100%; min-height: 52px; }
.btn:disabled { opacity: .55; cursor: default; }
.link { color: var(--ink); text-decoration: none; }
.link::after { content: " ›"; }
.btn:focus-visible, .link:focus-visible, .nav a:focus-visible { outline: 3px solid #8C1E32; outline-offset: 3px; border-radius: 999px; }

/* ---------- 1. Первый экран ---------- */
.hero { height: calc(100vh - var(--nav)); height: calc(100svh - var(--nav)); padding-top: 30px; }
.title { font: 600 58px/1.04 var(--sans); letter-spacing: -.03em; }
.sub { margin-top: 10px; font-size: 21px; line-height: 1.24; max-width: 16.5em; text-wrap: balance; }
.actions { margin-top: 20px; display: flex; align-items: center; justify-content: center; gap: 18px; }
.note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.hero .slot { flex: 1; min-height: 0; width: 100%; margin-top: 6px; }

/* ---------- 2. О батле: текст сверху, предмет крупно снизу, уходит за левый край ---------- */
.about .slot { flex: 1; min-height: 320px; width: 100%; margin: 14px 0 10px; }

/* ---------- 3. Шаги: карточки, предмет небольшой внизу ---------- */
.cards { width: 100%; margin-top: 26px; display: grid; gap: 10px; text-align: left; }
.cards li { display: grid; grid-template-columns: 40px 1fr; align-items: start; padding: 18px 20px; border-radius: 20px; background: var(--tint); }
.cards .n { font: 600 28px/1.1 var(--sans); letter-spacing: -.02em; }
.cards h3 { font: 600 19px/1.25 var(--sans); letter-spacing: -.015em; }
.cards p { margin-top: 3px; font-size: 15px; line-height: 1.35; color: var(--muted); }
.steps .slot { flex: 1; min-height: 230px; width: 100%; margin-top: 10px; }

/* ---------- 4. Заявка: серая карточка формы на белом ---------- */
.apply { padding-bottom: 56px; align-items: stretch; text-align: left; }
.apply__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.apply__head h2 { max-width: 5.6em; }
.apply__head .slot { flex: none; width: 96px; height: 156px; margin-bottom: -6px; }
form { margin-top: 22px; padding: 20px; border-radius: 22px; background: var(--tint); display: grid; gap: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }  /* поле-ловушка для ботов, людям не видно */
.field { display: grid; gap: 6px; }
.field span { font-size: 13px; color: var(--muted); }
.field em { font-style: normal; margin-left: 4px; opacity: .8; }
input, textarea {
  width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #FFFFFF;
  color: var(--ink); font: 400 17px/1.3 var(--sans); letter-spacing: -.01em; appearance: none;     /* 16px+ — iOS не приближает поле */
}
input:focus, textarea:focus { outline: 3px solid rgba(29, 29, 31, .16); border-color: var(--ink); }
textarea { resize: vertical; }
input::placeholder { color: #A1A1A6; }
.form__error { font-size: 15px; color: #8C1E32; }
.form__note { font-size: 12px; color: var(--muted); text-align: center; }
.apply__done { display: flex; flex-direction: column; align-items: center; text-align: center; }
.apply__done .slot { width: 100%; height: 40vh; margin-bottom: 20px; }

/* ---------- 5. Контакты ---------- */
.contacts { padding-top: 24px; padding-bottom: 28px; }
.contacts .slot { width: 100%; height: 34vh; margin-bottom: 22px; }
.contacts dl { margin-top: 22px; display: grid; gap: 16px; }
.contacts dt { font-size: 13px; color: var(--muted); }
.contacts dd { font: 600 24px/1.2 var(--sans); letter-spacing: -.02em; }
.contacts dd a { color: inherit; text-decoration: none; }
.contacts .body { font-size: 17px; margin-top: 22px; }
.foot { width: 100%; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }
.foot img { height: 13px; width: auto; display: block; }

/* ---------- широкие экраны: та же колонка по центру ---------- */
@media (min-width: 760px) {
  .block > *:not(.slot) { max-width: 560px; }
  .cards, form { margin-left: auto; margin-right: auto; }
  .apply { align-items: center; }
  .apply > div { width: 100%; max-width: 560px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
