/* ЛИДЕРЫ XO — первый экран. Чёрный мир презентации: #0C0C0E, белый, красный #C03030 */

:root {
  --bg: #0C0C0E;
  --bg-card: #141416;
  --text: #F2F2F0;
  --text-dim: #9B9B9B;
  --accent: #C03030;
  --accent-soft: #C98A8A;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-door: cubic-bezier(0.76, 0, 0.24, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Golos Text", -apple-system, sans-serif;
  overflow-x: hidden;
}

/* зерно, чтобы чёрный не был плоским */
body::before {
  content: "";
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
  background-image: 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.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  animation: grain 9s steps(6) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-2%,1%); }
  40% { transform: translate(1%,-2%); }
  60% { transform: translate(-1%,2%); }
  80% { transform: translate(2%,-1%); }
}

/* ====== ИНТРО ====== */

.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: background 0.9s ease;
}
.intro.open { background: transparent; pointer-events: none; }
.intro.gone { display: none; }

.intro-glow {
  position: absolute;
  width: 70vmin;
  height: 70vmin;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192,48,48,0.28) 0%, rgba(192,48,48,0.07) 42%, transparent 68%);
  filter: blur(8px);
  opacity: 0;
  transform: scale(0.6);
}
.intro.lit .intro-glow {
  opacity: 1;
  transform: scale(1);
  transition: opacity 1.4s ease, transform 2.2s var(--ease-out);
}
.intro.open .intro-glow {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.intro-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 42px;
}
.intro-logo {
  position: relative;
  width: min(60vw, 760px);
  will-change: transform;
}
.intro-logo img {
  clip-path: inset(0 100% 0 0);
}
.intro.lit .intro-logo img {
  clip-path: inset(0 0 0 0);
  transition: clip-path 2.4s cubic-bezier(0.65, 0, 0.35, 1);
}
/* полёт в шапку: translate/scale задаёт JS через FLIP */
.intro.fly .intro-logo {
  transition: transform 1.5s var(--ease-door), opacity 0.3s 1.3s ease;
}
.intro-logo img { width: 100%; display: block; }
.intro-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,0.95) 46%, rgba(192,48,48,0.55) 52%, transparent 66%);
  background-size: 260% 100%;
  background-position: 120% 0;
  background-repeat: no-repeat;
  -webkit-mask-image: url("assets/logo-brand.png");
  mask-image: url("assets/logo-brand.png");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  opacity: 0;
}
.intro.lit .intro-shine {
  opacity: 1;
  animation: shine 1.5s ease-in-out 5s 1;
}
@keyframes shine {
  0% { background-position: 120% 0; }
  100% { background-position: -60% 0; }
}

/* строка загрузки интро */
.intro-load {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(46vw, 460px);
  transition: opacity 0.4s ease;
}
.intro.fly .intro-load { opacity: 0; }
.intro-bar {
  flex: 1;
  height: 2px;
  background: rgba(242,242,240,0.13);
  overflow: hidden;
}
.intro-bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
.intro-pct {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  min-width: 44px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ====== ШАПКА ====== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 4vw, 56px);
  background: linear-gradient(to bottom, rgba(12,12,14,0.9), transparent);
}
.header-logo img {
  height: 34px;
  display: block;
}
.header-logo { opacity: 0; }
.header.on .header-logo { opacity: 1; }

.header-actions {
  display: flex;
  gap: 12px;
  opacity: 0;
  transform: translateY(-10px);
}
.header.on .header-actions {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s ease, transform 0.9s var(--ease-out);
}

.btn {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 3px;
  white-space: nowrap;
}
.btn-ghost {
  color: var(--text);
  border: 1px solid rgba(242,242,240,0.25);
}
.btn-ghost:hover { border-color: rgba(242,242,240,0.6); }
.btn-accent {
  color: #fff;
  background: var(--accent);
}
.btn-accent:hover { background: #d23838; }

/* ====== ГЕРОЙ ====== */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(34px, 6vh, 72px);
  padding: 90px 0 34px;
  position: relative;
  z-index: 2;
}

.hero-text {
  padding: 0 clamp(20px, 4vw, 56px);
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.42em;
  color: var(--accent);
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(28px, 4vw, 62px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.025em;
  max-width: 24ch;
  margin: 0 auto;
}
.hero-title .xo { color: var(--accent); font-weight: 700; }
.hero-title .w { display: inline-block; }

.hero-sub {
  margin-top: 26px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 54ch;
}

/* появление: сдвиг 28px, 900мс */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(10px);
}
.on .reveal, .reveal.on {
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition: opacity 0.9s ease, transform 0.9s var(--ease-out), filter 0.9s ease;
}

/* ====== СТЕНА ЛОГОТИПОВ В ГЕРОЕ ====== */

.hero-divider {
  width: min(74vw, 1080px);
  height: 1px;
  margin: 3vh auto 0;
  background: linear-gradient(90deg, transparent, rgba(163,43,43,0.9) 18%, rgba(163,43,43,0.9) 82%, transparent);
  box-shadow: 0 0 16px rgba(192,48,48,0.5), 0 0 40px rgba(192,48,48,0.25);
}
.logowall {
  margin-top: 6vh;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 22px clamp(22px, 2.6vw, 40px);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}
