/* Чулки-Соколово — статическая копия (#1880). Без сторонних шрифтов и скриптов. */
:root {
	--bg: #f6f2ea;
	--paper: #fffdf8;
	--ink: #2a2622;
	--muted: #776c60;
	--line: #e2d8c8;
	--accent: #8b3a22;
	--shade: #e9e1d4;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--serif: Georgia, "PT Serif", "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.65 var(--serif); }
a { color: var(--accent); }
a:hover { color: #5e2614; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* шапка и меню */
header.top { background: #2b2520; border-bottom: 1px solid #1c1814; position: sticky; top: 0; z-index: 20; }
header.top .wrap { display: flex; align-items: center; gap: 8px 24px; flex-wrap: wrap; min-height: 64px; }
.brand { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; text-decoration: none; color: #b8ab98; font: 13px/1.2 var(--sans); }
.brand img { height: 32px; width: auto; display: block; }
nav ul { list-style: none; margin: 0; padding: 0; }
nav > ul { display: flex; flex-wrap: wrap; }
nav > ul > li { position: relative; }
nav a { display: block; padding: 10px 10px; text-decoration: none; color: #efe8dc; font: 15px/1.3 var(--sans); }
nav a:hover, nav li.on > a { color: #f2b48f; }
nav li.sub > a::after { content: " ▾"; font-size: 11px; color: #b8ab98; }
nav li.sub > ul {
	display: none; position: absolute; left: 0; top: 100%; min-width: 290px; max-height: 72vh; overflow: auto;
	padding: 6px 0; background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
	box-shadow: 0 10px 30px rgba(40, 30, 20, .12);
}
nav li.sub:hover > ul, nav li.sub:focus-within > ul { display: block; }
nav li.sub > ul a { padding: 7px 18px; color: var(--ink); }
nav li.sub > ul a:hover { color: var(--accent); }
nav li.sub > ul a:hover { background: var(--bg); }
.burger {
	display: none; margin-left: auto; padding: 8px 14px; font: 15px var(--sans); color: #efe8dc;
	background: transparent; border: 1px solid #5a5048; border-radius: 6px; cursor: pointer;
}
@media (max-width: 960px) {
	.burger { display: block; }
	html.js nav { display: none; width: 100%; padding-bottom: 10px; }
	html.js nav.open { display: block; }
	nav > ul { flex-direction: column; }
	nav li.sub > ul { display: none !important; }
	nav a { padding: 9px 4px; border-top: 1px solid #443b33; }
}

/* текст */
main.wrap { padding-top: 30px; padding-bottom: 10px; min-height: 60vh; }
h1 { font-size: 38px; line-height: 1.2; font-weight: normal; margin: 6px 0 6px; }
h1.home { font-size: 46px; }
h2 { font-size: 27px; line-height: 1.25; font-weight: normal; margin: 44px 0 16px; }
h3, h4 { font-size: 21px; font-weight: normal; margin: 28px 0 10px; }
.lead { font-size: 20px; color: var(--muted); max-width: 760px; margin: 0 0 28px; }
.crumbs { margin: 0; font: 14px var(--sans); }
.crumbs a { text-decoration: none; }
.count { margin: 0 0 22px; color: var(--muted); font: 14px var(--sans); }
.text { max-width: 780px; }
.text p { margin: 0 0 14px; }
.text figure.pic { margin: 22px 0; }
.text figure.pic img { display: block; width: 100%; border-radius: 4px; }
.home-text { margin-top: 50px; }
.audio audio { width: 100%; max-width: 520px; }
.video { max-width: 960px; margin: 10px 0 30px; }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 6px; background: #000; }
.map iframe { width: 100%; height: 440px; border: 0; border-radius: 6px; margin: 10px 0 30px; }
table { border-collapse: collapse; margin: 10px 0 20px; }
td, th { border: 1px solid var(--line); padding: 6px 10px; vertical-align: top; }

/* галерея */
.gallery { list-style: none; margin: 10px 0 40px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.gallery a { display: block; border-radius: 4px; overflow: hidden; background: var(--shade); }
.gallery img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .25s; }
.gallery a:hover img { transform: scale(1.04); }

/* карточки альбомов */
.cards { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.cards.big { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cards a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.cards a:hover { border-color: #cdbfa8; box-shadow: 0 6px 20px rgba(40, 30, 20, .08); }
.cards img, .cards .noimg { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--shade); }
.cards .noimg.kino { display: flex; align-items: center; justify-content: center; background: #2b2520; }
.cards .noimg.kino::after { content: "▶"; font: 54px/1 var(--sans); color: #efe8dc; opacity: .85; }
.cards b { display: block; padding: 12px 14px 2px; font-weight: normal; font-size: 18px; line-height: 1.3; }
.cards small { display: block; padding: 0 14px 12px; color: var(--muted); font: 13px var(--sans); }
.cards.big b { padding-bottom: 14px; font-size: 20px; }

/* отзывы */
.comments { max-width: 780px; margin-top: 10px; }
.comment { border-left: 3px solid var(--line); padding: 2px 0 2px 16px; margin: 0 0 22px; }
.comment p { margin: 0 0 6px; }
.comment .who { font: 14px var(--sans); color: var(--muted); }
.comment .who b { color: var(--ink); font-weight: 600; margin-right: 6px; }
.note { font: 14px var(--sans); color: var(--muted); }

footer.bottom { margin-top: 60px; border-top: 1px solid var(--line); background: var(--paper); color: var(--muted); font: 14px/1.5 var(--sans); }
footer.bottom .wrap { padding-top: 22px; padding-bottom: 26px; }
footer.bottom p { margin: 0 0 4px; }

/* просмотр фото */
.lb { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgba(18, 15, 12, .95); }
.lb img { max-width: 94vw; max-height: 88vh; object-fit: contain; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); user-select: none; }
.lb button { position: absolute; border: 0; background: rgba(255, 255, 255, .08); color: #f3eee6; cursor: pointer; font: 34px/1 var(--sans); border-radius: 6px; }
.lb button:hover { background: rgba(255, 255, 255, .18); }
.lb .lb-x { top: 14px; right: 14px; width: 48px; height: 48px; }
.lb .lb-p, .lb .lb-n { top: 50%; transform: translateY(-50%); width: 54px; height: 80px; }
.lb .lb-p { left: 12px; }
.lb .lb-n { right: 12px; }
.lb .lb-c { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; color: #cfc6b8; font: 14px var(--sans); }
@media (max-width: 700px) {
	body { font-size: 17px; }
	h1 { font-size: 30px; }
	h1.home { font-size: 36px; }
	.gallery { grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); gap: 6px; }
	.lb .lb-p, .lb .lb-n { display: none; }
}
