:root {
  color-scheme: light;
  --navy: #0a2147;
  --navy-2: #173b67;
  --blue: #4f8ddd;
  --mist: #eef5fb;
  --mist-2: #f7faff;
  --line: #d9e5ef;
  --text: #16213a;
  --muted: #657187;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(10, 33, 71, .09);
  --shadow-soft: 0 12px 30px rgba(10, 33, 71, .07);
  --container: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 22px;
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--white);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--white);
  font-size: 17px;
  line-height: 1.55;
}

body.menu-open {
  overflow: hidden;
}

/* Continuous desktop cursor light shared by every section. */
.site-cursor-glow {
  --site-glow-x: 50vw;
  --site-glow-y: 50vh;
  position: fixed;
  z-index: 1;
  inset: 0;
  background: radial-gradient(
    circle 310px at var(--site-glow-x) var(--site-glow-y),
    rgba(83, 150, 230, .13),
    rgba(83, 150, 230, .045) 44%,
    transparent 73%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
  will-change: background;
}

html.has-site-cursor-glow .site-cursor-glow {
  opacity: .88;
}

/* Keep the cursor light above section backgrounds and below all page content. */
#main-content > section > .container,
.site-footer > .container {
  position: relative;
  z-index: 2;
}

#main-content > .hero > .scroll-cue {
  z-index: 2;
}

/* Allow isolated sections to share the page-wide layer order. */
#main-content > .hero,
#main-content > .process {
  isolation: auto;
}

/* The former section-only spotlight is replaced by the continuous layer. */
.process::after {
  display: none;
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .site-cursor-glow {
    display: none;
  }
}

img {
  max-width: 100%;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(79, 141, 221, .48);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  color: var(--white);
  background: var(--navy);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  color: var(--navy);
}

h1 {
  margin: 0;
  font-size: clamp(48px, 5.1vw, 78px);
  font-weight: 650;
  letter-spacing: -.055em;
  line-height: 1.04;
}

h2 {
  margin: 0;
  font-size: clamp(40px, 4vw, 58px);
  font-weight: 650;
  letter-spacing: -.05em;
  line-height: 1.08;
}

.section {
  padding-block: clamp(84px, 8vw, 128px);
}

.section-heading {
  margin-bottom: clamp(42px, 5vw, 66px);
}

.section-heading--split {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(260px, 4fr);
  gap: 48px;
  align-items: end;
}

.section-heading--split > p {
  max-width: 420px;
  margin: 0 0 6px;
  color: var(--muted);
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  isolation: isolate;
  overflow: hidden;
  cursor: pointer;
  transform: translateZ(0);
  transition: color .32s ease, background-color .32s ease, border-color .32s ease, transform .34s cubic-bezier(.2, .75, .25, 1), box-shadow .34s cubic-bezier(.2, .75, .25, 1);
}

.button::before {
  content: "";
  position: absolute;
  inset: -45% -30%;
  z-index: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(124, 177, 236, .25) 50%, transparent 62%);
  pointer-events: none;
  transform: translateX(-115%);
  transition: transform .7s cubic-bezier(.2, .75, .25, 1);
}

.button:hover {
  transform: translateY(-3px) scale(1.012);
}

.button:hover::before {
  transform: translateX(115%);
}

.button:active {
  transform: translateY(0) scale(.975);
  transition-duration: .1s;
}

.button--navy {
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 12px 24px rgba(10, 33, 71, .14);
}

.button--navy:hover {
  background: var(--navy-2);
  box-shadow: 0 18px 34px rgba(10, 33, 71, .22);
}

.button--outline {
  color: var(--navy);
  background: var(--white);
  border-color: rgba(10, 33, 71, .62);
}

.button--outline:hover {
  background: #f1f6fc;
  border-color: var(--navy);
  box-shadow: 0 12px 26px rgba(10, 33, 71, .1);
}

.button--small {
  min-height: 44px;
  padding-inline: 18px;
  border-radius: 8px;
  font-size: 14px;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: 78px;
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid rgba(217, 229, 239, .86);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  display: grid;
  height: 100%;
  grid-template-columns: minmax(180px, 1fr) auto minmax(300px, 1fr);
  gap: 32px;
  align-items: center;
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .06em;
  text-decoration: none;
}

.brand--official {
  width: 200px;
  height: 56px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.brand--official img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand__mark {
  position: relative;
  display: grid;
  width: 30px;
  height: 34px;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border: 1px solid var(--navy);
}

.brand__mark::before,
.brand__mark::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(79, 141, 221, .5);
}

.brand__mark::before {
  inset: -4px 3px 3px -4px;
}

.brand__mark::after {
  inset: 3px -4px -4px 3px;
}

.brand__mark i {
  border-right: 1px solid var(--navy);
}

.brand__mark i:last-child {
  border-right: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 2.4vw, 42px);
}

.site-nav a {
  position: relative;
  padding: 28px 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  height: 1px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-contact {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 18px;
}

.header-phone {
  color: var(--navy);
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  transition: color .28s ease, transform .3s cubic-bezier(.2, .75, .25, 1);
}

.menu-toggle:hover {
  color: var(--blue);
  transform: translateY(-1px);
}

.menu-toggle:active {
  transform: scale(.96);
}

.hero {
  position: relative;
  min-height: auto;
  padding: clamp(42px, 4.5vw, 64px) 0 clamp(56px, 5vw, 76px);
  background-color: var(--white);
  background-image: url("../images/hero-integrated-real-v1.webp");
  background-position: right center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(500px, 7fr);
  gap: clamp(48px, 6vw, 92px);
  align-items: center;
}

.hero__copy {
  position: relative;
  z-index: 2;
  padding-block: 0;
}

.hero__lead {
  max-width: 570px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.hero__assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 0;
  margin: 56px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  list-style: none;
}

.hero__assurances li {
  display: flex;
  align-items: center;
}

.hero__assurances li:not(:last-child)::after {
  content: "";
  width: 1px;
  height: 22px;
  margin-inline: 18px;
  background: var(--line);
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  display: grid;
  width: 40px;
  height: 48px;
  place-items: center;
  color: var(--navy);
  border: 1px solid rgba(79, 141, 221, .5);
  border-radius: 20px;
  text-decoration: none;
  transform: translateX(-50%);
  transition: color .3s ease, background-color .3s ease, border-color .3s ease, box-shadow .3s ease, transform .3s cubic-bezier(.2, .75, .25, 1), opacity .22s ease, visibility .22s ease;
}

.scroll-cue:hover {
  color: var(--blue);
  background: rgba(234, 243, 252, .72);
  border-color: var(--blue);
  box-shadow: 0 12px 24px rgba(10, 33, 71, .11);
  transform: translate(-50%, -3px);
}

.scroll-cue:active {
  transform: translate(-50%, 0) scale(.94);
}

.scroll-cue.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
}

.services {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--white) 0, #fbfdff 100%);
}

.services::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 70px;
  left: -12vw;
  width: 62vw;
  height: 360px;
  background: radial-gradient(ellipse at center, rgba(218, 234, 248, .62), rgba(238, 245, 251, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.services .container {
  position: relative;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(360px, 5fr);
  grid-template-rows: repeat(2, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  display: grid;
  overflow: hidden;
  color: var(--navy);
  background: var(--white);
  border: 1px solid rgba(10, 33, 71, .1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.service-card:hover {
  border-color: rgba(79, 141, 221, .52);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.service-card--main {
  grid-row: 1 / 3;
  grid-template-rows: minmax(0, 1fr) auto;
}

.service-card--side {
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, .85fr);
}

.service-card__image {
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--mist-2);
}

.service-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}

.service-card:hover .service-card__image img {
  transform: scale(1.025);
}

.service-card--main .service-card__image {
  min-height: 470px;
}

.service-card--main .service-card__image img {
  object-position: 50% 36%;
}

.service-card__content {
  display: grid;
  align-items: start;
  gap: 18px;
  padding: 28px 30px;
}

.service-card--main .service-card__content {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 34px 38px;
}

.service-card__content strong,
.service-card__content small,
.service-card__link {
  display: block;
}

.service-card__content strong {
  font-size: clamp(21px, 2vw, 30px);
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.18;
}

.service-card--side .service-card__content strong {
  font-size: clamp(20px, 1.65vw, 26px);
}

.service-card__content small {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.service-card__link {
  align-self: end;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}

.service-card__link b {
  display: inline-block;
  margin-left: 8px;
  transition: transform .2s ease;
}

.service-card:hover .service-card__link b {
  transform: translateX(4px);
}

.calculator {
  padding-top: 70px;
  background: var(--white);
}

.calculator-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(560px, 7fr);
  min-height: 690px;
  overflow: visible;
  color: var(--white);
  background: var(--navy);
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(10, 33, 71, .15);
}

.calculator-intro {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  padding: clamp(42px, 5vw, 72px);
}

.calculator-intro h2 {
  position: relative;
  z-index: 2;
  max-width: 560px;
  color: var(--white);
  font-size: clamp(38px, 3.7vw, 58px);
}

.calculator-intro > p {
  position: relative;
  z-index: 2;
  max-width: 480px;
  margin: 28px 0 0;
  color: #b9cde5;
}

.calculator-intro__drawing {
  position: absolute;
  right: -22%;
  bottom: 4%;
  width: 70%;
  height: 48%;
  opacity: .18;
}

.calculator-intro__drawing span {
  position: absolute;
  inset: 0;
  border: 1px solid #8db9ee;
}

.calculator-intro__drawing span:nth-child(2) {
  inset: 10% 13% -10% -13%;
}

.calculator-intro__drawing span:nth-child(3) {
  inset: 20% 26% -20% -26%;
}

.calculator-phone {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
}

.calculator-phone__icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(141, 185, 238, .62);
  border-radius: 12px;
  font-size: 22px;
}

.calculator-phone small,
.calculator-phone a {
  display: block;
}

.calculator-phone small {
  margin-bottom: 4px;
  color: #b9cde5;
}

.calculator-phone a {
  color: var(--white);
  font-size: 21px;
  font-weight: 650;
  text-decoration: none;
}

.quiz {
  position: relative;
  z-index: 3;
  align-self: center;
  width: calc(100% - 36px);
  min-height: calc(100% - 42px);
  margin: 21px 24px 21px 12px;
  padding: clamp(34px, 4vw, 56px);
  color: var(--text);
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 22px 48px rgba(0, 12, 36, .19);
}

.quiz__top {
  margin-bottom: 34px;
}

.quiz__step-label {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 15px;
}

.quiz__progress {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.quiz__progress i {
  height: 8px;
  background: #e9edf2;
  border-radius: 999px;
}

.quiz__progress i.is-active,
.quiz__progress i.is-complete {
  background: var(--navy);
}

.quiz fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.quiz legend {
  width: 100%;
  margin-bottom: 24px;
  color: var(--navy);
  font-size: clamp(27px, 2.3vw, 36px);
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.2;
}

.choice {
  position: relative;
  display: flex;
  min-height: 70px;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
  padding: 15px 20px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: background-color .28s ease, border-color .28s ease, box-shadow .3s ease, transform .3s cubic-bezier(.2, .75, .25, 1);
}

.choice[hidden] {
  display: none !important;
}

.choice:hover {
  background: #fbfdff;
  border-color: #9fbbda;
  box-shadow: 0 10px 22px rgba(10, 33, 71, .08);
  transform: translateY(-2px);
}

.choice:active {
  transform: translateY(0) scale(.99);
}

.choice:has(input:checked) {
  background: var(--mist);
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice > span:last-child {
  font-size: 17px;
  font-weight: 600;
}

.choice__icon {
  position: relative;
  display: inline-block;
  width: 72px;
  height: 58px;
  flex: 0 0 72px;
  overflow: hidden;
  background-color: #f6f9fc;
  background-position: center;
  background-size: 88% 88%;
  background-repeat: no-repeat;
  border: 1px solid rgba(10, 33, 71, .08);
  border-radius: 10px;
  transition: background-color .28s ease, transform .35s cubic-bezier(.2, .75, .25, 1);
}

.choice:hover .choice__icon {
  background-color: #edf5fd;
  transform: scale(1.07);
}

.choice__icon--window {
  background-image: url("../images/quiz/window-v4.webp");
}

.choice__icon--balcony {
  background-image: url("../images/quiz/balcony-v4.webp");
}

.choice__icon--house {
  background-image: url("../images/quiz/cottage-v4.webp");
}

.choice__icon--commercial {
  background-image: url("../images/quiz/commercial-v1.webp");
}

.choice__icon--volume-single {
  background-image: url("../images/quiz/volume-single-v1.webp");
}

.choice__icon--volume-apartment {
  background-image: url("../images/quiz/volume-apartment-v1.webp");
}

.choice__icon--volume-balcony-block {
  background-image: url("../images/quiz/volume-balcony-block-v1.webp");
}

.choice__icon--volume-house {
  background-image: url("../images/quiz/volume-house-v1.webp");
}

.choice__icon--volume-loggia {
  background-image: url("../images/quiz/volume-loggia-v1.webp");
}

.choice__icon--opening-fixed {
  background-image: url("../images/quiz/opening-fixed-v1.webp");
}

.choice__icon--opening-single {
  background-image: url("../images/quiz/opening-single-v1.webp");
}

.choice__icon--opening-multiple {
  background-image: url("../images/quiz/opening-multiple-v1.webp");
}

.choice__icon--opening-consultation {
  background-image: url("../images/quiz/opening-consultation-v1.webp");
}

.choice__icon--time-week {
  background-image: url("../images/quiz/time-week-v1.webp");
}

.choice__icon--time-fortnight {
  background-image: url("../images/quiz/time-fortnight-v1.webp");
}

.choice__icon--time-month {
  background-image: url("../images/quiz/time-month-v1.webp");
}

.quiz__hint {
  max-width: 620px;
  margin: -8px 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.quiz__actions {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

.quiz__actions .button {
  flex: 1;
}

.quiz__error {
  min-height: 24px;
  margin: 14px 0 -10px;
  color: #9e2c2c;
  font-size: 14px;
}

.field + .field {
  margin-top: 16px;
}

.field label,
.contact-method > span {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}

.field label span {
  color: var(--muted);
  font-weight: 500;
}

.field input {
  width: 100%;
  height: 58px;
  padding: 0 16px;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.field input:focus {
  border-color: var(--blue);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(79, 141, 221, .14);
}

.contact-method {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
}

.contact-method > span {
  width: 100%;
}

.contact-method label {
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}

.privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.privacy input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  accent-color: var(--navy);
}

.privacy a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.privacy a:hover,
.privacy a:focus-visible {
  color: var(--blue);
}

.quiz__success {
  padding-top: 60px;
}

.quiz__success strong {
  display: block;
  color: var(--navy);
  font-size: clamp(34px, 3vw, 48px);
  letter-spacing: -.04em;
}

.quiz__success p {
  max-width: 520px;
  color: var(--muted);
}

.quiz__success > div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

@media (max-width: 1180px) {
  .site-header__inner {
    grid-template-columns: auto 1fr auto;
  }

  .site-nav {
    gap: 22px;
  }

  .site-nav a:nth-child(4),
  .site-nav a:nth-child(5) {
    display: none;
  }

  .header-contact .button {
    display: none;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(430px, .9fr);
    gap: 42px;
  }

  .hero__assurances li:not(:last-child)::after {
    margin-inline: 12px;
  }

  .services-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr);
  }

  .service-card--side {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(150px, 1fr) auto;
  }

  .service-card--side .service-card__content {
    grid-template-columns: auto 1fr;
  }

  .service-card--side .service-card__link {
    grid-column: 2;
  }

  .calculator-shell {
    grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr);
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 80px;
  }

.anatomy__visual .line-illustration,
.anatomy__visual .section-photo {
    height: clamp(220px, 43vw, 330px);
  }

  .site-header {
    height: 68px;
  }

  .site-header__inner {
    grid-template-columns: 1fr auto;
  }

  .brand {
    font-size: 15px;
  }

  .brand__mark {
    width: 26px;
    height: 29px;
  }

  .menu-toggle {
    position: relative;
    z-index: 102;
    display: inline-flex;
    grid-column: 2;
    align-items: center;
    gap: 10px;
    padding: 10px 0 10px 12px;
    color: var(--navy);
    background: transparent;
    border: 0;
    font-weight: 700;
  }

  .menu-toggle i,
  .menu-toggle i::before {
    display: block;
    width: 22px;
    height: 1.5px;
    background: currentColor;
    transition: transform .2s ease;
  }

  .menu-toggle i::before {
    content: "";
    transform: translateY(7px);
  }

  .menu-toggle[aria-expanded="true"] i {
    transform: rotate(45deg) translateY(2px);
  }

  .menu-toggle[aria-expanded="true"] i::before {
    transform: rotate(-90deg);
  }

  .site-nav {
    position: fixed;
    z-index: 101;
    top: 68px;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    align-content: start;
    padding: 30px var(--gutter);
    background: rgba(255, 255, 255, .98);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a,
  .site-nav a:nth-child(4),
  .site-nav a:nth-child(5) {
    display: block;
    padding: 18px 0;
    font-size: 20px;
    border-bottom: 1px solid var(--line);
  }

  .header-contact {
    position: fixed;
    z-index: 102;
    right: var(--gutter);
    bottom: 24px;
    left: var(--gutter);
    display: none;
    justify-content: center;
    padding: 16px;
    background: var(--mist);
    border-radius: 12px;
  }

  body.menu-open .header-contact {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 56px 0 clamp(330px, 54vw, 470px);
    background-position: right bottom;
    background-size: auto 52%;
  }

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

  .hero__copy {
    max-width: 680px;
    padding-block: 0;
  }

  .scroll-cue {
    display: none;
  }

  .section-heading--split {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .service-card--main {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .service-card--main .service-card__image {
    min-height: 390px;
  }

  .service-card--side {
    min-height: 500px;
  }

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

  .calculator-intro {
    min-height: 500px;
  }

  .quiz {
    width: auto;
    min-height: 600px;
    margin: -60px 22px 22px;
  }
}

@media (max-width: 620px) {
  :root {
    --gutter: 20px;
    --radius: 18px;
  }

  body {
    font-size: 16px;
  }

  .brand--official {
    width: 164px;
    height: 46px;
    padding: 5px 8px;
  }

  h1 {
    font-size: clamp(42px, 12vw, 58px);
  }

  h2 {
    font-size: clamp(34px, 9vw, 46px);
  }

  .section {
    padding-block: 76px;
  }

  .hero__lead {
    margin-top: 24px;
    font-size: 18px;
  }

  .hero__actions {
    display: grid;
    margin-top: 30px;
  }

  .hero__actions .button {
    width: 100%;
  }

  .hero__assurances {
    display: grid;
    gap: 10px;
    margin-top: 36px;
    font-size: 13px;
  }

  .hero__assurances li:not(:last-child)::after {
    display: none;
  }

  .hero {
    padding-bottom: clamp(260px, 74vw, 380px);
    background-size: auto 43%;
  }

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

  .service-card--main,
  .service-card--side {
    grid-column: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: 0;
  }

  .service-card--main .service-card__image,
  .service-card--side .service-card__image {
    min-height: 250px;
    aspect-ratio: 4 / 3;
  }

  .service-card--main .service-card__content,
  .service-card--side .service-card__content {
    grid-template-columns: auto 1fr;
    padding: 25px 22px 28px;
  }

  .service-card__link,
  .service-card--side .service-card__link {
    grid-column: 2;
  }

  .calculator {
    padding-top: 20px;
  }

  .calculator-shell {
    border-radius: 20px;
  }

  .calculator-intro {
    min-height: 470px;
    padding: 38px 24px 96px;
  }

  .calculator-intro h2 {
    font-size: 38px;
  }

  .calculator-phone a {
    font-size: 18px;
  }

  .quiz {
    min-height: 0;
    margin: -52px 12px 12px;
    padding: 28px 18px;
    border-radius: 16px;
  }

  .quiz legend {
    font-size: 27px;
  }

  .choice {
    min-height: 66px;
    padding: 13px 15px;
  }

  .choice > span:last-child {
    font-size: 16px;
  }

  .quiz__actions {
    flex-direction: column-reverse;
  }

  .quiz__actions .button {
    width: 100%;
  }

  .quiz__success > div {
    display: grid;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* Review section actions belong after the cards, as a balanced CTA pair. */
.reviews__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 760px);
  gap: 16px;
  margin: clamp(26px, 3vw, 40px) auto 0;
}

.reviews__action {
  width: 100%;
  min-height: 58px;
  justify-content: center;
  text-align: center;
}

@media (max-width: 760px) {
  .reviews__actions {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 20px;
  }

  .reviews__action {
    min-height: 62px;
  }
}

/* Mobile menu is a viewport-level layer, independent from the sticky header. */
.mobile-navigation {
  display: none;
}

@media (max-width: 900px) {
  .site-header .site-nav {
    display: none !important;
  }

  .mobile-navigation {
    position: fixed;
    z-index: 300;
    inset: 0;
    display: block;
    overflow: hidden;
    visibility: hidden;
    background: rgba(7, 25, 51, .32);
    opacity: 0;
    pointer-events: none;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition:
      opacity 220ms ease,
      visibility 0s linear 320ms;
  }

  .mobile-navigation.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition:
      opacity 220ms ease,
      visibility 0s linear 0s;
  }

  .mobile-navigation .mobile-nav {
    position: relative;
    display: flex;
    width: min(100%, 440px);
    height: 100%;
    margin-left: auto;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    color: var(--navy);
    background:
      radial-gradient(circle at 100% 0%, rgba(79, 141, 221, .1), transparent 30%),
      #fff;
    border: 0;
    border-left: 1px solid rgba(210, 224, 237, .9);
    box-shadow: -24px 0 64px rgba(7, 31, 65, .16);
    opacity: 1;
    transform: translateX(100%);
    transition: transform 320ms cubic-bezier(.22, 1, .36, 1);
  }

  .mobile-navigation.is-open .mobile-nav {
    transform: translateX(0);
  }

  .mobile-nav__top {
    display: flex;
    min-height: 66px;
    flex: 0 0 66px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 20px;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid rgba(210, 224, 237, .9);
  }

  .mobile-navigation .mobile-nav__brand {
    width: 148px;
    height: 46px;
  }

  .mobile-nav__close {
    position: relative;
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    padding: 0;
    color: var(--navy);
    background: #f2f7fc;
    border: 1px solid #d7e5f2;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 180ms ease, transform 180ms ease;
  }

  .mobile-nav__close:hover,
  .mobile-nav__close:focus-visible {
    background: #e7f1fb;
  }

  .mobile-nav__close:active {
    transform: scale(.94);
  }

  .mobile-nav__close span,
  .mobile-nav__close span::before {
    display: block;
    width: 19px;
    height: 1.8px;
    border-radius: 999px;
    background: currentColor;
  }

  .mobile-nav__close span {
    transform: rotate(45deg);
  }

  .mobile-nav__close span::before {
    content: "";
    transform: rotate(90deg);
  }

  .mobile-nav__body {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 18px 20px max(22px, env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }

  .mobile-nav__body::-webkit-scrollbar {
    display: none;
    width: 0;
  }

  .mobile-nav__eyebrow {
    display: block;
    margin-bottom: 9px;
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
  }

  .mobile-navigation .mobile-nav__links {
    border-top: 1px solid #dce7f1;
    opacity: 1;
    transform: none;
  }

  .mobile-navigation .mobile-nav__links > .mobile-nav__link,
  .mobile-navigation .mobile-nav__service-row {
    border-bottom: 1px solid #dce7f1;
  }

  .mobile-navigation .mobile-nav__link,
  .mobile-navigation .mobile-nav__links > a.mobile-nav__link,
  .mobile-navigation .mobile-nav__service-row .mobile-nav__link {
    display: grid;
    min-height: 49px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 10px 2px;
    color: var(--navy);
    border: 0;
    outline-offset: -3px;
    font-size: clamp(15px, 4.1vw, 17px);
    font-weight: 720;
    line-height: 1.22;
    text-align: left;
    text-decoration: none;
    transition: color 180ms ease, padding-left 180ms ease;
  }

  .mobile-navigation .mobile-nav__link::after,
  .mobile-navigation .mobile-nav__submenu a::after,
  .mobile-navigation .mobile-nav__phone::after,
  .mobile-navigation .mobile-nav__messengers a::after,
  .mobile-navigation .mobile-nav__brand::after {
    display: none;
  }

  .mobile-navigation .mobile-nav__link:hover,
  .mobile-navigation .mobile-nav__link:focus-visible,
  .mobile-navigation .mobile-nav__link.is-current {
    color: #286fc8;
    padding-left: 6px;
  }

  .mobile-navigation .mobile-nav__label {
    min-width: 0;
  }

  .mobile-navigation .mobile-nav__arrow {
    color: #82a0bf;
    font-size: 17px;
    font-weight: 500;
    transition: transform 180ms ease;
  }

  .mobile-navigation .mobile-nav__link:hover .mobile-nav__arrow,
  .mobile-navigation .mobile-nav__link:focus-visible .mobile-nav__arrow {
    transform: translateX(3px);
  }

  .mobile-navigation .mobile-nav__service-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    align-items: stretch;
  }

  .mobile-navigation .mobile-nav__submenu-toggle {
    position: relative;
    display: grid;
    min-width: 46px;
    min-height: 46px;
    place-items: center;
    padding: 0;
    color: var(--navy);
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  .mobile-navigation .mobile-nav__submenu-toggle::before {
    content: "";
    position: absolute;
    width: 32px;
    height: 32px;
    background: #f1f7fc;
    border: 1px solid #d4e3f1;
    border-radius: 50%;
  }

  .mobile-navigation .mobile-nav__submenu-toggle span {
    position: relative;
    z-index: 1;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 240ms cubic-bezier(.22, 1, .36, 1);
  }

  .mobile-navigation .mobile-nav__submenu-toggle[aria-expanded="true"] span {
    transform: translateY(2px) rotate(225deg);
  }

  .mobile-navigation .mobile-nav__submenu {
    display: grid;
    grid-template-rows: 0fr;
    background: #f5f9fd;
    transition: grid-template-rows 260ms cubic-bezier(.22, 1, .36, 1);
  }

  .mobile-navigation .mobile-nav__submenu > div {
    min-height: 0;
    overflow: hidden;
  }

  .mobile-navigation .mobile-nav__service-group.is-expanded .mobile-nav__submenu {
    grid-template-rows: 1fr;
  }

  .mobile-navigation .mobile-nav__submenu a {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    color: #586f8b;
    border: 0;
    border-bottom: 1px solid rgba(211, 225, 238, .72);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.3;
    text-align: left;
    text-decoration: none;
  }

  .mobile-navigation .mobile-nav__submenu a:last-child {
    border-bottom: 0;
  }

  .mobile-navigation .mobile-nav__footer {
    display: grid;
    gap: 13px;
    margin-top: 18px;
    padding-top: 17px;
    border-top: 1px solid #dce7f1;
    opacity: 1;
    text-align: center;
    transform: none;
  }

  .mobile-navigation .mobile-nav__cta {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    color: #fff;
    border: 0;
    border-radius: 11px;
    background: var(--navy);
    font-size: 15px;
    font-weight: 780;
    box-shadow: 0 12px 26px rgba(10, 33, 71, .16);
  }

  .mobile-nav__contacts {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }

  .mobile-navigation .mobile-nav__phone {
    display: inline-flex;
    min-height: auto;
    padding: 0;
    color: var(--navy);
    border: 0;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
  }

  .mobile-navigation .mobile-nav__messengers {
    display: flex;
    gap: 12px;
  }

  .mobile-navigation .mobile-nav__messengers a {
    min-height: auto;
    padding: 0;
    color: #597797;
    border: 0;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
  }
}

@media (max-width: 640px) {
  .mobile-navigation {
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .mobile-navigation .mobile-nav {
    width: 100%;
    border-left: 0;
    box-shadow: none;
  }
}

@media (max-width: 380px) {
  .mobile-nav__top,
  .mobile-nav__body {
    padding-right: 16px;
    padding-left: 16px;
  }

  .mobile-nav__contacts {
    align-items: center;
    flex-direction: column;
    gap: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-navigation,
  .mobile-navigation .mobile-nav,
  .mobile-navigation .mobile-nav__submenu {
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}

h3 {
  margin: 0;
  font-size: clamp(23px, 2vw, 31px);
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.2;
}

.projects {
  background: var(--white);
}

.project-list {
  display: grid;
  gap: clamp(58px, 7vw, 96px);
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(340px, 5fr);
  gap: clamp(44px, 6vw, 88px);
  align-items: center;
}

.project--reverse .project__photo {
  grid-column: 2;
}

.project--reverse .project__content {
  grid-row: 1;
  grid-column: 1;
}

.project__photo {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: var(--mist);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
  transition: box-shadow .35s ease, transform .35s cubic-bezier(.2, .75, .25, 1);
}

.project__photo:hover {
  box-shadow: 0 24px 54px rgba(10, 33, 71, .16);
  transform: translateY(-4px);
}

.project__photo:active {
  transform: translateY(-1px) scale(.992);
}

.project__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}

.project:first-child .project__photo img {
  object-position: center 36%;
}

.project:nth-child(3) .project__photo img {
  object-position: center 46%;
}

.project__photo:hover img {
  transform: scale(1.025);
}

.project__photo > span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 10px 13px;
  color: var(--white);
  background: rgba(10, 33, 71, .92);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.project__content {
  max-width: 520px;
}

.project__content h3 {
  font-size: clamp(31px, 3.1vw, 48px);
}

.project__content > p {
  margin: 24px 0 0;
  color: var(--muted);
}

.project__facts {
  margin: 34px 0 0;
  border-top: 1px solid var(--line);
}

.project__facts div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.project__facts dt {
  color: var(--muted);
  font-size: 13px;
}

.project__facts dd {
  margin: 0;
  color: var(--navy);
  font-size: 14px;
  font-weight: 650;
}

.anatomy {
  padding-top: 46px;
  background: var(--white);
}

.anatomy-shell {
  display: grid;
  grid-template-columns: minmax(320px, 4fr) minmax(0, 8fr);
  gap: clamp(42px, 5vw, 78px);
  padding: clamp(42px, 5.4vw, 76px);
  background: var(--mist);
  border: 1px solid rgba(10, 33, 71, .08);
  border-radius: 26px;
}

.anatomy__intro {
  align-self: start;
}

.anatomy__intro h2 {
  font-size: clamp(38px, 3.6vw, 54px);
}

.anatomy__intro > p {
  margin: 28px 0 0;
  color: var(--muted);
}

.anatomy__intro .button {
  margin-top: 34px;
}

.anatomy__body {
  min-width: 0;
  background: rgba(255, 255, 255, .65);
  border-radius: 18px;
}

.anatomy__visual {
  margin: 0;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
}

.section-photo {
  display: block;
  width: 100%;
  object-fit: cover;
}

.anatomy__visual .section-photo {
  height: 330px;
  object-position: center;
}

.line-illustration {
  --drawing-ink: rgba(10, 33, 71, .78);
  --drawing-soft: rgba(10, 33, 71, .35);
  --drawing-fill: #f8fbfe;
  position: relative;
  display: block;
  width: 100%;
  height: 330px;
  overflow: hidden;
  background: var(--drawing-fill);
}

.line-illustration__halo {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(79, 141, 221, .08);
  transform: translate(-50%, -50%);
}

.line-window {
  position: absolute;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  width: 38%;
  height: 58%;
  padding: 9px;
  border: 4px solid var(--drawing-ink);
  background: rgba(255, 255, 255, .38);
}

.line-window::before {
  content: "";
  position: absolute;
  left: -10px;
  right: -10px;
  bottom: -12px;
  height: 2px;
  background: var(--drawing-soft);
}

.line-window__pane {
  position: relative;
  border: 2px solid var(--drawing-soft);
  background: rgba(255, 255, 255, .18);
}

.line-window__pane + .line-window__pane {
  margin-left: -2px;
}

.line-window__pane::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(79, 141, 221, .3);
}

.line-illustration--construction .line-window {
  left: 27%;
  top: 14%;
}

.construction-link {
  position: absolute;
  z-index: 3;
  left: 47%;
  bottom: 21%;
  width: 25%;
  height: 25px;
  border: 3px solid var(--drawing-ink);
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .9) 0 15px, rgba(10, 33, 71, .16) 15px 17px);
  transform: rotate(-8deg);
  transform-origin: right center;
}

.construction-detail {
  position: absolute;
  z-index: 4;
  right: 17%;
  bottom: 10%;
  width: 112px;
  aspect-ratio: 1;
  border: 4px solid var(--drawing-ink);
  border-radius: 50%;
  background: #f8fbfe;
}

.construction-detail i {
  position: absolute;
  border: 2px solid var(--drawing-soft);
  border-radius: 50%;
}

.construction-detail__outer {
  inset: 13px;
}

.construction-detail__middle {
  inset: 26px;
  border-color: rgba(79, 141, 221, .65) !important;
}

.construction-detail__core {
  inset: 41px;
  border: 0 !important;
  background: var(--navy);
}

.anatomy__list {
  margin: 0;
  padding: 0 30px 22px;
  list-style: none;
}

.anatomy__list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid rgba(10, 33, 71, .12);
}

.anatomy__list li > span {
  color: var(--blue);
  font-size: 14px;
  font-weight: 750;
}

.anatomy__list h3 {
  font-size: 22px;
}

.anatomy__list p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.trust {
  background: var(--white);
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 7vw, 104px);
  align-items: center;
}

.trust__visual {
  position: relative;
  isolation: isolate;
  margin: 0;
}

.trust__visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -26px;
  bottom: -26px;
  width: 45%;
  height: 72%;
  border: 1px solid rgba(79, 141, 221, .55);
}

.trust__visual .line-illustration,
.trust__visual .section-photo {
  height: 430px;
  border: 1px solid rgba(10, 33, 71, .08);
  border-radius: var(--radius);
}

.trust__visual .section-photo {
  object-position: center;
}

.line-illustration--measure .line-window {
  left: 31%;
  top: 25%;
  width: 39%;
  height: 52%;
}

.measure-line {
  position: absolute;
  z-index: 3;
  color: var(--drawing-ink);
}

.measure-line::before,
.measure-line::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-top: 1px solid currentColor;
  border-left: 1px solid currentColor;
}

.measure-line--horizontal {
  left: 29%;
  top: 15%;
  width: 43%;
  border-top: 1px solid currentColor;
}

.measure-line--horizontal::before {
  left: 0;
  top: -7px;
  transform: rotate(-45deg);
}

.measure-line--horizontal::after {
  right: 0;
  top: -7px;
  transform: rotate(135deg);
}

.measure-line--vertical {
  left: 21%;
  top: 25%;
  height: 52%;
  border-left: 1px solid currentColor;
}

.measure-line--vertical::before {
  left: -7px;
  top: 0;
  transform: rotate(45deg);
}

.measure-line--vertical::after {
  left: -7px;
  bottom: 0;
  transform: rotate(-135deg);
}

.measure-tape {
  position: absolute;
  z-index: 4;
  right: 14%;
  bottom: 10%;
  width: 112px;
  aspect-ratio: 1;
  border: 4px solid var(--drawing-ink);
  border-radius: 50%;
  background: #f8fbfe;
}

.measure-tape::before {
  content: "";
  position: absolute;
  inset: 13px;
  border: 2px solid var(--drawing-soft);
  border-radius: 50%;
}

.measure-tape__ruler {
  position: absolute;
  z-index: -1;
  right: 72%;
  bottom: 5%;
  width: 138px;
  height: 27px;
  border: 3px solid var(--drawing-ink);
  background: repeating-linear-gradient(90deg, #f8fbfe 0 14px, rgba(10, 33, 71, .2) 14px 16px);
  transform: rotate(-9deg);
  transform-origin: right center;
}

.measure-tape__center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 22px;
  border-radius: 999px;
  background: var(--navy);
  transform: translate(-50%, -50%);
}

.trust__lead {
  max-width: 600px;
  margin: 28px 0 0;
  color: var(--muted);
}

.evidence-list {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.evidence-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.evidence-list li > span {
  color: var(--blue);
  font-size: 14px;
  font-weight: 750;
}

.evidence-list h3 {
  font-size: 21px;
}

.evidence-list p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.process {
  padding-top: 54px;
  background: var(--white);
}

.process-shell {
  position: relative;
  overflow: hidden;
  padding: clamp(46px, 5vw, 72px);
  color: var(--white);
  background: linear-gradient(135deg, #071a3a 0%, var(--navy) 55%, #143765 100%);
  border: 1px solid rgba(95, 157, 226, .22);
  border-radius: 28px;
  box-shadow: 0 30px 74px rgba(10, 33, 71, .2);
}

.process-shell::before,
.process-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.process-shell::before {
  top: -180px;
  right: -120px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(88, 153, 230, .23), rgba(88, 153, 230, 0) 68%);
}

.process-shell::after {
  right: 5%;
  bottom: -110px;
  width: 420px;
  height: 220px;
  border: 1px solid rgba(143, 190, 240, .18);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.process .section-heading,
.process-line {
  position: relative;
  z-index: 1;
}

.process .section-heading {
  margin-bottom: 0;
}

.process h2 {
  max-width: 980px;
  color: var(--white);
}

.process-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
}

.process-line::before {
  display: none;
}

.process-line li {
  position: relative;
  min-height: 230px;
  padding: 24px;
  background: rgba(255, 255, 255, .075);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 18px;
  backdrop-filter: blur(5px);
  transition: background-color .32s ease, border-color .32s ease, box-shadow .34s ease, transform .34s cubic-bezier(.2, .75, .25, 1);
}

.process-line li + li {
  padding-left: 24px;
}

.process-line li:last-child {
  padding-right: 24px;
  border-right: 1px solid rgba(255, 255, 255, .13);
}

.process-line li:hover {
  background: rgba(255, 255, 255, .115);
  border-color: rgba(143, 190, 240, .38);
  box-shadow: 0 18px 38px rgba(0, 10, 30, .2);
  transform: translateY(-4px);
}

.process-line li > span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--navy);
  background: var(--white);
  border: 1px solid rgba(143, 190, 240, .42);
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(0, 10, 30, .2);
  font-size: 13px;
  font-weight: 800;
}

