/* =========================================================
   Eco Cosmetology by Julia — styles.css
   Без минификации: правки удобно делать вручную.
   ========================================================= */

:root {
  --beige:        #f5efe4;
  --beige-light:  #faf6ee;
  --beige-dark:   #ece4d4;
  --green:        #1f5d3a;
  --green-dark:   #154028;
  --green-soft:   #d8d4c4;
  --green-tint:   #c5d6cb;
  --text:         #2a2a26;
  --text-muted:   #7a766c;

  --shadow-soft:   0 4px 24px rgba(31, 93, 58, 0.08);
  --shadow-hover:  0 10px 32px rgba(31, 93, 58, 0.14);

  --radius-sm: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --header-h: 88px;

  --serif: 'Playfair Display', 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

/* [ФИКС] scroll-padding-top для anchor-навигации: при клике на #section
   страница останавливается НИЖЕ sticky-шапки, чтобы заголовок секции
   не уезжал под закреплённую шапку. Без этого первая строка секции
   всегда скрыта на 73-88px. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

/* [ФИКС] Убираем синюю/серую подсветку при тапе на iOS/Android — она
   выглядит "сыро" на брендовом сайте. Hover/focus-стили остаются,
   просто отключается дефолтный highlight браузера. */
a, button, [role="button"], summary {
  -webkit-tap-highlight-color: transparent;
}
body {
  margin: 0;
  background: var(--beige);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--green-dark);
  font-weight: 500;
  margin: 0;
  line-height: 1.2;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  /* [ФИКС] safe-area insets: на iPhone X+ в landscape "чёлка" и
     закруглённые углы съедают по 30-40px с боков. max() гарантирует
     что отступ не меньше дизайнерского (24px), но при необходимости
     раздвигается под физическую безопасную зону устройства. */
  padding: 0 max(24px, env(safe-area-inset-left)) 0 max(24px, env(safe-area-inset-right));
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
}
.section-intro {
  text-align: center;
  max-width: 720px;
  margin: -16px auto 40px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1rem;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn--large { padding: 18px 36px; font-size: 1.05rem; }
.btn--primary {
  background: var(--green);
  color: var(--beige);
  box-shadow: var(--shadow-soft);
}
.btn--primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn--beige {
  background: var(--beige);
  color: var(--green-dark);
}
.btn--beige:hover { background: #fff; transform: translateY(-2px); }
.btn__arrow { transition: transform .2s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 239, 228, 0.85);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  border-bottom-color: var(--beige-dark);
  background: rgba(245, 239, 228, 0.95);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.header__logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.header__full-logo {
  height: 60px;
  width: auto;
  display: block;
}

.nav__list {
  display: flex;
  gap: 32px;
}
.nav__link {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text);
  position: relative;
  padding: 6px 0;
  transition: color .2s ease;
}
.nav__link:hover { color: var(--green); }
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav__link:hover::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--green-dark); }
.nav__link.is-active::after { transform: scaleX(1); height: 2px; }

.burger {
  display: none;
  width: 48px;
  height: 48px;
  background: var(--green);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: background .2s ease;
}
.burger:hover { background: var(--green-dark); }
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--beige);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero { padding: 56px 0 80px; }
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero__title {
  font-size: 3.4rem;
  line-height: 1.08;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
  display: block;
}
.hero__title-main {
  display: block;
}
.hero__title-sub {
  display: block;
  font-family: var(--serif);
  font-size: 0.55em;
  font-weight: 500;
  color: var(--green-dark);
  letter-spacing: -0.3px;
  margin-top: 8px;
  line-height: 1.1;
}
.hero__title-keyword {
  display: block;
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  line-height: 1.4;
}

/* На десктопе ключевая фраза увеличена так, чтобы её правый край
   совпадал с буквой "Н" в слове "видно" над ней — визуальный ритм. */
@media (min-width: 1024px) {
  .hero__title-keyword {
    font-size: 1.5rem; /* 24px */
  }
}
.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 36px;
  max-width: 460px;
}
.hero__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--beige);
}
.hero__photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity .4s ease;
}
.hero__photo img.is-loaded { opacity: 1; }
.img-placeholder__label {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  color: rgba(21, 64, 40, 0.45);
  font-size: 1.4rem;
  font-style: italic;
}

