:root {
  --navy: #0B2545;
  --navy-2: #123056;
  --teal: #0F7A73;
  --teal-2: #14958C;
  --mint: #E7F6F4;
  --cream: #F6F3EE;
  --gold: #C6A15B;
  --ink: #1C2434;
  --muted: #5B6576;
  --line: #D9E2E8;
  --coral: #D96B57;
  --ok: #2A9D8F;
  --white: #fff;
  --header-h: 76px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 40px rgba(11, 37, 69, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 37, 69, 0.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--gold);
  color: var(--navy);
  padding: 8px 14px;
  z-index: 100;
  border-radius: 8px;
}
.skip:focus { left: 12px; }

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

/* ——— Header ——— */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  isolation: isolate;
  height: var(--header-h);
  background: rgba(246, 243, 238, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(11, 37, 69, 0.06);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  object-fit: cover;
}
.brand-name {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.15s, background 0.15s;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--navy);
  background: rgba(15, 122, 115, 0.1);
}
.header-cta { display: flex; align-items: center; gap: 10px; }
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
}
.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  position: relative;
}
.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover { background: #d4b06a; }
.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(198, 161, 91, 0.7);
}
.btn-ghost:hover { background: rgba(198, 161, 91, 0.12); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ——— Hero ——— */
.hero {
  background: var(--navy);
  color: #fff;
  padding: 28px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% 40%;
  height: 420px;
  background: radial-gradient(circle, rgba(15, 122, 115, 0.28), transparent 65%);
  pointer-events: none;
}
.kicker {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin-bottom: 18px;
}
.lead {
  font-size: clamp(17px, 2vw, 20px);
  color: rgba(255, 255, 255, 0.82);
  max-width: 42ch;
  line-height: 1.45;
  margin-bottom: 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero-photo {
  border-radius: 18px;
  overflow: hidden;
  height: min(52vh, 460px);
  box-shadow: var(--shadow-lg);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.tag {
  border: 1px solid rgba(198, 161, 91, 0.8);
  color: var(--gold);
  background: rgba(198, 161, 91, 0.1);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
}

/* ——— Page hero (inner) ——— */
.page-hero {
  background: var(--cream);
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  max-width: 18ch;
  margin-bottom: 14px;
}
.page-hero p {
  color: var(--muted);
  font-size: 18px;
  max-width: 58ch;
}

/* ——— Sections ——— */
.section { padding: 88px 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: #fff; }
.section-mint { background: var(--mint); }
.section h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 12px;
}
.section-navy h2 { color: #fff; }
.lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 36px;
}
.section-navy .lede { color: rgba(255, 255, 255, 0.78); }
.section-head { margin-bottom: 36px; }

.photo {
  border-radius: 16px;
  overflow: hidden;
  line-height: 0;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: 20px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card h3, .card h4 {
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.card p, .card li { color: var(--muted); font-size: 15.5px; }
.num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--teal);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.card-dark {
  background: var(--navy);
  color: #fff;
  box-shadow: none;
}
.card-dark h3, .card-dark h4 { color: var(--gold); }
.card-dark p { color: rgba(255, 255, 255, 0.85); }

.icon-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.icon-row:last-child { margin-bottom: 0; }
.ico {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 12px;
  background: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-row h4 { margin-bottom: 4px; font-size: 16px; color: var(--navy); }
.icon-row p { font-size: 15px; color: var(--muted); }

/* ——— Chat ——— */
.chat {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.chat .label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 14px;
}
.bubble {
  display: table;
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 10px;
}
.bubble.user {
  background: var(--mint);
  color: var(--navy);
  border-bottom-left-radius: 4px;
}
.bubble.bot {
  background: var(--navy);
  color: #fff;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}
.bubble .who {
  display: block;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.7;
  margin-bottom: 4px;
}

/* ——— Steps / flow ——— */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.step .n {
  font-size: 28px;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 10px;
}
.step h4 { font-size: 16px; color: var(--navy); margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--muted); }

.flow {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-wrap: wrap;
}
.flow .node {
  flex: 1;
  min-width: 130px;
  background: #fff;
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  box-shadow: var(--shadow);
}
.flow .node small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 4px;
}
.arrow {
  color: var(--teal);
  font-size: 22px;
  font-weight: 700;
  align-self: center;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.stat {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.stat .value {
  font-size: 40px;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
}
.stat h4 { font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.stat p { font-size: 15px; color: var(--muted); }
.stat.full { grid-column: 1 / -1; display: flex; gap: 24px; align-items: center; }
.stat.full .value { margin-bottom: 0; min-width: 110px; font-size: 32px; }

.fork { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.arm { border-radius: var(--radius); padding: 22px; }
.arm.good { background: #E7F6F0; }
.arm.bad { background: #FDECEA; }
.arm h4 { font-size: 17px; margin-bottom: 8px; }
.arm.good h4 { color: #1B7A63; }
.arm.bad h4 { color: #B23A2F; }
.arm p { font-size: 15px; color: var(--ink); }

.note {
  background: var(--mint);
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 15.5px;
  color: var(--navy);
  margin-top: 18px;
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 650;
  color: var(--navy);
  box-shadow: var(--shadow);
}

.module-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  height: 100%;
}
.module-card img { height: 180px; width: 100%; object-fit: cover; }
.module-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.module-card .badge {
  display: inline-block;
  background: var(--mint);
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 10px;
  width: fit-content;
}
.module-card .more {
  margin-top: auto;
  padding-top: 14px;
  color: var(--teal);
  font-weight: 700;
  font-size: 14px;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.contacts-grid .k {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 6px;
}
.contacts-grid .v {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}
.contacts-grid .s { font-size: 14px; color: var(--muted); margin-top: 4px; }
.contacts-grid a.v:hover { color: var(--teal); }

/* ——— Form ——— */
.form {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--cream);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 122, 115, 0.12);
  background: #fff;
}
.form-success {
  display: none;
  background: var(--mint);
  color: var(--navy);
  border-radius: 12px;
  padding: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}
.form.is-sent .form-success { display: block; }
.form.is-sent .form-fields { display: none; }

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: start;
}

/* ——— Footer ——— */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer .brand-name { color: #fff; }
.footer p { font-size: 14.5px; margin-top: 12px; max-width: 32ch; }
.footer h4 {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer a { display: block; margin-bottom: 8px; font-size: 15px; }
.footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  flex-wrap: wrap;
}

.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, #0F7A73 140%);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.8); max-width: 46ch; margin: 0 auto 24px; }

.cta-try {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, #0F7A73 140%);
  color: #fff;
  padding: 56px 0;
}
.cta-try-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  width: min(920px, calc(100% - 40px));
  margin-inline: auto;
}
.cta-try-kicker {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
}
.cta-try-qrs {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}
.cta-try-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 22px;
  padding: 14px 14px 12px;
  box-shadow: var(--shadow-lg);
  color: var(--navy);
  min-width: 176px;
}
.cta-try-qr img {
  width: 148px;
  height: 148px;
  object-fit: contain;
}
.cta-try-qr-name {
  margin-top: 8px;
  font-weight: 800;
  font-size: 15px;
  color: var(--navy);
}
.cta-try h2 {
  color: #fff;
  margin-bottom: 10px;
}
.cta-try p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 44ch;
  margin-bottom: 0;
}
.cta-try-handle {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
}
.cta-try-qr:hover .cta-try-handle { color: var(--navy); }

.try-qrs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 760px;
  margin-inline: auto;
}
.try-qr-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.try-qr-code {
  display: block;
  background: #fff;
  border-radius: 20px;
  padding: 14px;
  width: fit-content;
  margin: 0 auto 18px;
  box-shadow: var(--shadow);
}
.try-qr-code img {
  width: 220px;
  height: 220px;
  object-fit: contain;
}
.try-qr-card h2 {
  font-size: 22px;
  margin-bottom: 8px;
}
.try-qr-card p {
  color: var(--muted);
  font-size: 15.5px;
  margin-bottom: 18px;
}
.try-qr-handle {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 600;
}
.try-qr-handle a { color: var(--teal); }
.try-qr-handle a:hover { color: var(--navy); }

.multi-visit {
  margin-top: 28px;
}
.multi-visit .chat { margin-top: 0; }

.qr-poster {
  display: flex;
  align-items: center;
  gap: 22px;
}
.qr-poster-code {
  display: block;
  flex-shrink: 0;
  background: #fff;
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--shadow);
}
.qr-poster-code img {
  width: 148px;
  height: 148px;
  object-fit: contain;
}
.qr-poster h3 { margin-bottom: 8px; }
.qr-poster p { color: var(--muted); }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.7s ease forwards;
}
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; opacity: 1; transform: none; }
}

@media (max-width: 1080px) {
  .menu-btn { display: flex; align-items: center; justify-content: center; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .header-cta .btn { display: none; }
}

@media (max-width: 980px) {
  .grid-3, .grid-4, .steps, .contacts-grid, .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .split { grid-template-columns: 1fr; }
  .cta-try-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 28px; }
  .cta-try p { margin-inline: auto; }
}

@media (max-width: 820px) {
  .grid-2, .grid-3, .grid-4, .steps, .fork, .stat-grid, .contacts-grid, .footer-grid, .form-row {
    grid-template-columns: 1fr;
  }
  .stat.full { flex-direction: column; align-items: flex-start; }
  .hero-photo { height: 240px; }
  .section { padding: 56px 0; }
  .flow .arrow { display: none; }
  .cta-try-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 24px; }
  .cta-try p { margin-inline: auto; }
  .cta-try-qrs { flex-wrap: wrap; justify-content: center; }
  .cta-try-qr img { width: 132px; height: 132px; }
  .try-qrs { grid-template-columns: 1fr; }
  .try-qr-code img { width: 196px; height: 196px; }
  .qr-poster { flex-direction: column; text-align: center; }
}
