:root {
  --ink: #1d2524;
  --muted: #62716e;
  --line: #dce6e2;
  --paper: #fbfcfb;
  --soft: #eef6f3;
  --mist: #e8f0f3;
  --teal: #087f87;
  --navy: #102b4f;
  --green: #2d685d;
  --green-dark: #17483f;
  --blue: #456d86;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(16, 43, 79, 0.06);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

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

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

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

button,
summary {
  font: inherit;
}

section {
  scroll-margin-top: 92px;
}

.section-inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid rgba(220, 230, 226, 0.72);
  background: rgba(251, 252, 251, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  position: relative;
  display: grid;
  grid-template-columns: 260px minmax(420px, 1fr) 260px;
  align-items: center;
  gap: 28px;
  width: min(1220px, calc(100% - 32px));
  min-height: 92px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: auto;
  height: 58px;
  max-width: 220px;
  display: block;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(45, 104, 93, 0.35);
  border-radius: 50%;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.brand strong {
  display: block;
  color: var(--green-dark);
  font-size: 17px;
  font-weight: 600;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 32px;
  margin-left: 0;
  color: #17365a;
  font-size: 16px;
  font-weight: 400;
}

.nav a {
  padding: 8px 0;
}

.nav a:hover,
.text-link:hover,
.phone:hover,
.footer a:hover {
  color: var(--green);
}

.header-meta {
  display: grid;
  gap: 1px;
  min-width: 148px;
  color: var(--muted);
  font-size: 12px;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.phone {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--green);
  border-radius: var(--radius);
  background: var(--green);
  color: var(--white);
  font-weight: 600;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-1px);
}

.button-small {
  min-height: 40px;
  padding-inline: 16px;
  font-size: 14px;
}

.button-light {
  background: rgba(255, 255, 255, 0.86);
  color: var(--green-dark);
  border-color: rgba(45, 104, 93, 0.28);
}

.button-light:hover {
  background: var(--white);
  color: var(--green-dark);
  border-color: var(--green);
}

.menu-toggle {
  display: none;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(45, 104, 93, 0.4);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto 5px;
  border-radius: 2px;
  background: var(--green-dark);
}

.menu-toggle span:last-child {
  margin-bottom: 0;
}

/* Off-canvas мобильное меню */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  visibility: hidden;
  pointer-events: none;
}

.mobile-menu.is-open {
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 43, 79, 0.32);
  opacity: 0;
  transition: opacity 260ms ease;
}

.mobile-menu.is-open .mobile-menu-backdrop {
  opacity: 1;
}

.mobile-menu-panel {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: min(86vw, 360px);
  height: 100%;
  padding: 22px 24px 28px;
  background: var(--paper);
  box-shadow: 0 0 60px rgba(16, 43, 79, 0.22);
  transform: translateX(-100%);
  transition: transform 280ms cubic-bezier(0.22, 0.61, 0.36, 1);
  overflow-y: auto;
}

.mobile-menu.is-open .mobile-menu-panel {
  transform: translateX(0);
}

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.mobile-menu-head .brand-logo {
  width: auto;
  height: 52px;
  max-width: 168px;
}

.mobile-menu-close {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(220, 230, 226, 0.95);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--green-dark);
  cursor: pointer;
  font-size: 0;
  line-height: 0;
}

.mobile-menu-close::before,
.mobile-menu-close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 2.5px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform-origin: center;
}

.mobile-menu-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-menu-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-nav a {
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-size: 17px;
  font-weight: 500;
}

.mobile-nav a:hover {
  color: var(--green);
}

.mobile-menu-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 28px;
}

.mobile-menu-phone {
  font-size: 20px;
  font-weight: 700;
  color: var(--green-dark);
}

.mobile-menu-hours {
  display: grid;
  width: 100%;
  gap: 4px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

.mobile-menu-hour-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
}

.mobile-menu-hour-row span:first-child {
  color: var(--green-dark);
  font-weight: 600;
}

