/* ДомТакт landing v2 — светлый премиум */

:root {
  --bg: #f5f7fb;
  --bg-soft: #eef2f8;
  --surface: #ffffff;
  --ink: #12151c;
  --ink-muted: #5a6478;
  --line: rgba(18, 21, 28, 0.1);
  --accent: #2d6ef3;
  --accent-soft: #4d8dff;
  --accent-wash: rgba(45, 110, 243, 0.1);
  --danger: #d64545;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --shadow: 0 18px 50px rgba(18, 21, 28, 0.08);
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Golos Text", system-ui, sans-serif;
  --container: 1120px;
  --header-inset: 0.85rem;
  --header-bar-h: 3.85rem;
  --header-h: calc(var(--header-inset) + var(--header-bar-h));
  --page-gutter: 1.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

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

button,
input,
select {
  font: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

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

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

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

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: #245dd4;
}

.btn-light {
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  border-color: rgba(18, 21, 28, 0.08);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-lg {
  min-height: 3.15rem;
  padding-inline: 1.5rem;
  font-size: 1.05rem;
}

.btn-full {
  width: 100%;
}

/* Header — плашка поверх фото, без места в потоке */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  pointer-events: none;
}

.site-header .container {
  pointer-events: none;
  padding-top: var(--header-inset);
}

.header-bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  height: var(--header-bar-h);
  padding: 0.35rem 0.4rem 0.35rem 1.15rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border: 1px solid rgba(18, 21, 28, 0.08);
  border-radius: 1.35rem;
  box-shadow:
    0 14px 40px rgba(18, 21, 28, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  flex-shrink: 0;
  line-height: 1;
}

.nav {
  display: none;
  align-items: center;
  gap: 0.15rem;
  margin-left: 0.35rem;
  color: var(--ink-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  transition:
    color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.nav a:hover {
  color: var(--ink);
  background: rgba(18, 21, 28, 0.05);
}

.header-cta {
  display: none;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
  padding-right: 0.15rem;
}

.header-cta .btn,
.header-login {
  min-height: 2.55rem;
  padding: 0.45rem 1.05rem;
  font-size: 0.9rem;
}

.header-phone {
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.header-phone:hover {
  color: var(--accent);
  background: var(--accent-wash);
}

.nav-burger {
  margin-left: auto;
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  min-width: 48px;
  padding: 0;
  border: 1px solid rgba(18, 21, 28, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-burger:hover {
  background: rgba(18, 21, 28, 0.06);
  border-color: rgba(18, 21, 28, 0.14);
}

.nav-drawer-close {
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  min-width: 48px;
  padding: 0;
  border: 1px solid rgba(18, 21, 28, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0;
  line-height: 0;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

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

/* Menu toggle: 2 полоски → крестик */
.menu-toggle-icon {
  display: block;
  width: 16px;
  height: 16px;
  overflow: visible;
  pointer-events: none;
}

.menu-toggle-bar {
  fill: currentColor;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.28s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.menu-toggle.is-open .menu-toggle-bar:first-of-type,
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:first-of-type {
  transform: translateY(3px) rotate(45deg);
}

.menu-toggle.is-open .menu-toggle-bar:last-of-type,
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:last-of-type {
  transform: translateY(-3px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .menu-toggle-bar {
    transition: none;
  }
}

/* Drawer */

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

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

.nav-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 21, 28, 0.4);
  z-index: 50;
}

.nav-drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 51;
  width: min(100%, 20rem);
  height: 100%;
  background: var(--surface);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: slide-in 0.28s var(--ease);
}

@keyframes slide-in {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.nav-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-drawer-title {
  font-weight: 700;
}

.nav-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-weight: 600;
}

.nav-drawer-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.nav-drawer-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  margin: 0;
  padding: 0.55rem 0.75rem;
}

.nav-drawer-login {
  width: 100%;
}

/* Hero styles live in hero.css */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Media placeholders */

.media-placeholder {
  display: grid;
  place-items: center;
  min-height: 18rem;
  background: #0d0f14;
  color: rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  text-align: center;
  padding: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow);
  animation: fade-up 0.8s 0.18s var(--ease) both;
}

.media-placeholder span {
  max-width: 16rem;
}

.media-placeholder-sm {
  min-height: 12rem;
}

.media-placeholder-tall {
  min-height: 22rem;
}

.systems-visual {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.9), transparent 55%),
    linear-gradient(165deg, #eef4ff 0%, #e4ecf8 100%);
  box-shadow: var(--shadow);
}

.systems-visual img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1;
  object-fit: contain;
}

/* Sections */

.section {
  padding: 4.5rem 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-pricing {
  position: relative;
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(77, 141, 255, 0.14), transparent 58%),
    linear-gradient(180deg, #e4ecf9 0%, #edf2fa 45%, #e8eef8 100%);
  border-block: 1px solid rgba(45, 110, 243, 0.1);
}

.section-pricing::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(45, 110, 243, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 110, 243, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 85%);
  opacity: 0.7;
}

.section-pricing > .container {
  position: relative;
  z-index: 1;
}

.section-head {
  text-align: center;
  max-width: 46rem;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.section-head-left {
  text-align: left;
  margin-inline: 0;
  max-width: 52rem;
}

.section-head-left .section-lead {
  max-width: 40rem;
}

.section-head-split {
  display: grid;
  gap: 1.5rem;
  max-width: none;
  text-align: left;
  margin-bottom: 2rem;
  align-items: end;
}

.section-head-split .section-lead {
  max-width: 40rem;
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.section-head h2,
.section-head-left h2,
.cta-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
}

.section-lead {
  margin-top: 0.85rem;
  color: var(--ink-muted);
}

/* Steps / how product block */

.how-layout {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.25rem;
}

.how-copy .section-lead {
  margin-bottom: 1.15rem;
  max-width: 36rem;
}

.how-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
}

.how-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.how-points li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--ink);
  font-weight: 500;
}

.how-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.how-visual {
  position: relative;
  width: 100%;
  max-width: 36rem;
  margin-inline: auto;
}

.how-visual picture {
  display: block;
  width: 100%;
}

.how-visual__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

@media (min-width: 900px) {
  .how-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 2.5rem 2rem;
    margin-bottom: 2.75rem;
  }

  .how-visual {
    max-width: none;
    margin-inline: 0;
  }
}

