/* Общая вёрстка сайтов-заглушек. Никаких внешних ресурсов: ни CDN, ни веб-шрифтов.
   Цвета и шрифты каждого сайта задаются переменными в <style> внутри <head>. */
:root {
  --bg: #fbfaf7; --fg: #1d2733; --muted: #5b6673; --card: #ffffff; --line: rgba(0, 0, 0, .09);
  --accent: #0b5fa5; --accent-fg: #ffffff; --accent2: #c8a24a;
  --band-bg: #14202e; --band-fg: #f3efe6; --footer-bg: #0f1822; --footer-fg: #c7cfd8;
  --font-head: Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px; --maxw: 1140px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.68 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-fg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Шапка */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
@supports (background: color-mix(in srgb, red 50%, blue)) {
  .site-header { background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(12px); }
}
.bar { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--fg); font-family: var(--font-head); font-weight: 700; font-size: 1.22rem; letter-spacing: -.01em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.nav { display: flex; gap: 6px; }
.nav a { text-decoration: none; color: var(--fg); padding: 8px 14px; border-radius: 999px; font-size: .95rem; font-weight: 500; transition: background .2s, color .2s; }
.nav a:hover { background: rgba(127, 127, 127, .14); }
.nav a[aria-current="page"] { background: var(--accent); color: var(--accent-fg); }
.burger { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; color: var(--fg); cursor: pointer; }
.burger svg { width: 22px; height: 22px; margin: auto; }

/* Обложка */
.hero { position: relative; min-height: min(84vh, 760px); display: grid; align-items: end; color: #fff; overflow: hidden; background: #111; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .22) 0%, rgba(0, 0, 0, .12) 35%, rgba(0, 0, 0, .72) 100%); }
.hero .wrap { position: relative; z-index: 2; padding-top: 110px; padding-bottom: 60px; }
.hero .kicker { color: var(--accent2); }
.hero h1 { max-width: 15ch; text-shadow: 0 2px 22px rgba(0, 0, 0, .35); }
.hero .lead { font-size: clamp(1.05rem, 1.7vw, 1.3rem); max-width: 58ch; color: rgba(255, 255, 255, .92); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 30px; }
.btn { display: inline-block; text-decoration: none; padding: 12px 24px; border-radius: 999px; font-weight: 600; background: var(--accent); color: var(--accent-fg); border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .28); }
.btn.ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .5); backdrop-filter: blur(6px); }
.today { display: inline-flex; flex-wrap: wrap; gap: 6px 22px; padding: 12px 20px; border-radius: 18px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(10px); font-size: .92rem; }
.today b { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; opacity: .78; font-weight: 600; }
.today span { font-variant-numeric: tabular-nums; }
.today .date { font-weight: 600; }

/* Секции */
.section { padding: 76px 0; }
.section.tint { background: color-mix(in srgb, var(--fg) 4%, var(--bg)); }
.kicker { text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; color: var(--accent); font-weight: 700; margin-bottom: 10px; display: block; }
.head { max-width: 62ch; margin-bottom: 40px; }
.head p { color: var(--muted); font-size: 1.08rem; }
.features { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); margin-bottom: 16px; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.features p { color: var(--muted); margin: 0; }

.grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .28s, box-shadow .28s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(0, 0, 0, .13); }
.card .ph { overflow: hidden; aspect-ratio: 3 / 2; background: #ddd; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; cursor: zoom-in; }
.card:hover .ph img { transform: scale(1.05); }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); font-size: .96rem; flex: 1; }
.more { font-weight: 600; text-decoration: none; font-size: .93rem; }
.more::after { content: " \2192"; transition: margin .2s; }
.more:hover::after { margin-left: 4px; }

/* Галерея-кладка (сайты в стиле фотосообщества) */
.masonry { columns: 3 290px; column-gap: 20px; }
.tile { break-inside: avoid; margin: 0 0 20px; position: relative; border-radius: var(--radius); overflow: hidden; background: #000; }
.tile img { width: 100%; cursor: zoom-in; transition: transform .6s, opacity .3s; }
.tile:hover img { transform: scale(1.04); opacity: .92; }
.tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); }
.tile figcaption b { font-family: var(--font-head); font-size: 1.12rem; display: block; }
.tile figcaption span { font-size: .84rem; opacity: .85; }

