﻿/* 75glowapp.ru ? product landing (??????? her75.co) + ?????? */

:root {
  --bg: #faf9f7;
  --bg-soft: #f3f1ed;
  --ink: #111111;
  --text: #222222;
  --muted: #5c5c5c;
  --faint: #8a8a8a;
  --line: #e6e4df;
  --white: #ffffff;
  --cta: #111111;
  --accent: #e8c4b8;
  --accent-2: #d4e0c0;
  --accent-3: #c9dff0;
  --pad: clamp(20px, 5vw, 56px);
  --max: 1120px;
  --font-sans: "Manrope", "Vela Sans", system-ui, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Soft blur = размытое превью той же фото + fade-in */
.soft-media,
.journal-card-media,
.journal-latest-media,
.journal-pop-thumb,
.glow-row-thumb,
.glow-reader-cover,
.blog-card-media,
.blog-tile-media,
.hero-banner,
.match-result-thumbs-row,
.glow-profile-avatar,
.glow-profile-task__photo,
.glow-profile-wall-card,
.glow-profile-friend-card__avatar,
.glow-profile-friend-page__avatar,
.glow-profile-pin-viewer__image {
  position: relative;
  overflow: hidden;
  background-color: transparent;
}

.soft-media.has-photo-ph,
.journal-card-media.has-photo-ph,
.journal-latest-media.has-photo-ph,
.journal-pop-thumb.has-photo-ph,
.glow-row-thumb.has-photo-ph,
.glow-reader-cover.has-photo-ph,
.blog-card-media.has-photo-ph,
.blog-tile-media.has-photo-ph,
.hero-banner.has-photo-ph,
.soft-media--fill.has-photo-ph,
.soft-media--cell.has-photo-ph,
.glow-profile-avatar.has-photo-ph,
.glow-profile-task__photo.has-photo-ph,
.glow-profile-wall-card.has-photo-ph,
.glow-profile-friend-card__avatar.has-photo-ph,
.glow-profile-friend-page__avatar.has-photo-ph,
.glow-profile-pin-viewer__image.has-photo-ph {
  background-color: transparent;
}

.has-photo-ph::before {
  content: "";
  position: absolute;
  inset: -28%;
  z-index: 0;
  background-image: var(--soft-ph, var(--photo, none));
  background-size: cover;
  background-position: center;
  filter: blur(28px) saturate(1.08);
  transform: scale(1.18);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.45s ease;
}

.hero-banner.has-photo-ph::before {
  background-position: center 32%;
}

.has-photo-ph.is-ready::before {
  opacity: 0;
}

img[data-soft-img] {
  position: relative;
  z-index: 1;
  opacity: 0;
  filter: blur(26px) saturate(1.05);
  transform: scale(1.1);
  transform-origin: center center;
  transition:
    opacity 0.35s ease,
    filter 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, filter, transform;
}

img[data-soft-img].is-waiting {
  opacity: 0;
}

/* фото уже в памяти: видно, но ещё размыто — как KHY unblur */
img[data-soft-img].is-revealing {
  opacity: 1;
  filter: blur(22px) saturate(1.05);
  transform: scale(1.08);
}

img[data-soft-img].is-loaded {
  opacity: 1;
  filter: blur(0) saturate(1);
  transform: scale(1);
}

.hero-banner > img[data-soft-img] {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ?????? ???? soft-ph ?????? ?? ?????????? */
img.soft-ph {
  display: none !important;
}

.soft-media--fill {
  display: block;
  width: 100%;
  flex-shrink: 0;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}

.match-option > .soft-media--fill {
  aspect-ratio: 1 / 1;
}

.soft-media--fill > img[data-soft-img] {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: auto;
}

.soft-media--cell {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.soft-media--cell > img[data-soft-img] {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: auto;
}

.blog-tile-media .soft-media--cell > img[data-soft-img],
.blog-tile-media .soft-media--fill > img[data-soft-img],
.glow-related .blog-tile-media .soft-media--cell > img[data-soft-img],
.glow-related .blog-tile-media .soft-media--fill > img[data-soft-img] {
  object-position: center 28%;
}

.journal-card-media--empty,
.journal-latest-media--empty {
  background-color: #e8e4df;
}

.journal-pop-thumb {
  position: relative;
  overflow: hidden;
}

.journal-pop-thumb > img[data-soft-img] {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ??? Ticker + header (??? irnbyclub.com/media) ??? */
.ticker {
  background: #000;
  color: #fff;
  overflow: hidden;
  height: 34px;
  display: flex;
  align-items: center;
  width: 100%;
}

.ticker-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  will-change: transform;
  animation: ticker-scroll 40s linear infinite;
}

.ticker-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  flex-shrink: 0;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  padding: 0 48px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes ticker-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }
}

/* ????: sticky; ???? ? ????????, ????? ? ?????????? (??? KHY) */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px 24px;
  background: #fff;
  border: 0;
  box-shadow: none;
  transform: translateY(0);
  transition: transform 0.32s ease;
  will-change: transform;
}

.nav.is-nav-hidden {
  transform: translateY(-110%);
}

.nav.is-stuck {
  border: 0;
  box-shadow: none;
}

.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-menu-btn {
  display: none;
  appearance: none;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-menu-btn__bars {
  display: block;
  width: 18px;
  height: 12px;
  border-top: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat;
}

.nav-menu-btn:hover {
  opacity: 0.55;
}

.nav-brand {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(26px, 2.8vw, 32px);
  letter-spacing: -0.03em;
  line-height: 1;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 32px);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-left: auto;
}

.nav-links a:hover,
.nav-links__item:hover {
  opacity: 0.55;
}

.nav-profile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-left: 2px;
  color: var(--ink);
  flex-shrink: 0;
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: 0;
  text-decoration: none;
}

.nav-profile:hover {
  opacity: 0.55;
}

.nav-profile svg {
  width: 24px;
  height: 24px;
}

.nav-profile__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.nav-drawer[hidden] {
  display: none !important;
}

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}

.nav-drawer.is-open {
  pointer-events: auto;
}

.nav-drawer__backdrop {
  appearance: none;
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.34);
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.28s ease;
}

.nav-drawer.is-open .nav-drawer__backdrop {
  opacity: 1;
}

.nav-drawer__panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(100%, 360px);
  background: #fff;
  box-shadow: 18px 0 40px rgba(0, 0, 0, 0.12);
  transform: translateX(-104%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  padding: 8px 22px 32px;
  overflow-y: auto;
}

.nav-drawer.is-open .nav-drawer__panel {
  transform: translateX(0);
}

.nav-drawer__chrome {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 0 -10px 24px;
  padding: 0 36px;
}

.nav-drawer__close {
  appearance: none;
  position: absolute;
  top: 2px;
  left: 2px;
  z-index: 2;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.nav-drawer__close:hover {
  opacity: 0.55;
}

.nav-drawer__brand {
  font-size: 28px;
  text-align: center;
}

.nav-drawer__links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-drawer__links a {
  display: block;
  padding: 14px 2px;
  border: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-drawer__links a:hover {
  opacity: 0.55;
}

html.is-nav-drawer-open,
html.is-nav-drawer-open body {
  overflow: hidden !important;
}

@media (max-width: 1199px) {
  .nav {
    padding: 12px 18px;
  }

  .nav-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
  }

  .nav-menu-btn {
    display: inline-flex;
    justify-self: start;
    grid-column: 1;
  }

  .nav-brand {
    justify-self: center;
    grid-column: 2;
    font-size: clamp(22px, 5vw, 28px);
  }

  .nav-links {
    justify-self: end;
    grid-column: 3;
    margin-left: 0;
    gap: 0;
  }

  .nav-links__item {
    display: none;
  }

  .nav-profile {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .nav {
    padding: 10px 14px;
  }

  .nav-menu-btn__label {
    display: none;
  }

  .nav-brand {
    font-size: 22px;
  }

  .nav-profile,
  .nav-profile__avatar {
    width: 34px;
    height: 34px;
  }

  .nav-profile svg {
    width: 22px;
    height: 22px;
  }

  .ticker {
    height: 30px;
  }

  .ticker-item {
    padding: 0 28px;
    font-size: 10px;
  }
}

html.is-auth-modal-open {
  overflow: hidden !important;
}

body.is-auth-modal-open {
  position: fixed !important;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden !important;
  padding-right: var(--auth-sbw, 0px) !important;
  box-sizing: border-box !important;
}

html.glow-modal-open,
html.glow-modal-open body {
  overflow: hidden !important;
}

.glow-auth-modal[hidden] {
  display: none !important;
}

.glow-account-menu[hidden] {
  display: none !important;
}

.glow-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.32s ease,
    visibility 0.32s ease;
}

.glow-auth-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.glow-auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.42);
  opacity: 0;
  transition: opacity 0.32s ease;
}

.glow-auth-modal.is-open .glow-auth-modal__backdrop {
  opacity: 1;
}

.glow-auth-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  background: #fff;
  border-radius: 12px;
  padding: 28px 28px 28px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
  text-align: center;
  opacity: 0;
  transform: translateY(12px) scale(0.985);
  transition:
    opacity 0.34s ease,
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.glow-auth-modal.is-open .glow-auth-modal__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.glow-auth-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #111;
  cursor: pointer;
  opacity: 0.55;
}

.glow-auth-modal__close:hover {
  opacity: 1;
}

.glow-auth-modal__brand {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(28px, 4.4vw, 34px);
  font-weight: 600;
  line-height: 1.15;
  color: #111;
}

.glow-auth-modal__title {
  display: none;
}

.glow-auth-modal__text {
  margin: 28px 0;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(17, 17, 17, 0.55);
}

.glow-auth-tg {
  position: relative;
  width: 100%;
}

.glow-auth-tg-btn {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  padding: 12px 18px;
}

.glow-auth-tg-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.glow-auth-tg-btn__icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
  border-radius: 0;
}

.glow-auth-tg-btn__icon svg {
  display: block;
}

.glow-auth-tg-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0.01;
}

.glow-auth-tg-hit[hidden] {
  display: none !important;
}

.glow-auth-modal__widget {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glow-auth-modal__status {
  margin: 14px 0 0;
  font-size: 14px;
  color: rgba(17, 17, 17, 0.7);
}

.glow-auth-modal__status.is-error {
  color: #9b2c2c;
}

.glow-auth-modal__note {
  display: none;
}

.glow-auth-modal__eyebrow {
  display: none;
}

.glow-account-menu {
  position: absolute;
  z-index: 1100;
  width: 200px;
}

.glow-account-menu__card {
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.glow-account-menu__name {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #111;
  word-break: break-word;
}

.glow-account-menu__link,
.glow-account-menu__logout {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #111;
  cursor: pointer;
  text-decoration: none;
}

.glow-account-menu__link:hover,
.glow-account-menu__logout:hover {
  opacity: 0.55;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  background: var(--cta);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 8px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid rgba(17, 17, 17, 0.2);
}

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

/* ??? Hero: ??????? ??? irnbyclub.com ???
   ? ???: max-width:1920px; max-height:973px; min-height:389px; padding-bottom:51.7%
*/
.hero {
  background: #fff;
  padding: 0 25px clamp(40px, 6vh, 64px);
  overflow: hidden;
}

.hero-banner {
  position: relative;
  max-width: 1920px;
  margin: 0 auto;
  width: 100%;
  /* 51.7% ?? ?????? = ??????, ??? ?? IRNBY */
  aspect-ratio: 100 / 51.7;
  max-height: 973px;
  min-height: 389px;
  overflow: hidden;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-banner > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  display: block;
  z-index: 0;
}

.hero-banner-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.28) 40%,
    rgba(0, 0, 0, 0.45) 100%
  );
  pointer-events: none;
}

.hero-center {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 24px;
  text-align: center;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: normal;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.16;
  letter-spacing: -0.03em;
  margin: 0 auto 18px;
  max-width: none;
  color: #fff;
}

.hero-title em {
  font-style: italic;
  font-weight: 500;
}

.hero-count {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  min-width: 4.2ch;
}

.hero-lead {
  font-size: clamp(15px, 1.7vw, 18px);
  color: rgba(255, 255, 255, 0.88);
  max-width: 46ch;
  margin: 0 auto 28px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.btn--on-photo {
  background: #fff;
  color: #111 !important;
}

.btn--on-photo:hover {
  opacity: 0.92;
}

@media (max-width: 700px) {
  .hero {
    padding: 0 12px 40px;
  }

  .hero-banner {
    aspect-ratio: 3 / 4;
    max-height: none;
    min-height: 480px;
  }

  .hero-center {
    padding: 24px 16px;
  }
}

/* ??? Stats ??? */
.stats {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-value {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--faint);
  margin: 0;
}

@media (max-width: 560px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ??? Sections ??? */
.section {
  padding: clamp(64px, 10vh, 100px) 0;
}

.section--soft {
  background: var(--bg-soft);
}

.kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  max-width: 16ch;
}

.section-lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 48ch;
  margin: 0 0 32px;
}

/* About split — title above, 2 centered columns */
.section.glow-about-split {
  background: #fff;
  padding-top: clamp(12px, 2vw, 20px);
  padding-bottom: clamp(48px, 8vw, 88px);
}

.glow-about-split__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: var(--pad);
  padding-right: var(--pad);
  box-sizing: border-box;
  text-align: left;
}

.glow-about-split__brand {
  margin: 0 0 clamp(28px, 4vw, 40px);
  padding: 0;
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #111;
  white-space: nowrap;
  text-align: left;
  align-self: flex-start;
}

.glow-about-split__cols {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(56px, 9vw, 112px);
  width: min(100%, 1280px);
  margin: 0 auto;
  text-align: left;
}

.glow-about-split__cols::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(17, 17, 17, 0.12);
  transform: translateX(-50%);
  pointer-events: none;
}

.glow-about-split__col {
  min-width: 0;
  padding: 0;
}

.glow-about-split__col-title {
  margin: 0 0 14px;
  font-family: var(--font-sans);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 750;
  line-height: 1.2;
  color: #111;
}

.glow-about-split__col-text {
  margin: 0;
  max-width: none;
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 500;
  line-height: 1.5;
  color: #555;
}

@media (max-width: 900px) {
  .glow-about-split__brand {
    white-space: normal;
  }

  .glow-about-split__cols {
    grid-template-columns: 1fr;
    width: 100%;
    column-gap: 0;
    row-gap: 28px;
  }

  .glow-about-split__cols::before {
    display: none;
  }

  .glow-about-split__col + .glow-about-split__col {
    border-top: 1px solid rgba(17, 17, 17, 0.12);
    padding-top: 28px;
  }
}

/* Legacy vision (unused) */
.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.vision-copy p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 1.1em;
}

.vision-copy p:last-child {
  margin-bottom: 0;
}

.vision-media {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e8e6e1;
}

.vision-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 800px) {
  .vision-grid {
    grid-template-columns: 1fr;
  }
}

/* Community / reviews */
.section.glow-reviews {
  background: #f2f2f2;
  padding: clamp(56px, 8vh, 88px) 0;
  overflow: hidden;
}

.glow-reviews__inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: var(--pad);
  padding-right: var(--pad);
  box-sizing: border-box;
  text-align: center;
}

.glow-reviews__title {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(36px, 5.2vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #111;
  max-width: none;
  text-align: center;
}

.glow-reviews__lead {
  margin: 0 auto 52px;
  max-width: 48ch;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

.glow-reviews__rail {
  --quote-w: 350px;
  --quote-gap: 28px;
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  padding: 18px 0 20px;
  box-sizing: border-box;
  touch-action: pan-y;
  cursor: grab;
}

.glow-reviews__rail.is-dragging {
  cursor: grabbing;
}

.glow-reviews__track {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--quote-gap);
  width: max-content;
  position: relative;
  will-change: transform;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.glow-reviews__track.is-jumping {
  transition: none;
}

.quote {
  --tilt: 0deg;
  --quote-blur: 0px;
  display: flex;
  flex-direction: column;
  flex: 0 0 var(--quote-w);
  width: var(--quote-w);
  min-height: 450px;
  margin: 0;
  background: #fff;
  border-radius: 20px;
  padding: 28px 26px 22px;
  border: 0;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  transform: rotate(var(--tilt));
  filter: blur(var(--quote-blur));
  transition: filter 0.45s ease;
}

.quote__title {
  margin: 0 0 14px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: #111;
}

.quote__body {
  flex: 1;
  margin: 0;
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: #222;
}

.quote__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 4px;
}

.quote__name,
.quote__challenge {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.2;
  color: #111;
}

.quote__challenge {
  text-align: right;
}

.glow-reviews__nav {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.glow-reviews__arrow {
  appearance: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.glow-reviews__arrow:hover {
  background: #111;
  color: #fff;
}

@media (max-width: 560px) {
  .glow-reviews__rail {
    --quote-w: min(350px, calc(100vw - 56px));
  }

  .quote {
    min-height: 400px;
  }
}

/* Challenges ? ????? ???, ???? ?????? ?????, ????, ?????????????? ?????? */
.challenges-module {
  background: #fff;
  padding: clamp(28px, 4vw, 44px) 0 clamp(36px, 5vw, 56px);
  overflow: hidden;
}

.choose-kicker {
  text-align: center;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #000;
  margin: 0 0 44px;
  padding: 0 24px;
}

.challenge-rail {
  width: 100%;
  overflow: hidden;
}

@media (max-width: 900px) {
  .challenge-rail {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .challenge-rail::-webkit-scrollbar {
    display: none;
  }

  .challenge-track {
    animation: none;
  }

  .challenge-rail.is-dragging,
  .challenge-rail.is-dragging .challenge-card {
    cursor: grabbing;
  }
}

.challenge-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: challenge-marquee 55s linear infinite;
}

.challenge-deck {
  display: flex;
  flex-wrap: nowrap;
  gap: 28px;
  align-items: stretch;
  padding: 24px 28px 44px 0;
}

.challenge-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 350px;
  width: 350px;
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px 22px;
  min-height: 450px;
  border: 0;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.challenge-card-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: normal;
  font-size: clamp(28px, 2.4vw, 36px);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: #111;
  line-height: 1.15;
  text-align: center;
}

.challenge-card-mode {
  font-size: 16px;
  color: var(--faint);
  margin: 0 0 24px;
  font-weight: 500;
  text-align: center;
}

.challenge-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.challenge-card-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16px;
  line-height: 1.4;
  color: #333;
  padding: 7px 0;
  border: 0;
}

.challenge-card-list span {
  font-weight: 700;
  color: #111;
  min-width: 18px;
  flex-shrink: 0;
}

.challenge-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid #eee;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
}

