/* БарбиАн — стили сайта
   Идея: одна прокрутка, фон переливается по оттенкам розового от раздела к разделу.
   Референсы: стекло и светящиеся линии, портрет с кольцом логотипа и высокие карточки работ.
   Эффекты наведения работают только с мышью (блок «Наведение мышью» ниже), на телефонах их нет. */

/* Шрифты (лицензия OFL) лежат на сайте, без запросов к Google: страница появляется быстрее */
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/onest-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/onest-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/onest-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/playfair-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/playfair-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400 600; font-display: swap; src: url("../fonts/playfair-italic-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400 600; font-display: swap; src: url("../fonts/playfair-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }


:root {
  /* Оттенки розового — от самого светлого к самому глубокому */
  --pink-50: #FFF5F9;
  --pink-100: #FDE4EE;
  --pink-200: #F9C9DC;
  --pink-300: #F4A3C4;
  --pink-400: #EC7AAE;
  --glow-a: 244 143 191;     /* пятна сияния на первом экране, меняются вместе с фоном */
  --glow-b: 247 182 214;
  --glow-c: 232 87 154;
  --rose: #E8579A;
  --raspberry: #B8236A;      /* ссылки на светлом, 5,6:1 */
  --raspberry-2: #C92C74;
  --berry: #8E1C52;
  --wine: #2A0A1C;           /* основной текст и тёмные разделы */
  --wine-2: #5A1236;

  --ink: var(--wine);
  --ink-muted: #7A2E55;      /* второстепенный текст на светлом, от 6:1 */
  --on-dark: #FFE6F0;
  --on-dark-muted: #E6B4CB;
  --line: rgba(42, 10, 28, 0.14);
  --line-dark: rgba(255, 230, 240, 0.18);

  /* Стекло */
  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 1px 2px rgba(142, 28, 82, 0.05),
    0 10px 24px -12px rgba(142, 28, 82, 0.18),
    0 34px 70px -34px rgba(142, 28, 82, 0.42);

  /* Шрифты */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-text: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Шкала текста */
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.25rem + 1vw, 1.875rem);
  --step-3: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
  --step-brand: clamp(3.75rem, 1.75rem + 8.5vw, 8.25rem);

  /* Отступы, шаг 8px */
  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s5: 3rem;
  --s6: 4.5rem;
  --section-y: clamp(4rem, 2.5rem + 6vw, 8rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --header-h: 4.5rem;
  --radius: 1.5rem;

  /* Движение */
  --ease-out: cubic-bezier(0.22, 0.7, 0.2, 1);
  --ease-lux: cubic-bezier(0.16, 1, 0.3, 1); /* долгое мягкое торможение для появлений */
  --t-fast: 160ms;
  --t-base: 280ms;

  /* Слои */
  --z-bar: 30;
  --z-header: 40;
}

/* ---------- База ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  /* на телефонах при нажатии на кнопки и ссылки не появляется тёмный прямоугольник-подсветка */
  -webkit-tap-highlight-color: transparent;
  /* без «резинки» за краем страницы: иначе при оттягивании под тёмным подвалом мелькает светлая подложка */
  overscroll-behavior-y: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  background: var(--pink-50);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, p, ul, dl, dd, figure, fieldset { margin: 0; }
p { text-wrap: pretty; }
::selection { background: rgba(232, 87, 154, 0.26); color: var(--wine); }
html { scrollbar-color: rgba(184, 35, 106, 0.45) transparent; }
ul { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
sup { font-size: 0.6em; line-height: 0; }

:focus-visible {
  outline: 3px solid var(--raspberry);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  position: relative;
  width: 100%;
  max-width: 78rem;
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--s2);
  top: -4rem;
  z-index: 100;
  padding: var(--s1) var(--s2);
  background: var(--wine);
  color: var(--on-dark);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: var(--s2); }

.icon {
  width: 1.375rem;
  height: 1.375rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Стеклянная панель */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(255, 250, 252, 0.94); }
}

/* ---------- Сиреневый сад — фон всего сайта ---------- */

/* Холст закреплён за экраном и лежит под всеми разделами. Фоны разделов
   полупрозрачные (--veil), поэтому сирень мягко просвечивает сквозь розовый. */
:root { --veil: 76%; }
.garden {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.garden.is-on { opacity: 1; }
.garden__layer { position: absolute; left: 0; top: 0; width: 100%; will-change: transform; }
.garden__drift { width: 100%; background-repeat: repeat-y; }
/* в покое слои еле заметно колышутся — только сдвиг, без перерисовки */
@media (prefers-reduced-motion: no-preference) {
  .garden-drift-a { animation: garden-drift 26s ease-in-out infinite alternate; }
  .garden-drift-b { animation: garden-drift 19s ease-in-out -6s infinite alternate-reverse; }
  .garden-drift-c { animation: garden-drift 23s ease-in-out -11s infinite alternate; }
}
@keyframes garden-drift {
  from { transform: translate3d(-12px, 0, 0); }
  to { transform: translate3d(12px, -18px, 0); }
}

/* Один сплошной розовый фон на всю страницу, а не у каждого раздела свой:
   так между разделами физически нет стыков. Оттенки плавно сменяют друг друга сверху вниз. */
main {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--pink-50) var(--veil), transparent) 0%,
    color-mix(in srgb, var(--pink-100) var(--veil), transparent) 5%,
    color-mix(in srgb, var(--pink-200) var(--veil), transparent) 10%,
    color-mix(in srgb, var(--pink-200) var(--veil), transparent) 14%,
    color-mix(in srgb, var(--pink-100) var(--veil), transparent) 22%,
    color-mix(in srgb, var(--pink-100) var(--veil), transparent) 30%,
    color-mix(in srgb, var(--pink-200) var(--veil), transparent) 40%,
    color-mix(in srgb, var(--pink-300) var(--veil), transparent) 50%,
    color-mix(in srgb, var(--pink-200) var(--veil), transparent) 58%,
    color-mix(in srgb, var(--pink-100) var(--veil), transparent) 68%,
    color-mix(in srgb, var(--pink-200) var(--veil), transparent) 78%,
    color-mix(in srgb, var(--pink-300) var(--veil), transparent) 86%,
    color-mix(in srgb, var(--pink-400) var(--veil), transparent) 92%,
    color-mix(in srgb, var(--pink-400) var(--veil), transparent) 100%);
}

