:root {
  --dz-green: #00a854;
  --dz-green-dark: #008a46;
  --dz-green-soft: #e8f5ee;
  --dz-green-border: #b8e0c8;
  --logo-brand-gradient: linear-gradient(118deg, #047857 0%, #059669 30%, #10b981 58%, #34d399 82%, #a7f3d0 100%);
  --logo-brand-gradient-footer: linear-gradient(115deg, #2dd4bf 0%, #4ade80 42%, #86efac 78%, #d1fae5 100%);
  --bg-page: #f3f6f4;
  --bg-white: #ffffff;
  --text: #1c1c1e;
  --text-muted: #5c6366;
  --text-light: #8a9194;
  --border: #e2e8e4;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 40, 20, 0.08);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
  --radius: 12px;
  --radius-lg: 16px;
  --header-h: 72px;
  --btn-gradient: linear-gradient(145deg, #1ed47a 0%, #00a854 42%, #007a42 100%);
  --btn-gradient-hover: linear-gradient(145deg, #3ae892 0%, #00b85c 42%, #008f4a 100%);
  --btn-shine: linear-gradient(
    105deg,
    transparent 0%,
    transparent 38%,
    rgba(255, 255, 255, 0.08) 44%,
    rgba(255, 255, 255, 0.38) 50%,
    rgba(255, 255, 255, 0.1) 56%,
    transparent 62%,
    transparent 100%
  );
  --block-surface: linear-gradient(165deg, #ffffff 0%, #f7faf8 55%, #f2f6f4 100%);
  --block-edge: rgba(0, 168, 84, 0.1);
  --trust-star-full: #e3a008;
  --trust-star-muted: #c9d5ce;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Source Sans 3", system-ui, -apple-system, sans-serif;
  background: var(--bg-page);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
}

.header-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
}

header {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: var(--header-h);
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 3;
}

.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.site-nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 20px;
  margin: 0;
  padding: 0;
}

.site-nav-list a {
  font-family: "Montserrat", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 2px;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-nav-list a:hover {
  color: var(--dz-green-dark);
}

.site-nav-list a:focus-visible {
  outline: 2px solid var(--dz-green);
  outline-offset: 2px;
}

@media (min-width: 769px) {
  .site-nav-list__item--mobile-only {
    display: none;
  }
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 10px;
  background: var(--dz-green-soft);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.nav-burger:hover {
  background: rgba(0, 168, 84, 0.18);
}

.nav-burger:focus-visible {
  outline: 2px solid var(--dz-green);
  outline-offset: 2px;
}

.nav-burger-bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: var(--dz-green-dark);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

body.nav-open .nav-burger .nav-burger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-burger .nav-burger-bar:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-burger .nav-burger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--header-h);
  z-index: 1;
  background: rgba(28, 28, 30, 0.45);
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

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

@media (max-width: 768px) {
  .wrap {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .hero h1 {
    text-align: center;
    font-size: clamp(1.35rem, 5.2vw, 1.7rem);
    line-height: 1.25;
  }

  .hero-lead,
  .hero-list,
  .trust-strip {
    display: none;
  }

  header {
    flex-wrap: nowrap;
    gap: 8px 10px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav-burger {
    display: flex;
    order: 3;
    margin-left: 0;
    flex-shrink: 0;
  }

  .logo {
    order: 1;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 42%;
  }

  .logo--header-graphic .logo-svg {
    height: 34px;
  }

  .logo-line--brand {
    font-size: 1.05rem;
  }

  .logo-line--tag {
    font-size: 0.62rem;
    white-space: nowrap;
    letter-spacing: 0.01em;
  }

  .site-nav {
    order: 4;
    flex: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: block;
    padding: 12px 20px 20px;
    background: var(--bg-white);
    box-shadow: 0 12px 32px rgba(0, 40, 20, 0.12);
    z-index: 2;
    max-height: min(70vh, 420px);
    overflow-y: auto;
    transform-origin: top center;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.22s ease,
      transform 0.22s ease,
      visibility 0.22s;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav-list li {
    border-bottom: 1px solid var(--border);
  }

  .site-nav-list li:last-child {
    border-bottom: none;
  }

  .site-nav-list a {
    display: block;
    padding: 14px 8px;
    font-size: 1rem;
  }

  .header-right {
    order: 2;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .header-phone {
    align-items: flex-end;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.72rem;
  }

  .header-phone__region {
    display: none;
  }

  .header-phone strong {
    font-size: 1rem;
  }

  .header-right .btn-header {
    display: none;
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 380px) {
  .logo {
    max-width: 38%;
  }

  .logo--header-graphic .logo-svg {
    height: 28px;
  }

  .logo-line--brand {
    font-size: 0.98rem;
  }

  .logo-line--tag {
    font-size: 0.58rem;
    letter-spacing: 0;
  }

  .header-phone strong {
    font-size: 0.9375rem;
  }
}

.logo {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  line-height: 1.15;
  gap: 2px;
}

.logo-line {
  display: block;
  text-align: center;
}

.logo-line--brand {
  font-weight: 800;
  font-size: 1.38rem;
  letter-spacing: 0.075em;
  line-height: 1.12;
  background: var(--logo-brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--dz-green);
  -webkit-text-fill-color: transparent;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .logo-line--brand {
    background: none;
    -webkit-text-fill-color: unset;
    color: var(--dz-green);
  }
}

.logo-line--tag {
  color: var(--text);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo--header-graphic {
  flex-direction: row;
  align-items: center;
  line-height: 0;
  gap: 0;
}

.logo--header-graphic .logo-svg {
  display: block;
  height: 48px;
  width: auto;
  max-width: 100%;
}

.logo--header-graphic .logo-svg__soyuznik {
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.35)) drop-shadow(0 2px 8px rgba(5, 120, 87, 0.22));
}

@media (min-width: 1100px) {
  .logo--header-graphic .logo-svg {
    height: 56px;
  }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.header-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.25;
  text-align: right;
}

.header-phone__num-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

@keyframes header-phone-shake {
  0%,
  100% {
    transform: rotate(-3.5deg);
  }
  50% {
    transform: rotate(3.5deg);
  }
}

.header-phone-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  color: var(--dz-green-dark);
  transform-origin: 50% 55%;
  transition: color 0.15s ease, opacity 0.15s ease;
  animation: header-phone-shake 0.5s ease-in-out infinite;
}

.header-phone:hover .header-phone-icon {
  color: var(--dz-green);
  animation: none;
  transform: rotate(0deg);
}

@media (prefers-reduced-motion: reduce) {
  .header-phone-icon {
    animation: none;
  }
}

@media (max-width: 768px) {
  .header-phone-icon {
    display: none;
  }
}

.header-phone-icon__svg {
  display: block;
  width: 1.3rem;
  height: 1.3rem;
}

.header-phone strong {
  color: var(--text);
  font-weight: 600;
  font-size: 1.3rem;
  white-space: nowrap;
}

.header-phone__tel {
  text-decoration: none;
  color: inherit;
  border-radius: 4px;
}

@media (min-width: 769px) {
  .header-phone__tel {
    pointer-events: none;
    cursor: default;
  }
}

@media (max-width: 768px) {
  .header-phone__tel:active strong {
    color: var(--dz-green-dark);
  }

  .header-phone__tel:focus-visible {
    outline: 2px solid var(--dz-green);
    outline-offset: 2px;
  }
}

.btn-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 10px 20px;
  border-radius: 10px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--btn-gradient);
  color: #fff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 3px 12px rgba(0, 122, 66, 0.32),
    0 8px 20px rgba(0, 90, 50, 0.12);
  transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.2s ease;
}

.btn-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--btn-shine);
  transform: translateX(-120%);
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 0;
}

.btn-header:hover {
  background: var(--btn-gradient-hover);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22) inset,
    0 5px 18px rgba(0, 140, 80, 0.38),
    0 12px 28px rgba(0, 80, 45, 0.15);
  filter: brightness(1.03);
}

.btn-header:hover::before {
  transform: translateX(120%);
}

.btn-header:active {
  transform: translateY(1px);
  filter: brightness(0.97);
}

.btn-header:focus-visible {
  outline: 2px solid var(--dz-green);
  outline-offset: 3px;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: start;
  margin-bottom: 48px;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

.hero-badge {
  display: inline-block;
  background: var(--dz-green-soft);
  color: var(--dz-green-dark);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.hero h1 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin-bottom: 24px;
  max-width: 42ch;
}

.hero-list {
  list-style: none;
  margin-bottom: 28px;
}

.hero-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 0.98rem;
  color: var(--text);
}

.hero-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 18px;
  height: 18px;
  background: var(--dz-green);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #ffffff 0%, #eef6f0 48%, #e4f0ea 100%);
  border: 1px solid var(--block-edge);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card), 0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

.trust-rating-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.trust-rating {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--dz-green);
}