/* ---------- STATS ---------- */
.stats { padding: 24px 0 80px; }
.stats__card {
  background: var(--beige-light);
  border-radius: var(--radius-lg);
  padding: 48px 40px 36px;
  box-shadow: var(--shadow-soft);
}
.stats__title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 32px;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat {
  background: var(--beige);
  border-radius: var(--radius-sm);
  padding: 24px 20px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat__value {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--green-dark);
  line-height: 1;
  margin-bottom: 10px;
}
.stat__label {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  min-height: 2.6em;
}
.stat__viz {
  width: 100%;
  height: 80px;
  margin-top: auto;
}
.stat__axis {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
  padding: 0 4px;
}
.stat__viz--donut {
  position: relative;
  width: 110px;
  height: 110px;
  margin-top: auto;
}
.stat__viz--donut svg { width: 100%; height: 100%; }
.stat__donut-label {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--green-dark);
}
.stat__viz--dots {
  width: 100%;
  height: 100px;
  margin-top: auto;
  background-image: radial-gradient(circle, var(--green) 2.5px, transparent 3px);
  background-size: 16px 16px;
  background-position: center;
  position: relative;
  -webkit-mask-image: linear-gradient(#000, #000);
}
.stat__viz--dots::after {
  content: '';
  position: absolute;
  bottom: 18px; right: 32px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green-soft);
  box-shadow: 16px 0 0 var(--green-soft);
}

.stats__note {
  text-align: center;
  margin: 28px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- WHY US ---------- */
.why { padding: 80px 0; }
.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature {
  background: var(--beige-light);
  border-radius: var(--radius-sm);
  padding: 32px 24px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.feature__icon {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.feature__icon svg { width: 100%; height: 100%; }
.feature__title {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.feature__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- PROCEDURES ---------- */
.procedures { padding: 40px 0 80px; }
.procedures__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.procedure {
  background: var(--beige-light);
  border-radius: var(--radius-sm);
  padding: 36px 28px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.procedure:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.procedure__icon {
  width: 88px; height: 88px;
  border-radius: 50%;
  border: 1px solid var(--green-tint);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.procedure__icon svg { width: 44px; height: 44px; }
.procedure__title {
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.procedure__text {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0 0 24px;
  flex-grow: 1;
}
.price-pill {
  display: inline-block;
  background: var(--beige);
  color: var(--green-dark);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.95rem;
}
.procedure__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 13px 24px;
  min-height: 44px;
  background: var(--green);
  color: var(--beige);
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.procedure__cta:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.procedure__cta span {
  transition: transform .2s ease;
}
.procedure__cta:hover span { transform: translateX(4px); }

/* ---------- PROCEDURES: полный каталог ---------- */
.procedures__full {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--beige-dark);
}
.procedures__full-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.procedures__full-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}
.procedures__categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.proc-cat {
  background: var(--beige-light);
  border-radius: var(--radius-sm);
  padding: 24px 22px;
}
.proc-cat__title {
  font-size: 1rem;
  color: var(--green-dark);
  margin-bottom: 12px;
  line-height: 1.35;
}
.proc-cat__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.proc-cat__list li {
  font-size: 0.92rem;
  color: var(--text);
  padding: 6px 0 6px 16px;
  position: relative;
  line-height: 1.45;
}
.proc-cat__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-tint);
}
.procedures__full-cta {
  text-align: center;
  margin: 32px 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.procedures__full-cta a {
  color: var(--green);
  border-bottom: 1px solid var(--green-tint);
  transition: color .2s ease, border-color .2s ease;
}
.procedures__full-cta a:hover {
  color: var(--green-dark);
  border-bottom-color: var(--green);
}
/* ---------- REVIEWS ---------- */
.reviews { padding: 60px 0 80px; }
.reviews__rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  margin: -20px auto 36px;
  max-width: 720px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.4;
  text-align: center;
}
.reviews__stars {
  color: #e3b341;
  letter-spacing: 2px;
  font-size: 1.05rem;
}
.reviews__score {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--green-dark);
  font-weight: 500;
}
.reviews__count a {
  color: var(--green);
  border-bottom: 1px solid var(--green-tint);
  transition: color .2s ease, border-color .2s ease;
}
.reviews__count a:hover {
  color: var(--green-dark);
  border-bottom-color: var(--green);
}
.reviews__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: var(--beige-light);
  color: var(--green-dark);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}
.slider {
  max-width: 820px;
  margin: 0 auto;
  /* [ФИКС] touch-action: pan-y разрешает только вертикальный скролл
     браузеру, отдавая горизонтальные свайпы нашему JS-слайдеру.
     Без этого на iOS Safari горизонтальный свайп может конфликтовать
     с pull-to-refresh / нативной прокруткой. */
  touch-action: pan-y;
}
.slider__viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.slider__track {
  display: flex;
  transition: transform .5s cubic-bezier(.4,.0,.2,1);
  will-change: transform;
}
.slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 0 4px;
}
.review {
  background: var(--beige-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  box-shadow: var(--shadow-soft);
}
.review__avatar {
  flex: 0 0 72px;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--green-tint);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: var(--green-dark);
  font-family: var(--serif);
  font-size: 1.6rem;
}
.review__avatar::before {
  content: attr(data-letter);
}
.review__avatar img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .3s ease;
}
.review__avatar img.is-loaded { opacity: 1; }
.review__body { flex: 1; min-width: 0; }
.review__text {
  margin: 0 0 18px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
}
.review__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.review__name { font-weight: 500; color: var(--green-dark); }
.review__service { font-size: 0.85rem; color: var(--text-muted); }
.review__stars { color: #e3b341; letter-spacing: 2px; font-size: 1rem; }
.review__source {
  display: inline-block;
  margin-top: 14px;
  padding: 12px 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-bottom: 1px dotted var(--green-tint);
  transition: color .2s ease, border-color .2s ease;
}
.review__source:hover {
  color: var(--green);
  border-bottom-color: var(--green);
  border-bottom-style: solid;
}

.reviews__more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 28px auto 0;
  padding: 10px 22px;
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green-tint);
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 500;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
  text-align: center;
}
.reviews__more-link:hover {
  background: var(--green);
  color: var(--beige);
  border-color: var(--green);
  transform: translateY(-2px);
}
.reviews .container { display: flex; flex-direction: column; align-items: center; }
.reviews__rating, .slider { width: 100%; }

