﻿/* Русское спортивное общество — rusport.org
   Layout patterns after rgo.ru; palette: РСО 2.0 — синий и белый. */

:root {
  --navy: #16337f;
  --navy-2: #2145a0;
  --navy-deep: #0d2158;
  --gold: #16337f;
  --gold-dark: #0d2158;
  --gold-light: #ffffff;
  --red: #d52b1e;
  --red-dark: #b0231a;
  --bg: #ffffff;
  --ivory: #f3f4f6;
  --white: #ffffff;
  --ink: #121621;
  --muted: #5f6672;
  --line: #e5e7eb;
  --shadow: 0 10px 30px -12px rgba(22, 51, 127, 0.35);

  --head: "Fira Sans", "Roboto", Arial, sans-serif;
  --body: "Roboto", Arial, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;

  --wrap: 1320px;
  --gutter: clamp(16px, 3.2vw, 40px);
  --radius: 8px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 84px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Typography ---------- */

.h1, .h2, .title-xl {
  font-family: var(--head);
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}
.title-xl { font-size: clamp(34px, 5.2vw, 72px); font-weight: 800; line-height: 1.04; }
.h1 { font-size: clamp(30px, 4vw, 52px); }
.h2 { font-size: clamp(26px, 2.8vw, 38px); }
.lead { font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); margin: 0; }
.kicker {
  display: inline-block;
  font-family: var(--head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 30px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-gold { background: var(--red); color: var(--white); }
.btn-gold:hover { background: var(--red-dark); }

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--head);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-dark);
  white-space: nowrap;
}
.more-link svg { width: 18px; transition: transform 0.2s var(--ease); }
.more-link:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */

