:root {
  /* Цвета и тени — см. docs/правила дизайна.md (простота, контраст, повторяемость) */
  --bg: #f4f8fd;
  --surface: #ffffff;
  --surface-muted: #edf3fb;
  --text: #151515;
  --text-muted: #4f5a6c;
  --line: rgba(21, 21, 21, 0.08);
  --accent: #4d8dff;
  --accent-strong: #2d6ef3;
  --dark: #17315c;
  --shadow: 0 20px 60px rgba(28, 56, 103, 0.08);
  --page-gutter: 24px;
  --site-header-offset: 76px;
  --icon-ui: #1a1a1a;

  /* Радиусы: три уровня + пилюля (ограничение вариантов) */
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-pill: 999px;

  /* Отступы 8-pt шкала */
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 28px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 56px;
  --space-11: 72px;

  /* Карточки и сетки: внутренний padding ≤ gap между карточками */
  --card-padding: 28px;
  --card-padding-dense: 24px;
  --card-padding-roomy: 32px;
  --gap-tight: 16px;
  --gap-cards: 24px;
  --gap-loose: 32px;

  --carousel-card-gap: var(--gap-tight);

  /* Вертикальный ритм секций */
  --section-pad-y: 104px;
  --section-pad-y-tablet: 80px;
  --section-pad-y-mobile: 64px;

  /* Нижний отступ CTA-блока (чуть больше секции — визуальный якорь перед футером) */
  --cta-section-pad-bottom: 108px;

  /* Длина строки лида (типографика) */
  --prose-max: 48rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--site-header-offset);
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(77, 141, 255, 0.22), transparent 30%),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 100%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 2 * var(--page-gutter)));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(244, 248, 253, 0.9);
  border-bottom: 1px solid rgba(21, 21, 21, 0.06);
}

main#top {
  padding-top: var(--site-header-offset);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--gap-cards);
  min-height: 76px;
}

.brand {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent-strong);
}

.nav {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: var(--gap-cards);
  color: var(--text-muted);
  font-size: 16px;
}

.nav a {
  border-radius: var(--radius-md);
}

.nav a:hover {
  color: var(--text);
}

.nav a:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

.brand:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 4px;
  border-radius: var(--radius-md);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.header-phone {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(21, 21, 21, 0.1);
  background: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
}

