/* ─── TylerAgent: строго, много воздуха, без цвета ради цвета ─── */
:root {
  --bg: #0b0b0c;
  --bg-1: #121214;
  --bg-2: #18181b;
  --bg-3: #222226;
  --line: #232327;
  --line-2: #33333a;
  --text: #ededef;
  --muted: #8b8b93;
  --dim: #5f5f67;
  --white: #f4f4f5;
  --danger: #e5776f;
  --ok: #8fc7a2;
  --soap: #e2a6bf;
  --radius: 12px;
  --wrap: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }

/* ─── Кнопки ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--white);
  background: var(--white); color: #0b0b0c; font: 500 14px/1 "Inter", sans-serif; cursor: pointer;
  transition: opacity .15s, background .15s;
}
.btn:hover { opacity: .88; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--bg-2); opacity: 1; }
.btn--small { height: 34px; padding: 0 14px; font-size: 13px; }
.btn--wide { width: 100%; height: 46px; }
.btn[disabled] { opacity: .5; cursor: progress; }

/* ─── Полоса и шапка ─── */
.notice { border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); text-align: center; padding: 8px 20px; }
.notice b { color: var(--text); font-weight: 500; }
.countdown { margin-left: 8px; color: var(--text); font-variant-numeric: tabular-nums; }
.countdown:empty { display: none; }

