/* Артист&Ко (ARTIST &Co.) — стили сайта. Токены соответствуют docs/Проект_сайта_ARTIST_Co.md, §4.
   Палитра — только фирменные лайм (рост) и фиолетовый (творчество) с их оттенками; огненный — лишь «лучи» логотипа. */

:root {
  /* Ядро бренда */
  --lime: #97B200;
  --violet: #42237C;
  --fire: #C2431F;
  /* Оттенки ядра */
  --lime-pale: #D9EC8A;
  --olive: #587211;
  --lavender: #DECFFA;
  --violet-deep: #2E1760;
  --plum: #2A1238;
  --ink: #1C0B26;
  --cream: #F4EEDC;

  --font-display: 'Mirra', 'Cormorant', Georgia, serif;
  --font-text: 'Nunito Sans', 'Segoe UI', system-ui, sans-serif;

  --t-h1: clamp(2.75rem, 1.6rem + 5.4vw, 6.5rem);
  --t-h2: clamp(2.125rem, 1.5rem + 2.8vw, 4rem);
  --t-h3: clamp(1.3125rem, 1.2rem + .4vw, 1.625rem);
  --t-lead: clamp(1.1875rem, 1.05rem + .55vw, 1.5rem);
  --t-body: clamp(1.0625rem, 1rem + .2vw, 1.125rem);
  --t-small: .9375rem;

  --gutter: clamp(16px, 4vw, 56px);
  --wrap: 1320px;
  --sec-y: clamp(96px, 14vw, 176px);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --d-fast: 180ms;
  --d-base: 420ms;
  --d-slow: 900ms;

  --paper-shadow: 0 1px 0 rgba(28, 11, 38, .06), 0 22px 44px -20px rgba(28, 11, 38, .55);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page-bg, var(--lime));
  color: var(--plum);
  font-family: var(--font-text);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul[role="list"], ol.steps { list-style: none; padding: 0; }
button { font: inherit; color: inherit; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: 16px; z-index: 100;
  padding: 12px 20px; border-radius: 999px;
  background: var(--violet); color: var(--cream); font-weight: 700; text-decoration: none;
  transform: translateY(-160%); transition: transform var(--d-base) var(--ease-out);
}
.skip:focus { transform: none; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* Типографика */
.h1, .h2, .nav-name, .menu-links a, .ribbon span, .scarf-sign {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.01em;
}
.h1 { font-size: var(--t-h1); line-height: .92; }
.h2 { font-size: var(--t-h2); line-height: .95; }
.lead { font-size: var(--t-lead); line-height: 1.45; max-width: 34ch; }
.body-l { font-size: var(--t-body); max-width: 52ch; }
.split .ln { display: block; overflow: hidden; overflow-x: visible; overflow-y: clip; padding-bottom: .06em; margin-bottom: -.06em; }
.split .ln > span { display: block; }

/* Кнопки: пилюля + круглая иконка внутри */
.btn {
  --bg: var(--lime); --fg: var(--plum);
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 52px; padding: 6px 6px 6px 24px;
  border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none;
  cursor: pointer;
  transition: transform var(--d-fast) var(--ease-out), background-color var(--d-base) var(--ease-out), box-shadow var(--d-base) var(--ease-out), color var(--d-base) var(--ease-out);
}
.btn:not(:has(.btn-ico)) { padding-right: 24px; }
.btn-ico {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--fg); color: var(--bg);
  transition: transform var(--d-base) var(--ease-spring);
}
.btn-ico svg { width: 18px; height: 18px; }
.btn:hover .btn-ico { transform: translate(3px, -2px) scale(1.06); }
.btn:active { transform: scale(.98); }
.btn--sm { min-height: 44px; font-size: .9375rem; padding-left: 18px; gap: 10px; }
.btn--sm .btn-ico { width: 32px; height: 32px; }
.btn--sm .btn-ico svg { width: 15px; height: 15px; }
.btn--lime { --bg: var(--lime); --fg: var(--plum); }
.btn--violet { --bg: var(--violet); --fg: var(--cream); }
.btn--cream { --bg: var(--cream); --fg: var(--plum); }
.btn--outline { background: transparent; color: var(--violet); box-shadow: inset 0 0 0 1.5px var(--violet); }
.btn--outline:hover { background: var(--violet); color: var(--lime); }

/* ---------- Шапка ---------- */
.nav {
  position: fixed; z-index: 40; top: 14px; left: 50%;
  display: flex; align-items: center; gap: clamp(10px, 2vw, 28px);
  width: max-content; max-width: calc(100% - 24px);
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  color: var(--cream);
  background: rgba(42, 18, 56, .55);
  box-shadow: inset 0 0 0 1px rgba(244, 238, 220, .14);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  transform: translateX(-50%);
  transition: background-color var(--d-slow) var(--ease-out), opacity var(--d-slow) var(--ease-out), transform var(--d-slow) var(--ease-out);
}
.nav.is-solid { background: rgba(42, 18, 56, .82); }
body:not(.page-index) .nav { background: rgba(42, 18, 56, .86); }
.nav-logo { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--lime); }
.nav-sym { width: 44px; height: auto; }
.nav-name { font-size: 1.5rem; line-height: 1; padding-top: .1em; color: var(--cream); white-space: nowrap; }
.nav-links { display: flex; gap: clamp(12px, 1.8vw, 26px); }
.nav-links a {
  position: relative; text-decoration: none; font-weight: 600; font-size: .9375rem;
  padding: 12px 4px; min-width: 44px; text-align: center;
}
.nav-links a::after {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: 7px; height: 1.5px;
  background: var(--lime); transform: scaleX(0); transform-origin: left;
  transition: transform var(--d-base) var(--ease-out);
}
.nav-links a:hover::after { transform: scaleX(1); }
.burger { display: none; }

/* Полноэкранное меню */
.menu {
  position: fixed; inset: 0; z-index: 35;
  display: flex; flex-direction: column; justify-content: center; gap: 48px;
  padding: 120px var(--gutter) 48px;
  background: rgba(46, 23, 96, .94);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  color: var(--cream);
  opacity: 0; transition: opacity var(--d-base) var(--ease-out);
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; }
.menu-mark { position: absolute; right: -18vw; bottom: -10vh; width: 90vw; color: var(--lime); opacity: .14; pointer-events: none; }
.menu-links { display: flex; flex-direction: column; gap: 4px; position: relative; }
.menu-links a { font-size: clamp(2.75rem, 11vw, 5rem); line-height: 1.05; text-decoration: none; }
.menu-links a, .menu-foot {
  opacity: 0; transform: translateY(40px);
  transition: opacity var(--d-slow) var(--ease-out), transform var(--d-slow) var(--ease-out);
  transition-delay: calc(80ms + var(--i) * 60ms);
}
.menu.is-open .menu-links a, .menu.is-open .menu-foot { opacity: 1; transform: none; }
.menu-foot { display: flex; flex-direction: column; gap: 8px; font-weight: 600; position: relative; }
.menu-foot a { text-decoration: none; color: var(--lime); padding-block: 10px; }

/* ---------- Обложка ---------- */
.hero {
  --W: min(84vw, 760px, calc((100svh - 330px) * 1.45));
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: 104px var(--gutter) 88px;
  color: var(--violet);
  background: radial-gradient(70% 60% at 50% 38%, #A6C214 0%, var(--lime) 58%, #8AA300 100%);
}
.hero-flood { display: none; position: absolute; inset: 0; z-index: 0; background: inherit; }
.flyers { position: absolute; inset: 0; z-index: 1; pointer-events: none; transition: opacity 1.4s var(--ease-out); }
.fly { position: absolute; left: 0; top: 0; overflow: visible; will-change: transform; }
.fly--violet { color: var(--violet); }
.fly--olive { color: var(--olive); }
.fly .wing { transform-box: view-box; transform-origin: 0 0; animation: flap var(--flap, 1.2s) var(--ease-io) infinite alternate; }
.fly--leaf use { transform-box: fill-box; transform-origin: 50% 50%; animation: tumble var(--flap, 6s) linear infinite; }
@keyframes flap { from { transform: scaleX(1); } to { transform: scaleX(.22); } }
@keyframes tumble { to { transform: rotate(360deg); } }

.hero-lockup {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: clamp(14px, 2.6vh, 30px);
}
.sym-stack { position: relative; width: calc(var(--W) * .44); aspect-ratio: 283.465 / 226.855; }
.sym { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sym-a { display: none; color: var(--lime); }
.sym-b { color: var(--violet); animation: breathe 7s var(--ease-io) infinite; }
.sym .ray { fill: var(--fire); transform-box: view-box; }
.sym .ray-l { transform-origin: 105.8px 88.4px; }
.sym .ray-r { transform-origin: 173.1px 129.5px; }
.sym-b .ray { animation: ray-pulse 5.5s var(--ease-io) infinite; }
.sym-b .ray-r { animation-delay: .4s; }
.ripple { fill: none; stroke: var(--violet); stroke-width: 1.2; transform-box: view-box; transform-origin: 141px 127.5px; opacity: 0; animation: ripple 6s var(--ease-out) 1.2s infinite; }
.ripple--2 { animation-delay: 4.2s; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.018); } }
@keyframes ray-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes ripple { 0% { transform: scale(1); opacity: .45; } 100% { transform: scale(1.75); opacity: 0; } }
.paint path { stroke-dasharray: 1 1; stroke-dashoffset: 1; }

.hero-title { margin: 0; }
.hero-title .wm { width: var(--W); height: auto; color: var(--violet); overflow: visible; }
.wm-l, .wm-s { transform-box: fill-box; }
.hero-side { display: grid; justify-items: center; gap: 22px; margin-top: clamp(4px, 1.4vh, 16px); }
.hero-lead { font-size: var(--t-lead); line-height: 1.45; max-width: 36ch; color: var(--plum); text-wrap: balance; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.intro-skip {
  position: absolute; z-index: 5; right: var(--gutter); top: 20px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 0;
  background: rgba(42, 18, 56, .42); color: var(--cream); font-size: .875rem; font-weight: 600;
  cursor: pointer; display: none;
}
.motion-toggle {
  position: absolute; z-index: 5; right: var(--gutter); bottom: 22px;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: transparent; color: var(--violet); cursor: pointer;
  box-shadow: inset 0 0 0 1.5px var(--violet);
  transition: background-color var(--d-base) var(--ease-out), color var(--d-base) var(--ease-out);
}
.motion-toggle:hover { background: var(--violet); color: var(--lime); }
.motion-toggle svg { width: 20px; height: 20px; }
.motion-toggle .i-play, .motion-toggle[aria-pressed="true"] .i-pause { display: none; }
.motion-toggle[aria-pressed="true"] .i-play { display: block; }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }

/* Состояние заставки: фиолетовое поле, всё остальное ждёт своей очереди */
.intro .hero { background: radial-gradient(60% 55% at 50% 46%, #5A35A0 0%, var(--violet) 55%, var(--violet-deep) 100%); }
.intro .hero-flood { display: block; background: radial-gradient(70% 60% at 50% 38%, #A6C214 0%, var(--lime) 58%, #8AA300 100%); clip-path: circle(0 at 50% 50%); }
.intro .sym-a { display: block; }
.intro .sym-a .ray { transform: scale(0); }
.intro .sym-b { clip-path: circle(0 at 50% 50%); animation: none; }
.intro .ripple { animation: none; }
.intro .hero-title .wm-l, .intro .hero-title .wm-s, .intro .hero-side, .intro .nav, .intro .flyers, .intro .motion-toggle { opacity: 0; }
.intro .nav { transform: translate(-50%, -24px); }
/* Шапка и лепестки проявляются переходом по классу, а не анимацией скрипта: когда заставка кончается, им нечего
   проигрывать заново (Safari после отмены анимации запускал переход ещё раз — и шапка появлялась дважды) */
.intro.intro-nav .nav { opacity: 1; transform: translateX(-50%); }
.intro.intro-fly .flyers { opacity: 1; }
.intro .intro-skip { display: block; }

/* ---------- Общие секции ---------- */
.sec { position: relative; isolation: isolate; padding-block: var(--sec-y); overflow: hidden; overflow: clip; }
.sec-mark {
  position: absolute; z-index: -1; pointer-events: none;
  width: clamp(560px, 92vw, 1400px); height: auto;
  right: -24vw; top: 50%; translate: 0 -50%;
  opacity: .1;
}
@supports (animation-timeline: view()) {
  .sec-mark {
    animation: mark-turn linear both;
    animation-timeline: view();
  }
  @keyframes mark-turn { from { rotate: -14deg; } to { rotate: 16deg; } }
}

[data-reveal] { transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.js [data-reveal]:not(.split) { opacity: 0; transform: translateY(28px); }
.js [data-reveal].in:not(.split) { opacity: 1; transform: none; }
/* Спрятанная строка уходит ниже края целиком: при сдвиге на 105 % из-под края торчали верхушки букв (строки
   плотные, буквы выше своей строки), и до выезда на месте заголовка уже виднелась полоска текста */
.js .split[data-reveal] .ln > span { transform: translateY(calc(100% + .3em)); transition: transform 1.1s var(--ease-out); }
.js .split[data-reveal] .ln:nth-child(2) > span { transition-delay: 90ms; }
.js .split[data-reveal].in .ln > span { transform: none; }

/* ---------- Манифест (фиолетовый) ---------- */
.manifest { background: var(--violet); color: var(--cream); padding-bottom: 0; }
.manifest .sec-mark { color: var(--lime); opacity: .08; left: -30vw; right: auto; }
.manifest-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.manifest-text { display: grid; gap: 28px; }
.manifest .h1 { color: var(--lime); }
.badge { position: relative; width: min(100%, 460px); aspect-ratio: 1; justify-self: center; color: var(--lime); }
.badge-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 38s linear infinite; }
.badge-ring text { font-family: var(--font-display); font-size: 21px; fill: var(--lime); }
.badge-sym { position: absolute; inset: 22%; width: 56%; height: auto; margin: auto; top: 50%; translate: 0 -50%; }
@keyframes spin { to { rotate: 360deg; } }

.ribbon {
  margin-top: clamp(80px, 10vw, 140px);
  background: var(--lime); color: var(--violet);
  rotate: -2deg; margin-inline: -4vw; padding-block: 18px;
  overflow: hidden; translate: 0 32px;
}
.ribbon-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 40s linear infinite; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon span { font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem); line-height: 1; padding-top: .1em; white-space: nowrap; }
.ribbon svg { width: 46px; height: auto; aspect-ratio: 283.465 / 226.855; color: var(--violet); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Антикризис (светлый лайм) ---------- */
.crisis { background: var(--lime-pale); color: var(--plum); }
.crisis .h1 { color: var(--violet); }
.crisis .sec-mark { color: var(--violet); opacity: .08; }
.crisis-lead { max-width: 40ch; margin-top: 32px; }
.crisis-rays { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.crisis-rays .cr { fill: var(--fire); opacity: .38; transform-box: view-box; transform: scale(0); transition: transform 1.6s var(--ease-out); }
.crisis-rays .cr-1 { transform-origin: 526px 341px; }
.crisis-rays .cr-2 { transform-origin: 463px 290px; transition-delay: .15s; }
.crisis-rays.in .cr { transform: none; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin: clamp(48px, 6vw, 88px) 0; }
.steps li { counter-increment: step; display: grid; gap: 10px; align-content: start; padding-top: 22px; border-top: 1.5px solid rgba(66, 35, 124, .35); }
.steps li::before { content: counter(step); font-family: var(--font-display); font-size: 3.5rem; line-height: .8; color: var(--violet); }
.steps h3 { font-size: var(--t-h3); line-height: 1.2; font-weight: 800; color: var(--violet); }
.steps p { max-width: 34ch; }

/* ---------- Услуги ---------- */
.services-head { background: var(--cream); color: var(--plum); padding-bottom: clamp(64px, 8vw, 112px); }
.services-head-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 32px; }
.services-head .h1 { color: var(--violet); }

.svc {
  --bg: var(--violet); --fg: var(--cream); --accent: var(--lime); --mark: var(--lime);
  position: sticky; top: 0;
  min-height: 100vh; min-height: 100svh;
  display: grid; align-items: center;
  padding-block: clamp(96px, 11vh, 140px) clamp(56px, 8vh, 96px);
  background: var(--bg); color: var(--fg);
  overflow: hidden; isolation: isolate;
  transform-origin: 50% 0;
  transition: transform 1s var(--ease-out), border-radius 1s var(--ease-out);
}
.svc::after {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: var(--ink); opacity: 0; transition: opacity 1s var(--ease-out);
}
.svc.is-covered { transform: scale(.94); border-radius: 28px; }
.svc.is-covered::after { opacity: .45; }
.svc .sec-mark { color: var(--mark); opacity: .12; }
.svc .h2 { color: var(--accent); font-size: clamp(2.5rem, 1.4rem + 4.4vw, 5.75rem); line-height: .92; }
.t-violet { --bg: var(--violet); --fg: var(--cream); --accent: var(--lime); --on-accent: var(--plum); --mark: var(--lime); }
.t-lime { --bg: var(--lime); --fg: var(--plum); --accent: var(--violet); --on-accent: var(--cream); --mark: var(--violet); }
.t-plum { --bg: var(--plum); --fg: var(--cream); --accent: var(--lime); --on-accent: var(--plum); --mark: var(--lime); }
.t-lavender { --bg: var(--lavender); --fg: var(--plum); --accent: var(--violet); --on-accent: var(--cream); --mark: var(--violet); }
.t-olive { --bg: var(--olive); --fg: var(--cream); --accent: var(--lime-pale); --on-accent: var(--plum); --mark: var(--lime-pale); }
.t-limepale { --bg: var(--lime-pale); --fg: var(--plum); --accent: var(--violet); --on-accent: var(--cream); --mark: var(--violet); }
.t-cream { --bg: var(--cream); --fg: var(--plum); --accent: var(--violet); --on-accent: var(--cream); --mark: var(--violet); }
.svc-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.svc-text { display: grid; gap: 22px; justify-items: start; }
.svc-list { display: grid; gap: 8px; padding-left: 1.3em; margin: 4px 0 10px; }
.svc-list li { padding-left: .3em; }
.svc-list li::marker { color: var(--accent); }
.svc-list--steps li::marker { font-weight: 800; }
ul.svc-list { list-style: none; padding-left: 0; display: flex; flex-wrap: wrap; gap: 10px; }
ul.svc-list li { padding: 8px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--fg) 40%, transparent); font-weight: 600; font-size: .9375rem; }

.svc-visual { position: relative; display: grid; place-items: center; min-height: 0; }
.lens {
  width: min(100%, 62vh, 540px); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 10px var(--accent);
  transition: clip-path 1.3s var(--ease-io);
}
.js .lens { clip-path: circle(0% at 50% 50%); }
.js .svc-visual.in .lens { clip-path: circle(75% at 50% 50%); }
.lens img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.6s var(--ease-out); }
.svc-visual.in .lens img { transform: none; }
.card {
  position: absolute; width: clamp(130px, 15vw, 220px); aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 6px; box-shadow: var(--paper-shadow);
  right: 0; bottom: 4%;
  transition: transform 1.2s var(--ease-spring) .25s, opacity .8s var(--ease-out) .25s;
}
.card--cut { aspect-ratio: auto; object-fit: contain; box-shadow: none; border-radius: 0; width: clamp(170px, 19vw, 280px); filter: drop-shadow(0 18px 24px rgba(28, 11, 38, .35)); }
.card--tilt-r { rotate: 7deg; }
.card--tilt-l { rotate: -6deg; left: 0; right: auto; }
.js .svc:not(.is-in) .card { opacity: 0; transform: translateY(60px); }

/* ---------- Мерч: кайма платка в цветах бренда ---------- */
.merch { background: var(--cream); color: var(--plum); }
.scarf { padding: clamp(8px, 1.1vw, 14px); background: var(--lime); border-radius: 4px; box-shadow: var(--paper-shadow); }
.scarf-dots {
  padding: clamp(14px, 2vw, 26px);
  background-color: var(--lavender);
  background-image: radial-gradient(circle, var(--violet) 1.3px, transparent 1.9px);
  background-size: 22px 22px;
}
.scarf-line { padding: 2px; background: var(--violet); }
.scarf-band { position: relative; padding: clamp(28px, 4vw, 56px); background: var(--plum); }
.scarf-sign {
  position: absolute; color: var(--lime);
  font-size: clamp(1.25rem, .9rem + 1.2vw, 2rem); line-height: 1; padding-top: .1em;
}
.scarf-sign--b { right: clamp(28px, 6vw, 96px); bottom: clamp(5px, .9vw, 14px); }
.scarf-sign--t { left: clamp(28px, 6vw, 96px); top: clamp(5px, .9vw, 14px); rotate: 180deg; }
.scarf-field { background: var(--cream); padding: clamp(28px, 5vw, 80px) clamp(16px, 4vw, 64px); }
.merch-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; gap: 32px; margin-bottom: clamp(40px, 5vw, 72px); }
.merch .h1 { color: var(--violet); }
.products { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.prod { grid-column: span 4; }
.prod--xl { grid-column: span 6; grid-row: span 2; }
.prod:nth-child(2), .prod:nth-child(3) { grid-column: span 6; }
.prod {
  padding: 6px; border-radius: 28px;
  background: rgba(42, 18, 56, .05);
  box-shadow: inset 0 0 0 1px rgba(42, 18, 56, .08);
}
.prod-in {
  height: 100%; display: flex; flex-direction: column; gap: 16px;
  padding: 10px 10px 16px; border-radius: 22px; background: #fff;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .9), 0 10px 30px -18px rgba(42, 18, 56, .35);
}
.prod-media { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--cream); }
.prod--xl .prod-media { flex: 1; aspect-ratio: auto; min-height: 320px; }
.prod:nth-child(2) .prod-media, .prod:nth-child(3) .prod-media { aspect-ratio: 16 / 10; }
.prod-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity var(--d-slow) var(--ease-out), transform 1.4s var(--ease-out); }
.prod-media .alt { opacity: 0; transform: scale(1.06); }
.prod-media .alt--flat { object-fit: contain; padding: 6%; background: var(--cream); }
.prod:hover .prod-media .alt, .prod:focus-within .prod-media .alt { opacity: 1; transform: none; }
.prod:hover .prod-media img:first-child { transform: scale(1.04); }
.prod-info { display: grid; gap: 4px; padding-inline: 6px; }
.prod-info h3 { font-size: 1.1875rem; line-height: 1.25; font-weight: 800; }
.prod-info p { font-size: var(--t-small); color: color-mix(in srgb, var(--plum) 72%, transparent); }
.tag { flex: none; padding: 5px 12px; border-radius: 999px; background: var(--lime-pale); color: var(--violet); font-size: .8125rem; font-weight: 700; }
.tag--in_stock { background: var(--lime); color: var(--plum); }
.tag--out { background: #E7DFE9; color: var(--plum); }
.prod-tag { position: absolute; z-index: 2; left: 26px; top: 26px; box-shadow: 0 8px 16px -10px rgba(42, 18, 56, .6); pointer-events: none; }
.prod-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; margin-top: auto; padding-inline: 6px; }
.prod-price { margin: 0; }
.merch-note { margin-top: 28px; font-weight: 600; color: var(--violet); }

