/* ============ Токены ============ */
:root {
  --page: #E4E5E8;
  --surface: #F7F7F8;
  --card: #EDEEF0;
  --white: #FFFFFF;
  --text: #131315;
  --muted: #62626A;
  --line: #D9DADF;
  --accent: #F2D2D8;

  --g-blue: linear-gradient(150deg, #E3ECF7 0%, #BCD0E8 100%);
  --g-pink: linear-gradient(150deg, #F6DDE2 0%, #E8B9C4 100%);
  --g-gray: linear-gradient(150deg, #DCE0E8 0%, #C2C9D6 100%);
  --g-dark: linear-gradient(150deg, #2B2B33 0%, #131315 100%);

  --r-page: 32px;
  --r-card: 24px;
  --r-card-lg: 28px;
  --r-card-sm: 20px;
  --gutter: clamp(16px, 3vw, 40px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --focus: 0 0 0 3px var(--surface), 0 0 0 5px var(--text);
}

/* ============ База ============ */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px;
  /* Без системной синей подсветки нажатия: у элементов свой отклик (:active, состояния выбора) */
  -webkit-tap-highlight-color: transparent;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 12px; }
::selection { background: var(--accent); color: var(--text); }

[hidden] { display: none !important; }
.sr-only {
  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: 16px; top: -60px; z-index: 100;
  background: var(--text); color: var(--white); padding: 10px 18px; border-radius: 999px;
  transition: transform .2s var(--ease);
}
.skip-link:focus-visible { transform: translateY(76px); }

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

/* ============ Типографика ============ */
.eyebrow {
  font-size: 16px; font-weight: 500; color: var(--muted);
  letter-spacing: .01em;
}
.h2 {
  font-size: clamp(30px, 3.6vw, 48px); font-weight: 300; line-height: 1.08;
  letter-spacing: -0.02em; text-wrap: balance;
}
.h3 { font-size: 24px; font-weight: 400; line-height: 1.2; letter-spacing: -0.01em; }
.card h3, .why-card h3 { font-size: 20px; font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; }
.card p { color: var(--muted); }

/* ============ Каркас ============ */
.page {
  max-width: 1240px;
  margin: 16px auto 0;
  background: var(--surface);
  border-radius: var(--r-page);
  padding: var(--gutter);
}
@media (max-width: 1272px) { .page { margin: 16px 16px 0; } }
@media (max-width: 560px) { .page { margin: 8px 8px 0; border-radius: 24px; padding: 16px; } }

.section { padding-top: clamp(72px, 9vw, 128px); }
.section-head { display: grid; gap: 14px; margin-bottom: 32px; }
.section-head--row { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.card { background: var(--card); border-radius: var(--r-card); padding: 28px; }
.g-blue { background: var(--g-blue); }
.g-pink { background: var(--g-pink); }
.g-gray { background: var(--g-gray); }
.g-dark { background: var(--g-dark); color: var(--white); }

/* ============ Кнопки, чипы, теги ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font-size: 16px; font-weight: 500; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, color .2s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn--dark { background: var(--text); color: var(--white); }
.btn--dark:hover { background: #2B2B33; }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: var(--card); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.round-arrow {
  flex: none; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); color: var(--text);
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.round-arrow svg { width: 18px; height: 18px; }
.round-arrow--sm { width: 32px; height: 32px; }
.round-arrow--sm svg { width: 16px; height: 16px; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 30px; padding: 0 12px; border-radius: 999px;
  background: var(--white); color: var(--text);
  font-size: 14px; font-weight: 500; white-space: nowrap;
}
.tag .icon { width: 16px; height: 16px; }
.tag--accent { background: var(--accent); }
.tag--glass { background: rgba(255, 255, 255, .55); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
  border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 16px; font-weight: 400; transition: background-color .2s, box-shadow .2s, color .2s;
}
.chip:hover { box-shadow: inset 0 0 0 1px var(--muted); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--white); box-shadow: none; }
.chip--radio { position: relative; cursor: pointer; padding: 0; }
.chip--radio input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip--radio span { padding: 0 20px; line-height: 44px; border-radius: 999px; }
.chip--radio:has(input:checked) { background: var(--text); color: var(--white); box-shadow: none; }
.chip--radio:has(input:focus-visible) { box-shadow: var(--focus); }

.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(247, 247, 248, .78); color: var(--text);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color .2s, color .2s;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--text); color: var(--white); }

.link-arrow { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; }
.link-arrow:hover .round-arrow { background: var(--text); color: var(--white); }
.link-arrow .round-arrow { background: var(--card); }

/* ============ 1. Первый экран ============ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(24px, 3vw, 40px);
  min-height: min(820px, calc(100svh - 2 * var(--gutter) - 16px));
}
.hero__main { display: flex; flex-direction: column; gap: 32px; min-width: 0; }

.topbar { display: flex; align-items: center; gap: 12px; }
.logo {
  flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--text); color: var(--white);
  font-size: 16px; font-weight: 500; letter-spacing: .04em;
}
.pill-nav {
  display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--white);
  overflow-x: auto; scrollbar-width: none;
}
.pill-nav::-webkit-scrollbar { display: none; }
.pill-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  white-space: nowrap; transition: background-color .2s;
}
.pill-nav a:hover { background: var(--card); }
.pill-nav .pill-nav__accent { background: var(--accent); }
.pill-nav .pill-nav__accent:hover { background: var(--accent); filter: saturate(1.3); }

.hero__copy { display: grid; gap: 20px; margin-top: auto; }
.hero__title {
  font-size: clamp(40px, 5.6vw, 80px);
  font-weight: 300;
  line-height: .98;
  text-transform: uppercase;
  letter-spacing: -0.015em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line__inner { display: block; }
.hero__lead { max-width: 30em; color: var(--muted); font-size: 18px; line-height: 1.55; }

.hero-services { display: grid; gap: 8px; }
.hero-service {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 10px 10px 10px; border-radius: 999px; background: var(--card);
  transition: background-color .25s var(--ease);
}
.hero-service:hover { background: var(--white); }
.hero-service:hover .round-arrow, .svc-card:hover .round-arrow, .svc-card:focus-visible .round-arrow {
  background: var(--text); color: var(--white);
}
.hero-service__icon {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
}
.hero-service__icon.g-dark { color: var(--white); }
.hero-service__icon svg { width: 22px; height: 22px; }
.hero-service__text { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
.hero-service__title { font-weight: 500; }
.hero-service__meta { color: var(--muted); font-size: 14px; }
.hero-service .round-arrow { background: var(--white); }
.hero-service:hover .tag { background: var(--card); }
.hero-service:hover .tag--accent { background: var(--accent); }

/* Фото-карточка с рифлёным стеклом */
.hero__visual { min-width: 0; }
.photo-card {
  position: relative; height: 100%; min-height: 560px; border-radius: var(--r-card-lg); overflow: hidden;
  background: var(--g-pink); isolation: isolate;
}
/* Кадрирование (object-position) и вырез в стекле задаёт js/modules/hero-window.js по точке фокуса фото */
.photo-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.photo-card--illustration { background: var(--g-blue); color: var(--text); }
.photo-card__illustration { position: absolute; left: 50%; top: 47%; width: 92%; transform: translate(-50%, -50%); }

.photo-card__media { position: absolute; inset: 0; }

/* Рифлёное стекло на всё фото: размытая копия снимка + рифление поверх.
   «Окно-глаз» вырезано в нём через clip-path (evenodd), его задаёт JS. */
.glass { position: absolute; inset: 0; pointer-events: none; overflow: hidden; transition: opacity .6s var(--ease); }
.photo-card__img--blur { filter: blur(9px) saturate(1.1) brightness(1.05); transform: scale(1.04); }
.glass::after {
  content: ''; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg,
      rgba(255, 255, 255, .26) 0px,
      rgba(255, 255, 255, .04) 4px,
      rgba(30, 40, 64, .07) 7px,
      rgba(255, 255, 255, .26) 8px),
    linear-gradient(180deg, rgba(220, 232, 246, .30) 0%, rgba(247, 247, 248, .06) 45%, rgba(242, 210, 216, .30) 100%);
}
.eye-window { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; transition: opacity .6s var(--ease); }
.photo-card:not(.is-window-ready) .glass,
.photo-card:not(.is-window-ready) .eye-window { opacity: 0; }
.eye-window__outline, .eye-window__lash {
  fill: none; stroke: rgba(255, 255, 255, .95); vector-effect: non-scaling-stroke; stroke-linecap: round;
}
.eye-window__outline { stroke-width: 1.5; }
.eye-window__lash { stroke-width: 1.4; }

.photo-card__top, .photo-card__bottom {
  position: absolute; left: 16px; right: 16px; display: flex; gap: 12px;
}
.photo-card__top { top: 16px; align-items: flex-start; justify-content: space-between; }
.photo-card__bottom { bottom: 16px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.photo-card__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.glass-chip, .glass-tile {
  background: rgba(247, 247, 248, .80);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  color: var(--text);
}
.glass-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px 8px 12px;
  border-radius: 999px; font-size: 15px; line-height: 1.3; max-width: 100%;
}
.glass-chip__label { font-weight: 500; }
.glass-chip--link { font-weight: 500; transition: background-color .2s, color .2s; }
.glass-chip--link:hover { background: var(--white); }
.glass-chip--map { padding-right: 6px; }
.glass-chip__go {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--white);
  transition: background-color .25s, color .25s;
}
.glass-chip__go svg { width: 16px; height: 16px; transition: transform .45s var(--spring); }
.glass-chip--map:hover .glass-chip__go { background: var(--text); color: var(--white); }
.glass-chip--map:hover .glass-chip__go svg { transform: rotate(45deg); }
.glass-chip--map:active { transform: scale(.97); }
.socials { display: flex; gap: 6px; }

.glass-tile {
  display: grid; gap: 4px; padding: 14px 18px; border-radius: var(--r-card-sm); min-width: 200px;
  transition: background-color .2s;
}
a.glass-tile:hover { background: var(--white); }
.glass-tile__label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.glass-tile__label .icon { width: 16px; height: 16px; }
.glass-tile__value { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }

/* ============ 2. Почему я ============ */
.why {
  display: grid; grid-template-columns: 1fr minmax(260px, 1.05fr) 1fr; gap: 16px; align-items: stretch;
}
.why__col { display: grid; gap: 16px; }
.why-card { display: grid; align-content: start; gap: 10px; padding: 24px; }
.why-card__icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--white); margin-bottom: 18px;
}
.why-card__icon svg { width: 22px; height: 22px; }
/* В DOM круг с h2 идёт первым (порядок заголовков), визуально стоит между колонками */
.why__center { position: relative; display: grid; place-items: center; aspect-ratio: 1; align-self: center; grid-column: 2; grid-row: 1; }
.rings { position: absolute; inset: 0; }
.rings span {
  position: absolute; border-radius: 50%; border: 1px solid var(--line);
  inset: calc(var(--i) * 11%);
}
.rings span:nth-child(1) { --i: 0; }
.rings span:nth-child(2) { --i: 1; }
.rings span:nth-child(3) { --i: 2; }
.rings span:nth-child(4) { --i: 3; background: var(--accent); border-color: transparent; }
.why__heading { position: relative; text-align: center; display: grid; gap: 6px; }
.why__heading p { color: var(--muted); }

/* ============ 3. Услуги ============ */
.tabs { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.tab {
  position: relative; padding: 4px 0; font-size: clamp(30px, 3.6vw, 48px); font-weight: 300;
  line-height: 1.1; letter-spacing: -0.02em; color: #8A8A92; transition: color .25s;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); }
.tab[aria-selected="true"]::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--text);
}

.bento {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(250px, auto); grid-auto-flow: row dense; gap: 16px;
}
.tile-2x1 { grid-column: span 2; }
.tile-1x2 { grid-row: span 2; }
.svc-card {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px;
  border-radius: var(--r-card); min-height: 250px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(19, 19, 21, .35); }
.svc-card:focus-visible { border-radius: var(--r-card); }
.svc-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.svc-card__title { font-size: 24px; font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; }
.svc-card__price { font-size: 18px; font-weight: 500; }
.svc-card__desc { color: var(--muted); max-width: 32em; }
.svc-card.g-dark .svc-card__desc { color: #B9B9C2; }
.svc-card__bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; }
.svc-card.g-dark .tag--glass { background: rgba(255, 255, 255, .12); color: var(--white); }
.svc-card.g-dark:hover .round-arrow { background: var(--accent); color: var(--text); }
.tile-1x2 .svc-card__title { font-size: 32px; font-weight: 300; }
.svc-card--insta { background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.svc-card--insta .round-arrow { background: var(--card); }
.svc-card__insta-icon { width: 32px; height: 32px; }
.svc-card__meta { color: var(--muted); }

/* ============ 4. Конструктор эффекта ============ */
.effect { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; align-items: center; }
.effect__text { display: grid; gap: 22px; justify-items: start; }
.effect__desc { color: var(--muted); font-size: 18px; max-width: 30em; min-height: 5.6em; }
.effect__scheme { padding: clamp(20px, 3vw, 36px); display: grid; gap: 20px; background: var(--g-blue); }
.scheme { width: 100%; height: auto; overflow: visible; }
.scheme__lower { fill: none; stroke: rgba(19, 19, 21, .35); stroke-width: 2; }
.scheme__lid { fill: none; stroke: var(--text); stroke-width: 3; stroke-linecap: round; }
.scheme__iris { fill: rgba(255, 255, 255, .5); stroke: rgba(19, 19, 21, .45); stroke-width: 1.5; }
.scheme__pupil { fill: var(--text); }
.scheme__lash { fill: var(--text); }
.scheme__lash--thin { fill: #3D3D47; opacity: .7; }
.scheme__labels { display: flex; justify-content: space-between; gap: 12px; color: #4A4A52; margin-top: -8px; }

.bars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; align-items: end; }
.bar { display: grid; gap: 8px; justify-items: center; }
.bar__track {
  position: relative; width: 100%; height: 88px; border-radius: 12px; background: rgba(255, 255, 255, .5); overflow: hidden;
}
.bar__fill {
  position: absolute; inset: 0; border-radius: 12px; background: var(--text);
  transform-origin: 50% 100%; transform: scaleY(var(--ratio, .5));
}
.bar__value { font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ============ 5. Работы ============ */
.works__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.work {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: var(--r-card-sm); background: var(--card); cursor: zoom-in;
}
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.work:hover img { transform: scale(1.04); }
.work__caption {
  position: absolute; left: 12px; bottom: 12px; right: 12px; width: fit-content; max-width: calc(100% - 24px);
  padding: 6px 12px; border-radius: 999px; background: rgba(247, 247, 248, .85);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 14px; text-align: left;
}

.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(19, 19, 21, .92); color: var(--white);
}
.lightbox::backdrop { background: rgba(19, 19, 21, .6); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__figure { display: grid; gap: 12px; justify-items: center; padding: 72px 16px 24px; max-width: 100%; }
.lightbox__img { max-width: min(92vw, 1100px); max-height: calc(100dvh - 160px); width: auto; border-radius: 20px; object-fit: contain; }
.lightbox__caption { font-size: 16px; color: #D9DADF; }
.lightbox__close { position: absolute; top: 16px; right: 16px; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }

/* ============ 6. Визит, правила, отзывы ============ */
.visit .h2 { margin-bottom: 32px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { display: grid; gap: 10px; align-content: start; min-height: 220px; }
.step__num { font-size: 48px; font-weight: 300; letter-spacing: -0.03em; line-height: 1; margin-bottom: auto; padding-bottom: 28px; color: var(--muted); }

.rules { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.rules__col .h2 { margin-bottom: 32px; }
.rules__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.rule { display: grid; gap: 8px; align-content: start; }
.checklist { display: grid; gap: 22px; align-content: start; }
.checklist ul { display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.checklist__mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--white); }
.checklist__mark svg { width: 16px; height: 16px; }

.reviews .h2 { margin-bottom: 32px; }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { display: grid; gap: 16px; align-content: start; }
.review__stars { display: flex; gap: 2px; }
.review__stars svg { width: 18px; height: 18px; color: var(--line); }
.review__stars svg.on { color: var(--text); }
.review blockquote p { color: var(--text); font-size: 18px; line-height: 1.5; }
.review__author { font-weight: 500; color: var(--muted); }

/* ============ 7. Запись ============ */
.booking__layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.booking__steps { display: grid; gap: 16px; min-width: 0; }
.bstep { border: 0; margin: 0; padding: 24px; border-radius: var(--r-card); background: var(--card); min-width: 0; }
.bstep__legend { display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 18px; font-size: 20px; font-weight: 500; float: left; width: 100%; }
.bstep__legend + * { clear: both; }
.bstep__num {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--white); font-size: 15px; font-weight: 500;
}
.bstep__hint { margin-left: auto; color: var(--muted); font-size: 14px; font-weight: 400; }
.bstep__placeholder { color: var(--muted); }

.service-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
/* Карточки и чипы выбора: при быстрых повторных нажатиях не выделяем текст */
.option-card, .chip, .date-option, .time-option, .tab, .svc-card, .hero-service {
  -webkit-user-select: none; user-select: none;
}
.option-card {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px;
  padding: 12px 16px; border-radius: 16px; background: var(--white); cursor: pointer;
  box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s, background-color .2s;
}
.option-card:hover { box-shadow: inset 0 0 0 1px var(--line); }
.option-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.option-card:has(input:checked) { box-shadow: inset 0 0 0 2px var(--text); }
.option-card:has(input:focus-visible) { box-shadow: var(--focus); }
.option-card__body { display: grid; flex: 1; line-height: 1.25; }
.option-card__title { font-weight: 500; }
.option-card__meta { color: var(--muted); font-size: 14px; }
.option-card__price { font-weight: 500; white-space: nowrap; }

.date-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px; margin: -4px; scrollbar-width: thin; }
.date-option { position: relative; flex: none; }
.date-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.date-option span {
  display: grid; justify-items: center; gap: 2px; width: 68px; padding: 10px 0; border-radius: 18px;
  background: var(--white); cursor: pointer; transition: background-color .2s, color .2s;
}
.date-option b { font-size: 22px; font-weight: 400; line-height: 1.1; }
.date-option small { font-size: 14px; color: var(--muted); }
.date-option input:checked + span { background: var(--text); color: var(--white); }
.date-option input:checked + span small { color: #B9B9C2; }
.date-option input:focus-visible + span { box-shadow: var(--focus); }
.date-option input:disabled + span { opacity: .45; cursor: not-allowed; text-decoration: line-through; }

.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.time-option { position: relative; }
.time-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.time-option span {
  display: grid; place-items: center; min-height: 44px; border-radius: 999px; background: var(--white);
  font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color .2s, color .2s;
}
.time-option input:checked + span { background: var(--text); color: var(--white); }
.time-option input:focus-visible + span { box-shadow: var(--focus); }
.time-option input:disabled + span {
  background: transparent; color: #8A8A92; text-decoration: line-through; cursor: not-allowed;
  box-shadow: inset 0 0 0 1px var(--line);
}

.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; align-content: start; }
.field--wide { grid-column: 1 / -1; }
.field label { font-weight: 500; }
.field-optional { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 18px; border: 0; border-radius: 16px; background: var(--white);
  box-shadow: inset 0 0 0 1px transparent; font-size: 16px; transition: box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 80px; }
.field input:hover, .field textarea:hover { box-shadow: inset 0 0 0 1px var(--line); }
.field input:focus-visible, .field textarea:focus-visible { box-shadow: inset 0 0 0 2px var(--text); border-radius: 16px; }
.field input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #B3261E; }
.field-hint { color: var(--muted); font-size: 14px; }
.field-error, .form-error { color: #B3261E; font-size: 14px; font-weight: 500; }
.field-error:empty, .form-error:empty { display: none; }
.bstep > .field-error { margin-top: 10px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.summary { position: sticky; top: 16px; }
.summary__card { display: grid; gap: 18px; padding: 28px; border-radius: var(--r-card); background: var(--g-pink); }
.summary__title { font-size: 24px; font-weight: 400; letter-spacing: -0.01em; }
.summary__list { display: grid; gap: 12px; }
.summary__list div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(19, 19, 21, .12); }
.summary__list dt { color: #4A4A52; }
.summary__list dd { font-weight: 500; text-align: right; }
.summary__total { border-bottom: 0 !important; padding: 4px 0 0 !important; }
.summary__total dd { font-size: 24px; font-weight: 500; }
.summary__note { color: #4A4A52; font-size: 14px; }

.success { display: grid; justify-items: center; gap: 14px; text-align: center; padding: clamp(36px, 6vw, 72px) 24px; background: var(--g-pink); }
.success:focus-visible { box-shadow: var(--focus); }
.success__check { width: 72px; height: 72px; margin-bottom: 8px; }
.success__circle { fill: none; stroke: var(--text); stroke-width: 1.5; }
.success__tick { fill: none; stroke: var(--text); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.success .success__title { font-size: clamp(30px, 3.6vw, 48px); font-weight: 300; letter-spacing: -0.02em; }
.success .success__text { font-size: 18px; max-width: 32em; color: var(--text); }
.success__muted { color: #4A4A52; }
.notice { padding: 16px 20px; border-radius: 16px; background: var(--accent); margin-bottom: 16px; }

/* ============ 8. Футер ============ */
.footer {
  max-width: 1240px; margin: 16px auto; padding: clamp(32px, 5vw, 56px) var(--gutter) 28px;
  background: var(--g-dark); color: var(--white); border-radius: var(--r-page);
}
@media (max-width: 1272px) { .footer { margin: 16px; } }
@media (max-width: 560px) { .footer { margin: 8px; border-radius: 24px; } }
.footer__inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.footer__studio { font-size: 32px; font-weight: 300; letter-spacing: -0.02em; }
.footer__title { font-size: 16px; font-weight: 500; color: #9D9DA6; margin-bottom: 12px; }
.footer__muted { color: #9D9DA6; }
.footer ul { display: grid; gap: 6px; }
.footer a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 4px; transition: text-decoration-color .2s; }
.footer a:hover { text-decoration-color: currentColor; }
.footer :focus-visible { box-shadow: 0 0 0 2px var(--text), 0 0 0 4px var(--white); }
.footer__day { display: inline-block; min-width: 4.2em; color: #9D9DA6; }
.footer__copy { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); color: #9D9DA6; font-size: 14px; }

/* 404 */
.not-found { display: grid; gap: 24px; justify-items: start; padding: 80px 0; }

/* ============ Адаптив ============ */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .works__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .booking__layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  /* Фото с главной анимацией сразу после навигации, чтобы её было видно на первом экране */
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 24px; }
  .hero__main { display: contents; }
  .topbar { order: 0; }
  .hero__visual { order: 1; }
  .hero__copy { order: 2; margin-top: 8px; }
  .hero-services { order: 3; }
  .photo-card { min-height: 0; height: auto; aspect-ratio: 4 / 5; max-height: min(720px, 72svh); }
  .why { grid-template-columns: 1fr 1fr; }
  .why__center { grid-column: 1 / -1; grid-row: 1; width: min(100%, 360px); justify-self: center; }
  /* Конструктор на узком экране: чипы прямо над схемой, чтобы перестройку было видно сразу */
  .effect { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .effect__text { display: contents; }
  .effect .eyebrow { order: 0; }
  .effect .h2 { order: 1; margin-bottom: 8px; }
  .effect .chips { order: 2; }
  .effect__scheme { order: 3; }
  .effect__desc { order: 4; min-height: 0; font-size: 16px; }
  .effect [data-effect-cta] { order: 5; }
  .rules { grid-template-columns: 1fr; }
  .booking__layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .reviews__grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(220px, auto); }
  .tile-1x2 { grid-row: span 1; }
  .works__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .step__num { padding-bottom: 12px; }
  .service-options { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .effect .chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .effect .chip { justify-content: center; padding: 0 12px; }
  .effect__scheme { padding: 16px 12px 18px; gap: 12px; border-radius: var(--r-card-sm); }
  /* ресницы на мелкой схеме чуть плотнее, иначе выглядят волосками */
  .scheme__lash { stroke: var(--text); stroke-width: .7px; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
  .scheme__lash--thin { stroke: #3D3D47; }
  .scheme__labels { margin-top: -4px; padding: 0 4px; }
  .bar__track { height: 56px; border-radius: 10px; }
  .bar__fill { border-radius: 10px; }
  .bar { gap: 6px; }
  .effect [data-effect-cta] { width: 100%; }
  .topbar { flex-wrap: wrap; }
  .pill-nav { flex: 1; min-width: 0; }
  .pill-nav a { padding: 0 14px; }
  .hero__lead { font-size: 16px; }
  .hero-service { gap: 10px; }
  .hero-service .tag { display: none; }
  /* На узком экране верх карточки отдан под ресницы окна, все плашки собираются внизу */
  .photo-card { aspect-ratio: 3 / 4.2; }
  .photo-card__bottom { flex-direction: column; align-items: stretch; gap: 8px; }
  .photo-card .glass-tile { min-width: 0; padding: 10px 16px; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 10px; }
  .glass-tile__value { font-size: 18px; justify-self: end; }
  .photo-card__actions { flex-wrap: nowrap; }
  .photo-card__actions .btn { flex: 1; padding: 0 16px; }
  .pill-nav__optional { display: none !important; }
  .bar__value { font-size: 16px; }
  .bars { gap: 6px; }
  .why { grid-template-columns: 1fr; }
  .why__col { gap: 12px; }
  .bento { grid-template-columns: 1fr; }
  .tile-2x1 { grid-column: span 1; }
  .rules__grid { grid-template-columns: 1fr; }
  .card, .bstep { padding: 20px; }
  .summary__card { padding: 22px; }
  .footer__inner { grid-template-columns: 1fr; gap: 24px; }
  .tabs { gap: 4px 20px; }
}

@media (max-width: 400px) {
  /* Самые узкие экраны: подпись над значением, компактная навигация */
  .photo-card .glass-tile { grid-template-columns: 1fr; row-gap: 2px; }
  .glass-tile__value { justify-self: start; white-space: nowrap; }
  .logo { width: 44px; height: 44px; }
  .topbar { gap: 8px; }
  .pill-nav a { padding: 0 11px; }
  .glass-chip { font-size: 14px; padding-right: 12px; }
  .socials .icon-btn { width: 36px; height: 36px; }
  .works__grid { gap: 8px; }
}

/* ============ Анимации ============ */
/* Класс .motion ставит js/motion-init.js до первой отрисовки; сдвиги задаёт GSAP, здесь только скрытие. */
.motion .hero__title .line__inner,
.motion .hero .eyebrow,
.motion .hero__lead,
.motion .hero-services,
.motion .reveal-chip,
.motion .draw-lashes { opacity: 0; }
/* opacity тоже 0: иначе круглые концы штрихов нулевой длины видны точками */
.motion .eye-window__outline, .motion .eye-window__lash { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }

:root {
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

.bar__fill { transition: transform .9s var(--ease-out); }
.success__circle, .success__tick { stroke-dasharray: 1; stroke-dashoffset: 0; }

/* Заголовки, разбитые на слова (JS): каждое слово выезжает из-под своей маски */
/* Карточки, въезжающие сбоку, не должны давать горизонтальную прокрутку.
   Не на body: его overflow браузер переносит на весь viewport. */
.page { overflow-x: clip; }

.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.word__inner { display: inline-block; will-change: transform; }

/* Фото первого экрана: запас по краям для параллакса при прокрутке */
.motion .photo-card__media { transform: scale(1.1); }

/* ---------- Карточки услуг: блик за курсором, стрелка, нажатие ---------- */
.svc-card { isolation: isolate; overflow: hidden; }
.svc-card::after {
  content: ''; position: absolute; left: 0; top: 0; z-index: -1; pointer-events: none;
  width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .6) 0%, rgba(255, 255, 255, 0) 62%);
  transform: translate(var(--mx, 50%), var(--my, 50%)); opacity: 0; transition: opacity .4s var(--ease);
}
.svc-card.g-dark::after { background: radial-gradient(circle, rgba(242, 210, 216, .22) 0%, rgba(242, 210, 216, 0) 62%); }
.svc-card:hover::after { opacity: 1; }
.svc-card:active { transform: translateY(-1px) scale(.985); transition-duration: .12s; }
.round-arrow svg { transition: transform .45s var(--spring); }
.svc-card:hover .round-arrow svg,
.hero-service:hover .round-arrow svg,
.link-arrow:hover .round-arrow svg { transform: rotate(45deg); }
.hero-service__icon { transition: transform .45s var(--spring); }
.hero-service:hover .hero-service__icon { transform: scale(1.08) rotate(-6deg); }
.hero-service:active { transform: scale(.985); }
.hero-service { transition: background-color .25s var(--ease), transform .2s var(--ease); }

/* ---------- Вкладки: подчёркивание переезжает к выбранной ---------- */
.tabs { position: relative; }
.tabs__indicator {
  position: absolute; left: 0; bottom: -2px; width: 1px; height: 2px; border-radius: 2px; background: var(--text);
  transform-origin: 0 50%; transform: translateX(var(--ix, 0)) scaleX(var(--iw, 0));
  transition: transform .55s var(--ease-out); pointer-events: none;
}
.tabs--js .tab[aria-selected="true"]::after { display: none; }

/* ---------- Выбор: чипы, даты, время, услуги в форме ---------- */
@keyframes pop {
  0% { transform: scale(.9); }
  60% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
.chip, .tab { transition-property: background-color, color, box-shadow, transform; }
.chip:active, .date-option:active span, .time-option:active span { transform: scale(.95); }
.chip[aria-pressed="true"],
.chip--radio:has(input:checked),
.date-option input:checked + span,
.time-option input:checked + span { animation: pop .42s var(--ease) both; }

.option-card { transition: box-shadow .2s, background-color .2s, transform .2s var(--ease); }
.option-card:active { transform: scale(.985); }
.option-card__check {
  flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line); transition: background-color .25s, box-shadow .25s;
}
.option-card__check svg { width: 14px; height: 14px; color: var(--white); transform: scale(0); transition: transform .4s var(--spring); }
.option-card:has(input:checked) .option-card__check { background: var(--text); box-shadow: none; }
.option-card:has(input:checked) .option-card__check svg { transform: scale(1); }

/* Подсветка услуги, выбранной кликом по карточке выше на странице */
@keyframes flash-ring {
  0% { opacity: .9; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.06, 1.25); }
}
.option-card.is-flash::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 2px var(--text); animation: flash-ring .9s var(--ease-out) 2;
}
.option-card.is-flash { background: #FBF3F5; }

.summary [data-summary] { display: inline-block; }

/* ---------- Линия шагов визита ---------- */
.steps { position: relative; }
.steps__line {
  position: absolute; left: 28px; right: 28px; top: -28px; height: 1px; background: var(--line);
}
.steps__line span {
  position: absolute; inset: 0; background: var(--text); transform-origin: 0 50%; transform: scaleX(1);
}
.step { position: relative; }
.step::before {
  content: ''; position: absolute; left: 28px; top: -32px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--text); box-shadow: 0 0 0 4px var(--surface);
}
.steps--js .step::before { transform: scale(0); transition: transform .5s var(--spring); }
.steps--js .step.is-lit::before { transform: scale(1); }
.visit .h2 { margin-bottom: 64px; }
@media (max-width: 720px) {
  .steps__line, .step::before { display: none; }
  .visit .h2 { margin-bottom: 32px; }
}

/* ---------- Работы: внутренний зум ---------- */
.work { isolation: isolate; }
.work img { transition: transform .9s var(--ease-out); }

/* ---------- Плавающая кнопка записи ---------- */
.float-cta {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 10px 0 24px;
  border-radius: 999px; background: var(--text); color: var(--white); font-weight: 500; white-space: nowrap;
  box-shadow: 0 18px 40px -16px rgba(19, 19, 21, .55);
  transform: translate(-50%, 140%); opacity: 0; pointer-events: none;
  transition: transform .6s var(--ease-out), opacity .4s var(--ease);
}
.float-cta.is-visible { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.float-cta__hint { color: #B9B9C2; font-weight: 400; }
.float-cta .round-arrow { background: var(--accent); }
.float-cta:hover .round-arrow svg { transform: rotate(45deg); }
.float-cta:active { transform: translate(-50%, 0) scale(.97); }
@media (max-width: 400px) { .float-cta__hint { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .svc-card:hover, .svc-card:active { transform: none; }
  .work:hover img { transform: none; }
  .svc-card::after { display: none; }
}
