/* Общая база для вариантов лендинга: локальные шрифты, сброс, доступность. */
@font-face {
  font-family: 'Russo One';
  font-display: swap;
  src: url('../fonts/russo-one-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Russo One';
  font-display: swap;
  src: url('../fonts/russo-one-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF;
}
@font-face {
  font-family: 'Rubik';
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/rubik-cyrillic-variable.woff2') format('woff2');
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Rubik';
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/rubik-latin-variable.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body, h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
body { min-height: 100vh; overflow-x: clip; font-family: 'Rubik', 'Segoe UI', system-ui, sans-serif; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { font-family: 'Russo One', 'Rubik', sans-serif; font-weight: 400; text-wrap: balance; }

.skip-link {
  position: fixed; z-index: 100; top: 12px; left: 12px;
  padding: 12px 18px; border-radius: 8px;
  background: var(--skip-bg, #000); color: var(--skip-ink, #fff);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important; animation-iteration-count: 1 !important;
    transition-duration: 1ms !important; scroll-behavior: auto !important;
  }
}

/* Вариант «Блистер»: перфорированная панель рыболовного магазина, герои — упаковки крючков. */
:root {
  color-scheme: light;
  --board: #c58f55;
  --board-hole: #6b4320;
  --ink: #1d1a17;
  --brass: #ffc23d;
  --brass-deep: #e2a21a;
  --blue: #1f4f9a;
  --captain: #2f6fd0;
  --spark: #138f8b;
  --brute: #4a8f2f;
  --red: #d23b28;
  --white: #fbfbf8;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --skip-bg: var(--ink);
  --skip-ink: var(--brass);
  background: var(--board);
  color: var(--ink);
  scrollbar-color: #7a4f26 var(--board);
  accent-color: var(--red);
}
body {
  font-size: 17px; line-height: 1.55;
  background:
    radial-gradient(circle, var(--board-hole) 0 3.5px, transparent 4.5px) 0 0 / 34px 34px,
    var(--board);
}
::selection { background: var(--ink); color: var(--brass); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 6px; }

.wrap { width: min(100% - 2 * clamp(16px, 4vw, 56px), 1200px); margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 12px 26px; border-radius: 999px;
  background: var(--ink); color: var(--brass);
  font: 400 1.02rem/1.1 'Russo One', sans-serif; text-decoration: none; white-space: nowrap;
  transition: transform 160ms var(--ease), background-color 160ms;
}
.btn:hover { transform: translateY(-2px); background: #000; }
.btn:active { transform: translateY(1px); }
.btn-small { min-height: 44px; padding: 8px 20px; font-size: .9rem; }
.btn-light { background: var(--white); color: var(--red); min-height: 60px; padding-inline: 34px; font-size: 1.15rem; }
.btn-light:hover { background: #fff; }

.bar {
  display: flex; align-items: center; gap: 24px; min-height: 64px; margin-top: 14px;
  padding: 0 10px 0 16px; border-radius: 14px; background: var(--ink); color: var(--white);
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 400 1rem 'Russo One', sans-serif; text-decoration: none; color: var(--brass); }
.brand img { border-radius: 8px; }
.bar nav { display: flex; gap: 22px; margin-left: auto; }
.bar nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: #d9d2c6; font-weight: 500; }
.bar nav a:hover { color: #fff; }
.bar .btn { background: var(--brass); color: var(--ink); }

/* Карточка-упаковка: пробивное отверстие сверху, мягкая тень на панели */
.card {
  position: relative; border-radius: 26px;
  padding: clamp(44px, 5vw, 64px) clamp(22px, 4vw, 56px) clamp(28px, 4vw, 48px);
  box-shadow: 0 2px 0 #00000026, 0 22px 40px -12px #4a2a0c99;
}
.card::before {
  content: ''; position: absolute; top: 16px; left: 50%; translate: -50% 0;
  width: 72px; height: 18px; border-radius: 9px;
  background: var(--board); box-shadow: inset 0 3px 4px #0000004d;
}
.peg {
  position: absolute; z-index: 2; left: 50%; translate: -50% 0;
  width: 14px; height: 38px; border-radius: 7px;
  background: linear-gradient(90deg, #6f7880, #d7dde2 45%, #8b949b);
  box-shadow: 0 6px 6px -2px #0006;
}

/* Первый экран */
.hero { position: relative; padding-top: 44px; padding-bottom: clamp(56px, 7vw, 96px); }
.hero > .peg { top: 30px; }
.card-main {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  min-height: min(calc(100svh - 170px), 760px);
  background: var(--brass);
  transform-origin: 50% 0;
}
.card-copy h1 img { width: clamp(200px, 22vw, 300px); }
.launch { margin-top: 16px; max-width: 36ch; font-size: clamp(1.02rem, 1.3vw, 1.18rem); }
.card-copy .btn { margin-top: 24px; }
.features { display: grid; gap: 12px; margin-top: 30px; }
.features li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; font-weight: 600; line-height: 1.3; }
.features svg {
  width: 44px; height: 44px; padding: 8px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--ink); color: var(--ink);
}

.blister {
  position: relative; padding: 12px; border-radius: 30px;
  background: #ffffff59; border: 2px solid #ffffffb3;
  box-shadow: inset 0 0 0 1px #00000014, 0 14px 24px -14px #0006;
}
.blister img { width: 100%; border-radius: 20px; }
.blister::after {
  content: ''; position: absolute; inset: 12px; border-radius: 20px; pointer-events: none;
  background: linear-gradient(115deg, transparent 18%, #ffffff5c 22%, #ffffff1f 30%, transparent 34%, transparent 62%, #ffffff33 64%, transparent 69%);
}

@media (prefers-reduced-motion: no-preference) {
  .card-main { animation: swing 1.8s cubic-bezier(.3, .7, .4, 1) both; }
  @keyframes swing {
    0% { rotate: calc(-5deg * var(--amp, 1)); }
    35% { rotate: calc(3deg * var(--amp, 1)); }
    60% { rotate: calc(-1.4deg * var(--amp, 1)); }
    80% { rotate: calc(.5deg * var(--amp, 1)); }
    100% { rotate: 0deg; }
  }
}

/* Надписи на панели — как ценник на полке */
.board-title {
  width: fit-content; padding: 10px 18px; border-radius: 10px;
  background: var(--ink); color: var(--brass);
  font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.05;
}
.board-hint { margin-top: 26px; width: fit-content; padding: 6px 12px; border-radius: 8px; background: #ffffffb3; font-size: .9rem; }

/* Стойка с героями */
.heroes { padding-block: clamp(56px, 7vw, 96px); }
.rack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); margin-top: 48px; }
.hang { position: relative; padding-top: 22px; perspective: 1400px; }
.hang > .peg { top: 0; }
.flip {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: left;
  transform-style: preserve-3d; transition: transform 700ms var(--ease);
}
.flip[aria-pressed='true'] { transform: rotateY(180deg); }
.flip:hover:not([aria-pressed='true']) { transform: translateY(-3px) rotate(-1deg); }
.face {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 46px 20px 26px; border-radius: 22px; color: var(--white);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 2px 0 #00000026, 0 20px 34px -12px #4a2a0c99;
}
.face::before {
  content: ''; position: absolute; top: 14px; left: 50%; translate: -50% 0;
  width: 60px; height: 16px; border-radius: 8px; background: var(--board); box-shadow: inset 0 3px 4px #0000004d;
}
.back { position: absolute; inset: 0; transform: rotateY(180deg); align-items: stretch; justify-content: flex-start; gap: 6px; padding-top: 42px; }
.hang[data-hero='captain'] .face { background: var(--captain); }
.hang[data-hero='spark'] .face { background: var(--spark); }
.hang[data-hero='brute'] .face { background: var(--brute); }
.pack-name { font: 400 clamp(1.4rem, 2.2vw, 1.9rem)/1 'Russo One', sans-serif; text-align: center; }
.pack-bubble { width: 100%; padding: 8px; border-radius: 22px; background: #ffffff2e; border: 2px solid #ffffff80; }
.pack-bubble img { width: 82%; margin-inline: auto; transition: transform 300ms var(--ease); }
.flip:hover .pack-bubble img { transform: scale(1.04); }
.pack-tag { padding: 4px 12px; border-radius: 999px; background: var(--ink); color: var(--brass); font-size: .85rem; font-weight: 600; }
.bars { display: grid; gap: 12px; margin-top: 4px; }
.ability { display: grid; gap: 5px; }
.ability-name { font-size: .88rem; font-weight: 600; }
/* Восемь делений, как шкала на упаковке; заполнено --n из 8 */
.meter {
  height: 14px; border-radius: 4px;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 3px), #00000038 calc(12.5% - 3px) 12.5%),
    linear-gradient(var(--brass), var(--brass)) 0 0 / calc(var(--n) * 12.5%) 100% no-repeat,
    #00000030;
  box-shadow: inset 0 0 0 1.5px #0000004d;
}
.flip[aria-pressed='true'] .meter { animation: fill 700ms var(--ease) 250ms both; }
@keyframes fill { from { background-size: auto, 0 100%, auto; } }
.back-note { margin-top: 6px; font-size: .92rem; }

/* Инструкция */
.how { padding-block: clamp(40px, 5vw, 72px); }
.card-white { background: var(--white); }
.how h2, .sizes h2, .close h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); line-height: 1.04; letter-spacing: -.02em; }
.how-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 48px); align-items: center; margin-top: 30px; }
.how-grid img { width: 100%; border-radius: 16px; border: 2px solid var(--ink); }
.steps { display: grid; gap: 20px; counter-reset: s; }
.steps li { position: relative; padding-left: 52px; counter-increment: s; max-width: 40ch; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px;
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--brass); border: 2px solid var(--ink); font: 400 1.05rem 'Russo One', sans-serif;
}
.warning { display: flex; gap: 14px; align-items: center; margin-top: 30px; padding: 14px 18px; border: 2px solid var(--ink); border-radius: 12px; background: #fff3cf; }
.warning svg { flex: none; }

/* Размерный ряд */
.sizes { padding-block: clamp(40px, 5vw, 72px); }
.card-blue { background: var(--blue); color: var(--white); }
.sizes-lead { margin-top: 14px; max-width: 52ch; color: #dbe6f7; }
.size-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: end; margin-top: 40px; }
.size-row li { display: grid; justify-items: center; gap: 6px; text-align: center; }
.size-row .rank { width: min(100%, 124px); aspect-ratio: 84 / 78; height: auto; overflow: visible; filter: drop-shadow(0 6px 8px #0005); transition: transform 300ms var(--ease); }
.size-row li:hover .rank { transform: translateY(-4px) rotate(-6deg); }
.size-row b { font: 400 clamp(.85rem, 1.6vw, 1.15rem) 'Russo One', sans-serif; }
.size-row span { font-variant-numeric: tabular-nums; color: #b9cdea; font-size: .9rem; }

/* Финал */
.close { padding-block: clamp(40px, 5vw, 72px) clamp(56px, 7vw, 96px); }
.card-red { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; background: var(--red); color: var(--white); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-bottom: 14px; padding: 6px 16px; border-radius: 14px; background: var(--ink); color: #d9d2c6; font-size: .9rem; }
.foot nav { display: flex; gap: 22px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; }
.foot a:hover { color: #fff; }

/* Окно загрузки из Google Play */
.store {
  width: min(100% - 32px, 440px); padding: 0; border: 0; background: none; overflow: visible;
}
.store::backdrop { background: #2a1606b3; backdrop-filter: blur(3px); }
.store-card {
  position: relative; display: grid; justify-items: center; gap: 14px; text-align: center;
  padding: 52px 28px 28px; border-radius: 26px; background: var(--brass); color: var(--ink);
  box-shadow: 0 30px 60px -18px #000a;
}
.store-card::before {
  content: ''; position: absolute; top: 16px; left: 50%; translate: -50% 0;
  width: 72px; height: 18px; border-radius: 9px; background: #a8743f; box-shadow: inset 0 3px 4px #0000004d;
}
.store-icon { border-radius: 20px; box-shadow: 0 8px 16px -6px #0006; }
.store h2 { font-size: 1.7rem; line-height: 1.1; }
.store p { max-width: 32ch; }
.store-go { width: 100%; margin-top: 4px; }
.store-note { font-size: .88rem; color: #4a3b12; }
.store-close {
  position: absolute; top: 10px; right: 10px; display: grid; place-items: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: var(--ink);
  transition: background-color 160ms;
}
.store-close:hover { background: #0000001f; }
@media (prefers-reduced-motion: no-preference) {
  .store[open] .store-card { animation: drop 520ms cubic-bezier(.3, 1.4, .5, 1) both; }
  .store[open]::backdrop { animation: dim 300ms ease both; }
  @keyframes drop { from { translate: 0 -40px; rotate: -4deg; opacity: 0; } }
  @keyframes dim { from { opacity: 0; } }
}

@media (max-width: 900px) {
  .card-main, .how-grid { grid-template-columns: minmax(0, 1fr); }
  .card-main { min-height: 0; }
  .rack { grid-template-columns: minmax(0, 1fr); max-width: 380px; margin-inline: auto; }
}
@media (max-width: 640px) {
  .bar nav { display: none; }
  .bar .btn { margin-left: auto; }
  .card-main { --amp: .45; }
  .card-copy .btn, .btn-light { width: 100%; }
  .size-row { gap: 4px; }
  .size-row b { font-size: .72rem; }
  .size-row span { font-size: .75rem; }
}