/* ---------- Кнопки и ссылки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    background-color var(--t-fast) ease,
    background-position 600ms var(--ease-out),
    color var(--t-fast) ease,
    border-color var(--t-fast) ease,
    box-shadow var(--t-base) ease,
    transform var(--t-fast) ease;
}
.btn:active { transform: scale(0.97); }
.btn .icon { width: 1.25rem; height: 1.25rem; }

/* Главная кнопка: малиновый градиент, при наведении перетекает в соседний оттенок */
.btn--primary {
  background: linear-gradient(110deg, #A51C5E 0%, var(--raspberry-2) 45%, #A51C5E 100%);
  background-size: 220% 100%;
  background-position: 0% 0;
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(165, 28, 94, 0.8);
}

.btn--glass {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.9);
  color: var(--wine);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn--pink { background: var(--pink-300); color: var(--wine); }

.btn--outline-light { border-color: rgba(255, 230, 240, 0.55); color: var(--on-dark); }

.btn--compact { min-height: 2.75rem; padding: 0.5rem 1.125rem; font-size: 0.9375rem; }

.text-link {
  display: inline-block;
  padding-block: 0.375rem;
  color: var(--raspberry);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.25em;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

/* ---------- Шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  isolation: isolate;
  background-color: rgb(253 222 236 / 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  transition: background-color 600ms ease, box-shadow 600ms ease;
}
.site-header.is-scrolled {
  background-color: rgb(252 214 231 / 0.82);
  box-shadow: 0 10px 34px -20px rgba(142, 28, 82, 0.45);
}

/* Розовый туман: три мягких облака медленно плывут под шапкой.
   Двигаются только через transform, поэтому не нагружают телефон. */
.site-header__fog {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.site-header__fog span {
  position: absolute;
  top: calc(50% - 7rem);
  width: max(26rem, 48vw);
  height: 14rem;
  border-radius: 50%;
}
.site-header__fog span:nth-child(1) {
  left: -14%;
  background: radial-gradient(closest-side, rgb(var(--glow-a) / 0.55), rgb(var(--glow-a) / 0));
}
.site-header__fog span:nth-child(2) {
  left: 30%;
  background: radial-gradient(closest-side, rgb(255 255 255 / 0.7), rgb(255 255 255 / 0));
}
.site-header__fog span:nth-child(3) {
  right: -18%;
  background: radial-gradient(closest-side, rgb(var(--glow-c) / 0.32), rgb(var(--glow-c) / 0));
}
@media (prefers-reduced-motion: no-preference) {
  .site-header__fog span:nth-child(1) { animation: fog-a 34s ease-in-out infinite alternate; }
  .site-header__fog span:nth-child(2) { animation: fog-b 42s ease-in-out infinite alternate; }
  .site-header__fog span:nth-child(3) { animation: fog-c 38s ease-in-out infinite alternate; }
}
@keyframes fog-a { to { transform: translateX(42vw) scale(1.15); } }
@keyframes fog-b { from { transform: translateX(-22vw); } to { transform: translateX(26vw) scale(0.9); } }
@keyframes fog-c { to { transform: translateX(-46vw) scale(1.1); } }

.site-header__row {
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand__logo { width: 3rem; height: 3rem; }
.brand__name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1;
}

.site-nav {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.75rem;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--t-fast) ease;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--s1);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-weight: 600;
  cursor: pointer;
}
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block;
  width: 1.125rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t-base) var(--ease-out), opacity var(--t-fast) ease;
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before,
.menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 62em) {
  .js .menu-toggle { display: inline-flex; }
  .site-header__actions { margin-left: auto; }

  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: var(--s1) var(--gutter) var(--s3);
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(180deg, rgb(255 240 247 / 0.97), rgb(251 206 226 / 0.97));
    box-shadow: 0 16px 30px -12px rgba(142, 28, 82, 0.3);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity var(--t-fast) ease, transform var(--t-base) var(--ease-out), visibility 0s linear var(--t-base);
  }
  .js .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity var(--t-base) ease, transform var(--t-base) var(--ease-out), visibility 0s;
  }
  .js .site-nav a {
    min-height: 3.25rem;
    font-size: var(--step-1);
    border-bottom: 1px solid rgba(184, 35, 106, 0.16);
    border-radius: 0;
  }
  /* туман и в раскрытом меню */
  .js .site-nav::before {
    content: "";
    position: absolute;
    inset: -40% -30%;
    z-index: -1;
    background:
      radial-gradient(closest-side at 25% 30%, rgb(var(--glow-a) / 0.45), transparent),
      radial-gradient(closest-side at 75% 70%, rgb(var(--glow-c) / 0.22), transparent),
      radial-gradient(closest-side at 60% 20%, rgb(255 255 255 / 0.6), transparent);
    pointer-events: none;
  }
  @media (prefers-reduced-motion: no-preference) {
    .js .site-nav.is-open::before { animation: menu-fog 18s ease-in-out infinite alternate; }
  }

  html:not(.js) .site-header__row { flex-wrap: wrap; padding-block: var(--s1); }
  html:not(.js) .site-nav { order: 3; width: 100%; margin: 0; flex-wrap: wrap; }
}

@keyframes menu-fog { to { transform: translate(12%, -8%) scale(1.1); } }

@media (max-width: 30em) {
  .brand__name { display: none; }
}

/* на самых узких экранах подпись остаётся только для скринридеров */
@media (max-width: 23.5em) {
  .menu-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* ---------- Общие секции ---------- */

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section__head {
  display: grid;
  gap: var(--s2);
  margin-bottom: var(--s5);
}
.section__head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s2) var(--s4);
}
.section__title {
  max-width: 20ch;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-3);
  line-height: 1.1;
  text-wrap: balance;
}
.section__lead {
  max-width: 40rem;
  color: var(--ink-muted);
  font-size: var(--step-1);
  line-height: 1.55;
}

/* ---------- Светящиеся линии ---------- */

