:root {
  --indigo-light: #2E2A6B;
  --indigo-base: #1E1B4B;
  --indigo-dark: #151233;
  --turquoise: #2AB7B0;
  --turquoise-light: #7FD9D2;
  --lavender: #C7C4E6;
  --white: #FFFFFF;
  --bg-light: #F4F4F7;
  --border-light: #ECEBF3;
  --text-body: #4A4860;
  --text-muted: #8A889C;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-light);
  color: var(--text-body);
  font-family: 'Manrope', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}

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

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  padding: 17px 36px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--white); color: var(--indigo-dark); }
.btn-secondary { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.7); }
.btn-cta { background: var(--turquoise); color: var(--indigo-dark); align-self: flex-start; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 40px;
}
.logo { font-weight: 800; font-size: 19px; color: var(--indigo-dark); white-space: nowrap; }

.main-nav { display: flex; gap: 30px; }
.main-nav a { font-weight: 600; font-size: 16px; color: var(--indigo-dark); }
.main-nav a:hover { color: var(--turquoise); }

.header-contacts { display: flex; gap: 20px; margin-left: auto; }
.header-contacts a { font-weight: 700; font-size: 14px; color: var(--indigo-light); }
.header-contacts a:hover { color: var(--turquoise); }

.has-dropdown { position: relative; }
.has-dropdown > button {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--indigo-dark);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.has-dropdown > button:hover { color: var(--turquoise); }
.has-dropdown .chevron { width: 14px; height: 14px; transition: transform .2s ease; }
.has-dropdown.open .chevron, .has-dropdown:hover .chevron { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: -20px;
  min-width: 260px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(21,18,51,.14);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-body);
  padding: 10px 12px;
  border-radius: 9px;
}
.dropdown-menu a:hover { background: var(--bg-light); color: var(--indigo-light); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--indigo-dark); margin: 0 auto; }

/* ---------- Accent word ---------- */
.accent-serif {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  color: var(--turquoise-light);
}

/* ---------- Slanted section header ---------- */
.slant-header {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, var(--indigo-light), var(--indigo-dark));
  color: var(--white);
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.slant-md {
  font-size: 30px;
  padding: 28px 84px 28px 32px;
  clip-path: polygon(0 0, 100% 0, 82% 100%, 0% 100%);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 12% 8%, var(--indigo-light) 0%, var(--indigo-base) 45%, var(--indigo-dark) 85%);
  padding: 80px 0 96px;
}
.hero-bg-dots { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.drift { position: absolute; border-radius: 50%; }
.drift-a { animation-name: driftA; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
.drift-b { animation-name: driftB; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 40px;
  align-items: center;
}

.tag-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--turquoise-light);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-text h1 {
  font-size: 52px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.18;
  margin: 0 0 22px;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--lavender);
  margin: 0 0 34px;
  max-width: 500px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Hero scene: sphere + orbit ---------- */
.hero-scene {
  position: relative;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scene-frame {
  position: absolute;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  transform: rotate(8deg);
}
.scene-ring {
  position: absolute;
  width: 335px;
  height: 335px;
  border-radius: 50%;
  border: 1px solid rgba(127,217,210,.25);
}
.sphere-wrap {
  position: relative;
  width: 250px;
  height: 250px;
  animation: breathe 2.6s ease-in-out infinite;
}
.sphere-bloom {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42,183,176,.35), transparent 70%);
  filter: blur(6px);
}
.sphere {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #B9D4F5 0%, #5A6FC4 30%, var(--indigo-light) 62%, var(--indigo-dark) 100%);
  animation: spinGlobe 18s linear infinite;
  box-shadow: 0 0 70px rgba(42,183,176,.25);
}

.orbit-ellipse {
  position: absolute;
  width: 380px;
  height: 134px;
  transform: rotate(-16deg);
}
.orbit-track {
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(127,217,210,.5);
  border-radius: 50%;
  clip-path: inset(50% 0 0 0);
}
.orbit-track--back {
  border-color: rgba(127,217,210,.22);
  clip-path: inset(0 0 50% 0);
}
.orbit-city {
  position: absolute;
  offset-path: path('M 11,67 A 180,56 0 1,1 369,67 A 180,56 0 1,1 11,67');
  offset-rotate: 0deg;
  animation: orbitMove 24s linear infinite;
  animation-delay: var(--delay);
}
.orbit-city .dot,
.orbit-city .city-name { display: none; }
.orbit-city {
  display: flex;
  align-items: center;
  gap: 6px;
  transform: rotate(16deg);
}
.orbit-city .dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--turquoise-light);
  box-shadow: 0 0 0 1px rgba(21,18,51,.3), 0 0 4px rgba(42,183,176,.7);
  flex-shrink: 0;
}
.orbit-city .city-name {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(21,18,51,.55);
}

