/* abso.travel — тёплая бумага и глубокое море, бирюза лагуны — цвет проекта; цвета
   доступности мест: зелёный (легко) → синий → янтарь → оранжевый → фиолетовый
   (экспедиция). Шрифты группы (Unbounded, Onest; Be Vietnam Pro для вьетнамского)
   и пин группы. Светлая и тёмная тема — по настройке устройства. */

@font-face { font-family: 'Unbounded'; font-weight: 700; font-display: swap; src: url('fonts/unbounded-cyrillic-700-normal.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-weight: 700; font-display: swap; src: url('fonts/unbounded-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2190-2199; }
@font-face { font-family: 'Unbounded'; font-weight: 700; font-display: swap; src: url('fonts/unbounded-vietnamese-700-normal.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Unbounded'; font-weight: 800; font-display: swap; src: url('fonts/unbounded-cyrillic-800-normal.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-weight: 800; font-display: swap; src: url('fonts/unbounded-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2190-2199; }
@font-face { font-family: 'Unbounded'; font-weight: 800; font-display: swap; src: url('fonts/unbounded-vietnamese-800-normal.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Onest'; font-weight: 400; font-display: swap; src: url('fonts/onest-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-weight: 400; font-display: swap; src: url('fonts/onest-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+20BD, U+2122, U+2190-2199, U+2212; }
@font-face { font-family: 'Onest'; font-weight: 500; font-display: swap; src: url('fonts/onest-cyrillic-500-normal.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-weight: 500; font-display: swap; src: url('fonts/onest-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+20BD, U+2122, U+2190-2199, U+2212; }
@font-face { font-family: 'Onest'; font-weight: 600; font-display: swap; src: url('fonts/onest-cyrillic-600-normal.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-weight: 600; font-display: swap; src: url('fonts/onest-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+20BD, U+2122, U+2190-2199, U+2212; }
@font-face { font-family: 'Be Vietnam Pro'; font-weight: 400; font-display: swap; src: url('fonts/be-vietnam-pro-vietnamese-400-normal.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-weight: 400; font-display: swap; src: url('fonts/be-vietnam-pro-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2190-2199; }
@font-face { font-family: 'Be Vietnam Pro'; font-weight: 500; font-display: swap; src: url('fonts/be-vietnam-pro-vietnamese-500-normal.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-weight: 500; font-display: swap; src: url('fonts/be-vietnam-pro-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2190-2199; }
@font-face { font-family: 'Be Vietnam Pro'; font-weight: 600; font-display: swap; src: url('fonts/be-vietnam-pro-vietnamese-600-normal.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-weight: 600; font-display: swap; src: url('fonts/be-vietnam-pro-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2190-2199; }

:root {
  color-scheme: light dark;
  --paper: #F6F3EC;
  --paper-2: #ECE6D9;
  --card: #FFFDF8;
  --field: #FFFFFF;
  --ink: #0F1D26;
  --ink-2: #344652;
  --muted: #66747E;
  --line: rgba(15, 29, 38, 0.1);
  --line-strong: rgba(15, 29, 38, 0.22);
  --chip: rgba(15, 29, 38, 0.06);
  --accent: #19C3B1;
  --accent-hover: #3DD5C4;
  --accent-ink: #03211E;
  --accent-text: #0A7A70;
  --warn: #C9661A;
  --land: #DED6C4;
  --sea: #EFEADF;
  --a1: #1FA971;
  --a2: #1D9BD1;
  --a3: #E0A21B;
  --a4: #E4632A;
  --a5: #8E4BD8;
  --dark: #0B161D;
  --on-dark: #E9EEF0;
  --on-dark-2: #9AABB5;
  --pin: #0F1D26;
  --pin-sign: #19C3B1;
  --radius: 18px;
  --shadow: 0 18px 50px -24px rgba(15, 29, 38, 0.38);
  --text: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Unbounded', 'Onest', sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0B161D;
    --paper-2: #0F1D26;
    --card: #13232D;
    --field: #0F1D26;
    --ink: #E9EEF0;
    --ink-2: #C3CED4;
    --muted: #8A9AA4;
    --line: rgba(233, 238, 240, 0.1);
    --line-strong: rgba(233, 238, 240, 0.22);
    --chip: rgba(233, 238, 240, 0.07);
    --accent-text: #4FE0CF;
    --warn: #F0954A;
    --land: #223641;
    --sea: #0F1D26;
    --pin: #E9EEF0;
    --shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.6);
  }
}
html[lang='vi'] { --text: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-text); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.25rem); }
h3 { font-size: 1.08rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.narrow { max-width: 860px; }
.eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.9em; }
.eyebrow a { color: inherit; }
.lead { font-size: clamp(1.04rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 46em; }
.muted { color: var(--muted); }
.note { font-size: 0.86rem; color: var(--muted); max-width: 64em; }
.note .gl { display: inline-block; vertical-align: -3px; }
.mark { background: var(--accent); color: var(--accent-ink); padding: 0 0.16em; border-radius: 0.14em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.arr { display: inline-block; transition: transform 0.2s; }
a:hover .arr, button:hover .arr { transform: translateX(3px); }
.gl { width: 1.15em; height: 1.15em; flex: none; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.74rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--chip); color: var(--ink-2); white-space: nowrap; }
.tag-accent { background: var(--accent); color: var(--accent-ink); }

/* ------------------------------------------------------------ шапка */

.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 18px; height: 66px; max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.brand { text-decoration: none; display: inline-flex; color: var(--ink); }
.wordmark { display: inline-flex; align-items: flex-end; font: 800 1.38rem/1 'Unbounded', sans-serif; letter-spacing: -0.04em; transform: skewX(-10deg); white-space: nowrap; }
.wm-pin { width: 0.72em; height: 1em; margin: 0 0.01em -0.08em; }
.wm-tail { position: relative; display: inline-grid; }
.wm-tail > span { grid-area: 1 / 1; }
.wm-b { opacity: 0; transform: translateY(0.4em); }
@media (prefers-reduced-motion: no-preference) {
  .top .wm-a { animation: wm-a 12s 3s infinite; }
  .top .wm-b { animation: wm-b 12s 3s infinite; }
}
@keyframes wm-a { 0%, 78% { opacity: 1; transform: none; } 82%, 94% { opacity: 0; transform: translateY(-0.4em); } 100% { opacity: 1; transform: none; } }
@keyframes wm-b { 0%, 78% { opacity: 0; transform: translateY(0.4em); } 82%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(0.4em); } }
.nav { display: flex; gap: 2px; margin-left: 8px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 99px; font-weight: 500; font-size: 0.94rem; color: var(--ink-2); white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { background: var(--chip); color: var(--ink); }
.top-act { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.langs { display: flex; gap: 2px; padding: 3px; border-radius: 99px; background: var(--chip); }
.langs a { text-decoration: none; font-size: 0.78rem; font-weight: 700; padding: 5px 9px; border-radius: 99px; color: var(--ink-2); }
.langs a[aria-current] { background: var(--ink); color: var(--paper); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: var(--chip); border-radius: 50%; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); transition: transform 0.2s; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded='true'] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded='true'] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.drawer { border-top: 1px solid var(--line); padding: 12px clamp(16px, 4vw, 40px) 22px; background: var(--paper); max-height: calc(100vh - 66px); overflow: auto; }
.drawer nav { display: grid; gap: 2px; }
.drawer nav a { text-decoration: none; font: 700 1.1rem/1.2 var(--display); padding: 12px 0; border-bottom: 1px solid var(--line); }
.drawer-langs { display: flex; gap: 8px; margin: 16px 0 0; }
.drawer-langs a { text-decoration: none; font-weight: 700; padding: 8px 14px; border-radius: 99px; background: var(--chip); }
.drawer-langs a[aria-current] { background: var(--ink); color: var(--paper); }
@media (max-width: 1080px) { .nav { display: none; } .burger { display: inline-block; } }
@media (max-width: 560px) { .top-act .btn-sm span, .top-act .langs { display: none; } .top-act .btn-sm { padding: 6px 12px; } .wordmark { font-size: 1.2rem; } }
.offline-bar { background: var(--ink); color: var(--paper); text-align: center; font-size: 0.86rem; padding: 6px 12px; }

/* ------------------------------------------------------------ кнопки, поля */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px; border-radius: 99px; border: 1.5px solid transparent; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; transition: transform 0.15s, background 0.2s, border-color 0.2s, color 0.2s; white-space: nowrap; background: none; }
.btn:active { transform: scale(0.98); }
.btn-sm { min-height: 38px; padding: 6px 16px; font-size: 0.92rem; }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 1.04rem; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-2); color: var(--paper); }
.btn-ghost { color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
select, input[type='number'], input[type='text'], input[type='search'], input[type='date'], textarea { background: var(--field); border: 1px solid var(--line-strong); border-radius: 12px; padding: 9px 12px; min-height: 42px; max-width: 100%; color: var(--ink); }
textarea { width: 100%; resize: vertical; }
select:focus, input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.check { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 0.92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }

/* ------------------------------------------------------------ секции, карточки */

.sec { padding: clamp(48px, 7vw, 88px) 0; }
.sec-head { margin-bottom: clamp(22px, 4vw, 38px); }
.sec-head .lead { margin-bottom: 0; }
.sec-alt { background: var(--paper-2); }
.sec-tight { padding-top: 0; }
.page-head { padding: clamp(36px, 6vw, 80px) 0 clamp(18px, 3vw, 30px); }
.page-head h1 { max-width: 18em; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 980px) { .grid3, .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid2, .grid3, .grid4 { grid-template-columns: minmax(0, 1fr); } }
.card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); text-decoration: none; min-width: 0; }
.card h3 { margin: 2px 0 0; font-size: 1.1rem; }
.card p { color: var(--ink-2); margin: 0; }
.card-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--chip); color: var(--accent-text); }
.card-ic .gl { width: 22px; height: 22px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 22px; color: var(--ink-2); }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.callout { display: flex; gap: 14px; padding: 18px 20px; border-radius: 14px; background: var(--chip); border-left: 3px solid var(--accent); }
.callout p { margin: 0; color: var(--ink-2); }
.callout .gl { margin-top: 3px; color: var(--accent-text); }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.prose { max-width: 46em; }
.prose p { color: var(--ink-2); }
.steps { counter-reset: st; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step { counter-increment: st; padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.step::before { content: counter(st, decimal-leading-zero); display: block; font: 800 0.9rem/1 var(--display); color: var(--accent-text); margin-bottom: 14px; }
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--ink-2); font-size: 0.96rem; }

