/* ===== ЧистоДом — styles ===== */
:root {
  --primary: #0fb5a3;
  --primary-dark: #0a8f81;
  --accent: #a3e635;
  --ink: #0b2239;
  --ink-soft: #48606f;
  --bg: #f6fbfa;
  --card: #ffffff;
  --line: #e3efed;
  --radius: 20px;
  --shadow: 0 10px 40px rgba(11, 34, 57, 0.08);
  --shadow-lg: 0 20px 60px rgba(11, 34, 57, 0.14);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Unbounded', 'Manrope', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { width: min(1180px, 92%); margin: 0 auto; }

h1, h2, h3 { line-height: 1.2; }
h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3.4vw, 2.3rem); font-weight: 600; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 30px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; box-shadow: 0 8px 24px rgba(15, 181, 163, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(15, 181, 163, 0.45); }
.btn--ghost { border: 2px solid var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--outline { border: 2px solid var(--primary); color: var(--primary-dark); }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--sm { padding: 11px 22px; font-size: .9rem; }
.btn--block { width: 100%; }

/* ===== Header ===== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s ease, box-shadow .3s ease;
}
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(11, 34, 57, 0.08);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; }
.logo { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.logo__mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-size: 1.1rem;
}
.logo__text em { font-style: normal; color: var(--primary); }
.nav { display: flex; gap: 28px; }
.nav__link { font-weight: 600; font-size: .95rem; color: var(--ink-soft); transition: color .2s; position: relative; }
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: -5px; height: 2px; width: 0;
  background: var(--primary); border-radius: 2px; transition: width .25s ease;
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { width: 100%; }
.header__actions { display: flex; align-items: center; gap: 16px; }
.header__phone { font-weight: 800; font-size: .95rem; }

.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; z-index: 110; }
.burger span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 3px; transition: .3s ease; }
.burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; z-index: -1; }
.hero__blob--1 { width: 520px; height: 520px; background: #7ef0e0; top: -180px; right: -120px; }
.hero__blob--2 { width: 420px; height: 420px; background: #d9f99d; bottom: -200px; left: -140px; }
.hero__inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: center; }
.hero__badge {
  display: inline-block; padding: 8px 18px; border-radius: 999px;
  background: #fff; box-shadow: var(--shadow); font-size: .85rem; font-weight: 700; color: var(--primary-dark);
  margin-bottom: 22px;
}
.hero__title { font-family: var(--font-display); font-size: clamp(1.9rem, 4.6vw, 3.3rem); font-weight: 700; margin-bottom: 20px; }
.hero__title span {
  background: linear-gradient(135deg, var(--primary), #65a30d);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__text { color: var(--ink-soft); font-size: 1.08rem; max-width: 540px; margin-bottom: 30px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 42px; }
.hero__stats { display: flex; gap: 40px; list-style: none; flex-wrap: wrap; }
.hero__stats b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); }
.hero__stats span { font-size: .85rem; color: var(--ink-soft); }

.hero__card-inner {
  background: rgba(255,255,255,.8); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 28px; box-shadow: var(--shadow-lg); padding: 36px 30px; text-align: center;
}
.hero__card-emoji { font-size: 3rem; display: block; margin-bottom: 12px; }
.hero__card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.hero__card p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 20px; }
.quick-form { display: flex; flex-direction: column; gap: 12px; }
.quick-form small, .form small { color: var(--ink-soft); font-size: .72rem; line-height: 1.4; }

/* ===== Forms ===== */
input, textarea {
  width: 100%; padding: 14px 18px; border-radius: 14px;
  border: 1.5px solid var(--line); background: #fff;
  font-family: inherit; font-size: .95rem; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(15,181,163,.12); }
input.is-error, textarea.is-error { border-color: #e11d48; box-shadow: 0 0 0 4px rgba(225,29,72,.1); }
textarea { resize: vertical; }

.form { display: flex; flex-direction: column; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 7px; font-weight: 700; font-size: .88rem; }

/* ===== Advantages ===== */
.advantages { padding: 20px 0 60px; }
.advantages__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.adv-card {
  background: var(--card); border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease;
}
.adv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.adv-card span { font-size: 2rem; display: block; margin-bottom: 12px; }
.adv-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.adv-card p { font-size: .88rem; color: var(--ink-soft); }

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section__head p { color: var(--ink-soft); margin-top: 12px; }
.section__tag {
  display: inline-block; padding: 6px 16px; border-radius: 999px; margin-bottom: 14px;
  background: rgba(15,181,163,.1); color: var(--primary-dark); font-weight: 800; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .06em;
}

/* ===== Filters ===== */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filter {
  padding: 10px 22px; border-radius: 999px; background: #fff;
  border: 1.5px solid var(--line); font-weight: 700; font-size: .9rem; color: var(--ink-soft);
  transition: all .2s ease;
}
.filter:hover { border-color: var(--primary); color: var(--primary-dark); }
.filter.is-active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: transparent; color: #fff; box-shadow: 0 6px 18px rgba(15,181,163,.35);
}

/* ===== Gallery ===== */
.gallery { background: #fff; }
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.work-card {
  border-radius: var(--radius); overflow: hidden; background: var(--card);
  border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease;
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.work-card__img {
  aspect-ratio: 4 / 3; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  position: relative;
}
.work-card__img span { font-size: 3.4rem; filter: drop-shadow(0 6px 14px rgba(0,0,0,.15)); transition: transform .3s ease; }
.work-card:hover .work-card__img span { transform: scale(1.15) rotate(-4deg); }
.work-card__body { padding: 18px 20px 22px; }
.work-card__cat {
  display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  color: var(--primary-dark); background: rgba(15,181,163,.1); padding: 4px 12px; border-radius: 999px; margin-bottom: 10px;
}
.work-card__body h3 { font-size: .98rem; margin-bottom: 6px; }
.work-card__body p { font-size: .82rem; color: var(--ink-soft); }

/* ===== Price ===== */
.price__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.price-card {
  display: flex; flex-direction: column; background: var(--card);
  border-radius: var(--radius); padding: 26px 24px; border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(15,181,163,.4); }
.price-card__cat {
  align-self: flex-start; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  color: var(--primary-dark); background: rgba(15,181,163,.1); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.price-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.price-card__desc { font-size: .85rem; color: var(--ink-soft); flex: 1; margin-bottom: 16px; }
.price-card__price { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin-bottom: 16px; }

/* ===== Hidden by filter ===== */
.is-hidden { display: none !important; }

/* ===== Question ===== */
.question { background: linear-gradient(160deg, #0b2239, #0e3a4a); color: #fff; }
.question__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.question .section__tag { background: rgba(163,230,53,.15); color: var(--accent); }
.question__info p { color: rgba(255,255,255,.75); margin: 16px 0 24px; }
.question__list { list-style: none; display: flex; flex-direction: column; gap: 10px; font-weight: 600; }
.question__form {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px; padding: 34px 30px; backdrop-filter: blur(10px);
}
.question__form label { color: rgba(255,255,255,.9); }
.question__form input, .question__form textarea { background: rgba(255,255,255,.95); border-color: transparent; }
.question__form small { color: rgba(255,255,255,.55); }

/* ===== Contacts ===== */
.contacts__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.contact-card {
  background: var(--card); border-radius: var(--radius); padding: 28px 22px; text-align: center;
  border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease;
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.contact-card span { font-size: 2rem; display: block; margin-bottom: 10px; }
.contact-card h3 { font-size: .95rem; margin-bottom: 6px; color: var(--ink-soft); font-weight: 700; }
.contact-card p { font-weight: 800; font-size: 1.05rem; margin-bottom: 4px; }
.contact-card small { color: var(--ink-soft); font-size: .78rem; }
.contacts__map-placeholder {
  border-radius: 24px; min-height: 280px; display: grid; place-items: center; text-align: center;
  background: repeating-linear-gradient(45deg, #eef7f5, #eef7f5 20px, #e6f2f0 20px, #e6f2f0 40px);
  border: 2px dashed #b9dcd7; color: var(--ink-soft); font-weight: 600; padding: 30px;
}
.contacts__map-placeholder span { font-size: 2.6rem; display: block; margin-bottom: 10px; }

/* ===== Footer ===== */
.footer { background: var(--ink); color: rgba(255,255,255,.8); padding: 40px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer .logo__text { color: #fff; }
.footer__nav { display: flex; gap: 24px; flex-wrap: wrap; font-size: .9rem; font-weight: 600; }
.footer__nav a:hover { color: var(--accent); }
.footer__copy { font-size: .82rem; color: rgba(255,255,255,.5); }

/* ===== Modal ===== */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; visibility: hidden; opacity: 0; transition: opacity .25s ease, visibility .25s; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(11,34,57,.55); backdrop-filter: blur(6px); }
.modal__dialog {
  position: relative; width: min(460px, 100%); background: #fff; border-radius: 26px;
  padding: 36px 32px; box-shadow: var(--shadow-lg);
  transform: translateY(24px) scale(.97); transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.modal.is-open .modal__dialog { transform: none; }
.modal__dialog h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 8px; }
.modal__service { color: var(--ink-soft); font-size: .92rem; margin-bottom: 22px; }
.modal__service b { color: var(--primary-dark); }
.modal__close {
  position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg); font-size: 1rem; color: var(--ink-soft); transition: background .2s, transform .2s;
}
.modal__close:hover { background: var(--line); transform: rotate(90deg); }

/* ===== Toast ===== */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, calc(100% + 50px)); z-index: 300;
  background: var(--ink); color: #fff; padding: 15px 28px; border-radius: 999px;
  font-weight: 700; font-size: .92rem; box-shadow: var(--shadow-lg);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1); max-width: 90%; text-align: center;
}
.toast.is-visible { transform: translate(-50%, 0); }

/* ===== Gallery images ===== */
.work-card__img { position: relative; overflow: hidden; }
.work-card__img img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.work-card:hover .work-card__img img { transform: scale(1.06); }

/* ===== ПДн consent ===== */
.consent { display: flex; flex-direction: row !important; align-items: flex-start; gap: 10px; font-weight: 500 !important; font-size: .78rem !important; color: var(--ink-soft); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--primary); flex: 0 0 auto; }
.consent a { color: var(--primary-dark); text-decoration: underline; }
.question__form .consent { color: rgba(255,255,255,.7); }
.question__form .consent a { color: var(--accent); }
.consent.is-error span { color: #e11d48; }

/* ===== Honeypot (антиспам, не виден людям) ===== */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ===== Cookie banner ===== */
.cookie {
  position: fixed; left: 20px; bottom: 20px; z-index: 400;
  width: min(420px, calc(100% - 40px));
  background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); padding: 20px 22px;
  transform: translateY(calc(100% + 40px)); transition: transform .45s cubic-bezier(.34,1.4,.64,1);
}
.cookie.is-visible { transform: none; }
.cookie p { font-size: .82rem; color: var(--ink-soft); margin-bottom: 14px; line-height: 1.5; }
.cookie a { color: var(--primary-dark); text-decoration: underline; }
.cookie__row { display: flex; gap: 10px; align-items: center; }
.cookie__row .btn { padding: 10px 22px; font-size: .88rem; }

/* ===== Contacts: MAX ===== */
.contact-card--max span { font-size: 1.4rem; font-weight: 800; color: #fff; background: linear-gradient(135deg,#7b61ff,#4f46e5); width: 44px; height: 44px; border-radius: 12px; display: inline-grid; place-items: center; }

/* ===== Toast (fix) см. основной блок ===== */

/* ===== Footer legal ===== */
.footer__legal { display: flex; gap: 18px; flex-wrap: wrap; font-size: .8rem; }
.footer__legal a { color: rgba(255,255,255,.55); text-decoration: underline; }
.footer__legal a:hover { color: var(--accent); }

@media (max-width: 560px) {
  .cookie { left: 12px; bottom: 12px; width: calc(100% - 24px); }
}

/* ===== Живость: пузыри в hero ===== */
.hero__bubbles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: -1; }
.hero__bubbles span {
  position: absolute; bottom: -60px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.9), rgba(255,255,255,.15) 60%, rgba(15,181,163,.12));
  border: 1px solid rgba(255,255,255,.5);
  animation: bubbleRise linear infinite;
  opacity: 0;
}
.hero__bubbles span:nth-child(1)  { left: 6%;  width: 22px; height: 22px; animation-duration: 11s; animation-delay: 0s; }
.hero__bubbles span:nth-child(2)  { left: 14%; width: 12px; height: 12px; animation-duration: 9s;  animation-delay: 2.2s; }
.hero__bubbles span:nth-child(3)  { left: 24%; width: 28px; height: 28px; animation-duration: 13s; animation-delay: 4s; }
.hero__bubbles span:nth-child(4)  { left: 38%; width: 14px; height: 14px; animation-duration: 10s; animation-delay: 1s; }
.hero__bubbles span:nth-child(5)  { left: 52%; width: 20px; height: 20px; animation-duration: 12s; animation-delay: 5.5s; }
.hero__bubbles span:nth-child(6)  { left: 63%; width: 10px; height: 10px; animation-duration: 8s;  animation-delay: 3s; }
.hero__bubbles span:nth-child(7)  { left: 72%; width: 26px; height: 26px; animation-duration: 14s; animation-delay: 6.5s; }
.hero__bubbles span:nth-child(8)  { left: 82%; width: 16px; height: 16px; animation-duration: 9.5s; animation-delay: 1.4s; }
.hero__bubbles span:nth-child(9)  { left: 90%; width: 24px; height: 24px; animation-duration: 12.5s; animation-delay: 4.8s; }
.hero__bubbles span:nth-child(10) { left: 47%; width: 9px;  height: 9px;  animation-duration: 8.5s; animation-delay: 7s; }
@keyframes bubbleRise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  8%   { opacity: .85; }
  60%  { transform: translateY(-60vh) translateX(18px); }
  100% { transform: translateY(-108vh) translateX(-12px); opacity: 0; }
}

/* Дрейф пятен */
.hero__blob--1 { animation: blobDrift 14s ease-in-out infinite; }
.hero__blob--2 { animation: blobDrift 18s ease-in-out infinite reverse; }
@keyframes blobDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(36px, 24px) scale(1.08); }
}