/* Фото дня */
.potd { display: grid; grid-template-columns: 1.35fr 1fr; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.potd img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; cursor: zoom-in; }
.potd-text { padding: 38px; align-self: center; }
.potd-text small { color: var(--muted); display: block; margin-top: 14px; font-size: .82rem; }

/* Времена года */
.seasons { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.season { border-top: 3px solid var(--accent); padding-top: 16px; }
.season:nth-child(2) { border-color: var(--accent2); }
.season:nth-child(3) { border-color: color-mix(in srgb, var(--accent) 55%, var(--accent2)); }
.season:nth-child(4) { border-color: color-mix(in srgb, var(--fg) 45%, var(--bg)); }
.season p { color: var(--muted); margin: 0; font-size: .96rem; }

/* Цитата */
.band { background: var(--band-bg); color: var(--band-fg); text-align: center; padding: 84px 0; }
.band blockquote { margin: 0 auto; max-width: 30em; font-family: var(--font-head); font-size: clamp(1.4rem, 2.8vw, 2.1rem); line-height: 1.35; font-style: italic; }
.band cite { display: block; margin-top: 22px; font-style: normal; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }

/* Страница «Места» */
.page-head { padding: 64px 0 28px; }
.page-head p { color: var(--muted); font-size: 1.12rem; max-width: 62ch; }
.place { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: center; padding: 34px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.place:nth-child(even) .place-img { order: 2; }
.place-img { border-radius: var(--radius); overflow: hidden; background: #ddd; }
.place-img img { width: 100%; cursor: zoom-in; aspect-ratio: 3 / 2; object-fit: cover; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 20px 0 0; padding: 16px 0 0; border-top: 1px dashed var(--line); font-size: .93rem; }
.facts dt { font-weight: 700; color: var(--accent); }
.facts dd { margin: 0; color: var(--muted); }

/* Справочник */
.guide-group { margin-bottom: 44px; }
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary { cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--accent); transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding: 0 32px 18px 0; margin: 0; }

.prose { max-width: 70ch; }
.prose p { color: var(--muted); font-size: 1.05rem; }
.table-wrap { overflow-x: auto; margin-top: 18px; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }

/* Подвал */
.site-footer { background: var(--footer-bg); color: var(--footer-fg); padding: 52px 0 40px; font-size: .92rem; }
.foot { display: grid; gap: 30px; grid-template-columns: 1.6fr 1fr 1fr; }
.site-footer a { color: inherit; opacity: .85; }
.site-footer h4 { margin: 0 0 12px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.copy { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); opacity: .7; font-size: .84rem; }

/* Просмотр фото */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(6, 8, 12, .94); display: none; align-items: center; justify-content: center; flex-direction: column; padding: 24px; cursor: zoom-out; }
.lightbox.on { display: flex; }
.lightbox img { max-height: 82vh; max-width: 94vw; border-radius: 8px; object-fit: contain; }
.lightbox p { color: #d8dde4; margin: 14px 0 0; font-size: .92rem; text-align: center; max-width: 80ch; }

/* Плавное появление (только если включён JS) */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

.notfound { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.notfound .code { font-family: var(--font-head); font-size: clamp(5rem, 16vw, 10rem); line-height: 1; color: var(--accent); opacity: .9; }

@media (max-width: 860px) {
  .potd, .place { grid-template-columns: 1fr; }
  .place:nth-child(even) .place-img { order: 0; }
  .place { gap: 20px; }
  .foot { grid-template-columns: 1fr; }
  .potd-text { padding: 26px; }
}
@media (max-width: 720px) {
  .burger { display: grid; }
  .nav { position: absolute; left: 0; right: 0; top: 66px; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; padding: 10px 18px 16px; display: none; }
  .nav.open { display: flex; }
  .section { padding: 54px 0; }
  .hero { min-height: 74vh; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
