/* =====================================================================
   SiteHosting — стили лендинга
   Один файл, без сборки. Адаптив под телефон внизу файла.
   ===================================================================== */

/* ---------------- Переменные ---------------- */
:root {
  --color-bg: #ffffff;
  --color-muted: #f4f6fb;
  --color-text: #131a2a;
  --color-text-soft: #5b6478;
  --color-border: #e3e7f0;
  --color-primary: #2b5cff;
  --color-primary-dark: #1c43c9;
  --color-accent: #00c48c;
  --color-danger: #e5484d;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(19, 26, 42, .06);
  --shadow: 0 12px 32px rgba(19, 26, 42, .10);
  --container: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------------- Сброс ---------------- */
*,
*::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(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }

ul { margin: 0; padding: 0; list-style: none; }

/* ---------------- Сетки ---------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.container--narrow { max-width: 760px; }

/* ---------------- Кнопки ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .05s, color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-dark); text-decoration: none; }

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--ghost:hover { border-color: var(--color-primary); color: var(--color-primary); text-decoration: none; }

.btn--lg { padding: 15px 30px; font-size: 1.05rem; }
.btn--sm { padding: 9px 16px; font-size: .9rem; }
.btn--block { width: 100%; }

.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------------- Шапка ---------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--color-text); font-weight: 800; font-size: 1.15rem; }
.logo:hover { text-decoration: none; }
.logo__mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--color-primary);
  color: #fff;
  font-size: .9rem;
  letter-spacing: .5px;
}
.logo--light { color: #fff; }
.logo--light .logo__mark { background: rgba(255, 255, 255, .18); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav__link { color: var(--color-text-soft); font-weight: 500; }
.nav__link:hover { color: var(--color-text); text-decoration: none; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 11px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.burger span { display: block; height: 2px; background: var(--color-text); border-radius: 2px; }

/* ---------------- Hero ---------------- */
.hero { padding: 72px 0 64px; background: linear-gradient(180deg, var(--color-muted) 0%, #fff 100%); }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero__title { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -.02em; }
.hero__subtitle { font-size: 1.15rem; color: var(--color-text-soft); max-width: 46ch; margin: 0 0 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }

.badge {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #e8eeff;
  color: var(--color-primary-dark);
  font-size: .85rem;
  font-weight: 600;
}

.hero__stats { display: flex; flex-wrap: wrap; gap: 28px; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-size: 1.5rem; }
.hero__stats span { color: var(--color-text-soft); font-size: .9rem; }

.hero__card { display: flex; justify-content: center; }
.mock {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mock__bar { display: flex; gap: 6px; padding: 14px; border-bottom: 1px solid var(--color-border); }
.mock__bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--color-border); }
.mock__body { padding: 22px; }
.mock__line { height: 12px; border-radius: 6px; background: var(--color-muted); margin-bottom: 12px; }
.mock__line--w70 { width: 70%; }
.mock__line--w90 { width: 90%; }
.mock__line--w60 { width: 60%; }
.mock__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.mock__tile { height: 70px; border-radius: 10px; background: linear-gradient(135deg, #e8eeff, #dfe7ff); }

/* ---------------- Секции ---------------- */
.section { padding: 72px 0; }
.section--muted { background: var(--color-muted); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section__title { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -.01em; }
.section__lead { color: var(--color-text-soft); margin: 0; }

/* ---------------- Преимущества ---------------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  padding: 26px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  transition: box-shadow .15s, transform .15s;
}
.feature:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.feature__icon { font-size: 1.7rem; margin-bottom: 12px; }
.feature__title { font-size: 1.1rem; margin-bottom: 8px; }
.feature__text { margin: 0; color: var(--color-text-soft); }

/* ---------------- Переключатель период ---------------- */
.billing-toggle {
  display: inline-flex;
  gap: 4px;
  margin-top: 22px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
}
.billing-toggle__btn {
  padding: 9px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: var(--color-text-soft);
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.billing-toggle__btn.is-active { background: var(--color-primary); color: #fff; }
.billing-toggle__save { color: var(--color-accent); font-size: .8rem; }
.billing-toggle__btn.is-active .billing-toggle__save { color: #d6ffe9; }

/* ---------------- Тарифы ---------------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: box-shadow .15s, border-color .15s, transform .15s;
}
.plan:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.plan--featured { border-color: var(--color-primary); box-shadow: var(--shadow); }
.plan__tag {
  position: absolute;
  top: -12px; left: 24px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.plan__name { font-size: 1.25rem; margin-bottom: 4px; }
.plan__desc { margin: 0 0 18px; color: var(--color-text-soft); font-size: .95rem; }

.price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 20px; }
.price__amount { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.price__cur { font-size: 1.1rem; font-weight: 700; }
.price__period { color: var(--color-text-soft); font-size: .95rem; }

.plan__list { flex: 1; margin-bottom: 22px; display: grid; gap: 10px; }
.plan__list li { position: relative; padding-left: 26px; color: var(--color-text); }
.plan__list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.plans__note { text-align: center; margin: 26px 0 0; color: var(--color-text-soft); font-size: .9rem; }

/* ---------------- Таблица сравнения ---------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius); background: #fff; }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--color-border); }
.compare thead th { background: var(--color-muted); font-size: .95rem; }
.compare tbody th { text-align: left; font-weight: 500; color: var(--color-text-soft); }
.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr:hover { background: #fafbff; }

/* ---------------- FAQ ---------------- */
.faq { display: grid; gap: 12px; }
.faq__item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 4px 20px;
}
.faq__q {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 32px;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-primary);
  transition: transform .15s;
}
.faq__item[open] .faq__q::after { transform: translateY(-50%) rotate(45deg); }
.faq__a { padding: 0 0 18px; color: var(--color-text-soft); }

/* ---------------- Форма ---------------- */
.form { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: block; margin-bottom: 18px; }
.field__label { display: block; margin-bottom: 7px; font-weight: 600; font-size: .95rem; }
.field__label b, .checkbox b { color: var(--color-danger); }
.field__input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  font: inherit;
  color: var(--color-text);
  transition: border-color .15s, box-shadow .15s;
}
.field__input::placeholder { color: #a3aab8; }
.field__input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(43, 92, 255, .15); }
textarea.field__input { resize: vertical; min-height: 84px; }

.field.is-invalid .field__input { border-color: var(--color-danger); }
.field.is-invalid .field__input:focus { box-shadow: 0 0 0 3px rgba(229, 72, 77, .15); }
.field__error { display: block; min-height: 18px; margin-top: 5px; color: var(--color-danger); font-size: .85rem; }

/* Ловушка для ботов: видна по размеру и фокусу, но не глазу.
   Сдвиг, а не display:none — часть автоматов игнорирует элементы
   с нулевым размером и не заполняет их, а такие заполняет. */
.hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.checkbox { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 0; font-size: .92rem; color: var(--color-text-soft); cursor: pointer; }
.checkbox input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--color-primary); }

.form__status { margin: 16px 0 0; min-height: 22px; text-align: center; font-weight: 600; }
.form__status.is-success { color: var(--color-accent); }
.form__status.is-error { color: var(--color-danger); }

/* ---------------- Подвал ---------------- */
.footer { background: #0e1424; color: #c9d1e2; padding: 56px 0 28px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer__text { margin: 14px 0 0; color: #8b95ac; max-width: 34ch; }
.footer__title { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer__list { display: grid; gap: 10px; }
.footer__list a { color: #c9d1e2; }
.footer__list a:hover { color: #fff; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .88rem;
  color: #8b95ac;
}

/* =====================================================================
   АДАПТИВ
   ===================================================================== */

/* Планшет */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__card { order: -1; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

/* Мобильное меню */
@media (max-width: 820px) {
  .burger { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 20px 20px;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__link { padding: 12px 4px; border-bottom: 1px solid var(--color-border); }
  .nav__cta { margin-top: 10px; }
}

/* Телефон */
@media (max-width: 620px) {
  .section { padding: 52px 0; }
  .hero { padding: 48px 0 44px; }
  .features { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .form { padding: 22px; }
  .footer__inner { grid-template-columns: 1fr; gap: 26px; }
  .hero__stats { gap: 18px; }
  .hero__stats strong { font-size: 1.25rem; }
  .btn--lg { width: 100%; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* Уважение к настройке «меньше движения» */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
