:root {
  --white: #ffffff;
  --paper: #f5f7fa;
  --mist: #eef3f8;
  --blue: #0047b8;
  --blue-dark: #002b5c;
  --ink: #0b1f3a;
  --muted: #5e6b7a;
  --line: #e1e7ef;
  --gold: #a47a34;
  --shadow: 0 1.25vw 3.1944vw rgba(11, 31, 58, 0.1);
  --soft-shadow: 0 0.5556vw 1.6667vw rgba(11, 31, 58, 0.08);
  --container: 86.1111vw;
  --section-x: 3.4vw;
  --section-y: 5.2vw;
  --gap: 1.7vw;
  --card-padding: 2vw;
  --radius: 0.5556vw;
  --header-gap: 2.7vw;
  --hero-gap: 5vw;
  --hero-y: 5vw;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  position: relative;
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  background: #dce7f2;
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(248, 251, 255, 0.72) 0%, rgba(248, 251, 255, 0.52) 48%, rgba(225, 236, 247, 0.34) 100%),
    url("assets/hero-justice.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

body > * {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3,
p,
a,
span,
button,
input,
textarea {
  overflow-wrap: anywhere;
}

body.menu-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

main {
  flex: 1 0 auto;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - (var(--section-x) * 2)));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 0.0694vw solid rgba(225, 231, 239, 0.8);
  backdrop-filter: blur(1.1111vw);
}

.header-shell {
  min-height: 6.4vw;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--header-gap);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1.2vw;
  min-width: 16vw;
}

.brand-mark {
  width: 4.9vw;
  height: 4.9vw;
  border: 0.0694vw solid rgba(0, 71, 184, 0.22);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--white);
  box-shadow: 0 0.4167vw 1.1111vw rgba(11, 31, 58, 0.05);
}

.brand-mark img {
  width: 5.8vw;
  height: 4.8vw;
  object-fit: contain;
}

.brand-text span {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--blue);
  font-size: 3vw;
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-text small {
  display: block;
  margin-top: 0.3472vw;
  color: var(--blue);
  font-size: 0.6944vw;
  font-weight: 700;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.6vw;
  font-size: 1vw;
  font-weight: 600;
}

.main-nav a {
  position: relative;
  padding: 2.4vw 0 2.25vw;
  color: var(--ink);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.6667vw;
  height: 0.1389vw;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.header-contacts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.4861vw 1.25vw;
  font-size: 0.9722vw;
  font-weight: 700;
  color: var(--blue-dark);
}

.header-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 0.6944vw;
  white-space: nowrap;
}

.header-contacts svg {
  width: 1.25vw;
  height: 1.25vw;
  color: var(--blue);
  stroke-width: 1.8;
}

.menu-toggle {
  display: none;
  width: 3.0556vw;
  height: 3.0556vw;
  border: 0.0694vw solid var(--line);
  border-radius: 0.5556vw;
  color: var(--blue-dark);
  background: var(--white);
}

.section-with-bg {
  position: relative;
  overflow: hidden;
}

.hero {
  min-height: 36vw;
  background: transparent;
}

.hero-bg,
.consultation-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: transparent;
  transform: none;
  opacity: 1;
}

.hero-grid {
  position: relative;
  z-index: 1;
  min-height: 36vw;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(19.4444vw, 0.62fr);
  align-items: center;
  justify-content: space-between;
  gap: var(--hero-gap);
  padding: var(--hero-y) 0;
}

.eyebrow {
  margin: 0 0 1.25vw;
  color: black;
  font-size: 2vw;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--blue);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0;
}

h1 {
  font-size: 3vw;
}

h2 {
  font-size: 4vw;
}

.hero-lead {
  width: min(100%, 37.8472vw);
  margin: 1.8056vw 0 2.3611vw;
  color: var(--ink);
  font-size: 1.25vw;
}

