/* Hallmark · macrostructure: Marquee Hero (poster, character over type) · tone: playful-editorial · anchor hue: Baikal blue 245
 * studied: yes · DNA-source: image (user reference, FinFLO-style hero) — структура и приёмы, не пиксели
 * pre-emit critique: P4 H5 E4 S4 R4 V4
 */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
body {
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a, button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }

/* ───────── Hero panel ───────── */
.hero {
  position: relative;
  isolation: isolate;
  margin: 12px;
  height: min(calc(100svh - 24px), 920px);
  min-height: 640px;
  border-radius: var(--radius-xl);
  background: var(--color-blue);
  color: var(--color-cream);
  overflow: hidden;
}

/* Контурные «волны» — отсылка к воде Байкала; рисуются фильтром, без картинок */
.hero__waves,
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.4;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1600' height='1000'><filter id='f' x='0' y='0' width='100%25' height='100%25'><feTurbulence type='fractalNoise' baseFrequency='0.0026 0.0042' numOctaves='3' seed='11'/><feColorMatrix type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  1 0 0 0 0'/><feComponentTransfer><feFuncA type='discrete' tableValues='0 0 0.16 0 0.16 0 0.16 0 0.16 0 0.16 0 0.16 0 0.16 0 0.16 0 0'/></feComponentTransfer></filter><rect width='100%25' height='100%25' filter='url(%23f)'/></svg>");
  background-size: cover;
  background-position: center;
}

/* ───────── Nav ───────── */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: var(--space-lg) var(--space-xl);
}
.nav__logo {
  justify-self: start;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--color-cream);
}
.nav__links {
  display: flex;
  gap: var(--space-xl);
  margin: 0; padding: 0;
  list-style: none;
}
.nav__links a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: oklch(0.975 0.022 95 / 0.82);
  padding-block: var(--space-xs);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size var(--dur-base) var(--ease-out), color var(--dur-fast);
  white-space: nowrap;
}
.nav__links a:hover { color: var(--color-cream); background-size: 100% 2px; }

.btn {
  justify-self: end;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: var(--color-lime);
  color: var(--color-navy);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast);
}
.btn:hover { transform: translateY(-2px); background: var(--color-flame); }
.btn:active { transform: translateY(0); }

/* ───────── Title (за нерпой) ───────── */
.hero__title {
  position: absolute;
  z-index: 1;
  top: clamp(72px, 12vh, 120px);
  left: 0; right: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-style: normal;
  text-transform: uppercase;
  font-size: clamp(3rem, 12.8vw, 13.5rem);
  line-height: 0.86;
  letter-spacing: -0.005em;
  color: var(--color-cream);
  text-align: center;
  overflow-wrap: anywhere;
  min-width: 0;
}
.hero__title span { display: block; white-space: nowrap; }
.hero__title span:nth-child(2) { color: var(--color-lime); }

.hero__year {
  position: absolute;
  z-index: 1;
  right: 5%;
  bottom: -0.16em;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(5rem, 15vw, 15rem);
  line-height: 1;
  color: var(--color-olive);
}

/* ───────── Mascot ───────── */
.hero__stage {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: -15%;
  height: 86%;
  aspect-ratio: 850 / 855;
  transform: translateX(-50%);
  pointer-events: none;
}
.hero__nerpa {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 30px 40px oklch(0.2 0.08 250 / 0.35));
}

.bubble {
  position: absolute;
  display: grid;
  place-items: center;
  width: clamp(44px, 5.4vw, 84px);
  aspect-ratio: 1;
  border-radius: 50% 50% 50% 8%;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.4rem, 2.8vw, 2.8rem);
  color: var(--color-cream);
  animation: drift 7s var(--ease-in-out) infinite;
}
.coin svg { display: block; width: 100%; height: 100%; }
.bubble--a { left: -6%; top: 26%; background: var(--color-olive); }
.bubble--b { right: -4%; top: 12%; background: var(--color-blue-wave); border: 3px solid var(--color-cream); animation-delay: -2.4s; }
.bubble--c { right: -12%; top: 46%; background: var(--color-olive); animation-delay: -4.6s; }

.coin {
  position: absolute;
  left: 4%;
  top: 56%;
  width: clamp(48px, 6vw, 92px);
  height: clamp(48px, 6vw, 92px);
  border-radius: 50%;
  background: var(--color-flame);
  display: grid;
  place-items: center;
  padding: clamp(10px, 1.2vw, 18px);
  box-shadow: 0 0 0 6px oklch(0.85 0.17 92 / 0.3);
  animation: drift 6s var(--ease-in-out) infinite -1.2s;
}

