/* 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;
}

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 резкого img */
.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 {
  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 {
  background-color: transparent;
}

.has-photo-ph::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: 0;
  background-image: var(--photo);
  background-size: cover;
  background-position: center;
  filter: blur(32px) saturate(1.06);
  transform: scale(1.15);
  pointer-events: none;
}

.hero-banner.has-photo-ph::before {
  background-position: center 32%;
}

.has-photo-ph.is-ready::before {
  opacity: 0;
  transition: opacity 0.4s ease;
}

img[data-soft-img] {
  position: relative;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.35s ease;
}

/* blur-плейсхолдер только пока грузится */
.has-photo-ph:not(.is-ready) > img[data-soft-img]:not(.is-loaded) {
  opacity: 0;
}

img[data-soft-img].is-loaded {
  opacity: 1;
}

.hero-banner > img[data-soft-img] {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* старый слой 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;
}

.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-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 {
  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;
}

body.is-auth-modal-open {
  overflow: hidden;
}

.glow-auth-modal[hidden],
.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;
}

.glow-auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.42);
}

.glow-auth-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  background: #fff;
  border-radius: 12px;
  padding: 36px 28px 28px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
  text-align: center;
}

.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__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111;
}

.glow-auth-modal__title {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 32px);
  font-weight: 600;
  line-height: 1.2;
  color: #111;
}

.glow-auth-modal__text {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(17, 17, 17, 0.72);
}

.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 {
  margin: 18px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(17, 17, 17, 0.45);
}

.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;
}

@media (max-width: 800px) {
  .nav-links .hide-sm {
    display: none;
  }

  .nav {
    padding: 12px 18px;
  }
}

/* ——— 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;
}

/* Vision */
.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 */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.quote {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 22px;
  border: 1px solid var(--line);
}

.quote blockquote {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.quote cite {
  font-style: normal;
  font-size: 13px;
  color: var(--faint);
}

@media (max-width: 800px) {
  .quotes {
    grid-template-columns: 1fr;
  }
}

/* Challenges — белый фон, одна ровная линия, тень, горизонтальный скролл */
.challenges-module {
  background: #fff;
  padding: clamp(64px, 10vh, 100px) 0 clamp(72px, 10vh, 110px);
  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;
}

.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: 28px 0 clamp(56px, 8vh, 88px);
}

.journal-wrap {
  /* шире, ближе к краям экрана — как отмечено на макете */
  width: min(1520px, calc(100% - 64px));
  margin: 0 auto;
}

.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-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;
}

.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(48px, 8vh, 80px);
}

.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(22px, 2.8vw, 36px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0;
  color: #111;
}

.match-lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #444;
  max-width: 36ch;
}

.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: -2px;
  right: 2px;
  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;
  margin: 8px 0 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 10px;
}

.match-step-banner--result {
  padding-bottom: 8px;
}

.match-result-card {
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin: 0 0 44px;
  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: 14px 0 14px;
  padding-top: 22px;
}

.match-result-thumbs-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  border-radius: 18px;
  overflow: hidden;
  background-color: transparent;
  aspect-ratio: 2.2 / 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: 4px 4px 0;
  text-align: left;
  flex: 1;
  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.35;
  color: #333;
  padding: 6px 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;
}

body.match-modal-open {
  overflow: hidden;
  padding-right: var(--match-sbw, 0px);
}

body.match-modal-open .nav,
body.match-modal-open .ticker {
  padding-right: var(--match-sbw, 0px);
}

/* 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: 42ch;
}

.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;
  }

  .app-download-copy p {
    max-width: 34ch;
  }

  .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);
}

@media (max-width: 700px) {
  .site-footer-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .site-footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .site-footer-right {
    width: 100%;
  }

  .site-footer-news {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .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-row {
    width: 100%;
  }

  .site-footer-links {
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
  }

  .site-footer-follow {
    min-height: 0;
    height: auto;
    justify-content: flex-start;
    gap: 20px;
  }

  .site-footer-copy {
    margin-top: auto;
    padding-top: clamp(28px, 4vh, 40px);
  }
}

/* ——— 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;
}

.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-media {
  border-radius: 2px;
  overflow: hidden;
  margin: 0 0 14px;
  background-color: transparent;
  aspect-ratio: 1 / 1;
}

.blog-tile--wide .blog-tile-media {
  aspect-ratio: 16 / 10;
}

.blog-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  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: 8px;
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a9a9a;
}

.blog-tile-meta-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.blog-tile-badge {
  flex-shrink: 0;
  color: #9a9a9a;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid #9a9a9a;
  border-radius: 4px;
  padding: 3px 7px;
  line-height: 1;
}

@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: 520px) {
  .blog-page {
    max-width: 100%;
  }

  .blog-mosaic {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .blog-tile--wide {
    grid-column: span 1;
  }

  .blog-tabs {
    padding-top: 28px;
  }
}

.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: 14px;
  }

  .glow-row-thumb {
    width: 38%;
    flex-basis: 38%;
  }

  .glow-row-title {
    font-size: 18px;
  }

  .glow-row-excerpt {
    font-size: 13px;
  }
}

.glow-reader {
  max-width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 32px var(--pad) 80px;
}

.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-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;
}

.glow-reader-figure--standard {
  aspect-ratio: 16 / 10;
}

.glow-reader-figure--compact {
  aspect-ratio: 21 / 9;
}

.glow-reader-figure--square {
  aspect-ratio: 1 / 1;
}

.glow-reader-figure--tall {
  aspect-ratio: 3 / 4;
}

.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 {
  margin: 28px 0 8px;
  padding: clamp(36px, 6vw, 52px) clamp(20px, 4vw, 40px);
  background: #3a4638;
  color: #fff;
  text-align: center;
  border-radius: 4px;
}

.glow-paywall-title {
  margin: 0 0 22px;
  font-family: var(--font-serif);
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.glow-paywall-btn {
  display: inline-flex;
  background: #fff !important;
  color: #111 !important;
  border: 0;
  cursor: pointer;
}

.glow-paywall-btn:hover {
  opacity: 0.92;
}

.glow-paywall-note {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

.glow-related-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(30px, 3.2vw, 38px);
  margin: 48px 0 12px;
}

.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);
}