.trails {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.trails path { fill: none; stroke-linecap: round; }
.trail__glow { stroke: rgba(232, 87, 154, 0.16); stroke-width: 16; }
.trail__line { stroke: rgba(255, 255, 255, 0.85); stroke-width: 1.5; }
.trail__spark { stroke: #fff; stroke-width: 3.5; stroke-dasharray: 140 3000; stroke-dashoffset: 3140; opacity: 0; }

.trails--dark .trail__glow { stroke: rgba(236, 122, 174, 0.22); stroke-width: 20; }
.trails--dark .trail__line { stroke: rgba(244, 163, 196, 0.65); }
.trails--dark .trail__spark { stroke: #FFD3E4; }

.hero .trails {
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
}

@media (prefers-reduced-motion: no-preference) {
  .trail__spark { opacity: 1; animation: spark 8s linear infinite; }
  .trail--b .trail__spark { animation-duration: 11s; animation-delay: -4s; }
}
@keyframes spark {
  to { stroke-dashoffset: 0; }
}

/* ---------- Главный экран ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--s5) var(--section-y);
  isolation: isolate;
}

/* Переливающееся сияние: три мягких пятна медленно плывут и смешивают оттенки */
.aurora {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  /* сияние плавно гаснет к низу первого экрана, а не обрезается его краем */
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
}
.aurora__blob {
  position: absolute;
  width: 70vmax;
  aspect-ratio: 1;
  border-radius: 50%;
  will-change: transform;
}
.aurora__blob--a {
  top: -35vmax;
  left: -20vmax;
  background: radial-gradient(closest-side, rgb(var(--glow-a) / 0.8), rgb(var(--glow-a) / 0));
}
.aurora__blob--b {
  top: -10vmax;
  right: -30vmax;
  background: radial-gradient(closest-side, rgb(var(--glow-b) / 0.75), rgb(var(--glow-b) / 0));
}
.aurora__blob--c {
  bottom: -40vmax;
  left: 20vmax;
  background: radial-gradient(closest-side, rgb(var(--glow-c) / 0.5), rgb(var(--glow-c) / 0));
}
@media (prefers-reduced-motion: no-preference) {
  .aurora__blob--a { animation: drift-a 24s ease-in-out infinite alternate; }
  .aurora__blob--b { animation: drift-b 30s ease-in-out infinite alternate; }
  .aurora__blob--c { animation: drift-c 27s ease-in-out infinite alternate; }
}
@keyframes drift-a { to { transform: translate(18vmax, 12vmax) scale(1.1); } }
@keyframes drift-b { to { transform: translate(-16vmax, 14vmax) scale(0.9); } }
@keyframes drift-c { to { transform: translate(12vmax, -14vmax) scale(1.15); } }

.hero__grid {
  display: grid;
  gap: var(--s6);
  align-items: center;
}
@media (min-width: 56.25em) {
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--s5); }
}

.hero__title { font-weight: 400; }
.hero__brand {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--step-brand);
  line-height: 1;
  letter-spacing: -0.01em;
  /* запас под наклон и хвостик «р», чтобы омбре не обрезалось на краях букв */
  padding: 0 0.1em 0.16em 0;
  margin-bottom: -0.08em;
  color: var(--raspberry);
}

/* Омбре: сверху насыщенный розовый текущего оттенка сайта, снизу белый.
   Второй слой — перламутровый блик, который изредка пробегает по буквам. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__brand {
    background-image:
      linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.9) 50%, transparent 60%),
      linear-gradient(180deg,
        var(--raspberry) 0%,
        rgb(var(--glow-c)) 24%,
        rgb(var(--glow-a)) 46%,
        #FBD2E5 66%,
        #FFFFFF 84%,
        #FFFFFF 100%);
    background-size: 300% 100%, 100% 125%;
    background-position: 160% 0, 0 0;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* тонкий контур и розовое свечение держат белый низ букв на светлом фоне */
    -webkit-text-stroke: 1.25px rgba(142, 28, 82, 0.42);
    filter:
      drop-shadow(0 1px 0 rgba(142, 28, 82, 0.28))
      drop-shadow(0 0.1em 0.24em rgba(184, 35, 106, 0.38));
  }
}
.hero__kind {
  display: block;
  max-width: 22ch;
  margin-top: var(--s2);
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.25;
  color: var(--ink);
}

/* карта Яндекса на первом экране */
.hero-map {
  position: relative;
  max-width: 34rem;
  margin-top: var(--s3);
  padding: 0.375rem;
  border-radius: 1.5rem;
}
.hero-map iframe {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(15rem, 11rem + 7vw, 18.5rem);
  border: 0;
  border-radius: calc(1.5rem - 0.375rem);
}
.hero-map__fallback {
  position: absolute;
  inset: 0.375rem;
  display: grid;
  place-items: center;
  border-radius: calc(1.5rem - 0.375rem);
  background: var(--pink-100);
  color: var(--raspberry);
  font-weight: 600;
}

.promo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--s3);
  padding: 0.5rem 1.125rem;
  border: 1px solid rgba(184, 35, 106, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--raspberry);
  font-weight: 600;
  line-height: 1.3;
}
.promo__icon { width: 1.125rem; height: 1.125rem; flex: none; fill: currentColor; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s4);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  justify-content: start;
  gap: var(--s2) var(--s4);
  margin-top: var(--s5);
}
.stats__item {
  display: grid;
  gap: 0.125rem;
  padding-left: var(--s2);
  border-left: 1.5px solid rgba(184, 35, 106, 0.35);
  font-size: 0.9375rem;
  line-height: 1.35;
  color: var(--ink-muted);
}
.stats__value {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--wine);
}
.stats__value--text { font-size: 1.375rem; line-height: 1.5; }
.stats__star { width: 1.25rem; height: 1.25rem; fill: var(--raspberry-2); }

@media (max-width: 37.5em) {
  .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stats__item:last-child { grid-column: 1 / -1; }
}

/* Портрет мастера с кольцом из логотипа */

.portrait {
  position: relative;
  width: min(27rem, 78vw);
  margin-inline: auto;
}
.portrait__ring {
  position: absolute;
  width: 118%;
  aspect-ratio: 1;
  top: -9%;
  left: -16%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #F9B8D3, var(--rose), #FFD3E4, #D23F7C, #F4A3C4, #F9B8D3);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.25rem), #000 calc(100% - 1.2rem));
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.25rem), #000 calc(100% - 1.2rem));
  opacity: 0.9;
}
.portrait__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.75);
  border-radius: 50% 50% 1.75rem 1.75rem / 40% 40% 1.75rem 1.75rem;
  box-shadow: 0 40px 70px -30px rgba(142, 28, 82, 0.6);
  background: var(--pink-200);
}
.portrait__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 46% 38%;
}

.portrait__card {
  position: absolute;
  left: -14%;
  bottom: 7%;
  max-width: 15.5rem;
  padding: var(--s2) var(--s3) var(--s3);
  border-radius: 1.25rem;
}
.portrait__card-title {
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.2;
}
.checklist { display: grid; gap: 0.375rem; font-size: 0.9375rem; line-height: 1.35; }
.checklist li { display: flex; align-items: center; gap: 0.5rem; }
.checklist svg { width: 1.125rem; height: 1.125rem; flex: none; fill: var(--raspberry-2); }

