:root {
  --bg: #17121d;
  --ink: #fff6ee;
  --muted: #cfc3cf;
  --dim: #9d90a3;
  --panel: rgba(23, 18, 29, .66);
  --panel-solid: #221a2a;
  --line: rgba(255, 236, 220, .12);
  --accent: #f2994a;
  --accent-2: #ff7a59;
  --gold: #f6c56b;
  --ok: #7fd6a4;
  --radius: 20px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 16px/1.6 var(--font);
  overflow-x: hidden;
  padding-bottom: 84px;
}
@media (min-width: 900px) { body { padding-bottom: 0; } }

a { color: inherit; }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -.02em; }
h2 { font-size: clamp(28px, 4.4vw, 42px); font-weight: 800; }
h3 { font-size: 22px; font-weight: 800; }
p { margin: 0 0 12px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }

/* ---------- фон: пейзаж Халонга ---------- */
.bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(23,18,29,.25) 0%, rgba(23,18,29,.55) 45%, rgba(23,18,29,.92) 85%),
    image-set(url("/img/hero-1080.webp") type("image/webp"), url("/img/hero.jpg") type("image/jpeg")) center 30% / cover no-repeat;
  background-color: var(--bg);
}
@media (min-width: 1100px) {
  .bg {
    background:
      linear-gradient(180deg, rgba(23,18,29,.2) 0%, rgba(23,18,29,.55) 45%, rgba(23,18,29,.92) 85%),
      image-set(url("/img/hero-1920.webp") type("image/webp"), url("/img/hero.jpg") type("image/jpeg")) center 30% / cover no-repeat;
  }
}

/* ---------- шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(180deg, rgba(23,18,29,.75), rgba(23,18,29,0));
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.top-in { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; font-size: 17px; white-space: nowrap; }
.logo-mark {
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--gold), var(--accent-2));
  clip-path: polygon(0 100%, 38% 18%, 58% 58%, 74% 34%, 100% 100%);
}
.nav { display: none; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--ink); }
@media (min-width: 900px) { .nav { display: flex; } }
.langs { margin-left: auto; display: flex; background: rgba(255,255,255,.08); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
@media (min-width: 900px) { .langs { margin-left: 8px; } }
.langs button {
  border: 0; background: none; color: var(--muted); font: 700 13px var(--font);
  padding: 6px 11px; border-radius: 999px; cursor: pointer;
}
.langs button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 14px;
  font: 800 16px var(--font); text-decoration: none; cursor: pointer; border: 0;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:active { transform: scale(.98); }
.btn-main {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1b1016;
  box-shadow: 0 10px 30px -10px rgba(255,122,89,.7);
}
.btn-main:hover { box-shadow: 0 14px 34px -10px rgba(255,122,89,.9); }
.btn-ghost { background: rgba(255,255,255,.08); color: var(--ink); border: 1px solid rgba(255,255,255,.22); }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn.full { width: 100%; min-height: 64px; font-size: 19px; font-weight: 800; letter-spacing: .01em; }
.btn.full .ic { width: 24px; height: 24px; }
.cities .btn.full { min-height: 40px; font-size: 14px; }
.ic { width: 20px; height: 20px; flex: none; }

/* ---------- hero ---------- */
.hero { min-height: min(calc(100svh - 64px), 760px); display: flex; align-items: flex-end; padding: 40px 0 36px; }
@media (min-width: 900px) { .hero { min-height: 640px; align-items: center; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: rgba(23,18,29,.5); border: 1px solid var(--line); color: var(--gold);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(127,214,164,.2); }
h1 {
  font-size: clamp(38px, 7.2vw, 72px); font-weight: 800; margin: 18px 0 16px;
  text-shadow: 0 2px 30px rgba(0,0,0,.35); max-width: 15ch;
}
h1 em { font-style: normal; background: linear-gradient(90deg, var(--gold), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 2vw, 20px); color: #f1e6ea; max-width: 40ch; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.cta-row .btn { flex: 1 1 240px; }
@media (min-width: 700px) { .cta-row .btn { flex: 0 0 auto; } }
.price-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: flex; flex-direction: column; text-decoration: none;
  padding: 10px 16px; border-radius: 14px; background: var(--panel);
  border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.chip > span { font-size: 13px; color: var(--muted); font-weight: 600; }
.chip b { font-size: 18px; font-variant-numeric: tabular-nums; }
.chip-gold { border-color: rgba(246,197,107,.45); }
.chip-gold b { color: var(--gold); }

/* ---------- факты ---------- */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact {
  padding: 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.fact b { display: block; font-size: 22px; font-weight: 800; color: var(--gold); }
.fact span { font-size: 14px; color: var(--muted); line-height: 1.4; display: block; }

/* ---------- секции ---------- */
.block { padding: 56px 16px 0; }
@media (min-width: 700px) { .block { padding: 80px 28px 0; } }
.head { margin-bottom: 24px; }
.kicker { color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; margin-bottom: 8px; }
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
@media (min-width: 700px) { .panel { padding: 40px; } }

.about { display: grid; gap: 18px; }
.about p { color: var(--muted); }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 1.3fr; gap: 48px; } }

.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(127,214,164,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5 10 16.5 18 8' stroke='%237fd6a4' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- тарифы ---------- */
.cards { display: grid; gap: 16px; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.card {
  position: relative; display: flex; flex-direction: column;
  padding: 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
@media (min-width: 700px) { .card { padding: 34px; } }
.card .ticks { margin-bottom: 22px; }
.card > .btn { margin-top: auto; }
.card-gold {
  border: 1px solid rgba(246,197,107,.5);
  background: linear-gradient(160deg, rgba(246,197,107,.14), rgba(23,18,29,.72) 45%);
  box-shadow: 0 30px 80px -40px rgba(246,197,107,.5);
}
.badge {
  position: absolute; top: -13px; left: 26px; padding: 5px 12px; border-radius: 999px;
  background: var(--gold); color: #24170b; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
}
.price { margin: 14px 0 2px; }
.price b { font-size: clamp(32px, 5vw, 40px); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.card-gold .price b { color: var(--gold); }
.per { color: var(--muted); font-size: 14px; }

.wait { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; margin-bottom: 22px; font-size: 14px; color: var(--muted); }
.wait .bar { grid-column: 1 / -1; grid-row: 2; height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.wait .bar i { display: block; height: 100%; border-radius: 99px; background: rgba(255,255,255,.35); }
.card-gold .wait .bar i { background: linear-gradient(90deg, var(--gold), var(--accent)); }
.wait b { color: var(--ink); grid-column: 2; grid-row: 1; }

.calc {
  display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center;
  padding: 16px; border-radius: 14px; background: rgba(0,0,0,.25); border: 1px solid var(--line); margin-bottom: 18px;
}
.calc label { font-weight: 700; }
.stepper { display: flex; align-items: center; gap: 4px; background: rgba(255,255,255,.07); border-radius: 12px; padding: 4px; }
.stepper button {
  width: 40px; height: 40px; border: 0; border-radius: 9px; background: rgba(255,255,255,.1);
  color: var(--ink); font: 700 20px var(--font); cursor: pointer;
}
.stepper button:hover { background: rgba(255,255,255,.18); }
.stepper output { min-width: 32px; text-align: center; font-weight: 800; font-size: 18px; }
.total { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--line); padding-top: 12px; }
.total span { color: var(--muted); }
.total b { font-size: 24px; color: var(--gold); font-variant-numeric: tabular-nums; }

/* ---------- города ---------- */
.table-panel { padding: 8px 8px 20px; }
@media (min-width: 700px) { .table-panel { padding: 16px 28px 28px; } }
.cities { width: 100%; border-collapse: collapse; }
.cities th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); padding: 12px; font-weight: 700; }
.cities td { padding: 14px 12px; border-top: 1px solid var(--line); }
.cities td:first-child { font-weight: 700; font-size: 17px; }
.cities td.sched { color: var(--muted); font-size: 14px; }
.cities td:nth-child(3) { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--gold); white-space: nowrap; }
.cities td.stamp-cell { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ok); white-space: nowrap; font-size: 15px; }
.cities td.stamp-cell.empty { color: var(--dim); font-weight: 400; }
.cities td:last-child { text-align: right; width: 1%; }
.cities .btn { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; white-space: nowrap; }
.cities tr.city-dir th { padding: 20px 12px 8px; text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 800; color: var(--gold); }
@media (max-width: 520px) {
  .cities thead { display: none; }
  .cities tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 14px 12px; border-top: 1px solid var(--line); }
  .cities tr:first-child { border-top: 0; }
  .cities td { border: 0; padding: 0; }
  .cities td.sched { grid-column: 1; }
  .cities td:nth-child(3) { grid-column: 1; }
  .cities td.stamp-cell { grid-column: 1; }
  .cities td.visa-cell::before, .cities td.stamp-cell::before { content: attr(data-label) ": "; color: var(--dim); font-weight: 600; font-size: 13px; }
  .cities td.stamp-cell.empty { display: none; }
  .cities td:last-child { grid-row: 1 / 5; grid-column: 2; align-self: center; }
  .cities tr.city-dir { display: block; padding: 0; border-top: 0; }
  .cities tr.city-dir th { display: block; padding: 18px 12px 6px; }
}
.note { color: var(--muted); font-size: 14px; margin: 16px 12px 0; }

