﻿/* ====== HERO ====== */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: calc(var(--header-h) + 40px) !important;
  padding-bottom: 60px !important;
  background:
    radial-gradient(ellipse 80% 60% at 100% -10%, rgba(200, 220, 233, 0.55) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at -10% 100%, rgba(43, 123, 186, 0.06) 0%, transparent 55%);
}

.hero__inner {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero__badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
  position: relative;
  display: inline-block;
}
.hero__title em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.05em;
  height: 0.18em;
  background: rgba(var(--accent-rgb), 0.18);
  border-radius: 2px;
  z-index: -1;
}

.hero__subtitle {
  font-size: var(--fs-body-l);
  color: var(--ink-muted);
  max-width: 44ch;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.hero__microcopy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
}
.hero__check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero__proof {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero__avatars {
  display: inline-flex;
  flex-shrink: 0;
}
.hero__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ai-bg, var(--accent-3));
  border: 2px solid var(--bg);
  margin-left: -10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
}
.hero__avatar:first-child { margin-left: 0; }
.hero__avatar::before {
  content: attr(data-initials);
}
.hero__avatar:last-child {
  background: var(--accent);
  color: #fff;
}

.hero__proof-text {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.4;
  margin: 0;
}
.hero__proof-text strong {
  color: var(--ink);
  font-weight: 600;
}

/* Hero – две фотографии с наклоном внахлёст (Arbor-style) */
.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  isolation: isolate;
}

.hero__photo {
  position: absolute;
  margin: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--dur-slow) var(--ease-out);
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero__photo--main {
  top: 0;
  left: 8%;
  width: 76%;
  aspect-ratio: 4 / 5;
  transform: rotate(-3deg);
  z-index: 1;
}

.hero__photo--accent {
  bottom: 4%;
  right: 0;
  width: 48%;
  aspect-ratio: 1 / 1;
  transform: rotate(5deg);
  z-index: 2;
  border: 6px solid var(--bg);
}

.hero__visual:hover .hero__photo--main { transform: rotate(-1deg) translateY(-4px); }
.hero__visual:hover .hero__photo--accent { transform: rotate(3deg) translateY(-6px); }

@media (prefers-reduced-motion: reduce) {
  .hero__visual:hover .hero__photo--main,
  .hero__visual:hover .hero__photo--accent { transform: none; }
}


/* ====== COMFORT MENU – editorial-блок «Атмосфера» ====== */
/* Декорация фона – чистый radial-gradient на background самой секции.
   НЕ используем filter: blur() на отдельных элементах, потому что blur с
   большим радиусом тормозит весь scroll. Эффект «пятен» через градиент
   обходится GPU намного дешевле. */
.comfort {
  background:
    radial-gradient(ellipse 60% 50% at 8% 12%, rgba(var(--accent-rgb), 0.16) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 92% 88%, rgba(90, 160, 191, 0.15) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 30%, var(--bg-warm) 70%, var(--bg) 100%);
  max-width: none !important;
  width: 100%;
  margin: 0 !important;
  padding-left: var(--space-pad-x);
  padding-right: var(--space-pad-x);
  position: relative;
  overflow: hidden;
}
.comfort__inner {
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Старые blob'ы оставлены для совместимости, но visually скрыты.
   Удалю из HTML на следующем заходе. */
.comfort__blob { display: none; }

/* Заголовок секции с eyebrow-меткой */
.comfort__header {
  text-align: center;
  margin-bottom: 72px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.comfort__eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.comfort__title {
  font-size: var(--fs-h2);
  font-weight: 500;
  max-width: 18ch;
  letter-spacing: -0.03em;
}
.comfort__lead {
  font-size: var(--fs-body-l);
  color: var(--ink-muted);
  max-width: 56ch;
  line-height: 1.55;
}

/* Сетка карточек */
.comfort__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Карточка – без overflow:hidden и без box-shadow transitions (дорого для GPU).
   Лёгкий lift на translateY через transform – единственное что анимируется. */
.comfort__card {
  position: relative;
  padding: 36px 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  transition: transform 350ms var(--ease-out),
              border-color 250ms var(--ease-out);
  /* Статичная мягкая тень – не анимируется. Скачка hover нет, тень всегда видна */
  box-shadow: 0 6px 24px rgba(var(--ink-rgb), 0.04);
}
.comfort__card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--accent-rgb), 0.2);
}

