/* ============================================================
   Лендинг разработчика Telegram-ботов.
   Чёрный фон, янтарный акцент, острые углы, моноширинные подписи.
   Порядок: токены → база → компоненты → секции → адаптив.
   ============================================================ */

/* -------------------------------- ТОКЕНЫ ------------------------------- */
:root {
  --bg: #111110;
  --bg-2: #1c1b19;
  --bg-alt: #242320;
  --surface: #2a2926;

  --ink: #ededed;
  --ink-2: #a1a1a1;
  --muted: #666666;

  --line: #2e2e2e;
  --line-2: #1f1f1f;

  --accent: #f99c00;
  --accent-2: #ff5b1f;
  --ok: #0ac970;

  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --nav-h: 76px;
  --max: 1280px;
}

/* --------------------------------- БАЗА -------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
  touch-action: pan-x pan-y;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}

/* Фоновий шар: сітка + шумова текстура */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
}
/* Шумова текстура поверх сітки */
.grid-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.04;
  background-size: 200px 200px;
}
.nav, main, .footer { position: relative; z-index: 1; }

/* Декоративні SVG-елементи */
.deco {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
}
.deco--tl {
  top: 60px; left: -60px;
  width: 320px; height: 320px;
}
.deco--br {
  bottom: 80px; right: -40px;
  width: 200px; height: 340px;
}
@media (max-width: 768px) {
  .deco { display: none; }
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; transition: color 0.18s ease; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection { background: var(--accent); color: #000; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 32px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 200;
  background: var(--accent);
  color: #000;
  padding: 10px 16px;
  font-weight: 700;
}
.skip-link:focus { left: 16px; }

.mark {
  color: #000;
  background: var(--accent);
  padding: 0 10px 4px;
  display: inline-block;
}
.dot { color: var(--accent); margin-inline: 12px; font-size: 8px; vertical-align: middle; }

/* ------------------------------- ТИПОГРАФИКА --------------------------- */
.kicker,
.section__kicker {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 20px;
}

.section__title {
  font-size: clamp(34px, 5vw, 64px);
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.section__lead {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--ink-2);
  max-width: 56ch;
}

/* -------------------------------- КНОПКИ ------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  border: 1px solid var(--accent);
  border-radius: 0;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn--primary { background: var(--accent); color: #000; }
.btn--primary:hover { background: var(--accent-2); border-color: var(--accent-2); }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--sm { padding: 11px 18px; font-size: 12px; }
.btn--block { width: 100%; }
.btn--icon { padding: 16px; gap: 0; }
.btn__arrow { font-weight: 400; }

.ico-phone {
  display: block;
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.2.4 2.4.6 3.7.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.7 21 3 13.3 3 3.9c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.7.1.3 0 .7-.2 1l-2.3 2.2z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.2.4 2.4.6 3.7.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.7 21 3 13.3 3 3.9c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.7.1.3 0 .7-.2 1l-2.3 2.2z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* -------------------------------- ШАПКА -------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: #201f1d;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 24px rgba(0,0,0,0.5);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--accent);
  color: #111;
  border: 1px solid var(--accent);
  border-radius: 8px;
  flex: none;
}
.brand__mark .robot-icon { width: 24px; height: 24px; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__name { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.brand__sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav__links { display: flex; align-items: center; gap: 22px; flex: 1; justify-content: flex-end; padding-left: 40px; }
.nav__links > a:not(.btn):not(.nav__phone) {
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  font-weight: 600;
}
.nav__links > a:not(.btn):hover { color: var(--accent); }
.nav__links > a.is-active:not(.btn):not(.nav__phone) {
  position: relative;
  color: var(--accent);
}
.nav__links > a.is-active:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--accent);
}
.nav__phone {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
}

/* Номер в шапке: на широком экране его роль играет .nav__phone внутри меню,
   на телефоне вместо него появляется эта плашка справа от логотипа. */
.nav__call {
  display: none;
  align-items: center;
  margin-left: auto;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.nav__call:hover { border-color: var(--accent); color: var(--accent); }

.nav__toggle-input { display: none; }
.nav__toggle { display: none; }

/* --------------------------------- HERO -------------------------------- */
.hero {
  padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 8vw, 100px);
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.hero__layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: flex-start;
}
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: -24px;
}

