/* ==========================================================================
   Эйфория — ногтевая студия в Кубинке
   Лендинг: первый экран-обложка + прокручиваемые секции.
   Главная цель страницы — перевести посетителя в онлайн-запись Masters.
   ========================================================================== */

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

:root {
  --ink: #241426;
  --ink-soft: #63506a;
  --plum: #7c0c48;
  --fuchsia: #c2187a;
  --fuchsia-deep: #9c0f5e;
  --pink-glow: #ff4dd2;

  --bg: #fff6fa;
  --bg-deep: #ffeef6;
  --card: #ffffff;
  --line: rgba(124, 12, 72, 0.12);
  --line-strong: rgba(124, 12, 72, 0.2);

  --shadow-sm: 0 2px 10px rgba(124, 12, 72, 0.07);
  --shadow-md: 0 10px 30px rgba(124, 12, 72, 0.1);
  --shadow-lg: 0 18px 50px rgba(124, 12, 72, 0.16);

  --wrap: 680px;
  --wrap-wide: 1060px;
  --radius: 18px;
  --radius-lg: 26px;

  /* запас снизу, чтобы липкая кнопка записи не перекрывала контент */
  --dock-h: 78px;
}

@media (min-width: 860px) {
  :root {
    --dock-h: 0px;
  }
}

/* SignPainter House Script — файлы см. fonts/README.txt */
@font-face {
  font-family: "SignPainter";
  src: url("fonts/SignPainter-HouseScript.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: #fff;
  color: var(--plum);
  font-weight: 700;
  border-radius: 0 0 12px 0;
}

.skip-link:focus {
  left: 0;
}

/* ==========================================================================
   Кнопки
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:active {
  transform: scale(0.975);
}

.btn:focus-visible {
  outline: 2px solid var(--fuchsia);
  outline-offset: 3px;
}

.btn__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  padding: 1px;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #d4198a 0%, #9c0f5e 100%);
  box-shadow: 0 8px 24px rgba(194, 24, 122, 0.34);
}

.btn--primary:hover {
  box-shadow: 0 10px 30px rgba(194, 24, 122, 0.45);
}

.btn--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.btn--soft {
  color: var(--plum);
  background: #fff;
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.btn--lg {
  padding: 16px 28px;
  font-size: 1rem;
}

.btn--sm {
  padding: 9px 16px;
  font-size: 0.8125rem;
}

/* ==========================================================================
   Компактная шапка (появляется после первого экрана)
   ========================================================================== */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 8px max(12px, env(safe-area-inset-left, 0px)) 8px max(12px, env(safe-area-inset-right, 0px));
  background: rgba(255, 246, 250, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  transform: translateY(-101%);
  transition: transform 0.28s ease;
}

.topbar.is-visible {
  transform: none;
}

.topbar__inner {
  max-width: var(--wrap-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar__brand {
  font-family: "SignPainter", "Yellowtail", cursive;
  font-size: 1.65rem;
  line-height: 1;
  color: var(--plum);
  text-decoration: none;
  flex-shrink: 0;
}

.topbar__nav {
  display: none;
  flex: 1 1 auto;
  gap: 22px;
}

.topbar__nav a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s;
}

.topbar__nav a:hover {
  color: var(--fuchsia);
}

.topbar__cta {
  margin-left: auto;
}

@media (min-width: 860px) {
  .topbar__nav {
    display: flex;
  }

  .topbar__cta {
    margin-left: 0;
  }
}

/* ==========================================================================
   Первый экран
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: max(10px, env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px))
    max(16px, env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px));
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("hero-bg.webp") center 28% / cover no-repeat;
}

/* Затемнение сверху — чтобы читались логотип и плитки */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(18, 6, 22, 0.36) 0%,
    rgba(18, 6, 22, 0.07) 20%,
    rgba(18, 6, 22, 0) 45%
  );
}

/* Растворение фото в фон страницы — стык первого экрана и контента */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 246, 250, 0) 0%,
    rgba(255, 246, 250, 0.55) 48%,
    rgba(255, 246, 250, 0.92) 82%,
    var(--bg) 100%
  );
}

.hero__top,
.hero__body {
  position: relative;
  z-index: 2;
}

.hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hero__wordmark {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-family: "SignPainter", "Yellowtail", "Brush Script MT", cursive;
  font-weight: normal;
  font-size: clamp(2.1rem, 10vw, 3.4rem);
  line-height: 1.05;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45), 0 0 40px rgba(255, 100, 180, 0.25);
}