@media (min-width: 768px) {
  .steps-stack--row {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .steps-stack--row .step {
    flex-direction: column;
    height: 100%;
  }
}

.steps {
  display: grid;
  gap: 1rem;
}

.steps-stack {
  gap: 0.75rem;
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.steps-stack .step {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--accent-wash);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-bottom: 0;
}

.steps:not(.steps-stack) .step-num {
  margin-bottom: 0.85rem;
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.step p {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* Systems */

.systems {
  display: grid;
  gap: 1rem;
}

.system {
  position: relative;
  display: block;
  background:
    linear-gradient(165deg, #ffffff 0%, #f7f9fd 100%);
  border: 1px solid rgba(45, 110, 243, 0.1);
  border-radius: 1.15rem;
  padding: 1.35rem 1.35rem 1.4rem;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(18, 21, 28, 0.05);
  transition:
    transform 0.28s var(--ease),
    box-shadow 0.28s var(--ease),
    border-color 0.28s var(--ease);
}

.system::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-soft), var(--accent));
  opacity: 0;
  transition: opacity 0.28s var(--ease);
}

.system::after {
  content: "";
  position: absolute;
  right: -20%;
  top: -40%;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 141, 255, 0.16), transparent 70%);
  pointer-events: none;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  opacity: 0.55;
}

.system.is-interactive {
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.system.is-interactive:hover,
.system.is-interactive:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(45, 110, 243, 0.28);
  box-shadow: 0 18px 40px rgba(45, 110, 243, 0.12);
  outline: none;
}

.system.is-interactive:focus-visible {
  box-shadow:
    0 18px 40px rgba(45, 110, 243, 0.12),
    0 0 0 3px rgba(45, 110, 243, 0.28);
}

.system:hover::before,
.system.is-interactive:focus-visible::before {
  opacity: 1;
}

.system:hover::after,
.system.is-interactive:focus-visible::after {
  opacity: 1;
  transform: scale(1.25) translate(-10%, 10%);
}

