:root {
  --font-main: "Cruinn", "CruinnRegular", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: "DaMiOne", "Damion", cursive;
}

@font-face {
  font-family: "Cruinn";
  src: url("/assets/Cruinn-Regular.ttf?v=20260623-5") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "DaMiOne";
  src: url("/assets/DaMiOne-Regular.ttf?v=20260623-5") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

:root {
  --ink: #f5f7fb;
  --text: #111827;
  --muted: #8b98ad;
  --line: rgba(255, 255, 255, 0.12);
  --blue: #2f6df6;
  --blue-dark: #1147bd;
  --red: #ed313b;
  --dark: #07090d;
  --dark-2: #0d1119;
  --surface: rgba(255, 255, 255, 0.94);
  --glass: rgba(255, 255, 255, 0.055);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 16px/1.55 var(--font-main);
  background:
    radial-gradient(circle at 18% 0%, rgba(237, 49, 59, .24), transparent 32%),
    radial-gradient(circle at 78% 8%, rgba(47, 109, 246, .20), transparent 36%),
    linear-gradient(180deg, #080b10 0%, #101620 100%);
}

a { color: inherit; }

.intro-logo-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: hidden;
  background-color: #020202;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, .10), transparent 0 24%),
    radial-gradient(circle at 50% 68%, rgba(255, 255, 255, .045), transparent 0 34%),
    linear-gradient(180deg, #020202 0%, #070707 100%);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 1.05s cubic-bezier(.22, .74, .18, 1), visibility 1.05s ease;
}

.intro-logo-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: .16;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 72%);
  animation: introGridBreathe 3.2s ease-in-out both;
}

.intro-logo-screen::after {
  content: "";
  position: absolute;
  inset: -18%;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, .14), transparent 0 18%),
    conic-gradient(from 210deg at 50% 50%, transparent 0deg, rgba(255, 255, 255, .10) 24deg, transparent 54deg);
  opacity: 0;
  transform: scale(.94) rotate(-4deg);
  animation: introHalo 2.65s cubic-bezier(.2, .72, .2, 1) both;
  pointer-events: none;
}

.intro-logo-composition {
  --intro-logo-width: clamp(300px, 58vw, 860px);
  position: relative;
  display: grid;
  justify-items: center;
  gap: clamp(14px, 1.7vw, 22px);
  width: var(--intro-logo-width);
  opacity: 0;
  transform: translate3d(0, 10px, 0) scale(.985);
  will-change: opacity, transform;
  animation: introCompositionIn 1.45s cubic-bezier(.18, .82, .24, 1) .12s forwards;
}

.intro-logo-composition::before {
  content: "";
  position: absolute;
  top: -10%;
  bottom: 28%;
  left: -34%;
  width: 24%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .03) 18%, rgba(255, 255, 255, .42) 50%, rgba(255, 255, 255, .04) 80%, transparent 100%);
  filter: blur(12px);
  opacity: 0;
  transform: skewX(-18deg);
  animation: introLogoGlint 1.85s cubic-bezier(.22, .74, .2, 1) .72s both;
  mix-blend-mode: screen;
  pointer-events: none;
}

.intro-logo-mark {
  width: var(--intro-logo-width);
  height: auto;
  opacity: 0;
  transform: translateZ(0);
  filter: drop-shadow(0 0 30px rgba(255, 255, 255, .18));
  backface-visibility: hidden;
  animation: introMarkIn .95s ease-out .2s forwards;
}

.intro-logo-caption {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(88vw, 720px);
  color: rgba(244, 244, 241, .92);
  font-family: var(--font-text);
  font-size: clamp(28px, 2.7vw, 44px);
  line-height: .95;
  letter-spacing: .01em;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  text-shadow: 0 0 28px rgba(255, 255, 255, .16);
  white-space: nowrap;
  animation: introCaptionIn .9s ease-out .58s forwards;
}

.intro-logo-caption::before,
.intro-logo-caption::after {
  content: none;
}

.intro-logo-caption-text {
  display: inline-block;
  transform: none;
  transform-origin: center;
}

.intro-logo-screen.is-hiding {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-skip .intro-logo-screen,
.intro-logo-screen.is-removed {
  display: none;
}

@keyframes introCompositionIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 10px, 0) scale(.985);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes introMarkIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes introCaptionIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }
  100% {
    opacity: .94;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes introLogoGlint {
  0% {
    opacity: 0;
    left: -34%;
  }
  22% {
    opacity: .62;
  }
  100% {
    opacity: 0;
    left: 108%;
  }
}

@keyframes introHalo {
  0% {
    opacity: 0;
    transform: scale(.94) rotate(-4deg);
  }
  42% {
    opacity: .34;
  }
  100% {
    opacity: 0;
    transform: scale(1.08) rotate(0deg);
  }
}

@keyframes introGridBreathe {
  0% {
    opacity: .08;
  }
  55% {
    opacity: .18;
  }
  100% {
    opacity: .12;
  }
}

@media (max-width: 760px) {
  .intro-logo-composition {
    --intro-logo-width: min(84vw, 460px);
    gap: 12px;
  }

  .intro-logo-mark {
    width: var(--intro-logo-width);
  }

  .intro-logo-caption {
    width: min(90vw, 420px);
    font-size: clamp(18px, 5.1vw, 26px);
    line-height: .98;
    letter-spacing: 0;
    white-space: normal;
  }

  .intro-logo-caption::before,
  .intro-logo-caption::after {
    flex-basis: 28px;
    max-width: 42px;
  }

  .intro-logo-caption-text {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-logo-screen {
    display: none;
  }
}

.site-video-background {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, .055), transparent 0 24%),
    linear-gradient(180deg, #050505 0%, #08090b 62%, #030303 100%);
}

.site-bg-video,
.site-bg-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@media (prefers-reduced-motion: reduce), (max-width: 800px) {
  .site-bg-video {
    display: none;
  }
}

.site-bg-video,
.site-bg-fallback {
  object-fit: cover;
  object-position: center;
  opacity: .42;
  filter: saturate(.9) contrast(1.08) brightness(.72);
}

.site-bg-fallback {
  display: none;
  opacity: .22;
}

.site-bg-overlay {
  background:
    radial-gradient(circle at 18% 8%, rgba(237, 49, 59, .22), transparent 30%),
    radial-gradient(circle at 76% 14%, rgba(20, 87, 217, .20), transparent 34%),
    linear-gradient(180deg, rgba(4, 6, 10, .54), rgba(4, 6, 10, .90) 64%, rgba(4, 6, 10, .96));
}

.header {
  position: relative;
  top: auto;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "logo nav"
    "logo actions";
  align-items: stretch;
  gap: 3px clamp(14px, 1.7vw, 26px);
  min-height: 78px;
  padding: 12px max(18px, calc((100% - 1460px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 13, .76);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .24);
}

.header nav {
  grid-area: nav;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  align-self: end;
  gap: clamp(12px, 1.8vw, 28px);
  white-space: nowrap;
  min-width: 0;
}

.header nav a {
  position: relative;
  color: rgba(255, 255, 255, .88);
  text-decoration: none;
  font-size: clamp(14px, 1vw, 18px);
  font-weight: 700;
  letter-spacing: .01em;
}

.header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--red);
  transition: transform .18s ease;
}

.header nav a:hover::after { transform: scaleX(1); }

.logo {
  grid-area: logo;
  flex: 0 0 auto;
  text-decoration: none;
}

.logo-image-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(218px, 20vw, 300px);
  min-height: 50px;
  padding: 7px 18px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015)),
    rgba(0, 0, 0, .68);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 18px 42px rgba(0, 0, 0, .28);
}

.logo-image-link img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 40px;
  height: auto;
}