/* ---------- шаги ---------- */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.steps li {
  counter-increment: s; padding: 22px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: rgba(242,153,74,.16); color: var(--accent); font-weight: 800; margin-bottom: 12px;
}
.steps b { display: block; font-size: 18px; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 15px; line-height: 1.5; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details {
  border-radius: 16px; background: var(--panel); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 700; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--muted); margin: 0; }

/* ---------- контакты / форма ---------- */
.contact { display: grid; gap: 28px; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; gap: 48px; } }
.contact > div > p { color: var(--muted); margin-top: 12px; }
.cta-col { display: grid; gap: 10px; margin-top: 20px; }
.form { display: grid; gap: 12px; padding: 20px; border-radius: 16px; background: rgba(0,0,0,.22); border: 1px solid var(--line); }
.form-t { font-weight: 800; font-size: 17px; margin: 0 0 4px; }
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); font-weight: 600; }
.form input, .form select {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); color: var(--ink);
  font: 600 16px var(--font);
}
.form select option { background: var(--panel-solid); }
.form input:focus, .form select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { margin: 0; min-height: 1.5em; font-weight: 700; font-size: 15px; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: #ff9b8a; }

/* ---------- футер ---------- */
.foot { padding: 56px 0 32px; color: var(--dim); font-size: 15px; }
.foot .small { font-size: 13px; }
.foot summary { cursor: pointer; }

/* ---------- мобильная кнопка ---------- */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(23,18,29,0), rgba(23,18,29,.95) 35%);
  transform: translateY(110%); transition: transform .25s;
}
.sticky.show { transform: none; }
@media (min-width: 900px) { .sticky { display: none; } }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