.btn {
  min-height: 3.6111vw;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8333vw;
  border-radius: 0.5556vw;
  padding: 0 2.0833vw;
  border: 0.0694vw solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.btn svg {
  width: 1.25vw;
  height: 1.25vw;
}

.btn:hover {
  transform: translateY(-0.1389vw);
}

.btn:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, #0047b8, #002f7f);
  box-shadow: 0 0.8333vw 1.6667vw rgba(0, 71, 184, 0.24);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0a55cb, #00398f);
  box-shadow: 0 1.1111vw 1.9444vw rgba(0, 71, 184, 0.32);
}

.btn-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: transparent;
  box-shadow: none;
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
}

.hero-card {
  padding: 2.3vw 2.1vw;
  border: 0.0694vw solid rgba(225, 231, 239, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(0.8333vw);
  box-shadow: var(--shadow);
}

.hero-card-item {
  display: grid;
  grid-template-columns: 3vw 1fr;
  gap: 1.25vw;
  align-items: center;
}

.hero-card-item + .hero-card-item {
  margin-top: 1.875vw;
}

.hero-card-item svg {
  width: 2.65vw;
  height: 2.65vw;
  color: var(--blue);
  stroke-width: 1.6;
}

.hero-card-item p {
  margin: 0;
  font-size: 0.9722vw;
}

.hero-card-item strong,
.hero-card-item span {
  display: block;
}

.hero-card-item strong {
  color: var(--ink);
  font-weight: 800;
}

.hero-card-item span {
  color: var(--muted);
}

.workflow {
  padding: 2.8vw 0 3.8vw;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 0%, rgba(120, 174, 244, 0.32), transparent 34%),
    linear-gradient(120deg, rgba(0, 71, 184, 0.92) 0%, rgba(10, 85, 203, 0.88) 58%, rgba(0, 63, 159, 0.9) 100%);
  backdrop-filter: blur(0.1389vw);
}

.section-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--gap);
  margin-bottom: 3.2vw;
}

.workflow-top {
  align-items: center;
  margin-bottom: 2.6389vw;
}

.workflow h2 {
  color: var(--white);
  font-size: 2.2222vw;
}

.title-line {
  width: 2.3611vw;
  height: 0.1389vw;
  display: block;
  margin-top: 0.9722vw;
  background: var(--blue);
}

.title-line.light {
  background: rgba(255, 255, 255, 0.76);
}

.title-line.centered {
  margin-left: auto;
  margin-right: auto;
}

.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.35vw minmax(0, 1fr) 2.35vw minmax(0, 1fr) 2.35vw minmax(0, 1fr) 2.35vw minmax(0, 1fr);
  gap: 0.85vw;
  align-items: start;
}

.step {
  min-width: 0;
}

.step svg {
  width: 3vw;
  height: 3vw;
  color: #d9e8ff;
  stroke-width: 1.4;
}

.step span {
  display: block;
  margin-top: 1.25vw;
  color: #d9e8ff;
  font-size: 1.8056vw;
  line-height: 1;
}

.step h3,
.service-card h3,
.advantage-grid h3 {
  margin: 0.5556vw 0 0;
  font-size: 1.1806vw;
  line-height: 1.25;
}

.step p {
  margin: 0.5556vw 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9722vw;
}

.step-arrow {
  margin-top: 5.2778vw;
  color: rgba(255, 255, 255, 0.56);
  font-size: 1.9444vw;
  text-align: center;
}

.services,
.about,
.advantages {
  padding: var(--section-y) 0 0;
}

.services {
  padding-bottom: var(--section-y);
  background: transparent;
}

.about,
.advantages {
  background: var(--white);
}

.advantages {
  padding-bottom: var(--section-y);
}

.advantages + .consultation {
  margin-top: 0;
}

.text-link {
  margin-top: 1.1111vw;
  color: var(--blue);
  font-size: 0.9722vw;
  font-weight: 700;
}

.text-link:hover {
  color: var(--blue-dark);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.3611vw), 1fr));
  gap: var(--gap);
}

.service-card {
  min-height: 22vw;
  display: flex;
  flex-direction: column;
  padding: var(--card-padding);
  border: 0.0694vw solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(0.6944vw);
  box-shadow: var(--soft-shadow);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-0.3472vw);
  border-color: rgba(0, 71, 184, 0.25);
  box-shadow: 0 1.1111vw 2.3611vw rgba(11, 31, 58, 0.13);
}