@keyframes challenge-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .challenge-track {
    animation: none;
  }
}

@media (max-width: 700px) {
  .challenge-card {
    flex-basis: 300px;
    width: 300px;
    min-height: 400px;
  }

  .challenge-deck {
    gap: 20px;
    padding: 18px 20px 36px 0;
  }
}
/* Journal teaser rows (legacy) */
.feed {
  max-width: 720px;
}

.row {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.row:hover {
  opacity: 0.92;
}

.row-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.row-title {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 6px;
}

.row-excerpt {
  font-size: 14px;
  color: #777;
  margin: 0;
}

.row-thumb {
  width: 96px;
  flex: 0 0 96px;
  border-radius: 6px;
  overflow: hidden;
  min-height: 72px;
  background-color: transparent;
}

.row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 72px;
}

.row-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
  color: var(--faint);
}

/* Journal module — 3 колонки как Substack / theglwguide */
.journal-module {
  background: #fff;
  padding: clamp(12px, 2vw, 20px) 0 clamp(56px, 8vh, 88px);
}

.journal-wrap {
  /* шире, чтобы сетка и заголовок не сидели узко по центру */
  width: min(1520px, calc(100% - 64px));
  margin: 0 auto;
}

.journal-heading {
  margin: 0 0 clamp(36px, 4.5vw, 52px);
  font-family: var(--font-sans);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #111;
  text-align: left;
}

.journal-empty {
  margin: 0;
  padding: 28px 8px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.journal-card-media--empty,
.journal-latest-media--empty {
  background-color: #d7d2cb;
}

.journal-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(360px, 2.1fr) minmax(240px, 1fr);
  align-items: stretch;
}

.journal-col--left {
  padding-right: clamp(18px, 2.2vw, 28px);
  border-right: 1px solid #ececec;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.journal-col--center {
  padding: 0 clamp(20px, 2.6vw, 36px);
}

.journal-col--right {
  padding-left: clamp(18px, 2.2vw, 28px);
  border-left: 1px solid #ececec;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.journal-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.journal-card:hover .journal-card-title,
.journal-latest:hover .journal-latest-title,
.journal-pop:hover h4 {
  opacity: 0.72;
}

.journal-card-media {
  border-radius: 2px;
  overflow: hidden;
  background-color: transparent;
  aspect-ratio: 16 / 10;
  margin: 0 0 14px;
}

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

.journal-card-media--collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  aspect-ratio: 1.35 / 1;
}

.journal-card-media--collage img {
  height: 100%;
  min-height: 0;
}

.journal-card-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: #111;
  transition: opacity 0.2s ease;
}

.journal-card-excerpt {
  font-size: 14px;
  line-height: 1.45;
  color: #666;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.journal-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.journal-meta {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a9a9a;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.journal-pin {
  display: inline-flex;
  flex-shrink: 0;
  color: #9a9a9a;
}

.journal-pin svg {
  display: block;
}

.journal-lock {
  display: inline-flex;
  flex-shrink: 0;
  color: #9a9a9a;
}

.journal-lock svg {
  display: block;
  width: 17px;
  height: 17px;
}

.glow-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.journal-meta--center {
  text-align: center;
}

.journal-latest {
  display: block;
  color: inherit;
  text-decoration: none;
  text-align: center;
}

.journal-latest-media {
  border-radius: 2px;
  overflow: hidden;
  background-color: transparent;
  aspect-ratio: 16 / 10;
  margin: 0 0 36px;
}

.journal-latest-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.journal-latest-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: #111;
  transition: opacity 0.2s ease;
}

.journal-latest-excerpt {
  font-size: 15px;
  line-height: 1.5;
  color: #666;
  margin: 0 auto 16px;
  max-width: min(52ch, 92%);
}

.journal-meta--center {
  text-align: center;
}

.journal-popular-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 32px;
  flex-shrink: 0;
}

.journal-popular-head h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #111;
}

.journal-popular-head a {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #9a9a9a;
  text-decoration: none;
}

.journal-popular-head a:hover {
  color: #111;
}

.journal-pop {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 0;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
}

.journal-popular-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
  min-height: 0;
}

.journal-pop:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.journal-pop:first-child {
  padding-top: 0;
}

.journal-pop-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.journal-pop-text {
  min-width: 0;
  flex: 1;
}

.journal-pop h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: #111;
  transition: opacity 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.journal-pop-excerpt {
  font-size: 13px;
  line-height: 1.4;
  color: #777;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.journal-pop-thumb {
  width: 72px;
  flex: 0 0 72px;
  align-self: stretch;
  min-height: 72px;
  border-radius: 6px;
  overflow: hidden;
  background-color: transparent;
}

.journal-pop-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.journal-pop-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.journal-pop-likes {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #888;
}

.journal-pop-heart {
  display: block;
  flex-shrink: 0;
  color: #888;
}

@media (max-width: 980px) {
  .journal-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 0;
  }

  .journal-col--center {
    grid-column: 1 / -1;
    order: -1;
    padding: 0 0 8px;
    border-bottom: 1px solid #ececec;
    margin-bottom: 8px;
  }

  .journal-col--left {
    border-right: 1px solid #ececec;
    padding-right: 20px;
  }

  .journal-col--right {
    border-left: 0;
    padding-left: 20px;
  }
}

@media (max-width: 700px) {
  .journal-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .journal-col--left,
  .journal-col--right,
  .journal-col--center {
    border: 0;
    padding: 0;
    margin: 0;
  }

  .journal-col--center {
    padding-bottom: 8px;
    border-bottom: 1px solid #ececec;
  }

  .journal-col--left {
    gap: 28px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ececec;
  }

  .journal-latest-excerpt {
    max-width: none;
  }
}

/* FAQ ? ??????? ????????? ??? ?? her75.co */
.faq-module {
  background: #fff;
  padding: clamp(64px, 10vh, 100px) 0;
}

.faq-module-inner {
  width: min(720px, calc(100% - 48px));
  margin: 0 auto;
  text-align: center;
}

.faq-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 36px;
  color: #111;
}

.faq-card {
  background: #fff;
  border-radius: 20px;
  padding: 8px 28px 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.faq {
  max-width: none;
}

.faq-item {
  border-bottom: 1px solid #eee;
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 22px 0;
  font: inherit;
  font-weight: 600;
  font-size: 17px;
  color: #111;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: #bbb;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel-inner {
  overflow: hidden;
  min-height: 0;
}

.faq-panel-inner p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  padding-right: 32px;
}

/* Match / ?????? ????????? */
.match-module {
  background: #fff;
  padding: 0 0 clamp(20px, 3vw, 32px);
}

.match-panel {
  display: grid;
  grid-template-columns: 1.35fr 0.7fr;
  align-items: stretch;
  width: 100%;
  max-width: none;
  margin: 0;
  background: #f2f2f2;
  /* ??? irnby: ????????????? ??????, ???? ????????, ?? ??????????? ???? */
  height: clamp(300px, 38vw, 400px);
  overflow: hidden;
}

.match-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 48px) clamp(28px, 5vw, 64px);
  gap: 16px;
  min-height: 0;
}

.match-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0;
  color: #111;
}

.match-lead {
  margin: 0;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  color: #444;
  max-width: 40ch;
}

.match-copy .btn {
  align-self: flex-start;
  margin-top: 8px;
  border: 0;
  cursor: pointer;
}

.match-media {
  position: relative;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.match-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 800px) {
  .match-panel {
    grid-template-columns: 1fr;
    height: auto;
  }

  .match-media {
    position: relative;
    height: 220px;
    order: -1;
  }
}

/* Match modal quiz */
.match-modal[hidden] {
  display: none !important;
}

.match-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.32s ease,
    visibility 0.32s ease;
}

.match-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.match-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  transition: opacity 0.32s ease;
}

.match-modal.is-open .match-modal-backdrop {
  opacity: 1;
}

.match-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  overflow: hidden;
  background: #fff;
  border-radius: 20px;
  padding: 22px 28px 26px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: translateY(12px) scale(0.985);
  transition:
    opacity 0.34s ease,
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.match-modal.is-open .match-modal-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.match-modal-x {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 2px 6px;
}

.match-progress {
  height: 3px;
  background: #eee;
  border-radius: 99px;
  width: calc(100% - 56px);
  margin: 8px auto 0;
  overflow: hidden;
}

.match-progress-fill {
  display: block;
  height: 100%;
  width: 25%;
  background: #111;
  border-radius: 99px;
  transition: width 0.25s ease;
}

/* ??? ???? ? ????? ?????? ? ?????? = ????? ??????? ??????? */
.match-steps {
  display: grid;
  grid-template-columns: 1fr;
}

.match-step {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.match-step.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

/* ?????? ???????????? ? ?????? ????? ?????? ? ????????? */
.match-step-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 72px;
  padding: 12px 0 16px;
}

.match-step-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(24px, 4vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
  color: #111;
  text-align: center;
  display: block;
}

.match-step-title em {
  font-style: italic;
  font-weight: 600;
}

.match-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 0 auto 44px;
  align-items: stretch;
  flex: 0 0 auto;
  width: 82%;
}

.match-grid--regime {
  grid-template-columns: 1fr;
  gap: 12px;
  width: 82%;
}

.match-option {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1.5px solid transparent;
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
  background: #fff;
  cursor: pointer;
  text-align: center;
  font: inherit;
  color: #111;
  box-shadow: 0 0 0 1px #e8e8e8;
  transform: rotate(0deg);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s ease,
    border-color 0.22s ease;
  will-change: transform;
}

.match-option:nth-child(odd) {
  transform-origin: 40% 60%;
}

.match-option:nth-child(even) {
  transform-origin: 60% 40%;
}

.match-option img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
  flex-shrink: 0;
}

/* ???????; ?? ??????? soft-media-??????? ???????? */
.match-option > span:not(.soft-media):not(.soft-media--fill) {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: calc(1.3em * 2 + 24px);
  padding: 12px 12px 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: #111;
  box-sizing: border-box;
  text-align: center;
  text-wrap: pretty;
}

.match-option > .soft-media--fill {
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  min-height: 0;
  display: block;
}

.match-option--text {
  padding: 16px 18px;
  gap: 4px;
  min-height: 74px;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.match-option--text strong {
  font-size: 16px;
  font-weight: 700;
}

.match-option--text > span {
  display: block;
  min-height: 0;
  padding: 0;
  flex: none;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  line-height: 1.35;
  text-align: center;
}

/* ??? ? ????: ?????? ?????? + ??????? (??? scale ? ????? ?????????) */
.match-option.is-selected {
  border-color: #111;
  box-shadow:
    0 0 0 1.5px #111,
    0 8px 18px rgba(0, 0, 0, 0.12);
  z-index: 1;
}

.match-option:nth-child(4n + 1).is-selected,
.match-option:nth-child(4n + 2).is-selected {
  transform: rotate(0.7deg);
}

.match-option:nth-child(4n + 3).is-selected,
.match-option:nth-child(4n + 4).is-selected {
  transform: rotate(-0.7deg);
}

.match-grid--regime .match-option:nth-child(1).is-selected {
  transform: rotate(-0.6deg);
}

.match-grid--regime .match-option:nth-child(2).is-selected {
  transform: rotate(0.55deg);
}

.match-grid--regime .match-option:nth-child(3).is-selected {
  transform: rotate(-0.7deg);
}

.match-grid--regime .match-option:nth-child(4).is-selected {
  transform: rotate(0.65deg);
}

.match-continue {
  width: 100%;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  margin-top: auto;
}

.match-continue:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.match-result-lead {
  text-align: center;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 16px;
}

.match-step-banner--result {
  flex: 0 0 auto;
  min-height: 0;
  padding: 8px 0 0;
}

/* Результат: контент по центру, кнопка и «Пройти ещё раз» внизу */
.match-step[data-match-step="3"] .match-step-banner--result {
  margin-top: auto;
}

.match-step[data-match-step="3"] .match-result-card {
  margin-bottom: auto;
}

.match-step[data-match-step="3"] .match-continue {
  margin-top: 0;
}

.match-result-card {
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin: 0;
  text-align: center;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.match-result-name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(28px, 4.2vw, 34px);
  margin: 0;
  letter-spacing: -0.02em;
  color: #111;
  line-height: 1.15;
}

.match-result-thumbs {
  position: relative;
  margin: 24px 0 10px;
  padding-top: 12px;
}

.match-result-thumbs-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  border-radius: 16px;
  overflow: hidden;
  background-color: transparent;
  aspect-ratio: 2.9 / 1;
}

.match-result-thumbs-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 0;
}

.match-result-joined {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -10%);
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  padding: 11px 22px;
  border-radius: 999px;
  box-shadow: 0 2px 28px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  z-index: 1;
}

.match-result-mode {
  margin: 0 0 8px !important;
  color: var(--faint) !important;
  font-size: 14px !important;
}

.match-result-text {
  margin: 0 !important;
  color: #555 !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}

.match-result-list {
  list-style: none;
  margin: 0 auto;
  padding: 0 4px;
  text-align: left;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: fit-content;
  max-width: 100%;
}

.match-result-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: flex-start;
  font-size: 14px;
  line-height: 1.3;
  color: #333;
  padding: 4px 0;
  text-align: left;
}

.match-result-list li span {
  font-weight: 700;
  color: #111;
  min-width: 16px;
  flex-shrink: 0;
}

.match-restart {
  display: block;
  width: 100%;
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: var(--faint);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.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;
}

html.match-modal-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

body.match-modal-open {
  overflow: hidden !important;
  overscroll-behavior: none;
  padding-right: var(--match-sbw, 0px) !important;
  box-sizing: border-box !important;
}

/* Final CTA / App download with phone */
.final {
  text-align: center;
  padding: clamp(72px, 12vh, 120px) var(--pad);
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%, rgba(232, 196, 184, 0.45), transparent 60%),
    radial-gradient(ellipse 50% 70% at 80% 40%, rgba(201, 223, 240, 0.4), transparent 55%),
    var(--bg-soft);
}

.final h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}

.final p {
  color: var(--muted);
  margin: 0 auto 28px;
  max-width: 36ch;
  font-size: 17px;
}

.app-download {
  /* ?????? ??????: ??????? ???? ? ?????????? ????? */
  padding: clamp(24px, 3.5vh, 40px) 0 0;
  background: #f3f3f3;
  overflow: hidden;
}

.app-download-inner {
  max-width: min(1280px, 100%);
  margin: 0 auto;
  padding-right: var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(16px, 3vw, 48px);
  align-items: end;
}

.app-phone {
  position: relative;
  width: min(54vw, 560px);
  margin: 0;
  margin-left: clamp(-72px, -6.5vw, -28px);
  /* ??????????? ?????? ? ???????? ??? ???????? */
  margin-bottom: calc(min(54vw, 560px) * -0.38);
  aspect-ratio: 506 / 900;
  justify-self: start;
}

.app-phone-screen {
  position: absolute;
  /* ?????????? ??????? phone-frame.png (506?900) */
  left: 15.81%;
  top: 8.56%;
  right: 16.01%;
  bottom: 8.44%;
  border-radius: 7.2%;
  overflow: hidden;
  background: #111;
  z-index: 1;
}

.app-phone-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.app-phone-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
}

.app-download-copy {
  text-align: left;
  align-self: center;
  padding-bottom: clamp(28px, 4vh, 56px);
}

.app-download-copy h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: #111;
  max-width: none;
}

.app-download-copy p {
  margin: 0 0 28px;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.45;
  color: #555;
  max-width: none;
}

.app-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn--outline-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 1.5px solid #111;
  border-radius: 4px;
  background: #fff;
  color: #111 !important;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn--outline-dark:hover {
  background: #111;
  color: #fff !important;
}

@media (max-width: 800px) {
  .app-download {
    padding: clamp(32px, 5vh, 48px) var(--pad) 0;
  }

  .app-download-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-right: 0;
    text-align: center;
  }

  .app-phone {
    width: min(320px, 72vw);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: calc(min(320px, 72vw) * -0.28);
    justify-self: center;
  }

  .app-download-copy {
    text-align: center;
    align-self: stretch;
    padding-bottom: 4px;
    order: -1;
  }

  .app-download-copy h2 {
    max-width: 18ch;
    margin-left: auto;
    margin-right: auto;
  }

  .app-download-copy p {
    max-width: 18ch;
    margin-left: auto;
    margin-right: auto;
  }

  .app-download-actions {
    justify-content: center;
  }
}

/* Footer ? ?????????/?????? ??? KHY */
.site-footer {
  background: #fff;
  color: #2a2a2a;
  border-top: 0;
}

