/* KetoRay landing — фирменная палитра из дизайн-системы приложения (Phase 2.1). */
:root {
  --surface: #fbfaf7;
  --card: #ffffff;
  --text: #1c2b22;
  --muted: #6b7a70;
  --brand: #1e8e5a;
  --brand-strong: #166b45;
  --brand-tint: #e6f4ec;
  --accent: #ff7a45;
  --accent-text: #3a1b0e;
  --keto-bg: #e6f4ec;
  --keto-text: #166b45;
  --notketo-bg: #fcecec;
  --notketo-text: #b4262a;
  --borderline-bg: #fcf3e1;
  --borderline-text: #8a5a08;
  --hairline: rgba(20, 40, 30, 0.1);
  --shadow: 0 18px 40px rgba(20, 60, 40, 0.12);
  --radius: 18px;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--brand-strong); }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-strong);
  background: var(--brand-tint);
  padding: 6px 12px;
  border-radius: 999px;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.4em; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 250, 247, 0.85);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand-lockup { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand-lockup img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--brand-strong); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; border-radius: 12px; padding: 12px 20px; border: 1.5px solid transparent; cursor: pointer; font-size: 1rem; }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { filter: brightness(0.96); }
.btn-outline { border-color: var(--brand); color: var(--brand-strong); background: transparent; }
.btn-outline:hover { background: var(--brand-tint); }
.btn-store { background: var(--text); color: #fff; border-radius: 14px; }
.btn-sm { padding: 9px 14px; font-size: 0.92rem; }

/* Hero */
.hero { padding: 56px 0 32px; }
.hero .container { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 12px; }
.hero-note { font-size: 0.85rem; color: var(--muted); }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .mascot { position: absolute; width: 130px; left: -6px; top: -18px; filter: drop-shadow(0 10px 18px rgba(20, 60, 40, 0.18)); }

/* Phone frame */
.phone { width: 260px; max-width: 72vw; border-radius: 42px; padding: 10px; background: #0e120f; box-shadow: var(--shadow); }
.phone img { border-radius: 32px; width: 100%; }
.phone-lg { width: 300px; }

/* Sections */
section { padding: 56px 0; }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { text-align: center; }
.step .phone { margin: 0 auto 18px; width: 220px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 8px; }

/* Example */
.example { background: var(--brand-tint); }
.example .container { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: center; }
.verdict-list { display: grid; gap: 14px; margin: 20px 0; }
.vcard { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 16px; }
.vhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.vhead strong { font-size: 1.05rem; }
.chip { font-weight: 700; font-size: 0.82rem; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.chip-keto { background: var(--keto-bg); color: var(--keto-text); }
.chip-notketo { background: var(--notketo-bg); color: var(--notketo-text); }
.chip-borderline { background: var(--borderline-bg); color: var(--borderline-text); }
.vreason { color: var(--muted); font-size: 0.95rem; margin: 0 0 12px; }
.vbtns { display: flex; flex-wrap: wrap; gap: 10px; }
.disclosure-inline { font-size: 0.82rem; color: var(--muted); margin-top: 14px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 22px; }
.feature .ic { font-size: 1.6rem; }
.feature h3 { margin-top: 10px; }
.feature p { color: var(--muted); margin: 0; }

/* More examples grid */
.examples-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* Trust */
.trust .container { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: center; }
.callout { background: var(--brand-tint); border-radius: var(--radius); padding: 18px 20px; margin-top: 14px; }
.callout h3 { color: var(--brand-strong); margin-bottom: 6px; }
.callout p { margin: 0; color: var(--text); }

/* Disclosure banner */
.disclosure-band { background: var(--text); color: #eafff4; }
.disclosure-band .container { padding-top: 22px; padding-bottom: 22px; font-size: 0.95rem; }

/* Footer */
.site-footer { padding: 40px 0 56px; border-top: 1px solid var(--hairline); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--text); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--brand-strong); }
.fineprint { color: var(--muted); font-size: 0.85rem; margin-top: 18px; max-width: 720px; }

/* Legal pages */
.legal { padding: 40px 0 64px; max-width: 760px; }
.legal h1 { margin-bottom: 0.2em; }
.legal .updated { color: var(--muted); margin-bottom: 2em; }
.legal h2 { font-size: 1.3rem; margin-top: 1.6em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.4em; }
.back-link { display: inline-block; margin-bottom: 24px; font-weight: 700; text-decoration: none; }

@media (max-width: 860px) {
  .hero .container, .example .container, .trust .container { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .examples-grid { grid-template-columns: 1fr; }
  .nav-links .nav-hide { display: none; }
  .hero-visual { order: -1; }
}