.icon-ring {
  width: 4.3vw;
  height: 4.3vw;
  display: grid;
  place-items: center;
  border: 0.0694vw solid rgba(0, 71, 184, 0.48);
  border-radius: 50%;
  color: var(--blue);
}

.icon-ring svg {
  width: 2.4306vw;
  height: 2.4306vw;
  stroke-width: 1.5;
}

.service-card h3 {
  margin-top: 2.0833vw;
  font-size: 1.25vw;
}

.service-card p {
  margin: 1.25vw 0 1.6667vw;
  color: var(--muted);
  font-size: 0.9722vw;
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  color: var(--blue);
}

.card-bottom strong {
  font-size: 1.1806vw;
}

.card-bottom svg {
  width: 1.3889vw;
  height: 1.3889vw;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(22.2222vw, 1.12fr);
  gap: var(--hero-gap);
  align-items: center;
}

.about-copy p {
  margin: 1.6667vw 0 0;
  color: var(--ink);
  font-size: 1.12vw;
}

.about-copy .btn {
  margin-top: 2.0833vw;
}

.about-image {
  overflow: hidden;
  border-radius: 0.5556vw;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: 25vw;
  object-fit: cover;
}

.center-heading {
  text-align: center;
  margin-bottom: 3.0556vw;
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1.8vw;
  align-items: start;
  text-align: center;
}

.advantage-grid article {
  min-width: 0;
}

.advantage-grid svg {
  width: 2.9167vw;
  height: 2.9167vw;
  color: var(--blue);
  stroke-width: 1.45;
}

.advantage-grid h3 {
  margin-top: 1.1111vw;
  font-size: 0.9722vw;
}

.consultation {
  margin-top: var(--section-y);
  padding: var(--section-y) 0;
  background: transparent;
}

.consultation-bg {
  background: transparent;
  opacity: 1;
}

.consultation-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(18.0556vw, 1.1fr) minmax(0, 1.22fr);
  gap: 5.2vw;
  align-items: start;
}



.consultation-copy p {
  margin: 1.6667vw 0 0;
  color: var(--ink);
  font-size: 1.2vw;
}

.consultation-form {
  display: grid;
  gap: 1.25vw;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3vw;
}

.consultation-form label > span:not(.consent span) {
  position: absolute;
  width: 0.0694vw;
  height: 0.0694vw;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

input,
textarea {
  width: 100%;
  border: 0.0694vw solid var(--line);
  border-radius: 0.5556vw;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

input {
  height: 3.8889vw;
  padding: 0 1.3889vw;
}

textarea {
  min-height: 9.1667vw;
  padding: 1.25vw 1.3889vw;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: rgba(0, 71, 184, 0.55);
  background: var(--white);
  box-shadow: 0 0 0 0.2778vw rgba(0, 71, 184, 0.09);
}

.form-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--gap);
  align-items: center;
}

.consent {
  display: grid;
  grid-template-columns: 1.25vw 1fr;
  gap: 0.8333vw;
  color: var(--ink);
  font-size: 0.9028vw;
  line-height: 1.45;
}

.consent input {
  width: 1.25vw;
  height: 1.25vw;
  margin: 0.1389vw 0 0;
  accent-color: var(--blue);
}

.consent a {
  color: #c2362f;
  font-weight: 700;
}

.form-status {
  min-height: 1.5278vw;
  margin: -0.2778vw 0 0;
  color: var(--blue);
  font-size: 0.9722vw;
  font-weight: 700;
}

.form-status.error {
  color: #b82424;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contacts {
  overflow: hidden;
  background: transparent;
}

.contacts-grid {
  display: grid;
  grid-template-columns: minmax(20vw, 0.72fr) minmax(42vw, 1.28fr);
  gap: 4vw;
  min-height: 37vw;
  align-items: stretch;
}

.contacts-info {
  padding: 5vw 0;
}