/* ---------- Партнёры (лаванда) ---------- */
.partners { background: var(--lavender); color: var(--plum); }
.partners .sec-mark { color: var(--violet); opacity: .08; }
.partners-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.partners-grid > div { display: grid; gap: 28px; justify-items: start; }
.partners .h1 { color: var(--violet); }
.rings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.rings li {
  display: grid; place-items: center; text-align: center;
  aspect-ratio: 1; margin: -6%; padding: 18%;
  border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--violet);
  font-weight: 700; font-size: clamp(.875rem, .8rem + .3vw, 1.0625rem); line-height: 1.25; color: var(--violet);
  transition: background-color var(--d-base) var(--ease-out), color var(--d-base) var(--ease-out), transform var(--d-slow) var(--ease-spring);
}
.rings li:nth-child(even) { translate: 0 18%; }
.rings li:hover { background: var(--violet); color: var(--lime); transform: scale(1.04); }

/* ---------- Контакты ---------- */
.contacts { background: linear-gradient(180deg, var(--violet) 0%, var(--violet-deep) 100%); color: var(--cream); }
.contacts .h1 { color: var(--lime); }
.contacts-sym { position: absolute; z-index: -1; width: clamp(420px, 60vw, 900px); right: -10vw; bottom: -18%; color: var(--lime); opacity: .14; }
.contacts-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: end; }
.contacts-grid > div { display: grid; gap: 28px; }
.contact-list { display: grid; }
.contact-list a {
  display: flex; align-items: center; gap: 20px; padding: 20px 4px;
  border-bottom: 1.5px solid rgba(244, 238, 220, .22); text-decoration: none;
  transition: color var(--d-base) var(--ease-out);
}
.contact-list li:first-child a { border-top: 1.5px solid rgba(244, 238, 220, .22); }
.contact-list svg { width: 30px; height: 30px; flex: none; color: var(--lime); transition: transform var(--d-base) var(--ease-spring); }
.contact-list a > span { display: grid; font-size: clamp(1.25rem, 1rem + 1vw, 1.875rem); line-height: 1.2; font-weight: 700; }
.contact-list b { font-size: .875rem; font-weight: 600; color: rgba(244, 238, 220, .72); }
.contact-list a:hover { color: var(--lime); }
.contact-list a:hover svg { transform: rotate(-8deg) scale(1.1); }

/* ---------- Подвал ---------- */
.foot { background: var(--plum); color: rgba(244, 238, 220, .8); padding-block: clamp(56px, 7vw, 88px) 28px; font-size: var(--t-small); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr)); gap: 40px 32px; align-items: start; }
.foot-brand { display: flex; align-items: center; gap: 16px; color: var(--lime); }
.foot-brand svg { width: 64px; height: auto; }
.foot-brand p { font-family: var(--font-display); font-size: 1.375rem; line-height: 1.05; color: var(--cream); }
.foot-h { margin-bottom: 8px; font-size: .8125rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--cream); }
.foot-list { display: grid; margin: 0 0 14px; }
.foot-list a { display: inline-block; padding-block: 6px; color: var(--cream); text-decoration: none; overflow-wrap: anywhere; }
.foot-list a:hover { color: var(--lime); text-decoration: underline; text-underline-offset: 4px; }
.foot-list a[aria-current="page"] { color: var(--lime); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: clamp(36px, 5vw, 56px); padding-top: 22px; border-top: 1px solid rgba(244, 238, 220, .16); }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .burger {
    display: grid; place-items: center; position: relative;
    width: 44px; height: 44px; border: 0; border-radius: 50%;
    background: rgba(244, 238, 220, .14); cursor: pointer;
  }
  .burger span {
    position: absolute; width: 18px; height: 1.5px; background: var(--cream); border-radius: 2px;
    transition: transform var(--d-base) var(--ease-out);
  }
  .burger span:first-child { transform: translateY(-4px); }
  .burger span:last-child { transform: translateY(4px); }
  .burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
}
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .manifest-grid, .services-head-grid, .merch-head, .partners-grid, .contacts-grid { grid-template-columns: 1fr; }
  .badge { width: min(78%, 360px); }
  .steps { grid-template-columns: 1fr; }
  .svc { position: relative; min-height: 0; }
  .svc.is-covered { transform: none; border-radius: 0; }
  .svc.is-covered::after { opacity: 0; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-visual { order: -1; margin-bottom: 8px; }
  .lens { width: min(84vw, 420px); }
  .products { grid-template-columns: 1fr 1fr; }
  .prod, .prod--xl, .prod:nth-child(2), .prod:nth-child(3) { grid-column: span 1; grid-row: auto; }
  .prod--xl { grid-column: 1 / -1; }
  .prod--xl .prod-media { aspect-ratio: 1; min-height: 0; flex: none; }
  .prod:nth-child(2) .prod-media, .prod:nth-child(3) .prod-media { aspect-ratio: 1; }
  .rings { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 460px; }
  .rings li:nth-child(even) { translate: 0 0; }
  .rings li { margin: -4%; }
}
@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; }
  .hero { --W: min(86vw, 420px); padding-bottom: 92px; }
  .nav { padding-left: 10px; gap: 8px; }
  .nav-name { font-size: 1.25rem; }
  .nav-sym { width: 36px; }
  .nav-cta { display: none; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { width: 100%; justify-content: space-between; }
  .hero-cta .btn--outline { justify-content: center; }
  .products { grid-template-columns: 1fr; }
  .scarf-sign--t { display: none; }
  .merch > .wrap { width: calc(100% - 16px); }
  .scarf { padding: 6px; }
  .scarf-dots { padding: 8px; background-size: 16px 16px; }
  .scarf-band { padding: 12px 12px 30px; }
  .scarf-sign--b { right: 18px; bottom: 6px; font-size: 1.125rem; }
  .scarf-field { padding: 28px 14px; }
  .card { width: 34vw; }
  .card--cut { width: 40vw; }
}
@media (max-height: 760px) and (min-width: 901px) {
  .svc { position: relative; }
  .svc.is-covered { transform: none; border-radius: 0; }
  .svc.is-covered::after { opacity: 0; }
}

/* Уменьшение движения: всё сразу в финальном состоянии */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; transition-delay: 0s !important; }
  .js [data-reveal]:not(.split), .js .split[data-reveal] .ln > span { opacity: 1; transform: none; }
  .js .lens { clip-path: none; }
  .lens img { transform: none; }
  .js .svc:not(.is-in) .card { opacity: 1; transform: none; }
  .crisis-rays .cr { transform: none; }
  .flyers, .motion-toggle { display: none; }
}

/* =====================================================================
   Сайт целиком: внутренние страницы, QR-коды, общие блоки (v0.3)
   ===================================================================== */
.nw { white-space: nowrap; }
.tone { background: var(--bg); color: var(--fg); }
.tone .h1, .tone .h2 { color: var(--accent); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.menu-links a[aria-current="page"], .menu-links a.is-going { color: var(--lime); }

/* Кнопки в цвет темы раздела */
.btn--accent { --bg: var(--accent); --fg: var(--on-accent); }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { background: color-mix(in srgb, currentColor 14%, transparent); }
.btn-row, .phero-cta, .svc-cta, .cta-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.crisis .btn-row { margin-top: 8px; }
.partners .btn-row { justify-self: stretch; }
.services-head-side { display: grid; gap: 24px; justify-items: start; }
.text-link { display: inline-block; padding-block: 10px; font-weight: 700; color: var(--lime); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.text-link:hover { text-decoration-thickness: 3px; }
.fine { margin-top: 28px; font-size: var(--t-small); max-width: 60ch; }
.fine a { color: var(--accent, var(--violet)); font-weight: 700; }

/* Хлебные крошки */
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; font-size: var(--t-small); font-weight: 600; }
.crumbs li { display: flex; align-items: center; }
.crumbs li:not(:last-child)::after { content: ""; width: 16px; height: 1.5px; margin: 0 10px; background: currentColor; opacity: .5; }
.crumbs a, .crumbs [aria-current] { display: inline-block; padding-block: 10px; }
.crumbs a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.crumbs a:hover { text-decoration-thickness: 2px; }

/* Обложка внутренней страницы */
.phero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-items: center;
  min-height: min(100vh, 940px); min-height: min(100svh, 940px);
  padding-block: clamp(112px, 15vh, 160px) clamp(64px, 8vw, 112px);
}
.phero .sec-mark { color: var(--mark); opacity: .1; }
.phero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.phero-grid--solo { grid-template-columns: minmax(0, 1fr); }
.phero-text { display: grid; gap: 24px; justify-items: start; }
/* Длинное слово («Стоматология», «Мерчендайзинг») уменьшает заголовок, чтобы он не выходил из колонки текста */
.phero-text { container-type: inline-size; }
.phero .h1 { font-size: min(clamp(2.75rem, 1.4rem + 4.6vw, 6rem), calc(100cqi / var(--fit-em, 6))); line-height: .92; }
.phero .lead { max-width: 38ch; }
.phero .svc-visual { min-height: 0; }
.phero--short { min-height: 0; padding-bottom: clamp(40px, 5vw, 64px); }
.phero--404 .phero-text { max-width: 760px; }
.phero-sym { display: grid; place-items: center; color: var(--violet); }
.phero-sym svg { width: min(100%, 540px); height: auto; overflow: visible; }
.phero--about .badge { width: min(100%, 440px); }

/* Оглавление направлений */
.toc ol { margin: 0; padding: 0; list-style: none; border-top: 1.5px solid color-mix(in srgb, var(--fg) 24%, transparent); }
.toc a {
  display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 14px 4px; border-bottom: 1.5px solid color-mix(in srgb, var(--fg) 24%, transparent);
  text-decoration: none; transition: color var(--d-base) var(--ease-out), padding var(--d-base) var(--ease-out);
}
.toc-num { font-weight: 800; font-size: .9375rem; letter-spacing: .06em; color: var(--accent); }
.toc-title { font-size: clamp(1.125rem, .95rem + .6vw, 1.5rem); font-weight: 700; line-height: 1.25; }
.toc .btn-ico { width: 36px; height: 36px; background: var(--violet); color: var(--cream); }
.toc .btn-ico svg { width: 16px; height: 16px; }
.toc a:hover { color: var(--violet); padding-left: 10px; }
.toc a:hover .btn-ico { transform: translate(3px, -2px) scale(1.06); }