.lw-item {
  position: relative;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.lw-item:hover { transform: scale(1.08); }
.lw-c {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.lw-item:hover .lw-c { opacity: 1; }
.lw-logo {
  height: 22px;
  width: auto;
  max-width: 128px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.62;
  transition: opacity 0.25s ease, filter 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
/* при наведении: настоящие цвета логотипа */
.lw-item:hover .lw-logo { opacity: 0; }

/* попап: фото + ФИО человека от компании */
.lw-pop {
  position: absolute;
  bottom: calc(100% + 16px);
  left: 50%;
  transform: translate(-50%, 8px) scale(0.97);
  display: flex;
  align-items: center;
  gap: 18px;
  background: #18181B;
  border: 1px solid rgba(242,242,240,0.12);
  border-radius: 14px;
  padding: 14px 28px 14px 14px;
  white-space: nowrap;
  box-shadow: 0 24px 60px rgba(0,0,0,0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.3s var(--ease-out);
  z-index: 20;
}
.lw-pop::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border: 6px solid transparent;
  border-top-color: #18181B;
}
.lw-item:hover .lw-pop {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}
.lw-pop img {
  width: 96px;
  height: 124px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.lw-pop b {
  display: block;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.lw-pop i {
  display: block;
  font-style: normal;
  margin-top: 6px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
}
.lw-pop span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}

/* ====== ЛЕНТА ЛИЦ ====== *//* ====== ЛЕНТА ЛИЦ ====== */

.faces {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.faces-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(40px, 9vw, 160px);
  z-index: 3;
  pointer-events: none;
}
.faces-fade-left { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.faces-fade-right { right: 0; background: linear-gradient(to left, var(--bg), transparent); }

.marquee { overflow: hidden; }
.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  will-change: transform;
}

.person {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid rgba(242,242,240,0.07);
  border-radius: 4px;
  padding: 10px 22px 10px 10px;
  flex: none;
}
.person > img {
  width: 56px;
  height: 72px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}
.person-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}
.plogo {
  width: 27px;
  height: 27px;
  border-radius: 4px;
  background: #fff;
  object-fit: contain;
  padding: 1px;
  flex: none;
}
.person-co, .member-co { display: flex; align-items: center; gap: 7px; }
.person-co {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--accent-soft);
  white-space: nowrap;
  margin-top: 3px;
}

/* ====== НИЗ ГЕРОЯ ====== */

.hero-foot {
  display: flex;
  align-items: baseline;
  gap: clamp(20px, 3.5vw, 52px);
  padding: 0 clamp(20px, 4vw, 56px) 6px;
  color: var(--text-dim);
  font-size: 13.5px;
}
.hero-stat b {
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
}
.hero-scroll {
  margin-left: auto;
  letter-spacing: 0.28em;
  font-size: 11px;
  text-transform: uppercase;
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 0.45; } 50% { opacity: 1; } }

/* ====== МОБИЛЬНАЯ ====== */

@media (max-width: 720px) {
  .intro-logo { width: 72vw; }
  .header { padding: 12px 14px; }
  .header-logo img { height: 22px; }
  .header-actions { gap: 8px; }
  .btn { padding: 8px 11px; font-size: 12px; }
  .hero { padding-top: 92px; gap: 26px; }
  .hero-text { padding: 0 16px; }
  .hero-title { max-width: none; font-size: 24px; }
  .hero-sub { max-width: 100%; }
  .hero-foot { flex-wrap: wrap; gap: 14px 22px; padding: 0 16px 4px; }
  .hero-scroll { display: none; }
}

/* ====== ДВИЖЕНИЕ ВЫКЛЮЧЕНО ====== */

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  .header-logo, .header-actions { opacity: 1 !important; transform: none !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  body::before { animation: none; }
  .hero-scroll { animation: none; }
}

/* ================== СЕКЦИИ НИЖЕ ГЕРОЯ ================== */

section { position: relative; z-index: 2; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.42em;
  color: var(--accent);
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(26px, 2.9vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.section-head {
  padding: 0 clamp(20px, 4vw, 56px);
  max-width: 1360px;
  margin: 0 auto clamp(32px, 4.5vh, 56px);
}
.h-oneline { white-space: nowrap; font-size: clamp(22px, 2.35vw, 36px); }

/* появление по скроллу */
.s-reveal {
  opacity: 0;
  transform: translateY(28px);
}
.s-reveal.on {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s ease, transform 0.9s var(--ease-out);
}

/* ---------- КТО МЫ ---------- */

.about { padding: clamp(90px, 14vh, 160px) 0; }
.about-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(40px, 6vw, 110px);
  padding: 0 clamp(20px, 4vw, 56px);
  max-width: 1360px;
  margin: 0 auto;
}
.about-line {
  font-size: clamp(22px, 2.1vw, 32px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 26px;
  letter-spacing: -0.01em;
}
.about-line-dim {
  color: var(--text-dim);
  font-weight: 500;
  font-size: clamp(17px, 1.5vw, 22px);
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px 32px;
  align-content: center;
}
.stat { display: flex; flex-direction: column; }
.stat::before {
  content: "";
  width: 56px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 18px;
}
.stat-num {
  font-size: clamp(44px, 4vw, 64px);
  font-weight: 800;
  line-height: 1;
}
.stat-unit { font-size: 16px; font-weight: 600; margin-top: 6px; }
.stat-cap { font-size: 13.5px; color: var(--text-dim); margin-top: 8px; }

/* ---------- УЧАСТНИКИ ---------- */

.members { padding: clamp(70px, 10vh, 130px) 0; }
.members-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 0 clamp(20px, 4vw, 56px);
  max-width: 1360px;
  margin: 0 auto;
}
.member {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid rgba(242,242,240,0.07);
  border-radius: 4px;
  padding: 12px;
}
.member > img {
  width: 62px;
  height: 80px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
  flex: none;
}
.member-co { font-size: 13px; font-weight: 500; color: var(--accent-soft); }
.member-name { font-size: 15px; font-weight: 600; line-height: 1.25; margin-top: 4px; }
.members-more {
  padding: 22px clamp(20px, 4vw, 56px) 0;
  max-width: 1360px;
  margin: 0 auto;
  color: var(--text-dim);
  font-size: 14px;
}
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: clamp(40px, 6vh, 70px) clamp(20px, 4vw, 56px) 0;
  max-width: 1360px;
  margin: 0 auto;
}
.quote {
  border-top: 2px solid var(--accent);
  padding: 22px 4px 0;
  display: flex;
  flex-direction: column;
}
.quote figcaption { margin-top: auto; padding-top: 18px; }
.quote blockquote {
  font-size: clamp(13.5px, 1.05vw, 15.5px);
  line-height: 1.5;
  font-weight: 500;
}
.quote figcaption {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 12px;
}
.quote figcaption b { display: block; color: var(--text); font-size: 14px; }
.q-photo {
  width: 52px;
  height: 66px;
  object-fit: cover;
  border-radius: 5px;
  flex: none;
}
.q-hidden { display: none; }
.btn-more {
  display: block;
  margin: 28px auto 0;
  cursor: pointer;
  background: none;
  font-family: inherit;
}

/* ---------- СОБЫТИЯ ---------- */

.events {
  padding: clamp(90px, 13vh, 150px) 0;
  background: linear-gradient(180deg, transparent, rgba(192,48,48,0.05) 40%, transparent);
}
.events-grid {
  padding: 0 clamp(20px, 4vw, 56px);
  max-width: 920px;
  margin: clamp(36px, 5vh, 60px) auto 0;
}
.section-head-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.events-phrase {
  margin: 18px 0 0;
  color: var(--text-dim);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.55;
  max-width: 62ch;
}
.trips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 0 clamp(20px, 4vw, 56px);
  max-width: 1360px;
  margin: 0 auto;
}
.trip {
  aspect-ratio: 16 / 9;
  border-radius: 5px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(242,242,240,0.07);
}
.trip iframe, .trip video, .trip img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: 0;
}
.events-formats h2 { margin-bottom: clamp(28px, 4vh, 48px); max-width: 15ch; }
.format {
  display: flex;
  gap: 22px;
  padding: 24px 0;
  border-top: 1px solid rgba(242,242,240,0.1);
}
.format-n {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  padding-top: 5px;
}
.format h3 { font-size: 19px; font-weight: 700; }
.format p { margin-top: 8px; color: var(--text-dim); font-size: 15px; line-height: 1.5; }

