/* ============================================================
   nmkent — Telegram-боти. Стилі.
   Палітра: графіт + один бурштиновий акцент.
   ============================================================ */

:root {
  --bg:        #0F1216;   /* графітова база */
  --surface:   #161B22;   /* картки / поверхні */
  --surface-2: #1B212B;   /* поверхня при ховері */
  --line:      #232A34;   /* тонкі рамки / лінії */
  --accent:    #FFC247;   /* бурштиновий акцент */
  --accent-2:  #FFD27A;   /* світліший бурштин (ховер) */
  --accent-weak: rgba(255,194,71,0.10);
  --text:      #ECEFF3;   /* основний текст */
  --muted:     #99A2AF;   /* приглушений текст */
  --faint:     #5C6470;   /* ледь помітний (підписи) */

  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --radius: 14px;
  --radius-sm: 11px;
  --maxw: 1080px;
  --header-h: 64px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--text);
  line-height: 1.6;
  background-color: var(--bg);
  /* ледь помітна технічна сітка */
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* м'яке бурштинове світло зверху */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 82% -8%, rgba(255,194,71,0.07), transparent 70%),
    radial-gradient(700px 480px at 8% 2%, rgba(255,194,71,0.03), transparent 62%);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ---------- доступність ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: #0E1116;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

section { scroll-margin-top: calc(var(--header-h) + 18px); }

.section {
  padding-block: clamp(4rem, 9vw, 7rem);
  border-top: 1px solid var(--line);
}

.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head .lead { margin-top: 0.9rem; }

/* ---------- типографіка ---------- */
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }

h1 { font-size: clamp(2.1rem, 5.6vw, 3.5rem); line-height: 1.06; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; }

.lead {
  color: var(--muted);
  font-size: clamp(1.02rem, 2.3vw, 1.18rem);
  max-width: 54ch;
}

/* лейбл секції — повторюваний фірмовий мотив (бурштиновий курсор + mono) */
.kicker {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.9rem;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 1.05em;
  background: var(--accent);
  margin-right: 0.7em;
  border-radius: 1px;
  transform: translateY(0.1em);
}

.mono { font-family: var(--mono); }
.amber { color: var(--accent); }

/* ---------- іконки ---------- */
.ico {
  width: 22px; height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.ico--fill { fill: currentColor; stroke: none; }
.ico--sm { width: 18px; height: 18px; }

.ico-box {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-weak);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.85em 1.4em;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
              border-color 0.18s var(--ease), color 0.18s var(--ease),
              box-shadow 0.25s var(--ease);
  white-space: nowrap;
}
.btn .ico { width: 18px; height: 18px; }

.btn--primary { background: var(--accent); color: #0E1116; }
.btn--primary:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255,194,71,0.28);
}

.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-weak);
  transform: translateY(-2px);
}

.btn--lg { padding: 1.05em 1.8em; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.site-header.scrolled {
  background: rgba(15,18,22,0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.5ch;
}
.logo b { color: var(--accent); font-weight: 700; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-links a:not(.btn) {
  padding: 0.5em 0.8em;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--text); background: var(--surface); }
.nav-links .btn { margin-left: 0.4rem; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
}
.nav-toggle .bars { position: relative; width: 18px; height: 2px; background: var(--text); transition: background 0.15s; }
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px;
  background: var(--text); transition: transform 0.2s var(--ease);
}
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after  { top: 6px; }
.site-header[data-open="true"] .nav-toggle .bars { background: transparent; }
.site-header[data-open="true"] .nav-toggle .bars::before { transform: translateY(6px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle .bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(4rem, 8vw, 6rem); }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 { margin-bottom: 1.1rem; }
.hero h1 .term-accent {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.92em;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.hero .lead { margin-bottom: 1.6rem; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55ch;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.status .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255,194,71,0.5);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,194,71,0.45); }
  70%  { box-shadow: 0 0 0 7px rgba(255,194,71,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,194,71,0); }
}

