/* ============================================================
   MSG — msgco.ru | статическая версия
   Палитра и типографика соответствуют оригиналу (Tailwind v4):
   blue-600 #155dfc · slate-950 #020618 · slate-900 #0f172b
   ============================================================ */

/* ---------- Шрифт Geist (переменный, 100–900) ---------- */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/geist-latin.woff2) format("woff2");
  unicode-range: U+00??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/geist-latin-ext.woff2) format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/geist-cyrillic.woff2) format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/geist-cyrillic-ext.woff2) format("woff2");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* ---------- Переменные ---------- */
:root {
  --blue: #155dfc;
  --blue-dark: #1447e6;
  --ink: #0f172b;          /* заголовки */
  --ink-deep: #020618;     /* тёмные секции */
  --body: #45556c;         /* основной текст */
  --muted: #62748e;        /* приглушённый */
  --faint: #90a1b9;
  --line: #e2e8f0;         /* границы */
  --line-dark: #1d293d;    /* границы на тёмном */
  --bg-soft: #f8fafc;      /* светло-серый фон */
  --white: #ffffff;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --shadow-card: 0 10px 30px -10px rgba(2, 6, 24, .12);
  --radius: 2px;
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0 0 .6em; color: var(--ink); font-weight: 300; line-height: 1.12; letter-spacing: -.02em; }
h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 400; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.accent { color: var(--blue); }

.container {
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--gray { background: var(--bg-soft); }

/* Маленький синий ярлык секции: «— О ФОНДЕ» */
.label {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 1.5rem;
  color: var(--blue);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.label::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--blue);
  flex: none;
}
.label--sm { margin-bottom: .9rem; letter-spacing: .2em; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .68rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: 500 .9rem/1.2 var(--font);
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
  white-space: nowrap;
}
.btn--lg { padding: .95rem 1.8rem; font-size: 1rem; }
.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(21, 93, 252, .55);
}
.btn--primary:hover { background: var(--blue-dark); }
.btn--outline {
  background: rgba(255, 255, 255, .75);
  border-color: #cad5e2;
  color: var(--ink);
  backdrop-filter: blur(4px);
}
.btn--outline:hover { border-color: var(--ink); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--blue);
  font-weight: 500;
  font-size: .95rem;
}
.link-arrow:hover { text-decoration: underline; }
.link-arrow--light { color: #90c5ff; }

/* ---------- Шапка ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px -12px rgba(2, 6, 24, .15);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 4.25rem;
}
.header__logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .12em;
  color: var(--ink);
}
.header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-inline: auto;
}
.header__nav a:not(.btn) {
  font-size: .9rem;
  color: var(--body);
  transition: color .2s;
}
.header__nav a:not(.btn):hover { color: var(--ink); }
.header__nav-cta { display: none; }  /* кнопка внутри мобильного меню */
.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: .5rem;
  background: none;
  border: 0;
  cursor: pointer;
}
.header__burger span {
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.header__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger.is-open span:nth-child(2) { opacity: 0; }
.header__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Главный экран ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 6.5rem;
  padding-bottom: 4rem;
  overflow: hidden;
}
.hero__bg, .hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__bg img {
  object-fit: cover;
  object-position: 65% center;
  animation: hero-zoom 8s ease-out both;
}
@keyframes hero-zoom {
  from { transform: scale(1.07); }
  to   { transform: scale(1); }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #fff 6%, rgba(255, 255, 255, .92) 34%, rgba(255, 255, 255, .55) 58%, rgba(255, 255, 255, .12) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 30%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: end;
}
.hero__content { align-self: center; max-width: 40rem; }
.hero__text { max-width: 30rem; font-size: 1.05rem; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2rem;
}
.hero__cards {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .9rem;
  justify-self: end;
}
.hero-card {
  width: 15rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(6px);
}
.hero-card:nth-child(1) { transform: translateX(-4.5rem); }
.hero-card:nth-child(2) { transform: translateX(-2.25rem); }
.hero-card strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -.01em;
}
.hero-card span { font-size: .8rem; color: var(--muted); }