/* ---------- Ticker ---------- */
.ticker-section { background: var(--indigo-base); overflow: hidden; }
.ticker { padding: 20px 0; overflow: hidden; }
.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 32s linear infinite;
}
.ticker-content { display: flex; align-items: center; white-space: nowrap; }
.ticker-item {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--white);
  text-transform: uppercase;
  padding: 0 20px;
}
.ticker-sep { color: var(--turquoise-light); font-weight: 800; }
.ticker-item .count { color: var(--turquoise-light); }

/* ---------- Generic section ---------- */
.section { padding: 100px 0; }
.section-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--indigo-dark);
  margin: 0 0 32px;
}

/* Alternate section backgrounds for rhythm/depth instead of one flat canvas */
.section-tasks, .section-cases { background: var(--white); }
.section-projects, .section-team { background: var(--bg-light); }

/* Decorative background — white sections only, confined to the empty top/bottom
   margins so shapes never cross over the panel/cards, animated + very subtle */
.section-tasks, .section-cases {
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(circle, rgba(30,27,75,.05) 1.5px, transparent 1.5px);
  background-size: 30px 30px;
}
.section-tasks > .container,
.section-cases > .container {
  position: relative;
  z-index: 1;
}
.section-glow { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: .6;
  animation: blobPulse 12s ease-in-out infinite;
}
.bg-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(46,42,107,.10);
  --cr: 22px;
  animation: circleOrbit 16s linear infinite;
}
.bg-ring--turquoise { border-color: rgba(42,183,176,.18); }
.bg-frame {
  position: absolute;
  border: 1.5px solid rgba(46,42,107,.09);
  border-radius: 28px;
  --cr: 18px;
  animation: circleOrbitRotate 13s linear infinite reverse;
}

/* ---------- Impact band (big stats, fused directly onto the ticker) ---------- */
.impact-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--indigo-base) 0%, var(--indigo-dark) 100%);
  padding: 48px 0 60px;
}
.impact-band .eyebrow {
  display: block;
  text-align: center;
  color: var(--turquoise-light);
  margin-bottom: 28px;
}
.impact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.impact-item { position: relative; padding-left: 28px; }
.impact-item::before {
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 2px;
  background: rgba(127,217,210,.3);
}
.impact-item:first-child::before { display: none; }
.impact-num {
  font-size: 54px;
  font-weight: 800;
  color: var(--turquoise-light);
  line-height: 1;
  margin-bottom: 14px;
  text-shadow: 0 0 30px rgba(42,183,176,.4);
}
.impact-label { font-size: 15px; line-height: 1.55; color: var(--lavender); }

/* ---------- Orientirs (numbered cards) ---------- */
.orientir-panel {
  background: radial-gradient(circle at 15% 15%, var(--indigo-light), var(--indigo-dark) 70%);
  border-radius: 28px;
  padding: 56px 44px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.orientir-card { display: flex; flex-direction: column; }
.card-num {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--indigo-light);
  color: var(--turquoise-light);
  font-weight: 800;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.orientir-desc { font-size: 15px; line-height: 1.6; color: var(--lavender); }

/* ---------- Tasks ---------- */
.tasks-panel {
  position: relative;
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 44px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 40px;
  box-shadow: 0 24px 48px rgba(21,18,51,.06);
}
.task-item { flex: 1 1 300px; max-width: 340px; }
.task-icon {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--indigo-light), var(--indigo-base));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.task-icon svg { width: 28px; height: 28px; }
.task-item p { font-size: 15px; line-height: 1.6; color: var(--text-body); margin: 0; }

/* ---------- Project / case cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.projects-grid {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  /* Обязательно явно. По спецификации, если одна ось перестала быть visible,
     вторая тоже становится auto — и полоса начинает прокручиваться ещё и
     вертикально: на телефоне карточка «скачет» вверх-вниз при свайпе вбок. */
  overflow-y: hidden;
  /* Долистав до края, не утягиваем за собой прокрутку всей страницы. */
  overscroll-behavior-x: contain;
  /* Карточки въезжают снизу (data-reveal сдвигает их на 24px) и отбрасывают
     тень на 36px. Даём полосе запас снизу, иначе overflow-y: hidden срежет их
     во время анимации; отрицательный margin возвращает отступ секции на место. */
  padding-bottom: 40px;
  margin-bottom: -40px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.projects-grid::-webkit-scrollbar { display: none; }