/* Декоративная огромная цифра в углу карточки */
.comfort__num {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(var(--accent-rgb), 0.08);
  user-select: none;
  pointer-events: none;
}

/* Иконка – круг с custom SVG. Parallax через CSS-переменную --p,
   которую JS пишет на корень секции (один раз за кадр).
   --p в диапазоне [-1, 1]. translate3d форсирует GPU compositing. */
.comfort {
  --p: 0;
}
.comfort__icon {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-warm) 0%, var(--accent-3) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: transform 350ms var(--ease-out);
}
.comfort__icon svg {
  width: 44px;
  height: 44px;
}
/* Чередующееся направление parallax: 1 и 3 карточки вниз, 2 и 4 вверх */
.comfort__card:nth-child(odd) .comfort__icon {
  transform: translate3d(0, calc(var(--p, 0) * 14px), 0);
}
.comfort__card:nth-child(even) .comfort__icon {
  transform: translate3d(0, calc(var(--p, 0) * -14px), 0);
}
.comfort__card:hover .comfort__icon {
  transform: rotate(-6deg) scale(1.06);
}

.comfort__name {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.comfort__desc {
  position: relative;
  z-index: 1;
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* ====== WHY US (бывший манифест) ====== */
.why {
  text-align: center;
}
.why__title {
  font-size: var(--fs-h2);
  max-width: 22ch;
  margin: 0 auto 24px;
}
.why__lead {
  font-size: var(--fs-body-l);
  color: var(--ink-muted);
  max-width: 56ch;
  margin: 0 auto 64px;
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.why__card {
  padding: 24px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  position: relative;
}
.why__card:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: var(--line);
}

.why__num {
  font-family: var(--font-serif);
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.why__name {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
}
.why__desc {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* ====== SERVICES (вместо Approach) ====== */
.services__header {
  text-align: center;
  margin-bottom: 64px;
}
.services__title {
  font-size: var(--fs-h2);
  margin-bottom: 16px;
}
.services__lead {
  font-size: var(--fs-body-l);
  color: var(--ink-muted);
  max-width: 56ch;
  margin: 0 auto;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  min-height: 340px;
  display: flex;
  background:
    linear-gradient(150deg, #1A2D3F 0%, #14202B 50%, #2B5C8A 100%);
  color: #fff;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
  isolation: isolate;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(43, 123, 186, 0.4) 0%, transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(90, 160, 191, 0.18) 0%, transparent 60%);
  z-index: 0;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(20, 32, 43, 0.25);
}

.service-card__art {
  position: absolute;
  top: -8%;
  right: -12%;
  width: 70%;
  height: auto;
  color: #fff;
  opacity: 0.12;
  z-index: 1;
  transition: transform var(--dur-slow) var(--ease-out),
              opacity var(--dur-slow) var(--ease-out);
}
.service-card:hover .service-card__art {
  opacity: 0.2;
  transform: rotate(-4deg) scale(1.04);
}

.service-card__inner {
  position: relative;
  z-index: 2;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.service-card__name {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.15;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.02em;
}

.service-card__desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
  flex-grow: 1;
  max-width: 30ch;
}

.service-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  gap: 12px;
}
.service-card__price {
  font-family: var(--font-serif);
  font-size: 22px;
  color: #fff;
  white-space: nowrap;
}
.service-card__price small {
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin-right: 4px;
  font-weight: 400;
}
.service-card__link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.service-card__link span {
  transition: transform var(--dur-fast) var(--ease-out);
}
.service-card:hover .service-card__link {
  color: #fff;
}
.service-card:hover .service-card__link span {
  transform: translateX(4px);
}

.services__all {
  text-align: center;
  margin-top: 48px;
}

/* ====== TEAM ====== */
.team__header {
  text-align: center;
  margin-bottom: 64px;
}
.team__title {
  font-size: var(--fs-h2);
  margin-bottom: 16px;
}
.team__lead {
  font-size: var(--fs-body-l);
  color: var(--ink-muted);
  max-width: 56ch;
  margin: 0 auto;
}

.team__slider {
  position: relative;
  margin-bottom: 40px;
}

.team__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 4px 16px;
  margin: -8px -4px -16px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.team__track::-webkit-scrollbar { display: none; }

.team__track .team-card {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
  scroll-snap-align: start;
}

.team__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.team__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
  box-shadow: var(--shadow-sm);
}
.team__btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.team__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}
.team__btn:disabled:hover {
  background: var(--bg-card);
  border-color: var(--line);
  color: var(--ink);
}

.team__counter {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--ink);
  min-width: 80px;
  text-align: center;
  letter-spacing: 0.02em;
}