.hero__body {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero__card {
  width: min(100%, 460px);
  padding: 20px 20px 22px;
  border-radius: var(--radius-lg);
  text-align: center;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 -6px 40px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.hero__kicker {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fuchsia);
}

.hero__tagline {
  margin: 0 0 18px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.5rem, 6.5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--plum);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.hero__actions .btn {
  width: 100%;
}

.hero__actions .btn--ghost {
  color: var(--plum);
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line-strong);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero__note {
  margin: 12px 0 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.hero__scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  color: var(--plum);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.hero__scroll-arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: nudge 1.9s ease-in-out infinite;
}

@keyframes nudge {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50% { transform: rotate(45deg) translate(3px, 3px); }
}

@media (min-width: 620px) {
  .hero__actions {
    flex-direction: row;
    justify-content: center;
  }

  .hero__actions .btn {
    width: auto;
  }
}

/* Плитки погоды и времени */
.nav-widget {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
}

.nav-widget__weather {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.nav-widget__wx-emoji {
  font-size: 1.05rem;
  line-height: 1;
  width: 1.15em;
  text-align: center;
}

.nav-widget__temp {
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.nav-widget__datetime {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  line-height: 1.15;
}

.nav-widget__clock {
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.nav-widget__date {
  font-size: 0.625rem;
  font-weight: 600;
  opacity: 0.92;
}

@media (max-width: 360px) {
  .nav-widget {
    padding: 5px 7px;
  }

  .nav-widget__wx-emoji {
    font-size: 0.9rem;
  }
}

/* ==========================================================================
   Страница ниже первого экрана
   ========================================================================== */

.page {
  position: relative;
  z-index: 1;
  /* держим декоративные размытые пятна внутри страницы */
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 45%, var(--bg) 100%);
  padding-bottom: var(--dock-h);
}

.page__glow {
  position: absolute;
  z-index: 0;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
}

.page__glow--a {
  top: 4%;
  right: -160px;
  background: radial-gradient(circle, rgba(255, 77, 210, 0.4), transparent 70%);
}

.page__glow--b {
  top: 52%;
  left: -180px;
  background: radial-gradient(circle, rgba(255, 176, 92, 0.34), transparent 70%);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 18px;
}

.section {
  position: relative;
  padding: 54px 0;
}

.section--works {
  padding-bottom: 46px;
}

.section__kicker {
  margin: 0 0 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fuchsia);
}

.section__title {
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.85rem, 7.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--plum);
}

.section__lead {
  margin: 0 0 26px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.section__cta {
  margin-top: 26px;
  text-align: center;
}

.section__cta .btn {
  width: 100%;
  max-width: 380px;
}

.section__cta-note {
  margin: 12px 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.section__cta-note a {
  color: var(--fuchsia);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(194, 24, 122, 0.35);
}

/* ==========================================================================
   Услуги
   ========================================================================== */

.price-group {
  margin-bottom: 16px;
  padding: 6px 16px 8px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.price-group__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 0 10px;
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--plum);
}

.price-group__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 11px;
  color: var(--fuchsia);
  background: linear-gradient(140deg, #ffe6f3 0%, #fff2e8 100%);
}

.price-group__icon svg {
  width: 22px;
  height: 22px;
}

.price-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.price-row__name {
  flex: 0 1 auto;
  font-size: 0.9375rem;
  line-height: 1.35;
  color: var(--ink);
}

/* Основная услуга группы — выделяем, с неё чаще всего начинают */
.price-row--lead .price-row__name {
  font-weight: 700;
}

.price-row--lead .price-row__cost {
  color: var(--fuchsia-deep);
}

/* Точечный лидер между названием и ценой, как в бумажном прайсе */
.price-row__fill {
  flex: 1 1 auto;
  min-width: 12px;
  height: 0;
  border-bottom: 1px dotted rgba(124, 12, 72, 0.28);
  transform: translateY(-3px);
}

.price-row__meta {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  text-align: right;
}

.price-row__cost {
  font-size: 0.9375rem;
  font-weight: 800;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--plum);
}

.price-row__time {
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink-soft);
}

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