.projects-grid .project-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
}
.cases-grid { grid-template-columns: repeat(2, 1fr); }
.cases-grid .card-image { height: 320px; }
.cases-grid .card-slant { height: 104px; }
.cases-grid .card-slant span { font-size: 18px; }
.cases-grid .card-desc { font-size: 16px; }

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(21,18,51,.06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
a.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(21,18,51,.14);
  border-color: transparent;
}
.card-link {
  display: block;
  margin-top: auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--turquoise);
  padding: 14px 24px 0;
}
.card-media { border-radius: 18px 18px 0 0; overflow: hidden; background: var(--bg-light); }
.card-image {
  width: 100%;
  height: 250px;
  background: linear-gradient(160deg, #E4E3EE, var(--bg-light));
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-image span { font-size: 14px; color: var(--text-muted); font-weight: 600; }
.card-slant {
  position: relative;
  display: flex;
  align-items: center;
  height: 94px;
  background: linear-gradient(115deg, var(--indigo-light), var(--indigo-dark));
  clip-path: polygon(0 24px, 100% 0, 100% 100%, 0 100%);
  margin-top: -24px;
  padding: 8px 26px 0;
}
.card-slant span { color: var(--white); font-weight: 700; font-size: 15px; line-height: 1.35; }
.card-desc { font-size: 15px; line-height: 1.6; color: var(--text-body); padding: 22px 26px 0; margin: 0; }

/* ---------- Photo gallery — circular carousel ---------- */
.section-gallery {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 88% 10%, var(--indigo-light) 0%, var(--indigo-base) 42%, var(--indigo-dark) 88%);
}
.section-gallery::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.05) 1.5px, transparent 1.5px);
  background-size: 30px 30px;
  pointer-events: none;
}
.section-gallery > .container { position: relative; z-index: 1; }
.section-gallery .slant-header { background: linear-gradient(135deg, var(--turquoise), var(--indigo-light)); }

.gallery-lead { font-size: 16px; color: var(--lavender); margin: 0 0 32px; max-width: 560px; }

.circle-gallery {
  position: relative;
  padding: 4px 0 48px;
}
.circle-stage {
  position: relative;
  height: 380px;
  max-width: 600px;
  margin: 0 auto;
  --radius-x: 145px;
  --rise: 34px;
  --scale-min: .62;
  --scale-max: 1.3;
  --opacity-min: .3;
}
.circle-photo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 340px;
  height: 250px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  border: 3px solid rgba(255,255,255,.1);
  box-shadow: 0 24px 50px rgba(0,0,0,.4);
  cursor: pointer;
  transition: transform .8s cubic-bezier(.16,1,.3,1), opacity .6s ease, box-shadow .4s ease;
}
.circle-photo:hover { box-shadow: 0 30px 60px rgba(0,0,0,.5); }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--indigo-dark);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(21,18,51,.18);
  transition: background .2s ease, transform .2s ease;
  z-index: 50;
}
.carousel-arrow:hover { background: var(--white); transform: translateY(-50%) scale(1.08); }
.carousel-arrow:active { transform: translateY(-50%) scale(.96); }
.carousel-arrow--prev { left: 0; }
.carousel-arrow--next { right: 0; }
.carousel-arrow svg { width: 22px; height: 22px; }

.carousel-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 50;
}
.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  border: 1px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: background .2s ease, transform .2s ease;
}
.carousel-dot:hover { background: rgba(255,255,255,.5); }
.carousel-dot.is-active { background: var(--turquoise); transform: scale(1.3); border-color: transparent; }

/* ---------- Footer / CTA ---------- */
.footer {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 88% 0%, var(--indigo-light) 0%, var(--indigo-base) 40%, var(--indigo-dark) 78%);
  padding-top: 32px;
}
.wave-divider {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 80px;
  transform: translateY(-99%);
}
.wave-divider path { fill: var(--indigo-dark); }

.footer-glow {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42,183,176,.28), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.footer-dots { position: absolute; inset: 0; pointer-events: none; }

.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  padding-top: 56px;
  padding-bottom: 56px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--lavender);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(127,217,210,.3);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.trust-badge .count { color: var(--turquoise-light); font-weight: 800; }

.footer-cta h2 { font-size: 36px; font-weight: 800; color: var(--white); margin: 0 0 16px; }
.footer-cta > p { font-size: 16px; color: var(--lavender); margin: 0 0 26px; max-width: 480px; }