.top { position: sticky; top: 0; z-index: 20; background: rgba(11, 11, 12, .8); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.top__row { display: flex; align-items: center; gap: 28px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.logo img { width: 26px; height: 26px; border-radius: 50%; background: var(--soap); object-fit: contain; object-position: center bottom; padding: 3px 1px 0; }
.top__nav { display: flex; gap: 24px; margin-left: auto; font-size: 14px; }
.top__nav a { color: var(--muted); transition: color .15s; }
.top__nav a:hover, .top__nav a.is-here { color: var(--text); }

/* ─── Первый экран ─── */
.hero { padding: 112px 0 56px; text-align: center; }
.hero h1 { max-width: 900px; margin: 0 auto; }
.hero .lead { max-width: 620px; margin: 22px auto 0; color: var(--muted); font-size: 18px; line-height: 1.55; }

/* поле ввода, как в чате: печатает примеры */
.prompt {
  width: min(680px, 100%); margin: 40px auto 0; display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 22px; border-radius: 28px; background: var(--bg-1); border: 1px solid var(--line-2);
  text-align: left; box-shadow: 0 0 0 6px rgba(255, 255, 255, .02);
}
.prompt__text { flex: 1; color: var(--muted); font-size: 16px; min-height: 26px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prompt__text::after { content: ""; display: inline-block; width: 1px; height: 18px; background: var(--text); margin-left: 2px; vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.prompt__go { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--white); display: grid; place-items: center; }
.prompt__go svg { width: 18px; height: 18px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.chips span { font-size: 13px; color: var(--muted); padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; }

/* скриншот приложения */
.shot { margin: 72px auto 0; width: min(1120px, 100% - 40px); border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .9); }
.shot img { width: 100%; height: auto; }
.caption { text-align: center; color: var(--dim); font-size: 13px; margin-top: 14px; }

/* ─── Разделы ─── */
.section { padding: 120px 0; border-top: 1px solid var(--line); }
.section__head { max-width: 640px; margin-bottom: 56px; }
.section__head p { color: var(--muted); font-size: 17px; margin-top: 16px; }
.section__head--center { margin-inline: auto; text-align: center; }

/* сетка возможностей: текст, тонкие разделители */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.grid > div { padding: 28px 28px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid h3 { margin-bottom: 8px; }
.grid p { color: var(--muted); font-size: 15px; }
.num { display: block; color: var(--dim); font-size: 13px; font-variant-numeric: tabular-nums; margin-bottom: 18px; }

/* два скриншота рядом */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pair figure { margin: 0; }
.pair .shot { margin: 0; width: 100%; }
.pair figcaption { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* ─── Сравнение ─── */
.compare { overflow-x: auto; }
.compare table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15px; }
.compare th, .compare td { padding: 16px 12px; text-align: center; border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 400; }
.compare th { color: var(--text); font-weight: 500; }
.compare td:first-child, .compare th:first-child { text-align: left; color: var(--text); padding-left: 0; }
.compare .is-us { color: var(--text); font-weight: 500; }

/* ─── Роли для бизнеса ─── */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.filter { border: 1px solid var(--line); background: transparent; color: var(--muted); height: 34px; padding: 0 14px; border-radius: 999px; font: 400 14px "Inter", sans-serif; cursor: pointer; }
.filter:hover { color: var(--text); }
.filter.is-on { background: var(--white); border-color: var(--white); color: #0b0b0c; }
.agents { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.agent { padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.agent h3 { font-size: 16px; margin-bottom: 6px; }
.agent p { color: var(--muted); font-size: 14px; }
.agent__ch { margin-top: 14px; color: var(--dim); font-size: 12px; }

/* шаги */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 1px solid var(--line-2); padding-top: 20px; }
.steps li::before { content: "0" counter(s); display: block; color: var(--dim); font-size: 13px; margin-bottom: 16px; }
.steps b { display: block; font-weight: 600; font-size: 17px; margin-bottom: 6px; }
.steps span { color: var(--muted); font-size: 15px; }

/* ─── Тарифы ─── */
.pricing-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.switch { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); }
.switch__btn { border: 0; background: transparent; color: var(--muted); height: 30px; padding: 0 14px; border-radius: 999px; font: 400 13px "Inter", sans-serif; cursor: pointer; }
.switch__btn.is-on { background: var(--bg-3); color: var(--text); }
.switch__btn small { color: var(--muted); margin-left: 4px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plans--4 { grid-template-columns: repeat(4, 1fr); }
.plan { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); display: flex; flex-direction: column; }
.plan--hot { border-color: var(--line-2); background: var(--bg-1); }
.plan h4 { font-size: 15px; font-weight: 500; }
.plan__badge { display: none; }
.price { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; margin: 14px 0 22px; }
.price small { font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; flex: 1; font-size: 14px; color: var(--muted); }
.plan li::before { content: "—"; color: var(--dim); margin-right: 10px; }
.note { color: var(--muted); font-size: 14px; margin-top: 28px; }

/* ─── Форма ─── */
.quick { text-align: center; }
.quick h2 { margin-bottom: 14px; }
.quick .lead { color: var(--muted); font-size: 17px; }
.quick__form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 36px auto 0; max-width: 520px; }
.quick__form input[name=contact] { flex: 1 1 260px; }
.consent--quick { flex-basis: 100%; justify-content: center; }

.preorder { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.preorder__intro p { color: var(--muted); font-size: 17px; margin-top: 16px; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; color: var(--muted); font-size: 15px; }
.checks li::before { content: "—"; color: var(--dim); margin-right: 10px; }
.form { display: grid; gap: 16px; }
.form__who, .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span { font-size: 13px; color: var(--muted); }
input, select, textarea {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--bg-1); color: var(--text); font: 400 15px "Inter", sans-serif; outline: none; transition: border-color .15s;
}
textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
input:focus, select:focus, textarea:focus { border-color: var(--muted); }
input.is-bad { border-color: var(--danger); }
::placeholder { color: var(--dim); }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; color: var(--muted); user-select: none; transition: all .15s; }
.chip:hover span { color: var(--text); }
.chip input:checked + span { background: var(--white); border-color: var(--white); color: #0b0b0c; }
.consent { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); cursor: pointer; }
.consent input { width: 16px; height: 16px; flex: none; accent-color: var(--white); }
.consent a { text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__error { color: var(--danger); font-size: 14px; }
.thanks { text-align: center; padding: 40px 0; display: grid; gap: 10px; justify-items: center; }
.thanks__ico { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text); }
.thanks p { color: var(--muted); }

/* ─── Вопросы ─── */
.faq { display: grid; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; padding: 22px 0; font-size: 17px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 300; font-size: 22px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding-bottom: 22px; max-width: 680px; }

/* переход между страницами */
.crosslink { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 0; }
.crosslink p { color: var(--muted); margin-top: 8px; }

.foot { border-top: 1px solid var(--line); padding: 32px 0 80px; color: var(--dim); font-size: 13px; }
.foot__row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a:hover { color: var(--text); }

.sticky-cta { display: none; }

/* ─── Адаптив ─── */
@media (max-width: 960px) {
  .grid, .agents { grid-template-columns: repeat(2, 1fr); }
  .plans, .plans--4 { grid-template-columns: repeat(2, 1fr); }
  .pair, .preorder { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .top__nav { display: none; }
  .top__row .btn { margin-left: auto; }
  .hero { padding: 72px 0 40px; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  .hero .lead { font-size: 16px; }
  .section { padding: 80px 0; }
  .grid, .agents, .plans, .plans--4, .steps, .row { grid-template-columns: 1fr; }
  .prompt__text { font-size: 14px; }
  .shot { margin-top: 48px; border-radius: 10px; }
  .crosslink { flex-direction: column; align-items: flex-start; }
  .sticky-cta { display: flex; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30; transition: transform .25s, opacity .25s; }
  .sticky-cta.is-hidden { transform: translateY(120%); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
