/* ============================================================
   АНИМАКС — дизайн-система «Фиеста» (v2)
   Тёмная тема по умолчанию + светлая. Стекло, свечения,
   конфетти, воздушные шары. Все шрифты — свои (fonts.css),
   внешних зависимостей у страницы НЕТ.
   ============================================================ */

/* ---------- 0. Токены ---------- */
:root {
  --font-display: 'Comfortaa', 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --mint: #2fe8a4;   /* мята — главный акцент */
  --sun: #ffc93c;    /* солнечный */
  --aqua: #2ed3b7;   /* морская волна */
  --sky: #4aa8ff;   /* небесный — холодный акцент вместо фиолета */
  --coral: #ff5d5d;  /* коралл для ошибок/важного */
  --grad: linear-gradient(135deg, #2fe8a4 0%, #14b8a6 52%, #ffc93c 100%);
  --grad-main: linear-gradient(135deg, #2fe8a4, #14c8b4);
  --grad-cool: linear-gradient(135deg, #4aa8ff, #2ed3b7);
  --grad-text: linear-gradient(100deg, #5ff2b8, #ffc93c 45%, #2ed3b7);

  --r: 20px;
  --r-sm: 14px;
  --shadow: 0 18px 50px -12px rgba(0, 0, 0, .55);
  --glow-main: 0 8px 32px -6px rgba(47, 232, 164, .38);
  --glow-cool: 0 8px 32px -6px rgba(46, 211, 183, .32);
}
[data-theme="dark"] {
  --bg: #0a1512;
  --bg2: #0e1f1a;
  --ink: #f2fff9;
  --muted: #9db8ad;
  --line: rgba(255, 255, 255, .12);
  --glass: rgba(255, 255, 255, .07);
  --glass-brd: rgba(255, 255, 255, .16);
  --card: rgba(255, 255, 255, .055);
  --input: rgba(0, 0, 0, .28);
  --overlay: rgba(4, 12, 9, .72);
  --link: #6fdcab;
  --band-line: rgba(255, 255, 255, .09);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f2fbf6;
  --bg2: #ddf5e7;
  --ink: #12332a;
  --muted: #5c7268;
  --line: rgba(18, 51, 42, .12);
  --glass: rgba(255, 255, 255, .66);
  --glass-brd: rgba(18, 51, 42, .1);
  --card: rgba(255, 255, 255, .78);
  --input: rgba(255, 255, 255, .9);
  --overlay: rgba(18, 51, 42, .55);
  --shadow: 0 18px 50px -18px rgba(20, 120, 90, .35);
  --link: #0a7a54;
  --band-line: rgba(18, 51, 42, .14);
  color-scheme: light;
}

/* ---------- 1. База ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* hidden всегда прячет, что бы ни говорил display */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  transition: background .4s ease, color .4s ease;
}
/* Живой фон: два дрейфующих световых пятна + лёгкое зерно */
body::before, body::after {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
}
body::after {
  background-image: radial-gradient(rgba(255, 201, 60, .08) 1.5px, transparent 1.6px);
  background-size: 34px 34px;
}
[data-theme="light"] body::after {
  background-image: radial-gradient(rgba(20, 120, 90, .1) 1.5px, transparent 1.6px);
}
body::before {
  background:
    radial-gradient(560px 420px at 12% -4%, rgba(47, 232, 164, .22), transparent 60%),
    radial-gradient(640px 480px at 88% 8%, rgba(74, 168, 255, .2), transparent 60%),
    radial-gradient(720px 560px at 50% 110%, rgba(46, 211, 183, .14), transparent 60%),
    radial-gradient(480px 380px at 8% 88%, rgba(255, 201, 60, .1), transparent 60%);
  animation: bg-drift 22s ease-in-out infinite alternate;
}
[data-theme="light"] body::before {
  background:
    radial-gradient(560px 420px at 12% -4%, rgba(47, 232, 164, .16), transparent 60%),
    radial-gradient(640px 480px at 88% 8%, rgba(74, 168, 255, .14), transparent 60%),
    radial-gradient(720px 560px at 50% 110%, rgba(46, 211, 183, .12), transparent 60%),
    radial-gradient(480px 380px at 8% 88%, rgba(255, 201, 60, .12), transparent 60%);
}
@keyframes bg-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(2%, 3%, 0) scale(1.06); }
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.18; margin: 0 0 .5em; letter-spacing: .01em; }
p { margin: 0 0 1em; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--mint); color: #fff; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; border-radius: 6px; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--grad-main); border-radius: 8px; border: 3px solid var(--bg); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 22px; }
main { display: block; padding-bottom: 10px; position: relative; z-index: 1; }
section { padding: 64px 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--mint); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 200; }
.skip:focus { left: 8px; }