/* ------------------------------------------------------------ главная */

.hero { padding: clamp(32px, 5vw, 64px) 0 clamp(26px, 4vw, 44px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr); gap: clamp(20px, 3vw, 44px); align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.7rem); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0 0; color: var(--muted); font-size: 0.92rem; }
.hero-stats b { display: block; font: 800 1.5rem/1.1 var(--display); color: var(--ink); }
.map { margin: 0; }
.map svg { width: 100%; height: auto; border-radius: 20px; background: var(--sea); }
.map .land { fill: var(--land); }
.map .dot circle { stroke: var(--paper); stroke-width: 1.6; transition: r 0.15s; }
.map .dot:hover circle, .map .dot:focus circle { r: 8.5; }
.dot-1 circle, .lg-1 i { fill: var(--a1); background: var(--a1); }
.dot-2 circle, .lg-2 i { fill: var(--a2); background: var(--a2); }
.dot-3 circle, .lg-3 i { fill: var(--a3); background: var(--a3); }
.dot-4 circle, .lg-4 i { fill: var(--a4); background: var(--a4); }
.dot-5 circle, .lg-5 i { fill: var(--a5); background: var(--a5); }
.map-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: 0.8rem; color: var(--muted); }
.map-legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.map-legend i { width: 10px; height: 10px; border-radius: 50%; }
.map-src { margin-left: auto; }
.chips-title { font-weight: 600; margin: 0 0 10px; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 99px; background: var(--card); border: 1px solid var(--line-strong); text-decoration: none; font-weight: 600; font-size: 0.94rem; color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip-sm { padding: 6px 12px; font-size: 0.86rem; background: var(--chip); border-color: transparent; }
.chip[aria-pressed='true'] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip-acc i { width: 9px; height: 9px; border-radius: 50%; background: var(--a1); }
.chip-acc.acc-2 i { background: var(--a2); }
.chip-acc.acc-3 i { background: var(--a3); }
.chip-acc.acc-4 i { background: var(--a4); }
.chip-acc.acc-5 i { background: var(--a5); }
.toc-chips { margin-top: 18px; }
.home-card { position: relative; display: block; border-radius: 22px; overflow: hidden; min-height: 300px; text-decoration: none; color: #fff; background: var(--dark); }
.home-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.home-card:hover img { transform: scale(1.03); }
.home-card-in { position: absolute; inset: auto 0 0 0; display: grid; gap: 6px; padding: 60px 22px 22px; background: linear-gradient(to top, rgba(6, 14, 19, 0.88), transparent); }
.home-card-in b { font: 800 1.5rem/1.15 var(--display); }
.home-card-in span:last-child { color: #DDE6EA; font-size: 0.95rem; }
.home-card .tag { justify-self: start; }
.home-card:hover { color: #fff; }
.scale { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1000px) { .scale { grid-template-columns: minmax(0, 1fr); } }
.scale li { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--a1); }
.scale-2 { border-top-color: var(--a2) !important; }
.scale-3 { border-top-color: var(--a3) !important; }
.scale-4 { border-top-color: var(--a4) !important; }
.scale-5 { border-top-color: var(--a5) !important; }
.scale b { font: 800 1.6rem/1 var(--display); }
.scale h3 { margin: 2px 0 6px; }
.scale p { margin: 0; color: var(--ink-2); font-size: 0.92rem; }

/* ------------------------------------------------------------ карточки мест */

.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pgrid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .pgrid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .pgrid, .pgrid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .pgrid, .pgrid-4 { grid-template-columns: minmax(0, 1fr); } }
.pcard { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); overflow: hidden; min-width: 0; }
.pcard:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.pcard-ph { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--land); overflow: hidden; }
.pcard-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.pcard:hover .pcard-ph img { transform: scale(1.03); }
.ph-none { display: grid; place-items: center; height: 100%; color: var(--muted); }
.ph-none .gl { width: 48px; height: 48px; }
.pcard-top { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: rgba(6, 14, 19, 0.72); color: #fff; font-size: 0.76rem; font-weight: 600; }
.pcard-top .gl { width: 14px; height: 14px; color: #FFD166; }
.pcard-home { top: auto; bottom: 10px; background: var(--accent); color: var(--accent-ink); }
.pcard-home .gl { color: var(--accent-ink); }
.pcard-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 14px; flex: 1; }
.pcard-c { margin: 0; font-size: 0.82rem; color: var(--muted); }
.pcard-c a { color: var(--muted); text-decoration: none; font-weight: 600; }
.pcard-c a:hover { color: var(--accent-text); }
.pcard h3 { margin: 0; font-size: 1.12rem; }
.pcard h3 a { text-decoration: none; }
.pcard-t { margin: 0; color: var(--ink-2); font-size: 0.94rem; }
.pcard-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 2px; }
.pcard-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: auto; padding-top: 6px; }
.pcard-foot .cr { max-width: 70%; }
.acc { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.acc i { width: 9px; height: 9px; border-radius: 50%; background: var(--a1); flex: none; }
.acc-2 i { background: var(--a2); }
.acc-3 i { background: var(--a3); }
.acc-4 i { background: var(--a4); }
.acc-5 i { background: var(--a5); }
.acc small { display: block; font-weight: 400; color: var(--muted); }
.months { display: inline-grid; grid-template-columns: repeat(12, 1fr); gap: 2px; font-size: 0.6rem; font-weight: 700; line-height: 1; }
.months i { font-style: normal; display: grid; place-items: center; width: 14px; height: 16px; border-radius: 4px; background: var(--chip); color: var(--muted); }
.months i.on { background: var(--accent); color: var(--accent-ink); }
.fav { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line-strong); background: none; cursor: pointer; font-size: 0.82rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.fav .gl { width: 15px; height: 15px; }
.fav .fav-on { display: none; }
.fav[aria-pressed='true'] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.fav[aria-pressed='true'] .fav-on { display: inline-flex; align-items: center; gap: 6px; }
.fav[aria-pressed='true'] .fav-off { display: none; }
.fav[aria-pressed='true'] .gl { fill: #FFD166; color: #FFD166; }
.fav span { display: inline-flex; align-items: center; gap: 6px; }
.cr { display: block; font-size: 0.72rem; line-height: 1.35; color: var(--muted); }
.cr a { color: var(--muted); }

/* ------------------------------------------------------------ фильтры */

.filters { display: grid; gap: 12px; margin-top: 22px; padding: 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.f-search { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--field); }
.f-search input { border: 0; outline: 0; flex: 1; min-width: 0; padding: 12px 0; background: none; }
.f-search:focus-within { outline: 2px solid var(--accent); }
.f-row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.f-row label:not(.check) { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--muted); }
.f-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.f-count { margin: 0; font-weight: 600; font-size: 0.92rem; }
.filters button[type='reset'] { justify-self: start; }
.empty { padding: 40px 0; text-align: center; color: var(--muted); }
@media (max-width: 640px) { .f-row label:not(.check) { flex: 1 1 100%; } .f-row select { flex: 1; } }

/* ------------------------------------------------------------ страны */

.region { margin-bottom: clamp(30px, 4vw, 48px); scroll-margin-top: 84px; }
.region h2 { font-size: clamp(1.2rem, 2.2vw, 1.6rem); }
.cgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .cgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 780px) { .cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .cgrid { grid-template-columns: minmax(0, 1fr); } }
.ccard { position: relative; display: block; min-height: 210px; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: #fff; background: var(--dark); }
.ccard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.ccard:hover img { transform: scale(1.04); }
.ccard:hover { color: #fff; }
.ccard-in { position: absolute; inset: auto 0 0 0; display: grid; gap: 6px; padding: 48px 14px 14px; background: linear-gradient(to top, rgba(6, 14, 19, 0.9), rgba(6, 14, 19, 0.2) 75%, transparent); }
.ccard-in b { font: 800 1.15rem/1.15 var(--display); }
.ccard-places { font-size: 0.8rem; color: #D3DDE2; }
.ccard-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.ccard .vb { background: rgba(255, 255, 255, 0.16); color: #fff; }
.vb { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 0.76rem; font-weight: 600; background: var(--chip); color: var(--ink-2); }
.vb .gl { width: 14px; height: 14px; }
.vb-free { background: color-mix(in srgb, var(--a1) 18%, transparent); color: color-mix(in srgb, var(--a1) 75%, var(--ink)); }
.vb-easy { background: color-mix(in srgb, var(--a2) 18%, transparent); color: color-mix(in srgb, var(--a2) 70%, var(--ink)); }
.vb-visa { background: color-mix(in srgb, var(--a4) 16%, transparent); color: color-mix(in srgb, var(--a4) 70%, var(--ink)); }
.vb-warn { background: color-mix(in srgb, var(--warn) 20%, transparent); color: var(--warn); }
.ccard .vb-free, .ccard .vb-easy, .ccard .vb-visa { color: #fff; }
.ccard .vb-warn { background: rgba(240, 149, 74, 0.9); color: #1b0d02; }
.warn-t { color: var(--warn); font-weight: 600; }
.clist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.clist li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; padding: 10px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.clist a { font-weight: 600; text-decoration: none; }

.c-head { position: relative; }
.c-hero { position: relative; height: clamp(240px, 42vw, 460px); overflow: hidden; background: var(--dark); }
.c-hero img { width: 100%; height: 100%; object-fit: cover; }
.c-head-in { position: relative; margin-top: -72px; padding-top: 28px; padding-bottom: 10px; background: var(--paper); border-radius: 24px 24px 0 0; }
.c-head h1 { margin-bottom: 0.3em; }
.c-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; }
.c-hero-cr { margin: 14px 0 0; }
.sec-places { padding-top: clamp(24px, 3vw, 36px); }
.place { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(18px, 3vw, 40px); align-items: start; padding: clamp(22px, 3vw, 36px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.place:first-child { padding-top: 0; }
.place:last-child { border-bottom: 0; }
@media (max-width: 900px) { .place { grid-template-columns: minmax(0, 1fr); } }
.place h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); margin-bottom: 0.4em; }
.place-area { margin: 0 0 6px; font-size: 0.86rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.place-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.place-in > p { color: var(--ink-2); }
.place-facts { display: grid; gap: 10px; margin: 6px 0 12px; }
.place-facts div { padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.place-facts dt { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.84rem; color: var(--accent-text); margin-bottom: 4px; }
.place-facts dd { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.place-foot { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-start; }
.place-foot .srcs { margin-top: 4px; }
.ph { margin: 0; }
.ph img { width: 100%; border-radius: var(--radius); background: var(--land); aspect-ratio: 4 / 3; object-fit: cover; }
.ph figcaption { margin-top: 6px; }
.cblocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .cblocks { grid-template-columns: minmax(0, 1fr); } }
.cblock { padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); min-width: 0; scroll-margin-top: 80px; }
.cblock h3 { display: flex; align-items: center; gap: 10px; font-size: 1.12rem; }
.cblock h3 .gl { color: var(--accent-text); width: 22px; height: 22px; }
.cblock p { color: var(--ink-2); }
.cblock-wide { grid-column: 1 / -1; }
.cblock-warn { border-color: color-mix(in srgb, var(--warn) 50%, transparent); background: color-mix(in srgb, var(--warn) 7%, var(--card)); }
.cblock-warn h3 .gl { color: var(--warn); }
.price-line { font-size: 1.02rem; }
.pn { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.pn a { font-weight: 600; text-decoration: none; }

/* ------------------------------------------------------------ бюджет, таблицы */

.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.tbl th, .tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl thead th { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; background: var(--chip); white-space: nowrap; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl a { font-weight: 600; text-decoration: none; }
.tbl a:hover { text-decoration: underline; }
.tbl .vb { white-space: nowrap; }
.calc { display: grid; gap: 12px; padding: 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); margin: 14px 0; }
.calc label { display: grid; gap: 6px; font-size: 0.86rem; color: var(--muted); }
.calc select, .calc input { width: 100%; }
.calc-out { margin: 0; font: 700 1.1rem/1.35 var(--display); color: var(--ink); }
.calc-big { margin: 0; }
.fees li { color: var(--ink-2); }
.fees a { font-weight: 600; }
.world summary { cursor: pointer; font-weight: 600; margin-bottom: 12px; }
.world .tbl-wrap { max-height: 560px; overflow: auto; }

/* ------------------------------------------------------------ мои поездки */

.plan { display: grid; gap: 14px; max-width: 760px; }
.plan label { display: grid; gap: 6px; font-size: 0.88rem; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checklist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 980px) { .checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .checklist { grid-template-columns: minmax(0, 1fr); } }
.checklist ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checklist .check { align-items: flex-start; }
.checklist .check input { margin-top: 3px; }
.checklist input:checked + * , .checklist label:has(input:checked) { color: var(--muted); text-decoration: line-through; }

/* ------------------------------------------------------------ шутка в тему */

.jokes { max-width: 860px; margin: 0 auto; padding: clamp(20px, 3vw, 30px) clamp(22px, 3vw, 34px); border-radius: calc(var(--radius) + 4px); background: var(--card); border: 1.5px dashed var(--line-strong); }
.jokes-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); }
.jokes-title .gl { width: 20px; height: 20px; }
.joke { font: 500 clamp(1.02rem, 1.7vw, 1.18rem)/1.5 var(--text); margin: 0 0 14px; }
.jokes.cycling .joke { display: none; }
.jokes.cycling .joke.on { display: block; }
@media (prefers-reduced-motion: no-preference) { .jokes.cycling .joke.on { animation: joke-in 0.35s ease; } }
@keyframes joke-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sec-joke { padding: clamp(36px, 5vw, 64px) 0; }

/* ------------------------------------------------------------ вопросы, источники */

.faq { display: grid; max-width: 900px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 44px 18px 0; position: relative; font-weight: 600; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq-x { position: absolute; right: 6px; top: 50%; width: 22px; height: 22px; margin-top: -11px; }
.faq-x::before, .faq-x::after { content: ''; position: absolute; left: 3px; right: 3px; top: 10px; height: 2px; background: currentColor; transition: transform 0.2s; }
.faq-x::after { transform: rotate(90deg); }
.faq details[open] .faq-x::after { transform: none; }
.faq details p { color: var(--ink-2); padding: 0 0 20px; margin: 0; max-width: 46em; }
.srcs { margin-top: 12px; font-size: 0.84rem; color: var(--muted); }
.srcs summary { cursor: pointer; font-weight: 600; }
.srcs ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.srcs a { color: var(--muted); overflow-wrap: anywhere; }
.legal h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.legal h2 { font-size: 1.15rem; margin-top: 1.6em; }
.legal p { color: var(--ink-2); }

/* ------------------------------------------------------------ подвал */

.foot { background: var(--dark); color: var(--on-dark); padding: 60px 0 26px; --pin: var(--on-dark); --pin-sign: var(--accent); }
.foot .brand { color: var(--on-dark); }
.foot-in { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 32px; }
.foot-brand p { color: var(--on-dark-2); font-size: 0.92rem; margin: 18px 0; max-width: 30em; }
.foot-nav, .foot-contacts, .foot-group { display: grid; gap: 10px; align-content: start; font-size: 0.95rem; }
.foot-nav a, .foot-group a, .foot-contacts a { text-decoration: none; color: var(--on-dark); display: flex; align-items: center; gap: 8px; }
.foot-nav a:hover, .foot-group a:hover, .foot-contacts a:hover { color: var(--accent); }
.foot-group > span, .foot-group a span { color: var(--on-dark-2); }
.foot-group > span { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.foot-note { max-width: 1240px; margin: 36px auto 0; padding: 0 clamp(16px, 4vw, 40px); font-size: 0.84rem; color: var(--on-dark-2); }
.foot-base { max-width: 1240px; margin: 18px auto 0; padding: 18px clamp(16px, 4vw, 40px) 0; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 0.84rem; color: var(--on-dark-2); }
.foot-base a { color: var(--on-dark-2); }
@media (max-width: 900px) { .foot-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-in { grid-template-columns: 1fr; } }
.install { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 99px; border: 0; background: var(--ink); color: var(--paper); font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); cursor: pointer; }
.err-page { padding: clamp(60px, 10vw, 140px) 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