.system-body {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.system h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}

.system p {
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 0;
  flex: 1;
}

.system-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}

.system-more::after {
  content: "→";
  transition: transform 0.2s var(--ease);
}

.system.is-interactive:hover .system-more::after,
.system.is-interactive:focus-visible .system-more::after {
  transform: translateX(3px);
}

/* Masters */

.masters-head {
  max-width: 52rem;
  margin-bottom: 1.75rem;
}

.masters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 0.5rem;
  max-width: 38rem;
}

.master {
  margin: 0;
  display: grid;
  gap: 0.55rem;
  justify-items: start;
}

.master-photo {
  position: relative;
  width: 100%;
  max-width: 12.25rem;
  aspect-ratio: 1;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: 0 10px 28px rgba(18, 21, 28, 0.08);
}

.master-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(18, 21, 28, 0.16) 100%);
  pointer-events: none;
}

.master-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform 0.55s var(--ease);
}

.master:hover .master-photo img {
  transform: scale(1.03);
}

.master figcaption {
  display: grid;
  gap: 0.1rem;
  padding: 0 0.1rem;
}

.master figcaption strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.master figcaption span {
  color: var(--ink-muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

/* Compare */

.compare {
  display: grid;
  gap: 1rem;
}

.compare-card {
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--line);
}

.compare-card--old {
  background: #f0f1f4;
  color: var(--ink-muted);
}

.compare-card--new {
  background: var(--surface);
  border-color: rgba(45, 110, 243, 0.35);
  box-shadow: 0 0 0 1px var(--accent-wash), var(--shadow);
}

.compare-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
  color: var(--ink);
}

.compare-card ul {
  display: grid;
  gap: 0.55rem;
}

.compare-card li {
  padding-left: 1.15rem;
  position: relative;
  font-size: 0.98rem;
}

.compare-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
}

.compare-card--new li::before {
  background: var(--accent);
  opacity: 1;
}

/* Cabinet */

.cabinet-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

/* Extras */

.extras-grid {
  display: grid;
  gap: 0.85rem;
}

