:root {
  --blue: #105fbc;
  --bright: #4980ff;
  --navy: #00356b;
  --ink: #1c2b3a;
  --text: #2f2f2f;
  --muted: #5b6b7d;
  --line: #d6e2f0;
  --light: #f0f8ff;
  --white: #fff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
  word-break: break-word;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0 72px; }
@media (max-width: 767px) { .section { padding: 40px 0 48px; } }

h1, h2 { font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; margin: 0; }
h1 { font-size: 42px; line-height: 1.2; color: var(--white); }
h2 {
  position: relative;
  padding-left: 80px;
  font-size: 30px;
  line-height: 1.4;
  color: var(--blue);
}
h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 60px;
  height: 6px;
  margin-top: -3px;
  background: var(--blue);
}
@media (max-width: 767px) {
  h1 { font-size: 28px; }
  h2 { font-size: 22px; padding-left: 46px; }
  h2::before { width: 32px; }
}
.sub { margin: 10px 0 0; max-width: 820px; font-size: 18px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 32px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: var(--white);
  font: inherit;
  font-size: 18px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: #0d4f9d; border-color: #0d4f9d; }
.btn-bright { background: var(--bright); border-color: var(--bright); }
.btn-bright:hover { background: #2f6af0; border-color: #2f6af0; }
.btn-outline { background: transparent; color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-light { background: transparent; border-color: var(--white); color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--blue); }
.btn-block { width: 100%; }
@media (max-width: 575px) { .btn { font-size: 16px; padding: 0 18px; } }

/* Header */
.header { background: var(--white); border-bottom: 1px solid #e3e7ed; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo img { height: 64px; width: auto; }
.header-right { display: flex; align-items: center; gap: 18px; }
.header-phone { text-align: right; }
.header-phone a { display: block; font-size: 22px; font-weight: 700; color: var(--blue); text-decoration: none; }
.header-phone span { font-size: 13px; color: var(--muted); }
.header .btn { min-height: 44px; font-size: 16px; }
@media (max-width: 767px) {
  .logo img { height: 48px; }
  .header .btn { display: none; }
  .header-phone a { font-size: 18px; }
}

/* Hero */
.hero {
  color: var(--white);
  background: var(--navy) url("https://realyhelp.ru/img/screen1-bg.webp") no-repeat center / cover;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 991px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } }
.lead { margin: 22px 0 0; font-size: 21px; }
.checks {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  font-size: 18px;
  font-weight: 700;
}
.checks li { display: flex; gap: 10px; align-items: center; }
.checks li::before {
  content: "✓";
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
@media (max-width: 575px) { .checks { grid-template-columns: 1fr; } }
.chips { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.chips > div {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  padding: 14px 20px;
  min-width: 150px;
}
.chips b { display: block; font-size: 28px; line-height: 1.1; }
.chips span { font-size: 14px; opacity: 0.9; }
.trust { margin-top: 20px; display: flex; gap: 8px 22px; flex-wrap: wrap; font-size: 15px; opacity: 0.9; }

/* Quiz */
.quiz {
  background: var(--white);
  color: var(--ink);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 25, 60, 0.35);
  padding: 32px;
}
@media (max-width: 575px) { .quiz { padding: 20px; } }
.quiz-step { font-size: 13px; font-weight: 700; color: var(--blue); letter-spacing: 0.05em; text-transform: uppercase; }
.quiz-title { margin-top: 8px; font-size: 24px; line-height: 1.25; font-weight: 700; }
.progress { margin-top: 14px; height: 6px; border-radius: 999px; background: var(--light); }
.progress div { height: 6px; border-radius: 999px; background: var(--blue); transition: width 0.3s; }
.quiz-q { display: block; margin: 20px 0 12px; font-size: 17px; font-weight: 700; }
.options { display: grid; gap: 10px; }
.option {
  min-height: 52px;
  border-radius: 32px;
  border: 1px solid var(--line);
  background: var(--white);
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  text-align: left;
  padding: 10px 22px;
  cursor: pointer;
}
.option:hover { border-color: var(--blue); background: var(--light); color: var(--blue); }
.back { margin-top: 10px; border: 0; background: none; font: inherit; color: var(--muted); font-weight: 700; cursor: pointer; padding: 6px 0; }
.quiz-done { margin-top: 16px; padding: 10px 16px; border-radius: 32px; background: var(--light); color: var(--blue); font-weight: 700; }
.quiz-note { margin-top: 16px; font-size: 14px; color: var(--muted); text-align: center; }
.input {
  width: 100%;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 0 22px;
  font: inherit;
  font-size: 18px;
  color: var(--ink);
}
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(16, 95, 188, 0.15); }
.input.invalid { border-color: #dc3545; }
.error { margin-top: 6px; color: #dc3545; font-size: 14px; }
.legal { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.form-gap { margin-top: 14px; }
.hidden { display: none !important; }

/* Cards */
.cards { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 991px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .cards { grid-template-columns: 1fr; } }
.card { border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.card:hover { border-color: var(--blue); box-shadow: 0 10px 30px rgba(16, 95, 188, 0.1); }
.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--light);
  color: var(--blue);
  font-weight: 700;
}
.card b { display: block; margin-top: 14px; font-size: 19px; color: var(--ink); }
.card p { margin: 8px 0 0; }

/* Photos */
.photos { margin-top: 36px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 991px) { .photos { grid-template-columns: repeat(2, 1fr); } }
.photos figure { position: relative; margin: 0; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--light); }
.photos img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.photos figure:hover img { transform: scale(1.05); }
.photos figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(16, 95, 188, 0.92);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  border-radius: 32px;
  padding: 5px 14px;
}
.cta-box {
  margin-top: 32px;
  padding: 24px 32px;
  border-radius: 20px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cta-box b { font-size: 20px; color: var(--blue); }

/* Blue section */
.blue { background: var(--blue); color: var(--white); }
.blue h2, .final h2 { color: var(--white); }
.blue h2::before, .final h2::before { background: var(--white); }
.compare { margin-top: 36px; border-radius: 20px; overflow: hidden; background: var(--white); color: var(--ink); }
.compare-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; border-top: 1px solid var(--line); }
.compare-row > div { padding: 18px 22px; }
.compare-row:first-child { border-top: 0; font-weight: 700; }
.compare-row:first-child > div:nth-child(2) { color: var(--muted); }
.compare-row:first-child > div:nth-child(3) { background: var(--bright); color: var(--white); }
.compare-row > div:first-child { font-weight: 700; }
.compare-row > div:nth-child(2) { color: var(--muted); }
.compare-row:not(:first-child) > div:nth-child(3) { background: var(--light); color: var(--blue); font-weight: 700; }
@media (max-width: 575px) { .compare-row { font-size: 14px; } .compare-row > div { padding: 12px 10px; } }
.blue-note { margin: 28px 0 0; font-size: 20px; max-width: 820px; }

/* Included */
.included { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 991px) { .included { grid-template-columns: 1fr; gap: 28px; } }
.included-text { margin: 10px 0 28px; font-size: 20px; }
.included-list { list-style: none; margin: 0; padding: 8px 24px; background: var(--white); color: var(--ink); border-radius: 20px; }
.included-list li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line); font-size: 18px; }
.included-list li:last-child { border-bottom: 0; }
.included-list li::before { content: "✓"; color: var(--blue); font-weight: 700; }
.included-list span { flex: 1; }
.included-list b { color: var(--blue); font-size: 20px; }