.trust-stars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.trust-star-icon {
  display: block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  max-width: 100%;
  color: var(--trust-star-full);
}

.trust-star-icon--muted {
  color: var(--trust-star-muted);
}

.trust-star-partial {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.trust-star-partial .trust-star-icon--muted {
  position: absolute;
  left: 0;
  top: 0;
}

.trust-star-partial__fill {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  width: 90%;
  height: 100%;
  pointer-events: none;
}

.trust-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

#zayavka,
#shagi,
#preimushchestva,
#usloviya,
#region-seo,
#otzyvy,
#faq {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.region-seo-text {
  max-width: 52rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.region-seo-text p {
  margin: 0 0 1rem;
}

.region-seo-text p:last-child {
  margin-bottom: 0;
}

.card {
  background: var(--block-surface);
  border: 1px solid rgba(0, 168, 84, 0.12);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow:
    var(--shadow-card),
    0 0 0 1px rgba(255, 255, 255, 0.75) inset,
    0 -1px 0 rgba(0, 120, 70, 0.06) inset;
}

.card h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.card-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 22px;
}

label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

input,
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fafbfa;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--dz-green);
  box-shadow: 0 0 0 3px rgba(0, 168, 84, 0.15);
  background: #fff;
}

.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .row2 {
    grid-template-columns: 1fr;
  }
}

