/* Savela — сайт. Палитра Berry Pop из visual/redesign/berry-pop-themes.md (как в приложении).
   Внешних шрифтов, скриптов и cookie нет намеренно: это обещано в политике приватности. */

:root {
  --bg: #FFFFFF;
  --text: #2D1C25;
  --text-2: #75616B;
  --divider: #E9E0E5;
  --surface: #F8F1F4;
  --accent: #AB2855;
  --action: #AB2855;
  --action-text: #FFFFFF;

  --berry-bg: #AB2855;  --berry-fg: #FFF5EA;
  --peach-bg: #FFB29C;  --peach-fg: #582A31;
  --citron-bg: #E4ED67; --citron-fg: #343A1C;
  --lilac-bg: #C7BAFF;  --lilac-fg: #352359;

  --radius: 22px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1B141B;
    --text: #FFF4F8;
    --text-2: #C6ACBB;
    --divider: #48313F;
    --surface: #30212D;
    --accent: #FFAFCE;
    --action: #F5A9C6;
    --action-text: #351323;

    --berry-bg: #9E2852;  --berry-fg: #FFF5EA;
    --peach-bg: #F39A82;  --peach-fg: #452027;
    --citron-bg: #CBD65A; --citron-fg: #2F3518;
    --lilac-bg: #A994EF;  --lilac-fg: #261842;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--bg); padding: 8px 12px; z-index: 10; }

/* ---------- Шапка ---------- */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none;
  font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--text-2); text-decoration: none; }
.nav a:hover { color: var(--text); }
@media (max-width: 720px) { .nav .opt { display: none; } }

/* ---------- Кнопки ---------- */
.soon { display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px 12px 18px; border-radius: 999px;
  background: var(--action); color: var(--action-text); font-weight: 600; font-size: 16px; line-height: 1.2; }
.soon svg { width: 22px; height: 22px; flex: none; }
.soon small { display: block; font-weight: 500; font-size: 12px; opacity: .85; }
.ghost { display: inline-flex; align-items: center; padding: 12px 20px; border-radius: 999px;
  border: 1px solid var(--divider); color: var(--text); text-decoration: none; font-weight: 600; font-size: 16px; }
.ghost:hover { background: var(--surface); }

/* ---------- Первый экран ---------- */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 14px; }
h1 { font-size: clamp(40px, 6.4vw, 72px); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 18px; font-weight: 800; }
h1 em { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--accent); letter-spacing: -0.02em; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--text-2); max-width: 32em; margin: 0 0 28px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.note { margin-top: 14px; font-size: 14px; color: var(--text-2); }
@media (max-width: 1000px) {
  .hero { padding: 32px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Телефон (экраны по образцу приложения) ---------- */
.phones { position: relative; display: flex; justify-content: center; align-items: flex-start; min-height: 560px; }
.phone { width: 280px; aspect-ratio: 9 / 19.5; border-radius: 46px; padding: 10px; background: #1a1219;
  box-shadow: 0 40px 80px -30px rgba(91, 20, 48, .45), 0 0 0 1px rgba(0,0,0,.06); flex: none; }
.phone .screen { width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: var(--bg);
  position: relative; font-size: 11px; line-height: 1.3; color: var(--text); }
.phone.back { transform: rotate(-6deg) translate(-20px, 40px); position: relative; z-index: 1; }
.phone.front { transform: rotate(4deg) translate(20px, 0); margin-left: -120px; position: relative; z-index: 2; }
@media (max-width: 560px) {
  .phones { min-height: 0; }
  .phone { width: 230px; border-radius: 38px; }
  .phone .screen { border-radius: 30px; font-size: 9px; }
  .phone.back { display: none; }
  .phone.front { transform: none; margin: 0; }
}
.status { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px 4px; font-weight: 600; font-size: 1.1em; }
.status .island { width: 76px; height: 20px; border-radius: 12px; background: #1a1219; }
.status .dots { width: 34px; height: 8px; border-radius: 4px; background: currentColor; opacity: .85; }
.scr { padding: 6px 14px; }
.scr-row { display: flex; justify-content: space-between; margin: 6px 0 8px; }
.circle { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--divider); display: grid; place-items: center; color: var(--accent); font-size: 15px; }
.search { border: 1px solid var(--divider); border-radius: 999px; padding: 7px 12px; color: var(--text-2); margin-bottom: 14px; }
.scr h3 { font-size: 2.1em; letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 3px; font-weight: 800; }
.scr .sub { color: var(--text-2); margin-bottom: 10px; }
.scr .rowhead { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 7px; }
.scr .rowhead span:last-child { color: var(--text-2); font-weight: 400; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.tile { border-radius: 14px; aspect-ratio: 1; padding: 9px; position: relative; overflow: hidden; }
.tile b { display: block; font-size: 1.35em; letter-spacing: -0.01em; }
.tile span { opacity: .8; }
.tile i { position: absolute; right: 6px; bottom: -10px; font-family: var(--serif); font-size: 5.4em; line-height: 1; opacity: .22; font-weight: 700; }
.tile.photo { background-size: cover; background-position: center; color: #fff; }
.tile.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,0) 55%); }
.tile.photo b, .tile.photo span { position: relative; z-index: 1; }
.t-berry { background: var(--berry-bg); color: var(--berry-fg); }
.t-peach { background: var(--peach-bg); color: var(--peach-fg); }
.t-citron { background: var(--citron-bg); color: var(--citron-fg); }
.t-lilac { background: var(--lilac-bg); color: var(--lilac-fg); }
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; align-items: center;
  border-top: 1px solid var(--divider); padding: 8px 10px 18px; background: var(--bg); color: var(--text-2); font-size: .95em; }