.portrait__name {
  position: absolute;
  right: -8%;
  top: 12%;
  display: grid;
  padding: 0.625rem 1.125rem;
  border-radius: 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.375rem;
  line-height: 1.2;
}
.portrait__name span {
  font-family: var(--font-text);
  font-style: normal;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

@media (max-width: 56.24em) {
  .portrait { width: min(24rem, 74vw); margin-top: var(--s2); }
  .portrait__card { left: -9%; bottom: -7%; max-width: 13.5rem; padding: 0.75rem 1rem 1rem; }
  .portrait__card-title { font-size: 1.0625rem; }
  .checklist { font-size: 0.875rem; gap: 0.25rem; }
  .portrait__name { right: -9%; top: 6%; font-size: 1.125rem; padding: 0.5rem 0.875rem; }
}

/* Появление первого экрана — одна общая сцена */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__brand { animation: rise 1s var(--ease-out) 0.05s both, ombre-flow 11s ease-in-out 1.2s infinite; }
  .js .hero__kind { animation: rise 1s var(--ease-out) 0.18s both; }
  .js .hero-map { animation: rise 1s var(--ease-out) 0.3s both; }
  .js .promo { animation: rise 1s var(--ease-out) 0.4s both; }
  .js .hero__actions { animation: rise 1s var(--ease-out) 0.48s both; }
  .js .stats { animation: rise 1s var(--ease-out) 0.6s both; }

  .js .portrait__frame { animation: unveil 1.3s var(--ease-out) 0.15s both; }
  .js .portrait__img { animation: settle 1.8s var(--ease-out) 0.15s both; }
  .js .portrait__ring { animation: ring-in 1.4s var(--ease-out) 0.3s both, spin 40s linear 1.7s infinite; }
  .js .portrait__card { animation: float-in 0.9s var(--ease-out) 0.95s both; }
  .js .portrait__name { animation: float-in 0.9s var(--ease-out) 1.15s both; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(0.75em); }
  to { opacity: 1; transform: none; }
}
/* граница розового плавно опускается и поднимается, блик проходит в начале цикла */
@keyframes ombre-flow {
  0% { background-position: 160% 0, 0 0; }
  22% { background-position: -60% 0, 0 45%; }
  50% { background-position: -60% 0, 0 100%; }
  100% { background-position: -60% 0, 0 0; }
}
@keyframes unveil {
  from { clip-path: inset(100% 0 0 0); }
  to { clip-path: inset(0); }
}
@keyframes settle {
  from { transform: scale(1.18); }
  to { transform: none; }
}
@keyframes ring-in {
  from { opacity: 0; scale: 0.85; }
  to { opacity: 0.9; scale: 1; }
}
@keyframes spin {
  to { rotate: 360deg; }
}
@keyframes float-in {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: none; }
}

/* Окружающие анимации спят, пока блок вне экрана */
[data-ambient].is-paused,
[data-ambient].is-paused * { animation-play-state: paused !important; }

/* ---------- Работы ---------- */


/* верхний ряд: широкая + две узкие, нижний ряд: две широкие */
.works__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s4) var(--s3);
}
.works__grid:focus-visible { outline-offset: 8px; }

.work { display: grid; gap: var(--s2); align-content: start; grid-column: span 3; }
.work--wide,
.work--half { grid-column: span 6; }
.work__open {
  display: block;
  width: 100%;
  height: clamp(24rem, 36vw, 34rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--pink-200);
  cursor: zoom-in;
  box-shadow: 0 24px 50px -30px rgba(142, 28, 82, 0.6);
}
.work__open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}
.work__open:focus-visible img { transform: scale(1.05); }
.work__caption h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-1);
  line-height: 1.25;
}
.work__caption p { color: var(--ink-muted); font-size: 0.9375rem; }

@media (min-width: 56.25em) {
  .work--half .work__open { height: clamp(20rem, 30vw, 28rem); }
  .work--half img { object-position: 50% 30%; }
}

/* карточка чуть приподнимается и светится под курсором */
@media (hover: hover) and (pointer: fine) {
  .work__open { transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out); }
  .work__open:hover {
    transform: translateY(-6px);
    box-shadow: 0 34px 60px -30px rgba(184, 35, 106, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.6);
  }
}

/* на телефонах работы листаются вбок, следующая карточка выглядывает */
@media (max-width: 56.24em) {
  .works__grid {
    display: flex;
    gap: var(--s2);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) var(--s1);
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .works__grid::-webkit-scrollbar { display: none; }
  .work { flex: 0 0 76%; scroll-snap-align: start; }
  .work__open { height: auto; aspect-ratio: 3 / 4; }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-ready [data-reveal] .work__open { clip-path: inset(0 0 100% 0); }
  .reveal-ready [data-reveal] .work__caption { opacity: 0; }
  .reveal-ready [data-reveal].is-in .work__open { animation: reveal-down 1.1s var(--ease-out) both; animation-delay: calc(var(--n, 0) * 140ms); }
  .reveal-ready [data-reveal].is-in .work__caption { animation: rise 0.8s var(--ease-out) both; animation-delay: calc(var(--n, 0) * 140ms + 450ms); }
}
@keyframes reveal-down {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0); }
}

/* ---------- Сложное окрашивание и примерочная ---------- */

/* Цвета прядей задаёт примерочная; зарегистрированные свойства плавно перетекают при смене */
@property --hair-root { syntax: "<color>"; inherits: true; initial-value: #24120D; }
@property --hair-mid { syntax: "<color>"; inherits: true; initial-value: #8E5A34; }
@property --hair-tip { syntax: "<color>"; inherits: true; initial-value: #D29A60; }
@property --hair-light { syntax: "<color>"; inherits: true; initial-value: #F0C58C; }

.coloring {
  overflow-x: clip; /* холст живой девушки шире её самой — за края экрана он не выходит, страница не сдвигается вбок */
  --hair-root: #24120D;
  --hair-mid: #8E5A34;
  --hair-tip: #D29A60;
  --hair-light: #F0C58C;
  transition: --hair-root 800ms var(--ease-out), --hair-mid 800ms var(--ease-out), --hair-tip 800ms var(--ease-out), --hair-light 800ms var(--ease-out);
}

.coloring__grid {
  display: grid;
  gap: var(--s5);
  align-items: start;
}
@media (min-width: 56.25em) {
  .coloring__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--s6); }
}
/* карточка примерочной едет за текстом, только если целиком помещается по высоте экрана */
@media (min-width: 56.25em) and (min-height: 75em) {
  .tryon-card { position: sticky; top: calc(var(--header-h) + var(--s3)); }
}
.coloring__text .section__lead { margin-top: var(--s2); margin-bottom: var(--s5); }

.tech-list { display: grid; gap: var(--s5); }
.tech {
  display: grid;
  grid-template-columns: 5.25rem minmax(0, 1fr);
  gap: var(--s3);
  align-items: start;
}
.tech__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-2);
  line-height: 1.1;
  margin-bottom: var(--s1);
}
.tech p { max-width: 34ch; }

/* техника, выбранная в примерочной, мягко подсвечивается */
.tech {
  margin: calc(var(--s2) * -1);
  padding: var(--s2);
  border-radius: 1.75rem;
  border: 1px solid transparent;
  transition: background-color 700ms var(--ease-out), border-color 700ms var(--ease-out), box-shadow 700ms var(--ease-out);
}
.tech.is-active {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 20px 40px -28px rgba(142, 28, 82, 0.55);
}

