:root {
  --bg: #f0f1f3;
  --surface: #ffffff;
  --ink: #171a20;
  --ink-soft: #454c58;
  --navy: #142440;
  --navy-deep: #0e1a30;
  --copper: #c89466;
  --copper-deep: #8a5f38;
  --line: rgba(20, 36, 64, 0.16);
  --line-soft: rgba(20, 36, 64, 0.09);
  --ok: #2e7d4f;
  --danger: #a8442a;
  --maxw: 1120px;
  --r: 4px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: "Commissioner", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; height: auto; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.accent { color: var(--copper-deep); }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

/* ---------------- buttons: прямі, без світіння ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px;
  min-height: 48px; padding: 12px 26px; border-radius: var(--r);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-deep); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: rgba(20, 36, 64, 0.06); }

/* ---------------- nav ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(240, 241, 243, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand__mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r);
  background: var(--navy); color: var(--copper);
  font-family: "Montserrat", sans-serif; font-weight: 900; font-size: 20px;
}
.brand__name { font-family: "Montserrat", sans-serif; font-weight: 800; letter-spacing: 2px; font-size: 16px; }
.nav__links { display: none; gap: 26px; margin-left: auto; }
.nav__links a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav__links a:hover { color: var(--navy); }
.nav__cta { display: none; }

.nav__burger { margin-left: auto; position: relative; }
.nav__burger summary { list-style: none; display: grid; gap: 5px; padding: 12px 10px; cursor: pointer; }
.nav__burger summary::-webkit-details-marker { display: none; }
.nav__burger-bar { display: block; width: 22px; height: 2px; background: var(--navy); transition: transform 160ms; }
.nav__burger[open] .nav__burger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[open] .nav__burger-bar:nth-child(2) { opacity: 0; }
.nav__burger[open] .nav__burger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__drawer {
  position: absolute; right: 0; top: calc(100% + 8px);
  display: grid; gap: 4px; min-width: 230px; padding: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 10px 30px rgba(20, 36, 64, 0.12);
}
.nav__drawer a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 10px 12px; border-radius: var(--r); }
.nav__drawer a:hover { background: rgba(20, 36, 64, 0.05); }
.nav__drawer .btn { margin-top: 8px; color: #fff; }

@media (min-width: 880px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__burger { display: none; }
}

/* ---------------- hero ---------------- */
.hero { padding: 44px 0 56px; border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero__title {
  font-family: "Montserrat", sans-serif; font-weight: 800;
  font-size: clamp(36px, 6vw, 60px); line-height: 1.04; letter-spacing: -0.02em;
  color: var(--navy); margin-bottom: 20px;
  text-wrap: balance;
}
.hero__lead { font-size: 17px; color: var(--ink-soft); max-width: 52ch; margin-bottom: 26px; }
.hero__lead b { color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }

/* специфікація замість метрик */
.hero__spec { max-width: 480px; }
.hero__spec-row {
  display: grid; grid-template-columns: 92px 1fr; gap: 16px;
  padding: 10px 0; border-top: 1px solid var(--line-soft);
  font-size: 15px;
}
.hero__spec-row dt { color: var(--ink-soft); }
.hero__spec-row dd { color: var(--ink); font-weight: 600; }
.hero__spec-row dd b { font-family: "Montserrat", sans-serif; font-weight: 800; color: var(--copper-deep); }

.hero__visual { display: grid; justify-items: center; gap: 14px; }
.hero__device-wrap { width: min(380px, 82vw); margin: 0; background: var(--surface); border: 1px solid var(--line-soft); padding: 16px 16px 0; }
.hero__device { display: block; }
.hero__badge { font-size: 14px; color: var(--ink-soft); text-align: center; max-width: 34ch; }

@media (min-width: 900px) {
  .hero { padding: 72px 0 72px; }
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; gap: 32px; }
}

/* ---------------- manifesto ---------------- */
.strip { padding: 64px 0; border-bottom: 1px solid var(--line); }
.strip__head {
  font-family: "Montserrat", sans-serif; font-weight: 800;
  font-size: clamp(24px, 4vw, 38px); line-height: 1.15; letter-spacing: -0.01em;
  color: var(--navy); max-width: 24ch; margin-bottom: 16px;
  text-wrap: balance;
}
.strip__text { font-size: 17px; max-width: 68ch; color: var(--ink-soft); }
.strip__text b { color: var(--ink); }

/* ---------------- sections ---------------- */
.section { padding: 72px 0; border-bottom: 1px solid var(--line); }
.section-title {
  font-family: "Montserrat", sans-serif; font-weight: 800;
  font-size: clamp(26px, 4vw, 38px); letter-spacing: -0.01em; line-height: 1.15;
  color: var(--navy); margin-bottom: 12px;
  text-wrap: balance;
}
.section-sub { color: var(--ink-soft); max-width: 60ch; margin-bottom: 40px; font-size: 16px; }

/* день автомата: таймлайн на лінійках */
.day__timeline { list-style: none; max-width: 720px; }
.day__row {
  display: grid; grid-template-columns: 76px 1fr; gap: 20px; align-items: baseline;
  padding: 18px 0; border-top: 1px solid var(--line-soft);
}
.day__time {
  font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 17px;
  color: var(--copper-deep);
}
.day__row p { color: var(--ink-soft); font-size: 15.5px; }
.day__row p b { color: var(--ink); display: block; margin-bottom: 2px; }
.day__note { margin-top: 32px; color: var(--ink-soft); max-width: 68ch; font-size: 15px; }
.day__note::before { content: ""; display: block; width: 56px; border-top: 2px solid var(--copper); margin-bottom: 14px; }

/* кроки покупки: цифра + текст, без коробок */
.steps { display: grid; gap: 32px; max-width: 980px; }
.step { border-top: 1px solid var(--line-soft); padding-top: 18px; }
.step__num {
  font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 15px;
  color: var(--copper-deep);
}
.step h3 { font-family: "Montserrat", sans-serif; font-size: 20px; margin: 8px 0 8px; color: var(--navy); }
.step p { color: var(--ink-soft); font-size: 15.5px; max-width: 44ch; }
.step p b { color: var(--ink); }
.step--payoff h3 { color: var(--copper-deep); }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* локація: сітка на лінійках */
.cards { display: grid; gap: 28px; }
.card { border-top: 1px solid var(--line-soft); padding-top: 18px; }
.card__ic { margin-bottom: 12px; color: var(--copper-deep); }
.card__ic svg { width: 26px; height: 26px; }
.card h3 { font-family: "Montserrat", sans-serif; font-size: 17px; margin-bottom: 6px; color: var(--navy); }
.card p { color: var(--ink-soft); font-size: 15px; }
.card--featured h3 { color: var(--copper-deep); }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); column-gap: 48px; } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(4, 1fr); column-gap: 40px; } }
.location__note { margin-top: 40px; color: var(--ink-soft); max-width: 68ch; font-size: 15px; }
.location__note::before { content: ""; display: block; width: 56px; border-top: 2px solid var(--copper); margin-bottom: 14px; }

