/* RUSA.PRO — главная. Фон — синие тона палитры от светлого неба к глубокому низу; янтарь только в акцентах. */

@font-face {
  font-family: Onest; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url(fonts/onest-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Onest; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url(fonts/onest-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #0b1e33;
  --deep: #0e3a5c;
  --blue: #0f5580;
  --amber: #f5a300;
  --gold: #fbb83c;
  --sun: #ffd262;
  --ink: #101d2c;
  --muted: #8d99a6;
  --top-ink: #1d2a39;   /* подписи в шапке: верх фона светлый, белый текст на нём теряется */
  --t: clamp(150px, min(27dvh, 17.2vw), 340px);   /* сторона плитки */
  --gap: calc(var(--t) * .085);
  --bar: 44px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100%; overflow: hidden;
  font-family: Onest, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px; line-height: 1.4; color: #fff; background: #5a8fb4;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
button, input, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
[hidden] { display: none !important; }

/* ---------- фон ---------- */

.sky {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(64% 42% at 8% 112%, rgba(11, 30, 51, .78) 0, rgba(14, 58, 92, .55) 42%, rgba(14, 58, 92, 0) 100%),
    radial-gradient(72% 38% at 94% 114%, rgba(14, 58, 92, .82) 0, rgba(15, 85, 128, .5) 44%, rgba(15, 85, 128, 0) 100%),
    radial-gradient(55% 42% at 74% -14%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #b4d0e2 0%, #86b0cd 26%, #5a8fb4 58%, #3f7aa3 82%, #2f6890 100%);
}
.sky::after {   /* зерно, как фактура логотипа */
  content: ''; position: absolute; inset: 0; opacity: .22; mix-blend-mode: soft-light; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.glass {
  background: rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(20px) saturate(1.35); backdrop-filter: blur(20px) saturate(1.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26);
}

/* ---------- каркас главной ---------- */

.home { height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; }

.top {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px;
  padding: max(22px, env(safe-area-inset-top)) 28px 0;
}
.top-left, .top-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.top-right { justify-content: flex-end; }

.lang {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; flex: none;
  width: 92px; height: var(--bar); padding: 5px; border-radius: 22px; background: #fff;
  font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--muted);
  box-shadow: 0 8px 22px -10px rgba(11, 30, 51, .5);
}
.lang-knob {
  position: absolute; top: 5px; left: 5px; width: 41px; height: 34px; border-radius: 17px;
  background: var(--blue); transition: transform .32s var(--ease);
}
.lang[aria-checked='true'] .lang-knob { transform: translateX(41px); }
.lang-opt { position: relative; text-align: center; transition: color .2s; }
.lang[aria-checked='false'] [data-l='ru'], .lang[aria-checked='true'] [data-l='en'] { color: #fff; }

.pill {
  display: inline-flex; align-items: center; height: var(--bar); padding: 0 18px; border-radius: 22px;
  font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--top-ink); transition: background .2s;
}
.pill.glass:hover { background: rgba(255, 255, 255, .32); }

.notice {
  display: flex; align-items: center; gap: 4px; height: 52px; padding: 6px; border-radius: 26px;
  background: #fff; color: var(--ink); box-shadow: 0 14px 34px -16px rgba(11, 30, 51, .55);
}
.notice-link { display: flex; align-items: center; gap: 10px; height: 100%; border-radius: 20px; padding-right: 2px; }
.notice-link img { width: 40px; height: 40px; border-radius: 50%; }
.notice-text { font-size: 14px; font-weight: 600; white-space: nowrap; }
.notice-chip { margin-left: 6px; padding: 7px 12px; border-radius: 14px; background: #eef2f5; font-size: 12px; font-weight: 500; }
.notice-link:hover .notice-chip { background: var(--sun); }
.notice-x { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #5c6875; }
.notice-x:hover { background: #eef2f5; }
.notice-x svg { width: 16px; height: 16px; }

.seg { display: flex; padding: 4px; border-radius: 22px; height: var(--bar); }
.seg button {
  height: 36px; padding: 0 15px; border-radius: 18px; font-size: 13px; font-weight: 500; white-space: nowrap;
  color: var(--top-ink); transition: background .2s, color .2s;
}
.seg button[aria-pressed='true'] { background: #fff; color: var(--ink); box-shadow: 0 4px 12px -6px rgba(11, 30, 51, .5); }

/* ---------- лента плиток ---------- */

.stage { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 0; }

.rail {
  display: grid; grid-template-rows: repeat(2, var(--t)); grid-auto-flow: column; grid-auto-columns: var(--t);
  gap: var(--gap); padding: 34px var(--gap);
  width: calc(var(--t) * 4 + var(--gap) * 5); max-width: 100vw;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gap); scrollbar-width: none; outline-offset: -6px;
}
.rail::-webkit-scrollbar { display: none; }
@media (min-width: 721px) { .rail { clip-path: inset(0 calc(var(--gap) - 3px)); } }   /* соседняя страница не выглядывает */

.tile {
  position: relative; display: flex; flex-direction: column; overflow: hidden; scroll-snap-align: start;
  border-radius: calc(var(--t) * .225); container-type: size; text-align: left;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.tile:hover { transform: translateY(-4px); }
.tile-in { display: flex; flex-direction: column; height: 100%; padding: 9cqw 9cqw 0; }
.tile h2 { font-size: 10.4cqw; font-weight: 500; line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
.tile p { margin-top: 2.6cqw; font-size: 6.3cqw; line-height: 1.2; }
.tile .chip {
  position: absolute; right: 7cqw; bottom: 7cqw; width: 20cqw; height: 20cqw; border-radius: 50%;
  display: grid; place-items: center; font-size: 6.4cqw; font-weight: 600; letter-spacing: .02em;
}
.tile .chip svg { width: 8.5cqw; height: 8.5cqw; }

.tile.site { background: #fff; color: var(--ink); box-shadow: 0 22px 44px -22px rgba(11, 30, 51, .6); }
.tile.site p { color: var(--muted); }
.tile.site .shot {
  flex: 1; min-height: 0; margin: 6cqw -2.5cqw 0; border-radius: 7cqw 7cqw 0 0; overflow: hidden;
  background: #eef2f5; box-shadow: 0 0 0 1px rgba(11, 30, 51, .08);
}
.tile.site .shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }
.tile.site .chip { background: #fff; color: var(--deep); box-shadow: 0 6px 16px -6px rgba(11, 30, 51, .55), 0 0 0 1px rgba(11, 30, 51, .06); }

.tile.info, .tile.plus {
  color: #fff; text-shadow: 0 1px 12px rgba(11, 30, 51, .35);
  background: linear-gradient(165deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .1)), rgba(15, 85, 128, .16);
  -webkit-backdrop-filter: blur(24px) saturate(1.35); backdrop-filter: blur(24px) saturate(1.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), 0 22px 44px -26px rgba(11, 30, 51, .5);
}
.tile.info p { color: rgba(255, 255, 255, .82); }
.tile.info .badge {
  position: absolute; left: 7cqw; bottom: 7cqw; width: 20cqw; height: 20cqw; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--blue);
}
.tile.info .badge svg { width: 9.5cqw; height: 9.5cqw; }
.tile.info .chip { background: rgba(255, 255, 255, .24); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.tile.info:hover, .tile.plus:hover { background: linear-gradient(165deg, rgba(255, 255, 255, .36), rgba(255, 255, 255, .16)), rgba(15, 85, 128, .16); }

.tile.plus { background: rgba(255, 255, 255, .14); }
.tile.plus .tile-in { align-items: center; justify-content: center; gap: 5cqw; padding: 0; }
.tile.plus svg { width: 12cqw; height: 12cqw; stroke-width: 1.4; }
.tile.plus span { font-size: 6.6cqw; color: rgba(255, 255, 255, .92); }

.dots { display: flex; gap: 6px; height: 14px; align-items: center; margin-top: -12px; }
.dots button { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .45); transition: background .2s, width .3s var(--ease); position: relative; }
.dots button::after { content: ''; position: absolute; inset: -8px -3px; }   /* зона нажатия больше самой точки */
.dots button:hover { background: rgba(255, 255, 255, .8); }
.dots button.on { background: #fff; width: 16px; }

/* ---------- низ ---------- */

.bottom {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 28px max(22px, env(safe-area-inset-bottom));
}
.copy { white-space: nowrap; font-size: 12px; font-weight: 500; letter-spacing: .04em; color: rgba(255, 255, 255, .82); }
.pager, .quick { display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 26px; }
.pager { grid-column: 2; }
.quick { grid-column: 3; }
.quick { justify-self: end; }
.pager button, .quick a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--ink); transition: transform .2s var(--ease), opacity .2s;
}
.pager button:hover:not(:disabled), .quick a:hover { transform: scale(1.06); }
.pager button:disabled { opacity: .45; cursor: default; }
.pager-n { min-width: 52px; text-align: center; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.quick a { background: var(--amber); color: #fff; }

/* ---------- страница проекта и текстовые страницы ---------- */

.page {
  position: fixed; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: max(22px, env(safe-area-inset-top)) 28px 48px;
}
.back {
  position: sticky; top: 0; z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; color: var(--top-ink); transition: background .2s;
}
.back:hover { background: rgba(255, 255, 255, .34); }
.back svg { width: 22px; height: 22px; }

.sheet {
  max-width: 1120px; margin: 18px auto 0; padding: clamp(24px, 4vw, 56px); border-radius: clamp(28px, 4vw, 48px);
  background: rgba(255, 255, 255, .94); color: var(--ink); box-shadow: 0 40px 80px -40px rgba(11, 30, 51, .65);
}
.sheet.text { max-width: 760px; }
.sheet.site { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.sheet h1 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 500; line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.sheet .lead { margin-top: 18px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.42; max-width: 46ch; }
.sheet .body p { margin-top: 14px; font-size: 16px; line-height: 1.6; color: #3d4b5b; max-width: 62ch; }
.sheet h2 { margin-top: 34px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.sheet .frame { border-radius: clamp(16px, 2vw, 26px); overflow: hidden; background: #eef2f5; box-shadow: 0 0 0 1px rgba(11, 30, 51, .1), 0 30px 60px -34px rgba(11, 30, 51, .6); }
.sheet .frame img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 0 0; }

.facts { margin-top: 28px; border-top: 1px solid rgba(11, 30, 51, .12); }
.facts div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(11, 30, 51, .12); font-size: 14px; }
.facts dt { color: #6d7a88; }

.cta {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; height: 54px; padding: 0 12px 0 24px;
  border-radius: 27px; background: var(--navy); color: #fff; font-size: 15px; font-weight: 500; transition: background .2s;
}
.cta:hover { background: var(--blue); }
.cta i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--amber); font-style: normal; }
.cta i svg { width: 16px; height: 16px; stroke-width: 2; }

.rows { margin-top: 26px; padding: 0; border-top: 1px solid rgba(11, 30, 51, .12); }
.rows li { list-style: none; display: grid; grid-template-columns: minmax(0, 13em) 1fr; gap: 6px 24px; padding: 16px 0; border-bottom: 1px solid rgba(11, 30, 51, .12); }
.rows b { font-size: 17px; font-weight: 600; letter-spacing: -.01em; overflow-wrap: anywhere; }
.rows a b { color: var(--blue); text-decoration: underline; text-decoration-color: rgba(15, 85, 128, .3); text-underline-offset: 4px; }
.rows a:hover b { text-decoration-color: currentColor; }
.rows span { font-size: 15px; line-height: 1.5; color: #3d4b5b; }

.fb { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.fb .wide { grid-column: 1 / -1; }
.fb label { display: grid; gap: 7px; font-size: 13px; color: #5c6875; }
.fb input:not([type='checkbox']), .fb textarea {
  width: 100%; padding: 14px 16px; border-radius: 18px; border: 1px solid rgba(11, 30, 51, .16); background: #fff;
  font-size: 16px; line-height: 1.4; color: var(--ink); transition: border-color .2s;
}
.fb textarea { resize: vertical; min-height: 130px; }
.fb input:focus-visible, .fb textarea:focus-visible { outline: 3px solid var(--sun); outline-offset: 1px; border-color: var(--blue); }
.fb .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fb .agree { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.4; color: #3d4b5b; cursor: pointer; }
.fb .agree input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--blue); }
.fb .agree a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.fb .cta { margin-top: 4px; justify-self: start; border: 0; }
.fb .cta:disabled { opacity: .6; cursor: default; }
.fb-err { padding: 12px 16px; border-radius: 16px; background: #fde8e4; color: #9a2617; font-size: 14px; }
.fb-done { display: flex; align-items: center; gap: 16px; margin-top: 26px; padding: 20px 22px; border-radius: 24px; background: #e4f3ea; color: #14532d; }
.fb-done i { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #1f8a4c; color: #fff; }
.fb-done b { display: block; font-size: 17px; font-weight: 600; }
.fb-done span { font-size: 15px; }
.or-mail { margin-top: 22px; font-size: 15px; color: #5c6875; }
.or-mail a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

.noscript { position: fixed; inset: 0; display: grid; place-content: center; gap: 12px; padding: 28px; text-align: center; }
.noscript a { text-decoration: underline; }

/* ---------- переход между главной и страницей ---------- */

::view-transition-group(*) { animation-duration: .46s; animation-timing-function: var(--ease); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }

/* ---------- узкие экраны ---------- */

@media (max-width: 1100px) {
  .top { grid-template-columns: 1fr auto; }
  .notice { grid-row: 2; grid-column: 1 / -1; justify-self: center; }
}
@media (max-width: 720px) {
  body { overflow: auto; }
  .home { height: auto; min-height: 100dvh; }
  .top { padding-inline: 16px; gap: 10px; grid-template-columns: 1fr; }
  .top-left, .top-right { justify-content: space-between; }
  .notice { grid-row: auto; justify-self: stretch; }
  .notice-link { flex: 1; min-width: 0; }
  .notice-chip { margin-left: auto; }
  .seg { flex: 1; }
  .seg button { flex: 1; padding: 0 10px; }
  .stage { justify-content: flex-start; }
  .rail {
    grid-template-rows: none; grid-auto-flow: row; grid-template-columns: 1fr; grid-auto-columns: auto; gap: 14px;
    width: 100%; padding: 20px 16px 8px; overflow: visible; scroll-snap-type: none;
  }
  .tile { aspect-ratio: 1 / .8; border-radius: 34px; }
  .tile.info, .tile.plus { aspect-ratio: 1 / .46; }
  .tile-in { padding: 6.5cqw 6.5cqw 0; }
  .tile h2 { font-size: 7.2cqw; }
  .tile p { margin-top: 1.6cqw; font-size: 4.3cqw; }
  .tile .chip, .tile.info .badge { width: 12.5cqw; height: 12.5cqw; right: 5cqw; bottom: 5cqw; font-size: 4cqw; }
  .tile.info .badge { left: 5cqw; right: auto; }
  .tile .chip svg, .tile.info .badge svg { width: 5.6cqw; height: 5.6cqw; }
  .tile.site .shot { margin: 4.5cqw -1.5cqw 0; border-radius: 5cqw 5cqw 0 0; }
  .tile.plus .tile-in { gap: 3cqw; }
  .tile.plus svg { width: 8cqw; height: 8cqw; }
  .tile.plus span { font-size: 4.6cqw; }
  .dots, .pager { display: none; }
  .bottom { padding: 18px 16px max(22px, env(safe-area-inset-bottom)); }
  .page { padding-inline: 12px; }
  .sheet.site { grid-template-columns: 1fr; }
  .sheet.site .frame { order: -1; }
  .rows li { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 8em 1fr; }
  .fb { grid-template-columns: 1fr; }
}
@media (min-width: 721px) and (max-height: 720px) { .notice { display: none; } .rail { padding-block: 22px; } }
@media (min-width: 721px) and (max-height: 520px) { :root { --t: clamp(96px, 26dvh, 200px); } .copy { visibility: hidden; } }

@media (prefers-reduced-motion: reduce) {
  *, ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { transition: none !important; animation: none !important; }
  .rail { scroll-behavior: auto; }
}