@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ───────── Левая карточка-переключатель ───────── */
.tabs {
  position: absolute;
  z-index: 5;
  left: 18px; bottom: 18px;
  width: min(290px, 26vw);
  min-width: 240px;
  padding: var(--space-md);
  display: grid;
  gap: 6px;
  background: var(--color-paper);
  color: var(--color-ink);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px oklch(0.34 0.06 250 / 0.18);
}
.tabs__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  min-height: 44px;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.tabs__item svg { width: 16px; height: 16px; flex: none; color: var(--color-olive); transition: transform var(--dur-fast) var(--ease-out); }
.tabs__item:hover { background: oklch(0.51 0.125 245 / 0.1); }
.tabs__item:hover svg { transform: translateX(3px); }
.tabs__item:active { transform: translateY(1px); }
.tabs__item[aria-pressed="true"] { background: var(--color-navy); color: var(--color-cream); }
.tabs__item[aria-pressed="true"] svg { color: var(--color-lime); }

/* ───────── Правая подпись ───────── */
.hero__tagline {
  position: absolute;
  z-index: 5;
  right: 5%;
  bottom: var(--space-lg);
  max-width: 24ch;
  margin: 0;
  text-align: right;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--color-lime);
  transition: opacity 140ms var(--ease-out), transform 140ms var(--ease-out);
}
.hero__tagline.is-swap { opacity: 0; transform: translateY(4px); }

/* ───────── Планшет / мобильный ───────── */
@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; padding: var(--space-md) var(--space-lg); }
  .nav__links { display: none; }
  .hero__stage { height: 74%; }
  .hero__tagline { right: var(--space-lg); bottom: var(--space-md); max-width: 18ch; font-size: 0.75rem; }
  .tabs { width: 220px; min-width: 0; padding: 10px; }
  .tabs__item { padding: 0.6rem 0.8rem; font-size: 0.8125rem; }
}
@media (max-width: 560px) {
  .hero { margin: 8px; height: min(calc(100svh - 16px), 760px); min-height: 620px; border-radius: 26px 26px 0 0; }
  .hero__title { font-size: 18.5vw; top: 64px; line-height: 0.88; padding-inline: var(--space-md); }
  .hero__title span { white-space: normal; }
  .hero__year { display: none; }
  .hero__stage { height: 66%; bottom: -3%; }
  .bubble--c { right: -4%; }
  .tabs { width: auto; right: 0; bottom: 0; border-radius: var(--radius-md) var(--radius-md) 0 0; grid-auto-flow: column; padding: 8px; gap: 4px; }
  .tabs::before { display: none; }
  .tabs__item { justify-content: center; padding: 0.7rem 0.4rem; font-size: 0.75rem; }
  .tabs__item svg { display: none; }
  .hero__tagline { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bubble, .coin { animation: none; }
  .nav__links a, .btn, .tabs__item, .tabs__item svg, .hero__tagline { transition: none; }
}

/* ═════════ Остальной сайт: светлый «чистый» стиль ═════════ */
:root { --color-surface: oklch(0.965 0.014 245); --color-line: oklch(0.9 0.015 245); --color-muted: oklch(0.45 0.03 250); }

.section { max-width: 1200px; margin: 0 auto; padding: clamp(64px, 9vw, 112px) var(--space-lg); }
.h2 {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-style: normal;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  min-width: 0;
}
.h2--center { text-align: center; margin-inline: auto; max-width: 20ch; }
.h2--light { color: var(--color-cream); }
.lead { margin: var(--space-md) 0 0; max-width: 56ch; color: var(--color-muted); font-size: 1.0625rem; line-height: 1.6; }

.btn--blue { background: var(--color-blue); color: var(--color-cream); margin-top: var(--space-lg); display: inline-block; }
.btn--blue:hover { background: var(--color-blue-deep); }

/* Intro */
.intro { display: grid; gap: var(--space-xl); }
.intro__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: end; }
.intro__head .lead { margin: 0; }
.mapcard { margin: 0; padding: clamp(16px, 3vw, 40px); background: var(--color-surface); border-radius: var(--radius-md); }
.mapcard img { display: block; width: 100%; height: auto; }
.legend { margin: calc(-1 * var(--space-md)) 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-md); font-size: .875rem; color: var(--color-muted); }
.legend__dot { display: inline-block; width: 12px; height: 12px; margin-right: -.5rem; border-radius: 50%; background: var(--color-blue); }
.legend__dot--safe { background: var(--color-lime); outline: 2px solid var(--color-olive); outline-offset: -2px; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--color-line); }
.facts > div { padding: var(--space-lg) var(--space-lg) 0 0; }
.facts > div + div { padding-left: var(--space-lg); border-left: 1px solid var(--color-line); }
.facts dt, .facts dd { margin: 0; }
.facts__n { font-family: var(--font-display); font-weight: 900; font-size: clamp(3.5rem, 7vw, 6rem); line-height: .9; color: var(--color-blue); }
.facts dd { margin-top: .5rem; color: var(--color-muted); line-height: 1.4; max-width: 24ch; }