/* блок «без передоплати» — ключове повідомлення */
.guarantee {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem 1.2rem;
  margin: 1.6rem 0;
  border: 1px solid rgba(255,194,71,0.32);
  background: rgba(255,194,71,0.07);
  border-radius: var(--radius);
}
.guarantee .ico-box {
  width: 38px; height: 38px; margin: 0;
  background: var(--accent);
  color: #0E1116;
}
.guarantee p { font-size: 0.98rem; color: var(--text); }
.guarantee strong { font-family: var(--mono); color: var(--accent); font-weight: 700; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.hero-note {
  margin-top: 1.4rem;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 46ch;
}
.hero-note b { color: var(--text); font-weight: 600; }

/* ---------- термінал (фірмовий елемент) ---------- */
.term {
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.7;
  background: #0E1116;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 30px 80px -30px rgba(0,0,0,0.8),
    0 0 60px -20px rgba(255,194,71,0.18);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.015);
}
.term-bar .d { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.term-bar .d:first-child { background: var(--accent); }
.term-bar .title { margin-left: auto; color: var(--faint); font-size: 0.78rem; }

.term-body { padding: 18px 18px 20px; }
.term-body .row { white-space: pre-wrap; word-break: break-word; }
.term-body .prompt { color: var(--accent); }
.term-body .path { color: #7FB3D5; }
.term-body .dim { color: var(--muted); }
.term-body .ok { color: var(--accent); }
.term-body .said { color: var(--text); }

.bot-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 14px;
}
.bot-keys .key {
  border: 1px solid rgba(255,194,71,0.45);
  color: var(--accent);
  border-radius: 9px;
  padding: 6px 11px;
  font-size: 0.8rem;
}
.term-body .last { margin-top: 6px; }
.cursor {
  display: inline-block;
  width: 0.6em; height: 1.05em;
  background: var(--accent);
  vertical-align: -0.18em;
  margin-left: 2px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ============================================================
   КАРТКИ (загальне)
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease),
              background 0.2s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,194,71,0.4);
  background: var(--surface-2);
  box-shadow: 0 18px 40px -24px rgba(0,0,0,0.9);
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.96rem; }

.grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* ============================================================
   ТАРИФИ
   ============================================================ */
.prices {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}
.price {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.price:hover { transform: translateY(-4px); border-color: rgba(255,194,71,0.35); }

.price--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 24px 60px -30px rgba(255,194,71,0.4);
}
.price--featured:hover { transform: translateY(-8px); }

.price .badge {
  position: absolute;
  top: -12px; left: 1.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #0E1116;
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 7px;
}

.price .tier {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.price .amount {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.3rem);
  color: var(--accent);
  margin-top: 0.6rem;
  line-height: 1;
}
.price .amount .small { font-size: 0.95rem; color: var(--muted); }
.price .term-days {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
}
.price .divider { height: 1px; background: var(--line); margin: 1.3rem 0; }

.feat { list-style: none; display: grid; gap: 0.7rem; margin-bottom: 1.6rem; }
.feat li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; }
.feat li .ico { color: var(--accent); margin-top: 2px; }

.price .btn { margin-top: auto; }

.note {
  font-size: 0.88rem;
  color: var(--muted);
  font-family: var(--mono);
  margin-top: 1.4rem;
  text-align: center;
}

/* ============================================================
   КЕЙСИ
   ============================================================ */
.cases { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.case { display: flex; flex-direction: column; }
.case h3 { margin-bottom: 0.4rem; }
.case > p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.2rem; }

.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.shots figure { margin: 0; }
.shots img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #0E1116;
}
.shots figcaption {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--faint);
  margin-top: 0.5rem;
  text-align: center;
}

/* картка-кейс як клікабельний тригер модалки */
.case[role="button"] { cursor: pointer; }
.case .case-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4ch;
  margin-top: 1.1rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--accent);
}
.case .case-more .ico { width: 16px; height: 16px; transition: transform 0.18s var(--ease); }
.case:hover .case-more .ico,
.case:focus-visible .case-more .ico { transform: translateX(3px); }

/* ============================================================
   ЯК ПРОХОДИТЬ РОБОТА
   ============================================================ */
.steps { display: grid; gap: 1.1rem; position: relative; max-width: 760px; }
.steps::before {
  content: "";
  position: absolute;
  left: 21px; top: 30px; bottom: 30px;
  width: 2px;
  background: linear-gradient(var(--line), rgba(35,42,52,0));
}
.step { display: grid; grid-template-columns: 44px 1fr; gap: 1.1rem; align-items: start; position: relative; }
.step-num {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  width: 44px; height: 44px;
  display: grid; place-items: center;
  position: relative; z-index: 1;
}
.step h3 { margin-bottom: 0.3rem; padding-top: 0.5rem; }
.step p { color: var(--muted); font-size: 0.96rem; }

/* ============================================================
   ДЛЯ КОГО
   ============================================================ */
