/* ==========================================================================
   Babysmile Group — основной стиль
   Принципы §21 ТЗ: крупные экраны, выраженная типографика, воздух,
   один экран — одна мысль, деликатная анимация, доступность.
   Контрольные разрешения: 360 / 768 / 1024 / 1440 / 1920.
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, svg, video { max-width: 100%; }
img { height: auto; display: block; }
picture { display: block; }

a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0 0 .4em; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
ul { margin: 0; padding: 0; list-style: none; }

a[href], button, summary, label, input[type="checkbox"],
.geo__filter, .slider__dot, .slider__btn, .tabs__btn, .orbit__node span,
.case, .ribbon__item { cursor: pointer; }
button:disabled { cursor: default; }

:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 48px, var(--wrap-narrow)); }

.muted { color: var(--muted); }

/* Метка непроверенных данных (§25 ТЗ) */
.tbd, .is-tbd {
  border-bottom: 1.5px dashed var(--gold);
  cursor: help;
}

/* --------------------------------------------------------------- Кнопки */
.btn {
  display: inline-flex; white-space: nowrap; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px;
  font-size: 15.5px; font-weight: 500; letter-spacing: .01em;
  border: 1px solid transparent; border-radius: 6px; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn:active { transform: translateY(1px); }
.btn--gold  { background: var(--gold); color: #1B1408; border-color: var(--gold); }
.btn--gold:hover  { background: #D3A867; border-color: #D3A867; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--dark  { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--dark:hover  { background: var(--ink-2); }
.btn--link  { background: none; color: var(--text); border-color: var(--line); }
.btn--link:hover  { border-color: var(--gold-2); color: var(--gold-2); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--gold-2); font-weight: 500; font-size: 15.5px;
  transition: gap .25s, color .25s;
}
.link-arrow .ico { transition: transform .25s; }
.link-arrow:hover { gap: 14px; }
.link-arrow:hover .ico { transform: translateX(3px); }

/* --------------------------------------------------------------- Шапка */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
  transition: background .3s, border-color .3s, box-shadow .3s, transform .45s cubic-bezier(.4,0,.2,1);
}
.site-header--over {
  position: fixed; inset: 0 0 auto 0;
  background: transparent; border-color: transparent; color: #fff;
  backdrop-filter: none;
}
.site-header.is-hidden { transform: translateY(-102%); }
.site-header { transform: translateY(0); will-change: transform; }
.site-header--over.is-stuck {
  background: rgba(20,25,32,.9);
  backdrop-filter: saturate(140%) blur(12px);
  border-color: rgba(255,255,255,.08);
}
.site-header__inner {
  display: flex; align-items: center; gap: 28px;
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 13px; flex-shrink: 0; }
.brand__name { font-size: 16.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.bsg-mark {
  flex-shrink: 0; display: block; background-color: currentColor;
  -webkit-mask-image: var(--mark); mask-image: var(--mark);
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.brand:hover .bsg-mark { transform: scale(1.07) rotate(-3deg); }
.bsg-word {
  display: block; aspect-ratio: 1056 / 348; background-color: currentColor;
  -webkit-mask-image: var(--word); mask-image: var(--word);
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}

.nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 26px; }
.nav__list a {
  font-size: 15px; white-space: nowrap; opacity: .88; position: relative; padding: 6px 0;
  transition: opacity .2s;
}
.nav__list a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--gold); transition: right .28s;
}
.nav__list a:hover { opacity: 1; }
.nav__list a:hover::after { right: 0; }
.nav__cta { min-height: 44px; padding: 0 22px; font-size: 14.5px; }

.burger { display: none; width: 44px; height: 44px; margin-left: auto;
  background: none; border: 0; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 1.5px; background: currentColor; margin: 5px 0;
  transition: transform .3s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* --------------------------------------------------------------- Герой */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  color: #fff; overflow: hidden;
  padding: calc(var(--header-h) + 40px) 0 120px;
}
.hero__media { position: absolute; inset: 0; }
.hero__pic, .hero__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 40%; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(102deg, rgba(15,19,25,.95) 0%, rgba(15,19,25,.86) 34%, rgba(15,19,25,.42) 58%, rgba(15,19,25,.24) 100%),
    linear-gradient(180deg, rgba(15,19,25,.55) 0%, rgba(15,19,25,0) 30%);
}
.hero__inner { position: relative; }
.hero__text { max-width: 620px; }
.hero__title {
  font-family: var(--font-body);
  font-size: clamp(44px, 6.6vw, 86px);
  font-weight: 700; letter-spacing: -.035em; line-height: 1.02;
  margin: 0 0 18px;
}
.hero__lead {
  font-size: clamp(20px, 2.3vw, 28px); font-weight: 400; line-height: 1.32;
  margin: 0 0 24px; color: rgba(255,255,255,.96);
}
.hero__sub { font-size: 16px; line-height: 1.65; color: rgba(255,255,255,.76); max-width: 500px; }
.hero__rule { width: 54px; height: 1px; background: var(--gold); margin: 28px 0 24px; }
.hero__anchor { font-size: 16px; line-height: 1.65; color: rgba(255,255,255,.86); max-width: 500px; }
.hero__anchor strong { font-weight: 600; color: #fff; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(255,255,255,.66); font-size: 12.5px; letter-spacing: .06em;
}
.hero__mouse {
  width: 24px; height: 38px; border: 1px solid rgba(255,255,255,.5); border-radius: 13px;
  display: flex; justify-content: center; padding-top: 7px;
}
.hero__mouse i { width: 2px; height: 7px; border-radius: 2px; background: rgba(255,255,255,.8);
  animation: mouse 1.8s ease-in-out infinite; }
@keyframes mouse { 0%,100% { transform: translateY(0); opacity: 1 } 60% { transform: translateY(9px); opacity: .2 } }

/* --------------------------------------------------------------- Секции */
.section { padding: 104px 0; }
.section--cream { background: var(--cream); }
.section--blush { background: var(--blush); }
.section--dark  { background: var(--ink); color: #fff; }
.section--navy  { background: var(--navy); color: #fff; padding: 72px 0; }
.section--stats { padding: 72px 0; border-bottom: 1px solid var(--line-soft); }

.eyebrow {
  font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-2); margin: 0 0 14px; font-weight: 500;
}
.eyebrow--on-dark, .section--dark .eyebrow, .section--navy .eyebrow { color: var(--gold-soft); }

.sec-head { max-width: 780px; margin-bottom: 56px; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--row { display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; max-width: none; }
.sec-title {
  font-family: var(--font-display);
  font-size: clamp(29px, 3.6vw, 46px); font-weight: 500; line-height: 1.18;
  letter-spacing: -.01em; margin: 0;
}
.sec-rule { width: 54px; height: 1px; background: var(--gold); margin: 22px 0 20px; }
.sec-head--center .sec-rule { margin-inline: auto; }
.sec-lead { font-size: 17.5px; color: var(--muted); margin: 0; }
.sec-head--on-dark .sec-lead { color: rgba(255,255,255,.7); }

/* --------------------------------------------------------------- Цифры */
.stats {
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.stats__item {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 12px 18px; position: relative;
}
.stats__item + .stats__item::before {
  content: ''; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px; background: var(--line);
}
.stats__icon { color: var(--gold); margin-bottom: 16px; }
/* «более» над числом; у карточек без него строка пустая — числа стоят на одной линии */
.stats__pre {
  display: block; height: 16px; margin-bottom: 6px;
  font-size: 12px; font-weight: 600; line-height: 16px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold);
}
.stats__value {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.1vw, 46px); font-weight: 700; line-height: 1; white-space: nowrap;
  color: var(--ink); margin-bottom: 10px;
}
.stats__label { font-size: 14.5px; font-weight: 500; line-height: 1.45; color: var(--muted); max-width: 210px; text-wrap: balance; }
.stats__note { text-align: center; font-size: 13px; color: var(--muted-2); margin: 34px 0 0; }

/* ------------------------------ «О нас» (6 карточек: ряды 3 + 3, с пояснением) */
.infra-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 30px 12px;
}
.infra-grid__item {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 12px; padding: 8px; flex: 0 0 calc((100% - 24px) / 3); max-width: 340px;
}
.infra-grid__icon { color: var(--gold-2); }
.infra-grid__label { font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.infra-grid__text { margin-top: -4px; font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 280px; text-wrap: balance; }

.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 64px; }
.strip__pic { border-radius: var(--radius); overflow: hidden; }
.strip__pic img { aspect-ratio: 4/3; object-fit: cover; width: 100%;
  filter: saturate(.92); transition: transform .6s ease, filter .6s; }
.strip__pic:hover img { transform: scale(1.03); filter: saturate(1); }

/* --------------------------------------------------- Социальный вклад */
.social { display: grid; grid-template-columns: .85fr 1fr; gap: 68px; align-items: center; }
.social__pic { overflow: hidden; border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%; }
.social__pic img { width: 100%; aspect-ratio: 1/1; object-fit: cover; object-position: 50% 45%; }
.social__amount { margin: 26px 0 4px; }
.social__num {
  font-family: var(--font-display); font-size: clamp(38px, 5vw, 62px);
  color: var(--gold-2); line-height: 1;
}
.social__num--empty { color: #C9B29A; border-bottom: 2px dashed var(--gold); }
.social__amount-cap { font-size: 16.5px; color: var(--muted); max-width: 430px; }
.social__tiles {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  margin: 34px 0 26px; border-top: 1px solid rgba(0,0,0,.07); padding-top: 26px;
}
.social__tiles li {
  display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; line-height: 1.4;
  padding-right: 14px; border-right: 1px solid rgba(0,0,0,.07);
}
.social__tiles li:last-child { border-right: 0; }
.social__tile-icon { color: var(--gold-2); }
.social__metrics { font-size: 14.5px; color: var(--muted); max-width: 480px; }
.social__amount-note { margin: 10px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted-2); max-width: 430px; }
.social__mark { display: block; width: 92px; margin: 0 0 18px; }
.social__mark img { width: 100%; height: auto; display: block; }