/* ---- Phone shell ---- */
.phone {
  width: 252px;
  height: 510px;
  background: #0e0d0c;
  border-radius: 38px;
  border: 1.5px solid #2a2926;
  position: relative;
  box-shadow: 0 24px 64px rgba(249,156,0,0.12), 0 4px 20px rgba(0,0,0,0.6);
  transform: rotate(2deg);
  flex-shrink: 0;
}
.phone__notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 64px; height: 10px; background: #0e0d0c; border-radius: 5px; z-index: 5;
}
.phone__btn {
  position: absolute; background: #222; border-radius: 2px;
}
.phone__btn--l1 { left: -3px; top: 120px; width: 3px; height: 26px; }
.phone__btn--l2 { left: -3px; top: 154px; width: 3px; height: 26px; }
.phone__btn--r  { right: -3px; top: 138px; width: 3px; height: 40px; }
.phone__screen {
  position: absolute; inset: 10px; border-radius: 28px;
  background: #1c1b19; display: flex; flex-direction: column; overflow: hidden;
}
.phone__homebar {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 4px; background: #333; border-radius: 2px;
}

/* ---- Chat header ---- */
.phone__header {
  display: flex; align-items: center; gap: 10px;
  padding: 28px 14px 10px; background: #242320;
  border-bottom: 1px solid #2a2926; flex-shrink: 0;
}
.phone__avatar {
  width: 34px; height: 34px; flex-shrink: 0;
  display: grid; place-items: center;
  border: 1px solid var(--accent); border-radius: 50%;
  color: var(--accent);
}
.phone__avatar .robot-icon { width: 20px; height: 20px; display: block; }
.phone__header-info { display: flex; flex-direction: column; gap: 2px; }
.phone__bot-name  { font-size: 13px; font-weight: 700; color: #fff; line-height: 1; }
.phone__bot-status {
  display: flex; align-items: center; gap: 4px;
  font-size: 10px; color: #888;
}
.phone__online-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #4caf50; flex-shrink: 0;
}

/* ---- Chat body ---- */
.phone__chat {
  flex: 1; padding: 12px 10px; display: flex; flex-direction: column;
  gap: 8px; overflow: hidden; position: relative;
}