.header-actions {
  grid-area: actions;
  justify-self: end;
  align-self: start;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  min-height: 30px;
  padding: 5px 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, .12), transparent 56%),
    linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025)),
    rgba(0, 0, 0, .62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 24px rgba(0, 0, 0, .24);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.header-city {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.header-city select {
  width: auto;
  min-width: 104px;
  max-width: min(28vw, 220px);
  field-sizing: content;
  min-height: 30px;
  padding: 5px 32px 5px 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(0, 0, 0, .72);
  color: #fff;
  font-weight: 760;
  white-space: nowrap;
}

.header-city select option {
  background: #050608;
  color: #fff;
}

@media (min-width: 981px) {
  body[data-page-type="calculator"] .header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "logo nav actions";
    align-items: center;
    gap: clamp(14px, 1.2vw, 22px);
    min-height: 76px;
    padding-block: 10px;
  }

  body[data-page-type="calculator"] .header nav {
    justify-content: center;
    align-self: center;
    gap: clamp(8px, .8vw, 14px);
  }

  body[data-page-type="calculator"] .header nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 9px clamp(13px, 1.05vw, 18px);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .028)),
      rgba(0, 0, 0, .42);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 10px 26px rgba(0, 0, 0, .18);
    font-size: clamp(16px, 1.05vw, 19px);
    line-height: 1.05;
  }

  body[data-page-type="calculator"] .header nav a::after {
    display: none;
  }

  body[data-page-type="calculator"] .header nav a:hover,
  body[data-page-type="calculator"] .header nav a:focus-visible {
    border-color: rgba(237, 49, 59, .32);
    background:
      radial-gradient(circle at 50% 0%, rgba(237, 49, 59, .18), transparent 62%),
      linear-gradient(180deg, rgba(255, 255, 255, .095), rgba(255, 255, 255, .035)),
      rgba(0, 0, 0, .48);
  }

  body[data-page-type="calculator"] .header-actions {
    align-self: center;
    gap: 10px;
  }

  body[data-page-type="calculator"] .phone {
    min-width: 164px;
    min-height: 44px;
    padding: 10px 18px;
    border-color: rgba(255, 255, 255, .22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 12px 30px rgba(0, 0, 0, .24);
    font-size: 15px;
  }

  body[data-page-type="calculator"] .header-city select {
    min-width: 124px;
    min-height: 44px;
    padding-block: 9px;
    font-size: 15px;
  }
}

@media (min-width: 981px) and (max-width: 1120px) {
  body[data-page-type="calculator"] .header {
    gap: 8px;
    padding-inline: 14px;
  }

  body[data-page-type="calculator"] .logo-image-link {
    width: 188px;
    padding-inline: 12px;
  }

  body[data-page-type="calculator"] .header nav {
    gap: 6px;
  }

  body[data-page-type="calculator"] .header nav a {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 15px;
  }

  body[data-page-type="calculator"] .phone {
    min-width: 146px;
    min-height: 40px;
    padding: 8px 12px;
  }

  body[data-page-type="calculator"] .header-city select {
    min-width: 108px;
    min-height: 40px;
    padding-inline: 12px 28px;
  }
}

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

.city-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 68px;
  padding: 12px max(24px, calc((100% - 1180px) / 2));
  color: rgba(255, 255, 255, .78);
  background: rgba(7, 9, 13, .66);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.city-bar label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-weight: 800;
  white-space: nowrap;
}

.city-bar select {
  width: 238px;
  min-width: 238px;
  min-height: 44px;
  padding: 10px 38px 10px 16px;
  font-weight: 760;
}

.city-bar span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wrap {
  width: min(1180px, calc(100% - 36px));
  margin: auto;
  padding: 36px 0 86px;
}

.breadcrumbs {
  display: flex;
  gap: .55rem;
  color: rgba(255, 255, 255, .68);
  font-size: 14px;
  margin-bottom: 28px;
}

.breadcrumbs a { text-decoration: none; }

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6vw, 82px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 34px;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .035)),
    radial-gradient(circle at 88% 12%, rgba(237, 49, 59, .26), transparent 36%),
    rgba(12, 17, 27, .72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  margin-bottom: 34px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -12% -42% 36%;
  height: 260px;
  border: 22px solid rgba(255, 255, 255, .055);
  border-left: 0;
  border-bottom: 0;
  border-radius: 100% 0 0 0;
  transform: rotate(-3deg);
  pointer-events: none;
}

.hero h1 {
  position: relative;
  max-width: 980px;
  margin: .18em 0;
  color: #fff;
  font-family: var(--font-main);
  font-size: clamp(38px, 5.2vw, 72px);
  line-height: .98;
  letter-spacing: -0.055em;
}

.hero p {
  position: relative;
  max-width: 860px;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(18px, 1.5vw, 21px);
}

.eyebrow {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 900;
  font-size: 13px !important;
}

.hero .eyebrow::after {
  content: " — АвтоМост";
  font-family: var(--font-script);
  text-transform: none;
  letter-spacing: .02em;
  font-size: 1.25em;
  font-weight: 400;
  opacity: .78;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), #ff5b64);
  color: white;
  padding: 14px 24px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(237, 49, 59, .24);
  white-space: nowrap;
}

.card {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.045)),
    rgba(10, 14, 22, .72);
  color: rgba(255, 255, 255, .90);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  margin: 30px 0;
}

.calculator {
  margin-top: 0;
  border: 1px solid rgba(255, 255, 255, .15);
  background:
    radial-gradient(circle at 88% 0%, rgba(237, 49, 59, .16), transparent 36%),
    linear-gradient(145deg, rgba(255,255,255,.125), rgba(255,255,255,.045)),
    rgba(9, 13, 21, .78);
}

.calculator h1,
.calculator h2,
.lead h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.calculator > p {
  max-width: 860px;
  margin-top: 0;
  color: rgba(255, 255, 255, .72);
}

.form-grid,
.lead form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px 22px;
  align-items: start;
}

.form-grid > div,
.lead label {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
  font-weight: 780;
  color: rgba(255, 255, 255, .88);
}

.lead .consent-note {
  grid-column: 1 / -1;
  margin: -6px 0 0;
  font-size: 14px;
  font-weight: 520;
  line-height: 1.45;
  color: rgba(255, 255, 255, .76);
}

.lead .consent-note a {
  color: #fff;
  text-decoration-color: rgba(237, 49, 59, .75);
  text-underline-offset: 3px;
}

.form-grid label {
  white-space: normal;
  line-height: 1.2;
}

input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  font: 16px/1.35 var(--font-main);
  color: var(--text);
  background: rgba(255, 255, 255, .94);
}

input:focus,
select:focus,
textarea:focus {
  outline: 4px solid rgba(47, 109, 246, .14);
  border-color: var(--blue);
}

textarea { min-height: 118px; }

.helptext {
  color: rgba(255, 255, 255, .62);
  font-size: 13px;
  font-weight: 500;
}

.calculator .button,
.lead .button {
  margin-top: 22px;
}

.price-currency-field {
  grid-column: span 1;
}

.calculator-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px 16px;
}

.calculator-grid .calc-country { grid-column: span 3; }
.calculator-grid .calc-brand { grid-column: span 4; }
.calculator-grid .calc-model { grid-column: span 5; }
.calculator-grid .calc-variant { grid-column: 1 / -1; }
.calculator-grid .calc-year { grid-column: span 2; }
.calculator-grid .calc-engine { grid-column: span 3; }
.calculator-grid .calc-volume { grid-column: span 3; }
.calculator-grid .calc-power { grid-column: span 2; }
.calculator-grid .calc-import { grid-column: span 2; }
.calculator-grid .calc-price { grid-column: span 5; }
.calculator-grid .calc-city { grid-column: span 4; }

.price-currency-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  gap: 10px;
}

.price-currency-control select {
  padding-inline: 12px;
}

.catalog-variant-field[hidden],
[data-engine-volume-field][hidden] {
  display: none !important;
}

.calculator-grid .field-note {
  color: rgba(255, 255, 255, .62);
  font-size: 13px;
}

.calculator-notice {
  padding: 12px 14px;
  border: 1px solid rgba(237, 49, 59, .22);
  border-left: 3px solid var(--red);
  border-radius: 16px;
  background: rgba(237, 49, 59, .08);
  color: rgba(255, 255, 255, .82);
}

.result {
  margin-top: 24px;
  padding: 24px;
  color: #0f2819;
  background: #effaf4;
  border: 1px solid #c8efd9;
  border-radius: 20px;
}