/* Блоки внутренних страниц */
.blk { padding-block: clamp(80px, 10vw, 144px); }
.blk-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px 48px; align-items: end; margin-bottom: clamp(36px, 5vw, 72px); }
.blk-head > :only-child { grid-column: 1 / -1; }
.blk-head .lead { max-width: 42ch; }
.blk .steps { margin: 0; }
.cards + .btn-row, .svc-links + .btn-row { margin-top: clamp(28px, 3vw, 40px); }
.sec-mark--l { left: -30vw; right: auto; }
.tone .steps li { border-top-color: color-mix(in srgb, var(--fg) 30%, transparent); }
.tone .steps li::before, .tone .steps h3 { color: var(--accent); }
.steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Карточки */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); margin: 0; padding: 0; list-style: none; }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cardx {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 12px; align-content: start;
  padding: clamp(24px, 2.6vw, 36px); border-radius: 28px;
  background: color-mix(in srgb, var(--fg) 7%, transparent);
}
.t-olive .cardx, .t-olive .signs li { background: rgba(28, 11, 38, .18); }
.js .cardx[data-reveal] { transition-delay: calc(var(--d, 0) * 90ms); }
.cardx-sym { width: 54px; height: auto; margin-bottom: 6px; color: var(--accent); }
.cardx h3 { font-size: var(--t-h3); line-height: 1.2; font-weight: 800; color: var(--accent); }
.cardx p { max-width: 38ch; }
.swatch { min-height: clamp(220px, 24vw, 320px); align-content: end; box-shadow: none; }
.swatch h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.5rem, 1.6rem + 2.4vw, 4rem); line-height: .95; }
.swatch p { font-size: var(--t-lead); font-weight: 600; }
.swatch-sym { position: absolute; z-index: -1; right: -6%; top: -10%; width: 58%; height: auto; opacity: .9; }
.swatch--violet { background: var(--violet); color: var(--cream); }
.swatch--violet h3, .swatch--violet .swatch-sym { color: var(--lime); }
.swatch--lime { background: var(--lime); color: var(--plum); }
.swatch--lime h3, .swatch--lime .swatch-sym { color: var(--violet); }

/* Что входит: пронумерованный план */
.plan { margin: 0; padding: 0; list-style: none; counter-reset: plan; border-bottom: 1.5px solid color-mix(in srgb, var(--fg) 24%, transparent); }
.plan > li {
  counter-increment: plan;
  display: grid; grid-template-columns: clamp(64px, 8vw, 128px) minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 10px clamp(20px, 3vw, 48px); align-items: start;
  padding-block: clamp(22px, 2.6vw, 36px);
  border-top: 1.5px solid color-mix(in srgb, var(--fg) 24%, transparent);
}
.plan > li::before { content: counter(plan, decimal-leading-zero); font-family: var(--font-display); font-size: clamp(2.5rem, 1.9rem + 1.6vw, 3.75rem); line-height: .85; color: var(--accent); }
.plan h3 { font-size: var(--t-h3); line-height: 1.25; font-weight: 800; }
.plan-body { display: grid; gap: 10px; max-width: 54ch; }
.plan-body ul { display: grid; gap: 4px; margin: 0; padding-left: 1.2em; }
.plan-body li::marker { color: var(--accent); }

/* Галерея */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); margin: 0; padding: 0; list-style: none; }
.gallery figure { display: grid; gap: 10px; margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 22px; background: #fff; box-shadow: var(--paper-shadow); }
.gallery figcaption { font-size: var(--t-small); font-weight: 600; }

/* Плитки направлений */
.svc-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); margin: 0; padding: 0; list-style: none; }
.svc-links > li { display: grid; }
.svc-link {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  min-height: clamp(200px, 19vw, 260px); padding: clamp(22px, 2.4vw, 32px);
  border-radius: 28px; text-decoration: none;
  transition: transform var(--d-base) var(--ease-out), box-shadow var(--d-base) var(--ease-out);
}
.svc-link-sym { position: absolute; z-index: -1; right: -16%; bottom: -24%; width: 70%; height: auto; color: var(--mark); opacity: .16; transition: rotate var(--d-slow) var(--ease-out); }
.svc-link-title { font-family: var(--font-display); font-size: clamp(2rem, 1.5rem + 1.1vw, 2.625rem); line-height: .95; color: var(--accent); }
.svc-link-desc { max-width: 34ch; font-size: var(--t-small); }
.svc-link .btn-ico { margin-top: auto; background: var(--accent); color: var(--bg); }
.svc-links--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.svc-link--all .svc-link-sym { width: 64%; right: -10%; bottom: -20%; opacity: .22; }
.svc-link:hover { transform: translateY(-4px); box-shadow: 0 26px 40px -26px rgba(28, 11, 38, .6); }
.svc-link:hover .svc-link-sym { rotate: -10deg; }
.svc-link:hover .btn-ico { transform: translate(3px, -2px) scale(1.06); }

/* Антикризис: признаки */
.signs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); margin: 0; padding: 0; list-style: none; }
.signs li {
  display: flex; align-items: center; gap: 18px;
  padding: clamp(20px, 2.2vw, 30px); border-radius: 24px;
  background: color-mix(in srgb, var(--fg) 8%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 18%, transparent);
  font-size: var(--t-lead); line-height: 1.35; font-weight: 600;
}
.signs svg { flex: none; width: 56px; height: auto; color: var(--accent); }

/* О лаборатории */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.about-text { display: grid; gap: 24px; }
/* «О лаборатории»: «Почему стрелиция» — рассказ Евгения; на компьютере фото слева, на телефоне — после текста */
.story .sec-mark { color: var(--mark); opacity: .08; }
.story-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 104px); align-items: center; }
.story-photo { order: -1; margin: 0; overflow: hidden; border-radius: 28px; box-shadow: 0 32px 64px -32px rgba(10, 4, 20, .75); }
.story-photo img { display: block; width: 100%; height: auto; }
.story-text { display: grid; gap: clamp(24px, 3vw, 40px); justify-items: start; }
.story-quote { display: grid; gap: 24px; margin: 0; }
.story-quote blockquote { display: grid; gap: 16px; margin: 0; }
.story-quote p { max-width: 56ch; }
.story-quote .lead { max-width: 30ch; color: var(--accent); }
.story-quote figcaption { padding-top: 18px; border-top: 1.5px solid color-mix(in srgb, var(--fg) 24%, transparent); font-size: var(--t-small); font-weight: 600; }
.story-quote figcaption b { font-weight: 800; }
@media (max-width: 900px) {
  .story-grid { grid-template-columns: minmax(0, 1fr); }
  .story-photo { order: 0; max-width: 440px; }
}

/* Контакты: QR-код рядом с каждым */
.contact-list--qr li { display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); border-bottom: 1.5px solid rgba(244, 238, 220, .22); }
.contact-list--qr li:first-child { border-top: 1.5px solid rgba(244, 238, 220, .22); }
.contact-list--qr li { padding-block: 10px; }
.contact-list--qr a, .contact-list--qr li:first-child a { flex: 1 1 auto; min-width: 0; padding: 10px 4px; border: 0; }
.contact-list .contact-val { display: block; font-size: clamp(1.125rem, .95rem + .8vw, 1.625rem); overflow-wrap: anywhere; }
.qr { flex: none; width: clamp(76px, 7.4vw, 112px); height: auto; border-radius: 10px; box-shadow: 0 12px 26px -16px rgba(0, 0, 0, .6); }

.cta-side { display: grid; gap: 14px; justify-items: start; }
/* Заголовок призыва не шире своей колонки: длинное слово («экспериментируйте») уменьшает шрифт, короткие — не трогают.
   --fit-em — ширина этого слова в кеглях, сервер считает её по ширинам букв Mirra (core/mirra_metrics.py). */
.cta-head { container-type: inline-size; }
.cta-head .h1 { font-size: min(var(--t-h1), calc(100cqi / var(--fit-em, 6))); }

.contacts--page { padding-top: clamp(112px, 15vh, 160px); }
.contacts-head { display: grid; gap: 22px; justify-items: start; margin-bottom: clamp(40px, 5vw, 64px); }
.contacts-head .lead { max-width: 40ch; }
.contact-cards { --cols: 5; --gap: clamp(14px, 1.6vw, 24px); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.contact-cards > li { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; }
.ccard {
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  padding: clamp(22px, 2.4vw, 32px); border-radius: 28px;
  background: rgba(244, 238, 220, .07); box-shadow: inset 0 0 0 1px rgba(244, 238, 220, .18);
}
.ccard-top { display: flex; align-items: center; gap: 12px; }
.ccard-top svg { width: 28px; height: 28px; color: var(--lime); }
.ccard h2 { font-size: 1rem; font-weight: 700; color: rgba(244, 238, 220, .8); }
.ccard-val { font-size: clamp(1.125rem, .95rem + .3vw, 1.3125rem); line-height: 1.25; font-weight: 800; overflow-wrap: anywhere; }
.ccard .qr { width: min(168px, 100%); border-radius: 14px; }
.ccard .btn { margin-top: auto; }
.contacts-note { margin-top: clamp(32px, 4vw, 48px); max-width: 60ch; }
.contacts-note a { color: var(--lime); font-weight: 700; }

/* Мерч: сетка каталога и ссылка на карточку */
.prod { position: relative; }
.prod-link { text-decoration: none; }
.prod-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 28px; }
.prod-link:focus-visible { outline: none; }
.prod-link:focus-visible::after { outline: 3px solid var(--violet); outline-offset: 3px; }
.prod:hover .prod-link { text-decoration: underline; text-underline-offset: 3px; }
.prod-btn { position: relative; z-index: 2; }
.merch-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 28px; }
.merch-foot .merch-note { margin: 0; }
.products--grid .prod, .products--grid .prod:nth-child(2), .products--grid .prod:nth-child(3) { grid-column: span 4; grid-row: auto; }
.products--3 .prod, .products--3 .prod:nth-child(2), .products--3 .prod:nth-child(3) { grid-column: span 4; }
.products--grid .prod-media, .products--grid .prod:nth-child(2) .prod-media, .products--grid .prod:nth-child(3) .prod-media { aspect-ratio: 1; }
.merch--page { padding-top: 0; }