#loan-form label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
}

.range-wrap {
  margin-bottom: 6px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--dz-green);
  margin-bottom: 6px;
  cursor: pointer;
}

.range-labels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.range-labels > span:first-child {
  justify-self: start;
}

.range-labels > span:last-child {
  justify-self: end;
}

.range-labels .range-current {
  font-family: "Montserrat", sans-serif;
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--dz-green-dark);
  flex-shrink: 0;
  justify-self: center;
  text-align: center;
}


.calc-result {
  background: linear-gradient(160deg, #f0faf4 0%, #e4f4eb 50%, #daf0e4 100%);
  border: 1px solid rgba(0, 168, 84, 0.2);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.calc-result dl {
  display: grid;
  gap: 10px;
}

.calc-result dt {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.calc-result dd {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
}

.calc-result .small dd {
  font-size: 0.9375rem;
  font-weight: 600;
}

.loan-calc-rate-note {
  margin: 12px 0 0;
  font-size: 0.6875rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Компактный превью-расчёт в форме заявки */
.loan-calc-live {
  padding: 10px 12px;
  margin-bottom: 12px;
}

.loan-calc-live dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 2px 14px;
  margin: 0;
}

.loan-calc-live dt {
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  margin: 0;
}

.loan-calc-live dd {
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.loan-calc-live dt:nth-of-type(1) {
  grid-column: 1;
  grid-row: 1;
}

.loan-calc-live dd:nth-of-type(1) {
  grid-column: 1;
  grid-row: 2;
}

.loan-calc-live dt:nth-of-type(2) {
  grid-column: 2;
  grid-row: 1;
}

.loan-calc-live dd:nth-of-type(2) {
  grid-column: 2;
  grid-row: 2;
}

.loan-calc-live .loan-calc-rate-note {
  margin: 6px 0 0;
  font-size: 0.625rem;
  line-height: 1.35;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  width: 100%;
  padding: 14px 22px;
  border: none;
  border-radius: 12px;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--btn-gradient);
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 60, 35, 0.25);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 4px 16px rgba(0, 122, 66, 0.38),
    0 10px 32px rgba(0, 80, 45, 0.14);
  transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.2s ease;
}

#btn-calculate {
  padding: 18px 26px;
  font-size: 1.125rem;
  border-radius: 14px;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--btn-shine);
  transform: translateX(-120%);
  transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 0;
}