/* ---- Input bar ---- */
.phone__inputbar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px 10px; background: #1a1918; flex-shrink: 0;
}
.phone__inputfield {
  flex: 1; background: #242320; border: 0.8px solid #333;
  border-radius: 16px; padding: 7px 12px;
  font-size: 10px; color: #555; font-family: var(--font);
}
.phone__sendbtn {
  width: 28px; height: 28px; border-radius: 50%; background: #f99c00;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.phone__sendbtn svg { width: 14px; height: 14px; }

/* ---- Chat messages ---- */
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chat-msg {
  max-width: 82%; padding: 8px 11px; border-radius: 14px;
  font-size: 11.5px; line-height: 1.45;
  animation: msgIn 0.28s ease-out both;
}
.chat-msg--bot {
  background: #2a2926; color: #dedede;
  align-self: flex-start; border-bottom-left-radius: 3px;
}
.chat-msg--user {
  background: #f99c00; color: #111; font-weight: 700;
  align-self: flex-end; border-bottom-right-radius: 3px;
}
.chat-msg--done {
  background: #2a2926; border: 0.8px solid rgba(249,156,0,0.4);
  color: #dedede; align-self: flex-start; border-bottom-left-radius: 3px;
}
.chat-msg--done strong { color: #f99c00; display: block; margin-top: 3px; }

/* ---- Chips ---- */
.chat-chips {
  display: flex; flex-wrap: wrap; gap: 5px;
  animation: msgIn 0.28s ease-out both;
}
.chat-chip {
  padding: 5px 10px; border-radius: 12px; font-size: 10.5px;
  border: 0.8px solid #f99c00; color: #f99c00; background: rgba(249,156,0,0.1);
  cursor: default; font-family: var(--font);
  transition: opacity 0.3s;
}
.chat-chip--ghost {
  border-color: #444; color: #888; background: #2a2926;
}
.chat-chip--selected { opacity: 0.45; }

/* ---- Typing indicator ---- */
@keyframes typingDot {
  0%,60%,100% { opacity: 0.3; transform: scale(1); }
  30%          { opacity: 1;   transform: scale(1.3); }
}
.chat-typing {
  display: flex; align-items: center; gap: 4px;
  padding: 9px 12px; background: #2a2926; border-radius: 14px;
  border-bottom-left-radius: 3px; align-self: flex-start;
  animation: msgIn 0.2s ease-out both;
}
.chat-typing span {
  width: 5px; height: 5px; border-radius: 50%; background: #888;
  animation: typingDot 1.1s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.18s; }
.chat-typing span:nth-child(3) { animation-delay: 0.36s; }
@media (max-width: 1080px) {
  .hero__layout { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
}
/* Amber color wash — main */
.hero::before {
  content: '';
  position: absolute;
  inset: -10% 0 0;
  background:
    radial-gradient(ellipse 80% 70% at 10% 15%, rgba(249,156,0,0.08) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 55% 0%,  rgba(249,156,0,0.03) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
/* Bottom fade */
.hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: 0; right: 0;
  height: 220px;
  background:
    radial-gradient(ellipse 70% 60% at 15% 100%, rgba(249,156,0,0.05) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 85% 90%, rgba(249,156,0,0.03) 0%, transparent 65%),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(14,13,12,0.7) 0%, transparent 60%),
    linear-gradient(to bottom, transparent 0%, var(--bg) 70%);
  pointer-events: none;
  z-index: 2;
}
.hero > .container { position: relative; z-index: 1; }

.hero__meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: clamp(28px, 4vw, 44px);
}

.hero__title {
  font-size: clamp(46px, 8vw, 112px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: clamp(36px, 4vw, 56px);
}

.hero__row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: end;
  border-top: 1px dashed var(--line);
  padding-top: 36px;
}
.hero__row-left { display: flex; flex-direction: column; gap: 28px; }

.hero__lead {
  font-size: clamp(16px, 1.7vw, 19px);
  color: var(--ink-2);
  max-width: 52ch;
}

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

/* Оффер-полоса с таймером */
.hero__offer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  flex-wrap: wrap;
}
.hero__offer-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero__offer-badge {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #000;
  background: var(--accent);
  padding: 4px 8px;
  white-space: nowrap;
}
.hero__offer-text { font-size: 13px; color: var(--ink-2); }
.hero__offer-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero__offer-label { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.06em; white-space: nowrap; }
.hero__offer-timer {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  white-space: nowrap;
  min-width: 80px;
}
@media (max-width: 640px) {
  .hero__offer { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero__offer-right { width: 100%; justify-content: space-between; }
}

.hero__specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  border-top: 1px solid var(--line);
}
.spec {
  padding: 26px 24px 26px 0;
  border-right: 1px solid var(--line-2);
}
.spec:last-child { border-right: none; }
.spec__value {
  font-family: var(--mono);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.spec__label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}

/* -------------------------------- СЕКЦИИ ------------------------------- */
.section { padding: clamp(40px, 5vw, 64px) 0; }
.section--alt {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--bg-alt) 8%,
    var(--bg-alt) 92%,
    transparent 100%
  );
  border-block: none;
}
.section__head { margin-bottom: clamp(40px, 5vw, 60px); }

/* ------------------------- ТАБЛИЦЫ (ниши и блоки) ---------------------- */
/* Плотная табличная подача: шапка с названиями колонок и строки данных. */
.table { border-top: 1px solid var(--line); }

.table__head,
.row {
  display: grid;
  gap: 24px;
  align-items: start;
}