.contacts-info ul {
  display: grid;
  gap: 1.25vw;
  padding: 0;
  margin: 1.9444vw 0 0;
  list-style: none;
}

.contacts-info li {
  display: grid;
  grid-template-columns: 1.6667vw 1fr;
  gap: 0.9722vw;
  align-items: start;
  color: var(--ink);
  font-size: 1.05vw;
}

.contacts-info svg {
  width: 1.4583vw;
  height: 1.4583vw;
  color: var(--blue);
  stroke-width: 2;
}

.map-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 5vw 0;
}

.map-fallback,
.yandex-map {
  display: block;
  flex: 0 0 100%;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  height: 27vw;
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  box-sizing: border-box;
}

.map-fallback {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  width: auto;
  overflow: hidden;
  border: 0.0694vw solid var(--line);
  transform: translateY(-50%);
  background:
    linear-gradient(34deg, transparent 0 46%, rgba(0, 71, 184, 0.12) 46% 48%, transparent 48% 100%),
    linear-gradient(142deg, transparent 0 42%, rgba(164, 122, 52, 0.14) 42% 44%, transparent 44% 100%),
    repeating-linear-gradient(0deg, rgba(0, 71, 184, 0.08) 0 0.0694vw, transparent 0.0694vw 2.9167vw),
    repeating-linear-gradient(90deg, rgba(0, 71, 184, 0.08) 0 0.0694vw, transparent 0.0694vw 3.1944vw),
    #eef3f8;
}

.map-fallback::before,
.map-fallback::after {
  content: "";
  position: absolute;
  border-radius: 69.375vw;
  background: rgba(255, 255, 255, 0.56);
}

.map-fallback::before {
  width: 11.1111vw;
  height: 5vw;
  left: 1.6667vw;
  top: 1.6667vw;
}

.map-fallback::after {
  width: 13.1944vw;
  height: 5.6944vw;
  right: -1.9444vw;
  bottom: 1.3889vw;
}

.map-pin {
  position: absolute;
  left: 52%;
  top: 48%;
  width: 3.3333vw;
  height: 3.3333vw;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 0.8333vw 1.6667vw rgba(0, 71, 184, 0.26);
  transform: translate(-50%, -50%);
  z-index: 1;
}

.map-pin svg {
  width: 1.6667vw;
  height: 1.6667vw;
}

.yandex-map {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 0.0694vw solid var(--line);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.yandex-map.is-loaded {
  opacity: 1;
}

.map-card [class*="ground-pane"] {
  filter: saturate(0.84) contrast(0.96);
}

.map-card [class*="map-copyrights-promo"],
.map-card [class*="gotoymaps"] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 2.5vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 58, 0.62);
  backdrop-filter: blur(0.2083vw);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 82vw);
  height: min(46vw, 88vh);
  display: grid;
  grid-template-columns: minmax(24vw, 0.8fr) minmax(0, 1.2fr);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 1.6667vw 4.1667vw rgba(11, 31, 58, 0.24);
}

.modal-media {
  min-width: 0;
  padding: 2vw;
  background: var(--mist);
}

.modal-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.modal-copy {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  padding: 3.2vw 4.2vw 3vw 3.4vw;
  scrollbar-gutter: stable;
}

.modal-copy .eyebrow {
  margin-bottom: 0.9722vw;
  font-size: 0.8333vw;
}

.modal-copy h2 {
  font-size: 3.3333vw;
}

.modal-text {
  display: grid;
  gap: 1vw;
  margin-top: 1.6667vw;
}

.modal-text p {
  margin: 0;
  color: var(--ink);
  font-size: 1vw;
  line-height: 1.7;
}

.modal-text a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.2083vw;
}

.modal-close {
  position: absolute;
  top: 1.1111vw;
  right: 1.1111vw;
  z-index: 2;
  width: 2.9167vw;
  height: 2.9167vw;
  display: grid;
  place-items: center;
  border: 0.0694vw solid var(--line);
  border-radius: 0.5556vw;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition:
    color 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}

.modal-close:hover {
  color: var(--blue);
  border-color: rgba(0, 71, 184, 0.34);
  transform: translateY(-0.1389vw);
}