.event-card {
  background: var(--bg-card);
  border: 1px solid rgba(242,242,240,0.09);
  border-radius: 6px;
  padding: clamp(26px, 2.6vw, 42px);
}
.event-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.34em;
  color: #fff;
  background: var(--accent);
  display: inline-block;
  padding: 7px 12px;
  border-radius: 2px;
}
.event-date {
  margin-top: 22px;
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 800;
}
.event-title { margin-top: 8px; font-size: 17px; font-weight: 600; color: var(--text-dim); }
.event-list { margin: 24px 0 30px; list-style: none; }
.event-list li {
  padding: 12px 0 12px 22px;
  border-top: 1px solid rgba(242,242,240,0.08);
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--text-dim);
  position: relative;
}
.event-list li::before {
  content: "↗";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.event-list b { color: var(--text); }

/* ---------- КНИГИ ---------- */

.books { padding: clamp(56px, 8vh, 96px) 0; }
.books-grid {
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: clamp(30px, 4vw, 70px);
  padding: 0 clamp(20px, 4vw, 56px);
  max-width: 1360px;
  margin: 0 auto;
  align-items: center;
}
.books-text h2 { margin-bottom: 26px; max-width: 18ch; }
.books-p { font-size: clamp(15px, 1.3vw, 18px); line-height: 1.6; max-width: 52ch; }
.books-p-dim { margin-top: 16px; color: var(--text-dim); font-size: 15px; }
.books-img {
  position: relative;
}
.books-img::before {
  content: "";
  position: absolute;
  inset: 6%;
  background: radial-gradient(closest-side, rgba(192,48,48,0.13), transparent 72%);
  pointer-events: none;
}
.books-img img {
  position: relative;
  width: 100%;
  display: block;
}


/* ---------- ГАЛЕРЕЯ ---------- */

.gallery { padding: clamp(70px, 10vh, 130px) 0; }
.gallery-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 0 clamp(20px, 4vw, 56px);
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.gallery-strip::-webkit-scrollbar { display: none; }
.gallery-strip img {
  height: clamp(260px, 38vh, 420px);
  border-radius: 5px;
  scroll-snap-align: start;
  flex: none;
  max-width: none;
}
.gallery-hint {
  padding: 18px clamp(20px, 4vw, 56px) 0;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ---------- ПРЕССА ---------- */

.press {
  padding: clamp(60px, 8vh, 100px) 0;
  border-top: 1px solid rgba(242,242,240,0.08);
  border-bottom: 1px solid rgba(242,242,240,0.08);
}
.press-row {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: clamp(30px, 4vw, 80px);
  padding: 0 clamp(20px, 4vw, 56px);
  max-width: 1360px;
  margin: 0 auto;
}
.press-title { font-size: clamp(24px, 2.4vw, 36px); }
.press-items { display: grid; gap: 0; }
.press-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid rgba(242,242,240,0.08);
  font-size: 15px;
  line-height: 1.45;
}
.press-item:first-child { border-top: 0; padding-top: 0; }
.press-date { color: var(--text-dim); font-size: 13.5px; padding-top: 2px; }

/* ---------- ПАРТНЁРЫ ---------- */

.partners { padding: clamp(80px, 11vh, 140px) 0; }
.partners-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.34em;
  color: #fff;
  background: var(--accent);
  display: block;
  text-align: center;
  padding: 9px 12px;
  margin: 0 clamp(20px, 4vw, 56px) 20px;
  max-width: 1248px;
}
@media (min-width: 1361px) { .partners-tag { margin-left: auto; margin-right: auto; } }
.logo-row {
  display: grid;
  gap: 2px;
  padding: 0 clamp(20px, 4vw, 56px);
  max-width: 1360px;
  margin: 0 auto 44px;
}
.logo-row-6 { grid-template-columns: repeat(3, 1fr); }
.logo-row-9 { grid-template-columns: repeat(3, 1fr); }
.logo-cell { background: #0E0E11; }
.logo-cell img { width: 100%; display: block; }

/* ---------- ВХОД / ЗАЯВКА ---------- */

.join {
  padding: clamp(90px, 13vh, 160px) 0 clamp(70px, 9vh, 110px);
  position: relative;
  overflow: hidden;
}
.join-faces {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0.22;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1), transparent);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1), transparent);
}
.join-grid {
  position: relative;
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(40px, 6vw, 110px);
  padding: 0 clamp(20px, 4vw, 56px);
  max-width: 1360px;
  margin: 0 auto;
  align-items: start;
  padding-top: clamp(70px, 10vh, 120px);
}
.join h2 { margin-bottom: 18px; }
.join-p { color: var(--text-dim); font-size: 15.5px; line-height: 1.55; max-width: 44ch; margin-bottom: 26px; }
.join-warn { color: var(--text); font-weight: 600; }
.btn-big { padding: 15px 30px; font-size: 15px; display: inline-block; }