.benefits-list {
  list-style: none;
  margin: 0 0 34px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 480px;
}
.benefits-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--lavender);
}
.benefit-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(127,217,210,.12);
  color: var(--turquoise-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.benefit-icon svg { width: 20px; height: 20px; }

.join-form { display: flex; flex-direction: column; gap: 16px; max-width: 500px; }
.form-row { display: flex; gap: 16px; }
.form-row input,
.form-row select {
  flex: 1;
  min-width: 0;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  padding: 15px 18px;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  color: var(--white);
  transition: border-color .2s ease, background .2s ease;
}
.form-row input::placeholder { color: var(--lavender); opacity: .7; }
.form-row select { color: var(--lavender); }
.form-row select option { color: var(--indigo-dark); }
.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--turquoise);
  background: rgba(255,255,255,.1);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--lavender);
  line-height: 1.4;
}
.consent input { margin-top: 3px; accent-color: var(--turquoise); }

.btn-cta {
  box-shadow: 0 0 0 rgba(42,183,176,0);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-cta:hover { box-shadow: 0 8px 28px rgba(42,183,176,.45); }

.form-note { font-size: 13px; color: var(--turquoise-light); font-weight: 700; min-height: 18px; }

.footer-meta { display: flex; flex-direction: column; gap: 18px; padding-top: 4px; height: 100%; }
.footer-logo { font-size: 18px; font-weight: 800; color: var(--white); }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { font-size: 14px; font-weight: 600; color: var(--lavender); }
.footer-nav a:hover { color: var(--turquoise-light); }
.footer-contacts { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.footer-contacts a { font-size: 19px; font-weight: 700; color: var(--white); }
.footer-legal { padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-legal-title { font-size: 13px; font-weight: 800; color: var(--lavender); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.footer-legal p { font-size: 13px; line-height: 1.6; color: var(--text-muted); margin: 0 0 8px; }
.footer-legal a { color: var(--text-muted); }
.footer-legal a:hover { color: var(--turquoise-light); }
.footer-copy { font-size: 12px; color: var(--text-muted); margin-top: 32px; }

/* ---------- Reveal-on-scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1);
  transition-delay: calc(var(--reveal-i, 0) * 0.12s);
}
[data-reveal].in-view { opacity: 1; transform: translateY(0); }

/* ---------- Keyframes ---------- */
@keyframes spinGlobe { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes driftA { 0%, 100% { transform: translate(0,0); opacity: .5; } 50% { transform: translate(14px,-18px); opacity: .9; } }
@keyframes driftB { 0%, 100% { transform: translate(0,0); opacity: .3; } 50% { transform: translate(-18px,12px); opacity: .7; } }
@keyframes orbitMove {
  0%   { offset-distance: 0%;   opacity: .12; }
  46%  { offset-distance: 46%;  opacity: .12; }
  50%  { offset-distance: 50%;  opacity: 1; }
  96%  { offset-distance: 96%;  opacity: 1; }
  100% { offset-distance: 100%; opacity: .12; }
}
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes blobPulse { 0%, 100% { transform: scale(1) translate(0,0); opacity: 1; } 50% { transform: scale(1.15) translate(10px,-10px); opacity: .75; } }
@keyframes circleOrbit {
  0%    { transform: translate(var(--cr), 0); }
  12.5% { transform: translate(calc(var(--cr) * .707), calc(var(--cr) * .707)); }
  25%   { transform: translate(0, var(--cr)); }
  37.5% { transform: translate(calc(var(--cr) * -.707), calc(var(--cr) * .707)); }
  50%   { transform: translate(calc(var(--cr) * -1), 0); }
  62.5% { transform: translate(calc(var(--cr) * -.707), calc(var(--cr) * -.707)); }
  75%   { transform: translate(0, calc(var(--cr) * -1)); }
  87.5% { transform: translate(calc(var(--cr) * .707), calc(var(--cr) * -.707)); }
  100%  { transform: translate(var(--cr), 0); }
}
@keyframes circleOrbitRotate {
  0%    { transform: translate(var(--cr), 0) rotate(var(--r, 0deg)); }
  12.5% { transform: translate(calc(var(--cr) * .707), calc(var(--cr) * .707)) rotate(var(--r, 0deg)); }
  25%   { transform: translate(0, var(--cr)) rotate(var(--r, 0deg)); }
  37.5% { transform: translate(calc(var(--cr) * -.707), calc(var(--cr) * .707)) rotate(var(--r, 0deg)); }
  50%   { transform: translate(calc(var(--cr) * -1), 0) rotate(var(--r, 0deg)); }
  62.5% { transform: translate(calc(var(--cr) * -.707), calc(var(--cr) * -.707)) rotate(var(--r, 0deg)); }
  75%   { transform: translate(0, calc(var(--cr) * -1)) rotate(var(--r, 0deg)); }
  87.5% { transform: translate(calc(var(--cr) * .707), calc(var(--cr) * -.707)) rotate(var(--r, 0deg)); }
  100%  { transform: translate(var(--cr), 0) rotate(var(--r, 0deg)); }
}

/* ---------- Project detail pages ---------- */
.project-section { padding: 56px 0; }
.project-section + .project-section { padding-top: 0; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--lavender);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--lavender); }
.breadcrumb a:hover { color: var(--turquoise-light); }
.breadcrumb .sep { color: rgba(255,255,255,.35); }
.breadcrumb .current { color: var(--turquoise-light); }

.project-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 12% 8%, var(--indigo-light) 0%, var(--indigo-base) 45%, var(--indigo-dark) 85%);
  padding: 44px 0 72px;
}
.project-hero .container { position: relative; z-index: 2; }
.project-hero h1 { font-size: 46px; font-weight: 800; color: var(--white); line-height: 1.18; margin: 0 0 20px; max-width: 860px; }
.project-hero .lead { font-size: 19px; line-height: 1.65; color: var(--lavender); max-width: 760px; margin: 0; }

.project-body { max-width: 1100px; }
.project-body.wide { max-width: none; }

.section-title { }
h2.section-title { margin-top: 0; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--turquoise);
  margin-bottom: 12px;
}
.eyebrow + .section-title { margin-top: 0; }