.table__head {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.table__col {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.table__col--right { text-align: right; }

.row {
  padding: 26px 0;
  border-bottom: 1px solid var(--line-2);
  transition: background 0.18s ease;
}
.row:hover { background: rgba(249, 156, 0, 0.035); }

.row__num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.row__text { color: var(--ink-2); font-size: 15.5px; }

/* --- Таблица ниш: бизнес / что даёт --- */
.table--niches .table__head,
.table--niches .row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.table--niches .row { padding: 16px 0; }

.row__main { display: flex; gap: 14px; align-items: baseline; }
.row__title { font-size: 18px; letter-spacing: -0.02em; }

.row__gain { font-size: 15px; color: var(--accent); }
@media (max-width: 560px) {
  .table--niches .row { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .table--niches .row__gain { text-align: left; padding-left: 34px; }
}

/* --- Таблица блоков: # / название / описание / срок --- */
.table--features .table__head,
.table--features .row {
  grid-template-columns: 40px minmax(0, 0.75fr) minmax(0, 1.6fr) 96px;
  align-items: baseline;
}
.row__name { font-size: 17px; letter-spacing: -0.02em; }
.row__term {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  text-align: right;
  white-space: nowrap;
}

/* --------------------------------- СТЕК -------------------------------- */
.stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
}
.stack__item {
  background: var(--bg);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.18s ease;
}
.stack__item:hover { background: var(--bg-2); }
.stack__name {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.stack__note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* -------------------------------- ПРОЦЕСС ------------------------------ */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 28px 36px;
  background: var(--bg-2);
  border: 2px solid var(--line);
  border-bottom: none;
  position: relative;
  transition: border-color 0.2s;
}
.step:last-child { border-bottom: 2px solid var(--line); }
@media (hover: hover) {
  .step:hover { border-color: var(--accent); z-index: 1; }
  .step:hover + .step { border-top-color: var(--accent); }
  .step:hover .step__badge { border-color: var(--accent); background: rgba(249,156,0,0.08); }
}
.step__badge {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-top: 3px;
  transition: border-color 0.2s, background 0.2s;
}
.step__connector {
  position: absolute;
  left: 61px;
  bottom: -16px;
  width: 1px;
  height: 16px;
  background: var(--line);
  z-index: 1;
}
.step__body { flex: 1; }
.step__title {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  color: var(--ink);
}
.step__text { color: var(--ink-2); font-size: 15px; line-height: 1.6; }

/* --------------------------------- ДЕМО -------------------------------- */
.demo__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.chat {
  border: 1px solid var(--line);
  background: var(--surface);
}
.chat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-2);
}
.chat__avatar { width: 34px; height: 34px; background: var(--accent); flex: none; }
.chat__meta { display: flex; flex-direction: column; line-height: 1.3; }
.chat__meta b { font-size: 15px; font-weight: 700; }
.chat__meta i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ok);
}

.chat__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px;
  font-size: 15px;
}
.msg { max-width: 86%; padding: 11px 15px; }
.msg--in { align-self: flex-start; background: #191919; }
.msg--out {
  align-self: flex-end;
  background: var(--accent);
  color: #000;
  font-weight: 500;
}
.msg--done {
  align-self: flex-start;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
}

/* ------------------------------- ПОЧЕМУ Я ------------------------------ */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.feature {
  background: var(--bg);
  padding: 32px 28px 36px;
  border: 1px solid transparent;
  transition: border-color 0.2s;
  position: relative;
}
.feature:hover { border-color: var(--accent); z-index: 1; }
.feature__num {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 18px;
}
.feature__title { font-size: 18px; margin-bottom: 10px; }
.feature__text { color: var(--ink-2); font-size: 15.5px; }

/* -------------------------- SECTION DECORATIONS ------------------------ */
.section--deco { position: relative; overflow: hidden; }
.section-deco {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 260px;
  height: 340px;
  color: #f99c00;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}
.section-deco--left { left: -80px; }
.section-deco--right { right: -80px; }
.section--deco .container { position: relative; z-index: 1; }
@media (max-width: 1100px) { .section-deco { display: none; } }

/* --------------------------------- ABOUT ------------------------------- */
.about-section .section__title {
  position: relative;
  padding-bottom: 20px;
}
.about-section .section__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60%;
  height: 2px;
  background: linear-gradient(to right, var(--accent) 0%, rgba(249,156,0,0.3) 60%, transparent 100%);
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: start;
}
.about__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-right: 60px;
}
.about__text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
}
.about__callout {
  margin-top: 8px;
  padding: 22px 24px;
  background: var(--bg-2);
  border-radius: 4px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink);
}
.about__stats {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-left: 60px;
  border-left: 1px solid var(--line);
}
.about__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.about__label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.about__num {
  font-size: 56px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}