.join-form form { display: grid; gap: 12px; max-width: 480px; }
.join-form input[type="text"], .join-form select {
  background: var(--bg-card);
  border: 1px solid rgba(242,242,240,0.14);
  border-radius: 3px;
  color: var(--text);
  font: 500 15px "Golos Text", sans-serif;
  padding: 14px 16px;
  width: 100%;
  appearance: none;
}
.join-form select:invalid { color: var(--text-dim); }
.join-form input::placeholder { color: var(--text-dim); }
.join-form input:focus, .join-form select:focus {
  outline: none;
  border-color: rgba(242,242,240,0.45);
}
.agree {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.45;
  margin: 6px 0 10px;
  cursor: pointer;
}
.agree input { margin-top: 2px; accent-color: var(--accent); }
.join-form button { border: 0; cursor: pointer; font-family: "Golos Text", sans-serif; }
.form-done {
  display: none;
  color: var(--text);
  background: rgba(192,48,48,0.14);
  border: 1px solid rgba(192,48,48,0.5);
  border-radius: 3px;
  padding: 14px 16px;
  font-size: 14.5px;
}
.join-form.sent form > *:not(.form-done) { display: none; }
.join-form.sent .form-done { display: block; }

/* ---------- ФУТЕР ---------- */

.footer {
  border-top: 1px solid rgba(242,242,240,0.08);
  padding: clamp(40px, 6vh, 64px) clamp(20px, 4vw, 56px) 28px;
  position: relative;
  z-index: 2;
}
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  max-width: 1248px;
  margin: 0 auto;
}
.footer-logo { height: 28px; }
.footer-org { color: var(--text-dim); font-size: 13.5px; line-height: 1.5; max-width: 52ch; }
.footer-stats {
  display: flex;
  gap: clamp(24px, 4vw, 60px);
  max-width: 1248px;
  margin: 34px auto 0;
  color: var(--text-dim);
  font-size: 13.5px;
  flex-wrap: wrap;
}
.footer-stats b { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  max-width: 1248px;
  margin: 36px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(242,242,240,0.07);
  color: var(--text-dim);
  font-size: 12.5px;
}
.footer-bottom a { color: var(--text-dim); text-decoration: none; }
.footer-bottom a:hover { color: var(--text); }

/* ---------- НАВИГАЦИЯ ШАПКИ ---------- */

.header-nav {
  display: flex;
  gap: 26px;
  opacity: 0;
}
.header.on .header-nav { opacity: 1; transition: opacity 0.9s ease; }
.header-nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.header-nav a:hover { color: var(--text); }
.header.scrolled {
  background: rgba(12,12,14,0.88);
  backdrop-filter: blur(12px);
}
html { scroll-behavior: smooth; }

/* ---------- МОБИЛЬНАЯ: СЕКЦИИ ---------- */

@media (max-width: 960px) {
  .about-grid, .books-grid, .join-grid { grid-template-columns: 1fr; }
  .trips-grid { grid-template-columns: 1fr; }
  .members-grid { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .press-row { grid-template-columns: 1fr; gap: 24px; }
  .logo-row-6, .logo-row-9 { grid-template-columns: 1fr 1fr; }
  .header-nav { display: none; }
}
@media (max-width: 720px) {
  .members-grid { grid-template-columns: 1fr; }
  .logo-row-6, .logo-row-9 { grid-template-columns: 1fr 1fr; }
  .press-item { grid-template-columns: 1fr; gap: 4px; }
  .footer-top { flex-direction: column; gap: 18px; }
  .section-head, .members-grid, .members-more, .quotes, .about-grid,
  .events-grid, .books-grid, .press-row, .logo-row, .join-grid,
  .gallery-strip, .gallery-hint { padding-left: 16px; padding-right: 16px; }
  .partners-tag { margin-left: 16px; margin-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .s-reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}


/* ====== ФОТОЛЕНТА (кто мы) ====== */

.photoline {
  margin-top: clamp(48px, 7vh, 90px);
  overflow: hidden;
}
.photoline img {
  height: clamp(150px, 20vh, 220px);
  border-radius: 4px;
  display: block;
  flex: none;
}

/* ====== КАРУСЕЛИ ВЫЕЗДОВ ====== */

.car {
  margin: 0 0 clamp(36px, 5vh, 56px);
}
.car-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 clamp(20px, 4vw, 56px);
}
.car-head h3 {
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 600;
}
.car-head h3 span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  margin-right: 12px;
}
.car-nav button {
  background: var(--bg-card);
  border: 1px solid rgba(242,242,240,0.14);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  margin-left: 8px;
}
.car-nav button:hover { border-color: rgba(242,242,240,0.5); }
.car-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.car-strip::-webkit-scrollbar { display: none; }
.car-strip img {
  height: clamp(200px, 26vh, 300px);
  border-radius: 5px;
  flex: none;
  scroll-snap-align: start;
  display: block;
}