.result strong { font-size: clamp(22px, 3vw, 30px); }

.prose {
  max-width: 900px;
  color: rgba(255, 255, 255, .86);
  font-size: 18px;
}

.prose h2,
section h2 {
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.14;
  margin-top: 52px;
  letter-spacing: -0.03em;
  color: #fff;
}

.legal-document {
  max-width: 980px;
}

.legal-document h2 {
  margin-top: 34px;
  font-size: clamp(23px, 2.4vw, 31px);
}

.legal-document ul {
  padding-left: 1.2em;
}

.legal-document li + li {
  margin-top: .42em;
}

.legal-document a {
  color: #fff;
  text-decoration-color: rgba(237, 49, 59, .72);
  text-underline-offset: 3px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.features .card { margin: 0; }

.price {
  font-size: 28px !important;
  font-weight: 900;
}

.footer {
  color: #e5e7eb;
  background:
    radial-gradient(circle at 8% 0%, rgba(237, 49, 59, .13), transparent 30%),
    linear-gradient(180deg, rgba(9, 12, 18, .96), #050608);
  border-top: 1px solid rgba(255,255,255,.12);
}

.footer-modern {
  padding: 32px max(18px, calc((100% - 1460px) / 2)) 26px;
}

.footer-modern-grid {
  display: grid;
  grid-template-columns: minmax(240px, .9fr) minmax(220px, .72fr) minmax(260px, .86fr) minmax(360px, 1.25fr);
  gap: 18px;
  align-items: stretch;
}

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

.footer-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 24px;
  background: rgba(255, 255, 255, .045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.footer-panel h2 {
  margin: 0 0 14px;
  color: #fff;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.footer-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}

.footer-section-head h2 {
  margin: 0;
}

.footer-heading-meta {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, .58);
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
  white-space: nowrap;
}

.footer-panel p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .68);
}

.footer-logo {
  width: min(100%, 250px);
}

.footer-requisites-logo {
  width: min(100%, 230px);
  margin-bottom: 16px;
}

.footer-clean-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, .76);
}

.footer-clean-list a,
.footer-modern-links a,
.footer-panel a {
  color: #fff;
  text-decoration: none;
}

.footer-messenger-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.messenger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  color: #fff;
  font-size: 14px;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.messenger-button:hover,
.messenger-button:focus-visible {
  border-color: rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .105);
  transform: translateY(-1px);
}

.messenger-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: rgba(255, 255, 255, .92);
  fill: currentColor;
  transition: color .18s ease, filter .18s ease;
}

.messenger-icon-max {
  width: 24px;
  flex-basis: 24px;
}

.messenger-button:hover .messenger-icon-telegram { color: #2aabee; }
.messenger-button:hover .messenger-icon-max { color: #00bfff; }
.messenger-button:hover .messenger-icon-whatsapp { color: #25d366; }
.messenger-button:hover .messenger-icon-vk { color: #4c75a3; }

.messenger-button:hover .messenger-icon {
  filter: drop-shadow(0 0 8px currentColor);
}

.footer-requisites {
  display: grid;
  gap: 10px;
  margin: 0;
}

.footer-requisites div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
}

.footer-requisites dt {
  color: rgba(255, 255, 255, .48);
  font-size: 13px;
}

.footer-requisites dd {
  min-width: 0;
  margin: 0;
  color: rgba(255, 255, 255, .86);
  overflow-wrap: anywhere;
}

.footer-rates {
  display: grid;
  gap: 10px;
}

.footer-rate-title-pill {
  margin: 0 0 14px !important;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  text-align: left;
}

.footer-rate-source {
  padding: 14px;
  border-radius: 18px;
  background: rgba(0, 0, 0, .22);
  border: 1px solid rgba(255, 255, 255, .08);
}

.footer-rate-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.footer-rate-head strong {
  color: #fff;
}

.footer-rate-head span,
.footer-rate-empty {
  color: rgba(255, 255, 255, .55);
  font-size: 12px;
}

.footer-rate-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.footer-rate-list span {
  display: inline-flex;
  gap: 5px;
  align-items: baseline;
  padding: 6px 9px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .075);
  white-space: nowrap;
  font-size: 13px;
}

.footer-rate-list b {
  color: #fff;
}

.footer-rate-empty {
  margin: 0;
  line-height: 1.45;
}

.footer-requisites-panel {
  text-align: right;
}

.footer-requisites-panel h2 {
  align-self: end;
}

.footer-requisites-panel .footer-requisites {
  justify-items: end;
}

.footer-requisites-panel .footer-requisites div {
  justify-items: end;
  text-align: right;
}

.footer-requisites-panel .footer-requisites dt,
.footer-requisites-panel .footer-requisites dd {
  text-align: right;
}

.footer-modern-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}

.footer-modern-links a {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  color: rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .035);
  font-size: 14px;
}

.fineprint {
  color: var(--muted);
  font-size: 14px;
}

.hp {
  position: absolute;
  left: -9999px;
}

details {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

summary {
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 1180px) {
  .header {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding-inline: 14px;
  }

  .header nav {
    justify-content: flex-end;
    gap: 8px;
  }

  .header nav a {
    font-size: 14px;
  }

  .logo-image-link {
    width: clamp(180px, 19vw, 240px);
    padding-inline: 12px;
  }

  .phone {
    padding-inline: 14px;
  }

  .header-city select {
    max-width: 170px;
  }

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

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

  .footer-rates-panel {
    grid-column: 1 / -1;
    order: 2;
  }

  .footer-requisites-panel {
    order: 3;
  }
}

@media (max-width: 980px) {
  .header {
    position: relative;
    align-items: center;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "logo nav"
      "logo actions";
  }

  .header nav {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
  }

  .header nav a {
    padding: 9px 13px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 999px;
    background: rgba(255,255,255,.055);
    font-size: 15px;
  }

  .header nav a::after {
    display: none;
  }

  .header-actions .phone,
  body[data-page-type="calculator"] .header-actions .phone {
    display: none !important;
  }

  .city-bar {
    justify-content: flex-start;
  }

  .hero {
    margin-top: 6px;
  }

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

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

  .calculator-grid .calc-country,
  .calculator-grid .calc-year,
  .calculator-grid .calc-power,
  .calculator-grid .calc-import {
    grid-column: span 2;
  }

  .calculator-grid .calc-brand,
  .calculator-grid .calc-model,
  .calculator-grid .calc-engine,
  .calculator-grid .calc-volume,
  .calculator-grid .calc-price,
  .calculator-grid .calc-city {
    grid-column: span 3;
  }

  .calculator-grid .calc-variant {
    grid-column: 1 / -1;
  }
}

@media (max-width: 800px) {
  body {
    background:
      radial-gradient(circle at 18% 0%, rgba(237, 49, 59, .22), transparent 34%),
      linear-gradient(180deg, #080b10 0%, #101620 100%);
  }

  .header {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo actions"
      "nav nav";
    gap: 14px;
    padding: 16px 14px;
  }

  .header nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .logo-image-link {
    width: min(86vw, 300px);
    min-height: 48px;
    padding: 7px 16px;
  }

  .logo-image-link img {
    max-height: 38px;
  }

  .phone {
    width: min(100%, 180px);
    font-size: 14px;
  }

  .header-city select {
    min-width: 126px;
    max-width: 42vw;
  }

  .city-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
  }

  .city-bar label {
    justify-content: space-between;
  }

  .city-bar select {
    width: min(100%, 260px);
    min-width: 0;
  }

  .city-bar span {
    white-space: normal;
    font-size: 13px;
    line-height: 1.35;
  }

  .wrap {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    padding: 34px 22px;
    border-radius: 26px;
  }

  .hero h1 {
    font-size: clamp(34px, 10vw, 48px);
    letter-spacing: -0.045em;
  }

  .hero p {
    font-size: 16px;
  }

  .card {
    padding: 22px 16px;
    border-radius: 22px;
  }

  .form-grid,
  .lead form {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .calculator-grid .calc-field,
  .calculator-grid .calc-variant {
    grid-column: 1 / -1;
  }

  .footer {
    display: block;
  }

  .footer-modern {
    padding-inline: 12px;
  }

  .footer-modern-grid {
    grid-template-columns: 1fr;
  }

  .footer-rates-panel {
    grid-column: auto;
    order: initial;
  }

  .footer-requisites-panel {
    order: initial;
  }

  .footer-panel {
    padding: 17px;
    border-radius: 20px;
  }

  .footer-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .footer-heading-meta {
    text-align: left;
    white-space: normal;
  }

  .footer-modern-links {
    justify-content: stretch;
  }

  .footer-modern-links a {
    flex: 1 1 160px;
    text-align: center;
  }
}

@media (max-width: 430px) {
  body {
    font-size: 15px;
  }

  .site-bg-video,
  .site-bg-fallback {
    object-position: 58% center;
    opacity: .34;
  }

  .header nav {
    grid-template-columns: 1fr 1fr;
  }

  .header nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 10px;
    text-align: center;
    font-size: 14px;
  }

  .city-bar label {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    white-space: normal;
  }

  .city-bar select {
    width: 100%;
  }

  .wrap {
    width: calc(100% - 20px);
    padding-top: 22px;
  }

  .hero {
    padding: 28px 18px;
  }

  .hero .eyebrow::after {
    display: block;
    margin-top: 3px;
  }

  input,
  select,
  textarea {
    min-height: 50px;
    border-radius: 14px;
  }

  .button {
    width: 100%;
  }

  .footer-requisites div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .footer-rate-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-rate-list span {
    justify-content: space-between;
  }
}

body[data-page-type="calculator"] .floating-call {
  position: fixed;
  right: clamp(-14px, calc((100vw - 1240px) / 2 - 88px), 7vw);
  bottom: clamp(24px, 6vh, 56px);
  z-index: 24;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, .22), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04)),
    rgba(7, 7, 7, .80);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .10),
    0 18px 42px rgba(0, 0, 0, .38),
    0 0 34px rgba(255, 255, 255, .13);
  color: #fff;
  font-weight: 800;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