/* ------------------------------------------------------------- Ядро (BSP) */
.core {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--white); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  margin-bottom: 64px;
}
.core__media { position: relative; min-height: 460px; }
.core__pic { position: absolute; inset: 0; }
.core__pic img { width: 100%; height: 100%; object-fit: cover; }
.core__badge {
  position: absolute; left: 26px; top: 26px;
  background: rgba(20,25,32,.82); color: #fff; backdrop-filter: blur(6px);
  font-size: 12px; letter-spacing: .13em; text-transform: uppercase;
  padding: 9px 16px; border-radius: 100px;
}
.core__body { padding: 54px 54px 48px; }
.core__title { font-family: var(--font-display); font-size: clamp(28px, 3vw, 40px); font-weight: 500; }
.core__lead { font-size: 17px; color: var(--muted); max-width: 46ch; }
.core__list {
  display: grid; grid-template-columns: 1fr; gap: 9px; margin: 26px 0 30px;
}
.core__list li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.5; }
.core__list li::before {
  content: ''; position: absolute; left: 2px; top: 10px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}
.core__proof {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 26px;
  border-top: 1px solid var(--line-soft); padding-top: 26px; margin-bottom: 32px;
}
.core__proof div { display: flex; flex-direction: column; gap: 3px; }
.core__proof div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.core__proof span { font-family: var(--font-display); font-size: 22px; line-height: 1.2; color: var(--ink); }
.core__proof small { font-size: 13px; color: var(--muted); line-height: 1.4; }
.core__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------- Направления роста (3) */
.dirs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.dir {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 34px 32px 32px; display: flex; flex-direction: column;
  transition: transform .35s, box-shadow .35s, border-color .35s;
}
.dir:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line); }
.dir__icon { color: var(--gold-2); margin-bottom: 20px; }
.dir__kicker { font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted-2); margin: 0 0 8px; }
.dir__title { font-family: var(--font-display); font-size: 25px; font-weight: 500; margin-bottom: 8px; }
.dir__status {
  display: inline-block; align-self: flex-start;
  background: #F2EAdd; color: #8A6B36; font-size: 12.5px;
  padding: 4px 12px; border-radius: 100px; margin: 0 0 12px;
}
.dir__lead { font-size: 15.5px; color: var(--muted); }
.dir__list { margin: 16px 0 26px; display: grid; gap: 9px; }
.dir__list li { position: relative; padding-left: 18px; font-size: 14.5px; line-height: 1.5; color: var(--text); }
.dir__list li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold-soft);
}
.dir .link-arrow { margin-top: auto; }

/* ------------------------------------------------------------- Орбита */
.orbit {
  position: relative; height: 620px; margin: 0 auto 84px; max-width: 940px;
  display: flex; align-items: center; justify-content: center;
}
.orbit__ring, .orbit__ring--outer {
  position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.1);
}
.orbit__ring { width: 300px; height: 300px; }
.orbit__ring--outer { width: 520px; height: 520px; border-style: dashed; border-color: rgba(255,255,255,.07); }
.orbit__center { position: relative; text-align: center; z-index: 2; }
.orbit__pic { width: 190px; height: 190px; border-radius: 50%; overflow: hidden;
  border: 3px solid rgba(255,255,255,.14); }
.orbit__pic img { width: 100%; height: 100%; object-fit: cover; }
.orbit__center-label {
  display: block; margin-top: 14px; font-size: 13px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold-soft);
}
.orbit__nodes { position: absolute; inset: 0; }
.orbit__node {
  position: absolute; left: 50%; top: 50%;
  transform:
    rotate(calc(var(--i) * (360deg / var(--n)) - 90deg))
    translate(258px)
    rotate(calc(-1 * (var(--i) * (360deg / var(--n)) - 90deg)));
  width: 168px; margin: -30px 0 0 -84px;
  text-align: center;
}
.orbit__up { display: block; }
.orbit__chip {
  display: inline-block; font-size: 13.5px; line-height: 1.35;
  color: rgba(255,255,255,.86);
  background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; padding: 10px 12px; backdrop-filter: blur(4px);
  transition: transform .35s cubic-bezier(.2,.7,.3,1), background .35s, border-color .35s, color .35s;
}
/* Только для мыши: на телефоне тап оставлял подсветку намертво */
@media (hover: hover) and (pointer: fine) {
  .orbit__node:hover .orbit__chip {
    transform: scale(1.09);
    background: rgba(192,148,84,.18); border-color: var(--gold); color: #fff;
  }
}

.value { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.value__col { border-top: 1px solid rgba(255,255,255,.14); padding-top: 26px; }
.value__icon { color: var(--gold-soft); display: block; margin-bottom: 16px; }
.value__col h3 { font-family: var(--font-display); font-size: 24px; font-weight: 500; margin-bottom: 14px; }
.value__col ul { display: grid; gap: 9px; }
.value__col li { position: relative; padding-left: 18px; font-size: 15px; color: rgba(255,255,255,.74); }
.value__col li::before {
  content: ''; position: absolute; left: 0; top: 10px; width: 5px; height: 5px;
  border-radius: 50%; background: var(--gold);
}

/* --------------------------------------------------------------- Кейсы */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.case {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-soft); display: flex; flex-direction: column;
  transition: box-shadow .35s, transform .35s;
}
.case:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.case__pic img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.case__body { padding: 28px 28px 26px; display: flex; flex-direction: column; flex: 1; }
.case__tag { font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-2); margin: 0 0 10px; }
.case__title { font-family: var(--font-display); font-size: 23px; font-weight: 500; }
.case__lead { font-size: 15px; color: var(--muted); }
.case__more { margin-top: auto; border-top: 1px solid var(--line-soft); padding-top: 16px; }
.case__more summary {
  cursor: pointer; font-size: 14.5px; color: var(--gold-2); font-weight: 500;
  list-style: none; display: flex; align-items: center; gap: 8px;
}
.case__more summary::-webkit-details-marker { display: none; }
.case__more summary::after { content: '+'; margin-left: auto; font-size: 20px; line-height: 1; }
.case__more[open] summary::after { content: '–'; }
.case__fields { margin: 18px 0 0; display: grid; gap: 12px; }
.case__fields dt { font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted-2); }
.case__fields dd { margin: 3px 0 0; font-size: 14.5px; line-height: 1.55; }

/* ----------------------------------------------------------- География */
.geo__filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.geo__filter {
  background: none; border: 1px solid var(--line); border-radius: 100px;
  padding: 10px 22px; font-size: 14.5px; font-family: inherit; color: var(--muted);
  cursor: pointer; min-height: 44px; transition: all .25s;
}
.geo__filter:hover { border-color: var(--gold); color: var(--text); }
.geo__filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.geo__body { position: relative; overflow: hidden; }
.geo__map {
  position: absolute; inset: -6% -4% auto auto; width: 62%; opacity: .07;
  pointer-events: none;
}
.geo__map img { filter: invert(1); width: 100%; }
.geo__lists { position: relative; display: grid; grid-template-columns: 2.2fr 1fr 1fr; gap: 40px; }
.geo__country-name {
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--font-display); font-size: 21px; font-weight: 500;
  border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 18px;
}
.geo__count { font-family: var(--font-body); font-size: 13px; color: var(--muted-2); }
.geo__cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px 18px; }
.geo__city {
  display: flex; align-items: center; gap: 10px; font-size: 15.5px;
  transition: opacity .3s, filter .3s;
}
.geo__city.is-dim { opacity: .28; }
.geo__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.geo__note { margin: 40px 0 0; font-size: 13px; color: var(--muted-2); }