.mobile-menu-hour-row span:last-child {
  min-width: 0;
  font-variant-numeric: tabular-nums;
}

.mobile-menu-cta {
  width: 100%;
  margin-top: 6px;
  min-height: 52px;
  font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu-panel,
  .mobile-menu-backdrop {
    transition: none;
  }
}

.hero {
  position: relative;
  margin-top: 92px;
  min-height: 760px;
  overflow: hidden;
  background: #f8fbfb;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: url("assets/hero/hiroblok.png");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-media::before {
  content: none;
}

.hero-media::after {
  content: none;
}

.hero-shade {
  display: none;
}

.hero-director {
  position: absolute;
  z-index: 1;
  top: auto;
  right: clamp(260px, 19vw, 390px);
  bottom: clamp(70px, 7vw, 118px);
  left: auto;
  width: max-content;
  min-width: 156px;
  padding: 11px 16px 12px 18px;
  border: 1px solid rgba(220, 230, 226, 0.52);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 30px rgba(16, 43, 79, 0.08);
  backdrop-filter: blur(8px);
  color: var(--ink);
  pointer-events: none;
}

.hero-director strong,
.hero-director span,
.hero-director i {
  display: block;
}

.hero-director strong {
  margin-bottom: 2px;
  color: #132a45;
  font-size: clamp(15px, 1vw, 19px);
  font-weight: 600;
  line-height: 1.16;
}

.hero-director span {
  color: #5a6a74;
  font-size: clamp(11px, 0.75vw, 14px);
  line-height: 1.28;
}

.hero-director i {
  display: none;
  width: 34px;
  height: 2px;
  margin-top: 8px;
  background: #087f87;
}

.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 760px;
}

.hero-copy {
  width: min(680px, 100%);
}

.narrow-title-line {
  display: none;
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 34px;
  color: #087f87;
  font-size: 20px;
  font-weight: 400;
}

.hero-location-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #087f87;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.hero-rule {
  display: block;
  width: 58px;
  height: 2px;
  margin-bottom: 42px;
  background: #087f87;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(54px, 5.2vw, 76px);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

h1 span:nth-child(2) {
  color: #087f87;
}

h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(34px, 4.2vw, 56px);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
}

.lead {
  width: min(620px, 100%);
  margin-bottom: 34px;
  color: #263b57;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.hero-directions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 42px;
}

.hero-directions span {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  min-width: 0;
  border: 1px solid rgba(8, 127, 135, 0.28);
  border-radius: var(--radius);
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.64);
  color: #17365a;
  font-size: 16px;
  font-weight: 300;
}

.hero-directions svg {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  fill: none;
  stroke: #087f87;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  gap: 26px;
}

.hero-actions .button {
  min-width: 260px;
  min-height: 72px;
  justify-content: space-between;
  padding-inline: 34px;
  font-size: 20px;
  font-weight: 400;
}

@media (max-width: 1240px) and (min-width: 1081px) {
  .header-inner {
    grid-template-columns: 210px minmax(360px, 1fr) 250px;
    gap: 18px;
  }

  .brand-logo {
    height: 52px;
    max-width: 190px;
  }

  .nav {
    gap: clamp(18px, 2vw, 26px);
    font-size: 15px;
  }

  .header-actions {
    gap: 14px;
  }

  .phone {
    font-size: 14px;
  }

  .button--header {
    min-height: 46px;
    padding: 0 18px;
    font-size: 15px;
  }

  .hero-copy {
    width: min(520px, 48vw);
  }

  h1 {
    font-size: clamp(46px, 4.4vw, 56px);
  }

  .lead {
    width: min(500px, 100%);
    font-size: clamp(18px, 1.7vw, 20px);
  }

  .hero-directions {
    max-width: 540px;
    gap: 10px;
    margin-bottom: 34px;
  }

  .hero-directions span {
    min-height: 56px;
    padding-inline: 14px;
    font-size: 15px;
    gap: 10px;
  }

  .hero-actions {
    max-width: 540px;
    gap: 16px;
  }

  .hero-actions .button {
    min-width: 230px;
    min-height: 64px;
    padding-inline: 28px;
    font-size: 18px;
  }
}

