/* =====================================================================
   Cleaning KIKI — дизайн-система сайта.
   Один файл, без Bootstrap/jQuery-тем. Правится напрямую, сборка не нужна.
   ===================================================================== */

/* ---------- Иконки услуг (выбираются в админке) ---------- */
@font-face {
  font-family: 'icomoon';
  src: url("../fonts/icomoon.429ae131d843.woff") format('woff'), url("../fonts/icomoon.648523bc4c14.ttf") format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
[class^="icon-"], [class*=" icon-"] {
  font-family: 'icomoon' !important;
  font-style: normal; font-weight: normal; font-variant: normal;
  text-transform: none; line-height: 1;
  -webkit-font-smoothing: antialiased;
}
.icon-cleaning-spray:before{content:"\e900"}.icon-wooden-brush:before{content:"\e901"}.icon-kitchen:before{content:"\e902"}.icon-cleaning-1:before{content:"\e903"}.icon-sanitary:before{content:"\e904"}.icon-cleaning-2:before{content:"\e905"}.icon-house-cleaning:before{content:"\e906"}.icon-vacuum:before{content:"\e909"}.icon-wipe:before{content:"\e90a"}.icon-window-cleaner:before{content:"\e90b"}.icon-cleaning-cart:before{content:"\e90f"}.icon-window-cleaning:before{content:"\e91a"}.icon-vacuum-cleaner:before{content:"\e91b"}.icon-carpet:before{content:"\e91c"}.icon-nature-product:before{content:"\e91d"}.icon-oosouji:before{content:"\e92d"}.icon-cleaning:before{content:"\e92e"}.icon-cleaning-products:before{content:"\e92f"}.icon-spray:before{content:"\e930"}.icon-sparkle:before{content:"\e945"}.icon-medal:before{content:"\e918"}
/* Иконки из списка в админке, которых нет в шрифте — подставляем похожие глифы */
.icon-mop:before{content:"\e90a"}.icon-bucket:before{content:"\e90f"}.icon-sponge:before{content:"\e903"}.icon-broom:before{content:"\e901"}.icon-duster:before{content:"\e905"}.icon-window:before{content:"\e91a"}.icon-toilet:before,.icon-bathroom:before{content:"\e904"}.icon-mattress:before,.icon-furniture:before{content:"\e906"}.icon-air:before{content:"\e945"}.icon-laundry:before{content:"\e92f"}.icon-disinfection:before{content:"\e900"}.icon-eco:before{content:"\e91d"}.icon-quality:before{content:"\e918"}

/* ---------- Токены ---------- */
:root {
  /* Палитра «Violet Pop»: фиолетовый + розовый + лайм. Меняется только здесь. */
  --ink: #1b1035;
  --ink-rgb: 27, 16, 53;
  --text: #463e5e;
  --muted: #7b7393;
  --line: #ece6f7;
  --bg: #ffffff;
  --bg-soft: #f8f5ff;
  --surface: #ffffff;
  --brand: #6c47ff;
  --brand-rgb: 108, 71, 255;
  --brand-dark: #5230e6;
  --pop: #ff4f9a;
  --pop-rgb: 255, 79, 154;
  --lime: #c8f560;
  --sun: #ffc93c;
  --tint: #f0ebff;
  --tint-pop: #ffebf4;
  --placeholder: #a59dbb;
  --input-hover: #f2edfc;
  --range-track: #e4ddf3;
  --grad: linear-gradient(120deg, #6c47ff 0%, #b44cff 52%, #ff4f9a 100%);
  --grad-hover: linear-gradient(120deg, #5230e6 0%, #9a2fef 52%, #f03586 100%);
  --grad-soft: linear-gradient(135deg, #f0ebff 0%, #ffebf4 100%);
  --grad-hl: linear-gradient(110deg, #ffa8d2 0%, #ffe07a 100%); /* акцент в заголовках на тёмном фоне */

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(var(--ink-rgb), .05), 0 2px 8px rgba(var(--ink-rgb), .04);
  --shadow: 0 2px 6px rgba(var(--ink-rgb), .04), 0 12px 32px rgba(var(--ink-rgb), .07);
  --shadow-lg: 0 4px 12px rgba(var(--ink-rgb), .05), 0 24px 56px rgba(var(--brand-rgb), .16);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--ink); line-height: 1.15; letter-spacing: -0.025em; font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(var(--brand-rgb), .18); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; animation-timing-function: var(--ease); }

/* ---------- Сетка ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.grid { display: grid; gap: clamp(16px, 2.2vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Типографика ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--tint); color: var(--brand);
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pop); box-shadow: 0 0 0 4px rgba(var(--pop-rgb), .2); }
.eyebrow--light { background: rgba(255, 255, 255, .14); color: #fff; }
.eyebrow { justify-self: start; }
.section-head--center .eyebrow { justify-self: center; }
.h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); letter-spacing: -0.035em; line-height: 1.04; font-weight: 800; }
.h2 { font-size: clamp(1.85rem, 3.6vw, 3rem); letter-spacing: -0.03em; line-height: 1.1; }
.h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); letter-spacing: -0.015em; }
.grad-text { background: var(--grad); background-size: 200% 100%; animation: grad-shift 8s ease-in-out infinite alternate; -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.02rem, 1.3vw, 1.18rem); color: var(--muted); }
.muted { color: var(--muted); }

.section-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 60px); max-width: 760px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.section-head--split { max-width: none; grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
.section-head--split > div { display: grid; gap: 16px; max-width: 720px; }
@media (max-width: 760px) { .section-head--split { grid-template-columns: minmax(0, 1fr); } .section-head--split > .btn { justify-self: start; } }
.h1, .h2, .page-hero__title { overflow-wrap: break-word; hyphens: auto; }

/* ---------- Кнопки ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 16px; line-height: 1; white-space: nowrap;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .25s, color .25s;
  isolation: isolate; overflow: hidden;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease-out); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translate(3px, -1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--primary { background: var(--grad); box-shadow: 0 8px 22px rgba(var(--brand-rgb), .3); }
.btn--primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad-hover); opacity: 0; transition: opacity .35s var(--ease); }
.btn--primary:hover { box-shadow: 0 14px 32px rgba(var(--brand-rgb), .36); }
.btn--primary:hover::after { opacity: 1; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); box-shadow: var(--shadow-sm); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--brand); }
.btn--glass { --btn-bg: rgba(255, 255, 255, .14); --btn-fg: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn--glass:hover { --btn-bg: rgba(255, 255, 255, .24); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .35s var(--ease-out); }
.link-arrow:hover svg { transform: translate(3px, -3px); }

.icon { width: 20px; height: 20px; flex: none; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px rgba(var(--ink-rgb), .06); background: rgba(255, 255, 255, .9); }
.site-header__bar { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.site-header__logo { display: flex; align-items: center; flex: none; }
.site-header__logo img { width: auto; height: 60px; transform: scale(1.25); transform-origin: left center; }
.site-header__logo-text { font-weight: 800; font-size: 20px; color: var(--ink); letter-spacing: -0.02em; }
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 999px;
  font-weight: 500; font-size: 15px; color: var(--text);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.nav__link:hover { background: var(--bg-soft); color: var(--ink); }
.nav__link.is-active { color: var(--brand); background: var(--tint); }
.site-header__actions { display: flex; align-items: center; gap: 12px; }
.site-header__phone { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); font-size: 15px; white-space: nowrap; }
.site-header__phone .icon { width: 36px; height: 36px; padding: 9px; border-radius: 50%; background: var(--tint-pop); color: var(--pop); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; background: var(--bg-soft); color: var(--ink); }
.burger svg { width: 22px; height: 22px; }

@media (max-width: 1180px) { .site-header__phone span { display: none; } }
@media (max-width: 980px) {
  .nav, .site-header__actions .btn { display: none; }
  .site-header__actions { margin-left: auto; }
  .burger { display: inline-flex; }
}

/* Мобильное меню */
.mnav { position: fixed; inset: 0; z-index: 200; visibility: hidden; pointer-events: none; }
.mnav__overlay { position: absolute; inset: 0; background: rgba(var(--ink-rgb), .4); opacity: 0; transition: opacity .35s var(--ease); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.mnav__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: #fff; padding: 20px var(--gutter) 32px; display: flex; flex-direction: column; gap: 28px; overflow-y: auto;
  transform: translateX(100%); transition: transform .5s var(--ease-out);
}
.mnav.is-open { visibility: visible; pointer-events: auto; }
.mnav.is-open .mnav__overlay { opacity: 1; }
.mnav.is-open .mnav__panel { transform: none; }
.mnav__top { display: flex; align-items: center; justify-content: space-between; }
.mnav__top img { height: 40px; width: auto; }
.mnav__list { display: grid; gap: 4px; }
.mnav__list a { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; font-size: 22px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); letter-spacing: -0.02em; }
.mnav__list a.is-active { color: var(--brand); }
.mnav__contacts { display: grid; gap: 12px; margin-top: auto; }
.mnav__contacts a { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.mnav__contacts .icon { color: var(--brand); }

.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-soft); color: var(--ink); transition: background-color .25s, color .25s, transform .35s var(--ease-out); }
.icon-btn:hover { background: var(--tint); color: var(--brand); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero { padding: 16px 0 0; }
.hero__frame { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: clamp(560px, 82vh, 760px); background: var(--ink); isolation: isolate; }
.hero__slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility .9s; }
.hero__slide.is-active { opacity: 1; visibility: visible; position: relative; min-height: inherit; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s var(--ease); }
.hero__slide.is-active .hero__bg img { transform: scale(1); }
.hero__frame::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(100deg, rgba(var(--ink-rgb), .86) 0%, rgba(var(--ink-rgb), .62) 45%, rgba(var(--ink-rgb), .15) 100%); }
.hero__inner { position: relative; z-index: 1; width: 100%; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: 32px; padding: clamp(40px, 6vw, 80px); }
.hero__content { display: grid; gap: 22px; max-width: 680px; color: rgba(255, 255, 255, .86); }
.hero__title { color: #fff; }
.hero__title span { background: var(--grad-hl); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__text { font-size: clamp(1.02rem, 1.35vw, 1.2rem); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero__visual { justify-self: end; }
.hero__visual img { width: min(380px, 100%); border-radius: var(--r-lg); filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .35)); animation: float 7s ease-in-out infinite; }
.hero__slide > * { transition: none; }
.hero__slide.is-active .hero__content > * { animation: rise .9s var(--ease-out) both; }
.hero__slide.is-active .hero__content > :nth-child(2) { animation-delay: .08s; }
.hero__slide.is-active .hero__content > :nth-child(3) { animation-delay: .16s; }
.hero__slide.is-active .hero__content > :nth-child(4) { animation-delay: .24s; }
.hero__controls { position: absolute; z-index: 2; right: clamp(20px, 4vw, 48px); bottom: calc(clamp(20px, 4vw, 40px) + 48px); display: flex; align-items: center; gap: 10px; }
.hero__dots { display: flex; gap: 8px; margin-right: 6px; }
.hero__dot { width: 10px; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .4); transition: width .45s var(--ease-out), background-color .3s; }
.hero__dot.is-active { width: 34px; background: #fff; }
.hero__arrow { width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background-color .25s, transform .35s var(--ease-out); }
.hero__arrow:hover { background: rgba(255, 255, 255, .26); transform: scale(1.06); }
.hero__arrow svg { width: 20px; height: 20px; }

.hero-stats { position: relative; z-index: 3; margin-top: -48px; padding: 0 clamp(16px, 4vw, 48px); }
.hero-stats__card { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.hero-stats__item { display: flex; align-items: center; gap: 14px; padding: 22px 24px; border-right: 1px solid var(--line); }
.hero-stats__item:last-child { border-right: 0; }
.hero-stats__icon { width: 48px; height: 48px; flex: none; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--tint); color: var(--brand); }
.hero-stats__icon svg { width: 22px; height: 22px; }
.hero-stats__item:nth-child(even) .hero-stats__icon { background: var(--tint-pop); color: var(--pop); }
.hero-stats__value { display: block; font-size: 24px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; line-height: 1.1; }
.hero-stats__label { font-size: 14px; color: var(--muted); line-height: 1.35; }
.hero-stats__item a.hero-stats__value { font-size: 18px; }
.hero-stats__item a.hero-stats__value:hover { color: var(--brand); }

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { display: none; }
  .hero-stats__card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats__item:nth-child(2) { border-right: 0; }
  .hero-stats__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .hero { padding-top: 8px; }
  .hero > .container { padding: 0 8px; }
  .hero__frame { border-radius: var(--r-lg); min-height: 580px; }
  .hero__frame::before { background: linear-gradient(180deg, rgba(var(--ink-rgb), .45) 0%, rgba(var(--ink-rgb), .88) 70%); }
  .hero__slide { align-items: flex-end; }
  .hero__inner { padding: 28px 22px 120px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__controls { left: 22px; right: 22px; bottom: 52px; justify-content: space-between; }
  .btn { white-space: normal; text-align: center; line-height: 1.25; padding-top: 10px; padding-bottom: 10px; }
  .hero-stats { margin-top: -32px; padding: 0 12px; }
  .hero-stats__item { padding: 16px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .hero-stats__icon { width: 40px; height: 40px; border-radius: 12px; }
  .hero-stats__value { font-size: 20px; }
  .hero-stats__item a.hero-stats__value { font-size: 15px; }
}

/* ---------- Шапка внутренних страниц ---------- */
.page-hero { padding: 16px 0 0; }
.page-hero__card {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: var(--ink); color: rgba(255, 255, 255, .8);
  padding: clamp(56px, 9vw, 110px) clamp(24px, 6vw, 72px);
  isolation: isolate;
}
.page-hero__card::before, .page-hero__card::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(10px); }
.page-hero__card::before { width: 520px; height: 520px; right: -120px; top: -220px; background: radial-gradient(circle, rgba(var(--brand-rgb), .65), transparent 65%); }
.page-hero__card::after { width: 420px; height: 420px; right: 18%; bottom: -260px; background: radial-gradient(circle, rgba(var(--pop-rgb), .55), transparent 65%); }
.page-hero__bubbles { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.page-hero__bubbles span { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .22), rgba(255, 255, 255, .02) 60%); animation: float 9s ease-in-out infinite; }
.page-hero__bubbles span:nth-child(1) { width: 90px; height: 90px; right: 12%; top: 22%; }
.page-hero__bubbles span:nth-child(2) { width: 44px; height: 44px; right: 30%; top: 60%; animation-delay: -3s; }
.page-hero__bubbles span:nth-child(3) { width: 140px; height: 140px; right: -30px; bottom: -40px; animation-delay: -6s; }
.page-hero__title { color: #fff; font-size: clamp(2rem, 4.6vw, 3.6rem); letter-spacing: -0.035em; max-width: 820px; margin-top: 18px; }
.page-hero__sub { margin-top: 16px; max-width: 640px; font-size: 1.08rem; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, .6); }
.crumbs a { color: rgba(255, 255, 255, .85); }
.crumbs a:hover { color: #fff; }
.crumbs svg { width: 14px; height: 14px; opacity: .5; }
@media (max-width: 640px) { .page-hero > .container { padding: 0 8px; } .page-hero__card { border-radius: var(--r-lg); } }

/* ---------- Карточки услуг ---------- */
.svc-card {
  position: relative; display: flex; flex-direction: column; background: var(--surface);
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.svc-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--grad-soft); }
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.svc-card:hover .svc-card__media img { transform: scale(1.06); }
.svc-card__icon {
  position: absolute; left: 20px; bottom: -26px; z-index: 1; width: 56px; height: 56px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center; font-size: 28px; color: #fff; background: var(--grad);
  box-shadow: 0 10px 24px rgba(var(--brand-rgb), .35); transition: transform .5s var(--spring);
}
.svc-card:hover .svc-card__icon { transform: rotate(-8deg) scale(1.06); }
.svc-card__body { display: flex; flex-direction: column; gap: 10px; padding: 40px 24px 24px; flex: 1; }
.svc-card__num { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.svc-card__text { color: var(--muted); font-size: 15.5px; flex: 1; }
.svc-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 16px; border-top: 1px dashed var(--line); }
.svc-card__price { font-weight: 700; color: var(--ink); }
.svc-card__price small { font-weight: 500; color: var(--muted); font-size: 13px; }
.svc-card__link::after { content: ""; position: absolute; inset: 0; z-index: 2; }

/* Бегущая строка услуг */
.marquee { overflow: hidden; padding: 22px 0; background: var(--grad); color: #fff; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; gap: 48px; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 48px; font-size: clamp(1.3rem, 2.4vw, 2rem); font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.marquee__item svg { width: 22px; height: 22px; opacity: .8; }

/* ---------- О нас ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.about__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; position: relative; }
.about__gallery figure { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--grad-soft); }
.about__gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.about__gallery figure:hover img { transform: scale(1.05); }
.about__gallery figure:nth-child(1) { aspect-ratio: 4 / 5; }
.about__gallery figure:nth-child(2) { aspect-ratio: 4 / 5; margin-top: 48px; }
.about__gallery figure:nth-child(3) { aspect-ratio: 4 / 3; margin-top: -32px; }
.about__gallery figure:nth-child(4) { aspect-ratio: 4 / 3; margin-top: 16px; }
.about__badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: 132px; height: 132px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 6px solid #fff;
}
.about__badge b { font-size: 38px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; }
.about__badge span { font-size: 12px; line-height: 1.25; color: var(--muted); margin-top: 4px; max-width: 90px; }
.about__body { display: grid; gap: 22px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 18px; border-radius: var(--r-md); background: var(--bg-soft); }
.stat__value { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; color: var(--ink); letter-spacing: -0.03em; line-height: 1; }
.stat__value > span:last-child { color: var(--pop); }
.stat__label { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.35; }
.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--ink); }
.checklist .icon { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--tint-pop); color: var(--pop); margin-top: 1px; }
.about__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; padding-top: 8px; }
.call-box { display: flex; align-items: center; gap: 14px; }
.call-box__icon { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--tint); color: var(--brand); }
.call-box__icon svg { width: 22px; height: 22px; }
.call-box small { display: block; color: var(--muted); font-size: 13.5px; }
.call-box a { font-weight: 700; color: var(--ink); font-size: 18px; }
.call-box a:hover { color: var(--brand); }
@media (max-width: 980px) { .about { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; } .stat { padding: 14px 12px; } .checklist { grid-template-columns: 1fr; } .about__badge { width: 108px; height: 108px; } .about__badge b { font-size: 30px; } }

/* ---------- До / После ---------- */
.ba-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.ba { display: grid; gap: 18px; }
.ba__frame { --pos: 50%; position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--grad-soft); user-select: none; touch-action: pan-y; box-shadow: var(--shadow); }
.ba__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__after { clip-path: inset(0 0 0 var(--pos)); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 16px rgba(0, 0, 0, .25); pointer-events: none; }
.ba__knob { position: absolute; top: 50%; left: var(--pos); width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-lg); display: flex; align-items: center; justify-content: center; gap: 2px; color: var(--brand); pointer-events: none; transition: transform .3s var(--spring); }
.ba__knob svg { width: 18px; height: 18px; }
.ba__frame:hover .ba__knob { transform: scale(1.08); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; -webkit-appearance: none; appearance: none; }
.ba__tag { position: absolute; top: 16px; z-index: 1; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(var(--ink-rgb), .6); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none; }
.ba__tag--before { left: 16px; }
.ba__tag--after { right: 16px; background: rgba(var(--pop-rgb), .85); }
.ba__caption h3 { font-size: 1.2rem; }
.ba__caption p { color: var(--muted); margin-top: 6px; font-size: 15.5px; }
@media (max-width: 760px) { .ba-grid { grid-template-columns: 1fr; } }