/* Карточка товара */
.pdp { padding-top: clamp(112px, 14vh, 150px); }
.pdp-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.pdp-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pdp-main, .pdp-thumb { display: block; aspect-ratio: 1; overflow: hidden; background: #fff; cursor: zoom-in; }
.pdp-main { grid-column: 1 / -1; border-radius: 28px; box-shadow: var(--paper-shadow); }
.pdp-thumb { border-radius: 22px; }
.pdp-main + .pdp-thumb:last-child { grid-column: 1 / -1; }
.pdp-main img, .pdp-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.pdp-main:hover img, .pdp-thumb:hover img { transform: scale(1.04); }
.pdp-info { position: sticky; top: 96px; display: grid; gap: 22px; justify-items: start; }
.pdp-title { font-size: clamp(2.5rem, 1.6rem + 3vw, 4.5rem); line-height: .95; }
.pdp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-weight: 700; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; width: 100%; margin: 0; border-top: 1.5px solid color-mix(in srgb, var(--fg) 18%, transparent); }
.specs > div { display: grid; gap: 2px; padding-block: 12px; border-bottom: 1.5px solid color-mix(in srgb, var(--fg) 18%, transparent); }
.specs dt { font-size: .8125rem; font-weight: 700; color: color-mix(in srgb, var(--fg) 78%, transparent); }
.specs dd { margin: 0; font-weight: 700; }
.specs--wide { grid-template-columns: minmax(0, 1fr); }
.specs--wide > div { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 16px; align-items: baseline; }
.specs a { color: var(--violet); }

/* Документы */
.docs { padding-top: 0; }
.docs-grid { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.docs-toc { position: sticky; top: 96px; }
.docs-toc ol { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1.5px solid color-mix(in srgb, var(--fg) 20%, transparent); }
.docs-toc a { display: block; padding: 12px 4px; border-bottom: 1.5px solid color-mix(in srgb, var(--fg) 20%, transparent); color: var(--violet); font-weight: 700; text-decoration: none; }
.docs-toc a:hover { text-decoration: underline; text-underline-offset: 4px; }
.docs-body { display: grid; gap: clamp(44px, 5vw, 72px); max-width: 72ch; }
.doc { display: grid; gap: 14px; scroll-margin-top: 104px; }
.doc h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.25rem, 1.7rem + 1.6vw, 3.25rem); line-height: 1; color: var(--violet); }
.doc ul { display: grid; gap: 8px; margin: 0; padding-left: 1.2em; }
.doc li::marker { color: var(--violet); }
.doc a { color: var(--violet); font-weight: 700; }

@media (max-width: 1240px) {
  .contact-cards { --cols: 3; }
}
@media (max-width: 1100px) {
  .steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .products--grid:not(.products--3) .prod, .products--grid:not(.products--3) .prod:nth-child(2), .products--grid:not(.products--3) .prod:nth-child(3) { grid-column: span 6; }
}
@media (max-width: 900px) {
  .phero { min-height: 0; }
  .phero-grid, .blk-head, .about-grid, .pdp-grid, .docs-grid { grid-template-columns: minmax(0, 1fr); }
  .phero .svc-visual { order: 0; margin-top: 8px; }
  .phero .lens { width: min(76vw, 400px); }
  .phero-sym svg { width: min(78vw, 420px); }
  .phero--about .badge { width: min(70%, 340px); }
  .cards, .cards--4, .gallery, .svc-links, .signs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps--2 { grid-template-columns: 1fr; }
  .plan > li { grid-template-columns: 64px minmax(0, 1fr); }
  .plan-body { grid-column: 2; }
  .products--grid .prod, .products--grid .prod:nth-child(2), .products--grid .prod:nth-child(3),
  .products--3 .prod, .products--3 .prod:nth-child(2), .products--3 .prod:nth-child(3) { grid-column: span 1; }
  .pdp-info, .docs-toc { position: static; }
  .contact-cards { --cols: 2; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .products--3 .prod, .products--3 .prod:nth-child(2), .products--3 .prod:nth-child(3) { grid-column: span 4; }
}
@media (max-width: 560px) {
  .cards, .cards--4, .cards--2, .gallery, .svc-links, .signs { grid-template-columns: minmax(0, 1fr); }
  .contact-cards { --cols: 1; }
  .phero-cta .btn, .cta-btns .btn, .svc-cta .btn, .btn-row .btn { flex: 1 1 100%; justify-content: space-between; }
  .phero-cta .btn:not(:has(.btn-ico)), .cta-btns .btn:not(:has(.btn-ico)), .svc-cta .btn:not(:has(.btn-ico)), .btn-row .btn:not(:has(.btn-ico)) { justify-content: center; }
  .products--grid .prod, .products--grid .prod:nth-child(2), .products--grid .prod:nth-child(3),
  .products--3 .prod, .products--3 .prod:nth-child(2), .products--3 .prod:nth-child(3) { grid-column: 1 / -1; }
  .specs { grid-template-columns: minmax(0, 1fr); }
  .specs--wide > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .signs li { font-size: 1.125rem; }
  .signs svg { width: 44px; }
  .toc a { grid-template-columns: 2.25rem minmax(0, 1fr) auto; }
  .ccard .qr { width: 152px; }
}
@media (prefers-reduced-motion: reduce) {
  .svc-link:hover, .toc a:hover { transform: none; padding-left: 4px; }
}

/* =====================================================================
   Магазин, формы, документы, уведомления и общая отделка (v0.5)
   ===================================================================== */

/* ---------- Отделка: строки без висячих слов, выделение, кнопки ---------- */
.h1, .h2, .doc-title, .pdp-title, .svc-link-title, .steps h3, .cardx h3, .who-item h3, .faq dt { text-wrap: balance; }
p, li, dd, figcaption, small { text-wrap: pretty; }
::selection { background: var(--violet); color: var(--lime-pale); }
.t-violet ::selection, .t-plum ::selection, .t-olive ::selection, .manifest ::selection, .contacts ::selection, .foot ::selection, .menu ::selection { background: var(--lime); color: var(--plum); }
.price, .cart-total b, .sum-lines b, .cart-line-sum, .stepper-n, .radio-price { font-variant-numeric: tabular-nums; }
.btn--lime:hover, .btn--violet:hover, .btn--cream:hover, .btn--accent:hover { box-shadow: 0 16px 28px -18px color-mix(in srgb, var(--plum) 85%, transparent); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: progress; }

/* Короткие страницы: последний раздел дотягивается до подвала, под подвалом нет пустой полосы */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
main { display: flex; flex-direction: column; flex: 1 0 auto; }
main > :last-child { flex: 1 0 auto; }
.foot { flex: none; }

/* Плавная смена страниц. Само правило @view-transition добавляет boot.js — только в браузерах на Chromium
   (в Safari при плавной смене текст первого экрана выезжал дважды, 28.11.2026). Здесь — как она выглядит. */
@media (prefers-reduced-motion: no-preference) {
  /* Страницы сменяются по очереди, а не наплывом: прежняя тает в основной цвет новой, затем проявляется новая.
     При наплыве заголовок, подзаголовок и крошки прежней страницы ещё видны там, где уже выезжают новые, —
     текст первого экрана будто анимируется дважды. Тексты новой страницы ждут конца смены (boot.js, acoShown). */
  ::view-transition { background: var(--page-bg, var(--lime)); }
  :root.intro::view-transition { background: var(--violet); }
  ::view-transition-old(root) { animation: vt-out 160ms var(--ease-io) both; }
  ::view-transition-new(root) { animation: vt-in 240ms var(--ease-out) 150ms both; }
  /* Шапка переходит отдельно от страницы и сразу в новом виде: снимок прежней шапки не показывается вовсе.
     Браузер сам растворяет прежний снимок в новом, и шапка двоится: при смене языка видны обе сразу, а если первый
     кадр новой страницы запаздывает, поверх уже показанной новой шапки на мгновение возвращается прежняя.
     Размытие фона браузер на время перехода переносит на рамку снимка — она прямоугольная, поэтому скругляем её. */
  .nav { view-transition-name: site-nav; }
  ::view-transition-group(site-nav) { border-radius: 999px; }
  ::view-transition-old(site-nav) { display: none; }
  ::view-transition-new(site-nav) { animation: none; }
  /* Переход на главную с заставкой: шапки там пока нет — пустой размытой плашки на её месте быть не должно.
     Анимация рамки отключена: она плавно уводит размытие от прежнего значения, и плашка успевает мелькнуть. */
  :root.intro::view-transition-group(site-nav) { animation: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* ---------- Корзина в шапке ---------- */
.nav-cart {
  position: relative; display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  color: var(--cream); background: rgba(244, 238, 220, .14); text-decoration: none;
  transition: background-color var(--d-base) var(--ease-out);
}
.nav-cart:hover { background: rgba(244, 238, 220, .26); }
.nav-cart svg { width: 22px; height: 22px; }
.nav-cart-n {
  position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 999px;
  background: var(--lime); color: var(--plum); font-size: .75rem; font-weight: 800; line-height: 1;
}

/* ---------- Уведомления: сверху под шапкой, исчезают сами ---------- */
.toasts {
  position: fixed; z-index: 60; top: 84px; left: 50%; translate: -50% 0;
  display: grid; justify-items: center; gap: 8px;
  width: max-content; max-width: calc(100% - 24px); pointer-events: none;
}
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px;
  min-height: 52px; margin: 0; padding: 8px 8px 8px 18px; border-radius: 26px;
  background: var(--plum); color: var(--cream); font-weight: 700; font-size: .9375rem; line-height: 1.35;
  box-shadow: 0 20px 44px -20px rgba(28, 11, 38, .75), inset 0 0 0 1px rgba(244, 238, 220, .14);
  animation: toast-in .5s var(--ease-spring) both;
  transition: opacity .3s var(--ease-out), translate .3s var(--ease-out);
}
.toast::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); }
.toast--error { background: #7A1F12; }
.toast--error::before { background: #FFB4A3; }
.toast.is-out { opacity: 0; translate: 0 -12px; }
.toast-close { flex: none; display: grid; place-items: center; width: 36px; height: 36px; margin-left: auto; border: 0; border-radius: 50%; background: rgba(244, 238, 220, .14); color: inherit; cursor: pointer; }
.toast-close:hover { background: rgba(244, 238, 220, .28); }
.toast-close svg { width: 16px; height: 16px; }
html:not(.js) .toasts { position: static; translate: none; margin: 96px auto 0; }
html:not(.js) .toast { padding-right: 18px; }
@keyframes toast-in { from { opacity: 0; translate: 0 -16px; } }

/* ---------- Товары ---------- */
.price { font-weight: 800; color: var(--violet); white-space: nowrap; }
.price--tbd { font-weight: 700; color: color-mix(in srgb, var(--plum) 75%, transparent); }
.pdp-price { font-size: var(--t-lead); }
.buy { display: contents; }
.prod-foot .btn { position: relative; z-index: 2; }
.prod--xl .prod-tag { left: 28px; top: 28px; }
@media (min-width: 1360px) {
  .products--grid:not(.products--3) .prod, .products--grid:not(.products--3) .prod:nth-child(2), .products--grid:not(.products--3) .prod:nth-child(3) { grid-column: span 3; }
}

/* ---------- «Для кого»: круги в цветах бренда ---------- */
.who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); margin: 0; padding: 0 0 clamp(16px, 2.4vw, 40px); list-style: none; }
.who-item { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; row-gap: 24px; text-align: center; }
.who-item:nth-child(3n+1) { --ring-bg: var(--violet); --ring-fg: var(--lime); }
.who-item:nth-child(3n+2) { --ring-bg: var(--lime); --ring-fg: var(--plum); translate: 0 clamp(16px, 2.4vw, 40px); }
.who-item:nth-child(3n) { --ring-bg: var(--lavender); --ring-fg: var(--violet); }
.who-ring, .who-item h3 { grid-area: 1 / 1; }
.who-ring {
  display: grid; place-items: center; width: min(100%, 270px); aspect-ratio: 1; border-radius: 50%;
  background: var(--ring-bg); color: var(--ring-fg);
  transition: transform var(--d-slow) var(--ease-spring);
}
.who-ring svg { width: 88%; height: auto; opacity: .14; }
.who-item h3 { align-self: center; width: min(74%, 200px); font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.2; font-weight: 800; color: var(--ring-fg); }
.who-item p { max-width: 34ch; }
.who-item:hover .who-ring { transform: scale(1.04) rotate(-3deg); }
.js .who-item[data-reveal] { transition-delay: calc(var(--d, 0) * 110ms); }