/* ----------------------------------------------------------- Партнёры */
.partners { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.partners__cat {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 28px 24px;
}
.partners__icon { color: var(--gold-2); display: block; margin-bottom: 16px; }
.partners__cat h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.partners__cat p { font-size: 14px; color: var(--muted); margin: 0; }

.agree { margin-top: 46px; border-top: 1px solid var(--line); padding-top: 34px; }
.agree__title { font-family: var(--font-display); font-size: 22px; font-weight: 500; margin-bottom: 20px; }
.agree__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.agree__list li {
  display: flex; flex-direction: column; gap: 3px;
  border-left: 2px solid var(--gold-soft); padding-left: 14px;
}
.agree__region { font-size: 15.5px; }
.agree__status { font-size: 13px; color: var(--muted); }
.agree__note { margin: 26px 0 0; font-size: 13px; color: var(--muted-2); }

/* -------------------------------------------------------- Три сердца */
.hearts { display: flex; align-items: center; gap: 46px; }
.hearts__logo {
  width: 132px; height: 132px; flex-shrink: 0; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.hearts__logo img { filter: brightness(1.4); }
.hearts__title { font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); font-weight: 500; }
.hearts__text { font-size: 16.5px; color: rgba(255,255,255,.82); max-width: 68ch; }
.hearts__note { font-size: 13.5px; color: rgba(255,255,255,.5); margin: 0; max-width: 68ch; }

/* ------------------------------------------------------------- Новости */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news--archive { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.news__card {
  border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden;
  background: var(--white); transition: box-shadow .35s, transform .35s;
}
.news__card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.news__link { display: flex; flex-direction: column; height: 100%; }
.news__media { overflow: hidden; background: var(--cream); }
.news__media img { width: 100%; aspect-ratio: 3/2; object-fit: cover;
  transition: transform .6s ease; }
.news__card:hover .news__media img { transform: scale(1.04); }
.news__body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.news__date { font-size: 13px; color: var(--muted-2); margin-bottom: 10px; }
.news__title { font-family: var(--font-display); font-size: 20px; font-weight: 500; line-height: 1.3; }
.news__excerpt { font-size: 14.5px; color: var(--muted); }
.news__more { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center;
  gap: 8px; color: var(--gold-2); font-size: 14.5px; }

/* --------------------------------------------------------------- Формы */
.section--contact { padding-bottom: 88px; }
.tabs { max-width: 940px; margin: 0 auto; }
.tabs__nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.tabs__btn {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.8); border-radius: 100px; padding: 12px 24px;
  font-family: inherit; font-size: 14.5px; cursor: pointer; min-height: 46px;
  transition: all .25s;
}
.tabs__btn:hover { border-color: var(--gold); color: #fff; }
.tabs__btn.is-active { background: var(--gold); border-color: var(--gold); color: #1B1408; }
.tabs__panel { animation: fade .4s ease both; }
.tabs__hint { text-align: center; color: rgba(255,255,255,.62); font-size: 15px; margin-bottom: 26px; }
@keyframes fade { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }

.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form__field { margin: 0; display: flex; flex-direction: column; gap: 7px; }
.form__field--wide { grid-column: 1 / -1; }
.form__field label { font-size: 13.5px; color: rgba(255,255,255,.7); }
.req { color: var(--gold); }
.form input[type=text], .form input[type=tel], .form input[type=email], .form textarea {
  width: 100%; font-family: inherit; font-size: 15.5px; color: #fff;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px; padding: 13px 16px; min-height: 50px;
  transition: border-color .25s, background .25s;
}
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form textarea:focus { border-color: var(--gold); background: rgba(255,255,255,.08); }
.form input::placeholder { color: rgba(255,255,255,.32); }

.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__consent { margin: 22px 0 8px; }
.form__consent label { display: flex; gap: 12px; align-items: flex-start;
  font-size: 13.5px; color: rgba(255,255,255,.66); line-height: 1.55; }
.form__consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--gold); flex-shrink: 0; }
.form__consent a { color: var(--gold-soft); text-decoration: underline; }
.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 22px 0 0; }
.form__hint { font-size: 13px; color: rgba(255,255,255,.45); }

.form__msg { max-width: 940px; margin: 0 auto 26px; padding: 16px 22px; border-radius: 8px; font-size: 15.5px; }
.form__msg--ok  { background: rgba(120,180,140,.14); border: 1px solid rgba(120,180,140,.4); }
.form__msg--err { background: rgba(210,120,110,.14); border: 1px solid rgba(210,120,110,.4); }

.contact__direct {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 34px;
  margin-top: 54px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: 15.5px; color: rgba(255,255,255,.72);
}
.contact__direct a:hover { color: var(--gold-soft); }

/* --------------------------------------------------- Внутренние страницы */
.page-hero { padding: calc(var(--header-h) + 56px) 0 40px; background: var(--cream); }
.page-hero__title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 46px); font-weight: 500; }

/* Новости (лента и страница публикации) — без засечек, по решению 29.07.2026.
   Заголовки секций на главной остаются в Playfair. */
.blog .page-hero__title,
.page-hero--post .page-hero__title,
.news--archive .news__title,
.post__content h2 {
  font-family: var(--font-body); font-weight: 600; letter-spacing: -.02em; line-height: 1.16;
}
.post__date { font-size: 14px; color: var(--muted); display: block; margin-bottom: 10px; }
.link-back { font-size: 14.5px; color: var(--gold-2); display: inline-block; margin-bottom: 20px; }
.post__cover { margin: 34px auto; }
.post__cover img { width: 100%; border-radius: var(--radius); }
.post__content { padding: 20px 0 90px; font-size: 17.5px; }
.post__content p { max-width: 70ch; }
.post__content h2 { font-family: var(--font-display); font-size: 28px; margin-top: 1.6em; }
.post__content img { border-radius: var(--radius); margin: 26px 0; }
.pagination { margin-top: 40px; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; margin-right: 6px; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* --------------------------------------------------------------- Подвал */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 72px 0 34px; font-size: 15px; }
.footer__top { display: grid; grid-template-columns: 1.15fr 2fr; gap: 54px; padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.1); }
/* Подвал: знак слева от надписи, обе строки выключены влево */
.brand--footer { color: #fff; margin-bottom: 18px; align-items: center; gap: 16px; }
.brand__lockup {
  font-size: 25px; font-weight: 700; line-height: 1.08;
  letter-spacing: .015em; text-transform: uppercase; text-align: left;
}
.footer__legalline { font-size: 13.5px; color: rgba(255,255,255,.5); max-width: 42ch; line-height: 1.6; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.footer__col h3 { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-soft); font-weight: 500; margin-bottom: 16px; }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a:hover { color: #fff; }
.footer__col .muted { color: rgba(255,255,255,.4); font-size: 13px; }
.footer__soc { display: flex; gap: 12px; margin-top: 20px; }
.footer__soc a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.07); transition: background .25s, color .25s;
}
.footer__soc a:hover { background: var(--gold); color: #1B1408; }
/* Самолётик Telegram крупнее по силуэту и смещён вправо-вверх — уравниваем с ВК */
.footer__soc-tg svg { transform: translate(-.5px, .5px); }

.footer__legal { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; padding: 34px 0; }
.footer__owner { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.5); max-width: 62ch; }
.footer__owner strong { color: rgba(255,255,255,.72); font-weight: 500; }
.footer__owner a { text-decoration: underline; }
.footer__docs { display: grid; gap: 10px; align-content: start; font-size: 13.5px; }
.footer__docs a { color: rgba(255,255,255,.62); }
.footer__docs a:hover { color: #fff; }
.footer__copy { font-size: 12.5px; color: rgba(255,255,255,.36); border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 22px; margin: 0; }

/* --------------------------------------------------------- Анимации */
[data-reveal] { opacity: 0; transform: translateY(22px); }
.is-revealed[data-reveal], [data-reveal].is-revealed {
  opacity: 1; transform: none;
  transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ========================================================== Адаптив */

@media (max-width: 1200px) {
  .infra-grid__item { flex-basis: calc((100% - 24px) / 3); }
  .partners { grid-template-columns: repeat(3, 1fr); }
  .geo__lists { grid-template-columns: 1.6fr 1fr; }
}

@media (max-width: 1024px) {
  .section { padding: 80px 0; }
  .nav__list { display: none; }
  .nav__cta { display: none; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--ink); color: #fff;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 20px 24px 30px; margin: 0;
    transform: translateY(-120%); transition: transform .38s cubic-bezier(.4,0,.2,1), visibility 0s .38s;
    max-height: calc(100svh - var(--header-h)); overflow-y: auto;
    /* В закрытом виде список и кнопка скрыты, панель низкая — сдвига на 120%
       её высоты не хватало, и тёмная полоса перекрывала шапку. Убираем целиком. */
    visibility: hidden;
  }
  .nav.is-open { transform: none; visibility: visible; transition: transform .38s cubic-bezier(.4,0,.2,1), visibility 0s; }
  .nav.is-open .nav__list { display: grid; gap: 4px; }
  .nav.is-open .nav__cta { display: inline-flex; margin-top: 18px; }
  .nav__list a { display: block; padding: 13px 0; font-size: 17px;
    border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav__list a::after { display: none; }

  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .stats__item:nth-child(odd)::before { display: none; }
  .stats__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .core { grid-template-columns: 1fr; }
  .core__media { min-height: 320px; }
  .core__body { padding: 40px 34px; }
  .dirs { grid-template-columns: 1fr; }
  .cases { grid-template-columns: 1fr; }
  .case { flex-direction: row; }
  .case__media { width: 42%; flex-shrink: 0; position: relative; }
  .case__pic { position: absolute; inset: 0; }
  .case__pic img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
  .news { grid-template-columns: 1fr 1fr; }
  .value { grid-template-columns: 1fr; gap: 26px; }
  .social { grid-template-columns: 1fr; gap: 36px; }
  .social__media { max-width: 440px; }
  .footer__top { grid-template-columns: 1fr; gap: 36px; }
  .footer__legal { grid-template-columns: 1fr; gap: 26px; }

  /* Орбита → вертикальный список (§21: не терять смысл на мобильном) */
  .orbit { height: auto; flex-direction: column; margin-bottom: 56px; }
  .orbit__ring, .orbit__ring--outer { display: none; }
  .orbit__nodes { position: static; display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px; margin-top: 30px; width: 100%; }
  .orbit__node { position: static; transform: none; width: auto; margin: 0; }
  .orbit__node span { display: block; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap, .wrap--narrow { width: min(100% - 34px, var(--wrap)); }
  .section { padding: 64px 0; }
  .sec-head { margin-bottom: 40px; }
  .sec-head--row { flex-direction: column; align-items: flex-start; }

  .hero { min-height: 92svh; padding-bottom: 96px; }
  .hero__pic, .hero__pic img { object-position: 68% 30%; }
  .hero__scrim { background:
    linear-gradient(180deg, rgba(15,19,25,.72) 0%, rgba(15,19,25,.55) 38%, rgba(15,19,25,.94) 78%); }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }

  .br-desk { display: none; }
  .stats { grid-template-columns: 1fr 1fr; gap: 30px 0; }
  .stats__item::before { display: none !important; }
  .stats__item:nth-child(odd) { border-right: 1px solid var(--line); }
  .stats__item:last-child:nth-child(odd) { border-right: 0; }

  .infra-grid { gap: 24px 10px; }
  .infra-grid__item { flex-basis: 100%; max-width: 360px; }
  .strip { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 44px; }
  .social__tiles { grid-template-columns: 1fr 1fr; gap: 20px; }
  .social__tiles li { border-right: 0; }
  .core__body { padding: 30px 22px 34px; }
  .core__list { grid-template-columns: 1fr; }
  .core__proof { grid-template-columns: 1fr; }
  .core__cta { flex-direction: column; align-items: stretch; }
  .case { flex-direction: column; }
  .case__media { width: 100%; }
  .partners { grid-template-columns: 1fr; }
  .geo__lists { grid-template-columns: 1fr; gap: 30px; }
  .geo__map { display: none; }
  .orbit__nodes { grid-template-columns: 1fr; }
  .hearts { flex-direction: column; text-align: center; gap: 26px; }
  .news { grid-template-columns: 1fr; }
  .form__grid { grid-template-columns: 1fr; }
  .tabs__btn { width: 100%; }
  .footer__cols { grid-template-columns: 1fr; gap: 28px; }
  .contact__direct { flex-direction: column; gap: 14px; text-align: center; }
}

/* ==========================================================================
   Движение и микроинтеракции
   Всё ниже отключается блоком prefers-reduced-motion в конце файла.
   ========================================================================== */

/* ------------------------------------------- Полоса прогресса прокрутки */
.scroll-progress {
  position: fixed; left: 0; top: 0; z-index: 200;
  height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--gold-soft), var(--gold));
  pointer-events: none;
}

