/* ASMAN Atlas — картографический стиль: светлая «бумага карты», горизонтали, моноширинные подписи, оранжевая метка */
:root {
  --paper: #ECEEE6; --paper-2: #E2E5DA; --card: #F6F7F2; --ink: #1F2A24; --ink-2: #44514A; --muted: #6E7A72;
  --green: #2F5D46; --green-2: #3E7A5C; --mark: #E4572E; --line: rgba(31, 42, 36, .16); --line-2: rgba(31, 42, 36, .38);
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1280px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; background-attachment: fixed; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, transparent 30%, var(--paper) 80%); pointer-events: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, select { font: inherit; color: inherit; }
.mono { font-family: var(--mono); }
h1, h2, h3 { font-weight: 700; letter-spacing: -.02em; line-height: 1.08; margin: 0; }
h1 em, h2 em { font-style: normal; color: var(--green); text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 3px; text-underline-offset: 8px; }
h2 { font-size: clamp(30px, 3.8vw, 50px); }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--mark); outline-offset: 3px; }
.label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mark); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.label::before { content: ""; width: 10px; height: 10px; border: 2px solid var(--mark); border-radius: 50%; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; background: var(--ink); color: var(--paper); border: 1.5px solid var(--ink); font: 600 13px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: var(--green); border-color: var(--green); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }

/* шапка */
.top { position: sticky; top: 0; z-index: 20; background: rgba(236, 238, 230, .9); backdrop-filter: blur(10px); border-bottom: 1.5px solid var(--ink); }
.top-in { display: flex; align-items: center; gap: 22px; height: 60px; }
.logo { font: 500 17px/1 var(--mono); letter-spacing: .08em; text-decoration: none; }
.logo b { font-weight: 600; }
.coords { font-size: 12px; color: var(--muted); }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--mark); }
.switch { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.seg { display: inline-flex; border: 1.5px solid var(--ink); }
.seg a, .seg button { border: 0; background: none; padding: 5px 9px; cursor: pointer; font-weight: 600; text-decoration: none; }
.seg [aria-current="true"] { background: var(--ink); color: var(--paper); }
.switch select { border: 1.5px solid var(--ink); background: transparent; padding: 4px 6px; font: 600 12px var(--mono); cursor: pointer; }

/* первый экран */
.hero { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 56px); padding: clamp(40px, 6vw, 80px) 0; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.2vw, 72px); }
.lead { color: var(--ink-2); font-size: 18px; max-width: 48ch; margin: 22px 0 28px; }
.legend { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 30px; border: 1.5px solid var(--ink); background: var(--card); }
.legend div { padding: 12px 14px; }
.legend div + div { border-left: 1px solid var(--line-2); }
.legend dt { font-size: 26px; font-weight: 600; color: var(--green); }
.legend dd { margin: 4px 0 0; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); line-height: 1.3; }
.map { margin: 0; }
.map-frame { position: relative; border: 1.5px solid var(--ink); background: var(--card); box-shadow: 8px 8px 0 var(--ink); }
.map svg { display: block; width: 100%; height: auto; font-family: var(--mono); }
.map figcaption { font-size: 12px; color: var(--muted); margin-top: 14px; }
.sea { fill: #F3F4EE; }
.contour { fill: none; stroke: var(--green-2); stroke-opacity: .22; stroke-width: 1; }
.grat { stroke: var(--ink); stroke-opacity: .08; stroke-dasharray: 2 4; }
.grat-l { font-size: 14px; fill: var(--muted); }
.route { cursor: pointer; }
.route-hit { fill: none; stroke: transparent; stroke-width: 16; }
.route-line { fill: none; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 7 5; transition: stroke-width .2s; }
.r0 .route-line { stroke: var(--mark); } .r1 .route-line { stroke: var(--green); } .r2 .route-line { stroke: #2B5C8A; } .r3 .route-line { stroke: #8A5A2B; }
.route:hover .route-line, .route:focus .route-line { stroke-width: 5; stroke-dasharray: none; }
.stop { fill: var(--card); stroke: var(--ink); stroke-width: 2; }
.route:hover .stop { fill: var(--mark); }
.town { font-size: 16px; fill: var(--ink-2); paint-order: stroke; stroke: var(--card); stroke-width: 4px; }
.compass circle { fill: var(--card); stroke: var(--ink); }
.compass path { fill: var(--mark); }
.compass text, .scale text { font-size: 15px; fill: var(--ink); text-anchor: middle; }
.scale rect { fill: var(--ink); }
.scale rect.w { fill: var(--card); stroke: var(--ink); }
.scale text { text-anchor: start; }
.map-tip { position: absolute; z-index: 3; width: 220px; background: var(--ink); color: var(--paper); padding: 10px 12px; font-size: 12px; pointer-events: none; display: grid; gap: 4px; }
.map-tip b { font-family: var(--sans); font-size: 14px; }

/* каталог */
.tours { padding: clamp(56px, 7vw, 96px) 0; border-top: 1.5px solid var(--ink); background: rgba(246, 247, 242, .6); }
.sec-head { margin-bottom: 28px; }
.found { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.filters { display: grid; gap: 14px; padding: 18px; border: 1.5px solid var(--ink); background: var(--card); margin-bottom: 28px; }
.fgroup { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.fgroup > span { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); min-width: 110px; }
.segs { display: flex; flex-wrap: wrap; border: 1.5px solid var(--ink); }
.segs button { border: 0; border-right: 1px solid var(--line-2); background: transparent; padding: 7px 12px; font-size: 14px; cursor: pointer; }
.segs button:last-child { border-right: 0; }
.segs button:hover { background: var(--paper-2); }
.segs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.fsel { display: flex; flex-wrap: wrap; gap: 14px 30px; }
.fsel select { border: 1.5px solid var(--ink); background: transparent; padding: 6px 8px; font: 500 14px var(--sans); cursor: pointer; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); transition: opacity .2s; }
.grid.dim { opacity: .45; }
.card { border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); background: var(--card); display: flex; flex-direction: column; transition: background .2s; }
.card:hover { background: #fff; }
.card-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1.5px solid var(--ink); }
.card-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85) contrast(1.05); transition: filter .5s, transform .6s; }
.card:hover .card-img img { filter: none; transform: scale(1.03); }
.code { position: absolute; top: 10px; left: 10px; background: var(--paper); border: 1.5px solid var(--ink); padding: 3px 8px; font-size: 12px; font-weight: 600; }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-where { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.hl { color: var(--mark); }
.card h3 { font-size: 21px; line-height: 1.2; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--green); }
.data { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border: 1px solid var(--line-2); }
.data div { padding: 8px; }
.data div + div { border-left: 1px solid var(--line-2); }
.data dt { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.data dd { margin: 2px 0 0; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pf { display: grid; gap: 4px; }
.pf span { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.profile { width: 100%; height: 48px; display: block; }
.pf-area { fill: var(--green); fill-opacity: .12; }
.pf-line { fill: none; stroke: var(--green); stroke-width: 1.8; vector-effect: non-scaling-stroke; }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.price { margin: 0; }
.price span { font-size: 12px; color: var(--muted); }
.price b { font-size: 22px; }
.price s { color: var(--muted); font-size: 13px; }
.go { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; color: var(--mark); white-space: nowrap; }
.go:hover { text-decoration: underline; }
.state { text-align: center; padding: 44px 0; color: var(--ink-2); }
.state p { margin: 0 0 16px; }
.more { text-align: center; margin-top: 30px; }

/* указатель */
.index { padding: clamp(56px, 7vw, 96px) 0; }
.table { border: 1.5px solid var(--ink); background: var(--card); }
.tr { all: unset; display: grid; grid-template-columns: 60px 1.2fr 2fr 110px 140px; gap: 14px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line-2); cursor: pointer; box-sizing: border-box; width: 100%; transition: background .15s; }
.tr:last-child { border-bottom: 0; }
.tr:not(.th):hover { background: #fff; }
.tr:not(.th):hover b { color: var(--mark); }
.tr:focus-visible { outline: 2px solid var(--mark); outline-offset: -2px; }
.th { cursor: default; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); background: var(--paper-2); padding-block: 10px; }
.tr b { font-size: 19px; }
.tr span { color: var(--ink-2); }

/* статьи: карточки */
.articles { padding: 0 0 clamp(56px, 7vw, 96px); }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); }
.acard { display: flex; flex-direction: column; gap: 8px; padding: 0 0 20px; background: var(--card); border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); text-decoration: none; transition: background .2s; }
.acard:hover { background: #fff; }
.acard-img { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1.5px solid var(--ink); margin-bottom: 8px; }
.acard-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85); transition: filter .5s; }
.acard:hover .acard-img img { filter: none; }
.acard-cat, .acard-title, .acard-desc, .acard-meta { padding: 0 18px; }
.acard-cat { font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mark); }
.acard-title { font-size: 20px; font-weight: 700; line-height: 1.2; }
.acard:hover .acard-title { color: var(--green); }
.acard-desc { font-size: 15px; color: var(--ink-2); }
.acard-meta { font: 12px var(--mono); color: var(--muted); }