.header-cta > .button {
  min-height: 44px;
  height: 44px;
  padding: 0 14px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(45, 110, 243, 0.22);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-burger {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-left: auto;
  padding: 0;
  border-radius: var(--radius-md);
  border: 1px solid rgba(21, 21, 21, 0.1);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(28, 56, 103, 0.08);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-burger:hover,
.nav-burger:focus-visible {
  background: #fff;
  border-color: rgba(21, 21, 21, 0.14);
  outline: none;
}

.nav-burger-icon {
  display: block;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background-color: var(--icon-ui);
  mask-image: url("/assets/icon-menu.png");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-image: url("/assets/icon-menu.png");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.icon-close-img {
  display: block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background-color: var(--icon-ui);
  mask-image: url("/assets/icon-close.png");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-image: url("/assets/icon-close.png");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.nav-drawer[hidden] {
  display: none;
}

.nav-drawer:not([hidden]) {
  display: flex;
}

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  flex-direction: column;
}

.nav-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 26, 46, 0.48);
  backdrop-filter: blur(8px);
}

.nav-drawer-panel {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding:
    max(28px, env(safe-area-inset-top, 0px))
    var(--page-gutter)
    max(28px, env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  min-height: 0;
  box-sizing: border-box;
}

.nav-drawer-close {
  position: absolute;
  top: max(16px, env(safe-area-inset-top, 0px));
  right: var(--page-gutter);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(21, 21, 21, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(12, 24, 48, 0.18);
}

.nav-drawer-close:hover,
.nav-drawer-close:focus-visible {
  background: #fff;
  border-color: rgba(21, 21, 21, 0.14);
  outline: none;
}

.nav-drawer-close .icon-close-img {
  width: 22px;
  height: 22px;
}

.nav-drawer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  max-width: 320px;
  text-align: center;
}

.nav-drawer-links a {
  display: block;
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  transition: background-color 0.2s ease;
}

.nav-drawer-links a:hover,
.nav-drawer-links a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.nav-drawer-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 280px;
  margin-top: 28px;
}

.nav-drawer-phone {
  justify-content: center;
  width: 100%;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 900px) {
  .site-header {
    padding-left: max(var(--page-gutter), env(safe-area-inset-left, 0px));
    padding-right: max(var(--page-gutter), env(safe-area-inset-right, 0px));
  }

  .site-header .container {
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
  }

  .site-header .nav,
  .site-header .header-cta {
    display: none;
  }

  .site-header .brand {
    order: 0;
    margin-right: 0;
  }

  .nav-burger {
    display: inline-flex;
    order: 1;
    margin-left: auto;
  }

  .site-header .header-inner {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    width: 100%;
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 700;
  line-height: 1.2;
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

button.button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.price-actions > a.button.button-accent,
.lead-form > button.button[type="submit"] {
  height: 56px;
  min-height: 56px;
}

.button:hover {
  transform: translateY(-1px);
}

.button-full {
  width: 100%;
}

.button-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 16px 36px rgba(45, 110, 243, 0.28);
}

.button-accent:hover {
  background: var(--accent-strong);
}

.button-light {
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  border-color: rgba(21, 21, 21, 0.08);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: rgba(77, 141, 255, 0.12);
  border: 1px solid rgba(77, 141, 255, 0.2);
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}

.hero {
  padding: var(--space-7) 0 var(--space-10);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: var(--gap-cards);
  align-items: stretch;
}

.hero-copy,
.hero-card,
.steps-card,
.lead-form,
.stats-panel,
.service-card,
.info-card,
.benefit-card,
.price-card,
.faq-item,
.timeline-item,
.trust-item {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: var(--space-11);
  border-radius: var(--radius-xl);
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  margin: var(--space-5) 0 var(--space-5);
  font-size: clamp(42px, 5.8vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  max-width: 11ch;
  overflow-wrap: anywhere;
}

.hero-text {
  margin: 0;
  max-width: min(var(--prose-max), 40rem);
  font-size: 20px;
  line-height: 1.7;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-tight);
  margin-top: var(--space-8);
}

.hero-card {
  border-radius: var(--radius-xl);
  padding: var(--space-7) var(--space-5) var(--space-5);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(234, 242, 255, 0.98) 100%);
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.hero-card-wide {
  margin-top: 0;
}

.hero-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  font-weight: 700;
}

.hero-availability-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(21, 21, 21, 0.08);
  box-shadow: 0 2px 10px rgba(26, 53, 98, 0.06);
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.01em;
}

.hero-availability-tag-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1eb75f;
  box-shadow: 0 0 0 5px rgba(30, 183, 95, 0.12);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

.hero-availability-tag-label {
  white-space: nowrap;
}

.hero-card-title {
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.status-dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1eb75f;
  box-shadow: 0 0 0 6px rgba(30, 183, 95, 0.12);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

.systems-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  flex: 1;
  grid-template-rows: repeat(5, minmax(0, auto));
}