.services,
.documents {
  padding: 100px 0;
  background:
    linear-gradient(180deg, rgba(251, 252, 251, 0), rgba(232, 240, 243, 0.34)),
    var(--paper);
}

.about,
.specialists,
.prices,
.contacts {
  padding: 100px 0;
  background: var(--white);
  border-top: 1px solid rgba(220, 230, 226, 0.74);
}

.section-heading {
  width: min(780px, 100%);
  margin-bottom: 48px;
}

.section-heading p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.price-note {
  max-width: 760px;
}

.section-heading-row {
  display: flex;
  width: 100%;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--teal);
  font-weight: 400;
  text-decoration: underline;
  text-decoration-color: rgba(8, 127, 135, 0.3);
  text-underline-offset: 4px;
}

.about-copy p,
.service-card p,
.staff-card p,
.footer-legal {
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.84fr) minmax(320px, 1.16fr);
  gap: 84px;
  align-items: start;
  padding-top: 10px;
}

.about-grid > div:first-child {
  padding: 38px 0 38px 34px;
  border-left: 2px solid var(--teal);
}

.about-copy {
  color: #334846;
  font-size: 18px;
  max-width: 100%;
  overflow-wrap: break-word;
  padding-top: 40px;
}

.about-title span {
  display: block;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-list {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(220, 230, 226, 0.95);
}

.about-list li {
  position: relative;
  padding: 14px 0 14px 24px;
  border-bottom: 1px solid rgba(220, 230, 226, 0.95);
  color: #34433f;
}

.about-list li::before {
  content: "";
  position: absolute;
  top: 1.6em;
  left: 0;
  width: 9px;
  height: 1px;
  background: var(--teal);
}

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

.service-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-height: 240px;
  padding: 32px 28px 30px;
  border: 1px solid rgba(8, 127, 135, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  border: 1px solid rgba(8, 127, 135, 0.24);
  border-radius: var(--radius);
  color: var(--teal);
  background: rgba(255, 255, 255, 0.74);
}

.service-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  color: var(--navy);
  font-size: 22px;
  font-weight: 300;
}

.service-card p {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.7;
}

.carousel-controls {
  display: flex;
  gap: 8px;
}

.carousel-controls button {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(8, 127, 135, 0.24);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--teal);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.staff-carousel {
  display: grid;
  grid-auto-columns: minmax(286px, 360px);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.staff-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(220, 230, 226, 0.94);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  scroll-snap-align: start;
}

.staff-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  background: #f5f8f7;
}

.staff-card div {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 24px 24px;
  border-top: 1px solid rgba(220, 230, 226, 0.74);
}

.staff-card h3 {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(8, 127, 135, 0.2);
  color: var(--navy);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.28;
}

.staff-card p {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 18px;
  font-size: 15px;
  line-height: 1.6;
}

.price-list {
  width: 100%;
  border-top: 1px solid rgba(8, 127, 135, 0.28);
}

.price-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  min-height: 66px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(220, 230, 226, 0.95);
  background: transparent;
}

.price-list span {
  color: #263b57;
  font-size: 18px;
  font-weight: 300;
}

.price-list strong {
  flex: 0 0 auto;
  color: var(--navy);
  font-size: 18px;
  font-weight: 400;
  text-align: right;
  white-space: nowrap;
}