body[data-page-type="calculator"] .floating-call::before {
  content: "";
  position: absolute;
  inset: -6px;
  z-index: -1;
  border-radius: inherit;
  background:
    conic-gradient(from 0deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .42), rgba(255, 255, 255, 0) 26%),
    radial-gradient(circle, rgba(255, 255, 255, .13), transparent 66%);
  opacity: .9;
  animation: callRingRoll 8s ease-in-out infinite;
}

body[data-page-type="calculator"] .floating-call:hover,
body[data-page-type="calculator"] .floating-call:focus-visible {
  border-color: rgba(255, 255, 255, .38);
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, .30), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .045)),
    rgba(7, 7, 7, .86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    0 20px 48px rgba(0, 0, 0, .42),
    0 0 42px rgba(255, 255, 255, .18);
  transform: translateX(-4px);
}

body[data-page-type="calculator"] .floating-call-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04)),
    rgba(255, 255, 255, .10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

@keyframes callRingRoll {
  0%, 72%, 100% { transform: rotate(0deg); opacity: .58; }
  82% { transform: rotate(180deg); opacity: .96; }
  92% { transform: rotate(360deg); opacity: .72; }
}

body[data-page-type="calculator"] .floating-call-icon svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: currentColor;
}

@media (min-width: 981px) {
  body[data-page-type="calculator"] .header {
    position: relative;
    top: auto;
    width: min(calc(100% - 32px), 1240px);
    max-width: calc(100% - 32px);
    margin: 16px auto 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "logo nav actions";
    align-items: center;
    gap: clamp(12px, 1.6vw, 24px);
    min-height: auto;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    background: rgba(10, 10, 10, .72);
    backdrop-filter: blur(18px);
    box-shadow: none;
  }

  body[data-page-type="calculator"] .logo-image-link {
    width: clamp(218px, 20vw, 300px);
    min-height: auto;
    padding: 4px 14px;
    border-color: rgba(255, 255, 255, .08);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)),
      rgba(7, 7, 7, .70);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .04),
      0 12px 32px rgba(0, 0, 0, .22);
  }

  body[data-page-type="calculator"] .logo-image-link img {
    width: min(100%, 270px);
    max-height: none;
  }

  body[data-page-type="calculator"] .header nav {
    justify-content: center;
    align-self: center;
    gap: clamp(8px, 1vw, 12px);
  }

  body[data-page-type="calculator"] .header nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
    background: rgba(255, 255, 255, .03);
    color: rgba(244, 244, 241, .8);
    font-size: clamp(14px, 1vw, 18px);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
  }

  body[data-page-type="calculator"] .header nav a::after {
    display: none;
  }

  body[data-page-type="calculator"] .header nav a:hover,
  body[data-page-type="calculator"] .header nav a:focus-visible {
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .06);
    color: #fff;
  }

  body[data-page-type="calculator"] .header-actions {
    grid-area: actions;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    align-self: center;
    gap: 0;
  }

  body[data-page-type="calculator"] .header-actions .phone {
    display: none !important;
  }

  body[data-page-type="calculator"] .header-city {
    display: inline-flex;
    align-items: center;
  }

  body[data-page-type="calculator"] .header-city select {
    width: auto;
    min-width: 118px;
    max-width: min(22vw, 220px);
    field-sizing: content;
    min-height: 42px;
    padding: 0 34px 0 16px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 999px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)),
      rgba(0, 0, 0, .72);
    color: #fff;
    font-weight: 760;
    font-size: clamp(14px, 1vw, 16px);
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  }

  body[data-page-type="calculator"] .header-city select:hover,
  body[data-page-type="calculator"] .header-city select:focus-visible {
    border-color: rgba(255, 255, 255, .20);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .035)),
      rgba(0, 0, 0, .78);
  }
}

@media (max-width: 980px) {
  body[data-page-type="calculator"] .header {
    position: relative;
    top: auto;
    width: min(calc(100% - 24px), 1240px);
    margin: 12px auto 0;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 26px;
    background: rgba(10, 10, 10, .72);
    box-shadow: none;
  }
}

@media (max-width: 800px) {
  body[data-page-type="calculator"] .header {
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "actions"
      "nav";
    padding: 12px 14px;
  }

  body[data-page-type="calculator"] .header-actions {
    display: flex !important;
    justify-content: stretch;
    width: 100%;
  }

  body[data-page-type="calculator"] .header-city,
  body[data-page-type="calculator"] .header-city select {
    width: 100%;
    max-width: 100%;
  }

  body[data-page-type="calculator"] .header nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page-type="calculator"] .floating-call {
    right: 14px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }

  body[data-page-type="calculator"] .floating-call-icon {
    width: 34px;
    height: 34px;
  }
}

body[data-page-type="calculator"] {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, .09), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 255, 255, .05), transparent 22%),
    linear-gradient(180deg, #060606 0%, #0d0d0d 42%, #050505 100%);
}

body[data-page-type="calculator"] .site-bg-video {
  filter: grayscale(1) brightness(.48) contrast(1.08);
  opacity: 1;
  transform: scale(1.04);
}

body[data-page-type="calculator"] .site-bg-fallback {
  opacity: .16;
  filter: grayscale(1) brightness(.62) contrast(1.08);
}

body[data-page-type="calculator"] .site-bg-overlay {
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, .04), transparent 0 18%),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, .025), transparent 0 16%),
    linear-gradient(180deg, rgba(3, 3, 3, .52), rgba(6, 6, 6, .62) 42%, rgba(4, 4, 4, .72) 100%);
}

body[data-page-type="calculator"] main {
  position: relative;
  z-index: 1;
}

body[data-page-type="calculator"] .wrap {
  width: min(100%, 1240px);
  max-width: calc(100vw - 32px);
  padding-top: 28px;
}

body[data-page-type="calculator"] .hero,
body[data-page-type="calculator"] .card {
  border-color: rgba(255, 255, 255, .12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018)),
    rgba(7, 7, 7, .70);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .045),
    0 22px 70px rgba(0, 0, 0, .42);
}

