/* deti.analizvody.ru — детский сайт о воде. Аква, Миша и Катя.
   Акварельный мир персонажей: светлая «бумага», голубая вода, тёплые щёчки. */

@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(../fonts/nunito-cyr.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(../fonts/nunito-lat.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; }
@font-face { font-family: "Pangolin"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/pangolin-cyr.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Pangolin"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/pangolin-lat.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }

:root {
  --paper: #f6fafd;          /* бумага с голубым отливом */
  --card: #ffffff;
  --ink: #1d3a55;            /* тёмно-синие чернила */
  --ink-soft: #4a6177;
  --water: #2b8fd6;          /* цвет Аквы */
  --water-deep: #1666a8;
  --sky: #d9eefb;
  --sky-2: #eef7fd;
  --coral: #ef8a7b;          /* щёчки героев */
  --coral-soft: #fde7e2;
  --leaf: #5fae5a;
  --leaf-soft: #e4f3e0;
  --sun: #f6bf3c;
  --sun-soft: #fff3d1;
  --line: #d6e3ee;
  --radius: 22px;
  --shadow: 0 2px 0 rgba(29, 58, 85, .06), 0 10px 30px rgba(29, 58, 85, .08);
  --wrap: 1120px;
  --hand: "Pangolin", "Comic Sans MS", "Segoe Print", cursive;
  --text: "Nunito", "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font: 400 18px/1.6 var(--text); color: var(--ink); background: var(--paper);
  background-image: radial-gradient(1200px 500px at 85% -120px, var(--sky) 0, transparent 70%),
                    radial-gradient(900px 420px at -10% 10%, var(--sky-2) 0, transparent 70%); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--water-deep); text-underline-offset: 3px; }
a:hover { color: var(--water); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0 0 .5em; font-weight: 900; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 5.4vw, 58px); }
h2 { font-size: clamp(26px, 3.6vw, 38px); }
h3 { font-size: 22px; font-weight: 800; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.lead { font-size: clamp(19px, 2.1vw, 22px); color: var(--ink-soft); max-width: 62ch; }
.hand { font-family: var(--hand); font-weight: 400; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 50; }

/* ── шапка ───────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 30; background: rgba(246, 250, 253, .92);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--sky); object-fit: cover; }
.brand b { font-weight: 900; font-size: 19px; line-height: 1.05; }
.brand small { display: block; font-size: 12px; font-weight: 700; color: var(--ink-soft); letter-spacing: .02em; }
.nav { display: flex; gap: 2px; margin-left: auto; flex-wrap: nowrap; justify-content: flex-end; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 800; font-size: 15px; padding: 8px 10px; border-radius: 999px; white-space: nowrap; }
.nav a:hover { background: var(--sky); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--water); color: #fff; }
.burger { display: none; margin-left: auto; border: 0; background: var(--sky); color: var(--ink); width: 46px; height: 46px;
  border-radius: 14px; font-size: 22px; cursor: pointer; }
@media (max-width: 1100px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--paper); padding: 10px 16px 18px;
    border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { font-size: 18px; padding: 12px 14px; }
}

/* ── разделы ─────────────────────────────────────────────── */
section { padding-block: 56px; }
.band { background: var(--card); border-block: 1px solid var(--line); }
.band.sky { background: linear-gradient(180deg, var(--sky-2), var(--paper)); }
.eyebrow { display: inline-block; font-weight: 900; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--water-deep); background: var(--sky); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ── главный экран ───────────────────────────────────────── */
.hero { padding-block: 40px 30px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; align-items: center; }
.hero h1 span { color: var(--water); }
.hero-art { position: relative; aspect-ratio: 1 / 1; }
.hero-art .blob { position: absolute; inset: 6% 4% 4% 6%; border-radius: 46% 54% 52% 48% / 52% 44% 56% 48%;
  background: radial-gradient(circle at 35% 30%, #fff 0, var(--sky) 55%, #bfe2f7 100%); }
.hero-art img { position: absolute; filter: drop-shadow(0 12px 18px rgba(29, 58, 85, .14)); }
.hero-art .h-katya { height: 96%; width: auto; left: 10%; bottom: 0; }
.hero-art .h-misha { height: 50%; width: auto; right: 4%; bottom: 1%; }
.hero-art .h-aqua { height: 30%; width: auto; left: 46%; top: 8%; animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-3deg); } }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 800 17px/1 var(--text); text-decoration: none; cursor: pointer;
  padding: 15px 22px; border-radius: 999px; border: 2px solid var(--water); background: var(--water); color: #fff;
  box-shadow: 0 4px 0 var(--water-deep); transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 5px 0 var(--water-deep); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--water-deep); }
.btn.ghost { background: #fff; color: var(--water-deep); box-shadow: 0 4px 0 var(--line); border-color: var(--line); }
.btn.ghost:hover { color: var(--water-deep); }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } .hero-art { max-width: 460px; margin: 0 auto; width: 100%; } }

