/* Общие стили сайта podarok-ai.ru. Один файл на все страницы. */

:root {
  --bg: #14100e;
  --surface: #1c1613;
  --surface-2: #241b17;
  --line: #352a22;
  --ink: #f7ede2;
  --muted: #a99686;
  --accent: #ff8fb8;
  --accent-ink: #2b0f1a;
  --gold: #e8bd80;
  --radius: 14px;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  text-wrap: pretty;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* ── шапка ───────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.top__in {
  display: flex; align-items: center; gap: 24px;
  min-height: 64px;
}
.brand {
  font-family: var(--serif); font-size: 21px; letter-spacing: .01em;
  color: var(--ink); white-space: nowrap;
}
.brand b { color: var(--accent); font-weight: 600; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { color: var(--muted); font-size: 15px; }
.top nav a:hover { color: var(--ink); text-decoration: none; }
.top__mail { color: var(--muted); font-size: 15px; }

@media (max-width: 860px) {
  .top nav, .top__mail { display: none; }
}

/* ── типографика ─────────────────────────────────────── */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(34px, 5.2vw, 62px); letter-spacing: -.015em; }
h2 { font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -.01em; }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: #e6d8cb; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ── кнопки ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-size: 16px; font-weight: 600; font-family: var(--sans);
  background: var(--accent); color: var(--accent-ink);
  cursor: pointer;
}
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn--ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--muted); }

/* ── герой ───────────────────────────────────────────── */
.hero { padding: 68px 0 44px; }
.hero__grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
}
.hero__facts {
  list-style: none; margin: 26px 0 30px; padding: 0;
  display: grid; gap: 10px;
  border-top: 1px solid var(--line); padding-top: 18px;
}
.hero__facts li { display: flex; gap: 14px; align-items: baseline; color: #e6d8cb; }
.hero__facts b {
  font-family: var(--serif); font-size: 22px; font-weight: 600;
  min-width: 118px; color: var(--gold);
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* вертикальный кадр-видео 9:16 */
.frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9 / 16;
  max-height: 560px;
  margin-inline: auto;
  width: 100%;
  max-width: 316px;
}
.frame video, .frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.frame figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 12px 14px;
  font-size: 13px; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0));
}

@media (max-width: 860px) {
  .hero { padding: 40px 0 28px; }
  .hero__grid { grid-template-columns: 1fr; gap: 34px; }
  .hero__facts b { min-width: 96px; }
}

/* ── секции ──────────────────────────────────────────── */
section { padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.sec-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 30px; }
.sec-head p { margin: 0; color: var(--muted); max-width: 52ch; }

/* ── примеры ─────────────────────────────────────────── */
.examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.example { display: grid; gap: 12px; }
.example__meta { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.example__meta b { color: var(--ink); font-weight: 600; }
@media (max-width: 700px) { .examples { grid-template-columns: 1fr; } }

/* ── тарифы ──────────────────────────────────────────── */
.tariffs { border-top: 1px solid var(--line); }
.tariff {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 118px 128px 112px 128px;
  gap: 20px; align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.tariff h3 { margin-bottom: 4px; }
.tariff__desc { color: var(--muted); font-size: 15px; margin: 0; }
.tariff__num { font-family: var(--serif); font-size: 19px; color: #e6d8cb; }
.tariff__num span { display: block; font-family: var(--sans); font-size: 12px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.tariff__price { font-family: var(--serif); font-size: 26px; text-align: right; white-space: nowrap; }
.tariff__price span { font-family: var(--sans); font-size: 14px; color: var(--muted); }
.tag {
  justify-self: end; font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted);
  white-space: nowrap;
}
.tag--on { color: #b6f0c8; border-color: #2f5a3d; }

@media (max-width: 820px) {
  .tariff { grid-template-columns: 1fr auto; gap: 8px 16px; }
  .tariff__num { grid-column: 1; font-size: 16px; }
  .tariff__num span { display: none; }
  .tariff__price { grid-row: 1; grid-column: 2; font-size: 22px; }
  .tag { grid-column: 1 / -1; justify-self: start; margin-top: 4px; }
}

/* ── шаги ────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.step { display: grid; gap: 8px; align-content: start; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--serif); font-size: 34px; color: var(--accent); line-height: 1;
}
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.step b { font-weight: 600; color: var(--ink); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ── две колонки текста ──────────────────────────────── */
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; gap: 28px; } }
.cols h3 { margin-bottom: 10px; }
.cols ul { margin: 0; padding-left: 20px; color: var(--muted); }
.cols li { margin-bottom: 6px; }

/* ── FAQ ─────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary {
  cursor: pointer; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 12px 0 0; color: var(--muted); max-width: 76ch; }

/* ── подвал ──────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 14px; color: var(--muted); }
.foot { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.foot h3 { font-size: 16px; color: var(--ink); margin-bottom: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }
.foot .copy { margin-top: 30px; color: #7d6c60; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; gap: 24px; } }

/* ── заглушки реквизитов ─────────────────────────────── */
.todo {
  color: var(--gold);
  border-bottom: 1px dashed var(--gold);
  white-space: nowrap;
}

/* ── страницы документов ─────────────────────────────── */
.doc { max-width: 78ch; padding: 44px 0 72px; }
.doc h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 10px; }
.doc h2 { font-size: 24px; margin: 34px 0 10px; }
.doc h3 { font-size: 18px; margin: 22px 0 8px; }
.doc p, .doc li { color: #ded1c4; }
.doc ul, .doc ol { padding-left: 22px; }
.doc table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--muted); font-weight: 600; }
.doc .back { display: inline-block; margin-bottom: 24px; font-size: 15px; }