body[data-page-type="calculator"] .hero {
  padding: clamp(36px, 4.4vw, 64px);
  border-radius: 32px;
}

body[data-page-type="calculator"] .hero::before {
  border-color: rgba(255, 255, 255, .045);
}

body[data-page-type="calculator"] .calculator {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018)),
    rgba(7, 7, 7, .72);
}

body[data-page-type="calculator"] .button,
body[data-page-type="calculator"] .calculator .button,
body[data-page-type="calculator"] .lead .button {
  border: 1px solid rgba(255, 255, 255, .16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .045)),
    rgba(255, 255, 255, .035);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 14px 32px rgba(0, 0, 0, .25);
  color: #fff;
}

body[data-page-type="calculator"] .button:hover,
body[data-page-type="calculator"] .button:focus-visible {
  border-color: rgba(255, 255, 255, .28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06)),
    rgba(255, 255, 255, .055);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .11),
    0 16px 36px rgba(0, 0, 0, .30),
    0 0 28px rgba(255, 255, 255, .10);
}

body[data-page-type="calculator"] .eyebrow::after {
  color: rgba(255, 255, 255, .78);
}

body[data-page-type="calculator"] .lead .consent-note a {
  text-decoration-color: rgba(255, 255, 255, .46);
}

body[data-page-type="calculator"] input:focus,
body[data-page-type="calculator"] select:focus,
body[data-page-type="calculator"] textarea:focus {
  outline: 3px solid rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .48);
}

body[data-page-type="calculator"] .calculator-notice {
  border-color: rgba(255, 255, 255, .16);
  border-left-color: rgba(255, 255, 255, .38);
  background: rgba(255, 255, 255, .06);
}

/* Unified front style for all CMS pages */
body {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, .08), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 255, 255, .05), transparent 22%),
    linear-gradient(180deg, #060606 0%, #0d0d0d 42%, #050505 100%);
}

.site-bg-video {
  filter: grayscale(1) brightness(.48) contrast(1.08);
  opacity: 1;
  transform: scale(1.04);
}

.site-bg-fallback {
  opacity: .17;
  filter: grayscale(1) brightness(.62) contrast(1.08);
}

.site-bg-overlay {
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, .04), transparent 0 18%),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, .025), transparent 0 16%),
    linear-gradient(180deg, rgba(3, 3, 3, .52), rgba(6, 6, 6, .62) 42%, rgba(4, 4, 4, .72) 100%);
}

main {
  position: relative;
  z-index: 1;
}

.wrap {
  width: min(100%, 1240px);
  max-width: calc(100vw - 32px);
}

.hero,
.card,
.calculator,
.footer-panel,
.footer-card {
  border-color: rgba(255, 255, 255, .12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018)),
    rgba(7, 7, 7, .70);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .045),
    0 22px 70px rgba(0, 0, 0, .42);
}

.button,
.lead .button,
.calculator .button {
  border: 1px solid rgba(255, 255, 255, .16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .045)),
    rgba(255, 255, 255, .035);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 14px 32px rgba(0, 0, 0, .25);
  color: #fff;
}

.button:hover,
.button:focus-visible {
  border-color: rgba(255, 255, 255, .28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06)),
    rgba(255, 255, 255, .055);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .11),
    0 16px 36px rgba(0, 0, 0, .30),
    0 0 28px rgba(255, 255, 255, .10);
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .48);
}

.floating-call {
  position: fixed;
  right: clamp(-14px, calc((100vw - 1240px) / 2 - 88px), 7vw);
  bottom: 52px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  color: #fff;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, .25), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04)),
    rgba(7, 7, 7, .84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .10),
    0 18px 42px rgba(0, 0, 0, .38),
    0 0 34px rgba(255, 255, 255, .14);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.floating-call::before {
  content: "";
  position: absolute;
  inset: -6px;
  z-index: -1;
  border-radius: inherit;
  background:
    conic-gradient(from 0deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .42), rgba(255, 255, 255, 0) 26%),
    radial-gradient(circle, rgba(255, 255, 255, .13), transparent 66%);
  opacity: .9;
  animation: callRingRoll 8s ease-in-out infinite;
}

.floating-call:hover,
.floating-call:focus-visible {
  border-color: rgba(255, 255, 255, .38);
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, .30), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .045)),
    rgba(7, 7, 7, .86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    0 20px 48px rgba(0, 0, 0, .42),
    0 0 42px rgba(255, 255, 255, .18);
  transform: translateX(-4px);
}

.floating-call-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04)),
    rgba(255, 255, 255, .10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.floating-call-icon svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-modern {
  width: min(100%, 1240px);
  max-width: calc(100vw - 32px);
  margin: clamp(34px, 5vw, 72px) auto 0;
  padding: 0 0 24px;
  background: transparent;
  border: 0;
}

.footer-modern-grid-compact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)),
    rgba(7, 7, 7, .62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.footer-panel {
  min-height: 188px;
  padding: 18px 20px;
  border-radius: 24px;
}

.footer-panel h2,
.footer-section-head h2,
.footer-rate-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #fff;
}

.footer-requisites-panel {
  text-align: right;
}

.footer-requisites-panel .footer-requisites,
.footer-requisites-panel .footer-requisites div,
.footer-requisites-panel .footer-requisites dd {
  text-align: right;
}

.footer-rate-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer-rate-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 12px;
}

.footer-rate-list span {
  justify-content: center;
  min-width: 0;
}

.footer-modern-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 28px;
  width: 100%;
  margin: 20px auto 0;
  padding: 0 16px;
  text-align: center;
}

.footer-modern-links a {
  color: rgba(244, 244, 241, .72);
  text-decoration: none;
  white-space: nowrap;
}

.footer-modern-links a:hover,
.footer-modern-links a:focus-visible {
  color: #fff;
}

.legal-page {
  width: min(100%, 1240px);
  max-width: calc(100vw - 32px);
}

.legal-document {
  width: 100%;
  max-width: none;
}

.legal-document p,
.legal-document ul,
.legal-document ol {
  max-width: none;
}

.legal-divider {
  margin: clamp(28px, 4vw, 48px) 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

@media (min-width: 981px) {
  .header {
    position: relative;
    top: auto;
    width: min(calc(100% - 32px), 1240px);
    max-width: calc(100% - 32px);
    margin: 16px auto 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "logo nav";
    align-items: center;
    gap: clamp(12px, 1.6vw, 24px);
    min-height: auto;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    background: rgba(10, 10, 10, .72);
    backdrop-filter: blur(18px);
    box-shadow: none;
  }

  .logo-image-link {
    width: clamp(218px, 20vw, 300px);
    min-height: auto;
    padding: 4px 14px;
    border-color: rgba(255, 255, 255, .08);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)),
      rgba(7, 7, 7, .70);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .04),
      0 12px 32px rgba(0, 0, 0, .22);
  }

  .logo-image-link img {
    width: min(100%, 270px);
    max-height: none;
  }

  .header nav {
    justify-content: center;
    align-self: center;
    gap: clamp(8px, 1vw, 12px);
  }

  .header nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
    background: rgba(255, 255, 255, .03);
    color: rgba(244, 244, 241, .8);
    font-size: clamp(14px, 1vw, 18px);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
  }

  .header nav a::after {
    display: none;
  }

  .header nav a:hover,
  .header nav a:focus-visible {
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .06);
    color: #fff;
  }

  .header-actions {
    display: none !important;
  }

  body[data-page-type="calculator"] .header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "logo nav actions";
  }

  body[data-page-type="calculator"] .header-actions {
    display: flex !important;
  }
}

@media (max-width: 980px) {
  .header {
    position: relative;
    top: auto;
    width: min(calc(100% - 24px), 1240px);
    margin: 12px auto 0;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 26px;
    background: rgba(10, 10, 10, .72);
    box-shadow: none;
  }

  .footer-modern-grid-compact {
    grid-template-columns: 1fr;
  }

  .footer-panel,
  .footer-requisites-panel,
  .footer-requisites-panel .footer-requisites,
  .footer-requisites-panel .footer-requisites div,
  .footer-requisites-panel .footer-requisites dd {
    text-align: left;
  }
}