/* ---------- Процесс ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(16px, 2vw, 24px); counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step__top { display: flex; align-items: center; justify-content: space-between; }
.step__icon { width: 60px; height: 60px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 30px; background: var(--tint); color: var(--brand); transition: background .35s, color .35s; }
.step:hover .step__icon { background: var(--grad); color: #fff; }
.step__num { font-size: 44px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--line); }
.step__num::before { counter-increment: step; content: "0" counter(step); }
.step p { color: var(--muted); font-size: 15.5px; }

/* ---------- Тарифы ---------- */
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); align-items: stretch; }
.price { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 30px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s; }
.price:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.price--featured { background: var(--ink); border-color: var(--ink); color: rgba(255, 255, 255, .78); }
.price--featured h3, .price--featured .price__amount { color: #fff; }
.price--featured .price__points li { color: rgba(255, 255, 255, .88); }
.price--featured .price__points .icon { background: rgba(255, 255, 255, .12); color: var(--lime); }
.price--featured .price__divider { border-color: rgba(255, 255, 255, .14); }
.price__head { display: flex; align-items: center; gap: 12px; }
.price__icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; background: var(--tint); color: var(--brand); flex: none; }
.price--featured .price__icon { background: var(--grad); color: #fff; }
.price__amount { font-size: clamp(2rem, 3vw, 2.6rem); font-weight: 800; color: var(--ink); letter-spacing: -0.03em; line-height: 1; }
.price__amount small { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.price--featured .price__amount small { color: rgba(255, 255, 255, .6); }
.price__text { font-size: 15.5px; }
.price__divider { border: 0; border-top: 1px dashed var(--line); margin: 0; }
.price__points { display: grid; gap: 10px; flex: 1; align-content: start; }
.price__points li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; color: var(--ink); }
.price__points .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--tint-pop); color: var(--pop); margin-top: 1px; }
.price .btn { margin-top: 4px; }
@media (max-width: 1024px) {
  .prices { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding: 4px var(--gutter) 20px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: none; }
  .prices::-webkit-scrollbar { display: none; }
  .price { flex: 0 0 min(340px, 84%); scroll-snap-align: center; }
}