.system-item {
  padding: var(--space-6) var(--space-4);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(21, 21, 21, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.system-item strong,
.trust-item strong,
.benefit-card strong,
.stat-card strong,
.price-value strong {
  display: block;
}

.system-item strong {
  margin-bottom: var(--space-2);
  font-size: 18px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.system-item span {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.45;
}

button.system-item {
  width: 100%;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

button.system-item:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(21, 21, 21, 0.1);
  box-shadow: 0 8px 22px rgba(26, 53, 98, 0.06);
}

button.system-item:focus {
  outline: none;
}

button.system-item:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap-tight);
}

.trust-grid-inline {
  margin-top: var(--gap-loose);
}

.trust-item {
  padding: var(--card-padding-dense);
  border-radius: var(--radius-lg);
}

.trust-item strong {
  margin-bottom: 8px;
  font-size: 17px;
}

.trust-item span {
  color: var(--text-muted);
  line-height: 1.45;
  font-size: 15px;
}

.section {
  padding: var(--section-pad-y) 0;
}

.section-soft {
  background: rgba(255, 255, 255, 0.38);
}

.section-head {
  max-width: 780px;
  margin: 0 auto var(--space-8);
  text-align: center;
}

.section-head-left {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.section-head .eyebrow {
  margin-bottom: var(--space-3);
}

.section-head h2 {
  margin: 0 0 var(--space-4);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.section-head p {
  margin: 0 auto;
  max-width: var(--prose-max);
  color: var(--text-muted);
  font-size: 19px;
  line-height: 1.75;
}

.section-head-left p {
  margin-left: 0;
  margin-right: 0;
}

.pain-grid,
.service-grid,
.benefits-grid,
.stats-grid,
.contractors-grid {
  display: grid;
  gap: var(--gap-cards);
}

.pain-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-card,
.benefit-card,
.service-card,
.stat-card,
.contractor-card {
  border-radius: var(--radius-lg);
  padding: var(--card-padding);
}

.info-card h3,
.service-card h3,
.timeline-item h3,
.steps-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.info-card p,
.benefit-card p,
.timeline-item p,
.steps-card p,
.faq-item p,
.service-card li,
.stat-card span,
.pricing-caption,
.price-note,
.price-period,
.form-note,
.cta-copy p,
.cta-points li,
.footer-inner p {
  color: var(--text-muted);
  line-height: 1.6;
}

.split-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  gap: var(--gap-loose);
  align-items: start;
}

.split-copy h2 {
  margin: 0 0 var(--space-4);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.split-copy p {
  margin: 0;
  max-width: var(--prose-max);
  font-size: 19px;
  line-height: 1.75;
  color: var(--text-muted);
}

.steps-card {
  padding: var(--card-padding-roomy);
  border-radius: var(--radius-xl);
}

.steps-card article,
.timeline-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.steps-card article + article {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.steps-card span,
.timeline-item span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.service-grid,
.benefits-grid,
.stats-grid,
.contractors-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contractors-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contractor-card {
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 12px 30px rgba(26, 53, 98, 0.08),
    0 2px 10px rgba(26, 53, 98, 0.04);
}

.contractor-card img {
  width: 100%;
  aspect-ratio: 4 / 4.5;
  object-fit: cover;
}

.contractor-body {
  padding: var(--card-padding-dense);
}

.contractor-body h3 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.contractor-role {
  margin: 8px 0 16px;
  color: var(--text-muted);
  line-height: 1.5;
  min-height: 48px;
}

.contractor-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

.contractor-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: rgba(77, 141, 255, 0.08);
  color: var(--dark);
  font-size: 14px;
  font-weight: 700;
}

.contractor-meta .contractor-cert {
  width: 100%;
  min-height: 0;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  align-items: flex-start;
  line-height: 1.4;
  white-space: normal;
}

.contractor-banner {
  display: block;
  margin-top: var(--space-6);
  padding: var(--card-padding-dense) var(--space-5);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow:
    0 12px 30px rgba(26, 53, 98, 0.08),
    0 2px 10px rgba(26, 53, 98, 0.04);
}

.contractor-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: rgba(77, 141, 255, 0.08);
  border: 1px solid rgba(77, 141, 255, 0.14);
  color: var(--dark);
  font-size: 14px;
  font-weight: 700;
}

.contractor-banner-dot {
  width: 10px;
  height: 10px;
  box-shadow: 0 0 0 5px rgba(30, 183, 95, 0.12);
}

.contractor-banner-copy h3 {
  display: none;
}

.contractor-banner-copy p {
  margin: 12px 0 0;
  max-width: 100%;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
}

.service-card ul,
.price-list,
.cta-points {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-card ul {
  display: grid;
  gap: 12px;
}

.service-card li,
.price-list li,
.cta-points li {
  position: relative;
  padding-left: 22px;
  overflow-wrap: anywhere;
}

.service-card li::before,
.price-list li::before,
.cta-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-strong);
}

.pricing-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: var(--gap-loose);
  margin-bottom: var(--space-7);
}