/* --------------------------------------------- Герой: медленный наезд */
.hero__pic img { animation: kenburns 26s ease-in-out infinite alternate; }
@keyframes kenburns {
  from { transform: scale(1) translate3d(0,0,0); }
  to   { transform: scale(1.09) translate3d(-1.4%, -1.2%, 0); }
}

/* Появление заголовка по словам */
/* padding+отрицательный margin: маска не срезает выносные элементы («y», «р»),
   при этом высота строки остаётся прежней */
.word { display: inline-block; overflow: hidden; vertical-align: bottom;
  padding-bottom: .18em; margin-bottom: -.18em; }
.word > i {
  display: inline-block; font-style: inherit;
  transform: translateY(105%); opacity: 0;
  transition: transform .9s cubic-bezier(.16,.8,.3,1), opacity .9s ease;
  transition-delay: calc(var(--w, 0) * 70ms);
}
.is-lit .word > i { transform: none; opacity: 1; }

.hero__lead, .hero__sub, .hero__rule, .hero__anchor, .hero__cta {
  opacity: 0; transform: translateY(16px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.3,1);
}
.is-lit .hero__lead   { opacity: 1; transform: none; transition-delay: .35s; }
.is-lit .hero__sub    { opacity: 1; transform: none; transition-delay: .45s; }
.is-lit .hero__rule   { opacity: 1; transform: none; transition-delay: .55s; }
.is-lit .hero__anchor { opacity: 1; transform: none; transition-delay: .62s; }
.is-lit .hero__cta    { opacity: 1; transform: none; transition-delay: .72s; }

/* Мягкое золотое свечение внизу героя */
.hero::after {
  content: ''; position: absolute; left: 50%; bottom: -180px; width: 720px; height: 340px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(192,148,84,.22), transparent 70%);
  pointer-events: none; animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { opacity: .5 } 50% { opacity: 1 } }

/* ------------------------------------------------- Магнитные кнопки */
.btn { will-change: transform; }
.btn--magnetic { transition: background .25s, color .25s, border-color .25s, transform .18s ease-out; }

/* ------------------------------------------------------- Параллакс */
[data-parallax] { will-change: transform; }

/* ---------------------------------- Раскрытие заголовков секций шторкой */
.sec-title { position: relative; }
[data-reveal] .sec-rule { transform: scaleX(0); transform-origin: left; }
.sec-head--center .sec-rule { transform-origin: center; }
[data-reveal].is-revealed .sec-rule { transform: scaleX(1); transition: transform .9s .25s cubic-bezier(.2,.7,.3,1); }

/* ------------------------------------------ Лента фотографий (marquee) */
.ribbon { margin-top: 64px; position: relative; overflow: hidden; }
.ribbon::before, .ribbon::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 12%; z-index: 2; pointer-events: none;
}
.ribbon::before { left: -1px;  background: linear-gradient(90deg, var(--cream), transparent); }
.ribbon::after  { right: -1px; background: linear-gradient(270deg, var(--cream), transparent); }
.ribbon__row { display: flex; gap: 16px; width: max-content; }
.ribbon__row + .ribbon__row { margin-top: 16px; }
.ribbon__row--a { animation: slide-l 46s linear infinite; }
.ribbon__row--b { animation: slide-r 54s linear infinite; }
.ribbon:hover .ribbon__row { animation-play-state: paused; }
@keyframes slide-l { from { transform: translateX(0) }        to { transform: translateX(-50%) } }
@keyframes slide-r { from { transform: translateX(-50%) }     to { transform: translateX(0) } }
.ribbon__item {
  width: 280px; flex-shrink: 0; border-radius: var(--radius); overflow: hidden;
  position: relative;
}
.ribbon__item img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  filter: saturate(.9) contrast(1.02); transition: filter .5s, transform .7s;
}
.ribbon__item:hover img { filter: saturate(1.05); transform: scale(1.05); }

/* ----------------------------------------------------- Слайдер кейсов */
.slider { position: relative; }
.slider__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, calc(33.333% - 18px));
  gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding-bottom: 8px;
  scrollbar-width: none; -ms-overflow-style: none; cursor: grab;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track.is-dragging { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; }
.slider__track > * { scroll-snap-align: start; }
.slider__nav { display: flex; align-items: center; gap: 12px; margin-top: 30px; }
.slider__btn {
  width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--white); color: var(--text); cursor: pointer;
  display: grid; place-items: center; transition: all .25s;
}
.slider__btn:hover:not(:disabled) { background: var(--ink); color: #fff; border-color: var(--ink); }
.slider__btn:disabled { opacity: .35; cursor: default; }
.slider__btn--prev .ico { transform: rotate(180deg); }
.slider__dots { display: flex; gap: 7px; margin-left: auto; }
.slider__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--line);
  border: 0; padding: 0; cursor: pointer; transition: all .3s;
}
.slider__dot.is-active { background: var(--gold); width: 24px; border-radius: 4px; }

/* ------------------------------------------------- Орбита: вращение */
.orbit__ring         { animation: spin 46s linear infinite; }
.orbit__ring--outer  { animation: spin 68s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.orbit__center::after {
  content: ''; position: absolute; left: 50%; top: 95px; width: 210px; height: 210px;
  transform: translate(-50%,-50%); border-radius: 50%;
  border: 1px solid rgba(192,148,84,.5); animation: pulse-ring 4.5s ease-out infinite;
  pointer-events: none;
}
@keyframes pulse-ring {
  0%   { transform: translate(-50%,-50%) scale(.92); opacity: .9 }
  70%  { transform: translate(-50%,-50%) scale(1.35); opacity: 0 }
  100% { opacity: 0 }
}

/* ----------------------------------------- Карточки: живой отклик */
.dir { position: relative; overflow: hidden; }
.dir::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.dir:hover::after { transform: scaleX(1); }
.case__pic img { transition: transform .8s cubic-bezier(.2,.7,.3,1); }
.case:hover .case__pic img { transform: scale(1.05); }
.value__col { position: relative; }
.value__col::before {
  content: ''; position: absolute; left: 0; top: -1px; width: 0; height: 1px; background: var(--gold);
  transition: width .8s cubic-bezier(.2,.7,.3,1);
}
.value__col.is-revealed::before { width: 46px; }
.partners__cat, .stats__item, .infra-grid__item { transition: transform .4s cubic-bezier(.2,.7,.3,1); }
.partners__cat:hover { transform: translateY(-4px); }
.infra-grid__item:hover { transform: translateY(-4px); }
.infra-grid__icon, .stats__icon { transition: transform .45s cubic-bezier(.2,.7,.3,1), color .3s; }
.infra-grid__item:hover .infra-grid__icon { transform: scale(1.14) translateY(-2px); color: var(--gold); }
.stats__item:hover .stats__icon { transform: translateY(-3px) scale(1.1); }
.geo__city { cursor: default; }
.geo__city:hover .geo__dot { transform: scale(1.6); }
.geo__dot { transition: transform .3s; }

/* ------------------------------------------------- Кнопка «наверх» */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px); color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
  opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none;
  transition: opacity .35s, transform .35s, background .25s, color .25s;
  box-shadow: var(--shadow);
}
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.to-top .ico { transform: rotate(-90deg); }

