/* Главная страница, вход и регистрация. Отдельный файл, чтобы стили кабинета
   не тащились на публичные страницы (и наоборот). */
:root {
  --blue: #2f6bff;
  --blue-dark: #2356d6;
  --brand-2: #7c4dff;
  --ink: #17212b;
  --muted: #6b7785;
  --line: #e3e8ef;
  --bg: #f6f8fb;
  --ok: #2e9e5b;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.25; margin: 0 0 12px; }
h1 { font-size: 40px; letter-spacing: -0.5px; }
h2 { font-size: 30px; letter-spacing: -0.3px; }
h3 { font-size: 18px; }
p { margin: 0 0 12px; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
code { background: #eef2f7; border-radius: 5px; padding: 1px 5px; font-size: 90%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }

/* ---------------------------------------------------------------- кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-dark); }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: #c6d0dc; background: #fbfcfe; }
.btn.big { padding: 14px 26px; font-size: 17px; border-radius: 12px; }
.btn.wide { width: 100%; }

/* ------------------------------------------------------------------ шапка */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand-mark { display: block; width: 30px; height: 30px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 15px; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-actions { display: flex; gap: 10px; }

/* ------------------------------------------------------------------- герой */
.hero { padding: 64px 0 56px; background:
  radial-gradient(900px 400px at 15% -10%, #e8f1ff 0%, rgba(232,241,255,0) 70%),
  radial-gradient(700px 380px at 90% 0%, #eef7f1 0%, rgba(238,247,241,0) 65%); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.pill { display: inline-block; background: #fff; border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.lead { font-size: 18px; color: #43505f; max-width: 560px; }
.hero-cta { display: flex; gap: 12px; margin: 22px 0 18px; flex-wrap: wrap; }
.hero-notes { list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 14px; }
.hero-notes li { padding-left: 22px; position: relative; margin-bottom: 6px; }
.hero-notes li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

/* «скриншот» календаря — рисуется стилями, картинок не требует */
.mock { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(23,33,43,.14); }
.mock-top { display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  border-bottom: 1px solid var(--line); background: #fbfcfe; }
.mock-top .dot { width: 9px; height: 9px; border-radius: 50%; background: #dfe5ec; }
.mock-title { margin-left: 10px; font-size: 13px; color: var(--muted); font-weight: 600; }
.mock-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--line); }
.mock-day { background: #fff; min-height: 62px; padding: 5px 6px; display: flex; flex-direction: column; gap: 3px; }
.mock-day.has { background: #fbfdff; }
.mock-num { font-size: 11px; color: #98a4b3; }
.mock-chip { font-size: 10px; line-height: 1.4; background: #e8f1ff; color: #14588f;
  border-radius: 5px; padding: 2px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ----------------------------------------------------------------- секции */
.section { padding: 68px 0; }
.section.alt { background: var(--bg); }
.section h2 { text-align: center; }
.section-sub { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 34px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card .ic { font-size: 24px; margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 700; margin-bottom: 12px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }
.how-note { margin-top: 22px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--blue);
  border-radius: 12px; padding: 16px 18px; color: #43505f; font-size: 15px; }

/* ----------------------------------------------------------------- тарифы */
.plans { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; align-items: start; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 18px; display: flex; flex-direction: column; height: 100%; }
.plan.featured { border-color: var(--blue); box-shadow: 0 14px 34px rgba(0,119,255,.14); }
.plan-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  white-space: nowrap; }
.plan-price { font-size: 26px; font-weight: 700; }
.plan-price span { font-size: 14px; font-weight: 500; color: var(--muted); }
.plan-tag { color: var(--muted); font-size: 13px; margin: 4px 0 14px; }
.plan-list { list-style: none; padding: 0; margin: 0 0 18px; font-size: 14px; flex: 1; }
.plan-list li { padding: 5px 0 5px 20px; position: relative; border-bottom: 1px dashed #eef1f5; }
.plan-list li::before { content: '·'; position: absolute; left: 6px; color: #b3bdc9; }
.plan-list li.yes::before { content: '✓'; color: var(--ok); left: 4px; font-weight: 700; }
.plan-list li.no { color: #a3adb9; }
.plan-list li.no::before { content: '—'; left: 3px; color: #cbd3dc; }
.pricing-foot { text-align: center; color: var(--muted); font-size: 14px; max-width: 720px; margin: 26px auto 0; }

/* -------------------------------------------------------------------- FAQ */
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 8px; }
details p { color: #43505f; margin: 0; font-size: 15px; }

/* -------------------------------------------------------------- призыв, подвал */
.cta { background: linear-gradient(135deg, #0b63d6, #0077ff); color: #fff; padding: 46px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { margin: 0 0 6px; }
.cta p { margin: 0; opacity: .9; }
.cta .btn.primary { background: #fff; color: var(--blue); }
.cta .btn.primary:hover { background: #eef4ff; }
.footer { border-top: 1px solid var(--line); padding: 22px 0; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; }

/* ------------------------------------------------------- вход и регистрация */
.auth-page { min-height: 100vh; display: grid; place-items: center; background: var(--bg); padding: 32px 16px; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 28px; box-shadow: 0 18px 50px rgba(23,33,43,.08); }
.auth-card .brand { justify-content: center; margin-bottom: 6px; }
.auth-sub { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.auth-tabs { display: flex; background: #f1f4f8; border-radius: 10px; padding: 3px; margin-bottom: 20px; }
.auth-tabs button { flex: 1; border: 0; background: transparent; padding: 9px; border-radius: 8px;
  font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.auth-tabs button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(23,33,43,.1); }
.field { display: block; margin-bottom: 14px; font-size: 14px; font-weight: 600; }
.field input {
  width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-weight: 400; background: #fff; color: var(--ink);
}
.field input:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,119,255,.12); }
.form-error { color: #d1453b; font-size: 14px; min-height: 20px; margin-bottom: 8px; }
.form-hint { color: var(--muted); font-size: 13px; margin-top: 14px; text-align: center; }
.auth-plan { background: #f2f8ff; border: 1px solid #cfe4ff; color: #14588f; border-radius: 10px;
  padding: 10px 12px; font-size: 14px; margin-bottom: 16px; }
.auth-back { display: block; text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }

@media (max-width: 980px) {
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .cards, .steps { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 620px) {
  .cards, .steps, .plans { grid-template-columns: 1fr; }
  .nav-inner { height: auto; padding: 12px 20px; flex-wrap: wrap; }
  .nav-actions { margin-left: auto; }
}
