/* ============================================================
   ASYLBOTA.KZ — Stylesheet
   Colors: green #7fb756, teal #46e3ac, coral #f57b5c, dark #111
   Font: Nunito
   ============================================================ */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background:
    radial-gradient(900px 600px at 85% -5%, rgba(70, 227, 172, .10), transparent 60%),
    radial-gradient(800px 600px at -10% 30%, rgba(127, 183, 86, .08), transparent 60%),
    radial-gradient(700px 500px at 110% 70%, rgba(245, 123, 92, .07), transparent 60%),
    #fdfefd;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }
::selection { background: rgba(127, 183, 86, .25); }

/* --- CSS Variables --- */
:root {
  --green: #7fb756;
  --teal: #46e3ac;
  --coral: #f57b5c;
  --dark: #111111;
  --gray-light: #f5f5f5;
  --gray-mid: #888;
  --radius: 30px;
  --container: 1200px;
  --header-h: 80px;
  --glass-bg: rgba(255, 255, 255, .72);
  --glass-border: rgba(255, 255, 255, .55);
  --glass-shadow: 0 8px 32px rgba(17, 34, 17, .10);
  --card-border: rgba(17, 34, 17, .06);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --green-ink: #4f7d2f;
}

/* --- Utility --- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 96px 0; scroll-margin-top: 110px; }
.section--coral { background: var(--coral); }
.section--dark { background: var(--dark); color: #fff; }
.section--gray { background: transparent; }

.section__title {
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 800;
  text-align: center;
  letter-spacing: .02em;
  margin-bottom: 60px;
  text-transform: uppercase;
}
.section__subtitle {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  margin-top: -40px;
  margin-bottom: 60px;
  color: var(--gray-mid);
}
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .section__title { margin-bottom: 36px; }
  .section__subtitle { margin-top: -20px; margin-bottom: 36px; }
}

/* Типографика: ровные переносы строк, без висячих одиночных слов */
h1, h2, h3, .section__title, .service-card__title, .about-intro__title { text-wrap: balance; }
p, .section__subtitle, .service-card__descr, .feature-item__descr, .news-item__descr { text-wrap: pretty; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), opacity .2s;
  border: none;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--green {
  background: linear-gradient(135deg, var(--green), #8fc868 55%, var(--teal) 140%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(127, 183, 86, .38), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn--green:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(127, 183, 86, .48), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn--teal {
  background: linear-gradient(135deg, var(--teal), #5fe9b8);
  color: #fff;
  box-shadow: 0 10px 28px rgba(70, 227, 172, .35), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn--teal:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(70, 227, 172, .45), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn--outline {
  background: transparent;
  color: #333;
  border: 1px solid #333;
}
.btn--outline:hover { background: #333; color: #fff; }
.btn--white { background: #fff; color: #333; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 28px));
  height: 64px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  box-shadow: 0 6px 28px rgba(17, 34, 17, .08);
  z-index: 100;
  transition: box-shadow .4s var(--ease-out), background .4s var(--ease-out), top .4s var(--ease-out);
}
.site-header.pr-scrolled {
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 10px 40px rgba(17, 34, 17, .14);
  top: 10px;
}
.site-header__inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 32px;
  padding: 0 28px;
}
.site-header__logo img { width: 132px; height: auto; }
.site-nav { flex: 1; display: flex; justify-content: center; }
.site-nav__list { display: flex; gap: 30px; align-items: center; }
.site-nav__item a {
  position: relative;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  padding: 6px 2px;
  transition: color .2s;
}
.site-nav__item a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green), var(--teal));
  transition: right .35s var(--ease-out);
}
.site-nav__item a:hover,
.site-nav__item a.active { color: var(--green); }
.site-nav__item a:hover::after,
.site-nav__item a.active::after { right: 0; }
.site-header__right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.site-header__phone { font-weight: 700; font-size: 15px; color: #333; white-space: nowrap; }
.site-header__instagram { display: flex; align-items: center; }
.site-header__instagram svg { display: block; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  margin-left: auto;
}
.burger span { display: block; width: 24px; height: 2px; background: #333; border-radius: 2px; transition: transform .3s var(--ease-out), opacity .2s; transform-origin: center; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0; right: 0; bottom: 0;
  background: rgba(253, 254, 253, .82);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
  z-index: 99;
  padding: 104px 24px 24px;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav__list { display: flex; flex-direction: column; }
.mobile-nav__item a {
  display: block;
  padding: 14px 0;
  font-size: 18px;
  font-weight: 700;
  border-bottom: 1px solid rgba(17, 34, 17, .08);
  color: #333;
}
.mobile-nav__phone { margin-top: 24px; font-size: 20px; font-weight: 800; color: var(--green); }

@media (max-width: 860px) {
  .site-nav { display: none; }
  .burger { display: flex; }
  .site-header__phone { display: none; }
  .site-header__instagram { display: none; }
}

/* отступ под фиксированный хедер на страницах без hero */
body:not(:has(.hero)) { padding-top: 94px; }
@media (max-width: 640px) {
  body:not(:has(.hero)) { padding-top: 86px; }
}

/* тонкий прогресс-бар прокрутки */
.pr-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--green), var(--teal));
  z-index: 2000;
  border-radius: 0 3px 3px 0;
  pointer-events: none;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: auto;
  min-height: min(92vh, 880px);
  padding: 140px 0 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.12);
  will-change: transform;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 420px at 18% 88%, rgba(127, 183, 86, .38), transparent 65%),
    linear-gradient(180deg, rgba(8, 20, 12, .42) 0%, rgba(8, 20, 12, .62) 55%, rgba(8, 20, 12, .82) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  max-width: 880px;
  padding: 52px 48px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 32px;
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.hero__title {
  font-size: clamp(25px, 3.6vw, 42px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.015em;
  margin-bottom: 20px;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
  animation: pr-up .9s var(--ease-out) .05s both;
}
.hero__descr {
  font-size: clamp(15px, 2vw, 20px);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, .88);
  text-wrap: pretty;
  animation: pr-up .9s var(--ease-out) .2s both;
}
.hero .btn { animation: pr-up .9s var(--ease-out) .35s both; }

@keyframes pr-up {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
@media (max-width: 640px) {
  .hero { min-height: 86vh; padding: 120px 0 120px; }
  .hero__content { padding: 32px 22px; border-radius: 24px; width: calc(100% - 28px); margin: 0 14px; }
}

/* ============================================================
   ПОЧЕМУ МЫ — стеклянная плита
   ============================================================ */
.section:has(.features-grid) {
  position: relative;
  z-index: 2;
  padding-top: 0;
  margin-top: -64px;
}
.section:has(.features-grid) .container {
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  box-shadow: var(--glass-shadow);
  padding: 64px 56px 56px;
}
.section:has(.features-grid) .section__title { margin-bottom: 48px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 100%;
  margin: 0 auto;
}
.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--card-border);
  background: #fff;
  min-width: 0;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s;
}
.feature-item > div { min-width: 0; }
.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(17, 34, 17, .10);
  border-color: rgba(127, 183, 86, .35);
}
.feature-item__icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(127, 183, 86, .14), rgba(70, 227, 172, .14));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-item__icon img { width: 34px; height: 34px; object-fit: contain; }
.feature-item__title { font-size: 16px; font-weight: 700; margin-bottom: 4px; overflow-wrap: break-word; }
.feature-item__descr { font-size: 14px; color: #555; line-height: 1.5; overflow-wrap: break-word; }
.features__btn-wrap { text-align: center; margin-top: 48px; }

@media (max-width: 860px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .section:has(.features-grid) { margin-top: -40px; }
  .section:has(.features-grid) .container { padding: 36px 22px 32px; border-radius: 24px; }
}
@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ВИДЕО
   ============================================================ */
.video-section { background: transparent; padding: 48px 0; }
.video-section .video-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  background:
    radial-gradient(600px 300px at 90% -20%, rgba(255, 255, 255, .25), transparent 60%),
    linear-gradient(135deg, var(--coral), #f78f74);
  border-radius: 36px;
  padding: 56px;
  box-shadow: 0 30px 70px rgba(245, 123, 92, .35);
}
.video-wrap .yt-placeholder,
.video-wrap iframe { border-radius: 20px !important; box-shadow: 0 18px 50px rgba(0, 0, 0, .30); }
.video-wrap iframe { width: 100%; height: 540px; border: none; display: block; }
@media (max-width: 768px) {
  .video-section .video-wrap { padding: 20px; border-radius: 24px; }
}
@media (max-width: 640px) {
  .video-wrap iframe { height: 220px; }
}

/* ============================================================
   УСЛУГИ — full-image карточки
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  align-items: stretch;
}
.service-card {
  position: relative;
  display: block;
  height: 500px;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 14px 40px rgba(17, 34, 17, .12);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 38px 80px rgba(17, 34, 17, .22);
}
.service-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .8s var(--ease-out);
}
.service-card:hover .service-card__bg { transform: scale(1.07); }
.service-card__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 20, 12, .55) 0%, rgba(8, 20, 12, .10) 45%, transparent 70%);
  transition: background .5s;
  pointer-events: none;
}
.service-card__fab {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 2;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: all .4s var(--ease-out);
}
.service-card:hover .service-card__fab {
  background: linear-gradient(135deg, var(--green), var(--teal));
  border-color: transparent;
  transform: rotate(45deg) scale(1.08);
  box-shadow: 0 10px 26px rgba(127, 183, 86, .45);
}
.service-card__panel {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 1;
  padding: 20px 20px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(255, 255, 255, .65);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 12px 36px rgba(8, 20, 12, .18);
  transition: background .4s;
}
.service-card__title {
  font-size: 14.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  line-height: 1.35;
  color: #1f2a1f;
  margin-bottom: 10px;
}
.service-card__descr {
  font-size: 13.5px;
  line-height: 1.55;
  color: #4a544a;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  transition: max-height .55s var(--ease-out), opacity .45s var(--ease-out), margin .45s var(--ease-out);
}
.service-card:hover .service-card__descr,
.service-card:focus-visible .service-card__descr { max-height: 220px; opacity: 1; margin-bottom: 12px; }
.service-card__price {
  display: inline-block;
  background: linear-gradient(135deg, rgba(127,183,86,.16), rgba(70,227,172,.14));
  border: 1px solid rgba(127,183,86,.30);
  color: var(--green-ink);
  border-radius: 12px;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 12px;
}
.service-card__more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--green-ink);
}
.service-card__more::after { content: "→"; transition: transform .3s var(--ease-out); }
.service-card:hover .service-card__more::after { transform: translateX(5px); }

@media (hover: none) {
  .service-card__descr { max-height: none; opacity: 1; margin-bottom: 12px; }
}
@media (max-width: 1024px) {
  .services-grid { gap: 20px; }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card { height: auto; }
  .service-card__bg { height: 240px; bottom: auto; }
  .service-card__veil { height: 240px; bottom: auto; }
  .service-card__panel { position: relative; left: 0; right: 0; bottom: 0; margin: 216px 12px 12px; }
  .service-card__descr { max-height: none; opacity: 1; margin-bottom: 12px; }
}

/* ============================================================
   О КЛИНИКЕ
   ============================================================ */
.about-green {
  display: block;
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  border-radius: 40px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 40px 90px rgba(17, 34, 17, .25);
  user-select: text;
  -webkit-user-select: text;
}
.about-green__photo {
  position: absolute;
  inset: 0;
  min-height: 0;
  background-size: cover;
  background-position: left 30%;
}
.about-green__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(280deg, rgba(8, 20, 12, .42) 0%, rgba(8, 20, 12, .10) 55%, transparent 75%);
  pointer-events: none;
}
.about-green__text {
  position: relative;
  z-index: 1;
  width: min(620px, calc(100% - 48px));
  margin: 56px;
  padding: 48px 44px;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(160deg, rgba(86, 134, 51, .82), rgba(62, 105, 36, .86));
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 30px 70px rgba(8, 20, 12, .35), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.about-green__title { font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.01em; margin-bottom: 18px; }
.about-green__lead { font-size: 17px; font-weight: 700; margin-bottom: 18px; }
.about-green__text p { font-size: 15px; line-height: 1.75; margin-bottom: 14px; }
.about-green__quote {
  position: relative;
  margin-top: 20px;
  padding: 18px 22px 18px 54px;
  font-size: 16px;
  font-weight: 700;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 16px;
}
.about-green__quote::before {
  content: "\201C";
  position: absolute;
  left: 16px; top: 0;
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  color: rgba(255, 255, 255, .5);
}
/* < 1024px: картинка сверху полностью, зелёный блок снизу */
@media (max-width: 1024px) {
  .about-green {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(17, 34, 17, .18);
    width: calc(100% - 24px);
    border-radius: 28px;
    background: none;
  }
  .about-green__photo {
    position: relative;
    inset: auto;
    width: 100%;
    /* полное фото без обрезки */
    aspect-ratio: 4/3;
    min-height: unset;
    border-radius: 0;
    overflow: hidden;
  }
  .about-green__photo::after {
    background: linear-gradient(180deg, transparent 60%, rgba(8, 20, 12, .12));
  }
  .about-green__text {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 36px 32px;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: linear-gradient(160deg, #56863a, #3e6924);
    box-shadow: none;
  }
}
@media (max-width: 600px) {
  .about-green { width: 100%; border-radius: 0; box-shadow: none; }
  .about-green__photo { aspect-ratio: 3/2; }
  .about-green__text { padding: 28px 20px; }
}

/* ============================================================
   КОМАНДА
   ============================================================ */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
}
.team-grid .team-card { width: min(290px, 100%); }
.team-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 12px 12px 18px;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
  text-align: left;
}
.team-card:hover { transform: translateY(-8px); box-shadow: 0 28px 60px rgba(17, 34, 17, .13); }
.team-card__photo {
  width: 100%;
  padding-top: 100%;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--gray-light);
}
.team-card__photo-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  transition: transform .6s var(--ease-out);
}
.team-card:hover .team-card__photo-bg { transform: scale(1.05); }
.team-card__name { font-size: 15px; font-weight: 700; line-height: 1.4; margin-bottom: 4px; padding: 0 6px; min-height: 2.8em; }
.team-card__name a { color: #333; }
.team-card__name a:hover { color: var(--green); }
.team-card__exp { font-size: 13px; font-weight: 600; color: var(--green); line-height: 1.4; margin-bottom: 4px; padding: 0 6px; }
.team-card__role { font-size: 13px; color: var(--gray-mid); line-height: 1.4; padding: 0 6px; }
.team-card--link { display: block; cursor: pointer; }
.team-card--link .team-card__name { transition: color .25s; }
.team-card--link:hover .team-card__name { color: var(--green-ink); }

/* ============================================================
   СЕРТИФИКАТЫ СЛАЙДЕР
   ============================================================ */
.gallery-slider {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  padding: 8px 0;
}
.gallery-slider__track { display: flex; gap: 16px; transition: transform .4s ease; }
/* вертикальный скролл страницы проходит нативно сквозь слайдеры (горизонт. свайп ловит JS) */
.gallery-slider__track, .mp-reviews-track, .reviews-track { touch-action: pan-y; }
.gallery-slider__item {
  flex-shrink: 0;
  width: calc((100% - 48px) / 4);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--card-border);
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 34, 17, .07);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.gallery-slider__item:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(17, 34, 17, .14); }
.gallery-slider__item img {
  width: 100%;
  aspect-ratio: 8 / 11;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.gallery-slider__item:hover img { transform: scale(1.03); }
.slider-controls { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }
.slider-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  color: var(--dark);
  -webkit-appearance: none;
  appearance: none;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(17, 34, 17, .08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s var(--ease-out);
}
.slider-btn:hover {
  background: linear-gradient(135deg, var(--green), #8fc868);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(127, 183, 86, .35);
}
.slider-btn svg { display: block; }

@media (max-width: 860px) {
  .gallery-slider__item { width: calc((100% - 16px) / 2); }
}
@media (max-width: 480px) {
  .gallery-slider__item { width: 100%; }
  .gallery-slider { -webkit-mask-image: none; mask-image: none; }
}

/* lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox__img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 4px; }
.lightbox__close {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}
.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }
.lightbox__prev:hover,
.lightbox__next:hover { background: rgba(255,255,255,.3); }

/* ============================================================
   НОВОСТИ
   ============================================================ */
.news-list {
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.news-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 12px 12px 22px;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.news-item:hover { transform: translateY(-8px); box-shadow: 0 28px 60px rgba(17, 34, 17, .12); }
.news-item__img { border-radius: 16px; display: block; overflow: hidden; }
.news-item__img img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.news-item__img:hover img { transform: scale(1.05); }
.news-item__body { padding: 18px 10px 0; display: flex; flex-direction: column; flex: 1; }
.news-item__title { font-size: 16px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.news-item__title a { color: #2a2a2a; }
.news-item__title a:hover { color: var(--green); }
.news-item__descr { color: #666; line-height: 1.6; margin-bottom: 10px; font-size: 14px; flex: 1; }
.news-item__date {
  display: inline-block;
  margin-top: 4px;
  color: var(--green-ink);
  background: rgba(127, 183, 86, .10);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  letter-spacing: .04em;
  align-self: flex-start;
}
.stretched-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }

@media (max-width: 900px) {
  .news-list { grid-template-columns: 1fr; }
  .news-item { flex-direction: row; gap: 16px; padding: 12px; align-items: center; }
  .news-item__img { flex-shrink: 0; width: 150px; }
  .news-item__img img { height: 110px; }
  .news-item__body { padding: 4px 6px 4px 0; }
}
@media (max-width: 560px) {
  .news-item { flex-direction: column; align-items: stretch; }
  .news-item__img { width: 100%; }
  .news-item__img img { height: 180px; }
}

/* ============================================================
   КОНТАКТЫ
   ============================================================ */
.contacts-section .section__subtitle { margin-bottom: 8px; }
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  max-width: 1000px;
  margin: 40px auto 0;
}
.contacts-info__phone,
.contacts-info__mail {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #2a2a2a;
  letter-spacing: -.01em;
  width: fit-content;
  background: linear-gradient(120deg, #2a2a2a, #2a2a2a);
  -webkit-background-clip: text;
  background-clip: text;
  transition: color .3s;
}
.contacts-info__phone { margin-bottom: 6px; }
.contacts-info__mail { margin-bottom: 24px; }
.contacts-info__phone:hover,
.contacts-info__mail:hover {
  background: linear-gradient(120deg, var(--green), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.contacts-info__addr { color: #555; line-height: 1.7; margin-bottom: 22px; }
.contacts-info__socials { display: flex; gap: 12px; }
.contacts-info__socials a {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #1c241c;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s var(--ease-out);
}
.contacts-info__socials a:hover {
  background: linear-gradient(135deg, var(--green), var(--teal));
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(127, 183, 86, .35);
}

.contacts-form-wrap {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  box-shadow: var(--glass-shadow);
  padding: 32px;
}
.contacts-form-wrap .form-group { margin-bottom: 18px; }
.contacts-form-wrap .form-group:last-of-type { margin-bottom: 22px; }
.contacts-form-wrap input,
.contacts-form-wrap textarea {
  width: 100%;
  padding: 12px 18px;
  border: 1px solid rgba(17, 34, 17, .10);
  border-radius: 16px;
  font-size: 15px;
  background: #fff;
  transition: border-color .25s, box-shadow .25s;
}
.contacts-form-wrap input:focus,
.contacts-form-wrap textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(127, 183, 86, .16);
}
.contacts-form-wrap textarea { resize: vertical; min-height: 120px; }
.contacts-form-wrap .btn { width: 100%; }

@media (max-width: 768px) {
  .contacts-grid { grid-template-columns: 1fr; gap: 32px; }
  .contacts-form-wrap { padding: 22px; border-radius: 22px; }
  .contacts-section .section__title,
  .contacts-section .section__subtitle { text-align: left; }
}

/* ============================================================
   ОТЗЫВЫ
   ============================================================ */
.reviews-slider { position: relative; overflow: hidden; }
.reviews-track { display: flex; gap: 24px; transition: transform .4s ease; }
.review-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 28px 24px;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
}
.reviews-slider .review-card {
  flex-shrink: 0;
  width: calc((100% - 48px) / 3);
}
.review-card__photo { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; margin-bottom: 12px; }
.review-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.review-card__header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.review-card__avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.review-card__name { font-weight: 700; font-size: 15px; display: block; margin-bottom: 4px; }
.review-card__date { font-size: 12px; color: var(--gray-mid); margin-bottom: 12px; }
.review-card__service { font-size: 13px; color: var(--green); margin-top: 3px; }
.review-card__text { font-size: 14px; line-height: 1.75; color: #555; margin: 0; font-style: italic; }

/* --- Карусель отзывов о микрополяризации (картинка слева, текст справа) --- */
.mp-reviews-section { background: #ed6f3b; }
.mp-reviews__title { color: #fff; }
.mp-reviews { position: relative; max-width: 1000px; margin: 0 auto; }
.mp-reviews-slider {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
}
.mp-reviews-track { display: flex; gap: 0; transition: transform .4s ease; }
.mp-review {
  flex: 0 0 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(280px, 42%) 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px;
}
.mp-review__img { border-radius: 14px; overflow: hidden; }
.mp-review__img img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
}
.mp-review__text {
  font-size: 17px;
  line-height: 1.7;
  color: #444;
  margin: 0 0 18px;
  font-style: italic;
}
.mp-review__author { font-weight: 800; font-size: 18px; color: var(--green); }
.mp-review__service { font-size: 14px; color: var(--gray-mid); margin-top: 4px; }

@media (max-width: 860px) {
  .mp-review {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }
  .mp-review__img img { max-height: 320px; }
  .mp-review__text { font-size: 15px; }
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.review-card--full { width: 100%; padding: 28px; }

.reviews-screenshots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.reviews-screenshots img { width: 100%; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.1); }

@media (max-width: 860px) {
  .reviews-slider .review-card { width: calc((100% - 24px) / 2); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-screenshots { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .reviews-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .reviews-screenshots { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .reviews-slider .review-card { width: 85vw; }
}

/* ============================================================
   PAGE HERO (внутренние страницы)
   ============================================================ */
.page-hero { background: var(--green); padding: 60px 0 50px; color: #fff; }
.page-hero--dark { background: var(--dark); }
.page-hero__title { font-size: clamp(24px, 4vw, 42px); font-weight: 800; margin-bottom: 12px; line-height: 1.2; }
.page-hero__sub { font-size: 17px; opacity: .9; max-width: 640px; }

/* ============================================================
   КОНТЕНТ / ТЕКСТ
   ============================================================ */
.content-block { padding: 60px 0; }
.content-block p { font-size: 16px; line-height: 1.8; color: #444; margin-bottom: 16px; max-width: 800px; }
.content-block h2 { font-size: clamp(18px, 2.5vw, 26px); font-weight: 800; margin-bottom: 20px; margin-top: 32px; }
.content-block h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; margin-top: 24px; }
.content-block ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; }
.content-block ul li { font-size: 15px; line-height: 1.7; color: #444; }
.content-block strong { color: #222; }

/* Маркированные/нумерованные списки в текстовом контенте (статьи, новости).
   Нужны, т.к. глобальный reset убирает list-style у всех ul/ol. */
.prose-list { padding-left: 24px; margin: 0 0 16px; }
.prose-list li { font-size: 16px; line-height: 1.8; color: #444; margin-bottom: 6px; }
.prose-list li::marker { color: var(--green); }
.prose-list--bullet { list-style: disc; }
.prose-list--number { list-style: decimal; }
.prose-list--number li::marker { font-weight: 700; }
.prose-list strong { color: #222; }

/* узкий контент (страницы услуг) */
.content-narrow { max-width: 760px; margin: 0 auto; }
.content-narrow p { font-size: 16px; line-height: 1.75; color: #444; margin-bottom: 16px; }
.content-narrow h3 { font-size: clamp(19px, 2.2vw, 24px); font-weight: 800; margin: 34px 0 16px; }

/* Checklist */
.checklist, .check-list {
  list-style: none;
  margin: 24px auto 0;
  padding: 0;
  max-width: 900px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
}
.checklist__item,
.check-list li {
  position: relative;
  padding-left: 34px;
  font-size: 16px;
  line-height: 1.55;
  color: #444;
  display: block;
}
.checklist__item::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path d="M2 6.2 5 9l5-6" stroke="white" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/12px no-repeat;
}
.check-list--contra li::before { background-color: var(--coral); }

@media (max-width: 640px) {
  .checklist, .check-list { grid-template-columns: 1fr; }
}

/* 2-column layout */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.two-col--img-left .two-col__img { order: -1; }
.two-col__img img { width: 100%; height: 420px; object-fit: cover; border-radius: 16px; }
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .two-col__img img { height: 260px; }
}

/* Цена блок */
.price-box { background: var(--gray-light); border-radius: 20px; padding: 32px; margin: 32px 0; max-width: 500px; }
.price-box__label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-mid); margin-bottom: 8px; }
.price-box__price { font-size: clamp(24px, 4vw, 36px); font-weight: 800; color: var(--green); margin-bottom: 6px; }
.price-box__note { font-size: 14px; color: #666; }

/* BAK price box */
.bak-price {
  background: var(--glass-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: var(--glass-shadow);
}
.bak-price__label { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #999; margin-bottom: 10px; font-weight: 700; }
.bak-price__row { font-size: 17px; color: #444; padding: 6px 0; }
.bak-price__row + .bak-price__row { border-top: 1px dashed rgba(17, 34, 17, .12); }
.bak-price__row strong { color: var(--green-ink); font-size: 20px; font-weight: 800; }

.bak-facts { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 20px; }
.bak-fact { font-size: 16px; color: #444; }
.bak-fact__label { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #999; font-weight: 700; margin-bottom: 2px; }

.bak-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 26px; }
.bak-photos img { width: 100%; height: 380px; object-fit: cover; border-radius: 24px; display: block; box-shadow: var(--glass-shadow); }
@media (max-width: 700px) {
  .bak-photos { grid-template-columns: 1fr; }
  .bak-photos img { height: 260px; }
}

.bak-infographic { margin: 44px auto 0; max-width: 980px; }
.bak-infographic img { width: 100%; display: block; border-radius: 24px; box-shadow: var(--glass-shadow); }

.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 1000px; margin: 0 auto; }
@media (max-width: 700px) {
  .video-grid { grid-template-columns: 1fr; }
}

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #e0e0e0; }
.faq-item:first-child { border-top: 1px solid #e0e0e0; }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  color: #222;
}
.faq-question__icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s;
}
.faq-question__icon svg { display: block; }
.faq-item.open .faq-question__icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .2s; }
.faq-item.open .faq-answer { max-height: 1000px; }
.faq-answer__inner { padding: 0 0 20px; font-size: 15px; line-height: 1.7; color: #555; }

/* Procedure steps */
.procedure-steps { list-style: none; display: flex; flex-direction: column; gap: 20px; padding: 0; margin: 0; }
.procedure-step { display: flex; align-items: flex-start; gap: 16px; background: #f7f8fa; border-radius: 12px; padding: 20px 24px; }
.procedure-step__num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.procedure-step p, .procedure-step div { line-height: 1.6; }
@media (max-width: 480px) { .procedure-step { padding: 16px; } }

/* Specialist facts */
.specialist-facts { list-style: none; display: flex; flex-direction: column; gap: 8px; padding: 0; }
.specialist-facts li { font-size: 15px; color: #444; line-height: 1.6; }

/* ============================================================
   POPUP
   ============================================================ */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 20, 12, .45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.popup-overlay.open { display: flex; }
.popup {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .35);
  padding: 48px 40px;
  max-width: 480px;
  width: 100%;
  position: relative;
}
.popup__close { position: absolute; top: 16px; right: 20px; background: none; border: none; font-size: 28px; cursor: pointer; color: #999; line-height: 1; }
.popup__close:hover { color: #333; }
.popup__title { font-size: 24px; font-weight: 800; margin-bottom: 8px; text-align: center; }
.popup__sub { font-size: 14px; color: #777; text-align: center; margin-bottom: 28px; }
.popup .form-group { margin-bottom: 14px; }
.popup input { width: 100%; padding: 13px 18px; border: 1px solid #ddd; border-radius: 16px; font-size: 15px; transition: border-color .2s; }
.popup input:focus { outline: none; border-color: var(--green); }
.popup .btn { width: 100%; margin-top: 8px; }
@media (max-width: 480px) { .popup { padding: 32px 20px; } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark);
  color: #fff;
  padding: 48px 0 24px;
  border-radius: 32px 32px 0 0;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(127, 183, 86, .12), transparent 60%),
    radial-gradient(500px 300px at 5% 100%, rgba(70, 227, 172, .08), transparent 60%);
  pointer-events: none;
}
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-col__title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #888; margin-bottom: 16px; }
.footer-col__logo img { width: 140px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-col__desc { font-size: 13px; color: #888; line-height: 1.7; }
.footer-nav a { display: block; font-size: 14px; color: #ccc; padding: 4px 0; transition: color .2s; }
.footer-nav a:hover { color: var(--green); }
.footer-subscribe__form { display: flex; border-radius: 14px; overflow: hidden; background: #222; }
.footer-subscribe__input { flex: 1; background: transparent; border: none; padding: 12px 16px; color: #fff; font-size: 14px; border-radius: 14px 0 0 14px; }
.footer-subscribe__input::placeholder { color: #666; }
.footer-subscribe__input:focus { outline: none; }
.footer-subscribe__btn { background: var(--green); border: none; padding: 12px 16px; cursor: pointer; display: flex; align-items: center; transition: opacity .2s; border-radius: 0 14px 14px 0; }
.footer-subscribe__btn:hover { opacity: .85; }
.footer-subscribe__btn svg { display: block; }
.footer-subscribe__label { font-size: 12px; color: #666; margin-top: 8px; }
.footer-subscribe__success { display: none; font-size: 14px; color: var(--teal); margin-top: 8px; }
.footer-socials { display: flex; gap: 12px; margin-top: 16px; }
.footer-socials a { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #333; transition: background .2s; }
.footer-socials a:hover { background: var(--green); }
.footer-socials svg { display: block; }
.site-footer__bottom {
  border-top: 1px solid #222;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: #666;
}
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   FLOAT BUTTONS
   ============================================================ */
.float-btns { position: fixed; bottom: 24px; right: 24px; z-index: 90; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.float-btn {
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(17, 34, 17, .22);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.float-btn:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 18px 44px rgba(17, 34, 17, .30); }
.float-btn--wa { background: #25D366; }
.float-btn--top {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  display: none;
}
.float-btn--top svg path { fill: #333; }
.float-btn--top.visible { display: flex; }

/* ============================================================
   CHAT FAB
   ============================================================ */
.chat-fab { position: fixed; right: 22px; bottom: 22px; z-index: 900; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; transition: opacity .25s, transform .25s; }
.chat-fab.fab--hide { opacity: 0; pointer-events: none; transform: translateY(10px); }
.chat-fab__btn {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--teal));
  box-shadow: 0 14px 36px rgba(127, 183, 86, .45);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.chat-fab__btn:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 20px 46px rgba(127, 183, 86, .55); }
.chat-fab__btn:active { transform: scale(.95); }
.chat-fab__ico { position: absolute; transition: opacity .25s, transform .35s var(--ease-out); }
.chat-fab__ico--close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.chat-fab.open .chat-fab__ico--chat { opacity: 0; transform: rotate(90deg) scale(.6); }
.chat-fab.open .chat-fab__ico--close { opacity: 1; transform: rotate(0) scale(1); }
.chat-fab__panel {
  width: 264px;
  padding: 14px;
  border-radius: 22px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 70px rgba(17, 34, 17, .25);
  opacity: 0;
  transform: translateY(14px) scale(.96);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .35s var(--ease-out);
}
.chat-fab.open .chat-fab__panel { opacity: 1; transform: none; pointer-events: auto; }
.chat-fab__head { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #6a756a; padding: 4px 10px 10px; }
.chat-fab__item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; transition: background .25s, transform .25s var(--ease-out); }
.chat-fab__item:hover { background: rgba(127, 183, 86, .10); transform: translateX(3px); }
.chat-fab__item-icon { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
.chat-fab__item-icon--call { background: linear-gradient(135deg, var(--green), #8fc868); }
.chat-fab__item-icon--wa { background: linear-gradient(135deg, #35cd5f, #25b04a); }
.chat-fab__item-title { display: block; font-size: 15px; font-weight: 800; color: #1f2a1f; line-height: 1.25; }
.chat-fab__item-sub { display: block; font-size: 12.5px; color: #6a756a; }
@media (max-width: 480px) {
  /* отступ от края + поправка на нижнюю панель Safari / home-indicator (safe-area) */
  .chat-fab { right: 16px; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
  .chat-fab__btn { width: 58px; height: 58px; }
  .chat-fab__panel { width: min(264px, calc(100vw - 32px)); }
}

/* ============================================================
   СТРАНИЦА УСЛУГ (uslugi)
   ============================================================ */
.services-list { display: flex; flex-direction: column; gap: 0; }
.service-item { border-bottom: 1px solid #eee; padding: 40px 0; }
.service-item:first-child { border-top: 1px solid #eee; }
.service-item__title { font-size: clamp(20px, 2.5vw, 26px); font-weight: 800; margin-bottom: 14px; color: #111; }
.service-item__text { font-size: 16px; line-height: 1.75; color: #444; max-width: 800px; margin-bottom: 20px; }

/* ============================================================
   СТРАНИЦА ВРАЧА (asylzat-omarovna)
   ============================================================ */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-intro__img img { width: 100%; height: 480px; object-fit: cover; border-radius: 20px; }
.about-intro__title { font-size: clamp(22px, 3vw, 34px); font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.about-intro__text { font-size: 16px; line-height: 1.8; color: #444; margin-bottom: 16px; }
@media (max-width: 768px) {
  .about-intro { grid-template-columns: 1fr; gap: 32px; }
  .about-intro__img img { height: 300px; }
}

/* ============================================================
   СЕРТИФИКАТЫ (cert grid на отдельной странице — не используется, но пусть будет)
   ============================================================ */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cert-item { display: block; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.08); transition: transform .25s, box-shadow .25s; }
.cert-item:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.14); }
.cert-item img { width: 100%; height: 220px; object-fit: cover; display: block; }
@media (max-width: 900px) { .cert-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .cert-grid { grid-template-columns: 1fr; } }

/* ============================================================
   THANK YOU PAGE
   ============================================================ */
.thankyou-section { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 24px; }
.thankyou-section__inner { max-width: 560px; }
.thankyou-section__img { width: 200px; height: 200px; object-fit: cover; border-radius: 50%; margin: 0 auto 32px; }
.thankyou-section__title { font-size: 32px; font-weight: 800; margin-bottom: 16px; }
.thankyou-section__text { font-size: 17px; color: #555; line-height: 1.7; margin-bottom: 32px; }
.thankyou-section__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* ============================================================
   404
   ============================================================ */
.not-found { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 24px; }
.not-found__code { font-size: 120px; font-weight: 800; color: var(--green); line-height: 1; margin-bottom: 16px; }
.not-found__title { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.not-found__text { font-size: 16px; color: #666; margin-bottom: 32px; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.pr-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--pr-delay, 0ms);
}
.pr-reveal.pr-in { opacity: 1; transform: none; }

/* ============================================================
   ХЛЕБНЫЕ КРОШКИ
   ============================================================ */
.breadcrumb { padding: 20px 0 4px; }
.breadcrumb__list { display: flex; align-items: center; flex-wrap: wrap; gap: 0; list-style: none; margin: 0; padding: 0; font-size: 13px; color: #999; }
.breadcrumb__item { display: flex; align-items: center; }
.breadcrumb__item + .breadcrumb__item::before { content: '/'; margin: 0 8px; color: #ccc; }
.breadcrumb__item a { color: var(--green); text-decoration: none; transition: color .2s; }
.breadcrumb__item a:hover { color: var(--green-ink); text-decoration: underline; }
.breadcrumb__item--current { color: #666; }
@media (max-width: 640px) {
  .breadcrumb { padding: 16px 0 0; }
  .breadcrumb__list { font-size: 12px; }
}

/* ============================================================
   ФОРМЫ — общие
   ============================================================ */
.form-success { display: none; padding: 16px; background: #e8f5e9; border-radius: 12px; color: #2e7d32; font-size: 15px; margin-top: 12px; text-align: center; }
.form-error { font-size: 12px; color: #c62828; margin-top: 4px; }
input.error, textarea.error { border-color: #c62828 !important; }

/* ============================================================
   YouTube custom play/pause
   ============================================================ */
.yt-ctl {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.yt-ctl__icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(.85);
  transition: opacity .25s, transform .25s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.yt-ctl__icon--play { display: none; }
.yt-ctl:hover .yt-ctl__icon--pause { opacity: 1; transform: scale(1); }
.yt-ctl.is-paused .yt-ctl__icon--pause { display: none; }
.yt-ctl.is-paused .yt-ctl__icon--play { display: flex; opacity: 1; transform: scale(1); }

/* ============================================================
   WCAG
   ============================================================ */
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.skip-link { position: absolute; top: -100px; left: 16px; background: var(--green); color: #fff; padding: 8px 16px; border-radius: 4px; font-weight: 700; z-index: 9999; transition: top .2s; }
.skip-link:focus { top: 8px; }
/* цель skip-link: отступ под фиксированный хедер + без рамки при программном фокусе */
#main-content { scroll-margin-top: 100px; }
#main-content:focus { outline: none; }

/* плавный скроллбар */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(127, 183, 86, .45); border-radius: 5px; border: 2px solid #fdfefd; }
::-webkit-scrollbar-thumb:hover { background: rgba(127, 183, 86, .7); }

/* ===== Info-cards (показания / результаты) ===== */
.info-lead {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
  font-size: 17px;
  line-height: 1.65;
  color: #555;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.info-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 22px;
  box-shadow: 0 4px 20px rgba(17, 34, 17, .04);
  overflow: hidden;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s;
}
.info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease-out);
}
.info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(17, 34, 17, .12);
  border-color: rgba(127, 183, 86, .35);
}
.info-card:hover::before { transform: scaleX(1); }
.info-card__title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--dark);
  margin-bottom: 12px;
}
.info-card__text {
  font-size: 15px;
  line-height: 1.65;
  color: #555;
  margin: 0;
}

/* ===== Spec-table (технический протокол) ===== */
.spec-table {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 24px;
  box-shadow: 0 6px 28px rgba(17, 34, 17, .06);
  overflow: hidden;
}
.spec-row {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 22px 32px;
  border-bottom: 1px solid var(--card-border);
  transition: background .3s var(--ease-out);
}
.spec-row:last-child { border-bottom: none; }
.spec-row:hover { background: rgba(127, 183, 86, .05); }
.spec-row__label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--green-ink);
}
.spec-row__value {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}
@media (max-width: 860px) {
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-row { grid-template-columns: 1fr; gap: 6px; padding: 18px 22px; }
}
@media (max-width: 560px) {
  .info-grid { grid-template-columns: 1fr; }
}

/* доступность: отключаем движение */
@media (prefers-reduced-motion: reduce) {
  .hero__title, .hero__descr, .hero .btn { animation: none; }
  .pr-reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg { transform: none !important; }
  html { scroll-behavior: auto; }
  .info-card, .info-card::before, .spec-row { transition: none; }
}
