:root {
  --navy: #0F2149;
  --navy-2: #172d5e;
  --navy-3: #0a1734;
  --gold: #D4AF37;
  --gold-soft: #f3e8c4;
  --white: #ffffff;
  --paper: #f6f7fb;
  --ink: #0F2149;
  --text: #2a3550;
  --muted: #5d6781;
  --line: #e2e6ef;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 33, 73, 0.08);
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy); }
a:hover { color: #8a6d12; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--gold); color: var(--navy); padding: 8px 12px; border-radius: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 33, 73, 0.97);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-weight: 700; font-size: 1.2rem; white-space: nowrap; }
.logo:hover { color: var(--white); }
.logo img { width: 34px; height: 48px; flex: 0 0 auto; }
.logo b { color: var(--gold); font-weight: 700; }
.nav { display: flex; gap: 22px; }
.nav a { color: rgba(255,255,255,.85); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--gold); }
.header-cta { padding: 9px 16px !important; font-size: .95rem !important; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; text-align: center;
  padding: 14px 24px; border-radius: 10px; border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #e2c050; color: var(--navy); }
.btn-outline { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* Hero */
.hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(212,175,55,.18), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-3) 100%);
  color: var(--white);
  padding: 88px 0 96px;
}
.hero h1 { color: var(--white); font-size: clamp(2rem, 5.4vw, 3.4rem); max-width: 860px; }
.hero h1 .accent { color: var(--gold); }
.hero .lead { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: rgba(255,255,255,.85); max-width: 720px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 40px; padding: 0; list-style: none; color: rgba(255,255,255,.75); font-size: .95rem; }
.hero-badges li::before { content: "✓"; color: var(--gold); font-weight: 700; margin-right: 8px; }

/* Sections */
.section { padding: 80px 0; scroll-margin-top: 64px; }
.section.alt { background: var(--paper); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.eyebrow { display: inline-block; color: #8a6d12; font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }

.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card p { color: var(--muted); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--navy); color: var(--gold);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card .icon svg { width: 24px; height: 24px; }
.tag {
  margin-top: auto; align-self: flex-start; font-size: .82rem; font-weight: 600;
  padding: 5px 12px; border-radius: 999px; background: var(--gold-soft); color: #6b5410;
}
.tag.navy { background: #e6ebf6; color: var(--navy); }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 76px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 22px; left: 26px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold); color: var(--navy); font-weight: 800;
  display: grid; place-items: center;
}

/* Features */
.features { list-style: none; padding: 0; margin: 0; }
.features li {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.features .check {
  flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--gold);
  display: grid; place-items: center; font-weight: 800;
}
.features strong { display: block; color: var(--ink); margin-bottom: 4px; }
.features span.desc { color: var(--muted); }

/* Pricing */
.price-card { position: relative; }
.price-card.featured { border: 2px solid var(--gold); }
.price-card .ribbon {
  position: absolute; top: -13px; left: 26px; background: var(--gold); color: var(--navy);
  font-size: .85rem; font-weight: 700; padding: 4px 12px; border-radius: 999px;
}
.price { font-size: 2rem; font-weight: 800; color: var(--ink); line-height: 1.1; margin: 6px 0 4px; }
.price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.price-note { color: var(--muted); font-size: .92rem; margin-bottom: 16px; }
.price-card ul { padding-left: 0; list-style: none; margin: 0 0 20px; }
.price-card li { padding: 6px 0 6px 26px; position: relative; color: var(--text); }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: #a88a1f; font-weight: 800; }
.price-card .btn { margin-top: auto; }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); color: var(--white); }
.trial-banner {
  margin-top: 28px; padding: 18px 22px; border-radius: var(--radius);
  background: var(--navy); color: var(--white); display: flex; flex-wrap: wrap; gap: 8px 20px;
  align-items: center; justify-content: space-between;
}
.trial-banner strong { color: var(--gold); font-size: 1.1rem; }
.fine { font-size: .88rem; color: var(--muted); margin-top: 14px; }