/* Calculator */
.light-bg { background: var(--light); }
.calc { margin-top: 32px; background: var(--white); border-radius: 20px; padding: 32px; box-shadow: 0 16px 40px rgba(16, 95, 188, 0.1); }
@media (max-width: 575px) { .calc { padding: 18px; } }
.calc-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 767px) { .calc-inputs { grid-template-columns: 1fr; gap: 20px; } }
.calc-label { display: flex; flex-direction: column; gap: 6px; }
.calc-label span { font-weight: 700; color: var(--ink); }
.calc-label small { font-weight: 400; color: var(--muted); }
.calc-label b { font-size: 28px; color: var(--blue); }
.calc-label input { width: 100%; accent-color: var(--blue); height: 28px; cursor: pointer; }
.calc-result { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 767px) { .calc-result { grid-template-columns: 1fr; } }
.calc-col { border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.calc-col.us { border: 2px solid var(--blue); background: var(--light); }
.calc-head { font-weight: 700; font-size: 18px; color: var(--ink); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.us .calc-head { color: var(--blue); }
.calc-line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.calc-line span:last-child { white-space: nowrap; font-weight: 700; }
.calc-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; }
.calc-total span { font-weight: 700; color: var(--muted); }
.calc-total b { font-size: 28px; color: var(--ink); white-space: nowrap; }
.us .calc-total b { color: var(--blue); }
.calc-when { margin-top: 4px; font-size: 14px; color: var(--muted); text-align: right; }
.calc-bottom { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.calc-verdict { font-size: 20px; color: var(--ink); }
.calc-verdict b { color: var(--blue); white-space: nowrap; }
.calc-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

/* Steps */
.steps { margin: 36px 0 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps.five { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 991px) { .steps, .steps.five { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .steps, .steps.five { grid-template-columns: 1fr; } }
.steps > div { border-radius: 20px; background: var(--light); padding: 24px; }
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 14px;
}
.step-when { font-size: 14px; font-weight: 700; color: var(--bright); text-transform: uppercase; letter-spacing: 0.05em; }
.steps b { display: block; margin-top: 6px; font-size: 20px; color: var(--ink); }
.steps p { margin: 8px 0 0; }
.center { text-align: center; }

/* Safety */
.safety { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 767px) { .safety { grid-template-columns: 1fr; } }
.safety > div { background: var(--light); border-radius: 20px; padding: 24px; }
.safety b { display: block; font-size: 18px; color: var(--ink); }
.safety span { display: block; margin-top: 6px; }

/* Case */
.case { margin-top: 32px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; background: #eee; border-radius: 20px; padding: 28px; }
@media (max-width: 991px) { .case { grid-template-columns: 1fr; } }
.case-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.case-photos img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; }
.case h3 { margin: 0; font-size: 22px; color: var(--ink); }
.case dl { margin: 14px 0 0; }
.case dt { font-weight: 700; color: var(--ink); margin-top: 10px; }
.case dd { margin: 2px 0 0; }
.case .price { color: var(--blue); font-weight: 700; }

/* Reviews */
.reviews { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 991px) { .reviews { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .reviews { grid-template-columns: 1fr; } }
.review { background: var(--white); border-radius: 20px; padding: 24px; box-shadow: 0 8px 24px rgba(16, 95, 188, 0.08); }
.review-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.review-head b { color: var(--ink); }
.review-head span { font-size: 13px; color: var(--muted); }
.stars { color: #f5b301; letter-spacing: 2px; margin-top: 4px; }
.review p { margin: 10px 0 0; }
.review small { display: block; margin-top: 10px; color: var(--muted); }

/* Price factors + person */
.price-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 991px) { .price-grid { grid-template-columns: 1fr; gap: 28px; } }
.factors { list-style: none; margin: 24px 0 0; padding: 0; counter-reset: f; }
.factors li { counter-increment: f; display: flex; align-items: center; gap: 14px; padding: 12px 0; font-size: 18px; font-weight: 700; color: var(--ink); }
.factors li::before {
  content: counter(f);
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.person { border-radius: 20px; background: var(--light); padding: 32px; }
.person-title { font-size: 22px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 0.03em; }
.person p { margin: 10px 0 0; }
.person-phone { display: inline-block; margin-top: 18px; font-size: 30px; font-weight: 700; color: var(--ink); text-decoration: none; }
.person-buttons { margin-top: 16px; display: flex; gap: 12px; flex-wrap: wrap; }
.person-hours { display: block; margin-top: 12px; font-size: 14px; color: var(--muted); }

/* FAQ */
.faq { margin-top: 28px; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 20px; padding: 0 24px; background: var(--white); }
.faq details[open] { border-color: var(--blue); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 34px 18px 0;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 28px; color: var(--blue); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0 0 18px; }

/* Final */
.final {
  color: var(--white);
  background: var(--navy) url("https://realyhelp.ru/img/screen5-bg.webp") no-repeat center / cover;
}
.final p { margin: 12px 0 0; max-width: 760px; font-size: 20px; }
.final-buttons { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.footer { background: #3d5eaa; color: var(--white); padding: 40px 0 90px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: start; }
@media (max-width: 767px) { .footer-grid { grid-template-columns: 1fr; } }
.footer a { color: var(--white); }
.footer .phone { font-size: 22px; font-weight: 700; text-decoration: none; }
.footer small { display: block; opacity: 0.8; }
.footer-bottom { margin-top: 24px; font-size: 13px; opacity: 0.8; }
@media (min-width: 768px) { .footer { padding-bottom: 40px; } }

/* Mobile bar */
.mobile-bar { display: none; }
@media (max-width: 767px) {
  .mobile-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: var(--white);
    border-top: 1px solid var(--line);
    padding: 10px 12px 14px;
    box-shadow: 0 -6px 20px rgba(0, 25, 60, 0.1);
  }
}

/* Modal + toast */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, 0.6); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-box { position: relative; width: 100%; max-width: 440px; background: var(--white); border-radius: 20px; padding: 32px; color: var(--ink); }
.modal-title { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.modal-close { position: absolute; right: 14px; top: 10px; border: 0; background: none; font-size: 30px; line-height: 1; color: var(--muted); cursor: pointer; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%);
  z-index: 110;
  background: #198754;
  color: var(--white);
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
