/* ==========================================================================
   Академия здоровья — реабилитационный центр
   Направление: дружелюбная клиника.
   Тёплый кремовый фон, глубокий хвойный зелёный, крупный геометрический
   гротеск, круглая фотография с бейджами, цветные строки услуг, пилюли.
   ========================================================================== */

/* ---------- Шрифты ---------- */
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/onest-cyr.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/onest-lat.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/golos-cyr.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/golos-lat.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

/* ---------- Токены ---------- */
:root {
  --font-display: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Golos Text", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --cream: #faf6ec;
  --cream-2: #f3edde;
  --tint: #e9edda;
  --white: #ffffff;
  --ink: #122a1e;
  --ink-soft: #33463a;
  --muted: #59695c;
  --green: #14472f;
  --green-2: #1d5b3d;
  --green-deep: #0b2a1c;
  --leaf: #3f8a49;
  --ochre: #e0a458;
  --mint: #dcebdc;
  --sand: #f4e5c9;
  --sky: #dbe9ea;
  --clay: #f2e0d7;
  --sage: #e6edda;
  --line: #ddd5c2;
  --line-soft: #eae3d1;
  --line-input: #8b8874;
  --danger: #9c2f24;

  --radius-lg: 32px;
  --radius: 24px;
  --radius-sm: 16px;
  --radius-pill: 999px;

  --container: 1180px;
  --gutter: 24px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --shadow-chip: 0 14px 34px -14px rgba(18, 42, 30, 0.42);
  --shadow-card: 0 24px 60px -32px rgba(18, 42, 30, 0.35);
}

/* ---------- База ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-weight: 700;
  letter-spacing: -0.035em;
}

p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--mint);
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--green);
  color: var(--cream);
  border-radius: 0 0 var(--radius-sm) 0;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

.topbar :focus-visible,
.contact :focus-visible,
.footer :focus-visible {
  outline-color: var(--cream);
}

/* ---------- Верхняя полоса ---------- */
.topbar {
  background: var(--green-deep);
  color: #d6e1cf;
  font-size: 0.78rem;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}

.topbar__item svg {
  color: #9db79a;
  flex: 0 0 auto;
}

.topbar__item--right {
  gap: 18px;
}

.topbar__item a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.topbar__item a:hover {
  text-decoration: underline;
}

.topbar__free {
  color: #b9cbb2;
}

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 236, 0.94);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}

@supports (backdrop-filter: blur(10px)) {
  .site-header {
    backdrop-filter: blur(12px);
  }
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  flex: 0 0 auto;
}

.brand__mark img {
  display: block;
  width: 46px;
  height: auto;
  mix-blend-mode: multiply;
}