.works-strip {
  margin-top: 4px;
  padding: 6px 0 14px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.works-strip::-webkit-scrollbar {
  display: none;
}

.works-strip:focus-visible {
  outline: 2px solid var(--fuchsia);
  outline-offset: -2px;
  border-radius: 12px;
}

.works-track {
  display: flex;
  gap: 12px;
  padding: 0 18px;
  width: max-content;
}

.works-card {
  flex: 0 0 auto;
  width: min(66vw, 250px);
  aspect-ratio: 4 / 5;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  background: #f6e7ee;
  box-shadow: var(--shadow-md);
  scroll-snap-align: center;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.works-card:active {
  transform: scale(0.985);
}

.works-card:focus-visible {
  outline: 3px solid var(--fuchsia);
  outline-offset: 2px;
}

.works-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.works-foot {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}

.btn__star {
  display: inline-flex;
  flex-shrink: 0;
  color: #f2a900;
}

.btn__star svg {
  width: 19px;
  height: 19px;
  display: block;
}

.works-error {
  margin: 0 18px;
  padding: 16px 18px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.works-error a {
  color: var(--fuchsia);
  font-weight: 700;
}

/* ==========================================================================
   Мастер и студия
   ========================================================================== */

.about {
  display: grid;
  gap: 22px;
}

/* Портрет мастера слева на всю высоту, два кадра студии справа стопкой.
   Пропорции подобраны так, что левая колонка выходит примерно 4:5. */
.about__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 10px;
}

.about__photo {
  margin: 0;
  width: 100%;
  /* height: auto обязателен — иначе атрибуты width/height у <img>
     перебивают aspect-ratio и картинка встаёт в свою пиксельную высоту */
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}

.about__photo--master {
  grid-column: 1;
  grid-row: 1 / 3;
  height: 100%;
  min-height: 0;
}

.about__photo--studio {
  grid-column: 2;
  aspect-ratio: 16 / 10;
}

.about__text p {
  margin: 0 0 12px;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.badges {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.badge {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--plum);
  background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 760px) {
  .about {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 34px;
  }

}

/* На широком экране узкая колонка делала бы фото студии почти нечитаемыми */
@media (min-width: 900px) {
  .section--about .wrap {
    max-width: 900px;
  }
}

/* ==========================================================================
   Как записаться
   ========================================================================== */

.section--how {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.72) 30%,
    rgba(255, 255, 255, 0.72) 70%,
    rgba(255, 255, 255, 0) 100%
  );
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 17px 18px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.step__num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 0.9375rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #d4198a 0%, #9c0f5e 100%);
  box-shadow: 0 4px 12px rgba(194, 24, 122, 0.32);
}

.step__title {
  margin: 3px 0 5px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.step__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ==========================================================================
   Контакты
   ========================================================================== */

.contacts {
  display: grid;
  gap: 14px;
}

.contacts__card {
  padding: 20px 20px 18px;
  border-radius: var(--radius-lg);
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.contacts__address {
  margin: 0 0 5px;
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
}

.contacts__hint {
  margin: 0 0 12px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* Мастер принимает под запись — фиксированного графика нет */
.contacts__appointment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  color: var(--plum);
  background: #fff6fa;
  border: 1px solid var(--line);
}

.contacts__appointment-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #35c07a;
  box-shadow: 0 0 0 3px rgba(53, 192, 122, 0.2);
}

.contacts__map {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--plum);
  text-decoration: none;
  background: #fff6fa;
  border: 1px solid var(--line-strong);
}

.contacts__map-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.contacts__phone {
  display: block;
  margin-top: 14px;
  font-size: 1.375rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  color: var(--fuchsia-deep);
  text-decoration: none;
}

.channels {
  display: grid;
  gap: 9px;
}

.channel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  border-radius: var(--radius);
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.channel:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.channel:active {
  transform: scale(0.99);
}

.channel:focus-visible {
  outline: 2px solid var(--fuchsia);
  outline-offset: 2px;
}

.channel--masters {
  border-color: rgba(194, 24, 122, 0.35);
  background: linear-gradient(135deg, #fff 0%, #fff2f8 100%);
  box-shadow: 0 6px 20px rgba(194, 24, 122, 0.14);
}

.channel__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
}

.channel__body {
  display: block;
  min-width: 0;
}

.channel__name {
  display: block;
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--ink);
}

.channel__desc {
  display: block;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.channel__tag {
  margin-left: auto;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 800;
  white-space: nowrap;
  color: #fff;
  background: linear-gradient(135deg, #d4198a 0%, #9c0f5e 100%);
}

/* ==========================================================================
   Подвал
   ========================================================================== */

.footer {
  padding: 34px 0 40px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.footer__brand {
  margin: 0 0 4px;
  font-family: "SignPainter", "Yellowtail", cursive;
  font-size: 2rem;
  line-height: 1;
  color: var(--plum);
}

.footer__line {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   Липкая кнопка записи (мобильные)
   ========================================================================== */

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px max(14px, env(safe-area-inset-right, 0px)) max(10px, env(safe-area-inset-bottom, 0px))
    max(14px, env(safe-area-inset-left, 0px));
  background: rgba(255, 246, 250, 0.9);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  transform: translateY(115%);
  transition: transform 0.3s ease;
}

.dock[hidden] {
  display: none;
}

.dock.is-visible {
  transform: none;
}

.dock__cta {
  flex: 1 1 auto;
  min-width: 0;
}

.dock__phone {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--plum);
  background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.dock__phone svg {
  width: 22px;
  height: 22px;
}

@media (min-width: 860px) {
  .dock {
    display: none;
  }
}

/* ==========================================================================
   Просмотр фото
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(16, 4, 20, 0.94);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open {
  opacity: 1;
}

.lightbox__img {
  max-width: 100%;
  max-height: 88svh;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.lightbox__close svg,
.lightbox__nav svg {
  width: 22px;
  height: 22px;
}

.lightbox__close {
  top: max(16px, env(safe-area-inset-top, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
}

.lightbox__nav--prev {
  left: 12px;
}

.lightbox__nav--next {
  right: 12px;
}

.lightbox__close:focus-visible,
.lightbox__nav:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

body.is-locked {
  overflow: hidden;
}

/* ==========================================================================
   Появление секций при прокрутке
   ========================================================================== */

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .hero__scroll-arrow {
    animation: none;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}