/* Прядь из палитры колориста: кольцо сверху, волокна, переход цвета */
.lock {
  position: relative;
  display: block;
  width: 5.25rem;
  height: 15rem;
  margin-top: 1.25rem;
  border-radius: 0.6rem 0.6rem 50% 50% / 0.6rem 0.6rem 22% 22%;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0 1px, transparent 1px 4px),
    linear-gradient(var(--hair-root) 0 18%, var(--hair-mid) 48%, var(--hair-tip) 78%, var(--hair-light));
  box-shadow: 0 18px 30px -18px rgba(42, 10, 28, 0.6);
  transform-origin: 50% -1.25rem;
}
.lock::before {
  content: "";
  position: absolute;
  top: -1.25rem;
  left: 50%;
  width: 1.5rem;
  height: 1.5rem;
  border: 3px solid var(--raspberry);
  border-radius: 50%;
  transform: translateX(-50%);
}
.lock::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.lock--balayage::after {
  background: repeating-linear-gradient(90deg,
    transparent 0 6px,
    color-mix(in srgb, var(--hair-light) 80%, transparent) 6px 11px,
    transparent 11px 17px,
    color-mix(in srgb, var(--hair-tip) 65%, transparent) 17px 21px,
    transparent 21px 28px);
  -webkit-mask-image: linear-gradient(transparent 20%, #000 65%);
  mask-image: linear-gradient(transparent 20%, #000 65%);
}
.lock--shatush {
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0 1px, transparent 1px 4px),
    linear-gradient(var(--hair-root) 0 32%, var(--hair-mid) 62%, color-mix(in srgb, var(--hair-tip) 70%, var(--hair-mid)) 88%, var(--hair-tip));
}
.lock--shatush::after {
  background: repeating-linear-gradient(90deg,
    transparent 0 3px,
    color-mix(in srgb, var(--hair-light) 55%, transparent) 3px 5px,
    transparent 5px 9px,
    color-mix(in srgb, var(--hair-light) 35%, transparent) 9px 10px,
    transparent 10px 14px);
  -webkit-mask-image: linear-gradient(transparent 38%, rgba(0, 0, 0, 0.9) 85%);
  mask-image: linear-gradient(transparent 38%, rgba(0, 0, 0, 0.9) 85%);
}
.lock--ombre {
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.07) 0 1px, transparent 1px 4px),
    linear-gradient(var(--hair-root) 0 40%, var(--hair-tip) 70%, var(--hair-light));
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-ready [data-reveal] .lock { opacity: 0; }
  .reveal-ready [data-reveal].is-in .lock {
    animation: swing-in 1.5s var(--ease-out) both;
    animation-delay: calc(var(--n, 0) * 140ms);
  }
}
@keyframes swing-in {
  0% { opacity: 0; transform: rotate(-9deg) translateY(-0.5rem); }
  25% { opacity: 1; transform: rotate(5deg); }
  50% { transform: rotate(-2.5deg); }
  75% { transform: rotate(1deg); }
  100% { opacity: 1; transform: none; }
}

.tryon-card {
  display: grid;
  gap: var(--s3);
  padding: var(--s3);
  border-radius: 2rem;
}

/* Живая 3D-девушка в примерочной: квадратный холст, пока модель грузится — картинка-заставка */
.girl3d {
  position: relative;
  width: 100%;
  max-width: 24rem;
  aspect-ratio: 1;
  margin-inline: auto;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
/* мягкое розовое сияние, на котором она появляется */
.girl3d::before {
  content: "";
  position: absolute;
  inset: 8% 10% 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(249, 201, 220, 0.85), rgba(249, 201, 220, 0));
  pointer-events: none;
}
.girl3d__gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 900ms ease; cursor: pointer; }
.girl3d__gl.is-on { opacity: 1; }
.site-footer__note a { color: inherit; text-underline-offset: 0.2em; }

.tryon__hint { color: var(--ink-muted); font-size: var(--step--1); line-height: 1.5; }

.tryon { display: grid; gap: var(--s2); }
.tryon__title {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.1;
}
.tryon__note { color: var(--ink-muted); font-size: var(--step--1); line-height: 1.5; }
.tryon__now {
  margin-top: -0.5rem;
  color: var(--raspberry);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-1);
  line-height: 1.3;
}
.chip--text span { padding-inline: 1rem; }

.chips__legend {
  margin-bottom: var(--s1);
  padding: 0;
  color: var(--ink-muted);
  font-size: var(--step--1);
  font-weight: 600;
}
.chips__row { display: flex; flex-wrap: wrap; gap: var(--s1); }
.chip { position: relative; }
.chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 1rem 0.5rem 0.625rem;
  border: 1.5px solid rgba(42, 10, 28, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease;
}
.chip input:checked + span { background: var(--wine); border-color: var(--wine); color: var(--on-dark); }
.chip input:focus-visible + span { outline: 3px solid var(--raspberry); outline-offset: 3px; }
.chip__dot {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--c1) 30%, var(--c2));
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.6);
}

/* ---------- О салоне ---------- */

.about {
  overflow-x: clip; /* сияние логотипа не даёт прокрутку вбок, а по вертикали не обрезается ровной линией */
}

.about__grid { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 56.25em) {
  .about__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s6); }
}

.about__logo {
  position: relative;
  width: min(22rem, 70vw);
  aspect-ratio: 1;
  margin-inline: auto;
}
.about__logo img {
  position: relative;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 30px 40px rgba(90, 18, 54, 0.45));
}
.about__halo {
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background: conic-gradient(from 90deg, #FFD3E4, var(--rose), #F9B8D3, #D23F7C, #FFD3E4);
  filter: blur(36px);
  opacity: 0.55;
  will-change: transform;
}
@media (prefers-reduced-motion: no-preference) {
  .about__halo { animation: spin 26s linear infinite; }
}

.about__intro {
  max-width: 38rem;
  margin-top: var(--s3);
  font-size: var(--step-1);
  line-height: 1.55;
}

.facts { display: grid; margin-top: var(--s4); border-top: 1px solid var(--line); }
.facts__row {
  display: grid;
  gap: 0.25rem var(--s3);
  padding-block: var(--s2);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 37.5em) {
  .facts__row { grid-template-columns: 10rem minmax(0, 1fr); }
}
.facts dt { color: #5C1F40; font-weight: 600; }

/* ---------- Цены ---------- */


.prices__card {
  padding: clamp(1.25rem, 0.5rem + 4vw, 3.5rem);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.74);
}

/* одно предложение о том, от чего зависит цена */
.price-note {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  max-width: 44rem;
  padding: 0.875rem 1.25rem;
  border: 1px solid rgba(184, 35, 106, 0.18);
  border-left: 3px solid var(--raspberry-2);
  border-radius: 1.25rem;
  background: linear-gradient(110deg, rgba(253, 228, 238, 0.95), rgba(255, 255, 255, 0.7));
  color: var(--ink-muted);
  font-size: var(--step-0);
  line-height: 1.55;
}
.price-note b { color: var(--raspberry); font-weight: 600; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  margin-bottom: var(--s4);
}
.tab {
  min-height: 2.75rem;
  padding: 0.5rem 1.125rem;
  border: 1.5px solid rgba(42, 10, 28, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease;
}
.tab[aria-selected="true"] { background: var(--wine); border-color: var(--wine); color: var(--on-dark); }

html:not(.js) .tabs { display: none; }
html:not(.js) .tab-panel + .tab-panel { margin-top: var(--s5); }
.js .tab-panel__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tab-panel__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-2);
  margin-bottom: var(--s2);
}
.tab-panel:focus-visible { outline-offset: 8px; }
.tab-panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .tab-panel.is-entering { animation: fade-in var(--t-base) var(--ease-out); }
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.price-list { border-top: 1.5px solid var(--wine); }
.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s1) var(--s3);
  align-items: baseline;
  padding-block: var(--s3);
  border-bottom: 1px solid var(--line);
}
.price-row__name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
}
.price-row__name > span { font-size: var(--step-1); font-weight: 500; line-height: 1.35; }
.price-row__note {
  flex-basis: 100%;
  order: 3;
  max-width: 40rem;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}