.tabbar .on { background: var(--action); color: var(--action-text); border-radius: 10px; padding: 5px 12px; font-weight: 600; }
.card-hero { margin: 4px 12px 10px; border-radius: 16px; aspect-ratio: 4 / 3; background-size: cover; background-position: center; }
.card-body { padding: 0 14px; }
.card-body h4 { font-size: 1.7em; letter-spacing: -0.02em; margin: 0 0 4px; line-height: 1.1; }
.card-body .link { color: var(--accent); margin-bottom: 9px; }
.pill { display: inline-block; background: var(--action); color: var(--action-text); border-radius: 999px; padding: 6px 12px; font-weight: 600; margin-bottom: 10px; }
.facts { background: var(--surface); border-radius: 12px; padding: 4px 10px; }
.facts div { padding: 6px 0; border-bottom: 1px solid var(--divider); display: flex; justify-content: space-between; }
.facts div:last-child { border-bottom: 0; }
.facts span { color: var(--text-2); }

/* ---------- Секции ---------- */
section { padding: 72px 0; }
section.alt { background: var(--surface); }
h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 14px; font-weight: 800; }
h2 em { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--accent); }
.intro { color: var(--text-2); font-size: 19px; max-width: 36em; margin: 0 0 40px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--bg); border: 1px solid var(--divider); border-radius: var(--radius); padding: 26px; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--action); color: var(--action-text); font-weight: 700; margin-bottom: 16px; }
.steps h3 { margin: 0 0 6px; font-size: 20px; letter-spacing: -0.01em; }
.steps p { margin: 0; color: var(--text-2); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

.kinds { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 48px; padding: 0; list-style: none; }
.kinds li { padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 15px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { border-radius: var(--radius); padding: 28px; min-height: 220px; display: flex; flex-direction: column; }
.feature h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -0.015em; }
.feature p { margin: 0; opacity: .88; }
.feature .glyph { font-family: var(--serif); font-style: italic; font-size: 54px; line-height: 1; margin-bottom: auto; padding-bottom: 22px; opacity: .55; }
.feature.wide { grid-column: span 2; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } .feature.wide { grid-column: span 2; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } .feature.wide { grid-column: auto; } }

.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.promises li { border-top: 2px solid var(--accent); padding-top: 16px; }
.promises b { display: block; font-size: 19px; margin-bottom: 6px; letter-spacing: -0.01em; }
.promises span { color: var(--text-2); }
@media (max-width: 900px) { .promises { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .promises { grid-template-columns: 1fr; } }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 860px; }
.plan { border: 1px solid var(--divider); border-radius: var(--radius); padding: 30px; background: var(--bg); }
.plan.pro { background: var(--berry-bg); color: var(--berry-fg); border-color: transparent; }
.plan h3 { margin: 0 0 4px; font-size: 26px; letter-spacing: -0.02em; }
.plan .tag { font-weight: 600; opacity: .8; margin-bottom: 18px; }
.plan ul { margin: 0; padding-left: 20px; }
.plan li { margin-bottom: 6px; }
.fine { color: var(--text-2); font-size: 15px; margin-top: 18px; max-width: 46em; }
@media (max-width: 680px) { .plans { grid-template-columns: 1fr; } }

.closing { text-align: center; }
.closing .ctas { justify-content: center; }
.closing .intro { margin-left: auto; margin-right: auto; }

/* ---------- Подвал ---------- */
footer { border-top: 1px solid var(--divider); padding: 40px 0 48px; font-size: 15px; color: var(--text-2); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--text-2); }
footer a:hover { color: var(--text); }
footer p { margin: 6px 0 0; }

/* ---------- Документы ---------- */
.doc { padding: 48px 0 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(34px, 5vw, 50px); margin-bottom: 8px; }
.doc .meta { color: var(--text-2); margin: 0 0 28px; }
.doc .summary { background: var(--surface); border-radius: var(--radius); padding: 22px 26px; margin: 0 0 36px; }
.doc .summary h2 { font-size: 20px; letter-spacing: -0.01em; margin: 0 0 8px; }
.doc .summary ul { margin: 0; padding-left: 20px; }
.doc h2 { font-size: 26px; letter-spacing: -0.02em; margin: 44px 0 10px; scroll-margin-top: 80px; }
.doc h3 { font-size: 19px; margin: 26px 0 6px; }
.doc p, .doc li { color: var(--text); }
.doc li { margin-bottom: 6px; }
.doc .toc { columns: 2; column-gap: 32px; padding-left: 20px; margin: 0 0 8px; }
@media (max-width: 600px) { .doc .toc { columns: 1; } }
.table { width: 100%; overflow-x: auto; margin: 12px 0 20px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--divider); }
.doc th { font-weight: 600; background: var(--surface); }
.doc .callout { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; margin: 18px 0; }
.faq details { border-bottom: 1px solid var(--divider); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style-position: outside; }
.faq details p { margin: 10px 0 0; }
.contact-card { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; background: var(--surface);
  border-radius: var(--radius); padding: 24px 26px; margin: 0 0 32px; }
.contact-card b { display: block; font-size: 20px; }

.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }

.bg-food { background-image: url(/assets/food-cover.jpg); }
.bg-rome { background-image: url(/assets/rome-cover.jpg); }
.lead.center { margin: 0 auto 28px; }

/* Таблицы документов на телефоне: строка — карточка, подпись колонки из data-label. */
@media (max-width: 600px) {
  .doc table { min-width: 0; }
  .doc thead { display: none; }
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
  .doc tr { border-bottom: 1px solid var(--divider); padding: 10px 0; }
  .doc td { border: 0; padding: 4px 0; }
  .doc td::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 600; color: var(--text-2); }
  .doc td:first-child { font-weight: 700; font-size: 17px; }
  .doc td:first-child::before { display: none; }
}
