:root {
  --navy: #0b1f3a;
  --navy-2: #102c50;
  --navy-3: #183b67;
  --red: #c73535;
  --red-dark: #a5252c;
  --paper: #f3f6fa;
  --white: #ffffff;
  --ink: #132136;
  --muted: #607086;
  --line: #dce3eb;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(5, 22, 42, .13);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
a:focus-visible { outline: 3px solid rgba(199,53,53,.32); outline-offset: 3px; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
section[id], #privacy { scroll-margin-top: 96px; }
.skip-link { position: fixed; z-index: 200; left: 16px; top: -80px; padding: 12px 16px; background: var(--white); color: var(--navy); border-radius: 8px; }
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(11,31,58,.08);
  backdrop-filter: blur(16px);
}
.header-inner { min-height: 82px; display: flex; align-items: center; gap: 28px; }
.brand { width: 285px; flex: 0 0 auto; }
.brand img { width: 100%; height: 58px; object-fit: contain; object-position: left center; }
.desktop-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.desktop-nav a { text-decoration: none; color: #425269; font-size: .92rem; font-weight: 650; }
.desktop-nav a:hover { color: var(--red); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.phone { text-decoration: none; font-weight: 760; white-space: nowrap; }

.button {
  max-width: 100%;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-weight: 760;
  text-align: center;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .direction-body button:focus-visible, .accordion-item > button:focus-visible, .modal-close:focus-visible { outline: 3px solid rgba(199,53,53,.32); outline-offset: 3px; }
.button-small { min-height: 42px; padding-inline: 17px; background: var(--navy); color: var(--white); font-size: .88rem; }
.button-primary { background: var(--red); color: var(--white); box-shadow: 0 14px 30px rgba(199,53,53,.24); }
.button-primary:hover { background: var(--red-dark); }
.button-outline { color: var(--navy); border-color: var(--navy); background: transparent; }
.button-outline:hover { color: var(--white); background: var(--navy); }
.button-light { background: var(--white); color: var(--navy); box-shadow: 0 14px 32px rgba(5,22,42,.16); }

.hero { min-height: 780px; position: relative; display: flex; overflow: hidden; background: var(--navy); color: var(--white); }
.hero-photo { position: absolute; inset: 0 0 0 auto; width: 61%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 44%, rgba(11,31,58,.88) 54%, rgba(11,31,58,.16) 80%, rgba(11,31,58,.08) 100%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 72px; background: linear-gradient(174deg, transparent 48%, var(--white) 49%); }
.hero-layout { position: relative; z-index: 2; display: flex; align-items: center; padding: 78px 0 118px; }
.hero-copy { width: min(650px, 58%); }
.eyebrow { margin: 0 0 16px; color: #f4b8b8; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 800; }
.eyebrow-dark { color: var(--red); }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; max-width: 780px; font-size: clamp(2.55rem, 4.8vw, 4.75rem); line-height: .98; letter-spacing: -.045em; }
.hero-lead { max-width: 620px; margin: 26px 0 0; color: rgba(255,255,255,.82); font-size: 1.12rem; }
.payment-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin: 30px 0 24px; }
.payment-card { padding: 17px 19px; background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.16); border-radius: 15px; backdrop-filter: blur(12px); }
.payment-card span { display: block; color: rgba(255,255,255,.72); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.payment-card strong { display: block; margin-top: 6px; font-size: clamp(1.25rem, 2.3vw, 2rem); line-height: 1.1; }
.hero-benefits { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.hero-benefits li { position: relative; padding-left: 28px; color: rgba(255,255,255,.9); }
.hero-benefits li::before { content: ""; position: absolute; left: 0; top: .52em; width: 13px; height: 3px; background: var(--red); }
.hero-cta { display: flex; align-items: center; gap: 18px; margin-top: 30px; }
.hero-cta p { max-width: 300px; margin: 0; color: rgba(255,255,255,.56); font-size: .78rem; }

.section { padding: 105px 0; }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading h2, .final-cta h2 { margin: 0; color: var(--navy); font-size: clamp(2rem, 3.6vw, 3.35rem); line-height: 1.05; letter-spacing: -.035em; }
.section-heading > p:last-child { margin: 16px 0 0; color: var(--muted); font-size: 1.05rem; }
.split-heading { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.split-heading > div { max-width: 720px; }
.compact-heading { margin-bottom: 30px; }

.benefits-section { background: var(--white); }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.feature-card { position: relative; min-height: 270px; padding: 28px; background: var(--paper); border: 1px solid #e5ebf1; border-radius: var(--radius); overflow: hidden; }
.feature-card::after { content: ""; position: absolute; right: -30px; bottom: -45px; width: 130px; height: 130px; border: 20px solid rgba(11,31,58,.035); transform: rotate(45deg); }
.feature-card-accent { color: var(--white); background: var(--navy); border-color: var(--navy); }
.feature-card-accent::after { border-color: rgba(255,255,255,.06); }
.feature-number { color: var(--red); font-weight: 850; letter-spacing: .08em; }
.feature-card h3 { margin: 55px 0 12px; font-size: 1.3rem; line-height: 1.15; }
.feature-card p { position: relative; z-index: 1; margin: 0; color: var(--muted); }
.feature-card-accent p { color: rgba(255,255,255,.7); }

.directions-section { background: var(--navy); color: var(--white); }
.section-heading-light h2 { color: var(--white); }
.section-heading-light > p:last-child { color: rgba(255,255,255,.65); }
.direction-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.direction-card { position: relative; min-height: 510px; overflow: hidden; border-radius: var(--radius); background: #122946; isolation: isolate; }
.direction-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.direction-card:hover img { transform: scale(1.035); }
.direction-card::after { content: ""; position: absolute; z-index: 1; inset: 22% 0 0; background: linear-gradient(180deg, transparent 0%, rgba(4,15,29,.9) 58%, rgba(4,15,29,.98) 100%); }
.direction-body { position: absolute; z-index: 2; inset: auto 0 0; padding: 26px; }
.direction-body > span { color: #f0a1a1; font-size: .76rem; font-weight: 850; letter-spacing: .12em; }
.direction-body h3 { margin: 7px 0 9px; font-size: 1.38rem; line-height: 1.12; }
.direction-body p { min-height: 50px; margin: 0 0 19px; color: rgba(255,255,255,.68); font-size: .91rem; }
.direction-body button { width: 100%; min-height: 46px; border: 1px solid rgba(255,255,255,.35); border-radius: 10px; background: rgba(255,255,255,.08); color: var(--white); font-weight: 760; backdrop-filter: blur(8px); }
.direction-body button:hover { color: var(--navy); background: var(--white); }

.requirements-section { background: var(--paper); }
.requirements-layout { display: grid; grid-template-columns: .86fr 1.14fr; gap: 58px; align-items: center; }
.requirements-photo-wrap { position: relative; min-height: 620px; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.requirements-photo-wrap > img { width: 100%; height: 620px; object-fit: cover; }
.photo-caption { position: absolute; left: 20px; right: 20px; bottom: 20px; padding: 20px; border-radius: 14px; color: var(--white); background: rgba(11,31,58,.9); backdrop-filter: blur(10px); }
.photo-caption strong, .photo-caption span { display: block; }
.photo-caption span { margin-top: 5px; color: rgba(255,255,255,.66); font-size: .88rem; }
.requirement-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.requirement-cards article { padding: 25px; background: var(--white); border-radius: 18px; border: 1px solid var(--line); }
.requirement-cards h3 { margin: 0 0 18px; font-size: 1.2rem; }
.requirement-cards ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; color: var(--muted); }
.requirement-cards li { position: relative; padding-left: 18px; }
.requirement-cards li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.fine-print { margin: 18px 0 22px; color: var(--muted); font-size: .82rem; }

.steps-section { color: var(--white); background: linear-gradient(145deg, var(--navy), #071626); }
.steps-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.timeline li { position: relative; display: grid; grid-template-columns: 50px 1fr; gap: 20px; padding-bottom: 30px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 24px; top: 48px; bottom: 0; width: 1px; background: rgba(255,255,255,.18); }
.timeline li:last-child::before { display: none; }
.timeline li > span { width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; color: #ffc0c0; font-weight: 850; }
.timeline h3 { margin: 0 0 8px; font-size: 1.2rem; }
.timeline p { margin: 0; color: rgba(255,255,255,.61); }
.steps-photo-wrap { position: relative; min-height: 570px; border-radius: 28px; overflow: hidden; }
.steps-photo-wrap img { width: 100%; height: 570px; object-fit: cover; }
.steps-photo-wrap::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(5,18,33,.72)); }
.steps-photo-wrap .button { position: absolute; z-index: 2; left: 24px; bottom: 24px; }

.support-section { background: var(--white); }
.support-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; }
.support-layout .button { margin-top: 10px; }
.accordion { border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-item > button { width: 100%; min-height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0; border: 0; background: transparent; color: var(--navy); text-align: left; font-size: 1.15rem; font-weight: 760; }
.accordion-item i { width: 30px; height: 30px; position: relative; border-radius: 50%; background: var(--paper); }
.accordion-item i::before, .accordion-item i::after { content: ""; position: absolute; left: 8px; right: 8px; top: 14px; height: 2px; background: var(--red); }
.accordion-item i::after { transform: rotate(90deg); transition: transform .18s ease; }
.accordion-item.is-open i::after { transform: rotate(0); }
.accordion-panel { padding: 0 0 24px; color: var(--muted); }
.accordion-panel ul { display: grid; gap: 8px; margin: 0; padding-left: 20px; }

.final-cta { padding: 78px 0; color: var(--white); background: var(--red); }
.final-cta-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: center; }
.final-cta h2 { color: var(--white); }
.final-cta p { max-width: 520px; color: rgba(255,255,255,.78); }
.lead-form-inline { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.lead-form label { display: grid; gap: 7px; }
.lead-form label > span { font-size: .82rem; font-weight: 700; }
.lead-form input[type="text"], .lead-form input[type="tel"], .lead-form input:not([type]) { width: 100%; min-height: 54px; padding: 0 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); }
.lead-form input[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(199,53,53,.13); }
.lead-form-inline .consent, .lead-form-inline .button, .lead-form-inline .form-status { grid-column: 1 / -1; }
.consent { grid-template-columns: 20px 1fr !important; align-items: start; gap: 9px !important; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--navy); }
.consent span { color: inherit; opacity: .8; font-size: .76rem !important; }
.form-status { min-height: 24px; margin: 0; font-size: .84rem; }

.site-footer { padding: 58px 0 24px; color: rgba(255,255,255,.72); background: #071422; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: 54px; }
.footer-grid > div { display: grid; align-content: start; gap: 8px; }
.footer-grid strong { color: var(--white); margin-bottom: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--white); }
.footer-grid p { margin: 0; font-size: .88rem; }
.footer-logo { width: 285px; max-width: 100%; height: 56px; padding: 6px 10px; object-fit: contain; object-position: left; border-radius: 8px; background: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .76rem; }

.modal[hidden] { display: none; }
.modal { position: fixed; z-index: 150; inset: 0; display: grid; place-items: center; padding: 18px; opacity: 0; transition: opacity .18s ease; }
.modal.is-visible { opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3,12,24,.76); backdrop-filter: blur(6px); }
.modal-dialog { position: relative; width: min(100%, 520px); max-height: calc(100vh - 36px); overflow-y: auto; padding: 38px; border-radius: 24px; background: var(--white); box-shadow: 0 28px 90px rgba(0,0,0,.3); transform: translateY(14px); transition: transform .18s ease; }
.modal.is-visible .modal-dialog { transform: translateY(0); }
.modal-close { position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; border: 0; border-radius: 50%; color: var(--navy); background: var(--paper); font-size: 1.7rem; line-height: 1; }
.modal h2 { margin: 0; color: var(--navy); font-size: 2rem; line-height: 1.05; }
.modal-form-view > p:not(.eyebrow) { margin: 12px 0 25px; color: var(--muted); }
.modal-choice-view h2 { margin: 0 48px 26px 0; }
.contact-options { display: grid; gap: 14px; }
.contact-option { width: 100%; min-height: 60px; display: flex; align-items: center; justify-content: center; padding: 14px 18px; border: 2px solid var(--navy); border-radius: 14px; color: var(--navy); background: var(--white); font: inherit; font-size: 1rem; font-weight: 800; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: transform .18s ease, border-color .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease; }
.contact-option:hover { transform: translateY(-2px); border-color: rgba(11,31,58,.24); box-shadow: 0 12px 28px rgba(5,22,42,.1); }
.contact-option-callback { border-color: var(--navy); color: var(--white); background: var(--navy); }
.contact-option-callback:hover { border-color: var(--navy-2); background: var(--navy-2); }
.contact-option-vk:hover,
.contact-option-max:hover { border-color: var(--navy); color: var(--white); background: var(--navy); }
.contact-option[aria-disabled="true"] { opacity: .58; cursor: not-allowed; box-shadow: none; transform: none; }
.modal-back { margin: 0 0 20px; padding: 0; border: 0; color: var(--muted); background: transparent; font-size: .84rem; font-weight: 700; }
.modal-back:hover { color: var(--navy); }
.modal .lead-form { display: grid; gap: 16px; }
.modal .lead-form .button { width: 100%; }
.modal-success { text-align: center; padding: 12px 0; }
.success-mark { width: 62px; height: 62px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 50%; color: var(--white); background: var(--red); font-size: 1.8rem; font-weight: 850; }
.modal-success p { color: var(--muted); }

@media (max-width: 1100px) {
  .desktop-nav { display: none; }
  .header-actions { margin-left: auto; }
  .phone { display: none; }
  .feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .direction-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .requirements-layout { grid-template-columns: 1fr; }
  .requirements-photo-wrap, .requirements-photo-wrap > img { min-height: 470px; height: 470px; }
  .steps-layout { grid-template-columns: 1fr; }
  .steps-photo-wrap, .steps-photo-wrap img { min-height: 450px; height: 450px; }
  .support-layout { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .header-inner { min-height: 72px; gap: 10px; }
  .brand { width: min(150px, 42vw); }
  .brand img { height: 45px; }
  .header-actions .button {
    width: clamp(138px, 42vw, 158px);
    min-width: 0;
    min-height: 46px;
    padding: 7px 12px;
    overflow: visible;
    font-size: .875rem;
    line-height: 1.1;
    text-align: center;
    white-space: normal;
  }
  .header-actions .button::before { content: none; }
  .hero { min-height: auto; padding-top: 0; }
  .hero-photo { width: 100%; height: 43%; inset: 0 0 auto; object-position: 67% center; }
  .hero-overlay { background: linear-gradient(180deg, rgba(11,31,58,.15) 0%, rgba(11,31,58,.86) 36%, var(--navy) 52%, var(--navy) 100%); }
  .hero-layout { min-height: 900px; align-items: flex-end; padding: 330px 0 100px; }
  .hero-copy { width: 100%; }
  h1 { font-size: clamp(2.35rem, 11vw, 3.6rem); }
  .hero-lead { font-size: 1rem; }
  .payment-grid { grid-template-columns: 1fr; }
  .hero-cta { align-items: stretch; flex-direction: column; }
  .hero-cta .button { width: 100%; }
  .hero-cta p { max-width: none; }
  .section { padding: 76px 0; }
  .section-heading h2, .final-cta h2 { font-size: clamp(2rem, 9vw, 2.7rem); }
  .split-heading { align-items: start; flex-direction: column; }
  .feature-grid, .direction-grid, .requirement-cards { grid-template-columns: 1fr; }
  .feature-card { min-height: 230px; }
  .direction-card { min-height: 530px; }
  .requirements-layout { gap: 38px; }
  .requirements-photo-wrap, .requirements-photo-wrap > img { min-height: 390px; height: 390px; }
  .steps-layout { gap: 38px; }
  .steps-photo-wrap, .steps-photo-wrap img { min-height: 380px; height: 380px; }
  .timeline li { grid-template-columns: 44px 1fr; gap: 14px; }
  .timeline li > span { width: 44px; height: 44px; }
  .timeline li::before { left: 21px; top: 43px; }
  .final-cta-layout { grid-template-columns: 1fr; gap: 30px; }
  .lead-form-inline { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
  .modal-dialog { padding: 34px 22px 26px; }
  .modal-choice-view h2 { margin-bottom: 22px; }
  .contact-option { min-height: 58px; padding: 13px 12px; font-size: .96rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