/* ----------------------------------- Мерцающие точки в тёмных секциях */
.spark-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.spark {
  position: absolute; top: var(--y); left: var(--x);
  width: var(--sz); height: var(--sz); border-radius: 50%;
  background: var(--gold-soft); opacity: 0;
  animation: spark var(--dur) ease-in-out var(--delay) infinite;
}
@keyframes spark {
  0%, 100% { opacity: 0; transform: translateY(0) scale(.6) }
  50%      { opacity: .5; transform: translateY(-14px) scale(1) }
}
.section--dark, .section--navy, .hero { position: relative; }
.section--dark > .wrap, .section--navy > .wrap { position: relative; z-index: 1; }

/* Ширина карточки задаётся жёстко, а не через minmax(0, %): с minmax грид
   ужимал три карточки под экран вместо горизонтальной прокрутки. */
@media (max-width: 1024px) {
  .slider__track { grid-auto-columns: 62%; }
  .ribbon__item { width: 220px; }
  .orbit__ring, .orbit__ring--outer, .orbit__center::after { display: none; }
}
@media (max-width: 760px) {
  /* Ровно одна карточка на экран — вторая не выглядывает справа */
  .slider__track { grid-auto-columns: 100%; gap: 18px; }
  /* Стрелки по центру, точки между ними */
  .slider__nav { justify-content: center; gap: 14px; }
  .slider__btn--prev { order: 1; }
  .slider__dots { order: 2; margin-left: 0; }
  .slider__btn--next { order: 3; }
  .ribbon__item { width: 175px; }
  .to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__pic img, .hero::after, .orbit__ring, .orbit__ring--outer,
  .orbit__center::after, .ribbon__row, .spark { animation: none !important; }
  .word > i, .hero__lead, .hero__sub, .hero__rule, .hero__anchor, .hero__cta {
    opacity: 1 !important; transform: none !important;
  }
  [data-reveal] .sec-rule { transform: scaleX(1); }
  .scroll-progress { display: none; }
}

/* Запас по краям, чтобы параллакс и наезд не оголяли углы */
.hero__media { inset: -9% 0; }
.core__media { overflow: hidden; }
.core__pic img { height: 116%; margin-top: -8%; }

/* Живая форма социального блока вместо параллакса */
.social__pic { animation: morph 18s ease-in-out infinite; }
@keyframes morph {
  0%, 100% { border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%; }
  33%      { border-radius: 54% 46% 44% 56% / 46% 54% 46% 54%; }
  66%      { border-radius: 48% 52% 56% 44% / 56% 48% 52% 44%; }
}
@media (prefers-reduced-motion: reduce) {
  .social__pic { animation: none !important; }
  [data-parallax] { transform: none !important; }
  [data-parallax] img { transform: none !important; }
}

/* Слайдер кейсов: на широком экране видно 2 карточки с «подглядыванием» третьей */
@media (min-width: 1025px) {
  .slider__track { grid-auto-columns: minmax(0, calc(46% - 13px)); }
  .slider .case { flex-direction: column; }
}
@media (max-width: 1024px) {
  .slider .case { flex-direction: column; }
  .slider .case__media { width: 100%; position: static; }
  .slider .case__pic { position: static; }
  .slider .case__pic img { width: 100%; height: auto; aspect-ratio: 3/2; }
}

/* ==========================================================================
   Правки по замечаниям 28.07
   ========================================================================== */

/* Золотое свечение слева сверху — вокруг заголовка Babysmile Group */
.hero__glow {
  position: absolute; left: -8%; top: -12%;
  width: 62vw; max-width: 900px; aspect-ratio: 1;
  background: radial-gradient(circle at 32% 34%,
    rgba(224,178,110,.34) 0%,
    rgba(200,150,80,.18) 34%,
    rgba(192,148,84,.06) 56%,
    transparent 72%);
  pointer-events: none; z-index: 1;
  animation: glow-breathe 11s ease-in-out infinite;
}
@keyframes glow-breathe {
  0%, 100% { opacity: .78; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.07); }
}

/* Орбита: надписи вращаются вокруг семьи, текст остаётся прямым */
.orbit__nodes { animation: spin 46s linear infinite; }
.orbit__up    { animation: spin-back 46s linear infinite; }
@keyframes spin-back { to { transform: rotate(-360deg); } }

/* На планшете и телефоне орбита превращается в обычный список — вращать нечего,
   иначе список разъезжается по диагонали */
@media (max-width: 1024px) {
  .orbit__nodes, .orbit__up { animation: none; }
}

/* Региональная поддержка — гербы с лёгким покачиванием */
.coats { display: grid; grid-template-columns: repeat(7, 1fr); gap: 18px; margin-top: 8px; }
.coat {
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
}
.coat__img {
  width: 74px; height: 92px; object-fit: contain;
  transform-origin: 50% 8%;
  transition: transform .35s;
}
.coat:hover .coat__img { animation: sway 1.6s ease-in-out infinite; }
.coat__label { font-size: 13.5px; line-height: 1.35; color: var(--muted); max-width: 140px; }
@keyframes sway {
  0%, 100% { transform: rotate(-3.5deg); }
  50%      { transform: rotate(3.5deg); }
}

/* Модальное окно проекта */
.modal {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center; padding: 24px;
  background: rgba(12,18,26,.62); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__box {
  position: relative; width: min(100%, 980px); max-height: min(90svh, 900px);
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  display: grid; grid-template-columns: 42% 1fr;
  transform: translateY(26px) scale(.98); opacity: 0;
  transition: transform .45s cubic-bezier(.2,.8,.3,1), opacity .4s;
  box-shadow: 0 40px 90px rgba(10,16,24,.42);
}
.modal.is-open .modal__box { transform: none; opacity: 1; }
.modal__media { position: relative; }
.modal__media img { width: 100%; height: 100%; object-fit: cover; }
.modal__media::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(180deg, transparent, rgba(27,43,60,.55));
}
.modal__tag {
  position: absolute; left: 22px; top: 22px; z-index: 2;
  background: rgba(27,43,60,.82); color: #fff; backdrop-filter: blur(6px);
  font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 100px;
}
.modal__body { padding: 40px 42px 36px; overflow-y: auto; }
.modal__title { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; }
.modal__lead { font-size: 16.5px; color: var(--text); margin-bottom: 22px; }
.modal__stats {
  display: flex; flex-wrap: wrap; gap: 26px;
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  padding: 18px 0; margin-bottom: 22px;
}
.modal__stat b {
  display: block; font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--gold-2);
}
.modal__stat span { font-size: 13px; color: var(--muted); }
.modal__fields { display: grid; gap: 14px; margin: 0 0 26px; }
.modal__fields dt { font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-2); }
.modal__fields dd { margin: 4px 0 0; font-size: 15px; line-height: 1.6; }
.modal__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.modal__close {
  position: absolute; right: 16px; top: 16px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.92); color: var(--ink); cursor: pointer;
  display: grid; place-items: center; font-size: 22px; line-height: 1;
  transition: background .25s, transform .25s;
}
.modal__close:hover { background: var(--gold); transform: rotate(90deg); }
body.modal-open { overflow: hidden; }

/* Кнопка «Подробнее» на карточке кейса */
.case__open {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-soft);
  background: none; border-left: 0; border-right: 0; border-bottom: 0;
  text-align: left; font: inherit; font-size: 14.5px; font-weight: 500; color: var(--gold-2);
  display: inline-flex; align-items: center; gap: 9px; transition: gap .25s;
}
.case__open:hover { gap: 14px; }

/* География по регионам */
.geo__regions {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px 22px;
}
.geo__region {
  display: flex; align-items: baseline; gap: 10px; font-size: 15.5px;
  padding: 7px 0; border-bottom: 1px solid var(--line-soft);
  transition: opacity .3s;
}
.geo__region.is-dim { opacity: .26; }
.geo__region small { color: var(--muted-2); font-size: 12.5px; margin-left: auto; }