.brand__mark--light img {
  mix-blend-mode: normal;
  width: 42px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.brand__descr {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.2;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.nav__list a {
  display: inline-block;
  padding: 6px 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.nav__list a:hover {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: var(--leaf);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav__phone {
  color: var(--green);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.nav__phone:hover {
  text-decoration: underline;
}

.burger {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--green);
  border-radius: 2px;
  transition: transform 0.2s var(--ease);
}

.burger[aria-expanded="true"] span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.burger[aria-expanded="true"] span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn--primary {
  background: var(--green);
  color: var(--cream);
}

.btn--primary:hover {
  background: var(--green-2);
}

.btn--primary:active {
  transform: translateY(1px);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(18, 42, 30, 0.28);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--green);
  color: var(--green);
}

.btn--sm {
  min-height: 46px;
  padding: 0 20px;
  font-size: 0.9rem;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ---------- Подписи ---------- */
.label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}

.label--light {
  color: #b6cbb1;
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 72px;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: 48px;
}

.hero__title {
  margin-top: 18px;
  font-size: clamp(2.3rem, 1.45rem + 3.2vw, 3.75rem);
  line-height: 1.04;
}

.hl {
  position: relative;
  display: inline-block;
  color: var(--leaf);
}

.hl::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -0.02em;
  height: 0.16em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9c38-6 76-7 114-4 26 2 54 4 80-2' stroke='%23e0a458' stroke-width='5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")
    center / 100% 100% no-repeat;
}

.hero__lead {
  max-width: 46ch;
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.85rem;
}

.hero__media {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-left: auto;
  padding-left: 26px;
}

.hero__photo {
  aspect-ratio: 4 / 5;
  border-radius: 32px;
  overflow: hidden;
  background: var(--cream-2);
  box-shadow: var(--shadow-card);
}

.hero__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

.hero__badge {
  position: absolute;
  left: -4px;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 310px;
  padding: 12px 20px 12px 12px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-chip);
}

.hero__badge-avatar {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.hero__badge b {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.hero__badge span {
  display: block;
  margin-top: 3px;
  color: #5a6a5a;
  font-size: 0.76rem;
  line-height: 1.3;
}

.hero__tag {
  position: absolute;
  top: 22px;
  right: -14px;
  display: flex;
  flex-direction: column;
  padding: 11px 16px;
  background: var(--green);
  border-radius: 16px;
  box-shadow: var(--shadow-chip);
}

.hero__tag-big {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.1;
}

.hero__tag-small {
  margin-top: 2px;
  color: #c2d5ba;
  font-size: 0.72rem;
  line-height: 1.2;
}
/* ---------- Полоса доверия ---------- */
.trustbar {
  background: var(--green);
  color: var(--cream);
}

.trustbar__inner {
  display: flex;
  align-items: center;
  gap: 14px 28px;
  flex-wrap: wrap;
  padding: 20px 0;
}

.trustbar__label {
  margin: 0;
  color: #a8c1a3;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trustbar__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  list-style: none;
  font-size: 0.98rem;
}

.trustbar__list li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.trustbar__list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7fa189;
}

/* ---------- Секции ---------- */
.section {
  padding: 96px 0;
}

.section--tint {
  background: var(--tint);
}

.section-head {
  max-width: 780px;
  margin-bottom: 48px;
}

.section-head__title {
  margin-top: 12px;
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3.1rem);
}

.section-head__sub {
  max-width: 62ch;
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.02rem;
}

/* ---------- Две колонки ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: start;
  gap: 48px;
}

.split--reverse {
  align-items: start;
}

.split--reverse .split__media {
  order: 2;
  position: sticky;
  top: 104px;
  align-self: start;
}

.split__media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.split--reverse .split__media img {
  height: auto;
  aspect-ratio: 4 / 3;
}

.split__cards {
  display: grid;
  gap: 16px;
}

.split__content .section-head__title {
  margin-top: 12px;
}

.split__content .section-head__sub {
  margin-top: 14px;
}

/* ---------- Карточки ---------- */
.card {
  padding: 28px 30px;
  border-radius: var(--radius);
}

.card--mint {
  background: var(--mint);
}

.card--sand {
  background: var(--sand);
}

.card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
}

.card__title {
  font-size: 1.5rem;
}

.card__tag {
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-pill);
  color: #4f6152;
  font-size: 0.74rem;
  white-space: nowrap;
}

.ticks {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.45;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.55;
}

/* ---------- Направления ---------- */
.services {
  display: grid;
  gap: 12px;
  list-style: none;
}

.service {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  border-radius: 22px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s var(--ease);
}

.service:hover {
  transform: translateY(-2px);
}

.service--mint {
  background: var(--mint);
}

.service--sand {
  background: var(--sand);
}

.service--sky {
  background: var(--sky);
}

.service--clay {
  background: var(--clay);
}

.service--sage {
  background: #e2ecd9;
}

.service--cream {
  background: var(--cream);
  border: 1px solid var(--line);
}

.service__num {
  color: #3f5347;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.service__title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.service__text {
  display: block;
  max-width: 64ch;
  margin-top: 4px;
  color: #3d5144;
  font-size: 0.94rem;
  line-height: 1.45;
}

.service__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  color: var(--green);
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}

.service:hover .service__arrow {
  transform: translateX(4px);
  background: var(--white);
}