.extra {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

.extra h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.extra p {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.extras-note {
  margin-top: 1.25rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.extras-note a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Pricing / constructor */

.pricing-constructor-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.pricing-constructor-head .section-head {
  margin-bottom: 0;
}

.billing-toggle {
  display: inline-flex;
  padding: 0.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  gap: 0.2rem;
  width: fit-content;
}

.billing-button {
  border: 0;
  background: transparent;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
}

.billing-button.is-active {
  background: var(--accent);
  color: #fff;
}

.pricing-constructor {
  background: var(--surface);
  border: 1px solid rgba(45, 110, 243, 0.16);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 18px 50px rgba(18, 21, 28, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.7) inset;
}

.section-pricing .billing-toggle {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(45, 110, 243, 0.18);
  box-shadow: 0 4px 16px rgba(45, 110, 243, 0.08);
}

.tariff-constructor-total {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(180deg, #f3f7ff, #e4edfb);
}

.tariff-constructor-list {
  display: grid;
}

.tariff-constructor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--line);
}

.tariff-constructor-row.is-detail {
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.tariff-constructor-row.is-detail:hover,
.tariff-constructor-row.is-detail:focus-visible {
  background: rgba(45, 110, 243, 0.04);
  outline: none;
}

.tariff-constructor-row.is-detail .tariff-constructor-copy strong {
  color: var(--ink);
}

.tariff-constructor-row.is-detail:hover .tariff-constructor-copy strong,
.tariff-constructor-row.is-detail:focus-visible .tariff-constructor-copy strong {
  color: var(--accent);
}

.tariff-constructor-copy {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.tariff-constructor-copy strong {
  font-size: 1.05rem;
}

.tariff-constructor-copy span {
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.included-tag {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-wash);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.tariff-constructor-switch-wrap {
  position: relative;
  display: inline-flex;
  cursor: pointer;
  flex-shrink: 0;
}

.tariff-constructor-switch-wrap input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.tariff-constructor-switch {
  width: 3rem;
  height: 1.75rem;
  border-radius: 999px;
  background: #c9d0dc;
  position: relative;
  transition: background 0.2s;
}

.tariff-constructor-switch::after {
  content: "";
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s var(--ease);
}

.tariff-constructor-switch-wrap input:checked + .tariff-constructor-switch {
  background: var(--accent);
}

.tariff-constructor-switch-wrap input:checked + .tariff-constructor-switch::after {
  transform: translateX(1.25rem);
}

.tariff-constructor-switch-wrap input:focus-visible + .tariff-constructor-switch {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tariff-constructor-price-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.5rem;
}

.tariff-constructor-price-main strong {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: -0.03em;
}

.tariff-constructor-price-main .price-period {
  color: var(--ink-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.price-discount {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a8f4a;
  background: rgba(26, 143, 74, 0.12);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.price-old {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
  text-decoration: line-through;
}

.price-old[hidden],
.price-discount[hidden] {
  display: none !important;
}

/* —— Готовые тарифы (горизонтальный скролл) —— */
.tariffs-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.tariffs-head .section-head {
  margin-bottom: 0;
}

.section-tariffs {
  overflow: visible;
  padding-bottom: 0.5rem;
}

.tariff-pick-scroller {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}

.tariff-pick-float {
  position: absolute;
  top: calc(50% - 0.35rem);
  z-index: 6;
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid rgba(18, 21, 28, 0.08);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  box-shadow:
    0 10px 28px rgba(18, 21, 28, 0.16),
    0 2px 6px rgba(18, 21, 28, 0.06);
  transform: translateY(-50%);
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    opacity 0.2s var(--ease);
}

.tariff-pick-float svg {
  width: 1.2rem;
  height: 1.2rem;
}

.tariff-pick-float--prev {
  left: max(0.65rem, calc((100vw - min(100vw, var(--container))) / 2 + 0.35rem));
}

.tariff-pick-float--next {
  right: max(0.65rem, calc((100vw - min(100vw, var(--container))) / 2 + 0.35rem));
}

.tariff-pick-float:hover {
  transform: translateY(calc(-50% - 1px));
  color: var(--accent);
  box-shadow:
    0 14px 34px rgba(45, 110, 243, 0.2),
    0 4px 10px rgba(18, 21, 28, 0.08);
}

.tariff-pick-float:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 3px;
}

.tariff-pick-float[hidden] {
  display: none;
}

.tariff-pick-track {
  --tariff-gap: 0.9rem;
  --tariff-inline-pad: max(var(--page-gutter), calc((100vw - var(--container)) / 2));
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: var(--tariff-gap);
  overflow-x: auto;
  overflow-y: visible;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--tariff-inline-pad);
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  padding:
    0.9rem
    var(--tariff-inline-pad)
    1.85rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.tariff-pick-track.is-centered {
  --tariff-inline-pad: var(--page-gutter);
  justify-content: center;
  scroll-snap-type: none;
}

.tariff-pick-track::-webkit-scrollbar {
  display: none;
}

.tariff-pick-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 0 0 min(19.5rem, calc(100vw - 2.75rem));
  padding: 1.35rem 1.25rem 1.25rem;
  scroll-snap-align: start;
  background:
    linear-gradient(165deg, #ffffff 0%, #f7f9fd 100%);
  border: 2px solid rgba(45, 110, 243, 0.12);
  border-radius: 1.25rem;
  box-shadow: 0 12px 32px rgba(18, 21, 28, 0.07);
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.28s var(--ease),
    box-shadow 0.28s var(--ease),
    border-color 0.28s var(--ease);
}

.tariff-pick-card::after {
  content: "";
  position: absolute;
  right: -18%;
  top: -36%;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 141, 255, 0.14), transparent 70%);
  pointer-events: none;
  opacity: 0.7;
  z-index: 0;
}

.tariff-pick-card:hover {
  transform: translateY(-3px);
  border-color: rgba(45, 110, 243, 0.3);
  box-shadow: 0 18px 42px rgba(45, 110, 243, 0.14);
}

.tariff-pick-card--featured {
  background:
    linear-gradient(165deg, #eef4ff 0%, #ffffff 52%, #f7f9fd 100%);
  border: 2px solid var(--accent);
  box-shadow: 0 16px 40px rgba(45, 110, 243, 0.16);
}

.tariff-pick-card__intro,
.tariff-pick-card__top,
.tariff-pick-card__price,
.tariff-pick-systems,
.tariff-pick-card__cta {
  position: relative;
  z-index: 1;
}

.tariff-pick-card__intro {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 8.75rem;
}

.tariff-pick-card__top {
  display: grid;
  gap: 0.4rem;
  flex: 1 1 auto;
}

.tariff-pick-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--ink);
}

.tariff-pick-card__desc {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
  line-height: 1.4;
  font-weight: 500;
  text-wrap: pretty;
  min-height: calc(1.4em * 2);
}

.tariff-pick-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.5rem;
  margin-top: auto;
  min-height: 2rem;
}

.tariff-pick-card__price strong {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.tariff-pick-card__price .price-period {
  color: var(--ink-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.tariff-pick-systems {
  list-style: none;
  margin: 0 -1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: auto;
  border: none;
  border-top: 1px solid rgba(18, 21, 28, 0.1);
  border-bottom: 1px solid rgba(18, 21, 28, 0.1);
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.tariff-pick-systems li {
  margin: 0;
  border-bottom: 1px solid rgba(18, 21, 28, 0.08);
}

.tariff-pick-systems li:last-child {
  border-bottom: none;
}

.tariff-system-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 1.05rem 1.15rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.tariff-system-tag::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  opacity: 0.35;
  flex-shrink: 0;
  margin-left: 0.75rem;
}

.tariff-system-tag:hover,
.tariff-system-tag:focus-visible {
  background: var(--accent-wash);
  color: var(--accent);
  outline: none;
}

.tariff-system-tag:hover::after,
.tariff-system-tag:focus-visible::after {
  opacity: 0.7;
}

.tariff-pick-card__cta {
  width: 100%;
  justify-content: center;
  margin-top: auto;
  flex-shrink: 0;
}

@media (min-width: 720px) {
  .tariff-pick-card {
    flex-basis: min(20.5rem, calc(42vw - 1rem));
  }
}

@media (min-width: 1100px) {
  .tariff-pick-card {
    flex-basis: min(21rem, calc(28vw - 1.25rem));
  }
}

/* Reviews */

.reviews-grid {
  display: grid;
  gap: 1rem;
}

.review {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem;
}

.review blockquote {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.5;
}

.review figcaption {
  color: var(--ink-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

/* CTA + form */

.section-cta {
  position: relative;
  overflow: hidden;
  color: #f4f7fc;
  background:
    radial-gradient(ellipse 70% 60% at 15% 20%, rgba(77, 141, 255, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 45% at 90% 80%, rgba(45, 110, 243, 0.22), transparent 50%),
    linear-gradient(160deg, #07111f 0%, #0c1a30 55%, #0a1526 100%);
  padding: 5rem 0;
}

.section-cta .eyebrow {
  color: #8eb6ff;
}

.section-cta h2 {
  color: #fff;
}

.section-cta .cta-points li {
  color: rgba(244, 247, 252, 0.72);
}

.section-cta .cta-contacts a {
  color: #fff;
}

.section-cta .cta-contacts a:hover {
  color: #8eb6ff;
}

.cta-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.lead-form {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 0.9rem;
}

.cta-points {
  margin: 1.25rem 0;
  display: grid;
  gap: 0.55rem;
}

.cta-points li {
  padding-left: 1.2rem;
  position: relative;
  color: var(--ink-muted);
}

.cta-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #8eb6ff;
}

.cta-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-weight: 600;
}

.cta-contacts a:hover {
  color: var(--accent);
}

.lead-form h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.lead-form-lead {
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin-top: -0.35rem;
}

.lead-form label {
  display: grid;
  gap: 0.2rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.lead-form input[type="text"],
.lead-form input[type="tel"],
.lead-form select {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background-color: var(--bg-soft);
  font-weight: 500;
  color: var(--ink);
}

.lead-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.5rem;
  background-color: var(--bg-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%235a6478' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1rem;
  cursor: pointer;
}

.lead-form select::-ms-expand {
  display: none;
}

/* Custom select (rounded dropdown) */

.cs-select {
  position: relative;
}

.cs-select-native {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  clip: rect(0, 0, 0, 0);
}

.cs-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 2.85rem;
  padding: 0.65rem 0.9rem 0.65rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background-color: var(--bg-soft);
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.cs-select.is-open .cs-select-trigger,
.cs-select-trigger:focus-visible {
  outline: 2px solid var(--accent-wash);
  border-color: var(--accent);
}

.cs-select-label.is-placeholder {
  color: var(--ink-muted);
}

.cs-select-chevron {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%235a6478' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 1rem no-repeat;
  transition: transform 0.2s var(--ease);
}

.cs-select.is-open .cs-select-chevron {
  transform: rotate(180deg);
}

.cs-select-list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background-color: var(--surface);
  border: 1px solid rgba(45, 110, 243, 0.16);
  border-radius: 1.1rem;
  box-shadow: 0 16px 40px rgba(18, 21, 28, 0.14);
  max-height: 16rem;
  overflow: auto;
}

.cs-select-option {
  padding: 0.7rem 0.85rem;
  border-radius: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--ink);
}

.cs-select-option:hover {
  background: var(--accent-wash);
}

.cs-select-option.is-selected {
  background: rgba(45, 110, 243, 0.12);
  color: var(--accent);
  font-weight: 600;
}

.cs-select-option.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.lead-form input:focus,
.lead-form select:focus {
  outline: 2px solid var(--accent-wash);
  border-color: var(--accent);
}

.lead-form-consent {
  display: flex !important;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0.15rem 0 0.55rem;
  font-weight: 500 !important;
  color: var(--ink-muted);
  font-size: 0.9rem !important;
  line-height: 1.4;
  cursor: pointer;
}

.lead-form-consent-input {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  margin: 0.1rem 0 0;
  box-sizing: border-box;
  border: 1.5px solid var(--line);
  border-radius: 0.45rem;
  background-color: var(--bg-soft);
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.lead-form-consent-input:hover {
  border-color: rgba(45, 110, 243, 0.45);
}

.lead-form-consent-input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash);
}

.lead-form-consent-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.2 6.4 11l6-7' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.85rem;
}

.lead-form-consent-text {
  min-width: 0;
  flex: 1;
}

.lead-form-consent a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.lead-form.is-success {
  border-color: rgba(26, 143, 74, 0.35);
}

.lead-form .form-error,
.lead-form .form-success {
  font-size: 0.9rem;
  font-weight: 600;
}

.lead-form .form-error {
  color: var(--danger);
}

.lead-form .form-success {
  color: #1a8f4a;
}

/* FAQ */

.faq-layout {
  display: grid;
  gap: 1.5rem;
}

.faq-list {
  display: grid;
  gap: 0.65rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.25rem 1.15rem;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  padding: 1rem 0;
}

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

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  align-self: center;
  color: var(--ink-muted);
  font-weight: 500;
  line-height: 1;
}

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

.faq-item p {
  padding-bottom: 1rem;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  background: #eceff5;
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}

.footer-tagline {
  color: var(--ink-muted);
  margin-top: 0.25rem;
}

.footer-info {
  color: var(--ink-muted);
  font-size: 0.95rem;
  display: grid;
  gap: 0.75rem;
}

.footer-contacts,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}

.footer-contacts a,
.footer-links a {
  font-weight: 600;
}

.footer-links a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
  font-weight: 500;
}

.footer-contacts a:hover,
.footer-links a:hover {
  color: var(--accent);
}

/* Modal */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(18, 21, 28, 0.45);
}

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

.modal-window {
  position: relative;
  width: min(100%, 26rem);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 24px 60px rgba(18, 21, 28, 0.2);
}

.modal-window--hero-system {
  width: min(100%, 36rem);
  max-height: min(90vh, 42rem);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, #f7f9fd 0%, #ffffff 7rem);
  border: 1px solid rgba(45, 110, 243, 0.12);
}

.modal-window--hero-system .modal-content {
  overflow-y: auto;
  padding: 1.85rem 1.6rem 1.55rem;
  -webkit-overflow-scrolling: touch;
}

.modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  z-index: 2;
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  min-width: 48px;
  padding: 0;
  border: 1px solid rgba(18, 21, 28, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  transition:
    color 0.2s var(--ease),
    background 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.modal-close:hover,
.modal-close:focus-visible {
  color: var(--ink);
  background: rgba(18, 21, 28, 0.06);
  border-color: rgba(18, 21, 28, 0.14);
  outline: none;
}

.system-detail-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.system-detail h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.65rem;
  padding-right: 2rem;
}

.system-detail-lead {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 36em;
}

.system-detail-list {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.7rem;
  border-radius: 1rem;
  background: rgba(45, 110, 243, 0.07);
  border: 1px solid rgba(45, 110, 243, 0.12);
}

.system-detail-list li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.98rem;
  line-height: 1.4;
  color: var(--ink);
}