.team-card {
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-base) var(--ease-out);
}
.team-card:hover {
  transform: translateY(-6px);
}

.team-card__photo {
  aspect-ratio: 4 / 5;
  background: var(--bg-warm);
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
}
.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform var(--dur-slow) var(--ease-out);
}
.team-card:hover .team-card__photo img {
  transform: scale(1.04);
}
.team-card__body {
  padding: 24px 8px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.team-card__name {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.15;
  color: var(--ink);
}

.team-card__role {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
}

.team-card__detail {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.5;
  margin-top: 4px;
}

.team-card__detail-personal {
  font-style: normal;
  color: var(--ink-muted);
  font-size: 13px;
  margin-top: 4px;
}

/* ====== STORY (один кейс с before/after) ====== */
.story__header {
  text-align: center;
  margin-bottom: 48px;
}
.story__title {
  font-size: var(--fs-h2);
  margin-bottom: 16px;
}
.story__lead {
  font-size: var(--fs-body-l);
  color: var(--ink-muted);
  max-width: 56ch;
  margin: 0 auto;
}

/* Editorial story card (без before/after, только текст + цитата) */
.story-card {
  max-width: 920px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 48px);
  position: relative;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(var(--ink-rgb), 0.04);
}

.story-card__caption {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.story-card__heading {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 28px;
  max-width: 28ch;
}

.story-card__quote {
  position: relative;
  margin: 28px 0;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.story-card__quote-mark {
  width: 32px;
  height: auto;
  color: var(--accent);
  opacity: 0.7;
  margin-bottom: 12px;
}
.story-card__quote p {
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 12px;
  text-wrap: balance;
}
.story-card__quote cite {
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink-muted);
}

.story-card__body {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

.story-card__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--ink-muted);
  line-height: 1.6;
  font-size: 15px;
  max-width: 56ch;
}
.story-card__text p { margin: 0; }

.story-card__meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: start;
  margin: 0;
  padding: 20px;
  background: var(--bg-warm);
  border-radius: var(--r-lg);
}
.story-card__meta dt {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 2px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.story-card__meta dd {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}
.story-card__meta div + div {
  padding-top: 14px;
  border-top: 1px solid rgba(var(--ink-rgb), 0.08);
}

.ba {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-warm);
  overflow: hidden;
  border-radius: var(--r-md);
  user-select: none;
  cursor: ew-resize;
  --ba-pos: 50%;
}

.ba__before, .ba__after {
  position: absolute;
  inset: 0;
}
.ba__after { z-index: 1; }
.ba__before {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--ba-pos)) 0 0);
}
.ba__before img,
.ba__after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* Бейджи "до" / "после" */
.ba__label {
  position: absolute;
  top: 14px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(20, 23, 26, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  z-index: 4;
}
.ba__label--before { left: 14px; }
.ba__label--after { right: 14px; }

.ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-pos);
  width: 2px;
  background: #fff;
  z-index: 3;
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.3);
}
.ba__circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transform: translate(-50%, -50%);
  box-shadow: var(--shadow-lg);
}
.ba__circle--sm {
  width: 40px;
  height: 40px;
}

.ba__hint {
  text-align: center;
  font-size: 14px;
  color: var(--ink-muted);
  margin-top: 16px;
}

