/*
 * Стили сайта Placebo. Значения взяты из src/theme/tokens.css приложения,
 * чтобы сайт и продукт выглядели одним целым.
 *
 * Внешних запросов нет ни одного: шрифт системный, скриптов нет. Это не
 * аскетизм, а обещание из политики конфиденциальности – сайт не грузит
 * сторонние ресурсы, значит и IP посетителя никуда не утекает.
 */

:root {
  --accent: #e8345a;
  --accent-dark: #c8264a;
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --bg-3: #ebebeb;
  --t1: #0f0f0f;
  --t2: #444444;
  --t3: #999999;
  --border: #e8e8ec;
  --on-accent: #ffffff;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-full: 999px;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--t1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 48px;
  font-weight: 800;
}

h2 {
  font-size: 32px;
  font-weight: 700;
}

h3 {
  font-size: 18px;
  font-weight: 600;
}

p {
  margin: 0 0 16px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Шапка ────────────────────────────────────────────────────────────── */

.top {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.top__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  color: var(--t1);
  letter-spacing: -0.02em;
}

.logo:hover {
  text-decoration: none;
}

.logo__mark {
  width: 28px;
  height: 28px;
}

.top__nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 15px;
}

.top__nav a {
  color: var(--t2);
}

.lang {
  display: flex;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

.lang a {
  color: var(--t3);
  padding: 4px 8px;
  border-radius: var(--r-sm);
}

.lang a:hover {
  background: var(--bg-2);
  text-decoration: none;
}

.lang [aria-current='page'] {
  color: var(--t1);
  background: var(--bg-2);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 26px;
  border-radius: var(--r-full);
  font-size: 16px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

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

.btn--primary:hover {
  background: var(--accent-dark);
}

.btn--ghost {
  background: transparent;
  color: var(--t1);
  border-color: var(--border);
}

.btn--ghost:hover {
  background: var(--bg-2);
}

.btn--sm {
  height: 38px;
  padding: 0 18px;
  font-size: 14px;
}

/* ── Экран приветствия ────────────────────────────────────────────────── */

.hero {
  padding: 88px 0 72px;
  text-align: center;
  background:
    radial-gradient(900px 380px at 50% -80px, rgba(232, 52, 90, 0.09), transparent 70%),
    var(--bg);
}

.hero__lead {
  font-size: 19px;
  color: var(--t2);
  max-width: 620px;
  margin: 0 auto 32px;
}

.hero__cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--t3);
}

/* ── Секции ───────────────────────────────────────────────────────────── */

.section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.section--muted {
  background: var(--bg-2);
}

.section__head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section__head p {
  color: var(--t2);
  margin: 0;
}

/* ── Сетки ────────────────────────────────────────────────────────────── */

.grid {
  display: grid;
  gap: 20px;
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}

.card p {
  margin: 0;
  color: var(--t2);
  font-size: 15px;
}

.card__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--r-full);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
}

/* ── Скриншоты ────────────────────────────────────────────────────────── */

.shots {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
}

.shot--wide {
  grid-column: 1 / -1;
}

.shot {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.shot figcaption {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--t2);
  border-top: 1px solid var(--border);
}

/* ── Тарифы ───────────────────────────────────────────────────────────── */

.plans {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.plan {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 14px;
  text-align: center;
  background: var(--bg);
}

.plan--best {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset;
}

.plan__term {
  font-size: 14px;
  color: var(--t2);
}

.plan__price {
  font-size: 22px;
  font-weight: 800;
  margin-top: 6px;
}

.plan__note {
  font-size: 12px;
  color: var(--t3);
  margin-top: 4px;
}

.benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}

.benefits li {
  padding-left: 26px;
  position: relative;
  color: var(--t2);
  font-size: 15px;
}

.benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: var(--r-full);
  background: var(--accent);
}

/* ── Вопросы ──────────────────────────────────────────────────────────── */

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  color: var(--t3);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
}

.faq details[open] summary::after {
  content: '–';
}

.faq details p {
  margin: 14px 0 0;
  color: var(--t2);
  max-width: 760px;
}

/* ── Подвал ───────────────────────────────────────────────────────────── */

.foot {
  border-top: 1px solid var(--border);
  padding: 44px 0;
  font-size: 14px;
  color: var(--t2);
  background: var(--bg-2);
}

.foot__cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.foot h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--t3);
  margin-bottom: 12px;
}

.foot ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.foot a {
  color: var(--t2);
}

.foot a:hover {
  color: var(--accent);
}

.foot__legal {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  color: var(--t3);
  font-size: 13px;
}

/* ── Юридические документы ────────────────────────────────────────────── */

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.doc h1 {
  font-size: 32px;
}

.doc h2 {
  font-size: 21px;
  margin-top: 40px;
}

.doc__meta {
  color: var(--t3);
  font-size: 14px;
  margin-bottom: 32px;
}

.doc p,
.doc li {
  color: var(--t2);
}

.doc ol,
.doc ul {
  padding-left: 22px;
}

.doc li {
  margin-bottom: 8px;
}

.doc__requisites {
  background: var(--bg-2);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin-top: 32px;
}

.doc__requisites p {
  margin: 0 0 6px;
}

.doc__back {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 14px;
}

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

@media (max-width: 900px) {
  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 26px;
  }

  .top__nav {
    display: none;
  }

  .lang {
    margin-left: auto;
  }

  .grid--3,
  .grid--2,
  .shots,
  .benefits,
  .foot__cols {
    grid-template-columns: 1fr;
  }

  .plans {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding: 56px 0 48px;
  }

  .section {
    padding: 48px 0;
  }
}