.photo-placeholder {
  background: linear-gradient(160deg, #E4E3EE, var(--bg-light));
  border: 1.5px dashed #D4D2E4;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #B9B7CC;
  text-align: center;
  padding: 40px 24px;
}
.photo-placeholder svg { width: 42px; height: 42px; }
.photo-placeholder span { font-size: 14px; font-weight: 600; color: var(--text-muted); max-width: 260px; }
.photo-placeholder.photo-real {
  background: none;
  background-size: cover;
  background-position: center;
  border: none;
}
.photo-placeholder--banner { aspect-ratio: 16/8; margin: 36px 0; }
.photo-placeholder--wide { aspect-ratio: 21/9; margin: 28px 0; }
.photo-placeholder--portrait { width: 200px; height: 240px; flex-shrink: 0; }
.photo-placeholder--square { aspect-ratio: 1/1; }
.photo-placeholder--slide {
  aspect-ratio: 16/9;
  background-size: contain;
  background-repeat: no-repeat;
  background-color: var(--white);
  border: 1px solid var(--border-light);
  box-shadow: 0 16px 36px rgba(21,18,51,.08);
}

.quote-block {
  position: relative;
  padding: 6px 0 6px 48px;
  margin: 40px 0;
}
.quote-block::before {
  content: '';
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 3px;
  border-radius: 3px;
  background: var(--turquoise);
}
.quote-block::after {
  content: '\201C';
  position: absolute;
  left: 16px; top: -24px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 80px;
  line-height: 1;
  color: rgba(42,183,176,.18);
  pointer-events: none;
}
.quote-block p {
  position: relative;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.55;
  color: var(--indigo-dark);
  margin: 0;
}
.quote-block--light::before { background: var(--turquoise-light); }
.quote-block--light::after { color: rgba(127,217,210,.18); }
.quote-block--light p { color: var(--white); }

.info-rows { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin: 40px 0; }
.info-rows.single { grid-template-columns: 1fr; }
.info-row {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 22px;
  padding: 34px;
  box-shadow: 0 18px 40px rgba(21,18,51,.05);
  transition: transform .22s ease, box-shadow .22s ease;
}
.info-row:hover { transform: translateY(-5px); box-shadow: 0 26px 48px rgba(21,18,51,.10); }
.info-row .info-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--indigo-light), var(--indigo-base));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.info-row .info-icon svg { width: 24px; height: 24px; }
.info-row dt {
  font-weight: 800;
  color: var(--turquoise);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.info-row dd { margin: 0; font-size: 16.5px; line-height: 1.7; color: var(--text-body); }

.steps-list { display: flex; flex-direction: column; gap: 20px; margin: 32px 0; }
.step-item {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 26px 30px;
  box-shadow: 0 14px 32px rgba(21,18,51,.04);
  transition: transform .22s ease, box-shadow .22s ease;
}
.step-item:hover { transform: translateY(-4px); box-shadow: 0 22px 42px rgba(21,18,51,.09); }
.step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--indigo-light), var(--indigo-base));
  color: var(--turquoise-light);
  font-weight: 800;
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-body h3 { font-size: 18px; font-weight: 800; color: var(--indigo-dark); margin: 0 0 6px; }
.step-body p { font-size: 15.5px; line-height: 1.62; color: var(--text-body); margin: 0; }