/* ====== БЛИЖАЙШИЙ ВЫЕЗД (fullscreen) ====== */

.nexttrip {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.nexttrip-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nexttrip-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,12,14,0.86), rgba(12,12,14,0.62) 45%, rgba(12,12,14,0.9));
}
.nexttrip-content {
  position: relative;
  text-align: center;
  padding: 120px clamp(20px, 4vw, 56px);
  max-width: 820px;
}
.nexttrip-date {
  margin-top: 30px;
  font-size: clamp(36px, 4.4vw, 66px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.nexttrip-content h2 {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 600;
}
.nexttrip-facts {
  list-style: none;
  margin: 34px auto 38px;
  max-width: 54ch;
}
.nexttrip-facts li {
  padding: 13px 0;
  border-top: 1px solid rgba(242,242,240,0.16);
  font-size: clamp(14.5px, 1.25vw, 17px);
  color: var(--text);
}
.nexttrip-facts li:last-child { border-bottom: 1px solid rgba(242,242,240,0.16); }

/* ====== ВИДЕО ====== */

.videos { padding: clamp(80px, 11vh, 140px) 0; }
.saying { padding: clamp(70px, 10vh, 130px) 0; }
.quotes-12 { grid-template-columns: repeat(3, 1fr); row-gap: clamp(36px, 5vh, 56px); }

@media (max-width: 960px) {
  .quotes-12 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .quotes-12 { grid-template-columns: 1fr; }
  .h-oneline { white-space: normal; }
  .car-head { padding: 0 16px; }
  .nexttrip-content { padding: 90px 16px; }
}


/* ====== ВИДЕО: ОБЛОЖКИ ====== */

.trip { position: relative; }
.trip-cover {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: var(--bg-card);
  text-align: left;
  font-family: inherit;
}
.trip-cover > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  transition: opacity 0.35s ease, transform 0.5s var(--ease-out);
}
.trip-cover:hover > img { opacity: 0.55; transform: scale(1.04); }
.trip-num {
  position: absolute;
  left: 22px;
  top: 14px;
  font-size: 44px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.trip-title {
  position: absolute;
  left: 22px;
  bottom: 40px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}
.trip-place {
  position: absolute;
  left: 22px;
  bottom: 18px;
  font-size: 13px;
  color: var(--text-dim);
}
.trip-play {
  position: absolute;
  right: 20px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  padding-left: 3px;
  transition: transform 0.3s var(--ease-out);
}
.trip-cover:hover .trip-play { transform: scale(1.12); }
.trip-soon { cursor: default; }
.trip-badge {
  position: absolute;
  right: 20px;
  bottom: 24px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: #fff;
  background: rgba(192,48,48,0.9);
  padding: 8px 12px;
  border-radius: 2px;
}

/* ====== ИСТОРИЯ ====== */

.history { padding: clamp(80px, 11vh, 140px) 0; }
.hist-grid {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: clamp(40px, 5vw, 90px);
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
  align-items: start;
}
.hist-nav {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hist-nav button {
  display: flex;
  align-items: baseline;
  gap: 16px;
  background: none;
  border: 0;
  border-left: 2px solid rgba(242,242,240,0.1);
  padding: 12px 0 12px 20px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--text-dim);
  transition: color 0.3s ease, border-color 0.3s ease;
}
.hist-nav button b {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-soft);
  min-width: 86px;
  transition: color 0.3s ease;
}
.hist-nav button span { font-size: 15px; font-weight: 500; }
.hist-nav button.on {
  color: var(--text);
  border-left-color: var(--accent);
}
.hist-nav button.on b { color: var(--accent); }
.hist-body { min-width: 0; }
.hist-chapter {
  padding: clamp(28px, 4vh, 44px) 0;
  border-top: 1px solid rgba(242,242,240,0.09);
}
.hist-chapter:first-child { border-top: 0; padding-top: 0; }
.hist-chapter h3 {
  font-size: clamp(20px, 1.9vw, 27px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.hist-chapter h3 span {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.18em;
  margin-bottom: 10px;
}
.hist-chapter p {
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 58ch;
}
.hist-chapter img {
  margin-top: 22px;
  width: 100%;
  max-width: 560px;
  border-radius: 5px;
  display: block;
}

@media (max-width: 960px) {
  .hist-grid { grid-template-columns: 1fr; }
  .hist-nav { display: none; }
}

.car-line { overflow: hidden; }
.car-line img {
  height: clamp(200px, 26vh, 300px);
  border-radius: 5px;
  flex: none;
  display: block;
}


/* ====== ПРЕССА: СПИСОК СТАТЕЙ ====== */

.press-list {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}
.press-link {
  display: grid;
  grid-template-columns: 190px 1fr 30px;
  gap: 20px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid rgba(242,242,240,0.09);
  text-decoration: none;
  color: var(--text);
}
.press-link:last-child { border-bottom: 1px solid rgba(242,242,240,0.09); }
.press-src {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-soft);
}
.press-link p {
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 500;
  line-height: 1.45;
  transition: color 0.25s ease;
}
.press-arr {
  color: var(--text-dim);
  transition: color 0.25s ease, transform 0.3s var(--ease-out);
}
.press-link:hover p { color: var(--accent-soft); }
.press-link:hover .press-arr { color: var(--accent); transform: translate(3px, -3px); }
@media (max-width: 720px) {
  .press-link { grid-template-columns: 1fr 24px; }
  .press-src { grid-column: 1 / -1; }
}


/* ====== ПРЕССА: ЛЕНТА КАРТОЧЕК ====== */

.press-line { overflow: hidden; }
.press-card {
  width: clamp(320px, 30vw, 440px);
  flex: none;
  background: var(--bg-card);
  border: 1px solid rgba(242,242,240,0.09);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: block;
  padding-bottom: 20px;
}
.press-card > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  margin-bottom: 16px;
}
.press-card-src {
  display: block;
  padding: 0 20px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-soft);
}
.press-card p {
  padding: 8px 20px 0;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.4;
}
.press-card-arr {
  display: block;
  padding: 12px 20px 0;
  font-size: 13px;
  color: var(--text-dim);
  transition: color 0.25s ease;
}
.press-card:hover .press-card-arr { color: var(--accent); }
.press-card:hover { border-color: rgba(242,242,240,0.25); }