.full-price,
.document-details {
  position: relative;
  margin-top: 28px;
  border: 1px solid rgba(8, 127, 135, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.full-price summary,
.document-details summary {
  cursor: pointer;
  padding: 22px 24px;
  color: var(--teal);
  font-weight: 400;
}

.full-price summary {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  list-style: none;
}

.full-price summary:focus {
  outline: 2px solid rgba(8, 127, 135, 0.22);
  outline-offset: -2px;
}

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

.full-price summary::before {
  content: "";
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
  transition: transform 180ms ease;
}

.full-price[open] summary::before {
  transform: rotate(90deg);
}

.full-price-summary-text {
  min-width: 0;
  white-space: nowrap;
}

.full-price-summary-text--open {
  display: none;
}

.full-price[open] .full-price-summary-text--closed {
  display: none;
}

.full-price[open] .full-price-summary-text--open {
  display: inline;
}

.table-wrap {
  overflow-x: auto;
  padding: 0 22px 18px;
  -webkit-overflow-scrolling: touch;
}

.price-scroll-hint {
  display: none;
  align-items: center;
  flex: 0 0 auto;
  margin-left: auto;
  opacity: 0.78;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.price-scroll-hint .t897__scroll-icon-wrapper,
.price-scroll-hint svg {
  display: block;
  width: 30px;
  height: 30px;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  border-bottom: 1px solid rgba(220, 230, 226, 0.9);
  padding: 13px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--navy);
  font-weight: 500;
}

.full-price .text-link {
  margin: 0 22px 22px;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 0 24px 24px;
}

.document-grid a {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(220, 230, 226, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
  cursor: zoom-in;
  transition: border-color 180ms ease, transform 180ms ease;
}

.document-grid a:hover {
  border-color: rgba(8, 127, 135, 0.34);
  transform: translateY(-2px);
}

.document-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  padding: 18px;
  background: #f7f9f8;
}

.document-grid span {
  display: block;
  padding: 16px 18px 18px;
  border-top: 1px solid rgba(220, 230, 226, 0.86);
  color: var(--navy);
  font-weight: 300;
}

.contacts-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(420px, 1.18fr);
  gap: 42px;
  align-items: stretch;
}

.contact-info {
  padding: 40px;
  border: 1px solid rgba(8, 127, 135, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
}

address {
  margin: 10px 0 30px;
  color: #263b57;
  font-style: normal;
  font-size: clamp(25px, 3vw, 40px);
  font-weight: 300;
  line-height: 1.2;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-bottom: 30px;
}

.contact-list a {
  color: var(--navy);
  font-size: clamp(20px, 2.1vw, 28px);
  font-weight: 400;
}

.schedule {
  display: grid;
  gap: 1px;
  overflow: hidden;
  margin: 0 0 26px;
  border: 1px solid rgba(220, 230, 226, 0.95);
  border-radius: var(--radius);
  background: rgba(220, 230, 226, 0.95);
}

.schedule div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background: var(--white);
}

.schedule dt {
  color: var(--muted);
}

.schedule dd {
  margin: 0;
  color: var(--navy);
  font-weight: 400;
}

.map {
  min-height: 480px;
  overflow: hidden;
  border: 1px solid rgba(8, 127, 135, 0.18);
  border-radius: var(--radius);
  background: var(--mist);
}

.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 480px;
  border: 0;
}

.footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 132px;
  align-items: flex-start;
  gap: 18px 34px;
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer p {
  margin: 0;
}

.footer-legal {
  margin-top: 10px;
  max-width: 760px;
  font-size: 13px;
  line-height: 1.65;
}

.footer-contacts {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  gap: 8px;
  justify-items: end;
  flex: 0 0 auto;
}

.footer a {
  color: var(--green-dark);
  font-weight: 700;
}

.modal-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(16, 43, 79, 0.28);
  backdrop-filter: blur(12px);
}

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

.modal-panel {
  position: relative;
  width: min(100%, 520px);
  max-height: min(820px, calc(100vh - 44px));
  overflow: auto;
  border: 1px solid rgba(8, 127, 135, 0.18);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 28px 80px rgba(16, 43, 79, 0.18);
}

.appointment-panel {
  padding: 42px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(220, 230, 226, 0.95);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--green-dark);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.appointment-panel h2 {
  max-width: 360px;
  margin-top: 6px;
  font-size: clamp(30px, 4vw, 42px);
}