@media (max-width: 800px) {
  .floating-call {
    right: 14px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }

  .floating-call-icon {
    width: 34px;
    height: 34px;
  }

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

/* Compact rhythm: keep CMS pages aligned with the landing page blocks */
.wrap {
  padding-top: clamp(14px, 2.2vw, 24px);
}

.hero {
  min-height: auto;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 28px;
}

.card,
.calculator,
.lead,
.legal-document {
  min-height: auto;
  padding: clamp(18px, 2.2vw, 26px);
  border-radius: 24px;
}

.hero h1 {
  margin-bottom: clamp(14px, 1.8vw, 20px);
}

.hero p {
  max-width: 820px;
  margin-bottom: 0;
}

.hero .eyebrow {
  margin-bottom: 12px;
}

body[data-page-type="calculator"] .wrap {
  padding-top: clamp(14px, 2.2vw, 24px);
}

body[data-page-type="calculator"] .hero,
body[data-page-type="calculator"] .card,
body[data-page-type="calculator"] .calculator {
  min-height: auto;
  padding: clamp(18px, 2.2vw, 28px);
  border-radius: 28px;
}

.header nav a,
body[data-page-type="calculator"] .header nav a {
  min-height: 42px;
  padding: 0 14px;
  font-family: "CruinnRegular", "Cruinn", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(14px, 1vw, 17px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .01em;
  white-space: nowrap;
  text-align: center;
}

body[data-page-type="calculator"] .header-city select {
  min-height: 42px;
  font-family: "CruinnRegular", "Cruinn", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1;
}

.footer-panel {
  min-height: auto;
  padding: 18px;
}

@media (max-width: 980px) {
  .hero,
  body[data-page-type="calculator"] .hero {
    padding: 20px 18px;
  }

  .card,
  .calculator,
  .lead,
  .legal-document,
  body[data-page-type="calculator"] .card,
  body[data-page-type="calculator"] .calculator {
    padding: 18px 16px;
  }

  .header nav a,
  body[data-page-type="calculator"] .header nav a {
    min-height: 40px;
    padding: 0 12px;
    font-size: 14px;
  }
}

@media (max-width: 560px) {
  .wrap {
    max-width: calc(100vw - 20px);
  }

  .hero,
  body[data-page-type="calculator"] .hero {
    padding: 16px 14px;
    border-radius: 22px;
  }

  .card,
  .calculator,
  .lead,
  .legal-document,
  body[data-page-type="calculator"] .card,
  body[data-page-type="calculator"] .calculator {
    padding: 14px 12px;
    border-radius: 20px;
  }
}

.hero h1 {
  max-width: 920px;
  margin: 0 0 clamp(10px, 1.3vw, 16px);
  font-size: clamp(32px, 4.15vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero p {
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.45;
}

.hero .eyebrow {
  margin-bottom: 10px;
  font-size: clamp(13px, .95vw, 15px);
}

body[data-page-type="calculator"] .hero h1 {
  max-width: 900px;
  font-size: clamp(34px, 4vw, 56px);
}

@media (min-width: 981px) {
  .hero,
  body[data-page-type="calculator"] .hero {
    padding: 24px 28px;
  }
}

/* Header should behave like the landing page: no sticky follow on scroll */
.header,
body[data-page-type="calculator"] .header {
  position: relative !important;
  top: auto !important;
}

/* Glass transparency for informational CMS blocks */
.hero,
.card,
.calculator,
.lead,
.legal-document,
.prose,
.footer-panel,
.footer-card,
details,
.result,
.calculator-notice {
  border-color: rgba(255, 255, 255, .105);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .038), rgba(255, 255, 255, .012)),
    rgba(6, 6, 6, .42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .035),
    0 18px 58px rgba(0, 0, 0, .34);
}

.hero {
  background:
    radial-gradient(circle at 86% 76%, rgba(255, 255, 255, .055), transparent 0 28%),
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012)),
    rgba(6, 6, 6, .40);
}

.calculator,
.lead,
.legal-document,
.prose {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .034), rgba(255, 255, 255, .01)),
    rgba(5, 5, 5, .38);
}

input,
select,
textarea {
  border-color: rgba(255, 255, 255, .14);
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .028)),
    rgba(0, 0, 0, .36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, .46);
}

select option {
  color: #111;
}

.result {
  color: rgba(255, 255, 255, .88);
}

.calculator-notice {
  border-left-color: rgba(255, 255, 255, .32);
}

.footer-modern-grid-compact {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .026), rgba(255, 255, 255, .008)),
    rgba(6, 6, 6, .36);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header,
.logo-image-link,
.header nav a,
.header-city select {
  background-color: rgba(6, 6, 6, .46);
}

body[data-page-type="calculator"] .hero,
body[data-page-type="calculator"] .card,
body[data-page-type="calculator"] .calculator,
body[data-page-type="calculator"] .lead,
body[data-page-type="legal"] .hero,
body[data-page-type="legal"] .card,
body[data-page-type="legal"] .legal-document {
  border-color: rgba(255, 255, 255, .105);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .032), rgba(255, 255, 255, .008)),
    rgba(6, 6, 6, .28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .035),
    0 18px 58px rgba(0, 0, 0, .34);
}

/* Unified footer/header/mobile behavior */
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)),
    rgba(0, 0, 0, .46);
  color: #fff;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .22s ease, opacity .22s ease;
}

.header.menu-open .menu-toggle span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.header.menu-open .menu-toggle span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

.footer-modern {
  width: min(100%, 1240px);
  max-width: calc(100vw - 32px);
  margin: clamp(34px, 5vw, 72px) auto 0;
  padding: 0 0 24px;
}

.footer-modern-grid-compact,
.footer-layout-compact {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch !important;
  grid-auto-rows: 1fr;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .026), rgba(255, 255, 255, .008)),
    rgba(6, 6, 6, .36);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.footer-modern-grid-compact > .footer-panel,
.footer-layout-compact > .footer-card {
  display: flex !important;
  flex-direction: column;
  width: 100%;
  height: 100% !important;
  min-height: 206px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 24px;
  background: rgba(0, 0, 0, .18);
}

.footer-company,
.footer-requisites-panel,
.footer-company h2,
.footer-requisites-panel h2,
.footer-company span,
.footer-requisites-panel .footer-requisites,
.footer-requisites-panel .footer-requisites div,
.footer-requisites-panel .footer-requisites dd {
  text-align: right;
}

.footer-seo-links,
.footer-modern-links {
  display: flex !important;
  justify-content: center !important;
  align-items: center;
  align-content: center;
  flex-wrap: wrap;
  gap: 18px 28px;
  width: 100% !important;
  max-width: 100%;
  margin: 20px auto 0;
  padding-inline: 16px;
  text-align: center !important;
}

.footer-seo-links a,
.footer-modern-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(244, 244, 241, .72);
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
}

.footer-rate-list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 12px;
}

.footer-rate-list span {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 34px;
  padding: 7px 10px !important;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .035)),
    rgba(0, 0, 0, .18);
  white-space: nowrap;
}

@media (min-width: 801px) {
  .floating-call,
  body[data-page-type="calculator"] .floating-call {
    width: 69px;
    height: 69px;
    min-width: 69px;
    min-height: 69px;
    aspect-ratio: 1 / 1;
    padding: 0;
    border-radius: 50%;
  }

  .floating-call-icon,
  body[data-page-type="calculator"] .floating-call-icon {
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    aspect-ratio: 1 / 1;
  }

  .floating-call-icon svg,
  body[data-page-type="calculator"] .floating-call-icon svg {
    width: 24px;
    height: 24px;
  }
}

/* Stronger landing-like transparency and neutral fallback for CMS pages */
.site-video-background.video-ready .site-bg-fallback {
  opacity: 0;
}

.site-bg-fallback {
  inset: 50% auto auto 50%;
  width: min(72vw, 760px);
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: contain;
  object-position: center;
  opacity: .34;
  filter: grayscale(1) brightness(.92) contrast(1.04);
  transition: opacity .22s ease;
}