/* пресса: список с логотипами изданий */
.press-list {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}
.press-link {
  display: grid;
  grid-template-columns: 200px 1fr 30px;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid rgba(242,242,240,0.09);
  text-decoration: none;
  color: var(--text);
}
.press-link:last-child { border-bottom: 1px solid rgba(242,242,240,0.09); }
.press-logo { display: flex; align-items: center; height: 26px; overflow: visible; }
.press-logo img { width: auto; opacity: 0.85; }
.press-link p {
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 500;
  line-height: 1.45;
  transition: color 0.25s ease;
}
.press-arr {
  color: var(--text-dim);
  transition: color 0.25s ease, transform 0.3s var(--ease-out);
}
.press-link:hover p { color: var(--accent-soft); }
.press-link:hover .press-arr { color: var(--accent); transform: translate(3px, -3px); }
.press-link:hover .press-logo img { opacity: 1; }
@media (max-width: 720px) {
  .press-link { grid-template-columns: 1fr 24px; gap: 10px 14px; }
  .press-logo { grid-column: 1 / -1; }
}


/* ================== МОБИЛЬНАЯ ПРАВКА 26.10.2026 (только ≤768px, десктоп не меняется) ================== */

.h-mob { display: none; }
.hist-more { display: none; }

@media (max-width: 768px) {
  /* вёрстка зафиксирована по ширине: ничего не уезжает вбок */
  html, body { overflow-x: hidden; overflow-x: clip; max-width: 100%; }
  main, section, footer { max-width: 100vw; }

  /* 1. Герой: заголовок ближе к центру экрана */
  .hero { padding-top: 64px; padding-bottom: 32px; gap: 0; justify-content: flex-start; }
  .hero-text { padding-top: 13svh; }
  .hero-divider { margin: 40px auto 30px; width: 82vw; }

  /* 2. Стена логотипов: ровно 20 штук, сетка 4×5, без движения.
     Каждый логотип вписан в свою ячейку: широкие ограничены шириной, высокие — высотой */
  .logowall {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 58px;
    gap: 12px 10px;
    justify-items: stretch;
    align-items: stretch;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 0 12px;
    touch-action: pan-y;
  }
  .lw-item { display: flex; justify-content: center; align-items: center; width: 100%; height: 100%; margin: 0 !important; transform: none !important; min-width: 0; order: var(--mo, 99); }
  .lw-item.lw-x { display: none; }
  .lw-item .lw-logo { width: auto; height: auto !important; max-width: 88%; max-height: calc(var(--h) * 1px); flex: none; }
  /* ВсеИнструменты и Rostic's — в 1,5 раза крупнее */
  .lw-item[data-n="3"] .lw-logo { max-width: 114%; max-height: 22px; }
  .lw-item[data-n="10"] .lw-logo { max-height: 36px; }
  /* Медси — оптически чуть правее и выше */
  .lw-item[data-n="11"] .lw-logo { max-width: 80%; transform: translate(4px, -3px) scale(1.3); }
  /* РБК — на оптическую среднюю линию ряда */
  .lw-item[data-n="17"] .lw-logo { transform: translateY(-4px); }
  .lw-pop, .lw-c { display: none; }
  .lw-item:hover .lw-logo { opacity: 0.62; }

  /* шапка влезает в 375 с запасом */
  .header { padding: 12px 12px; }
  .header-logo img { height: 20px; }
  .header-actions { gap: 6px; }
  .header-actions .btn { padding: 8px 9px; font-size: 11.5px; }

  /* 3. Первые лица: ровно 2 колонки, карточки компактнее, меньше отступы */
  .members { padding: 56px 0 28px; }
  .members .section-head { margin-bottom: 20px; }
  .members-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-left: 16px; padding-right: 16px; }
  .member { gap: 8px; padding: 7px; align-items: center; min-width: 0; }
  .member > img { width: 42px; height: 56px; }
  .member > div { min-width: 0; }
  .member-co { font-size: 11px; gap: 5px; line-height: 1.25; }
  .member-co span { min-width: 0; overflow-wrap: anywhere; }
  .member-co .plogo { display: none; }
  .member-name { font-size: 12.5px; margin-top: 2px; overflow-wrap: anywhere; }
  .members-more { padding-top: 14px; font-size: 13px; }

  /* 4. Цитаты: «Мнение участников сообщества» — одной строкой, с красным акцентом */
  .saying { padding-top: 36px; }
  .saying-h .h-desk { display: none; }
  .saying-h .h-mob { display: inline-block; white-space: nowrap; }
  .saying-h { font-size: clamp(19px, 5.55vw, 24px); letter-spacing: -0.02em; }
  .saying-h em { font-style: normal; color: var(--accent); }
  .saying-h::after {
    content: "";
    display: block;
    width: 48px;
    height: 2px;
    margin-top: 12px;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(192,48,48,0.5);
  }
  .saying .quotes { padding-top: 24px; }

  /* 5. Видео: обычная вертикальная стопка, никакого бокового пролистывания */
  .trips-grid { grid-template-columns: 1fr; gap: 12px; padding-left: 16px; padding-right: 16px; overflow: visible; touch-action: pan-y; }
  .trip-num { font-size: 34px; left: 16px; top: 10px; }
  .trip-title { left: 16px; }
  .trip-place { left: 16px; }

  /* 6. История: текст вехи свёрнут до 3 строк, «Подробнее» / «Свернуть» */
  .hist-chapter p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
  }
  .hist-chapter.hist-open p { display: block; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; }
  .hist-chapter.hist-long .hist-more,
  .hist-chapter.hist-open .hist-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin-top: 4px;
    padding: 0;
    background: none;
    border: 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-soft);
    cursor: pointer;
  }
  .hist-more::after { content: "↓"; color: var(--accent); transition: transform 0.25s ease; }
  .hist-open .hist-more::after { transform: rotate(180deg); }
}

