/* landing.css — лендинг getkrug.com. Система: WEB-LANDING-STYLE.md
 * (rem-ступени через tokens.css, breakpoints 768/1024, контейнер 1200px,
 * БЕЗ vw/clamp). Все цвета — только var(--...) из tokens.css. */

/* ---- Reset (минимальный) ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { font-size: 16px; }
body {
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Сетка ---- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-inline);
}
.section { padding-block: var(--section-gap); }

/* ---- Шапка ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--divider);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: var(--fs-h3);
  color: var(--text-primary);
}
.brand:hover { text-decoration: none; }
/*
 * ⚠ Настоящий логотип, а не круг фирменного цвета ([[BUG-383]]).
 *
 * Замечание Александра 16.08 (пункт 2): «Некоторые страницы типа
 * getkrug.com/index.html#download имеют старый favicon и логотип. Какие-то ещё элементы
 * старые, которые отличаются от getkrug.com/app/. Нужно обновить, сделать как /app».
 *
 * Круг заливкой был заглушкой с самого начала: логотип к тому времени не был нарисован.
 * Он давно есть (`design_templates/Логотип`), и приложение показывает именно его.
 */
.brand-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--logo-circle) url('../img/logo-512.png') center / cover no-repeat;
  flex: none;
}
.site-nav {
  display: none;
  gap: 24px;
  margin-left: auto;
}
.site-nav a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: var(--fs-body);
}
.site-nav a:hover { color: var(--text-primary); text-decoration: none; }
.header-cta { margin-left: auto; }

@media (min-width: 768px) {
  .site-nav { display: flex; }
  .header-cta { margin-left: 0; }
}

/* ---- Кнопки: pill-канон макетов ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 700;
  font-size: var(--fs-body);
  line-height: 1;
  padding: 14px 28px;
  border: 0;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--button-primary);
  color: var(--button-primary-text);
}
.btn-primary:hover,
.btn-primary:active { background: var(--button-primary-pressed); }
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border);
  padding: 12px 26px; /* компенсация рамки — одинаковая высота с primary */
}
.btn-secondary:hover { border-color: var(--accent); }
.btn-sm { padding: 10px 20px; font-size: var(--fs-small); }
.btn-disabled { opacity: 0.55; cursor: default; }
.btn-disabled:hover { border-color: var(--border); }
.btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; }
.hero .container {
  position: relative;
  display: grid;
  gap: 32px;
  padding-block: var(--section-gap);
  text-align: center;
  justify-items: center;
}
.hero-logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  /* Тот же логотип, что в шапке и в приложении ([[BUG-383]]). */
  background: var(--logo-circle) url('../img/logo-512.png') center / cover no-repeat;
}
.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: var(--lh-tight);
  max-width: 18ch;
}
.hero .lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
  max-width: 52ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.hero-note { font-size: var(--fs-small); color: var(--text-secondary); }

/* Геометрия: декоративные круги (имя продукта — «круг»). Чисто CSS,
 * pointer-events нет (декор не перехватывает клики — урок BUG-98). */
.hero-decor {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-decor--ring {
  width: 420px;
  height: 420px;
  border: 2px solid var(--divider);
  top: -180px;
  right: -160px;
}
.hero-decor--fill {
  width: 220px;
  height: 220px;
  background: var(--surface);
  bottom: -110px;
  left: -80px;
}

/* ---- Секции ---- */
.section h2 {
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: var(--lh-tight);
  text-align: center;
  margin-bottom: 40px;
}

/* ---- Возможности: карточки ---- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}
.feature-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 28px;
  display: grid;
  gap: 12px;
  justify-items: start;
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-card h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: var(--lh-tight);
}
.feature-card p {
  color: var(--text-secondary);
  line-height: var(--lh-normal);
}

/* ---- Безопасность: плашка ---- */
.security { background: var(--surface); }
.security-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  list-style: none;
  padding: 0;
  max-width: 820px;
  margin-inline: auto;
}
@media (min-width: 768px) {
  .security-list { grid-template-columns: repeat(2, 1fr); }
}
.security-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.security-dot {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 6px;
}
.security-list strong {
  display: block;
  font-weight: 600;
}
.security-list span { color: var(--text-secondary); }

/* ---- Финальный CTA ---- */
.cta-final .container {
  display: grid;
  gap: 24px;
  justify-items: center;
  text-align: center;
}

/* ---- Документ-страницы (terms / privacy) ---- */
.doc {
  max-width: 820px;
  margin-inline: auto;
  padding-block: var(--section-gap);
}
.doc h1 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: var(--lh-tight);
  margin-bottom: 8px;
}
.doc-updated {
  color: var(--text-secondary);
  font-size: var(--fs-small);
  margin-bottom: 32px;
}
.doc h2 {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: var(--lh-tight);
  margin-top: 32px;
  margin-bottom: 12px;
}
.doc p, .doc li {
  line-height: var(--lh-relaxed);
  color: var(--text-primary);
}
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin-block: 12px; }
/* Черновик-плашка: страница-каркас не является юридическим документом. */
.doc-draft {
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  margin-bottom: 32px;
  color: var(--text-secondary);
}
.doc-draft strong { color: var(--ink); }
/* Заглушка «требует текста заказчика» внутри разделов. */
.doc-todo {
  display: block;
  background: var(--surface);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-secondary);
  font-size: var(--fs-small);
}

/* ---- 404 ---- */
.notfound {
  min-height: 60vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.notfound-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 6px solid var(--logo-circle);
}
.notfound h1 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: var(--lh-tight);
}
.notfound p { color: var(--text-secondary); }

/* ---- Футер ---- */
.site-footer {
  border-top: 1px solid var(--divider);
  padding-block: 32px;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-small);
  color: var(--text-secondary);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-primary);
}
.footer-brand .brand-dot { width: 20px; height: 20px; }