/* страница статьи */
.art-wrap { width: min(780px, 100% - 32px); margin: 0 auto; padding: clamp(40px, 6vw, 72px) 0 40px; }
.art-crumbs { display: flex; gap: 8px; font: 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 22px; }
.art-crumbs a { text-decoration: none; color: var(--ink); }
.art-crumbs a:hover { color: var(--mark); }
.art-cat { font: 600 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mark); margin: 0 0 14px; }
.art h1 { font-size: clamp(32px, 4.6vw, 54px); margin-bottom: 16px; }
.art-meta { font: 13px var(--mono); color: var(--muted); margin: 0 0 26px; padding-bottom: 18px; border-bottom: 1.5px solid var(--ink); }
.art-cover { margin: 0 0 34px; border: 1.5px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.art-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.art-body { font-size: 18px; line-height: 1.75; color: var(--ink-2); }
.art-body .art-lead { font-size: 21px; color: var(--ink); }
.art-body h2 { font-size: clamp(24px, 2.8vw, 32px); color: var(--ink); margin: 42px 0 12px; }
.art-body ul { list-style: none; padding: 0; border: 1px solid var(--line-2); background: var(--card); }
.art-body li { padding: 10px 14px 10px 40px; position: relative; border-bottom: 1px solid var(--line-2); margin: 0; }
.art-body li:last-child { border-bottom: 0; }
.art-body li::before { content: ""; position: absolute; left: 14px; top: 1.05em; width: 10px; height: 10px; border: 2px solid var(--mark); border-radius: 50%; }
.art-body blockquote { margin: 34px 0; padding: 22px 26px; border: 1.5px solid var(--ink); background: var(--card); }
.art-body blockquote p { margin: 0; font-size: 20px; color: var(--ink); font-weight: 500; }
.art-sec { width: min(var(--wrap), 100% - 32px); margin: 0 auto; padding: 52px 0; border-top: 1.5px solid var(--ink); }
.art-sec h2 { margin-bottom: 24px; }
.art-all { margin-top: 26px; }
.art-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; background: var(--ink); color: var(--paper); font: 600 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; }
.art-btn:hover { background: var(--green); }

/* заметки */
.notes { padding: clamp(56px, 7vw, 96px) 0; border-top: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); }
.notes h2 { color: var(--paper); }
.notes .label { color: #F08A68; }
.notes .label::before { border-color: #F08A68; }
.notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.note { margin: 0; border: 1px solid rgba(236, 238, 230, .25); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.note-n { color: #F08A68; font-size: 12px; }
.note blockquote { margin: 0; font-size: 17px; line-height: 1.6; flex: 1; }
.note figcaption { font-size: 12px; color: rgba(236, 238, 230, .65); line-height: 1.6; }
.note a { color: #9FD3B5; }

/* финал */
.final { padding: clamp(64px, 9vw, 120px) 0; text-align: center; }
.final .label { justify-content: center; }
.final h2 { font-size: clamp(34px, 5vw, 64px); max-width: 18ch; margin: 0 auto; }
.final p { color: var(--ink-2); max-width: 52ch; margin: 20px auto 28px; }
.final-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* подвал */
.foot { border-top: 1.5px solid var(--ink); padding: 36px 0; font-size: 13px; color: var(--ink-2); background: var(--paper-2); }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 14px 40px; }
.foot p { margin: 10px 0 0; }
.contacts { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: flex-end; }
.contacts a { text-decoration: none; }
.contacts a:hover { color: var(--mark); }
.copy { grid-column: 1 / -1; border-top: 1px solid var(--line-2); padding-top: 12px; font-size: 11px; color: var(--muted); }

/* адаптив */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; }
  .grid, .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .notes-grid { grid-template-columns: 1fr; }
  .coords { display: none; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .switch { margin-left: auto; }
  .legend { grid-template-columns: repeat(2, 1fr); }
  .legend div:nth-child(3) { border-left: 0; }
  .legend div:nth-child(n+3) { border-top: 1px solid var(--line-2); }
  .grid, .articles-grid { grid-template-columns: 1fr; }
  .fgroup > span { min-width: 0; width: 100%; }
  .tr { grid-template-columns: 34px 1fr auto; }
  .tr > :nth-child(3), .tr > :nth-child(4) { display: none; }
  .map-frame { box-shadow: 4px 4px 0 var(--ink); }
  .foot-in { grid-template-columns: 1fr; }
  .contacts { justify-content: flex-start; }
}

/* логотип */
.logo { display: inline-flex; align-items: center; gap: 9px; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; }
.logo .mark { width: 26px; height: 26px; flex: none; }