/* ====== ИНТРО НА ТЕЛЕФОНЕ: на 30% быстрее (все фазы ×0.7; тайминги JS — INTRO_K в script.js) ====== */
@media (max-width: 768px) {
  .intro { transition: background 0.63s ease; }
  .intro.lit .intro-glow { transition: opacity 0.98s ease, transform 1.54s var(--ease-out); }
  .intro.open .intro-glow { transition: opacity 0.49s ease; }
  .intro.lit .intro-logo img { transition: clip-path 1.68s cubic-bezier(0.65, 0, 0.35, 1); }
  .intro.fly .intro-logo { transition: transform 1.05s var(--ease-door), opacity 0.21s 0.91s ease; }
  .intro.lit .intro-shine { animation: shine 1.05s ease-in-out 3.5s 1; }
}

/* ====== ФИКСИРОВАННЫЕ ОТСТУПЫ МЕЖДУ БЛОКАМИ (26.10.2026) ======
   --section-gap: расстояние от конца содержимого блока до начала следующего.
   Каждый блок получает половину сверху и половину снизу. */
:root { --section-gap: 120px; }
.about, .members, .saying, .events, .videos, .history, .books, .press, .partners, .join {
  padding-top: calc(var(--section-gap) / 2);
  padding-bottom: calc(var(--section-gap) / 2);
}
.footer { padding-top: calc(var(--section-gap) / 2); }
.hero { padding-bottom: calc(var(--section-gap) / 2); }

@media (max-width: 768px) {
  :root { --section-gap: 56px; }
  .hero { min-height: 0; padding-bottom: calc(var(--section-gap) / 2); }
  .nexttrip { margin: calc(var(--section-gap) / 2) 0; }
  .about, .members, .saying, .events, .videos, .history, .books, .press, .partners, .join {
    padding-top: calc(var(--section-gap) / 2);
    padding-bottom: calc(var(--section-gap) / 2);
  }
}

/* призрачная лента лиц в «Вход/Заявка» на телефоне — на ~35% заметнее, но остаётся фоном */
@media (max-width: 768px) {
  .join-faces { opacity: 0.3; }
}

/* убираем внутренние «хвосты», чтобы отступ между блоками был ровно --section-gap */
.car:last-child { margin-bottom: 0; }
.partners .logo-row { margin-bottom: 0; }
.nexttrip { margin: calc(var(--section-gap) / 2) 0; }

/* ====== ТЕЛЕФОН: БУРГЕР-МЕНЮ И ПОПАП ЗАЯВКИ (на десктопе скрыты) ====== */
.burger, .mmenu, .lead { display: none; }

@media (max-width: 768px) {
  .header { justify-content: flex-start; gap: 4px; padding-left: 4px; }
  .burger {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 44px; height: 44px; flex: none;
    background: none; border: 0; padding: 0; cursor: pointer;
    opacity: 0; transition: opacity 0.6s ease;
  }
  .header.on .burger { opacity: 1; }
  .burger i { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 1px; }
  .header-logo { margin-left: 6px; }
  .header-actions { margin-left: auto; }
  .header-actions .btn { padding: 10px 14px; font-size: 13px; min-height: 40px; display: inline-flex; align-items: center; }
  .header-actions .btn.btn-ghost { display: none; }   /* «Войти в кабинет» — в меню, пункт «Личный кабинет» */

  .mmenu, .lead {
    display: flex;
    position: fixed; inset: 0; z-index: 200;
    height: 100dvh;
    background: rgba(12,12,14,0.985);
    flex-direction: column;
    padding: 12px 16px calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; transform: translateY(-12px);
    transition: opacity 0.3s ease, transform 0.3s var(--ease-out);
  }
  .mmenu[hidden], .lead[hidden] { display: none; }
  .mmenu.open, .lead.open { opacity: 1; transform: none; }
  .mmenu::before {
    content: ""; position: absolute; left: 50%; top: 18%; width: 90vw; height: 90vw; transform: translateX(-50%);
    background: radial-gradient(circle, rgba(192,48,48,0.12), transparent 65%); pointer-events: none;
  }
  .mmenu-top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; position: relative; }
  .mmenu-logo { height: 20px; margin-left: 10px; }
  .mmenu-close { width: 44px; height: 44px; background: none; border: 0; position: relative; cursor: pointer; flex: none; }
  .mmenu-close i { position: absolute; left: 11px; top: 21px; width: 22px; height: 2px; background: var(--text); }
  .mmenu-close i:first-child { transform: rotate(45deg); }
  .mmenu-close i:last-child { transform: rotate(-45deg); }
  .mmenu-nav {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px;
    margin-top: 18px; position: relative;
  }
  .mmenu-nav a {
    display: flex; align-items: center; min-height: 48px;
    color: var(--text); text-decoration: none; font-size: 18px; font-weight: 600; letter-spacing: -0.01em;
    border-bottom: 1px solid rgba(242,242,240,0.06);
  }
  .mmenu-nav a:active { color: var(--accent); }
  .mmenu-nav a[data-apply] { color: var(--accent); }
  .mmenu-line {
    height: 1px; margin: 22px 0 18px; position: relative;
    background: linear-gradient(90deg, rgba(163,43,43,0.9), rgba(163,43,43,0.25));
    box-shadow: 0 0 12px rgba(192,48,48,0.4);
  }
  .mmenu-contacts { display: flex; flex-direction: column; position: relative; }
  .mmenu-contacts a { color: var(--text-dim); text-decoration: none; font-size: 16px; min-height: 44px; display: flex; align-items: center; }
  .mmenu-cta { margin-top: auto; width: 100%; text-align: center; border: 0; cursor: pointer; font-family: inherit; min-height: 52px; position: relative; }

  .lead { padding-top: 12px; }
  .lead-box { position: relative; padding: 0 0 24px; }
  .lead-close { position: absolute; right: -8px; top: -4px; }
  .lead .eyebrow { margin: 14px 0 12px; }
  .lead h2 { margin-bottom: 10px; }
  .lead .join-p { margin-bottom: 18px; }
  .join-form input[type="text"], .join-form select { font-size: 16px; }   /* iPhone не увеличивает страницу при фокусе */
  .join-form form { max-width: none; }
  .agree { min-height: 44px; }
  .agree input { width: 20px; height: 20px; flex: none; }
}

