/*
 * Страница сервиса stoloffka24.ru. Палитра — «Домашняя кухня» клиентского
 * приложения (apps/customer/global.css); тёмный фон — #131209 из набора
 * скилла landing-page-design. Шрифт свой, внешних запросов у страницы нет.
 * Размеры — шкала Tailwind, отступы — 2/4/8/12/16/24/32/40/48/64/80/96.
 */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/manrope-cyrillic-wght-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/manrope-latin-wght-normal.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 {
  --bg: #f6efe5;
  --card: #fffcf7;
  --fg: #2b1e17;
  --muted: #6e5b4e;
  --border: #e7dbcb;
  --secondary: #efe4d5;
  --primary: #bf5022;
  --primary-pressed: #a3441a;
  --on-primary: #ffffff;
  --accent: #f8dfcd;
  --accent-fg: #a3441a;
  --ring: #bf5022;
  --title-from: #2b1e17;
  --title-to: #6e5b4e;
  --glass: rgb(255 252 247 / 0.72);
  --panel: rgb(255 252 247 / 0.94);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131209;
    --card: #1f1f1f;
    --fg: #f5efe6;
    --muted: #b5aa9e;
    --border: #313131;
    --secondary: #272727;
    --accent: #3a2418;
    --accent-fg: #f0915f;
    --ring: #e06a31;
    --title-from: #ffffff;
    --title-to: #9b9b9b;
    --glass: rgb(31 31 31 / 0.72);
    --panel: rgb(19 18 9 / 0.94);
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 60;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 16px;
}

.wrap {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 16px;
}
.wrap--narrow {
  max-width: 768px;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 300ms var(--ease),
    border-color 300ms var(--ease),
    transform 300ms var(--ease);
}
.btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.btn:active {
  transform: scale(0.98);
}
.btn--primary {
  background: var(--primary);
  color: var(--on-primary);
}
.btn--primary:hover {
  background: var(--primary-pressed);
}
.btn--ghost {
  background: var(--card);
  border-color: var(--border);
  color: var(--fg);
}
.btn--ghost:hover {
  background: var(--secondary);
}
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.btn:disabled:active {
  transform: none;
}
.btn--ghost:disabled:hover {
  background: var(--card);
}
.soon {
  padding: 2px 8px;
  border-radius: 9999px;
  background: var(--secondary);
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
}
.btn--sm {
  min-height: 40px;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.link {
  color: var(--accent-fg);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 300ms var(--ease);
}
.link:hover {
  color: var(--primary);
}

/* Навигация: плавающая плашка */
.nav {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}
.nav__bar {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 896px;
  padding: 8px 8px 8px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: auto;
}
.wordmark {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  margin-right: auto;
}
.wordmark span {
  color: var(--primary);
}
.nav__links {
  display: none;
  gap: 24px;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
}
.nav__links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 300ms var(--ease);
}
.nav__links a:hover,
.nav__links a[aria-current='true'] {
  color: var(--fg);
}
.nav__cta {
  border-radius: 8px; /* 16 − 8: вложена в плашку с отступом 8 */
}

.nav__toggle {
  position: relative;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}
.nav__toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 500ms var(--ease);
}
.nav__toggle span:first-child {
  transform: translateY(-4px);
}
.nav__toggle span:last-child {
  transform: translateY(4px);
}
.nav__toggle[aria-expanded='true'] span:first-child {
  transform: rotate(45deg);
}
.nav__toggle[aria-expanded='true'] span:last-child {
  transform: rotate(-45deg);
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  padding: 96px 16px 32px;
  background: var(--panel);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  transition: opacity 300ms var(--ease);
}
.menu[data-open] {
  opacity: 1;
}
.menu nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.menu nav a:not(.btn) {
  padding: 12px 0;
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  text-decoration: none;
}
.menu nav .btn {
  margin-top: 16px;
}
.menu nav > * {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 500ms var(--ease),
    transform 500ms var(--ease);
}
.menu[data-open] nav > * {
  opacity: 1;
  transform: none;
}
.menu[data-open] nav > :nth-child(2) {
  transition-delay: 60ms;
}
.menu[data-open] nav > :nth-child(3) {
  transition-delay: 120ms;
}
.menu[data-open] nav > :nth-child(4) {
  transition-delay: 180ms;
}
.menu[data-open] nav > :nth-child(5) {
  transition-delay: 240ms;
}

@media (min-width: 1024px) {
  .nav__links {
    display: flex;
  }
  .nav__toggle,
  .menu {
    display: none;
  }
}

/* Первый экран */
.hero {
  padding: 96px 0 64px;
}
.hero__grid {
  display: grid;
  gap: 32px;
  align-items: center;
}
.hero__title {
  max-width: 680px;
  font-size: 2.25rem;
  line-height: 2.5rem;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--title-from), var(--title-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  max-width: 680px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
}
.facts li::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 9999px;
  background: var(--primary);
  vertical-align: 1px;
}
.hero__art img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hero {
    padding: 96px 0 80px;
  }
  .hero__title {
    font-size: 3rem;
    line-height: 1;
  }
}
@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
  }
}