.modal-close svg {
  width: 1.25vw;
  height: 1.25vw;
}

.footer-panel {
  position: relative;
  flex: 0 0 auto;
  padding: 2.8vw 0 2.4vw;
  color: var(--white);
  background:
    radial-gradient(circle at 100% 0%, rgba(120, 174, 244, 0.32), transparent 38%),
    linear-gradient(120deg, rgba(0, 71, 184, 0.94) 0%, rgba(10, 85, 203, 0.9) 58%, rgba(0, 63, 159, 0.92) 100%);
  backdrop-filter: blur(0.1389vw);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2.2222vw;
  align-items: center;
}

.footer-content {
  display: grid;
  grid-template-columns: 0.9fr 1.05fr 1.25fr;
  gap: 1.6667vw 2.2222vw;
  align-items: start;
}

.footer-group {
  min-width: 0;
}

.footer-panel p {
  margin: 0 0 0.4861vw;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9722vw;
  line-height: 1.5;
}

.footer-panel strong {
  color: var(--white);
}

.footer-panel a {
  color: var(--white);
}

.copyright {
  grid-column: 1 / -1;
  margin: 0.4167vw 0 0 !important;
  color: rgba(255, 255, 255, 0.74) !important;
}

.to-top {
  position: static;
  width: 2.9167vw;
  height: 2.9167vw;
  display: grid;
  place-items: center;
  border: 0.0694vw solid rgba(255, 255, 255, 0.48);
  border-radius: 0.5556vw;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.to-top:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-0.1389vw);
}