/* ====== ЗАЯВКА: РЕЗИДЕНТ / ПАРТНЁР (десктоп и телефон) ====== */
form.sent > *:not(.form-done) { display: none; }
form.sent .form-done { display: block; }
form[hidden] { display: none !important; }
.join-p[hidden] { display: none; }
.who { margin: 4px 0 18px; max-width: 480px; }
.who-q { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 10px; }
.seg {
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 4px; gap: 4px;
  background: var(--bg-card);
  border: 1px solid rgba(242,242,240,0.12);
  border-radius: 4px;
}
.seg button {
  min-height: 44px; border: 0; border-radius: 3px; cursor: pointer;
  background: transparent; color: var(--text-dim);
  font: 600 14px "Golos Text", sans-serif;
  transition: background 0.25s ease, color 0.25s ease;
}
.seg button[aria-selected="true"] { background: var(--accent); color: #fff; }
.seg button:not([aria-selected="true"]):hover { color: var(--text); }
.ptype { border: 0; padding: 0; margin: 0 0 4px; display: grid; gap: 10px; min-width: 0; }
.ptype legend { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border: 1px solid rgba(242,242,240,0.18); border-radius: 20px;
  font-size: 14px; font-weight: 500; color: var(--text-dim);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.chip:hover span { color: var(--text); }
.chip input:checked + span { border-color: var(--accent); background: rgba(192,48,48,0.16); color: var(--text); }
.chip input:focus-visible + span { outline: 2px solid rgba(242,242,240,0.6); outline-offset: 2px; }
.join-form input[type="email"], .join-form textarea {
  background: var(--bg-card);
  border: 1px solid rgba(242,242,240,0.14);
  border-radius: 3px;
  color: var(--text);
  font: 500 15px "Golos Text", sans-serif;
  padding: 14px 16px;
  width: 100%;
  appearance: none;
}
.join-form textarea { resize: vertical; min-height: 110px; line-height: 1.45; }
.join-form textarea::placeholder { color: var(--text-dim); }
.join-form input[type="email"]:focus, .join-form textarea:focus { outline: none; border-color: rgba(242,242,240,0.45); }
.partners-cta { text-align: center; margin-top: 36px; }
@media (max-width: 768px) {
  .join-form input[type="email"], .join-form textarea { font-size: 16px; }
  .chip span { min-height: 44px; }
  .seg button { font-size: 13.5px; }
  .partners-cta { margin-top: 24px; padding: 0 16px; }
  .partners-cta .btn { width: 100%; }
}
.mmenu, .lead { background: var(--bg); }

/* ====== ТЕЛЕФОН: ТОЧЕЧНЫЕ ОТСТУПЫ 26.10 (поверх общего токена 56px) ====== */
@media (max-width: 768px) {
  /* логотипы героя -> «Кто мы»: в два раза меньше (56 -> 28) */
  .hero { padding-bottom: 14px; }
  .about { padding-top: 14px; }
  /* фотолента -> «Первые лица»: −30% (56 -> 39) */
  .about { padding-bottom: 20px; }
  .members { padding-top: 19px; }
  /* «Показать ещё» -> «Как проходят наши выезды»: −30% (56 -> 39) */
  .saying { padding-bottom: 20px; }
  .events { padding-top: 19px; }
  /* видео -> «История сообщества»: −20% (56 -> 45) */
  .videos { padding-bottom: 22px; }
  .history { padding-top: 23px; }
  /* «Подробнее» -> «Книги»: −30% (56 -> 39) */
  .history { padding-bottom: 20px; }
  .books { padding-top: 19px; }

  /* красная черта под «Мнение участников сообщества» — без анимации появления:
     заголовок и линия видны сразу, никакой «магии» при скролле */
  .saying-h { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }

  /* лента лиц перед «Личный кабинет клуба»: выше на 20% и без затемнения */
  .join-faces { opacity: 1; transform: translateY(-20%); }
}
