/* ============================================================
   vytegra.ru — основная тема
   Шрифты лежат в assets/fonts (без внешних CDN): Golos Text для текста,
   Source Serif 4 для заголовков, подмножества «кириллица» и «латиница».
   ============================================================ */

@font-face {
    font-family: "Golos Text"; font-style: normal; font-weight: 400 600; font-display: swap;
    src: url("../fonts/golos-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Golos Text"; font-style: normal; font-weight: 400 600; font-display: swap;
    src: url("../fonts/golos-latin.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: "Source Serif 4"; font-style: normal; font-weight: 500 600; font-display: swap;
    src: url("../fonts/source-serif-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Source Serif 4"; font-style: normal; font-weight: 500 600; font-display: swap;
    src: url("../fonts/source-serif-latin.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;
}

:root {
    --brand:      #0f3d47;
    --brand-2:    #2b7f8b;
    --brand-3:    #7ec8cf;
    --accent:     #f2c14e;
    --accent-ink: #6b4c05;
    --ink:        #16232a;
    --muted:      #5f7078;
    --bg:         #fbfcfc;
    --bg-alt:     #f1f6f7;
    --line:       #dde8ea;
    --line-strong:#c7d9dc;
    --ok:         #1f7a4d;
    --err:        #b3261e;

    /* цвета рубрик для обложек без фото */
    --c-water:  #17566a;
    --c-church: #6b4a3a;
    --c-nature: #2f6b52;
    --c-museum: #3b4a78;
    --c-town:   #7a5a2c;

    --radius:     14px;
    --radius-sm:  9px;
    --shadow:     0 1px 2px rgba(15, 61, 71, .05), 0 10px 28px -12px rgba(15, 61, 71, .18);
    --shadow-lg:  0 12px 40px rgba(15, 61, 71, .14);
    --container:  1120px;
    --font:  "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-2); text-decoration: none; }
a:hover { color: var(--brand); text-decoration: underline; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.85rem); }
h3 { font-size: 1.12rem; }
p  { margin: 0 0 1em; text-wrap: pretty; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

ul, ol { margin: 0 0 1em; padding-left: 1.15em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.muted { color: var(--muted); }
.small { font-size: .875rem; }
.num   { text-align: right; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------
   Шапка
   ------------------------------------------------------------ */
.site-header {
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 30;
}

.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-mark { display: block; line-height: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; }

.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
    padding: 8px 14px; border-radius: 999px; color: var(--muted);
    font-size: .95rem; white-space: nowrap; transition: background .2s, color .2s;
}
.main-nav a:hover { background: var(--bg-alt); color: var(--ink); text-decoration: none; }
.main-nav a.is-active { background: var(--bg-alt); color: var(--ink); font-weight: 500; }

.header-search-link {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    color: var(--muted); transition: background .2s, color .2s;
}
.header-search-link:hover { background: var(--bg-alt); color: var(--ink); text-decoration: none; }

.nav-toggle {
    display: none; background: none; border: 0; border-radius: 50%;
    width: 40px; height: 40px; padding: 8px; color: var(--ink); cursor: pointer;
}

.mobile-nav { display: none; flex-direction: column; padding: 8px 20px 18px; gap: 2px; border-top: 1px solid var(--line); }
.mobile-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--ink); }

@media (max-width: 1100px) {
    .header-inner { gap: 16px; }
    .main-nav a { padding: 8px 10px; font-size: .92rem; }
}

@media (max-width: 940px) {
    .main-nav { display: none; }
    .header-search-link { margin-left: auto; }
    .nav-toggle { display: block; }
    .mobile-nav.is-open { display: flex; }
}

/* ------------------------------------------------------------
   Главный экран
   ------------------------------------------------------------ */
.hero {
    background: linear-gradient(160deg, #0f3d47 0%, #16596a 100%);
    color: #eaf5f6;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='28'%3E%3Cpath d='M0 14c20-10 40-10 80 0s60 10 80 0' fill='none' stroke='%237ec8cf' stroke-opacity='.16' stroke-width='1.2'/%3E%3C/svg%3E") 0 0 / 160px 28px repeat;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 70%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 70%);
}
.hero .hero-inner { position: relative; padding-top: 72px; padding-bottom: 64px; }
.hero-kicker { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-3); margin-bottom: 16px; }
.hero-title { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.5rem); max-width: 15em; color: #fff; margin-bottom: 18px; }
.hero-lead { max-width: 34em; font-size: 1.1rem; color: #cfe5e8; margin-bottom: 30px; }

.hero-search {
    display: flex; max-width: 560px; background: #fff; border-radius: 999px; padding: 6px; margin: 0;
    box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5);
}
.hero-search input {
    flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1rem;
    padding: 10px 18px; color: var(--ink);
}
.hero-search input::placeholder { color: #7b8c92; }
.hero-search input:focus-visible { outline: none; }
.hero-search:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.hero-search .btn { padding: 10px 24px; }

.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; padding: 0; margin: 34px 0 0; font-size: .92rem; color: #b9d6da; }
.hero-facts li { display: block; }
.hero-facts strong { font-size: inherit; font-weight: 600; color: #fff; }
.hero-facts strong::after { content: " "; }
.hero-facts span { font-size: inherit; color: inherit; }

/* ------------------------------------------------------------
   Секции и сетки
   ------------------------------------------------------------ */
.section { padding: 72px 0 0; }
.section-inline { margin: 44px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-head h2 { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.section-more { font-size: .95rem; white-space: nowrap; }
.section-more:hover { text-decoration: underline; }

.block-title { font-size: 1.3rem; margin: 0 0 8px; }
.block-note { margin: 0 0 20px; font-size: .88rem; }

.grid { display: grid; gap: 20px; }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* ------------------------------------------------------------
   Карточки
   ------------------------------------------------------------ */
.card {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    overflow: hidden; transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-3px); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-link:hover { text-decoration: none; }
.card-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-alt); }

/* Обложка без фото: цвет рубрики, знак и тонкая волна (см. cover_placeholder()) */
.card-cover-placeholder {
    position: relative; display: grid; place-items: center; overflow: hidden;
    color: rgba(255, 255, 255, .92); background: var(--c, var(--c-water));
}
.card-cover-placeholder::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='22'%3E%3Cpath d='M0 11c15-8 30-8 60 0s45 8 60 0' fill='none' stroke='%23ffffff' stroke-opacity='.10' stroke-width='1.2'/%3E%3C/svg%3E") 0 0 / 120px 22px repeat;
    -webkit-mask-image: linear-gradient(135deg, transparent 30%, #000);
    mask-image: linear-gradient(135deg, transparent 30%, #000);
}
.card-cover-placeholder svg {
    position: relative; z-index: 1; width: 42px; height: 42px; fill: none;
    stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.t-water  { --c: var(--c-water); }
.t-church { --c: var(--c-church); }
.t-nature { --c: var(--c-nature); }
.t-museum { --c: var(--c-museum); }
.t-town   { --c: var(--c-town); }

.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-kicker { font-size: .78rem; letter-spacing: .02em; color: var(--muted); }
.card-title { font-size: 1.15rem; margin: 0; }
.card-text { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }
.card-date { font-size: .82rem; color: var(--muted); }
.card-price { font-size: .88rem; font-weight: 600; color: var(--accent-ink); }
.card-facts { list-style: none; padding: 0; margin: 4px 0 0; font-size: .88rem; }
.card-facts li { margin-bottom: 2px; }

/* Главная: одна крупная карточка и обычные */
.places-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.places-grid .card { grid-column: span 2; }
.places-grid .card:first-child { grid-column: span 4; }
.places-grid .card:first-child .card-link { flex-direction: row; }
.places-grid .card:first-child .card-cover { aspect-ratio: auto; flex: 0 0 46%; width: 46%; height: auto; }
.places-grid .card:first-child .card-cover-placeholder svg { width: 56px; height: 56px; }
.places-grid .card:first-child .card-body { justify-content: center; padding: 28px 32px; }
.places-grid .card:first-child .card-title { font-size: 1.6rem; }
@media (max-width: 900px) {
    .places-grid { grid-template-columns: 1fr 1fr; }
    .places-grid .card { grid-column: span 1; }
    .places-grid .card:first-child { grid-column: span 2; }
}
@media (max-width: 600px) {
    .places-grid { grid-template-columns: 1fr; }
    .places-grid .card, .places-grid .card:first-child { grid-column: span 1; }
    .places-grid .card:first-child .card-link { flex-direction: column; }
    .places-grid .card:first-child .card-cover { flex: none; width: 100%; aspect-ratio: 16 / 9; }
    .places-grid .card:first-child .card-body { padding: 20px; }
}

/* Главная: маршруты строками */
.route-rows { display: grid; gap: 14px; }
.route-row {
    display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center;
    background: var(--bg-alt); border-radius: var(--radius); padding: 18px 22px;
    color: inherit; text-decoration: none; transition: background .2s;
}
.route-row:hover { background: color-mix(in srgb, var(--bg-alt) 70%, var(--brand-3) 30%); text-decoration: none; }
.route-row-n { font-family: var(--serif); font-size: 1.8rem; font-weight: 600; color: var(--brand-2); min-width: 1.4ch; }
.route-row h3 { font-size: 1.1rem; margin: 0 0 .15em; }
.route-row p { margin: 0; font-size: .92rem; color: var(--muted); }
.route-row-meta { font-size: .88rem; color: var(--muted); text-align: right; white-space: nowrap; }
@media (max-width: 620px) { .route-row { grid-template-columns: auto 1fr; } .route-row-meta { grid-column: 2; text-align: left; } }

/* Главная: одна крупная статья и список */
.reading { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.reading-lead { color: inherit; text-decoration: none; display: block; }
.reading-lead:hover { text-decoration: none; }
.reading-lead .card-cover { aspect-ratio: 16 / 9; max-height: 300px; border-radius: var(--radius); margin-bottom: 18px; }
.reading-lead h3 { font-size: 1.6rem; }
.reading-lead p { color: var(--muted); }
.reading-list { list-style: none; margin: 0; padding: 0; }
.reading-list li { border-top: 1px solid var(--line); }
.reading-list li:last-child { border-bottom: 1px solid var(--line); }
.reading-list a { display: block; padding: 18px 4px; color: inherit; text-decoration: none; transition: padding-left .2s; }
.reading-list a:hover { padding-left: 10px; }
.reading-list h3 { font-size: 1.1rem; margin: 0 0 .25em; }
.reading-list span { font-size: .88rem; color: var(--muted); }
@media (max-width: 820px) { .reading { grid-template-columns: 1fr; gap: 24px; } }

/* ------------------------------------------------------------
   Чипы рубрик
   ------------------------------------------------------------ */
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.chip-link {
    padding: 8px 15px; border: 1px solid var(--line-strong); border-radius: 999px;
    color: var(--ink); font-size: .9rem; background: #fff;
}
.chip-link:hover { border-color: var(--brand-2); color: var(--brand); text-decoration: none; }
.chip-link.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ------------------------------------------------------------
   Заголовки страниц, хлебные крошки
   ------------------------------------------------------------ */
.breadcrumbs { padding: 22px 0 4px; font-size: .86rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--line-strong); }
.breadcrumbs span[aria-current] { color: var(--ink); }

.page-head { margin: 12px 0 30px; }
.page-lead { color: var(--muted); max-width: 720px; font-size: 1.03rem; }
.result-count { margin: -10px 0 20px; font-size: .9rem; }
.empty { padding: 34px; background: var(--bg-alt); border-radius: var(--radius); color: var(--muted); }

/* ------------------------------------------------------------
   Материал (объект, статья, маршрут)
   ------------------------------------------------------------ */
.entry { margin-bottom: 20px; }
.entry-cover { margin: 0 0 28px; }
.entry-cover img { display: block; width: 100%; border-radius: var(--radius); }
.entry-cover figcaption { margin-top: 8px; font-size: .875rem; color: var(--muted); }

.entry-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; }
@media (max-width: 900px) { .entry-layout { grid-template-columns: 1fr; gap: 26px; } }

.entry-body { min-width: 0; }

.prose { font-size: 1.03rem; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { margin-top: 1.9em; font-size: 1.42rem; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose blockquote {
    margin: 1.5em 0; padding: 14px 20px; border-left: 3px solid var(--brand-3);
    background: var(--bg-alt); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: #35474e;
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.prose th { background: var(--bg-alt); }
.prose-wide { max-width: 820px; }

.entry-aside { position: sticky; top: 92px; }
@media (max-width: 900px) { .entry-aside { position: static; } }

.fact-box { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.fact-title { font-size: 1.08rem; margin: 0 0 14px; }
.facts { margin: 0; }
.facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 12px; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 3px 0 0; font-size: .96rem; }
.fact-note { margin: 16px 0 0; font-size: .83rem; }

.entry-nav { display: flex; gap: 16px; margin: 40px 0 10px; }
.entry-nav a {
    flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 16px 18px;
    border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none;
}
.entry-nav a:hover { border-color: var(--brand-3); text-decoration: none; box-shadow: var(--shadow); }
.entry-nav span { font-size: .8rem; }
.entry-nav-next { text-align: right; }

/* Точки маршрута */

/* ------------------------------------------------------------
   Партнёрские предложения
   ------------------------------------------------------------ */
.offers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }

.offers-block {
    margin: 46px 0; padding: 26px; border-radius: var(--radius);
    background: linear-gradient(160deg, #eef6f7, #f8fbfb); border: 1px solid var(--line);
}
.offers-block .offers-grid { margin-top: 4px; }

.offer {
    position: relative; display: flex; flex-direction: column; gap: 14px;
    padding: 20px; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius);
}
.offer-badge {
    position: absolute; top: -10px; left: 18px; background: var(--accent); color: var(--accent-ink);
    font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.offer-body { flex: 1; }
.offer-partner { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-2); margin: 0 0 6px; font-weight: 600; }
.offer-title { font-size: 1.06rem; margin: 0 0 8px; }
.offer-title a { color: inherit; text-decoration: none; }
.offer-title a:hover { color: var(--brand-2); text-decoration: underline; }

/* Промокод: код и кнопка «скопировать» */
.promo-row {
    margin: 10px 0 0; padding: 9px 11px; border: 1px dashed var(--brand-3);
    border-radius: var(--radius-sm); background: var(--bg-alt);
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.promo-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.promo-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .98rem; font-weight: 700; color: var(--brand);
    background: #fff; border: 1px solid var(--line-strong); border-radius: 6px;
    padding: 3px 9px; letter-spacing: .04em; word-break: break-all;
}
.promo-code-large { font-size: 1.25rem; padding: 7px 14px; display: inline-block; margin: 6px 0 10px; }
.promo-copy {
    margin-left: auto; font: inherit; font-size: .84rem; font-weight: 600;
    color: var(--brand); background: #fff; border: 1px solid var(--line-strong);
    border-radius: 6px; padding: 5px 11px; cursor: pointer;
}
.promo-copy:hover { border-color: var(--brand-2); color: var(--brand-2); }
.promo-copy.is-copied { border-color: var(--ok); color: var(--ok); }
.promo-box {
    margin: 16px 0 0; padding: 16px; border: 1px dashed var(--brand-3);
    border-radius: var(--radius); background: var(--bg-alt);
}
.promo-box .promo-copy { margin-left: 0; }
.promo-hint { display: block; margin-top: 10px; }
/* Срок проведения акции: до окончания — заметно, после — приглушённо */
.promo-period { margin: 8px 0 0; font-size: .88rem; font-weight: 600; color: var(--brand); }
.promo-period.is-over { color: var(--muted); font-weight: 500; }
.offer-text { margin: 0; color: var(--muted); font-size: .93rem; }
.offer-price { margin: 10px 0 0; }
.offer-price strong { font-size: 1.12rem; }
.offer-price span { font-size: .85rem; }
.offer-cta { align-self: flex-start; }

.offer-detail-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; align-items: start; }
@media (max-width: 800px) { .offer-detail-body { grid-template-columns: 1fr; } }
.offer-detail-cta { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.offer-detail-cta .offer-price { margin-top: 0; }

.disclaimer-box { background: var(--bg-alt); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.disclaimer-box h2 { font-size: 1.15rem; }

/* ------------------------------------------------------------
   Кнопки и формы
   ------------------------------------------------------------ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
    font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; text-decoration: none;
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #0b2f37; color: #fff; }
.btn-ghost { background: #fff; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand-2); color: var(--brand); }
.btn-danger { background: #fff; border-color: #e6b4b0; color: var(--err); }
.btn-danger:hover { background: #fdf2f1; }
.btn-large { padding: 14px 26px; font-size: 1.02rem; }
.btn-small { padding: 7px 14px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.form .field, .field { margin-bottom: 18px; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.field .req { color: var(--err); }
.field input[type="text"],
.field input[type="search"],
.field input[type="email"],
.field input[type="password"],
.field input[type="number"],
.field input[type="datetime-local"],
.field input[type="file"],
.field select,
.field textarea,
.form input[type="text"],
.form input[type="search"],
.form input[type="email"],
.form input[type="password"],
.form select,
.form textarea {
    width: 100%; padding: 11px 14px; font: inherit; font-size: .96rem;
    border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; color: var(--ink);
}
.field textarea, .form textarea { resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus,
.form input:focus, .form select:focus, .form textarea:focus {
    outline: 2px solid var(--brand-3); outline-offset: 1px; border-color: var(--brand-3);
}
.field-hint { display: block; margin-top: 6px; color: var(--muted); font-size: .83rem; }
.checkbox-label { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: .93rem; }
.checkbox-label input { width: auto; margin: 0; }
.field-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.field-row input[type="file"] { width: auto; }
.field-preview { margin-top: 10px; max-width: 240px; border-radius: var(--radius-sm); border: 1px solid var(--line); }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-consent { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 18px; font-size: .88rem; line-height: 1.5; color: #35474e; }
.form-consent input { width: auto; margin: 3px 0 0; flex: none; }

.search-form { display: flex; gap: 10px; max-width: 620px; }
.search-form input { flex: 1; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin: 0 0 20px; font-size: .95rem; }
.alert ul { margin: 6px 0 0; }
.alert-success { background: #eaf7f0; color: var(--ok); border: 1px solid #bfe3ce; }
.alert-error   { background: #fdf2f1; color: var(--err); border: 1px solid #eec8c4; }
.alert-warning { background: #fdf6e6; color: #7a5900; border: 1px solid #eddfb6; }

/* ------------------------------------------------------------
   Контакты
   ------------------------------------------------------------ */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: start; }
@media (max-width: 880px) { .contact-layout { grid-template-columns: 1fr; gap: 28px; } }
.contact-list { list-style: none; padding: 0; margin: 22px 0 0; }
.contact-list li { padding: 10px 0; border-top: 1px solid var(--line); display: flex; gap: 12px; }
.contact-list span { min-width: 90px; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.contact-note {
    margin: 18px 0 0; padding: 14px 18px; font-size: .92rem;
    background: var(--bg-alt); border-left: 3px solid var(--brand-3);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: #35474e;
}
.contact-form-title { font-size: 1.2rem; margin: 0 0 16px; }
.contact-form-wrap { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }

/* ------------------------------------------------------------
   Пагинация
   ------------------------------------------------------------ */
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin: 32px 0 10px; }
.pager-link {
    min-width: 40px; padding: 8px 12px; text-align: center; border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm); color: var(--ink); background: #fff; font-size: .92rem;
}
.pager-link:hover { border-color: var(--brand-2); color: var(--brand); text-decoration: none; }
.pager-link.is-current { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pager-gap { padding: 8px 4px; color: var(--muted); }

.link-list { list-style: none; padding: 0; }
.link-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }

.sitemap-list { columns: 2; column-gap: 32px; list-style: none; padding: 0; }
.sitemap-list li { break-inside: avoid; padding: 4px 0; }
@media (max-width: 700px) { .sitemap-list { columns: 1; } }

.cta-inline { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }

/* ------------------------------------------------------------
   Подвал
   ------------------------------------------------------------ */
.site-footer {
    position: relative; margin-top: 96px; color: #c3dde1; font-size: .93rem;
    background: linear-gradient(160deg, #0f3d47 0%, #14505c 100%);
}
.site-footer::after {
    content: ""; position: absolute; inset: 0; opacity: .35; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='28'%3E%3Cpath d='M0 14c20-10 40-10 80 0s60 10 80 0' fill='none' stroke='%237ec8cf' stroke-opacity='.18' stroke-width='1.2'/%3E%3C/svg%3E") 0 0 / 160px 28px repeat;
}
.footer-wave { position: absolute; left: 0; top: -39px; width: 100%; height: 40px; display: block; fill: #0f3d47; pointer-events: none; }
.footer-inner { position: relative; z-index: 1; padding-top: 44px; padding-bottom: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 10px; color: #fff; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.footer-brand:hover { color: #fff; text-decoration: none; }
.footer-tagline { max-width: 22em; margin: 0 0 16px; font-size: .92rem; }
.footer-cta {
    display: inline-block; padding: 9px 18px; border-radius: 999px; background: var(--accent);
    color: #3b2a00; font-weight: 500; font-size: .92rem; transition: filter .2s, transform .15s;
}
.footer-cta:hover { color: #3b2a00; text-decoration: none; filter: brightness(1.05); }
.footer-cta:active { transform: scale(.98); }
.site-footer h3 { margin: 0 0 12px; font: 500 .78rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; font-size: .95rem; }
.site-footer a { color: #c3dde1; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .footer-brand, .site-footer .footer-brand:hover { color: #fff; text-decoration: none; }
.site-footer .footer-cta, .site-footer .footer-cta:hover { color: #3b2a00; text-decoration: none; }
.footer-bottom {
    margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14);
    display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .84rem; color: #8fb6bc;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-bottom a, .footer-legal .link-btn { color: #8fb6bc; }
.footer-bottom a:hover, .footer-legal .link-btn:hover { color: #fff; }
.footer-disclaimer { margin: 10px 0 0; color: #8fb6bc; font-size: .82rem; max-width: 760px; }
@media (max-width: 820px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-about { grid-column: span 2; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-about { grid-column: auto; }
}

/* ------------------------------------------------------------
   Cookie-уведомление
   ------------------------------------------------------------ */
.cookie-notice {
    position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
    width: min(720px, calc(100% - 32px)); z-index: 60;
    display: flex; align-items: center; gap: 16px;
    background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: 16px 20px; font-size: .89rem;
}
.cookie-notice p { margin: 0; color: var(--muted); }
.cookie-notice[hidden] { display: none; }
.cookie-actions { display: flex; gap: 8px; flex: none; }
@media (max-width: 560px) { .cookie-notice { flex-direction: column; align-items: stretch; } .cookie-actions .btn { flex: 1; } }

/* Ссылка-кнопка «Настройки cookie» в подвале */
.link-btn { padding: 0; border: 0; background: none; font: inherit; color: var(--muted); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* Рекламные слоты */
.ad-slot { margin: 26px 0; text-align: center; }
.ad-slot-side { margin-top: 20px; }

/* Страница ошибки */
.error-page { text-align: center; padding: 60px 20px; max-width: 760px; }
.error-code { font-size: 4rem; font-weight: 800; color: var(--line-strong); margin: 0 0 6px; line-height: 1; }
.error-page .cta-inline { justify-content: center; }

/* Страница «сайт в разработке» */
.construction-body { background: var(--bg-alt); }
.construction {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 32px 20px;
}
.construction-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 44px 40px; max-width: 620px; text-align: center;
    box-shadow: 0 10px 30px rgba(15, 61, 71, .07);
}
.construction-mark { font-size: 2.6rem; line-height: 1; margin: 0 0 14px; }
.construction-card h1 { font-size: 1.7rem; margin: 0 0 14px; }
.construction-text { color: var(--muted); margin: 0 0 18px; }
.construction-tagline { color: var(--brand-2); font-weight: 600; margin: 0 0 18px; }
.construction-contact { margin: 22px 0 0; }

/* Пометка автору: сайт закрыт для посетителей */
.dev-banner {
    background: var(--accent); color: var(--accent-ink); font-weight: 600;
    padding: 9px 20px; text-align: center; font-size: .92rem;
}
.dev-banner a { color: inherit; text-decoration: underline; }

/* ------------------------------------------------------------
   Внутренние страницы: статья, маршрут, рубрики статей
   ------------------------------------------------------------ */
.page-hero {
    position: relative; overflow: hidden; color: #eaf5f6;
    background: linear-gradient(160deg, #0f3d47 0%, #16596a 100%);
}
.page-hero::before {
    content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='28'%3E%3Cpath d='M0 14c20-10 40-10 80 0s60 10 80 0' fill='none' stroke='%237ec8cf' stroke-opacity='.16' stroke-width='1.2'/%3E%3C/svg%3E") 0 0 / 160px 28px repeat;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 70%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 70%);
}
.page-hero-inner { position: relative; padding-top: 6px; padding-bottom: 48px; }
.page-hero .breadcrumbs { padding: 18px 0 22px; }
.page-hero .breadcrumbs ol, .page-hero .breadcrumbs a { color: #a8cdd2; }
.page-hero .breadcrumbs a:hover { color: #fff; }
.page-hero .breadcrumbs li:not(:last-child)::after { color: #5f8f97; }
.page-hero .breadcrumbs span[aria-current] { color: #dff0f2; }
.page-hero-kicker {
    display: inline-flex; gap: 8px; align-items: center; margin-bottom: 14px;
    font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-3);
}
.page-hero-kicker:hover { color: #fff; text-decoration: none; }
.page-hero-kicker svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.page-hero h1 { font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.1rem); color: #fff; max-width: 17em; margin-bottom: 16px; }
.page-hero-lead { max-width: 38em; font-size: 1.1rem; color: #cfe5e8; margin: 0 0 6px; }
.page-hero-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 18px 0 0; font-size: .9rem; color: #9fc4c9; }
.page-hero-compact .page-hero-inner { padding-bottom: 40px; }

/* «Паспорт» маршрута: заходит на светлый фон */
.pass {
    display: grid; grid-template-columns: repeat(var(--cols, 5), 1fr); margin: 34px 0 0;
    background: var(--bg); color: var(--ink); border-radius: var(--radius) var(--radius) 0 0;
}
.pass-1 { --cols: 1; } .pass-2 { --cols: 2; } .pass-3 { --cols: 3; } .pass-4 { --cols: 4; }
.pass div { padding: 16px 20px; border-right: 1px solid var(--line); }
.pass div:last-child { border-right: 0; }
.pass dt { font-size: .78rem; color: var(--muted); margin-bottom: 3px; }
.pass dd { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 1.08rem; line-height: 1.3; }
.page-hero-inner:has(.pass) { padding-bottom: 0; }
@media (max-width: 820px) {
    .pass { grid-template-columns: 1fr 1fr; }
    .pass div { border-bottom: 1px solid var(--line); }
    .pass div:nth-child(2n) { border-right: 0; }
    .pass div:last-child { border-bottom: 0; }
    .pass div:nth-child(odd):last-child { grid-column: span 2; }
}

.entry-layout-spaced { padding-top: 48px; gap: 56px; }
.entry-route .entry-layout-spaced { padding-top: 36px; }
.entry-layout-single { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin: 0 auto; }
.entry-article .prose, .entry-route .prose { font-size: 1.05rem; line-height: 1.75; }
.entry-article .prose p, .entry-article .prose li, .entry-route .prose p, .entry-route .prose li { max-width: 42em; }
.entry-article .prose h2, .entry-route .prose h2 { margin-top: 2em; }
.entry-article .prose blockquote, .entry-route .prose blockquote { border-left-color: var(--accent); }
.entry-article .entry-cover img { border-radius: var(--radius); }
@media (max-width: 900px) { .entry-layout-spaced { padding-top: 32px; gap: 32px; } }

.sec-title { font-size: 1.5rem; margin: 0 0 22px; }

/* Путь по точкам маршрута */
.path { list-style: none; margin: 0 0 52px; padding: 0; position: relative; }
.path::before {
    content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px;
    background: repeating-linear-gradient(to bottom, var(--brand-3) 0 6px, transparent 6px 12px);
}
.path li { position: relative; padding-left: 60px; margin-bottom: 14px; }
.path li:last-child { margin-bottom: 0; }
.node {
    position: absolute; left: 0; top: 14px; width: 40px; height: 40px; border-radius: 50%;
    background: var(--brand); color: #fff; display: grid; place-items: center;
    font-family: var(--serif); font-weight: 600; border: 4px solid var(--bg);
}
.path li:first-child .node { background: var(--accent); color: #3b2a00; }
.stop {
    display: flex; gap: 16px; align-items: center; background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 14px 18px 14px 14px; color: inherit; transition: transform .25s;
}
.stop:hover { transform: translateX(4px); text-decoration: none; }
.stop-text { min-width: 0; }
.stop-text strong { display: block; font-family: var(--serif); font-size: 1.1rem; font-weight: 600; line-height: 1.25; }
.stop-text small { display: block; margin-top: 2px; font-size: .92rem; color: var(--muted); }
.stop-go { margin-left: auto; color: var(--brand-2); font-size: 1.4rem; flex: none; }
.thumb { flex: none; width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }
img.thumb { background: var(--bg-alt); }
.thumb.card-cover-placeholder svg { width: 30px; height: 30px; }
@media (max-width: 560px) {
    .path li { padding-left: 52px; }
    .path::before { left: 15px; }
    .node { width: 32px; height: 32px; top: 18px; font-size: .9rem; }
    .thumb { width: 56px; height: 56px; }
}

/* Боковая колонка */
.side-card { background: var(--bg-alt); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 18px; }
.side-card h2 { font-size: 1.05rem; margin: 0 0 12px; }
.check-list { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.check-list li { position: relative; padding: 9px 0 9px 26px; border-top: 1px solid var(--line); }
.check-list li:first-child { border-top: 0; padding-top: 0; }
.check-list li::before {
    content: ""; position: absolute; left: 2px; top: 14px; width: 12px; height: 7px;
    border-left: 2px solid var(--brand-2); border-bottom: 2px solid var(--brand-2); transform: rotate(-45deg) scaleY(.9);
}
.check-list li:first-child::before { top: 5px; }
.side-title { font-size: .85rem; letter-spacing: .02em; color: var(--muted); margin: 0 0 12px; }
.side-note { font-size: .82rem; margin: 12px 0 0; }
.entry-aside { top: 88px; }
.entry-aside .offer { margin-bottom: 14px; }
.entry-aside .offer-badge { position: static; align-self: flex-start; }

/* Списки статей строками */
.filter-chips-top { margin: 28px 0 26px; }
.rows-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; }
.article-row {
    display: flex; gap: 16px; align-items: flex-start; padding: 14px; border-radius: var(--radius);
    color: inherit; background: #fff; box-shadow: var(--shadow); transition: transform .25s;
}
.article-row:hover { transform: translateY(-2px); text-decoration: none; }
.article-row .thumb { width: 96px; height: 96px; }
.article-row .thumb.card-cover-placeholder svg { width: 34px; height: 34px; }
.article-row-text { min-width: 0; }
.article-row-text small { display: block; font-size: .78rem; color: var(--muted); margin-bottom: 2px; }
.article-row-text strong { display: block; font-family: var(--serif); font-size: 1.1rem; font-weight: 600; line-height: 1.25; margin-bottom: 4px; }
.article-row-text span { display: block; font-size: .92rem; color: var(--muted); }
.section-inline .sec-title { margin-top: 0; }
@media (max-width: 820px) { .rows-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .article-row .thumb { width: 72px; height: 72px; } }

/* Соседние маршруты и объекты */
.entry-nav a { background: var(--bg-alt); border: 0; border-radius: var(--radius); }
.entry-nav a:hover { box-shadow: none; background: color-mix(in srgb, var(--bg-alt) 70%, var(--brand-3) 30%); }
.entry-nav strong { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; }

/* ------------------------------------------------------------
   Единый стиль остальных страниц
   ------------------------------------------------------------ */
.page-body { padding-top: 36px; }
.page-hero .search-form { margin-top: 22px; max-width: 560px; background: #fff; border-radius: 999px; padding: 6px; gap: 6px; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5); }
.page-hero .search-form input { border: 0; background: transparent; padding: 10px 18px; color: var(--ink); font: inherit; }
.page-hero .search-form input:focus-visible { outline: none; }
.page-hero .search-form:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.page-hero .btn-primary { background: var(--accent); color: #3b2a00; border-color: transparent; }
.page-hero .btn-primary:hover { background: #e8b53a; color: #3b2a00; }
.page-hero .offer-partner { color: var(--brand-3); }

.fact-box { background: var(--bg-alt); border: 0; border-radius: var(--radius); }
.fact-title { font-size: 1.05rem; }
.offers-block { background: var(--bg-alt); border: 0; border-radius: var(--radius); }
.offer-detail-cta { background: var(--bg-alt); border: 0; }
.entry-place .prose, .entry-page .prose { font-size: 1.05rem; line-height: 1.75; }
.entry-place .prose h2, .entry-page .prose h2 { margin-top: 2em; }
.entry-place .prose blockquote, .entry-page .prose blockquote { border-left-color: var(--accent); }
.entry-cover img { border-radius: var(--radius); }
.empty { background: var(--bg-alt); }
.error-code { font-family: var(--serif); color: var(--brand-3); }
.pager a, .pager span { border-radius: 999px; }

/* ------------------------------------------------------------
   Погода
   ------------------------------------------------------------ */
.wx-icon { width: 44px; height: 44px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--brand-2); }
.wx-now { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; padding: 28px 32px; margin-bottom: 44px; background: var(--bg-alt); border-radius: var(--radius); }
.wx-now-main { display: flex; align-items: center; gap: 22px; }
.wx-now-main .wx-icon { width: 76px; height: 76px; }
.wx-temp { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 3.6rem; line-height: 1; letter-spacing: -.02em; }
.wx-temp span { font-size: 1.4rem; margin-left: 2px; color: var(--muted); }
.wx-label { margin: 6px 0 0; font-size: 1.1rem; color: var(--muted); }
.wx-facts { display: grid; grid-template-columns: repeat(2, minmax(0, auto)); gap: 14px 40px; margin: 0; }
.wx-facts dt { font-size: .8rem; color: var(--muted); }
.wx-facts dd { margin: 2px 0 0; font-weight: 500; }
.wx-days { list-style: none; margin: 0 0 14px; padding: 0; }
.wx-days li { display: grid; grid-template-columns: 9rem 44px minmax(0, 1fr) 7rem minmax(0, 12rem); align-items: center; gap: 14px; padding: 14px 4px; border-top: 1px solid var(--line); }
.wx-days li:last-child { border-bottom: 1px solid var(--line); }
.wx-day-name strong { display: block; font-family: var(--serif); font-size: 1.05rem; font-weight: 600; }
.wx-day-name small { color: var(--muted); font-size: .85rem; }
.wx-day-temp strong { font-size: 1.15rem; }
.wx-day-temp small { color: var(--muted); font-size: .95rem; margin-left: 4px; }
.wx-day-extra { font-size: .88rem; color: var(--muted); }
.wx-source { font-size: .85rem; max-width: 52em; }
.wx-table-wrap { overflow-x: auto; margin-bottom: 14px; }
.wx-table { width: 100%; max-width: 640px; border-collapse: collapse; font-size: .95rem; }
.wx-table th, .wx-table td { padding: 9px 14px; text-align: right; border-bottom: 1px solid var(--line); }
.wx-table thead th { color: var(--muted); font-weight: 500; font-size: .85rem; }
.wx-table th:first-child, .wx-table td:first-child { text-align: left; }
.wx-table tbody th { font-weight: 500; }
.wx-table tr.is-now th, .wx-table tr.is-now td { background: var(--bg-alt); font-weight: 600; }
.wx-tips { margin-top: 48px; }
@media (max-width: 720px) {
    .wx-now { padding: 22px 20px; }
    .wx-temp { font-size: 3rem; }
    .wx-days li { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "icon name temp" "icon label label" "icon extra extra"; gap: 2px 14px; }
    .wx-days li .wx-icon { grid-area: icon; align-self: start; }
    .wx-day-name { grid-area: name; }
    .wx-day-label { grid-area: label; font-size: .93rem; }
    .wx-day-temp { grid-area: temp; text-align: right; }
    .wx-day-extra { grid-area: extra; }
}
/* Картинки внутри текста и обложка на телефоне */
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
.prose img + br { display: none; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { margin-top: 8px; font-size: .875rem; line-height: 1.45; color: var(--muted); }
.entry-cover figcaption { line-height: 1.45; }
@media (max-width: 600px) {
    .entry-cover { margin-bottom: 18px; }
    .entry-cover img { border-radius: 10px; }
    .entry-layout-spaced { padding-top: 24px; }
}
/* Обложка: широкая полоса ограниченной высоты, чтобы квадратное или вертикальное
   фото не занимало весь экран и не «прилипало» к шапке страницы */
.entry-cover { margin: 32px auto 0; width: fit-content; max-width: 100%; }
.entry-cover img { width: auto; max-width: 100%; height: auto; max-height: 480px; aspect-ratio: auto; object-fit: contain; }
.entry-cover + .entry-layout { padding-top: 32px; }
@media (max-width: 600px) {
    .entry-cover { margin: 20px 0 0; }
    .entry-cover img { max-height: 360px; }
    .entry-cover + .entry-layout { padding-top: 22px; }
}
/* Печать */
@media print {
    .site-header, .site-footer, .cookie-notice, .offers-block, .ad-slot, .dev-banner { display: none; }
    body { font-size: 12pt; }
}