/* як це працює для відвідувача */
.client__grid { display: grid; gap: 44px; align-items: start; }
.client__steps { list-style: none; counter-reset: cstep; display: grid; margin-bottom: 28px; max-width: 520px; }
.client__steps li {
  counter-increment: cstep;
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: baseline;
  padding: 12px 0; border-top: 1px solid var(--line-soft);
  color: var(--ink-soft); font-size: 15.5px;
}
.client__steps li b { color: var(--ink); }
.client__steps li::before {
  content: counter(cstep, decimal-leading-zero);
  font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 15px;
  color: var(--copper-deep);
}
.client__panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 28px; }
.client__panel h3 { font-family: "Montserrat", sans-serif; font-size: 19px; margin-bottom: 18px; color: var(--navy); }
.checklist { list-style: none; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 28px; color: var(--ink-soft); font-size: 15px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 700; }
@media (min-width: 900px) { .client__grid { grid-template-columns: 1.05fr 0.95fr; } }

/* порівняння: дві колонки, розділені лінією */
.compare__grid { display: grid; gap: 36px; }
.compare__col h3 {
  font-family: "Montserrat", sans-serif; font-size: 17px; margin-bottom: 18px;
  padding-bottom: 12px; border-bottom: 2px solid var(--line);
}
.compare__col--them h3 { color: var(--ink-soft); }
.compare__col--us h3 { color: var(--navy); border-bottom-color: var(--copper); }
.compare__col ul { list-style: none; display: grid; gap: 12px; }
.compare__col li { position: relative; padding-left: 26px; font-size: 15px; color: var(--ink-soft); }
.compare__col--them li::before { content: "✕"; position: absolute; left: 0; color: var(--danger); font-weight: 700; }
.compare__col--us li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
@media (min-width: 860px) { .compare__grid { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* оператор: просто великий текст */
.operator { padding: 72px 0; border-bottom: 1px solid var(--line); }
.operator__quote { max-width: 760px; }
.operator__quote p { font-size: clamp(19px, 2.6vw, 24px); line-height: 1.5; color: var(--ink); }
.operator__quote p b { color: var(--navy); }
.operator__sig { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--copper-deep); }

/* faq: лінійки, без коробок */
.faq__list { max-width: 760px; }
.faq__item { border-top: 1px solid var(--line-soft); }
.faq__item:last-child { border-bottom: 1px solid var(--line-soft); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 18px 44px 18px 0;
  font-weight: 600; font-size: 16.5px; position: relative; color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--navy); transition: transform 160ms var(--ease);
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { padding: 0 0 20px; color: var(--ink-soft); font-size: 15.5px; max-width: 70ch; }

/* cta: єдиний кольоровий блок */
.cta { padding: 88px 0; background: var(--navy); border-bottom: none; }
.cta__inner { max-width: 720px; }
.cta__inner h2 {
  font-family: "Montserrat", sans-serif; font-weight: 800;
  font-size: clamp(28px, 4.4vw, 42px); line-height: 1.1; letter-spacing: -0.01em;
  color: #fff; margin-bottom: 14px; text-wrap: balance;
}
.cta__inner p { color: rgba(255, 255, 255, 0.78); max-width: 56ch; margin-bottom: 30px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn--primary { background: var(--copper); color: var(--navy-deep); font-weight: 700; }
.cta .btn--primary:hover { background: #d5a373; }
.cta .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.cta .btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* footer */
.footer { padding: 26px 0; background: var(--navy-deep); }
.footer .brand { color: #fff; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.footer__copy { color: rgba(255, 255, 255, 0.6); font-size: 14px; }

/* стриманий reveal; без JS все видно */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 360ms var(--ease), transform 360ms var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.reveal--in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