/* Deco illustrations for about section */
.about-section { position: relative; overflow: hidden; }
.about-deco {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 180px;
  height: 380px;
  color: var(--accent);
  opacity: 0.12;
  pointer-events: none;
}
.about-deco--left  { left: -20px; }
.about-deco--right { right: -20px; }

@media (max-width: 1200px) { .about-deco { display: none; } }
@media (max-width: 760px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__text { padding-right: 0; }
  .about__stats { display: none; }
}

/* ---------------------------------- FAQ -------------------------------- */
/* -------------------------------- REVIEWS ------------------------------ */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.review {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--bg);
}
.review__shot {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 240px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-2);
  flex: 1;
}
.review__shot img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 6px;
}

/* ------------------ ПРИКЛАДИ Й СТАТТІ НА ГОЛОВНІЙ ---------------------- */
.showcase__group + .showcase__group { margin-top: 44px; }
.showcase__label {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 16px;
}
.showcase__label h3 { font-size: 18px; font-weight: 600; }
.showcase__more {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); white-space: nowrap;
}
.showcase__more:hover { text-decoration: underline; text-underline-offset: 3px; }
.showcase__grid {
  display: grid;
  /* auto-fit прибирає порожні колонки, тож сіра «лінійна» підкладка не світиться */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.showcase__item { display: flex; flex-direction: column; background: var(--bg); transition: background 0.15s; }
.showcase__item:hover { background: var(--bg-2); }
.showcase__cover {
  display: grid; place-items: center; overflow: hidden;
  aspect-ratio: 16 / 9; background: var(--bg-2);
}
.showcase__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.showcase__cover .robot-icon { width: 36px; height: auto; color: rgba(249, 156, 0, 0.4); }
.showcase__title {
  padding: 16px 18px 20px; font-size: 15px; font-weight: 600;
  line-height: 1.4; color: var(--ink); transition: color 0.15s;
}
.showcase__item:hover .showcase__title { color: var(--accent); }

/* Телефон: компактні рядки замість високих карток — інакше блок з п'яти
   карток займає майже дві висоти екрана. */
@media (max-width: 560px) {
  .showcase__grid { grid-template-columns: 1fr; }
  .showcase__item { flex-direction: row; align-items: center; }
  .showcase__cover { width: 116px; flex-shrink: 0; }
  .showcase__cover .robot-icon { width: 26px; }
  .showcase__title { padding: 10px 14px; font-size: 14px; }
}

@media (max-width: 900px) {
  .reviews { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .reviews { grid-template-columns: 1fr; }
.features { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------------------------- FAQ -------------------------------- */
.faq { border-top: 1px solid var(--line-2); }
.faq__item { border-bottom: 1px solid var(--line-2); }

.faq__q {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 16px;
  padding: 26px 0;
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__id {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.faq__text {
  font-size: clamp(17px, 1.9vw, 21px);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.faq__q:hover .faq__text { color: var(--accent); }
.faq__item[open] .faq__id { color: var(--accent); }

.faq__sign { position: relative; width: 16px; height: 16px; }
.faq__sign::before,
.faq__sign::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 15px;
  height: 1px;
  background: var(--ink-2);
  transform: translate(-50%, -50%);
  transition: transform 0.22s ease;
}
.faq__sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__sign::after { transform: translate(-50%, -50%) rotate(0); }

.faq__a {
  padding: 0 0 30px 76px;
  color: var(--ink-2);
  font-size: 16px;
  max-width: 76ch;
}

/* --------------------------------- ЗАКАЗ ------------------------------- */
.order__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.order__title {
  font-size: clamp(34px, 5vw, 60px);
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}
.order__text { color: var(--ink-2); font-size: 17px; max-width: 46ch; }

.order__side { border-top: 1px solid var(--line); }
.order__line {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-2);
}
.order__lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.order__val {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.order__arrow { color: var(--line); transition: color 0.18s ease, transform 0.18s ease; }
.order__line:hover .order__val { color: var(--accent); }
.order__line:hover .order__arrow { color: var(--accent); transform: translateX(4px); }

.order__note {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 20px 0 26px;
}

/* -------------------------------- ПОДВАЛ ------------------------------- */
.footer {
  background: #1a1918;
  border-top: 1px solid var(--line);
  padding-block: 28px calc(28px + env(safe-area-inset-bottom));
}
.footer__cols {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr));
  gap: 20px 40px;
  padding-bottom: 24px;
}
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer__brand b { font-size: 16px; }
.footer__desc { font-size: 14px; color: var(--muted); max-width: 40ch; }

.footer__col { display: flex; flex-direction: column; counter-reset: footer-link; }
.footer__title {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.footer__title::before { content: '// '; }

.footer__col a {
  font-size: 13px;
  color: var(--ink-2);
  padding-block: 5px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
/* Numbered links — all columns except Contacts */
.footer__col:not([aria-label="Контакти"]) a::before {
  counter-increment: footer-link;
  content: '[0' counter(footer-link) ']';
  font-family: var(--mono);
  font-size: 9px;
  color: var(--accent);
  flex-shrink: 0;
}
.footer__col a:hover { color: var(--accent); }

/* Пошта в підвалі + кнопка-іконка «Копіювати» (завжди в одному рядку з адресою) */
.footer__mail { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; }
.copy-btn {
  position: relative; flex-shrink: 0;
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%;
  background: none; color: var(--muted); cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.copy-btn svg { width: 14px; height: 14px; }
.copy-btn .ic-check, .copy-btn .ic-fail { display: none; }
.copy-btn:hover { color: var(--accent); border-color: var(--accent); }
.copy-btn.is-copied { color: #0ac970; border-color: #0ac970; }
.copy-btn.is-copied .ic-copy { display: none; }
.copy-btn.is-copied .ic-check { display: block; }
.copy-btn.is-failed { color: #ff5b5b; border-color: #ff5b5b; }
.copy-btn.is-failed .ic-copy { display: none; }
.copy-btn.is-failed .ic-fail { display: block; }
/* Текст для скринридерів: на екрані його немає. */
.copy-btn__label {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
@media (max-width: 860px) { .copy-btn { width: 34px; height: 34px; } }
/* Тимчасове поле для копіювання в браузерах без Clipboard API. */
.copy-tmp { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.footer__build {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.footer__build span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  opacity: 0.55;
  letter-spacing: 0.06em;
}
.footer__legal { display: flex; gap: 16px; flex-wrap: wrap; }
.footer__legal a { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.footer__legal a:hover { color: var(--accent); }

/* ----------------------------- COOKIE BAR ------------------------------ */
.cookie-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: #111;
  border-top: 1px solid var(--line);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-bar[hidden] { display: none; }
.cookie-bar__text { font-size: 13px; color: var(--muted); flex: 1; min-width: 200px; margin: 0; }
.cookie-bar__actions { display: flex; gap: 10px; flex-shrink: 0; }
.btn--sm { padding: 7px 16px; font-size: 11px; }

/* -------------------------- LEGAL PAGES -------------------------------- */
.legal-page { padding: clamp(36px, 5vw, 56px) 0; }
.legal-page__head { max-width: 720px; margin: 0 auto 28px; }
.legal-page__title { font-size: clamp(28px, 5vw, 48px); font-weight: 700; letter-spacing: -0.03em; margin: 6px 0 8px; }
.legal-page__meta { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.08em; }
.legal-page__body { max-width: 720px; margin: 0 auto; }
.legal-page__body h2 { font-size: 18px; font-weight: 600; margin: 24px 0 8px; color: var(--ink); }
.legal-page__body p, .legal-page__body li { font-size: 15px; line-height: 1.65; color: var(--muted); margin-bottom: 7px; }
.legal-page__body ul, .legal-page__body ol { padding-left: 20px; margin-bottom: 10px; }
.legal-page__body a { color: var(--accent); text-decoration: underline; }
.legal-page__back { margin-top: 40px; }

/* --------------------------- МОБИЛЬНАЯ ПАНЕЛЬ -------------------------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  gap: 1px;
  background: var(--line-2);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(110%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { flex: 1; border: none; padding-block: 18px; }
.sticky-cta .btn--ghost { flex: none; width: 62px; background: var(--bg-2); }

/* --------------------------- ПОЯВЛЕНИЕ БЛОКОВ -------------------------- */
/* Прячем только если JS запустился — без него текст виден всегда. */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.js-ready .reveal.is-in { opacity: 1; transform: none; }

/* ---------------------------------- 404 -------------------------------- */
.error-page { padding: clamp(80px, 14vw, 160px) 0; }
.error-code {
  font-family: var(--mono);
  font-size: clamp(64px, 12vw, 128px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 24px;
}
.error-page .hero__cta { margin-top: 36px; }

/* -------------------------------- АДАПТИВ ------------------------------ */
@media (max-width: 1080px) {
  .demo__inner,
  .order__inner { grid-template-columns: 1fr; }
  .chat { max-width: 460px; }
  .nav__links { gap: 20px; }
  .nav__phone { display: none; }

  /* Таблицы перестраиваются в стопку — шапка колонок больше не нужна */
  .table__head { display: none; }


  .table--features .row {
    grid-template-columns: 40px minmax(0, 1fr) 96px;
    gap: 10px 16px;
  }
  .table--features .row__num { grid-column: 1; grid-row: 1; }
  .table--features .row__name { grid-column: 2; grid-row: 1; }
  .table--features .row__term { grid-column: 3; grid-row: 1; }
  .table--features .row__text { grid-column: 2 / -1; grid-row: 2; }

  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__about { grid-column: 1 / -1; }
  .footer__col[aria-label="Контакти"] { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --nav-h: 66px; }
  .container { padding-inline: 20px; }

  /* Логотип слева, номер справа — подпись под логотипом на телефоне лишняя */
  .nav__call { display: inline-flex; }
  .brand__sub { display: none; }
  .nav__inner { gap: 12px; }

  .nav__toggle {
    display: grid;
    place-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    cursor: pointer;
  }
  .nav__toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.24s ease, opacity 0.18s ease;
  }
  .nav__toggle-input:checked ~ .nav__toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav__toggle-input:checked ~ .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav__toggle-input:checked ~ .nav__toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 24px;
    background: #000;
    border-bottom: 1px solid var(--line);
    /* Ховаємо повністю над екраном незалежно від висоти меню */
    transform: translateY(calc(-100% - var(--nav-h)));
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.3s;
  }
  .nav__toggle-input:checked ~ .nav__links {
    transform: none;
    visibility: visible;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .nav__links > a:not(.btn) {
    padding: 16px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--line-2);
  }
  .nav__links > a.is-active:not(.btn)::after {
    top: 50%;
    bottom: auto;
    left: -20px;
    right: auto;
    width: 3px;
    height: 18px;
    transform: translateY(-50%);
  }
  /* Номер уже стоит в шапке — в меню он не дублируется */
  .nav__phone { display: none; }
  .nav__links .btn { margin-top: 18px; padding-block: 16px; font-size: 13px; }

  .hero__cta .btn { flex: 1; }

  .spec { padding: 20px 16px 20px 0; }

  .faq__q { grid-template-columns: 40px minmax(0, 1fr) 18px; gap: 12px; }
  .faq__a { padding-left: 52px; }

  .nav__call { font-size: 12px; padding: 8px 14px; white-space: nowrap; }
}

@media (max-width: 560px) {
  /* Менше повітря зверху першого екрана: друга кнопка має поміщатися
     над нижньою панеллю браузера, не ховатися за нею. */
  .hero { padding-top: 24px; }
  .hero__meta { line-height: 2.2; margin-bottom: 20px; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .hero__specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec { border-bottom: 1px solid var(--line-2); }
  .spec:nth-child(2n) { border-right: none; }
  .step { padding: 20px 18px; gap: 16px; }
  .step__badge { width: 40px; height: 40px; font-size: 13px; }
  .step__connector { left: 47px; }
  .step__title { font-size: 16px; }
  .feature { padding: 26px 22px 30px; }
  .faq__a { padding-left: 0; }

  /* На узком экране номер и срок встают в одну строку над названием */
  .table--features .row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
  }
  .table--features .row__num { grid-column: 1; grid-row: 1; }
  .table--features .row__term { grid-column: 2; grid-row: 1; }
  .table--features .row__name { grid-column: 1 / -1; grid-row: 2; }
  .table--features .row__text { grid-column: 1 / -1; grid-row: 3; }

  .footer__cols { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .footer__about { grid-column: 1 / -1; }
  .footer__desc { display: none; }
  .footer__brand { margin-bottom: 0; }
  .footer { padding-block: 32px calc(80px + env(safe-area-inset-bottom)); }
}

@media (max-width: 380px) {
  /* Запас на длинный номер: плашка ужимается, а не выдавливает бургер */
  .nav__call { padding: 9px 10px; font-size: 12px; }
}

/* «Замовити бота» в шапці: на вузьких екранах ужимаємо логотип, а не кнопки */
.nav__call, .nav__toggle { flex-shrink: 0; }
@media (max-width: 400px) {
  .brand { gap: 8px; }
  .brand__name { font-size: 15px; }
}
@media (max-width: 374px) {
  .nav__inner { gap: 8px; }
  .brand { gap: 6px; }
  .brand__name { font-size: 14px; }
  .nav__call { padding: 8px; font-size: 11px; }
}
@media (max-width: 340px) {
  .brand__text { display: none; }
}

@media (max-width: 360px) {
  .hero__title { font-size: 34px; }
  .section__title { font-size: 28px; }
  .order__title { font-size: 30px; }
}

/* --------------------------- БЕРЕЖНЫЙ РЕЖИМ ---------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .js-ready .reveal { opacity: 1; transform: none; }
}

/* ==================== SOLISUN-STYLE ADDITIONS ==================== */

.brand__text { flex-direction: row; align-items: baseline; gap: 8px; }

/* Phone button as bordered box on desktop */
.nav__phone {
  margin-left: auto;
  border: 1px solid var(--line);
  padding: 7px 14px;
  color: var(--ink);
  letter-spacing: 0.04em;
  transition: border-color 0.2s, color 0.2s;
}
.nav__phone:hover { border-color: var(--accent) !important; color: var(--accent) !important; }


/* Info grid 2×2 */
.hero__info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.info-cell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  background: var(--bg);
}
.info-cell__label {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.info-cell__value {
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 7px;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  flex: none;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Mobile: hero стекується */
@media (max-width: 860px) {
  .hero__row { grid-template-columns: 1fr; gap: 24px; }
  .hero__info { display: none; }
}
@media (max-width: 560px) {
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
}

/* ================================================================= */

/* ======================== ФОРМА ЗАЯВКИ ======================== */
.order__form { display: flex; flex-direction: column; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-input {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 13px 16px;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s;
  border-radius: 0;
  width: 100%;
  box-sizing: border-box;
}
.form-input:focus { border-color: var(--accent); }
.form-input--ta { resize: vertical; min-height: 110px; }
.form-note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.form-status { font-size: 13px; color: #ef4444; }
.form-success { font-size: 16px; color: var(--accent); font-weight: 600; padding: 32px 0; }
/* ============================================================== */

@media print {
  .nav, .sticky-cta, .chat, .grid-bg { display: none !important; }
  body { background: #fff; color: #000; }
}