.stats-panel {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 15% 15%, var(--indigo-light), var(--indigo-dark) 72%);
  border-radius: 28px;
  padding: 48px 44px;
  margin: 32px 0;
}
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; position: relative; z-index: 1; }
.stat-card {
  position: relative;
  padding: 0 0 0 24px;
}
.stat-card::before {
  content: '';
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 2px;
  background: rgba(127,217,210,.3);
}
.stat-card:first-child::before { display: none; }
.stat-num { font-size: 46px; font-weight: 800; color: var(--turquoise-light); margin-bottom: 12px; line-height: 1; }
.stat-label { font-size: 14.5px; line-height: 1.6; color: var(--lavender); }

.effect-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 32px 0; }
.effect-card {
  background: var(--bg-light);
  border-radius: 18px;
  padding: 28px;
  border-top: 3px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.effect-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(21,18,51,.10);
  border-top-color: var(--turquoise);
}
.effect-card .icon {
  width: 50px; height: 50px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--indigo-light), var(--indigo-base));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.effect-card .icon svg { width: 25px; height: 25px; }
.effect-card h3 { font-size: 16px; font-weight: 800; color: var(--indigo-dark); margin: 0 0 7px; }
.effect-card p { font-size: 14.5px; line-height: 1.55; color: var(--text-body); margin: 0; }

.map-panel {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 20% 15%, var(--indigo-light), var(--indigo-dark) 75%);
  border-radius: 28px;
  padding: 48px;
  margin: 16px 0 24px;
  min-height: 280px;
}
.map-scatter { position: absolute; inset: 0; pointer-events: none; }
.map-dot { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--turquoise-light); box-shadow: 0 0 8px var(--turquoise); }
.map-stat { position: relative; z-index: 1; }
.map-stat .num { font-size: 64px; font-weight: 800; color: var(--turquoise-light); line-height: 1; text-shadow: 0 0 30px rgba(42,183,176,.5); }
.map-stat .label { font-size: 16px; color: var(--lavender); margin-top: 12px; max-width: 340px; }
.map-pins { position: relative; z-index: 1; height: 220px; }
.map-pin { position: absolute; display: flex; align-items: flex-start; gap: 8px; }
.map-pin .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--turquoise-light); box-shadow: 0 0 10px var(--turquoise); margin-top: 4px; flex-shrink: 0; }
.map-pin .label { font-size: 14px; font-weight: 700; color: var(--white); white-space: nowrap; }
.map-pin .date { display: block; font-size: 12px; font-weight: 600; color: var(--lavender); margin-top: 2px; white-space: nowrap; }

.region-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 22px; }
.region-item { display: flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--text-body); transition: color .15s ease; }
.region-item svg { width: 16px; height: 16px; color: var(--turquoise); flex-shrink: 0; }
.region-item:hover { color: var(--indigo-light); }

