/* Nexis — посадочная под рекламный трафик (/salon/).
   Автономный файл: страница НЕ подключает style.css, чтобы не тянуть 67 КБ общих
   утилит на платный мобильный трафик. */

/* ─── Fonts ─────────────────────────────────────────────────────── */
@font-face {
  font-family: "Prata";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/prata-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Prata";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/prata-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2122, U+2212;
}

/* ─── Tokens ────────────────────────────────────────────────────── */
:root {
  /* Тёплая нейтральная база вместо холодного slate — уводит от «дефолтного» вида. */
  --ink: #17120e;
  --ink-2: #3d352e;
  --ink-3: #6e645a;
  --bone: #f7f3ee;
  --paper: #ffffff;
  --sand: #ede5d9;
  /* Единственный акцент. Используется только для действий, цен и правил. */
  --clay: #b4552f;
  --clay-dark: #8f3f1d;
  --clay-tint: #f7eae2;
  --line: rgba(23, 18, 14, 0.14);
  --line-soft: rgba(23, 18, 14, 0.07);

  --display: "Prata", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;

  --wrap: min(1080px, calc(100% - 2.5rem));
  --tap: 48px;
  --r: 4px;
  --ease: cubic-bezier(0.2, 0, 0.2, 1);
}

/* ─── Reset ─────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.14;
  text-wrap: balance;
}
h1 {
  font-size: clamp(1.95rem, 5.4vw, 3.1rem);
}
h2 {
  font-size: clamp(1.55rem, 3.8vw, 2.3rem);
}
h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
}
p {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Цифры — крупным полужирным sans: читаемее серифа и не требует лишних
   подмножеств шрифта (в Prata нет знака ₽). */
b,
strong {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}
.lede {
  font-size: clamp(1.02rem, 1.8vw, 1.15rem);
  color: var(--ink-3);
  max-width: 34rem;
}

/* Якоря не должны уезжать под шапку. */
[id] {
  scroll-margin-top: 4.5rem;
}

/* ─── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--tap);
  padding: 0.75rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--r);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}
.btn--primary {
  background: var(--clay);
  color: #fff;
}
.btn--primary:hover {
  background: var(--clay-dark);
}
.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--outline:hover {
  border-color: var(--ink);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  padding-inline: 0.25rem;
  text-decoration: underline;
  text-decoration-color: var(--clay);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}
.btn--ghost:hover {
  color: var(--clay);
}
.btn--block {
  width: 100%;
}
.btn:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}

/* ─── Header ────────────────────────────────────────────────────── */
/* Навигации нет намеренно: на платной посадочной каждая ссылка в меню —
   это оплаченный клик, ушедший не в заявку. */
.hd {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 243, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.hd__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
}
.hd__logo {
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
}
.hd__tg {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--clay);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

/* ─── Sections ──────────────────────────────────────────────────── */
.sec {
  padding: clamp(3rem, 7vw, 5rem) 0;
}
.sec--paper {
  background: var(--paper);
  border-block: 1px solid var(--line-soft);
}
.sec--ink {
  background: var(--ink);
  color: rgba(247, 243, 238, 0.8);
}
.sec--ink h2,
.sec--ink h3 {
  color: var(--bone);
}
.sec--ink .lede {
  color: rgba(247, 243, 238, 0.72);
}
.sec__head {
  max-width: 40rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}
.sec__head .lede {
  margin-top: 0.9rem;
}

/* Тонкая клеевая линия как повторяющийся мотив вместо иконок в квадратах. */
.rule {
  width: 2.5rem;
  height: 2px;
  background: var(--clay);
  border: 0;
  margin: 0 0 1.25rem;
}

/* ─── Hero ──────────────────────────────────────────────────────── */
.hero {
  padding: clamp(2.25rem, 6vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4rem);
}
.hero__in {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
}
.hero__who {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--clay);
}
.hero .lede {
  margin-top: 0.75rem;
}

/* Цена — типографикой, а не бейджем: единственная причина, по которой
   посетитель из рекламы вообще читает дальше. */
.prices {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(1.25rem, 4vw, 2.25rem);
  margin: 1.6rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.prices li {
  padding: 0.35rem 0;
}
.prices b {
  display: block;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  line-height: 1.2;
}
.prices span {
  font-size: 0.85rem;
  color: var(--ink-3);
}
.acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.6rem;
}
.fine {
  margin-top: 1.1rem;
  font-size: 0.88rem;
  color: var(--ink-3);
  max-width: 30rem;
}

/* Реальный скриншот вместо синтетического мокапа: доказательство, а не рисунок. */
.shot {
  margin: 0;
  position: relative;
}
.shot img {
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.shot figcaption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--ink-3);
}
/* На мобильном показываем короткое «окно» в тот же скриншот: полноразмерный
   телефон съел бы почти экран прокрутки сразу под оффером. */
.shot--phone img {
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  aspect-ratio: 600 / 700;
  object-fit: cover;
  object-position: top;
}
@media (min-width: 900px) {
  .shot--phone img {
    aspect-ratio: 600 / 1298;
  }
}

@media (min-width: 900px) {
  .hero__in {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }
}