/* ====== WORKS / GALLERY ====== */
.works__header {
  text-align: center;
  margin-bottom: 64px;
}
.works__title {
  font-size: var(--fs-h2);
  margin-bottom: 16px;
}
.works__lead {
  font-size: var(--fs-body-l);
  color: var(--ink-muted);
  max-width: 56ch;
  margin: 0 auto;
}

.works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
  margin-bottom: 48px;
}

.work {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
}

.work__ba {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  background: var(--bg-warm);
}

.work__caption {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.35;
  color: var(--ink);
  text-align: center;
  padding: 0 8px;
}

.works__all {
  text-align: center;
}

/* Кнопки слайдера works – видны только на мобильном */
.works__controls {
  display: none;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin: 24px 0 32px;
}
.works__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
}
.works__btn:hover:not(:disabled) {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.works__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.works__counter {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--ink-muted);
  min-width: 60px;
  text-align: center;
}

/* ====== PAUSE – soft beige с фото пациента ====== */
.pause {
  background: var(--bg-warm);
  max-width: none !important;
  width: 100%;
  margin: 0 !important;
  /* padding-x перенесён на .pause__inner, чтобы контент совпадал с другими секциями */
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.pause__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-pad-x);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 64px;
  align-items: center;
}

.pause__photo {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.pause__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pause__quote {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 16px;
  text-align: left;
  text-wrap: balance;
}

.pause__author {
  font-size: 14px;
  color: var(--ink-muted);
  text-align: left;
}

/* ====== LAB ====== */
.lab__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.lab__photo {
  aspect-ratio: 4 / 5;
  background: var(--bg-warm);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.lab__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 800ms var(--ease-out);
}
.lab__photo:hover img {
  transform: scale(1.03);
}

.lab__title {
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 500;
  margin-bottom: 28px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lab__text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin-bottom: 32px;
  max-width: 52ch;
}
.lab__text p {
  margin: 0;
}

.lab__tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}
.lab__tools li {
  font-size: 15px;
  color: var(--ink);
  position: relative;
  padding-left: 28px;
}
.lab__tools li::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ====== VIDEO STORIES – YouTube-плейлист ====== */
.stories__header {
  text-align: center;
  margin-bottom: 56px;
}
.stories__title {
  font-size: var(--fs-h2);
  margin-bottom: 16px;
}
.stories__lead {
  font-size: var(--fs-body-l);
  color: var(--ink-muted);
  max-width: 64ch;
  margin: 0 auto;
}

.stories__player {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 20px;
  height: clamp(360px, 38vw, 480px);
  max-width: 1120px;
  margin: 0 auto 48px;
}

/* Featured плеер слева */
.stories__featured {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  height: 100%;
  display: block;
  text-decoration: none;
  color: inherit;
  isolation: isolate;
  background: #14202B;
  cursor: pointer;
}

/* Постер (статичный кадр) – фон под видео */
.stories__feat-poster {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 800ms var(--ease-out), opacity 250ms var(--ease-out);
}
.stories__featured:hover .stories__feat-poster {
  transform: scale(1.04);
}

/* Native <video> элемент. object-fit: contain – вертикальные видео целиком,
   с чёрными полосами по бокам, без обрезки и растяжения */
.stories__feat-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  opacity: 0;
  transition: opacity 250ms var(--ease-out);
  outline: none;
}
/* В fullscreen возвращаем нормальный fit от браузера */
.stories__feat-video:fullscreen { object-fit: contain; }
.stories__feat-video:-webkit-full-screen { object-fit: contain; }
.stories__feat-video::-webkit-media-controls-panel {
  background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
}

/* Когда видео играет – постер уезжает, видео всплывает, оверлей и тексты прячутся */
.stories__featured.is-playing .stories__feat-video {
  opacity: 1;
}
.stories__featured.is-playing .stories__feat-poster,
.stories__featured.is-playing .stories__feat-overlay,
.stories__featured.is-playing .stories__feat-content,
.stories__featured.is-playing .stories__feat-play {
  opacity: 0;
  pointer-events: none;
}