/* Why */
.why { border-top: 1px solid var(--color-line); max-width: 1100px; }
.why__list { list-style: none; margin: var(--space-xl) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl); }
.why__num { font-family: var(--font-display); font-weight: 900; font-size: 2.75rem; line-height: 1; color: var(--color-blue); }
.why__list h3 { margin: var(--space-sm) 0; font-size: 1.25rem; font-weight: 600; line-height: 1.25; }
.why__list p { margin: 0; color: var(--color-muted); line-height: 1.6; }
.why__verdict { margin: var(--space-xl) 0 0; text-align: center; font-size: 1.125rem; font-weight: 500; }

/* Banner */
.banner {
  position: relative; isolation: isolate;
  width: min(1200px, calc(100% - 2 * var(--space-lg))); margin: clamp(72px, 9vw, 120px) auto; border-radius: var(--radius-xl);
  min-height: clamp(320px, 36vw, 440px);
  background: linear-gradient(120deg, var(--color-blue-deep), var(--color-blue) 60%, var(--color-blue-wave));
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  clip-path: inset(-400px -400px 0 -400px); /* сверху и по бокам телефоны выходят за плашку, снизу обрезаются */
}
.banner__copy { padding: clamp(24px, 5vw, 64px); }
.banner__copy .btn { display: inline-block; margin-top: var(--space-lg); }
/* телефоны крупнее плашки и выходят за её края */
.banner__img { position: absolute; z-index: 1; right: -2%; bottom: -26%; height: 150%; width: auto; max-width: 58%; object-fit: contain; filter: drop-shadow(0 24px 32px oklch(0.15 0.06 250 / .35)); pointer-events: none; }

/* Inside / cards */
.inside { max-width: none; padding-inline: 0; }
.inside__head { max-width: 1200px; margin: 0 auto; padding-inline: var(--space-lg); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: var(--space-xl); align-items: end; }
.inside__head .lead { margin: 0; }
.arrows { display: flex; gap: var(--space-xs); }
.arrow { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--color-ink); background: transparent; display: grid; place-items: center; cursor: pointer; transition: background var(--dur-fast), color var(--dur-fast); }
.arrow svg { width: 18px; height: 18px; }
.arrow:hover { background: var(--color-ink); color: var(--color-paper); }
.cards { display: flex; align-items: flex-end; gap: var(--space-md); margin-top: var(--space-xl); padding: 0 max(var(--space-lg), calc((100vw - 1200px) / 2 + var(--space-lg))) var(--space-sm); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--space-lg); scrollbar-width: none; }
.cards::-webkit-scrollbar { display: none; }
.cards { cursor: grab; }
.cards.is-drag { cursor: grabbing; scroll-snap-type: none; }
.cards.is-drag * { user-select: none; }
.card { position: relative; flex: none; width: clamp(220px, 22vw, 280px); scroll-snap-align: start; overflow: hidden; border-radius: var(--radius-md); color: var(--color-cream); isolation: isolate; }
.card--tall { height: clamp(380px, 38vw, 480px); }
.card--short { height: clamp(300px, 29vw, 360px); }
.card--blue { background: linear-gradient(170deg, var(--color-blue-wave), var(--color-blue-deep)); }
.card--navy { background: linear-gradient(170deg, oklch(0.36 0.07 252), var(--color-navy)); }
.card--olive { background: var(--color-olive); }
.card--lime { background: var(--color-lime); color: var(--color-navy); }
.card img { position: absolute; z-index: -1; height: auto; width: 124%; max-width: none; left: -12%; top: 10%; }
.card img.card__phone { width: 74%; left: 13%; top: 5%; }
.card--wide { overflow: visible; clip-path: inset(0 -200px -200px 0); } /* слева обрезается, справа и снизу телефон выходит за карточку */
.card img.card__wide { width: 118%; left: -9%; top: 12%; }
.card__icon { position: absolute; top: 18%; left: 50%; translate: -50% 0; width: 42%; opacity: .95; }
.card__label { position: absolute; inset: auto 0 0 0; padding: var(--space-xl) var(--space-md) var(--space-md); background: linear-gradient(to top, oklch(0.2 0.06 250 / .75), transparent); }
.card--lime .card__label, .card--olive .card__label { background: none; }
.card__label h3 { margin: 0; font-size: 1.0625rem; font-weight: 600; line-height: 1.25; }
.card__label p { margin: .25rem 0 0; font-size: .8125rem; opacity: .85; }
.card { transition: transform var(--dur-base) var(--ease-out); }
.card:hover { transform: translateY(-6px); }