/* Прозрачная шапка стоит вверху страницы и уезжает вместе с ней;
   при прокрутке вверх выезжает закреплённая (.is-fixed): над слайдером прозрачная, ниже — синяя (.is-solid) */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 60;
  color: var(--white);
  background: var(--navy);
  transition: background 0.3s, box-shadow 0.6s ease, transform 0.15s ease-out;
}
.site-header.is-fixed { position: fixed; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.no-anim { transition: none; }
.site-header.is-hidden:has(:focus-visible) { transform: none; }
@media (prefers-reduced-motion: reduce) { .site-header { transition: background 0.3s, box-shadow 0.3s; } }
.page-home .site-header:not(.is-solid) { background: linear-gradient(rgba(14, 38, 100, 0.6), rgba(14, 38, 100, 0)); }
/* Синий фон — отдельным слоем, чтобы переход из прозрачного шёл плавно */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(22, 51, 127, 0.97); opacity: 0; transition: opacity 0.6s ease; pointer-events: none; }
.site-header.is-solid::before { opacity: 1; }
.site-header.is-solid { box-shadow: 0 6px 24px -12px rgba(0, 0, 0, 0.5); }
.header-row {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.site-header.is-solid .header-row { border-bottom-color: transparent; }

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 62px; height: auto; }
.brand-name {
  font-family: var(--serif);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--white);
}
.brand-name small { display: block; font-size: 10.5px; letter-spacing: 0.34em; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); margin-left: auto; }
.nav a {
  font-family: var(--head);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.9;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, opacity 0.2s;
}
.nav a:hover, .nav a.is-active { opacity: 1; border-bottom-color: var(--gold-light); }
.header-cta { min-height: 42px; padding: 0 20px; font-size: 13px; }
.lang-switch { display: flex; flex: none; padding: 3px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 6px; }
.lang-switch button {
  min-width: 38px;
  height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang-switch button:hover { color: var(--white); }
.lang-switch button.is-active { background: var(--white); color: var(--navy); cursor: default; }

.burger {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.burger span, .burger span::before, .burger span::after {
  position: absolute; left: 50%;
  width: 20px; height: 2px;
  margin-left: -10px;
  background: var(--white);
  transition: transform 0.3s var(--ease), background 0.2s;
}
.burger span { top: 50%; margin-top: -1px; }
.burger span::before, .burger span::after { content: ""; left: 0; margin-left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }
.nav .nav-join { display: none; }

@media (max-width: 1100px) {
  :root { --header-h: 70px; }
  .brand img { width: 52px; }
  .burger { display: block; flex: 0 0 44px; min-width: 44px; margin-left: 8px; }
  .lang-switch { flex: 0 0 auto; margin-left: auto; }
  .header-row { gap: 12px; }
  .brand { flex: 0 1 auto; min-width: 0; overflow: hidden; }
  .brand img { flex: none; }
  .brand-name { white-space: nowrap; }
  .header-cta { display: none; }
  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--gutter) 32px;
    background: var(--navy-deep);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
  }
  .nav a { font-size: 17px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .nav a:hover, .nav a.is-active { border-bottom-color: rgba(255, 255, 255, 0.1); color: var(--gold-light); }
  .nav .nav-join { display: flex; margin-top: 28px; border: 0; color: var(--white); }
  .nav-open { overflow: hidden; }
  .nav-open .nav { transform: none; }
  .nav-open .site-header { background: var(--navy-deep); }
}

@media (max-width: 400px) {
  .brand { gap: 8px; }
  .brand img { width: 42px; }
  .brand-name { font-size: 13px; letter-spacing: 0.08em; }
  .brand-name small { font-size: 9.5px; letter-spacing: 0.24em; }
  .lang-switch button { min-width: 32px; height: 32px; padding: 0 6px; font-size: 12px; }
  .burger { width: 42px; height: 42px; flex-basis: 42px; min-width: 42px; }
}

/* ---------- Photo slots ---------- */
/* Any [data-photo] element gets its photo as a background; missing files show a branded placeholder. */

.photo {
  position: relative;
  background-color: var(--navy-2);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.photo.no-photo {
  background-image:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 14px),
    radial-gradient(120% 120% at 75% 15%, #2a4fa8 0%, var(--navy) 55%, var(--navy-deep) 100%);
}
.photo.no-photo::after {
  content: "Фото: " attr(data-photo) ".jpg";
  position: absolute;
  top: 42%; left: 50%;
  transform: translate(-50%, -50%);
  padding: 44px 14px 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.4'%3E%3Cpath d='M4 7h3l2-2.5h6L17 7h3a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1z'/%3E%3Ccircle cx='12' cy='12.5' r='3.6'/%3E%3C/svg%3E") center top / 34px no-repeat;
  color: rgba(255, 255, 255, 0.55);
  font: 500 12.5px/1.4 var(--body);
  white-space: nowrap;
  pointer-events: none;
}
.hero-slide .photo.no-photo::after { left: 76%; top: 46%; }
.bleed > .photo.no-photo::after, .page-hero > .photo.no-photo::after { left: auto; right: 4%; transform: translateY(-50%); }
@media (max-width: 767px) {
  .hero-slide .photo.no-photo::after { left: 50%; top: 17%; }
  .bleed > .photo.no-photo::after, .page-hero > .photo.no-photo::after { display: none; }
}

/* ---------- Hero banner slider ---------- */

.hero { position: relative; color: var(--white); background: var(--navy-deep); overflow: hidden; }
.hero-slides { position: relative; height: 100vh; height: 100svh; min-height: 560px; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s var(--ease), visibility 1s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide .photo { position: absolute; inset: 0; transform: scale(1.06); transition: transform 7s linear; will-change: transform; backface-visibility: hidden; }
.hero-slide.is-active .photo { transform: scale(1); }
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 38, 100, 0.6) 0%, rgba(14, 38, 100, 0.35) 45%, rgba(14, 38, 100, 0.1) 80%),
    linear-gradient(0deg, rgba(14, 38, 100, 0.5) 0%, rgba(14, 38, 100, 0) 40%);
}
/* Slide text sits at the bottom, just above the progress bars (.hero-bar). */
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: var(--header-h);
  padding-bottom: 104px;
}
.hero-content > * { max-width: 760px; }
.hero-content .kicker { color: var(--gold-light); margin-bottom: 20px; }
.hero-content .title-xl { text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35); }
.hero-content .title-xl span { color: var(--gold-light); }
.hero-content p { font-size: clamp(16px, 1.5vw, 20px); color: rgba(255, 255, 255, 0.86); margin: 22px 0 34px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.title-xl + .hero-actions { margin-top: 34px; }
@media (min-width: 768px) {
  .hero-actions .btn { min-width: 340px; min-height: 66px; padding: 0 64px; font-size: 17px; border-radius: 8px; }
}
.hero-content p:last-child { margin-bottom: 0; }
.hero-content > *:not(.hero-actions) { opacity: 0; transform: translateY(18px); transition: opacity 0.8s 0.2s var(--ease), transform 0.8s 0.2s var(--ease); }
.hero-actions { opacity: 0; transition: opacity 0.8s 0.45s var(--ease); }
.hero-slide.is-active .hero-content > * { opacity: 1; transform: none; }

.hero-bar {
  position: absolute;
  left: 0; right: 0; bottom: 30px;
  z-index: 3;
}
.hero-bar .wrap { display: flex; align-items: center; gap: 24px; }
.hero-progress { flex: 1; display: flex; gap: 8px; max-width: 520px; }
.hero-progress button {
  flex: 1;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.hero-progress button::before, .hero-progress i {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  height: 3px;
  width: 100%;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
}
.hero-progress i { width: 0; background: var(--gold-light); }
.hero-progress button.is-done i { width: 100%; }
.hero-progress button.is-active i { animation: progress var(--slide-ms, 7000ms) linear forwards; }
@keyframes progress { to { width: 100%; } }
.hero-count { font-family: var(--head); font-size: 15px; color: rgba(255, 255, 255, 0.65); margin-left: auto; }
.hero-count b { font-size: 26px; color: var(--white); font-weight: 600; }
.hero-arrows { display: flex; gap: 8px; }
.round-btn {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.round-btn:hover { background: var(--gold); border-color: var(--gold); }
.round-btn svg { width: 18px; }

@media (max-width: 767px) {
  .hero-slides { height: min(640px, 88svh); }
  .hero-slide::after { background: linear-gradient(0deg, rgba(14, 38, 100, 0.94) 0%, rgba(14, 38, 100, 0.78) 50%, rgba(14, 38, 100, 0.6) 100%); }
  .hero-content { padding-bottom: 88px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-arrows { display: none; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 8vw, 110px) 0; }
.section-ivory { background: var(--ivory); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(28px, 3.4vw, 48px);
}
.section-head .lead { max-width: 560px; margin-top: 14px; }
@media (max-width: 767px) { .section-head { flex-direction: column; align-items: flex-start; } }

/* Photo card */
.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  color: var(--white);
  isolation: isolate;
}
.pcard .photo { position: absolute; inset: 0; z-index: -2; transition: transform 0.7s var(--ease); }
.pcard::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(14, 38, 100, 0.9) 0%, rgba(14, 38, 100, 0.45) 40%, rgba(14, 38, 100, 0) 70%);
}
.pcard:hover .photo { transform: scale(1.05); }
.pcard-body { padding: 24px 26px; }
.pcard-title { font-family: var(--head); font-size: clamp(19px, 1.6vw, 23px); font-weight: 600; line-height: 1.2; margin: 0; }
.pcard-text { font-size: 14.5px; color: rgba(255, 255, 255, 0.82); margin: 8px 0 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.4s var(--ease), opacity 0.4s; }
.pcard:hover .pcard-text, .pcard:focus-visible .pcard-text { max-height: 120px; opacity: 1; }
.pcard-badge {
  position: absolute;
  top: 16px; left: 16px;
  padding: 5px 11px;
  border-radius: 4px;
  background: var(--red);
  color: var(--white);
  font-family: var(--head);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pcard-num { position: absolute; top: 14px; right: 18px; font-family: var(--head); font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, 0.75); }
@media (hover: none) { .pcard-text { max-height: none; opacity: 1; } }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1023px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 600px) {
  .grid-3 { grid-template-columns: 1fr; gap: 16px; }
  .pcard { min-height: 240px; }
}