.pricing-head h2 {
  margin: 14px 0 12px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.pricing-head p {
  margin: 0;
  color: var(--text-muted);
  max-width: var(--prose-max);
  line-height: 1.6;
}

.billing-toggle {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: var(--radius-pill);
  background: rgba(77, 141, 255, 0.08);
  border: 1px solid rgba(77, 141, 255, 0.12);
}

.billing-button {
  min-height: 56px;
  min-width: 124px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .billing-button {
    min-width: 0;
    white-space: normal;
    text-align: center;
    padding: 0 16px;
    line-height: 1.25;
  }
}

.billing-button.is-active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 10px 24px rgba(28, 56, 103, 0.08);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap-cards);
}

.price-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  padding: var(--card-padding-roomy) var(--card-padding);
}

.price-card-featured {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(77, 141, 255, 0.2), rgba(255, 255, 255, 0.9) 58%);
}

.price-top h3 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.price-system-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0 0 var(--space-3);
}

.price-system-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: rgba(21, 21, 21, 0.06);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.price-card-featured .price-system-tag {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(21, 21, 21, 0.06);
}

.price-value {
  display: flex;
  flex-direction: column;
  margin: 22px 0 16px;
}

.price-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.price-value strong {
  font-size: clamp(40px, 5vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.price-discount {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: 6px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: rgba(30, 183, 95, 0.14);
  color: #0e8e47;
  font-size: 14px;
  font-weight: 800;
}

.price-old {
  display: block;
  order: -1;
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 16px;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

#pricing:not(.is-yearly) .price-discount,
#pricing:not(.is-yearly) .price-old {
  display: none;
}

.price-period {
  display: block;
  margin-top: 8px;
  font-size: 16px;
}

.price-list {
  display: grid;
  gap: 14px;
  margin-bottom: 32px;
}

.price-list--core {
  margin-bottom: var(--space-4);
}

.price-card-addon {
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}

.price-actions {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.benefits-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.benefits-grid.solution-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.benefit-card-featured {
  grid-column: 1 / -1;
  padding: var(--space-8) var(--space-7);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(77, 141, 255, 0.14), rgba(255, 255, 255, 0.94) 52%);
  border: 1px solid rgba(77, 141, 255, 0.18);
  box-shadow:
    0 14px 36px rgba(26, 53, 98, 0.07),
    0 2px 12px rgba(26, 53, 98, 0.04);
}

.benefit-card-featured strong {
  font-size: clamp(23px, 2.4vw, 28px);
  letter-spacing: -0.03em;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: var(--space-5);
  background: rgba(16, 26, 46, 0.48);
  backdrop-filter: blur(8px);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-window {
  position: relative;
  width: min(860px, 100%);
  max-height: min(88vh, 920px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(21, 21, 21, 0.08);
  box-shadow:
    0 24px 60px rgba(22, 49, 92, 0.18),
    0 8px 24px rgba(22, 49, 92, 0.08);
}

.modal-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: var(--space-10) var(--card-padding) var(--card-padding);
  scrollbar-width: thin;
  scrollbar-color: rgba(77, 141, 255, 0.55) rgba(22, 49, 92, 0.07);
}

.modal-scroll::-webkit-scrollbar {
  width: 10px;
}

.modal-scroll::-webkit-scrollbar-track {
  margin: 8px 0;
  background: rgba(22, 49, 92, 0.07);
  border-radius: var(--radius-pill);
}

.modal-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(77, 141, 255, 0.75), rgba(45, 110, 243, 0.9));
  border-radius: var(--radius-pill);
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  border: 1px solid rgba(21, 21, 21, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(28, 56, 103, 0.08);
}

.modal-close:hover,
.modal-close:focus-visible {
  background: #fff;
  border-color: rgba(21, 21, 21, 0.12);
  outline: none;
}

.modal-close .icon-close-img {
  width: 20px;
  height: 20px;
}

.modal-copy {
  margin-top: 0;
}

.modal-copy h3 {
  margin: 18px 0 12px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  max-width: 18ch;
}

.modal-copy p {
  margin: 0;
  max-width: 62ch;
  color: var(--text-muted);
  line-height: 1.7;
}

.modal-sections {
  display: grid;
  gap: var(--gap-tight);
  margin-top: var(--space-6);
}

.modal-section {
  padding: var(--card-padding-dense);
  border-radius: var(--radius-lg);
  background: rgba(77, 141, 255, 0.05);
  border: 1px solid rgba(77, 141, 255, 0.1);
}

.modal-section h4 {
  margin: 0 0 14px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.modal-section ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.modal-section li {
  position: relative;
  padding-left: 22px;
  color: var(--text-muted);
  line-height: 1.65;
}

.modal-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-strong);
}

.hero-system-modal-body {
  max-width: 62ch;
  margin: 0 auto;
}

.hero-system-modal-body h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-system-modal-body .hero-system-lead {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-muted);
}