/* ─── Proof ─────────────────────────────────────────────────────── */
.proof {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}
.proof__shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}
.proof__shots img {
  width: 100%;
  max-width: 320px;
  border-radius: 10px;
  border: 1px solid var(--line);
  aspect-ratio: 600 / 900;
  object-fit: cover;
  /* Сдвиг вниз обрезает шапку сайта: она уже видна в первом экране, и два
     скриншота с одинаковым логотипом и меню читаются как одна картинка
     дважды. Здесь нужен прайс, а не повтор навигации. */
  object-position: 0 78%;
}
/* Колонка со скриншотом шириной ровно под сам скриншот: иначе одно
   изображение болтается в широкой колонке с пустотой справа. */
@media (min-width: 900px) {
  .proof {
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 3.5rem);
  }
}

.ticks li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.65rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  /* Галочка рисуется углом из двух границ: плечи разной длины, иначе
     получается симметричная «птичка», которую читают как битый глиф. */
  width: 0.6rem;
  height: 0.34rem;
  border-left: 2px solid var(--clay);
  border-bottom: 2px solid var(--clay);
  transform: rotate(-45deg);
}
.proof__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.note {
  margin-top: 1.4rem;
  padding-left: 1rem;
  border-left: 2px solid var(--clay);
  font-size: 0.92rem;
  color: var(--ink-3);
}

/* Блок снятия главного возражения «у меня уже есть система записи». */
.callout {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding: clamp(1.25rem, 3.5vw, 2rem);
  background: var(--clay-tint);
  border-radius: 8px;
}
.callout h3 {
  margin-bottom: 0.6rem;
}
.callout p {
  max-width: 48rem;
  color: var(--ink-2);
}

/* ─── Offer / условия ───────────────────────────────────────────── */
.cols {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}
@media (min-width: 760px) {
  .cols--2 {
    grid-template-columns: 1fr 1fr;
  }
}
.cols h3 {
  margin-bottom: 0.9rem;
}
.cols h3 small {
  display: block;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clay);
  letter-spacing: 0.02em;
  margin-top: 0.3rem;
}

/* Панель записей бота. Таблица широкая: на мобильном показываем левый срез
   (ID, дата/время, услуга) крупно — уменьшенная целиком она нечитаема. */
.admin {
  margin: clamp(2rem, 5vw, 3rem) 0 0;
}
.admin img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  aspect-ratio: 0.62;
  object-fit: cover;
  object-position: left top;
  background: var(--paper);
}
.admin figcaption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--ink-3);
}
@media (min-width: 900px) {
  .admin img {
    aspect-ratio: 1600 / 927;
  }
}

.facts {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: clamp(1.5rem, 4vw, 2rem);
  border-top: 1px solid var(--line);
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}
@media (min-width: 760px) {
  .facts {
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  }
}
.facts h3 {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.7rem;
}
.facts p {
  color: var(--ink-2);
}
.facts--no p {
  color: var(--ink-3);
}

/* ─── Form ──────────────────────────────────────────────────────── */
.formgrid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
@media (min-width: 900px) {
  .formgrid {
    grid-template-columns: 1fr 1fr;
  }
}
.steps {
  counter-reset: s;
  margin-top: 1.5rem;
}
.steps li {
  counter-increment: s;
  position: relative;
  padding-left: 2.1rem;
  margin-bottom: 0.8rem;
}
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--clay);
}
.direct {
  margin-top: 1.6rem;
  font-size: 0.95rem;
}
.direct a {
  font-weight: 600;
  color: var(--bone);
  text-decoration: underline;
  text-decoration-color: var(--clay);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
  display: inline-block;
  padding: 0.35rem 0;
}

.card {
  background: var(--paper);
  border-radius: 8px;
  padding: clamp(1.25rem, 3.5vw, 1.9rem);
  color: var(--ink-2);
}
.field {
  margin-bottom: 1.1rem;
}
.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.field label span {
  color: var(--clay);
}
.field label small {
  font-weight: 400;
  color: var(--ink-3);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-3);
}
.field textarea {
  min-height: 7rem;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--clay);
  outline: none;
  box-shadow: 0 0 0 3px var(--clay-tint);
}

/* Согласие — обычным мелким текстом. В синий красим только саму ссылку,
   иначе восемь строк юридического текста визуально забивают форму. */
.consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ink-3);
  cursor: pointer;
  margin-bottom: 1.1rem;
}
.consent input {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.15rem 0 0;
  accent-color: var(--clay);
}
.consent a {
  color: var(--clay);
  text-decoration: underline;
}
.err {
  margin: -0.4rem 0 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clay-dark);
}
.consent.is-bad {
  color: var(--clay-dark);
}
.ok {
  padding: clamp(1.25rem, 3.5vw, 1.9rem);
  background: var(--clay-tint);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 600;
}

/* ─── Footer ────────────────────────────────────────────────────── */
.ft {
  background: var(--ink);
  color: rgba(247, 243, 238, 0.55);
  padding: 2rem 0 calc(2rem + var(--bar-h, 0px));
  font-size: 0.82rem;
  line-height: 1.7;
  border-top: 1px solid rgba(247, 243, 238, 0.1);
}
.ft a {
  color: rgba(247, 243, 238, 0.8);
  text-decoration: underline;
}

/* ─── Sticky mobile bar ─────────────────────────────────────────── */
/* Постоянно доступное действие — заявка, а не «выбрать решение». */
.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: none;
  gap: 0.6rem;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.bar .btn {
  flex: 1;
  min-width: 0;
  padding-inline: 0.75rem;
}
@media (max-width: 899px) {
  .bar {
    display: flex;
  }
  body {
    --bar-h: 76px;
  }
}
.bar[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
