/* Атлас и карта 01Географии. */
.gm { position: relative; overflow: hidden; border-radius: 18px; background: linear-gradient(180deg, #e8f2f8, #dbeaf3); box-shadow: inset 0 0 0 1px #cfdde8; user-select: none; -webkit-user-select: none; min-height: 260px; }
.gm-svg { display: block; width: 100%; height: 100%; min-height: inherit; cursor: crosshair; touch-action: none; outline: none; }
.gm-svg:focus-visible { box-shadow: inset 0 0 0 3px #397edf; }
.gm-svg.gm-dragging { cursor: grabbing; }
.gm-countries path { stroke: #7d6b55; stroke-width: .7px; stroke-opacity: .75; vector-effect: non-scaling-stroke; stroke-linejoin: round; transition: fill .2s; }
.gm-countries.gm-no-borders path { stroke: none; }
.gm-countries path.gm-hl { stroke-width: 2.4px; stroke-opacity: 1; }
.gm-countries path.gm-hl-ok { fill: rgba(18, 163, 103, .55) !important; stroke: #0b6b47; }
.gm-countries path.gm-hl-bad { fill: rgba(214, 69, 51, .45) !important; stroke: #a33; }
.gm-countries path.gm-hl-pick { fill: rgba(255, 176, 66, .55) !important; stroke: #b56a00; }
.gm-countries path.gm-hl-info { fill: rgba(56, 132, 255, .28) !important; stroke: #1f5fd6; }
.gm-regions path { fill: none; stroke: #8b7a66; stroke-width: .45px; stroke-opacity: .55; vector-effect: non-scaling-stroke; }
.gm-disputed path { stroke: #b06c12; stroke-width: 1px; stroke-dasharray: 3 2; vector-effect: non-scaling-stroke; }
.gm-lakes path { fill: #9fcbe6; stroke: #4f8fc0; stroke-width: .5px; vector-effect: non-scaling-stroke; }
.gm-rivers path { fill: none; stroke: #4c8fc7; stroke-width: .8px; stroke-opacity: .85; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.gm-grid path { fill: none; stroke: #2c5878; stroke-width: .6px; stroke-opacity: .28; vector-effect: non-scaling-stroke; }
.gm-grid path.gm-main { stroke-opacity: .55; stroke-width: 1px; }
.gm-grid path.gm-circle { stroke: #b04a3a; stroke-opacity: .45; stroke-dasharray: 5 4; }
.gm-shape { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.gm-shape-answer { stroke: #12a367; stroke-width: 5px; stroke-opacity: .85; }
.gm-shape-info { stroke: #1f5fd6; stroke-width: 5px; stroke-opacity: .65; }
.gm-l, .gm-deg, .gm-country-name, .gm-mark-text { font-family: Ubuntu, system-ui, sans-serif; paint-order: stroke; stroke: rgba(255, 255, 255, .88); stroke-width: .28em; stroke-linejoin: round; pointer-events: none; }
.gm-deg { fill: #2c5878; font-weight: 500; }
.gm-country-name { fill: #5b4b38; font-weight: 700; letter-spacing: .08em; stroke: rgba(255, 252, 240, .8); }
.gm-l-city { fill: #1a2150; font-weight: 600; }
.gm-l-water, .gm-l-sea { fill: #1f5d96; font-style: italic; font-weight: 500; }
.gm-l-ocean { fill: #1e5d93; font-style: italic; font-weight: 600; letter-spacing: .12em; stroke: rgba(210, 232, 246, .75); }
.gm-l-current { fill: #b4402c; font-style: italic; }
.gm-l-relief, .gm-l-peak { fill: #6b3d14; font-weight: 600; font-style: italic; }
.gm-l-land { fill: #3c3a2e; font-style: italic; }
.gm-l-deposit { fill: #4b2b6b; font-weight: 600; }
.gm-town { fill: #fff; stroke: #1a2150; stroke-width: .18em; vector-effect: non-scaling-stroke; }
.gm-cap { fill: #fff; stroke: #c0392b; vector-effect: non-scaling-stroke; stroke-width: 1.6px; }
.gm-peak { fill: #6b3d14; } .gm-volcano { fill: #c0392b; }
.gm-dep { fill: #7d4cc2; stroke: #fff; vector-effect: non-scaling-stroke; stroke-width: 1.2px; }
.gm-mark-pick { fill: #ff8a00; stroke: #fff; }
.gm-mark-answer { fill: #12a367; stroke: #fff; }
.gm-mark-target { fill: #ff5a3c; stroke: #fff; }
.gm-mark-info { fill: #1f5fd6; stroke: #fff; }
.gm-mark-ruler { fill: #1a2150; stroke: #fff; }
.gm-pulse { fill: none; stroke: #ff5a3c; stroke-opacity: .55; animation: gm-pulse 1.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes gm-pulse { from { transform: scale(.55); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .gm-pulse { animation: none; } }
.gm-link { fill: none; } .gm-link-answer { stroke: #12a367; } .gm-link-ruler { stroke: #1a2150; }
.gm-mark-text { fill: #1a2150; font-weight: 700; }
.gm-zoom { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 6px; }
.gm-zoom button { width: 38px; height: 38px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .94); color: #1a2150; font: 700 19px/1 Ubuntu, sans-serif; box-shadow: 0 2px 10px rgba(20, 28, 79, .18); cursor: pointer; }
.gm-zoom button:hover { background: #fff; color: #0b6e64; } .gm-zoom button:focus-visible { outline: 3px solid #397edf; outline-offset: 2px; }
.gm-scale { position: absolute; left: 12px; bottom: 10px; display: flex; flex-direction: column; gap: 3px; padding: 6px 9px; border-radius: 10px; background: rgba(255, 255, 255, .85); font: 600 11px Ubuntu, sans-serif; color: #1a2150; pointer-events: none; }
.gm-scale i { display: block; height: 6px; border: 2px solid #1a2150; border-top: 0; background: linear-gradient(90deg, #1a2150 50%, #fff 50%); background-size: 50% 100%; }
.gm-coord { position: absolute; right: 12px; bottom: 10px; padding: 5px 9px; border-radius: 10px; background: rgba(255, 255, 255, .85); font: 600 11.5px Ubuntu, sans-serif; color: #1a2150; pointer-events: none; }
.gm-coord:empty { display: none; }
.gm-status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; background: rgba(232, 242, 248, .8); font-weight: 600; color: #1a2150; }
.gm-status[hidden] { display: none; }
@media (max-width: 640px) { .gm-zoom button { width: 34px; height: 34px; } .gm-coord { display: none; } }

/* Задание на карте внутри тренажёра. */
.mt { display: grid; gap: 10px; }
.mt-map { height: clamp(300px, 58vh, 520px); }
.mt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14.5px; color: #4a5378; }
.mt-bar b { color: #1a2150; }
.mt-tip { margin: 0; padding: 9px 13px; border-radius: 12px; background: #eef4ff; color: #23408f; font-size: 14.5px; }
.mt-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.mt-result { margin: 0; padding: 10px 14px; border-radius: 12px; font-weight: 600; }
.mt-result.ok { background: #e5f7ef; color: #0b6b47; } .mt-result.bad { background: #fdece9; color: #a33; }

/* Страница атласа. */
.atl { display: grid; gap: 16px; }
.atl-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.atl-head h2 { margin: 0; font-size: clamp(24px, 4vw, 34px); }
.atl-head p { margin: 6px 0 0; color: #4a5378; max-width: 640px; }
.atl-views { display: flex; flex-wrap: wrap; gap: 6px; }
.atl-views button, .atl-chip { padding: 8px 13px; border: 1px solid #cfdbe8; border-radius: 999px; background: #fff; color: #1a2150; font: 600 13.5px Ubuntu, sans-serif; cursor: pointer; }
.atl-views button[aria-pressed=true] { background: #0b6e64; border-color: #0b6e64; color: #fff; }
.atl-layers { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.atl-chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.atl-chip input { margin: 0; accent-color: #0b6e64; }
.atl-chip:has(input:checked) { background: #e6f6f2; border-color: #9fd3c6; }
.atl-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.atl-map { height: clamp(420px, 70vh, 760px); }
.atl-side { display: grid; gap: 12px; }
.atl-card { padding: 18px; border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(20, 28, 79, .05), 0 8px 24px rgba(20, 28, 79, .08); }
.atl-card h3 { margin: 0 0 8px; font-size: 18px; }
.atl-card p { margin: 6px 0; font-size: 15px; line-height: 1.5; }
.atl-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: #eef2f8; }
.atl-tabs button { flex: 1; padding: 9px 6px; border: 0; border-radius: 10px; background: transparent; font: 600 13.5px Ubuntu, sans-serif; color: #4a5378; cursor: pointer; }
.atl-tabs button[aria-selected=true] { background: #fff; color: #0b6e64; box-shadow: 0 1px 4px rgba(20, 28, 79, .12); }
.atl-search { width: 100%; padding: 11px 14px; border: 1px solid #cfdbe8; border-radius: 12px; font: inherit; }
.atl-kind { display: inline-block; padding: 3px 9px; border-radius: 999px; background: #e6f6f2; color: #0b6e64; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.atl-coord { font: 600 14px Ubuntu, sans-serif; color: #23408f; }
.atl-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.atl-field { display: grid; gap: 5px; margin: 10px 0; font-size: 14px; font-weight: 600; color: #1a2150; }
.atl-field select, .atl-field input { padding: 9px 11px; border: 1px solid #cfdbe8; border-radius: 10px; font: inherit; font-weight: 400; }
.atl-code { display: block; width: 100%; min-height: 72px; padding: 10px 12px; border: 1px solid #cfdbe8; border-radius: 10px; background: #f7f9fe; font: 13px/1.45 ui-monospace, Menlo, monospace; color: #1a2150; white-space: pre-wrap; word-break: break-word; }
.atl-preview { padding: 14px; border: 1px dashed #b9c8de; border-radius: 14px; background: #fbfcff; }
.atl-preview .mt-map { height: 300px; }
.atl-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 13px; color: #4a5378; }
.atl-legend span { display: flex; align-items: center; gap: 7px; }
.atl-legend i { flex: none; width: 18px; height: 10px; border-radius: 3px; }
.atl-score { font: 700 28px Ubuntu, sans-serif; color: #0b6e64; }
.atl-list { margin: 8px 0 0; padding-left: 20px; font-size: 14px; }
@media (max-width: 980px) { .atl-body { grid-template-columns: 1fr; } .atl-map { height: 62vh; } }
.exp-geomap { height: clamp(380px, 60vh, 620px); border-radius: 0; }
.exp-geomap[hidden] { display: none; }

/* ---------- Схематический стиль: понятная учебная карта ---------- */
.gm { background: linear-gradient(180deg, #eaf5fb, #dcedf6); }
.gm-halo path { fill: none; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.gm-halo .gm-h1 { stroke: #b6e0f6; stroke-width: 26px; opacity: .55; }
.gm-halo .gm-h2 { stroke: #c4e7f8; stroke-width: 14px; opacity: .85; }
.gm-halo .gm-h3 { stroke: #d9f1fb; stroke-width: 6px; }
.gm-style-scheme .gm-countries path { stroke: #d7c39a; stroke-width: .9px; stroke-opacity: 1; stroke-dasharray: 3 2; }
.gm-style-scheme .gm-countries path.gm-ru { stroke: #c9883b; stroke-width: 1.6px; stroke-dasharray: none; }
.gm-style-scheme .gm-countries path:hover { fill: #fff3d6; }
.gm-style-scheme .gm-countries path.gm-ru:hover { fill: #ffe7bd; }
.gm-style-scheme .gm-lakes path { fill: #8fcdf0; stroke: #4aa0d8; stroke-width: .8px; }
.gm-style-scheme .gm-rivers path { stroke: #3c93d8; stroke-width: 1.5px; stroke-opacity: .95; }
.gm-bigriver { fill: none; stroke: #2f8ad4; stroke-width: 2.6px; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.gm-ridge-1 { fill: none; stroke: #c59a63; stroke-width: 22px; stroke-opacity: .16; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.gm-ridge-2 { fill: none; stroke: #b07b45; stroke-width: 9px; stroke-opacity: .22; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.gm-chev { fill: none; stroke: #8a5523; stroke-width: 1.7px; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.gm-desert { opacity: .75; }
.gm-style-scheme .gm-grid path { stroke: #3d7fb0; stroke-opacity: .22; }
.gm-style-scheme .gm-grid path.gm-main { stroke-opacity: .5; }
.gm-style-scheme .gm-l-city { font-weight: 700; }
.gm-style-scheme .gm-l-ocean { fill: #2d6fa8; letter-spacing: .22em; }
.gm-style-scheme .gm-l-relief { fill: #7a4517; letter-spacing: .06em; font-weight: 700; }
.gm-route { fill: none; stroke: #ff7a1a; stroke-width: 3px; stroke-dasharray: 8 6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.gm-route-ok { stroke: #12a367; stroke-dasharray: none; }
.gm-num { font-weight: 700; font-family: Ubuntu, sans-serif; fill: #fff; pointer-events: none; }
.gm-letter { fill: #1a2150; stroke: #fff; vector-effect: non-scaling-stroke; stroke-width: 2px; cursor: pointer; }
.gm-letter.on { fill: #ff7a1a; }
.gm-letter.ok { fill: #12a367; } .gm-letter.bad { fill: #d64533; }
.gm-shape-route { stroke: #ff7a1a; stroke-width: 3px; stroke-dasharray: 8 6; }
.gm-shape-routeok { stroke: #12a367; stroke-width: 4px; }
.mt-inputs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mt-inputs input { width: 110px; padding: 9px 11px; border: 1px solid #cfdbe8; border-radius: 10px; font: inherit; }
.mt-inputs select { padding: 9px; border: 1px solid #cfdbe8; border-radius: 10px; font: inherit; }
.mt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mt-chips .opt.on { background: #fff1e3; border-color: #ff7a1a; }
.gm-econ-g { fill: #fff; font-weight: 700; font-family: system-ui, sans-serif; pointer-events: none; }
.gm-l-econ { fill: #3b2a14; font-weight: 600; }

/* ---------- Карточка объекта при приближении ---------- */
.atl-map { position: relative; }
.atl-spot { position: absolute; left: 14px; top: 14px; max-height: calc(100% - 28px); width: min(340px, calc(100% - 80px)); overflow-y: auto; z-index: 3; padding: 0 0 16px; border-radius: 20px; background: rgba(255, 255, 255, .96); box-shadow: 0 18px 50px rgba(20, 28, 79, .28), 0 2px 6px rgba(20, 28, 79, .12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transform: translateX(-24px) scale(.97); pointer-events: none; transition: opacity .35s ease, transform .45s cubic-bezier(.2, .9, .3, 1.2); }
.atl-spot.on { opacity: 1; transform: none; pointer-events: auto; }
.atl-spot-x { position: absolute; right: 10px; top: 10px; z-index: 2; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .25); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.atl-spot-head { display: flex; gap: 12px; align-items: center; padding: 22px 18px 18px; border-radius: 20px 20px 0 0; color: #fff; background: radial-gradient(400px 160px at 100% 0, rgba(92, 193, 250, .55), transparent 70%), linear-gradient(125deg, #141c4f, #0b6e64); }
.atl-spot-ico { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: rgba(255, 255, 255, .16); font-size: 28px; }
.atl-spot.on .atl-spot-ico { animation: atl-pop .6s cubic-bezier(.2, .9, .3, 1.4) both; }
.atl-spot-kind { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.atl-spot-head h3 { margin: 3px 0 0; font-size: 23px; line-height: 1.15; color: #fff; }
.atl-spot-lead { margin: 14px 18px 4px; font-size: 15px; line-height: 1.5; color: #23304f; }
.atl-spot-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; margin: 12px 18px 4px; }
.atl-spot-stats div { padding: 10px 11px; border-radius: 14px; background: #eef6f4; }
.atl-spot-stats small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #5d7a73; }
.atl-spot-stats b { display: block; margin-top: 2px; font-size: 16.5px; color: #0b4f47; }
.atl-spot-facts { margin: 12px 18px 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.atl-spot-facts li { position: relative; padding: 9px 12px 9px 34px; border-radius: 12px; background: #f6f8fd; font-size: 14px; line-height: 1.45; color: #23304f; }
.atl-spot-facts li::before { content: '✦'; position: absolute; left: 12px; top: 9px; color: #ff9a3c; }
.atl-spot.on .atl-spot-stats div, .atl-spot.on .atl-spot-facts li, .atl-spot.on .atl-spot-lead { animation: atl-rise .5s ease both; animation-delay: calc(var(--d, 0) * 90ms + 120ms); }
.atl-spot-sub { margin: 14px 18px 6px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #6d7693; }
.atl-spot-near { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 18px; }
.atl-spot-near button, .atl-spot-near a { padding: 6px 10px; border: 1px solid #d9e3f0; border-radius: 999px; background: #fff; color: #1a2150; font: 600 13px Ubuntu, sans-serif; text-decoration: none; cursor: pointer; }
.atl-spot-near button:hover, .atl-spot-near a:hover { border-color: #0b6e64; color: #0b6e64; }
.atl-spot-coord { margin: 12px 18px 0; font: 600 12.5px Ubuntu, sans-serif; color: #23408f; }
@keyframes atl-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes atl-pop { from { transform: scale(.4) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .atl-spot, .atl-spot * { animation: none !important; transition: none !important; } }
.atl-trips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13.5px; color: #4a5378; }
.atl-trips > span { font-weight: 700; margin-right: 2px; }
.atl-trip { padding: 7px 12px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #fff3e3, #ffe6c9); color: #7a4200; font: 600 13px Ubuntu, sans-serif; cursor: pointer; box-shadow: inset 0 0 0 1px #f6d2a6; transition: transform .15s; }
.atl-trip:hover { transform: translateY(-1px); }
.atl-style button[aria-pressed=true] { background: #141c4f; border-color: #141c4f; }
@media (max-width: 640px) { .atl-spot { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; max-height: 55%; transform: translateY(30px); } .atl-spot.on { transform: none; } }
.gm-urban { fill: #f2a65a; fill-opacity: .28; stroke: #e08a3c; stroke-opacity: .45; stroke-width: 1px; vector-effect: non-scaling-stroke; pointer-events: none; }
.gm-view-world.gm-style-scheme .gm-rivers path { stroke-width: .7px; stroke-opacity: .7; }
.gm-view-world .gm-halo .gm-h1 { stroke-width: 14px; } .gm-view-world .gm-halo .gm-h2 { stroke-width: 8px; }

/* ---------- Красота и плавность ---------- */
.gm-svg { will-change: transform; transform-origin: 0 0; backface-visibility: hidden; }
.gm { box-shadow: 0 1px 2px rgba(20, 28, 79, .06), 0 14px 40px rgba(20, 60, 100, .16); background: #cfe8f6; }
/* Рамка, как на листе атласа, и мягкое затемнение краёв. */
.gm::after { content: ''; position: absolute; inset: 8px; border: 1.5px solid rgba(26, 33, 80, .18); border-radius: 12px; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .55), inset 0 0 60px rgba(20, 60, 100, .12); pointer-events: none; z-index: 1; }
.gm-zoom, .gm-scale, .gm-coord, .gm-status { z-index: 2; }
.gm-zoom button { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform .15s, background .15s; }
.gm-zoom button:active { transform: scale(.92); }
.gm-shade { pointer-events: none; }
.gm-style-scheme .gm-countries path { stroke: #c9b088; stroke-width: .8px; stroke-dasharray: none; stroke-opacity: .75; transition: fill .25s; }
.gm-style-scheme .gm-countries path.gm-ru { stroke: #b8742c; stroke-width: 1.8px; stroke-opacity: .9; }
.gm-style-scheme .gm-countries path:hover { fill: #fff6df; }
.gm-halo .gm-h1 { stroke: #a9d9f3; stroke-width: 30px; opacity: .45; }
.gm-halo .gm-h2 { stroke: #c1e5f7; stroke-width: 16px; opacity: .8; }
.gm-halo .gm-h3 { stroke: #e2f4fc; stroke-width: 5px; }
.gm-ridge-1, .gm-ridge-2 { display: none; }
.gm-chev { stroke: #7b4a1d; stroke-width: 1.5px; opacity: .8; }
.gm-l-water, .gm-l-sea { font-family: Georgia, 'PT Serif', 'Times New Roman', serif; fill: #1d5a92; letter-spacing: .02em; }
.gm-l-ocean { font-family: Georgia, 'PT Serif', 'Times New Roman', serif; font-style: italic; fill: #245f97; letter-spacing: .32em; text-transform: uppercase; font-weight: 400; stroke: rgba(205, 232, 248, .7); }
.gm-l-relief { font-family: Georgia, 'PT Serif', serif; font-style: italic; fill: #6b3a12; letter-spacing: .12em; text-transform: uppercase; font-weight: 400; }
.gm-l-land { font-family: Georgia, 'PT Serif', serif; fill: #4a4232; }
.gm-l-city { fill: #141a40; font-weight: 700; stroke-width: .32em; }
.gm-town { fill: #fff; stroke: #141a40; stroke-width: 1.6px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
.gm-cap { fill: #fff; stroke: #c0392b; stroke-width: 2px; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .3)); }
.gm-country-name { font-family: Georgia, 'PT Serif', serif; fill: #6b5a40; letter-spacing: .16em; font-weight: 400; }
.gm-deg { fill: #3a6b93; font-size-adjust: none; }
.gm-urban { fill: #f0a35e; fill-opacity: .22; stroke: #e2873a; stroke-opacity: .35; }

/* ---------- Новые виды заданий: подписи, роза ветров ---------- */
.mt-match { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.mt-match label { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 6px; border: 1px solid #dbe4ef; border-radius: 12px; background: #fff; transition: border-color .2s, background .2s, transform .2s; }
.mt-match label.on { border-color: #ffb27a; background: #fff8f1; }
.mt-match label.ok { border-color: #34b37a; background: #ecfaf2; }
.mt-match label.bad { border-color: #e5484d; background: #fff0f0; animation: mt-shake .35s; }
.mt-match b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #1a2150; color: #fff; font-size: 14px; flex: none; }
.mt-match select { flex: 1; min-width: 0; padding: 7px 8px; border: 0; background: transparent; font: inherit; color: #1a2150; }
.mt-rose { display: grid; grid-template-columns: repeat(3, 58px); grid-template-rows: repeat(3, 46px); gap: 6px; justify-content: start; }
.mt-rose .opt { padding: 0; font-weight: 700; letter-spacing: .02em; }
.mt-rose .opt.on { background: #1a2150; color: #fff; border-color: #1a2150; transform: scale(1.06); }
.mt-rose-c { display: grid; place-items: center; color: #ff7a1a; font-size: 22px; }
.mt-inputs input[type=time] { width: 140px; }
@keyframes mt-shake { 0%, 100% { transform: none } 25% { transform: translateX(-4px) } 75% { transform: translateX(4px) } }
.mt-rose .opt::before, .mt-chips .opt::before { content: none; display: none; }
.mt-rose .opt { justify-content: center; min-height: 0; }

/* ---------- Плавность: слой не обрезается при сдвиге, подписи гаснут на время увеличения ---------- */
.gm-svg { overflow: visible; }
.gm-labels { transition: opacity .28s ease; }
.gm-svg.gm-zooming .gm-labels { opacity: 0; transition-duration: .1s; }
.gm-relief image, .gm-shade image { transition: opacity .4s ease; }
.gm-relief image.gm-fresh, .gm-shade image.gm-fresh { opacity: 0; }

/* ---------- Линейка масштаба ---------- */
.gm-ruler { --z: 0; position: relative; align-self: center; width: 14px; height: 110px; margin: 2px 0; border-radius: 10px; background: rgba(255, 255, 255, .78); box-shadow: inset 0 0 0 1px rgba(26, 33, 80, .12), 0 2px 10px rgba(20, 28, 79, .14); cursor: ns-resize; touch-action: none; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.gm-ruler:focus-visible { outline: 3px solid #397edf; outline-offset: 2px; }
.gm-ruler-fill { position: absolute; left: 4px; right: 4px; bottom: 4px; height: calc((100% - 8px) * var(--z)); border-radius: 6px; background: linear-gradient(0deg, #0b6e64, #31b39b); }
.gm-ruler-thumb { position: absolute; left: 50%; bottom: calc(4px + (100% - 8px) * var(--z)); width: 22px; height: 22px; margin: 0 0 -11px -11px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(20, 28, 79, .3), inset 0 0 0 4px #0b6e64; }
.gm-zoom button.on { background: #0b6e64; color: #fff; }
@media (max-width: 640px) { .gm-ruler { height: 70px; } }

/* ---------- Название уровня при смене масштаба ---------- */
.gm-level { position: absolute; left: 50%; top: 18px; z-index: 3; padding: 7px 18px; border-radius: 999px; background: rgba(20, 33, 80, .78); color: #fff; font: 700 15px/1.2 Ubuntu, sans-serif; letter-spacing: .08em; text-transform: uppercase; pointer-events: none; opacity: 0; transform: translate(-50%, -10px) scale(.9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.gm-level.on { animation: gm-level 1.1s cubic-bezier(.2, .9, .3, 1.2) forwards; }
@keyframes gm-level { 0% { opacity: 0; transform: translate(-50%, -10px) scale(.9) } 18% { opacity: 1; transform: translate(-50%, 0) scale(1.04) } 30% { transform: translate(-50%, 0) scale(1) } 78% { opacity: 1 } 100% { opacity: 0; transform: translate(-50%, 4px) scale(.98) } }

/* ---------- Нырок двойным щелчком ---------- */
.gm-dive { position: absolute; z-index: 2; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .95); box-shadow: 0 0 0 2px rgba(11, 110, 100, .55), 0 0 30px rgba(49, 179, 155, .6); pointer-events: none; animation: gm-dive .65s ease-out forwards; }
@keyframes gm-dive { from { transform: scale(.4); opacity: 1 } to { transform: scale(7); opacity: 0 } }

/* ---------- Лупа ---------- */
.gm-lens { position: absolute; left: 0; top: 0; z-index: 3; width: 190px; height: 190px; margin: -95px 0 0 -95px; border-radius: 50%; overflow: hidden; pointer-events: none; background: #cfe8f6; box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(11, 110, 100, .55), 0 18px 40px rgba(20, 40, 80, .35); will-change: transform; }
.gm-lens-svg { display: block; width: 100%; height: 100%; }
.gm-lens span { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); max-width: 84%; padding: 2px 10px; border-radius: 999px; background: rgba(20, 33, 80, .78); color: #fff; font: 600 12px/1.4 Ubuntu, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-lens span:empty { display: none; }
.gm-lens::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px; border: 2px solid rgba(26, 33, 80, .55); border-radius: 50%; }
.gm-lens-on .gm-svg { cursor: none; }
@media (prefers-reduced-motion: reduce) { .gm-level.on, .gm-dive { animation: none; } }
.gm-mon circle { fill: #b23a48; stroke: #fff; stroke-width: 1.6px; vector-effect: non-scaling-stroke; filter: drop-shadow(0 1px 2px rgba(60, 10, 20, .35)); }
.gm-mon path { fill: #fff; stroke: #fff; stroke-width: 1.1px; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.mt-pano .mt-pano-view { margin-bottom: 12px; }
.mt-pano .mt-map { margin-top: 12px; }

/* ================= Атлас: новый облик ================= */
.atl-v2 { gap: 14px; }
.atl-hero { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 26px 28px; border-radius: 26px; overflow: hidden; color: #fff;
  background: radial-gradient(600px 260px at 100% 0, rgba(77, 201, 176, .45), transparent 70%), radial-gradient(500px 300px at 0 120%, rgba(66, 120, 230, .45), transparent 70%), linear-gradient(135deg, #0d1640, #0b3d4f 60%, #0b6e64);
  box-shadow: 0 20px 50px rgba(13, 30, 70, .25); }
.atl-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .18; background-image: radial-gradient(rgba(255, 255, 255, .7) 1px, transparent 1.2px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); }
.atl-hero .overline { color: #9fe3d3; }
.atl-hero h2 { margin: 6px 0 0; font-size: clamp(26px, 4vw, 40px); color: #fff; line-height: 1.1; }
.atl-hero p { margin: 10px 0 0; max-width: 620px; color: rgba(255, 255, 255, .82); font-size: 15.5px; line-height: 1.5; }
.atl-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, auto); gap: 10px; }
.atl-stats div { min-width: 92px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: atl-rise .6s both; }
.atl-stats div:nth-child(2) { animation-delay: .08s; } .atl-stats div:nth-child(3) { animation-delay: .16s; } .atl-stats div:nth-child(4) { animation-delay: .24s; }
.atl-stats b { display: block; font-size: 24px; line-height: 1.1; }
.atl-stats span { font-size: 12px; opacity: .8; }
@media (max-width: 760px) { .atl-hero { padding: 20px; } .atl-stats { grid-template-columns: repeat(2, 1fr); width: 100%; } }

.atl-toolbar { position: sticky; top: 8px; z-index: 6; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 8px; border-radius: 18px; background: rgba(255, 255, 255, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 2px rgba(20, 28, 79, .06), 0 10px 30px rgba(20, 28, 79, .1); }
.atl-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 14px; background: #eef2f8; }
.atl-seg button { padding: 8px 12px; border: 0; border-radius: 11px; background: transparent; color: #3b4570; font: 600 13.5px Ubuntu, sans-serif; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.atl-seg button:hover { color: #0b6e64; }
.atl-seg button[aria-pressed=true] { background: #fff; color: #0b6e64; border-color: transparent; box-shadow: 0 1px 4px rgba(20, 28, 79, .16); }
.atl-seg.atl-style button[aria-pressed=true] { background: #141c4f; color: #fff; }
.atl-layers-pop { position: relative; margin-left: auto; }
.atl-layers-pop summary { list-style: none; padding: 9px 14px; border-radius: 12px; background: #141c4f; color: #fff; font: 600 13.5px Ubuntu, sans-serif; cursor: pointer; user-select: none; }
.atl-layers-pop summary::-webkit-details-marker { display: none; }
.atl-layers-pop[open] summary { background: #0b6e64; }
.atl-layers-pop .atl-layers { position: absolute; right: 0; top: calc(100% + 8px); z-index: 7; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: min(420px, 86vw); padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 18px 50px rgba(20, 28, 79, .22); animation: atl-rise .25s both; }
.atl-layers-pop .atl-chip { border-radius: 12px; }
@media (max-width: 760px) { .atl-toolbar { position: static; } .atl-layers-pop { margin-left: 0; } .atl-layers-pop .atl-layers { left: 0; right: auto; } }

.atl-v2 .atl-map { height: clamp(460px, 74vh, 820px); border-radius: 24px; }
.atl-v2 .gm { border-radius: 24px; }
.atl-searchbox { position: absolute; left: 14px; top: 14px; z-index: 4; display: flex; align-items: center; gap: 8px; width: min(380px, calc(100% - 90px)); padding: 4px 6px 4px 14px; border-radius: 16px; background: rgba(255, 255, 255, .94); box-shadow: 0 6px 24px rgba(20, 40, 80, .18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: box-shadow .2s; }
.atl-searchbox:focus-within { box-shadow: 0 0 0 3px rgba(11, 110, 100, .35), 0 10px 30px rgba(20, 40, 80, .22); }
.atl-searchbox span { color: #0b6e64; font-size: 20px; }
.atl-searchbox .atl-search { border: 0; padding: 10px 6px; background: transparent; outline: none; }
.atl-v2 .atl-spot { top: 70px; max-height: calc(100% - 84px); }
.atl-v2 .atl-side { position: sticky; top: 76px; }
.atl-v2 .atl-card { border-radius: 22px; }
.atl-empty { display: grid; justify-items: center; gap: 2px; padding: 18px 6px; text-align: center; }
.atl-empty i { font-style: normal; font-size: 40px; animation: atl-float 3s ease-in-out infinite; }
@keyframes atl-float { 50% { transform: translateY(-6px) rotate(8deg); } }

.atl-shelf h3 { margin: 6px 4px 10px; font-size: 18px; }
.atl-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 12px; overflow-x: auto; padding: 4px 4px 12px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.atl-tile { position: relative; display: grid; align-content: start; gap: 4px; min-height: 118px; padding: 14px; border: 0; border-radius: 20px; text-align: left; color: #1a2150; cursor: pointer; scroll-snap-align: start; background: linear-gradient(160deg, #fff, #f1f6fb); box-shadow: inset 0 0 0 1px #dfe7f1, 0 6px 18px rgba(20, 28, 79, .06); transition: transform .25s cubic-bezier(.2, .9, .3, 1.3), box-shadow .25s; }
.atl-tile:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px #b8dcd3, 0 16px 34px rgba(11, 110, 100, .18); }
.atl-tile:focus-visible { outline: 3px solid #397edf; outline-offset: 2px; }
.atl-tile i { font-style: normal; font-size: 30px; line-height: 1.1; }
.atl-tile b { font-size: 15px; line-height: 1.25; }
.atl-tile small { color: #5b6688; font-size: 12.5px; line-height: 1.3; }
.atl-tile-dive { color: #fff; background: linear-gradient(160deg, #13204f, #0b5e5f); box-shadow: 0 8px 22px rgba(13, 30, 70, .22); }
.atl-tile-dive small { color: rgba(255, 255, 255, .72); }
.atl-tile-dive em { position: absolute; right: 12px; top: 12px; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .16); font: 700 11px Ubuntu, sans-serif; font-style: normal; }
.atl-tile-dive:hover { box-shadow: 0 18px 38px rgba(11, 94, 95, .4); }

/* Карта: мягче рамка, стеклянные кнопки. */
.gm-zoom button { border-radius: 14px; }
.gm-scale, .gm-coord { border-radius: 10px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.atl-v2 { grid-template-columns: minmax(0, 1fr); }
.atl-v2 > *, .atl-shelf, .atl-rail { min-width: 0; }
@media (max-width: 760px) {
  .atl-toolbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .atl-toolbar::-webkit-scrollbar { display: none; }
  .atl-seg { flex-wrap: nowrap; flex: none; }
  .atl-seg button { white-space: nowrap; }
  .atl-layers-pop { flex: none; position: static; }
  .atl-layers-pop .atl-layers { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; grid-template-columns: 1fr; }
}
.mt-opts, .mt-chips { counter-reset: opt; }