.modal-lead {
  margin: 12px 0 26px;
  color: var(--muted);
}

.appointment-form {
  display: grid;
  gap: 16px;
}

.appointment-form label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 400;
}

.appointment-form input[type="text"],
.appointment-form input[type="tel"] {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(8, 127, 135, 0.22);
  border-radius: var(--radius);
  padding: 0 14px;
  background: #fbfcfb;
  color: var(--ink);
  font: inherit;
}

.appointment-form input:focus {
  outline: 2px solid rgba(8, 127, 135, 0.22);
  outline-offset: 2px;
}

.consent {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

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

.consent-link:hover {
  color: var(--green-dark);
}

.appointment-form .button {
  width: 100%;
  margin-top: 4px;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--green-dark);
  font-size: 14px;
}

.form-status.is-error {
  color: #9a2f2f;
}

.lightbox-panel {
  width: min(100%, 980px);
  padding: 18px;
  background: #fbfcfb;
}

.lightbox-panel img {
  width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
  border-radius: calc(var(--radius) - 2px);
  background: var(--white);
}

.lightbox-panel p {
  margin: 14px 40px 2px 2px;
  color: var(--navy);
  font-size: 15px;
}

/* Правовые ссылки в подвале */
.footer-legal-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 2px;
  padding-top: 16px;
  border-top: 1px solid rgba(220, 230, 226, 0.9);
}

.footer-legal-links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid transparent;
}

.footer-legal-links a:hover {
  color: var(--green-dark);
  border-bottom-color: rgba(45, 104, 93, 0.4);
}

/* Модальное окно правовых документов */
.legal-backdrop {
  z-index: 100;
}

.legal-panel {
  width: min(100%, 720px);
  max-height: min(880px, calc(100vh - 44px));
  padding: 44px 44px 40px;
  scroll-behavior: smooth;
}

.legal-heading {
  margin: 6px 44px 0 0;
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1.2;
}

.legal-body {
  margin-top: 20px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
}

.legal-body h3 {
  margin: 26px 0 8px;
  color: var(--green-dark);
  font-size: 17px;
  font-weight: 600;
}

.legal-body p {
  margin: 0 0 12px;
  color: #3a4744;
}

.legal-body a {
  color: var(--green);
  border-bottom: 1px solid rgba(45, 104, 93, 0.35);
}

.legal-body a:hover {
  color: var(--green-dark);
}

.legal-meta {
  padding: 12px 14px;
  border-left: 3px solid var(--green);
  background: var(--soft);
  border-radius: calc(var(--radius) - 4px);
  color: var(--muted) !important;
  font-size: 13px;
}

@media (max-width: 1080px) {
  /* Мобильная / планшетная шапка: бургер слева, логотип, off-canvas меню */
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    min-height: 76px;
    padding: 8px 0;
  }

  .menu-toggle {
    display: block;
    order: 2;
    margin-left: auto;
  }

  .brand {
    order: 1;
    width: auto;
  }

  .brand-logo {
    height: 52px;
    max-width: 196px;
  }

  /* Десктопная навигация и действия скрыты — всё уходит в off-canvas */
  .nav,
  .header-actions,
  .header-meta {
    display: none;
  }

  .hero-media {
    background-position: center top;
    background-size: cover;
  }

  .hero-director {
    display: none;
    top: 300px;
    right: clamp(22px, 4vw, 40px);
    left: auto;
    width: min(250px, 28vw);
  }

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

  .contacts-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) and (min-width: 821px) {
  .hero {
    margin-top: 72px;
    min-height: 0;
    display: block;
    background: var(--paper);
  }

  .hero-media {
    position: relative;
    inset: auto;
    width: 100%;
    height: 310px;
    background-position: center top;
    background-size: cover;
  }

  .hero-director {
    display: block;
    position: absolute;
    top: 238px;
    right: clamp(24px, 5vw, 48px);
    bottom: auto;
    left: auto;
    z-index: 2;
    width: auto;
    min-width: 146px;
    max-width: calc(100% - 48px);
    margin: 0;
    padding: 9px 14px 10px 16px;
    border-color: rgba(220, 230, 226, 0.62);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 24px rgba(16, 43, 79, 0.1);
    backdrop-filter: blur(8px);
  }

  .hero-director strong {
    margin-bottom: 1px;
    font-size: 16px;
    line-height: 1.15;
  }

  .hero-director span {
    font-size: 12px;
    line-height: 1.25;
  }

  .hero-director i {
    display: none;
  }

  .hero-inner {
    display: block;
    align-items: stretch;
    min-height: 0;
    padding-top: 26px;
    padding-bottom: 44px;
    background: var(--paper);
  }

  .hero-copy {
    width: min(620px, 100%);
  }

  .hero-location {
    margin-bottom: 18px;
  }

  .hero-rule {
    margin-bottom: 26px;
  }

  h1 {
    font-size: clamp(42px, 5vw, 52px);
  }

  .lead {
    width: min(560px, 100%);
  }
}