.hero,
.card,
.calculator,
.lead,
.legal-document,
.prose,
.footer-panel,
.footer-card,
details,
.result,
.calculator-notice,
body[data-page-type="calculator"] .hero,
body[data-page-type="calculator"] .card,
body[data-page-type="calculator"] .calculator,
body[data-page-type="calculator"] .lead,
body[data-page-type="legal"] .hero,
body[data-page-type="legal"] .card,
body[data-page-type="legal"] .legal-document {
  border-color: rgba(255, 255, 255, .12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .015));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.footer-modern-grid-compact,
.footer-layout-compact {
  background: rgba(255, 255, 255, .035);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

input,
select,
textarea {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .018)),
    rgba(0, 0, 0, .26);
}

/* Match landing transparency, compact lead form and footer rhythm */
.hero,
.card,
.calculator,
.lead,
.legal-document,
.prose,
body[data-page-type="calculator"] .hero,
body[data-page-type="calculator"] .card,
body[data-page-type="calculator"] .calculator,
body[data-page-type="calculator"] .lead,
body[data-page-type="legal"] .hero,
body[data-page-type="legal"] .card,
body[data-page-type="legal"] .legal-document {
  border-color: rgba(255, 255, 255, .12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .015));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.lead,
body[data-page-type="calculator"] .lead {
  padding: 22px 24px;
}

.lead form,
.form-grid {
  gap: 16px 18px;
}

.lead label {
  gap: 7px;
}

input,
select,
textarea {
  min-height: 48px;
  padding: 11px 14px;
}

textarea {
  min-height: 96px;
}

.calculator .button,
.lead .button {
  margin-top: 8px;
}

.lead .consent-note {
  margin: -2px 0 0;
  line-height: 1.35;
}

.lead textarea,
.lead-form textarea {
  width: 100%;
  max-width: 100%;
  max-height: 360px;
  resize: vertical;
  overflow: auto;
}

.footer-modern {
  margin-top: clamp(14px, 2vw, 26px);
}

.footer-company,
.footer-requisites-panel {
  align-items: flex-end;
  justify-content: flex-start;
  gap: 4px;
}

.footer-company h2,
.footer-requisites-panel h2 {
  width: 100%;
  margin-bottom: 2px;
  text-align: right;
}

.footer-company span,
.footer-requisites-panel span {
  display: block;
  width: 100%;
  color: rgba(244, 244, 241, .72);
  line-height: 1.45;
  text-align: right;
}

.footer-modern-grid-compact > .footer-panel,
.footer-layout-compact > .footer-card {
  background: rgba(0, 0, 0, .18);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  min-height: 220px;
}

.calculator {
  margin-bottom: 22px;
}

.lead,
body[data-page-type="calculator"] .lead {
  margin-top: 22px;
  margin-bottom: 16px;
}

@media (max-width: 760px) {
  .lead,
  body[data-page-type="calculator"] .lead {
    padding: 18px 14px;
  }

  .footer-company,
  .footer-requisites-panel {
    align-items: flex-start;
  }

  .footer-company h2,
  .footer-requisites-panel h2,
  .footer-company span,
  .footer-requisites-panel span {
    text-align: left;
  }
}

/* One footer contract for the landing page and every CMS page. */
.footer-modern.footer {
  width: min(calc(var(--app-vw, 100vw) - 32px), 1240px);
  max-width: none;
  margin: clamp(14px, 2vw, 26px) auto 0;
  padding: 0 0 24px;
}

.footer-modern.footer .footer-layout-compact {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch !important;
  grid-auto-rows: 1fr;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 32px;
  background: rgba(255, 255, 255, .035);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.footer-modern.footer .footer-layout-compact > .footer-card,
.footer-modern.footer .footer-layout-compact > .footer-card.rates-card {
  display: flex !important;
  flex-direction: column;
  width: 100%;
  height: 100% !important;
  min-height: 220px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 24px;
  background: rgba(0, 0, 0, .18);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.footer-modern.footer .footer-card h2,
.footer-modern.footer .rates-title {
  margin: 0 0 12px;
  font-family: DaMiOne, Damion, Cruinn, Inter, sans-serif;
  font-size: .88rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.footer-modern.footer .footer-contacts {
  display: grid !important;
  align-content: start;
  gap: 8px;
}

.footer-modern.footer .footer-contacts > a,
.footer-modern.footer .footer-contacts > span {
  display: block;
  color: rgba(244, 244, 241, .72);
  font-family: CruinnRegular, Cruinn, Inter, sans-serif;
  font-size: .86rem;
  line-height: 1.45;
  text-decoration: none;
}

.footer-modern.footer .footer-messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.footer-modern.footer .footer-messenger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  color: rgba(244, 244, 241, .9);
  font-family: CruinnRegular, Cruinn, Inter, sans-serif;
  font-size: .86rem;
  line-height: 1.45;
  text-decoration: none;
}

.footer-modern.footer .rates-list {
  display: block;
  width: 100%;
  overflow: visible;
  padding: 0;
  border: 0;
}

.footer-modern.footer .rates-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 0;
  margin-bottom: 12px;
  border-bottom: 0;
}

.footer-modern.footer .rates-card .rates-title {
  margin: 0;
}

.footer-modern.footer .rates-source {
  color: rgba(244, 244, 241, .58);
  font-family: CruinnRegular, Cruinn, Inter, sans-serif;
  font-size: .74rem;
  line-height: 1.35;
  white-space: nowrap;
}

.footer-modern.footer .rates-source-block {
  width: 100%;
  margin: 0 0 14px;
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .022)),
    rgba(255, 255, 255, .035);
}

.footer-modern.footer .rates-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 8px;
}

.footer-modern.footer .rate-row {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 28px;
  padding: 5px 9px !important;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .035)),
    rgba(0, 0, 0, .18);
  line-height: normal;
  white-space: nowrap;
}

.footer-modern.footer .footer-company {
  display: grid !important;
  align-content: start;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 4px;
  color: rgba(244, 244, 241, .62);
  font-family: CruinnRegular, Cruinn, Inter, sans-serif;
  font-size: .82rem;
  line-height: 1.55;
  text-align: right;
}

.footer-modern.footer .footer-company h2,
.footer-modern.footer .footer-company span {
  width: 100%;
  text-align: right;
}

.footer-modern.footer .footer-company span {
  display: block;
  color: rgba(244, 244, 241, .72);
  font-family: CruinnRegular, Cruinn, Inter, sans-serif;
  font-size: .86rem;
  line-height: 1.45;
}

.footer-modern.footer .footer-seo-links {
  display: flex !important;
  justify-content: center !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  width: 100% !important;
  margin: 18px auto 0;
  padding-inline: 16px;
  font-size: 13px;
  text-align: center !important;
}

.footer-modern.footer .footer-seo-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-family: Cruinn, Inter, sans-serif;
  font-size: 13px;
  font-weight: 400;
  opacity: .78;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
}

@media (max-width: 1180px) {
  .footer-modern.footer .footer-layout-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
  }

  .footer-modern.footer .rates-card {
    grid-column: 1 / -1;
    order: 2;
  }

  .footer-modern.footer .footer-company {
    order: 3;
  }
}

@media (max-width: 760px) {
  .footer-modern.footer {
    width: min(calc(var(--app-vw, 100vw) - 20px), 1240px);
  }

  .footer-modern.footer .footer-layout-compact {
    grid-template-columns: 1fr;
    padding: 12px;
    border-radius: 24px;
  }

  .footer-modern.footer .footer-layout-compact > .footer-card,
  .footer-modern.footer .footer-layout-compact > .footer-card.rates-card {
    min-height: auto;
  }

  .footer-modern.footer .rates-card {
    grid-column: auto;
    order: initial;
  }

  .footer-modern.footer .rates-card-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .footer-modern.footer .rates-source {
    white-space: normal;
  }

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

  .footer-modern.footer .footer-company {
    order: initial;
    align-items: flex-start;
  }

  .footer-modern.footer .footer-company h2,
  .footer-modern.footer .footer-company span {
    text-align: left;
  }

  .footer-modern.footer .footer-seo-links {
    gap: 10px 16px;
    padding-inline: 0;
  }

  .footer-modern.footer .footer-seo-links a {
    min-height: auto;
    padding: 0;
    font-size: 13px;
  }
}