/* Full-bleed photo section (rgo.ru "Экспедиционный корпус") */
.bleed { position: relative; color: var(--white); padding: clamp(72px, 9vw, 130px) 0; isolation: isolate; }
.bleed > .photo { position: absolute; inset: 0; z-index: -2; }
.bleed::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 38, 100, 0.92) 0%, rgba(14, 38, 100, 0.78) 50%, rgba(14, 38, 100, 0.6) 100%); }
.bleed .lead { color: rgba(255, 255, 255, 0.82); }
.bleed-title { font-family: var(--head); font-size: clamp(30px, 4.4vw, 60px); font-weight: 800; line-height: 1.05; text-transform: uppercase; margin: 14px 0 22px; max-width: 900px; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(40px, 5vw, 64px); }
.pillar {
  padding: 30px 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.pillar h3 { font-family: var(--head); font-size: 26px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold-light); margin: 0 0 12px; }
.pillar p { margin: 0; color: rgba(255, 255, 255, 0.82); }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* Band (rgo.ru colour stripe) */
.band { background: var(--navy); color: var(--white); }
.band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; padding-top: 34px; padding-bottom: 34px; }
.band-title { font-family: var(--head); font-size: clamp(20px, 2vw, 28px); font-weight: 700; text-transform: uppercase; margin: 0; }
.band p { margin: 6px 0 0; color: rgba(255, 255, 255, 0.75); }
.band-gold { background: var(--gold); }
.band-gold p { color: rgba(255, 255, 255, 0.9); }
.band-gold .btn { background: var(--navy); color: var(--white); }
.band-gold .btn:hover { background: var(--navy-deep); }
.band .socials { flex: none; }
.band-gold .social { border-color: rgba(255, 255, 255, 0.55); color: var(--white); }
.band-gold .social svg { color: var(--white); }
.band-gold .social:hover { border-color: var(--white); background: var(--navy); }
@media (max-width: 767px) { .band .wrap { flex-direction: column; align-items: flex-start; } .band .btn { width: 100%; } }

