/* Публичная страница Cast Radar. Тона логотипа, но спокойно: светлая тёплая бумага,
   тонкие приглушённые обводки, мягкие тени. Зелёный радар — только акцентом.
   Шрифты системные: CSP сайта пускает только свои файлы. */

:root {
  --bg: #f4ecdd;
  --surface: #fbf7ef;
  --surface-muted: #efe4d0;
  --text: #2b251f;
  --secondary: #6e6254;
  --border: rgba(43, 37, 31, 0.14);
  --border-strong: rgba(43, 37, 31, 0.28);
  --accent: #4a6b35;
  --accent-hover: #3d5a2b;
  --kraft: #b8946a;
  --shadow: 0 1px 2px rgba(60, 45, 25, 0.06), 0 8px 24px rgba(60, 45, 25, 0.07);
  --radius: 18px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--accent);
  text-decoration-color: rgba(74, 107, 53, 0.35);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--surface-muted);
  font-size: 0.9em;
}

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding-inline: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Шапка ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.topbar__nav {
  display: flex;
  gap: 20px;
  font-size: 15px;
}

.topbar__nav a {
  color: var(--secondary);
  text-decoration: none;
}

.topbar__nav a:hover {
  color: var(--text);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 56px;
  padding-block: 40px 56px;
}

.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 750;
}

.lead {
  margin-top: 16px;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--secondary);
}

.hero .btn {
  margin-top: 28px;
}

.hero__art {
  margin: 0;
  justify-self: center;
  width: min(100%, 420px);
}

.hero__art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.btn--primary {
  background: var(--accent);
  color: #fbf7ef;
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #fbf7ef;
}

/* ---------- Секции ---------- */

.section {
  padding-block: 40px;
}

.section h2 {
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin-bottom: 18px;
}

.section__lead {
  max-width: 640px;
  color: var(--secondary);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  padding: 22px;
}

.step__num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: rgba(74, 107, 53, 0.12);
  color: var(--accent);
  font-weight: 700;
}

.step h3 {
  margin-bottom: 6px;
  font-size: 1.08rem;
  font-weight: 650;
}

.step p {
  color: var(--secondary);
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.plan {
  position: relative;
  padding: 26px 22px 22px;
}

.plan--featured {
  border-color: rgba(74, 107, 53, 0.45);
}

.plan__badge {
  position: absolute;
  top: -12px;
  left: 18px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fbf7ef;
  font-size: 13px;
  font-weight: 600;
}

.plan__badge--quiet {
  background: var(--kraft);
}

.plan__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary);
}

.plan__price {
  margin-top: 4px;
  font-size: 2.2rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.plan__note {
  margin-top: 2px;
  color: var(--secondary);
  font-size: 0.95rem;
}

.fine {
  margin-top: 18px;
  color: var(--secondary);
  font-size: 0.95rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.note {
  padding: 24px;
}

.note h2 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.docs {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs a {
  display: block;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.docs a:hover {
  border-color: var(--border-strong);
  color: var(--accent);
}

.requisites {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 22px;
  margin: 0;
}

.requisites dt {
  color: var(--secondary);
}

.requisites dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.footer {
  margin-top: 16px;
  padding-block: 24px 40px;
  border-top: 1px solid var(--border);
  color: var(--secondary);
  font-size: 0.9rem;
}

/* ---------- Узкие экраны ---------- */

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 16px 24px;
  }
  .hero__art {
    width: min(100%, 320px);
    order: -1;
  }
  .section {
    padding-block: 28px;
  }
  .steps,
  .plans,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .plans {
    gap: 26px;
  }
}

@media (max-width: 480px) {
  .topbar__nav {
    display: none;
  }
  .hero .btn {
    width: 100%;
  }
  .requisites {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .requisites dd {
    margin-bottom: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}