/* ---------- 2. Утилиты ---------- */
.muted { color: var(--muted); }
.center { text-align: center; }
.mt { margin-top: 18px; }
.pad { padding: 18px; }
.grad-text { position: relative; z-index: 0; white-space: nowrap; }
.grad-text::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: .04em; height: .16em; border-radius: 99px; background: var(--grad-main); z-index: -1; }
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mint); background: rgba(47, 232, 164, .12);
  border: 1px solid rgba(47, 232, 164, .35);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 16px;
}
[data-theme="light"] .eyebrow { background: rgba(47, 232, 164, .1); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 800; font-size: 16px;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; text-decoration: none !important;
  transition: transform .18s ease, box-shadow .25s ease, filter .2s ease, background .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary {
  background: var(--grad-main); color: #04382a !important; box-shadow: var(--glow-main);
  background-size: 160% 160%; animation: btn-shimmer 5s ease infinite;
}
.btn-primary:hover { box-shadow: 0 12px 40px -6px rgba(47, 232, 164, .75); filter: saturate(1.15); }
@keyframes btn-shimmer { 0%, 100% { background-position: 0% 40%; } 50% { background-position: 100% 60%; } }
.btn-ghost { background: var(--glass); border-color: var(--glass-brd); color: var(--ink) !important; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-ghost:hover { border-color: var(--mint); box-shadow: var(--glow-main); }
.btn-white { background: #fff; color: #04382a !important; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .4); }
.btn-outline-w { border-color: rgba(255, 255, 255, .6); color: #fff !important; }
.btn-mint { background: var(--grad-cool); color: #06231d !important; box-shadow: var(--glow-cool); }
.btn-lg { padding: 16px 36px; font-size: 18px; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 14px; cursor: pointer;
  background: var(--glass); border: 1px solid var(--glass-brd); color: var(--ink);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform .18s, border-color .2s, box-shadow .25s;
}
.icon-btn:hover { transform: translateY(-2px); border-color: var(--mint); box-shadow: var(--glow-main); }
.icon-btn.sm { width: 36px; height: 36px; border-radius: 11px; }
.th-light { display: none; }
[data-theme="light"] .th-light { display: inline-flex; }
[data-theme="light"] .th-dark { display: none; }
.th-dark, .th-light { display: inline-flex; }
[data-theme="light"] .th-dark { display: none; }

/* Прогресс скролла и стрелка вверх */
.progress { position: fixed; top: 0; left: 0; height: 4px; width: 100%; z-index: 300; background: transparent; pointer-events: none; }
.progress i { display: block; height: 100%; width: 0; background: var(--grad-main); border-radius: 0 4px 4px 0; box-shadow: 0 0 12px rgba(47, 232, 164, .8); }
.to-top {
  position: fixed; right: 22px; bottom: 108px; z-index: 150;
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--grad-main); color: #04382a; box-shadow: var(--glow-main);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .3s, transform .3s, visibility .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }

/* Бегущая строка */
.marquee { overflow: hidden; background: #0b1f19; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); padding: 11px 0; position: relative; z-index: 1; }
.marquee-track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.marquee-track span {
  font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .08em;
  text-transform: uppercase; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .25);
  padding-right: 12px; white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Гирлянда-разделитель (флажки) */
.garland { height: 34px; margin: 6px 0 -6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='34'%3E%3Cpath d='M0 0 Q36 26 72 0' fill='none' stroke='%232fe8a4' stroke-width='2' opacity='.55'/%3E%3Cpath d='M22 12 L32 12 L27 23 Z' fill='%23ffc93c'/%3E%3Cpath d='M40 12 L50 12 L45 23 Z' fill='%232ed3b7'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-position: center top; opacity: .9;
}

/* Флеш-сообщения */
.flash { border-radius: var(--r-sm); padding: 14px 20px; margin: 18px 0; font-weight: 700; border: 1px solid; }
.flash-ok { background: rgba(46, 211, 183, .14); border-color: rgba(46, 211, 183, .5); }
.flash-error { background: rgba(255, 93, 93, .12); border-color: rgba(255, 93, 93, .5); }

/* ---------- 3. Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--glass); border-bottom: 1px solid var(--glass-brd);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}
.header-in {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 14px; min-height: 78px; padding-top: 10px; padding-bottom: 10px;
}
/* Логотип — чистый текст крутым шрифтом */
.logo { display: inline-flex; flex-direction: column; line-height: 1; text-decoration: none !important; }
/* Логотип-бейдж: 3D-название от ИИ, середина с текстом вырезана через cover */
.logo-badge {
  display: block; width: 198px; height: 52px; border-radius: 16px; overflow: hidden; flex: none;
  border: 1px solid var(--glass-brd); box-shadow: var(--glow-main);
  transition: transform .2s ease;
}
.logo:hover .logo-badge { transform: scale(1.045) rotate(-1deg); }
.logo-badge img { width: 100%; height: 100%; object-fit: cover; object-position: center 54%; display: block; }
.logo-tag {
  display: block; font-family: var(--font-body); font-size: 9.5px; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-top: 3px; white-space: nowrap;
}
/* Меню — всегда в одну строку, без переносов */
.nav { display: flex; gap: 2px; white-space: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.nav-link {
  color: var(--ink); font-weight: 800; font-size: 14.5px; padding: 10px 9px;
  border-radius: 12px; position: relative; text-decoration: none !important;
  transition: color .2s, background .2s;
}
.nav-link::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 6px; height: 3px;
  border-radius: 3px; background: var(--grad-main);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-link:hover { color: var(--mint); background: rgba(47, 232, 164, .1); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active { color: var(--mint); }
.nav-link.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; }
/* Телефон — компактный блок, никогда не «съезжает» и не переносится */
.h-phone {
  display: flex; align-items: center; gap: 7px; color: var(--ink) !important;
  text-decoration: none !important; white-space: nowrap; line-height: 1.25; order: 10;
  padding: 6px 10px 6px 8px; border-radius: 14px;
  background: var(--glass); border: 1px solid var(--glass-brd);
  transition: border-color .2s, box-shadow .25s, transform .18s;
}
.h-phone:hover { border-color: var(--mint); box-shadow: var(--glow-main); transform: translateY(-2px); }
.h-phone .ic { color: var(--mint); flex: none; }
.h-phone b { display: block; font-size: 14.5px; font-weight: 900; letter-spacing: .01em; }
.h-phone small { display: block; font-size: 10px; color: var(--muted); font-weight: 700; }
.burger { display: none; order: 11; }
/* Мобильное меню */
.mnav {
  display: flex; flex-direction: column; gap: 4px; padding: 12px 22px 20px;
  border-top: 1px solid var(--line); background: var(--bg2);
}
.mnav-link { padding: 12px 14px; border-radius: 12px; color: var(--ink); font-weight: 800; font-size: 17px; }
.mnav-link:hover, .mnav-link.active { background: rgba(47, 232, 164, .12); color: var(--mint); text-decoration: none; }
.mnav-cta { background: var(--grad-main); color: #04382a !important; text-align: center; margin-top: 8px; box-shadow: var(--glow-main); }
/* Колокольчик */
.bell-wrap { position: relative; }
.bell-dot {
  position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px;
  padding: 0 5px; border-radius: 999px; background: var(--coral); color: #fff;
  font-size: 12px; font-weight: 900; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 3px var(--bg), 0 0 14px rgba(255, 93, 93, .8); animation: bell-pop 1.6s ease infinite;
}
@keyframes bell-pop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.bell-drop {
  position: absolute; right: 0; top: calc(100% + 12px); width: 330px; max-width: 86vw;
  background: rgba(13, 28, 23, .97); border: 1px solid var(--glass-brd); border-radius: var(--r);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow); overflow: hidden; z-index: 120;
}
.bell-head { padding: 13px 18px; font-weight: 900; border-bottom: 1px solid var(--line); }
.bell-list { max-height: 320px; overflow-y: auto; }
.notif { display: flex; gap: 12px; align-items: flex-start; padding: 12px 18px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 14.5px; }
.notif:last-child { border-bottom: none; }
.notif:hover { background: rgba(47, 232, 164, .1); text-decoration: none; }
.notif small { display: block; color: var(--muted); font-size: 12.5px; }

/* ---------- 4. Hero ---------- */
.hero { position: relative; padding: 70px 0 54px; overflow: clip; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 14px;
  padding: 9px 18px; border-radius: 999px; margin-bottom: 22px;
  background: var(--glass); border: 1px solid var(--glass-brd);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--glow-cool);
}
.hero-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 12px var(--aqua); animation: blink 1.8s ease infinite; }
@keyframes blink { 50% { opacity: .4; } }
.hero h1 { font-size: clamp(36px, 5.4vw, 62px); margin-bottom: 18px; }
.hero h1 .grad-text { filter: drop-shadow(0 3px 18px rgba(47, 232, 164, .35)); }
.hero-sub { font-size: 19px; color: var(--muted); max-width: 520px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-points { display: flex; gap: 22px; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; }
.hero-points li { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 15px; }
.hero-points .ic { color: var(--aqua); }
/* Визуал: стекло + конфетти + шары */
.hero-visual { position: relative; min-height: 460px; }
#confetti { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); pointer-events: none; }
.hero-card {
  position: relative; z-index: 2; padding: 34px 30px; text-align: center;
  transform: rotate(1.5deg); will-change: transform;
  background: var(--card); border: 1px solid var(--glass-brd); border-radius: var(--r);
}
.hero-card .big { font-family: var(--font-display); font-size: 64px; font-weight: 700; line-height: 1; background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 20px rgba(47, 232, 164, .4)); }
.hero-card p { margin: 8px 0 18px; color: var(--muted); font-weight: 700; }
.hero-chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 900; font-size: 14px; padding: 10px 18px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-brd);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow); animation: floaty 4.5s ease-in-out infinite;
}
.hero-chip .ic { color: var(--sun); }
.hero-chip.c1 { top: 6%; left: -4%; }
.hero-chip.c2 { bottom: 24%; right: -3%; animation-delay: -2s; }
.hero-chip.c2 .ic { color: var(--aqua); }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1.5deg); } }
/* Шары */
.balloon { position: absolute; z-index: 1; width: 74px; height: 104px; opacity: .95; animation: balloon-rise 7s ease-in-out infinite; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35)); }
.balloon i { display: block; width: 74px; height: 88px; border-radius: 50% 50% 50% 50% / 55% 55% 45% 45%; }
.balloon i::after { content: ""; display: block; width: 18px; height: 26px; margin: 2px auto 0; background: rgba(255, 255, 255, .35); border-radius: 50%; filter: blur(1px); }
.balloon::after { content: ""; display: block; width: 2px; height: 34px; margin: 0 auto; background: rgba(255, 255, 255, .4); }
.balloon.b1 { top: -24px; right: 12%; }
.balloon.b1 i { background: radial-gradient(circle at 32% 28%, #a7f3d0, #2fe8a4 70%); }
.balloon.b2 { bottom: -10px; left: 2%; width: 58px; animation-delay: -3s; }
.balloon.b2 i { width: 58px; height: 70px; background: radial-gradient(circle at 32% 28%, #9df0dd, #2ed3b7 70%); }
.balloon.b3 { top: 38%; right: -2%; width: 52px; animation-delay: -5s; }
.balloon.b3 i { width: 52px; height: 64px; background: radial-gradient(circle at 32% 28%, #bfe3ff, #4aa8ff 70%); }
@keyframes balloon-rise { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-22px) rotate(3deg); } }
/* Блобы */
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; z-index: 0; pointer-events: none; animation: blob-move 14s ease-in-out infinite alternate; }
.blob.b1 { width: 340px; height: 340px; background: rgba(47, 232, 164, .35); top: -80px; left: -100px; }
.blob.b2 { width: 300px; height: 300px; background: rgba(74, 168, 255, .3); bottom: -60px; right: -60px; animation-delay: -6s; }
@keyframes blob-move { to { transform: translate(40px, 30px) scale(1.12); } }
/* Статистика */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 52px; }
.stat { padding: 22px 16px; text-align: center; position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; top: 0; left: 20%; right: 20%; height: 3px; border-radius: 3px; background: var(--grad-main); box-shadow: 0 0 14px rgba(47, 232, 164, .8); }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(26px, 3vw, 38px); font-weight: 700; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-weight: 700; font-size: 14.5px; }

/* ---------- 5. Карточки услуг ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--glass-brd); border-radius: var(--r);
  overflow: hidden; position: relative; display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .3s ease, border-color .25s ease;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.card:hover { transform: translateY(-8px); border-color: rgba(47, 232, 164, .5); box-shadow: var(--shadow), var(--glow-main); }
/* Блик, пробегающий по карточке */
.card::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 45%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .14), transparent);
  transform: skewX(-18deg); transition: left .7s ease; pointer-events: none;
}
.card:hover::after { left: 130%; }
.card-img { aspect-ratio: 1/1; overflow: hidden; position: relative; display: block; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.07) rotate(.5deg); }
.card-body { padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-cat {
  align-self: flex-start; font-size: 12.5px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase;
  color: var(--aqua); background: rgba(46, 211, 183, .12); border: 1px solid rgba(46, 211, 183, .4);
  padding: 4px 12px; border-radius: 999px;
}
.card-body h3 { font-size: 21px; margin: 0; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--mint); }
.card-body p { color: var(--muted); font-size: 15.5px; margin: 0; flex: 1; }
.card-meta { display: flex; gap: 14px; color: var(--muted); font-size: 13.5px; font-weight: 700; }
.card-meta .ic { vertical-align: -3px; margin-right: 4px; color: var(--mint); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--sun); }
[data-theme="light"] .price { color: #0b7a5c; }

/* ---------- 6. Шаги + полосы ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.step {
  padding: 26px 18px; text-align: center; position: relative;
  background: var(--card); border: 1px solid var(--glass-brd); border-radius: var(--r);
  transition: transform .25s, box-shadow .3s, border-color .25s;
}
.step:hover { transform: translateY(-6px) rotate(-.5deg); border-color: rgba(46, 211, 183, .5); box-shadow: var(--glow-cool); }
.step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 50%;
  font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #fff;
  background: var(--grad); box-shadow: var(--glow-main);
}
.step b { display: block; font-size: 16.5px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }
.age-strip { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.age-chip {
  font-weight: 900; font-size: 15px; padding: 11px 22px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-brd); color: var(--ink);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .2s, box-shadow .25s, border-color .2s;
}
.age-chip:hover { transform: translateY(-3px) scale(1.04); border-color: var(--aqua); box-shadow: var(--glow-cool); text-decoration: none; color: var(--ink); }

/* ---------- 7. CTA-полосы ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: 28px; padding: 54px 48px;
  background: linear-gradient(120deg, #052e23, #0a4a3a 55%, #0b3a4a);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: var(--shadow), 0 0 80px -20px rgba(47, 232, 164, .22);
  display: grid; grid-template-columns: 1.4fr auto; gap: 30px; align-items: center;
}
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none;
}
.cta-band::before { width: 320px; height: 320px; background: rgba(47, 232, 164, .5); top: -140px; right: -80px; animation: blob-move 10s ease-in-out infinite alternate; }
.cta-band::after { width: 260px; height: 260px; background: rgba(46, 211, 183, .4); bottom: -140px; left: 30%; animation: blob-move 13s ease-in-out infinite alternate-reverse; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 10px; position: relative; z-index: 1; }
.cta-band p { color: rgba(255, 255, 255, .82); margin: 0; position: relative; z-index: 1; font-size: 18px; }
.cta-band .btn { position: relative; z-index: 1; }
.calc-teaser { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; padding: 34px 38px; }
.calc-teaser .c-ic {
  width: 76px; height: 76px; border-radius: 24px; display: flex; align-items: center; justify-content: center;
  background: var(--grad-cool); color: #06231d; box-shadow: var(--glow-cool); animation: floaty 5s ease-in-out infinite;
}
.calc-teaser h3 { font-size: 24px; margin-bottom: 4px; }
.calc-teaser p { color: var(--muted); margin: 0; }

/* ---------- 8. Отзывы / галерея / команда / акции ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review { padding: 26px; display: flex; flex-direction: column; gap: 12px; background: var(--card); border: 1px solid var(--glass-brd); border-radius: var(--r); transition: transform .25s, box-shadow .3s; }
.review:hover { transform: translateY(-6px); box-shadow: var(--glow-cool); }
.review-head { display: flex; align-items: center; gap: 13px; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #fff;
  background: var(--grad); box-shadow: var(--glow-main);
}
.review-head b { display: block; }
.review-head small { color: var(--muted); }
.stars { color: var(--sun); letter-spacing: 2px; display: inline-flex; gap: 2px; }
.stars .star { opacity: .3; display: inline-flex; }
.stars .star.on { opacity: 1; filter: drop-shadow(0 0 6px rgba(255, 201, 60, .7)); }
.rating { display: flex; align-items: center; gap: 10px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; grid-auto-flow: dense; gap: 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--glass-brd); }
.g-item { position: relative; overflow: hidden; cursor: zoom-in; outline: 1px solid rgba(255,255,255,.07); outline-offset: -1px; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.g-item:hover img { transform: scale(1.08); }
.g-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px;
  background: linear-gradient(transparent, rgba(4, 12, 9, .88));
  color: #fff; font-weight: 800; font-size: 14.5px;
  transform: translateY(8px); opacity: 0; transition: opacity .3s, transform .3s;
}
.g-item:hover .g-cap { opacity: 1; transform: none; }
.lightbox { position: fixed; inset: 0; z-index: 400; background: var(--overlay); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 30px; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--r); box-shadow: var(--shadow); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.member { text-align: center; padding: 28px 20px; background: var(--card); border: 1px solid var(--glass-brd); border-radius: var(--r); transition: transform .25s, box-shadow .3s; }
.member:hover { transform: translateY(-6px); box-shadow: var(--glow-main); }
.member img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 3px solid var(--mint); box-shadow: var(--glow-main); }
.member b { display: block; font-size: 18px; }
.member span { color: var(--mint); font-weight: 800; font-size: 14px; }
.member p { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.actions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.action-card { padding: 0; overflow: hidden; }
.action-card img { height: 170px; width: 100%; object-fit: cover; }
.action-card .ab { padding: 22px; }
.until { display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 800; color: var(--coral); background: rgba(255, 93, 93, .12); border: 1px solid rgba(255, 93, 93, .4); padding: 5px 14px; border-radius: 999px; }

/* ---------- 9. FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--glass-brd); border-radius: var(--r-sm); overflow: hidden; transition: border-color .25s, box-shadow .3s; }
.faq-item.open { border-color: rgba(47, 232, 164, .5); box-shadow: var(--glow-main); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; background: none; border: none; color: var(--ink); font-family: var(--font-body); font-weight: 900; font-size: 17px; text-align: left; cursor: pointer; }
.faq-q .ic { flex: none; color: var(--mint); transition: transform .3s; }
.faq-item.open .faq-q .ic { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* ---------- 10. Внутренние страницы ---------- */
.page-hero { text-align: center; padding: 56px 0 10px; position: relative; }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 50px); }
.page-hero p { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 auto; }
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.c-card { display: flex; gap: 16px; align-items: center; padding: 20px 22px; background: var(--card); border: 1px solid var(--glass-brd); border-radius: var(--r-sm); transition: transform .2s, box-shadow .3s; }
.c-card:hover { transform: translateX(6px); box-shadow: var(--glow-main); }
.c-card .c-ic { width: 52px; height: 52px; flex: none; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--grad-main); color: #04382a; }
.c-card b { display: block; font-size: 18px; }
.c-card small { color: var(--muted); }
.price-table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border-radius: var(--r); border: 1px solid var(--glass-brd); background: var(--card); }
.price-table th, .price-table td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table th { font-family: var(--font-display); font-size: 15px; background: rgba(47, 232, 164, .1); }
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover td { background: rgba(47, 232, 164, .06); }
/* Калькулятор */
.calc-box { padding: 36px; }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; }
.range-row { margin-bottom: 20px; }
.range-row label { display: flex; justify-content: space-between; font-weight: 800; margin-bottom: 8px; }
.range-val { color: var(--mint); font-weight: 900; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--mint), var(--sun)); box-shadow: inset 0 1px 3px rgba(0,0,0,.35); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -7px; border-radius: 50%; background: #fff; border: 3px solid var(--mint); box-shadow: 0 2px 10px rgba(47,232,164,.6); transition: transform .15s; }
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 99px; background: rgba(255,255,255,.15); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--mint), var(--sun)); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--mint); box-shadow: 0 2px 10px rgba(47,232,164,.6); }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.check-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-brd); font-weight: 800; font-size: 14.5px; cursor: pointer; transition: all .2s; }
.check-chip input { accent-color: var(--mint); width: 17px; height: 17px; }
.check-chip:has(input:checked) { border-color: var(--mint); background: rgba(47, 232, 164, .14); box-shadow: var(--glow-main); }
.calc-result { background: rgba(0, 0, 0, .18); border: 1px dashed rgba(47, 232, 164, .5); border-radius: var(--r-sm); padding: 24px; position: sticky; top: 100px; }
[data-theme="light"] .calc-result { background: rgba(47, 232, 164, .07); }
.calc-lines { font-size: 15px; margin-bottom: 14px; }
.calc-lines div { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dotted var(--line); }
.calc-total { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--sun); }
[data-theme="light"] .calc-total { color: #0b7a5c; }
.order-card { margin-top: 26px; padding: 30px; }

/* ---------- 11. Формы ---------- */
.form label { display: block; font-weight: 800; font-size: 15px; margin-bottom: 14px; }
.form input[type="text"], .form input[type="tel"], .form input[type="password"],
.form input[type="email"], .form input[type="number"], .form input[type="date"],
.form select, .form textarea {
  width: 100%; margin-top: 7px; padding: 13px 17px; border-radius: var(--r-sm);
  border: 1px solid var(--glass-brd); background: var(--input); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; transition: border-color .2s, box-shadow .25s;
}
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 4px rgba(47, 232, 164, .2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.consent { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 13.5px !important; color: var(--muted); }
.consent input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--mint); flex: none; }
.form-note { margin-top: 12px; font-weight: 800; min-height: 24px; }
.form-note.ok { color: var(--aqua); }
.form-note.err, .form-note.e { color: var(--coral); }
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.filters input, .filters select {
  padding: 11px 16px; border-radius: 999px; border: 1px solid var(--glass-brd);
  background: var(--glass); color: var(--ink); font-family: var(--font-body); font-weight: 700; font-size: 15px;
}
.filters input:focus, .filters select:focus { outline: none; border-color: var(--mint); }
.auth-wrap { max-width: 480px; margin: 30px auto; padding: 38px; }