.stories__feat-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(20, 32, 43, 0.1) 0%, rgba(20, 32, 43, 0.55) 100%),
    radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(20, 32, 43, 0.3) 100%);
  pointer-events: none;
  transition: opacity 250ms var(--ease-out);
}

.stories__feat-content {
  position: absolute;
  z-index: 3;
  bottom: 32px;
  left: 32px;
  right: 32px;
  color: #fff;
  transition: opacity 250ms var(--ease-out);
}
.stories__feat-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border-radius: var(--r-pill);
  margin-bottom: 14px;
}
.stories__feat-name {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.1;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.stories__feat-topic {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.stories__feat-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 0 5px;
  border: none;
  cursor: pointer;
  transition: transform var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              opacity 250ms var(--ease-out);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}
.stories__featured:hover .stories__feat-play {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 16px 48px rgba(var(--accent-rgb), 0.6);
}

/* Playlist справа */
.stories__playlist {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  min-height: 0;
}

.stories__playlist-head {
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  background: #FFFFFF;
}
.stories__playlist-head h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 4px;
}
.stories__playlist-head p {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-muted);
}

.stories__list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.stories__list::-webkit-scrollbar { width: 6px; }
.stories__list::-webkit-scrollbar-track { background: transparent; }
.stories__list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.stories__item {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 22px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
  position: relative;
}
.stories__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background var(--dur-fast) var(--ease-out);
}
.stories__item:hover {
  background: rgba(var(--accent-rgb), 0.05);
}
.stories__item.is-active {
  background: rgba(var(--accent-rgb), 0.08);
}
.stories__item.is-active::before {
  background: var(--accent);
}

.stories__item-num {
  font-family: var(--font-mono, var(--font-sans));
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
}
.stories__item.is-active .stories__item-num {
  color: var(--accent);
  font-weight: 600;
}

.stories__item-name {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  line-height: 1.35;
  font-weight: 500;
}
.stories__item.is-active .stories__item-name { color: var(--accent); }

.stories__item-duration {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 500;
  white-space: nowrap;
}

/* ====== WORDS / TESTIMONIALS ====== */
.words__header {
  text-align: center;
  margin-bottom: 64px;
}
.words__title {
  font-size: var(--fs-h2);
  margin-bottom: 16px;
}
.words__lead {
  font-size: var(--fs-body-l);
  color: var(--ink-muted);
  max-width: 56ch;
  margin: 0 auto;
}

/* Slider – горизонтальная карусель из 15 карточек */
.words__slider {
  position: relative;
  margin-bottom: 40px;
}

.words__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 4px 16px;
  margin: -8px -4px -16px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.words__track::-webkit-scrollbar { display: none; }

.review-card {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
  scroll-snap-align: start;
  padding: 32px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--dur-base) var(--ease-out);
  min-height: 320px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.review-card:hover {
  transform: translateY(-2px);
}

.words__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.words__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
  box-shadow: var(--shadow-sm);
}
.words__btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.words__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}
.words__btn:disabled:hover {
  background: var(--bg-card);
  border-color: var(--line);
  color: var(--ink);
}

.words__counter {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--ink);
  min-width: 80px;
  text-align: center;
  letter-spacing: 0.02em;
}
.words__counter strong {
  color: var(--accent);
  font-weight: 400;
}

.review-card__stars {
  color: var(--accent);
  font-size: 18px;
  letter-spacing: 2px;
}

.review-card__text {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  flex-grow: 1;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.review-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #DEEBF3 0%, #2B7BBA 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 16px;
  flex-shrink: 0;
}
.review-card__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.review-card__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.review-card__meta {
  font-size: 12px;
  color: var(--ink-muted);
}

.words__ratings {
  display: flex;
  gap: 32px;
  justify-content: center;
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.words__ratings span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.words__ratings strong {
  color: var(--ink);
  font-weight: 600;
}

/* ====== MONEY ====== */
.money {
  text-align: center;
  position: relative;
}

.money__title {
  font-size: var(--fs-h2);
  margin-bottom: 24px;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}

.money__text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: none;
  margin: 0 auto;
}
/* Обёртка лида в money: расширяем под самое длинное предложение,
   чтобы «Если сумма большая…» не переносилось */