/* ---------- Empty-state note (join page, before the Google Forms are set) ---------- */

.empty-note {
  grid-column: 1 / -1;
  padding: 48px 24px;
  border: 1px dashed #d1d5db;
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
}
.empty-note b { display: block; font-family: var(--head); font-size: 20px; color: var(--navy); margin-bottom: 6px; }

/* ---------- Two ideas ---------- */

.ideas { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.idea { min-height: 440px; aspect-ratio: auto; }
.idea .pcard-body { padding: clamp(24px, 3vw, 40px); }
.idea .kicker { color: var(--gold-light); margin-bottom: 10px; }
.idea .pcard-title { font-size: clamp(24px, 2.4vw, 34px); font-weight: 700; text-transform: uppercase; }
.idea .pcard-text { max-height: none; opacity: 1; font-size: 16px; margin-top: 12px; max-width: 480px; }
.ideas-result {
  margin-top: 24px;
  padding: clamp(22px, 2.6vw, 34px) 24px;
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--white);
  text-align: center;
  font-family: var(--head);
  font-size: clamp(18px, 2.2vw, 30px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ideas-result span { color: var(--gold-light); }
@media (max-width: 860px) { .ideas { grid-template-columns: 1fr; } .idea { min-height: 360px; } }

/* ---------- What the industry gets (static 2×2) ---------- */

.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.value {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
}
.value-img { position: relative; min-height: 260px; }
.value-img .photo { position: absolute; inset: 0; }
.value-body { padding: clamp(22px, 2.4vw, 32px); }
.value-title { font-family: var(--head); font-size: clamp(17px, 1.4vw, 20px); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--navy); margin: 0 0 16px; }
.value ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 15px; }
.value li { position: relative; padding-left: 20px; }
.value li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 7px; height: 7px; background: var(--red); transform: rotate(45deg); }
@media (max-width: 1100px) { .values { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .value { grid-template-columns: 1fr; } .value-img { min-height: 0; aspect-ratio: 16 / 9; } }

/* ---------- Partners ---------- */
.partners { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.partner {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  color: #9ca3af;
  font-size: 12px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.partner.reveal { transform: translateY(48px); filter: blur(6px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); }
.partner.reveal.is-in { transform: none; filter: none; }
.partner img { max-height: 60px; max-width: 100%; width: auto; object-fit: contain; }
@media (max-width: 1023px) { .partners { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* ---------- Manifesto ---------- */

.manifesto { text-align: center; }
.manifesto-words {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px clamp(14px, 2vw, 28px);
  font-family: var(--head);
  font-size: clamp(22px, 3.6vw, 52px);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.1;
}
.manifesto-words i { width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); flex: none; }
.manifesto-claim { margin: 28px 0 32px; font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); }
.manifesto-claim b { color: var(--red); }
.manifesto .socials { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.75); }

.footer-main { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.footer-brand img { width: 128px; margin-bottom: 18px; }
.footer-brand p { margin: 0 0 18px; font-size: 14px; max-width: 280px; }
.site-footer h4 { margin: 0 0 16px; font-family: var(--head); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-light); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
.site-footer a:hover { color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; color: rgba(255, 255, 255, 0.5); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
}
.social:hover { border-color: var(--gold-light); background: rgba(255, 255, 255, 0.05); }
.social svg { width: 16px; height: 16px; color: var(--white); }
.socials-dark .social { border-color: var(--line); color: var(--navy); background: var(--white); }
.socials-dark .social svg { color: var(--navy); }
@media (max-width: 1023px) { .footer-main { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-main { grid-template-columns: 1fr; } }

/* ---------- Inner pages ---------- */

.page-hero { position: relative; color: var(--white); padding: calc(var(--header-h) + clamp(40px, 6vw, 90px)) 0 clamp(40px, 5vw, 70px); isolation: isolate; }
.page-hero > .photo { position: absolute; inset: 0; z-index: -2; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 38, 100, 0.92) 0%, rgba(14, 38, 100, 0.75) 60%, rgba(14, 38, 100, 0.55) 100%); }
.page-hero-plain { background: var(--navy); }
.page-hero-plain::before { display: none; }
.page-hero .lead { color: rgba(255, 255, 255, 0.85); margin-top: 18px; max-width: 680px; }
.page-hero .pcard-badge { position: static; display: inline-block; margin-bottom: 18px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: rgba(255, 255, 255, 0.7); margin-bottom: 22px; }
.crumbs a:hover { color: var(--white); text-decoration: underline; }
.crumbs span::before { content: "/"; margin-right: 8px; opacity: 0.6; }
.aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 30px 28px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
}
.aside h3 { font-family: var(--head); font-size: 22px; font-weight: 700; margin: 0 0 10px; line-height: 1.2; }
.aside p { margin: 0 0 24px; color: rgba(255, 255, 255, 0.75); font-size: 15px; }
.aside .btn { width: 100%; }
.aside .btn + .btn { margin-top: 10px; }
@media (max-width: 1023px) { .aside { position: static; } }

/* Join form */
.join { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 4vw, 64px); align-items: start; }
.tabs { display: inline-flex; padding: 4px; background: #e5e7eb; border-radius: 8px; margin-bottom: 32px; }
.tab { padding: 11px 22px; border: 0; border-radius: 6px; background: transparent; font-family: var(--head); font-size: 14.5px; font-weight: 600; cursor: pointer; color: var(--muted); }
.tab.is-active { background: var(--navy); color: var(--white); }
.steps { list-style: none; margin: 22px 0 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 22px 48px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -3px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); font-family: var(--head); font-weight: 700; color: var(--white); }
.steps b { display: block; margin-bottom: 2px; }
.steps span { font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.gform iframe { width: 100%; border: 0; border-radius: var(--radius); background: var(--white); }
/* Google Form heights (measured: content + Google footer), so the form shows without its own scrollbar. */
.gform iframe[data-type="person"] { height: 1740px; }
.gform iframe[data-type="company"] { height: 2360px; }
@media (max-width: 600px) {
  .gform iframe[data-type="person"] { height: 1885px; }
  .gform iframe[data-type="company"] { height: 2505px; }
}
.gform-consent { margin: 0 0 16px; padding: 14px 18px; border-left: 3px solid var(--gold); border-radius: 0 6px 6px 0; background: var(--ivory); font-size: 14px; color: var(--muted); }
.gform-consent a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.gform-alt { margin: 14px 0 0; }
.gform-alt a { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-dark); font-family: var(--head); font-size: 14px; font-weight: 500; }
.gform-alt svg { width: 16px; }
@media (max-width: 1023px) { .join { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .tabs { display: flex; } .tab { flex: 1; padding: 11px 8px; } }

.prose { max-width: 800px; font-size: 17px; }
.prose h2 { font-family: var(--head); font-size: 24px; text-transform: uppercase; margin: 36px 0 10px; }

/* ---------- Reveal ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal, .partner.reveal { opacity: 1; transform: none; filter: none; }
}

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

/* Header socials (replace the former "Вступить" CTA) */
.header-socials { display: flex; gap: 8px; min-height: 0; padding: 0; }
.social-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%; color: var(--white); transition: border-color 0.2s, background 0.2s; }
.social-icon svg { width: 18px; height: 18px; color: var(--white); }
.social-icon:hover { border-color: var(--gold-light); background: rgba(255, 255, 255, 0.08); }
.nav .nav-join.socials { margin-top: 28px; }