@media (min-width: 48em) and (max-width: 64em) {
  :root {
    --container: 100%;
    --section-x: 3.13vw;
    --section-y: 7.81vw;
    --gap: 2.6vw;
    --card-padding: 3.13vw;
    --radius: 1.04vw;
    --header-gap: 2.6vw;
    --hero-gap: 3.91vw;
    --hero-y: 7.29vw;
  }

  .container {
    width: calc(100% - (var(--section-x) * 2));
  }

  .header-shell {
    grid-template-columns: auto auto;
    justify-content: space-between;
    min-height: 10vw;
    gap: 0;
  }

  .brand {
    gap: 1.56vw;
    min-width: 0;
  }

  .brand-mark {
    width: 6.25vw;
    height: 6.25vw;
  }

  .brand-mark img {
    width: 4.95vw;
    height: 4.95vw;
  }

  .brand-text span {
    font-size: 3.13vw;
  }

  .brand-text small {
    margin-top: 0.52vw;
    font-size: 1.17vw;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    width: 5.86vw;
    height: 5.86vw;
    border-width: 0.13vw;
    border-radius: 1.04vw;
  }

  .menu-toggle svg {
    width: 2.73vw;
    height: 2.73vw;
  }

  .main-nav,
  .header-contacts {
    display: none;
  }

  .main-nav.is-open,
  .header-contacts.is-open {
    display: grid;
    grid-column: 1 / -1;
    width: 100%;
    justify-content: stretch;
    gap: 0;
  }

  .main-nav.is-open {
    margin-top: 1.56vw;
    padding: 2.34vw 3.13vw;
    border: 0.13vw solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--soft-shadow);
  }

  .main-nav.is-open a {
    padding: 1.82vw 0;
    font-size: 2.08vw;
  }

  .main-nav.is-open a::after {
    bottom: 0.91vw;
    right: auto;
    width: 6.51vw;
    height: 0.2vw;
  }

  .header-contacts.is-open {
    padding: 2.08vw 3.13vw 3.13vw;
    gap: 1.3vw;
    font-size: 1.82vw;
  }

  .header-contacts.is-open svg {
    width: 2.34vw;
    height: 2.34vw;
  }

  h1 {
    font-size: 5.86vw;
  }

  h2 {
    font-size: 4.17vw;
  }

  .eyebrow,
  .text-link,
  .step p,
  .service-card p,
  .form-status,
  .footer-panel p {
    font-size: 1.82vw;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(31vw, 0.68fr);
    gap: var(--gap);
    min-height: 46.88vw;
    padding: var(--hero-y) 0;
  }

  .hero-lead {
    width: 48vw;
    font-size: 1.82vw;
  }

  .hero-card {
    width: 100%;
    max-width: none;
  }

  .hero-card-item {
    grid-template-columns: 5.2vw 1fr;
  }

  .hero-card-item svg {
    width: 3.91vw;
    height: 3.91vw;
  }

  .hero-card-item p,
  .service-card h3,
  .card-bottom strong,
  .about-copy p,
  .consultation-copy p,
  .contacts-info li {
    font-size: 2.08vw;
  }

  .btn {
    min-height: 6.77vw;
    padding: 0 3.13vw;
    font-size: 2.08vw;
    border-radius: 1.04vw;
  }

  .btn svg {
    width: 2.34vw;
    height: 2.34vw;
  }

  .workflow {
    padding: 5.21vw 0 6.77vw;
  }

  .workflow h2 {
    font-size: 3.65vw;
  }

  .steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2.08vw;
    overflow: visible;
    padding-bottom: 1.56vw;
  }

  .step {
    scroll-snap-align: start;
  }

  .step-arrow {
    display: none;
  }

  .step svg {
    width: 4.43vw;
    height: 4.43vw;
  }

  .step span {
    margin-top: 1.56vw;
    font-size: 3.13vw;
  }

  .step h3 {
    font-size: 2.08vw;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card {
    min-height: 32.55vw;
  }

  .icon-ring {
    width: 6.25vw;
    height: 6.25vw;
  }

  .icon-ring svg {
    width: 3.52vw;
    height: 3.52vw;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 3.91vw;
  }

  .about-image img {
    height: 31.25vw;
  }

  .advantage-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3.13vw 2.08vw;
  }

  .advantage-grid svg {
    width: 4.17vw;
    height: 4.17vw;
  }

  .advantage-grid h3 {
    font-size: 1.82vw;
  }

  .consultation-grid {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 4.17vw;
  }

  input {
    height: 6.51vw;
    padding: 0 2.08vw;
  }

  textarea {
    min-height: 14.32vw;
    padding: 1.82vw 2.08vw;
  }

  input,
  textarea,
  .consent {
    font-size: 1.82vw;
  }

  .consent {
    grid-template-columns: 2.34vw 1fr;
    gap: 1.3vw;
  }

  .consent input {
    width: 2.34vw;
    height: 2.34vw;
  }

  .contacts-grid {
    grid-template-columns: minmax(0, 0.78fr) minmax(44vw, 1.22fr);
    gap: 3vw;
  }

  .contacts-info {
    padding: 5.21vw 3.13vw 4.43vw 0;
  }

  .contacts-info svg {
    width: 2.34vw;
    height: 2.34vw;
  }

  .map-card {
    padding: 4.17vw 0;
  }

  .map-fallback,
  .yandex-map {
    height: 31.25vw;
  }

  .modal-dialog {
    width: min(100%, 90vw);
    height: min(56vw, 88vh);
    grid-template-columns: minmax(26vw, 0.82fr) minmax(0, 1.18fr);
  }

  .modal-text p {
    font-size: 1.82vw;
  }

  .modal-copy .eyebrow {
    font-size: 1.82vw;
  }

  .footer-panel {
    padding: 4.17vw 0;
  }

  .footer-content {
    grid-template-columns: 0.95fr 1fr 1.1fr;
    gap: 2.08vw;
  }

  .to-top {
    width: 5.21vw;
    height: 5.21vw;
  }
}