.price-row__time { color: var(--ink-muted); font-size: 0.9375rem; white-space: nowrap; }
.price-row__value,
.lengths dd { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.price-row__value { font-size: var(--step-1); text-align: right; }
.price-row__value--ask { font-size: var(--step-0); font-weight: 500; color: var(--ink-muted); }

.price-row--lengths { grid-template-columns: minmax(0, 1fr); }
.lengths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.lengths dt { color: var(--ink-muted); font-size: 0.9375rem; }
.lengths dd { white-space: normal; line-height: 1.35; }
.lengths dd small {
  display: block;
  margin-top: 0.125rem;
  color: var(--ink-muted);
  font-size: 0.875rem;
  font-weight: 400;
}

@media (min-width: 56.25em) {
  .price-row--lengths { grid-template-columns: minmax(0, 1fr) minmax(0, 33rem); }
  .lengths dd { font-size: 1.125rem; }
}

/* на телефонах длины идут строками: длина слева, цена справа */
@media (max-width: 30em) {
  .price-row { grid-template-columns: minmax(0, 1fr); }
  .price-row__value { text-align: left; }
  .lengths { grid-template-columns: minmax(0, 1fr); gap: var(--s1); }
  .lengths > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--s2);
    align-items: baseline;
  }
  .lengths dt { font-size: var(--step-0); }
  .lengths dd { text-align: right; white-space: nowrap; }
}

.prices__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  margin-top: var(--s5);
  padding: var(--s3) var(--s4);
  border-radius: var(--radius);
  background: linear-gradient(110deg, var(--pink-100), var(--pink-200));
}
.prices__offer {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  max-width: 34rem;
  font-size: var(--step-0);
  line-height: 1.5;
}
.prices__offer strong { color: var(--raspberry); }

/* ---------- Отзывы ---------- */


.reviews__grid { display: grid; gap: var(--s5); align-items: start; }
@media (min-width: 56.25em) {
  .reviews__grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--s6); }
}

.rating {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-top: var(--s3);
}
.rating__value {
  font-family: var(--font-display);
  font-size: clamp(4rem, 3rem + 4vw, 6rem);
  line-height: 1;
}
.rating__stars { display: flex; gap: 0.25rem; }
.rating__stars svg { width: 1.75rem; height: 1.75rem; fill: var(--raspberry-2); }

.reviews__note { max-width: 30rem; margin-top: var(--s2); color: var(--ink-muted); }

.award {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  max-width: 30rem;
  margin-block: var(--s4);
  padding: var(--s2) var(--s3);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.55);
  line-height: 1.45;
}
.award .icon { width: 1.75rem; height: 1.75rem; color: var(--raspberry); }

.reviews__widget {
  padding: 0.5rem;
  border-radius: 1.75rem;
}
.reviews__widget iframe {
  display: block;
  width: 100%;
  height: 40rem;
  border: 0;
  border-radius: calc(1.75rem - 0.5rem);
  background: #fff;
}
@media (max-width: 37.5em) {
  .reviews__widget iframe { height: 34rem; }
}

/* ---------- Контакты и подвал ---------- */

.contacts {
  overflow: hidden;
  padding-bottom: 0;
  /* тёмный слой ложится поверх общего розового фона и начинается с полной прозрачности — стыка нет */
  background: linear-gradient(180deg, rgba(184, 35, 106, 0) 0, rgba(184, 35, 106, 0.65) 120px, rgba(90, 18, 54, 0.9) 300px, rgba(42, 10, 28, 0.95) 480px);
  color: var(--on-dark);
  isolation: isolate;
}
.contacts .trails {
  z-index: -1;
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 260px);
  mask-image: linear-gradient(180deg, transparent 0, #000 260px);
}
.contacts :focus-visible { outline-color: var(--pink-300); }

.contacts__grid { display: grid; gap: var(--s5); }
@media (min-width: 56.25em) {
  .contacts__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); }
}

.contacts__address {
  margin-top: var(--s4);
  font-style: normal;
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.3;
}
.contacts__facts { display: grid; gap: 0.75rem; margin-top: var(--s3); color: var(--on-dark-muted); }
.contacts__facts li { display: flex; gap: 0.75rem; align-items: flex-start; }
.contacts__facts .icon { margin-top: 0.125rem; color: var(--pink-400); }
.contacts__actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }

.contact-list { border-top: 1px solid var(--line-dark); }
.contact-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.125rem var(--s2);
  align-items: center;
  padding-block: var(--s3);
  border-bottom: 1px solid var(--line-dark);
  text-decoration: none;
}
.contact-link .icon { grid-row: span 2; width: 1.75rem; height: 1.75rem; color: var(--pink-400); }
.contact-link__label { color: var(--on-dark-muted); font-size: 0.9375rem; }
.contact-link__value {
  font-size: var(--step-1);
  font-weight: 500;
  overflow-wrap: anywhere;
  transition: color var(--t-fast) ease;
}

.site-footer {
  margin-top: var(--section-y);
  padding-block: var(--s4) calc(var(--s4) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-dark);
  color: var(--on-dark-muted);
  font-size: var(--step--1);
}
.site-footer__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s4); }
.site-footer__logo { width: 3.5rem; height: 3.5rem; }
.site-footer__note { flex-basis: 100%; }
.site-footer__credit { margin-left: auto; }
@media (max-width: 37.5em) {
  .site-footer__credit { margin-left: 0; }
}

/* ---------- Панель записи на телефонах ---------- */

.booking-bar { display: none; }

@media (max-width: 47.99em) {
  /* отступа под панель внизу страницы нет: в конце сайта панель скрыта, и тёмный подвал доходит до самого края */

  .booking-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-bar);
    display: flex;
    gap: var(--s1);
    padding: 0.75rem max(var(--gutter), env(safe-area-inset-right)) calc(0.75rem + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
    background: rgba(42, 10, 28, 0.95);
    transition: transform var(--t-base) var(--ease-out);
  }
  .js .booking-bar.is-hidden { transform: translateY(110%); }
  .booking-bar :focus-visible { outline-color: var(--pink-300); }
  .booking-bar__main { flex: 1; }
  .booking-bar__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    flex: none;
    border: 1.5px solid rgba(255, 230, 240, 0.5);
    border-radius: 50%;
    color: var(--on-dark);
  }
}