/* Calculator form polish: unified dropdown affordance, balanced columns and compact lead form. */
input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

input[list]::-webkit-calendar-picker-indicator {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

select,
input.choice-control {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-color: rgba(0, 0, 0, .26);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: auto;
}

select:hover,
select:focus,
input.choice-control:hover,
input.choice-control:focus {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M2 2L7 7L12 2' stroke='%23f4f4f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025));
  background-position: right 16px center, 0 0;
  background-size: 14px 9px, auto;
  background-repeat: no-repeat;
}

.price-currency-control {
  grid-template-columns: minmax(0, 1fr) minmax(112px, 132px);
}

.price-currency-control select {
  padding-right: 42px;
}

.calculator-grid .calc-year,
.calculator-grid .calc-volume,
.calculator-grid .calc-power {
  grid-column: span 2;
}

.calculator-grid .calc-engine,
.calculator-grid .calc-import {
  grid-column: span 3;
}

.calculator-grid .calc-import select {
  min-width: 0;
}

.lead form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 26px;
}

.lead-message-field {
  grid-column: span 2;
}

.lead-actions {
  display: grid;
  align-content: end;
  gap: 10px;
  min-width: 0;
  padding-top: 0;
}

.lead-actions .button {
  width: 100%;
  margin-top: 0;
}

.lead-actions .consent-note {
  grid-column: auto;
  margin: 0;
}

.lead .form-status {
  grid-column: 1 / -1;
  margin: 0;
}

@media (max-width: 980px) {
  .lead form {
    grid-template-columns: 1fr;
  }

  .lead-message-field,
  .lead-actions,
  .lead .form-status {
    grid-column: auto;
  }

  .lead-actions {
    padding-top: 0;
  }
}

/* Header and list controls must match the landing page style. */
.header nav a,
body[data-page-type="calculator"] .header nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  color: rgba(244, 244, 241, .8);
  font-family: "CruinnRegular", "Cruinn", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
}

.header nav a::after,
body[data-page-type="calculator"] .header nav a::after {
  display: none;
}

.header nav a:hover,
.header nav a:focus-visible,
body[data-page-type="calculator"] .header nav a:hover,
body[data-page-type="calculator"] .header nav a:focus-visible {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  color: rgba(244, 244, 241, .95);
}

.header-city select,
body[data-page-type="calculator"] .header-city select,
select,
input.choice-control {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  color: #fff;
  font-family: "CruinnRegular", "Cruinn", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  background-color: rgba(0, 0, 0, .72);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  background-position: 0 0;
  background-size: auto;
  background-repeat: no-repeat;
}

.header-city select:hover,
.header-city select:focus,
body[data-page-type="calculator"] .header-city select:hover,
body[data-page-type="calculator"] .header-city select:focus,
select:hover,
select:focus,
input.choice-control:hover,
input.choice-control:focus {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M2 2L7 7L12 2' stroke='%23f4f4f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025));
  background-position: right 16px center, 0 0;
  background-size: 14px 9px, auto;
  background-repeat: no-repeat;
}

.header-city select option,
select option {
  color: #fff;
  background: #050608;
}

@media (max-width: 800px) {
  .header {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo menu"
      "actions actions"
      "nav nav";
    align-items: center;
  }

  .menu-toggle {
    grid-area: menu;
    display: inline-flex;
  }

  .header nav {
    display: none;
    grid-area: nav;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
    padding-top: 4px;
  }

  .header.menu-open nav {
    display: grid;
  }

  .header nav a,
  body[data-page-type="calculator"] .header nav a {
    width: 100%;
    min-height: 42px;
    justify-content: flex-start;
    padding: 0 14px;
    border-radius: 16px;
    white-space: normal;
  }

  body[data-page-type="calculator"] .header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "logo menu"
      "actions actions"
      "nav nav";
    max-width: calc(100vw - 20px);
    overflow: clip;
  }

  body[data-page-type="calculator"] .logo-image-link {
    min-width: 0;
    max-width: 100%;
  }

  body[data-page-type="calculator"] .logo-image-link img {
    max-width: 100%;
  }

  body[data-page-type="calculator"] .header-actions {
    min-width: 0;
    width: 100%;
  }

  body[data-page-type="calculator"] .header-city,
  body[data-page-type="calculator"] .header-city select {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  body[data-page-type="calculator"] .menu-toggle {
    grid-area: menu;
  }

  .header-actions .phone,
  body[data-page-type="calculator"] .header-actions .phone {
    display: none !important;
  }

  .floating-call,
  body[data-page-type="calculator"] .floating-call {
    right: 14px;
    bottom: 16px;
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    aspect-ratio: 1 / 1;
    padding: 0;
    border-radius: 50%;
  }

  .floating-call-icon,
  body[data-page-type="calculator"] .floating-call-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 1180px) {
  .footer-modern-grid-compact,
  .footer-layout-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
  }

  .rates-card,
  .footer-rates-panel {
    grid-column: 1 / -1;
    order: 2;
  }

  .footer-company,
  .footer-requisites-panel {
    order: 3;
  }
}

@media (max-width: 760px) {
  .footer-modern-grid-compact,
  .footer-layout-compact {
    grid-template-columns: 1fr;
    padding: 12px;
    border-radius: 24px;
  }

  .footer-modern-grid-compact > .footer-panel,
  .footer-layout-compact > .footer-card {
    min-height: auto;
    text-align: left;
  }

  .footer-company,
  .footer-requisites-panel,
  .footer-company h2,
  .footer-requisites-panel h2,
  .footer-company span,
  .footer-requisites-panel .footer-requisites,
  .footer-requisites-panel .footer-requisites div,
  .footer-requisites-panel .footer-requisites dd {
    text-align: left;
  }

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

  .footer-seo-links,
  .footer-modern-links {
    gap: 12px 16px;
  }
}

/* Final shared surface contract: repeated blocks must visually match the landing page. */
.hero,
.card,
.calculator,
.lead,
.legal-document,
.prose,
body[data-page-type="calculator"] .hero,
body[data-page-type="calculator"] .card,
body[data-page-type="calculator"] .calculator,
body[data-page-type="calculator"] .lead,
body[data-page-type="legal"] .hero,
body[data-page-type="legal"] .card,
body[data-page-type="legal"] .legal-document {
  border-color: rgba(255, 255, 255, .12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .015));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.lead,
body[data-page-type="calculator"] .lead {
  padding: 22px 24px;
  margin-top: 22px;
  margin-bottom: 16px;
}

.wrap,
body[data-page-type="calculator"] .wrap {
  padding-bottom: 8px;
}

.footer-modern {
  margin-top: clamp(14px, 2vw, 26px);
}

.footer-modern-grid-compact,
.footer-layout-compact {
  background: rgba(255, 255, 255, .035);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.footer-modern-grid-compact > .footer-panel,
.footer-layout-compact > .footer-card {
  background: rgba(0, 0, 0, .18);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  min-height: 220px;
}

.footer-company,
.footer-requisites-panel {
  align-items: flex-end;
  justify-content: flex-start;
  gap: 4px;
}

.footer-company h2,
.footer-requisites-panel h2,
.footer-company span,
.footer-requisites-panel span {
  width: 100%;
  text-align: right;
}

.footer-company span,
.footer-requisites-panel span {
  display: block;
  color: rgba(244, 244, 241, .72);
  line-height: 1.45;
}

@media (max-width: 760px) {
  .lead,
  body[data-page-type="calculator"] .lead {
    padding: 18px 14px;
  }

  .footer-company,
  .footer-requisites-panel {
    align-items: flex-start;
  }

  .footer-company h2,
  .footer-requisites-panel h2,
  .footer-company span,
  .footer-requisites-panel span {
    text-align: left;
  }
}
