/* Сайт «Клевомера». Цвета — из темы приложения (app/.../ui/theme/Theme.kt).
   Без внешних шрифтов и скриптов: страница не передаёт данные посетителей третьим лицам. */

:root {
  --bg: #f8f9fc;
  --surface: #ffffff;
  --surface-2: #eceff4;
  --text: #121a24;
  --muted: #4d5a6a;
  --line: #dde3ec;
  --primary: #0b5394;
  --primary-soft: #d3e4ff;
  --on-primary-soft: #001c38;
  --green: #2e7d5b;
  --green-soft: #c8ebd6;
  --amber: #b26a00;
  --water-1: #e3f0ff;
  --water-2: #d6f0e4;
  --shadow: 0 24px 60px -24px rgba(11, 40, 80, 0.35);
  --radius: 22px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1520;
    --surface: #151e2b;
    --surface-2: #1c2737;
    --text: #e6edf6;
    --muted: #9fb0c4;
    --line: #263346;
    --primary: #a3c9ff;
    --primary-soft: #004882;
    --on-primary-soft: #d3e4ff;
    --green: #8fd4b0;
    --green-soft: #0f5238;
    --amber: #ffb95c;
    --water-1: #10233a;
    --water-2: #0f2a24;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }

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

/* ---------- шапка ---------- */

.top {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 19px; }
.brand svg { width: 34px; height: 34px; flex: none; }
.top nav { display: flex; gap: 22px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--text); }
@media (max-width: 720px) { .top nav { display: none; } }

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--bg); box-shadow: 0 10px 24px -10px var(--primary); }
.btn-ghost { color: var(--text); background: var(--surface); border: 1px solid var(--line); }
.btn svg { width: 20px; height: 20px; }
.btn[aria-disabled="true"] { cursor: default; }

/* ---------- первый экран ---------- */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--water-1), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, var(--water-2), transparent 60%);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; padding: 72px 0 96px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; padding: 40px 0 64px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--green-soft); color: var(--text);
  font-size: 14px; font-weight: 600;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

h1 {
  font-size: clamp(36px, 5.4vw, 60px); line-height: 1.05; letter-spacing: -0.025em;
  margin: 18px 0 18px; text-wrap: balance;
}
h1 .accent { color: var(--primary); }
.lead { font-size: clamp(18px, 2vw, 20px); color: var(--muted); max-width: 34em; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* ---------- телефоны ---------- */

.phones { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 520px; }
.phone {
  width: 260px; border-radius: 38px; padding: 10px;
  background: #0c1118; box-shadow: var(--shadow);
}
.phone img { border-radius: 30px; width: 100%; height: auto; }
.phone.back { position: absolute; left: 8%; bottom: 40px; transform: rotate(-7deg); width: 230px; opacity: .96; }
.phone.front { position: relative; transform: translateX(22%) rotate(3deg); }
@media (max-width: 900px) {
  .phones { min-height: 0; padding-top: 12px; }
  .phone.back { display: none; }
  .phone.front { transform: none; width: min(280px, 78vw); }
}

/* ---------- разделы ---------- */

section { padding: 88px 0; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; text-wrap: balance; }
.section-head p { color: var(--muted); margin: 0; font-size: 18px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px;
}
.card h3 { margin: 14px 0 8px; font-size: 19px; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--on-primary-soft);
}
.icon.green { background: var(--green-soft); color: var(--text); }
.icon svg { width: 24px; height: 24px; }

/* оценка клёва */
.score { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .score { grid-template-columns: 1fr; } }
.factors { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.factors li { padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; }
.factors .plus { background: var(--green-soft); }
.factors .minus { background: color-mix(in srgb, #ffdad6 85%, var(--bg)); color: #410002; }
@media (prefers-color-scheme: dark) { .factors .minus { background: #5c1a14; color: #ffdad6; } }
.badges { display: flex; gap: 10px; margin-top: 24px; }
.badge {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; color: #fff;
}
.score-shot { display: flex; justify-content: center; }
.shot-card { width: min(460px, 100%); border-radius: 26px; box-shadow: var(--shadow); }

/* тарифы */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; }
.plan .price { font-size: 32px; font-weight: 800; margin: 6px 0 2px; letter-spacing: -0.02em; }
.plan .per { color: var(--muted); font-size: 15px; }
.plan ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 16px; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: "✓"; color: var(--green); font-weight: 800; }
.plan.featured { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.tag { align-self: flex-start; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--on-primary-soft); }

/* вопросы */
.faq { display: grid; gap: 12px; max-width: 820px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; }
summary { cursor: pointer; font-weight: 650; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--muted); }

/* подвал */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { color: var(--muted); }

/* ---------- юридические страницы ---------- */

.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(32px, 4.4vw, 44px); margin: 0 0 8px; }
.doc .meta { color: var(--muted); margin: 0 0 36px; }
.doc h2 { font-size: 23px; margin: 40px 0 10px; letter-spacing: -0.01em; }
.doc h3 { font-size: 18px; margin: 24px 0 6px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { background: var(--surface-2); font-weight: 650; }
.summary-box {
  background: var(--primary-soft); color: var(--on-primary-soft);
  border-radius: var(--radius); padding: 22px 26px; margin: 0 0 32px;
}
.summary-box p { color: inherit; margin: 0 0 8px; font-weight: 650; }
.summary-box ul { margin: 0; color: inherit; }
.summary-box li { color: inherit; }
.fill {
  background: #fff3cd; color: #5c4400; padding: 1px 6px; border-radius: 6px; font-weight: 600;
}