.site-footer-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  /* ??????? ??? ? .nav: 24px / 18px */
  padding: clamp(28px, 4vh, 40px) 24px clamp(20px, 3vh, 28px);
}

.site-footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: clamp(24px, 4vw, 56px);
}

.site-footer-follow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  min-height: 100%;
  height: 100%;
  align-self: stretch;
}

.site-footer-brand {
  display: inline-block;
  margin-bottom: 0;
}

.site-footer-social-wrap {
  margin-top: 0;
  padding-top: 0;
}

.site-footer-socials {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 26px;
}

.site-footer-social-item {
  display: inline-flex;
  align-items: flex-start;
  gap: 3px;
}

.site-footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #111;
  transition: opacity 0.15s ease;
}

.site-footer-social:hover {
  opacity: 0.55;
}

.site-footer-social svg,
.site-footer-social img {
  width: 40px;
  height: 40px;
  display: block;
  object-fit: contain;
}

.site-footer-social-star {
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 1;
  font-weight: 500;
  color: #111;
  margin-top: 2px;
}

.site-footer-meta-note {
  margin: 12px 0 0;
  max-width: 38ch;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--faint);
}

.site-footer-docs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.site-footer-docs a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3a3a3a;
  transition: color 0.15s ease;
}

.site-footer-docs a:hover {
  color: var(--ink);
}

.site-footer-right {
  width: 100%;
  max-width: none;
  margin-left: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  align-self: stretch;
  min-width: 0;
  min-height: 100%;
  height: 100%;
}

.site-footer-news-block {
  display: grid;
  margin-bottom: clamp(28px, 4vh, 40px);
}

.site-footer-news,
.site-footer-news-success {
  grid-area: 1 / 1;
}

.site-footer-news {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: clamp(20px, 3vw, 36px);
  row-gap: 8px;
  align-items: center;
  margin-bottom: 0;
}

.site-footer-news-title {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.15;
  white-space: nowrap;
  align-self: center;
}

.site-footer-news-row {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  margin: 0;
  align-self: center;
}

.site-footer-news-sub {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.3;
  max-width: 34ch;
  align-self: center;
}

.site-footer-news-agree {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  align-self: center;
}

.site-footer-news-success {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-footer-news-block.is-done .site-footer-news {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-footer-news-block.is-done .site-footer-news-success {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-footer-news-success-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.2;
}

.site-footer-news-success-sub {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--muted);
}

.site-footer-news-success-email {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: 0.25em;
}

.site-footer-news-input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  border-bottom: 1px solid rgba(17, 17, 17, 0.28);
  border-radius: 0;
  background: transparent;
  padding: 10px 2px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  outline: none;
}

.site-footer-news-input::placeholder {
  color: #9a9a9a;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.site-footer-news-input:focus {
  border-bottom-color: var(--ink);
}

.site-footer-news-agree input {
  margin: 0;
  accent-color: var(--ink);
  flex-shrink: 0;
}

.site-footer-news-agree-link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer-news-agree-link:hover {
  opacity: 0.7;
}

.site-footer-news-submit {
  flex: 0 0 auto;
  border: none;
  border-radius: 8px;
  background: #111;
  color: #fff;
  padding: 11px 16px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.site-footer-news-submit:hover {
  opacity: 0.82;
}

.site-footer-links {
  display: grid;
  grid-template-columns: auto auto;
  gap: 20px clamp(36px, 5vw, 72px);
  justify-content: start;
}

.site-footer-col {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.site-footer-col a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3a3a3a;
  transition: color 0.15s ease;
}

.site-footer-col a:hover {
  color: var(--ink);
}

.site-footer-copy {
  margin: auto 0 0;
  /* ????? ?? ??????, ??? ????? ?????? ???????? ? ????????? */
  padding-top: clamp(28px, 4vh, 40px);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
}

/* Tablet / phone footer — KHY-like stacking; desktop (>=1200) unchanged above */
@media (max-width: 1199px) {
  .site-footer-inner {
    padding: 36px 22px 28px;
  }

  .site-footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 36px;
    align-items: start;
  }

  .site-footer-right {
    display: contents;
  }

  .site-footer-news-block {
    grid-column: 1 / -1;
    margin-bottom: 8px;
  }

  .site-footer-follow {
    grid-column: 1;
    min-height: 0;
    height: auto;
    justify-content: flex-start;
    gap: 22px;
  }

  .site-footer-links {
    grid-column: 2;
    width: 100%;
    align-self: start;
  }

  .site-footer-copy {
    grid-column: 2;
    margin-top: 0;
    padding-top: 8px;
  }

  .site-footer-news {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    row-gap: 12px;
  }

  .site-footer-news-title,
  .site-footer-news-row,
  .site-footer-news-sub,
  .site-footer-news-agree {
    grid-column: 1;
    grid-row: auto;
  }

  .site-footer-news-title {
    white-space: normal;
  }

  .site-footer-news-row {
    width: 100%;
  }

  .site-footer-news-sub {
    max-width: none;
  }
}

@media (max-width: 700px) {
  .site-footer-inner {
    padding: 32px 18px 24px;
  }

  .site-footer-top {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .site-footer-follow,
  .site-footer-right {
    display: contents;
  }

  .site-footer-brand {
    order: 1;
  }

  .site-footer-social-wrap {
    order: 2;
  }

  .site-footer-news-block {
    order: 3;
    margin-bottom: 0;
  }

  .site-footer-links {
    order: 4;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 20px 28px;
  }

  .site-footer-docs {
    order: 5;
    flex-direction: column;
    gap: 12px;
  }

  .site-footer-copy {
    order: 6;
    margin-top: 0;
    padding-top: 4px;
  }

  .site-footer-socials {
    gap: 8px 20px;
  }

  .site-footer-social {
    width: 44px;
    height: 44px;
  }

  .site-footer-social svg,
  .site-footer-social img {
    width: 34px;
    height: 34px;
  }

  .site-footer-meta-note {
    max-width: none;
    font-size: 12px;
  }

  .site-footer-news-row {
    flex-wrap: wrap;
  }

  .site-footer-news-input {
    flex: 1 1 100%;
    min-height: 44px;
  }

  .site-footer-news-submit {
    width: 100%;
    min-height: 46px;
  }

  .site-footer-col a,
  .site-footer-docs a {
    display: inline-block;
    padding: 4px 0;
    min-height: 32px;
  }
}

@media (max-width: 430px) {
  .site-footer-links {
    gap: 18px 20px;
  }

  .site-footer-col a {
    font-size: 13px;
  }
}

/* ??? Journal / article pages ??? */
.page-bg {
  background: #fff;
  min-height: 100vh;
}

.glow-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}

.glow-brand {
  font-weight: 700;
  font-size: 18px;
}

.glow-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--muted);
}

.glow-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  background: var(--ink);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
}

.glow-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--pad) 8px;
}

.glow-section-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(32px, 5vw, 48px);
  margin: 0 0 10px;
}

.glow-section-desc {
  color: var(--muted);
  margin: 0 0 20px;
}

.glow-tabs {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px var(--pad);
  max-width: var(--max);
  margin: 0 auto;
  scrollbar-width: none;
}

.glow-tab {
  flex: 0 0 auto;
  font-weight: 700;
  font-size: clamp(22px, 4vw, 28px);
  color: rgba(17, 17, 17, 0.35);
}

.glow-tab.is-active,
.glow-tab:hover {
  color: var(--ink);
}

.glow-feed {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px var(--pad) 64px;
}

/* ??? ??????: ??????? ??? ? ????-???? + ??????? ????? (IRNBY) ??? */
.blog-page {
  max-width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0;
}

.blog-tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 16px;
  overflow-x: auto;
  padding: 36px var(--pad) 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
}

.blog-tabs::-webkit-scrollbar {
  display: none;
}

.blog-tab {
  flex: 0 0 auto;
  padding: 0 0 2px;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(22px, 3.2vw, 28px);
  line-height: 1.2;
  color: rgba(17, 17, 17, 0.42);
  transition: color 0.2s ease;
}

.blog-tab.is-active,
.blog-tab:hover {
  color: #111;
}

.blog-feed {
  padding: 20px var(--pad) 72px;
}

.blog-mosaic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 20px;
  align-items: start;
}

/* ???????? ???????? ????? ????? */
@keyframes glow-skel-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.blog-skel-bone {
  background: linear-gradient(
    90deg,
    #eceae6 0%,
    #f6f5f2 45%,
    #eceae6 90%
  );
  background-size: 200% 100%;
  animation: glow-skel-shimmer 1.15s ease-in-out infinite;
  border-radius: 4px;
}

.blog-skel .blog-tile-media {
  background: #eceae6;
  margin-bottom: 14px;
}

.blog-skel .blog-skel-title {
  height: 18px;
  width: 88%;
  margin: 0 0 10px;
}

.blog-skel .blog-skel-title--short {
  width: 62%;
  margin-bottom: 12px;
}

.blog-skel .blog-skel-line {
  height: 12px;
  width: 100%;
  margin: 0 0 8px;
}

.blog-skel .blog-skel-line--mid {
  width: 78%;
}

.blog-skel .blog-skel-meta {
  height: 10px;
  width: 42%;
  margin-top: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .blog-skel-bone {
    animation: none;
  }
}

.blog-tile {
  display: block;
  color: inherit;
  text-decoration: none;
  min-width: 0;
  width: 100%;
}

.blog-tile--wide {
  grid-column: span 2;
}

.blog-tile:hover .blog-tile-title {
  opacity: 0.72;
}

.blog-tile-main {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.blog-tile-copy {
  min-width: 0;
  order: 2;
}

.blog-tile-media {
  order: 1;
  border-radius: 2px;
  overflow: hidden;
  margin: 0 0 14px;
  background-color: transparent;
  aspect-ratio: 1 / 1;
}

.blog-tile--wide .blog-tile-media {
  /* ~2 cols wide vs 1-col square → same height as .blog-tile-media 1/1 */
  aspect-ratio: 2 / 1;
}

.blog-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}

.blog-tile-media--empty {
  background-color: #e8e4df;
  min-height: 160px;
}

.blog-tile-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-transform: none;
  margin: 0 0 8px;
  color: #111;
  transition: opacity 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-tile-excerpt {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
  color: #666;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-tile-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a9a9a;
}

.blog-tile-meta-left,
.blog-tile-meta-right {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-width: 0;
}

.blog-tile-meta-right {
  justify-content: flex-end;
  flex-shrink: 0;
}

.blog-tile-likes {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #888;
  cursor: pointer;
  line-height: 1;
}

.blog-tile-likes.is-liked,
.glow-like.is-liked {
  color: #e11d48;
}

.blog-tile-likes [data-like-count],
.glow-like [data-like-count] {
  font-variant-numeric: tabular-nums;
}

.blog-tile-date {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.025rem;
  text-transform: none;
  color: #999;
}

.blog-tile-badge {
  flex-shrink: 0;
  color: #9a9a9a;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid #9a9a9a;
  border-radius: 0.25rem;
  padding: 0.125rem 0.375rem;
  line-height: 1;
  font-size: 0.625rem;
}

@media (max-width: 800px) {
  .blog-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 14px;
  }

  .blog-tile--wide {
    grid-column: span 2;
  }

  .blog-tile-media,
  .blog-tile--wide .blog-tile-media {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 700px) {
  .blog-page {
    max-width: 100%;
  }

  .blog-tabs {
    padding: 1.25rem 0.75rem 0.25rem;
    gap: 0.875rem;
  }

  .blog-tab {
    font-size: 1.375rem;
  }

  .blog-feed {
    padding: 0 0 4rem;
  }

  .blog-mosaic {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .blog-tile,
  .blog-tile--wide {
    grid-column: span 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 6rem;
    grid-template-rows: auto auto;
    column-gap: 0.75rem;
    row-gap: 0.625rem;
    padding: 1.125rem 0.75rem;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  }

  .blog-mosaic > .blog-tile:last-child,
  .blog-mosaic > .blog-tile--wide:last-child {
    border-bottom: none;
  }

  .blog-tile-main {
    display: contents;
  }

  .blog-tile-copy {
    grid-column: 1;
    grid-row: 1;
    order: 0;
    min-width: 0;
  }

  /* Thumb matches text height; image must not inflate the row. */
  .blog-tile-media,
  .blog-tile--wide .blog-tile-media {
    grid-column: 2;
    grid-row: 1;
    order: 0;
    position: relative;
    width: 6rem;
    min-height: 0;
    height: auto;
    max-height: 100%;
    aspect-ratio: unset;
    align-self: stretch;
    margin: 0;
    border-radius: 0.375rem;
    overflow: hidden;
  }

  .blog-tile-media--empty {
    min-height: 4.5rem;
  }

  .blog-tile-media > img,
  .blog-tile-media > .soft-media,
  .blog-tile-media > .soft-media--cell {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }

  .blog-tile-media img {
    object-fit: cover;
  }

  .blog-tile-title {
    font-size: 1.125rem;
    line-height: 1.45rem;
    margin: 0 0 0.375rem;
    -webkit-line-clamp: 2;
  }

  .blog-tile-excerpt {
    font-size: 0.8125rem;
    line-height: 1.15rem;
    color: #777;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .blog-tile-meta {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
    letter-spacing: 0;
    text-transform: none;
    font-size: 0.6875rem;
    font-weight: 500;
  }

  .blog-tile-meta-right {
    width: 6rem;
    justify-content: flex-end;
  }

  .blog-tile-date {
    font-size: 0.6875rem;
  }

  .blog-tile-badge {
    display: none;
  }
}

.glow-row {
  display: flex;
  align-items: stretch;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.glow-row:last-of-type {
  border-bottom: none;
}

.glow-row-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.glow-row-title {
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 8px;
}

.glow-row-excerpt {
  font-size: 15px;
  line-height: 1.45;
  color: #777;
  margin: 0;
}

.glow-row-thumb {
  width: min(42%, 280px);
  flex: 0 0 min(42%, 280px);
  align-self: stretch;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  min-height: 0;
  background-color: transparent;
}

.glow-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.glow-row-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  font-size: 14px;
  color: var(--faint);
}

@media (max-width: 600px) {
  .glow-row {
    gap: 12px;
    padding: 18px 0;
  }

  .glow-row-thumb {
    width: 96px;
    flex: 0 0 96px;
    aspect-ratio: auto;
    align-self: stretch;
    min-height: 72px;
  }

  .glow-row-title {
    font-size: 20px;
    line-height: 26px;
    margin: 0 0 6px;
  }

  .glow-row-excerpt {
    font-size: 14px;
    line-height: 20px;
  }

  .glow-row-meta {
    padding-top: 10px;
    font-size: 12px;
  }
}

.glow-reader {
  max-width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 32px var(--pad) 48px;
}

@media (max-width: 700px) {
  .glow-reader {
    max-width: 100%;
    padding: 18px 12px 40px;
  }

  .glow-back {
    width: 34px;
    height: 34px;
    font-size: 22px;
    margin-bottom: 18px;
  }

  .glow-reader-title {
    font-size: 28px;
    line-height: 34px;
    margin: 0 0 12px;
  }

  .glow-reader-excerpt {
    font-size: 17px;
    line-height: 24px;
    margin: 0 0 14px;
  }

  .glow-reader-meta {
    margin-bottom: 22px;
    font-size: 13px;
  }

  .glow-reader-cover {
    border-radius: 8px;
    margin: 0 0 18px;
  }

  .glow-reader-body {
    font-size: 17px;
    line-height: 26px;
  }

  .glow-reader-body img,
  .glow-reader-figure img {
    border-radius: 8px;
  }
}

/* ???????? ???????? ?????? */
.glow-reader-skel .blog-skel-bone {
  border-radius: 6px;
}

.glow-reader-skel-title {
  height: 28px;
  width: min(92%, 520px);
  margin: 0 0 14px;
}

.glow-reader-skel-title--2 {
  height: 28px;
  width: min(70%, 400px);
  margin: 0 0 18px;
}

.glow-reader-skel-excerpt {
  height: 16px;
  width: min(100%, 640px);
  margin: 0 0 10px;
}

.glow-reader-skel-excerpt--2 {
  height: 16px;
  width: min(78%, 500px);
  margin: 0 0 18px;
}

.glow-reader-skel-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 28px;
}

.glow-reader-skel-meta .blog-skel-bone {
  height: 12px;
  width: 72px;
}

.glow-reader-skel-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  margin: 0 0 28px;
}

.glow-reader-skel-line {
  height: 14px;
  width: 100%;
  margin: 0 0 12px;
}

.glow-reader-skel-line--short {
  width: 62%;
  margin-bottom: 22px;
}

.glow-reader-skel-related {
  margin-top: 40px;
}

.glow-reader-skel-related-title {
  height: 18px;
  width: 220px;
  margin: 0 0 20px;
}

.glow-reader-skel-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.glow-reader-skel-row-text {
  flex: 1;
  min-width: 0;
}

.glow-reader-skel-thumb {
  width: 88px;
  flex: 0 0 88px;
  aspect-ratio: 1;
  border-radius: 8px;
}

.glow-back {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 28px;
}

.glow-reader-title {
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 12px;
}

.glow-reader-excerpt {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 14px;
}

.glow-reader-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
  font-size: 15px;
  color: var(--faint);
}

.glow-like {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: inherit;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
  line-height: 1;
}

.glow-reader-cover {
  border-radius: 10px;
  overflow: hidden;
  margin: 0 0 22px;
  aspect-ratio: 16 / 10;
  background-color: transparent;
}

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

.glow-reader-body {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
}

.glow-reader-body p {
  margin: 0 0 1.1em;
}

.glow-reader-body h2 {
  font-size: 22px;
  margin: 1.6em 0 0.6em;
}