.hero-system-modal-body .hero-system-list {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.hero-system-modal-body .hero-system-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 15px;
}

.hero-system-modal-body .hero-system-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-strong);
}

.hero-system-modal-body .hero-system-actions {
  margin: 0;
  padding-top: 4px;
}

.solution-grid {
  align-items: stretch;
}

@media (max-width: 900px) {
  .benefits-grid.solution-grid {
    grid-template-columns: 1fr;
  }
}

.benefit-card strong {
  font-size: 22px;
  margin-bottom: 12px;
}

.stats-panel {
  padding: var(--space-8);
  border-radius: var(--radius-xl);
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 10px;
}

.stat-card strong {
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 10px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap-cards);
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: var(--card-padding-roomy);
  border-radius: var(--radius-lg);
}

.timeline-item span {
  margin-bottom: 20px;
}

.timeline-item h3 {
  margin: 0 0 8px;
}

.timeline-item p {
  margin: 0;
  max-width: 34ch;
}

.reviews-section {
  overflow: visible;
}

.reviews-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: var(--gap-cards);
  margin-bottom: var(--space-6);
}

.reviews-copy {
  margin-bottom: 0;
}

.reviews-controls {
  display: inline-flex;
  gap: 10px;
  flex: 0 0 auto;
}

.reviews-button {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(21, 21, 21, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(28, 56, 103, 0.06);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.reviews-button svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.reviews-button:hover {
  transform: translateY(-1px);
  background: #fff;
}

.reviews-track {
  display: flex;
  gap: var(--carousel-card-gap);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding:
    10px
    max(calc((100vw - 1180px) / 2), var(--page-gutter))
    16px;
  scroll-padding-inline: max(calc((100vw - 1180px) / 2), var(--page-gutter));
  box-sizing: border-box;
}

.reviews-track::-webkit-scrollbar {
  display: none;
}

.review-card {
  flex: 0 0 min(390px, calc(100vw - 2 * var(--page-gutter) - var(--carousel-card-gap)));
  padding: var(--card-padding);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  box-shadow:
    0 12px 30px rgba(26, 53, 98, 0.08),
    0 2px 10px rgba(26, 53, 98, 0.04);
  scroll-snap-align: start;
}

.review-card-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.review-card-top strong {
  font-size: 20px;
  letter-spacing: -0.03em;
}

.review-card-top span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: rgba(77, 141, 255, 0.08);
  color: var(--dark);
  font-size: 14px;
  font-weight: 700;
}

.review-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.extras-section {
  padding-top: var(--space-11);
}

.extras-head {
  margin-bottom: var(--space-5);
}

.extras-track {
  display: flex;
  gap: var(--carousel-card-gap);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding:
    10px
    max(calc((100vw - 1180px) / 2), var(--page-gutter))
    34px;
  scroll-padding-inline: max(calc((100vw - 1180px) / 2), var(--page-gutter));
  box-sizing: border-box;
}

.extras-track::-webkit-scrollbar {
  display: none;
}

.extra-card {
  flex: 0 0 min(390px, calc(100vw - 2 * var(--page-gutter) - var(--carousel-card-gap)));
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: var(--card-padding);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  box-shadow:
    0 12px 30px rgba(26, 53, 98, 0.08),
    0 2px 10px rgba(26, 53, 98, 0.04);
  scroll-snap-align: start;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.extra-card:hover {
  transform: translateY(-2px);
  border-color: rgba(77, 141, 255, 0.35);
  box-shadow:
    0 14px 34px rgba(26, 53, 98, 0.11),
    0 4px 12px rgba(26, 53, 98, 0.05);
}

.extra-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  font-size: 22px;
  background: #fff;
  border: 1px solid rgba(21, 21, 21, 0.1);
  box-shadow:
    0 4px 10px rgba(26, 53, 98, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.extra-card strong {
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.extra-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: var(--gap-loose);
  align-items: start;
}

.faq-head {
  position: sticky;
  top: 96px;
}

.faq-list {
  display: grid;
  gap: var(--gap-tight);
}

.faq-item {
  border-radius: var(--radius-lg);
  padding: 0 var(--card-padding-roomy);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--card-padding-dense) var(--space-8) var(--card-padding-dense) 0;
  position: relative;
  font-size: 18px;
  font-weight: 700;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 18px;
  font-size: 26px;
  color: var(--text-muted);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 0 var(--card-padding-dense);
}

.cta-section {
  padding-top: var(--space-6);
  padding-bottom: var(--cta-section-pad-bottom);
}

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: var(--space-6);
  align-items: stretch;
}

.cta-grid > * {
  min-width: 0;
}

.cta-copy {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #17315c 0%, #274d8f 100%);
  color: #fff;
}

.cta-copy h2 {
  margin: 0 0 var(--space-4);
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.cta-copy p,
.cta-copy .cta-points li {
  color: rgba(255, 255, 255, 0.76);
}

.cta-callback {
  margin: 0;
  font-weight: 700;
  color: #fff;
}

.cta-benefits-title {
  margin: 14px 0 0;
}

.cta-copy .eyebrow {
  align-self: flex-start;
  margin-bottom: var(--space-3);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.cta-points {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

.cta-contact-card {
  margin-top: var(--space-5);
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid rgba(21, 21, 21, 0.08);
  box-shadow:
    0 12px 28px rgba(12, 24, 48, 0.1),
    0 2px 8px rgba(12, 24, 48, 0.05);
}

.cta-contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  width: 100%;
  padding: 0 4px;
  color: var(--dark);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  justify-content: flex-start;
  text-align: left;
}

.cta-contact-dot {
  width: 10px;
  height: 10px;
  box-shadow: 0 0 0 5px rgba(30, 183, 95, 0.12);
}

.lead-form {
  display: grid;
  gap: var(--gap-tight);
  padding: var(--space-7);
  border-radius: var(--radius-xl);
}

.lead-form h3 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.lead-form label {
  display: grid;
  gap: 8px;
}

.lead-form span {
  font-size: 15px;
  font-weight: 600;
}

.lead-form input,
.lead-form select {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(21, 21, 21, 0.08);
  background: rgba(255, 255, 255, 0.92);
  outline: none;
}

.lead-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 24px) calc(50% - 3px),
    calc(100% - 18px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 48px;
}

.lead-form input:focus,
.lead-form select:focus {
  border-color: rgba(77, 141, 255, 0.85);
  box-shadow: 0 0 0 4px rgba(77, 141, 255, 0.18);
}

@media (hover: hover) {
  .button,
  .reviews-button,
  .header-phone {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  }

  .reviews-button:hover,
  .header-phone:hover {
    transform: translateY(-1px);
  }
}

.form-note {
  margin: 0;
  font-size: 14px;
}

.form-note a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer {
  padding: 0 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(21, 21, 21, 0.08);
}

.footer-inner p {
  margin: 0;
  font-size: 15px;
}

.footer-info {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  font-size: 14px;
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-brand {
  color: var(--accent-strong);
  font-weight: 800;
  letter-spacing: -0.03em;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(30, 183, 95, 0.12);
  }

  50% {
    opacity: 0.45;
    transform: scale(0.88);
    box-shadow: 0 0 0 10px rgba(30, 183, 95, 0.04);
  }
}

@media (max-width: 1100px) {
  .hero-grid,
  .split-block,
  .cta-grid,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .trust-grid,
  .pain-grid,
  .pricing-grid,
  .service-grid,
  .stats-grid,
  .contractors-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-head {
    position: static;
  }

  .reviews-head {
    flex-direction: column;
    align-items: stretch;
  }

  .header-inner {
    row-gap: 12px;
  }

  .brand {
    order: 1;
  }

  .header-cta {
    order: 2;
    margin-left: auto;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: var(--gap-tight);
    font-size: 15px;
  }
}

@media (max-width: 820px) {
  .site-header .header-inner {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
  }

  .header-inner,
  .pricing-head {
    flex-direction: column;
    align-items: stretch;
  }

  .nav {
    width: auto;
    order: initial;
    flex-wrap: wrap;
    gap: var(--gap-tight);
  }

  .header-cta {
    order: initial;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
  }

  .header-phone {
    justify-content: center;
  }

  .hero-copy,
  .hero-card,
  .stats-panel,
  .cta-copy,
  .lead-form {
    padding: var(--card-padding);
  }

  .hero-card {
    padding: var(--space-7) var(--card-padding) var(--card-padding);
  }

  .hero-copy,
  .hero-card {
    min-height: 0;
  }

  .section {
    padding: var(--section-pad-y-tablet) 0;
  }

  .systems-grid,
  .trust-grid,
  .pain-grid,
  .pricing-grid,
  .benefits-grid,
  .service-grid,
  .stats-grid,
  .contractors-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero-actions .button,
  .price-actions .button,
  .header-cta .button,
  .nav-drawer-footer .button,
  .lead-form .button,
  .billing-toggle {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .billing-toggle {
    justify-content: stretch;
  }

  .billing-button {
    width: 100%;
  }

  .cta-contact-line {
    justify-content: flex-start;
    font-size: 15px;
  }

  .cta-contact-card {
    margin-top: var(--space-5);
    padding: var(--space-3) var(--space-3);
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-info {
    justify-items: start;
  }
}

@media (max-width: 480px) {
  :root {
    --page-gutter: 16px;
    --cta-section-pad-bottom: var(--space-11);
  }

  .cta-copy,
  .lead-form {
    padding: var(--card-padding-dense);
  }

  .cta-contact-card {
    margin-top: var(--space-4);
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 28px;
    padding-bottom: 40px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(32px, 9vw, 42px);
  }

  .hero-text {
    font-size: 17px;
  }

  .hero h1,
  .section-head h2,
  .split-copy h2,
  .pricing-head h2,
  .cta-copy h2 {
    letter-spacing: -0.05em;
  }

  .section {
    padding: var(--section-pad-y-mobile) 0;
  }

  .faq-item summary {
    padding-right: 42px;
    font-size: 17px;
  }

  .faq-item summary::after {
    right: 2px;
  }

  .steps-card article,
  .timeline-item {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .steps-card span,
  .timeline-item span {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    font-size: 16px;
  }

  .faq-item {
    padding-left: var(--gap-tight);
    padding-right: var(--gap-tight);
  }
}