.leader-block {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  margin: 32px 0;
  flex-wrap: wrap;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 44px rgba(21,18,51,.06);
}
.leader-info { flex: 1; min-width: 0; }
.leader-info h3 { font-size: 21px; font-weight: 800; color: var(--indigo-dark); margin: 0 0 5px; }
.leader-info .role {
  display: inline-block;
  font-size: 13px;
  color: var(--turquoise);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.leader-info .leader-quote {
  position: relative;
  padding-left: 28px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 19px;
  line-height: 1.75;
  color: var(--text-body);
  margin: 0;
}
.leader-info .leader-quote::before {
  content: '\201C';
  position: absolute;
  left: -6px; top: -16px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 52px;
  color: rgba(42,183,176,.3);
}

.cta-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 28px;
  overflow: hidden;
  margin: 24px 0;
}
.cta-split-text {
  background: radial-gradient(circle at 85% 100%, var(--indigo-light), var(--indigo-dark) 70%);
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.cta-split-text h2 { font-size: 30px; font-weight: 800; color: var(--white); margin: 0; }
.cta-split-text p { font-size: 16px; line-height: 1.6; color: var(--lavender); margin: 0; }
.cta-split-text .btn { margin-top: 8px; align-self: flex-start; }
.cta-split .photo-placeholder { border-radius: 0; border: none; margin: 0; min-height: 340px; }

/* ==================================================================
   Responsive
   ================================================================== */
@media (max-width: 1080px) {
  .impact-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .impact-item:nth-child(3)::before { display: none; }
}

@media (max-width: 900px) {
  .main-nav, .header-contacts { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .header-inner {
    flex-wrap: wrap;
  }
  .site-header.nav-open .main-nav,
  .site-header.nav-open .header-contacts {
    display: flex;
    flex-direction: column;
    width: 100%;
    order: 3;
    gap: 16px;
  }
  .site-header.nav-open .header-contacts {
    gap: 6px;
    margin-top: 4px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
  }
  .has-dropdown { width: 100%; }
  .has-dropdown > button { width: 100%; justify-content: space-between; }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 4px 0 0 12px;
    display: none;
  }
  .has-dropdown.open .dropdown-menu { display: flex; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-text { order: 1; }
  .hero-scene { order: 2; height: 280px; transform: scale(.72); }
  .hero-text h1 { font-size: 34px; }

  .orientir-panel { grid-template-columns: repeat(2, 1fr); }

  .footer-inner { grid-template-columns: 1fr; }

  .project-hero h1 { font-size: 34px; }
  .info-rows { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 24px 20px; }
  .stat-card:nth-child(2)::before { display: none; }
  .effect-grid { grid-template-columns: 1fr; }
  .region-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-split { grid-template-columns: 1fr; }
  .cta-split .photo-placeholder { min-height: 240px; }

  .circle-stage { height: 300px; --radius-x: 120px; --rise: 28px; }
  .circle-photo { width: 250px; height: 184px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .header-inner { padding: 14px 20px; }
  .hero { padding: 56px 0 64px; }
  .hero-text h1 { font-size: 28px; }
  .slant-md { font-size: 22px; padding: 20px 60px 20px 22px; }

  .orientir-panel { grid-template-columns: 1fr; padding: 32px 24px; }
  .cases-grid { grid-template-columns: 1fr; }
  .circle-stage { height: 220px; --radius-x: 70px; --rise: 16px; }
  .circle-photo { width: 170px; height: 126px; border-radius: 14px; }
  .carousel-arrow { width: 40px; height: 40px; }
  .carousel-arrow--prev { left: 0; }
  .carousel-arrow--next { right: 0; }
  .carousel-arrow svg { width: 18px; height: 18px; }
  .impact-band { padding: 40px 0 48px; }
  .impact-grid { grid-template-columns: 1fr; gap: 28px; }
  .impact-item { padding-left: 0; }
  .impact-item::before { display: none; }

  .form-row { flex-direction: column; }

  /* Orbit becomes static dots on small screens: motion illegible at this size */
  .hero-scene { height: auto; padding: 24px 0; transform: none; }
  .scene-frame, .scene-ring, .orbit-track { display: none; }
  .orbit-ellipse--back { display: none; }
  .orbit-ellipse {
    position: static;
    width: auto;
    height: auto;
    transform: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
    max-width: 280px;
    margin-top: 18px;
  }
  .orbit-city {
    position: static;
    offset-path: none;
    animation: none;
    opacity: 1;
    transform: none;
  }
  .hero-scene { flex-direction: column; }
  .sphere-wrap { width: 140px; height: 140px; flex-shrink: 0; }
  .sphere-bloom { inset: -10px; }

  .stats-row { grid-template-columns: 1fr; gap: 20px; }
  .stat-card::before { display: none; }
  .stat-card { padding-left: 0; }
  .region-grid { grid-template-columns: 1fr; }
  .map-pins { position: static; height: auto; display: flex; flex-direction: column; gap: 14px; }
  .map-pin { position: static; }
  .leader-block { flex-direction: column; padding: 28px; }
  .stats-panel, .map-panel { padding: 32px 24px; }
  .cta-split-text { padding: 36px; }
}

/* ── Форма заявки ───────────────────────────────────────────────────────────
   Ловушка для ботов. display:none не годится: часть ботов такие поля
   пропускает, а часть браузеров исключает из отправки формы. Поэтому поле
   реально существует и отправляется — просто уезжает за границы экрана. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Результат отправки: успех и отказ должны отличаться не только текстом. */
.form-note[data-state="ok"]    { color: var(--turquoise-light); }
.form-note[data-state="error"] { color: #ff9d9d; }

.join-form button[type="submit"][disabled] { opacity: 0.65; cursor: progress; }

/* Ссылка на политику внутри чекбокса согласия */
.consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { opacity: 0.8; }

/* iOS Safari зумит страницу при фокусе в поле с font-size < 16px и после
   скрытия клавиатуры оставляет вьюпорт смещённым.
   Урок: brain/project/lessons/frontend.md */
@media (max-width: 640px) {
  .join-form input,
  .join-form select,
  .join-form textarea { font-size: 16px; }
}

/* ── Правовые страницы (политика обработки ПД) ──────────────────────────── */
.legal-page { padding: 140px 0 80px; }
.legal-container { max-width: 820px; }
.legal-page h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 0 0 8px; }
.legal-page h2 { font-size: clamp(19px, 2.4vw, 23px); margin: 36px 0 12px; }
.legal-page p,
.legal-page li { font-size: 16px; line-height: 1.7; }
.legal-page ul { margin: 12px 0 12px 20px; display: flex; flex-direction: column; gap: 8px; }
.legal-meta { opacity: 0.6; font-size: 14px; margin: 0 0 8px; }
.legal-back { margin-top: 44px; }

/* Места, где Фонд должен подставить свои данные. Заметно на странице
   намеренно: пропущенный реквизит в политике хуже, чем некрасивая плашка. */
.legal-todo {
  background: rgba(255, 193, 7, 0.22);
  border-bottom: 1px dashed rgba(255, 193, 7, 0.85);
  padding: 0 4px;
}

@media (max-width: 640px) {
  .legal-page { padding: 104px 0 56px; }
}

/* ── Мобильные добивки ──────────────────────────────────────────────────────
   На проектных страницах число колонок у .cards-grid задано инлайн-стилем
   прямо в разметке (repeat(2,1fr) / repeat(3,1fr)). Инлайн-стиль сильнее
   любого селектора, поэтому обычное правило в медиазапросе его не перебивает —
   отсюда !important. Без этого «Голос города» уезжает вбок на 17px: колонки
   1fr не могут сжаться уже min-content своего содержимого. */
@media (max-width: 640px) {
  .cards-grid { grid-template-columns: 1fr !important; }
}

/* Страховка от той же беды в других сетках: 1fr не пускает трек уже
   содержимого, minmax(0,1fr) — пускает. */
@media (max-width: 900px) {
  .cards-grid,
  .cases-grid,
  .region-grid,
  .stats-row { min-width: 0; }
  .cards-grid > *,
  .cases-grid > *,
  .region-grid > *,
  .stats-row > * { min-width: 0; }
}

/* ── Тап-цели на мобильных ──────────────────────────────────────────────────
   Ссылки и элементы управления высотой 9–19px пальцем не берутся. */
@media (max-width: 640px) {
  /* Пункты меню в подвале — растим область нажатия, не трогая соседей */
  .footer-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
  }

  /* Чекбокс согласия. Сам label кликабелен, но по галочке промахиваются чаще
     всего — она была 13px. */
  .consent input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }
}

/* Точки слайдера — 9–12px. Размер оставляем как задуман, расширяем только
   область нажатия прозрачным псевдоэлементом: внешне ничего не меняется. */
.carousel-dot { position: relative; }
.carousel-dot::after {
  content: '';
  position: absolute;
  inset: -13px;
}

/* ── Подвал с формой на узких экранах ───────────────────────────────────────
   Колонка грида задана как 1fr, а это minmax(auto, 1fr): трек не может стать
   уже min-content своего содержимого. У блока с формой min-content больше
   доступных 350px (его задают <select> с длинными опциями и строки списка
   выгод — оба flex-элементы с min-width: auto). Трек раздувался до 373px,
   и форма уезжала за правый край экрана: поля обрезались, а горизонтального
   скролла не было — родитель с overflow: hidden просто отрезал лишнее.
   minmax(0, 1fr) снимает нижнюю границу трека, дальше содержимое переносится. */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr) !important; }
}

/* Разрешаем содержимому реально сжиматься: без этого автоминимум flex-элемента
   снова упрётся в ширину самой длинной строки. */
.footer-cta,
.join-form,
.form-row,
.benefits-list,
.benefits-list li,
.consent { min-width: 0; }

.form-row input,
.form-row select { max-width: 100%; }

/* Длинные слова в подвале (адрес, почта) не должны распирать колонку */
.footer-legal p,
.footer-contacts a { overflow-wrap: anywhere; }

/* Города под сферой на мобильном: 11px — ниже комфортного минимума,
   а список из девяти названий и так сжат в три ряда. Даём читаемый размер
   и чуть больше воздуха, оформляя каждый город отдельной «фишкой». */
@media (max-width: 640px) {
  .orbit-ellipse { max-width: 320px; gap: 8px; }
  .orbit-city {
    gap: 7px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
  }
  .orbit-city .city-name { font-size: 13px; }
}