.money .lead-group {
  max-width: 90ch;
  margin-bottom: 40px;
}

.money__partners {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
  align-items: center;
}
.money__partner {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 16px;
  color: var(--ink-muted);
}
.money__partner-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 18px;
}

/* ====== FAQ ====== */
.faq__header {
  text-align: center;
  margin-bottom: 64px;
}
.faq__title {
  font-size: var(--fs-h2);
  margin-bottom: 16px;
}
.faq__lead {
  font-size: var(--fs-body-l);
  color: var(--ink-muted);
}

.faq__list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.3;
  color: var(--ink);
  transition: color var(--dur-fast) var(--ease-out);
}
.faq__item summary:hover { color: var(--accent); }
.faq__item summary::-webkit-details-marker { display: none; }

.faq__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--ink-muted);
  flex-shrink: 0;
  transition: border-color var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.faq__item[open] .faq__icon,
.faq__item summary:hover .faq__icon {
  border-color: var(--accent);
  color: var(--accent);
}
.faq__item[open] .faq__icon {
  transform: rotate(45deg);
}

.faq__content {
  padding: 0 8px 28px;
  color: var(--ink-muted);
  line-height: 1.65;
  max-width: 70ch;
}

.faq__all {
  text-align: center;
  margin-top: 32px;
}
.faq__all .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.faq__toggle-arrow {
  display: inline-block;
  font-size: 14px;
  transition: transform var(--dur-base) var(--ease-out);
}

/* Дополнительные вопросы – появляются при клике на «Показать все» */
.faq__item--more {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out);
}
.faq__item--more.is-visible {
  opacity: 1;
  transform: none;
}

/* ====== CONTACTS ====== */
.contacts__header {
  text-align: center;
  margin-bottom: 64px;
}
.contacts__title {
  font-size: var(--fs-h2);
}

.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: stretch;
}

.contacts__info {
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contacts__block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.contacts__block:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}
.contacts__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
}
.contacts__value {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--ink);
  line-height: 1.4;
}
.contacts__value a {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.contacts__value a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  opacity: 1;
}

.contacts__socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
}
.contacts__socials a {
  padding: 10px 18px;
  background: var(--bg-warm);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.contacts__socials a:hover {
  background: var(--accent);
  color: #fff;
  opacity: 1;
}

.contacts__map {
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  min-height: 480px;
}
.contacts__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  position: absolute;
  inset: 0;
}
/* ====== BOOKING ====== */
.booking {
  background: var(--bg-warm);
  max-width: none !important;
  width: 100%;
  margin: 0 !important;
  padding-left: var(--space-pad-x) !important;
  padding-right: var(--space-pad-x) !important;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.booking__inner {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.booking__title {
  font-size: clamp(36px, 5vw, 64px);
  margin-bottom: 16px;
  line-height: 1.05;
}

.booking__lead {
  font-size: var(--fs-body-l);
  color: var(--ink-muted);
  max-width: 50ch;
  margin: 0 auto;
}

.booking__blob {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: var(--accent-3);
  opacity: 0.3;
  filter: blur(70px);
  bottom: -200px;
  right: -200px;
  z-index: 0;
}

/* ====== FOOTER ====== */
.footer {
  background: var(--bg);
  color: var(--ink);
  padding: 80px 0 32px;
  border-top: 1px solid var(--line);
}

.footer__top {
  max-width: var(--container);
  margin: 0 auto 48px;
  padding-left: var(--space-pad-x);
  padding-right: var(--space-pad-x);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  align-items: start;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.footer__logo-img {
  display: block;
  height: 48px;
  width: auto;
  object-fit: contain;
  object-position: left center;
  align-self: flex-start;
  margin: 0 0 6px;
}

.footer__about {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.6;
  max-width: 32ch;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__col-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.footer__col a,
.footer__col p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.6;
  transition: color var(--dur-fast) var(--ease-out);
}
.footer__col a:hover {
  color: var(--accent);
  opacity: 1;
}

.footer__bottom {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px var(--space-pad-x) 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-muted);
  flex-wrap: wrap;
  gap: 16px;
}

.footer__legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