/* ---------- Методики ---------- */
.methods {
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

.method {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.method dt {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.method dd {
  max-width: 58ch;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.note {
  margin-top: 24px;
  padding: 14px 18px;
  background: #fffdf6;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

/* ---------- Специалист ---------- */
.specialist {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.specialist__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.specialist__card {
  position: relative;
  z-index: 2;
  max-width: 440px;
  margin: 32px;
  padding: 30px;
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.specialist__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.specialist__avatar {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--white);
}

.specialist__role {
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.specialist__name {
  margin-top: 4px;
  font-size: 1.22rem;
  line-height: 1.15;
}

.specialist__facts {
  display: grid;
  gap: 9px;
  margin: 20px 0 22px;
  list-style: none;
}

.specialist__facts li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.45;
}

.specialist__facts li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--leaf);
}

/* ---------- Фото из практики ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gallery__item {
  margin: 0;
}

.gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 40%;
  border-radius: var(--radius);
}

.gallery__item--right img {
  object-position: 100% 45%;
}

.gallery__item figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

/* ---------- Отзыв ---------- */
.review {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: 48px;
}

.review__head .section-head__sub {
  max-width: 34ch;
}

.stack {
  position: relative;
  padding: 0 16px 34px 0;
}

.stack__back {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

.stack__back--one {
  z-index: 2;
  background: var(--sand);
  transform: translate(9px, 11px);
}

.stack__back--two {
  z-index: 1;
  background: var(--sky);
  transform: translate(18px, 22px);
}

.stack__front {
  position: relative;
  z-index: 3;
  padding: 32px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.stack__quote {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.stack__quote::before {
  content: "«";
}

.stack__quote::after {
  content: "»";
}

.stack__author {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.8rem;
}

.stack__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.stat b {
  display: block;
  color: var(--green);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stat span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.3;
}

/* ---------- Шаги ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}

.step {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--mint);
  border-radius: 50%;
  color: var(--green);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
}

.step__title {
  margin-top: 18px;
  font-size: 1.35rem;
}

.step__text {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.step__link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.step__meta {
  margin-top: 12px;
  color: #6b7a6d;
  font-size: 0.82rem;
}

/* ---------- Стоимость ---------- */
.price-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 48px;
  padding: 48px;
  background: var(--mint);
  border-radius: var(--radius-lg);
}

.price-card__lead {
  max-width: 42ch;
  margin-top: 16px;
  color: var(--ink-soft);
}

.price-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.price-list {
  list-style: none;
  border-top: 1px solid rgba(20, 71, 47, 0.16);
}

.price-list li {
  display: grid;
  gap: 3px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(20, 71, 47, 0.16);
}

.price-list span {
  color: #4f6152;
  font-size: 0.8rem;
}

.price-list b {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* ---------- Вопросы ---------- */
.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 48px;
}

.faq-head__note {
  max-width: 34ch;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.faq-head__note a {
  white-space: nowrap;
}

.faq {
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q::after {
  content: "+";
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-input);
  border-radius: 50%;
  color: var(--green);
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease),
    color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.faq__item[open] .faq__q::after {
  transform: rotate(45deg);
  background: var(--green);
  border-color: var(--green);
  color: var(--cream);
}

.faq__a {
  max-width: 64ch;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

/* ---------- Запись ---------- */
.contact {
  padding: 96px 0;
  background-color: var(--green-deep);
  background-image: linear-gradient(180deg, rgba(11, 42, 28, 0.94), rgba(11, 42, 28, 0.97)),
    url("../img/light.webp");
  background-size: cover;
  background-position: center;
  color: var(--cream);
}

.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 56px;
}

.contact__title {
  max-width: 16ch;
  margin-top: 14px;
  color: var(--cream);
  font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.3rem);
  line-height: 1.05;
}

.contact__lead {
  max-width: 36ch;
  margin-top: 18px;
  color: #d7e2d2;
}

.contact__phone {
  display: inline-block;
  margin-top: 32px;
  color: #f6f2e4;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.55rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.contact__phone:hover {
  text-decoration: underline;
  text-decoration-color: #7fa189;
}

.contact__note {
  margin-top: 6px;
  color: #a9bfa5;
  font-size: 0.82rem;
}

.contact__address {
  margin-top: 28px;
  color: #e6ecdf;
  font-style: normal;
  line-height: 1.55;
}

.contact__muted {
  color: #a9bfa5;
  font-size: 0.9rem;
}

.contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.link-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  background: rgba(250, 246, 236, 0.07);
  border: 1px solid rgba(250, 246, 236, 0.26);
  border-radius: var(--radius-pill);
  color: #eef0e4;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.link-chip:hover {
  background: rgba(250, 246, 236, 0.16);
  border-color: rgba(250, 246, 236, 0.6);
}

/* ---------- Форма ---------- */
.form {
  padding: 32px;
  background: var(--cream);
  border-radius: var(--radius-lg);
  color: var(--ink);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.7);
}

.form__title {
  font-size: 1.4rem;
}

.form__hint {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.field {
  margin-top: 20px;
}

.field--hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field__label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.field__input {
  width: 100%;
  min-height: 52px;
  padding: 11px 16px;
  background: var(--white);
  border: 1px solid var(--line-input);
  border-radius: 14px;
  color: var(--ink);
  font: inherit;
  font-size: 0.97rem;
  transition: border-color 0.15s var(--ease);
}

.field__input::placeholder {
  color: #66715f;
}

.field__input:hover {
  border-color: #6f6c59;
}

.field__input:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
  border-color: var(--green);
}

.field__input[aria-invalid="true"] {
  border-color: var(--danger);
}

.field__input[aria-invalid="true"]:focus {
  outline-color: var(--danger);
}

select.field__input {
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2314472f' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.field__error {
  margin-top: 6px;
  color: var(--danger);
  font-size: 0.82rem;
  line-height: 1.4;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.5;
  cursor: pointer;
}

.consent__input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--green);
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.form__submit {
  flex: 1 1 220px;
}

.form__promise {
  color: var(--muted);
  font-size: 0.8rem;
}

.form.is-done .form__submit {
  background: transparent;
  border-color: var(--line-input);
  color: var(--ink);
}

.form.is-done .form__submit:hover {
  background: var(--white);
  border-color: var(--green);
  color: var(--green);
}

.form__result {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.form__result-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.form__result-text {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.form__result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.form__result-fallback {
  margin-top: 12px;
  color: var(--danger);
  font-size: 0.82rem;
}

.form__textarea {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line-input);
  border-radius: 14px;
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.5;
  resize: vertical;
}

/* ---------- Страница документа ---------- */
.doc {
  padding: 48px 0 96px;
}

.doc__inner {
  max-width: 720px;
}

.doc__title {
  margin-top: 12px;
  font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem);
}

.doc__date {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.8rem;
}

.doc h2 {
  margin-top: 40px;
  font-size: 1.3rem;
}

.doc p {
  margin-top: 12px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.doc__back {
  margin-top: 48px;
}

/* ---------- Подвал ---------- */
.footer {
  padding: 64px 0 28px;
  background: #0a281b;
  color: #dfe6d6;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(250, 246, 236, 0.14);
}

.footer__brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 34ch;
}

.footer .brand__mark {
  color: var(--green-2);
}

.footer__name {
  color: #f6f2e4;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.footer__descr {
  margin-top: 4px;
  color: #a8b9a3;
  font-size: 0.78rem;
  line-height: 1.45;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.footer__col a,
.footer__col p {
  display: block;
  margin-bottom: 6px;
  color: #dfe6d6;
  font-size: 0.92rem;
  text-decoration: none;
}

.footer__col a:hover {
  text-decoration: underline;
}

.footer__head {
  margin-bottom: 12px;
  color: #9fb79b;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  color: #a8b9a3;
  font-size: 0.78rem;
}

.footer__bottom a {
  color: #dfe6d6;
}

.footer--slim {
  padding: 32px 0;
}

.footer--slim .footer__bottom {
  padding-top: 0;
}

/* ---------- Мобильная панель ---------- */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(250, 246, 236, 0.97);
  border-top: 1px solid var(--line);
}

.mobile-cta .btn {
  flex: 1 1 0;
}

/* ---------- Адаптив ---------- */
@media (max-width: 1120px) {
  .nav {
    gap: 24px;
  }

  .nav__list {
    gap: 20px;
  }

  .nav__list a {
    font-size: 0.9rem;
  }

  .nav__phone {
    display: none;
  }

  .hero__media {
    max-width: 460px;
  }
}

@media (max-width: 979px) {
  :root {
    --gutter: 20px;
  }

  html {
    scroll-padding-top: 88px;
  }

  body {
    padding-bottom: 68px;
  }

  .topbar__free {
    display: none;
  }

  .header__inner {
    min-height: 74px;
  }

  .burger {
    display: block;
  }

  .nav {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    z-index: 49;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    max-height: calc(100vh - 74px);
    overflow-y: auto;
    padding: 16px var(--gutter) 24px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open {
    display: flex;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__list a {
    padding: 15px 0;
    font-size: 1.04rem;
    border-bottom: 1px solid var(--line-soft);
  }

  .nav__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .nav__phone {
    display: block;
    padding: 6px 0;
    font-size: 1.02rem;
    text-align: center;
  }

  .nav__actions .btn {
    width: 100%;
  }

  .hero {
    padding: 40px 0 56px;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .hero__media {
    max-width: 500px;
    margin: 0 auto;
    padding-left: 0;
  }

  .hero__photo {
    aspect-ratio: 4 / 3;
  }

  .hero__photo img {
    object-position: 50% 38%;
  }

  .section {
    padding: 72px 0;
  }

  .split,
  .review,
  .faq-wrap,
  .price-card,
  .contact__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .split--reverse .split__media {
    order: 0;
    position: static;
  }

  .split__media img,
  .split--reverse .split__media img {
    aspect-ratio: 16 / 10;
  }

  .specialist {
    min-height: 0;
    display: block;
    border-radius: var(--radius);
  }

  .specialist__img {
    position: static;
    display: block;
    width: 100%;
    height: 260px;
    border-radius: var(--radius);
  }

  .specialist__card {
    max-width: none;
    margin: -48px 12px 0;
  }

  .review__head .section-head__sub {
    max-width: 60ch;
  }

  .stack {
    padding: 0 14px 30px 0;
  }

  .gallery {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }

  .gallery__item {
    flex: 0 0 min(78%, 360px);
    scroll-snap-align: start;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .price-card {
    padding: 32px;
  }

  .contact {
    padding: 72px 0;
  }

  .footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  body {
    font-size: 16px;
  }

  .topbar {
    font-size: 0.72rem;
  }

  .topbar__item:first-child {
    display: none;
  }

  .topbar__inner {
    justify-content: center;
  }

  .section {
    padding: 56px 0;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .hero__title {
    font-size: clamp(2.15rem, 1.5rem + 3.4vw, 2.8rem);
  }

  .hero__lead {
    font-size: 1rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__media {
    max-width: 400px;
    margin: 0 auto;
    padding-left: 0;
  }

  .hero__photo {
    aspect-ratio: 4 / 5;
  }

  .hero__photo img {
    object-position: 50% 42%;
  }

  .hero__badge {
    left: 10px;
    bottom: 14px;
    max-width: calc(100% - 20px);
    padding: 10px 14px 10px 10px;
  }

  .hero__badge-avatar {
    width: 44px;
    height: 44px;
  }

  .hero__tag {
    top: 12px;
    right: 10px;
    padding: 9px 13px;
  }

  .hero__tag-big {
    font-size: 0.95rem;
  }

  .trustbar__list {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px 18px;
    font-size: 0.92rem;
  }

  .service {
    align-items: start;
  }

  .service__num {
    padding-top: 3px;
  }

  .service__arrow {
    display: inline-flex;
    width: 32px;
    height: 32px;
    margin-top: 2px;
    background: transparent;
  }

  .service__arrow svg {
    width: 18px;
    height: 18px;
  }

  .card {
    padding: 24px;
  }

  .service {
    grid-template-columns: 30px minmax(0, 1fr) 32px;
    gap: 12px;
    padding: 20px;
    border-radius: 18px;
  }

  .service__title {
    font-size: 1.18rem;
  }

  .price-card {
    padding: 24px;
    border-radius: var(--radius);
  }

  .price-card .btn {
    width: 100%;
  }

  .stack__front {
    padding: 24px;
  }

  .stack__quote {
    font-size: 1.18rem;
  }

  .stack__stats {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .specialist__card {
    margin: -32px 8px 0;
    padding: 24px;
  }

  .specialist__name {
    font-size: 1.35rem;
  }

  .contact__links .link-chip {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }

  .form {
    padding: 24px;
  }

  .form__actions .btn {
    width: 100%;
  }

  .form__promise {
    text-align: center;
    width: 100%;
  }

  .footer {
    padding-top: 48px;
  }

  .footer__cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}


@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .topbar,
  .site-header,
  .mobile-cta,
  .hero__media,
  .form {
    display: none !important;
  }

  body {
    background: #fff;
    padding: 0;
  }
}