/* ---------- Вопросы и ответы: заголовок слева, ответы видны сразу ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.faq-head { position: sticky; top: 110px; }
.faq .h2 { color: var(--violet); }
.faq-list { margin: 0; border-top: 1.5px solid color-mix(in srgb, var(--plum) 16%, transparent); }
.faq-item { display: grid; gap: 8px; padding-block: clamp(18px, 2vw, 26px); border-bottom: 1.5px solid color-mix(in srgb, var(--plum) 16%, transparent); }
.faq dt { font-size: var(--t-h3); line-height: 1.3; font-weight: 800; color: var(--violet); }
.faq dd { margin: 0; max-width: 62ch; }

/* ---------- Формы ---------- */
.form { display: grid; gap: 18px; }
.checkout { max-width: 760px; }
.form fieldset { display: grid; gap: 16px; min-width: 0; margin: 0; padding: 0; border: 0; }
.form fieldset + fieldset { margin-top: 14px; }
.form legend { margin-bottom: 14px; padding: 0; font-family: var(--font-display); font-size: clamp(2.25rem, 1.9rem + 1vw, 2.75rem); line-height: 1; color: var(--violet); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 700; }
.field .opt { font-weight: 400; color: color-mix(in srgb, var(--plum) 75%, transparent); }
.field input, .field select, .field textarea, .qty input {
  width: 100%; min-height: 54px; padding: 13px 16px; border-radius: 16px;
  border: 1.5px solid color-mix(in srgb, var(--plum) 30%, transparent); background: #fff; color: var(--plum);
  font: inherit; font-size: 1rem;
  transition: border-color var(--d-fast) var(--ease-out), box-shadow var(--d-fast) var(--ease-out);
}
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5 7 7.5l6-6' fill='none' stroke='%2342237C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; background-size: 14px 9px;
}
.field textarea { min-height: 116px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover, .qty input:hover { border-color: color-mix(in srgb, var(--plum) 55%, transparent); }
.field input:focus, .field select:focus, .field textarea:focus, .qty input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px color-mix(in srgb, var(--violet) 28%, transparent); }
.field--error input, .field--error select, .field--error textarea { border-color: #A3260F; }
.field-hint { font-size: var(--t-small); color: color-mix(in srgb, var(--plum) 78%, transparent); }
.field-hint:empty { display: none; }
.field-err, .form-err { color: #A3260F; font-weight: 700; }
.form-err { padding: 12px 16px; border-radius: 14px; background: #FBE4DD; }
.check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: start; }
.check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--violet); }
.check label { line-height: 1.45; }
.check label a, .form .fine a { color: var(--violet); font-weight: 700; }
.check .field-hint { grid-column: 2; }
.form .fine { margin-top: 0; }
.form > .btn { justify-self: start; }
.radios { display: grid; gap: 10px; }
.radio {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start;
  padding: 14px 16px; border-radius: 18px; background: #fff; cursor: pointer;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--plum) 18%, transparent);
  transition: box-shadow var(--d-fast) var(--ease-out);
}
.radio:hover { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--plum) 45%, transparent); }
.radio:has(input:checked) { box-shadow: inset 0 0 0 2px var(--violet); }
.radio input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--violet); }
.radio-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.radio-price { font-weight: 800; color: var(--violet); white-space: nowrap; }
.radio small { display: block; margin-top: 2px; font-size: var(--t-small); color: color-mix(in srgb, var(--plum) 78%, transparent); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.js .field--address[hidden] { display: none; }

/* Форма заявки: слева заголовок и прямые контакты, справа карточка */
.lead-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.lead-form-head { position: sticky; top: 110px; display: grid; gap: 22px; justify-items: start; }
.lead-form .h2 { color: var(--violet); }
.lead-form-alt { display: grid; gap: 14px; justify-items: start; width: 100%; margin-top: 4px; }
.lead-form-tel { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: var(--t-lead); font-weight: 800; color: var(--violet); text-decoration: none; }
.lead-form-tel:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.lead-form-tel svg { flex: none; width: 26px; height: 26px; }
.form--card { padding: clamp(22px, 3vw, 40px); border-radius: 32px; background: #fff; box-shadow: 0 34px 64px -44px rgba(42, 18, 56, .6); }

/* ---------- Корзина и оформление ---------- */
.shop-page { padding-top: clamp(112px, 14vh, 150px); }
.shop-title { margin: 8px 0 clamp(28px, 4vw, 48px); color: var(--violet); }
.cart-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.cart-lines { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1.5px solid color-mix(in srgb, var(--plum) 16%, transparent); }
.cart-line {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto minmax(88px, auto) 44px; gap: 12px 18px; align-items: center;
  padding-block: 16px; border-bottom: 1.5px solid color-mix(in srgb, var(--plum) 16%, transparent);
}
.cart-line-img { display: block; overflow: hidden; border-radius: 18px; background: #fff; }
.cart-line-img img { width: 96px; height: 96px; object-fit: cover; transition: transform var(--d-slow) var(--ease-out); }
.cart-line:hover .cart-line-img img { transform: scale(1.06); }
.cart-line-info { display: grid; gap: 4px; }
.cart-line-info a { font-weight: 800; color: var(--plum); text-decoration: none; }
.cart-line-info a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cart-line-note { color: color-mix(in srgb, var(--plum) 72%, transparent); }
.cart-line-sum { justify-self: end; font-weight: 800; white-space: nowrap; }
.stepper { display: inline-flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--plum) 18%, transparent); }
.stepper button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--violet); cursor: pointer; transition: background-color var(--d-fast) var(--ease-out); }
.stepper button:hover:not([disabled]) { background: var(--lime-pale); }
.stepper button[disabled] { opacity: .35; cursor: default; }
.stepper svg { width: 18px; height: 18px; }
.stepper-n { min-width: 2.2ch; text-align: center; font-weight: 800; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--plum); cursor: pointer; transition: background-color var(--d-fast) var(--ease-out); }
.icon-btn:hover { background: color-mix(in srgb, var(--plum) 10%, transparent); }
.icon-btn svg { width: 20px; height: 20px; }
.cart-sum {
  position: sticky; top: 96px; display: grid; gap: 14px; justify-items: start;
  padding: clamp(22px, 2.4vw, 32px); border-radius: 28px; background: #fff;
  box-shadow: 0 30px 60px -44px rgba(42, 18, 56, .6);
}
.cart-sum .fine { margin: 0; }
.cart-sum > .btn { justify-self: stretch; justify-content: space-between; }
.cart-sum-title { font-family: var(--font-display); font-weight: 400; font-size: 2.5rem; line-height: 1; color: var(--violet); }
.cart-total { display: flex; justify-content: space-between; gap: 16px; width: 100%; padding-top: 12px; border-top: 1.5px solid color-mix(in srgb, var(--plum) 16%, transparent); font-size: var(--t-lead); }
.cart-sum > .cart-total:first-child { padding-top: 0; border-top: 0; }
.sum-lines { display: grid; gap: 8px; width: 100%; margin: 0; padding: 0; list-style: none; }
.sum-lines li { display: flex; justify-content: space-between; gap: 16px; }
.sum-lines b { white-space: nowrap; }
.text-link--dark { color: var(--violet); }
.empty { display: grid; gap: 22px; justify-items: start; }
.empty-sym { width: min(56vw, 240px); height: auto; overflow: visible; color: var(--violet); }
.qty { display: grid; gap: 6px; }
.qty label { font-weight: 700; font-size: var(--t-small); }
.qty input { width: 110px; text-align: center; }
.pdp-buy { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }

/* ---------- Страница заказа ---------- */
.order-wrap { display: grid; gap: 22px; justify-items: start; max-width: 880px; }
.order-wrap .shop-title { margin: 0; }
.order-num { font-family: var(--font-text); font-weight: 800; font-size: .42em; letter-spacing: 0; vertical-align: middle; white-space: nowrap; }
.order-status { padding: 6px 14px; border-radius: 999px; background: var(--lime-pale); color: var(--violet); font-weight: 800; font-size: var(--t-small); }
.order-status--paid, .order-status--processing, .order-status--shipped, .order-status--done { background: var(--lime); color: var(--plum); }
.order-status--canceled, .order-status--refunded { background: #E7DFE9; color: var(--plum); }
.order-note { padding: 14px 18px; border-radius: 18px; background: var(--lime-pale); }
.track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%; margin: 4px 0; padding: 0; list-style: none; }
.track li { position: relative; display: grid; gap: 10px; justify-items: start; align-content: start; padding-right: 8px; font-size: var(--t-small); font-weight: 700; color: color-mix(in srgb, var(--plum) 70%, transparent); }
.track li::before { content: ""; position: absolute; left: 20px; right: 0; top: 9px; height: 2px; background: color-mix(in srgb, var(--plum) 18%, transparent); }
.track li:last-child::before { display: none; }
.track li.is-done::before { background: var(--violet); }
.track-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--cream); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--plum) 30%, transparent); }
.track li.is-done .track-dot { background: var(--violet); box-shadow: none; }
.track li.is-now .track-dot { background: var(--lime); box-shadow: 0 0 0 2px var(--violet), 0 0 0 7px color-mix(in srgb, var(--lime) 45%, transparent); }
.track li.is-done, .track li.is-now { color: var(--plum); }
.order-box { display: grid; gap: 14px; width: 100%; padding: clamp(22px, 2.4vw, 32px); border-radius: 28px; background: #fff; box-shadow: 0 30px 60px -44px rgba(42, 18, 56, .6); }
.order-box .specs { margin-top: 8px; }

/* ---------- Документы ---------- */
.doc-list { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1.5px solid color-mix(in srgb, var(--plum) 16%, transparent); }
.doc-list a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center;
  padding: 20px 4px; border-bottom: 1.5px solid color-mix(in srgb, var(--plum) 16%, transparent); text-decoration: none;
  transition: padding var(--d-base) var(--ease-out);
}
.doc-list a:hover { padding-left: 12px; }
.doc-list-title { font-family: var(--font-display); font-size: clamp(2rem, 1.6rem + 1.2vw, 2.75rem); line-height: 1; color: var(--violet); }
.doc-list-short { grid-column: 1; font-size: var(--t-small); }
.doc-list .btn-ico { grid-column: 2; grid-row: 1 / span 2; background: var(--violet); color: var(--cream); }
.doc-list a:hover .btn-ico { transform: translate(3px, -2px) scale(1.06); }
.docs--one { padding-top: clamp(112px, 14vh, 150px); }
.docs-toc a[aria-current="page"] { color: var(--plum); background: var(--lime-pale); }
.doc--full { gap: 18px; max-width: 76ch; }
.doc-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.5rem, 1.8rem + 2.4vw, 4.25rem); line-height: .95; color: var(--violet); }
.doc-body { display: grid; gap: 14px; }
.doc-body h2 { margin-top: 18px; font-family: var(--font-text); font-size: clamp(1.375rem, 1.2rem + .5vw, 1.75rem); line-height: 1.25; font-weight: 800; color: var(--violet); }
.doc-body h3 { margin-top: 8px; font-size: 1.1875rem; font-weight: 800; }
.doc-body ul, .doc-body ol { display: grid; gap: 6px; margin: 0; padding-left: 1.3em; }
.doc-body a { color: var(--violet); font-weight: 700; }