.slider__dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}
.dot {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  position: relative;
  transition: background .2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dot::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green-soft);
  transition: background .2s ease, transform .2s ease;
}
.dot.is-active::before { background: var(--green); transform: scale(1.2); }
.slider__dots { gap: 0; }

/* ---------- FAQ ---------- */
.faq { padding: 40px 0 80px; }
.faq__list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq__item {
  background: var(--beige-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: box-shadow .25s ease;
}
.faq__item[open] { box-shadow: var(--shadow-hover); }
.faq__q {
  cursor: pointer;
  list-style: none;
  padding: 22px 56px 22px 24px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--green-dark);
  position: relative;
  line-height: 1.4;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: '+';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--green);
  transition: transform .25s ease;
  line-height: 1;
}
.faq__item[open] .faq__q::after { transform: translateY(-50%) rotate(45deg); }
.faq__a {
  padding: 0 24px 22px;
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.65;
}
.faq__a p { margin: 0; }

/* ---------- CTA ---------- */
.cta { padding: 40px 0 80px; }
.cta__box {
  background: var(--green);
  color: var(--beige);
  border-radius: var(--radius-lg);
  padding: 64px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta__box::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(245,239,228,.18), transparent 70%);
  pointer-events: none;
}
.cta__box::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(245,239,228,.10), transparent 70%);
  pointer-events: none;
}
.cta__title {
  color: var(--beige);
  font-size: 2.2rem;
  margin-bottom: 16px;
  position: relative;
}
.cta__text {
  color: rgba(245, 239, 228, 0.85);
  margin: 0 0 32px;
  font-size: 1.05rem;
  max-width: 540px;
  margin-left: auto; margin-right: auto;
  position: relative;
}
.cta .btn { position: relative; }