.btn:hover {
  background: var(--btn-gradient-hover);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.25) inset,
    0 6px 22px rgba(0, 150, 85, 0.45),
    0 14px 36px rgba(0, 70, 40, 0.18);
  filter: brightness(1.04);
}

.btn:hover::before {
  transform: translateX(120%);
}

.btn:active {
  transform: translateY(2px);
  filter: brightness(0.96);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15) inset,
    0 2px 10px rgba(0, 100, 55, 0.35);
}

.btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  box-shadow:
    0 0 0 3px rgba(0, 168, 84, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 4px 16px rgba(0, 122, 66, 0.38);
}

@media (prefers-reduced-motion: reduce) {
  .btn::before,
  .btn-header::before {
    transition: none;
    transform: none;
    opacity: 0.35;
    background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.15) 50%, transparent 100%);
  }

  .btn:hover::before,
  .btn-header:hover::before {
    transform: none;
  }

  @media (max-width: 768px) {
    .site-nav {
      transition: none;
    }

    .nav-burger-bar {
      transition: none;
    }
  }
}

.disclaimer {
  margin-top: 14px;
  font-size: 0.6875rem;
  color: var(--text-light);
  line-height: 1.45;
}

.section-title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.section-lead {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

section {
  margin-bottom: 48px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  position: relative;
  background: var(--block-surface);
  border: 1px solid var(--block-edge);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  box-shadow:
    var(--shadow-card),
    0 0 0 1px rgba(255, 255, 255, 0.65) inset;
}

.step-num {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-family: "Montserrat", sans-serif;
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1;
  color: var(--bg-white);
  background: var(--dz-green);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

@media (prefers-reduced-motion: no-preference) {
  html.reveal-steps-stagger #shagi .steps:not(.steps--inview) .step {
    opacity: 0;
    transform: translateY(20px);
  }

  html.reveal-steps-stagger #shagi .steps--inview .step {
    opacity: 1;
    transform: translateY(0);
    transition:
      opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  }

  html.reveal-steps-stagger #shagi .steps--inview .step:nth-child(1) {
    transition-delay: 0.1s;
  }

  html.reveal-steps-stagger #shagi .steps--inview .step:nth-child(2) {
    transition-delay: 0.32s;
  }

  html.reveal-steps-stagger #shagi .steps--inview .step:nth-child(3) {
    transition-delay: 0.54s;
  }
}

.step-img-wrap {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--dz-green-soft);
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  box-sizing: border-box;
}

.step-img-wrap img {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  display: block;
}

.step-img-wrap img[src$=".svg"] {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  align-self: stretch;
  margin-inline: 0;
  object-fit: cover;
  object-position: center;
  opacity: 1;
}

.step-body {
  padding: 22px;
}

.step-time {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--dz-green);
  background: var(--dz-green-soft);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.step h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

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

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 600px) {
  .features {
    grid-template-columns: 1fr;
  }
}

.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  background: linear-gradient(155deg, #ffffff 0%, #f6faf7 100%);
  border-radius: var(--radius);
  border: 1px solid var(--block-edge);
  box-shadow: var(--shadow-sm), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.feature-img-wrap {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--dz-green-soft);
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  box-sizing: border-box;
}

.feature-img-wrap img {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  display: block;
}

.feature-img-wrap img[src$=".svg"] {
  flex: 0 1 auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  align-self: center;
  margin-inline: auto;
  object-fit: contain;
  object-position: center;
  opacity: 1;
}

.feature strong {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9375rem;
  margin-bottom: 4px;
  color: var(--text);
}