/* ---------- Cookie ---------- */
.cookie {
  position: fixed; z-index: 70; left: 16px; right: 16px; bottom: 16px; margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; max-width: 860px;
  padding: 16px 20px; border-radius: 22px; background: var(--plum); color: var(--cream);
  box-shadow: 0 20px 50px -20px rgba(28, 11, 38, .8), inset 0 0 0 1px rgba(244, 238, 220, .14);
}
.cookie[hidden] { display: none; }
.cookie p { flex: 1 1 320px; font-size: var(--t-small); }
.cookie a { color: var(--lime); font-weight: 700; }
.cookie-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.foot-cookie { margin-left: 14px; padding: 6px 0; min-height: 36px; border: 0; background: none; color: var(--cream); font: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.foot-cookie[hidden] { display: none; }
.foot-cookie:hover { color: var(--lime); }

/* ---------- Адаптив новых блоков ---------- */
@media (max-width: 900px) {
  .who { grid-template-columns: minmax(0, 1fr); gap: 0; padding-bottom: 0; }
  .who-item, .who-item:nth-child(3n+2) { grid-template-columns: 72px minmax(0, 1fr); justify-items: start; column-gap: 18px; row-gap: 6px; padding-block: 20px; text-align: left; translate: none; border-top: 1.5px solid color-mix(in srgb, var(--plum) 14%, transparent); }
  .who-item:last-child { border-bottom: 1.5px solid color-mix(in srgb, var(--plum) 14%, transparent); }
  .who-ring { grid-area: 1 / 1 / 3 / 2; width: 72px; align-self: start; }
  .who-ring svg { width: 70%; opacity: 1; }
  .who-item h3 { grid-area: 1 / 2; align-self: end; width: auto; color: var(--violet); }
  .who-item p { grid-area: 2 / 2; max-width: none; }
  .faq, .lead-form, .cart-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-head, .lead-form-head, .cart-sum { position: static; }
  .pdp-gallery {
    display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .pdp-gallery::-webkit-scrollbar { display: none; }
  .pdp-main, .pdp-thumb { flex: 0 0 86%; scroll-snap-align: start; border-radius: 24px; box-shadow: none; }
  .pdp-gallery > :only-child { flex-basis: 100%; }
}
@media (max-width: 640px) {
  .cart-line { grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "img info del" "img step sum"; }
  .cart-line-img { grid-area: img; align-self: start; }
  .cart-line-img img { width: 72px; height: 72px; }
  .cart-line-info { grid-area: info; }
  .stepper { grid-area: step; justify-self: start; }
  .cart-line-sum { grid-area: sum; }
  .cart-line-del { grid-area: del; }
}
@media (max-width: 560px) {
  .toasts { top: 76px; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .form > .btn, .pdp-buy .btn { justify-self: stretch; flex: 1 1 100%; justify-content: space-between; }
  .pdp-buy .btn:not(:has(.btn-ico)) { justify-content: center; }
  .nav-cart { width: 40px; height: 40px; }
  .track { grid-template-columns: minmax(0, 1fr); margin: 0; }
  .track li { grid-template-columns: 20px minmax(0, 1fr); gap: 14px; align-items: center; padding: 9px 0; }
  .track li::before { left: 9px; right: auto; top: 30px; bottom: -8px; width: 2px; height: auto; }
  .svc-link { flex-direction: row; align-items: center; justify-content: space-between; min-height: 92px; padding: 18px 20px; }
  .svc-link:has(.svc-link-desc) { flex-direction: column; align-items: flex-start; }
  .svc-link .btn-ico { margin-top: 0; }
  .svc-link:has(.svc-link-desc) .btn-ico { margin-top: 6px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 20px; }
  .foot-brand, .foot-legal { grid-column: 1 / -1; }
  .foot-cookie { display: block; margin-left: 0; }
}

/* ---------- Мессенджеры наравне и окно «Написать» ---------- */
.msgr-note {
  justify-self: start; max-width: 46ch; padding: 10px 16px; border-radius: 16px;
  background: color-mix(in srgb, currentColor 9%, transparent);
  font-size: var(--t-small); line-height: 1.45; font-weight: 600;
}
.msgrs { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; width: 100%; max-width: 420px; margin: 0; padding: 0; list-style: none; }
.msgrs a {
  display: grid; justify-items: center; align-content: center; gap: 8px;
  min-height: 88px; padding: 14px 8px; border-radius: 22px;
  background: var(--accent, var(--lime)); color: var(--on-accent, var(--plum));
  font-size: .9375rem; font-weight: 800; line-height: 1.1; text-align: center; text-decoration: none;
  transition: transform var(--d-fast) var(--ease-out), box-shadow var(--d-base) var(--ease-out);
}
.msgrs svg { width: 28px; height: 28px; transition: transform var(--d-base) var(--ease-spring); }
.msgrs a:hover { box-shadow: 0 16px 28px -18px color-mix(in srgb, var(--plum) 85%, transparent); }
.msgrs a:hover svg { transform: translateY(-2px) rotate(-6deg) scale(1.08); }
.msgrs a:active { transform: scale(.98); }
.contacts .msgrs a { --accent: var(--lime); --on-accent: var(--plum); }
.menu-msgrs { display: flex; flex-wrap: wrap; gap: 0 22px; }

.chooser {
  --accent: var(--violet); --on-accent: var(--cream);
  width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto;
  margin: auto; padding: clamp(24px, 4vw, 36px); border: 0; border-radius: 32px;
  background: var(--cream); color: var(--plum);
  box-shadow: 0 40px 80px -30px rgba(28, 11, 38, .8);
}
.chooser:popover-open { display: grid; gap: 16px; opacity: 1; transform: none; transition: opacity .25s var(--ease-out), transform .3s var(--ease-out); }
@starting-style { .chooser:popover-open { opacity: 0; transform: translateY(14px) scale(.97); } }
.chooser::backdrop { background: color-mix(in srgb, var(--violet-deep) 64%, transparent); }
@supports not selector(:popover-open) { .chooser { display: none; } }
.chooser-title { padding-right: 48px; font-size: 1.5rem; font-weight: 800; line-height: 1.15; color: var(--violet); text-wrap: balance; }
.chooser .msgr-note { max-width: none; }
.chooser .msgrs { max-width: none; }
.chooser-alt { display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: -4px; font-size: .9375rem; font-weight: 700; }
.chooser-alt a { display: inline-flex; align-items: center; min-height: 44px; color: var(--violet); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.chooser-alt a:hover { text-decoration-thickness: 3px; }
.chooser-close {
  position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: color-mix(in srgb, var(--violet) 10%, transparent); color: var(--violet); cursor: pointer;
  transition: background-color var(--d-base) var(--ease-out);
}
.chooser-close:hover { background: color-mix(in srgb, var(--violet) 22%, transparent); }
.chooser-close svg { width: 18px; height: 18px; }

/* Карточки контактов: ровные ряды при любом числе контактов (5, 6 или 7) */
@media (min-width: 1241px) {
  .contact-cards { --cols: 4; }
  .contact-cards:has(> li:nth-child(5):last-child) { --cols: 5; }
  .contact-cards:has(> li:nth-child(6):last-child) { --cols: 3; }
}

/* Кнопка паузы анимации вне главной: в цветах раздела */
.phero .motion-toggle { color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.phero .motion-toggle:hover { background: var(--accent); color: var(--bg); }

@media (max-width: 560px) {
  .msgrs { max-width: none; }
  .msgrs a { min-height: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .chooser:popover-open { transition: none; }
}

/* ---------- Стратегия и сайты: прайс-лист ---------- */
.pricing .sec-mark { color: var(--mark); opacity: .07; }
.pricing-group { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr); gap: clamp(20px, 5vw, 88px); align-items: start; }
.pricing-group + .pricing-group { margin-top: clamp(56px, 7vw, 112px); }
.pricing-group-head { position: sticky; top: 110px; display: grid; gap: 14px; }
.pricing-group-head h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -.01em; font-size: clamp(2rem, 1.45rem + 1.9vw, 3.25rem); line-height: .95; color: var(--accent); text-wrap: balance; }
.pricing-group-head p { max-width: 30ch; }
.prices { margin: 0; padding: 0; list-style: none; border-top: 1.5px solid color-mix(in srgb, var(--fg) 24%, transparent); }
.prices > li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px clamp(20px, 4vw, 64px); align-items: start;
  padding-block: clamp(24px, 2.8vw, 40px);
  border-bottom: 1.5px solid color-mix(in srgb, var(--fg) 24%, transparent);
}
.price-info { display: grid; gap: 10px; max-width: 54ch; }
.price-title { margin: 0; font-size: var(--t-h3); line-height: 1.2; font-weight: 800; text-wrap: balance; }
.price-out b { color: var(--accent); font-weight: 800; }
.price-note { font-size: var(--t-small); color: color-mix(in srgb, var(--fg) 80%, transparent); }
.price-side { display: grid; justify-items: end; gap: 14px; }
.price-val {
  display: flex; align-items: baseline; gap: .2em;
  font-family: var(--font-display); font-size: clamp(2.75rem, 2rem + 2.2vw, 4.5rem); line-height: .82;
  color: var(--accent); white-space: nowrap;
}
.price-val small, .price-cur { font-family: var(--font-text); font-weight: 800; line-height: 1; }
.price-val small { font-size: .3em; }
.price-cur { font-size: .42em; }
.price-ask { font-size: .5em; line-height: 1.1; }
.price-term {
  padding: 6px 14px; border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--fg) 40%, transparent);
  font-size: .9375rem; font-weight: 700; line-height: 1.3; white-space: nowrap;
}
.pricing-terms {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px clamp(20px, 3vw, 48px);
  margin: clamp(40px, 5vw, 72px) 0 0; padding: 0; list-style: none; font-size: var(--t-small); line-height: 1.5;
}
.pricing-terms li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; max-width: 40ch; }
.pricing-terms svg { width: 34px; height: auto; margin-top: .35em; color: var(--accent); }
.pricing-cta { margin-top: clamp(28px, 3vw, 40px); }
/* Анонс на главной: плитки с ценой «от» */
.svc-link--price { min-height: clamp(240px, 22vw, 300px); }
.svc-link-lines { max-width: none; }
.svc-link-lines > span { display: block; }
.svc-link-price { font-size: clamp(1.375rem, 1.15rem + .8vw, 1.875rem); font-weight: 800; line-height: 1; white-space: nowrap; }
.svc-link-price small { font-size: .62em; font-weight: 700; }
@media (max-width: 900px) {
  .pricing-group { grid-template-columns: minmax(0, 1fr); }
  .pricing-group-head { position: static; }
  .pricing-group-head p { max-width: 46ch; }
  .pricing-terms { grid-template-columns: minmax(0, 1fr); }
  .pricing-terms li { max-width: none; }
}
@media (max-width: 640px) {
  .prices > li { grid-template-columns: minmax(0, 1fr); }
  .price-side { grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; gap: 14px 12px; }
  .price-val { grid-column: 1 / -1; }
  .price-side .btn { justify-self: end; }
  .svc-links--2 { grid-template-columns: minmax(0, 1fr); }
}
/* ---------- Два языка: переключатель в шапке, в меню и в подвале ---------- */
.nav-lang {
  display: grid; place-items: center; flex: none; min-width: 44px; height: 44px; padding: 0 8px; border-radius: 999px;
  font-size: .8125rem; font-weight: 800; letter-spacing: .08em; line-height: 1; text-decoration: none; color: var(--cream);
  box-shadow: inset 0 0 0 1.5px rgba(244, 238, 220, .34);
  transition: background-color var(--d-base) var(--ease-out), color var(--d-base) var(--ease-out), box-shadow var(--d-base) var(--ease-out);
}
.nav-lang:hover { background: var(--lime); color: var(--plum); box-shadow: inset 0 0 0 1.5px var(--lime); }
.intro .nav-lang { pointer-events: none; }
.menu-lang { align-self: flex-start; }
.foot-lang { margin-left: 14px; color: var(--cream); text-underline-offset: 4px; }
.foot-lang:hover { color: var(--lime); }
.doc-note {
  padding: 14px 18px; border-radius: 14px; background: color-mix(in srgb, var(--lavender) 55%, var(--cream));
  font-size: var(--t-small); font-weight: 600; line-height: 1.5;
}
.doc-note a { color: var(--violet); font-weight: 800; }
@media (max-width: 560px) {
  .nav-lang { min-width: 40px; height: 40px; padding: 0 6px; }
  .foot-lang { margin-left: 10px; }
}
/* На самых узких экранах переключатель остаётся в меню: в шапке ему не хватает места */
@media (max-width: 349px) {
  .nav-lang { display: none; }
}