.glow-reader-body h3 {
  font-size: 19px;
  margin: 1.4em 0 0.5em;
}

.glow-reader-body ul {
  margin: 0 0 1.1em;
  padding-left: 1.25em;
}

.glow-reader-body li {
  margin: 0 0 0.35em;
}

.glow-md-mark {
  padding: 0.05em 0.28em;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.glow-reader-quote {
  margin: 0 0 1.25em;
  padding: 4px 0 4px 16px;
  border-left: 3px solid #111;
  font-style: italic;
  color: #333;
}

.glow-reader-callout {
  margin: 0 0 1.25em;
  padding: 14px 16px;
  border-radius: 8px;
  background: #dbeafe;
  color: #111;
}

.glow-reader-note {
  margin: 1.4em 0;
  padding: 14px 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-style: italic;
  color: #555;
}

.glow-reader-figure {
  margin: 0 0 1.25em;
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
}

.glow-reader-figure img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.glow-reader-figure--standard {
  aspect-ratio: 16 / 10;
}

.glow-reader-figure--compact {
  /* same as admin / mini-app */
  aspect-ratio: 21 / 6;
}

.glow-reader-figure--square {
  aspect-ratio: 1 / 1;
}

.glow-reader-figure--tall {
  aspect-ratio: 3 / 4;
}

.glow-reader-figure--center {
  width: 100%;
  max-width: min(100%, 360px);
  margin-left: auto;
  margin-right: auto;
}

.glow-reader-figure--center.glow-reader-figure--tall {
  max-width: min(100%, 320px);
}

.glow-reader-figure--center.glow-reader-figure--standard {
  max-width: min(100%, 520px);
}

.glow-reader-figure--center.glow-reader-figure--compact {
  max-width: min(100%, 640px);
}

.glow-reader-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 1.25em;
}

.glow-reader-row-item {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.glow-reader-row-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.glow-paywall {
  position: relative;
  isolation: isolate;
  margin: 28px 0 8px;
  padding: clamp(40px, 6vw, 56px) clamp(20px, 4vw, 40px);
  color: #111;
  text-align: center;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 18px 48px rgba(17, 17, 17, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  overflow: hidden;
  background: #e8e8e8;
}

/* Soft photo under the glass */
.glow-paywall::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: 0;
  background:
    url("/paywall-bg.jpg") center / cover no-repeat;
  filter: blur(22px) saturate(1.05);
  transform: scale(1.08);
  pointer-events: none;
}

/* Frosted glass + darker gray wash + light grain */
.glow-paywall::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      165deg,
      rgba(120, 120, 120, 0.28) 0%,
      rgba(70, 70, 70, 0.34) 48%,
      rgba(40, 40, 40, 0.4) 100%
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.28) 0%,
      rgba(255, 255, 255, 0.1) 42%,
      rgba(255, 255, 255, 0.06) 100%
    ),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.7 0 0 0 0 0.7 0 0 0 0 0.7 0 0 0 0.14 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-blend-mode: normal, soft-light, soft-light;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.glow-paywall-title,
.glow-paywall-btn,
.glow-paywall-note {
  position: relative;
  z-index: 2;
}

.glow-paywall-title {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.glow-paywall-btn {
  display: inline-flex;
  background: #fff !important;
  color: #111 !important;
  border: 0;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.22);
}

.glow-paywall-btn:hover {
  opacity: 0.92;
}

.glow-paywall-note {
  margin: 0 auto 22px;
  max-width: 34rem;
  text-align: center;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.glow-related {
  --related-thumb: 6rem;
  margin: 0;
  padding: 0;
}

.glow-related-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(30px, 3.2vw, 38px);
  margin: 40px 0 8px;
}

/* Related: list tiles; thumb grows on tablet/desktop (~1/3 row). */
.glow-related .blog-mosaic {
  grid-template-columns: 1fr;
  gap: 0;
}

.glow-related .blog-tile,
.glow-related .blog-tile--wide {
  grid-column: span 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--related-thumb);
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  row-gap: 0.625rem;
  padding: 1.125rem 0.75rem;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.glow-related .blog-tile:last-child {
  border-bottom: none;
}

.glow-related .blog-tile-main {
  display: contents;
}