.system-detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.system-detail-note {
  margin: 1.15rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(18, 21, 28, 0.08);
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink-muted);
}

.lead-success {
  display: grid;
  gap: 0.85rem;
  text-align: center;
  justify-items: center;
}

.lead-success h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.lead-success p {
  color: var(--ink-muted);
}

.btn.is-submitted {
  background: #1a8f4a;
}

.btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}

/* Desktop */

@media (min-width: 768px) {
  :root {
    --header-inset: 1rem;
    --header-bar-h: 4.1rem;
  }

  .header-bar {
    padding: 0.4rem 0.45rem 0.4rem 1.35rem;
    border-radius: 1.5rem;
  }

  .nav {
    display: flex;
  }

  .header-cta {
    display: flex;
  }

  .nav-burger {
    display: none;
  }

  .media-placeholder {
    min-height: 24rem;
  }

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

  .masters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem 0.55rem;
    max-width: none;
  }

  .master-photo {
    max-width: 13.5rem;
  }

  .section-head-split {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
  }

  .compare {
    grid-template-columns: 1fr 1fr;
  }

  .cabinet-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
  }

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

  .pricing-constructor-head {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

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

  .cta-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .faq-layout {
    grid-template-columns: 0.7fr 1.3fr;
    gap: 3rem;
    align-items: start;
  }

  .footer-inner {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
  }

  .footer-info {
    text-align: right;
    justify-items: end;
  }

  .footer-contacts,
  .footer-links {
    justify-content: flex-end;
  }
}