/* ---------- Окна поверх сайта ---------- */

.booking {
  width: min(30rem, calc(100vw - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  padding: 2.75rem clamp(1.25rem, 0.5rem + 3vw, 2.25rem) 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 2rem;
  background: linear-gradient(165deg, #FFF5F9 0%, #FDE4EE 55%, #F9C9DC 100%);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 40px 80px -20px rgba(42, 10, 28, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden; /* туман выходит за края окна и не должен давать прокрутку */
  isolation: isolate;
}
.booking[open] { display: grid; justify-items: center; gap: var(--s2); }
.booking::backdrop { background: rgba(42, 10, 28, 0.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* туман внутри окна, как в шапке */
.booking__fog {
  position: absolute;
  inset: -30%;
  z-index: -1;
  background:
    radial-gradient(closest-side at 20% 20%, rgb(var(--glow-a) / 0.5), transparent),
    radial-gradient(closest-side at 85% 75%, rgb(var(--glow-c) / 0.25), transparent),
    radial-gradient(closest-side at 70% 15%, rgb(255 255 255 / 0.8), transparent);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .booking[open] .booking__fog { animation: menu-fog 16s ease-in-out infinite alternate; }
}
.booking__close { position: absolute; top: 0.625rem; right: 0.625rem; }
.booking__logo { width: 4.5rem; height: 4.5rem; filter: drop-shadow(0 14px 20px rgba(90, 18, 54, 0.35)); }
.booking__title {
  max-width: 19ch;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.125rem);
  line-height: 1.15;
  text-wrap: balance;
}
.booking__text { max-width: 26rem; color: var(--ink-muted); line-height: 1.6; }
.booking__text a { color: var(--raspberry); font-weight: 600; white-space: nowrap; text-underline-offset: 0.2em; }
.booking__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
  margin-top: var(--s1);
}
.booking__promo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--raspberry);
  font-size: var(--step--1);
  font-weight: 600;
}
@media (max-width: 22em) {
  .booking__actions { grid-template-columns: minmax(0, 1fr); }
}

.lightbox {
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(42, 10, 28, 0.88); }
.lightbox__img {
  max-width: min(92vw, 60rem);
  max-height: 88dvh;
  border-radius: 1.25rem;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
}
.lightbox__close {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  background: rgba(255, 230, 240, 0.15);
  color: var(--on-dark);
}
.lightbox__close:focus-visible { outline-color: var(--pink-300); }

@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] { animation: sheet-in 320ms var(--ease-out); }
  .lightbox[open]::backdrop { animation: backdrop-in 320ms ease; }
  /* окно записи открывается и закрывается медленнее, без рывка */
  .booking[open] { animation: sheet-in 560ms var(--ease-out); }
  .booking[open]::backdrop { animation: backdrop-in 560ms ease; }
  .booking.is-closing { animation: sheet-out 360ms ease-in forwards; }
  .booking.is-closing::backdrop { animation: backdrop-out 360ms ease forwards; }
}
@keyframes sheet-out { to { opacity: 0; transform: translateY(16px) scale(0.98); } }
@keyframes backdrop-out { to { opacity: 0; } }
@keyframes sheet-in {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes backdrop-in { from { opacity: 0; } }

/* ---------- Метро ---------- */

.metro {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  white-space: nowrap;
}
/* круглый значок в фиолетовом цвете Таганско-Краснопресненской линии */
.metro__icon {
  width: 0.72em;
  height: 0.72em;
  flex: none;
  fill: #943E90;
}
.contacts__metro { width: 1.375rem; height: 1.375rem; margin-top: 0.125rem; }

/* ---------- Анна: коротко, подробности по кнопкам ---------- */

:root { interpolate-size: allow-keywords; }

.accordion { display: grid; gap: var(--s1); margin-top: var(--s4); max-width: 36rem; }
.accordion__item {
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.75);
  transition: background-color 500ms ease, box-shadow 500ms ease;
}
.accordion__item[open] {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 34px -22px rgba(142, 28, 82, 0.55);
}
.accordion__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  min-height: 3.25rem;
  padding: 0.5rem 0.75rem 0.5rem 1.25rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  border-radius: inherit;
}
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__icon {
  width: 2rem;
  height: 2rem;
  padding: 0.4rem;
  flex: none;
  border-radius: 50%;
  background: var(--wine);
  stroke: var(--on-dark);
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
  transition: transform 400ms var(--ease-out), background-color var(--t-base) ease;
}
.accordion__item[open] .accordion__icon { transform: rotate(135deg); background: var(--raspberry); }
.accordion__body { padding: 0 1.25rem 1.125rem; color: #5C1F40; line-height: 1.55; }

/* Плавное раскрытие делает скрипт (высота + проявление текста), чтобы одинаково работало и в Safari.
   При появлении раздела карточки выплывают по очереди. */
.accordion__item summary { transition: color var(--t-base) ease; }
.accordion__item[open] summary { color: var(--raspberry); }
.accordion__item.is-animating { overflow: hidden; }

@media (prefers-reduced-motion: no-preference) {
  .rise-ready .accordion[data-rise] { opacity: 1; transform: none; }
  .rise-ready .accordion[data-rise] .accordion__item {
    opacity: 0;
    transform: translateY(1.25rem);
    transition:
      opacity 900ms var(--ease-out) var(--d, 0ms),
      transform 900ms var(--ease-out) var(--d, 0ms),
      background-color 500ms ease,
      box-shadow 500ms ease;
  }
  .rise-ready .accordion[data-rise].is-visible .accordion__item { opacity: 1; transform: none; }
  .accordion__item:nth-child(2) { --d: 110ms; }
  .accordion__item:nth-child(3) { --d: 220ms; }
  .accordion__item:nth-child(4) { --d: 330ms; }
}

/* ---------- Милая роскошь: искры, блёстки, блик на кнопках ---------- */

.hero__brand-wrap { position: relative; display: inline-block; }

.twinkle {
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  fill: #fff;
  filter: drop-shadow(0 0 6px rgba(232, 87, 154, 0.9));
  pointer-events: none;
  opacity: 0.85;
}
.twinkle--a { top: 2%; right: -1.75rem; width: 1.5rem; height: 1.5rem; }
.twinkle--b { top: 44%; right: -2.75rem; width: 0.9rem; height: 0.9rem; }
.twinkle--c { bottom: 6%; left: -0.25rem; width: 0.8rem; height: 0.8rem; }
.twinkle--d { top: -4%; right: 6%; width: 1.75rem; height: 1.75rem; z-index: 2; }
.twinkle--e { bottom: 22%; right: -6%; width: 1.1rem; height: 1.1rem; z-index: 2; }

@media (prefers-reduced-motion: no-preference) {
  .twinkle { animation: twinkle 3.6s ease-in-out infinite; }
  .twinkle--b { animation-delay: -1.2s; animation-duration: 4.2s; }
  .twinkle--c { animation-delay: -2.4s; animation-duration: 3.2s; }
  .twinkle--d { animation-delay: -0.6s; animation-duration: 4.6s; }
  .twinkle--e { animation-delay: -3s; animation-duration: 3.8s; }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.55) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(45deg); }
}