/* ---------- Бегущая строка ---------- */
.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--white);
  padding-block: .85rem;
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 40s linear infinite;
}
.ticker__group {
  display: flex;
  align-items: center;
  flex: none;
}
.ticker__group span {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  padding-inline: 1.6rem;
}
.ticker__group i { color: var(--blue); font-style: normal; font-size: .6rem; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- О фонде ---------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about__content p { max-width: 34rem; }
.about__content .link-arrow { margin-top: .75rem; }
.about__media { position: relative; padding-bottom: 3rem; padding-right: 2.5rem; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow-card); }
.about__badge {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 11.5rem;
  padding: 1.4rem 1.5rem;
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -14px rgba(21, 93, 252, .6);
}
.about__badge strong { display: block; font-size: 2rem; font-weight: 500; line-height: 1.1; }
.about__badge span { font-size: .82rem; opacity: .92; }

.quote {
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3.5vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  align-items: center;
  justify-content: space-between;
}
.quote p {
  margin: 0;
  flex: 1 1 34rem;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: var(--ink);
  line-height: 1.55;
}
.quote cite { font-style: normal; font-size: .82rem; color: var(--faint); }

/* ---------- Плитка показателей ---------- */
.stats {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}
.stat { padding: clamp(1.4rem, 2.5vw, 2rem); }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: .3rem;
}
.stat span { font-size: .82rem; color: var(--muted); }

/* ---------- Услуги ---------- */
.services__head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.services__head p { max-width: 28rem; margin: 0 0 .4em; }

.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.service + .service { margin-top: 2rem; }
.service__media { position: relative; min-height: 18rem; }
.service__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(15deg, rgba(2, 6, 24, .72), rgba(2, 6, 24, .12) 55%, rgba(2, 6, 24, 0));
}
.service__tag {
  position: absolute;
  z-index: 1;
  left: 1.5rem;
  bottom: 1.25rem;
  color: #fff;
}
.service__tag strong { display: block; font-size: 1.4rem; font-weight: 500; }
.service__tag span { font-size: .8rem; opacity: .85; }
.service__body { padding: clamp(1.75rem, 4vw, 3rem); }
.service--reverse .service__media { order: 2; }
.service__num {
  display: block;
  color: var(--blue);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .2em;
  margin-bottom: 1rem;
}
.service__body ul { margin-top: 1.4rem; display: grid; gap: .65rem; }
.service__body li {
  position: relative;
  padding-left: 1.75rem;
  font-size: .92rem;
}
.service__body li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--blue);
}