.process-line h3 {
  margin-top: 26px;
  color: var(--white);
  font-size: clamp(21px, 1.7vw, 26px);
}

.process-line p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
  line-height: 1.65;
}

.reviews {
  padding-top: 46px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.review-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(180px, .85fr);
  min-height: 360px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(10, 33, 71, .1);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.review-card__body {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.2vw, 44px);
}

.review-card__rating {
  color: var(--blue);
  font-size: 18px;
  letter-spacing: .12em;
}

.review-card blockquote {
  margin: 30px 0 34px;
  color: var(--navy);
  font-size: clamp(19px, 1.65vw, 24px);
  font-weight: 600;
  line-height: 1.45;
}

.review-card blockquote p {
  margin: 0;
}

.review-card footer {
  display: grid;
  gap: 5px;
  margin-top: auto;
}

.review-card footer strong {
  color: var(--navy);
  font-size: 17px;
}

.review-card footer span {
  color: var(--muted);
  font-size: 14px;
}

.review-card__photo {
  position: relative;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  background: var(--mist);
  border: 0;
  cursor: zoom-in;
  transition: box-shadow .32s ease, transform .32s cubic-bezier(.2, .75, .25, 1);
}

.review-card__photo:hover {
  box-shadow: 0 18px 38px rgba(10, 33, 71, .15);
  transform: translateY(-3px);
}

.review-card__photo:active {
  transform: translateY(0) scale(.99);
}

.review-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.review-card__photo:hover img {
  transform: scale(1.025);
}

.review-card__photo span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 10px;
  color: var(--navy);
  background: rgba(255, 255, 255, .92);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.faq {
  background: var(--white);
}

.faq__grid {
  display: grid;
  grid-template-columns: minmax(280px, 4fr) minmax(0, 8fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: start;
}

.faq__intro {
  position: sticky;
  top: 120px;
}

.faq__intro > p {
  max-width: 420px;
  margin: 28px 0 0;
  color: var(--muted);
}

.faq__intro > a {
  display: inline-block;
  margin-top: 20px;
  color: var(--navy);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 750;
  text-decoration: none;
}

.faq__items {
  border-top: 1px solid var(--navy);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 62px 18px 0;
  color: var(--navy);
  font-size: 18px;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
  transition: color .28s ease, background-color .28s ease;
}

.faq summary:hover {
  color: var(--blue);
  background: rgba(234, 243, 252, .42);
}

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

.faq summary span {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
}

.faq summary span::before,
.faq summary span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 1px;
  background: var(--navy);
  transform: translate(-50%, -50%);
}

.faq summary span::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform .2s ease;
}

.faq details[open] summary span::after {
  transform: translate(-50%, -50%) rotate(0);
}

.faq details p {
  max-width: 760px;
  margin: -4px 64px 0 0;
  padding: 0 0 26px;
  color: var(--muted);
}

.contact {
  padding-top: 52px;
  background: var(--white);
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(410px, 5fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
  padding: clamp(42px, 5.5vw, 78px);
  color: var(--white);
  background: var(--navy);
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(10, 33, 71, .15);
}

.contact__copy h2 {
  max-width: 750px;
  color: var(--white);
}

.contact__copy > p {
  max-width: 600px;
  margin: 28px 0 0;
  color: #bed0e5;
}

.contact__phone {
  display: block;
  width: max-content;
  margin-top: 38px;
  color: var(--white);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 650;
  letter-spacing: -.03em;
  text-decoration: none;
}

.contact__messengers {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

.contact__messengers a {
  padding-bottom: 4px;
  color: #bed0e5;
  border-bottom: 1px solid rgba(190, 208, 229, .55);
  font-size: 14px;
  text-decoration: none;
}

.contact-form {
  padding: 36px;
  color: var(--text);
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0, 12, 36, .2);
}

.contact-form h3 {
  margin-bottom: 26px;
  font-size: 30px;
}

.contact-form .button {
  width: 100%;
  margin-top: 8px;
}

.contact-form__error {
  min-height: 22px;
  margin: 12px 0 0;
  color: #9e2c2c;
  font-size: 13px;
}

.contact-form__success strong {
  display: block;
  color: var(--navy);
  font-size: 26px;
}

.contact-form__success p {
  color: var(--muted);
}

.site-footer {
  padding: 72px 0 28px;
  color: var(--text);
  background: var(--white);
}

.site-footer__main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.15fr .8fr;
  gap: 48px;
  padding-bottom: 50px;
}

.site-footer__main > div {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
}