/* ---------- Проекты ---------- */
.project { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink); isolation: isolate; }
.project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease-out); }
.project::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(var(--ink-rgb), 0) 30%, rgba(var(--ink-rgb), .9) 100%); transition: opacity .5s; }
.project:hover img { transform: scale(1.07); }
.project__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; color: rgba(255, 255, 255, .8); display: grid; gap: 14px; }
.project__cat { justify-self: start; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font-size: 13px; font-weight: 600; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.project__title { color: #fff; font-size: 1.3rem; }
.project__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 14px; }
.project__meta b { display: block; color: #fff; font-size: 15px; }

/* ---------- Отзывы ---------- */
.carousel { position: relative; }
.carousel__track { display: flex; gap: clamp(16px, 2vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 24px; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; flex: 0 0 calc((100% - 2 * clamp(16px, 2vw, 24px)) / 3); }
@media (max-width: 1024px) { .carousel__track > * { flex-basis: calc((100% - 16px) / 2); } }
@media (max-width: 640px) { .carousel__track > * { flex-basis: 88%; } }
.carousel__nav { display: flex; gap: 10px; }
.carousel__btn { width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); transition: background-color .25s, color .25s, box-shadow .25s, transform .35s var(--ease-out), opacity .25s; }
.carousel__btn:hover { background: var(--ink); color: #fff; box-shadow: none; }
.carousel__btn:disabled { opacity: .35; pointer-events: none; }
.carousel__btn svg { width: 20px; height: 20px; }
.review { display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); transition: box-shadow .5s var(--ease-out), transform .5s var(--ease-out); }
.review:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.review__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review__stars { display: flex; gap: 2px; color: var(--sun); }
.review__stars svg { width: 18px; height: 18px; }
.review__svc { font-size: 13px; font-weight: 600; color: var(--brand); background: var(--tint); padding: 5px 12px; border-radius: 999px; }
.review__text { color: var(--text); font-size: 15px; line-height: 1.6; position: relative; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7; line-clamp: 7; overflow: hidden; overflow-wrap: anywhere; }
.review.is-open .review__text { -webkit-line-clamp: unset; line-clamp: none; display: block; }
.review__more { align-self: flex-start; margin-top: -8px; font-size: 14px; font-weight: 600; color: var(--brand); background: none; padding: 0; cursor: pointer; }
.review__more:hover { color: var(--pop); }
.review__author { margin-top: auto; }
.carousel__track > .review { flex-basis: calc((100% - 3 * clamp(16px, 2vw, 24px)) / 4); padding: 24px; }
@media (max-width: 1200px) { .carousel__track > .review { flex-basis: calc((100% - 2 * clamp(16px, 2vw, 24px)) / 3); } }
@media (max-width: 860px) { .carousel__track > .review { flex-basis: calc((100% - 16px) / 2); } }
@media (max-width: 560px) { .carousel__track > .review { flex-basis: 84%; } }
.review__author { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.review__author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.review__author b { color: var(--ink); }
.review__author small { display: block; color: var(--muted); font-size: 13px; }

/* ---------- Команда ---------- */
.member { position: relative; display: grid; gap: 14px; }
.member__photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--grad-soft); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.member:hover .member__photo img { transform: scale(1.06); }
.member__exp { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 13px; font-weight: 600; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: var(--shadow-sm); }
.member__exp b { font-size: 18px; font-weight: 800; color: var(--brand); }
.member h3 { font-size: 1.15rem; }
.member p { color: var(--muted); font-size: 15px; margin-top: 2px; }

/* ---------- Цифры ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.metric { position: relative; overflow: hidden; padding: 28px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .72); }
.metric__icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--grad); color: #fff; margin-bottom: 22px; }
.metric__icon svg { width: 22px; height: 22px; }
.metric__value { font-size: clamp(2.2rem, 3.6vw, 3rem); font-weight: 800; color: #fff; letter-spacing: -0.035em; line-height: 1; }
.metric__value > span:last-child { color: var(--lime); }
.metric p { margin-top: 10px; font-size: 15px; }
.section--dark { background: var(--ink); color: rgba(255, 255, 255, .75); }
.section--dark .h2 { color: #fff; }
@media (max-width: 1024px) { .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .metric { padding: 20px; } }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--grad); color: rgba(255, 255, 255, .88); padding: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; isolation: isolate; }
.cta::before { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -140px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .28), transparent 65%); }
.cta h2 { color: #fff; }
.cta p { margin-top: 12px; max-width: 560px; font-size: 1.08rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .cta { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Контакты ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.contact__list { display: grid; gap: 14px; margin-top: 28px; }
.info-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--r-md); background: var(--bg-soft); transition: background-color .3s, transform .4s var(--ease-out); }
.info-card:hover { background: var(--tint); transform: translateX(4px); }
.info-card__icon { width: 46px; height: 46px; border-radius: 14px; flex: none; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }
.info-card__icon svg { width: 20px; height: 20px; }
.info-card small { display: block; font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.info-card b, .info-card a { color: var(--ink); font-weight: 600; word-break: break-word; }
.info-card a:hover { color: var(--brand); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-soft); color: var(--ink); transition: background-color .25s, color .25s, transform .4s var(--spring); }
.socials a:hover { background: var(--grad); color: #fff; transform: translateY(-3px); }
.socials svg { width: 20px; height: 20px; }
.map { margin-top: clamp(32px, 5vw, 56px); border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); }
.map iframe { width: 100%; height: clamp(320px, 45vw, 480px); border: 0; }
@media (max-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Формы ---------- */
.form-card { padding: clamp(24px, 4vw, 44px); border-radius: var(--r-xl); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-card--narrow { max-width: 640px; margin: 0 auto; }
.form-card__title { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 8px; }
.form-card__sub { color: var(--muted); margin-bottom: 28px; }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field__label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field__label em { color: var(--brand); font-style: normal; }
.input {
  width: 100%; min-height: 54px; padding: 14px 18px; border-radius: var(--r-sm);
  background: var(--bg-soft); border: 1.5px solid transparent; color: var(--ink); font-size: 16px;
  transition: border-color .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: var(--placeholder); }
.input:hover { background: var(--input-hover); }
.input:focus { outline: none; background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .12); }
textarea.input { min-height: 130px; resize: vertical; line-height: 1.5; }
select.input { padding-right: 48px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7a8f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; }
input[type="file"].input { padding: 14px; min-height: 0; cursor: pointer; }
input[type="file"].input::file-selector-button { margin-right: 14px; padding: 8px 16px; border: 0; border-radius: 999px; background: var(--tint); color: var(--brand); font-weight: 600; cursor: pointer; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; background: var(--bg-soft); border: 1.5px solid transparent; font-size: 14.5px; font-weight: 500; color: var(--text); cursor: pointer; transition: background-color .25s, border-color .25s, color .25s, transform .3s var(--spring); }
.chip span:hover { background: var(--tint); }
.chip input:checked + span { background: var(--tint); border-color: var(--brand); color: var(--brand); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.chip input:checked + span:active { transform: scale(.97); }

.range { display: grid; gap: 12px; padding: 16px 18px; border-radius: var(--r-sm); background: var(--bg-soft); }
.range__top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; color: var(--ink); }
.range__top output { min-width: 40px; text-align: center; padding: 4px 10px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 700; }
.range input[type="range"] { --fill: 0%; width: 100%; height: 6px; margin: 6px 0; border-radius: 999px; -webkit-appearance: none; appearance: none; background: linear-gradient(90deg, var(--brand) 0%, var(--pop) var(--fill), var(--range-track) var(--fill)); cursor: pointer; }
.range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 6px rgba(var(--brand-rgb), .16), 0 2px 8px rgba(var(--ink-rgb), .25); transition: transform .25s var(--spring); }
.range input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.range input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 6px rgba(var(--brand-rgb), .16), 0 2px 8px rgba(var(--ink-rgb), .25); }