@media (max-width: 820px) {
  .section-inner {
    width: min(100% - 28px, 1160px);
  }

  .header-inner {
    width: calc(100% - 24px);
    min-height: 72px;
  }

  .brand-logo {
    height: 48px;
    max-width: 176px;
  }

  section {
    scroll-margin-top: 92px;
  }

  /* Мобильный hero: фото сверху с кропом, текст ниже на непрозрачном блоке */
  .hero {
    margin-top: 72px;
    min-height: 0;
    display: block;
    background: var(--paper);
  }

  .hero-media {
    position: relative;
    inset: auto;
    width: 100%;
    height: 36vh;
    min-height: 240px;
    max-height: 310px;
    background-position: 99% 21%;
    background-size: auto 132%;
  }

  .hero-director {
    display: block;
    position: absolute;
    top: clamp(174px, 54vw, 236px);
    right: 14px;
    bottom: auto;
    left: auto;
    z-index: 2;
    width: auto;
    min-width: 132px;
    max-width: calc(100% - 28px);
    margin: 0;
    padding: 8px 12px 9px 14px;
    border-color: rgba(220, 230, 226, 0.62);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 24px rgba(16, 43, 79, 0.1);
    backdrop-filter: blur(8px);
  }

  .hero-director strong {
    margin-bottom: 1px;
    font-size: 15px;
    line-height: 1.15;
  }

  .hero-director span {
    font-size: 11px;
    line-height: 1.25;
  }

  .hero-director i {
    display: none;
  }

  .hero-inner {
    display: block;
    align-items: stretch;
    min-height: 0;
    padding-top: 20px;
    padding-bottom: 30px;
    background: var(--paper);
  }

  .hero-copy {
    width: 100%;
  }

  .wide-title-line {
    display: none;
  }

  .narrow-title-line {
    display: block;
  }

  h1 {
    font-size: clamp(34px, 9.6vw, 38px);
  }

  h2 {
    font-size: clamp(27px, 7.4vw, 31px);
  }

  .lead {
    font-size: 17px;
  }

  .hero-location {
    margin-bottom: 16px;
    font-size: 16px;
  }

  .hero-rule {
    margin-bottom: 20px;
  }

  .hero-directions {
    display: none;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
  }

  .hero-actions {
    gap: 12px;
  }

  .hero-actions .button {
    min-width: 0;
    min-height: 58px;
    padding-inline: 22px;
    font-size: 17px;
  }

  .about-copy {
    max-width: 330px;
  }

  .about-grid > div:first-child {
    padding: 0 18px 0 20px;
    min-width: 0;
  }

  .about-title {
    max-width: 320px;
    font-size: clamp(27px, 7.4vw, 34px);
    line-height: 1.12;
  }

  .button {
    width: 100%;
  }

  .services,
  .documents,
  .about,
  .specialists,
  .prices,
  .contacts {
    padding: 62px 0;
  }

  .section-heading-row {
    display: block;
  }

  .section-heading-row .text-link,
  .carousel-controls {
    margin-top: 18px;
  }

  .service-grid,
  .document-grid {
    grid-template-columns: 1fr;
  }

  .document-grid {
    padding: 0 16px 18px;
  }

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

  .price-list div {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
  }

  .full-price summary {
    gap: 8px;
    padding: 20px 16px;
    font-size: clamp(18px, 5.1vw, 22px);
    line-height: 1.2;
  }

  .full-price[open] .price-scroll-hint {
    display: inline-flex;
  }

  .full-price.is-scroll-hint-hidden .price-scroll-hint {
    opacity: 0;
    visibility: hidden;
  }

  .price-scroll-hint .t897__scroll-icon-wrapper,
  .price-scroll-hint svg {
    width: 28px;
    height: 28px;
  }

  .table-wrap {
    padding-right: 16px;
    padding-left: 16px;
  }

  .staff-carousel {
    grid-auto-columns: minmax(260px, 84vw);
  }

  .contact-info {
    padding: 24px;
    overflow: hidden;
  }

  .modal-backdrop {
    align-items: end;
    padding: 12px;
  }

  .appointment-panel {
    padding: 34px 22px 24px;
  }

  .legal-panel {
    padding: 36px 20px 28px;
  }

  .legal-heading {
    margin-right: 36px;
  }

  .modal-panel {
    max-height: calc(100vh - 24px);
  }

  .lightbox-panel {
    padding: 12px;
  }

  .lightbox-panel img {
    max-height: calc(100vh - 112px);
  }

  .schedule div {
    display: grid;
    grid-template-columns: minmax(42px, auto) minmax(0, 1fr);
    align-items: center;
  }

  .schedule dd {
    text-align: right;
    white-space: nowrap;
  }

  .map,
  .map iframe {
    min-height: 360px;
  }

  .footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px 0;
  }

  .footer-contacts {
    grid-column: auto;
    grid-row: auto;
    gap: 10px;
    justify-items: start;
  }

  .footer-contacts a {
    font-size: 18px;
    line-height: 1.35;
  }

  .footer-legal-links {
    grid-column: auto;
    display: grid;
    gap: 0;
    margin-top: 0;
    padding-top: 16px;
  }

  .footer-legal-links a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(220, 230, 226, 0.9);
    font-size: 14px;
    line-height: 1.3;
  }

  .footer-legal-links a:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
}