.glow-related .blog-tile-copy {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.glow-related .blog-tile-media,
.glow-related .blog-tile--wide .blog-tile-media {
  grid-column: 2;
  grid-row: 1 / -1;
  position: relative;
  width: 100%;
  min-height: 0;
  height: auto;
  aspect-ratio: unset;
  align-self: stretch;
  margin: 0;
  border-radius: 0.375rem;
  overflow: hidden;
}

.glow-related .blog-tile-media > img,
.glow-related .blog-tile-media > .soft-media,
.glow-related .blog-tile-media > .soft-media--cell {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

.glow-related .blog-tile-media img {
  object-fit: cover;
  /* Prefer faces / subject over dead sky/floor in wide-ish thumbs */
  object-position: center 28%;
}

.glow-related .blog-tile-title {
  font-size: 1.125rem;
  line-height: 1.45rem;
  margin: 0 0 0.375rem;
  -webkit-line-clamp: 2;
}

.glow-related .blog-tile-excerpt {
  font-size: 0.8125rem;
  line-height: 1.15rem;
  color: #777;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.glow-related .blog-tile-meta {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.6875rem;
  font-weight: 500;
  align-self: end;
}

.glow-related .blog-tile-meta-right {
  width: auto;
  justify-content: flex-end;
}

.glow-related .blog-tile-date {
  font-size: 0.6875rem;
}

.glow-related .blog-tile-badge {
  display: none;
}

@media (min-width: 701px) {
  .glow-related {
    --related-thumb: min(32%, 17rem);
  }

  .glow-related .blog-tile,
  .glow-related .blog-tile--wide {
    column-gap: 1.5rem;
    row-gap: 0.85rem;
    padding: 1.5rem 0;
  }

  .glow-related .blog-tile-media,
  .glow-related .blog-tile--wide .blog-tile-media {
    border-radius: 0.5rem;
  }

  .glow-related .blog-tile-title {
    font-size: 1.375rem;
    line-height: 1.7rem;
    margin: 0 0 0.5rem;
  }

  .glow-related .blog-tile-excerpt {
    font-size: 1rem;
    line-height: 1.45rem;
  }

  .glow-related .blog-tile-meta,
  .glow-related .blog-tile-date,
  .glow-related .blog-tile-likes {
    font-size: 0.875rem;
  }
}

@media (min-width: 1100px) {
  .glow-related {
    --related-thumb: min(34%, 20rem);
  }

  .glow-related .blog-tile,
  .glow-related .blog-tile--wide {
    column-gap: 1.75rem;
    row-gap: 0.95rem;
    padding: 1.65rem 0;
  }

  .glow-related .blog-tile-title {
    font-size: 1.5rem;
    line-height: 1.85rem;
  }

  .glow-related .blog-tile-excerpt {
    font-size: 1.0625rem;
    line-height: 1.55rem;
  }

  .glow-related .blog-tile-meta,
  .glow-related .blog-tile-date,
  .glow-related .blog-tile-likes {
    font-size: 0.9375rem;
  }
}

@media (max-width: 700px) {
  .glow-related-title {
    font-size: 26px;
    margin: 28px 0 4px;
  }
}

.glow-footer {
  border-top: 1px solid var(--line);
  padding: 32px var(--pad);
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--faint);
}


/* Profile /profile */
.glow-profile {
  width: calc(100% - 80px);
  margin: 0 auto;
  padding: 28px 0 72px;
  min-height: 70vh;
  position: relative;
}

.glow-profile-guest {
  display: flex;
  justify-content: center;
  padding: 48px 0;
}

.glow-profile-guest[hidden],
.glow-profile-app[hidden],
.glow-profile-panel[hidden],
.glow-profile-save-spin[hidden],
.glow-profile-confetti[hidden],
.glow-profile-challenge-picker[hidden] {
  display: none !important;
}

.glow-profile-guest__card {
  width: min(100%, 420px);
  text-align: center;
  background: #fff;
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.glow-profile-guest__brand {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
}

.glow-profile-guest__title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
}

.glow-profile-guest__text {
  margin: 0 0 22px;
  color: rgba(17, 17, 17, 0.55);
  font-size: 15px;
  line-height: 1.45;
}

.glow-profile-app {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

.glow-profile-top {
  position: relative;
  z-index: 6;
  isolation: isolate;
  margin: 0 0 10px;
}

.glow-profile-save-spin {
  position: absolute;
  top: 8px;
  right: 0;
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(17, 17, 17, 0.18);
  border-top-color: rgba(17, 17, 17, 0.7);
  border-radius: 50%;
  animation: glow-profile-spin 0.7s linear infinite;
  pointer-events: none;
}

@keyframes glow-profile-spin {
  to {
    transform: rotate(360deg);
  }
}

.glow-profile-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 14px;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 6px 0 2px;
  margin: 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
}

.glow-profile-nav::-webkit-scrollbar {
  display: none;
}

.glow-profile-nav__btn {
  appearance: none;
  flex: 0 0 auto;
  border: 0;
  background: none;
  text-align: left;
  padding: 0 0 2px;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.7vw, 20px);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.2;
  color: rgba(17, 17, 17, 0.42);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.glow-profile-nav__btn:hover,
.glow-profile-nav__btn.is-active {
  background: none;
  color: #111;
}

.glow-profile-app.is-sub-locked .glow-profile-nav {
  display: none;
}

.glow-profile-main {
  min-width: 0;
}

.glow-profile-panel {
  width: min(53.75rem, 100%);
  margin-right: auto;
  margin-left: auto;
}

.glow-profile-panel[data-profile-panel="settings"] {
  width: min(30rem, 100%);
}

.glow-profile-panel.is-challenge-reveal {
  animation: glow-challenge-list-reveal 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes glow-challenge-list-reveal {
  from {
    opacity: 0.55;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.glow-profile-panel[data-profile-panel="feed"],
.glow-profile-panel[data-profile-panel="photos"] {
  width: min(920px, 100%);
}

.glow-profile-panel[data-profile-panel="friends"] {
  width: min(860px, 100%);
}

.glow-profile-status {
  margin: 0 0 14px;
  font-size: 14px;
  color: #9b2c2c;
  min-height: 0;
}

.glow-profile-status[hidden] {
  display: none !important;
  margin: 0;
}

.glow-profile-panel__title,
.glow-profile-panel__subtitle {
  margin: 0 0 20px;
  font-family: var(--font-sans);
  font-size: clamp(26px, 3.6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.glow-profile-panel__subtitle {
  margin: 28px 0 14px;
  font-size: 20px;
}

.glow-profile-list-top,
.glow-profile-feed-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 32px;
}

.glow-profile-list-top {
  margin-bottom: 8px;
}

.glow-profile-list-top .glow-profile-username {
  display: none;
}

.glow-profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: #f3f3f3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0b0b0;
}

@media (min-width: 900px) {
  .glow-profile-avatar--editable {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    outline: none;
  }

  .glow-profile-avatar--editable::after {
    content: "Изменить";
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.42);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
  }

  .glow-profile-avatar--editable:hover::after,
  .glow-profile-avatar--editable:focus-visible::after {
    opacity: 1;
  }

  .glow-profile-avatar--editable.is-uploading {
    pointer-events: none;
  }

  .glow-profile-avatar--editable.is-uploading::after {
    content: "…";
    opacity: 1;
  }
}

.glow-profile-avatar.has-photo-ph {
  background: transparent;
}

.glow-profile-avatar > img[data-soft-img] {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.glow-profile-list-top .glow-profile-avatar {
  width: 116px;
  height: 116px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
}

.glow-profile-avatar--lg {
  width: 112px;
  height: 112px;
}

.glow-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.glow-profile-app.is-booting .glow-profile-main {
  pointer-events: none;
}

.glow-profile-app.is-booting .glow-profile-avatar:not(.has-photo-ph),
.glow-profile-app.is-booting .glow-profile-tasks {
  position: relative;
}

.glow-profile-app.is-booting .glow-profile-avatar:not(.has-photo-ph) {
  background: linear-gradient(110deg, #ececec 20%, #f7f7f7 42%, #ececec 64%);
  background-size: 200% 100%;
  animation: glow-soft-shimmer 1.15s ease infinite;
  box-shadow: none;
}

.glow-profile-app.is-booting .glow-profile-avatar svg {
  opacity: 0;
}

.glow-profile-app.is-booting .glow-profile-day-pill {
  color: transparent;
  background: linear-gradient(110deg, #f0f0f0 20%, #fafafa 42%, #f0f0f0 64%);
  background-size: 200% 100%;
  animation: glow-soft-shimmer 1.15s ease infinite;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.glow-profile-app.is-booting .glow-profile-wheel-wrap {
  opacity: 0.28;
}

.glow-profile-app.is-booting .glow-profile-tasks {
  min-height: 320px;
}

.glow-profile-app.is-booting .glow-profile-tasks::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 18px;
  background: linear-gradient(110deg, #f1f1f1 18%, #f8f8f8 40%, #f1f1f1 62%);
  background-size: 200% 100%;
  animation: glow-soft-shimmer 1.15s ease infinite;
  pointer-events: none;
}

.glow-profile-app.is-booting .glow-profile-tasks > * {
  opacity: 0;
}

.glow-profile-main.is-ready {
  animation: glow-profile-fade-in 0.35s ease;
}

@keyframes glow-soft-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@keyframes glow-profile-fade-in {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 1;
  }
}

.glow-profile-avatar svg {
  width: 48px;
  height: 48px;
}

.glow-profile-username {
  margin: 14px 0 0;
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
}

.glow-profile-feed-bio {
  margin: 8px 0 0;
  max-width: 420px;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(17, 17, 17, 0.65);
}

.glow-profile-feed-bio.is-empty {
  color: rgba(17, 17, 17, 0.35);
}

.glow-profile-day-pill {
  position: relative;
  z-index: 1;
  margin: -14px 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  min-height: 36px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
}

.glow-profile-wheel-wrap {
  position: relative;
  width: 100%;
  margin-top: 16px;
  height: 44px;
  touch-action: none;
  user-select: none;
  --wheel-step: 14px;
}

.glow-profile-wheel {
  display: block;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  height: 100%;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: none;
}

.glow-profile-wheel.is-dragging {
  cursor: grabbing;
}

.glow-profile-wheel::-webkit-scrollbar {
  display: none;
}

.glow-profile-wheel-track {
  display: flex;
  align-items: center;
  height: 100%;
  box-sizing: content-box;
}

.glow-profile-tick {
  flex: 0 0 var(--wheel-step);
  width: var(--wheel-step);
  min-width: var(--wheel-step);
  max-width: var(--wheel-step);
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  box-sizing: border-box;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  scroll-snap-align: center;
}

.glow-profile-tick span {
  display: block;
  width: 2px;
  height: 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  flex-shrink: 0;
  transform-origin: center center;
  transition: width 0.12s ease, opacity 0.12s ease;
}

.glow-profile-wheel-needle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 28px;
  margin: 0;
  background: #111;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
}

.glow-profile-tasks {
  background: #fff;
  border-radius: 2.125rem;
  border: 0;
  overflow: visible;
  padding: 1.25rem 1.125rem 0.75rem;
  box-shadow:
    0 0.1875rem 0.625rem rgba(0, 0, 0, 0.08),
    0 0.75rem 1.75rem rgba(17, 17, 17, 0.06);
}

.glow-profile-task {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 9.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.glow-profile-task:last-child {
  border-bottom: 0;
}

.glow-profile-task__photo {
  appearance: none;
  width: 5.75rem;
  height: 8.25rem;
  border: 0;
  padding: 0;
  border-radius: 1.375rem;
  background: transparent;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.16);
  cursor: pointer;
}

.glow-profile-task__photo:not(.has-photo-ph) {
  background: #f4f4f4;
}

.glow-profile-task__photo.has-photo-ph:not(.is-ready) {
  background: transparent;
}

.glow-profile-task__photo > img[data-soft-img] {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.glow-profile-task__photo-pending {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(110deg, #efefef 20%, #f7f7f7 40%, #efefef 60%);
  background-size: 200% 100%;
  animation: glow-soft-shimmer 1.15s ease infinite;
}

.glow-profile-task__photo:hover {
  filter: brightness(0.98);
}

.glow-profile-task__photo:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.glow-profile-task__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.glow-profile-task__photo img.is-mirror,
.glow-profile-photo-card img.is-mirror {
  transform: scaleX(-1);
}

.glow-profile-task__body {
  flex: 1;
  min-width: 0;
}

.glow-profile-task__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4375rem;
  color: #141414;
}

.glow-profile-task__title-text {
  position: relative;
  display: inline;
  background-image: linear-gradient(rgba(20, 20, 20, 0.55), rgba(20, 20, 20, 0.55));
  background-repeat: no-repeat;
  background-position: left 55%;
  background-size: 0% 1.5px;
}

.glow-profile-task.is-done .glow-profile-task__title {
  color: #7b7b7b;
  text-decoration: none;
}

.glow-profile-task.is-done .glow-profile-task__title-text {
  background-size: 100% 1.5px;
}

.glow-profile-task.is-done.is-strike-anim .glow-profile-task__title-text {
  animation: glow-strike-draw 0.38s ease forwards;
}

@keyframes glow-strike-draw {
  from {
    background-size: 0% 1.5px;
  }
  to {
    background-size: 100% 1.5px;
  }
}

.glow-profile-task__time {
  margin: 0.5rem 0 0;
  min-height: 1.3125rem;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.1875rem;
  color: rgba(17, 17, 17, 0.45);
}

.glow-profile-task__check {
  appearance: none;
  width: 2.875rem;
  height: 2.875rem;
  border-radius: 999px;
  border: 2px solid #cbcbcb;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  color: #fff;
  padding: 0;
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.glow-profile-task__check svg {
  width: 1.125rem;
  height: 1.125rem;
  display: block;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.glow-profile-task.is-done .glow-profile-task__check {
  background: #111;
  border-color: #111;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
}

.glow-profile-task.is-done .glow-profile-task__check svg {
  opacity: 1;
  transform: scale(1);
}

.glow-profile-empty {
  margin: 0;
  padding: 28px 18px;
  text-align: center;
  color: rgba(17, 17, 17, 0.5);
  font-size: 15px;
}

.glow-profile-friends-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 1rem;
}

.glow-profile-friends-toolbar__title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.glow-profile-friends-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.glow-profile-round-btn {
  appearance: none;
  position: relative;
  width: 52px;
  height: 52px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #f3f3f3;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.glow-profile-round-btn[hidden] {
  display: none !important;
}

.glow-profile-round-btn--plus {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}

.glow-profile-round-btn__badge {
  position: absolute;
  top: -5px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  border: 2px solid #fff;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-sizing: border-box;
}

.glow-profile-round-btn__badge[hidden] {
  display: none !important;
}

.glow-profile-friends {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.glow-friends-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  opacity: 0;
  transition: opacity 0.32s ease;
}

.glow-friends-modal[hidden] {
  display: none !important;
}

.glow-friends-modal.is-open {
  opacity: 1;
}

.glow-friends-modal.is-closing {
  opacity: 0;
  pointer-events: none;
}

.glow-friends-modal__backdrop {
  appearance: none;
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.glow-friends-modal__sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  max-height: min(72vh, 640px);
  margin: 0;
  padding: 18px 18px 28px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  box-sizing: border-box;
  overflow: auto;
  transform: translateY(14px) scale(0.985);
  transition:
    opacity 0.28s ease,
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.glow-friends-modal.is-open .glow-friends-modal__sheet {
  transform: translateY(0) scale(1);
}

.glow-friends-modal.is-closing .glow-friends-modal__sheet {
  transform: translateY(14px) scale(0.985);
}

.glow-friends-modal__sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
}

.glow-friends-modal__sheet-head h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  color: #111;
}

.glow-friends-modal__x {
  appearance: none;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #f3f3f3;
  color: #111;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.glow-friends-modal__x--card {
  position: absolute;
  top: 12px;
  right: 12px;
}

.glow-friends-modal__sheet-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.glow-friends-request {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}

.glow-friends-request__user {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.glow-friends-request__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: #f0eeea;
  flex: 0 0 auto;
}

.glow-friends-request__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.glow-friends-request__name {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: #111;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.glow-friends-request__actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.glow-friends-request__btn {
  appearance: none;
  margin: 0;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.glow-friends-request__btn--accept {
  background: #111;
  color: #fff;
}

.glow-friends-request__btn--decline {
  background: #f3f3f3;
  color: #111;
}

.glow-friends-request__btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.glow-friends-requests-empty {
  margin: 24px 0 12px;
  text-align: center;
  color: rgba(17, 17, 17, 0.5);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
}

.glow-friends-modal__card {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  margin: 0;
  padding: 36px 22px 28px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  box-sizing: border-box;
  text-align: center;
  transform: translateY(14px) scale(0.985);
  transition:
    opacity 0.28s ease,
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.glow-friends-modal.is-open .glow-friends-modal__card {
  transform: translateY(0) scale(1);
}

.glow-friends-modal.is-closing .glow-friends-modal__card {
  transform: translateY(14px) scale(0.985);
}

.glow-friends-modal__card--embedded {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  box-shadow:
    0 0.1875rem 0.625rem rgba(0, 0, 0, 0.08),
    0 0.625rem 1.375rem rgba(17, 17, 17, 0.06);
  transform: none;
  transition: none;
}

.glow-friends-invite__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(36px, 11vw, 44px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #111;
  white-space: nowrap;
}

.glow-friends-invite__title em {
  font-style: italic;
  font-weight: 700;
}

.glow-friends-invite__code {
  margin: 18px 0 0;
  font-family: var(--font-sans);
  font-size: clamp(28px, 7vw, 36px);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #111;
}

.glow-friends-invite__share {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 22px 0 0;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.glow-friends-invite__or {
  margin: 14px 0 0;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: rgba(17, 17, 17, 0.45);
}

.glow-friends-invite__use-code {
  appearance: none;
  width: 100%;
  margin: 10px 0 0;
  padding: 14px 12px;
  border: 0;
  border-radius: 999px;
  background: #f3f3f3;
  color: #111;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.glow-friends-invite__perk {
  margin: 16px auto 0;
  max-width: 22rem;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #222;
  text-align: center;
}

.glow-friends-invite__join {
  display: flex;
  gap: 8px;
  margin: 12px 0 0;
}

.glow-friends-invite__join[hidden] {
  display: none !important;
}

.glow-friends-invite__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 999px;
  background: #fafafa;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #111;
  outline: none;
}

.glow-friends-invite__send {
  appearance: none;
  flex: 0 0 auto;
  height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.glow-friends-invite__send:disabled {
  background: #e8e8e8;
  color: rgba(17, 17, 17, 0.4);
  cursor: default;
}

.glow-friends-invite__msg {
  margin: 12px 0 0;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: #111;
}

.glow-friends-invite__msg.is-error {
  color: #e11d48;
}

.glow-profile-friend-card {
  appearance: none;
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  width: 100%;
  margin: 0;
  padding: 1.125rem 1rem 0.875rem;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  background: #fff;
  border: 0;
  border-radius: 1.375rem;
  box-shadow:
    0 0.1875rem 0.625rem rgba(0, 0, 0, 0.08),
    0 0.625rem 1.375rem rgba(17, 17, 17, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.glow-profile-friend-card:hover {
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.1),
    0 14px 30px rgba(17, 17, 17, 0.08);
}

.glow-profile-friend-card:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

.glow-profile-friend-card__left {
  width: 5.5rem;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.125rem;
  padding-top: 0;
}

.glow-profile-friend-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: #f0eeea;
  margin-bottom: 0;
}

.glow-profile-friend-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.glow-profile-friend__ph {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 72px;
  background: #e8e6e1;
}

.glow-profile-friend-card__left strong {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.glow-profile-friend-card__day {
  margin: 2px 0 0;
  font-size: 12px;
  color: rgba(17, 17, 17, 0.45);
  font-weight: 600;
  line-height: 1.2;
}

.glow-profile-friend-card__right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.glow-profile-friend-task {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.glow-profile-friend-task__check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #cbcbcb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
  background: #fff;
}

.glow-profile-friend-task.is-done .glow-profile-friend-task__check {
  background: #111;
  border-color: #111;
}

.glow-profile-friend-task__title {
  font-size: 0.875rem;
  line-height: 1.35;
  font-weight: 600;
  color: #141414;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.glow-profile-friend-task.is-done .glow-profile-friend-task__title {
  color: #8c8c8c;
  text-decoration: line-through;
}

.glow-profile-friend-task__time {
  font-size: 12px;
  font-weight: 700;
  color: rgba(17, 17, 17, 0.45);
  min-width: 36px;
  white-space: nowrap;
  text-align: right;
}

.glow-profile-friend-page[hidden],
.glow-profile-friends-list[hidden] {
  display: none !important;
}

.glow-profile-friend-page__header {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
}

.glow-profile-friend-page__header strong {
  text-align: center;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
}

.glow-profile-friend-page__back {
  appearance: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  color: #111;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.glow-profile-friend-page__spacer {
  width: 44px;
  height: 44px;
}

.glow-profile-friend-page__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 22px;
}

.glow-profile-friend-page__avatar {
  margin-bottom: 0;
}

.glow-profile-friend-page__header strong:empty {
  visibility: hidden;
}

.glow-profile-friend-page .glow-profile-challenge-mod {
  width: min(100%, 560px);
  margin: 0 auto 12px;
}

.glow-profile-friend-page__entry {
  width: min(100%, 560px);
  margin: 0 auto 20px;
}

.glow-profile-photo-entry {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: 72px;
  min-height: 72px;
  margin: 0;
  padding: 0 22px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: #111;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.08),
    0 12px 28px rgba(17, 17, 17, 0.06);
  transition: opacity 0.15s ease, box-shadow 0.15s ease;
}

button.glow-profile-photo-entry:hover {
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.1),
    0 14px 30px rgba(17, 17, 17, 0.08);
}

.glow-profile-photo-entry.is-locked {
  cursor: default;
}

.glow-profile-photo-entry__text {
  flex: 1;
  min-width: 0;
  padding-right: 8px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  color: #111;
}

.glow-profile-photo-entry.is-locked .glow-profile-photo-entry__text {
  color: rgba(17, 17, 17, 0.42);
  font-weight: 700;
}

.glow-profile-photo-entry__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(17, 17, 17, 0.35);
  font-size: 28px;
  line-height: 1;
  font-weight: 400;
}

.glow-profile-photo-entry.is-locked .glow-profile-photo-entry__icon {
  color: rgba(17, 17, 17, 0.38);
}

.glow-profile-friend-page__feed {
  width: min(100%, 560px);
  margin: 0 auto;
}

.glow-profile-friend-skel {
  width: min(100%, 560px);
  margin: 0 auto;
}

.glow-profile-friend-skel--photos {
  width: 100%;
}

.glow-profile-friend-skel__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 22px;
}

.glow-profile-friend-skel__avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: linear-gradient(110deg, #ececec 20%, #f7f7f7 42%, #ececec 64%);
  background-size: 200% 100%;
  animation: glow-soft-shimmer 1.15s ease infinite;
}

.glow-profile-friend-skel__line {
  border-radius: 999px;
  background: linear-gradient(110deg, #ececec 20%, #f7f7f7 42%, #ececec 64%);
  background-size: 200% 100%;
  animation: glow-soft-shimmer 1.15s ease infinite;
}

.glow-profile-friend-skel__name {
  width: 120px;
  height: 22px;
  margin-top: 14px;
}

.glow-profile-friend-skel__bio {
  width: 180px;
  height: 14px;
  margin-top: 10px;
}

.glow-profile-friend-skel__mod,
.glow-profile-friend-skel__entry {
  width: 100%;
  height: 148px;
  border-radius: 14px;
  margin: 0 0 12px;
  background: linear-gradient(110deg, #ececec 20%, #f7f7f7 42%, #ececec 64%);
  background-size: 200% 100%;
  animation: glow-soft-shimmer 1.15s ease infinite;
}

.glow-profile-friend-skel__entry {
  height: 72px;
  margin-bottom: 22px;
}

.glow-profile-friend-skel__board {
  margin-top: 4px;
}

.glow-profile-friend-skel__title {
  width: 160px;
  height: 18px;
  margin-bottom: 14px;
}

.glow-profile-friend-skel__cards {
  display: flex;
  gap: 12px;
  overflow: hidden;
}

.glow-profile-friend-skel__card {
  flex: 0 0 118px;
  width: 118px;
  height: 158px;
  border-radius: 18px;
  background: linear-gradient(110deg, #ececec 20%, #f7f7f7 42%, #ececec 64%);
  background-size: 200% 100%;
  animation: glow-soft-shimmer 1.15s ease infinite;
}

.glow-profile-friend-page__section-title {
  margin: 8px 0 12px;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
}

.glow-profile-friend-page__photos {
  margin: 0 0 22px;
}

.glow-profile-friend-page .glow-profile-wall-title {
  pointer-events: none;
}

.glow-profile-friend-viewer[hidden] {
  display: none !important;
}

.glow-profile-friend-viewer {
  display: none !important;
}

.glow-profile-challenge-mod {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 28px;
}

.glow-profile-challenge-mod__btn {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 18px;
  overflow: visible;
}

.glow-profile-challenge-mod__thumbs {
  display: flex;
  gap: 2px;
  height: 160px;
  max-height: 160px;
  background: transparent;
  border-radius: 14px;
  overflow: hidden;
}

.glow-profile-challenge-mod__thumb,
.glow-profile-challenge-mod__thumbs > img,
.glow-profile-challenge-mod__thumbs > .soft-media {
  flex: 1 1 0;
  width: 25%;
  min-width: 0;
  height: 100%;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #f3f3f3;
}

.glow-profile-challenge-mod__thumbs > :first-child {
  border-radius: 14px 0 0 14px;
}

.glow-profile-challenge-mod__thumbs > :last-child {
  border-radius: 0 14px 14px 0;
}

.glow-profile-challenge-mod__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
}

.glow-profile-challenge-mod__badge-wrap {
  position: absolute;
  left: 0;
  right: 0;
  top: 10px;
  z-index: 30;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.glow-profile-challenge-mod__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: min(92%, 240px);
  background: rgba(255, 255, 255, 0.96);
  color: #111;
  border-radius: 999px;
  padding: 7px 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.glow-profile-settings {
  max-width: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.glow-profile-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.55);
}

.glow-profile-field input,
.glow-profile-field textarea {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: #111;
  text-transform: none;
  letter-spacing: 0;
  resize: vertical;
}

.glow-profile-field__hint {
  font-style: normal;
  font-weight: 600;
  font-size: 12px;
  text-align: right;
}

.glow-profile-btn {
  appearance: none;
  border: 0;
  background: #111;
  color: #fff;
  border-radius: 12px;
  padding: 11px 16px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.glow-profile-btn--ghost {
  background: #fff;
  color: #111;
  border: 1px solid var(--line);
}

.glow-profile-settings__challenge {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.glow-profile-settings-card {
  background: #fff;
  border-radius: 34px;
  overflow: hidden;
  padding: 4px 0;
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.08),
    0 12px 28px rgba(17, 17, 17, 0.06);
}

.glow-profile-settings-item {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 14px 20px;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: transparent;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: #111;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}

.glow-profile-settings-card > .glow-profile-settings-item:last-child {
  border-bottom: 0;
}

.glow-profile-settings-item__label {
  flex: 1;
  min-width: 0;
}

.glow-profile-settings-item__right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(17, 17, 17, 0.55);
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.glow-profile-settings-item__chevron {
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: rgba(17, 17, 17, 0.35);
}

.glow-profile-settings-item--switch {
  cursor: default;
}

.glow-profile-settings-item--switch input[type="checkbox"] {
  appearance: none;
  width: 46px;
  height: 28px;
  margin: 0;
  border-radius: 999px;
  background: #d8d8d8;
  position: relative;
  cursor: pointer;
  transition: background 0.18s ease;
  flex-shrink: 0;
}

.glow-profile-settings-item--switch input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.18s ease;
}

.glow-profile-settings-item--switch input[type="checkbox"]:checked {
  background: #111;
}

.glow-profile-settings-item--switch input[type="checkbox"]:checked::after {
  transform: translateX(18px);
}

.glow-profile-settings-item--danger .glow-profile-settings-item__label {
  color: #e53935;
}

.glow-profile-settings-item--danger:disabled {
  opacity: 0.65;
  cursor: default;
}

.glow-profile-confirm[hidden],
.glow-profile-settings-sheet[hidden] {
  display: none !important;
}

.glow-profile-confirm {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.glow-profile-confirm.is-open {
  opacity: 1;
}

.glow-profile-confirm.is-closing {
  opacity: 0;
  pointer-events: none;
}

.glow-profile-confirm[data-reselect-soon-modal] {
  z-index: 95;
}

.glow-profile-confirm__backdrop {
  appearance: none;
  position: absolute;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.glow-profile-confirm.is-open .glow-profile-confirm__backdrop {
  opacity: 1;
}

.glow-profile-confirm.is-closing .glow-profile-confirm__backdrop {
  opacity: 0;
}

.glow-profile-confirm__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 340px);
  padding: 28px 22px 18px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  text-align: center;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition:
    opacity 0.32s ease,
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.glow-profile-confirm.is-open .glow-profile-confirm__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.glow-profile-confirm.is-closing .glow-profile-confirm__panel {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
}

.glow-profile-confirm__title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #111;
}

.glow-profile-confirm__text {
  margin: 10px 0 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(17, 17, 17, 0.55);
}

.glow-profile-confirm__actions {
  display: flex;
  margin-top: 22px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.glow-profile-confirm__btn {
  appearance: none;
  flex: 1;
  border: 0;
  background: transparent;
  padding: 16px 8px 6px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: #111;
  cursor: pointer;
}

.glow-profile-confirm__btn + .glow-profile-confirm__btn {
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.glow-profile-confirm__btn--danger {
  color: #e11d48;
}

.glow-profile-settings-sheet {
  position: fixed;
  inset: 0;
  z-index: 78;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.glow-profile-settings-sheet__backdrop {
  appearance: none;
  position: absolute;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.glow-profile-settings-sheet__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(86vh, 760px);
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.glow-profile-settings-sheet__header {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  min-height: 64px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.glow-profile-settings-sheet__header strong {
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  color: #111;
}

.glow-profile-settings-sheet__back {
  appearance: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #f3f3f3;
  color: #111;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.glow-profile-settings-sheet__spacer {
  width: 44px;
  height: 44px;
}

.glow-profile-settings-sheet__body {
  flex: 1;
  overflow: auto;
  padding: 20px 22px 28px;
}

.glow-profile-settings-sheet__hint {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(17, 17, 17, 0.55);
}

.glow-profile-duration-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding-top: 12px;
}

.glow-profile-duration-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.05;
  color: #111;
}

.glow-profile-duration-pill {
  appearance: none;
  border: 0;
  background: #f2f2f2;
  color: #111;
  border-radius: 999px;
  padding: 10px 18px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.glow-profile-duration-wheel-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 56px;
  --duration-step: 14px;
}

.glow-profile-duration-wheel {
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.glow-profile-duration-wheel.is-dragging {
  cursor: grabbing;
}

.glow-profile-duration-wheel::-webkit-scrollbar {
  display: none;
}

.glow-profile-duration-track {
  display: flex;
  align-items: center;
  height: 100%;
  box-sizing: content-box;
}

.glow-profile-duration-tick {
  flex: 0 0 var(--duration-step);
  width: var(--duration-step);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.glow-profile-duration-tick > span {
  display: block;
  width: 3px;
  height: 28px;
  border-radius: 999px;
  background: #111;
  opacity: 0.22;
  transition: opacity 0.12s ease, width 0.12s ease;
}

.glow-profile-duration-needle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 36px;
  margin-left: -1.5px;
  margin-top: -18px;
  border-radius: 999px;
  background: #111;
  pointer-events: none;
  z-index: 2;
}

.glow-profile-duration-range {
  margin: 0;
  min-height: 22px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(17, 17, 17, 0.45);
}

.glow-profile-duration-save {
  width: min(100%, 280px);
  margin-top: 8px;
}

.glow-profile-duration-modal {
  padding: 18px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.glow-profile-duration-modal.is-open {
  opacity: 1;
}

.glow-profile-duration-modal.is-closing {
  opacity: 0;
  pointer-events: none;
}

.glow-profile-duration-modal .glow-profile-settings-sheet__backdrop {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.glow-profile-duration-modal.is-open .glow-profile-settings-sheet__backdrop {
  opacity: 1;
}

.glow-profile-duration-modal__panel {
  width: min(100%, 540px);
  height: min(92vh, 820px);
  max-height: none;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition:
    opacity 0.32s ease,
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.glow-profile-duration-modal.is-open .glow-profile-duration-modal__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.glow-profile-duration-modal.is-closing .glow-profile-duration-modal__panel {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
}

.glow-profile-duration-modal__chrome {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  pointer-events: none;
}

.glow-profile-duration-modal__chrome .glow-profile-settings-sheet__back {
  pointer-events: auto;
}

.glow-profile-duration-modal__body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 0 88px;
  overflow: hidden;
  box-sizing: border-box;
}

.glow-profile-duration-modal__top {
  position: relative;
  z-index: 6;
  width: min(calc(100% - 24px), 428px);
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.glow-profile-duration-modal .glow-profile-duration-title {
  margin: 8px 0 0;
  padding: 0 12px;
  width: 100%;
  font-family: var(--font-serif);
  font-size: clamp(30px, 4.2vw, 35px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-align: center;
}

.glow-profile-duration-modal .glow-profile-duration-pill {
  margin-top: 22px;
  min-width: 116px;
  height: 44px;
  padding: 0 20px;
  background: #fff;
  font-size: 18px;
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.04);
}

.glow-profile-duration-modal .glow-profile-duration-wheel-wrap {
  margin-top: 20px;
  max-width: none;
  height: 48px;
}

.glow-profile-duration-modal .glow-profile-duration-wheel {
  display: block;
  width: 100%;
  overflow-x: scroll;
}

.glow-profile-duration-modal .glow-profile-duration-tick > span {
  width: 2px;
  height: 18px;
  background: rgba(0, 0, 0, 0.58);
}

.glow-profile-duration-modal .glow-profile-duration-needle {
  width: 4px;
  height: 42px;
  margin-left: -2px;
  margin-top: -21px;
}

.glow-profile-duration-modal .glow-profile-duration-range {
  margin-top: 10px;
  min-height: 22px;
  padding: 0 8px;
  color: #111;
  font-size: 16px;
  font-weight: 800;
  line-height: 22px;
  white-space: nowrap;
}

/* Same layout as mini-app lengthHeroRow: stretch, right/bottom, slight lift. */
.glow-profile-duration-modal__hero {
  position: relative;
  z-index: 1;
  align-self: stretch;
  flex: 1 1 auto;
  min-height: 180px;
  margin: 4px 0 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  overflow: visible;
  pointer-events: none;
  transform: translateY(-18px);
}

.glow-profile-duration-modal__hero img {
  display: block;
  width: 50%;
  max-width: 50%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: right bottom;
  margin: 0;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  user-select: none;
  -webkit-user-drag: none;
}

.glow-profile-duration-modal .glow-profile-duration-save {
  appearance: none;
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 20;
  width: 170px;
  height: 56px;
  margin: 0;
  border: 0;
  border-radius: 16px;
  background: #111;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  line-height: 22px;
  cursor: pointer;
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.2);
  transform: translateX(-50%);
}

.glow-profile-reselect[hidden] {
  display: none !important;
}

.glow-profile-reselect {
  position: fixed;
  inset: 0;
  z-index: 82;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.glow-profile-reselect.is-open {
  opacity: 1;
}

.glow-profile-reselect.is-closing {
  opacity: 0;
  pointer-events: none;
}

.glow-profile-reselect__backdrop {
  appearance: none;
  position: absolute;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.42);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.glow-profile-reselect.is-open .glow-profile-reselect__backdrop {
  opacity: 1;
}

.glow-profile-reselect.is-closing .glow-profile-reselect__backdrop {
  opacity: 0;
}

.glow-profile-reselect__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 428px);
  height: min(86vh, 720px);
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition:
    opacity 0.32s ease,
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.glow-profile-reselect.is-open .glow-profile-reselect__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.glow-profile-reselect.is-closing .glow-profile-reselect__panel {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
}

.glow-profile-reselect__step {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(22px);
  transition:
    opacity 0.32s ease,
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.32s;
  z-index: 1;
  background: #fff;
}

.glow-profile-reselect__step.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  z-index: 3;
}

.glow-profile-reselect__step.is-leave {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  transform: translateX(-14px);
  z-index: 2;
}

.glow-profile-reselect__step[hidden] {
  display: flex !important;
}

.glow-profile-reselect__step[hidden]:not(.is-active):not(.is-leave) {
  visibility: hidden;
  pointer-events: none;
}

.glow-profile-reselect__chrome {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  flex-shrink: 0;
  pointer-events: none;
}

.glow-profile-reselect__back,
.glow-profile-reselect__close {
  appearance: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #f2f2f2;
  color: #111;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.glow-profile-reselect__close {
  font-size: 26px;
  margin-left: auto;
}

.glow-profile-reselect__scroll {
  flex: 1;
  overflow: auto;
  padding: 0 16px 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.glow-profile-reselect__scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.glow-profile-reselect__footer {
  flex-shrink: 0;
  padding: 12px 16px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 28%);
}

.glow-profile-reselect__footer .glow-profile-btn {
  width: 100%;
}

.glow-profile-flow-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding-top: 56px !important;
  padding-bottom: 12px !important;
}

.glow-profile-flow {
  position: relative;
  inset: 0;
  width: 100%;
  background: #fff;
  overflow: hidden;
  height: 100% !important;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.glow-profile-flow__chrome {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  pointer-events: none;
}

.glow-profile-flow__back {
  appearance: none;
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #f2f2f2;
  color: #111;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.glow-profile-flow__body {
  position: relative;
  z-index: 4;
  flex: 1;
  min-height: 0;
  height: 100%;
  width: 100%;
  max-width: 26.75rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 3rem 0.75rem 4.5rem;
  overflow: hidden;
  box-sizing: border-box;
}

.glow-profile-flow__top {
  position: relative;
  z-index: 6;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  background: #fff;
}

.glow-profile-flow__title {
  margin: 4px 0 0;
  padding: 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 34px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #111;
  text-align: center;
}

.glow-profile-flow__pill {
  appearance: none;
  margin-top: 16px;
  min-width: 104px;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 800;
  line-height: 22px;
  cursor: pointer;
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.04);
}

.glow-profile-flow__wheel-wrap {
  position: relative;
  margin-top: 20px;
  width: 100%;
  height: 48px;
  z-index: 6;
  --duration-step: 14px;
  touch-action: none;
}

.glow-profile-flow__wheel {
  display: block;
  width: 100%;
  height: 100%;
  overflow-x: scroll;
  overflow-y: hidden;
  scrollbar-width: none;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.glow-profile-flow__wheel.is-dragging {
  cursor: grabbing;
}

.glow-profile-flow__wheel::-webkit-scrollbar {
  display: none;
}

.glow-profile-flow__track {
  display: flex;
  align-items: center;
  height: 100%;
  box-sizing: content-box;
}

.glow-profile-flow__track .glow-profile-duration-tick,
.glow-profile-flow__tick {
  flex: 0 0 var(--duration-step);
  width: var(--duration-step);
  min-width: var(--duration-step);
  max-width: var(--duration-step);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  pointer-events: none;
  box-sizing: border-box;
}

.glow-profile-flow__track .glow-profile-duration-tick > span,
.glow-profile-flow__tick > span {
  display: block;
  width: 2px;
  height: 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  opacity: 0.22;
  transition: opacity 0.12s ease, width 0.12s ease;
}

.glow-profile-flow__needle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 42px;
  margin-left: -2px;
  margin-top: -21px;
  border-radius: 999px;
  background: #111;
  pointer-events: none;
  z-index: 2;
}

.glow-profile-flow__label {
  position: relative;
  z-index: 7;
  margin: 0.625rem 0 0;
  min-height: 1.375rem;
  padding: 0 0.5rem 0.25rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.375rem;
  color: #111;
  text-align: center;
  white-space: nowrap;
  background: #fff;
}

.glow-profile-flow__hero {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  align-self: stretch;
  width: 100%;
  min-height: 0;
  margin-top: 0.25rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}

.glow-profile-flow__hero img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
}

.glow-profile-flow__hero--start {
  justify-content: center;
}

.glow-profile-flow__hero--start img {
  height: 100%;
  width: auto;
  max-width: 140%;
  object-fit: contain;
  object-position: center bottom;
}

.glow-profile-flow__hero--length {
  justify-content: flex-end;
  width: calc(100% + 1.5rem);
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

.glow-profile-flow__hero--length img {
  height: 100%;
  width: auto;
  max-width: 110%;
  object-fit: contain;
  object-position: right bottom;
  margin-right: -0.25rem;
}

.glow-profile-flow__continue {
  appearance: none;
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 10;
  transform: translateX(-50%);
  width: 150px;
  height: 48px;
  margin: 0;
  border: 0;
  border-radius: 14px;
  background: #111;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.2);
}

.glow-profile-flow__continue:hover {
  filter: brightness(1.05);
}

/* Flow screens: top (title/wheel/date) stays above hero; hero fills leftover and scales down. */
.glow-profile-reselect__step.glow-profile-flow .glow-profile-flow__top {
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  max-width: 26.75rem;
  transform: none;
}

.glow-profile-reselect__step[data-reselect-step="startDate"] .glow-profile-flow__body,
.glow-profile-reselect__step[data-reselect-step="length"] .glow-profile-flow__body {
  max-width: none;
  width: 100%;
  padding: 3rem 0.75rem 4.5rem;
}

.glow-profile-reselect__step[data-reselect-step="startDate"] .glow-profile-flow__hero,
.glow-profile-reselect__step[data-reselect-step="length"] .glow-profile-flow__hero {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  height: auto;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
  transform: none;
}

.glow-profile-reselect__step[data-reselect-step="startDate"] .glow-profile-flow__continue,
.glow-profile-reselect__step[data-reselect-step="length"] .glow-profile-flow__continue {
  bottom: 1rem !important;
}

.glow-profile-reselect__step[data-reselect-step="length"] {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden;
}

.glow-profile-reselect__step[data-reselect-step="length"].is-active {
  display: flex !important;
  flex-direction: column !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.glow-profile-reselect__step[data-reselect-step="length"] .glow-profile-flow__top {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  flex-shrink: 0;
}

.glow-profile-reselect__step[data-reselect-step="length"] .glow-profile-flow__hero {
  display: flex !important;
  justify-content: flex-end;
  align-items: flex-end;
  visibility: visible !important;
  opacity: 1 !important;
}

.glow-profile-reselect__step[data-reselect-step="length"] .glow-profile-flow__continue {
  position: absolute !important;
  left: 50% !important;
  z-index: 20 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: translateX(-50%) !important;
}

.glow-profile-reselect__step--setup {
  justify-content: center;
  align-items: center;
  background: #fff;
}

.glow-profile-reselect-setup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 32px 28px;
  width: min(100%, 380px);
}

.glow-profile-reselect-setup__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(22px, 4.2vw, 30px);
  font-weight: 500;
  line-height: 1.28;
  color: #111;
  text-align: center;
}

.glow-profile-reselect-setup__title em {
  font-style: italic;
  font-weight: 700;
}

.glow-profile-reselect-setup__bar {
  width: min(58%, 210px);
  height: 2px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.glow-profile-reselect-setup__bar > span {
  display: block;
  height: 100%;
  width: 0%;
  min-width: 2px;
  border-radius: inherit;
  background: #000;
  transition: width 0.2s linear;
}

.glow-profile-reselect__title {
  margin: 52px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(34px, 5vw, 46px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #111;
  text-align: center;
}

.glow-profile-reselect__title span {
  display: block;
}

.glow-profile-reselect__subnav {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 18px 0 22px;
}

.glow-profile-reselect__tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0 0 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: rgba(17, 17, 17, 0.35);
  cursor: pointer;
  position: relative;
}

.glow-profile-reselect__tab.is-active {
  color: #111;
}

.glow-profile-reselect__tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #111;
  border-radius: 999px;
}

.glow-profile-select-card {
  appearance: none;
  display: block;
  width: 100%;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  position: relative;
  border-radius: 16px;
}

.glow-profile-select-card__thumbs {
  position: relative;
  display: flex;
  gap: 2px;
  height: 148px;
  border-radius: 14px;
  overflow: visible;
  background: transparent;
}

.glow-profile-select-card__thumbs-inner {
  display: flex;
  gap: 2px;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #f0f0f0;
}

.glow-profile-select-card__thumb,
.glow-profile-select-card__thumbs-inner > img,
.glow-profile-select-card__thumbs-inner > .soft-media {
  flex: 1 1 0;
  width: 25%;
  min-width: 0;
  height: 100%;
  display: block;
  overflow: hidden;
  border-radius: 0;
  background: #eee;
}

.glow-profile-select-card__thumbs-inner > :first-child {
  border-radius: 14px 0 0 14px;
}

.glow-profile-select-card__thumbs-inner > :last-child {
  border-radius: 0 14px 14px 0;
}

.glow-profile-select-card__thumbs-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.glow-profile-select-card__badge-wrap {
  position: absolute;
  left: 0;
  right: 0;
  top: 2px;
  z-index: 10;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.glow-profile-select-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 28px rgba(0, 0, 0, 0.2);
  font-size: 12px;
  font-weight: 800;
  color: #111;
  white-space: nowrap;
}

.glow-profile-select-card__name {
  margin: 12px 2px 0;
  font-size: 18px;
  font-weight: 800;
  color: #111;
}

.glow-profile-select-card__rule {
  margin: 12px 0 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
}

.glow-profile-customize__hero {
  position: relative;
  margin-bottom: 18px;
}

.glow-profile-customize__title {
  margin: 52px 0 16px;
  font-family: var(--font-serif);
  font-size: clamp(30px, 4.5vw, 42px);
  font-weight: 700;
  line-height: 1.08;
  text-align: center;
  color: #111;
}

.glow-profile-customize__add {
  appearance: none;
  width: 100%;
  margin: 0.875rem 0 0.375rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 0.25rem 1rem rgba(17, 17, 17, 0.06);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 800;
  color: #111;
  cursor: pointer;
}

.glow-profile-customize-task {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.glow-profile-customize-task:last-child {
  border-bottom: 0;
}

.glow-profile-customize-task__grip {
  width: 1rem;
  color: rgba(17, 17, 17, 0.28);
  font-size: 1rem;
  line-height: 1;
  user-select: none;
}

.glow-profile-customize-task__sticker {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #111;
  flex-shrink: 0;
  transform: rotate(var(--tilt, 0deg));
}

.glow-profile-customize-task__title {
  flex: 1;
  min-width: 0;
  appearance: none;
  border: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  color: #111;
  padding: 0.375rem 0;
}

.glow-profile-customize-task__title:focus {
  outline: none;
}

.glow-profile-customize-task__edit,
.glow-profile-customize-task__del {
  appearance: none;
  width: 1.875rem;
  height: 1.875rem;
  border: 0;
  border-radius: 999px;
  background: #f1f1f1;
  color: #111;
  font-size: 0.875rem;
  cursor: pointer;
  flex-shrink: 0;
}

.glow-profile-customize-task__del {
  color: #e11d48;
  background: #fff1f3;
}

.glow-profile-challenge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.glow-profile-challenge-pick {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-sans);
}

.glow-profile-challenge-pick strong {
  font-size: 14px;
}

.glow-profile-challenge-pick span {
  font-size: 12px;
  color: rgba(17, 17, 17, 0.5);
}

.glow-profile-challenge-pick.is-current {
  border-color: #111;
  box-shadow: inset 0 0 0 1px #111;
}

.glow-profile-subscription {
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.glow-profile-subscription__status {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.glow-profile-panel--favorites {
  padding: 8px 0 24px;
}

.glow-profile-favorites-list {
  width: 100%;
}

.glow-profile-favorites-skel {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 4px;
}

.glow-profile-favorites-skel__row {
  height: 108px;
  margin: 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  background: linear-gradient(110deg, #f1f1f1 18%, #f8f8f8 40%, #f1f1f1 62%);
  background-size: 200% 100%;
  animation: glow-soft-shimmer 1.15s ease infinite;
  border-radius: 0;
}

.glow-profile-panel--subscription {
  display: flex;
  justify-content: center;
  padding-top: 28px;
  padding-bottom: 16px;
}

.glow-sub-paywall {
  width: min(100%, 400px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.glow-sub-paywall.is-loading .glow-sub-paywall__body {
  display: none;
}

.glow-sub-paywall:not(.is-loading) .glow-sub-skel {
  display: none;
}

.glow-sub-paywall__body {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.glow-sub-skel {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.glow-sub-skel__avatars {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0 4px;
}

.glow-sub-skel__avatars span {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin-left: -16px;
  background: linear-gradient(110deg, #ececec 20%, #f7f7f7 42%, #ececec 64%);
  background-size: 200% 100%;
  animation: glow-soft-shimmer 1.15s ease infinite;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.glow-sub-skel__avatars span:first-child {
  margin-left: 0;
}

.glow-sub-skel__pill {
  width: 168px;
  height: 34px;
  margin: -18px 0 0;
  border-radius: 999px;
  background: linear-gradient(110deg, #f0f0f0 20%, #fafafa 42%, #f0f0f0 64%);
  background-size: 200% 100%;
  animation: glow-soft-shimmer 1.15s ease infinite;
  position: relative;
  z-index: 2;
}

.glow-sub-skel__title {
  width: min(92%, 320px);
  height: 38px;
  margin: 40px 0 0;
  border-radius: 10px;
  background: linear-gradient(110deg, #ececec 20%, #f7f7f7 42%, #ececec 64%);
  background-size: 200% 100%;
  animation: glow-soft-shimmer 1.15s ease infinite;
}

.glow-sub-skel__title--short {
  width: min(72%, 240px);
  margin-top: 10px;
}

.glow-sub-skel__status {
  width: min(88%, 300px);
  height: 16px;
  margin: 40px 0 0;
  border-radius: 8px;
  background: linear-gradient(110deg, #f0f0f0 20%, #fafafa 42%, #f0f0f0 64%);
  background-size: 200% 100%;
  animation: glow-soft-shimmer 1.15s ease infinite;
}

.glow-sub-skel__status--2 {
  width: min(70%, 240px);
  margin-top: 10px;
}

.glow-sub-skel__plans {
  width: 100%;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.glow-sub-skel__plan {
  width: 100%;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(110deg, #f1f1f1 18%, #f8f8f8 40%, #f1f1f1 62%);
  background-size: 200% 100%;
  animation: glow-soft-shimmer 1.15s ease infinite;
}

.glow-sub-skel__cta {
  width: 92%;
  max-width: 320px;
  height: 48px;
  margin-top: 36px;
  border-radius: 999px;
  background: linear-gradient(110deg, #e8e8e8 20%, #f4f4f4 42%, #e8e8e8 64%);
  background-size: 200% 100%;
  animation: glow-soft-shimmer 1.15s ease infinite;
}

.glow-sub-paywall__hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 12px 0 4px;
  z-index: 1;
}

.glow-sub-paywall__avatars {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.glow-sub-paywall__joined {
  position: relative;
  z-index: 20;
  margin: -18px 0 0;
  padding: 9px 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: #111;
}

.glow-sub-paywall__avatar,
.glow-sub-paywall__avatars > img {
  position: relative;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 50%;
  overflow: hidden;
  background: #ececec;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  margin-left: -16px;
}

.glow-sub-paywall__avatar:nth-child(1),
.glow-sub-paywall__avatars > img:nth-child(1) {
  z-index: 5;
}
.glow-sub-paywall__avatar:nth-child(2),
.glow-sub-paywall__avatars > img:nth-child(2) {
  z-index: 4;
}
.glow-sub-paywall__avatar:nth-child(3),
.glow-sub-paywall__avatars > img:nth-child(3) {
  z-index: 3;
}
.glow-sub-paywall__avatar:nth-child(4),
.glow-sub-paywall__avatars > img:nth-child(4) {
  z-index: 2;
}
.glow-sub-paywall__avatar:nth-child(5),
.glow-sub-paywall__avatars > img:nth-child(5) {
  z-index: 1;
}

.glow-sub-paywall__avatar:first-child,
.glow-sub-paywall__avatars > img:first-child {
  margin-left: 0;
}

.glow-sub-skel__avatars span:nth-child(1) { z-index: 5; }
.glow-sub-skel__avatars span:nth-child(2) { z-index: 4; }
.glow-sub-skel__avatars span:nth-child(3) { z-index: 3; }
.glow-sub-skel__avatars span:nth-child(4) { z-index: 2; }
.glow-sub-skel__avatars span:nth-child(5) { z-index: 1; }

.glow-sub-skel__avatars span {
  position: relative;
}

.glow-sub-paywall__avatar > img,
.glow-sub-paywall__avatars > img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0;
  box-shadow: none;
}

.glow-sub-paywall__headline {
  margin: 40px 0 0;
  padding: 0 8px;
  font-family: var(--font-serif);
  font-size: clamp(34px, 5vw, 44px);
  font-weight: 600;
  line-height: 1;
  color: #111;
  letter-spacing: -0.02em;
}

.glow-sub-paywall__headline em {
  font-style: italic;
  font-weight: 700;
}

.glow-sub-paywall__status {
  margin: 40px 0 0;
  max-width: 360px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: #222;
}

.glow-sub-page {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 28px var(--pad) 72px;
  box-sizing: border-box;
}

.glow-sub-paywall--landing {
  width: min(100%, 440px);
  margin: 0 auto;
}

.glow-sub-paywall__benefits {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  width: 100%;
  max-width: none;
  text-align: left;
}

.glow-sub-paywall__benefits li {
  position: relative;
  margin: 0;
  padding: 8px 0 8px 1.15em;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #222;
  border: 0;
}

.glow-sub-paywall__benefits li::before {
  content: "–";
  position: absolute;
  left: 0;
  top: 8px;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  transform: none;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #222;
}

a.glow-sub-paywall__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}

.glow-sub-paywall__plans {
  width: 100%;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.glow-sub-promo {
  width: 100%;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  text-align: left;
}

.glow-sub-promo__label {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  color: #111;
  line-height: 1.3;
}

.glow-sub-promo__hint {
  margin: 10px 0 0;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: #222;
  min-height: 1.2em;
}

.glow-sub-promo__hint.is-ok {
  color: #222;
}

.glow-sub-promo__hint.is-err {
  color: #b42318;
}

.glow-sub-promo__input {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 14px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: #111;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.glow-sub-promo__input::placeholder {
  color: #aaa;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.glow-sub-promo__input:focus {
  outline: none;
  border-color: #111;
}

.glow-sub-plan {
  appearance: none;
  position: relative;
  width: 100%;
  margin: 0;
  padding: 16px 14px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 16px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: #111;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.glow-sub-plan.is-selected {
  border-width: 2px;
  border-color: #111;
  padding: 15px 13px;
}

.glow-sub-plan__badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  z-index: 1;
}

.glow-sub-plan__badge--popular {
  background: #111;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.glow-sub-plan__badge--save {
  background: #c8f5c5;
  color: #111;
}

.glow-sub-plan__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.glow-sub-plan__radio {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 2px solid #bbb;
  border-radius: 50%;
  box-sizing: border-box;
  position: relative;
}

.glow-sub-plan.is-selected .glow-sub-plan__radio {
  border-color: #111;
}

.glow-sub-plan.is-selected .glow-sub-plan__radio::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #111;
}

.glow-sub-plan__period {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
}

.glow-sub-plan__price-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  /* высота как у тарифов с «списание …» — цена в 1 месяц остаётся по центру */
  min-height: calc(1.2em + 2px + 1.2em);
}

.glow-sub-plan__price-col--single {
  justify-content: center;
}

.glow-sub-plan__price {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.glow-sub-plan:not(.is-selected) .glow-sub-plan__price {
  color: rgba(17, 17, 17, 0.55);
}

.glow-sub-plan__charge {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: rgba(17, 17, 17, 0.48);
  white-space: nowrap;
}

.glow-sub-plan__charge s {
  text-decoration: line-through;
  opacity: 0.8;
}

.glow-sub-paywall__cta {
  appearance: none;
  width: 92%;
  max-width: 320px;
  margin-top: 36px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.glow-sub-paywall__logout {
  appearance: none;
  display: block;
  width: 100%;
  margin: 14px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(17, 17, 17, 0.45);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.glow-sub-paywall__logout:hover {
  color: #111;
}

.glow-profile-app:not(.is-sub-locked) .glow-sub-paywall__logout {
  display: none;
}

.glow-sub-paywall__cta:disabled {
  opacity: 0.88;
  cursor: default;
}

.glow-sub-paywall__error {
  margin: 12px 0 0;
  max-width: 360px;
  color: #e11d48;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.glow-profile-photo-day,
.glow-profile-feed-board {
  margin-bottom: 36px;
}

/* Фотоотчёт: дни столбиком, левый край как у заголовка (без центрирования на 720px) */
.glow-profile-photo-day.glow-profile-feed-board {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.glow-profile-photo-day .glow-profile-wall-title {
  cursor: default;
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 26px;
}

.glow-profile-wall-card {
  appearance: none;
  display: block;
  padding: 0;
  border: 0;
  cursor: pointer;
  overflow: hidden;
  background: #f3f3f3;
}

.glow-profile-wall-card.has-photo-ph:not(.is-ready) {
  background: transparent;
}

.glow-profile-wall-card > img[data-soft-img] {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.glow-profile-pin-viewer__day {
  margin: 0;
  padding: 0 8px;
  color: rgba(17, 17, 17, 0.5);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
  flex: 0 0 auto;
}

.glow-profile-pin-viewer__day--empty {
  padding: 0;
  height: 0;
  overflow: hidden;
  visibility: hidden;
}

.glow-profile-feed-board {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 28px;
}

.glow-profile-wall-title {
  appearance: none;
  display: block;
  width: 100%;
  min-height: 24px;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
  cursor: text;
}

.glow-profile-wall-title-input {
  appearance: none;
  display: block;
  width: 100%;
  min-height: 24px;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #111;
  border-radius: 0;
  outline: none;
  background: transparent;
  color: #111;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
}

.glow-profile-feed-rail {
  position: relative;
  padding: 0;
}

.glow-profile-feed-board .glow-profile-feed-row {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 2px 0 6px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
}

.glow-profile-feed-board .glow-profile-feed-row.is-dragging,
.glow-profile-feed-board .glow-profile-feed-row.is-dragging .glow-profile-wall-card {
  cursor: grabbing;
}

.glow-profile-feed-board .glow-profile-feed-row::-webkit-scrollbar {
  display: none;
}

.glow-profile-feed-arrow {
  appearance: none;
  position: absolute;
  z-index: 8;
  top: 50%;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
  transform: translateY(-50%);
}

.glow-profile-feed-arrow[hidden] {
  display: none !important;
}

.glow-profile-feed-arrow--prev {
  left: -8px;
}

.glow-profile-feed-arrow--next {
  right: -8px;
}

@media (max-width: 899px) {
  .glow-profile-feed-arrow {
    display: none !important;
  }

  .glow-profile-feed-board .glow-profile-feed-row {
    padding-right: 16px;
  }

  .glow-profile-wall-card-tilt {
    flex-basis: 34%;
    width: 34%;
    max-width: 124px;
  }
}

.glow-profile-wall-card-tilt {
  position: relative;
  z-index: 1;
  flex: 0 0 calc((100% - 30px) / 3.1);
  width: calc((100% - 30px) / 3.1);
  max-width: 128px;
  margin: 0;
  transform: none;
  scroll-snap-align: start;
}

.glow-profile-wall-card-tilt.is-menu-open {
  z-index: 40;
}

.glow-profile-wall-add,
.glow-profile-wall-new-card,
.glow-profile-wall-card {
  width: 100%;
  aspect-ratio: 0.7;
  border-radius: 14px;
}

.glow-profile-wall-add,
.glow-profile-wall-new-card {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: #f3f3f3;
  box-shadow: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.glow-profile-wall-add span,
.glow-profile-wall-new-card span {
  color: rgba(17, 17, 17, 0.34);
  font-family: var(--font-sans);
  font-size: 28px;
  line-height: 1;
  font-weight: 400;
}

@media (min-width: 900px) {
  .glow-profile-wall-add:hover,
  .glow-profile-wall-new-card:hover {
    background: #ebebeb;
    border-color: rgba(17, 17, 17, 0.14);
  }

  .glow-profile-feed-board {
    max-width: 720px;
  }

  .glow-profile-wall-card-tilt {
    max-width: 140px;
  }

  .glow-profile-feed-arrow--prev {
    left: -14px;
  }

  .glow-profile-feed-arrow--next {
    right: -14px;
  }
}

.glow-profile-wall-card {
  position: relative;
  overflow: hidden;
  background: #f3f3f3;
  box-shadow: none;
  border: 1px solid rgba(17, 17, 17, 0.04);
}

.glow-profile-wall-card.has-photo-ph:not(.is-ready) {
  background: transparent;
  border-color: transparent;
}

.glow-profile-wall-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.glow-profile-wall-card__delete {
  appearance: none;
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  padding: 0 0 2px;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.84);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.glow-profile-wall-card__delete.is-visible {
  opacity: 1;
  transform: scale(1);
}

.glow-profile-wall-menu {
  position: absolute;
  z-index: 50;
  top: 50%;
  left: 50%;
  width: 178px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
  transform: translate(0, -50%) rotate(calc(var(--tilt, 0deg) * -1));
}

.glow-profile-wall-menu button {
  appearance: none;
  display: block;
  width: 100%;
  padding: 11px 13px;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  color: #111;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.glow-profile-wall-menu button:last-child {
  border-bottom: 0;
}

.glow-profile-wall-menu button:hover {
  background: #f5f5f5;
}

.glow-profile-wall-menu button.is-danger {
  color: #c62828;
}

.glow-profile-wall-new {
  margin-top: 4px;
  padding-top: 0;
}

.glow-profile-wall-new h3 {
  min-height: 28px;
  margin: 0 0 10px;
  padding: 0 2px;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
}

.glow-profile-pin-editor[hidden] {
  display: none !important;
}

.glow-profile-pin-editor {
  position: fixed;
  z-index: 150;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.glow-profile-pin-editor.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.glow-profile-pin-editor__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.24);
}

.glow-profile-pin-editor__panel {
  position: relative;
  width: min(100%, 680px);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.18);
  transform: translateY(14px) scale(0.985);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.glow-profile-pin-editor.is-open .glow-profile-pin-editor__panel {
  transform: translateY(0) scale(1);
}

.glow-profile-pin-editor__header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  min-height: 64px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.glow-profile-pin-editor__header strong {
  font-family: var(--font-sans);
  font-size: 18px;
  text-align: center;
}

.glow-profile-pin-editor__back,
.glow-profile-pin-editor__done {
  appearance: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}

.glow-profile-pin-editor__done {
  font-size: 18px;
}

.glow-profile-pin-editor__done:disabled {
  opacity: 0.4;
}

.glow-profile-pin-editor__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px 24px 48px;
}

.glow-profile-pin-editor__preview {
  width: min(58%, 340px);
  aspect-ratio: 0.76;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 24px;
  background: #eee;
}

.glow-profile-pin-editor__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.glow-profile-pin-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.glow-profile-pin-field > span {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
}

.glow-profile-pin-field input,
.glow-profile-pin-field textarea {
  appearance: none;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: #111;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.45;
  resize: vertical;
}

.glow-profile-pin-field em {
  align-self: flex-end;
  color: rgba(17, 17, 17, 0.42);
  font-size: 12px;
  font-style: normal;
}

.glow-profile-pin-viewer[hidden] {
  display: none !important;
}

.glow-profile-pin-viewer {
  position: fixed;
  z-index: 160;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.glow-profile-pin-viewer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.glow-profile-pin-viewer__backdrop {
  appearance: none;
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.24);
  cursor: pointer;
}

.glow-profile-pin-viewer__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 680px);
  height: min(78vh, 760px);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.18);
  transform: translateY(14px) scale(0.985);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 900px) {
  .glow-profile-pin-viewer {
    padding: 16px 24px;
  }

  .glow-profile-pin-viewer__panel {
    width: min(100%, 760px);
    height: min(92vh, 980px);
    max-height: calc(100vh - 32px);
  }

  .glow-profile-pin-viewer__image {
    width: min(62%, 460px);
  }

  .glow-profile-pin-viewer__content {
    gap: 16px;
    padding: 24px 36px 44px;
    justify-content: safe center;
  }

  .glow-profile-pin-viewer__meta p {
    font-size: 15px;
    line-height: 1.5;
  }

  /* Prefer fitting content; keep scroll only as rare overflow fallback. */
  .glow-profile-pin-viewer__slide {
    scrollbar-width: none;
  }

  .glow-profile-pin-viewer__slide::-webkit-scrollbar {
    display: none;
  }
}

.glow-profile-pin-viewer.is-open .glow-profile-pin-viewer__panel {
  transform: translateY(0) scale(1);
}

.glow-profile-pin-viewer__body {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.glow-profile-pin-viewer__nav {
  appearance: none;
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.14);
  transform: translateY(-50%);
}

.glow-profile-pin-viewer__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.glow-profile-pin-viewer__nav--prev {
  left: 10px;
}

.glow-profile-pin-viewer__nav--next {
  right: 10px;
}

.glow-profile-pin-viewer__track {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
}

.glow-profile-pin-viewer__track::-webkit-scrollbar {
  display: none;
}

.glow-profile-pin-viewer__slide {
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-snap-align: start;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.glow-profile-pin-viewer__slide::-webkit-scrollbar {
  width: 6px;
}

.glow-profile-pin-viewer__slide::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 999px;
}

.glow-profile-pin-viewer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  gap: 18px;
  width: 100%;
  min-height: 100%;
  height: auto;
  padding: 20px 24px 36px;
  box-sizing: border-box;
}

.glow-profile-pin-viewer__image {
  width: min(78%, 420px);
  aspect-ratio: 0.76;
  overflow: hidden;
  border-radius: 24px;
  background: #eee;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  flex: 0 0 auto;
  margin: 0;
}

.glow-profile-pin-viewer__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.glow-profile-pin-viewer__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 520px;
  padding: 0 8px 8px;
  box-sizing: border-box;
  flex: 0 0 auto;
}

.glow-profile-pin-viewer__meta h2 {
  width: 100%;
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.15;
  text-align: center;
}

.glow-profile-pin-viewer__meta p {
  width: 100%;
  margin: 10px 0 0;
  color: rgba(17, 17, 17, 0.72);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  text-align: center;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.glow-profile-pin-viewer__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(100%, 420px);
  margin-top: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.glow-profile-pin-viewer__link-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #111;
}

.glow-profile-pin-viewer__link span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.glow-profile-modal-open {
  overflow: hidden !important;
}

body.glow-profile-modal-open {
  /* без overflow:hidden — иначе sticky левого меню прыгает */
  overscroll-behavior: none;
}

body.glow-profile-modal-open .nav,
body.glow-profile-modal-open .ticker {
  padding-right: 0;
}

.glow-profile-modal-open {
  overflow: hidden;
}

.glow-profile-confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  overflow: hidden;
}

.glow-profile-confetti__piece {
  position: absolute;
  opacity: 0;
  animation-name: glow-confetti-burst-fall;
  animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
  animation-fill-mode: forwards;
  will-change: transform, opacity;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

@keyframes glow-confetti-burst-fall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(0.7);
    opacity: 0;
  }
  4% {
    opacity: 1;
    transform: translate3d(calc(var(--tx) * 0.06), calc(var(--arc-y) * 0.35), 0)
      rotate(calc(var(--rot) * 0.08)) scale(1);
  }
  18% {
    opacity: 1;
    transform: translate3d(calc(var(--tx) * 0.28), var(--arc-y), 0)
      rotate(calc(var(--rot) * 0.28)) scale(1.05);
  }
  42% {
    opacity: 1;
    transform: translate3d(calc(var(--tx) * 0.58), calc(var(--arc-y) * 0.15 + var(--ty) * 0.28), 0)
      rotate(calc(var(--rot) * 0.55)) scale(1);
  }
  78% {
    opacity: 1;
  }
  100% {
    transform: translate3d(var(--tx), var(--ty), 0) rotate(var(--rot)) scale(0.92);
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .glow-profile {
    width: 100%;
    padding: 12px 0 64px;
  }

  .glow-profile-app {
    gap: 4px;
  }

  .glow-profile-main {
    transform: none;
  }

  .glow-profile-top {
    width: 100%;
    margin: 0 0 8px;
  }

  .glow-profile-nav {
    gap: 12px;
    padding: 2px 12px;
    margin: 0;
  }

  .glow-profile-nav__btn {
    font-size: 15px;
  }

  .glow-profile-nav__btn:first-child {
    padding-left: 0;
  }

  .glow-profile-panel {
    width: 100%;
    padding: 0 0.75rem;
    box-sizing: border-box;
  }

  .glow-profile-panel[data-profile-panel="friends"],
  .glow-profile-panel[data-profile-panel="list"],
  .glow-profile-panel[data-profile-panel="feed"],
  .glow-profile-panel[data-profile-panel="photos"],
  .glow-profile-panel[data-profile-panel="settings"] {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .glow-profile-panel__title {
    padding: 0 0.75rem;
    font-size: 1.375rem;
    margin: 0 0 0.875rem;
  }

  .glow-profile-panel[data-profile-panel="settings"] .glow-profile-settings {
    padding: 0 0.75rem;
    max-width: none;
    width: 100%;
    margin: 0;
  }

  .glow-profile-list-top,
  .glow-profile-feed-hero {
    padding: 0 0.75rem;
    margin-bottom: 1rem;
  }

  .glow-profile-list-top .glow-profile-avatar {
    width: 6rem;
    height: 6rem;
  }

  .glow-profile-avatar--lg {
    width: 6rem;
    height: 6rem;
  }

  .glow-profile-tasks,
  .glow-profile-friends {
    margin: 0 0.75rem;
  }

  .glow-profile-tasks {
    border-radius: 1.375rem;
    padding: 0.875rem 0.875rem 0.5rem;
  }

  .glow-profile-task {
    gap: 0.75rem;
    min-height: 7.375rem;
    padding: 0.375rem 0;
  }

  .glow-profile-task__photo {
    width: 4.5rem;
    height: 6.5rem;
    border-radius: 1rem;
  }

  .glow-profile-task__title {
    font-size: 0.875rem;
    line-height: 1.1875rem;
  }

  .glow-profile-task__time {
    margin-top: 0.3125rem;
    min-height: 1.125rem;
    font-size: 0.75rem;
    line-height: 1rem;
  }

  .glow-profile-task__check {
    width: 2.25rem;
    height: 2.25rem;
  }

  .glow-profile-task__check svg {
    width: 0.875rem;
    height: 0.875rem;
  }

  .glow-profile-friend-card {
    flex-direction: row;
    gap: 0.75rem;
    padding: 0.875rem 0.75rem 0.75rem;
    border-radius: 1.25rem;
  }

  .glow-profile-friend-card__left {
    width: 5rem;
  }

  .glow-profile-friend-card__avatar {
    width: 4rem;
    height: 4rem;
  }

  .glow-profile-friend-task__title {
    font-size: 0.8125rem;
  }

  .glow-profile-challenge-mod,
  .glow-profile-feed-board {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .glow-profile-challenge-mod {
    padding: 0 12px;
  }

  .glow-profile-feed-board .glow-profile-wall-title,
  .glow-profile-feed-board .glow-profile-wall-title-input,
  .glow-profile-photo-day .glow-profile-wall-title {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .glow-profile-feed-board .glow-profile-feed-row {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .glow-profile-photo-day .glow-profile-feed-row {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .glow-profile-challenge-mod__thumbs {
    gap: 2px;
    height: 148px;
    max-height: 148px;
  }

  .glow-profile-reselect__panel {
    /* iPad / tablet: keep phone-shell width, don't stretch edge-to-edge */
    width: min(100%, 428px);
    height: min(86vh, 720px);
    border-radius: 28px;
  }

  .glow-profile-duration-modal__panel {
    width: min(100%, 428px);
  }

  .glow-profile-settings-sheet__panel {
    width: min(100%, 428px);
  }

  .glow-auth-modal__panel,
  .glow-friends-modal__sheet {
    width: min(100%, 400px);
  }

  .glow-friends-modal__card {
    width: min(100%, 360px);
  }

  .glow-profile-confirm__panel {
    width: min(100%, 340px);
  }

  .match-modal-dialog {
    width: min(100%, 520px);
  }

  .glow-onboard-modal__panel {
    width: min(100%, 428px);
    height: min(86vh, 720px);
    border-radius: 28px;
  }

  .glow-profile-reselect__scroll {
    padding: 0 14px 16px;
  }

  .glow-profile-reselect__footer {
    padding: 10px 14px 16px;
  }

  .glow-profile-select-card__thumbs {
    height: 140px;
  }

  .glow-profile-panel--subscription {
    padding-top: 32px;
  }

  .glow-profile-wall-card-tilt {
    flex-basis: 32vw;
    width: 32vw;
    max-width: 118px;
  }
}

/* Desktop onboarding modal — same shell size as profile reselect / mini-app */
.glow-onboard-modal[hidden] {
  display: none !important;
}

.glow-onboard-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
}

.glow-onboard-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.glow-onboard-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.52);
}

.glow-onboard-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 428px);
  height: min(86vh, 720px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition:
    opacity 0.32s ease,
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.glow-onboard-modal.is-open .glow-onboard-modal__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.glow-onboard-modal__body {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.glow-onboard-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
  opacity: 1;
  transform: none;
}

.glow-onboard-screen.is-leave {
  opacity: 0;
  transform: translateX(-12px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  pointer-events: none;
}

.glow-onboard-screen.is-enter {
  opacity: 0;
  transform: translateX(16px);
}

.glow-onboard-screen.is-enter-active {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.28s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.glow-onboard-chrome {
  position: relative;
  z-index: 12;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 6px;
  background: #fff;
}

.glow-onboard-chrome__side {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}

.glow-onboard-back {
  appearance: none;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.glow-onboard-progress,
.glow-onboard-progress-slot {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.glow-onboard-progress__track {
  width: min(30%, 104px);
  height: 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.glow-onboard-progress__fill {
  height: 100%;
  background: #111;
  border-radius: inherit;
}

.glow-onboard-screen__main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 8px 16px 88px;
  overflow: auto;
}

.glow-onboard-screen__scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 4px 14px 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.glow-onboard-screen__scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.glow-onboard-title {
  margin: 10px 0 18px;
  font-family: var(--font-serif);
  font-size: clamp(30px, 7vw, 35px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #111;
  text-align: center;
}

.glow-onboard-title--name {
  margin-top: 28px;
  font-size: clamp(32px, 8vw, 39px);
  line-height: 1.15;
}

.glow-onboard-title--pick {
  margin: 8px 0 10px;
  text-align: center;
  padding: 0 12px;
}

.glow-onboard-title strong {
  font-weight: 700;
}

.glow-onboard-title em,
.glow-onboard-splash__title em {
  font-style: italic;
  font-weight: 700;
}

.glow-onboard-input {
  display: block;
  width: 96%;
  height: 58px;
  margin: 0 auto;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: #efefef;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  color: #111;
  box-sizing: border-box;
}

.glow-onboard-input::placeholder {
  color: rgba(17, 17, 17, 0.35);
}

.glow-onboard-spacer {
  flex: 1;
  min-height: 180px;
}

.glow-onboard-cta,
.glow-onboard-screen > .glow-onboard-cta {
  appearance: none;
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 14;
  transform: translateX(-50%);
  width: 170px;
  height: 56px;
  margin: 0;
  border: 0;
  border-radius: 16px;
  background: #111;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  line-height: 22px;
  cursor: pointer;
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.2);
}

.glow-onboard-cta:disabled,
.glow-onboard-cta.is-disabled {
  background: #ececec;
  color: rgba(17, 17, 17, 0.38);
  box-shadow: none;
  cursor: default;
}

.glow-onboard-footer {
  flex: 0 0 auto;
  padding: 10px 16px 18px;
  background: #fff;
}

.glow-onboard-footer .glow-onboard-cta {
  position: static;
  transform: none;
  display: block;
  width: 100%;
  max-width: none;
  border-radius: 16px;
}

.glow-onboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 3%;
  width: 100%;
}

.glow-onboard-card {
  appearance: none;
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 0 0 0 transparent;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.glow-onboard-card.is-on {
  box-shadow:
    0 0 0 1.6px #111,
    0 6px 14px rgba(0, 0, 0, 0.12);
  transform: scale(1.02) rotate(-0.4deg);
}

.glow-onboard-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 1.2;
  background: #ececec;
  overflow: hidden;
}

.glow-onboard-card__media img,
.glow-onboard-card__media .soft-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.glow-onboard-card__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 12px;
  background: #fff;
}

.glow-onboard-card__radio {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.glow-onboard-card.is-on .glow-onboard-card__radio {
  border-color: #111;
}

.glow-onboard-card__dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #111;
}

.glow-onboard-card__label {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  color: #111;
}

.glow-onboard-subnav {
  display: flex;
  gap: 18px;
  align-items: baseline;
  justify-content: center;
  margin: 0 4px 14px;
}

.glow-onboard-subnav__tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: rgba(17, 17, 17, 0.35);
  cursor: pointer;
}

.glow-onboard-subnav__tab.is-active {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.glow-onboard-screen--loading {
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.glow-onboard-splash {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.glow-onboard-splash__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(22px, 5vw, 26px);
  font-weight: 500;
  line-height: 1.28;
  color: #111;
}

.glow-onboard-splash__title strong {
  font-weight: 700;
}

.glow-onboard-splash__track {
  width: 58%;
  max-width: 210px;
  height: 2px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.glow-onboard-splash__fill {
  height: 100%;
  width: 0;
  min-width: 2px;
  background: #000;
  border-radius: inherit;
}

.glow-onboard-screen--flow {
  position: absolute;
  inset: 0;
}

.glow-onboard-screen--flow .glow-onboard-chrome {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  box-sizing: border-box;
  pointer-events: none;
}

.glow-onboard-screen--flow .glow-onboard-back {
  pointer-events: auto;
}

.glow-onboard-screen--flow .glow-profile-flow__body {
  height: 100%;
  max-width: none;
  padding: 3.25rem 0.75rem 4.5rem;
}

.glow-onboard-screen--flow .glow-profile-flow__continue {
  bottom: 18px;
}

.glow-onboard-screen--customize .glow-profile-customize__title {
  margin-top: 4px;
}

.glow-onboard-screen--challenge .glow-profile-select-card {
  margin-bottom: 6px;
  text-align: center;
}

.glow-onboard-screen--challenge .glow-profile-select-card__name {
  text-align: center;
}

@media (max-width: 480px) {
  .glow-onboard-modal {
    padding: 0;
  }

  .glow-onboard-modal__panel {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
  }
}

/* ——— Legal / oferta ——— */
.glow-legal {
  max-width: 920px;
  margin: 0 auto;
  padding: 40px var(--pad) 96px;
  color: #111;
}

.glow-legal__hero {
  margin: 0 0 22px;
}

.glow-legal__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(28px, 4.5vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #111;
}

.glow-legal__subtitle {
  margin: 10px 0 0;
  font-family: var(--font-sans);
  font-size: clamp(16px, 2.4vw, 18px);
  font-weight: 600;
  line-height: 1.35;
  color: #111;
}

.glow-legal__version {
  margin: 14px 0 0;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: #111;
}

.glow-legal__body {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
  color: #222;
}

.glow-legal__body p {
  margin: 0 0 1em;
}

.glow-legal__body a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.glow-legal__body a:hover {
  opacity: 0.7;
}

.glow-legal__body h2 {
  margin: 2.1em 0 0.75em;
  font-family: var(--font-sans);
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 700;
  line-height: 1.25;
  color: #111;
}

.glow-legal__body strong {
  font-weight: 700;
  color: #111;
}

.glow-legal__body ul {
  margin: 0 0 1.1em;
  padding: 0 0 0 0.15em;
  list-style: none;
}

.glow-legal__body li {
  position: relative;
  margin: 0 0 0.45em;
  padding-left: 1.1em;
}

.glow-legal__body li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: rgba(17, 17, 17, 0.45);
}

.glow-legal__table-wrap {
  margin: 0 0 1.25em;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.glow-legal__table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  font-size: 14px;
}

.glow-legal__table th,
.glow-legal__table td {
  padding: 12px 14px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  text-align: left;
  vertical-align: top;
}

.glow-legal__table th {
  background: #f6f6f6;
  font-weight: 700;
  color: #111;
}

.glow-legal__requisites {
  margin: 0;
  display: grid;
  gap: 14px;
}

.glow-legal__requisites > div {
  display: grid;
  gap: 2px;
}

.glow-legal__requisites dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.45);
}

.glow-legal__requisites dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #111;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .glow-legal {
    padding-top: 18px;
    padding-bottom: 72px;
  }

  .glow-legal__body {
    font-size: 15px;
  }
}

/* Cookie banner — как у KHY: низ по центру, белая плашка, тонкая чёрная рамка */
.glow-cookie-banner {
  position: fixed;
  z-index: 12000;
  left: 50%;
  bottom: 20px;
  width: min(1040px, calc(100% - 32px));
  transform: translateX(-50%) translateY(28px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.42s ease;
  will-change: opacity, transform;
}

.glow-cookie-banner.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.glow-cookie-banner__inner {
  background: #fff;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.14);
  padding: 36px 40px 30px;
  box-sizing: border-box;
}

.glow-cookie-banner__title {
  margin: 0 0 14px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111;
  line-height: 1.3;
}

.glow-cookie-banner__text {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: #111;
}

.glow-cookie-banner__text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.glow-cookie-banner__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.glow-cookie-banner__btns {
  display: flex;
  gap: 12px;
  margin-left: 0;
}

.glow-cookie-banner__btn {
  appearance: none;
  min-width: 140px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  cursor: pointer;
  line-height: 1.2;
}

.glow-cookie-banner__btn[data-cookie-decline] {
  background: #f0eeea;
  color: #111;
}

.glow-cookie-banner__btn:hover {
  opacity: 0.88;
}

.glow-cookie-banner__btn[data-cookie-decline]:hover {
  background: #e6e3dd;
  color: #111;
  opacity: 1;
}

@media (max-width: 640px) {
  .glow-cookie-banner {
    width: calc(100% - 16px);
    bottom: 12px;
  }

  .glow-cookie-banner__inner {
    padding: 22px 18px 18px;
    border-radius: 16px;
  }

  .glow-cookie-banner__title {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .glow-cookie-banner__text {
    font-size: 12px;
  }

  .glow-cookie-banner__actions {
    margin-top: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .glow-cookie-banner__btns {
    margin-left: 0;
    width: 100%;
    gap: 10px;
  }

  .glow-cookie-banner__btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 16px;
    font-size: 13px;
  }
}