/* ---------- Страницы разделов прайса: оглавление с ценами ---------- */
.toc--prices a { grid-template-columns: 2.75rem minmax(0, 1fr) auto; }
.toc-price { font-size: clamp(1.0625rem, .95rem + .45vw, 1.375rem); font-weight: 800; white-space: nowrap; }
.toc-price small { font-size: .72em; font-weight: 700; }
/* Пока цен в разделе нет, на месте цены в оглавлении стоит срок — спокойнее и мельче цены */
.toc-price--term { font-size: clamp(.9375rem, .9rem + .2vw, 1.0625rem); font-weight: 700; }
.prices > li { scroll-margin-top: 104px; }
.pricing-more { justify-self: start; padding-block: 6px; color: var(--accent); }
@media (max-width: 640px) {
  .toc--prices a { grid-template-columns: 2.25rem minmax(0, 1fr); row-gap: 2px; }
  .toc--prices .toc-price { grid-column: 2; }
}

/* ---------- Проекты: карточки, страница проекта, сетка фото, просмотр крупно ---------- */
.blk-side { display: grid; gap: 18px; justify-items: start; }
.pcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) clamp(14px, 1.6vw, 24px); margin: 0; padding: 0; list-style: none; }
.pcards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pcard-link { display: grid; gap: 12px; align-content: start; text-decoration: none; color: inherit; border-radius: 26px; container-type: inline-size; }
.pcard-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
.pcard-media {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 26px;
  background: color-mix(in srgb, var(--fg) 10%, transparent); box-shadow: var(--paper-shadow);
}
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.pcard-media .btn-ico { position: absolute; right: 14px; bottom: 14px; background: var(--accent); color: var(--on-accent); }
.pcard-link:hover .pcard-media img { transform: scale(1.045); }
.pcard-link:hover .btn-ico { transform: translate(3px, -2px) scale(1.06); }
.pcard-title { margin: 6px 0 0; padding-inline: 4px; font-family: var(--font-display); font-weight: 400; font-size: min(clamp(1.75rem, 1.35rem + 1.1vw, 2.5rem), calc(100cqi / var(--fit-em, 6))); line-height: .95; color: var(--accent); text-wrap: balance; }
.pcard-kind { padding-inline: 4px; font-size: var(--t-small); font-weight: 600; line-height: 1.35; }
.projects-teaser .sec-mark { color: var(--mark); opacity: .07; }
.projects-all { padding-block: 0 clamp(80px, 10vw, 144px); }

.phero--project .lens { box-shadow: 0 0 0 10px var(--lime); }
.prj-facts { display: grid; gap: 14px; justify-items: start; }
.prj-kind { font-size: .875rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.prj-facts .svc-list { margin: 0; }
.prj-svcs { font-size: var(--t-small); font-weight: 600; }
.prj-svcs a { color: var(--accent); text-underline-offset: 4px; }

.shots-sec { padding-top: clamp(40px, 5vw, 72px); }
.shots-title { display: flex; align-items: baseline; gap: 12px; margin: 0 0 clamp(24px, 3vw, 40px); font-family: var(--font-display); font-weight: 400; font-size: var(--t-h2); line-height: .95; color: var(--accent); }
.shots-title span { font-family: var(--font-text); font-size: .4em; font-weight: 800; color: var(--fg); opacity: .7; }
.shots { columns: 3; column-gap: clamp(12px, 1.4vw, 20px); margin: 0; padding: 0; list-style: none; }
.shots li { break-inside: avoid; margin-bottom: clamp(12px, 1.4vw, 20px); }
.shot { position: relative; display: block; overflow: hidden; border-radius: 18px; cursor: zoom-in; background: rgba(244, 238, 220, .08); }
.shot img { display: block; width: 100%; height: auto; transition: transform 1s var(--ease-out); }
.shot:hover img { transform: scale(1.03); }
.shot:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(28, 11, 38, .96); color: var(--cream); overscroll-behavior: contain;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(28, 11, 38, .7); }
.lb-figure { display: grid; justify-items: center; gap: 14px; margin: 0; padding: 72px 88px 24px; }
.lb-img { display: block; max-width: min(100%, 1100px); max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); width: auto; height: auto; border-radius: 14px; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb-count { font-size: var(--t-small); font-weight: 700; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.lb-btn {
  position: fixed; z-index: 2; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(244, 238, 220, .14); color: var(--cream); cursor: pointer;
  transition: background-color var(--d-base) var(--ease-out), color var(--d-base) var(--ease-out);
}
.lb-btn:hover { background: var(--lime); color: var(--plum); }
.lb-btn:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.lb-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-prev { left: 20px; top: 50%; translate: 0 -50%; }
.lb-next { right: 20px; top: 50%; translate: 0 -50%; }
.lb-close { right: 20px; top: 16px; }

@media (max-width: 1100px) {
  .pcards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots { columns: 2; }
}
@media (max-width: 560px) {
  .pcards { gap: 28px 12px; }
  .pcard-media, .pcard-link { border-radius: 18px; }
  .pcard-media .btn-ico { width: 34px; height: 34px; right: 10px; bottom: 10px; }
  .pcard-media .btn-ico svg { width: 15px; height: 15px; }
  .pcard-title { font-size: min(1.5rem, calc(100cqi / var(--fit-em, 6))); }
  .shot { border-radius: 12px; }
  .lb-figure { padding: 64px 0 96px; }
  .lb-img { max-width: 100vw; max-height: calc(100dvh - 180px); border-radius: 0; }
  .lb-prev, .lb-next { top: auto; bottom: 22px; translate: none; }
  .lb-prev { left: calc(50% - 66px); }
  .lb-next { right: calc(50% - 66px); }
  .lb-close { right: 12px; top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .pcard-link:hover .pcard-media img, .shot:hover img { transform: none; }
}

/* ---------- Ссылка на VK Видео (обложка главной, «Фото- и видеосъёмка», «Проекты») ---------- */
.vlink {
  display: inline-flex; align-items: center; gap: 12px; padding: 6px 18px 6px 6px; border-radius: 999px;
  font-weight: 600; color: inherit; text-decoration: none; line-height: 1.2;
  background: color-mix(in srgb, currentColor 9%, transparent);
  transition: background-color .25s var(--ease-out), transform .25s var(--ease-out);
}
.vlink:hover { background: color-mix(in srgb, currentColor 17%, transparent); transform: translateY(-1px); }
.vlink:active { transform: translateY(1px); }
.vlink:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.vlink-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent, var(--violet)); color: var(--on-accent, var(--lime)); }
.vlink-ico svg { width: 22px; height: 22px; }
.vlink--hero { color: var(--plum); }

/* ---------- Партнёры и клиенты: логотипы ---------- */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: clamp(16px, 2vw, 28px);
  margin: 0; padding: 0; list-style: none; }
.logos li { display: grid; gap: 10px; align-content: start; }
.logo-tile {
  display: grid; place-items: center; aspect-ratio: 3 / 2; padding: clamp(16px, 2vw, 28px); border-radius: 24px;
  background: #fff; color: var(--violet); text-decoration: none;
  box-shadow: 0 18px 32px -28px color-mix(in srgb, var(--plum) 70%, transparent);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
a.logo-tile:hover { transform: translateY(-3px); box-shadow: 0 24px 36px -26px color-mix(in srgb, var(--plum) 80%, transparent); }
a.logo-tile:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.logo-tile img { width: 100%; height: 100%; max-height: 96px; object-fit: contain; }
.logo-name { font-weight: 700; font-size: clamp(1.25rem, 1rem + .8vw, 1.75rem); letter-spacing: -.01em; text-align: center;
  overflow-wrap: anywhere; }
.logo-cap { margin: 0; font-size: var(--t-small); text-align: center; color: color-mix(in srgb, var(--fg, var(--plum)) 78%, transparent); }
@media (max-width: 520px) {
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-tile { border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .vlink:hover, a.logo-tile:hover { transform: none; }
}

@media print {
  .pricing { break-inside: avoid; }
  .price-val, .pricing-group-head h3, .price-out b { color: #000 !important; }
}

/* ---------- Печать: документы и страница заказа без оформления сайта ---------- */
@media print {
  .nav, .menu, .toasts, .cookie, .chooser, .foot, .skip, .cta-band, .sec-mark, .docs-toc, .crumbs, .btn, .track, form { display: none !important; }
  html, body { background: #fff !important; color: #000; }
  body, main { display: block; }
  .sec, .shop-page, .docs--one, .tone { padding: 0 !important; background: #fff !important; color: #000 !important; overflow: visible !important; }
  .js [data-reveal]:not(.split) { opacity: 1 !important; transform: none !important; }
  .docs-grid { display: block; }
  .doc--full { max-width: none; }
  .doc-title, .shop-title { font-size: 28pt; color: #000; }
  .doc-body h2 { color: #000; }
  .order-box { padding: 0; box-shadow: none; }
  a { color: inherit !important; text-decoration: none; }
}