.niches { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.niche {
  display: inline-flex;
  align-items: center;
  gap: 0.6ch;
  padding: 0.7em 1.1em;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  font-size: 0.95rem;
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease), background 0.18s var(--ease);
}
.niche:hover { border-color: rgba(255,194,71,0.45); transform: translateY(-2px); background: var(--surface-2); }
.niche::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { display: grid; gap: 0.8rem; max-width: 760px; }
.qa {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0 1.3rem;
  transition: border-color 0.18s var(--ease);
}
.qa[open] { border-color: rgba(255,194,71,0.35); }
.qa summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  font-weight: 600;
  font-size: 1.02rem;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "";
  width: 9px; height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
  flex: none;
  margin-right: 4px;
}
.qa[open] summary::after { transform: rotate(-135deg); }
.qa .answer { padding: 0 0 1.2rem; color: var(--muted); max-width: 64ch; }

/* ============================================================
   КОНТАКТ
   ============================================================ */
.contact .panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}
.contact .panel::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 320px at 50% -20%, rgba(255,194,71,0.12), transparent 70%);
  pointer-events: none;
}
.contact h2 { margin-bottom: 0.9rem; position: relative; }
.contact .lead { margin: 0 auto 1.8rem; position: relative; }
.contact .btn { position: relative; }
.contact .handle {
  position: relative;
  font-family: var(--mono);
  color: var(--muted);
  margin-top: 1.2rem;
  font-size: 0.9rem;
}
.contact .handle b { color: var(--text); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.4rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.site-footer .col { display: grid; gap: 0.3rem; }
.site-footer .tag { color: var(--muted); font-size: 0.9rem; }
.site-footer .mono-small { font-family: var(--mono); font-size: 0.82rem; color: var(--faint); }
.site-footer a:hover { color: var(--accent); }

/* ============================================================
   МОДАЛКА КЕЙСІВ
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8,10,13,0.74);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.modal-overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }

.modal {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(720px, 100%);
  max-height: 88vh;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 40px 110px -30px rgba(0,0,0,0.9);
  transform: translateY(14px) scale(0.985);
  opacity: 0;
  transition: transform 0.32s var(--ease), opacity 0.32s var(--ease);
}
.modal-overlay.is-open .modal { transform: none; opacity: 1; }

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 3;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(15,18,22,0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: var(--muted);
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.modal-close:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-weak); }
.modal-close .ico { width: 20px; height: 20px; }

.modal-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
}

.modal-kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.modal-title {
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  padding-right: 44px;
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  margin-bottom: 1.8rem;
}
.modal-gallery figure { margin: 0; }
.modal-gallery img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #0E1116;
}
.modal-gallery figcaption {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--faint);
  margin-top: 0.5rem;
  text-align: center;
}

.modal-block { margin-bottom: 1.5rem; }
.modal-block h3 {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.modal-block p { color: var(--muted); }
.modal-block ul { list-style: none; display: grid; gap: 0.65rem; }
.modal-block li { display: flex; gap: 0.6rem; align-items: flex-start; }
.modal-block li .ico { color: var(--accent); margin-top: 3px; }

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.6rem 0;
}
.modal-meta > div {
  flex: 1 1 150px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.015);
}
.modal-meta dt {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.modal-meta dd {
  font-family: var(--mono);
  font-size: 0.98rem;
  color: var(--text);
}
.modal-meta dd.price { color: var(--accent); font-weight: 700; }

.modal-cta { margin-top: 0.5rem; }

/* ============================================================
   REVEAL (поява при скролі) — лише коли рух дозволено
   ============================================================ */
html.motion-ok [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
html.motion-ok [data-reveal].in { opacity: 1; transform: none; }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .term { order: 2; }
  .prices { grid-template-columns: 1fr; }
  .price--featured { order: -1; }
  .price--featured:hover { transform: translateY(-4px); }
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    padding: 1rem 20px 1.3rem;
    background: rgba(15,18,22,0.96);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-header[data-open="true"] .nav-links { display: flex; }
  .nav-links a:not(.btn) { padding: 0.7em 0.6em; }
  .nav-links .btn { margin-left: 0; margin-top: 0.4rem; }
}

@media (max-width: 600px) {
  /* модалка на весь екран */
  .modal-overlay { padding: 0; }
  .modal {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border: 0;
    border-radius: 0;
  }
  .modal-gallery { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .shots { grid-template-columns: 1fr; max-width: 240px; }
  .hero-cta .btn { width: 100%; }
  .guarantee { flex-direction: column; gap: 0.7rem; }
}

/* ============================================================
   prefers-reduced-motion — поважаємо
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .cursor { animation: none; }
  .status .dot { animation: none; }
}