/* Payment */
.pay-list { counter-reset: pay; list-style: none; padding: 0; margin: 0; }
.pay-list li { counter-increment: pay; position: relative; padding: 0 0 22px 56px; }
.pay-list li::before {
  content: counter(pay); position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--gold);
  color: var(--navy); font-weight: 800; display: grid; place-items: center;
}
.pay-list strong { color: var(--ink); }
.pay-aside { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.pay-aside h3 { margin-bottom: 12px; }
.pay-aside ul { padding-left: 20px; margin: 0; color: var(--muted); }
.pay-aside li { margin-bottom: 8px; }

/* Contacts */
.contacts { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-3) 100%); color: var(--white); }
.contacts h2 { color: var(--white); }
.contacts .section-head p { color: rgba(255,255,255,.8); }
.contacts .eyebrow { color: var(--gold); }
.contact-card {
  display: block; text-decoration: none; color: var(--white);
  border: 1px solid rgba(212,175,55,.35); border-radius: var(--radius); padding: 24px;
  background: rgba(255,255,255,.04); transition: border-color .15s ease, background .15s ease;
}
.contact-card:hover { border-color: var(--gold); background: rgba(255,255,255,.08); color: var(--white); }
.contact-card .label { color: var(--gold); font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.contact-card .value { display: block; font-size: 1.2rem; font-weight: 700; margin-top: 6px; word-break: break-word; }
.contact-card .hint { display: block; color: rgba(255,255,255,.7); font-size: .92rem; margin-top: 6px; }

/* Lead form */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.contact-side { display: grid; gap: 20px; }
.form-card {
  background: var(--white); color: var(--text); border-radius: var(--radius);
  padding: 28px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); scroll-margin-top: 80px;
}
.lead-form h3 { margin-bottom: 18px; font-size: 1.35rem; }
.lead-form[hidden] { display: none; }
.field { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .95rem; padding: 0; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1.5px solid #cfd5e3; border-radius: 10px; padding: 12px 14px; min-height: 48px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input::placeholder, .field textarea::placeholder { color: #8b93a8; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(212, 175, 55, .35); }
.field input[aria-invalid="true"] { border-color: #c0392b; }
.field-error { display: none; color: #b03a2e; font-size: .88rem; margin-top: 6px; }
.field-error.show { display: block; }

.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.segmented label { margin: 0; position: relative; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented span {
  display: block; text-align: center; padding: 11px 8px; border: 1.5px solid #cfd5e3; border-radius: 10px;
  font-weight: 600; color: var(--muted); cursor: pointer; min-height: 46px; transition: all .15s ease;
}
.segmented input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--gold); }
.segmented input:focus-visible + span { box-shadow: 0 0 0 3px rgba(212, 175, 55, .5); }

.checkbox { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; color: var(--text) !important; cursor: pointer; }
.checkbox input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 20px; accent-color: var(--navy); }
.consent-field { margin-top: 4px; }
.btn-block { display: block; width: 100%; border: 0; font: inherit; font-weight: 700; cursor: pointer; padding: 15px 24px; }
.btn-block:disabled { opacity: .7; cursor: wait; transform: none; }
.form-status { margin: 10px 0 0; color: #b03a2e; font-size: .92rem; min-height: 1em; }

.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.form-result { display: none; border-radius: 10px; padding: 16px 18px; margin-bottom: 16px; font-size: 1.05rem; }
.form-result.show, .form-result:target { display: block; }
.form-result.ok { background: #eef7ee; color: #1e5a2b; border: 1px solid #b9dcbf; }
.form-result.ok strong { color: #1e5a2b; }
.form-result.warn { background: #fdf3e7; color: #7a4a0e; border: 1px solid #f0d2a8; }

/* Footer */
.site-footer { background: var(--navy-3); color: rgba(255,255,255,.75); padding: 40px 0; font-size: .93rem; border-top: 1px solid rgba(212,175,55,.25); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.site-footer a { color: rgba(255,255,255,.9); }
.site-footer a:hover { color: var(--gold); }
.site-footer .req strong { color: var(--white); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; color: rgba(255,255,255,.55); }

/* Legal documents */
.doc-hero { background: var(--navy); color: var(--white); padding: 48px 0 40px; }
.doc-hero h1 { color: var(--white); font-size: clamp(1.6rem, 4.2vw, 2.4rem); margin-bottom: 10px; }
.doc-hero .edition { display: inline-block; color: var(--navy); background: var(--gold); font-weight: 700; font-size: .9rem; padding: 5px 12px; border-radius: 999px; }
.doc-hero .back { display: inline-block; color: rgba(255,255,255,.8); margin-bottom: 18px; text-decoration: none; font-size: .95rem; }
.doc-hero .back:hover { color: var(--gold); }
.doc { max-width: 820px; padding-top: 44px; padding-bottom: 72px; }
.doc h2 { font-size: 1.3rem; margin-top: 2em; padding-top: .4em; border-top: 1px solid var(--line); }
.doc h2:first-of-type { border-top: 0; margin-top: 0; }
.doc p, .doc li { color: var(--text); }
.doc ol, .doc ul { padding-left: 1.3em; }
.doc li { margin-bottom: .4em; }
.doc table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: .97rem; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { background: var(--paper); color: var(--ink); }
.doc .table-scroll { overflow-x: auto; }
.doc .requisites { background: var(--paper); border-left: 4px solid var(--gold); padding: 18px 20px; border-radius: 8px; }
.doc .requisites p { margin: 0 0 .3em; }

/* Responsive */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { padding: 56px 0 64px; }
  .hero-actions .btn { width: 100%; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .form-card { padding: 22px 18px; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .wrap { padding: 0 16px; }
  .header-cta { display: none !important; }
  .card { padding: 22px; }
  .card.step { padding-top: 72px; }
  .step::before { left: 22px; }
  .doc table.stack thead { display: none; }
  .doc table.stack, .doc table.stack tbody, .doc table.stack tr, .doc table.stack td { display: block; width: 100%; }
  .doc table.stack tr { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
  .doc table.stack td { border: 0; border-bottom: 1px solid var(--line); }
  .doc table.stack td:last-child { border-bottom: 0; font-weight: 700; color: var(--ink); }
  .doc table.stack td::before { content: attr(data-label); display: block; font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