.site-footer__main p {
  max-width: 280px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer__main strong {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 14px;
}

.site-footer__main a,
.site-footer__main address,
.site-footer__main span {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  text-decoration: none;
}

.site-footer__main a:hover {
  color: var(--navy);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  padding-top: 22px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.site-footer__legal a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-footer__legal a:hover,
.site-footer__legal a:focus-visible {
  color: var(--navy);
}

.lightbox {
  width: min(92vw, 1100px);
  max-width: none;
  max-height: 90vh;
  padding: 16px;
  overflow: visible;
  background: var(--white);
  border: 0;
  border-radius: 16px;
  box-shadow: 0 28px 90px rgba(0, 12, 36, .34);
}

.lightbox::backdrop {
  background: rgba(4, 16, 38, .78);
  backdrop-filter: blur(5px);
}

.lightbox img {
  display: block;
  width: 100%;
  max-height: calc(90vh - 32px);
  object-fit: contain;
  border-radius: 10px;
}

.lightbox__close {
  position: absolute;
  z-index: 2;
  top: -18px;
  right: -18px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--white);
  background: var(--navy);
  border: 0;
  border-radius: 50%;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
  transition: color .25s ease, background-color .25s ease, box-shadow .3s ease, transform .3s cubic-bezier(.2, .75, .25, 1);
}

.lightbox__close:hover {
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(10, 33, 71, .26);
  transform: scale(1.08) rotate(5deg);
}

.lightbox__close:active {
  transform: scale(.94);
}

@media (max-width: 1000px) {
  .project {
    grid-template-columns: minmax(0, 1.05fr) minmax(310px, .95fr);
    gap: 40px;
  }

  .anatomy-shell {
    grid-template-columns: 1fr;
  }

  .anatomy__intro {
    max-width: 760px;
  }

  .trust__grid {
    gap: 48px;
  }

  .process-shell {
    padding: 46px;
  }

  .process-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .process-line::before {
    display: none;
  }

  .process-line li,
  .process-line li + li {
    min-height: 210px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .13);
  }

  .process-line li:nth-child(odd) {
    padding-left: 24px;
  }

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

  .contact-shell {
    grid-template-columns: 1fr;
  }

  .contact__copy {
    max-width: 760px;
  }

  .contact-form {
    max-width: 650px;
  }

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

@media (max-width: 760px) {
  .project,
  .project--reverse {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .project--reverse .project__photo,
  .project--reverse .project__content {
    grid-row: auto;
    grid-column: auto;
  }

  .project__content {
    max-width: none;
  }

  .project__facts div {
    grid-template-columns: 120px 1fr;
  }

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

  .trust__visual {
    order: 2;
  }

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

  .faq__intro {
    position: static;
  }

  .contact-shell {
    padding: 34px 22px 22px;
  }
}

/* Process timeline — restrained motion and interaction */
.process {
  --process-spot-x: 58%;
  --process-spot-y: 48%;
  isolation: isolate;
  background: #fff;
}

.process::before,
.process::after {
  content: "";
  position: absolute;
  inset: -2%;
  pointer-events: none;
}

.process::before {
  z-index: -2;
  background: url("../images/process-timeline/process-background.webp") center / 100% 100% no-repeat;
  transform: scale(1.025) translate3d(-3px, -2px, 0);
  animation: process-background-drift 22s ease-in-out infinite alternate;
  will-change: transform;
}

.process::after {
  z-index: -1;
  background: radial-gradient(
    circle 310px at var(--process-spot-x) var(--process-spot-y),
    rgba(98, 160, 231, .09),
    rgba(98, 160, 231, .025) 45%,
    transparent 72%
  );
  opacity: .42;
  transition: opacity 420ms ease;
}

.process:hover::after {
  opacity: .82;
}

.process__eyebrow,
.process__title-line,
.process__lead,
.process-line li {
  transition:
    opacity 680ms cubic-bezier(.22, .72, .24, 1),
    transform 760ms cubic-bezier(.18, .76, .2, 1),
    clip-path 820ms cubic-bezier(.2, .72, .18, 1);
}

.process.motion-ready:not(.is-visible) .process__eyebrow,
.process.motion-ready:not(.is-visible) .process__lead {
  opacity: 0;
  transform: translateY(14px);
}

.process.motion-ready:not(.is-visible) .process__title-line {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transform: translateY(18px);
}

.process.motion-ready:not(.is-visible) .process-line li {
  opacity: 0;
  transform: translateY(20px);
}

.process.is-visible .process__eyebrow { transition-delay: 40ms; }
.process.is-visible .process__title-line:first-child { transition-delay: 120ms; }
.process.is-visible .process__title-line:nth-child(2) { transition-delay: 210ms; }
.process.is-visible .process__lead { transition-delay: 310ms; }
.process.is-visible .process-line li:nth-child(1) { transition-delay: 520ms; }
.process.is-visible .process-line li:nth-child(2) { transition-delay: 650ms; }
.process.is-visible .process-line li:nth-child(3) { transition-delay: 780ms; }
.process.is-visible .process-line li:nth-child(4) { transition-delay: 910ms; }

.process-line::before {
  transform: scaleX(1);
  transform-origin: left center;
  transition: transform 1150ms cubic-bezier(.2, .72, .18, 1) 430ms;
}

.process.motion-ready:not(.is-visible) .process-line::before {
  transform: scaleX(0);
}

.process-line::after {
  content: "";
  position: absolute;
  top: calc(var(--marker-top) + (var(--marker-size) / 2) - 1px);
  left: -140px;
  z-index: 1;
  display: block;
  width: 140px;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(71, 137, 225, .08), rgba(71, 137, 225, .82), transparent);
  filter: blur(.2px);
  opacity: 0;
  transform: translateX(0);
  pointer-events: none;
}

.process.is-visible .process-line::after {
  animation: process-line-pulse 8.5s ease-in-out 2.2s infinite;
}

.process-line li {
  transition-property: opacity, transform, filter;
}

.process-line:has(li:hover) li:not(:hover) {
  opacity: .72;
  filter: saturate(.82);
}

.process-line li::after {
  transform: scaleX(1);
  transform-origin: left center;
  transition: transform 340ms cubic-bezier(.2, .72, .2, 1), background-color 300ms ease;
}

.process.motion-ready:not(.is-visible) .process-line li::after {
  transform: scaleX(0);
}

.process-line li:hover::after {
  background: #337bd3;
  transform: scaleX(1.2);
}

.process-line li > .process-step__number {
  transition:
    color 300ms ease,
    border-color 300ms ease,
    background-color 300ms ease,
    box-shadow 380ms cubic-bezier(.2, .72, .2, 1),
    transform 380ms cubic-bezier(.2, .72, .2, 1);
  will-change: transform;
}

.process.is-visible .process-line li > .process-step__number {
  animation: process-marker-settle 720ms cubic-bezier(.18, .78, .2, 1) backwards;
}

.process.is-visible .process-line li:nth-child(1) > .process-step__number { animation-delay: 560ms; }
.process.is-visible .process-line li:nth-child(2) > .process-step__number { animation-delay: 690ms; }
.process.is-visible .process-line li:nth-child(3) > .process-step__number { animation-delay: 820ms; }
.process.is-visible .process-line li:nth-child(4) > .process-step__number { animation-delay: 950ms; }

.process-line li:hover > .process-step__number {
  color: #1f69c6;
  background: #fff;
  border-color: rgba(55, 126, 215, .9);
  box-shadow:
    0 0 0 clamp(10px, .68vw, 17px) rgba(66, 135, 222, .075),
    0 18px 38px rgba(38, 90, 160, .14);
  transform: translateY(-4px) scale(1.012);
}

.process-step__icon {
  transform-origin: center;
  transition: filter 300ms ease, transform 480ms cubic-bezier(.2, .72, .2, 1);
  will-change: transform;
}

.process-line li:hover .process-step__icon {
  filter: saturate(1.14) contrast(1.04);
}

.process-line li:nth-child(1):hover .process-step__icon {
  animation: process-icon-phone 560ms cubic-bezier(.2, .7, .2, 1);
}

.process-line li:nth-child(2):hover .process-step__icon {
  transform: translateX(5px) rotate(3deg) scale(1.045);
}

.process-line li:nth-child(3):hover .process-step__icon {
  transform: perspective(140px) rotateY(-12deg) scale(1.045);
}

.process-line li:nth-child(4):hover .process-step__icon {
  transform: translateX(7px) scale(1.035);
}

.process-line h3,
.process-line p {
  transition: color 300ms ease, opacity 300ms ease, transform 340ms cubic-bezier(.2, .72, .2, 1);
}

.process-line li:hover h3 {
  color: #063b7b;
  transform: translateY(-2px);
}

.process-line li:hover p {
  color: #536a87;
}

@keyframes process-background-drift {
  0% { transform: scale(1.025) translate3d(-3px, -2px, 0); }
  50% { transform: scale(1.03) translate3d(5px, 4px, 0); }
  100% { transform: scale(1.026) translate3d(-1px, 8px, 0); }
}

@keyframes process-line-pulse {
  0%, 62% { opacity: 0; transform: translateX(0); }
  68% { opacity: .72; }
  86% { opacity: .5; }
  96%, 100% { opacity: 0; transform: translateX(calc(100vw + 180px)); }
}

@keyframes process-marker-settle {
  0% {
    box-shadow:
      0 0 0 2px rgba(77, 139, 222, 0),
      0 5px 16px rgba(48, 96, 163, .03);
    transform: scale(.96);
  }
  55% {
    box-shadow:
      0 0 0 clamp(13px, .85vw, 21px) rgba(77, 139, 222, .085),
      0 16px 38px rgba(48, 96, 163, .1);
    transform: scale(1.018);
  }
  100% {
    box-shadow:
      0 0 0 clamp(8px, .55vw, 14px) rgba(83, 142, 224, .035),
      0 14px 34px rgba(48, 96, 163, .08);
    transform: scale(1);
  }
}

@keyframes process-icon-phone {
  0%, 100% { transform: rotate(0) scale(1); }
  28% { transform: rotate(-7deg) scale(1.045); }
  58% { transform: rotate(5deg) scale(1.045); }
  80% { transform: rotate(-2deg) scale(1.025); }
}

@media (max-width: 1100px) {
  .process-line::after {
    display: none;
  }

  .process-line:has(li:hover) li:not(:hover) {
    opacity: 1;
    filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .process::before,
  .process.is-visible .process-line::after,
  .process.is-visible .process-line li > .process-step__number,
  .process-line li:nth-child(1):hover .process-step__icon {
    animation: none;
  }

  .process__eyebrow,
  .process__title-line,
  .process__lead,
  .process-line li,
  .process-line::before,
  .process-line li::after,
  .process-line li > .process-step__number,
  .process-step__icon,
  .process-line h3,
  .process-line p,
  .process::after {
    transition: none;
  }

  .process.motion-ready:not(.is-visible) .process__eyebrow,
  .process.motion-ready:not(.is-visible) .process__title-line,
  .process.motion-ready:not(.is-visible) .process__lead,
  .process.motion-ready:not(.is-visible) .process-line li {
    opacity: 1;
    clip-path: none;
    transform: none;
  }

  .process.motion-ready:not(.is-visible) .process-line::before,
  .process.motion-ready:not(.is-visible) .process-line li::after {
    transform: scaleX(1);
  }
}

@media (max-width: 560px) {
  .project-list {
    gap: 64px;
  }

  .project__photo img {
    aspect-ratio: 4 / 3;
  }

  .project__facts div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .anatomy-shell {
    width: min(calc(100% - (var(--gutter) * 2)), var(--container));
    padding: 34px 18px 18px;
    border-radius: 20px;
  }

  .anatomy__visual .line-illustration,
  .anatomy__visual .section-photo {
    height: 220px;
  }

  .trust__visual .line-illustration,
  .trust__visual .section-photo {
    height: 320px;
  }

  .line-window {
    border-width: 3px;
    padding: 7px;
  }

  .construction-detail,
  .measure-tape {
    width: 82px;
    border-width: 3px;
  }

  .construction-link {
    height: 20px;
    border-width: 2px;
  }

  .measure-tape__ruler {
    width: 98px;
    height: 22px;
    border-width: 2px;
  }

  .measure-tape__center {
    width: 32px;
    height: 17px;
  }

  .anatomy__list {
    padding-inline: 18px;
  }

  .anatomy__list li,
  .evidence-list li {
    grid-template-columns: 38px 1fr;
    gap: 12px;
  }

  .trust__visual::after {
    right: -12px;
    bottom: -12px;
  }

  .process-shell {
    padding: 34px 20px 20px;
    border-radius: 20px;
  }

  .process-line {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 30px;
    padding-top: 0;
  }

  .process-line li,
  .process-line li + li,
  .process-line li:nth-child(odd) {
    min-height: 186px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, .13);
  }

  .review-card {
    grid-template-columns: 1fr;
  }

  .review-card__photo {
    min-height: 270px;
  }

  .faq summary {
    min-height: 74px;
    padding-right: 48px;
    font-size: 17px;
  }

  .faq details p {
    margin-right: 36px;
  }

  .contact__phone {
    font-size: 27px;
  }

  .contact-form {
    padding: 26px 18px;
  }

  .site-footer {
    padding-top: 58px;
  }

  .site-footer__main {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .site-footer__legal {
    display: grid;
  }

  .lightbox {
    width: calc(100vw - 24px);
    padding: 8px;
  }

  .lightbox__close {
    top: -14px;
    right: -4px;
  }
}

/* Compact desktop rhythm: sections fit naturally into ordinary laptop screens. */
@media (min-width: 901px) {
  h1 {
    font-size: clamp(46px, 4.4vw, 68px);
  }

  h2 {
    font-size: clamp(36px, 3.3vw, 50px);
  }

  h3 {
    font-size: clamp(21px, 1.7vw, 27px);
  }

  .section {
    padding-block: clamp(62px, 5vw, 84px);
  }

  .section-heading {
    margin-bottom: clamp(34px, 3.4vw, 46px);
  }

  .hero {
    height: clamp(612px, calc(100svh - 86px), 772px);
    padding: clamp(38px, 3.6vw, 54px) 0 clamp(48px, 4.2vw, 64px);
  }

  .hero__grid {
    height: 100%;
    gap: clamp(38px, 4.2vw, 62px);
  }

  .hero__lead {
    margin-top: 24px;
    font-size: clamp(17px, 1.25vw, 20px);
  }

  .hero__actions {
    margin-top: 28px;
  }

  .hero__assurances {
    margin-top: 34px;
  }

  .services-grid {
    height: 438px;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .service-card {
    min-height: 0;
  }

  .service-card--main .service-card__image {
    min-height: 0;
  }

  .service-card__content {
    gap: 13px;
    padding: 21px 23px;
  }

  .service-card--main .service-card__content {
    padding: 23px 28px;
  }

  .service-card__content strong {
    font-size: clamp(20px, 1.65vw, 26px);
  }

  .service-card--side .service-card__content strong {
    font-size: clamp(19px, 1.4vw, 23px);
  }

  .service-card__content small {
    margin-top: 6px;
    font-size: 13px;
  }

  .calculator {
    padding-top: 48px;
  }

  .calculator-shell {
    min-height: 560px;
  }

  .calculator-intro {
    padding: clamp(36px, 3.5vw, 48px);
  }

  .calculator-intro h2 {
    font-size: clamp(35px, 3vw, 48px);
  }

  .calculator-intro > p {
    margin-top: 20px;
  }

  .quiz {
    width: calc(100% - 28px);
    min-height: calc(100% - 32px);
    margin: 16px 18px 16px 10px;
    padding: clamp(28px, 3vw, 40px);
  }

  .quiz__top {
    margin-bottom: 24px;
  }

  .quiz legend {
    margin-bottom: 17px;
    font-size: clamp(25px, 2vw, 32px);
  }

  .choice {
    min-height: 58px;
    margin-top: 9px;
    padding: 10px 16px;
  }

  .quiz__actions {
    margin-top: 19px;
  }

  .project-list {
    gap: clamp(46px, 4.5vw, 64px);
  }

  .project {
    gap: clamp(38px, 4.2vw, 62px);
  }

  .project__photo img {
    height: clamp(340px, 30vw, 430px);
    aspect-ratio: 16 / 10;
  }

  .project__content h3 {
    font-size: clamp(29px, 2.5vw, 40px);
  }

  .project__content > p {
    margin-top: 17px;
  }

  .project__facts {
    margin-top: 24px;
  }

  .project__facts div {
    padding: 12px 0;
  }

  .anatomy {
    padding-top: 38px;
  }

  .anatomy-shell {
    gap: clamp(34px, 4vw, 56px);
    padding: clamp(36px, 4vw, 54px);
  }

  .anatomy__intro h2 {
    font-size: clamp(34px, 3vw, 46px);
  }

  .anatomy__intro > p {
    margin-top: 20px;
  }

  .anatomy__intro .button {
    margin-top: 26px;
  }

  .anatomy__list li {
    padding: 17px 0;
  }

  .anatomy__visual .line-illustration,
  .anatomy__visual .section-photo {
    height: clamp(280px, 23vw, 330px);
  }

  .anatomy__list {
    padding-bottom: 14px;
  }

  .anatomy__list h3 {
    font-size: 19px;
  }

  .trust__grid {
    gap: clamp(42px, 5vw, 72px);
  }

  .trust__visual .line-illustration,
  .trust__visual .section-photo {
    height: clamp(340px, 30vw, 430px);
  }

  .trust__lead {
    margin-top: 20px;
  }

  .evidence-list {
    margin-top: 28px;
  }

  .evidence-list li {
    padding: 15px 0;
  }

  .evidence-list h3 {
    font-size: 19px;
  }

  .process {
    padding-top: 38px;
  }

  .process-shell {
    padding: clamp(52px, 4.5vw, 68px);
    border-radius: 28px;
  }

  .process-line li {
    min-height: 230px;
  }

  .process-line p {
    margin-top: 10px;
    font-size: 14px;
  }

  .reviews {
    padding-top: 38px;
  }

  .review-card {
    min-height: 300px;
  }

  .review-card__body {
    padding: clamp(25px, 2.6vw, 34px);
  }

  .review-card blockquote {
    margin: 22px 0 26px;
    font-size: clamp(18px, 1.4vw, 21px);
  }

  .faq__grid {
    gap: clamp(44px, 5vw, 74px);
  }

  .faq summary {
    min-height: 66px;
    padding-block: 13px;
  }

  .faq details p {
    padding-bottom: 20px;
  }

  .contact {
    padding-top: 38px;
  }

  .contact-shell {
    gap: clamp(36px, 4vw, 56px);
    padding: clamp(36px, 4vw, 54px);
  }

  .contact__copy > p {
    margin-top: 20px;
  }

  .contact__phone {
    margin-top: 28px;
    font-size: clamp(27px, 2.5vw, 38px);
  }

  .contact-form {
    padding: 30px;
  }

  .contact-form h3 {
    margin-bottom: 20px;
    font-size: 26px;
  }

  .site-footer {
    padding-top: 52px;
  }

  .site-footer__main {
    padding-bottom: 34px;
  }
}

/* One outer rhythm for every content section. */
@media (min-width: 901px) {
  main > .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}

@media (max-width: 900px) {
  main > .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}

@media (max-width: 620px) {
  main > .section {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

/* 2026-08-29 — cohesive visual polish: warm precision */
:root {
  --navy: #092750;
  --navy-2: #153b68;
  --blue: #4f8dde;
  --mist: #eef5fc;
  --mist-2: #f8fbfe;
  --warm-paper: #f7f6f2;
  --paper: #fcfcfa;
  --line: #dce5ee;
  --text: #182640;
  --muted: #69798d;
  --shadow: 0 20px 48px rgba(13, 43, 85, .12);
  --shadow-soft: 0 14px 36px rgba(13, 43, 85, .075);
  --radius: 20px;
}

::selection {
  color: var(--white);
  background: var(--navy-2);
}

body {
  color: var(--text);
  background: var(--paper);
}

h1,
h2,
h3 {
  font-weight: 700;
}

h1 {
  font-size: clamp(48px, 4.8vw, 72px);
  line-height: 1.035;
}

h2 {
  font-size: clamp(38px, 3.5vw, 52px);
  line-height: 1.08;
}

.section-heading--split > p {
  padding-left: 18px;
  border-left: 2px solid rgba(79, 141, 222, .42);
}

.site-header {
  transition: height 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  height: 72px;
  background: rgba(255, 255, 255, .985);
  box-shadow: 0 10px 30px rgba(13, 43, 85, .075);
}

.site-nav a::after {
  right: auto;
  bottom: 18px;
  left: 50%;
  width: 24px;
  height: 2px;
  background: var(--blue);
  border-radius: 999px;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
}

.site-nav a:hover::after {
  transform: translateX(-50%) scaleX(1);
  transform-origin: center;
}

.header-phone {
  letter-spacing: -.015em;
  transition: color 180ms ease;
}

.header-phone:hover {
  color: var(--blue);
}

.button {
  border-radius: 10px;
}

.button--navy {
  box-shadow: 0 11px 24px rgba(9, 39, 80, .15);
}

.button--navy:hover {
  box-shadow: 0 17px 34px rgba(9, 39, 80, .22);
}

.button--outline {
  border-color: rgba(9, 39, 80, .42);
}

.hero {
  isolation: isolate;
  background-image:
    radial-gradient(circle at 23% 44%, rgba(230, 240, 250, .56), transparent 34%),
    url("../images/hero-integrated-real-v1.webp");
}

.hero__lead {
  color: #62748a;
}

.hero__assurances {
  gap: 12px 0;
}

.hero__assurances li::before {
  content: "✓";
  display: grid;
  width: 21px;
  height: 21px;
  margin-right: 9px;
  place-items: center;
  color: var(--navy);
  background: #edf5fc;
  border: 1px solid #cfe0f1;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
}

.scroll-cue {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, .88);
  border-color: #bdd5ee;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(13, 43, 85, .07);
}

.services {
  background: #fff;
}

.services::before {
  top: 18%;
  left: -14vw;
  width: 56vw;
  height: 420px;
  background: none;
}

.service-card {
  position: relative;
  border-color: rgba(31, 64, 101, .12);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(13, 43, 85, .055);
}

.service-card::before {
  position: absolute;
  z-index: 4;
  top: 16px;
  left: 16px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--navy);
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 9px;
  box-shadow: 0 8px 20px rgba(13, 43, 85, .09);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.service-card:nth-child(1)::before {
  content: "01";
}

.service-card:nth-child(2)::before {
  content: "02";
}

.service-card:nth-child(3)::before {
  content: "03";
}

.service-card:hover {
  border-color: rgba(79, 141, 222, .46);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.service-card__image {
  position: relative;
}

.service-card__image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 46%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .95), transparent);
  pointer-events: none;
}

.service-card__image img {
  filter: saturate(.91) contrast(1.015);
}

.service-card:hover .service-card__image img {
  transform: scale(1.018);
}

.service-card__content {
  gap: 16px;
}

.service-card__link {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 9px;
}

.service-card__link b {
  display: grid;
  width: 32px;
  height: 32px;
  margin: 0;
  place-items: center;
  background: #edf5fc;
  border: 1px solid #d1e2f3;
  border-radius: 8px;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.service-card:hover .service-card__link b {
  color: var(--white);
  background: var(--navy);
  transform: translateX(3px);
}

.calculator-shell {
  overflow: hidden;
  border: 1px solid rgba(116, 169, 228, .2);
  border-radius: 24px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1),
    0 26px 60px rgba(9, 39, 80, .16);
}

.calculator-intro__drawing {
  opacity: .1;
}

.calculator-phone__icon {
  background: rgba(255, 255, 255, .045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.quiz {
  border: 1px solid rgba(24, 72, 125, .14);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 22px 48px rgba(0, 12, 36, .16);
}

.quiz__progress i {
  height: 7px;
  background: #e6ebf0;
}

.quiz__progress i.is-complete {
  background: var(--navy);
}

.quiz__progress i.is-active {
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(79, 141, 222, .1);
}

.quiz__screen.is-active {
  animation: quiz-reveal 220ms ease both;
}

@keyframes quiz-reveal {
  from {
    opacity: 0;
    transform: translateX(10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.choice {
  padding-right: 58px;
  border-radius: 10px;
}

.choice:hover {
  background: #f5f9fd;
  border-color: #9dbddd;
  box-shadow: 0 9px 22px rgba(13, 43, 85, .065);
  transform: translateY(-1px);
}

.choice:has(input:checked) {
  background: #eef5fc;
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.choice:has(input:checked)::after {
  content: "✓";
  position: absolute;
  top: 50%;
  right: 18px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: var(--white);
  background: var(--navy);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  transform: translateY(-50%);
}

.choice:hover .choice__icon {
  transform: scale(1.035);
}

.field input {
  min-height: 56px;
  border-color: #d8e2ec;
  border-radius: 9px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.field input:hover {
  border-color: #b8cde2;
}

.projects {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}

.projects::before {
  content: "";
  position: absolute;
  top: 18%;
  right: -180px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(226, 238, 249, .6), transparent 68%);
  border-radius: 50%;
  pointer-events: none;
}

.projects .container {
  position: relative;
  z-index: 1;
}

.project-list {
  gap: clamp(64px, 6.8vw, 92px);
}

.project__photo {
  border: 1px solid rgba(31, 64, 101, .1);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(13, 43, 85, .075);
}

.project__photo::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .52);
  border-radius: inherit;
  pointer-events: none;
}

.project__photo:hover {
  box-shadow: 0 22px 48px rgba(13, 43, 85, .13);
  transform: translateY(-3px);
}

.project__photo:hover img {
  transform: scale(1.018);
}

.project__photo > span {
  padding: 9px 12px;
  background: rgba(9, 39, 80, .88);
  border: 1px solid rgba(255, 255, 255, .52);
  border-radius: 9px;
  box-shadow: 0 8px 20px rgba(9, 39, 80, .14);
  backdrop-filter: blur(8px);
}

.project__facts {
  border-top-color: #ccd9e6;
}

.project__facts div {
  border-bottom-color: #dce5ee;
}

.project-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  margin-top: clamp(46px, 6vw, 74px);
  padding: 24px 28px;
  background: var(--white);
  border: 1px solid #d7e3ee;
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(13, 43, 85, .07);
}

.project-cta::after {
  content: "";
  position: absolute;
  top: 0;
  right: 26%;
  width: 150px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #87b3e3, transparent);
}

.project-cta > div {
  display: grid;
  gap: 5px;
}

.project-cta strong {
  color: var(--navy);
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.25;
}

.project-cta span {
  color: var(--muted);
  font-size: 14px;
}

.project-cta .button {
  min-width: 220px;
  flex: 0 0 auto;
}

.anatomy-shell {
  background: linear-gradient(135deg, #edf5fc 0%, #f8fbfe 62%, #eaf3fb 100%);
  border-color: rgba(31, 64, 101, .11);
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .88);
}

.anatomy__body {
  overflow: hidden;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(31, 64, 101, .09);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(13, 43, 85, .06);
}

.anatomy__visual {
  border-radius: 16px 16px 0 0;
}

.anatomy__list li {
  transition: background-color 180ms ease;
}

.anatomy__list li:hover {
  background: rgba(238, 245, 252, .7);
}

.trust__visual::after {
  right: -18px;
  bottom: -18px;
  width: 44%;
  height: 68%;
  border-color: rgba(79, 141, 222, .38);
}

.trust__visual .section-photo {
  border-radius: 20px;
  box-shadow: 0 14px 36px rgba(13, 43, 85, .07);
}

.evidence-list li {
  position: relative;
  padding-right: 42px;
  transition: background-color 180ms ease, padding-left 180ms ease;
}

.evidence-list li::after {
  content: "✓";
  position: absolute;
  top: 22px;
  right: 4px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--blue);
  background: #eef5fc;
  border: 1px solid #d2e2f2;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
}

.evidence-list li:hover {
  padding-left: 10px;
  background: rgba(238, 245, 252, .52);
}

.process-shell {
  border-radius: 24px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 26px 58px rgba(9, 39, 80, .18);
}

.process-line::before {
  content: "";
  position: absolute;
  top: 50px;
  right: 8%;
  left: 8%;
  z-index: 0;
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(143, 190, 240, .58) 12%, rgba(143, 190, 240, .58) 88%, transparent);
}

.process-line li {
  z-index: 1;
  overflow: hidden;
  border-radius: 16px;
}

.process-line li::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -58px;
  z-index: -1;
  width: 126px;
  height: 126px;
  border: 1px solid rgba(143, 190, 240, .15);
  border-radius: 50%;
  transition: transform 260ms ease;
}

.process-line li:hover {
  transform: translateY(-3px);
}

.process-line li:hover::after {
  transform: scale(1.14);
}

.reviews {
  background: #fff;
}

.review-card {
  position: relative;
  border-color: rgba(31, 64, 101, .11);
  border-radius: 16px;
  box-shadow: none;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.review-card:hover {
  border-color: rgba(79, 141, 222, .32);
  box-shadow: 0 18px 42px rgba(13, 43, 85, .085);
  transform: translateY(-3px);
}

.review-card__body {
  position: relative;
}

.review-card__body::before {
  content: none;
  position: absolute;
  top: 12px;
  right: 22px;
  display: none;
  color: rgba(79, 141, 222, .12);
  font-size: 100px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.review-card blockquote,
.review-card footer,
.review-card__rating {
  position: relative;
  z-index: 1;
}

.review-card__photo {
  border-left: 1px solid #e0e7ee;
}

.review-card__photo span {
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow: 0 7px 18px rgba(13, 43, 85, .11);
  backdrop-filter: blur(8px);
}

.reviews-heading__aside {
  display: flex;
  justify-content: flex-end;
}

.reviews-heading__aside p {
  margin: 0;
  color: var(--muted);
}

.reviews-heading__button {
  min-height: 48px;
  justify-self: start;
  padding-inline: 22px;
  background: rgba(255, 255, 255, .72);
}

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

.reviews-dialog {
  width: min(1240px, calc(100% - 32px));
  max-width: none;
  max-height: min(880px, calc(100dvh - 32px));
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 32px 90px rgba(3, 19, 45, .35);
}

.reviews-dialog::backdrop {
  background: rgba(4, 20, 43, .68);
  backdrop-filter: blur(7px);
}

.reviews-dialog[open] {
  animation: reviews-dialog-in 220ms cubic-bezier(.2, .75, .25, 1) both;
}

.reviews-dialog__shell {
  display: grid;
  max-height: min(880px, calc(100dvh - 32px));
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  background: #f2f6fa;
  border: 1px solid rgba(130, 167, 205, .32);
  border-radius: 24px;
}

.reviews-dialog__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 28px;
  align-items: start;
  padding: 24px 28px 18px;
  background:
    radial-gradient(circle at 86% 0%, rgba(79, 141, 222, .11), transparent 32%),
    #fff;
  border-bottom: 1px solid #dce6f0;
}

.reviews-dialog__eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.reviews-dialog__header h2 {
  max-width: 820px;
  font-size: clamp(28px, 2.5vw, 38px);
}

.reviews-dialog__header p {
  max-width: 660px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.reviews-dialog__filters {
  display: flex;
  grid-column: 1 / -1;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

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

.reviews-dialog__filters button {
  display: inline-flex;
  min-height: 36px;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  color: #52677e;
  background: #f4f7fa;
  border: 1px solid #dce6ef;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.reviews-dialog__filters button:hover {
  color: var(--navy);
  background: #eaf2fa;
  border-color: #bfd3e7;
  transform: translateY(-1px);
}

.reviews-dialog__filters button.is-active {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.reviews-dialog__filters button span {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  padding-inline: 5px;
  color: var(--navy);
  background: #fff;
  border-radius: 999px;
  font-size: 11px;
}

.reviews-dialog__close {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--navy);
  background: #eef4fa;
  border: 1px solid #d7e3ee;
  border-radius: 50%;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.reviews-dialog__close:hover {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
  transform: rotate(5deg);
}

.reviews-dialog__scroller {
  display: grid;
  min-height: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 16px;
  padding: 20px 24px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #8ba9c8 #e4ebf2;
  scrollbar-width: thin;
}

.reviews-dialog__scroller::-webkit-scrollbar {
  width: 10px;
}

.reviews-dialog__scroller::-webkit-scrollbar-track {
  background: #e4ebf2;
  border-radius: 999px;
}

.reviews-dialog__scroller::-webkit-scrollbar-thumb {
  background: #8ba9c8;
  border: 2px solid #e4ebf2;
  border-radius: 999px;
}

.reviews-dialog__card {
  display: grid;
  min-height: 238px;
  grid-template-columns: minmax(0, 1fr) 164px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dbe5ee;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(13, 43, 85, .06);
}

.reviews-dialog__card.is-text-only {
  grid-template-columns: 1fr;
  background:
    radial-gradient(circle at 100% 0%, rgba(79, 141, 222, .09), transparent 34%),
    #fff;
}

.reviews-dialog__body {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 20px;
}

.reviews-dialog__body::after {
  content: none;
  position: absolute;
  top: 7px;
  right: 16px;
  display: none;
  color: rgba(79, 141, 222, .075);
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.reviews-dialog__rating {
  position: relative;
  z-index: 1;
  color: var(--blue);
  flex: 0 0 auto;
  font-size: 13px;
  letter-spacing: .08em;
}

.reviews-dialog__meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.reviews-dialog__card blockquote {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  max-width: none;
  margin: 18px 0 14px;
  overflow: hidden;
  color: var(--navy);
  font-size: 16px;
  font-weight: 560;
  line-height: 1.52;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

.reviews-dialog__card blockquote p {
  margin: 0;
}

.reviews-dialog__card.is-expanded blockquote {
  display: block;
  overflow: visible;
}

.reviews-dialog__author {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
}

.reviews-dialog__author > span {
  display: grid;
  gap: 4px;
}

.reviews-dialog__avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  object-fit: cover;
  background: #eef4fa;
  border: 1px solid #d6e2ed;
  border-radius: 50%;
}

.reviews-dialog__author strong {
  color: var(--navy);
  font-size: 14px;
}

.reviews-dialog__author span {
  color: var(--muted);
  font-size: 12px;
}

.reviews-dialog__expand {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin-top: auto;
  padding: 4px 0;
  color: var(--blue);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(79, 141, 222, .38);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.reviews-dialog__media {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #e9f0f6;
  border-left: 1px solid #dbe5ee;
}

.reviews-dialog__media.has-multiple {
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 2px;
}

.reviews-dialog__media.is-scrollable {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-color: #88a7c7 rgba(231, 239, 246, .9);
  scrollbar-width: thin;
}

.reviews-dialog__media.is-scrollable::-webkit-scrollbar {
  height: 8px;
}

.reviews-dialog__media.is-scrollable::-webkit-scrollbar-thumb {
  background: #88a7c7;
  border: 2px solid #e7eff6;
  border-radius: 999px;
}

.reviews-dialog__photo {
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: var(--mist);
  border: 0;
  cursor: zoom-in;
  scroll-snap-align: start;
}

.reviews-dialog__media.is-scrollable .reviews-dialog__photo,
.reviews-dialog__media.is-scrollable .reviews-dialog__video {
  min-width: min(88%, 330px);
  flex: 0 0 min(88%, 330px);
  border-right: 1px solid rgba(219, 229, 238, .9);
}

.reviews-dialog__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.reviews-dialog__photo:hover img {
  transform: scale(1.025);
}

.reviews-dialog__photo > span,
.reviews-dialog__video > span {
  position: absolute;
  right: 9px;
  bottom: 9px;
  padding: 6px 9px;
  color: var(--navy);
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 999px;
  box-shadow: 0 7px 18px rgba(13, 43, 85, .13);
  font-size: 12px;
  font-weight: 750;
  backdrop-filter: blur(8px);
}

.reviews-dialog__video {
  position: relative;
  display: grid;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  background: #071d3e;
  scroll-snap-align: start;
}

.reviews-dialog__video video {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  background: #071d3e;
}

.reviews-dialog__video video[hidden],
.reviews-dialog__video-play[hidden] {
  display: none;
}

.reviews-dialog__video-play {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 22px;
  place-content: center;
  place-items: center;
  gap: 12px;
  color: #fff;
  background: linear-gradient(145deg, #0b2b59, #061a37);
  border: 0;
  cursor: pointer;
}

.reviews-dialog__video-play > span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  padding-left: 4px;
  color: #0d3b70;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .24);
  font-size: 22px;
}

.reviews-dialog__video-play > strong {
  font-size: 15px;
}

.reviews-dialog__footer {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 24px;
  background: #fff;
  border-top: 1px solid #dce6f0;
}

.reviews-dialog__footer > span {
  color: var(--muted);
  font-size: 14px;
}

.reviews-dialog__footer .button {
  min-height: 48px;
  padding-inline: 24px;
}

@keyframes reviews-dialog-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

  .reviews-dialog__card {
    grid-template-columns: minmax(0, 1fr) 210px;
  }
}

@media (max-width: 760px) {
  .reviews-heading__aside {
    padding-left: 0;
    border-left: 0;
  }

  .reviews-heading__button {
    width: 100%;
  }

  .reviews-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 18px;
  }

  .reviews-dialog__shell {
    max-height: calc(100dvh - 16px);
    border-radius: 18px;
  }

  .reviews-dialog__header {
    gap: 16px;
    padding: 20px 18px 14px;
  }

  .reviews-dialog__header h2 {
    font-size: 29px;
  }

  .reviews-dialog__header p {
    font-size: 14px;
  }

  .reviews-dialog__close {
    width: 42px;
    height: 42px;
    font-size: 26px;
  }

  .reviews-dialog__scroller {
    gap: 12px;
    padding: 14px;
  }

  .reviews-dialog__card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .reviews-dialog__card:not(.is-text-only) {
    min-height: 430px;
  }

  .reviews-dialog__card.is-text-only {
    min-height: 260px;
  }

  .reviews-dialog__body {
    min-height: 260px;
    padding: 19px 18px;
  }

  .reviews-dialog__card blockquote {
    flex-shrink: 0;
  }

  .reviews-dialog__media {
    min-height: 170px;
    height: 170px;
    flex: 0 0 170px;
    border-top: 1px solid #dbe5ee;
    border-left: 0;
    border-radius: 0 0 15px 15px;
  }

  .reviews-dialog__photo,
  .reviews-dialog__video,
  .reviews-dialog__video video {
    min-height: 170px;
    height: 170px;
  }

  .reviews-dialog__footer {
    align-items: stretch;
    flex-direction: column;
    padding: 14px 16px 16px;
  }

  .reviews-dialog__footer .button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .reviews-dialog__header h2 {
    font-size: 25px;
  }

  .reviews-dialog__eyebrow,
  .reviews-dialog__header p {
    display: none;
  }

  .reviews-dialog__card blockquote {
    font-size: 15px;
    -webkit-line-clamp: 4;
  }

  .reviews-dialog__meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .reviews-dialog__rating {
    order: -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reviews-dialog[open] {
    animation: none;
  }

  .reviews-dialog__close,
  .reviews-dialog__photo img {
    transition: none;
  }
}

.faq__intro > a {
  margin-top: 24px;
  padding: 14px 18px;
  background: #eef5fc;
  border: 1px solid #d4e3f2;
  border-radius: 10px;
}

.faq-hours {
  display: block;
  width: max-content;
  margin: 8px 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.faq__items {
  border-top: 2px solid var(--navy);
}

.faq details {
  position: relative;
  transition: background-color 200ms ease;
}

.faq details::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--blue);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 220ms ease;
}

.faq details[open] {
  background: rgba(238, 245, 252, .6);
}

.faq details[open]::before {
  transform: scaleY(1);
}

.faq summary {
  min-height: 72px;
  padding-left: 18px;
}

.faq summary span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: #eef5fc;
  border: 1px solid #d4e3f2;
  border-radius: 50%;
  transition: background-color 180ms ease;
}

.faq details[open] summary span {
  background: var(--navy);
}

.faq details[open] summary span::before,
.faq details[open] summary span::after {
  background: var(--white);
}

.faq details p {
  padding-left: 18px;
}

.contact-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(116, 169, 228, .2);
  border-radius: 24px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 26px 58px rgba(9, 39, 80, .16);
}

.contact-shell::before {
  content: "";
  position: absolute;
  top: -82px;
  left: 40%;
  width: 310px;
  height: 220px;
  border: 1px solid rgba(143, 190, 240, .14);
  border-radius: 48% 52% 44% 56%;
  transform: rotate(-8deg);
  pointer-events: none;
}

.contact__copy,
.contact-form {
  position: relative;
  z-index: 1;
}

.contact-form {
  border: 1px solid rgba(31, 64, 101, .1);
  border-radius: 16px;
  box-shadow: 0 18px 38px rgba(0, 12, 36, .17);
}

.contact-form__note {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.site-footer {
  background: #f4f7fa;
  border-top: 1px solid #d9e3ed;
}

.site-footer__main > div:not(:first-child) {
  padding-left: 20px;
  border-left: 1px solid rgba(31, 64, 101, .12);
}

.site-footer__main a {
  position: relative;
  transition: color 180ms ease, transform 180ms ease;
}

.site-footer__main a:hover {
  color: var(--navy);
  transform: translateX(2px);
}

@media (max-width: 1000px) {
  .process-line::before {
    display: none;
  }

  .site-footer__main > div:not(:first-child) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .section-heading--split > p {
    padding-left: 0;
    border-left: 0;
  }

  .hero {
    background-image: url("../images/hero-integrated-real-v1.webp");
  }

  .project-cta {
    align-items: stretch;
    flex-direction: column;
    margin-top: 38px;
    padding: 22px;
  }

  .project-cta::after {
    display: none;
  }

  .project-cta .button {
    width: 100%;
    min-width: 0;
  }

  .projects::before,
  .contact-shell::before {
    display: none;
  }

  .review-card__photo {
    border-top: 1px solid #e0e7ee;
    border-left: 0;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(42px, 12vw, 56px);
  }

  h2 {
    font-size: clamp(34px, 10vw, 44px);
  }

  .site-header.is-scrolled {
    height: 68px;
  }

  .hero__assurances li::before {
    width: 19px;
    height: 19px;
  }

  .service-card::before {
    top: 12px;
    left: 12px;
  }

  .choice {
    padding-right: 48px;
  }

  .choice:has(input:checked)::after {
    right: 12px;
    width: 24px;
    height: 24px;
  }

  .faq__intro > a {
    width: 100%;
    text-align: center;
  }

  .faq-hours {
    width: auto;
    margin-left: 0;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .service-card,
  .service-card__image img,
  .service-card__link b,
  .choice,
  .choice__icon,
  .project__photo,
  .project__photo img,
  .anatomy__list li,
  .evidence-list li,
  .process-line li,
  .process-line li::after,
  .review-card,
  .faq details,
  .faq details::before,
  .site-footer__main a {
    transition: none;
  }

  .quiz__screen.is-active {
    animation: none;
  }
}

/* Anatomy block — matched to the approved reference while preserving Manrope */
.anatomy {
  padding-top: 56px;
  background: #fff;
}

.anatomy-shell {
  display: grid;
  grid-template-columns: minmax(350px, 4.15fr) minmax(0, 7.85fr);
  gap: clamp(42px, 4.5vw, 68px);
  align-items: stretch;
  padding: clamp(34px, 3.8vw, 52px);
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(45, 89, 139, .12);
  border-radius: 28px;
  box-shadow: 0 18px 46px rgba(24, 68, 116, .095);
}

.anatomy__intro {
  align-self: center;
  padding: 18px 10px 18px 18px;
}

.anatomy__intro h2 {
  max-width: 470px;
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  font-size: clamp(40px, 3.7vw, 56px);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1.12;
}

.anatomy__title-line {
  display: block;
  white-space: nowrap;
}

.anatomy__intro h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 28px;
  background: var(--blue);
  border-radius: 999px;
}

.anatomy__intro > p {
  max-width: 430px;
  margin: 28px 0 0;
  color: #61748a;
  font-size: 17px;
  line-height: 1.62;
}

.anatomy__intro .anatomy__button {
  display: inline-flex;
  width: min(100%, 320px);
  min-height: 66px;
  justify-content: space-between;
  margin-top: 38px;
  padding-inline: 28px;
  border-radius: 12px;
  font-size: 17px;
}

.anatomy__button > span {
  position: relative;
  z-index: 1;
  margin-left: 24px;
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  transition: transform 180ms ease;
}

.anatomy__button:hover > span {
  transform: translateX(4px);
}

.anatomy__assist-note {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 24px;
  color: #59708b;
  font-size: 14px;
}

.anatomy__assist-note::before {
  content: "✓";
  display: grid;
  width: 21px;
  height: 23px;
  flex: 0 0 21px;
  place-items: center;
  color: #266fc5;
  border: 1.5px solid #266fc5;
  border-radius: 7px 7px 9px 9px;
  font-size: 11px;
  font-weight: 800;
}

.anatomy__body {
  display: grid;
  min-width: 0;
  gap: 14px;
  overflow: visible;
  align-content: start;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.anatomy__visual {
  position: relative;
  height: clamp(300px, 24vw, 390px);
  margin: 0;
  overflow: hidden;
  background: #f5f8fb;
  border: 1px solid rgba(45, 89, 139, .1);
  border-radius: 17px;
}

.anatomy__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: inherit;
  pointer-events: none;
}

.anatomy__visual .section-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
}

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

.anatomy__list li {
  display: grid;
  min-height: 108px;
  grid-template-columns: 64px minmax(0, 1fr) 58px;
  gap: 18px;
  align-items: center;
  padding: 14px 20px;
  background: var(--white);
  border: 1px solid #dbe6f0;
  border-radius: 16px;
  box-shadow: 0 5px 16px rgba(13, 43, 85, .045);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.anatomy__list li:hover {
  background: var(--white);
  border-color: #b8d1ea;
  box-shadow: 0 10px 24px rgba(13, 43, 85, .075);
  transform: translateY(-2px);
}

.anatomy__list li > span:not(.anatomy__item-icon) {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  color: #1c65bb;
  background: linear-gradient(145deg, #edf4fc, #f9fbfe);
  border: 1px solid #e1eaf4;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
}

.anatomy__list h3 {
  color: var(--navy);
  font-size: clamp(17px, 1.35vw, 20px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.28;
}

.anatomy__list p {
  max-width: 720px;
  margin: 6px 0 0;
  color: #64768b;
  font-size: 14px;
  line-height: 1.45;
}

.anatomy__list li > .anatomy__item-icon {
  display: block;
  width: 52px;
  height: 52px;
  justify-self: end;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 1000px) {
  .anatomy-shell {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .anatomy__intro {
    max-width: 760px;
    padding: 8px;
  }

  .anatomy__intro h2 {
    max-width: 680px;
  }

  .anatomy__visual {
    height: clamp(300px, 44vw, 420px);
  }
}

@media (max-width: 760px) {
  .anatomy {
    padding-top: 48px;
  }

  .anatomy-shell {
    width: min(calc(100% - (var(--gutter) * 2)), var(--container));
    gap: 28px;
    padding: 24px;
    border-radius: 20px;
  }

  .anatomy__intro h2::after {
    margin-top: 22px;
  }

  .anatomy__visual,
  .anatomy__visual .section-photo {
    height: 280px;
  }

  .anatomy__list li {
    min-height: 100px;
    grid-template-columns: 52px minmax(0, 1fr) 46px;
    gap: 13px;
    padding: 13px 15px;
  }

  .anatomy__list li > span:not(.anatomy__item-icon) {
    width: 46px;
    height: 46px;
    font-size: 14px;
  }

  .anatomy__list li > .anatomy__item-icon {
    width: 42px;
    height: 42px;
    transform: scale(.88);
    transform-origin: center;
  }
}

@media (max-width: 560px) {
  .anatomy-shell {
    padding: 20px;
  }

  .anatomy__intro {
    padding: 4px;
  }

  .anatomy__intro h2 {
    font-size: clamp(34px, 10vw, 44px);
  }

  .anatomy__intro .anatomy__button {
    width: 100%;
  }

  .anatomy__assist-note {
    font-size: 13px;
  }

  .anatomy__visual,
  .anatomy__visual .section-photo {
    height: 230px;
  }

  .anatomy__list li {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .anatomy__list li > .anatomy__item-icon {
    display: none;
  }

  .anatomy__list li > span:not(.anatomy__item-icon) {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .anatomy__list h3 {
    font-size: 17px;
  }
}

/* Process block — light version */
.process {
  padding: 48px 0 54px;
  background: #fff;
}

.process-shell {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  padding: clamp(54px, 5vw, 76px);
  color: var(--navy);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.process-shell::before,
.process-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.process-shell::before {
  top: -1050px;
  left: -60px;
  width: 1420px;
  height: 1420px;
  background: none;
  border: 1px solid rgba(73, 135, 202, .09);
  border-radius: 50%;
}

.process-shell::after {
  right: -160px;
  bottom: -270px;
  width: 850px;
  height: 690px;
  border: 1px solid rgba(73, 135, 202, .09);
  border-radius: 50%;
  transform: rotate(-9deg);
}

.process__header,
.process-line {
  position: relative;
  z-index: 2;
}

.process__header h2 {
  max-width: 850px;
  color: var(--navy);
  font-size: clamp(48px, 4.9vw, 68px);
  font-weight: 650;
  letter-spacing: -.052em;
  line-height: 1.08;
}

.process__title-line {
  display: block;
  white-space: nowrap;
}

.process__lead {
  max-width: 820px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.55;
}

.process-line {
  --process-gap: clamp(34px, 3.5vw, 54px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--process-gap);
  margin: 46px 0 0;
  padding: 0;
  list-style: none;
}

.process-line::before {
  display: none;
}

.process-line li,
.process-line li + li,
.process-line li:nth-child(odd),
.process-line li:last-child {
  position: relative;
  z-index: 1;
  min-height: 318px;
  overflow: visible;
  padding: 28px 26px 26px;
  background:
    radial-gradient(circle at 26% 8%, rgba(120, 177, 235, .12), transparent 34%),
    linear-gradient(155deg, #fff, #f6f9fd);
  border: 1px solid #dbe7f4;
  border-radius: 17px;
  box-shadow:
    inset 0 1px 0 #fff,
    0 18px 38px rgba(29, 65, 112, .09);
  transition: border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.process-line li::before {
  content: "";
  position: absolute;
  right: -84px;
  bottom: -126px;
  width: 238px;
  height: 238px;
  border: 1px solid rgba(94, 155, 226, .12);
  border-radius: 50%;
  pointer-events: none;
}

.process-line li::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: -1px;
  left: 24px;
  z-index: 2;
  width: auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, #8dbceb 28%, #bad6f2 70%, transparent);
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  transform: none;
  pointer-events: none;
}

.process-line li:hover {
  background-color: #fff;
  border-color: #a9c9eb;
  box-shadow: 0 22px 44px rgba(29, 65, 112, .13);
  transform: translateY(-3px);
}

.process-line li:hover::after {
  transform: none;
}

.process-line li > .process-step__number {
  display: grid;
  width: 58px;
  height: 52px;
  place-items: center;
  color: #24568f;
  background: linear-gradient(145deg, #f4f8fd, #e8f1fb);
  border: 1px solid #cddff2;
  border-radius: 9px;
  box-shadow:
    inset 0 1px 0 #fff,
    0 8px 20px rgba(42, 91, 145, .1);
  font-size: 21px;
  font-weight: 750;
  letter-spacing: .06em;
}

.process-step__icon {
  display: block;
  width: 78px;
  height: 78px;
  margin: 16px 0 0;
  object-fit: contain;
  object-position: center;
}

.process-line h3 {
  max-width: 260px;
  margin: 4px 0 0;
  color: var(--navy);
  font-size: clamp(21px, 1.75vw, 26px);
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.18;
}

.process-line p {
  max-width: 260px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.48;
}

.process-line li > .process-step__connector {
  position: absolute;
  top: 50%;
  left: calc(100% - 1px);
  z-index: 5;
  display: block;
  width: calc(var(--process-gap) - 12px);
  height: 2px;
  color: #5f98d5;
  background: linear-gradient(90deg, #bed7f0, #77a9dc);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: translateY(-50%);
  pointer-events: none;
}

.process-step__connector::before,
.process-step__connector::after {
  content: "";
  position: absolute;
}

.process-step__connector::before {
  top: 50%;
  left: 0;
  width: 9px;
  height: 9px;
  background: #fff;
  border: 2px solid #79aadc;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(55, 105, 160, .14);
  transform: translate(-50%, -50%);
}

.process-step__connector::after {
  top: 50%;
  right: 1px;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

@media (max-width: 1100px) {
  .process-shell {
    min-height: 0;
    padding: 52px;
  }

  .process-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .process-line li,
  .process-line li + li,
  .process-line li:nth-child(odd),
  .process-line li:last-child {
    min-height: 292px;
  }

  .process-line li > .process-step__connector {
    display: none;
  }
}

@media (max-width: 760px) {
  .process {
    padding-top: 38px;
  }

  .process-shell {
    padding: 38px 22px 24px;
    border-radius: 22px;
  }

  .process__header h2 {
    font-size: clamp(38px, 10vw, 50px);
  }

  .process__lead {
    margin-top: 14px;
    font-size: 15px;
  }

  .process-line {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 34px;
  }

  .process-line li,
  .process-line li + li,
  .process-line li:nth-child(odd),
  .process-line li:last-child {
    min-height: 260px;
    padding: 24px;
  }

  .process-step__icon {
    width: 66px;
    height: 66px;
    margin-top: 14px;
  }
}

@media (max-width: 520px) {
  .process__title-line {
    white-space: normal;
  }

  .process__header h2 {
    font-size: clamp(34px, 10.5vw, 44px);
  }

  .process-line li > .process-step__number {
    width: 52px;
    height: 48px;
    font-size: 18px;
  }
}

/* Process timeline — approved light reference */
.process {
  padding: 54px 0 68px;
  background: #fff;
}

.process-shell {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  padding: 28px 18px 36px;
  color: var(--navy);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.process-shell::before {
  top: -420px;
  right: -210px;
  left: auto;
  width: 620px;
  height: 620px;
  background: none;
  border: 1px solid rgba(73, 126, 204, .18);
  border-radius: 50%;
}

.process-shell::after {
  right: auto;
  bottom: -410px;
  left: -330px;
  width: 650px;
  height: 650px;
  border: 1px solid rgba(73, 126, 204, .12);
  border-radius: 50%;
  transform: none;
}

.process__eyebrow {
  display: block;
  margin-bottom: 18px;
  color: #2d6fc8;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.process__header h2 {
  max-width: 900px;
  color: var(--navy);
  font-size: clamp(56px, 5.5vw, 78px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.12;
}

.process__lead {
  max-width: 760px;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.5;
}

.process-line {
  --process-gap: 0px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 44px 0 0;
}

.process-line li,
.process-line li + li,
.process-line li:nth-child(odd),
.process-line li:last-child {
  position: relative;
  min-height: 310px;
  overflow: visible;
  padding: 52px 26px 0 8px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  transform: none;
}

.process-line li:hover {
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: none;
}

.process-line li::before {
  top: 103px;
  right: auto;
  bottom: auto;
  left: -2px;
  width: 7px;
  height: 7px;
  background: #fff;
  border: 2px solid #6f9edb;
  border-radius: 50%;
}

.process-line li::after {
  top: 200px;
  right: auto;
  bottom: auto;
  left: 8px;
  width: 96px;
  height: 1px;
  background: #4e86d0;
  border: 0;
  box-shadow: none;
}

.process-line li > .process-step__number {
  display: grid;
  width: 112px;
  height: 112px;
  margin: 0;
  place-items: center;
  color: #3573c7;
  background: rgba(255, 255, 255, .86);
  border: 1px solid #8db3e7;
  border-radius: 50%;
  box-shadow:
    0 0 0 10px rgba(96, 151, 224, .045),
    0 12px 28px rgba(51, 95, 153, .08);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0;
}

.process-step__icon {
  position: absolute;
  top: 0;
  left: 44px;
  display: block;
  width: 38px;
  height: 38px;
  margin: 0;
  object-fit: contain;
}

.process-line h3 {
  max-width: 290px;
  margin: 52px 0 0;
  color: var(--navy);
  font-size: clamp(19px, 1.6vw, 23px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.25;
}

.process-line p {
  max-width: 285px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.18vw, 16px);
  line-height: 1.55;
}

.process-line li > .process-step__connector {
  top: 107px;
  left: 120px;
  width: calc(100% - 112px);
  height: 1px;
  color: #4e86d0;
  background: linear-gradient(90deg, #aac8ee, #6f9edb);
  border: 0;
  box-shadow: none;
  transform: none;
}

.process-step__connector::before {
  top: 50%;
  left: 0;
  width: 5px;
  height: 5px;
  background: #6f9edb;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  transform: translate(-50%, -50%);
}

.process-step__connector::after {
  top: 50%;
  right: 2px;
  width: 9px;
  height: 9px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

@media (max-width: 1100px) {
  .process-shell {
    min-height: 0;
    padding: 24px 12px 30px;
  }

  .process-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 20px;
  }

  .process-line li,
  .process-line li + li,
  .process-line li:nth-child(odd),
  .process-line li:last-child {
    min-height: 280px;
  }

  .process-line li > .process-step__connector {
    display: none;
  }
}

@media (max-width: 760px) {
  .process {
    padding: 42px 0 52px;
  }

  .process-shell {
    padding: 18px 0 20px;
  }

  .process__header h2 {
    font-size: clamp(40px, 11vw, 54px);
  }

  .process__title-line {
    white-space: normal;
  }

  .process-line {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 36px;
  }

  .process-line li,
  .process-line li + li,
  .process-line li:nth-child(odd),
  .process-line li:last-child {
    min-height: 240px;
    padding-right: 0;
  }
}

/* Process timeline — exact geometry from the approved reference */
.process {
  position: relative;
  min-height: clamp(760px, 53.16vw, 1327px);
  overflow: hidden;
  padding: 0;
  background: #fff url("../images/process-timeline/process-background.webp") center / 100% 100% no-repeat;
}

.process > .container {
  width: 100%;
  max-width: none;
  padding-inline: clamp(72px, 5.8vw, 145px);
}

.process-shell {
  min-height: clamp(760px, 53.16vw, 1327px);
  overflow: visible;
  padding: clamp(72px, 4.9vw, 122px) 0 0;
}

.process-shell::before,
.process-shell::after {
  display: none;
}

.process__eyebrow {
  margin-bottom: clamp(20px, 1.15vw, 29px);
  font-size: clamp(13px, .72vw, 18px);
  line-height: 1.2;
}

.process__header h2 {
  max-width: 1100px;
  font-size: clamp(66px, 4.2vw, 105px);
  font-weight: 500;
  letter-spacing: -.043em;
  line-height: 1.05;
}

.process__lead {
  max-width: 1000px;
  margin-top: clamp(24px, 1.35vw, 34px);
  font-size: clamp(20px, 1.2vw, 30px);
  line-height: 1.38;
}

.process-line {
  --marker-size: clamp(122px, 7.05vw, 176px);
  --marker-top: clamp(58px, 3.3vw, 82px);
  --copy-shift: clamp(98px, 6.48vw, 162px);
  --icon-size: clamp(34px, 1.95vw, 49px);
  position: relative;
  display: block;
  width: 100vw;
  height: clamp(390px, 21vw, 525px);
  margin: clamp(70px, 4.5vw, 112px) 0 0;
  margin-left: clamp(-145px, -5.8vw, -72px);
}

.process-line::before {
  content: "";
  position: absolute;
  top: calc(var(--marker-top) + (var(--marker-size) / 2));
  right: 0;
  left: 0;
  display: block;
  height: 1px;
  background: rgba(82, 137, 218, .64);
}

.process-line li,
.process-line li + li,
.process-line li:nth-child(odd),
.process-line li:last-child {
  --step-center: 13.15%;
  position: absolute;
  top: 0;
  left: calc(var(--step-center) - var(--copy-shift));
  width: clamp(290px, 20vw, 500px);
  min-height: 0;
  padding: var(--marker-top) 0 0;
}

.process-line li:nth-child(2) { --step-center: 37%; }
.process-line li:nth-child(3) { --step-center: 58.1%; }
.process-line li:nth-child(4) { --step-center: 81.2%; }

.process-line li::before {
  display: none;
}

.process-line li::after {
  top: calc(var(--marker-top) + var(--marker-size) + clamp(34px, 1.86vw, 47px));
  left: 0;
  width: clamp(92px, 6.35vw, 159px);
  height: 1px;
  background: #4d88d6;
}

.process-line li > .process-step__number {
  position: relative;
  z-index: 2;
  width: var(--marker-size);
  height: var(--marker-size);
  margin-left: calc(var(--copy-shift) - (var(--marker-size) / 2));
  color: #3473ca;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(84, 139, 219, .56);
  box-shadow:
    0 0 0 clamp(8px, .55vw, 14px) rgba(83, 142, 224, .035),
    0 14px 34px rgba(48, 96, 163, .08);
  font-size: clamp(36px, 2.08vw, 52px);
  font-weight: 500;
}

.process-step__icon {
  top: 0;
  left: calc(var(--copy-shift) - (var(--icon-size) / 2));
  width: var(--icon-size);
  height: var(--icon-size);
}

.process-line h3 {
  max-width: 440px;
  margin-top: clamp(70px, 3.45vw, 86px);
  font-size: clamp(22px, 1.35vw, 34px);
  line-height: 1.24;
}

.process-line p {
  max-width: 430px;
  margin-top: clamp(15px, .78vw, 20px);
  font-size: clamp(17px, 1.04vw, 26px);
  line-height: 1.48;
}

.process-line li > .process-step__connector {
  position: absolute;
  top: calc(var(--marker-top) + (var(--marker-size) / 2));
  left: calc(var(--copy-shift) + (var(--marker-size) / 2));
  z-index: 3;
  display: block;
  width: calc(23.85vw - var(--marker-size));
  height: 1px;
  background: transparent;
}

.process-line li:nth-child(2) > .process-step__connector {
  width: calc(21.1vw - var(--marker-size));
}

.process-line li:nth-child(3) > .process-step__connector {
  width: calc(23.1vw - var(--marker-size));
}

.process-step__connector::before {
  display: none;
}

.process-step__connector::after {
  right: clamp(18px, 1.4vw, 35px);
  width: clamp(8px, .55vw, 14px);
  height: clamp(8px, .55vw, 14px);
  border-color: #4c88d8;
  border-width: 1px;
}

@media (max-width: 1100px) {
  .process {
    min-height: 0;
    padding: 64px 0 72px;
  }

  .process > .container {
    width: min(calc(100% - (var(--gutter) * 2)), var(--container));
    padding-inline: 0;
  }

  .process-shell {
    min-height: 0;
    padding: 0;
  }

  .process__header h2 {
    font-size: clamp(54px, 7.2vw, 72px);
  }

  .process-line {
    display: grid;
    width: 100%;
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 28px;
    margin: 58px 0 0;
  }

  .process-line::before {
    display: none;
  }

  .process-line li,
  .process-line li + li,
  .process-line li:nth-child(odd),
  .process-line li:last-child {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    min-height: 300px;
    padding-top: 54px;
  }

  .process-line li > .process-step__connector {
    display: none;
  }
}

@media (max-width: 760px) {
  .process {
    padding: 50px 0 58px;
  }

  .process__header h2 {
    font-size: clamp(42px, 11vw, 56px);
  }

  .process__lead {
    font-size: 18px;
  }

  .process-line {
    grid-template-columns: 1fr;
    gap: 34px;
    margin-top: 44px;
  }

  .process-line li,
  .process-line li + li,
  .process-line li:nth-child(odd),
  .process-line li:last-child {
    min-height: 270px;
  }
}

/* Calculator — approved two-column reference layout */
.calculator-shell {
  grid-template-columns: minmax(360px, 37.5%) minmax(0, 62.5%);
  min-height: 700px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 18%, rgba(45, 112, 190, .22), transparent 34%),
    radial-gradient(circle at 18% 88%, rgba(26, 87, 154, .2), transparent 32%),
    linear-gradient(135deg, #061a39 0%, #082650 52%, #0c376c 100%);
  border: 1px solid rgba(102, 165, 232, .25);
  border-radius: 26px;
  box-shadow: 0 24px 58px rgba(7, 29, 62, .18);
}

.calculator-intro {
  min-height: 700px;
  padding: 28px clamp(34px, 3.4vw, 50px) 30px;
}

.calculator-intro__eyebrow {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255, 255, 255, .94);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.calculator-intro__window {
  display: block;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  background:
    linear-gradient(rgba(6, 27, 60, .28), rgba(6, 27, 60, .28)),
    url("../images/quiz/window-v4.webp") center / 84% 84% no-repeat;
  border: 1px solid rgba(102, 174, 246, .28);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.calculator-intro h2 {
  max-width: 480px;
  margin-top: 0;
  font-size: clamp(36px, 2.65vw, 38px);
  line-height: 1.1;
}

.calculator-intro > p {
  max-width: 410px;
  margin-top: 18px;
  color: rgba(207, 224, 243, .82);
  font-size: 17px;
  line-height: 1.55;
}

.calculator-intro__drawing {
  top: 38px;
  right: -5%;
  bottom: auto;
  width: 62%;
  height: 48%;
  background: url("../images/quiz/window-v4.webp") center / contain no-repeat;
  opacity: .055;
  filter: grayscale(1) brightness(1.7);
}

.calculator-intro__drawing span {
  display: none;
}

.calculator-benefits {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 18px;
  margin: 24px 0 0;
  padding: 22px;
  list-style: none;
  border: 1px solid rgba(126, 181, 237, .23);
  border-radius: 16px;
  background: rgba(3, 23, 52, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.calculator-benefits li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.calculator-benefits__icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, rgba(54, 126, 209, .3), rgba(26, 74, 135, .16));
  border: 1px solid rgba(112, 175, 240, .18);
  border-radius: 50%;
  font-size: 21px;
  font-weight: 700;
}

.calculator-benefits__icon img,
.calculator-phone__icon img {
  display: block;
  width: 76%;
  height: 76%;
  object-fit: contain;
  filter: drop-shadow(0 4px 7px rgba(2, 17, 42, .2));
}

.calculator-benefits strong,
.calculator-benefits small {
  display: block;
}

.calculator-benefits strong {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.calculator-benefits small {
  max-width: 285px;
  margin-top: 4px;
  color: rgba(207, 224, 243, .78);
  font-size: 12px;
  line-height: 1.45;
}

.calculator-phone {
  gap: 14px;
  margin-top: 22px;
  padding-top: 0;
}

.calculator-phone__icon {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  color: #fff;
  background: linear-gradient(145deg, rgba(57, 129, 214, .44), rgba(31, 88, 155, .24));
  border-color: rgba(113, 181, 247, .32);
  border-radius: 13px;
}

.calculator-phone__icon img {
  width: 72%;
  height: 72%;
}

.calculator-phone small {
  color: rgba(207, 224, 243, .76);
  font-size: 12px;
}

.calculator-phone a {
  font-size: clamp(20px, 2vw, 26px);
}

.quiz {
  display: flex;
  width: calc(100% - 24px);
  min-height: 654px;
  align-self: stretch;
  flex-direction: column;
  margin: 23px 23px 23px 0;
  padding: clamp(34px, 3.2vw, 44px);
  background:
    radial-gradient(circle at 100% 0%, rgba(224, 238, 252, .3), transparent 34%),
    #fff;
  border: 1px solid rgba(24, 72, 125, .13);
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(0, 14, 39, .18);
}

.quiz__top {
  margin-bottom: 30px;
}

.quiz__step-label {
  margin-bottom: 16px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 500;
}

.quiz__progress {
  gap: 10px;
}

.quiz__progress i {
  height: 7px;
  background: #e3e9ef;
}

.quiz__progress i.is-active {
  background: #4f8ddd;
  box-shadow: 0 0 0 3px rgba(79, 141, 221, .1);
}

.quiz__progress i.is-complete {
  background: #08254f;
}

.quiz__screen.is-active {
  display: block;
}

.quiz legend {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(29px, 2.45vw, 39px);
  line-height: 1.18;
}

.choice {
  min-height: 72px;
  gap: 18px;
  margin-top: 10px;
  padding: 8px 62px 8px 14px;
  background: rgba(255, 255, 255, .88);
  border-color: #dce5ee;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(10, 33, 71, .018);
}

.choice::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 24px;
  width: 28px;
  height: 28px;
  border: 2px solid #c8d5e2;
  border-radius: 50%;
  transform: translateY(-50%);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.choice:hover {
  background: #fbfdff;
  border-color: #a9c4e0;
  box-shadow: 0 10px 22px rgba(10, 33, 71, .07);
  transform: translateY(-1px);
}

.choice:has(input:checked) {
  background: linear-gradient(90deg, #f1f7fd, #fbfdff);
  border-color: #4f8ddd;
  box-shadow: inset 0 0 0 1px rgba(79, 141, 221, .18), 0 8px 20px rgba(36, 98, 166, .08);
}

.choice:has(input:checked)::before {
  background: #0a438d;
  border-color: #0a438d;
  box-shadow: 0 0 0 4px rgba(79, 141, 221, .1);
}

.choice:has(input:checked)::after {
  top: 50%;
  right: 24px;
  width: 28px;
  height: 28px;
  color: #fff;
  background: transparent;
  border-radius: 50%;
  box-shadow: none;
  font-size: 14px;
}

.choice__icon {
  width: 58px;
  height: 56px;
  flex: 0 0 58px;
  background-color: #f7f9fb;
  background-size: 88% 88%;
  border-color: rgba(22, 73, 126, .1);
  border-radius: 10px;
}

.choice__copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.choice > .choice__copy:last-child {
  font-size: inherit;
  font-weight: inherit;
}

.choice__copy strong,
.choice__copy small {
  display: block;
}

.choice__copy strong {
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.choice__copy small {
  color: #526681;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.quiz__hint {
  margin: -12px 0 26px;
  font-size: 14px;
}

.field + .field {
  margin-top: 20px;
}

.field label,
.contact-method > span {
  margin-bottom: 10px;
  font-size: 14px;
}

.field input {
  height: 62px;
  padding-inline: 18px;
  background: #fff;
  border-color: #d8e1eb;
  border-radius: 10px;
  font-size: 16px;
}

.contact-method {
  gap: 10px 24px;
  margin-top: 24px;
}

.contact-method label {
  font-size: 15px;
}

.contact-method input {
  width: 18px;
  height: 18px;
  margin: 0 7px 0 0;
  vertical-align: -3px;
  accent-color: #146cca;
}

.quiz__error {
  min-height: 18px;
  margin: 8px 0 0;
  font-size: 13px;
}

.quiz__actions {
  margin-top: auto;
  padding-top: 20px;
}

.quiz__actions .button {
  min-height: 62px;
  border-radius: 10px;
  font-size: 16px;
}

.privacy {
  margin-top: 16px;
}

@media (max-width: 1180px) and (min-width: 1001px) {
  .calculator-shell {
    grid-template-columns: minmax(330px, 36%) minmax(0, 64%);
  }

  .calculator-intro {
    padding-inline: 34px;
  }

  .calculator-intro h2 {
    font-size: 40px;
  }

  .calculator-benefits {
    padding: 18px;
  }

  .quiz {
    padding: 34px;
  }

  .quiz legend {
    font-size: 31px;
  }
}

@media (max-width: 1000px) {
  .calculator-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .calculator-intro {
    min-height: 0;
    padding: 42px;
  }

  .calculator-intro h2 {
    max-width: 760px;
  }

  .calculator-intro > p {
    max-width: 620px;
  }

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

  .calculator-benefits li {
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
  }

  .calculator-benefits__icon {
    width: 42px;
    height: 42px;
  }

  .calculator-phone {
    margin-top: 26px;
  }

  .quiz {
    width: auto;
    min-height: 650px;
    margin: 0 20px 20px;
  }
}

@media (max-width: 760px) {
  .calculator-intro {
    padding: 34px 24px;
  }

  .calculator-intro h2 {
    margin-top: 0;
    font-size: clamp(34px, 9vw, 44px);
  }

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

  .calculator-benefits small {
    max-width: none;
  }

  .quiz {
    min-height: 0;
    margin: 0 12px 12px;
    padding: 30px 20px;
  }

  .quiz legend {
    font-size: clamp(27px, 7.4vw, 34px);
  }

  .choice {
    min-height: 72px;
    gap: 12px;
    padding: 8px 48px 8px 10px;
  }

  .choice::before,
  .choice:has(input:checked)::after {
    right: 13px;
    width: 24px;
    height: 24px;
  }

  .choice__icon {
    width: 54px;
    height: 52px;
    flex-basis: 54px;
  }

  .choice__copy strong {
    font-size: 15px;
  }

  .choice__copy small {
    font-size: 12px;
  }

  .quiz__actions {
    flex-direction: column-reverse;
  }
}

@media (max-width: 520px) {
  .calculator .container {
    width: calc(100% - 24px);
  }

  .calculator-shell {
    border-radius: 20px;
  }

  .calculator-intro__eyebrow {
    font-size: 13px;
  }

  .calculator-intro__window {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .calculator-benefits {
    padding: 18px;
  }

  .calculator-phone a {
    font-size: 20px;
  }

  .quiz {
    padding: 26px 14px;
    border-radius: 16px;
  }

  .quiz__progress {
    gap: 5px;
  }

  .quiz legend {
    margin-bottom: 20px;
  }

  .choice {
    padding-left: 8px;
  }
}

/* Полноширинный фон квиза */
.calculator {
  background:
    radial-gradient(circle at 88% 18%, rgba(45, 112, 190, .22), transparent 34%),
    radial-gradient(circle at 18% 88%, rgba(26, 87, 154, .2), transparent 32%),
    linear-gradient(135deg, #061a39 0%, #082650 52%, #0c376c 100%);
}

.calculator-shell {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Единый блок выполненных работ */
.projects {
  background: #fff;
}

.projects::before {
  display: none;
}

.projects-shell {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.projects-shell__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 32px;
}

.projects-shell__header h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(34px, 3.2vw, 48px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.projects-shell__header p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.projects-shell__all {
  display: inline-flex;
  min-height: 56px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 18px;
  color: var(--navy);
  background: #fff;
  border: 1px solid #b9cee4;
  border-radius: 11px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(13, 43, 85, .04);
  appearance: none;
  cursor: pointer;
  font: inherit;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.projects-shell__all img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.projects-shell__all b {
  font-size: 20px;
  font-weight: 500;
  transition: transform .25s ease;
}

.projects-shell__all:hover {
  transform: translateY(-2px);
  border-color: #6fa7e6;
  box-shadow: 0 12px 26px rgba(13, 43, 85, .09);
}

.projects-shell__all:hover b {
  transform: translateX(3px);
}

.projects-shell .project-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.projects-shell .project,
.projects-shell .project--reverse {
  display: block;
  padding: 0;
  border: 0;
}

.projects-shell .project--reverse .project__photo,
.projects-shell .project--reverse .project__content {
  grid-row: auto;
  grid-column: auto;
}

.projects-shell .project__photo {
  border-radius: 17px;
  box-shadow: none;
}

.projects-shell .project--reverse .project__photo {
  grid-row: auto;
  grid-column: auto;
}

.projects-shell .project__photo img {
  height: auto;
  aspect-ratio: 1.04 / 1;
  object-fit: cover;
}

.projects-shell .project:nth-child(1) .project__photo img {
  object-position: 50% 46%;
}

.projects-shell .project:nth-child(2) .project__photo img {
  object-position: 50% 50%;
}

.projects-shell .project:nth-child(3) .project__photo img {
  object-position: 50% 48%;
}

.projects-shell .project__photo > span {
  opacity: 0;
  transform: translateY(7px);
  transition: opacity .25s ease, transform .25s ease;
}

.projects-shell .project__photo:hover > span,
.projects-shell .project__photo:focus-visible > span {
  opacity: 1;
  transform: translateY(0);
}

.projects-shell .project__content {
  max-width: none;
  padding-top: 17px;
}

.projects-shell .project__content h3 {
  margin: 0;
  font-size: clamp(19px, 1.5vw, 24px);
  line-height: 1.25;
  letter-spacing: -.02em;
}

.projects-shell .project__content > p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.projects-shell .project-cta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-top: 38px;
  padding: 30px 0 0;
  background: transparent;
  border: 0;
  border-top: 1px solid #dce6ef;
  border-radius: 0;
  box-shadow: none;
}

.projects-shell .project-cta::after {
  display: none;
}

.project-cta__icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  background: #f1f6fc;
  border-radius: 50%;
}

.project-cta__icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.project-cta__copy {
  display: grid;
  gap: 5px;
}

.project-cta__copy strong {
  color: var(--navy);
  font-size: clamp(20px, 1.7vw, 25px);
  line-height: 1.2;
}

.project-cta__copy span {
  color: var(--muted);
  font-size: 15px;
}

.projects-shell .project-cta .button {
  min-width: 300px;
  gap: 16px;
}

.projects-shell .project-cta .button span {
  font-size: 20px;
  transition: transform .25s ease;
}

.projects-shell .project-cta .button:hover span {
  transform: translateX(4px);
}

@media (max-width: 960px) {
  .projects-shell__header {
    align-items: flex-start;
  }

  .projects-shell .project-list {
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .projects-shell .project {
    scroll-snap-align: start;
  }

  .projects-shell .project-cta .button {
    min-width: 240px;
  }
}

@media (max-width: 680px) {
  .projects-shell {
    padding: 0;
    border-radius: 0;
  }

  .projects-shell__header {
    align-items: stretch;
    flex-direction: column;
    margin-bottom: 24px;
  }

  .projects-shell__header h2 {
    font-size: clamp(30px, 10vw, 38px);
  }

  .projects-shell__all {
    width: 100%;
  }

  .projects-shell .project-list {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(250px, 84%);
    gap: 14px;
    margin-right: -20px;
    padding-right: 20px;
  }

  .projects-shell .project-cta {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    margin-top: 30px;
    padding: 24px 0 0;
  }

  .project-cta__icon {
    width: 52px;
    height: 52px;
  }

  .project-cta__icon img {
    width: 36px;
    height: 36px;
  }

  .projects-shell .project-cta .button {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }
}

/* Галерея выполненных работ */
body.works-gallery-open {
  overflow: hidden;
}

.works-gallery {
  position: fixed;
  inset: 0;
  width: min(94vw, 1480px);
  height: min(92dvh, 920px);
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
}

.works-gallery::backdrop {
  background: rgba(4, 19, 40, .72);
  backdrop-filter: blur(9px);
}

.works-gallery__panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
  height: 100%;
  padding: clamp(20px, 2.4vw, 34px);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(187, 207, 228, .72);
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(4, 25, 54, .28);
}

.works-gallery__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.works-gallery__header h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.works-gallery__close,
.works-gallery__arrow {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  color: var(--navy);
  background: #fff;
  border: 1px solid #c9d9e9;
  cursor: pointer;
  transition: color .22s ease, background .22s ease, border-color .22s ease, transform .22s ease;
}

.works-gallery__close {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
}

.works-gallery__viewer {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 16px;
  min-height: 0;
}

.works-gallery__figure {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 13px;
  min-width: 0;
  height: 100%;
  margin: 0;
}

.works-gallery__image-wrap {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid #dbe6f0;
  border-radius: 20px;
  cursor: zoom-in;
}

.works-gallery__image-wrap:focus-visible {
  outline: 3px solid rgba(79, 145, 220, .45);
  outline-offset: 3px;
}

.works-gallery__fullscreen {
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 14px;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  color: var(--navy);
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(13, 43, 85, .18);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(5, 32, 67, .18);
  backdrop-filter: blur(8px);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.works-gallery__fullscreen span {
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
}

.works-gallery__fullscreen:hover,
.works-gallery__fullscreen:focus-visible {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
  transform: translateY(-2px);
}

.works-gallery__fullscreen:focus-visible {
  outline: 3px solid rgba(79, 145, 220, .45);
  outline-offset: 3px;
}

.works-gallery__image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.works-gallery__figure figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 32px;
  color: var(--navy);
}

.works-gallery__figure figcaption strong {
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.25;
}

.works-gallery__figure figcaption span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 15px;
}

.works-gallery__arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 23px;
}

.works-gallery__close:hover,
.works-gallery__arrow:hover {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
  transform: translateY(-2px);
}

.works-gallery__thumbs {
  display: flex;
  gap: 12px;
  padding: 2px 2px 7px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-color: #afc4da transparent;
  scrollbar-width: thin;
}

.works-gallery__thumb {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  flex: 0 0 225px;
  align-items: center;
  gap: 11px;
  padding: 7px;
  color: var(--navy);
  background: #fff;
  border: 1px solid #d5e1ec;
  border-radius: 13px;
  cursor: pointer;
  font: inherit;
  text-align: left;
  scroll-snap-align: start;
  transition: background .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.works-gallery__thumb img {
  display: block;
  width: 82px;
  height: 62px;
  object-fit: cover;
  border-radius: 9px;
}

.works-gallery__thumb span {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.works-gallery__thumb:hover {
  border-color: #82afe1;
  transform: translateY(-1px);
}

.works-gallery__thumb.is-active {
  background: #f1f7fd;
  border-color: #4f91dc;
  box-shadow: 0 0 0 2px rgba(79, 145, 220, .14);
}

.works-gallery__close:focus-visible,
.works-gallery__arrow:focus-visible,
.works-gallery__thumb:focus-visible {
  outline: 3px solid rgba(79, 145, 220, .35);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .works-gallery {
    width: 100vw;
    height: 100dvh;
  }

  .works-gallery__panel {
    gap: 13px;
    padding: 18px 14px 14px;
    border-radius: 0;
  }

  .works-gallery__header h2 {
    font-size: clamp(25px, 8vw, 34px);
  }

  .works-gallery__close {
    width: 44px;
    height: 44px;
  }

  .works-gallery__viewer {
    position: relative;
    display: block;
  }

  .works-gallery__arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, .94);
    transform: translateY(-50%);
  }

  .works-gallery__arrow:hover {
    transform: translateY(calc(-50% - 2px));
  }

  .works-gallery__arrow--prev {
    left: 10px;
  }

  .works-gallery__arrow--next {
    right: 10px;
  }

  .works-gallery__image-wrap {
    min-height: 0;
    border-radius: 16px;
  }

  .works-gallery__figure figcaption {
    padding: 0 2px;
  }

  .works-gallery__thumb {
    grid-template-columns: 68px minmax(0, 1fr);
    flex-basis: 190px;
  }

  .works-gallery__thumb img {
    width: 68px;
    height: 54px;
  }
}

/* Обзорная сетка полного архива работ */
.works-gallery__panel {
  grid-template-rows: auto minmax(0, 1fr);
  gap: 20px;
}

.works-gallery__header {
  padding-bottom: 18px;
  border-bottom: 1px solid #dce6ef;
}

.works-gallery__header p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.works-gallery__header p strong {
  color: var(--navy);
}

.works-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  min-height: 0;
  padding: 2px 8px 10px 2px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: #abc0d5 transparent;
  scrollbar-width: thin;
}

.works-gallery__grid[hidden],
.works-gallery__detail[hidden] {
  display: none;
}

.works-gallery__tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  background: #edf3f8;
  border: 1px solid #d7e3ee;
  border-radius: 15px;
  cursor: zoom-in;
  scroll-margin: 16px;
}

.works-gallery__tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .32s ease, filter .32s ease;
}

.works-gallery__tile span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  min-width: 38px;
  height: 30px;
  place-items: center;
  padding: 0 8px;
  color: #fff;
  background: rgba(5, 36, 77, .88);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(6px);
}

.works-gallery__tile:hover img {
  filter: brightness(1.04);
  transform: scale(1.035);
}

.works-gallery__tile:focus-visible {
  outline: 3px solid rgba(79, 145, 220, .46);
  outline-offset: 2px;
}

.works-gallery__detail {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  min-height: 0;
}

.works-gallery__detail-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.works-gallery__back {
  padding: 8px 0;
  color: var(--navy);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.works-gallery__back:hover {
  color: #397fce;
}

.works-gallery__detail-stage {
  position: relative;
  display: grid;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  background: #edf3f8;
  border: 1px solid #d6e2ed;
  border-radius: 20px;
}

.works-gallery__detail-stage > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.works-gallery__detail-stage .works-gallery__arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 7px 22px rgba(7, 35, 69, .14);
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.works-gallery__detail-stage .works-gallery__arrow:hover {
  color: #fff;
  background: var(--navy);
  transform: translateY(calc(-50% - 2px));
}

.works-gallery__detail-stage .works-gallery__arrow--prev {
  left: 16px;
}

.works-gallery__detail-stage .works-gallery__arrow--next {
  right: 16px;
}

@media (max-width: 1050px) {
  .works-gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .works-gallery__panel {
    gap: 14px;
  }

  .works-gallery__header {
    padding-bottom: 13px;
  }

  .works-gallery__header h2 {
    font-size: clamp(24px, 7vw, 31px);
  }

  .works-gallery__header p {
    margin-top: 5px;
    font-size: 13px;
  }

  .works-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding-right: 3px;
  }

  .works-gallery__tile {
    border-radius: 11px;
  }

  .works-gallery__tile span {
    right: 7px;
    bottom: 7px;
    min-width: 34px;
    height: 27px;
  }

  .works-gallery__detail-stage {
    border-radius: 14px;
  }

  .works-gallery__detail-stage .works-gallery__arrow--prev {
    left: 8px;
  }

  .works-gallery__detail-stage .works-gallery__arrow--next {
    right: 8px;
  }
}

/* Заключительный блок расчёта */
.contact {
  padding: clamp(46px, 5vw, 72px) 0;
  background: #fff;
}

.contact-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  gap: clamp(48px, 6vw, 88px);
  min-height: 610px;
  align-items: center;
  overflow: hidden;
  padding: clamp(48px, 5.5vw, 76px) clamp(46px, 6vw, 88px);
  color: #fff;
  background:
    radial-gradient(circle at 73% 42%, rgba(46, 117, 202, .2), transparent 29%),
    linear-gradient(118deg, #061c3d 0%, #0a2f61 62%, #0c376e 100%);
  border: 1px solid rgba(116, 169, 228, .22);
  border-radius: 30px;
  box-shadow: 0 24px 60px rgba(10, 33, 71, .16);
}

.contact-shell::before,
.contact-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.contact-shell::before {
  top: -265px;
  left: 37%;
  width: 560px;
  height: 420px;
  border: 1px solid rgba(126, 178, 235, .12);
  border-radius: 50%;
  transform: rotate(8deg);
}

.contact-shell::after {
  bottom: -30px;
  left: 0;
  width: 230px;
  height: 180px;
  opacity: .2;
  background-image: radial-gradient(rgba(82, 159, 242, .75) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  mask-image: linear-gradient(135deg, #000, transparent 72%);
}

.contact__copy,
.contact-form {
  position: relative;
  z-index: 1;
}

.contact__copy h2 {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-size: clamp(44px, 4.2vw, 64px);
  line-height: 1.12;
  letter-spacing: -.045em;
}

.contact__copy > p {
  max-width: 620px;
  margin: 22px 0 0;
  color: #bfd0e4;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.6;
}

.contact__copy > p::after {
  content: "";
  display: block;
  width: 74px;
  height: 2px;
  margin-top: 28px;
  background: #4f9cf2;
  border-radius: 2px;
}

.contact__phone {
  display: inline-flex;
  width: auto;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
  color: #fff;
  font-size: clamp(31px, 3.1vw, 46px);
  font-weight: 700;
  letter-spacing: -.03em;
  text-decoration: none;
}

.contact__phone-icon {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  background: rgba(42, 112, 190, .22);
  border-radius: 50%;
}

.contact__phone-icon img {
  display: block;
  width: 30px;
  height: 30px;
}

.contact__messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.contact__messengers a {
  display: inline-flex;
  min-width: 174px;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  color: #c8d8ea;
  background: rgba(7, 30, 64, .2);
  border: 1px solid rgba(113, 172, 235, .45);
  border-radius: 13px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .25s ease, color .25s ease, background .25s ease, border-color .25s ease;
}

.contact__messengers a span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
}

.contact__messengers a span img {
  display: block;
  width: 25px;
  height: 25px;
}

.contact__messengers a .contact__max-icon {
  background:
    linear-gradient(#58a8ff, #58a8ff),
    url("../images/icons/contact-max-v1.webp") center / cover no-repeat;
  background-blend-mode: color;
  border-radius: 50%;
}

/* Contract terms: the heading spans the full section above both columns. */
.trust__grid {
  grid-template-areas:
    "title title"
    "visual content";
  grid-template-rows: auto 1fr;
  align-items: start;
  column-gap: clamp(48px, 7vw, 104px);
  row-gap: clamp(34px, 3vw, 48px);
}

.trust__title {
  grid-area: title;
  max-width: none;
  margin: 0;
}

@media (min-width: 1200px) {
  .trust__title {
    white-space: nowrap;
  }
}

.trust__visual {
  grid-area: visual;
}

.trust__content {
  grid-area: content;
}

.trust__content .trust__lead {
  margin-top: 0;
}

@media (max-width: 900px) {
  .trust__grid {
    grid-template-areas:
      "title"
      "visual"
      "content";
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 30px;
  }

  .trust__visual {
    order: initial;
  }
}

.contact__messengers a:hover {
  transform: translateY(-2px);
  color: #fff;
  background: rgba(45, 111, 187, .24);
  border-color: rgba(113, 172, 235, .8);
}

.contact-form {
  padding: clamp(34px, 3.5vw, 48px);
  color: var(--text);
  background: #fff;
  border: 1px solid rgba(31, 64, 101, .1);
  border-radius: 28px;
  box-shadow: 0 24px 52px rgba(0, 12, 36, .24);
}

.contact-form h3 {
  margin: 0 0 30px;
  color: var(--navy);
  font-size: clamp(27px, 2.2vw, 36px);
  line-height: 1.2;
  letter-spacing: -.03em;
}

.contact-form .field + .field {
  margin-top: 22px;
}

.contact-form .field label {
  margin-bottom: 10px;
  font-size: 15px;
}

.contact-form .field input {
  height: 68px;
  padding-inline: 20px;
  border-color: #d7e0ea;
  border-radius: 11px;
  font-size: 17px;
}

.contact-form .privacy {
  align-items: center;
  margin-top: 22px;
  color: #6a7c94;
}

.contact-form .privacy input {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
}

.contact-form .button {
  min-height: 66px;
  margin-top: 4px;
  border-radius: 11px;
  font-size: 19px;
}

.contact-form__note {
  margin-top: 14px;
  font-size: 13px;
}

@media (max-width: 1040px) {
  .contact-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .contact__copy {
    max-width: 760px;
  }

  .contact-form {
    width: 100%;
    max-width: 720px;
  }
}

@media (max-width: 680px) {
  .contact {
    padding: 34px 0;
  }

  .contact-shell {
    gap: 34px;
    padding: 34px 20px 20px;
    border-radius: 22px;
  }

  .contact__copy h2 {
    font-size: clamp(36px, 11vw, 47px);
  }

  .contact__copy > p {
    font-size: 16px;
  }

  .contact__phone {
    gap: 12px;
    font-size: clamp(25px, 7.3vw, 33px);
  }

  .contact__phone-icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .contact__phone-icon img {
    width: 26px;
    height: 26px;
  }

  .contact__messengers a {
    min-width: 0;
    flex: 1 1 140px;
  }

  .contact-form {
    padding: 28px 18px;
    border-radius: 18px;
  }

  .contact-form .field input {
    height: 62px;
  }
}

/* Информационный блок решений */
.services {
  padding-block: clamp(42px, 4vw, 60px);
  background: #fff;
}

.services::before {
  display: none;
}

.services-heading {
  max-width: 900px;
  margin: 0 auto clamp(26px, 3vw, 36px);
  text-align: center;
}

.services-heading h2 {
  margin: 0;
  font-size: clamp(40px, 3.8vw, 56px);
  line-height: 1.05;
  letter-spacing: -.048em;
}

.services-heading p {
  max-width: 610px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.45;
}

.services .services-grid {
  display: grid;
  height: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: none;
  gap: clamp(18px, 2vw, 28px);
}

.services .service-card--solution {
  display: grid;
  grid-template-rows: clamp(300px, 25vw, 380px) minmax(148px, auto);
  overflow: hidden;
  color: var(--navy);
  background: #fff;
  border: 1px solid #dde6ef;
  border-radius: 17px;
  box-shadow: 0 14px 34px rgba(13, 43, 85, .08);
  cursor: default;
  transform: none;
}

.services .service-card--solution::before {
  display: none;
}

.services .service-card--solution:hover {
  border-color: #dde6ef;
  box-shadow: 0 14px 34px rgba(13, 43, 85, .08);
  transform: none;
}

.services .service-card--solution .service-card__image {
  min-height: 0;
  height: 100%;
  aspect-ratio: auto;
  background: #eef3f7;
}

.services .service-card--solution .service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: none;
  transition: none;
}

.services .service-card--solution .service-card__content {
  display: grid;
  grid-template-columns: auto 1px minmax(0, 1fr);
  gap: clamp(16px, 1.4vw, 22px);
  align-items: start;
  padding: clamp(22px, 2.2vw, 30px);
}

.service-card__number {
  color: #8da1bb;
  font-size: clamp(44px, 3.5vw, 54px);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.05em;
}

.service-card__divider {
  align-self: stretch;
  min-height: 76px;
  background: #a9bad0;
}

.service-card__copy {
  display: block;
  min-width: 0;
}

.services .service-card--solution .service-card__copy strong {
  display: block;
  max-width: 260px;
  font-size: clamp(20px, 1.55vw, 24px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.025em;
}

.services .service-card--solution .service-card__copy small {
  display: block;
  margin-top: 9px;
  color: #657892;
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .services .services-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(320px, 72%);
    overflow-x: auto;
    margin-right: calc(var(--gutter) * -1);
    padding-right: var(--gutter);
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .services .service-card--solution {
    grid-template-rows: 330px minmax(148px, auto);
    scroll-snap-align: start;
  }
}

@media (max-width: 620px) {
  .services {
    padding-block: 46px;
  }

  .services-heading h2 {
    font-size: clamp(38px, 11vw, 48px);
  }

  .services .services-grid {
    grid-auto-columns: minmax(280px, 88%);
  }

  .services .service-card--solution {
    grid-template-rows: 260px minmax(142px, auto);
  }

  .services .service-card--solution .service-card__content {
    gap: 16px;
    padding: 24px 20px;
  }

  .service-card__number {
    font-size: 46px;
  }

  .service-card__divider {
    min-height: 80px;
  }

  .services .service-card--solution .service-card__copy strong {
    font-size: 21px;
  }

  .services .service-card--solution .service-card__copy small {
    font-size: 14px;
  }
}

/* Единый внешний ритм всех основных блоков */
main > .section {
  padding-top: clamp(64px, 5vw, 80px);
  padding-bottom: clamp(64px, 5vw, 80px);
}

@media (max-width: 900px) {
  main > .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}

@media (max-width: 620px) {
  main > .section {
    padding-top: 44px;
    padding-bottom: 44px;
  }
}

/* Keep the approved process geometry above the animated background layers */
.process {
  isolation: isolate;
  background: #fff;
}

.process::before {
  z-index: 0;
}

.process::after {
  z-index: 1;
}

.process > .container {
  position: relative;
  z-index: 2;
}

.process__header {
  text-align: center;
}

.process__header h2 {
  width: fit-content;
  margin-inline: auto;
}

.process__header .process__lead {
  margin-inline: auto;
}

.process-line li,
.process-line li + li,
.process-line li:nth-child(odd),
.process-line li:last-child {
  transition:
    opacity 680ms cubic-bezier(.22, .72, .24, 1),
    transform 760ms cubic-bezier(.18, .76, .2, 1),
    filter 320ms ease;
}

/* The route runs underneath the numbered markers, never through them */
.process-line {
  isolation: isolate;
}

.process-line::before,
.process-line::after {
  z-index: 0;
}

.process-line li,
.process-line li + li,
.process-line li:nth-child(odd),
.process-line li:last-child {
  z-index: 2;
}

.process-line li > .process-step__number {
  z-index: 4;
  background: #fff;
  box-shadow:
    0 0 0 clamp(8px, .55vw, 14px) rgba(83, 142, 224, .035),
    0 14px 34px rgba(48, 96, 163, .08);
}

@media (min-width: 1101px) {
  /* A permanent opaque disc masks both the route and its moving highlight. */
  .process-line li::before {
    content: "";
    position: absolute;
    top: var(--marker-top);
    left: calc(var(--copy-shift) - (var(--marker-size) / 2));
    z-index: 3;
    display: block;
    width: var(--marker-size);
    height: var(--marker-size);
    background: #fff;
    border: 0;
    border-radius: 50%;
    pointer-events: none;
  }

  /* Keep the mask fixed and opaque while the visible step content appears. */
  .process.motion-ready:not(.is-visible) .process-line li {
    opacity: 1;
    transform: none;
  }

  .process-line:has(li:hover) li:not(:hover) {
    opacity: 1;
  }

  .process.motion-ready .process-line li > .process-step__number,
  .process.motion-ready .process-line li > .process-step__icon,
  .process.motion-ready .process-line li > h3,
  .process.motion-ready .process-line li > p {
    transition:
      opacity 520ms cubic-bezier(.22, .72, .24, 1),
      transform 680ms cubic-bezier(.18, .76, .2, 1),
      filter 320ms ease;
  }

  .process.motion-ready:not(.is-visible) .process-line li > .process-step__number,
  .process.motion-ready:not(.is-visible) .process-line li > .process-step__icon,
  .process.motion-ready:not(.is-visible) .process-line li > h3,
  .process.motion-ready:not(.is-visible) .process-line li > p {
    opacity: 0;
    transform: translateY(16px);
  }
}

/* Comfortable single-image viewer for the complete works archive */
.works-gallery--viewer .works-gallery__panel {
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(14px, 1.4vw, 20px);
  padding: clamp(18px, 2vw, 30px);
}

.works-gallery--viewer .works-gallery__header {
  padding-bottom: clamp(12px, 1.1vw, 18px);
  border-bottom: 1px solid #dce6ef;
}

.works-gallery--viewer .works-gallery__header p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.works-gallery--viewer .works-gallery__viewer {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  align-items: center;
  gap: clamp(10px, 1.2vw, 18px);
  min-height: 0;
}

.works-gallery--viewer .works-gallery__figure {
  min-height: 0;
}

.works-gallery--viewer .works-gallery__image-wrap {
  min-height: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .9), transparent 62%),
    #edf3f8;
  border-color: #d5e2ee;
  border-radius: 18px;
}

.works-gallery--viewer .works-gallery__image-wrap img {
  object-fit: contain;
}

.works-gallery--viewer .works-gallery__figure figcaption {
  min-height: 28px;
  padding-inline: 2px;
}

.works-gallery--viewer .works-gallery__figure figcaption strong {
  font-size: clamp(16px, 1.35vw, 20px);
}

.works-gallery--viewer .works-gallery__figure figcaption span {
  min-width: 68px;
  color: #52708f;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: .04em;
  text-align: right;
}

.works-gallery--viewer .works-gallery__thumbs {
  gap: 9px;
  min-height: 0;
  padding: 2px 2px 7px;
}

.works-gallery--viewer .works-gallery__thumb {
  position: relative;
  display: block;
  flex: 0 0 116px;
  width: 116px;
  height: 78px;
  padding: 4px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d4e0eb;
  border-radius: 12px;
  scroll-snap-align: center;
}

.works-gallery--viewer .works-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.works-gallery--viewer .works-gallery__thumb span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  min-width: 28px;
  height: 22px;
  place-items: center;
  padding-inline: 5px;
  color: #fff;
  background: rgba(5, 36, 77, .82);
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 7px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  backdrop-filter: blur(5px);
}

.works-gallery--viewer .works-gallery__thumb:hover {
  border-color: #76a7dc;
  box-shadow: 0 8px 18px rgba(20, 66, 115, .1);
  transform: translateY(-2px);
}

.works-gallery--viewer .works-gallery__thumb.is-active {
  background: #fff;
  border-color: #347fd3;
  box-shadow: 0 0 0 3px rgba(52, 127, 211, .17);
}

@media (max-width: 760px) {
  .works-gallery--viewer .works-gallery__panel {
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: 16px 12px 12px;
  }

  .works-gallery--viewer .works-gallery__header p {
    display: none;
  }

  .works-gallery--viewer .works-gallery__viewer {
    position: relative;
    display: block;
    min-height: 0;
  }

  .works-gallery--viewer .works-gallery__figure {
    height: 100%;
  }

  .works-gallery--viewer .works-gallery__arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 8px 22px rgba(7, 35, 69, .16);
    transform: translateY(-50%);
  }

  .works-gallery--viewer .works-gallery__arrow:hover {
    transform: translateY(calc(-50% - 2px));
  }

  .works-gallery--viewer .works-gallery__arrow--prev {
    left: 9px;
  }

  .works-gallery--viewer .works-gallery__arrow--next {
    right: 9px;
  }

  .works-gallery--viewer .works-gallery__image-wrap {
    border-radius: 14px;
  }

  .works-gallery--viewer .works-gallery__figure figcaption strong {
    font-size: 15px;
  }

  .works-gallery--viewer .works-gallery__thumb {
    flex-basis: 88px;
    width: 88px;
    height: 64px;
  }
}

/* ========================================================================== 
   Final mobile adaptation
   One late cascade layer keeps the approved desktop intact and makes every
   section, form and dialog predictable on tablets and phones.
   ========================================================================== */

@media (max-width: 900px) {
  :root {
    --gutter: 22px;
    --radius: 18px;
  }

  html {
    overflow-x: clip;
    scroll-padding-top: 78px;
  }

  body {
    min-width: 320px;
    overflow-x: clip;
    font-size: 16px;
  }

  main,
  main > section,
  .container,
  .calculator-shell,
  .quiz,
  .contact-shell,
  .projects-shell,
  .anatomy-shell,
  .process-shell {
    min-width: 0;
  }

  main > .section {
    padding-top: 54px;
    padding-bottom: 54px;
    scroll-margin-top: 70px;
  }

  h1 {
    font-size: clamp(44px, 8.8vw, 64px);
  }

  h2,
  .projects-shell__header h2,
  .anatomy__intro h2,
  .process__header h2,
  .contact__copy h2 {
    font-size: clamp(36px, 7.2vw, 52px);
  }

  .button,
  .menu-toggle,
  .choice,
  .projects-shell__all,
  .review-card__photo,
  .reviews-dialog__filters button,
  .works-gallery__close,
  .works-gallery__arrow,
  .works-gallery__thumb,
  .faq summary {
    touch-action: manipulation;
  }

  /* Header and full-screen navigation */
  .site-header {
    height: 66px;
  }

  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
  }

  .site-header .brand--official {
    width: 170px;
    height: 50px;
  }

  .menu-toggle {
    min-width: 48px;
    min-height: 48px;
    justify-content: flex-end;
    padding: 10px 2px 10px 12px;
  }

  .site-nav {
    top: 66px;
    padding: 18px var(--gutter) 132px;
    overflow-y: auto;
    background:
      radial-gradient(circle at 100% 0%, rgba(79, 141, 221, .1), transparent 34%),
      rgba(255, 255, 255, .985);
    backdrop-filter: blur(20px);
  }

  .site-nav a,
  .site-nav a:nth-child(4),
  .site-nav a:nth-child(5) {
    min-height: 58px;
    padding: 16px 2px;
    font-size: 19px;
  }

  .site-nav a::after {
    display: none;
  }

  .header-contact {
    right: var(--gutter);
    bottom: max(18px, env(safe-area-inset-bottom));
    left: var(--gutter);
    gap: 10px;
    padding: 12px;
    background: rgba(238, 245, 251, .96);
    border: 1px solid #d9e5ef;
    box-shadow: 0 18px 42px rgba(10, 33, 71, .13);
  }

  body.menu-open .header-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .header-contact .header-phone,
  .header-contact .button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding-inline: 12px;
    font-size: 13px;
  }

  /* Hero */
  .hero {
    min-height: 0;
    padding: 46px 0 clamp(360px, 50vw, 470px);
    background-image:
      linear-gradient(180deg, #fff 0%, #fff 43%, rgba(255, 255, 255, .98) 52%, rgba(255, 255, 255, .12) 74%),
      url("../images/hero-integrated-real-v1.webp");
    background-position: center, right bottom;
    background-size: 100% 100%, auto 52%;
  }

  .hero__copy {
    max-width: 650px;
  }

  .hero__lead {
    max-width: 580px;
    margin-top: 24px;
    font-size: 18px;
    line-height: 1.52;
  }

  .hero__actions {
    margin-top: 28px;
  }

  .hero__assurances {
    margin-top: 34px;
  }

  /* Services */
  .services-heading {
    margin-bottom: 28px;
  }

  .services .services-grid {
    grid-template-columns: none;
    grid-template-rows: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(300px, 72%);
    gap: 16px;
    margin-right: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 12px 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: var(--gutter);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .services .services-grid::-webkit-scrollbar,
  .projects-shell .project-list::-webkit-scrollbar {
    display: none;
  }

  .services .service-card--solution {
    grid-template-rows: clamp(250px, 42vw, 330px) minmax(138px, auto);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  /* Calculator */
  .calculator .container {
    width: 100%;
  }

  .calculator-shell {
    grid-template-columns: 1fr;
    overflow: hidden;
    border-radius: 0;
  }

  .calculator-intro {
    min-height: 0;
    padding: 42px var(--gutter) 30px;
  }

  .calculator-intro h2 {
    max-width: 700px;
    font-size: clamp(36px, 7.4vw, 50px);
  }

  .calculator-intro > p {
    max-width: 620px;
    margin-top: 18px;
  }

  .calculator-intro__drawing {
    right: -5%;
    bottom: 8%;
    width: 42%;
    height: 55%;
    opacity: .09;
  }

  .calculator-benefits {
    max-width: 760px;
    margin-top: 26px;
  }

  .calculator-phone {
    margin-top: 24px;
  }

  .quiz {
    width: auto;
    min-height: 0;
    margin: 0 16px 16px;
    padding: 30px;
    border-radius: 20px;
  }

  .quiz__top {
    margin-bottom: 24px;
  }

  .quiz legend {
    margin-bottom: 20px;
    font-size: clamp(28px, 5.7vw, 38px);
  }

  .choice {
    min-height: 66px;
    margin-top: 9px;
  }

  .quiz__actions {
    margin-top: 18px;
    padding-top: 8px;
  }

  /* Projects */
  .projects-shell__header {
    align-items: flex-start;
    margin-bottom: 26px;
  }

  .projects-shell .project-list {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 72%);
    gap: 16px;
    margin-right: calc(var(--gutter) * -1);
    padding-right: var(--gutter);
    padding-bottom: 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .projects-shell .project {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .projects-shell .project__photo img {
    aspect-ratio: 4 / 3;
  }

  .projects-shell .project-cta {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .projects-shell .project-cta .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  /* Product anatomy */
  .anatomy-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px;
  }

  .anatomy__intro {
    max-width: 720px;
    padding: 0;
  }

  .anatomy__intro h2 {
    max-width: 640px;
  }

  .anatomy__visual,
  .anatomy__visual .section-photo {
    height: clamp(250px, 46vw, 380px);
  }

  /* Trust */
  .trust__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .trust__visual {
    width: min(100%, 720px);
    margin: 0;
  }

  .trust__visual .section-photo {
    width: 100%;
    height: clamp(250px, 48vw, 390px);
    object-fit: cover;
  }

  .trust__visual::after {
    display: none;
  }

  .trust__content {
    max-width: 760px;
  }

  /* Compact vertical process timeline */
  .process {
    min-height: 0;
    padding: 54px 0;
    background: #fff url("../images/process-timeline/process-background.webp") center / cover no-repeat;
  }

  .process > .container {
    width: min(calc(100% - (var(--gutter) * 2)), var(--container));
    max-width: var(--container);
    padding-inline: 0;
  }

  .process-shell {
    min-height: 0;
    padding: 0;
  }

  .process__header {
    text-align: left;
  }

  .process__header h2 {
    width: auto;
    max-width: 690px;
    margin: 0;
  }

  .process__title-line {
    white-space: normal;
  }

  .process-line {
    position: relative;
    display: grid;
    width: auto;
    height: auto;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 38px 0 0;
    margin-left: 0;
    padding: 0;
  }

  .process-line::before {
    top: 30px;
    right: auto;
    bottom: 58px;
    left: 30px;
    display: block;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, #7ca8e2, #c5d9f0);
  }

  .process-line::after {
    display: none;
  }

  .process-line li,
  .process-line li + li,
  .process-line li:nth-child(odd),
  .process-line li:last-child {
    position: relative;
    top: auto;
    left: auto;
    display: block;
    width: auto;
    min-height: 126px;
    padding: 4px 0 26px 82px;
    opacity: 1;
    transform: none;
  }

  .process-line li::before,
  .process-line li::after,
  .process-line li > .process-step__connector {
    display: none;
  }

  .process-line li > .process-step__number {
    position: absolute;
    z-index: 3;
    top: 0;
    left: 0;
    width: 62px;
    height: 62px;
    margin: 0;
    color: #3473ca;
    background: #fff;
    border: 1px solid #9fbfe8;
    box-shadow: 0 0 0 8px rgba(255, 255, 255, .94), 0 9px 24px rgba(51, 95, 153, .09);
    font-size: 22px;
  }

  .process-step__icon {
    position: absolute;
    top: 5px;
    left: 82px;
    width: 28px;
    height: 28px;
    margin: 0;
  }

  .process-line h3 {
    max-width: none;
    margin: 36px 0 0;
    font-size: 20px;
  }

  .process-line p {
    max-width: 560px;
    margin: 7px 0 0;
    font-size: 14px;
    line-height: 1.48;
  }

  /* Reviews */
  .section-heading--split {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 30px;
  }

  .reviews-heading__aside {
    justify-content: flex-start;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .review-card {
    grid-template-columns: minmax(0, 1fr) minmax(210px, 38%);
  }

  .review-card__body {
    min-height: 300px;
  }

  /* FAQ */
  .faq__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .faq__intro {
    max-width: 620px;
  }

  .faq__items {
    width: 100%;
  }

  /* Contact */
  .contact-shell {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: 0;
    padding: 44px;
  }

  .contact__copy,
  .contact-form {
    max-width: 720px;
  }

  .contact-form {
    width: 100%;
  }

  /* Footer */
  .site-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
  }

  .site-footer__main > div:not(:first-child) {
    padding-left: 0;
    border-left: 0;
  }

  .site-footer__legal {
    flex-wrap: wrap;
    gap: 8px 20px;
  }

  /* Dialogs */
  .reviews-dialog,
  .works-gallery {
    width: 100vw;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border-radius: 0;
  }

  .reviews-dialog__shell,
  .works-gallery__panel {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
  }

  .reviews-dialog__scroller {
    grid-template-columns: 1fr;
  }

  .works-gallery--viewer .works-gallery__panel {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .lightbox {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 62px 12px 14px;
    border-radius: 0;
  }

  .lightbox img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  html {
    scroll-padding-top: 70px;
  }

  main > .section {
    padding-top: 46px;
    padding-bottom: 46px;
  }

  h1 {
    font-size: clamp(40px, 11vw, 52px);
    line-height: 1.03;
  }

  h2,
  .projects-shell__header h2,
  .anatomy__intro h2,
  .process__header h2,
  .contact__copy h2 {
    font-size: clamp(32px, 9.2vw, 42px);
    line-height: 1.08;
  }

  .button {
    min-height: 54px;
    padding-inline: 20px;
    border-radius: 10px;
  }

  .site-header {
    height: 62px;
  }

  .site-header .brand--official {
    width: 144px;
    height: 44px;
    padding: 0;
  }

  .menu-toggle {
    font-size: 14px;
  }

  .site-nav {
    top: 62px;
  }

  body.menu-open .header-contact {
    grid-template-columns: 1fr;
  }

  /* Hero */
  .hero {
    padding: 34px 0 clamp(300px, 82vw, 390px);
    background-image:
      linear-gradient(180deg, #fff 0%, #fff 49%, rgba(255, 255, 255, .98) 57%, rgba(255, 255, 255, .08) 78%),
      url("../images/hero-integrated-real-v1.webp");
    background-position: center, 78% bottom;
    background-size: 100% 100%, auto 42%;
  }

  .hero__copy > h1,
  .hero__lead {
    text-align: center;
  }

  .hero__copy > h1 {
    text-wrap: balance;
  }

  .hero__lead {
    margin: 20px auto 0;
    font-size: 16px;
    line-height: 1.5;
    text-wrap: balance;
  }

  .hero__actions {
    display: grid;
    gap: 10px;
    margin-top: 24px;
  }

  .hero__actions .button {
    width: 100%;
  }

  .hero__assurances {
    display: grid;
    gap: 8px;
    margin-top: 24px;
    font-size: 12px;
  }

  .hero__assurances li::before {
    content: "✓";
    display: grid;
    width: 19px;
    height: 19px;
    margin-right: 9px;
    place-items: center;
    color: #3473ca;
    background: #eef5fc;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
  }

  .hero__assurances li:not(:last-child)::after {
    display: none;
  }

  /* Services */
  .services-heading {
    margin-bottom: 22px;
  }

  .services-heading h2 {
    font-size: clamp(34px, 9.6vw, 42px);
  }

  .services-heading p {
    margin-top: 10px;
    font-size: 14px;
  }

  .services .services-grid {
    grid-auto-columns: minmax(270px, 88%);
    gap: 12px;
  }

  .services .service-card--solution {
    grid-template-rows: clamp(210px, 62vw, 255px) minmax(124px, auto);
    border-radius: 15px;
  }

  .services .service-card--solution .service-card__content {
    grid-template-columns: auto 1px minmax(0, 1fr);
    gap: 13px;
    padding: 20px 16px;
  }

  .service-card__number {
    font-size: 39px;
  }

  .service-card__divider {
    min-height: 68px;
  }

  .services .service-card--solution .service-card__copy strong {
    font-size: 18px;
  }

  .services .service-card--solution .service-card__copy small {
    margin-top: 6px;
    font-size: 12px;
  }

  /* Calculator */
  .calculator-intro {
    padding: 36px 16px 24px;
  }

  .calculator-intro h2 {
    font-size: clamp(32px, 9vw, 40px);
  }

  .calculator-intro > p {
    margin-top: 14px;
    font-size: 14px;
  }

  .calculator-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    justify-items: center;
    gap: 7px;
    width: 100%;
    margin: 20px auto 0;
    padding: 10px;
    text-align: center;
  }

  .calculator-benefits li {
    display: flex;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 3px;
    text-align: center;
  }

  .calculator-benefits__icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }

  .calculator-benefits strong {
    font-size: 11px;
    line-height: 1.25;
  }

  .calculator-benefits small {
    display: none;
  }

  .calculator-phone {
    gap: 10px;
    margin-top: 18px;
  }

  .calculator-phone__icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .calculator-phone small {
    font-size: 11px;
  }

  .calculator-phone a {
    font-size: 18px;
  }

  .quiz {
    margin: 0 8px 8px;
    padding: 22px 14px 16px;
    border-radius: 16px;
  }

  .quiz__top {
    margin-bottom: 18px;
  }

  .quiz__step-label {
    margin-bottom: 10px;
    font-size: 13px;
  }

  .quiz__progress {
    gap: 5px;
  }

  .quiz__progress i {
    height: 6px;
  }

  .quiz legend {
    margin-bottom: 16px;
    font-size: clamp(24px, 7vw, 30px);
  }

  .choice {
    min-height: 62px;
    gap: 10px;
    margin-top: 8px;
    padding: 6px 44px 6px 7px;
    border-radius: 10px;
  }

  .choice::before,
  .choice:has(input:checked)::after {
    right: 11px;
    width: 23px;
    height: 23px;
  }

  .choice__icon {
    width: 49px;
    height: 48px;
    flex-basis: 49px;
    background-size: 88% 88%;
  }

  .choice__copy strong {
    font-size: 14px;
  }

  .choice__copy small {
    font-size: 11px;
  }

  .field input {
    height: 56px;
  }

  .contact-method {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .contact-method > span {
    grid-column: 1 / -1;
  }

  .contact-method label {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 7px 5px;
    background: #f5f8fb;
    border: 1px solid #dbe5ee;
    border-radius: 9px;
    font-size: 11px;
  }

  .contact-method input {
    width: 16px;
    height: 16px;
    margin-right: 4px;
  }

  .quiz__actions {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 8px;
    margin-top: 12px;
    padding-top: 0;
  }

  .quiz__actions .button {
    width: 100%;
    min-height: 52px;
    padding-inline: 10px;
    font-size: 14px;
  }

  .quiz__back[hidden] + .quiz__next {
    grid-column: 1 / -1;
  }

  .privacy {
    font-size: 11px;
    line-height: 1.35;
  }

  /* Projects */
  .projects-shell__header {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 22px;
  }

  .projects-shell__header p {
    margin-top: 7px;
    font-size: 14px;
  }

  .projects-shell__all {
    width: 100%;
    min-height: 52px;
  }

  .projects-shell .project-list {
    grid-auto-columns: minmax(250px, 84%);
    gap: 12px;
  }

  .projects-shell .project__content {
    padding-top: 12px;
  }

  .projects-shell .project__content h3 {
    font-size: 18px;
  }

  .projects-shell .project-cta {
    gap: 12px;
    margin-top: 26px;
    padding-top: 22px;
  }

  .project-cta__icon {
    width: 48px;
    height: 48px;
  }

  .project-cta__icon img {
    width: 34px;
    height: 34px;
  }

  .project-cta__copy strong {
    font-size: 18px;
  }

  .project-cta__copy span {
    font-size: 12px;
  }

  /* Anatomy */
  .anatomy-shell {
    gap: 22px;
    padding: 20px;
    border-radius: 20px;
  }

  .anatomy__intro h2::after {
    width: 58px;
    margin-top: 18px;
  }

  .anatomy__intro > p {
    margin-top: 18px;
    font-size: 15px;
  }

  .anatomy__intro .anatomy__button {
    width: 100%;
    min-height: 56px;
    margin-top: 24px;
  }

  .anatomy__assist-note {
    margin-top: 16px;
    font-size: 12px;
  }

  .anatomy__visual,
  .anatomy__visual .section-photo {
    height: 220px;
  }

  .anatomy__list {
    gap: 8px;
  }

  .anatomy__list li {
    min-height: 0;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .anatomy__list li > span:not(.anatomy__item-icon) {
    width: 38px;
    height: 38px;
  }

  .anatomy__list li > .anatomy__item-icon {
    display: none;
  }

  .anatomy__list h3 {
    font-size: 15px;
  }

  .anatomy__list p {
    margin-top: 4px;
    font-size: 12px;
  }

  /* Trust */
  .trust__grid {
    gap: 24px;
  }

  .trust__visual .section-photo {
    height: 230px;
    border-radius: 15px;
  }

  .trust__lead {
    margin-top: 14px;
    font-size: 14px;
  }

  .evidence-list {
    margin-top: 22px;
  }

  .evidence-list li {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 13px 34px 13px 0;
  }

  .evidence-list li::after {
    top: 15px;
  }

  .evidence-list h3 {
    font-size: 15px;
  }

  .evidence-list p {
    margin-top: 4px;
    font-size: 12px;
  }

  /* Process */
  .process {
    padding: 46px 0 38px;
  }

  .process-line {
    margin-top: 30px;
  }

  .process-line li,
  .process-line li + li,
  .process-line li:nth-child(odd),
  .process-line li:last-child {
    min-height: 116px;
    padding: 2px 0 24px 74px;
  }

  .process-line::before {
    left: 27px;
  }

  .process-line li > .process-step__number {
    width: 56px;
    height: 56px;
    font-size: 20px;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, .96), 0 8px 20px rgba(51, 95, 153, .08);
  }

  .process-step__icon {
    left: 74px;
    width: 25px;
    height: 25px;
  }

  .process-line h3 {
    margin-top: 32px;
    font-size: 18px;
  }

  .process-line p {
    font-size: 13px;
  }

  /* Reviews */
  .section-heading--split {
    margin-bottom: 22px;
  }

  .reviews-heading__button {
    width: 100%;
  }

  .reviews-grid {
    gap: 14px;
  }

  .review-card {
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
  }

  .review-card__body {
    min-height: 230px;
    padding: 22px 20px;
  }

  .review-card blockquote {
    margin-top: 24px;
    font-size: 18px;
  }

  .review-card__photo {
    height: 230px;
    border-top: 1px solid #e0e7ee;
    border-left: 0;
  }

  /* FAQ */
  .faq__grid {
    gap: 26px;
  }

  .faq__intro > p {
    margin-top: 12px;
    font-size: 14px;
  }

  .faq__intro > a {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    margin-top: 18px;
  }

  .faq summary {
    min-height: 64px;
    gap: 14px;
    padding: 12px 2px 12px 12px;
    font-size: 14px;
    line-height: 1.35;
  }

  .faq summary span {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
  }

  .faq details p {
    padding: 0 12px 16px;
    font-size: 13px;
  }

  /* Contact */
  .contact {
    padding: 36px 0;
  }

  .contact .container {
    width: calc(100% - 16px);
  }

  .contact-shell {
    gap: 28px;
    padding: 32px 16px 16px;
    border-radius: 22px;
  }

  .contact__copy > p {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.5;
  }

  .contact__copy > p::after {
    width: 54px;
    margin-top: 20px;
  }

  .contact__phone {
    gap: 10px;
    margin-top: 24px;
    font-size: clamp(22px, 7vw, 29px);
  }

  .contact__phone-icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .contact__messengers {
    gap: 8px;
    margin-top: 20px;
  }

  .contact__messengers a {
    min-width: 0;
    min-height: 48px;
    flex: 1 1 130px;
    padding-inline: 12px;
    font-size: 14px;
  }

  .contact-form {
    padding: 24px 16px;
    border-radius: 17px;
  }

  .contact-form h3 {
    margin-bottom: 22px;
    font-size: 27px;
  }

  .contact-form .field input {
    height: 58px;
    font-size: 16px;
  }

  .contact-form .button {
    min-height: 58px;
    font-size: 16px;
  }

  /* Footer */
  .site-footer__main {
    grid-template-columns: 1fr 1fr;
    gap: 24px 18px;
    padding-block: 36px;
  }

  .site-footer__main .brand--official {
    width: 150px;
    height: 48px;
  }

  .site-footer__main p,
  .site-footer__main a,
  .site-footer__main address,
  .site-footer__main span {
    font-size: 12px;
  }

  .site-footer__main strong {
    font-size: 13px;
  }

  .site-footer__legal {
    display: grid;
    gap: 7px;
    padding-block: 18px calc(18px + env(safe-area-inset-bottom));
    font-size: 11px;
  }

  /* Reviews dialog */
  .reviews-dialog__header {
    gap: 10px;
    padding: 16px 14px 12px;
  }

  .reviews-dialog__eyebrow,
  .reviews-dialog__header p {
    display: none;
  }

  .reviews-dialog__header h2 {
    font-size: 25px;
  }

  .reviews-dialog__close {
    width: 42px;
    height: 42px;
  }

  .reviews-dialog__filters {
    gap: 6px;
    margin-right: -14px;
    padding-right: 14px;
  }

  .reviews-dialog__filters button {
    min-height: 38px;
  }

  .reviews-dialog__scroller {
    gap: 10px;
    padding: 10px;
  }

  .reviews-dialog__card,
  .reviews-dialog__card:not(.is-text-only),
  .reviews-dialog__card.is-text-only {
    min-height: 0;
  }

  .reviews-dialog__body {
    min-height: 220px;
    padding: 17px 16px;
  }

  .reviews-dialog__card blockquote {
    margin: 14px 0 12px;
    font-size: 14px;
  }

  .reviews-dialog__media,
  .reviews-dialog__photo,
  .reviews-dialog__video,
  .reviews-dialog__video video {
    min-height: 180px;
    height: 180px;
  }

  .reviews-dialog__footer {
    min-height: 0;
    gap: 8px;
    padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
  }

  .reviews-dialog__footer > span {
    display: none;
  }

  /* Works gallery */
  .works-gallery--viewer .works-gallery__panel {
    gap: 10px;
    padding: 12px 10px calc(10px + env(safe-area-inset-bottom));
  }

  .works-gallery--viewer .works-gallery__header {
    min-height: 46px;
    padding-bottom: 8px;
  }

  .works-gallery__header h2 {
    font-size: 24px;
  }

  .works-gallery--viewer .works-gallery__header p {
    display: none;
  }

  .works-gallery__close {
    width: 42px;
    height: 42px;
  }

  .works-gallery--viewer .works-gallery__figure figcaption {
    min-height: 42px;
    align-items: flex-start;
    gap: 10px;
  }

  .works-gallery--viewer .works-gallery__figure figcaption strong {
    font-size: 14px;
  }

  .works-gallery--viewer .works-gallery__figure figcaption span {
    min-width: 52px;
    font-size: 12px;
  }

  .works-gallery--viewer .works-gallery__thumbs {
    margin-inline: -2px;
  }

  .works-gallery--viewer .works-gallery__thumb {
    flex-basis: 76px;
    width: 76px;
    height: 58px;
  }

  .lightbox__close {
    top: max(12px, env(safe-area-inset-top));
    right: 12px;
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 420px) {
  .site-header .brand--official {
    width: 132px;
  }

  .menu-toggle span {
    display: none;
  }

  .hero {
    padding-bottom: 290px;
    background-size: 100% 100%, auto 38%;
  }

  .services .services-grid {
    grid-auto-columns: 92%;
  }

  .calculator-benefits strong {
    font-size: 10px;
  }

  .contact-method {
    grid-template-columns: 1fr;
  }

  .contact-method > span {
    grid-column: auto;
  }

  .site-footer__main {
    grid-template-columns: 1fr;
  }
}

@media (hover: none) and (pointer: coarse) {
  .button:hover,
  .service-card:hover,
  .project__photo:hover,
  .review-card:hover,
  .choice:hover,
  .process-line li:hover,
  .contact__messengers a:hover,
  .projects-shell__all:hover {
    transform: none;
  }

  .projects-shell .project__photo > span {
    opacity: 1;
    transform: none;
  }
}

/* Mobile hero artwork: crop the room itself instead of scaling the desktop
   composition with its large empty text area. */
@media (max-width: 640px) {
  .hero {
    isolation: isolate;
    overflow: hidden;
    padding-bottom: 46px;
    background: #fff;
  }

  .hero::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 118px;
    right: -54px;
    bottom: auto;
    left: auto;
    width: 218px;
    height: 270px;
    pointer-events: none;
    background:
      radial-gradient(circle at 69% 51%, rgba(79, 141, 221, .36) 0 2px, transparent 2.5px),
      linear-gradient(90deg,
        transparent 0 32.5%,
        rgba(79, 141, 221, .2) 32.5% 33%,
        transparent 33% 66%,
        rgba(79, 141, 221, .2) 66% 66.5%,
        transparent 66.5%),
      linear-gradient(180deg,
        transparent 0 73%,
        rgba(79, 141, 221, .17) 73% 73.5%,
        transparent 73.5%);
    border: 1px solid rgba(79, 141, 221, .22);
    border-radius: 5px;
    box-shadow:
      0 0 0 9px rgba(79, 141, 221, .025),
      inset 0 0 28px rgba(79, 141, 221, .018);
    opacity: .43;
    transform: rotate(-2deg);
  }

  .hero::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 92px;
    right: 12px;
    bottom: auto;
    left: auto;
    width: 150px;
    height: 14px;
    pointer-events: none;
    border-top: 1px solid rgba(79, 141, 221, .22);
    border-right: 1px solid rgba(79, 141, 221, .22);
    border-left: 1px solid rgba(79, 141, 221, .22);
    opacity: .55;
  }

  .hero__grid,
  .hero__copy {
    position: relative;
    z-index: 1;
  }
}

@media (max-width: 420px) {
  .hero::after {
    top: 132px;
    right: -72px;
    width: 196px;
    height: 246px;
    opacity: .36;
  }

  .hero::before {
    top: 106px;
    right: 8px;
    width: 124px;
  }
}

/* One shared outer rhythm for every content section. Kept last so older
   section-specific spacing rules cannot create uneven gaps between blocks. */
:root {
  --section-space-desktop: 80px;
  --section-space-tablet: 56px;
  --section-space-mobile: 44px;
}

#main-content > .section {
  padding-top: var(--section-space-desktop);
  padding-bottom: var(--section-space-desktop);
}

/* The desktop timeline used to add its own tall top spacer and forced
   minimum height on top of the shared section padding. */
@media (min-width: 1101px) {
  .process,
  .process-shell {
    min-height: 0;
  }

  .process-shell {
    padding-top: 0;
  }
}

.process__header h2 {
  font-weight: 650;
}

@media (max-width: 900px) {
  #main-content > .section {
    padding-top: var(--section-space-tablet);
    padding-bottom: var(--section-space-tablet);
  }
}

@media (max-width: 640px) {
  #main-content > .section {
    padding-top: var(--section-space-mobile);
    padding-bottom: var(--section-space-mobile);
  }
}

/* Large editorial numbers for the window anatomy list. */
.anatomy__list li {
  grid-template-columns: 104px minmax(0, 1fr) 58px;
}

.anatomy__list li > span:not(.anatomy__item-icon) {
  display: flex;
  width: auto;
  height: auto;
  align-items: center;
  justify-content: center;
  color: #7fa6d5;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: clamp(48px, 3.4vw, 66px);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -.075em;
  line-height: .9;
}

.hero__copy h1 {
  max-width: 740px;
  font-size: clamp(42px, 3.15vw, 52px);
  line-height: 1.06;
}

.hero__assurances {
  display: grid;
  max-width: 650px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  margin-top: 34px;
}

.hero__assurances li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  column-gap: 9px;
}

.hero__assurances li::before {
  grid-row: 1 / span 2;
  grid-column: 1;
}

.hero__assurances li strong,
.hero__assurances li span {
  grid-column: 2;
}

.hero__assurances li strong {
  color: var(--navy);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.25;
}

.hero__assurances li span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.hero__assurances li:not(:last-child)::after {
  display: none;
}

.project-cta__icon {
  background: transparent;
  border-radius: 0;
}

.anatomy__microcopy {
  display: block;
  max-width: 320px;
  margin-top: 14px;
  color: #59708b;
  font-size: 14px;
  line-height: 1.45;
}

@media (min-width: 1001px) {
  .anatomy__visual {
    height: clamp(340px, 28vw, 520px);
  }
}

/* Keep the calculator heading on the same type scale as section headings. */
.calculator-intro h2 {
  font-size: clamp(40px, 3.8vw, 56px);
  line-height: 1.05;
  letter-spacing: -.048em;
}

@media (min-width: 901px) {
  .review-card--compact .review-card__body {
    padding: 25px 30px;
  }

  .review-card--compact blockquote {
    margin: 16px 0 18px;
    font-size: 18px;
    line-height: 1.38;
  }
}

@media (min-width: 1101px) {
  .reviews-grid {
    grid-auto-rows: 390px;
  }

  .review-card {
    min-height: 0;
    height: 100%;
  }

  .review-card__body,
  .review-card__photo,
  .review-card__photo img {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .hero__copy h1 {
    font-size: clamp(38px, 9.3vw, 46px);
  }

  .anatomy__list li {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .anatomy__list li > span:not(.anatomy__item-icon) {
    justify-content: flex-start;
    font-size: 40px;
  }
}

@media (max-width: 640px) {
  .hero__assurances {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .calculator-intro h2 {
    font-size: clamp(34px, 9.6vw, 42px);
  }
}

@media (max-width: 420px) {
  .anatomy__list li {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .anatomy__list li > span:not(.anatomy__item-icon) {
    font-size: 34px;
  }
}

/* One heading system for every primary content block. */
:root {
  --section-title-size: clamp(40px, 3.8vw, 56px);
}

#main-content > .section h2 {
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  font-size: var(--section-title-size);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1.06;
}

@media (max-width: 900px) {
  :root {
    --section-title-size: clamp(36px, 7.2vw, 50px);
  }
}

@media (max-width: 640px) {
  :root {
    --section-title-size: clamp(32px, 9.2vw, 42px);
  }
}

/* Warm, more visible review rating in cards and the reviews popup. */
.review-card__rating,
.reviews-dialog__rating {
  color: #f2b705;
  font-weight: 700;
}

.review-card__rating {
  font-size: 21px;
}

.reviews-dialog__rating {
  font-size: 16px;
}

/* Source attribution for reviews from Yandex Maps. */
.review-card__meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.review-source {
  display: inline-grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
}

.review-source img {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.reviews-dialog__verification {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  flex-direction: column;
  gap: 7px;
}

.review-source--dialog {
  width: 23px;
  height: 23px;
}

.review-source--dialog img {
  width: 22px;
  height: 22px;
}

.review-card footer .review-card__task {
  margin-top: 4px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

@media (max-width: 480px) {
  .reviews-dialog__verification {
    align-items: flex-start;
  }
}

/* Remove the oversized decorative quote marks from all review views. */
.review-card__body::before,
.reviews-dialog__body::after {
  content: none;
  display: none;
}

/* Keep the compound factory term intact in the mobile hero heading. */
@media (max-width: 640px) {
  .hero__copy h1 {
    max-width: 100%;
    font-size: clamp(32px, 9.3vw, 40px);
    letter-spacing: -.065em;
    overflow-wrap: normal;
    text-wrap: balance;
    word-break: normal;
    hyphens: none;
  }
}

@media (max-width: 360px) {
  .hero__copy h1 {
    font-size: clamp(30px, 8.9vw, 32px);
  }
}

/* Reviews carousel: vertical cards with photo-first composition. */
.reviews-carousel {
  position: relative;
  padding: 2px 18px 0;
}

.reviews-carousel__viewport {
  padding-bottom: clamp(22px, 2vw, 30px);
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 20px;
  outline: none;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

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

.reviews-carousel .reviews-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(33.333333% - 13.333333px);
  grid-auto-rows: auto;
  grid-template-columns: none;
  gap: 20px;
}

.reviews-carousel .review-card,
.reviews-carousel .review-card--compact {
  display: flex;
  min-width: 0;
  min-height: 560px;
  height: auto;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(20, 52, 91, .1);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(13, 43, 85, .08);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.reviews-carousel .review-card__photo {
  order: -1;
  width: 100%;
  height: clamp(230px, 20vw, 290px);
  min-height: 0;
  flex: 0 0 auto;
  border-top: 0;
  border-right: 0;
  border-bottom: 1px solid #e5ebf1;
  border-left: 0;
}

.reviews-carousel .review-card__photo > span {
  display: none;
}

.reviews-carousel .review-card__body,
.reviews-carousel .review-card--compact .review-card__body {
  min-height: 0;
  flex: 1 1 auto;
  padding: 22px 22px 20px;
}

.reviews-carousel .review-card__meta {
  align-items: center;
}

.reviews-carousel .review-card__rating {
  font-size: 20px;
  letter-spacing: .1em;
}

.reviews-carousel .review-source {
  width: 28px;
  height: 28px;
}

.reviews-carousel .review-source img {
  width: 26px;
  height: 26px;
}

.reviews-carousel .review-card blockquote,
.reviews-carousel .review-card--compact blockquote {
  display: -webkit-box;
  margin: 18px 0 26px;
  overflow: hidden;
  color: var(--navy);
  font-size: 16px;
  font-weight: 560;
  line-height: 1.52;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.reviews-carousel .review-card footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  row-gap: 4px;
  align-items: end;
  margin-top: auto;
}

.reviews-carousel .review-card footer strong,
.reviews-carousel .review-card footer > span:not(.review-card__task) {
  grid-column: 1;
}

.reviews-carousel .review-card footer strong {
  font-size: 15px;
}

.reviews-carousel .review-card footer > span:not(.review-card__task) {
  line-height: 1.35;
}

.reviews-carousel .review-card footer .review-card__task {
  grid-column: 2;
  grid-row: 1 / span 2;
  max-width: 164px;
  margin: 0;
  padding: 7px 11px;
  align-self: end;
  color: #1f5aa6;
  background: #fff;
  border: 1px solid rgba(31, 90, 166, .2);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.reviews-carousel__arrow {
  position: absolute;
  top: calc(50% - 34px);
  z-index: 4;
  display: grid;
  width: 56px;
  height: 56px;
  padding: 0;
  place-items: center;
  color: var(--navy);
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(13, 43, 85, .12);
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(13, 43, 85, .14);
  cursor: pointer;
  font-family: inherit;
  font-size: 28px;
  line-height: 1;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.reviews-carousel__arrow--prev {
  left: -10px;
}

.reviews-carousel__arrow--next {
  right: -10px;
}

.reviews-carousel__arrow:hover:not(:disabled) {
  color: #fff;
  background: var(--navy);
  box-shadow: 0 15px 34px rgba(13, 43, 85, .22);
  transform: translateY(-2px);
}

.reviews-carousel__arrow:focus-visible,
.reviews-carousel__viewport:focus-visible,
.reviews-carousel__dots button:focus-visible {
  outline: 3px solid rgba(79, 141, 222, .42);
  outline-offset: 3px;
}

.reviews-carousel__arrow:disabled {
  opacity: .34;
  cursor: default;
}

.reviews-carousel__dots {
  display: flex;
  min-height: 14px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 0;
}

.reviews-carousel__dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  background: #d8e0e9;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.reviews-carousel__dots button.is-active {
  background: #2465bb;
  transform: scale(1.18);
}

@media (max-width: 1100px) {
  .reviews-carousel .reviews-grid {
    grid-auto-columns: calc(50% - 9px);
    gap: 18px;
  }

  .reviews-carousel .review-card,
  .reviews-carousel .review-card--compact {
    min-height: 540px;
  }
}

@media (max-width: 760px) {
  .reviews-carousel {
    padding-inline: 0;
  }

  .reviews-carousel .reviews-grid {
    grid-auto-columns: calc(100% - 24px);
    gap: 14px;
  }

  .reviews-carousel .review-card,
  .reviews-carousel .review-card--compact {
    min-height: 530px;
  }

  .reviews-carousel .review-card__photo {
    height: 230px;
  }

  .reviews-carousel__arrow {
    top: 200px;
    width: 46px;
    height: 46px;
    font-size: 23px;
  }

  .reviews-carousel__arrow--prev {
    left: 7px;
  }

  .reviews-carousel__arrow--next {
    right: 7px;
  }
}

@media (max-width: 480px) {
  .reviews-carousel .review-card__body,
  .reviews-carousel .review-card--compact .review-card__body {
    padding: 20px 18px 18px;
  }

  .reviews-carousel .review-card footer {
    grid-template-columns: 1fr;
  }

  .reviews-carousel .review-card footer .review-card__task {
    grid-column: 1;
    grid-row: auto;
    max-width: 100%;
    margin-top: 6px;
    justify-self: start;
  }

  .reviews-carousel__dots {
    margin-top: 0;
  }
}

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

  .reviews-carousel__arrow,
  .reviews-carousel__dots button {
    transition: none;
  }
}

/* Full-screen photo viewer shared by project cards and the works gallery. */
body.lightbox-open {
  overflow: hidden;
}

.lightbox[open] {
  position: fixed;
  inset: 0;
  display: grid !important;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: clamp(16px, 3vw, 40px);
  place-items: center;
  background: rgba(3, 16, 36, .98);
  border-radius: 0;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.lightbox[open] img {
  display: block !important;
  width: 100%;
  height: 100%;
  min-width: 1px;
  min-height: 1px;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  object-fit: contain;
  border-radius: 0;
  opacity: 1 !important;
  visibility: visible !important;
}

.lightbox[open] .lightbox__close {
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  width: 50px;
  height: 50px;
  color: var(--navy);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
}

@media (max-width: 760px) {
  .lightbox[open] {
    padding: max(12px, env(safe-area-inset-top)) 8px max(12px, env(safe-area-inset-bottom));
  }

  .lightbox[open] img {
    max-height: 100%;
  }

  .lightbox[open] .lightbox__close {
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    width: 46px;
    height: 46px;
  }
}

/* Cursor light in forms and top-layer popups: above backgrounds, below content. */
.popup-glow-surface {
  position: relative;
  isolation: isolate;
}

.popup-glow-surface::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: radial-gradient(
    circle 290px at var(--popup-glow-x, 50%) var(--popup-glow-y, 24%),
    rgba(83, 150, 230, .16),
    rgba(83, 150, 230, .055) 45%,
    transparent 74%
  );
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  will-change: background;
}

.popup-glow-surface > * {
  position: relative;
  z-index: 1;
}

/* The generic glow layer must not pull the full-screen close button into the grid. */
.lightbox[open].popup-glow-surface > .lightbox__close,
.lightbox[open] > .lightbox__close {
  position: absolute !important;
  z-index: 10;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
}

.popup-glow-surface.is-popup-glow-active::before {
  opacity: .92;
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .popup-glow-surface::before {
    display: none;
  }
}

/* Fill the viewer with every completed-work photo while preserving the full frame. */
.works-gallery.works-gallery--viewer .works-gallery__image-wrap {
  padding: clamp(8px, 1vw, 16px);
  box-sizing: border-box;
}

.works-gallery.works-gallery--viewer .works-gallery__image-wrap img[data-works-gallery-image] {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

@media (max-width: 760px) {
  .works-gallery.works-gallery--viewer .works-gallery__image-wrap {
    padding: 0;
  }
}

/* Mobile reviews open as a full-screen, vertically swipeable story feed. */
.reviews-dialog__story-chrome {
  display: none;
}

@media (max-width: 760px) {
  .reviews-dialog {
    --review-story-height: 100vh;
    inset: 0;
    width: 100%;
    height: var(--review-story-height);
    max-height: none;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .reviews-dialog[open] {
    animation: none;
  }

  .reviews-dialog::backdrop {
    background: #061a37;
    backdrop-filter: none;
  }

  .reviews-dialog__shell {
    position: relative;
    display: block;
    width: 100%;
    height: var(--review-story-height);
    max-height: none;
    overflow: hidden;
    background: #061a37;
    border: 0;
    border-radius: 0;
  }

  .reviews-dialog__header,
  .reviews-dialog__footer {
    display: none;
  }

  .reviews-dialog__story-chrome {
    position: absolute;
    z-index: 20;
    top: 0;
    right: 0;
    left: 0;
    display: block;
    padding: max(10px, env(safe-area-inset-top)) 14px 0;
    color: #fff;
    pointer-events: none;
  }

  .reviews-dialog__story-toolbar {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 8px;
  }

  .reviews-dialog__story-toolbar > span {
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .01em;
    text-align: left;
    text-overflow: ellipsis;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .7);
    white-space: nowrap;
  }

  .reviews-dialog__story-toolbar button {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    color: #fff;
    background: rgba(0, 0, 0, .18);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    font: inherit;
    font-size: 25px;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
    pointer-events: auto;
    cursor: pointer;
    backdrop-filter: blur(8px);
  }

  .reviews-dialog__story-progress {
    display: flex;
    height: 14px;
    gap: 3px;
    margin-top: 2px;
    pointer-events: auto;
  }

  .reviews-dialog__story-progress button {
    position: relative;
    min-width: 0;
    height: 14px;
    flex: 1 1 0;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  .reviews-dialog__story-progress button::after {
    content: "";
    position: absolute;
    top: 5px;
    right: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, .32);
    border-radius: 999px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .22);
  }

  .reviews-dialog__story-progress button.is-complete::after {
    background: rgba(255, 255, 255, .78);
  }

  .reviews-dialog__story-progress button.is-current::after {
    background: #fff;
  }

  .reviews-dialog__scroller {
    display: flex;
    width: 100%;
    height: var(--review-story-height);
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    touch-action: pan-y;
  }

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

  .reviews-dialog__card,
  .reviews-dialog__card:not(.is-text-only),
  .reviews-dialog__card.is-text-only {
    position: relative;
    isolation: isolate;
    display: block;
    width: 100%;
    height: var(--review-story-height);
    min-height: var(--review-story-height) !important;
    flex: 0 0 var(--review-story-height);
    overflow: hidden;
    color: #fff;
    background:
      radial-gradient(circle at 80% 12%, rgba(76, 143, 225, .3), transparent 32%),
      linear-gradient(145deg, #0b3569, #061a37 64%, #030f22);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .reviews-dialog__card::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(2, 11, 24, .52) 0%, transparent 25%, transparent 42%, rgba(2, 9, 21, .78) 72%, rgba(1, 7, 17, .98) 100%);
    pointer-events: none;
  }

  .reviews-dialog__card::before {
    content: "↑  Листайте вверх для следующего отзыва";
    position: absolute;
    z-index: 4;
    right: 18px;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 18px;
    color: rgba(255, 255, 255, .82);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .01em;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .7);
    pointer-events: none;
  }

  .reviews-dialog__card:last-child::before {
    content: "Последний отзыв";
  }

  .reviews-dialog__media,
  .reviews-dialog__media.has-multiple,
  .reviews-dialog__media.is-scrollable {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
    width: 100%;
    height: var(--review-story-height);
    min-height: 0;
    overflow: hidden;
    background: #061a37;
    border: 0;
    border-radius: 0;
  }

  .reviews-dialog__media > :not(:first-child) {
    display: none !important;
  }

  .reviews-dialog__photo,
  .reviews-dialog__video,
  .reviews-dialog__video video,
  .reviews-dialog__media.is-scrollable .reviews-dialog__photo,
  .reviews-dialog__media.is-scrollable .reviews-dialog__video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: var(--review-story-height);
    min-width: 100%;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    background: #061a37;
    border: 0;
    border-radius: 0;
    cursor: default;
  }

  .reviews-dialog__photo img,
  .reviews-dialog__video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .reviews-dialog__photo > span,
  .reviews-dialog__video > span {
    display: none;
  }

  .reviews-dialog__body {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    min-height: 0;
    max-height: min(64dvh, 620px);
    flex-direction: column;
    padding: 20px 22px calc(68px + env(safe-area-inset-bottom));
    overflow-y: auto;
    color: #fff;
    scrollbar-width: none;
  }

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

  @supports (height: 100svh) {
    .reviews-dialog {
      --review-story-height: 100svh;
    }
  }

  .reviews-dialog__card.is-text-only .reviews-dialog__body {
    top: 80px;
    max-height: none;
    justify-content: center;
    padding-top: 38px;
  }

  .reviews-dialog__meta {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .reviews-dialog__verification {
    display: flex;
    align-items: center;
    align-self: flex-start;
    flex-direction: row;
    gap: 9px;
    order: -1;
  }

  .reviews-dialog__rating {
    color: #f2b705;
    font-size: 19px;
    letter-spacing: .08em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
  }

  .reviews-dialog__author {
    align-items: center;
    gap: 10px;
  }

  .reviews-dialog__avatar {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-color: rgba(255, 255, 255, .5);
  }

  .reviews-dialog__author strong {
    color: #fff;
    font-size: clamp(19px, 5.8vw, 25px);
    line-height: 1.12;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
  }

  .reviews-dialog__author span {
    color: rgba(255, 255, 255, .76);
    font-size: 13px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .62);
  }

  .reviews-dialog__card blockquote,
  .reviews-dialog__card.is-expanded blockquote {
    display: -webkit-box;
    flex-shrink: 0;
    margin: 16px 0 0;
    overflow: hidden;
    color: #fff;
    font-size: clamp(15px, 4vw, 18px);
    font-weight: 540;
    line-height: 1.48;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .75);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 7;
  }

  .reviews-dialog__card.is-expanded blockquote {
    display: block;
    overflow: visible;
  }

  .reviews-dialog__expand {
    align-self: flex-start;
    margin-top: 10px;
    padding: 6px 0;
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, .58);
    font-size: 13px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .65);
  }

  .review-source--dialog,
  .review-source--dialog img {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 380px) {
  .reviews-dialog__body {
    padding-right: 18px;
    padding-left: 18px;
  }

  .reviews-dialog__card blockquote,
  .reviews-dialog__card.is-expanded blockquote {
    font-size: 15px;
    -webkit-line-clamp: 6;
  }
}

@media (max-width: 760px) and (orientation: landscape) {
  .reviews-dialog__body {
    max-height: 78dvh;
    padding-right: max(24px, env(safe-area-inset-right));
    padding-left: max(24px, env(safe-area-inset-left));
  }

  .reviews-dialog__card blockquote,
  .reviews-dialog__card.is-expanded blockquote {
    font-size: 14px;
    -webkit-line-clamp: 4;
  }
}

@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .reviews-dialog__scroller {
    scroll-behavior: auto;
  }
}

/* Mobile reviews section follows the approved photo-first reference. */
@media (max-width: 760px) {
  .reviews {
    padding-top: 42px;
    overflow: hidden;
  }

  .reviews > .container {
    width: 100%;
    max-width: none;
    padding-inline: 12px;
    box-sizing: border-box;
  }

  .reviews .section-heading--split {
    gap: 20px;
    margin-bottom: 30px;
  }

  .reviews #reviews-title {
    max-width: 470px;
    margin-inline: auto;
    font-size: clamp(36px, 9.2vw, 43px);
    letter-spacing: -.055em;
    line-height: 1.07;
    text-align: center;
  }

  .reviews #reviews-title > span {
    display: block;
  }

  .reviews-heading__button {
    min-height: 68px;
    padding-inline: 20px;
    border-color: rgba(10, 33, 71, .28);
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
  }

  .reviews-carousel {
    padding: 0;
  }

  .reviews-carousel__viewport {
    border-radius: 20px;
  }

  .reviews-carousel .reviews-grid {
    grid-auto-columns: calc(100% - 26px);
    gap: 12px;
  }

  .reviews-carousel .review-card,
  .reviews-carousel .review-card--compact {
    min-height: 620px;
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(13, 43, 85, .09);
  }

  .reviews-carousel .review-card__photo {
    height: clamp(278px, 66vw, 310px);
    border-radius: 19px 19px 0 0;
  }

  .reviews-carousel .review-card__photo img {
    object-position: center;
  }

  .reviews-carousel .review-card__body,
  .reviews-carousel .review-card--compact .review-card__body {
    padding: 26px 22px 22px;
  }

  .reviews-carousel .review-card__meta {
    min-height: 32px;
  }

  .reviews-carousel .review-card__rating {
    font-size: 21px;
    letter-spacing: .1em;
  }

  .reviews-carousel .review-source {
    width: 32px;
    height: 32px;
  }

  .reviews-carousel .review-source img {
    width: 30px;
    height: 30px;
  }

  .reviews-carousel .review-card blockquote,
  .reviews-carousel .review-card--compact blockquote {
    margin: 22px 0 26px;
    font-size: 17px;
    font-weight: 570;
    line-height: 1.56;
    -webkit-line-clamp: 5;
  }

  .reviews-carousel .review-card footer strong {
    font-size: 16px;
  }

  .reviews-carousel .review-card footer > span:not(.review-card__task) {
    font-size: 13px;
  }

  .reviews-carousel__arrow {
    top: clamp(250px, calc(66vw - 28px), 282px);
    width: 52px;
    height: 52px;
    color: var(--navy);
    background: rgba(255, 255, 255, .97);
    border-color: rgba(10, 33, 71, .08);
    font-size: 24px;
    box-shadow: 0 10px 25px rgba(13, 43, 85, .14);
  }

  .reviews-carousel__arrow--prev {
    left: 8px;
  }

  .reviews-carousel__arrow--next {
    right: 8px;
    border-color: rgba(79, 141, 222, .55);
    box-shadow:
      0 10px 25px rgba(13, 43, 85, .14),
      0 0 0 4px rgba(79, 141, 222, .28);
  }

  .reviews-carousel__dots {
    gap: 10px;
    margin-top: 0;
  }
}

@media (max-width: 390px) {
  .reviews > .container {
    padding-inline: 8px;
  }

  .reviews #reviews-title {
    font-size: clamp(34px, 9.4vw, 38px);
  }

  .reviews-heading__button {
    min-height: 62px;
  }

  .reviews-carousel .review-card,
  .reviews-carousel .review-card--compact {
    min-height: 590px;
  }

  .reviews-carousel .review-card__body,
  .reviews-carousel .review-card--compact .review-card__body {
    padding-inline: 18px;
  }
}
/* Systemic text wrapping and collision protection */
:where(h1, h2, h3, h4, legend) {
  max-inline-size: 100%;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
  text-wrap: balance;
}

:where(p, blockquote, li, summary, label, figcaption) {
  max-inline-size: 100%;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
  text-wrap: pretty;
}

#main-content :where(section, article, div, header, footer, form, fieldset, nav),
.site-footer :where(div, nav, address) {
  min-width: 0;
}

#main-content :where(a, span, strong, small),
.site-footer :where(a, span, strong, small) {
  max-inline-size: 100%;
  overflow-wrap: break-word;
  word-break: normal;
}

.button {
  max-width: 100%;
  height: auto;
  padding-block: 12px;
  line-height: 1.25;
  white-space: normal;
  text-align: center;
  text-wrap: balance;
}

:where(
  .hero__copy,
  .section-heading > *,
  .service-card__content,
  .calculator-intro,
  .quiz,
  .project__content,
  .project-cta__copy,
  .anatomy__intro,
  .anatomy__body,
  .anatomy__list li > div,
  .trust__content,
  .evidence-list li > div,
  .process-line > li,
  .review-card__body,
  .faq__intro,
  .faq__items,
  .contact__copy,
  .contact-form,
  .site-footer__main > *
) {
  min-width: 0;
}

.anatomy__title-line,
.process__title-line {
  white-space: normal;
}

/* Keep the full thought visible in the main review cards. */
.reviews-carousel .review-card blockquote,
.reviews-carousel .review-card--compact blockquote {
  display: block;
  overflow: visible;
  -webkit-box-orient: initial;
  -webkit-line-clamp: unset;
}

/* The FAQ control owns a separate column and can never cover the question. */
.faq summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: initial;
  gap: clamp(14px, 2vw, 24px);
  padding: 18px 8px 18px 18px;
}

.faq summary .faq__toggle {
  position: relative;
  top: auto;
  right: auto;
  flex: 0 0 auto;
  transform: none;
}

.faq details[open] summary .faq__toggle {
  transform: none;
}

.faq details p {
  max-width: min(760px, calc(100% - 18px));
  margin-right: 0;
}

@media (max-width: 640px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
    scrollbar-width: none;
  }

  html::-webkit-scrollbar,
  body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  #main-content,
  .site-header,
  .site-footer {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
  }

  .container {
    margin-right: auto;
    margin-left: auto;
  }

  /* One consistent center axis for mobile section introductions. */
  .hero__copy,
  .services-heading,
  .calculator-intro,
  .projects-shell__header > div,
  .anatomy__intro,
  .process__header,
  .reviews .section-heading,
  .faq__intro,
  .contact__copy {
    text-align: center;
  }

  .hero__copy > h1,
  .hero__lead,
  .services-heading h2,
  .services-heading p,
  .calculator-intro h2,
  .calculator-intro > p,
  .projects-shell__header h2,
  .anatomy__intro h2,
  .anatomy__intro > p,
  .trust__title,
  .trust__subtitle,
  .process__header h2,
  .process__lead,
  .reviews #reviews-title,
  .faq__intro h2,
  .faq__intro > p,
  .contact__copy h2,
  .contact__copy > p {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
    text-wrap: balance;
  }

  .hero__assurances {
    width: min(100%, 310px);
    margin-right: auto;
    margin-left: auto;
    justify-items: stretch;
    text-align: left;
  }

  .hero__assurances li {
    width: 100%;
    grid-template-columns: 38px minmax(0, 1fr);
    column-gap: 12px;
    justify-content: initial;
    text-align: left;
  }

  .hero__assurances li::before {
    justify-self: center;
  }

  .hero__assurances li strong,
  .hero__assurances li span {
    width: 100%;
    text-align: left;
  }

  .calculator-phone,
  .contact__phone,
  .contact__messengers {
    justify-content: center;
  }

  .calculator-phone {
    text-align: center;
  }

  .quiz__top,
  .quiz legend,
  .quiz__hint,
  .contact-form h3 {
    width: 100%;
    text-align: center;
    text-wrap: balance;
  }

  .quiz__step-label {
    display: block;
    text-align: center;
  }

  .anatomy__microcopy,
  .faq-hours {
    display: block;
    text-align: center;
  }

  .calculator-intro h2 {
    margin-inline: auto;
    text-align: center;
    text-wrap: balance;
  }

  .faq summary {
    min-height: 64px;
    gap: 12px;
    padding: 14px 8px 14px 12px;
  }

  .faq summary .faq__toggle {
    width: 32px;
    height: 32px;
  }
}

/* Headings must wrap only between words; punctuation stays with the word. */
#main-content :where(h1, h2, h3, h4, legend),
#main-content :where(h1, h2, h3, h4, legend) :where(span, strong) {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

@media (max-width: 640px) {
  .anatomy__intro h2 {
    max-width: 100%;
    font-size: clamp(30px, 8vw, 36px);
    line-height: 1.08;
    text-wrap: pretty;
  }
}

.anatomy__intro .anatomy__button {
  justify-content: flex-start;
  text-align: left;
  text-wrap: wrap;
}

.anatomy__button > span {
  margin-left: auto;
}

/* Compact lead form dialog. */
body.lead-modal-open {
  overflow: hidden;
}

.lead-dialog {
  width: min(560px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 32px 90px rgba(3, 19, 45, .32);
}

.lead-dialog::backdrop {
  background: rgba(4, 20, 43, .7);
  backdrop-filter: blur(8px);
}

.lead-dialog[open] {
  animation: lead-dialog-in 220ms cubic-bezier(.2, .75, .25, 1) both;
}

@keyframes lead-dialog-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.lead-dialog__panel {
  position: relative;
  padding: 38px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(79, 141, 221, .13), transparent 34%),
    #fff;
  border: 1px solid rgba(126, 164, 203, .34);
  border-radius: 24px;
}

.lead-dialog__close {
  position: absolute;
  z-index: 4;
  top: 16px;
  right: 16px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  color: var(--navy);
  background: rgba(255, 255, 255, .82);
  border: 1px solid #cfdeeb;
  border-radius: 50%;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.lead-dialog__close:hover,
.lead-dialog__close:focus-visible {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.lead-dialog__header {
  padding: 0 34px;
  text-align: center;
}

.lead-dialog__eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.lead-dialog__header h2 {
  max-width: 430px;
  margin: 0 auto;
  color: var(--navy);
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -.045em;
  line-height: 1.06;
  text-wrap: balance;
}

.lead-dialog__header p {
  max-width: 440px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  text-wrap: balance;
}

.lead-form {
  margin-top: 28px;
}

.lead-form .field + .field {
  margin-top: 14px;
}

.lead-form .field input {
  min-height: 60px;
  background: rgba(255, 255, 255, .92);
  border-radius: 11px;
}

.lead-form__privacy {
  line-height: 1.45;
}

.lead-form__error {
  min-height: 22px;
  margin: 10px 0 0;
  color: #b42318;
  font-size: 13px;
  font-weight: 650;
}

.lead-form__submit {
  width: 100%;
  min-height: 60px;
  margin-top: 6px;
  justify-content: center;
}

.lead-form__success {
  padding: 12px 0 4px;
  text-align: center;
}

.lead-form__success > span {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  place-items: center;
  color: var(--navy);
  background: #eef6ff;
  border: 1px solid #c8dff4;
  border-radius: 50%;
  font-size: 27px;
}

.lead-form__success strong {
  display: block;
  color: var(--navy);
  font-size: 30px;
  letter-spacing: -.035em;
}

.lead-form__success p {
  max-width: 390px;
  margin: 10px auto 0;
  color: var(--muted);
}

.lead-form__success > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}

.lead-form__success .button {
  justify-content: center;
}

@media (max-width: 640px) {
  .lead-dialog {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 18px;
  }

  .lead-dialog__panel {
    padding: 30px 20px 22px;
    border-radius: 18px;
  }

  .lead-dialog__close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

  .lead-dialog__header {
    padding: 20px 16px 0;
  }

  .lead-dialog__header h2 {
    font-size: clamp(29px, 8.6vw, 36px);
  }

  .lead-dialog__header p {
    margin-top: 12px;
    font-size: 14px;
  }

  .lead-form {
    margin-top: 22px;
  }

  .lead-form .field input,
  .lead-form__submit {
    min-height: 56px;
  }

  .lead-form__success > div {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lead-dialog[open] {
    animation: none;
  }
}

/* Hero assurance icons matching the approved reference. */
.hero__assurances li {
  grid-template-columns: 46px minmax(0, 1fr);
  column-gap: 14px;
  align-items: center;
}

.hero__assurances li::before {
  content: none !important;
  display: none !important;
}

.hero__assurances li .hero-assurance__icon {
  grid-row: 1 / span 2;
  grid-column: 1;
  display: grid;
  width: 46px;
  height: 46px;
  margin: 0;
  place-items: center;
  color: var(--navy);
  font-size: inherit;
  line-height: 1;
  text-align: center;
  background: linear-gradient(145deg, #f7fbff, #eaf4fd);
  border: 1px solid #c6ddf3;
  border-radius: 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92);
}

.hero-assurance__icon svg,
.hero-assurance__icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.hero__assurances li strong,
.hero__assurances li > span:not(.hero-assurance__icon) {
  grid-column: 2;
}

@media (max-width: 640px) {
  .hero__assurances {
    width: min(100%, 310px);
  }

  .hero__assurances li {
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 12px;
  }

  .hero__assurances li .hero-assurance__icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .hero-assurance__icon svg,
  .hero-assurance__icon img {
    width: 24px;
    height: 24px;
  }
}

/* Keep the projects CTA on one line on desktop and use the approved split on mobile. */
.projects-shell__all-break {
  display: none;
}

@media (max-width: 640px) {
  .projects-shell__all-break {
    display: initial;
  }

  .projects-shell__all > span {
    line-height: 1.35;
    text-wrap: wrap;
  }
}

/* Restore the original desktop wrapping; balancing remains a mobile-only refinement. */
@media (min-width: 641px) {
  :where(h1, h2, h3, p) {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: manual;
    text-wrap: pretty;
  }

  :where(h4, legend, blockquote, li, summary, label, figcaption) {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: manual;
    text-wrap: wrap;
  }

  #main-content :where(a, span, strong, small),
  .site-footer :where(a, span, strong, small) {
    overflow-wrap: normal;
    word-break: normal;
  }

  .button {
    white-space: normal;
    text-wrap: wrap;
  }

  .projects-shell__all > span {
    white-space: nowrap;
    text-wrap: nowrap;
  }

  .anatomy__title-line,
  .process__title-line {
    white-space: nowrap;
  }
}

/* Exact approved hero-title composition on full desktop screens. */
.hero-title__line {
  display: inline;
}

@media (min-width: 1101px) {
  .hero-title__line {
    display: block;
    white-space: nowrap;
  }
}

/* Premium mobile navigation. Desktop navigation remains unchanged. */
.mobile-nav {
  display: none;
}

#service-apartment,
#service-balcony,
#service-country {
  scroll-margin-top: 92px;
}

@media (max-width: 900px) {
  :root {
    --mobile-nav-header-height: 66px;
  }

  body.menu-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  .site-header,
  .site-header.is-scrolled {
    height: var(--mobile-nav-header-height);
    overflow: visible;
    background: #fff;
    box-shadow: 0 8px 24px rgba(10, 33, 71, .07);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
  }

  .site-header .brand--official {
    position: relative;
    z-index: 104;
  }

  .menu-toggle {
    position: relative;
    z-index: 104;
    display: inline-flex;
    min-width: 50px;
    min-height: 50px;
    grid-column: 2;
    align-items: center;
    justify-content: flex-end;
    gap: 11px;
    padding: 10px 2px 10px 12px;
    color: var(--navy);
    background: transparent;
    border: 0;
    font-size: 14px;
    font-weight: 750;
    pointer-events: auto;
  }

  .menu-toggle i,
  .menu-toggle i::before,
  .menu-toggle i::after {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition:
      top 280ms cubic-bezier(.22, 1, .36, 1),
      transform 280ms cubic-bezier(.22, 1, .36, 1),
      opacity 180ms ease,
      background-color 180ms ease;
  }

  .menu-toggle i {
    position: relative;
  }

  .menu-toggle i::before,
  .menu-toggle i::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    transform: none;
  }

  .menu-toggle i::before {
    top: -7px;
  }

  .menu-toggle i::after {
    top: 7px;
  }

  .menu-toggle[aria-expanded="true"] i {
    background: transparent;
    transform: none;
  }

  .menu-toggle[aria-expanded="true"] i::before {
    top: 0;
    transform: rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] i::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    z-index: 101;
    top: var(--mobile-nav-header-height);
    right: 0;
    bottom: auto;
    left: 0;
    display: block;
    height: calc(100vh - var(--mobile-nav-header-height));
    height: calc(100dvh - var(--mobile-nav-header-height));
    padding: 0;
    overflow: hidden;
    visibility: hidden;
    background: rgba(8, 25, 52, .3);
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(4px);
    transition:
      opacity 240ms ease,
      visibility 0s linear 320ms;
  }

  .site-nav.is-open {
    display: block;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition:
      opacity 240ms ease,
      visibility 0s linear 0s;
  }

  .site-nav > .site-nav__desktop-link {
    display: none !important;
  }

  .site-nav .mobile-nav a::after {
    display: none;
  }

  .header-contact,
  body.menu-open .header-contact {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .mobile-nav {
    position: relative;
    display: flex;
    width: min(100%, 520px);
    height: 100%;
    margin-left: auto;
    flex-direction: column;
    padding:
      clamp(24px, 5vw, 34px)
      max(var(--gutter), env(safe-area-inset-right))
      max(30px, env(safe-area-inset-bottom))
      max(var(--gutter), env(safe-area-inset-left));
    overflow-x: hidden;
    overflow-y: auto;
    color: var(--navy);
    background:
      radial-gradient(circle at 100% 0%, rgba(79, 141, 221, .13), transparent 32%),
      linear-gradient(180deg, #fff 0%, #fbfdff 72%, #f4f8fc 100%);
    border-left: 1px solid rgba(217, 229, 239, .9);
    box-shadow: -24px 0 65px rgba(7, 31, 65, .14);
    opacity: .35;
    overscroll-behavior: contain;
    transform: translateX(38px);
    transition:
      transform 320ms cubic-bezier(.22, 1, .36, 1),
      opacity 240ms ease;
  }

  .site-nav.is-open .mobile-nav {
    opacity: 1;
    transform: translateX(0);
  }

  .mobile-nav__intro,
  .mobile-nav__links,
  .mobile-nav__footer {
    opacity: 0;
    transform: translateY(10px);
    transition:
      transform 300ms cubic-bezier(.22, 1, .36, 1),
      opacity 220ms ease;
  }

  .site-nav.is-open .mobile-nav__intro,
  .site-nav.is-open .mobile-nav__links,
  .site-nav.is-open .mobile-nav__footer {
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav.is-open .mobile-nav__intro {
    transition-delay: 70ms;
  }

  .site-nav.is-open .mobile-nav__links {
    transition-delay: 110ms;
  }

  .site-nav.is-open .mobile-nav__footer {
    transition-delay: 150ms;
  }

  .mobile-nav__intro {
    padding: 0 2px 21px;
  }

  .mobile-nav__intro > span {
    display: block;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
  }

  .mobile-nav__intro p {
    margin: 7px 0 0;
    color: #6f8098;
    font-size: 14px;
    line-height: 1.45;
    text-wrap: pretty;
  }

  .mobile-nav__links {
    border-top: 1px solid rgba(190, 207, 223, .72);
  }

  .mobile-nav__links > .mobile-nav__link,
  .mobile-nav__service-row {
    border-bottom: 1px solid rgba(190, 207, 223, .72);
  }

  .site-nav .mobile-nav__link,
  .site-nav .mobile-nav__links > a.mobile-nav__link,
  .site-nav .mobile-nav__service-row .mobile-nav__link {
    display: grid;
    min-height: 58px;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 13px 2px;
    color: var(--navy);
    border: 0;
    font-size: clamp(16px, 4.3vw, 18px);
    font-weight: 720;
    line-height: 1.22;
    text-align: left;
    text-decoration: none;
    transition: color 180ms ease, transform 180ms ease;
  }

  .site-nav .mobile-nav__service-row .mobile-nav__link {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .mobile-nav__link:hover,
  .mobile-nav__link:focus-visible,
  .mobile-nav__link.is-current {
    color: #276fca;
  }

  .mobile-nav__link:active {
    transform: translateX(3px);
  }

  .mobile-nav__index {
    color: #87acd9;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
  }

  .mobile-nav__label {
    min-width: 0;
  }

  .mobile-nav__arrow {
    color: #7f99b7;
    font-size: 19px;
    font-weight: 500;
    transition: transform 180ms ease;
  }

  .mobile-nav__link:hover .mobile-nav__arrow,
  .mobile-nav__link:focus-visible .mobile-nav__arrow {
    transform: translateX(4px);
  }

  .mobile-nav__service-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 54px;
    align-items: stretch;
  }

  .mobile-nav__submenu-toggle {
    position: relative;
    display: grid;
    min-width: 54px;
    min-height: 54px;
    place-items: center;
    padding: 0;
    color: var(--navy);
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  .mobile-nav__submenu-toggle::before {
    content: "";
    position: absolute;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(79, 141, 221, .28);
    border-radius: 50%;
    background: rgba(238, 245, 251, .78);
    transition: background-color 180ms ease, border-color 180ms ease;
  }

  .mobile-nav__submenu-toggle span {
    position: relative;
    z-index: 1;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 260ms cubic-bezier(.22, 1, .36, 1);
  }

  .mobile-nav__submenu-toggle[aria-expanded="true"]::before {
    background: rgba(79, 141, 221, .14);
    border-color: rgba(79, 141, 221, .5);
  }

  .mobile-nav__submenu-toggle[aria-expanded="true"] span {
    transform: translateY(2px) rotate(225deg);
  }

  .mobile-nav__submenu {
    display: grid;
    grid-template-rows: 0fr;
    background: rgba(238, 245, 251, .56);
    transition: grid-template-rows 300ms cubic-bezier(.22, 1, .36, 1);
  }

  .mobile-nav__submenu > div {
    min-height: 0;
    overflow: hidden;
  }

  .mobile-nav__service-group.is-expanded .mobile-nav__submenu {
    grid-template-rows: 1fr;
  }

  .site-nav .mobile-nav__submenu a {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 16px 11px 50px;
    color: #536a86;
    border: 0;
    border-bottom: 1px solid rgba(198, 214, 229, .55);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
    text-align: left;
    text-decoration: none;
  }

  .site-nav .mobile-nav__submenu a:last-child {
    border-bottom: 0;
  }

  .site-nav .mobile-nav__submenu a:hover,
  .site-nav .mobile-nav__submenu a:focus-visible {
    color: #276fca;
    background: rgba(255, 255, 255, .76);
  }

  .mobile-nav__footer {
    display: grid;
    gap: 15px;
    margin-top: 25px;
    padding-top: 22px;
    border-top: 1px solid rgba(190, 207, 223, .72);
    text-align: center;
  }

  .site-nav .mobile-nav__cta {
    display: inline-flex;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    color: #fff;
    border: 0;
    border-radius: 12px;
    background: var(--navy);
    font-size: 16px;
    font-weight: 780;
    box-shadow: 0 14px 30px rgba(10, 33, 71, .18);
  }

  .site-nav .mobile-nav__phone {
    display: inline-flex;
    min-height: auto;
    align-items: center;
    justify-content: center;
    padding: 2px;
    color: var(--navy);
    border: 0;
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
  }

  .mobile-nav__messengers {
    display: flex;
    justify-content: center;
    gap: 20px;
  }

  .site-nav .mobile-nav__messengers a {
    min-height: auto;
    padding: 2px 0;
    color: #52749a;
    border: 0;
    border-bottom: 1px solid rgba(82, 116, 154, .35);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
  }
}

@media (max-width: 640px) {
  :root {
    --mobile-nav-header-height: 62px;
  }

  .site-nav {
    background: #fff;
    backdrop-filter: none;
  }

  .mobile-nav {
    width: 100%;
    border-left: 0;
    box-shadow: none;
  }
}

@media (max-width: 420px) {
  .mobile-nav {
    padding-right: 18px;
    padding-left: 18px;
  }

  .site-nav .mobile-nav__link,
  .site-nav .mobile-nav__links > a.mobile-nav__link,
  .site-nav .mobile-nav__service-row .mobile-nav__link {
    font-size: 16px;
  }

  .site-nav .mobile-nav__submenu a {
    padding-left: 48px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav,
  .mobile-nav,
  .mobile-nav__intro,
  .mobile-nav__links,
  .mobile-nav__footer,
  .mobile-nav__submenu,
  .menu-toggle i,
  .menu-toggle i::before,
  .menu-toggle i::after {
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}

/* Mixed photo/video items in the completed-works viewer. */
.works-gallery__image-wrap {
  position: relative;
}

.works-gallery__image-surface {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  place-items: center;
  padding: 0;
  overflow: hidden;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: inherit;
  cursor: zoom-in;
}

.works-gallery__image-surface:focus-visible {
  outline: 3px solid rgba(79, 145, 220, .48);
  outline-offset: -4px;
}

.works-gallery__image-surface[hidden],
.works-gallery__video[hidden],
.works-gallery__video-play[hidden],
.works-gallery__fullscreen[hidden] {
  display: none !important;
}

.works-gallery__video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  background: #061b38;
  border-radius: inherit;
}

.works-gallery__image-wrap.is-video {
  cursor: pointer;
}

.works-gallery__video-play {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 50%;
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  color: #fff;
  background: rgba(5, 36, 77, .9);
  border: 1px solid rgba(255, 255, 255, .56);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(2, 20, 45, .28);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  transform: translate(-50%, -50%);
  transition: background .2s ease, transform .2s ease;
}

.works-gallery__video-play span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  padding-left: 2px;
  color: var(--navy);
  background: #fff;
  border-radius: 50%;
  font-size: 13px;
}

.works-gallery__video-play:hover,
.works-gallery__video-play:focus-visible {
  background: #0e4f98;
  outline: none;
  transform: translate(-50%, -50%) scale(1.035);
}

.works-gallery__thumb.is-video::before {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 8px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  padding-left: 1px;
  color: var(--navy);
  background: rgba(255, 255, 255, .94);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(5, 36, 77, .2);
  content: "▶";
  font-size: 9px;
}

@media (max-width: 760px) {
  .works-gallery__video-play {
    min-height: 48px;
    padding: 9px 14px;
    font-size: 12px;
  }

  .works-gallery__video-play span {
    width: 27px;
    height: 27px;
  }
}