@media (max-width: 820px) and (min-width: 700px) {
  .hero-copy {
    width: min(560px, 100%);
  }

  h1 {
    font-size: clamp(34px, 4.8vw, 38px);
  }

  .lead {
    width: min(520px, 100%);
  }
}

@media (max-width: 420px) {
  .brand strong {
    font-size: 15px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero-directions span {
    width: 100%;
    text-align: center;
  }

  .document-grid img {
    aspect-ratio: 1 / 1.32;
  }
}

@media (max-width: 360px) {
  .section-inner {
    width: min(100% - 24px, 1160px);
  }

  .header-inner {
    width: calc(100% - 20px);
  }

  .brand-logo {
    height: 44px;
    max-width: 158px;
  }

  .about-title {
    max-width: 292px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 28px;
  }

  .lead,
  .about-copy,
  address,
  .price-list span,
  .price-list strong {
    font-size: 15px;
  }

  .hero-actions .button {
    min-height: 54px;
    padding-inline: 18px;
  }

  .hero-directions span {
    min-height: 48px;
    padding-inline: 16px;
  }

  .service-card {
    padding: 26px 20px 24px;
  }

  .staff-carousel {
    grid-auto-columns: minmax(232px, 82vw);
  }

  .price-list div {
    gap: 10px;
    min-height: 58px;
  }

  .contact-info {
    padding: 22px 18px;
  }
}
