:root {
  --bg: #e7edf2;
  --bg2: #d7e1ea;
  --paper: #f5f8fb;
  --ink: #122433;
  --muted: #5a6d7c;
  --line: rgba(18, 36, 51, .14);
  --brand: #1e4d6b;
  --brand2: #16324a;
  --sand: #c4a574;
  --sand2: #dfc79a;
  --max: 1120px;
  --font: Candara, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Bodoni MT", Didot, "Goudy Old Style", "Songti SC", Georgia, serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background:
    radial-gradient(ellipse 70% 45% at 0% 0%, rgba(30, 77, 107, .12), transparent 55%),
    radial-gradient(ellipse 50% 35% at 100% 10%, rgba(196, 165, 116, .14), transparent 50%),
    linear-gradient(180deg, #eef3f7 0%, var(--bg) 45%, #dce5ee 100%);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.55;
  overflow-x: hidden;
}
body.is-splash { overflow: hidden; }
body.is-rtl { direction: rtl; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.loader {
  position: fixed; inset: 0; z-index: 900;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: #0f2233; color: #e8eef4;
  transition: opacity .45s ease, visibility .45s ease;
}
.loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; letter-spacing: .16em;
  font-size: 24px; text-transform: uppercase;
}
.loader__tag { color: var(--sand2); font-size: 13px; letter-spacing: .08em; }
.loader__bar { width: min(220px, calc(100vw - 48px)); height: 2px; background: rgba(196,165,116,.2); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sand2), #6fa0c0); }
.loader__pct { font-size: 12px; color: var(--sand2); letter-spacing: .1em; }

.promo {
  text-align: center; padding: 9px 16px;
  background: var(--brand2); color: #e8eef4; font-size: 12px; letter-spacing: .08em;
}
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 16px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) clamp(16px, 4vw, 32px) 10px;
  background: rgba(231, 237, 242, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 600; letter-spacing: .12em;
  font-size: 18px; text-transform: uppercase;
}
.logo__mark {
  width: 28px; height: 28px; flex: none;
  background: url("./assets/favicon.svg") center / contain no-repeat;
}
.nav__links { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav__links a { color: var(--muted); font-size: 14px; font-weight: 600; }
.nav__links a:hover { color: var(--brand); }
.nav__right { display: flex; align-items: center; gap: 8px; }
.lang { position: relative; }
.lang__btn {
  background: var(--paper); border: 1px solid #aebcc8; color: var(--ink);
  border-radius: 4px; cursor: pointer; padding: 8px 12px; font: inherit; font-size: 13px; min-width: 64px;
}
.lang__menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  list-style: none; min-width: 168px; max-height: min(50vh, 360px); overflow-y: auto;
  padding: 6px; border-radius: 6px; border: 1px solid var(--line); background: #fff;
}
.lang__menu li { padding: 10px 12px; border-radius: 4px; cursor: pointer; color: #111827; font-size: 13px; }
.lang__menu li:hover, .lang__menu li[aria-selected="true"] { background: #e4eef5; }
.nav__menu {
  display: none; width: 44px; height: 44px; flex-direction: column;
  justify-content: center; gap: 5px; padding: 10px;
  background: var(--paper); border: 1px solid #aebcc8; border-radius: 4px; cursor: pointer;
}
.nav__menu span { display: block; height: 2px; background: var(--ink); transition: .2s ease; }
.nav.is-open .nav__menu span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__menu span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__menu span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 4px; padding: 13px 22px; font: inherit; font-weight: 650;
  letter-spacing: .04em; border: 1px solid transparent; cursor: pointer;
}
.btn--solid { background: var(--brand); color: #e8eef4; border-color: var(--brand2); }
.btn--solid:hover { background: var(--brand2); }
.btn--ghost { background: transparent; border-color: rgba(232, 238, 244, .5); color: #e8eef4; }
.section .btn--ghost { border-color: #aebcc8; color: var(--ink); }

.hero {
  position: relative; min-height: min(92vh, 860px);
  display: grid; align-items: end; overflow: hidden; color: #e8eef4;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 35%;
  transform: scale(1.02); animation: drift 18s ease-in-out infinite alternate;
}
.hero__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(15, 34, 51, .82) 0%, rgba(15, 34, 51, .5) 48%, rgba(15, 34, 51, .18) 100%),
    linear-gradient(180deg, rgba(15, 34, 51, .2) 0%, rgba(15, 34, 51, .58) 100%);
}
.hero__copy {
  position: relative; z-index: 2;
  max-width: var(--max); width: 100%; margin: 0 auto;
  padding: clamp(48px, 10vw, 96px) clamp(16px, 4vw, 32px) clamp(40px, 7vw, 72px);
  animation: rise .8s ease both;
}
.hero__brand {
  font-family: var(--display);
  font-size: clamp(42px, 9vw, 88px);
  font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  line-height: .95; margin-bottom: 18px; color: #e8eef4;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.hero .kicker { color: var(--sand2); margin-bottom: 14px; }
.hero h1 { font-size: clamp(28px, 4.6vw, 44px); max-width: 14ch; font-weight: 500; color: #f3f7fb; }
.hero .lead { color: rgba(232, 238, 244, .84); max-width: 44ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.kicker {
  color: var(--sand); letter-spacing: .18em; text-transform: uppercase;
  font-size: 11px; margin-bottom: 12px; font-weight: 700;
}
h1, h2, .card h3 { font-family: var(--display); font-weight: 600; }
.lead { margin-top: 14px; color: var(--muted); max-width: 54ch; }
.section { padding: clamp(40px, 7vw, 80px) clamp(16px, 4vw, 32px); }
.section__head { max-width: var(--max); margin: 0 auto 24px; }
.section__head h2 { font-size: clamp(24px, 4vw, 36px); }
.section--alt {
  background: linear-gradient(180deg, rgba(30, 77, 107, .06), rgba(30, 77, 107, .1)), var(--bg2);
}

.desk {
  max-width: 640px; margin: 0 auto;
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  padding: clamp(18px, 4vw, 28px);
  animation: rise .55s ease both;
}
.desk__progress {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sand); font-weight: 700; margin-bottom: 14px;
}
.desk__step h3 {
  font-family: var(--display); font-size: clamp(20px, 4vw, 26px);
  margin-bottom: 16px; font-weight: 600;
}
.desk__opts { display: grid; gap: 10px; }
.desk__opt {
  text-align: left; width: 100%; cursor: pointer; font: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: 14px 16px; color: var(--ink); min-height: 52px;
  transition: border-color .2s ease, background .2s ease, transform .15s ease;
}
.desk__opt:hover, .desk__opt:focus-visible {
  border-color: var(--brand); outline: none;
}
.desk__opt.is-on {
  border-color: var(--brand); background: rgba(30, 77, 107, .08);
  transform: translateY(-1px);
}
.desk__opt strong { display: block; font-size: 15px; font-weight: 700; }
.desk__opt span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.desk__result { display: grid; gap: 14px; animation: rise .5s ease both; }
.desk__result[hidden] { display: none !important; }
.desk__badge {
  display: inline-block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand2); font-weight: 700; background: rgba(196, 165, 116, .22);
  padding: 6px 10px; border-radius: 4px; width: fit-content;
}
.desk__result h3 { font-family: var(--display); font-size: 26px; }
.desk__price { font-size: 32px; font-weight: 800; color: var(--brand2); }
.desk__meta { color: var(--muted); font-size: 14px; }
.desk__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.desk__actions .btn { min-height: 48px; }
.desk-lock {
  max-width: var(--max); margin: 0 auto; padding: 18px 16px;
  border: 1px dashed var(--line); border-radius: 6px; color: var(--muted);
  background: rgba(255,255,255,.45); text-align: center; font-size: 14px;
}
#cover.is-locked .cover-grid { display: none; }
#cover:not(.is-locked) .desk-lock { display: none; }
#cover:not(.is-locked) .cover-grid { display: grid; animation: rise .55s ease both; }

.cover-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
  padding: 20px; display: grid; gap: 10px; text-align: left; color: inherit;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover, .card.is-on { border-color: var(--brand); transform: translateY(-2px); }
.card h3 { font-size: 22px; }
.card__meta, .card__note { color: var(--muted); font-size: 14px; }
.card__price { font-size: 28px; font-weight: 800; color: var(--brand2); }
.card__list { list-style: none; display: grid; gap: 6px; margin: 4px 0 8px; }
.card__list li {
  position: relative; padding-left: 16px; color: var(--muted); font-size: 13px;
}
.card__list li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px;
  border-radius: 1px; background: var(--sand);
}
.card .btn { width: 100%; height: 46px; }

.split {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start;
}
.split__art {
  border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #dfe7ef;
}
.split__art img, .how-art img { width: 100%; height: auto; object-fit: cover; }
.route-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 14px; }
.chip {
  border-radius: 4px; padding: 9px 14px; cursor: pointer; font: inherit;
  font-size: 13px; font-weight: 650; background: var(--paper);
  border: 1px solid var(--line); color: var(--ink);
}
.chip.is-on { background: var(--brand); color: #e8eef4; border-color: var(--brand); }
.check { list-style: none; display: grid; gap: 10px; margin-top: 8px; }
.check li {
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
  padding: 12px 14px; color: var(--ink); font-size: 14px;
}

.steps {
  max-width: var(--max); margin: 0 auto 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  list-style: none; counter-reset: step;
}
.steps li {
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
  padding: 18px; counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; margin-bottom: 10px;
  background: var(--brand2); color: #e8eef4; font-size: 13px; font-weight: 700; border-radius: 4px;
}
.steps strong { display: block; font-family: var(--display); font-size: 18px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 14px; }
.how-art {
  max-width: var(--max); margin: 0 auto;
  border-radius: 8px; overflow: hidden; border: 1px solid var(--line);
}

.form { max-width: 680px; margin: 0 auto; display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 8px; color: var(--muted); font-size: 14px; }
.field input, .field select, .field textarea {
  background: #ffffff; border: 1px solid #5f778a; color: #111827;
  border-radius: 4px; padding: 13px 14px; font: inherit; font-size: 16px;
  -webkit-appearance: none; appearance: none; min-height: 48px;
}
.field select option { background: #fff; color: #111827; }
.form__hint { min-height: 1.2em; font-size: 13px; }
.form__hint.ok { color: var(--brand); }
.form__hint.err { color: #b42318; }

.faq { max-width: 720px; margin: 0 auto; display: grid; gap: 10px; }
.qa { border: 1px solid var(--line); border-radius: 6px; padding: 4px 16px; background: var(--paper); }
.qa summary { cursor: pointer; padding: 12px 0; font-weight: 650; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa p { color: var(--muted); padding: 0 0 14px; font-size: 14px; }
.foot {
  padding: 28px 16px calc(28px + env(safe-area-inset-bottom, 0px));
  text-align: center; color: var(--muted); font-size: 13px;
  border-top: 1px solid var(--line); background: #d4dee7;
}
body.is-rtl .nav__links { margin-left: 0; margin-right: auto; }
body.is-rtl .lang__menu { right: auto; left: 0; }
body.is-rtl .hero__veil {
  background:
    linear-gradient(270deg, rgba(15, 34, 51, .82) 0%, rgba(15, 34, 51, .5) 48%, rgba(15, 34, 51, .18) 100%),
    linear-gradient(180deg, rgba(15, 34, 51, .2) 0%, rgba(15, 34, 51, .58) 100%);
}

@keyframes drift {
  from { transform: scale(1.02) translate3d(0,0,0); }
  to { transform: scale(1.06) translate3d(-1%, -.6%, 0); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px), (hover: none) and (pointer: coarse) {
  .nav__menu { display: flex; }
  .nav__links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 18px 16px;
    background: rgba(231, 237, 242, .98); border-bottom: 1px solid var(--line);
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { padding: 14px 0; font-size: 16px; }
  .hero { min-height: min(88vh, 720px); }
  .hero__veil {
    background: linear-gradient(180deg, rgba(15,34,51,.35) 0%, rgba(15,34,51,.8) 58%, rgba(15,34,51,.92) 100%);
  }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn, .card .btn { width: 100%; height: 48px; }
  .cover-grid, .steps, .split, .form__row, .desk__actions { grid-template-columns: 1fr; }
  .desk__actions { display: grid; }
  .desk__actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