@media (min-width: 22.5em) and (max-width: 47.9375em) {
  :root {
    --container: 100%;
    --section-x: 5.56vw;
    --section-y: 13.33vw;
    --gap: 4.44vw;
    --card-padding: 6.11vw;
    --radius: 2.22vw;
    --header-gap: 0;
    --hero-gap: 5.56vw;
    --hero-y: 12.78vw;
  }

  .container {
    width: calc(100% - (var(--section-x) * 2));
  }

  .header-shell {
    grid-template-columns: auto auto;
    justify-content: space-between;
    min-height: 16.67vw;
    gap: 0;
  }

  .brand {
    min-width: 0;
    gap: 2.78vw;
  }

  .brand-mark {
    width: 11.11vw;
    height: 11.11vw;
    border-width: 0.28vw;
  }

  .brand-mark img {
    width: 8.89vw;
    height: 8.89vw;
  }

  .brand-text span {
    font-size: 6.11vw;
  }

  .brand-text small {
    margin-top: 0.83vw;
    font-size: 2.5vw;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    width: 11.11vw;
    height: 11.11vw;
    border-width: 0.28vw;
    border-radius: 2.22vw;
  }

  .menu-toggle svg {
    width: 5.56vw;
    height: 5.56vw;
  }

  .main-nav,
  .header-contacts {
    display: none;
  }

  .main-nav.is-open,
  .header-contacts.is-open {
    display: grid;
    grid-column: 1 / -1;
    width: 100%;
    justify-content: stretch;
    gap: 0;
  }

  .main-nav.is-open {
    margin-top: 3.33vw;
    padding: 3.33vw 4.44vw;
    border: 0.28vw solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--soft-shadow);
  }

  .main-nav.is-open a {
    padding: 3.33vw 0;
    font-size: 4.17vw;
  }

  .main-nav.is-open a::after {
    display: none;
  }

  .header-contacts.is-open {
    padding: 4.44vw;
    gap: 2.22vw;
    font-size: 3.61vw;
  }

  .header-contacts.is-open svg {
    width: 4.44vw;
    height: 4.44vw;
  }

  h1 {
    font-size: calc(5vw + 1.35em);
    line-height: 1;
  }

  h2 {
    font-size: calc(3.5vw + 1.05em);
    line-height: 1.05;
  }

  .workflow h2 {
    font-size: calc(3vw + 1em);
  }

  .eyebrow {
    margin-bottom: 3.33vw;
    font-size: calc(0.9vw + 0.55em);
  }

  .title-line {
    width: 8.33vw;
    height: 0.56vw;
    margin-top: 2.78vw;
  }

  .hero,
  .hero-grid {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--hero-gap);
    padding: var(--hero-y) 0 13.33vw;
  }

  .hero-lead {
    width: 100%;
    margin: 5vw 0 6.67vw;
    font-size: calc(1.35vw + 0.82em);
  }

  .btn {
    width: 100%;
    min-height: calc(7vw + 1.45em);
    padding: 0 5.56vw;
    border-radius: 2.22vw;
    font-size: calc(1.2vw + 0.78em);
    white-space: normal;
  }

  .btn svg {
    width: 5vw;
    height: 5vw;
  }

  .hero-card {
    width: 100%;
    padding: var(--card-padding);
  }

  .hero-card-item {
    grid-template-columns: 10vw 1fr;
    gap: 3.89vw;
  }

  .hero-card-item + .hero-card-item {
    margin-top: 5vw;
  }

  .hero-card-item svg {
    width: 8.89vw;
    height: 8.89vw;
  }

  .hero-card-item p {
    font-size: calc(1vw + 0.72em);
  }

  .workflow {
    padding: 8.8889vw 0 11.6667vw;
  }

  .workflow-top,
  .section-top {
    display: grid;
    gap: var(--gap);
    margin-bottom: 7.78vw;
  }

  .steps {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .step {
    padding: 5vw 0;
    border-bottom: 0.2778vw solid rgba(255, 255, 255, 0.16);
  }

  .step-arrow {
    display: none;
  }

  .step svg {
    width: 8.89vw;
    height: 8.89vw;
  }

  .step span {
    margin-top: 3.33vw;
    font-size: 6.94vw;
  }

  .step h3,
  .service-card h3,
  .advantage-grid h3 {
    font-size: calc(1.2vw + 0.78em);
  }

  .step p,
  .service-card p,
  .about-copy p,
  .consultation-copy p,
  .contacts-info li,
  .text-link,
  .form-status {
    font-size: calc(1vw + 0.72em);
  }

  .services,
  .about,
  .advantages {
    padding-top: var(--section-y);
  }

  .about-grid,
  .consultation-grid,
  .contacts-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    gap: calc(var(--gap) * 1.7);
  }

  .about-image img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .advantage-grid {
    grid-template-columns: 1fr;
    gap: 7.7778vw var(--gap);
  }

  .advantage-grid svg {
    width: 8.89vw;
    height: 8.89vw;
  }

  .icon-ring {
    width: 13.33vw;
    height: 13.33vw;
  }

  .icon-ring svg {
    width: 7.22vw;
    height: 7.22vw;
  }

  .service-card {
    min-height: auto;
    padding: var(--card-padding);
  }

  .card-bottom strong {
    font-size: calc(1.15vw + 0.78em);
  }

  .card-bottom svg {
    width: 5vw;
    height: 5vw;
  }

  .consultation {
    margin-top: var(--section-y);
    padding: var(--section-y) 0;
  }

  .consultation-grid {
    gap: calc(var(--gap) * 1.8);
  }

  .form-row,
  .form-footer {
    grid-template-columns: 1fr;
  }

  input,
  textarea {
    border-width: 0.28vw;
    border-radius: 2.22vw;
    font-size: calc(1vw + 0.72em);
  }

  input {
    height: 13.33vw;
    padding: 0 4.44vw;
  }

  textarea {
    min-height: 38.89vw;
    padding: 4.44vw;
  }

  .consent {
    grid-template-columns: 5vw 1fr;
    gap: 3.33vw;
    font-size: calc(0.75vw + 0.66em);
  }

  .consent input {
    width: 5vw;
    height: 5vw;
    margin-top: 0.56vw;
  }

  .contacts-info {
    padding: 11.6667vw 0 4.4444vw;
  }

  .contacts-info ul {
    gap: 4.44vw;
    margin-top: 5.56vw;
  }

  .contacts-info li {
    grid-template-columns: 7.22vw 1fr;
    gap: 3.33vw;
    align-items: start;
  }

  .contacts-info svg {
    width: 6.11vw;
    height: 6.11vw;
    stroke-width: 2.3;
  }

  .map-card {
    height: 81.11vw;
    box-sizing: border-box;
    padding: 5.5556vw 0 11.6667vw;
  }

  .map-fallback {
    left: 0;
    right: 0;
  }

  .map-fallback,
  .yandex-map {
    height: 63.89vw;
  }

  .modal {
    padding: 5.5556vw;
    align-items: start;
    overflow-y: auto;
  }

  .modal-dialog {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    grid-template-columns: 1fr;
    margin-top: 3.3333vw;
    overflow: visible;
    border-radius: 2.2222vw;
  }

  .modal-media {
    padding: 5.5556vw 5.5556vw 0;
  }

  .modal-media img {
    height: auto;
    max-height: 86.6667vw;
    aspect-ratio: 3 / 4;
  }

  .modal-copy {
    overflow: visible;
    padding: 7.7778vw 5.5556vw 8.8889vw;
  }

  .modal-copy h2 {
    font-size: 12.2222vw;
  }

  .modal-copy .eyebrow {
    font-size: calc(0.9vw + 0.55em);
  }

  .modal-text {
    gap: 4.4444vw;
    margin-top: 5.5556vw;
  }

  .modal-text p {
    font-size: calc(0.95vw + 0.76em);
  }

  .modal-close {
    top: 3.3333vw;
    right: 3.3333vw;
    width: 11.11vw;
    height: 11.11vw;
    border-radius: 2.22vw;
  }

  .modal-close svg {
    width: 5vw;
    height: 5vw;
  }

  .footer-panel {
    margin: 0;
    padding: 9.4444vw 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 6.6667vw;
    align-items: start;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 3.8889vw;
  }

  .copyright {
    margin-top: 1.6667vw !important;
  }

  .to-top {
    width: 11.11vw;
    height: 11.11vw;
  }

  .footer-panel p {
    font-size: calc(0.9vw + 0.7em);
  }
}
