/* Документы DSGN — docs.dsgncoffee.com
   Правовой текст читают долго и внимательно, поэтому оформление тихое:
   те же цвета и шрифт, что на странице клуба, но крупнее межстрочный
   интервал, уже колонка и никакой анимации. */

@font-face {
  font-family: 'Arimo';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/arimo-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Arimo';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/arimo-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 {
  --ink: #141414;
  --ink-soft: #1B1B1B;
  --orange: #F46E27;
  --orange-hot: #FF926C;
  --cream: #F4F1EC;
  --dim: rgba(244, 241, 236, 0.62);
  --rule: rgba(244, 241, 236, 0.13);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: 'Helvetica Neue', Helvetica, Arimo, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 22px calc(56px + env(safe-area-inset-bottom, 0px));
}

/* ── Шапка ─────────────────────────────────────────────────────────────── */

.top {
  padding: calc(44px + env(safe-area-inset-top, 0px)) 0 30px;
  border-bottom: 1px solid var(--rule);
}

.crumb {
  display: inline-block;
  margin-bottom: 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  text-decoration: none;
}
.crumb::before { content: "← "; }

h1 {
  margin: 0;
  font-size: clamp(26px, 5.4vw, 34px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.sub {
  margin: 10px 0 0;
  font-size: 16px;
  color: var(--dim);
}

.upd {
  margin: 18px 0 0;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ── Текст документа ───────────────────────────────────────────────────── */

.doc { padding-top: 8px; }

.doc h2 {
  margin: 40px 0 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--cream);
}

.doc p {
  margin: 16px 0 0;
  /* Юридический текст читают абзацами, поэтому строка чуть короче обычного. */
  max-width: 66ch;
}

.doc ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  max-width: 66ch;
}

.doc li {
  position: relative;
  padding-left: 20px;
  margin-top: 11px;
}

.doc li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 8px;
  height: 1px;
  background: var(--orange);
}

.doc strong { font-weight: 700; }

a {
  color: var(--orange);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--orange-hot); }

a:focus-visible,
.crumb:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Адреса в тексте политики длинные — не дают полосе прокрутки уехать вбок. */
.doc a { overflow-wrap: anywhere; }

/* ── Подвал ────────────────────────────────────────────────────────────── */

.foot {
  margin-top: 56px;
  padding-top: 30px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px 40px;
  font-size: 14.5px;
  color: var(--dim);
}

.foot__title {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
}

.foot ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.foot li span { color: var(--cream); }

.foot__org p { margin: 0 0 12px; }
.foot__org p:last-child { margin-bottom: 0; }

/* ── Витрина «сайт в разработке» (корень домена) ──────────────────────────
   Единственная страница без .top/.doc — четыре строки текста, зафиксированные
   в build/render.py (константа HERO), и больше ничего. */

.page--hero {
  max-width: 920px;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px);
}

.hero {
  position: relative;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  padding: 64px 0 48px;
  overflow: clip;
}

/* Огромная бледная метка «D» позади текста — тот же контур, что в фавиконке,
   без подложки. Декоративная: скрыта от экранного диктора, ничего не читает. */
.hero__mark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(78vw, 62vh, 640px);
  height: auto;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  color: var(--orange);
  opacity: 0.11;
  pointer-events: none;
}

.hero__logo,
.hero__oops,
.hero__headline,
.hero__soon {
  position: relative;
  margin: 0;
}

.hero__logo {
  width: clamp(190px, 44vw, 320px);
  height: auto;
  color: var(--cream);
}

.hero__logo svg {
  display: block;
  width: 100%;
  height: auto;
}

.hero__oops {
  margin-top: 26px;
  font-weight: 700;
  font-size: clamp(19px, 5.2vw, 28px);
  color: var(--orange);
}

.hero__headline {
  margin-top: 16px;
  font-weight: 700;
  font-size: clamp(30px, 8.6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--cream);
  max-width: 16ch;
  text-wrap: balance;
}

.hero__soon {
  margin-top: 30px;
  font-weight: 600;
  font-size: clamp(16px, 4.2vw, 21px);
  color: var(--orange);
}

.page--hero .foot {
  position: relative;
  flex: 0 0 auto;
}

/* Появление по очереди — единственная анимация на весь сайт документов,
   и только здесь: у остальных страниц читают текст, а не смотрят на него. */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* Метку доводим до её собственных 0.055, а не до 1 — общий keyframe тут не
   подходит: animation-fill-mode держит конечное состояние ИЗ keyframe,
   оно бы забило исходную непрозрачность, заданную в .hero__mark. */
@keyframes hero-mark-rise {
  from { opacity: 0; transform: translate(-50%, -50%) translateY(14px); }
  to   { opacity: 0.11; transform: translate(-50%, -50%); }
}

.hero__mark    { animation: hero-mark-rise 1s cubic-bezier(.2, .7, .3, 1) both; }
.hero__logo,
.hero__oops,
.hero__headline,
.hero__soon {
  animation: hero-rise .6s cubic-bezier(.2, .7, .3, 1) both;
}
.hero__logo    { animation-delay: .05s; }
.hero__oops    { animation-delay: .14s; }
.hero__headline{ animation-delay: .22s; }
.hero__soon    { animation-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .hero__mark, .hero__logo, .hero__oops, .hero__headline, .hero__soon {
    animation: none;
    opacity: 1;
  }
  .hero__mark { opacity: 0.11; }
}