/* ── реплика героя ───────────────────────────────────────── */
.say { display: flex; gap: 14px; align-items: flex-end; margin: 18px 0; }
.say img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; background: #fff; flex: none;
  box-shadow: 0 0 0 4px #fff, 0 6px 14px rgba(29, 58, 85, .12); }
.say .bubble { position: relative; background: #fff; border-radius: 22px 22px 22px 6px; padding: 14px 18px;
  font-family: var(--hand); font-size: 20px; line-height: 1.4; box-shadow: var(--shadow); max-width: 640px; }
.say .bubble b { display: block; font-family: var(--text); font-size: 13px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 2px; }
.say.aqua .bubble b { color: var(--water-deep); }
.say.misha .bubble b { color: #5b6f86; }
.say.katya .bubble b { color: #c0614f; }
.say.right { flex-direction: row-reverse; }
.say.right .bubble { border-radius: 22px 22px 6px 22px; }

/* ── карточки ────────────────────────────────────────────── */
.card { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); border: 1px solid #e6eef5; }
a.card { display: block; text-decoration: none; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 2px 0 rgba(29, 58, 85, .06), 0 16px 34px rgba(29, 58, 85, .14); color: var(--ink); }
.card .pic { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; margin: -6px -6px 14px; background: var(--sky-2); }
.card .pic img { width: 100%; height: 100%; object-fit: cover; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--ink-soft); margin: 0; font-size: 17px; }
.tag { display: inline-block; font-size: 13px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--sky); color: var(--water-deep); }
.tag.leaf { background: var(--leaf-soft); color: #2f7a2d; }
.tag.sun { background: var(--sun-soft); color: #8a6100; }
.tag.coral { background: var(--coral-soft); color: #a8483a; }

/* ── герои ───────────────────────────────────────────────── */
.hero-card { display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: center; }
.hero-card .portrait { aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 0 0 6px var(--sky); }
.hero-card .portrait img { width: 100%; height: 100%; object-fit: cover; }
.hero-card ul { margin: 10px 0 0; padding-left: 20px; color: var(--ink-soft); }
@media (max-width: 640px) { .hero-card { grid-template-columns: 1fr; } .hero-card .portrait { max-width: 200px; } }

/* ── факты-перевёртыши ───────────────────────────────────── */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 22px; }
.chip { font: 800 15px/1 var(--text); border: 2px solid var(--line); background: #fff; color: var(--ink); padding: 10px 16px;
  border-radius: 999px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.facts { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.fact { perspective: 1000px; min-height: 230px; border: 0; padding: 0; background: none; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.fact .in { position: relative; height: 100%; min-height: 230px; transition: transform .5s ease; transform-style: preserve-3d; }
.fact[aria-expanded="true"] .in { transform: rotateY(180deg); }
.fact .side { position: absolute; inset: 0; backface-visibility: hidden; border-radius: var(--radius); padding: 20px; display: flex;
  flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.fact .front { background: #fff; border: 1px solid #e6eef5; }
.fact .front .q { font-size: 21px; font-weight: 900; line-height: 1.25; }
.fact .front .turn { margin-top: auto; font-weight: 800; color: var(--water-deep); font-size: 15px; }
.fact .back { background: linear-gradient(160deg, var(--water), var(--water-deep)); color: #fff; transform: rotateY(180deg); font-size: 17px; line-height: 1.5; }
.fact .back .big { font-size: 34px; font-weight: 900; line-height: 1; }
.fact .emoji { font-size: 34px; line-height: 1; }

/* ── круговорот ──────────────────────────────────────────── */
.cycle { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px; align-items: start; }
.cycle svg { width: 100%; height: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.cycle .steps { display: grid; gap: 10px; }
.step { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 2px solid #e6eef5; border-radius: 18px; padding: 14px 16px;
  cursor: pointer; text-align: left; font: inherit; color: inherit; width: 100%; }
.step .n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--sky); color: var(--water-deep); font-weight: 900;
  display: grid; place-items: center; }
.step b { display: block; font-size: 18px; }
.step span.t { color: var(--ink-soft); font-size: 16px; }
.step[aria-pressed="true"] { border-color: var(--water); background: var(--sky-2); }
.step[aria-pressed="true"] .n { background: var(--water); color: #fff; }
.cycle .zone { transition: opacity .3s ease; opacity: .25; }
.cycle .zone.on { opacity: 1; }
@media (max-width: 860px) { .cycle { grid-template-columns: 1fr; } }

/* ── лаборатория: шаги ───────────────────────────────────── */
.path { counter-reset: s; display: grid; gap: 26px 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.path .card { position: relative; padding-top: 30px; }
.path .card::before { counter-increment: s; content: counter(s); position: absolute; top: -16px; left: 20px; width: 40px; height: 40px;
  border-radius: 50%; background: var(--water); color: #fff; font-weight: 900; font-size: 20px; display: grid; place-items: center;
  box-shadow: 0 0 0 5px var(--paper); }

/* ── игра «что с водой?» ─────────────────────────────────── */
.detect { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.detect button { font: inherit; text-align: left; cursor: pointer; background: #fff; border: 2px solid #e6eef5; border-radius: 18px; padding: 16px; color: var(--ink); }
.detect button .sym { font-size: 30px; }
.detect button b { display: block; font-size: 18px; margin: 4px 0; }
.detect button .ans { display: none; color: var(--ink-soft); font-size: 16px; }
.detect button[aria-expanded="true"] { border-color: var(--leaf); background: var(--leaf-soft); }
.detect button[aria-expanded="true"] .ans { display: block; }
.detect button[aria-expanded="true"] .hint { display: none; }
.detect .hint { color: var(--water-deep); font-weight: 800; font-size: 15px; }

/* ── викторина ───────────────────────────────────────────── */
.quiz { max-width: 760px; margin: 0 auto; }
.quiz .bar { height: 12px; border-radius: 999px; background: var(--sky); overflow: hidden; margin-bottom: 18px; }
.quiz .bar i { display: block; height: 100%; width: 0; background: var(--water); border-radius: 999px; transition: width .3s ease; }
.quiz .qn { font-weight: 800; color: var(--ink-soft); font-size: 15px; }
.quiz .qt { font-size: clamp(22px, 3vw, 28px); font-weight: 900; margin: 6px 0 16px; line-height: 1.25; }
.quiz .opts { display: grid; gap: 10px; }
.quiz .opt { font: 700 18px/1.3 var(--text); text-align: left; padding: 15px 18px; border-radius: 16px; border: 2px solid var(--line); background: #fff;
  color: var(--ink); cursor: pointer; }
.quiz .opt:hover:not(:disabled) { border-color: var(--water); }
.quiz .opt.right { border-color: var(--leaf); background: var(--leaf-soft); }
.quiz .opt.wrong { border-color: var(--coral); background: var(--coral-soft); }
.quiz .opt:disabled { cursor: default; }
.quiz .why { margin-top: 14px; }
.quiz .next { margin-top: 16px; }
.quiz .result { text-align: center; }
.quiz .result .score { font-size: 64px; font-weight: 900; color: var(--water); line-height: 1; }
.quiz .result img { width: 180px; margin: 0 auto 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px var(--sky); }

/* ── опыты ───────────────────────────────────────────────── */
.exp { display: grid; grid-template-columns: 1fr; gap: 10px; }
.exp ol { margin: 6px 0 0; padding-left: 22px; }
.exp ol li { margin-bottom: 4px; }
.exp .need { color: var(--ink-soft); font-size: 16px; }
.exp .why { background: var(--sun-soft); border-radius: 14px; padding: 10px 14px; font-size: 16px; }
.warn { background: var(--coral-soft); border-radius: 18px; padding: 14px 18px; font-weight: 700; }

/* ── карта регионов ──────────────────────────────────────── */
.regions { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.region { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid #e6eef5; cursor: zoom-in;
  padding: 0; font: inherit; color: inherit; text-align: left; }
.region img { aspect-ratio: 16 / 9; object-fit: contain; width: 100%; background: #fff; }
.region span { display: block; padding: 10px 16px 2px; font-weight: 900; font-size: 18px; }
.region small { display: block; padding: 0 16px 16px; color: var(--ink-soft); font-size: 15px; line-height: 1.45; }
.region:hover { box-shadow: 0 2px 0 rgba(29, 58, 85, .06), 0 16px 34px rgba(29, 58, 85, .14); }
dialog.zoom { border: 0; padding: 0; border-radius: 22px; max-width: min(92vw, 900px); background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
dialog.zoom::backdrop { background: rgba(16, 33, 51, .7); }
dialog.zoom img { max-height: 80vh; width: auto; margin: 0 auto; }
dialog.zoom .cap { padding: 12px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 800; }
dialog.zoom button { font: 800 16px var(--text); border: 0; background: var(--sky); color: var(--ink); border-radius: 999px; padding: 10px 16px; cursor: pointer; }

/* ── родителям ───────────────────────────────────────────── */
.parents { background: var(--ink); color: #e9f3fb; border-radius: 28px; padding: 34px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 26px; align-items: center; }
.parents h2 { color: #fff; }
.parents p { color: #c9dceb; }
.parents a.btn { background: var(--sun); border-color: var(--sun); color: var(--ink); box-shadow: 0 4px 0 #c99520; }
.parents img { border-radius: 22px; }
@media (max-width: 760px) { .parents { grid-template-columns: 1fr; padding: 24px; } }

/* ── подвал ──────────────────────────────────────────────── */
.foot { padding: 34px 0 44px; color: var(--ink-soft); font-size: 15px; }
.foot .wrap { display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.foot nav { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── факт дня на главной ─────────────────────────────────── */
.daily { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; background: #fff; border-radius: 26px;
  padding: 20px 24px; box-shadow: var(--shadow); border: 2px dashed #bfe0f5; }
.daily img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; }
.daily .t { font-size: 20px; font-weight: 700; }
.daily .lbl { font-weight: 900; color: var(--water-deep); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 640px) { .daily { grid-template-columns: 1fr; text-align: center; } .daily img { margin: 0 auto; } }

/* ── источники воды ──────────────────────────────────────── */
.sources .card .pic { aspect-ratio: 1 / 1; background: #fff; }

/* подписи на рисунке круговорота читаются поверх любой краски */
.cycle svg text { paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round; }
.cycle svg text.sea { stroke: none; }

/* ── регионы: список и страница региона ─────────────────── */
a.region { display: block; text-decoration: none; color: var(--ink); cursor: pointer; }
a.region:hover { transform: translateY(-3px); color: var(--ink); }
a.region { transition: transform .15s ease, box-shadow .15s ease; }
.region[hidden] { display: none; }
.rsearch { display: flex; flex-direction: column; gap: 6px; max-width: 420px; margin-top: 18px; font-weight: 800; }
.rsearch input { font: 600 18px var(--text); padding: 13px 16px; border-radius: 16px; border: 2px solid var(--line); background: #fff; color: var(--ink); }
.rsearch input:focus { outline: none; border-color: var(--water); }
.crumb { margin: 0 0 12px; font-weight: 800; }
.crumb a { text-decoration: none; }
.rmap { display: block; background: #fff; border-radius: 26px; box-shadow: var(--shadow); padding: 10px; border: 1px solid #e6eef5; }
.rmap img { width: 100%; height: auto; border-radius: 18px; }
.rnav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 30px; font-weight: 800; }
.rnav a { text-decoration: none; background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 10px 18px; }
.rnav a:hover { border-color: var(--water); }
.quiz.rq { max-width: none; }
.muted { color: var(--ink-soft); }

/* ── словарик ── */
.gloss dl { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin: 0 0 30px; }
.gloss dl > div { background: #fff; border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow); border: 1px solid #e6eef5; }
.gloss dl > div[hidden], .gl-group[hidden] { display: none; }
.gloss dt { font-weight: 900; font-size: 19px; color: var(--water-deep); }
.gloss dd { margin: 4px 0 0; color: var(--ink-soft); font-size: 17px; }
.gl-group { margin-top: 10px; }
/* ── почемучка ── */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: #fff; border-radius: 18px; box-shadow: var(--shadow); border: 1px solid #e6eef5; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 900; font-size: 20px; padding: 16px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "💧 "; }
.faq details[open] summary { color: var(--water-deep); }
.faq details p { margin: 0 0 18px; color: var(--ink-soft); font-size: 18px; }
/* ── рекорды ── */
.records { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.rec .big { display: block; font-size: 34px; font-weight: 900; color: var(--water); line-height: 1.1; margin-bottom: 6px; }
/* ── советы ── */
.tips .ti { font-size: 34px; display: block; margin-bottom: 6px; }
/* ── игра ── */
.game-bar { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; font-weight: 800; font-size: 18px; }
.memory { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 640px; }
.mc { aspect-ratio: 1 / 1; border: 0; padding: 0; background: none; cursor: pointer; perspective: 800px; }
.mc-in { display: block; position: relative; width: 100%; height: 100%; transition: transform .4s ease; transform-style: preserve-3d; }
.mc.open .mc-in { transform: rotateY(180deg); }
.mc-back, .mc-face { position: absolute; inset: 0; border-radius: 16px; backface-visibility: hidden; display: flex; align-items: center; justify-content: center; }
.mc-back { background: linear-gradient(160deg, var(--water), var(--water-deep)); color: #fff; font-size: 40px; font-weight: 900; box-shadow: var(--shadow); }
.mc-face { background: #fff; transform: rotateY(180deg); flex-direction: column; box-shadow: var(--shadow); overflow: hidden; }
.mc-face img { width: 78%; height: 70%; object-fit: contain; }
.mc-face b { font-size: 14px; }
.mc.done .mc-face { box-shadow: 0 0 0 4px var(--leaf); }
#win { margin-top: 18px; }
/* ── что нарисовано на карте ── */
.lm { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.lm .card { display: flex; gap: 14px; align-items: flex-start; }
.lm .card img { width: 64px; height: 64px; flex: none; }
.lm .card h3 { font-size: 18px; margin-bottom: 4px; }
.lm .card p { font-size: 16px; }
.rqs { display: grid; gap: 18px; }