/* ---------- 12. Подвал ---------- */
.footer { margin-top: 70px; border-top: 1px solid var(--glass-brd); background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 54px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 34px; }
.footer-grid a { color: var(--muted); display: inline-block; }
.footer-grid a:hover { color: var(--mint); }
.f-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-bottom: 14px; }
.footer-grid > div > a { display: block; margin-bottom: 9px; }
.f-contact { display: flex !important; align-items: center; gap: 10px; margin-bottom: 11px; }
.f-contact .ic { color: var(--mint); flex: none; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.soc {
  width: 48px; height: 48px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; border: none; flex: none;
  transition: transform .2s ease, box-shadow .25s ease, filter .2s ease;
}
.soc svg { display: block; } /* убирает baseline-сдвиг иконки */
.soc-tg { background: linear-gradient(135deg, #37aee2, #1e96c8); box-shadow: 0 6px 20px -4px rgba(55, 174, 226, .55); }
.soc-wa { background: linear-gradient(135deg, #43d17c, #1da851); box-shadow: 0 6px 20px -4px rgba(67, 209, 124, .55); }
.soc-ph { background: var(--grad-main); box-shadow: var(--glow-main); color: #04382a !important; }
.soc-ml { background: var(--grad-cool); box-shadow: var(--glow-cool); }
.soc:hover { transform: translateY(-3px) scale(1.05); text-decoration: none; filter: brightness(1.08); }
.f-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 22px; margin-top: 36px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
/* Плавающие мессенджеры */
.float-msgr { position: fixed; left: 22px; bottom: 22px; z-index: 150; display: flex; flex-direction: column; gap: 10px; }
.fm {
  width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: var(--shadow); transition: transform .2s;
  animation: floaty 5s ease-in-out infinite;
}
.fm:hover { transform: scale(1.1); }
.fm-tg { background: linear-gradient(135deg, #37aee2, #1e96c8); animation-delay: -2.5s; }
.fm-wa { background: linear-gradient(135deg, #43d17c, #1da851); }

/* ---------- 13. Онлайн-чат ---------- */
.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 150;
  width: 62px; height: 62px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--grad-main); color: #04382a; box-shadow: var(--glow-main);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s;
}
.chat-fab:hover { transform: scale(1.08) rotate(-4deg); }
.chat-fab-pulse { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--mint); animation: fab-ping 2s ease-out infinite; }
@keyframes fab-ping { from { transform: scale(1); opacity: .9; } to { transform: scale(1.55); opacity: 0; } }
.chat-fab-badge {
  position: absolute; top: -4px; right: -4px; min-width: 24px; height: 24px; padding: 0 6px;
  border-radius: 999px; background: var(--coral); color: #fff; font-size: 13px; font-weight: 900;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 0 14px rgba(255, 93, 93, .8);
}
.chat-win {
  position: fixed; right: 22px; bottom: 96px; z-index: 160; width: 380px; max-width: calc(100vw - 44px);
  height: 540px; max-height: calc(100vh - 130px); display: flex; flex-direction: column; overflow: hidden;
  background: var(--glass); border: 1px solid var(--glass-brd); border-radius: 24px;
  backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: var(--shadow); animation: chat-in .3s ease;
}
@keyframes chat-in { from { transform: translateY(20px) scale(.97); opacity: 0; } }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: var(--grad); color: #fff; }
.chat-agent { display: flex; align-items: center; gap: 11px; }
.agent-dot { width: 12px; height: 12px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #4ade80; animation: blink 1.8s infinite; flex: none; }
.chat-agent b { display: block; font-size: 15.5px; }
.chat-agent small { opacity: .9; font-size: 12.5px; }
.chat-head-btns { display: flex; gap: 8px; }
.chat-head .icon-btn { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .3); color: #fff; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 85%; padding: 11px 15px; border-radius: 16px; font-size: 15px; line-height: 1.5; animation: chat-in .25s ease; }
.msg.bot { align-self: flex-start; background: var(--glass); border: 1px solid var(--glass-brd); border-bottom-left-radius: 5px; }
.msg.user { align-self: flex-end; background: var(--grad-main); color: #04382a; font-weight: 700; border-bottom-right-radius: 5px; }
.msg .sender { display: block; font-size: 12px; opacity: .75; font-weight: 800; margin-bottom: 2px; }
.chat-quick { display: flex; gap: 8px; padding: 0 16px 10px; overflow-x: auto; }
.chat-quick button {
  flex: none; font-family: var(--font-body); font-weight: 800; font-size: 13px; padding: 8px 15px;
  border-radius: 999px; cursor: pointer; background: var(--glass); border: 1px solid var(--mint); color: var(--mint);
  transition: all .2s;
}
.chat-quick button:hover { background: var(--mint); color: #fff; }
.chat-form { display: flex; gap: 9px; padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--glass-brd); background: var(--input); color: var(--ink); font-family: var(--font-body); font-size: 15px; }
.chat-form input:focus { outline: none; border-color: var(--mint); }

/* ---------- 14. Модалки (промо + заявка) ---------- */
.promo-overlay {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: var(--overlay); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: overlay-in .3s ease;
}
@keyframes overlay-in { from { opacity: 0; } }
.promo-modal {
  position: relative; width: 480px; max-width: 100%; max-height: calc(100vh - 60px); overflow-y: auto;
  padding: 44px 40px 34px; text-align: center;
  background: var(--glass); border: 1px solid var(--glass-brd); border-radius: 28px;
  backdrop-filter: blur(28px) saturate(170%); -webkit-backdrop-filter: blur(28px) saturate(170%);
  box-shadow: var(--shadow), 0 0 100px -20px rgba(47, 232, 164, .55);
  animation: modal-pop .38s cubic-bezier(.2, 1.4, .4, 1);
}
@keyframes modal-pop { from { transform: scale(.85) translateY(24px); opacity: 0; } }
.promo-modal::before { content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 4px; border-radius: 4px; background: var(--grad-main); box-shadow: 0 0 20px rgba(47, 232, 164, .9); }
.promo-x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--glass-brd); background: var(--glass); color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.promo-x:hover { background: var(--coral); border-color: var(--coral); color: #fff; transform: rotate(90deg); }
.promo-gift {
  width: 92px; height: 92px; margin: 0 auto 16px; border-radius: 28px;
  display: flex; align-items: center; justify-content: center; color: #04382a;
  background: var(--grad-main); box-shadow: var(--glow-main);
  animation: gift-bounce 2.4s ease-in-out infinite;
}
@keyframes gift-bounce { 0%, 100% { transform: rotate(-4deg) scale(1); } 50% { transform: rotate(4deg) scale(1.06); } }
.promo-modal h3 { font-size: 27px; margin-bottom: 8px; }
.promo-codebox {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 20px 0 12px; padding: 14px 14px 14px 22px; border-radius: var(--r-sm);
  background: rgba(0, 0, 0, .25); border: 2px dashed rgba(47, 232, 164, .6);
}
[data-theme="light"] .promo-codebox { background: rgba(47, 232, 164, .08); }
.promo-codebox code { font-family: var(--font-display); font-weight: 700; font-size: 23px; letter-spacing: .06em; color: var(--sun); }
[data-theme="light"] .promo-codebox code { color: #0b7a5c; }
.promo-timer { font-size: 15px; color: var(--muted); margin-bottom: 20px; }
.promo-timer b { color: var(--coral); font-size: 18px; font-variant-numeric: tabular-nums; }
.promo-modal .btn-lg { width: 100%; margin-bottom: 12px; }
.promo-decline { background: none; border: none; color: var(--muted); font-size: 14px; cursor: pointer; font-family: var(--font-body); }
.promo-decline:hover { color: var(--ink); text-decoration: underline; }
.order-modal { text-align: left; }
.order-modal h3 { text-align: center; }
.order-modal .muted { text-align: center; }

/* ---------- 15. Кабинет и админка ---------- */
.cab-grid { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.cab-side { padding: 26px; text-align: center; position: sticky; top: 100px; }
.cab-ava { width: 92px; height: 92px; margin: 0 auto 12px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 34px; font-weight: 700; color: #fff; background: var(--grad); box-shadow: var(--glow-main); }
.cab-nav { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
.cab-nav a, .cab-nav button { text-align: left; padding: 11px 16px; border-radius: 12px; color: var(--ink); font-weight: 800; background: none; border: none; cursor: pointer; font-size: 15.5px; font-family: var(--font-body); }
.cab-nav a:hover, .cab-nav button:hover, .cab-nav a.active { background: rgba(47, 232, 164, .14); color: var(--mint); text-decoration: none; }
.panel { padding: 28px; margin-bottom: 22px; }
.panel h3 { margin-bottom: 16px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.kpi { padding: 20px; text-align: center; }
.kpi b { display: block; font-family: var(--font-display); font-size: 30px; color: var(--sun); }
[data-theme="light"] .kpi b { color: #0b7a5c; }
.kpi span { color: var(--muted); font-weight: 700; font-size: 14px; }
.bonus-big { font-family: var(--font-display); font-size: 44px; font-weight: 700; color: var(--aqua); text-shadow: 0 0 30px rgba(46, 211, 183, .5); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tab { padding: 10px 20px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-brd); color: var(--ink); font-weight: 800; font-size: 14.5px; cursor: pointer; font-family: var(--font-body); }
.tab.active, .tab:hover { border-color: var(--mint); color: var(--mint); box-shadow: var(--glow-main); }
.table-wrap { overflow-x: auto; border-radius: var(--r-sm); border: 1px solid var(--glass-brd); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: rgba(47, 232, 164, .07); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(47, 232, 164, .05); }
.badge { display: inline-block; padding: 4px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.b-new { background: rgba(74, 168, 255, .16); color: var(--sky); border: 1px solid rgba(74, 168, 255, .5); }
.b-paid { background: rgba(46, 211, 183, .14); color: var(--aqua); border: 1px solid rgba(46, 211, 183, .5); }
.b-done { background: rgba(255, 201, 60, .14); color: var(--sun); border: 1px solid rgba(255, 201, 60, .5); }
.b-cancelled { background: rgba(255, 93, 93, .12); color: var(--coral); border: 1px solid rgba(255, 93, 93, .45); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.dot.on { background: #4ade80; box-shadow: 0 0 10px #4ade80; }
.dot.off { background: var(--muted); opacity: .5; }
.thumb { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.mini { font-size: 13px; color: var(--muted); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-form { display: grid; gap: 12px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 140px; padding: 10px 4px 0; }
.bars i { flex: 1; border-radius: 8px 8px 0 0; background: var(--grad-main); min-height: 6px; position: relative; }
.bars i:hover::after { content: attr(data-v); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 8px; white-space: nowrap; }
.manager { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--r-sm); background: rgba(46, 211, 183, .08); border: 1px solid rgba(46, 211, 183, .35); margin-bottom: 14px; }

/* ---------- 16. AOS-страховка ---------- */
.aos-failed [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ---------- 17. Адаптив ---------- */
@media (max-width: 1280px) {
  .h-phone small { display: none; }
  .h-phone b { font-size: 15.5px; }
}
@media (max-width: 1360px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .header-actions { justify-content: flex-end; }
}
@media (max-width: 1120px) {  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { min-height: 400px; max-width: 560px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .cards, .reviews-grid, .actions-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 40px 32px; }
  .calc-grid, .contact-grid { grid-template-columns: 1fr; }
  .calc-result { position: static; }
  .cab-grid { grid-template-columns: 1fr; }
  .cab-side { position: static; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  section { padding: 44px 0; }
  .header-in { gap: 10px; min-height: 68px; }
  .logo-badge { width: 152px; height: 40px; border-radius: 13px; }
  .logo-text { font-size: 22px; }
  .logo-tag { font-size: 9.5px; }
  .h-phone { padding: 8px; }
  .h-phone b, .h-phone small { display: none; } /* на телефоне — только иконка трубки */
  .header-actions .btn { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cards, .reviews-grid, .actions-grid, .gallery, .team-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-chip.c1 { left: 0; }
  .hero-chip.c2 { right: 0; }
  .float-msgr { left: 14px; bottom: 14px; }
  .chat-fab { right: 14px; bottom: 14px; }
  .chat-win { right: 10px; left: 10px; width: auto; bottom: 88px; }
  .to-top { right: 14px; bottom: 88px; }
  .auth-wrap, .calc-box, .panel { padding: 24px 18px; }
  .form-row { grid-template-columns: 1fr; }
  .calc-teaser { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .promo-codebox { flex-direction: column; }
  .promo-codebox code { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 18. Летающие 3D-элементы (фон праздника на всём сайте) ---------- */
.fly-layer { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.fly { position: absolute; display: block; will-change: transform; }
@keyframes fly-a { 0%, 100% { transform: translate(0, 0) rotate(-6deg); } 50% { transform: translate(26px, -44px) rotate(8deg); } }
@keyframes fly-b { 0%, 100% { transform: translate(0, 0) rotate(5deg) scale(1); } 50% { transform: translate(-36px, -30px) rotate(-9deg) scale(1.08); } }
@keyframes fly-c { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 33% { transform: translate(20px, 26px) rotate(10deg); } 66% { transform: translate(-16px, -22px) rotate(-8deg); } }
/* Шары */
.fly-balloon { width: 54px; height: 72px; border-radius: 50% 50% 50% 50% / 55% 55% 45% 45%; opacity: .85; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .35)); }
.fly-balloon::before { content: ""; display: block; width: 14px; height: 20px; margin: 8px 0 0 10px; background: rgba(255, 255, 255, .45); border-radius: 50%; filter: blur(1px); }
.fly-balloon::after { content: ""; display: block; width: 2px; height: 32px; margin: 2px auto 0; background: linear-gradient(rgba(255, 255, 255, .55), transparent); }
.fb1 { left: 5%; top: 20%; background: radial-gradient(circle at 32% 28%, #a7f3d0, #2fe8a4 72%); animation: fly-a 12s ease-in-out infinite; }
.fb2 { right: 4%; top: 32%; width: 44px; height: 60px; background: radial-gradient(circle at 32% 28%, #9df0dd, #2ed3b7 72%); animation: fly-b 14s ease-in-out infinite; }
.fb3 { left: 11%; bottom: 10%; width: 40px; height: 54px; background: radial-gradient(circle at 32% 28%, #bfe3ff, #4aa8ff 72%); animation: fly-c 11s ease-in-out infinite; }
/* Звёзды */
.fly-star { width: 48px; height: 48px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4 6.1 20.5l1.2-6.5L2.5 9.4l6.6-.9z' fill='%23ffc93c'/%3E%3C/svg%3E") center/contain no-repeat; filter: drop-shadow(0 0 12px rgba(255, 201, 60, .8)); }
.fs1 { right: 9%; top: 11%; animation: fly-b 10s ease-in-out infinite; }
.fs2 { left: 3%; top: 57%; width: 34px; height: 34px; filter: hue-rotate(140deg) drop-shadow(0 0 10px rgba(46, 211, 183, .8)); animation: fly-a 13s ease-in-out infinite; }
/* Подарок */
.fly-gift { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, #2fe8a4, #ff5d5d); box-shadow: 0 10px 24px rgba(255, 93, 93, .45); opacity: .9; }
.fly-gift::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 12px; transform: translateX(-50%); background: rgba(255, 255, 255, .88); border-radius: 3px; }
.fly-gift::after { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 12px; transform: translateY(-50%); background: rgba(255, 255, 255, .88); border-radius: 3px; }
.fg1 { right: 6%; bottom: 16%; animation: fly-c 15s ease-in-out infinite; }
/* Кольцо */
.fly-ring { width: 66px; height: 66px; border-radius: 50%; border: 11px solid rgba(46, 211, 183, .7); box-shadow: 0 0 26px rgba(46, 211, 183, .5), inset 0 0 16px rgba(46, 211, 183, .4); }
.fr1 { left: 42%; bottom: 5%; animation: fly-a 16s ease-in-out infinite; }
/* Пузыри */
.fly-bubble { border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .55), rgba(255, 255, 255, .07) 62%); border: 1px solid rgba(255, 255, 255, .4); }
.fbub1 { width: 58px; height: 58px; right: 16%; bottom: 8%; animation: fly-b 12s ease-in-out infinite; }
.fbub2 { width: 34px; height: 34px; left: 24%; top: 10%; animation: fly-c 9s ease-in-out infinite; }
/* Конфетти */
.fly-confetti { width: 13px; height: 22px; border-radius: 4px; }
.fc1 { left: 30%; top: 64%; background: #2fe8a4; box-shadow: 0 0 10px rgba(47, 232, 164, .8); animation: fly-c 8s ease-in-out infinite; }
.fc2 { right: 24%; top: 22%; background: #2ed3b7; box-shadow: 0 0 10px rgba(46, 211, 183, .8); animation: fly-a 10s ease-in-out infinite; }
.fc3 { left: 60%; bottom: 22%; background: #4aa8ff; box-shadow: 0 0 10px rgba(74, 168, 255, .8); animation: fly-b 11s ease-in-out infinite; }
/* Парящие полупрозрачные иконки праздника */
.fly-ic { background-position: center; background-size: contain; background-repeat: no-repeat; opacity: .45; }
.fi-note { width: 52px; height: 52px; left: 22%; top: 44%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z' fill='%23ffc93c'/%3E%3C/svg%3E"); filter: drop-shadow(0 0 10px rgba(255, 201, 60, .5)); animation: fly-b 13s ease-in-out infinite; }
.fi-heart { width: 46px; height: 46px; right: 14%; top: 58%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z' fill='%23ff5d5d'/%3E%3C/svg%3E"); filter: drop-shadow(0 0 10px rgba(255, 93, 93, .5)); animation: fly-c 10s ease-in-out infinite; }
.fi-spark { width: 42px; height: 42px; left: 46%; top: 9%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.4 7.6L22 12l-7.6 2.4L12 22l-2.4-7.6L2 12l7.6-2.4z' fill='%232ed3b7'/%3E%3C/svg%3E"); filter: drop-shadow(0 0 10px rgba(46, 211, 183, .5)); animation: fly-a 12s ease-in-out infinite; }
.fi-donut { width: 62px; height: 62px; right: 30%; bottom: 6%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='8' fill='none' stroke='%234aa8ff' stroke-width='4'/%3E%3C/svg%3E"); filter: drop-shadow(0 0 10px rgba(74, 168, 255, .5)); animation: fly-b 15s ease-in-out infinite; }
@media (max-width: 680px) { .fly-hide-sm { display: none; } }

/* ---------- Параллакс, каскад hero, счётчики: ванильный JS + CSS (JS — в main.js) ---------- */
.hero-card { transition: transform .35s ease-out; } /* координаты ставит main.js */
@keyframes heroUp { from { opacity: 0; transform: translateY(36px); } }
.hero-in { animation: heroUp .9s cubic-bezier(.2, .7, .2, 1) both; }
/* Текстовый логотип: ноль килобайт, виден мгновенно */
.logo-text {
  font-family: var(--font-display); font-weight: 700; font-size: 27px;
  line-height: 1; letter-spacing: .01em; white-space: nowrap; text-transform: uppercase;
  background: linear-gradient(100deg, #5ff2b8, #2ed3b7 55%, #ffc93c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 14px rgba(47, 232, 164, .45));
  transition: filter .25s ease;
}
.logo:hover .logo-text { filter: drop-shadow(0 3px 22px rgba(47, 232, 164, .75)); }
@media (prefers-reduced-motion: reduce) {
  .hero-in { animation: none; }
  .hero-card { transition: none; }
}

/* ---------- Патч 01: чат, статистика, уведомления, визиты ---------- */
.msg small { display: block; margin-top: 5px; font-size: 11.5px; opacity: .75; font-weight: 400; }
.stat { transition: transform .25s ease, box-shadow .3s ease; }
.stat:hover { transform: translateY(-6px); box-shadow: var(--glow-main); }
.stat::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60px; left: -90px; background: linear-gradient(100deg, transparent, rgba(255,255,255,.13), transparent); transform: skewX(-20deg); animation: sheen 5.5s ease-in-out infinite; pointer-events: none; }
@keyframes sheen { 0%, 55% { left: -90px; } 100% { left: 115%; } }
.notif > span:first-child { flex: none; color: var(--mint); margin-top: 2px; }
.notif > span:first-child .ic { display: block; }
.bell-item { display: block; padding: 12px 18px 12px 34px; position: relative; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 14px; line-height: 1.45; }
.bell-item:last-child { border-bottom: none; }
.bell-item:hover { background: rgba(47, 232, 164, .1); text-decoration: none; }
.bell-item b { position: absolute; left: 16px; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px rgba(47, 232, 164, .8); }
.bell-item small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.vlog { display: flex; flex-direction: column; font-size: 14px; }
.vlog div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dotted var(--line); }
.vlog div:last-child { border-bottom: none; }
.vlog time { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Патч 02: iOS-стекло, мятные свечения, новые иконки фона ---------- */
.btn-ghost {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 24px -12px rgba(0, 0, 0, .5);
}
.btn-ghost:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.3), var(--glow-main); }
.btn-primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), var(--glow-main); }
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 12px 44px -6px rgba(47, 232, 164, .8); }
.glass { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), var(--shadow); }
.grad-text { filter: drop-shadow(0 0 22px rgba(47, 232, 164, .35)); }
.hero h1 { text-shadow: 0 0 60px rgba(47, 232, 164, .25); }
.section-head h2 { text-shadow: 0 0 50px rgba(47, 232, 164, .2); }
.eyebrow { box-shadow: 0 0 24px -6px rgba(47, 232, 164, .6), inset 0 1px 0 rgba(255,255,255,.15); }
.card:hover { box-shadow: var(--shadow), 0 0 40px -8px rgba(47, 232, 164, .55); }
.stat:hover { box-shadow: 0 0 40px -8px rgba(47, 232, 164, .6); }
.nav-link.active { text-shadow: 0 0 18px rgba(47, 232, 164, .7); }
.header { box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 10px 40px -20px rgba(47, 232, 164, .4); }
a:hover { text-shadow: 0 0 14px rgba(47, 232, 164, .5); }
.fi-cake { width: 50px; height: 50px; left: 8%; top: 62%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 21v-8a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8M4 21h16M12 11v-2M12 5h.01M8 5h.01M16 5h.01M7 5a5 5 0 0 1 10 0' fill='none' stroke='%23ffc93c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); filter: drop-shadow(0 0 10px rgba(255, 201, 60, .5)); animation: fly-c 14s ease-in-out infinite; }
.fi-party { width: 46px; height: 46px; right: 6%; top: 12%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 21 13 3l8 8-12 10H5z' fill='none' stroke='%23ff5d5d' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='M13 3l-2-1M17 7l2 2M20 4l1-2M9 17l-2 1M6 13 4 12' stroke='%23ff5d5d' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); filter: drop-shadow(0 0 10px rgba(255, 93, 93, .5)); animation: fly-a 11s ease-in-out infinite; }

/* ---------- Патч 03: квадрат каталога, мозаика, карусель отзывов ---------- */
.card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 60%, rgba(4,12,9,.5)); pointer-events: none; }
.card-img .card-cat { position: absolute; top: 14px; left: 14px; z-index: 2; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.g-item:nth-child(8n+1) { grid-column: span 2; grid-row: span 2; }
.g-item:nth-child(8n+6) { grid-column: span 2; }
.g-item:hover { outline-color: rgba(47,232,164,.5); z-index: 2; }
.rev-carousel { position: relative; }
.rev-track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 6px 20px; scrollbar-width: none; }
.rev-track::-webkit-scrollbar { display: none; }
.rev-track .review { flex: 0 0 min(380px, 86vw); scroll-snap-align: start; margin: 0; }
.rev-nav { display: flex; gap: 10px; justify-content: center; }
.rev-arrow { width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: transform .2s, box-shadow .25s; }
.rev-arrow:hover { transform: scale(1.08); box-shadow: var(--glow-main); }
.rev-prev svg { transform: rotate(180deg); }
.rev-dots { display: flex; gap: 8px; justify-content: center; margin-top: 14px; min-height: 8px; }
.rev-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.22); transition: background .25s, box-shadow .25s; }
.rev-dots i.on { background: var(--mint); box-shadow: 0 0 10px rgba(47,232,164,.8); }

/* ---------- Патч 04: спокойный редизайн — меньше мяты, контрастные полосы ---------- */
.hero h1, .section-head h2 { text-shadow: none; }
.grad-text { filter: none; }
a:hover { text-shadow: none; }
.nav-link.active { text-shadow: none; }
.header { box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 10px 30px -10px rgba(47, 232, 164, .5); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .35); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 30px -12px rgba(0, 0, 0, .5); }
.card:hover { box-shadow: var(--shadow); border-color: var(--glass-brd); }
.stat:hover { box-shadow: var(--shadow); }
.eyebrow { box-shadow: inset 0 1px 0 rgba(255,255,255,.15); }
.nav::-webkit-scrollbar { display: none; }
.nav-link:first-child { margin-left: auto; }
.nav-link:last-child { margin-right: auto; }
/* Контрастные полосы между блоками */
.band { border-top: 1px solid var(--band-line); border-bottom: 1px solid var(--band-line); }
[data-theme="dark"] .band { background: #0e1d18; background-image: radial-gradient(640px 220px at 50% 0%, rgba(47,232,164,.06), transparent); }
[data-theme="light"] .band { background: #26302c; color: #f0f7f4; --ink: #f0f7f4; --muted: #a9c0b6; --card: rgba(255,255,255,.07); --glass: rgba(255,255,255,.07); --glass-brd: rgba(255,255,255,.16); --line: rgba(255,255,255,.14); --input: rgba(0,0,0,.3); --link: #7de9bd; }
/* Кнопки соцсетей: единый размер глифа */
.soc .ic, .fm .ic { width: 24px; height: 24px; }
/* Страница услуги: квадратное фото + текст рядом */
.svc-top { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: 22px; align-items: start; margin-bottom: 26px; }
.svc-photo { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 22px; border: 1px solid var(--glass-brd); display: block; }
@media (max-width: 680px) { .svc-top { grid-template-columns: 1fr; } }

/* ---------- Патч 05: анти-наложение, категории, инлайн-правка ---------- */
.svc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; align-items: start; }
@media (max-width: 1020px) { .svc-grid { grid-template-columns: 1fr; } }
.calc-result.static { position: static; }
.cat-pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 20px; }
.is-admin .ed { display: inline-block; min-width: 1em; cursor: text; border-radius: 4px; outline: 1px dashed rgba(47,232,164,.55); outline-offset: 3px; transition: background .2s; }
.is-admin .ed:hover { background: rgba(47,232,164,.12); }
.is-admin .ed:focus { outline: 2px solid var(--mint); background: rgba(47,232,164,.1); }
.ed-toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 500; background: #0e1f1a; color: #7de9bd; border: 1px solid rgba(47,232,164,.5); padding: 10px 20px; border-radius: 999px; font-weight: 800; font-size: 14.5px; box-shadow: var(--shadow); white-space: nowrap; }

/* ---------- Патч 06: видимость, адаптив, правка строк, ресайз ---------- */
/* Выпадающие списки: тёмный текст на белом — всегда читаются */
option { color: #12332a; background: #fff; }
/* Светлая тема: у уведомлений белый фон */
[data-theme="light"] .bell-drop { background: rgba(255, 255, 255, .98); }
/* Соцкнопки: глиф строго по центру, без обрезки */
.soc { line-height: 0; }
.soc svg, .fm svg { flex: none; overflow: visible; }
/* Глобальная страховка от горизонтального сдвига на телефонах (clip не ломает sticky) */
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
/* Админ видит подписи фото всегда — чтобы править */
.is-admin .g-cap { opacity: 1; transform: none; }
/* Инлайн-правка строк БД — как у текстов */
.is-admin .edr { display: inline-block; min-width: 1em; cursor: text; border-radius: 4px; outline: 1px dashed rgba(255,201,60,.65); outline-offset: 3px; transition: background .2s; }
.is-admin .edr:hover { background: rgba(255,201,60,.14); }
.is-admin .edr:focus { outline: 2px solid var(--sun); background: rgba(255,201,60,.1); }
/* Ручки изменения размера (ставит JS, только у админа) */
.rz-handle { position: absolute; right: 10px; bottom: 10px; z-index: 6; width: 30px; height: 30px; border-radius: 10px; border: 1px solid rgba(47,232,164,.6); background: rgba(4,12,9,.78); color: #7de9bd; cursor: nwse-resize; display: flex; align-items: center; justify-content: center; touch-action: none; padding: 0; }
.rz-handle:hover { background: rgba(47,232,164,.25); }
@media (max-width: 1500px) { .header-actions .btn { display: none; } }
@media (max-width: 680px) {
  .cta-band { grid-template-columns: 1fr; padding: 34px 24px; text-align: center; }
  .cta-band .row { justify-content: center; flex-wrap: wrap; }
  .contact-grid, .calc-grid { grid-template-columns: 1fr; }
  .admin-form { grid-template-columns: 1fr !important; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .promo-modal { padding: 36px 22px 28px; }
  .filters select { max-width: 100%; }
}

/* ---------- Патч 08: каретка печати, картинки соцкнопок ---------- */
.tw-caret { display: inline-block; width: 2px; height: 1em; background: var(--mint); margin-left: 4px; vertical-align: -2px; animation: tw-blink .7s steps(1) infinite; }
@keyframes tw-blink { 50% { opacity: 0; } }
.soc img, .fm img { width: 24px; height: 24px; object-fit: contain; }

/* ---------- Патч 10: мобильная версия, почта, отметки сохранения ---------- */
html, body { overflow-x: hidden; overflow-x: clip; } /* страницу никогда не уносит вбок */
.f-contact, .mnav-link { overflow-wrap: anywhere; } /* длинные телефоны и ссылки не рвут вёрстку */
.mnav-auth { display: flex; gap: 10px; margin-top: 12px; }
.mnav-auth .btn { flex: 1; justify-content: center; text-align: center; }
.mnav-phone { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; font-weight: 900; color: var(--mint); font-size: 18px; }
.ed-ok { background: rgba(47, 232, 164, .3) !important; outline: 2px solid var(--mint) !important; }
@media (max-width: 680px) {
  .grad-text { white-space: normal; } /* длинный заголовок больше не раздвигает экран */
  .h-phone { display: none; } /* телефон переехал в мобильное меню — шапка влезает */
  .mnav { padding: 12px 16px 20px; }
}

/* ---------- Патч 11: иконки кнопок связи строго по центру ---------- */
.soc, .fm {
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 0; overflow: hidden; /* ничего не торчит за края кнопки */
}
.soc > img, .soc > svg, .fm > img, .fm > svg {
  width: 24px; height: 24px; flex: none; display: block; margin: auto; border-radius: 6px;
}

/* ---------- Патч 12: меню админки, история, бэкапы ---------- */
.adm-wrap { display: grid; grid-template-columns: 232px 1fr; gap: 22px; align-items: start; }
.adm-menu { position: sticky; top: 14px; display: flex; flex-direction: column; gap: 14px; background: var(--glass); border: 1px solid var(--glass-brd); border-radius: var(--r); padding: 16px 12px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.adm-group { display: flex; flex-direction: column; gap: 2px; }
.adm-group-t { font-size: 11.5px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 6px 12px 8px; }
.adm-link { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; color: var(--ink); font-weight: 700; font-size: 14.5px; text-decoration: none !important; }
.adm-link .ic { color: var(--muted); flex: none; }
.adm-link:hover { background: rgba(47, 232, 164, .1); }
.adm-link:hover .ic { color: var(--mint); }
.adm-link.active { background: rgba(47, 232, 164, .14); color: var(--mint); box-shadow: inset 0 0 0 1px rgba(47, 232, 164, .35); }
.adm-link.active .ic { color: var(--mint); }
.adm-count { margin-left: auto; background: var(--coral); color: #fff; font-size: 12px; font-weight: 900; border-radius: 999px; padding: 1px 8px; }
.adm-body { min-width: 0; }
.soc-del { display: flex; align-items: center; gap: 12px; grid-column: 1 / -1; background: rgba(47, 232, 164, .07); border: 1px dashed rgba(47, 232, 164, .4); border-radius: 14px; padding: 10px 14px; }
.soc-del img { width: 44px; height: 44px; object-fit: contain; border-radius: 12px; background: rgba(255, 255, 255, .08); flex: none; }
@media (max-width: 1020px) {
  .adm-wrap { grid-template-columns: 1fr; }
  .adm-menu { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .adm-group { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; }
  .adm-group-t { width: 100%; padding: 4px 8px 2px; }
}

/* ---------- Патч 13: центр иконок, панель стиля, видео, CTA ---------- */
.soc, .fm { position: relative; }
.soc > img, .soc > svg, .fm > img, .fm > svg {
  position: absolute; top: calc(50% + 1px); left: 50%; transform: translate(-50%, -50%); margin: 0;
}
.ed-tools { position: fixed; z-index: 600; display: flex; gap: 6px; align-items: center; background: #0e1f1a; border: 1px solid rgba(47, 232, 164, .5); border-radius: 14px; padding: 6px 8px; box-shadow: var(--shadow); max-width: calc(100vw - 16px); flex-wrap: wrap; }
.ed-tools[hidden] { display: none; }
.ed-tools button { border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #f2fff9; border-radius: 9px; min-width: 32px; height: 30px; padding: 0 8px; font-weight: 800; font-size: 13px; cursor: pointer; font-family: var(--font-body); }
.ed-tools button:hover { border-color: var(--mint); color: var(--mint); }
.ed-tools > i { width: 1px; align-self: stretch; background: rgba(255, 255, 255, .15); }
.ed-tools .ed-dot { width: 24px; min-width: 24px; height: 24px; padding: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 26px; }
.video-card { margin: 0; background: var(--glass); border: 1px solid var(--glass-brd); border-radius: var(--r); overflow: hidden; }
.video-card video { width: 100%; aspect-ratio: 16/10; display: block; background: #000; }
.video-card figcaption { padding: 14px 18px; font-weight: 800; }
@media (max-width: 1020px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .video-grid { grid-template-columns: 1fr; } }
.cta-band { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 24px; }
.cta-band .row { justify-content: center; }

/* ---------- Патч 14: палитра панели стиля ---------- */
.ed-tools input[type="color"] { width: 28px; height: 28px; padding: 0; border: 2px solid rgba(255, 255, 255, .5); border-radius: 50%; background: conic-gradient(#ff5d5d, #ffc93c, #2fe8a4, #5db9ff, #ff5d5d); cursor: pointer; }

/* ---------- Патч 18: медиафайлы ---------- */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-top: 16px; }
.media-card { background: var(--glass); border: 1px solid var(--glass-brd); border-radius: var(--r-sm); overflow: hidden; display: flex; flex-direction: column; }
.media-card img, .media-card video { width: 100%; height: 110px; object-fit: cover; display: block; background: #000; }
.media-info { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 5px; }
.media-info b { font-size: 12.5px; overflow-wrap: anywhere; font-weight: 700; }
.media-used { color: var(--mint); }
.media-free { color: var(--sun); font-weight: 800; }
.media-card.is-free { border-color: rgba(255, 201, 60, .45); }

/* ---------- Патч 19: чипы + выбор картинки из медиафайлов ---------- */
.hero-chip.c1 { top: -4%; }
.mpick-open { margin-top: 8px; }
.mpick-prev { display: block; max-width: 160px; margin-top: 8px; border-radius: 12px; border: 1px solid var(--glass-brd); }
.mpick-prev[hidden] { display: none; }
.mpick { position: fixed; inset: 0; z-index: 700; background: rgba(0, 0, 0, .6); display: flex; align-items: center; justify-content: center; padding: 20px; }
.mpick[hidden] { display: none; }
.mpick-box { background: #0e1f1a; border: 1px solid var(--glass-brd); border-radius: var(--r); max-width: 760px; width: 100%; max-height: 80vh; display: flex; flex-direction: column; overflow: hidden; }
.mpick-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.mpick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; padding: 16px 18px 20px; overflow-y: auto; }
.mpick-item { border: 2px solid transparent; border-radius: 12px; overflow: hidden; padding: 0; background: none; cursor: pointer; }
.mpick-item img { width: 100%; height: 80px; object-fit: cover; display: block; }
.mpick-item:hover { border-color: var(--mint); }

/* ---------- Патч 20: редактор фото ---------- */
.phed { position: fixed; inset: 0; z-index: 700; background: rgba(0, 0, 0, .65); display: flex; align-items: center; justify-content: center; padding: 18px; }
.phed[hidden] { display: none; }
.phed-box { background: #0e1f1a; border: 1px solid var(--glass-brd); border-radius: var(--r); width: 100%; max-width: 1080px; max-height: 92vh; display: flex; flex-direction: column; overflow: hidden; }
.phed-head { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.phed-head .btn { margin-left: auto; }
.phed-main { display: flex; gap: 0; min-height: 0; align-items: flex-start; }
.phed-stage { position: relative; flex: 1; min-width: 0; background: #000; overflow: auto; max-height: calc(92vh - 60px); }
.phed-stage canvas { width: 100%; height: auto; display: block; border-radius: 10px; }
.crop-rect { position: absolute; border: 2px solid var(--mint); box-shadow: 0 0 0 9999px rgba(0, 0, 0, .55); cursor: move; touch-action: none; }
.cr-handle { position: absolute; right: -10px; bottom: -10px; width: 20px; height: 20px; border-radius: 50%; background: var(--mint); cursor: nwse-resize; display: block; }
#phedTexts { position: absolute; inset: 0; pointer-events: none; }
.phed-t { position: absolute; transform: translate(-50%, -50%); cursor: move; user-select: none; -webkit-user-select: none; white-space: nowrap; text-shadow: 0 2px 8px rgba(0, 0, 0, .8); touch-action: none; padding: 4px 10px; pointer-events: auto; line-height: 1.2; }
.phed-t.sel { outline: 2px dashed var(--sun); border-radius: 8px; }
.phed-side { width: 264px; flex: none; border-left: 1px solid var(--line); padding: 14px 16px 18px; overflow-y: auto; max-height: calc(92vh - 60px); }
.phed-sec { margin-bottom: 15px; }
.phed-sec > span { display: block; font-size: 11.5px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.phed-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; align-items: center; }
.phed-fx { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.phed-side .btn.on { border-color: var(--mint); color: var(--mint); }
.phed-side label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; margin-bottom: 8px; color: var(--ink); }
.phed-side input[type="color"] { width: 34px; height: 30px; padding: 0; border: 1px solid var(--glass-brd); border-radius: 8px; background: none; cursor: pointer; }
.phed-side select { max-width: 130px; }
#phedMsg { display: block; min-height: 18px; }
@media (max-width: 900px) {
  .phed-main { flex-direction: column; overflow-y: auto; align-items: stretch; }
  .phed-stage { width: 100%; }
  .phed-side { width: auto; border-left: none; border-top: 1px solid var(--line); max-height: none; }
}