/* Пульс основной кнопки */
.hero__cta .btn--primary { position: relative; }
.hero__cta .btn--primary::after {
  content: ''; position: absolute; inset: -3px; border-radius: 999px;
  border: 2px solid rgba(15,181,163,.55); opacity: 0;
  animation: ctaPulse 2.6s ease-out infinite;
}
@keyframes ctaPulse {
  0%   { transform: scale(1); opacity: 0; }
  25%  { opacity: .8; }
  100% { transform: scale(1.18); opacity: 0; }
}

/* ===== Бегущая строка ===== */
.marquee { background: var(--ink); color: #fff; overflow: hidden; padding: 14px 0; }
.marquee__track {
  display: inline-flex; align-items: center; gap: 44px; white-space: nowrap;
  width: max-content; animation: marquee 26s linear infinite;
  font-weight: 700; font-size: .95rem; letter-spacing: .02em;
}
.marquee__track i { font-style: normal; color: var(--accent); margin: 0 -22px; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Современные SVG-иконки ===== */
.adv-card .adv-ic {
  display: inline-grid; place-items: center; width: 52px; height: 52px;
  border-radius: 16px; margin-bottom: 14px; color: var(--primary-dark);
  background: linear-gradient(135deg, rgba(15,181,163,.14), rgba(163,230,53,.18));
}
.adv-card .adv-ic svg { width: 26px; height: 26px; }
.adv-card:hover .adv-ic { animation: iconPop .45s cubic-bezier(.34,1.56,.64,1); }
@keyframes iconPop { 0% { transform: scale(.85) rotate(-6deg); } 100% { transform: scale(1) rotate(0); } }
.contact-card .c-ic {
  display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 10px;
  border-radius: 14px; color: var(--primary-dark); background: rgba(15,181,163,.1);
  transition: transform .25s ease;
}
.contact-card .c-ic svg { width: 23px; height: 23px; }
.contact-card:hover .c-ic { transform: scale(1.12) rotate(-4deg); }

/* ===== Галерея: счётчик фото и клик ===== */
.work-card { cursor: pointer; }
.work-card__img .work-card__count {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  background: rgba(11,34,57,.72); color: #fff; backdrop-filter: blur(4px);
  font-size: .72rem; font-weight: 800; padding: 4px 10px; border-radius: 999px;
  filter: none; transform: none; line-height: 1.4;
}
.work-card:hover .work-card__img .work-card__count { transform: none; }

/* ===== Лайтбокс ===== */
.lightbox { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; visibility: hidden; opacity: 0; transition: opacity .25s ease, visibility .25s; }
.lightbox.is-open { visibility: visible; opacity: 1; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(7,20,32,.9); backdrop-filter: blur(8px); }
.lightbox__img {
  position: relative; z-index: 2; max-width: min(92vw, 1000px); max-height: 78vh;
  border-radius: 18px; box-shadow: 0 30px 90px rgba(0,0,0,.5); object-fit: contain;
}
.lightbox__close, .lightbox__nav {
  position: absolute; z-index: 3; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; font-size: 1.4rem;
  display: grid; place-items: center; transition: background .2s, transform .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.28); }
.lightbox__close { top: 22px; right: 22px; }
.lightbox__nav--prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev:hover { transform: translateY(-50%) scale(1.1); }
.lightbox__nav--next:hover { transform: translateY(-50%) scale(1.1); }
.lightbox__caption {
  position: absolute; bottom: 66px; left: 50%; transform: translateX(-50%); z-index: 3;
  color: #fff; font-weight: 700; font-size: .95rem; text-align: center; max-width: 88vw;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}
.lightbox__counter { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3; color: rgba(255,255,255,.75); font-size: .82rem; font-weight: 700; }

/* ===== Плавающая кнопка «Позвонить» ===== */
.call-fab {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 95;
  width: 62px; height: 62px; border-radius: 50%; display: none; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff;
  box-shadow: 0 12px 32px rgba(15,181,163,.5);
  transition: bottom .3s ease, transform .2s ease;
}
.call-fab svg { width: 28px; height: 28px; }
.call-fab::before {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(15,181,163,.6); animation: ctaPulse 2s ease-out infinite;
}
.call-fab:active { transform: translateX(-50%) scale(.92); }
@media (max-width: 900px) { .call-fab { display: grid; } }
body.cookie-open .call-fab { bottom: 170px; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== Mobile nav panel ===== */
@media (max-width: 900px) {
  /* ВАЖНО: backdrop-filter у шапки создаёт containing block и ломает
     position:fixed у меню — на мобильных используем непрозрачный фон */
  .header.is-scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .nav {
    position: fixed; inset: 0; z-index: 105;
    flex-direction: column; align-items: center; justify-content: center; gap: 30px;
    background: rgba(255,255,255,.97); backdrop-filter: blur(16px);
    transform: translateY(-100%); transition: transform .35s ease;
  }
  .nav.is-open { transform: none; }
  .nav__link { font-size: 1.3rem; }
  .burger { display: flex; }
  .header__phone { display: none; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 120px 0 70px; }
  .advantages__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid, .price__grid { grid-template-columns: repeat(2, 1fr); }
  .contacts__grid { grid-template-columns: repeat(2, 1fr); }
  .question__inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .gallery__grid, .price__grid, .advantages__grid, .contacts__grid { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; }
  .hero__stats { gap: 24px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: 0 0 auto; }
  .header__actions .btn { display: none; }
  .modal__dialog { padding: 30px 22px; }
}