.feature span {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat {
  background: var(--block-surface);
  border: 1px solid var(--block-edge);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.stat-img-wrap {
  height: 100px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(135deg, var(--dz-green-soft) 0%, #dfece4 100%);
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  box-sizing: border-box;
}

.stat-img-wrap img {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  display: block;
  opacity: 0.92;
}

.stat-img-wrap img[src$=".svg"] {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  align-self: stretch;
  margin-inline: 0;
  object-fit: cover;
  object-position: center;
  opacity: 1;
}

.stat-inner {
  padding: 16px 20px 20px;
}

.stat-val {
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dz-green);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 6px;
}

footer {
  background: #2d3330;
  color: #c5ccc8;
  padding: 32px 20px;
  margin-top: 24px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  font-size: 0.875rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 22px;
}

footer .logo--footer {
  align-items: stretch;
  color: #c5ccc8;
}

footer .logo--footer .logo-line--tag {
  color: #b8c4bf;
}

footer .logo--footer .logo-line--brand {
  background: var(--logo-brand-gradient-footer);
  -webkit-background-clip: text;
  background-clip: text;
  color: #5ee0a0;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.08em;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  footer .logo--footer .logo-line--brand {
    background: none;
    -webkit-text-fill-color: unset;
    color: #5ee0a0;
  }
}

.footer-copyright {
  margin: 18px 0 0;
  font-size: 0.8125rem;
  color: #9aa6a1;
  letter-spacing: 0.02em;
}

.footer-credit {
  margin: 12px 0 0;
  margin-bottom: 0;
  font-size: 0.75rem;
}

.footer-credit-link {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-credit-prefix {
  color: #fff;
}

.footer-credit-studio {
  color: #fbba00;
}

.footer-credit-link:hover .footer-credit-studio {
  color: #ffc940;
}

footer p {
  margin-bottom: 10px;
}

.footer-inner strong {
  color: #fff;
}

.footer-inner a {
  color: #8fd4b0;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-inner a:hover {
  color: #b8e8cc;
}

.footer-credit .footer-credit-link:hover {
  color: inherit;
}

.footer-credit .footer-credit-link:hover .footer-credit-prefix {
  color: #fff;
}

.conditions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

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

.conditions-card {
  background: var(--block-surface);
  border: 1px solid var(--block-edge);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow:
    var(--shadow-card),
    0 0 0 1px rgba(255, 255, 255, 0.75) inset;
}

.conditions-card h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.conditions-dl {
  display: grid;
  gap: 12px;
}

.conditions-dl div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.conditions-dl div:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.conditions-dl dt {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.conditions-dl dd {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.doc-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.45;
}

.doc-list li:last-child {
  margin-bottom: 0;
}

.doc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 18px;
  height: 18px;
  background: var(--dz-green);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.conditions-note {
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: linear-gradient(180deg, #ffffff 0%, #f9fcfa 100%);
  border: 1px solid var(--block-edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm), 0 1px 0 rgba(255, 255, 255, 0.85) inset;
  overflow: hidden;
}

.faq-item summary {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  padding: 16px 44px 16px 18px;
  cursor: pointer;
  list-style: none;
  position: relative;
  user-select: none;
}

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

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--dz-green);
  border-bottom: 2px solid var(--dz-green);
  transform: translateY(-60%) rotate(45deg);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: translateY(-20%) rotate(-135deg);
}

.faq-item summary:hover {
  background: var(--dz-green-soft);
}

.faq-answer {
  margin: 0;
  padding: 12px 18px 18px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
  border-top: 1px solid var(--border);
}

.contacts-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

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

.contacts-layout__info .contacts-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contacts-layout__embed {
  min-width: 0;
}

.contacts-card--map {
  padding: 0;
  overflow: hidden;
}

.contacts-embed-html {
  min-height: 300px;
  width: 100%;
  line-height: 0;
}

.contacts-embed-html iframe {
  max-width: 100%;
}

.contacts-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.contacts-row--last {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.contacts-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  line-height: 0;
  color: var(--dz-green-dark);
}

.contacts-icon__svg {
  display: block;
  width: 18px;
  height: 18px;
  max-width: 100%;
  max-height: 100%;
  flex-shrink: 0;
}

.contacts-row__content {
  flex: 1;
  min-width: 0;
}

.contacts-label {
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--dz-green-dark);
  margin-bottom: 8px;
}

.contacts-text {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

a.contacts-text {
  text-decoration: none;
  display: inline-block;
  max-width: 100%;
}

a.contacts-text:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

a.contacts-text:focus-visible {
  outline: 2px solid var(--dz-green);
  outline-offset: 3px;
  border-radius: 4px;
}

.contacts-hint {
  margin: 8px 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

#lp-editor-bar {
  position: fixed;
  z-index: 9999;
  right: 16px;
  bottom: 16px;
  max-width: min(480px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.lp-edit-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex-shrink: 0;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--dz-green-border);
  background: var(--dz-green-soft);
  color: var(--dz-green-dark);
  font-family: "Montserrat", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
  transition: background 0.15s, border-color 0.15s;
}

.lp-edit-toggle:hover {
  background: #dff0e6;
}

.lp-edit-toggle[aria-pressed="true"] {
  background: var(--dz-green);
  color: #fff;
  border-color: var(--dz-green-dark);
}

.lp-editor-tools {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
  margin-bottom: 10px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

.lp-editor-tools-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.lp-seo-fields {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.lp-field-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  width: 100%;
}

.lp-field-input {
  width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  font-family: inherit;
  resize: vertical;
}

.lp-dyn-fields {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.lp-html-panel-fields {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.lp-image-panel-fields {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.lp-image-panel-title {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.lp-image-panel-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: start;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: rgba(232, 245, 238, 0.45);
  border: 1px solid var(--block-edge);
}

.lp-image-panel-preview-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
  min-width: 0;
}

.lp-image-panel-alt-label {
  margin: 0;
}

.lp-image-panel-alt-input {
  font-size: 0.75rem;
  padding: 5px 7px;
}

.lp-image-panel-row-label {
  grid-column: 1 / -1;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.35;
}

.lp-panel-img-preview {
  width: 100%;
  max-width: 120px;
  height: 56px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
}

.lp-image-panel-file {
  font-size: 0.6875rem;
  max-width: 100%;
  min-width: 0;
}

textarea.lp-html-code {
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 0.75rem;
  line-height: 1.45;
  min-height: 140px;
  white-space: pre-wrap;
  word-break: break-all;
}

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

body.lp-edit-mode .lp-editor-aux {
  position: static;
  width: auto;
  height: auto;
  clip: auto;
  overflow: visible;
  margin: 12px 20px 0;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding: 12px 16px;
  border: 1px dashed var(--dz-green-border);
  border-radius: var(--radius);
  background: rgba(232, 245, 238, 0.35);
}

body.lp-edit-mode .lp-editor-aux .lp-sr-only {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
  display: block;
  margin-bottom: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  outline: 2px dashed rgba(0, 168, 84, 0.35);
  outline-offset: 1px;
  font-size: 0.8125rem;
}

.lp-tool-btn {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fafbfa;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

a.lp-tool-btn.lp-tool-link {
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.lp-tool-btn:hover {
  background: #f0f2f1;
}

.lp-tool-btn.lp-tool-danger {
  border-color: #e8b4b4;
  color: #8a2c2c;
  background: #fff5f5;
}

/* Статус автосохранения в админ-панели (#lp-save-hint) */
.lp-tool-btn.lp-save-hint--ok {
  border-color: rgba(0, 168, 84, 0.45);
  background: rgba(232, 245, 238, 0.65);
  color: #0d5c2f;
}

.lp-tool-btn.lp-save-hint--busy {
  border-color: rgba(100, 120, 110, 0.35);
  background: #f4f6f5;
  color: var(--text-muted);
}

.lp-tool-btn.lp-save-hint--err {
  border-color: #e8b4b4;
  color: #8a2c2c;
  background: #fff5f5;
}

.lp-tool-label {
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px dashed var(--border);
}

.lp-tool-label input {
  display: none;
}

.lp-editor-hint {
  margin: 0;
  flex-shrink: 0;
  font-size: 0.6875rem;
  line-height: 1.4;
  color: var(--text-light);
}

body.lp-edit-mode [data-lp-text],
body.lp-edit-mode [data-lp-html] {
  outline: 2px dashed rgba(0, 168, 84, 0.45);
  outline-offset: 2px;
  border-radius: 4px;
  min-height: 1.2em;
}

body.lp-edit-mode [data-lp-img].lp-img-editable {
  outline: 3px solid rgba(0, 168, 84, 0.55);
  outline-offset: 2px;
  cursor: pointer;
}

body.lp-edit-mode .mobile-call-fab {
  pointer-events: none;
}

.lp-img-edit-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  vertical-align: middle;
}

.lp-img-delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(180, 35, 24, 0.35);
  background: rgba(255, 255, 255, 0.95);
  color: #b42318;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.lp-img-delete-btn:hover {
  background: #fff5f5;
}

.lp-img-delete-btn:focus-visible {
  outline: 2px solid var(--dz-green-dark, #008a4a);
  outline-offset: 2px;
}

/* Пользовательское соглашение — отдельная страница */
.legal-page {
  padding-top: 8px;
  padding-bottom: 24px;
}

.legal-article {
  width: 100%;
  max-width: none;
  margin: 0;
  background: var(--bg-white);
  border: 1px solid var(--block-edge);
  border-radius: var(--radius-lg);
  padding: 28px 28px 32px;
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(255, 255, 255, 0.75) inset;
}

.legal-h1 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.legal-updated {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.legal-section {
  margin-bottom: 24px;
}

.legal-section h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.legal-section p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  margin: 0 0 12px;
  padding-left: 22px;
  color: var(--text-muted);
}

.legal-section li {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 6px;
}

.legal-section li:last-child {
  margin-bottom: 0;
}

.legal-back {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
}

.legal-back a {
  color: var(--dz-green-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-back a:hover {
  color: var(--dz-green);
}

/* Всплывающее уведомление о соглашении (главная) */
.consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 28, 24, 0.45);
  backdrop-filter: blur(4px);
}

.consent-overlay[hidden] {
  display: none;
}

.consent-modal {
  width: 100%;
  max-width: 440px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 24px 24px 22px;
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(255, 255, 255, 0.85) inset;
  border: 1px solid var(--dz-green-border);
}

.consent-title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.consent-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
}

.consent-text a {
  color: var(--dz-green-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-text a:hover {
  color: var(--dz-green);
}

.consent-actions {
  display: flex;
  justify-content: stretch;
}

.consent-actions .btn {
  width: 100%;
}

body.consent-open {
  overflow: hidden;
}

/* Модальное окно телефона после расчёта */
.phone-modal-overlay {
  z-index: 910;
}

.phone-modal {
  position: relative;
}

.phone-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--dz-green-border);
  background: var(--bg-white);
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.phone-modal-close:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.phone-modal-close:focus-visible {
  outline: 2px solid var(--dz-green);
  outline-offset: 2px;
}

.phone-modal-close-icon {
  position: relative;
  width: 14px;
  height: 14px;
  display: block;
}

.phone-modal-close-icon::before,
.phone-modal-close-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}

.phone-modal-close-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.phone-modal-close-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.phone-modal .consent-title {
  font-size: 1.0625rem;
  line-height: 1.35;
  padding-right: 44px;
}

.phone-modal form label {
  margin-top: 0;
}

.phone-modal-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
}

.phone-modal-consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--dz-green);
  cursor: pointer;
}

.phone-modal-consent-label {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 400;
}

.phone-modal-consent-label a {
  color: var(--dz-green-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.phone-modal-consent-label a:hover {
  text-decoration: none;
}

.phone-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.phone-modal-error {
  color: #b71c1c;
  font-size: 0.875rem;
  margin: -6px 0 10px;
  line-height: 1.4;
}

.phone-modal-success {
  text-align: center;
}

.phone-modal-success-text {
  font-size: 0.9375rem;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 18px;
}

body.phone-modal-open {
  overflow: hidden;
}

/* Блок отзывов — слайдер (в окне видно ~2,5 карточки на широкой сетке) */
.reviews-slider {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.reviews-slider__viewport {
  overflow: hidden;
  container-type: inline-size;
  container-name: reviews;
  padding: 4px 2px 14px;
  border: none;
  background: transparent;
  box-shadow: none;
}

.reviews-slider__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--reviews-slider-gap, 12px);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.reviews-slider--no-motion .reviews-slider__track {
  transition: none;
}

.reviews-slide {
  flex: 0 0 calc((100cqw - 2 * var(--reviews-slider-gap, 12px)) / 2.5);
  min-width: calc((100cqw - 2 * var(--reviews-slider-gap, 12px)) / 2.5);
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

@media (max-width: 639px) {
  .reviews-slide {
    flex: 0 0 100cqw;
    min-width: 100cqw;
  }
}

.review-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  max-width: none;
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: var(--block-surface);
  border: 1px solid var(--block-edge);
  border-radius: var(--radius-lg);
  padding: 22px 20px 24px;
  box-shadow:
    var(--shadow-card),
    0 0 0 1px rgba(255, 255, 255, 0.75) inset;
}

@media (min-width: 640px) {
  .review-card {
    padding: 24px 22px 26px;
  }
}

.review-card__stars {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 14px;
  max-width: 100%;
}

.review-star {
  display: block;
  flex-shrink: 0;
  width: min(22px, calc((100% - 16px) / 5));
  height: auto;
  aspect-ratio: 1;
  color: var(--trust-star-full);
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.06));
}

.review-card__author {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text);
  margin-bottom: 4px;
}

.review-card__meta {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-bottom: 14px;
}

.review-card__text {
  margin: 0;
  padding: 0;
  border: none;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  font-style: normal;
}

.reviews-slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.reviews-slider__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 6px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--dz-green);
  cursor: pointer;
  transition: color 0.15s, transform 0.15s, opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.reviews-slider__btn:hover:not(:disabled) {
  color: var(--dz-green-dark);
  transform: scale(1.06);
}