/* Partners */
.partners { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.partners__head { position: sticky; top: var(--space-xl); }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-line); }
.row { padding: var(--space-lg) 0; border-bottom: 1px solid var(--color-line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--space-lg); }
.row h3 { margin: 0; font-size: 1.25rem; font-weight: 600; line-height: 1.25; }
.row p { margin: 0; color: var(--color-muted); line-height: 1.6; }

/* Footer */
.footer { position: relative; isolation: isolate; margin: var(--space-xl) 12px 12px; padding: clamp(32px, 6vw, 80px) clamp(24px, 5vw, 64px) var(--space-lg); background: var(--color-blue); color: var(--color-cream); border-radius: var(--radius-xl); overflow: hidden; }
.footer__main { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-xl); align-items: end; }
.footer__title { margin: 0; font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.4rem, 6vw, 5.25rem); line-height: .92; overflow-wrap: anywhere; }
.footer__who { margin: var(--space-lg) 0 0; color: oklch(0.975 0.022 95 / .8); }
.footer__cta { display: grid; justify-items: start; gap: var(--space-md); }
.footer__cta { justify-items: center; }
.footer__cta picture { display: block; }
.footer__cta img { display: block; width: min(520px, 100%); height: auto; }
.footer__main > div:first-child { padding-bottom: clamp(32px, 6vw, 72px); }
.footer__bar { max-width: 1200px; margin: 0 auto; padding-top: var(--space-lg); border-top: 1px solid oklch(0.975 0.022 95 / .25); font-size: .875rem; }
.footer__links { margin-top: var(--space-lg); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-md); }
.footer__links nav { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); }
.footer__links a { text-decoration: none; opacity: .85; padding-block: .5rem; }
.footer__links a:hover { opacity: 1; text-decoration: underline; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .intro__head, .banner, .footer__main, .partners, .row { grid-template-columns: minmax(0, 1fr); }
  .why__list { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .partners__head { position: static; }
  .inside__head { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); }
  .cards { direction: rtl; } /* лента начинается справа и листается вправо */
  .card { direction: ltr; }
  /* баннер: текст сверху, телефоны ниже и чуть шире плашки по бокам, снизу обрезаются */
  .banner { min-height: 0; padding: clamp(24px, 6vw, 40px) clamp(20px, 5vw, 32px) 0; margin-block: 56px 72px; }
  .banner__copy { padding: 0 0 var(--space-lg); }
  .banner__img { position: relative; inset: auto; translate: none; display: block; width: 116%; max-width: none; height: auto; margin: 0 -8% -16% -8%; z-index: 1; }
  .footer__main > div:first-child { padding-bottom: var(--space-lg); }
  .footer__cta { justify-items: center; width: 100%; }
  .footer__cta picture { margin-inline: auto; width: min(420px, 92%); }
  .footer__cta img { width: 100%; margin-inline: auto; }
  .footer__title { font-size: clamp(2.2rem, 11vw, 4rem); }
  .footer__links { flex-direction: column; align-items: flex-start; gap: var(--space-xs); }
}
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .dotgrid i { transition: none; transform: none; }
}

/* Кнопка под белой полосой подвала */
.footer__cta-big { display: block; max-width: 1200px; margin: 0; padding: .85rem var(--space-lg); border-radius: 999px; background: var(--color-lime); color: var(--color-navy); text-align: center; text-decoration: none; font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.1; letter-spacing: .02em; transition: transform var(--dur-base) var(--ease-out), background var(--dur-fast); }
.footer__cta-big:hover { transform: translateY(-2px); background: var(--color-flame); }
.footer__cta-big:active { transform: translateY(0); }