/* ---------- CONTACTS ---------- */
.contacts { padding: 40px 0 80px; }
.contacts__grid {
  display: grid;
  grid-template-columns: 4fr 6fr;
  gap: 32px;
}
.contact-card {
  background: var(--beige-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-soft);
}
.contact-card__row {
  padding: 16px 0;
  border-bottom: 1px solid var(--beige-dark);
}
.contact-card__row:last-of-type { border-bottom: none; }
.contact-card__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.contact-card__value { font-size: 1rem; color: var(--text); }
.contact-card__value a {
  color: var(--green-dark);
  transition: color .2s;
  display: inline-block;
  padding: 6px 0;
  min-height: 32px;
}
.contact-card__value a:hover { color: var(--green); }
@media (max-width: 768px) {
  .contact-card__value a { padding: 12px 0; min-height: 44px; }
}
.contact-card__hint {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.social {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: var(--beige);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.social svg { width: 22px; height: 22px; }
.social:hover {
  background: var(--beige);
  color: var(--green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 360px;
  box-shadow: var(--shadow-soft);
  background: var(--beige-light);
}
.map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
}
.map__link {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: var(--green);
  color: var(--beige);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 12px 18px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
  transition: background .2s ease, transform .2s ease;
}
.map__link:hover { background: var(--green-dark); transform: translateY(-2px); }

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--beige-dark);
  /* [ФИКС] safe-area inset снизу — на iPhone X+ в portrait под футером
     есть полоска home-indicator (~34px). Без этого нижний копирайт
     может оказаться частично под этой полоской. */
  padding: 48px 0 max(36px, env(safe-area-inset-bottom));
  margin-top: 24px;
}
.footer__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.footer__logo { width: 180px; height: auto; display: block; }
.footer__slogan {
  font-family: var(--serif);
  font-style: italic;
  color: var(--green-dark);
  font-size: 1.05rem;
  margin: 0;
}
.footer__copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer__link {
  color: var(--green);
  font-size: 0.9rem;
  padding: 12px 8px;
  display: inline-block;
  min-height: 44px;
  transition: color .2s;
}
.footer__link:hover { color: var(--green-dark); }

/* ---------- BOOKING MODAL ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity .25s ease, visibility .25s ease;
}
.modal.is-open {
  visibility: visible;
  opacity: 1;
}
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(21, 64, 40, 0.55);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}
.modal__panel {
  position: relative;
  background: var(--beige-light);
  border-radius: var(--radius-lg);
  padding: 40px 32px 32px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform .25s ease;
  /* [ФИКС] overscroll-behavior: contain — когда модалка прокручивается
     до конца, прокрутка не "протекает" на body под ней. На iOS Safari
     без этого после конца контента модалки начинала скроллиться сама
     страница, выглядит как баг. */
  overscroll-behavior: contain;
  /* [ФИКС] плавная инерционная прокрутка длинного контента модалки
     на iOS — без этого скролл "рваный". */
  -webkit-overflow-scrolling: touch;
  /* [ФИКС] safe-area для iPhone-чёлки в landscape — модалка не уходит
     под физический вырез экрана. */
  padding-left: max(32px, env(safe-area-inset-left));
  padding-right: max(32px, env(safe-area-inset-right));
}
.modal.is-open .modal__panel { transform: translateY(0); }

.modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, color .2s ease;
}
.modal__close:hover {
  background: var(--beige-dark);
  color: var(--text);
}

.modal__title {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--green-dark);
  margin: 0 0 8px;
  text-align: center;
}
.modal__intro {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 24px;
  font-size: 0.95rem;
}