.reviews-slider__btn:focus-visible {
  outline: 2px solid var(--dz-green);
  outline-offset: 2px;
}

.reviews-slider__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

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

.reviews-slider__icon {
  display: block;
  flex-shrink: 0;
  width: min(32px, 100%);
  height: auto;
  max-height: 32px;
  aspect-ratio: 1;
}

.reviews-slider__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.reviews-slider__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(28, 28, 30, 0.2);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.reviews-slider__dot:hover {
  background: rgba(28, 28, 30, 0.38);
}

.reviews-slider__dot.is-active {
  background: var(--text-muted);
  transform: scale(1.15);
}

.reviews-slider__dot:focus-visible {
  outline: 2px solid var(--dz-green);
  outline-offset: 2px;
}

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

.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 95;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background: var(--btn-gradient);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 4px 16px rgba(0, 122, 66, 0.35),
    0 8px 20px rgba(0, 80, 45, 0.12);
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease,
    opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.scroll-top:hover {
  background: var(--btn-gradient-hover);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.24) inset,
    0 6px 20px rgba(0, 140, 80, 0.4),
    0 12px 28px rgba(0, 80, 45, 0.16);
}

.scroll-top:active {
  transform: translateY(1px);
}

.scroll-top:focus-visible {
  outline: 2px solid var(--dz-green);
  outline-offset: 3px;
}

.scroll-top__icon {
  display: block;
  width: min(24px, 75%);
  height: auto;
  max-height: 24px;
  aspect-ratio: 1;
  margin-top: -2px;
}

/* Кнопка «Позвонить» — только мобильная, над «Наверх», тот же стиль */
.scroll-top.mobile-call-fab {
  display: none;
  text-decoration: none;
  color: #fff;
}

@media (max-width: 768px) {
  #scroll-top {
    display: none !important;
  }

  .scroll-top.mobile-call-fab {
    display: inline-flex;
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    right: 16px;
  }
}

@media (max-width: 768px) {
  .hero-badge,
  .trust-strip {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reviews-slider__track {
    transition: none;
  }

  .reviews-slider__dot {
    transition: none;
  }

  .consent-overlay {
    backdrop-filter: none;
  }

  .scroll-top {
    transition: none;
  }

  .scroll-top.mobile-call-fab {
    transition: none;
  }
}