/* РСО 2.0: красный — акцент для главных действий и меток (бело-сине-красная палитра) */
.ideas-result span { color: var(--red); }

/* РСО 2.0: на телефонах и планшетах соцсети убраны из шапки — они в меню (бургер) */
@media (max-width: 1100px) {
  .header-socials { display: none; }
}

/* РСО 2.0: кнопки соцсетей в мобильном меню — ровный ряд, без стилей пунктов меню */
@media (max-width: 1100px) {
  .nav .nav-join.socials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .nav .nav-join .social {
    justify-content: center;
    gap: 8px;
    padding: 12px 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-family: var(--body);
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1;
    white-space: nowrap;
    opacity: 1;
  }
  .nav .nav-join .social svg { flex: none; width: 18px; height: 18px; }
}
@media (max-width: 360px) {
  .nav .nav-join.socials { grid-template-columns: 1fr; }
}

/* РСО 2.0: слоган без плашки — чёрный текст, красный акцент */
.ideas-result { background: none; color: var(--ink); padding-left: 0; padding-right: 0; }

/* РСО 2.0: больше красного — надзаголовки, активный пункт меню, полоса слайдера, метка у заголовков разделов */
.kicker { color: var(--red); }
.nav a:hover, .nav a.is-active { border-bottom-color: var(--red); }
.hero-progress i { background: var(--red); }
.section-head .h2::before, .section .h2.section-title::before {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-bottom: 16px;
  border-radius: 2px;
  background: var(--red);
}
@media (max-width: 1100px) {
  .nav a:hover, .nav a.is-active { color: #ff6b5f; }
}

/* РСО 2.0: заголовки «Слышать / Знать / Делать» — красные */
.pillar h3 { color: var(--red); }

/* РСО 2.0: меньше пустоты под слоганом */
.ideas-result { padding-bottom: 0; }
.section:has(.ideas-result) { padding-bottom: clamp(28px, 3.5vw, 48px); }