@media (max-width: 1024px) {
  .coats { grid-template-columns: repeat(4, 1fr); gap: 24px 14px; }
  .modal__box { grid-template-columns: 1fr; max-height: 92svh; }
  .modal__media { height: 220px; }
  .modal__body { padding: 28px 24px 30px; }
}
@media (max-width: 760px) {
  .coats { grid-template-columns: repeat(2, 1fr); }
  .hero__glow { width: 120vw; left: -30%; top: -18%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__glow, .coat__img, .orbit__nodes, .orbit__up { animation: none !important; }
}
.agree__sub { font-size: 15.5px; color: var(--muted); margin: 0 0 30px; max-width: 62ch; }

/* «Три сердца» — расширенный блок */
.hearts { align-items: flex-start; }
.hearts__logo {
  width: 190px; height: auto; aspect-ratio: auto; padding: 22px 18px;
  border-radius: var(--radius); background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12); flex-shrink: 0;
  display: grid; place-items: center;
}
.hearts__logo img { width: 100%; height: auto; filter: none; }
.hearts__list { display: grid; gap: 12px; margin: 22px 0 26px; }
.hearts__list li {
  position: relative; padding-left: 20px; font-size: 15.5px; line-height: 1.6;
  color: rgba(255,255,255,.78);
}
.hearts__list li::before {
  content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--gold);
}
.hearts__list strong { color: #fff; font-weight: 600; }
.hearts__cta { margin-bottom: 20px; }
@media (max-width: 760px) {
  .hearts { align-items: center; }
  .hearts__logo { width: 200px; }
}

/* ------------------------------------------------- Правовые документы */
.page-hero--legal { padding-bottom: 48px; }
.page-hero__lead { font-size: 17px; color: var(--muted); max-width: 62ch; margin: 12px 0 0; }
.legal { padding: 46px 0 90px; font-size: 16.5px; }
.legal h2 {
  font-family: var(--font-display); font-size: 25px; font-weight: 600;
  margin: 2em 0 .6em; padding-top: .4em; border-top: 1px solid var(--line-soft);
}
.legal h2:first-of-type { margin-top: 0; border-top: 0; padding-top: 0; }
.legal p { max-width: 78ch; line-height: 1.75; }
.legal ul { margin: 0 0 1.2em; display: grid; gap: 8px; }
.legal ul li { position: relative; padding-left: 20px; max-width: 78ch; line-height: 1.7; }
.legal ul li::before {
  content: ''; position: absolute; left: 2px; top: 12px; width: 5px; height: 5px;
  border-radius: 50%; background: var(--gold);
}
.legal__date { font-size: 14px; color: var(--muted-2); }
.legal__table-wrap { overflow-x: auto; margin: 0 0 1.6em; }
.legal__table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14.5px; }
.legal__table th, .legal__table td {
  border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top;
}
.legal__table th { background: var(--cream); font-weight: 600; font-size: 13.5px; }
.legal a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 2px; }
.legal__nav {
  margin-top: 54px; padding-top: 30px; border-top: 1px solid var(--line);
}
.legal__nav h2 { font-size: 19px; border: 0; padding: 0; margin: 0 0 14px; }
.legal__nav ul li::before { background: var(--gold-soft); }

/* ==========================================================================
   Правки 28.07 (вторая итерация)
   ========================================================================== */

/* Лента — единый тёплый тон, чтобы кадры не выбивались из палитры */
.ribbon__item img { filter: saturate(.8) sepia(.10) contrast(1.02) brightness(1.01); }
.ribbon__item:hover img { filter: saturate(.95) sepia(.04) contrast(1.03); }

/* Карточка проекта кликается целиком */
.case { cursor: pointer; }
.case:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 3px; }
.case__open {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-soft);
  font-size: 14.5px; font-weight: 500; color: var(--gold-2);
  display: inline-flex; align-items: center; gap: 9px; transition: gap .25s;
}
.case:hover .case__open { gap: 14px; }

/* Всплывающее окно: прокрутка внутри, а не всей страницы */
html.modal-open, body.modal-open { overflow: hidden; }
.modal__box { grid-template-columns: 44% 1fr; align-items: stretch; }
.modal__media {
  display: grid; grid-template-rows: 1fr auto; gap: 8px; padding: 8px; min-height: 0;
  background: var(--cream);
}
.modal__media::after { content: none; }
.modal__shot { position: relative; overflow: hidden; border-radius: 12px; min-height: 0; }
.modal__shot picture, .modal__shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal__thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.modal__thumb { overflow: hidden; border-radius: 10px; aspect-ratio: 4/3; }
.modal__thumb picture, .modal__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal__thumb img { transition: transform .6s ease; }
.modal__thumb:hover img { transform: scale(1.06); }
.modal__body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.modal__tag { left: 20px; top: 20px; }

@media (max-width: 1024px) {
  .modal__box { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .modal__media { height: auto; grid-template-rows: 190px auto; }
  .modal__thumbs { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .coat:hover .coat__img { animation: none !important; }
}

/* Подписи под цифрами не переносим только там, где хватает ширины */
@media (max-width: 760px) {
  .stats__label { white-space: normal; }
}

/* ==========================================================================
   Прокрутка внутри окна проекта + фирменный ползунок
   Причина прежней поломки: строка грид-контейнера тянулась по содержимому,
   поэтому правая колонка не получала ограниченную высоту и не прокручивалась.
   ========================================================================== */
.modal__box {
  grid-template-rows: minmax(0, 1fr);
  max-height: min(88svh, 900px);
}
.modal__body {
  min-height: 0; height: 100%; overflow-y: auto; overscroll-behavior: contain;
  padding-right: 30px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) rgba(27,43,60,.08);
}
.modal__body::-webkit-scrollbar { width: 10px; }
.modal__body::-webkit-scrollbar-track {
  background: rgba(27,43,60,.06); border-radius: 100px; margin: 14px 0;
}
.modal__body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  border-radius: 100px; border: 2px solid transparent; background-clip: padding-box;
}
.modal__body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  background-clip: padding-box;
}
/* подсказка, что содержимое продолжается */
.modal__body::after { content: ''; display: block; height: 6px; }

@media (max-width: 1024px) {
  .modal__box { grid-template-rows: auto minmax(0, 1fr); max-height: 92svh; }
  .modal__body { padding-right: 18px; }
}

/* ==========================================================================
   Мобильная версия: каталог направлений и «Подробнее» (0.6.0, 22.09.2026)
   Отзыв руководителя: с телефона много букв и непонятно, что мы такое.
   На компьютере ничего не меняется — всё ниже работает только до 760px.
   ========================================================================== */
.hub { display: none; }
.more-toggle { display: none; }

@media (max-width: 760px) {
  /* Каталог: семья в центре, вокруг — направления */
  .hub { display: block; padding: 48px 0 40px; background: var(--cream); }
  .hub__head { text-align: center; margin-bottom: 22px; }
  .hub__title { font-family: var(--font-display); font-size: 30px; font-weight: 500; margin: 0; }
  .hub__center { position: relative; text-align: center; margin: 0 auto 26px; }
  .hub__pic { display: block; width: 132px; height: 132px; margin: 0 auto; border-radius: 50%;
    overflow: hidden; border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--gold-soft), var(--shadow); }
  .hub__pic img { width: 100%; height: 100%; object-fit: cover; }
  .hub__center-label { display: block; margin-top: 10px; font-size: 12px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--gold-2); }
  .hub__grid { list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hub__grid li:first-child { grid-column: 1 / -1; }
  .hub__tile { display: flex; flex-direction: column; gap: 6px; height: 100%;
    padding: 16px 14px; background: var(--white); border: 1px solid var(--line-soft);
    border-radius: var(--radius); color: var(--text); text-decoration: none; box-shadow: var(--shadow); }
  .hub__grid li:first-child .hub__tile { background: var(--ink); border-color: var(--ink); color: var(--white); }
  .hub__icon { color: var(--gold-2); }
  .hub__grid li:first-child .hub__icon { color: var(--gold-soft); }
  .hub__name { font-family: var(--font-display); font-size: 17px; line-height: 1.2; font-weight: 500; }
  .hub__line { font-size: 13px; line-height: 1.35; color: var(--muted); }
  .hub__grid li:first-child .hub__line { color: rgba(255,255,255,.72); }

  /* Первый экран: оба абзаца дублируют каталог и блок Photography — на телефоне прячем */
  .hero__sub, .hero__anchor, .hero__rule { display: none; }
  .core__proof span { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }

  /* Цифры — компактная сетка 2 колонки, всё видно без прокрутки вбок;
     пятая карточка на всю ширину */
  .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .stats__item { padding: 16px 10px 14px; background: var(--white);
    border: 1px solid var(--line-soft); border-radius: var(--radius); }
  .stats__item:nth-child(odd) { border-right: 1px solid var(--line-soft); }
  .stats__item:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 1px solid var(--line-soft); }
  .stats__icon { margin-bottom: 8px; line-height: 0; }
  .stats__icon svg { width: 22px; height: 22px; }
  .stats__item { justify-content: center; }
  .stats__pre { font-size: 10.5px; height: 14px; line-height: 14px; margin-bottom: 4px; }
  .stats__pre:empty { display: none; }
  .stats__value { font-size: 30px; margin-bottom: 6px; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
  .stats__label { font-size: 12.5px; line-height: 1.35; }
  .section--stats { padding: 36px 0; background: var(--cream); }

  /* «О нас»: плитки без пояснений, по две в ряд */
  .infra-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; }
  .infra-grid__item { max-width: none; }
  .infra-grid__text { display: none; }

  /* Всё, что свёрнуто под «Подробнее» (кнопки добавляет main.js) */
  .is-collapsible:not(.is-open) > .more-body { display: none; }
  .more-toggle { display: inline-flex; align-items: center; gap: 6px; margin: 14px 0 0;
    padding: 0; background: none; border: 0; font: inherit; font-size: 14.5px; font-weight: 500;
    color: var(--gold-2); cursor: pointer; }
  .section--dark .more-toggle, .hero .more-toggle { color: var(--gold-soft); }
  .more-toggle::after { content: ''; width: 7px; height: 7px; margin-top: -3px;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
    transition: transform .25s; }
  .is-open > .more-toggle::after { transform: rotate(-135deg); margin-top: 3px; }
  .dir { padding: 26px 22px 24px; }
  .dir .is-collapsible { margin-bottom: 16px; }

  /* Партнёры — плитки по две без пояснений; география — в две колонки */
  .partners { grid-template-columns: 1fr 1fr; gap: 10px; }
  .partners__cat { padding: 18px 14px; }
  .partners__cat h3 { font-size: 15px; margin: 10px 0 0; }
  .partners__cat p { display: none; }
  .geo__regions { grid-template-columns: 1fr 1fr; gap: 8px 12px; font-size: 14.5px; }
  /* Гербы: две колонки, герб слева, название справа — названия не рвутся */
  .coats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .coat { margin: 0; min-width: 0; flex-direction: row; align-items: center; gap: 10px; text-align: left;
    padding: 10px; background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius); }
  .coat__img { width: 40px; height: 48px; flex: 0 0 40px; object-fit: contain; }
  .coat__label { flex: 1; min-width: 0; font-size: 13px; line-height: 1.3; max-width: none; color: var(--text); }

  /* Новости — компактный список: картинка слева, дата и заголовок справа */
  #news .sec-head { margin-bottom: 22px; gap: 10px; }
  .news { grid-template-columns: 1fr; gap: 10px; }
  .news__link { flex-direction: row; align-items: stretch; }
  .news__media { flex: 0 0 104px; width: 104px; height: 104px; align-self: center; margin: 10px 0 10px 10px;
    border-radius: 10px; }
  .news__media img { width: 104px; height: 104px; aspect-ratio: auto; object-fit: cover; }
  .news__body { padding: 12px 14px; min-width: 0; }
  .news__date { font-size: 12px; margin-bottom: 4px; }
  .news__title { font-size: 16px; line-height: 1.3; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .news__excerpt, .news__more { display: none; }
}