/* Разделы */
.section {
  padding: 64px 0;
}
.section__title {
  font-size: 1.875rem;
  line-height: 2.25rem;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}
@media (min-width: 768px) {
  .section {
    padding: 80px 0;
  }
  .section__title {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}

.card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--card);
}
.card h3 {
  font-size: 1.25rem;
  line-height: 1.75rem;
  margin-bottom: 8px;
}
.card p {
  color: var(--muted);
}

.steps,
.benefits {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .benefits {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .benefits {
    grid-template-columns: repeat(4, 1fr);
  }
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
}
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-fg);
}
.icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Вопросы */
.faq {
  display: grid;
  gap: 12px;
  max-width: 768px;
}
.faq details {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  border-radius: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: var(--muted);
  transition: transform 500ms var(--ease);
}
.faq details[open] summary svg {
  transform: rotate(180deg);
}
.faq details p {
  padding: 0 24px 24px;
  color: var(--muted);
}

/* Контакты */
.contacts {
  display: grid;
  gap: 16px;
}
@media (min-width: 768px) {
  .contacts {
    grid-template-columns: 1.4fr 1fr;
  }
}
.contacts__main {
  display: grid;
  gap: 16px;
}
.contact {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  border-radius: 12px;
}
.contact .icon {
  margin: 0;
}
.contact strong {
  display: block;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 700;
}
.contact small {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.25rem;
}
a.contact:hover strong {
  color: var(--primary);
}
.requisites {
  display: grid;
  gap: 16px;
  margin: 0;
  align-content: start;
}
.requisites dt {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.requisites dd {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Последний призыв */
.final__card {
  padding: 40px 24px;
  text-align: center;
}
.final__card .section__title {
  margin-bottom: 12px;
}
.final__card .actions {
  justify-content: center;
}
@media (min-width: 768px) {
  .final__card {
    padding: 64px 48px;
  }
}

.footer {
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}
.footer a {
  text-underline-offset: 2px;
  transition: color 300ms var(--ease);
}
.footer a:hover {
  color: var(--fg);
}

/* Появление разделов — только при работающем скрипте */
.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 700ms var(--ease),
    transform 700ms var(--ease);
}
.js .reveal.shown {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal,
  .menu nav > * {
    transform: none;
  }
  .nav__toggle span,
  .faq summary svg {
    transition: none;
  }
}

/* 404 */
.notfound {
  display: grid;
  gap: 16px;
  justify-items: start;
  padding-top: 64px;
}
.notfound .wordmark {
  margin-bottom: 32px;
}
.notfound .section__title {
  margin: 0;
}
.notfound p {
  color: var(--muted);
}
.notfound .actions {
  margin-top: 16px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

/* Документы */
.docs {
  padding-top: 96px;
}
.docs__lead {
  max-width: 680px;
  margin: -16px 0 32px;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.doclist {
  display: grid;
  gap: 12px;
  max-width: 768px;
  margin: 0 0 48px;
  padding: 0;
  list-style: none;
}
.doc {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px 16px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  text-decoration: none;
  transition: background-color 300ms var(--ease);
}
.doc .icon {
  margin: 0;
}
.doc__text {
  flex: 1;
  min-width: 0;
}
.doc__text strong {
  display: block;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 700;
}
.doc__text small {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.doc > svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: var(--muted);
}
a.doc:hover {
  background: var(--secondary);
}
.docs .requisites {
  max-width: 768px;
}
.docs h2 {
  font-size: 1.5rem;
  line-height: 2rem;
  margin-bottom: 16px;
}

/* Значки — одним спрайтом, без инлайн-стиля (CSP без 'unsafe-inline') */
.sprite {
  position: absolute;
}

/* Страница документа: /privacy, /consent, /terms (scripts/site-legal.mts) */
.legal {
  padding-top: 96px;
}
.legal__back {
  margin-bottom: 24px;
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.legal .section__title {
  margin-bottom: 8px;
}
.legal__edition {
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.legal h2 {
  margin: 40px 0 16px;
  font-size: 1.5rem;
  line-height: 2rem;
}
.legal h3 {
  margin: 32px 0 12px;
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.legal p,
.legal ul {
  margin: 0 0 16px;
}
.legal ul {
  padding-left: 24px;
}
.legal li + li {
  margin-top: 8px;
}
.legal .link {
  overflow-wrap: anywhere;
}
.legal__table {
  margin: 0 0 24px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
}
.legal table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.legal th,
.legal td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.legal tr:last-child td {
  border-bottom: 0;
}
.legal th {
  background: var(--secondary);
  font-weight: 700;
}