.modal__option {
  display: block;
  position: relative;
  background: var(--beige);
  border: 1px solid var(--beige-dark);
  border-radius: var(--radius-sm);
  padding: 20px 56px 20px 24px;
  margin-bottom: 12px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.modal__option:last-child { margin-bottom: 0; }
.modal__option:hover {
  transform: translateY(-2px);
  border-color: var(--green-tint);
  box-shadow: var(--shadow-soft);
}
.modal__option-title {
  font-weight: 500;
  color: var(--green-dark);
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.modal__option-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.modal__option-arrow {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--green);
  font-size: 1.4rem;
  transition: transform .2s ease;
}
.modal__option:hover .modal__option-arrow { transform: translate(4px, -50%); }

@media (max-width: 480px) {
  .modal__panel { padding: 32px 20px 24px; }
  .modal__title { font-size: 1.35rem; }
  .modal__option { padding: 18px 48px 18px 18px; }
  .modal__option-arrow { right: 18px; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Tablet */
@media (max-width: 1024px) {
  .hero__title { font-size: 2.6rem; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid   { grid-template-columns: repeat(2, 1fr); }
  .nav__list { gap: 22px; }
  .container { padding: 0 20px; }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --header-h: 72px; }

  /* [ФИКС] backdrop-filter на .header создаёт containing block для fixed-
     потомков в современных браузерах (Chromium/Webkit). Из-за этого
     .nav с right:0 позиционировался по правому краю header, а не
     viewport — и в "закрытом" состоянии транформ translateX(100%)
     оставлял часть меню видимой справа. На мобиле блюр всё равно
     не виден из-за полного перекрытия меню — отключаем. */
  .header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav {
    position: fixed;
    top: 0; right: 0;
    width: 80%;
    max-width: 320px;
    /* [ФИКС] iOS 100vh-баг в мобильном меню: без dvh нижние пункты
       могут оказаться под адресной строкой Safari. */
    height: 100vh;
    height: 100dvh;
    background: var(--beige-light);
    box-shadow: -8px 0 32px rgba(31,93,58,0.12);
    transform: translateX(100%);
    transition: transform .3s ease;
    padding: calc(var(--header-h) + 24px) 28px 32px;
    z-index: 49;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list {
    flex-direction: column;
    gap: 4px;
  }
  .nav__link {
    display: block;
    padding: 14px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--beige-dark);
  }
  .nav__link::after { display: none; }
  .burger { display: flex; }

  .header__full-logo { height: 44px; }

  /* Mobile-аудит: подъём мелких шрифтов до читаемых на телефонах (≥14px) */
  .contact-card__label { font-size: 0.875rem; }      /* 14px */
  .contact-card__hint  { font-size: 0.9rem;  }       /* 14.4px */
  .review__service     { font-size: 0.875rem; }      /* 14px */
  .review__source      { font-size: 0.875rem; }      /* 14px */
  .map__link           { font-size: 0.9rem; padding: 9px 18px; }
  .stats__note         { font-size: 0.9rem; }
  .reviews__badge      { font-size: 0.9rem; padding: 6px 14px; }

  .hero { padding: 32px 0 48px; }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero__media { order: -1; }
  .hero__title { font-size: 2.1rem; text-align: left; }
  .hero__subtitle { font-size: 1rem; }
  .hero .btn { width: 100%; }

  .stats { padding: 16px 0 48px; }
  .stats__card { padding: 32px 20px 24px; }
  .stats__title { font-size: 1.4rem; }

  .why { padding: 48px 0; }
  .procedures { padding: 24px 0 48px; }
  .procedures__grid { grid-template-columns: 1fr; }

  .reviews { padding: 32px 0 48px; }
  .review {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 22px;
    gap: 18px;
  }
  .review__meta { justify-content: center; }

  .cta { padding: 24px 0 48px; }
  .cta__box { padding: 48px 24px; }
  .cta__title { font-size: 1.6rem; }
  .cta .btn { width: 100%; }

  .contacts { padding: 24px 0 48px; }
  .contacts__grid { grid-template-columns: 1fr; gap: 20px; }
  .contact-card { padding: 28px 22px; }
  .map, .map iframe { min-height: 280px; }

  .section-title { font-size: 1.6rem; margin-bottom: 28px; }
}

/* Small phones */
@media (max-width: 380px) {
  .hero__title { font-size: 1.75rem; }
  .stat__value { font-size: 2rem; }
  .stats__grid { gap: 12px; }
  .stat { padding: 18px 12px 16px; }
  .container { padding: 0 16px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* Декоративные листья (по умолчанию скрыты — включаются на десктопе) */
.hero__leaf {
  display: none;
  position: absolute;
  pointer-events: none;
  color: var(--green-tint);
  opacity: 0.35;
  filter: blur(0.5px);
  z-index: 0;
}

/* =========================================================
   DESKTOP (≥ 1024px)
   ========================================================= */
@media (min-width: 1024px) {

  .container { max-width: 1280px; padding: 0 32px; }

  /* ---------- HEADER ---------- */
  /* Меню прижато к правому краю (CTA-кнопка убрана по требованию) */
  .nav { margin-left: auto; }
  .nav__list { gap: 40px; }
  .nav__link { font-size: 0.95rem; padding: 8px 0; }
  .nav__link::after { height: 2px; }

  /* ---------- HERO ---------- */
  .hero {
    position: relative;
    padding: 0;
    overflow: hidden;
  }
  .hero__inner {
    max-width: none;
    width: 100%;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    min-height: 720px;
    position: relative;
    z-index: 1;
  }
  .hero__text {
    padding: 72px clamp(24px, 4vw, 64px) 72px clamp(40px, 5vw, 80px);
    align-self: start;
  }
  .hero__title {
    font-size: clamp(6.8rem, 10vw, 10.4rem);
    line-height: 1.02;
    letter-spacing: -2px;
    margin-bottom: 32px;
  }
  .hero__subtitle {
    font-size: 1.25rem;
    line-height: 1.5;
    max-width: 420px;
    margin-bottom: 48px;
  }
  .hero__text .btn { padding: 18px 32px; font-size: 1rem; }

  .hero__media {
    position: relative;
    height: 100%;
  }
  .hero__photo {
    aspect-ratio: auto;
    height: 100%;
    min-height: 720px;
    border-radius: 0;
    /* Низ фото плавно растворяется в фон страницы */
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 65%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0%, #000 65%, transparent 100%);
  }
  /* Сдвигаем кадр вверх — верх головы уходит за край hero (как в макете) */
  .hero__photo img { object-position: center 28%; }

  /* Листья видны и расположены слева */
  .hero__leaf { display: block; }
  .hero__leaf--top {
    width: 360px; height: 432px;
    top: -60px; left: -90px;
    transform: rotate(-18deg);
  }
  .hero__leaf--bottom {
    width: 320px; height: 384px;
    bottom: -110px; left: -60px;
    transform: rotate(28deg);
    opacity: 0.28;
  }
  .hero__leaf--right {
    width: 340px; height: 408px;
    top: -90px; right: -90px;
    transform: rotate(160deg);
    opacity: 0.32;
    z-index: 2;
    color: var(--green-tint);
  }

  /* ---------- STATS — лёгкий "тач" к низу hero-фото без перекрытия заголовка ---------- */
  .stats {
    padding: 0 0 100px;
    margin-top: clamp(-40px, -2.5vw, -15px);
    position: relative;
    z-index: 5;
  }
  .stats__card { padding: 56px 48px 44px; }
  .stats__title { font-size: 2rem; margin-bottom: 40px; }
  .stats__grid { gap: 22px; }
  .stat {
    padding: 32px 26px 26px;
    min-width: 0;
    min-height: 260px;
  }
  .stat__value { font-size: 2.8rem; margin-bottom: 14px; }
  .stat__label { font-size: 0.95rem; min-height: 2.6em; margin-bottom: 22px; }
  .stat__viz { height: 100px; }
  .stat__viz--donut { width: 130px; height: 130px; }
  .stat__donut-label { font-size: 1.4rem; }
  .stat__viz--dots { height: 120px; background-size: 18px 18px; }

  /* ---------- WHY US ---------- */
  .why { padding: 100px 0; }

  /* ---------- PROCEDURES — 3 колонки, вертикальные карточки (как в макете) ---------- */
  .procedures { padding: 60px 0 100px; }
  .procedures__grid { gap: 28px; }
  .procedure { padding: 40px 32px 36px; }
  .procedure__icon { width: 96px; height: 96px; margin-bottom: 26px; }
  .procedure__icon svg { width: 46px; height: 46px; }
  .procedure__title { font-size: 1.25rem; margin-bottom: 14px; }
  .procedure__text { font-size: 0.95rem; margin-bottom: 28px; }

  /* ---------- REVIEWS ---------- */
  .reviews { padding: 80px 0 100px; }
  .slider { max-width: 920px; }
  .review { padding: 40px 48px; gap: 32px; }
  .review__avatar { flex-basis: 88px; width: 88px; height: 88px; font-size: 1.8rem; }
  .review__text { font-size: 1.05rem; }

  /* ---------- CTA ---------- */
  .cta__box { padding: 80px 32px; }
  .cta__box > * { max-width: 720px; margin-left: auto; margin-right: auto; }
  .cta__title { font-size: 2.4rem; }

  /* ---------- CONTACTS ---------- */
  .contacts { padding: 60px 0 100px; }
  .map, .map iframe { min-height: 440px; }
}