/* ==========================================================================
   Проекты (0.8.0 → 0.9.0, 15.10.2026)
   0.9.0, голосовые Юлегина 13:36–13:37: без вкладок и листания вбок —
   карточки идут лентой сверху вниз, «проект за проектом». В карточке видно,
   что это и цифры; остальное — под «Подробнее о проекте». Photography —
   якорный проект, карточка крупнее; остальные чередуют сторону фото.
   ========================================================================== */
.catalog .sec-head { margin-bottom: 34px; }
.catalog .sec-lead { max-width: 680px; margin-inline: auto; }
.catalog__list { display: grid; gap: 28px; }

.proj {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  background: var(--white); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
}
.proj__media { position: relative; min-height: 380px; background: var(--ink); }
.proj--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.proj--flip .proj__media { order: 2; }
.proj--lead { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.proj--lead .proj__media { min-height: 520px; }
.proj--lead .proj__title { font-size: clamp(30px, 3.2vw, 44px); }
.proj__pic { position: absolute; inset: 0; }
.proj__pic img { width: 100%; height: 100%; object-fit: cover; }
.proj__num {
  position: absolute; left: 22px; top: 22px; z-index: 1;
  background: rgba(20,25,32,.82); color: #fff; backdrop-filter: blur(6px);
  font-size: 12px; letter-spacing: .13em; padding: 8px 14px; border-radius: 100px;
  font-variant-numeric: lining-nums tabular-nums;
}

/* Панель вместо фото: IUNOCARE (до фото от руководителя) и знак «Трёх сердец» */
.proj__panel {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px; padding: 40px; text-align: center;
}
.proj__panel--tech { background: radial-gradient(circle at 50% 38%, var(--ink-2) 0%, var(--navy) 70%); color: #fff; }
.proj__panel--tech .ico { color: var(--gold-soft); }
.proj__panel-name { font-family: var(--font-display); font-size: 36px; letter-spacing: .08em; }
.proj__panel-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 330px; }
.proj__panel-list span {
  font-size: 12.5px; line-height: 1; padding: 8px 12px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.85);
}
.proj__panel--logo { background: var(--white); border-right: 1px solid var(--line-soft); } /* у знака белая подложка — панель того же цвета */
.proj__panel--logo picture { display: block; width: min(250px, 68%); }
.proj__panel--logo img { display: block; width: 100%; height: auto; }

/* 0.11.0 (Правка 6): знак проекта — белая плашка в нижнем углу фото, у внешнего края карточки */
.proj__logo {
  position: absolute; left: 22px; bottom: 22px; z-index: 1;
  display: grid; place-items: center;
  background: var(--white); box-shadow: 0 10px 28px rgba(20,25,32,.24);
}
.proj--flip .proj__logo { left: auto; right: 22px; }
.proj__logo img { display: block; width: 100%; height: auto; }
.proj__logo--round { width: 136px; height: 136px; padding: 13px; border-radius: 50%; }
.proj--lead .proj__logo--round { width: 160px; height: 160px; padding: 15px; }
.proj__logo--wide { height: 60px; padding: 0 28px; border-radius: 100px; }
.proj__logo--wide img { width: 150px; }