/* ---------- Команда ---------- */
.team h2 { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.team__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.team__media img { border-radius: var(--radius); box-shadow: var(--shadow-card); }
.team__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.75rem;
}
.team__tab {
  padding: .6rem 1rem;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font: 500 .88rem var(--font);
  color: var(--muted);
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.team__tab:hover { color: var(--ink); }
.team__tab.is-active { color: var(--blue); border-bottom-color: var(--blue); }
.team__pane { display: none; }
.team__pane.is-active { display: block; animation: fade .45s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
.team__pane ul { margin-top: 1.25rem; display: grid; gap: .65rem; }
.team__pane li {
  position: relative;
  padding-left: 1.75rem;
  font-size: .92rem;
}
.team__pane li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--blue);
}
.team__gallery {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.team__gallery img { border-radius: var(--radius); box-shadow: var(--shadow-card); }

/* ---------- Контакты ---------- */
.contact { background: linear-gradient(180deg, #0f172b, var(--ink-deep)); }
.contact .label { color: #54a2ff; }
.contact .label::before { background: #54a2ff; }
.contact h2 { color: #fff; }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact__lead { color: #90a1b9; max-width: 26rem; }
.contact__list { margin: 2.5rem 0 0; }
.contact__list > div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line-dark);
}
.contact__list dt {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #62748e;
  padding-top: .2rem;
}
.contact__list dd { margin: 0; color: #f1f5f9; font-size: .98rem; }
.contact__list dd a:hover { color: #54a2ff; }

.contact__card {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45);
}
.contact__card h3 { font-weight: 500; font-size: 1.25rem; margin-bottom: 1.5rem; }

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form__field { margin-bottom: 1.1rem; }
.form__field label {
  display: block;
  margin-bottom: .45rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.form__field input,
.form__field textarea {
  width: 100%;
  padding: .7rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: 400 .95rem var(--font);
  color: var(--ink);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.form__field input::placeholder,
.form__field textarea::placeholder { color: var(--faint); }
.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21, 93, 252, .15);
}
.form__field textarea { resize: vertical; min-height: 7rem; }
.form__trap {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}
.form__consent {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  font-size: .82rem;
  color: var(--muted);
  cursor: pointer;
}
.form__consent input { margin-top: .2rem; accent-color: var(--blue); }
.form__consent a { color: var(--blue); text-decoration: underline; }
.form__submit { width: 100%; }
.form__submit[disabled] { opacity: .6; cursor: wait; }
.form__status { margin: 1rem 0 0; font-size: .88rem; display: none; }
.form__status.is-ok { display: block; color: #0d8a4f; }
.form__status.is-error { display: block; color: #d4183d; }

/* ---------- Подвал ---------- */
.footer {
  background: var(--ink-deep);
  color: #90a1b9;
  padding-top: clamp(3rem, 6vw, 4.5rem);
  font-size: .9rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer__logo {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .12em;
  margin: 0 0 .9rem;
}
.footer__brand p:not(.footer__logo) { max-width: 18rem; }
.footer__title {
  color: #62748e;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin: 0 0 1.1rem;
}
.footer__col { display: flex; flex-direction: column; gap: .65rem; align-items: flex-start; }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: .8rem;
  color: #62748e;
}
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a:hover { color: #fff; }

/* ---------- Появление при прокрутке ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .hero-card.reveal { transition-delay: .15s; }
.js .hero-card.reveal:nth-child(2) { transition-delay: .3s; }
.js .hero-card.reveal:nth-child(3) { transition-delay: .45s; }
/* сохранить «лесенку» карточек после появления */
.js .hero-card:nth-child(1).is-visible { transform: translateX(-4.5rem); }
.js .hero-card:nth-child(2).is-visible { transform: translateX(-2.25rem); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; }
  .hero__bg img { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .hero-card:nth-child(1) { transform: translateX(-4.5rem); }
  .js .hero-card:nth-child(2) { transform: translateX(-2.25rem); }
}

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 64rem) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__cards {
    flex-direction: row;
    flex-wrap: wrap;
    justify-self: start;
    align-items: stretch;
  }
  .hero-card:nth-child(1), .hero-card:nth-child(2),
  .js .hero-card:nth-child(1).is-visible, .js .hero-card:nth-child(2).is-visible { transform: none; }
  .hero-card { width: calc(50% - .45rem); max-width: 15rem; }
  .about__grid, .contact__grid, .team__grid { grid-template-columns: 1fr; }
  .services__head { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; }
  .service--reverse .service__media { order: 0; }
  .service__media { min-height: 14rem; aspect-ratio: 16 / 9; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 48rem) {
  .header__cta { display: none; }
  .header__burger { display: flex; }
  .header__nav {
    position: fixed;
    top: 4.25rem;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.25rem;
    box-shadow: 0 24px 40px -20px rgba(2, 6, 24, .25);
    transform: translateY(-130%);
    transition: transform .3s ease;
  }
  .header__nav.is-open { transform: none; }
  .header__nav a:not(.btn) {
    padding: .9rem 0;
    border-bottom: 1px solid var(--bg-soft);
    font-size: 1rem;
  }
  .header__nav-cta { display: inline-flex; margin-top: 1rem; }
  .hero { padding-top: 6rem; }
  .hero-card { width: 100%; max-width: none; }
  .team__gallery { grid-template-columns: 1fr; gap: 1.25rem; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .contact__list > div { grid-template-columns: 1fr; gap: .2rem; padding-block: .9rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 30rem) {
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .about__media { padding-right: 1rem; }
  .hero__actions .btn { width: 100%; }
}