/* мягкие блёстки поднимаются, как пузырьки в шампанском */
.glitter {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.glitter span {
  position: absolute;
  left: var(--x);
  bottom: -2rem;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, rgba(255, 214, 232, 0.8) 45%, rgba(232, 87, 154, 0) 72%);
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .glitter span { animation: float-up var(--dur) linear var(--delay) infinite; }
}
@keyframes float-up {
  0% { opacity: 0; transform: translate(0, 0) scale(0.6); }
  15% { opacity: 0.9; }
  50% { transform: translate(1.5rem, -45vh) scale(1); }
  85% { opacity: 0.7; }
  100% { opacity: 0; transform: translate(-1rem, -90vh) scale(0.7); }
}

/* логотип в шапке игриво поворачивается при наведении мышью (правило — в блоке «Наведение мышью») */
.brand__logo { transition: transform 700ms cubic-bezier(0.34, 1.56, 0.64, 1); }

/* чипы и вкладки чуть подпрыгивают под пальцем */
.chip span,
.tab { transition: transform var(--t-base) cubic-bezier(0.34, 1.56, 0.64, 1), background-color var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease; }
@media (hover: hover) and (pointer: fine) {
  .chip:hover span,
  .tab:hover { transform: translateY(-2px); }
}

/* строки прайса подсвечиваются розовым */
.price-row { transition: background-color var(--t-base) ease; }
@media (hover: hover) and (pointer: fine) {
  .price-row:hover { background: linear-gradient(90deg, rgba(249, 201, 220, 0.45), transparent 80%); }
}

/* появление блоков при прокрутке — мягко, один раз */
@media (prefers-reduced-motion: no-preference) {
  .rise-ready [data-rise] { opacity: 0; transform: translateY(1.75rem); transition: opacity 1200ms var(--ease-lux), transform 1400ms var(--ease-lux); }
  .rise-ready [data-rise].is-visible { opacity: 1; transform: none; }
}

/* ---------- Омбре на названии «БарбиАн» в шапке, как на первом экране ---------- */

.brand__name { color: var(--raspberry); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  /* в шапке буквы мелкие: белый низ уходит под строку, остаётся розовый перелив */
  .brand__name {
    padding-right: 0.08em;
    background-image: linear-gradient(180deg,
      var(--raspberry) 8%,
      rgb(var(--glow-c)) 32%,
      rgb(var(--glow-a)) 52%,
      #FBD2E5 70%,
      #FFFFFF 88%);
    background-size: 100% 135%;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0.7px rgba(142, 28, 82, 0.45);
    filter: drop-shadow(0 1px 0 rgba(142, 28, 82, 0.22)) drop-shadow(0 0.08em 0.2em rgba(184, 35, 106, 0.3));
  }
}

/* ---------- Наведение мышью (на телефонах этих эффектов нет) ---------- */

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background-position: 100% 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 14px 30px -12px rgba(165, 28, 94, 0.9); }
  .btn--glass:hover { background: rgba(255, 255, 255, 0.85); }
  .btn--pink:hover { background: var(--pink-200); }
  .btn--outline-light:hover { background: rgba(255, 230, 240, 0.1); border-color: var(--on-dark); }
  .text-link:hover { text-decoration-thickness: 3px; }
  .icon-btn:hover { background: rgba(42, 10, 28, 0.08); }
  .site-nav a:hover { background: rgba(184, 35, 106, 0.1); }
  .work__open:hover img { transform: scale(1.05); }
  .chip:hover span { border-color: var(--raspberry); }
  .tab:hover { border-color: var(--raspberry); }
  .contact-link:hover .contact-link__value { color: var(--pink-300); }
  .lightbox__close:hover { background: rgba(255, 230, 240, 0.3); }
  .brand:hover .brand__logo { transform: rotate(-14deg) scale(1.06); }
}

/* ---------- Роскошные мелочи ---------- */

/* Под заголовками разделов — тонкая розовая линия, она «прорисовывается», когда заголовок появляется */
.section__title { position: relative; letter-spacing: -0.012em; font-kerning: normal; }
.section__title::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 1px;
  margin-top: 0.4em;
  background: linear-gradient(90deg, var(--raspberry-2), rgba(201, 44, 116, 0));
  transform-origin: left center;
}
.contacts .section__title::after { background: linear-gradient(90deg, var(--pink-300), rgba(244, 163, 196, 0)); }
@media (prefers-reduced-motion: no-preference) {
  .rise-ready [data-rise] .section__title::after,
  .rise-ready .section__title[data-rise]::after { transform: scaleX(0); transition: transform 1400ms var(--ease-lux) 350ms; }
  .rise-ready [data-rise].is-visible .section__title::after,
  .rise-ready .section__title[data-rise].is-visible::after { transform: none; }
}

/* Тонкая светлая рамка по краю фотографий — как паспарту */
.work__open,
.portrait__frame { position: relative; }
.work__open::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

/* Фото проявляются мягко, когда догрузятся, а не появляются рывком */
.js img.fade-img { opacity: 0; transition: opacity 900ms ease; }
.js img.fade-img.is-loaded { opacity: 1; }

/* Главная кнопка: внутренний блик сверху, чуть шире буквы */
.btn--primary {
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 24px -12px rgba(165, 28, 94, 0.8);
}
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover,
  .btn--glass:hover,
  .btn--pink:hover { transform: translateY(-1px); }
  .btn:active { transform: scale(0.97); }
}

/* Телефоны: под карточками нет размытия — фон за ними всё время движется, а размытие каждый кадр дорого.
   Вместо него карточки чуть плотнее, на вид почти так же. */
@media (hover: none), (max-width: 47.99em) {
  .glass,
  .btn--glass {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .glass { background: rgba(255, 249, 252, 0.86); }
  .btn--glass { background: rgba(255, 255, 255, 0.82); }
}

/* ---------- Телефоны: без тяжёлых постоянных анимаций ---------- */
/* Перелив букв «БарбиАн» и бегущие искры по линиям перерисовывают экран каждый кадр — на телефоне их нет,
   появление первого экрана и мягкие блёстки остаются */
@media (hover: none), (max-width: 47.99em) {
  .js .hero__brand { animation: rise 1s var(--ease-out) 0.05s both; }
  .trail__spark { animation: none !important; opacity: 0 !important; }
  .about__halo { animation: none; }
}

/* ---------- Без движения ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
  .strands path { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
}