.alert { padding: 14px 18px; border-radius: var(--r-sm); font-size: 15px; font-weight: 500; }
.alert--error { background: #fdecec; color: #b42318; }
.alert--success { background: var(--tint-pop); color: #c2185b; }

/* ---------- Окно заказа ---------- */
.drawer { position: fixed; inset: 0; z-index: 300; visibility: hidden; pointer-events: none; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(var(--ink-rgb), .45); opacity: 0; transition: opacity .4s var(--ease); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.drawer__panel {
  position: absolute; top: 12px; right: 12px; bottom: 12px; width: min(480px, calc(100% - 24px));
  display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg); box-shadow: 0 30px 80px rgba(var(--ink-rgb), .3);
  transform: translateX(calc(100% + 24px)); transition: transform .55s var(--ease-out); overflow: hidden;
}
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer.is-open .drawer__overlay { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 26px 26px 18px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.5rem; }
.drawer__head p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.drawer__body { padding: 22px 26px 28px; overflow-y: auto; flex: 1; }
.drawer .chips { max-height: 196px; overflow-y: auto; padding: 2px; }
@media (max-width: 560px) {
  .drawer__panel { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 92vh; border-radius: var(--r-lg) var(--r-lg) 0 0; transform: translateY(100%); }
  .drawer__head { padding: 22px 20px 16px; }
  .drawer__body { padding: 18px 20px 24px; }
}

/* ---------- Тосты (сообщения Django) ---------- */
.toasts { position: fixed; z-index: 400; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 10px; width: min(440px, calc(100% - 32px)); }
.toast { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-md); background: var(--ink); color: #fff; box-shadow: 0 20px 50px rgba(var(--ink-rgb), .35); animation: toast-in .6s var(--ease-out) both; }
.toast.is-hiding { animation: toast-out .4s var(--ease) forwards; }
.toast__icon { width: 36px; height: 36px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--grad); }
.toast--error .toast__icon { background: #e5484d; }
.toast__icon svg { width: 18px; height: 18px; }
.toast p { flex: 1; font-weight: 500; }
.toast button { color: rgba(255, 255, 255, .6); width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.toast button:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.toast button svg { width: 16px; height: 16px; }

/* ---------- Плавающая кнопка звонка (мобильные) ---------- */
.fab-call { position: fixed; z-index: 90; right: 16px; bottom: 16px; display: none; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 18px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 600; box-shadow: 0 14px 34px rgba(var(--brand-rgb), .4); transform: translateY(120px); transition: transform .5s var(--ease-out); }
.fab-call svg { width: 20px; height: 20px; }
.fab-call.is-visible { transform: none; }
@media (max-width: 980px) { .fab-call { display: inline-flex; } }

/* ---------- Подвал ---------- */
.site-footer { position: relative; margin-top: clamp(64px, 9vw, 120px); background: var(--ink); color: rgba(255, 255, 255, .66); overflow: hidden; isolation: isolate; }
.site-footer::before { content: ""; position: absolute; z-index: -1; width: 640px; height: 640px; left: -260px; top: -360px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--brand-rgb), .35), transparent 65%); }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); padding: clamp(56px, 7vw, 88px) 0 48px; }
.site-footer__brand img { height: 64px; width: auto; padding: 8px 14px; border-radius: 16px; background: #fff; }
.site-footer__brand p { margin-top: 18px; max-width: 360px; font-size: 15.5px; }
.site-footer__brand .socials { margin-top: 24px; }
.site-footer .socials a { background: rgba(255, 255, 255, .08); color: #fff; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; letter-spacing: -0.01em; }
.site-footer__links { display: grid; gap: 10px; font-size: 15.5px; }
.site-footer__links a { display: inline-flex; align-items: center; gap: 8px; transition: color .25s, transform .35s var(--ease-out); }
.site-footer__links a:hover { color: #fff; transform: translateX(4px); }
.site-footer__contacts { display: grid; gap: 14px; font-size: 15.5px; }
.site-footer__contacts li { display: flex; gap: 12px; align-items: flex-start; }
.site-footer__contacts .icon { color: var(--lime); margin-top: 3px; }
.site-footer__contacts a:hover { color: #fff; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.site-footer__bottom a { color: #fff; }
@media (max-width: 980px) { .site-footer__top { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__top { grid-template-columns: 1fr; } .site-footer { padding-bottom: 72px; } }

/* ---------- Статьи / детали ---------- */
.post-card { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); position: relative; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--grad-soft); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.post-card:hover .post-card__media img { transform: scale(1.06); }
.post-card__date { position: absolute; left: 16px; top: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 13px; font-weight: 600; }
.post-card__body { display: grid; gap: 10px; padding: 24px; flex: 1; align-content: start; }
.post-card__body p { color: var(--muted); font-size: 15.5px; }
.post-card__link::after { content: ""; position: absolute; inset: 0; }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.detail__cover { border-radius: var(--r-xl); overflow: hidden; background: var(--grad-soft); margin-bottom: 36px; }
.detail__cover img { width: 100%; max-height: 560px; object-fit: cover; }
.detail__aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.aside-card { padding: 26px; border-radius: var(--r-lg); background: var(--bg-soft); }
.aside-card--dark { background: var(--ink); color: rgba(255, 255, 255, .75); }
.aside-card--dark h3 { color: #fff; }
.aside-card h3 { font-size: 1.15rem; margin-bottom: 14px; }
.aside-links { display: grid; gap: 6px; }
.aside-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--r-sm); background: #fff; font-weight: 500; color: var(--ink); transition: background-color .25s, color .25s, transform .35s var(--ease-out); }
.aside-links a:hover, .aside-links a.is-active { background: var(--ink); color: #fff; }
.aside-links a svg { width: 16px; height: 16px; opacity: .6; }
@media (max-width: 980px) { .detail { grid-template-columns: minmax(0, 1fr); } .detail__aside { position: static; } }

/* Текст из CKEditor */
.prose { color: var(--text); font-size: 17px; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.8em; }
.prose h2 { font-size: 1.7rem; } .prose h3 { font-size: 1.35rem; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose img { border-radius: var(--r-md); height: auto !important; }
.prose blockquote { margin: 1.5em 0; padding: 18px 22px; border-left: 4px solid var(--pop); background: var(--bg-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.prose table { width: 100%; border-collapse: collapse; } .prose td, .prose th { border: 1px solid var(--line); padding: 10px; }

.empty { padding: 48px; text-align: center; border-radius: var(--r-lg); background: var(--bg-soft); color: var(--muted); }

/* 404 */
.error { text-align: center; padding: clamp(60px, 10vw, 140px) 0 0; display: grid; justify-items: center; gap: 18px; }
.error__code { font-size: clamp(6rem, 18vw, 12rem); font-weight: 800; line-height: .9; letter-spacing: -0.06em; }

/* ---------- Анимации ---------- */
@keyframes grad-shift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(12px) scale(.96); } }

/* Появление при прокрутке: скрываем только когда JS готов (класс fx-ready) */
/* Используем свойство translate, а не transform — чтобы не конфликтовать с hover-подъёмом карточек */
.fx-ready [data-reveal] { opacity: 0; translate: 0 28px; transition: opacity .9s var(--ease-out) var(--d, 0s), translate .9s var(--ease-out) var(--d, 0s), transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s; }
.fx-ready [data-reveal].is-in { opacity: 1; translate: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .fx-ready [data-reveal] { opacity: 1; translate: none; }
  @view-transition { navigation: none; }
}