.proj__body { padding: 42px 48px 40px; display: flex; flex-direction: column; min-width: 0; }
.proj__kicker {
  margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold-2);
}
.proj__title { font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 36px); font-weight: 500; margin: 0 0 12px; }
.proj__lead { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0 0 22px; max-width: 62ch; }
.proj__label {
  display: block; margin-bottom: 7px; font-size: 11.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2);
}
.proj__about { border-left: 2px solid var(--gold); padding: 2px 0 2px 18px; margin: 0 0 24px; }
.proj__about p { margin: 0; font-family: var(--font-display); font-size: 19px; line-height: 1.45; color: var(--ink); }
.proj__proof {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 26px;
  margin: 0 0 24px; padding: 22px 0 0; border-top: 1px solid var(--line-soft); list-style: none;
}
.proj__proof li { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.proj__proof li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.proj__proof b {
  font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.2; color: var(--ink);
  font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1;
}
.proj__proof span { font-size: 13.5px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
.proj__deal { margin: 0 0 24px; }
.proj__deal ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.proj__deal li { position: relative; padding-left: 18px; font-size: 14.5px; line-height: 1.5; }
.proj__deal li::before {
  content: ''; position: absolute; left: 2px; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}
.proj__more { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: -6px 0 24px; }
.proj__more .link-arrow { font-size: 14.5px; }
.proj__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.proj__details { margin-bottom: 26px; }
.proj__details[hidden], .proj__toggle[hidden] { display: none; }
.proj__toggle {
  align-self: flex-start; margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 0; border: 0; background: none; cursor: pointer;
  font: 600 14.5px/1.3 var(--font-body); color: var(--gold-2);
}
.proj__toggle .ico { transform: rotate(90deg); transition: transform .25s; }
.proj__toggle.is-open .ico { transform: rotate(-90deg); }
@media (hover: hover) and (pointer: fine) {
  .proj__toggle:hover { color: var(--ink); }
}

/* Первый экран: одна фраза, Photography — выделена */
.hero__sub strong { font-weight: 600; color: #fff; }

/* Цифры: шесть показателей на компьютере — сетка 3 × 2 */
@media (min-width: 1025px) {
  .stats--6 { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .stats--6 .stats__item:nth-child(3n+1)::before { display: none; }
  .stats--6 .stats__label { max-width: 260px; }
}

@media (max-width: 1024px) {
  /* minmax(0,…): длинное «ГОСТ Р 59295-2021» иначе распирает колонку за край карточки;
     строки auto 1fr: лишняя высота (карточки равны по самой высокой) уходит вниз, а не под фото */
  .proj, .proj--flip, .proj--lead { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .proj--flip .proj__media { order: 0; }
  .proj__media, .proj--lead .proj__media { min-height: 0; aspect-ratio: 16 / 8; }
  .proj--flip .proj__logo { right: auto; left: 22px; }
  .proj__body { padding: 32px 32px 30px; }
}

@media (max-width: 760px) {
  .catalog .sec-head { margin-bottom: 22px; }
  .catalog__list { gap: 18px; }
  .proj__media { aspect-ratio: 16 / 9; }
  .proj--lead .proj__media { aspect-ratio: 4 / 3; }
  .proj--lead .proj__title { font-size: 30px; }
  .proj__num { left: 14px; top: 14px; font-size: 11px; padding: 6px 11px; }
  .proj__logo, .proj--flip .proj__logo { left: 14px; bottom: 14px; }
  .proj__logo--round, .proj--lead .proj__logo--round { width: 74px; height: 74px; padding: 8px; }
  .proj__logo--wide { height: 38px; padding: 0 16px; }
  .proj__logo--wide img { width: 92px; }
  .proj__panel { gap: 12px; padding: 24px; }
  .proj__panel .ico { width: 40px; height: 40px; }
  .proj__panel-name { font-size: 26px; }
  .proj__panel-list span { font-size: 11.5px; padding: 6px 10px; }
  .proj__body { padding: 24px 20px 24px; }
  .proj__title { font-size: 26px; }
  .proj__lead { font-size: 15px; margin-bottom: 18px; }
  .proj__about { margin-bottom: 20px; padding-left: 14px; }
  .proj__about p { font-size: 17px; }
  .proj__proof { gap: 14px 16px; padding-top: 18px; margin-bottom: 20px; }
  .proj__proof b { font-size: 18px; }
  .proj__proof span { font-size: 12.5px; }
  .proj__deal li { font-size: 14px; }
  .proj__cta .btn { flex: 1 1 100%; white-space: normal; text-align: center; }
  .proj__details { margin-bottom: 14px; }
  /* цифры теперь сразу над проектами: белый фон, чтобы два кремовых экрана не слились */
  .section--stats { background: var(--white); }
  .stats__item { background: var(--cream); }
  /* первый экран: короткая фраза теперь видна и на телефоне */
  .hero__sub { display: block; font-size: 15px; }
}

/* Иконки Phosphor (0.8.5, 15.10.2026): у набора поле внутри сетки шире, чем у
   прежних самодельных, — при тех же 26–30 px значок выглядел мельче. */
.stats__icon .ico { width: 40px; height: 40px; }
.partners__icon .ico { width: 36px; height: 36px; }
@media (max-width: 760px) {
  .stats__icon .ico { width: 30px; height: 30px; }
  .partners__icon .ico { width: 30px; height: 30px; }
}

/* 0.10.0 (21.10.2026, «Правка 5»): карточка проекта — что это, текст, факты,
   интерес для сотрудничества и свой переход; без сворачивания под «Подробнее». */
.proj__tagline {
  margin: 0 0 14px; max-width: 46ch;
  font-family: var(--font-display); font-size: 20px; line-height: 1.4; color: var(--ink);
}
.proj__text { margin: 0 0 22px; max-width: 62ch; }
.proj__text p { margin: 0 0 10px; font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.proj__text p:last-child { margin-bottom: 0; }
.proj__use { margin: auto 0 22px; font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.proj__use .proj__label { margin-bottom: 4px; }
.proj__body > .proj__more { margin: 0 0 22px; }

/* Цифры: три показателя в ряд от планшета и шире */
@media (min-width: 761px) {
  .stats--3 { grid-template-columns: repeat(3, 1fr); }
  .stats--3 .stats__item + .stats__item::before { display: block; }
  .stats--3 .stats__item:last-child { grid-column: auto; }
  .stats--3 .stats__label { max-width: 260px; }
}

/* «Партнёрам»: четыре возможности сотрудничества */
.partners--4 { grid-template-columns: repeat(4, 1fr); }
.partners--4 .partners__cat h3 { text-wrap: balance; }
.geo__regions--projects { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1024px) {
  .partners--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .partners--4 { grid-template-columns: minmax(0, 1fr); }
  .partners--4 .partners__cat p { display: block; margin-top: 6px; font-size: 13.5px; }
  .proj__tagline { font-size: 18px; margin-bottom: 12px; }
  .proj__text { margin-bottom: 18px; }
  .proj__text p { font-size: 14.5px; }
  .proj__use { margin-bottom: 18px; font-size: 14px; }
  .proj__body > .proj__more { margin-bottom: 18px; }
}

/* 0.10.1 (21.10.2026): цифр две (по Word) — по центру, не на всю ширину */
@media (min-width: 761px) {
  .stats--2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto; }
  .stats--2 .stats__label { max-width: 300px; }
}
/* Фото IUNOCARE в карточке: малыш правее центра кадра */
#iunocare .proj__pic img { object-position: 72% 50%; }

/* Страница IUNOCARE — /iunocare/ (page-iunocare.php) */
.page-hero--iuno { padding-bottom: 34px; }
.page-hero--iuno .proj__kicker { margin-bottom: 8px; }
.iuno__tagline { margin: 6px 0 0; font-family: var(--font-display); font-size: clamp(19px, 2vw, 24px); line-height: 1.35; color: var(--ink); }
.iuno__cover { margin-top: 34px; }
.iuno__cover picture, .iuno__cover img { display: block; width: 100%; border-radius: var(--radius-lg); }
.iuno__cover img { aspect-ratio: 21 / 9; object-fit: cover; object-position: 70% 50%; }
.iuno__sec { padding: 72px 0; }
.iuno__sec--cream { background: var(--cream); }
.iuno__h { font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); font-weight: 500; margin: 0 0 22px; }
.iuno__split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.iuno__text p, .iuno__narrow p { font-size: 16.5px; line-height: 1.7; color: var(--text); max-width: 64ch; }
.iuno__text .iuno__note { font-size: 14.5px; color: var(--muted); border-left: 2px solid var(--gold); padding-left: 14px; }
.iuno__fig { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--cream); }
.iuno__fig picture, .iuno__fig img { display: block; width: 100%; height: 100%; object-fit: cover; }
.iuno__fig--white { background: #fff; border: 1px solid var(--line-soft); }
.iuno__fig--white img { object-fit: contain; }
.iuno__split .iuno__fig { aspect-ratio: 4 / 5; max-height: 560px; }
.iuno__time { list-style: none; margin: 0; padding: 0; max-width: 860px; }
.iuno__time li { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.iuno__time li:last-child { border-bottom: 1px solid var(--line); }
.iuno__time b { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--gold-2); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.iuno__time span { font-size: 16px; line-height: 1.6; }
.iuno__lead { font-size: 17px; margin: 0 0 26px; max-width: 64ch; }
.iuno__facts { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.iuno__facts li { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 20px 18px; display: flex; flex-direction: column; gap: 6px; }
.iuno__facts b { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--ink); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.iuno__facts span { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.iuno__gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.iuno__gallery .iuno__fig { aspect-ratio: 4 / 3; }
.iuno__narrow { max-width: 860px; }
.iuno__narrow .proj__use { margin: 26px 0 22px; }
.iuno__cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 1024px) {
  .iuno__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .iuno__split { gap: 32px; }
}
@media (max-width: 760px) {
  .iuno__sec { padding: 48px 0; }
  .iuno__cover { margin-top: 22px; }
  .iuno__cover img { aspect-ratio: 4 / 3; }
  .iuno__split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .iuno__split .iuno__fig { aspect-ratio: 1 / 1; }
  .iuno__time li { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
  .iuno__time b { font-size: 20px; }
  .iuno__time span { font-size: 15px; }
  .iuno__facts { gap: 10px; }
  .iuno__facts li { padding: 14px 12px; }
  .iuno__facts b { font-size: 18px; }
  .iuno__gallery { grid-template-columns: minmax(0, 1fr); }
  .iuno__cta .btn { flex: 1 1 100%; text-align: center; }
}

/* 0.10.2 (21.10.2026): «География» — две карточки по проектам (было: три колонки
   по странам с повтором «Babysmile Photography» и обрезанной картой) */
.geo-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.geo-card {
  background: var(--cream); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: 34px 36px; display: flex; flex-direction: column; gap: 10px;
}
.geo-card__icon { color: var(--gold); line-height: 0; }
.geo-card__icon .ico { width: 36px; height: 36px; }
.geo-card__name { margin: 8px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); }
.geo-card__value {
  margin: 0; font-family: var(--font-display); font-size: clamp(32px, 3.4vw, 44px); font-weight: 600;
  line-height: 1.1; color: var(--ink); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1;
}
.geo-card__text { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--muted); max-width: 46ch; }

/* Гербы: на 1280 px седьмой («Калининградская область») вылезал за край —
   колонки распирало словом подписи; minmax(0, 1fr) делит ширину поровну */
.coats { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.coat__label { overflow-wrap: anywhere; }
@media (max-width: 1024px) { .coats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .coats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* IUNOCARE: карточка — кадр с малышом (iuno-card), страница на телефоне — кадр правее */
#iunocare .proj__pic img { object-position: 85% 35%; }
@media (max-width: 760px) {
  .iuno__cover img { object-position: 100% 40%; }
  .geo-cards { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .geo-card { padding: 24px 22px; }
  /* заголовки новостей: три строки резали длинные названия на полуслове */
  .news__title { -webkit-line-clamp: 4; }
}

/* 0.10.3: на странице IUNOCARE шесть результатов — три в ряд */
.iuno__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .iuno__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 0.10.4: «Форматы» в карточке брендов */
.proj__formats { margin: 0 0 22px; font-size: 14.5px; line-height: 1.55; color: var(--ink); max-width: 62ch; }
.proj__formats .proj__label { margin-bottom: 4px; }

/* 0.10.4: «География» — у Photography «3 страны» и карта России из ДБ (map-bs.svg) */
.geo-cards--map { grid-template-columns: minmax(0, 1fr); }
.geo-card--bs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; align-items: center; }
.geo-card__info { display: flex; flex-direction: column; gap: 10px; }
.geo-card__countries { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.geo-card__countries li {
  padding: 8px 16px; border-radius: 100px; background: var(--white); border: 1px solid var(--line);
  font-size: 15px; font-weight: 500; color: var(--ink);
}
.geo-card__map { margin: 0; }
.geo-card__map img { display: block; width: 100%; height: auto; }
.geo-card--ano .geo-card__text { max-width: 70ch; }
@media (max-width: 760px) {
  .geo-card--bs { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .geo-card__countries li { padding: 7px 13px; font-size: 14px; }
  .proj__formats { font-size: 14px; margin-bottom: 18px; }
}

/* 0.10.5: «3 страны» — три карты в ряд, золотом — где работаем */
.geo-card--bs { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 36px; }
.geo-maps { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: end; }
.geo-map { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.geo-map__img { height: 210px; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.geo-map__img img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.geo-map__name {
  padding: 7px 16px; border-radius: 100px; background: var(--white); border: 1px solid var(--line);
  font-size: 14.5px; font-weight: 500; color: var(--ink);
}
@media (max-width: 1024px) {
  .geo-card--bs { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .geo-maps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 12px; }
  .geo-map:first-child { grid-column: 1 / -1; }
  .geo-map__img { height: 120px; }
  .geo-map:first-child .geo-map__img { height: 170px; }
  .geo-map__name { font-size: 13.5px; padding: 6px 13px; }
}
