:root {
  --blue: #0a73f5;
  --blue-dark: #075fd0;
  --cyan: #08b7b4;
  --navy: #081a42;
  --text: #25344f;
  --muted: #6b7890;
  --line: #dde8f5;
  --line-soft: #edf3fa;
  --bg: #f7fbff;
  --card: #ffffff;
  --shadow: 0 18px 46px rgba(8, 26, 66, .11);
  --shadow-soft: 0 10px 24px rgba(8, 26, 66, .07);
  --radius: 18px;
  --radius-lg: 26px;
  --container: 1200px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fff 0%, #f8fbff 58%, #fff 100%);
  line-height: 1.45;
  min-width: 320px;
}
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.card--lifted { box-shadow: var(--shadow); }
.section { padding: 26px 0; }
.section--tight { padding: 18px 0; }
.section-title { margin: 0 0 20px; color: var(--navy); font-size: 26px; line-height: 1.18; letter-spacing: -.03em; }
.section-title--row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.section-title--row h2 { margin: 0; color: var(--navy); font-size: 26px; letter-spacing: -.03em; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 10px;
  border: 0;
  font-weight: 800;
  color: #fff;
  background: var(--blue);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
  white-space: nowrap;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(10, 115, 245, .2); }
.button--primary { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); }
.button--accent { background: linear-gradient(135deg, var(--cyan), #02a7a0); }
.button--outline { background: #fff; color: var(--blue); border: 1px solid rgba(10, 115, 245, .45); }
.button--outline:hover { box-shadow: 0 12px 24px rgba(10, 115, 245, .12); }
.button--soft { background: #eef6ff; color: var(--blue); border: 1px solid #d7e9fb; min-height: 40px; }
.button--large { min-height: 52px; padding-inline: 28px; }
.button--wide { width: 100%; }
.link-action { border: 0; background: transparent; color: var(--blue); font-weight: 800; padding: 0; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e8f0f9;
}
.header__inner { min-height: 78px; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; color: var(--blue); }
.logo__icon { width: 42px; height: 42px; display: grid; place-items: center; }
.logo__text { display: grid; line-height: 1.05; }
.logo__text b { font-size: 25px; letter-spacing: -.04em; }
.logo__text small { margin-top: 4px; font-size: 12px; color: #72819a; }
.nav { display: flex; align-items: center; justify-content: center; gap: 28px; flex: 1 1 auto; min-width: 0; }
.nav a { font-size: 14px; font-weight: 700; color: #1e2b46; white-space: nowrap; }
.nav a:hover { color: var(--blue); }
.header__right { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }
.header-phone { display: grid; grid-template-columns: auto auto; column-gap: 8px; line-height: 1.05; color: var(--navy); }
.header-phone span { color: var(--blue); grid-row: span 2; align-self: center; font-size: 18px; }
.header-phone strong { font-size: 14px; white-space: nowrap; }
.header-phone small { margin-top: 4px; color: #66748a; font-size: 11px; }
.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: #fff; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.burger span { width: 20px; height: 2px; border-radius: 9px; background: var(--navy); }

.hero { padding: 0 0 20px; }
.hero__shell {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  min-height: 470px;
  align-items: stretch;
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: linear-gradient(90deg, #fff 0%, #fff 42%, #eef7ff 100%);
  box-shadow: inset 0 -1px 0 #e5eef8;
}
.hero__content { padding: 62px 34px 52px 0; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.eyebrow { margin: 0 0 14px; color: var(--blue); font-weight: 900; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; }
.hero h1 { margin: 0; color: var(--navy); font-size: clamp(42px, 5vw, 64px); line-height: .98; letter-spacing: -.055em; }
.hero h1 span { display: block; color: var(--blue); }
.lead { margin: 22px 0 28px; max-width: 500px; color: #3c4b66; font-size: 19px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.benefits { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 580px; }
.benefit { display: flex; align-items: center; gap: 12px; min-width: 0; }
.benefit span { width: 42px; height: 42px; flex: 0 0 42px; border: 2px solid #d9ebff; border-radius: 14px; color: var(--blue); display: grid; place-items: center; font-size: 22px; font-weight: 900; background: #fff; }
.benefit b { color: #263752; font-size: 13px; line-height: 1.25; }
.hero__media { position: relative; min-height: 470px; overflow: hidden; border-bottom-right-radius: var(--radius-lg); }
.hero__media::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 130px; z-index: 1; background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.64) 44%, rgba(255,255,255,0) 100%); pointer-events: none; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero-card { position: absolute; top: 58px; right: 34px; width: min(255px, calc(100% - 68px)); padding: 22px; border-radius: 18px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); border: 1px solid rgba(221,232,245,.9); z-index: 2; }
.hero-card p { margin: 0 0 10px; color: #3d4b63; font-size: 13px; }
.hero-card h3 { margin: 0 0 4px; color: var(--navy); font-size: 15px; }
.hero-card span { display: block; color: #64728a; font-size: 13px; }
.hero-card strong { display: block; margin: 18px 0 14px; color: var(--blue); font-size: 34px; line-height: 1; letter-spacing: -.05em; }
.hero-card ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 9px; color: #35445d; font-size: 12.5px; }
.hero-card li::before { content: "✓"; margin-right: 8px; color: var(--cyan); font-weight: 900; }

.section--calculator { padding-top: 0; }
.calculator { display: grid; grid-template-columns: minmax(0, 1fr) 245px; gap: 28px; padding: 26px; align-items: stretch; }
.calculator h2 { margin: 0 0 20px; color: var(--navy); font-size: 24px; letter-spacing: -.03em; }
.calculator__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.field { position: relative; display: grid; gap: 9px; min-width: 0; }
.field > span { color: #32415b; font-size: 13px; font-weight: 800; }
.field select, .field input, .select-button {
  width: 100%; height: 48px; border: 1px solid #cddbed; border-radius: 10px; background: #fff; color: #15233f; padding: 0 14px; outline: none;
}
.field select:focus, .field input:focus, .select-button:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(10,115,245,.1); }
.stepper { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; height: 48px; border: 1px solid #cddbed; border-radius: 10px; overflow: hidden; background: #fff; }
.stepper input { border: 0; height: 100%; text-align: center; font-weight: 800; padding: 0; }
.stepper button { border: 0; background: #fff; color: #7a89a0; font-size: 22px; }
.stepper button:hover { background: #f1f7ff; color: var(--blue); }
.select-button { text-align: left; }
.select-button::after { content: "⌄"; float: right; color: #718098; }
.extras__menu { position: absolute; z-index: 30; left: 0; right: 0; top: 78px; padding: 12px; background: #fff; border: 1px solid #dae6f5; border-radius: 14px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.extras__menu label { display: flex; gap: 8px; font-size: 13px; color: #2d3b55; }
.reset { margin-top: 17px; border: 0; background: transparent; padding: 0; color: var(--blue); font-weight: 800; }
.calculator__total { border-left: 1px solid var(--line); padding-left: 28px; display: flex; flex-direction: column; justify-content: center; gap: 13px; }
.calculator__total span { color: #33425b; font-weight: 700; }
.calculator__total strong { color: var(--blue); font-size: 38px; line-height: 1; letter-spacing: -.05em; }

.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.service { min-height: 138px; padding: 18px; display: grid; grid-template-columns: 86px minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 14px 16px; align-items: center; }
.service img { width: 78px; height: 78px; object-fit: contain; border-radius: 16px; background: #f1f8ff; }
.service h3 { margin: 0 0 6px; color: var(--navy); font-size: 20px; }
.service p { margin: 0 0 9px; color: #40506b; font-size: 14px; }
.service strong { color: var(--blue); font-size: 19px; }
.service button { grid-column: 2; justify-self: start; border: 0; background: transparent; padding: 0; color: var(--blue); font-weight: 800; }

.slots-panel { display: grid; grid-template-columns: 1fr 1.28fr; gap: 48px; align-items: start; }
.slot-day h3 { margin: 0 0 12px; color: #33435d; font-size: 14px; }
.slots { display: flex; flex-wrap: wrap; gap: 14px; }
.slots button { min-width: 82px; height: 42px; padding: 0 16px; border-radius: 10px; border: 1px solid #cddbed; background: #fff; color: #1c2c49; transition: .16s ease; }
.slots button:hover, .slots button.active { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); box-shadow: 0 10px 20px rgba(10,115,245,.2); }

.scope-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.scope-card { padding: 18px; background: linear-gradient(180deg, #fff 0%, #f9fcff 100%); }
.scope-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }
.scope-card img { width: 54px; height: 54px; object-fit: contain; flex: 0 0 auto; }
.scope-card h3 { margin: 0; color: var(--navy); font-size: 17px; line-height: 1.15; }
.scope-card ul { margin: 0; padding-left: 18px; color: #2e3d58; font-size: 13.2px; line-height: 1.75; }

.reviews-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(430px, .95fr); gap: 22px; align-items: stretch; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.review { padding: 18px; }
.stars { color: #ffb200; font-weight: 900; margin-bottom: 10px; }
.stars span { color: #7d8aa1; font-size: 13px; margin-left: 6px; }
.review p { margin: 0 0 16px; color: #3d4c66; font-size: 13px; }
.review__person { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 0 10px; align-items: center; }
.review__person span { width: 42px; height: 42px; grid-row: span 2; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 900; background: linear-gradient(135deg, #0a73f5, #08b7b4); }
.review__person b { color: var(--navy); font-size: 14px; }
.review__person small { color: #7a879c; font-size: 11px; }
.subscription { padding: 24px; background: linear-gradient(180deg, #f9fdff 0%, #eef9ff 100%); }
.subscription h2 { margin: 0 0 6px; color: var(--blue); font-size: 25px; letter-spacing: -.03em; }
.subscription > p { margin: 0 0 22px; color: #33445f; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.plans article { position: relative; min-height: 200px; padding: 20px 12px 14px; border: 1px solid #d5e4f5; border-radius: 16px; background: #fff; text-align: center; display: flex; flex-direction: column; align-items: center; }
.plans article.popular { border-color: var(--cyan); box-shadow: 0 12px 26px rgba(8,183,180,.16); }
.plans em { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); padding: 4px 10px; border-radius: 99px; background: #d9fff8; color: #009a92; font-style: normal; font-size: 10px; font-weight: 900; white-space: nowrap; }
.plans h3 { min-height: 36px; margin: 0 0 12px; color: #172641; font-size: 14px; }
.plans strong { color: var(--blue); font-size: 22px; line-height: 1; letter-spacing: -.04em; }
.plans span, .plans small { display: block; color: #6e7b91; font-size: 12px; }
.plans small { margin-top: 8px; color: var(--blue); }
.plans button { margin-top: auto; width: 100%; height: 38px; border-radius: 9px; border: 1px solid var(--blue); background: #fff; color: var(--blue); font-weight: 800; }
.plans .popular button { border: 0; color: #fff; background: linear-gradient(135deg, var(--cyan), #02a7a0); }
.subscription-note { display: block; margin-top: 16px; color: #66748b; }

.bottom-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(430px, .95fr); gap: 22px; align-items: stretch; }
.quick-form, .faq { padding: 24px; }
.quick-form h2, .faq h2 { margin: 0 0 18px; color: var(--navy); font-size: 24px; letter-spacing: -.03em; }
.quick-form__grid { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 12px; margin-bottom: 12px; }
.quick-form input, .quick-form select { width: 100%; height: 48px; border: 1px solid #cddbed; border-radius: 10px; padding: 0 14px; background: #fff; outline: none; }
.quick-form p { margin: 14px 0 0; color: #748098; font-size: 12px; }
.faq-list { display: grid; }
.faq-list button { height: 42px; border: 0; border-bottom: 1px solid #dfe9f5; background: #fff; display: flex; align-items: center; justify-content: space-between; text-align: left; color: #172641; font-weight: 800; }
.faq-list p { display: none; margin: 0; padding: 12px 0 14px; border-bottom: 1px solid #dfe9f5; color: #526176; font-size: 13px; }
.faq-list button.open + p { display: block; }
.faq .link-action { margin-top: 16px; }

.footer { margin-top: 20px; padding: 38px 0; background: #f4f9ff; border-top: 1px solid #e2ecf7; }
.footer-grid { display: grid; grid-template-columns: minmax(220px, 1.7fr) repeat(3, minmax(120px, .8fr)) minmax(190px, 1.15fr); gap: 34px; align-items: start; }
.footer h3 { margin: 0 0 12px; color: var(--navy); font-size: 14px; }
.footer a, .footer span { display: block; margin: 7px 0; color: #4d5c72; font-size: 14px; }
.footer-brand p { margin: 24px 0 0; color: #718098; font-size: 13px; }
.footer-contacts b { display: block; color: var(--navy); }
.socials { display: flex; gap: 8px; margin-top: 12px; }
.socials button { width: 32px; height: 32px; border-radius: 50%; border: 0; color: #fff; font-size: 11px; font-weight: 900; background: linear-gradient(135deg, var(--blue), var(--cyan)); }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 100; max-width: calc(100% - 40px); padding: 14px 18px; border-radius: 14px; color: #fff; background: #071a42; box-shadow: var(--shadow); transform: translateY(120px); opacity: 0; transition: .24s ease; }
.toast.show { transform: translateY(0); opacity: 1; }

@media (max-width: 1180px) {
  .nav { gap: 18px; }
  .header-phone { display: none; }
  .calculator { grid-template-columns: 1fr; }
  .calculator__total { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; }
  .calculator__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scope-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews-layout, .bottom-grid { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  .container { width: min(var(--container), calc(100% - 32px)); }
  .header__inner { flex-wrap: wrap; gap: 14px; padding: 12px 0; }
  .nav { order: 3; display: none; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 10px 0 4px; }
  .nav.open { display: grid; }
  .burger { display: inline-flex; }
  .header__right { margin-left: auto; }
  .hero__shell { grid-template-columns: 1fr; border-radius: 0 0 22px 22px; }
  .hero__content { padding: 42px 0 28px; }
  .hero__media { min-height: 420px; border-radius: 22px; }
  .hero__media::before { display: none; }
  .services-grid, .reviews-grid { grid-template-columns: 1fr; }
  .slots-panel { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .section { padding: 18px 0; }
  .section--tight { padding: 12px 0; }
  .button { width: 100%; }
  .logo__text b { font-size: 22px; }
  .header__right > .button { display: none; }
  .hero h1 { font-size: 38px; }
  .lead { font-size: 17px; }
  .hero__actions { display: grid; }
  .benefits { grid-template-columns: 1fr; gap: 12px; }
  .hero__media { min-height: 330px; overflow: visible; margin-bottom: 90px; }
  .hero-card { top: auto; bottom: -82px; left: 14px; right: 14px; width: auto; padding: 18px; }
  .calculator { padding: 18px; }
  .calculator__grid { grid-template-columns: 1fr; }
  .service { grid-template-columns: 72px 1fr; padding: 15px; }
  .service img { width: 66px; height: 66px; }
  .scope-grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .quick-form__grid { grid-template-columns: 1fr; }
  .section-title--row { display: block; }
  .section-title--row .link-action { margin-top: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
}
