:root {
  --ink: #101826;
  --muted: #5a6b7d;
  --line: rgba(16, 24, 38, 0.1);
  --bg: #f3f6f9;
  --accent: #e85d04;
  --accent-2: #dc4a00;
  --teal: #0f6b6b;
  --navy: #132238;
  --max: #7b61ff;
  --max-hover: #6548f0;
  --frame: #2f5f7a;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(16, 24, 38, 0.12);
  --font: "Manrope", sans-serif;
  --display: "Unbounded", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1.05rem;
  padding-bottom: 80px;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 2rem)); margin-inline: auto; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.page-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 0% 0%, rgba(15, 107, 107, 0.12), transparent 60%),
    radial-gradient(800px 480px at 100% 10%, rgba(123, 97, 255, 0.1), transparent 55%),
    linear-gradient(180deg, #eaf0f5, #f5f7fa 40%, #eef3f7);
}

.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header);
  transition: background .3s var(--ease), backdrop-filter .3s var(--ease), box-shadow .3s var(--ease);
}
.header.is-scrolled {
  background: rgba(243, 246, 249, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header__row {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 1.2rem;
}
.nav { display: none; gap: 1.35rem; }
.nav a {
  color: var(--muted); font-weight: 600; font-size: 1rem;
  position: relative; transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px;
  background: var(--accent); transition: right .3s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { right: 0; }
.header__right { display: none; align-items: center; gap: .85rem; }
.header__phone { font-weight: 800; font-size: 1.02rem; white-space: nowrap; }
.max-ico-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px;
  transition: transform .25s var(--ease), background .25s;
}
.max-ico-link:hover { transform: translateY(-2px) scale(1.06); background: rgba(123, 97, 255, 0.12); }
.max-ico-link--lg {
  width: 48px; height: 48px; border-radius: 14px;
  background: rgba(255,255,255,.12);
}
.max-ico-link--lg:hover { background: rgba(255,255,255,.2); }
.max-ico-link img { width: 28px; height: 28px; display: block; }
.max-ico-link--lg img { width: 36px; height: 36px; }
.burger {
  width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,.75); display: grid; place-content: center; gap: 6px; cursor: pointer;
}
.burger span { width: 18px; height: 2px; background: var(--ink); transition: .25s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-nav {
  position: fixed; top: var(--header); left: 0; right: 0; z-index: 49;
  display: grid; gap: .4rem; padding: 1rem 1.25rem 1.4rem;
  background: rgba(247, 249, 251, 0.97); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line); animation: drop .35s var(--ease);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  padding: .75rem .2rem; font-weight: 600; font-size: 1.05rem;
  display: inline-flex; align-items: center; gap: .45rem;
}
@keyframes drop {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 52px; padding: .85rem 1.3rem; border-radius: 12px;
  border: 1px solid transparent; font-weight: 700; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 10px 24px rgba(232, 93, 4, 0.28); }
.btn-ghost {
  background: rgba(255,255,255,.12); color: #fff;
  border-color: rgba(255,255,255,.35); backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn-ghost-dark {
  background: rgba(255,255,255,.12); color: #fff;
  border: 1px solid rgba(255,255,255,.35);
}
.btn-ghost-dark:hover { background: rgba(255,255,255,.2); }
.btn-secondary {
  background: #fff; color: var(--ink); border: 1px solid var(--line);
}
.btn-secondary:hover { border-color: rgba(16,24,38,.25); }
.btn-max { background: var(--max); color: #fff; }
.btn-max:hover { background: var(--max-hover); box-shadow: 0 10px 24px rgba(123, 97, 255, 0.32); }
.btn-max img, .inline-max img {
  width: 22px; height: 22px; flex-shrink: 0;
}
.btn-lg { min-height: 56px; padding-inline: 1.45rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-icon span { display: none; }

.hero {
  position: relative; min-height: 100svh;
  display: grid; align-items: end;
  padding: calc(var(--header) + 2.5rem) 0 3.5rem;
  color: #fff; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: scale(1.08) translate(0,0); }
  to { transform: scale(1.14) translate(-1.2%, -1%); }
}
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(16,24,38,.72), rgba(16,24,38,.28) 55%, rgba(16,24,38,.15)),
    linear-gradient(180deg, rgba(16,24,38,.25), rgba(16,24,38,.78));
}
.hero__content { position: relative; z-index: 1; max-width: 780px; }
.hero__brand {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  line-height: .95; letter-spacing: -0.05em; font-weight: 700;
}
.hero h1 {
  margin: 0 0 1.1rem;
  font-family: var(--display);
  font-size: clamp(1.55rem, 3.6vw, 2.35rem);
  font-weight: 500; letter-spacing: -0.03em; max-width: 16ch;
}
.hero__lead {
  margin: 0 0 1.6rem; max-width: 38ch;
  color: rgba(255,255,255,.88); font-size: 1.12rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2rem; }
.hero__stats {
  margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem;
}
.hero__stats div { padding-top: .9rem; border-top: 1px solid rgba(255,255,255,.25); }
.hero__stats dt { font-family: var(--display); font-size: 1.35rem; font-weight: 600; }
.hero__stats dd { margin: .2rem 0 0; color: rgba(255,255,255,.75); font-size: .95rem; }

.anim-rise { animation: rise .9s var(--ease) both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.strip { background: var(--navy); color: #fff; padding: 1.15rem 0; }
.strip__row {
  display: flex; flex-wrap: wrap; gap: 1rem 1.5rem;
  align-items: center; justify-content: space-between;
}
.strip p { margin: 0; font-size: 1.05rem; }
.strip__actions { display: flex; flex-wrap: wrap; gap: .6rem; }

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--tint {
  background: rgba(255,255,255,.45);
  border-block: 1px solid var(--line);
}
.section--lead {
  background: linear-gradient(145deg, #132238, #1c3a55 55%, #0f6b6b);
  color: #fff;
}
.section-head { max-width: 640px; margin-bottom: 2.2rem; }
.section-head h2, .guarantee h2, .lead-grid h2, .contacts-grid h2 {
  margin: 0 0 .8rem;
  font-family: var(--display);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  letter-spacing: -0.035em; line-height: 1.15;
}
.section-head p, .lead { margin: 0; color: var(--muted); max-width: 50ch; font-size: 1.08rem; }
.lead.light, .checklist.light, .max-note.light { color: rgba(255,255,255,.86); }

.tabs__list { display: flex; gap: .55rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.tabs__btn {
  min-height: 48px; padding: .7rem 1.15rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.75);
  font-weight: 700; color: var(--muted); cursor: pointer; transition: .25s var(--ease); font-size: 1rem;
}
.tabs__btn.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.tabs__panel[hidden] { display: none; }
.tabs__panel.is-active { animation: fadePanel .4s var(--ease); }
@keyframes fadePanel {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.offer-grid { display: grid; gap: 1.1rem; }
.offer {
  position: relative; padding: 1.5rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.8); border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.offer:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.offer--hit { border-color: rgba(232, 93, 4, 0.45); }
.offer h3 { margin: 0 0 .45rem; font-family: var(--display); font-size: 1.25rem; }
.offer p { margin: 0 0 1rem; color: var(--muted); }
.offer__price {
  margin: 0 0 1.1rem !important;
  font-family: var(--display); font-size: 1.5rem; color: var(--ink) !important; font-weight: 600;
}
.tag {
  position: absolute; top: 1.1rem; right: 1.1rem;
  background: var(--accent); color: #fff; font-size: .78rem; font-weight: 800;
  padding: .35rem .65rem; border-radius: 999px;
}
.scheme {
  height: 110px; display: grid; place-items: center; margin-bottom: 1rem;
  background: #f3f8fb; border-radius: 12px;
}
.scheme svg { width: min(100%, 170px); height: 88px; }

.price-table {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: rgba(255,255,255,.85);
}
.price-table__row {
  display: grid; grid-template-columns: 1.1fr .7fr 1.4fr; gap: .85rem;
  padding: 1.15rem 1.3rem; border-top: 1px solid var(--line); font-size: 1.02rem;
}
.price-table__row:first-child { border-top: 0; }
.price-table__head { background: rgba(19, 34, 56, 0.06); font-weight: 800; }

.calc {
  display: grid; gap: 1.2rem; padding: 1.4rem;
  border-radius: var(--radius); background: rgba(255,255,255,.88);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.calc__form { display: grid; gap: 1.15rem; }
.calc fieldset { margin: 0; padding: 0; border: 0; }
.calc legend { font-weight: 800; margin-bottom: .8rem; font-size: 1.05rem; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.choice {
  display: grid; gap: .4rem; justify-items: center; text-align: center;
  padding: .9rem .55rem; border: 1px solid var(--line); border-radius: 14px;
  cursor: pointer; font-weight: 600; font-size: .95rem; color: var(--muted); background: #fff;
  transition: .25s var(--ease);
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__scheme { width: 78px; color: var(--frame); }
.choice.is-active { border-color: var(--accent); background: #fff7f0; color: var(--ink); transform: scale(1.02); }
.calc__row { display: grid; gap: .8rem; }
.calc__row label, .panel-form label { display: grid; gap: .4rem; font-weight: 700; font-size: .95rem; }
.calc__row input, .calc__row select, .panel-form input, .panel-form select, .panel-form textarea {
  min-height: 54px; border-radius: 12px; border: 1px solid #d5dee8;
  padding: .75rem .95rem; background: #fff; color: var(--ink); outline: none;
  transition: border-color .2s, box-shadow .2s; font-size: 1.02rem;
}
.panel-form textarea { min-height: 110px; resize: vertical; }
.calc__row input:focus, .calc__row select:focus, .panel-form input:focus, .panel-form select:focus, .panel-form textarea:focus {
  border-color: rgba(15,107,107,.5); box-shadow: 0 0 0 3px rgba(15,107,107,.15);
}
.calc__result { padding: 1.2rem; border-radius: 14px; background: #f3f7fa; border: 1px solid var(--line); }
.calc__preview {
  height: 96px; display: grid; place-items: center; margin-bottom: .85rem;
  background: #fff; border-radius: 12px; color: var(--frame);
}
.calc__preview svg { width: 130px; height: 75px; }
.calc__label { margin: 0; color: var(--muted); font-weight: 600; }
.calc__sum {
  margin: .25rem 0 .9rem; font-family: var(--display); font-size: 2.2rem; font-weight: 700;
  letter-spacing: -0.03em; transition: transform .25s var(--ease);
}
.calc__sum.is-bump { transform: scale(1.05); color: var(--accent); }
.calc__breakdown {
  margin: 0 0 1rem; padding: 0; list-style: none;
  display: grid; gap: .4rem; color: var(--muted);
}
.calc__breakdown li { display: flex; justify-content: space-between; gap: 1rem; }
.calc__note { margin: 0 0 1rem; color: var(--muted); font-size: .9rem; }

.guarantee, .lead-grid { display: grid; gap: 2rem; align-items: start; }
.rules { margin-top: 1.5rem; display: grid; gap: 1.15rem; }
.rules h3 { margin: 0; font-size: 1.08rem; }
.rule-meta { margin: 0; color: var(--muted); }
.checklist { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .6rem; }
.checklist li { padding-left: 1.45rem; position: relative; font-weight: 600; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .55rem;
  width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent);
}
.checklist--muted li { color: var(--muted); font-weight: 500; }
.checklist--muted li::before { background: #9aa8b5; }

.panel-form {
  display: grid; gap: .85rem; padding: 1.45rem;
  border-radius: var(--radius); background: rgba(255,255,255,.9);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.panel-form--dark {
  background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18);
  color: #fff; backdrop-filter: blur(10px);
}
.panel-form h3 { margin: 0; font-family: var(--display); font-size: 1.3rem; }
.hint, .legal, .max-note { margin: 0; color: var(--muted); font-size: .92rem; }
.panel-form--dark .hint, .panel-form--dark .legal { color: rgba(255,255,255,.72); }
.form-ok {
  margin: 0; padding: .85rem; border-radius: 12px;
  background: rgba(15,107,107,.12); color: var(--teal); font-weight: 700;
}

.trust-grid { display: grid; gap: 1.1rem; }
.trust {
  padding: 1.4rem; border-radius: var(--radius);
  background: rgba(255,255,255,.75); border: 1px solid var(--line);
  transition: transform .3s var(--ease);
}
.trust:hover { transform: translateY(-4px); }
.trust span {
  display: inline-block; margin-bottom: .7rem;
  font-family: var(--display); color: var(--teal); font-weight: 700;
}
.trust h3 { margin: 0 0 .45rem; font-size: 1.2rem; }
.trust p { margin: 0; color: var(--muted); }

.process {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1rem; counter-reset: step;
}
.process li {
  padding: 1.35rem; border-radius: var(--radius);
  background: rgba(255,255,255,.8); border: 1px solid var(--line);
  display: grid; gap: .4rem; counter-increment: step;
}
.process li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--display); color: var(--accent); font-weight: 700;
}
.process strong { font-size: 1.15rem; }
.process span { color: var(--muted); }

.cases { display: grid; gap: 1.1rem; }
.case {
  display: grid; gap: 1rem; padding: 1.1rem; border-radius: var(--radius);
  background: rgba(255,255,255,.8); border: 1px solid var(--line);
  transition: transform .3s var(--ease);
}
.case:hover { transform: translateY(-3px); }
.case img { width: 100%; height: 220px; object-fit: cover; border-radius: 14px; }
.case h3 { margin: 0 0 .4rem; font-family: var(--display); font-size: 1.2rem; }
.case p { margin: 0 0 .75rem; color: var(--muted); }
.case ul { margin: 0; padding-left: 1.15rem; font-weight: 600; }

.reviews { display: grid; gap: 1.1rem; }
.reviews blockquote {
  margin: 0; padding: 1.45rem; border-radius: var(--radius);
  background: rgba(255,255,255,.8); border: 1px solid var(--line);
}
.reviews p { margin: 0 0 1rem; font-size: 1.15rem; max-width: 34ch; }
.reviews footer { color: var(--muted); }

.faq details {
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(255,255,255,.8); padding: .2rem 1.15rem; margin-bottom: .7rem;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 1.05rem 0;
  font-weight: 700; font-family: var(--display); font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 0 0 1.05rem; color: var(--muted); }

.contact-actions {
  display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: 1.5rem;
}
.phone-lg {
  font-family: var(--display); font-size: 1.5rem; font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.35);
}
.contacts-grid { display: grid; gap: 1.8rem; }
.contacts { margin: 1.1rem 0 0; display: grid; gap: 1.1rem; }
.contacts div { padding-top: 1rem; border-top: 1px solid var(--line); }
.contacts dt { margin: 0 0 .25rem; color: var(--muted); }
.contacts dd { margin: 0; font-weight: 700; font-size: 1.08rem; }
.inline-max {
  display: inline-flex; align-items: center; gap: .5rem; color: var(--max);
}
.map {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  min-height: 320px; background: #d9e2ea;
}
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

.footer { padding: 2.2rem 0; border-top: 1px solid var(--line); }
.footer__row {
  display: flex; flex-wrap: wrap; gap: .7rem 1.3rem; align-items: center; justify-content: space-between;
  color: var(--muted);
}
.tiny { font-size: .88rem; }

.fab-max {
  position: fixed; right: 1.2rem; bottom: 5.2rem; z-index: 55;
  width: 60px; height: 60px; border-radius: 18px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, #8b74ff, #6a4dff);
  box-shadow: 0 14px 30px rgba(123, 97, 255, 0.4);
  transition: transform .25s var(--ease);
}
.fab-max:hover { transform: scale(1.08) translateY(-2px); }
.pulse { animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 14px 30px rgba(123, 97, 255, 0.35); }
  50% { box-shadow: 0 14px 30px rgba(123, 97, 255, 0.55), 0 0 0 14px rgba(123, 97, 255, 0.12); }
}

.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; gap: .6rem; justify-content: center; align-items: center; flex-wrap: wrap;
  padding: .75rem 1rem;
  background: rgba(19, 34, 56, 0.95); backdrop-filter: blur(10px);
  transform: translateY(110%); transition: transform .4s var(--ease);
}
.sticky.is-show { transform: translateY(0); }
.sticky .btn { min-height: 46px; }

.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (min-width: 800px) {
  .burger, .mobile-nav, .max-ico-link--mobile { display: none !important; }
  .nav, .header__right { display: flex; }
  .btn-icon span { display: inline; }
  .offer-grid, .trust-grid, .reviews { grid-template-columns: repeat(3, 1fr); }
  .process { grid-template-columns: repeat(4, 1fr); }
  .guarantee, .lead-grid, .contacts-grid { grid-template-columns: 1.1fr .9fr; gap: 2.5rem; }
  .cases { grid-template-columns: repeat(2, 1fr); }
  .case { grid-template-columns: .95fr 1.05fr; align-items: center; }
  .calc { grid-template-columns: 1.35fr .85fr; align-items: start; }
  .choice-grid { grid-template-columns: repeat(4, 1fr); }
  .calc__row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  .price-table__row { grid-template-columns: 1fr; gap: .3rem; }
  .price-table__head { display: none; }
  .hero__stats { gap: .7rem; }
  .hero__stats dt { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__img, .anim-rise, .reveal, .pulse, .tabs__panel.is-active {
    animation: none !important; transition: none !important;
    opacity: 1 !important; transform: none !important;
  }
}