@media (max-width: 767px) {
  .masters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem 0.4rem;
    width: 100%;
    max-width: 24rem;
    margin-inline: 0;
    overflow: visible;
  }

  .master {
    width: auto;
    max-width: none;
    min-width: 0;
  }

  .master-photo {
    max-width: 11.25rem;
    aspect-ratio: 1;
  }

  /* От «Сколько стоит» вниз: заголовки и лиды по центру; форма слева */
  #pricing .section-head,
  #pricing .section-head-left,
  #tariffs .section-head,
  #extras .section-head,
  #reviews .section-head,
  #faq .section-head,
  #faq .section-head-left {
    text-align: center;
    margin-inline: auto;
  }

  #pricing .section-head-left .section-lead,
  #tariffs .section-lead,
  #extras .section-lead {
    margin-inline: auto;
  }

  .pricing-constructor-head {
    justify-items: center;
  }

  .pricing-constructor-head .billing-toggle,
  .tariffs-head .billing-toggle {
    margin-inline: auto;
  }

  .extras-note {
    text-align: center;
  }

  /* FAQ: без лишнего margin у заголовка — только gap сетки */
  .faq-layout {
    gap: 1.15rem;
  }

  .faq-layout .section-head {
    margin-bottom: 0;
  }

  .section-cta .cta-copy {
    text-align: center;
  }

  .section-cta .cta-points {
    text-align: left;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
  }

  .section-cta .cta-contacts {
    justify-content: center;
  }

  .section-cta .lead-form {
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .systems {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero {
    padding: 4rem 0 5rem;
  }
}

@media (max-width: 480px) {
  :root {
    --page-gutter: 0.75rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .tariff-constructor-total {
    flex-direction: column;
    align-items: stretch;
  }

  .tariff-constructor-total .btn {
    width: 100%;
  }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
