/* ==========================================================================
   «Золотая хохлома» — информационный сайт фестиваля
   Собственная реализация. Печатная стилистика: плоский цвет, чёрный контур,
   жёсткая тень без размытия, орнамент как основной декоративный слой.
   ========================================================================== */

:root {
	--gold: #FFB000;
	--orange: #F28C00;
	--red: #E84B16;
	--ink: #111111;
	--brown: #4A2415;
	--cream: #FFF8E8;
	--white: #FFFFFF;

	--line: 2px solid var(--ink);
	--shadow: 6px 6px 0 var(--ink);
	--shadow-sm: 4px 4px 0 var(--ink);

	--wrap: 1200px;
	--col: 780px;

	--display: "Unbounded", "Arial Black", "Helvetica Neue", Impact, sans-serif;
	--body: "Golos Text", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.65;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

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

a { color: var(--brown); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--red); }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; margin: 0 0 .5em; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.col { max-width: var(--col); margin-left: auto; margin-right: auto; }

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

.skip {
	position: absolute; left: -9999px; top: 8px; z-index: 999;
	background: var(--ink); color: var(--cream); padding: 10px 18px; font-weight: 600;
}
.skip:focus { left: 16px; }

/* ------------------------------------------------------- Верхняя полоса -- */

.topbar {
	background: var(--gold);
	border-bottom: var(--line);
	font-size: 13px;
}
.topbar__in {
	display: flex; align-items: center; gap: 18px;
	min-height: 44px; padding-top: 6px; padding-bottom: 6px;
	flex-wrap: wrap;
}
.topbar__mark {
	font-family: var(--display); font-weight: 800; font-size: 15px;
	line-height: .95; letter-spacing: .02em; text-transform: uppercase;
	white-space: nowrap;
}
.topbar__note {
	font-weight: 500; text-transform: uppercase; letter-spacing: .06em;
	font-size: 11.5px; max-width: 46ch;
}
.topbar__date {
	margin-left: auto; font-family: var(--display); font-weight: 800;
	font-size: 15px; letter-spacing: .02em; white-space: nowrap;
}

/* -------------------------------------------------------------- Навигация */

.nav {
	position: sticky; top: 0; z-index: 90;
	background: var(--white); border-bottom: var(--line);
}
.nav__in { display: flex; align-items: center; gap: 20px; min-height: 62px; }
.nav__brand {
	font-family: var(--display); font-weight: 800; font-size: 16px;
	text-transform: uppercase; letter-spacing: .02em; color: var(--ink);
	text-decoration: none; line-height: 1; white-space: nowrap;
}
.nav__brand span { color: var(--red); }
.nav__list {
	display: flex; align-items: center; gap: 2px; list-style: none;
	margin: 0 0 0 auto; padding: 0;
}
.nav__list a {
	display: block; padding: 8px 12px; font-size: 14.5px; font-weight: 600;
	color: var(--ink); text-decoration: none; border: 2px solid transparent;
}
.nav__list a:hover { background: var(--cream); border-color: var(--ink); }
.nav__list a.is-active { background: var(--gold); border-color: var(--ink); }

.nav__burger {
	display: none; margin-left: auto; width: 46px; height: 42px;
	background: var(--gold); border: var(--line); box-shadow: var(--shadow-sm);
	cursor: pointer; color: var(--ink); align-items: center; justify-content: center;
}
.nav__burger:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }

.mnav {
	position: fixed; inset: 0; z-index: 95; display: none;
}
.mnav.is-open { display: block; }
.mnav__scrim { position: absolute; inset: 0; background: rgba(17, 17, 17, .55); }
.mnav__panel {
	position: absolute; top: 0; right: 0; width: min(340px, 86%); height: 100%;
	background: var(--cream); border-left: var(--line); padding: 20px;
	overflow-y: auto;
}
.mnav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mnav__list { list-style: none; margin: 0 0 22px; padding: 0; }
.mnav__list a {
	display: block; padding: 14px 6px; font-family: var(--display); font-weight: 700;
	font-size: 17px; color: var(--ink); text-decoration: none;
	border-bottom: 2px solid rgba(17,17,17,.15);
}
.mnav__list a:hover { color: var(--red); }

/* ----------------------------------------------------------------- Кнопки */

.btn {
	display: inline-flex; align-items: center; gap: 10px; justify-content: center;
	font-family: var(--body); font-weight: 700; font-size: 15px; line-height: 1;
	padding: 15px 26px; border: var(--line); background: var(--white); color: var(--ink);
	text-decoration: none; cursor: pointer; box-shadow: var(--shadow-sm);
	transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
	min-height: 48px;
}
.btn:hover { background: var(--cream); color: var(--ink); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn--primary { background: var(--red); color: var(--cream); }
.btn--primary:hover { background: #d1400f; color: var(--cream); }
.btn--gold { background: var(--gold); }
.btn--gold:hover { background: #ffc233; }
.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink:hover { background: #000; color: var(--cream); }
.btn svg { width: 18px; height: 18px; flex: 0 0 18px; }

/* ------------------------------------------------------------------- Hero */

.hero {
	position: relative; background: var(--gold); border-bottom: var(--line);
	padding: 46px 0 54px; overflow: hidden;
}
.hero::before {
	content: ""; position: absolute; inset: -10%;
	background: url("assets/patterns/festival-pattern.svg") center / cover no-repeat;
	opacity: .5; pointer-events: none;
}
.hero__in { position: relative; text-align: center; }
.hero__eyebrow {
	display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .18em;
	text-transform: uppercase; background: var(--ink); color: var(--gold);
	padding: 7px 14px; margin-bottom: 22px;
}
.wordmark {
	font-family: var(--display); font-weight: 900; color: var(--ink);
	line-height: .84; letter-spacing: -0.03em; text-transform: uppercase;
	margin: 0 0 18px; word-break: keep-all;
}
.hero .wordmark { font-size: clamp(2.6rem, 13.2vw, 10.5rem); }
.wordmark span { display: block; }
.wordmark span + span { margin-left: .06em; }

.hero__lead {
	font-family: var(--display); font-weight: 700; font-size: clamp(1rem, 2.4vw, 1.4rem);
	max-width: 22ch; margin: 0 auto 14px; line-height: 1.15;
}
.hero__text { max-width: 54ch; margin: 0 auto 26px; font-size: 17px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------------------------------------------------------------- Секции - */

.section { padding: 64px 0; }
.section--cream { background: var(--cream); border-top: var(--line); border-bottom: var(--line); }

.head { margin-bottom: 34px; }
.head--center { text-align: center; }
.eyebrow {
	display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .16em;
	text-transform: uppercase; color: var(--red); margin-bottom: 10px;
}
.head h2 { font-size: clamp(1.75rem, 4.4vw, 2.9rem); margin-bottom: .35em; }
.head p { color: #3a3a3a; max-width: 60ch; }
.head--center p { margin-left: auto; margin-right: auto; }

/* Орнаментальный разделитель */
.divider {
	display: block; width: min(560px, 78%); height: 66px; margin: 0 auto;
	background: url("assets/patterns/decor-leaves.svg") center / contain no-repeat;
}
.divider--flip { transform: scaleX(-1); }

/* ------------------------------------------------------------- Программа - */

.tabs { display: flex; gap: 12px; justify-content: center; margin-bottom: 8px; flex-wrap: wrap; }
.tab {
	font-family: var(--display); font-weight: 700; font-size: 16px;
	padding: 13px 28px; border: var(--line); background: var(--white);
	cursor: pointer; box-shadow: var(--shadow-sm); color: var(--ink); min-height: 48px;
}
.tab:hover { background: var(--cream); }
.tab[aria-selected="true"] { background: var(--gold); }
.tab:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }

.sched { margin-top: 28px; border-top: var(--line); }
.sched__row {
	display: grid; grid-template-columns: 148px 1fr; gap: 24px;
	padding: 18px 4px; border-bottom: 2px solid rgba(17,17,17,.12);
	align-items: baseline;
}
.sched__row:last-child { border-bottom: var(--line); }
.sched__time {
	font-family: var(--display); font-weight: 700; font-size: 15px;
	white-space: nowrap; position: relative; padding-left: 18px;
}
.sched__time::before {
	content: ""; position: absolute; left: 0; top: .5em;
	width: 9px; height: 9px; border-radius: 50%; background: var(--red);
}
.sched__title { font-weight: 600; font-size: 17.5px; }
.sched__note { display: block; font-weight: 400; font-size: 15px; color: #4b4b4b; margin-top: 3px; }
.sched__place {
	display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 600;
	text-transform: uppercase; letter-spacing: .06em; color: var(--brown);
	background: var(--gold); padding: 3px 9px;
}
.note-small { font-size: 14px; color: #555; margin-top: 18px; }

/* -------------------------------------------------------------- Площадки - */

.acc { border-top: var(--line); }
.acc__item { border-bottom: var(--line); }
.acc__btn {
	width: 100%; display: flex; align-items: center; gap: 16px; text-align: left;
	background: none; border: 0; padding: 20px 4px; cursor: pointer;
	font-family: var(--display); font-weight: 700; font-size: clamp(1rem, 2.2vw, 1.25rem);
	color: var(--ink); min-height: 56px;
}
.acc__btn:hover { color: var(--red); }
.acc__num {
	font-size: 13px; font-weight: 700; color: var(--red);
	font-family: var(--body); letter-spacing: .04em; flex: 0 0 auto;
}
.acc__ico {
	margin-left: auto; flex: 0 0 auto; width: 34px; height: 34px;
	border: var(--line); background: var(--gold);
	display: flex; align-items: center; justify-content: center;
	transition: transform .2s ease;
}
.acc__ico svg { width: 18px; height: 18px; }
.acc__btn[aria-expanded="true"] .acc__ico { transform: rotate(180deg); }
.acc__panel { overflow: hidden; max-height: 0; transition: max-height .28s ease; }
.acc__inner { padding: 0 4px 22px 44px; max-width: 66ch; color: #333; }

/* ------------------------------------------------- Туристическая поездка - */

.tourist {
	border: var(--line); background: var(--white); box-shadow: var(--shadow);
	padding: 32px; display: grid; grid-template-columns: 62px 1fr; gap: 24px;
	align-items: start;
}
.tourist__ico {
	width: 62px; height: 62px; border: var(--line); background: var(--gold);
	display: flex; align-items: center; justify-content: center;
}
.tourist__ico svg { width: 30px; height: 30px; }
.tourist h3 { font-size: 1.4rem; margin-bottom: .4em; }

/* ------------------------------------------------------------ Как добраться */

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
	border: var(--line); background: var(--white); padding: 26px 24px 28px;
	box-shadow: var(--shadow-sm);
}
.card__ico {
	width: 52px; height: 52px; border: var(--line); background: var(--cream);
	display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card__ico svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.15rem; margin-bottom: .45em; }
.card p { font-size: 15.5px; color: #3a3a3a; margin: 0; }
.card--gold { background: var(--gold); }

/* ------------------------------------------------------- Фирменный блок --- */

.brand-block {
	position: relative; background: var(--gold);
	border-top: var(--line); border-bottom: var(--line);
	padding: clamp(48px, 9vw, 110px) 0; overflow: hidden; text-align: center;
}
.brand-block::before {
	content: ""; position: absolute; inset: -6%;
	background: url("assets/patterns/festival-pattern.svg") center / cover no-repeat;
	opacity: .62;
}
.brand-block__in { position: relative; }
.brand-block .wordmark { font-size: clamp(2.8rem, 15vw, 12rem); margin-bottom: 0; }
.brand-block__cap {
	margin-top: 20px; font-weight: 600; text-transform: uppercase;
	letter-spacing: .16em; font-size: 12px;
}

/* ------------------------------------------------------------- Фотоотчёт -- */

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.shot {
	position: relative; display: block; padding: 0; border: var(--line);
	background: var(--ink); cursor: zoom-in; overflow: hidden; box-shadow: var(--shadow-sm);
	transition: transform .15s ease, box-shadow .15s ease;
}
.shot:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.shot img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.shot__cap {
	display: block; padding: 12px 14px; background: var(--white);
	border-top: var(--line); font-size: 14px; font-weight: 600; text-align: left;
	color: var(--ink);
}
.shot__cap small { display: block; font-weight: 400; color: #555; font-size: 12.5px; margin-top: 2px; }

/* --------------------------------------------------------------- Lightbox - */

.lb { position: fixed; inset: 0; z-index: 200; display: none; }
.lb.is-open { display: block; }
.lb__scrim { position: absolute; inset: 0; background: rgba(10, 10, 10, .97); }
.lb__stage {
	position: relative; height: 100%; display: flex; align-items: center;
	justify-content: center; padding: 68px 20px 92px;
}
.lb__img { max-width: min(1100px, 92vw); max-height: 100%; border: var(--line); background: var(--ink); }
.lb__cap {
	position: absolute; left: 0; right: 0; bottom: 24px; text-align: center;
	color: var(--cream); font-size: 15px; padding: 0 20px;
}
.lb__btn {
	position: absolute; width: 52px; height: 52px; border: var(--line);
	background: var(--gold); color: var(--ink); cursor: pointer;
	display: flex; align-items: center; justify-content: center;
}
.lb__btn svg { width: 24px; height: 24px; }
.lb__btn--close { top: 18px; right: 18px; }
.lb__btn--prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb__btn--next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb__count {
	position: absolute; top: 26px; left: 24px; color: var(--cream);
	font-family: var(--display); font-weight: 700; font-size: 15px;
}

/* ------------------------------------------------------------------ Текст - */

.prose p { font-size: 17px; }
.prose h3 { font-size: 1.25rem; margin: 1.6em 0 .4em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.pull {
	border-left: 6px solid var(--gold); padding: 6px 0 6px 22px; margin: 28px 0;
	font-family: var(--display); font-weight: 700; font-size: 1.15rem; line-height: 1.3;
}

/* --------------------------------------------------------------- CTA блок - */

.cta {
	border: var(--line); background: var(--red); color: var(--cream);
	box-shadow: var(--shadow); padding: 34px; display: flex; gap: 26px;
	align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.cta h2 { color: var(--cream); font-size: clamp(1.4rem, 3.4vw, 2rem); margin-bottom: .3em; }
.cta p { margin: 0; max-width: 52ch; }
.cta .btn { background: var(--cream); border-color: var(--ink); }

/* --------------------------------------------------------------- Контакты - */

.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.clist { list-style: none; margin: 0 0 24px; padding: 0; }
.clist li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 2px solid rgba(17,17,17,.12); }
.clist svg { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 3px; color: var(--red); }
.clist b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #666; font-weight: 600; }
.clist a, .clist span { font-size: 17px; font-weight: 600; color: var(--ink); text-decoration: none; }
.clist a:hover { color: var(--red); }
.contacts__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.contacts__aside {
	border: var(--line); background: var(--gold); box-shadow: var(--shadow); padding: 28px;
}
.contacts__aside h3 { font-size: 1.2rem; }
.contacts__aside p { font-size: 15.5px; margin-bottom: 0; }
.demo-note {
	margin-top: 18px; font-size: 13px; color: var(--brown);
	border-top: 2px solid rgba(17,17,17,.25); padding-top: 12px;
}

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

.footer { background: var(--ink); color: var(--cream); padding: 52px 0 26px; }
.footer a { color: var(--cream); text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.footer__mark { font-family: var(--display); font-weight: 800; font-size: 20px; text-transform: uppercase; line-height: 1; }
.footer__mark span { color: var(--gold); }
.footer__sub { margin-top: 10px; font-size: 14px; color: #cfc4ad; max-width: 34ch; }
.footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin: 0 0 14px; font-family: var(--body); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; font-size: 15px; }
.footer__bottom {
	margin-top: 40px; padding-top: 18px; border-top: 2px solid #2b2b2b;
	display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	font-size: 13px; color: #b9ad95;
}

/* -------------------------------------------------------- Появление блоков */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------ Страница кейтеринга */

.page-hero {
	background: var(--cream); border-bottom: var(--line);
	padding: 54px 0 58px; position: relative; overflow: hidden;
}
.page-hero::before {
	content: ""; position: absolute; inset: 0;
	background: url("assets/patterns/pattern-hohloma.svg") 0 0 / 320px 320px repeat;
	opacity: .18;
}
.page-hero__in { position: relative; }
.page-hero h1 { font-size: clamp(2rem, 6vw, 3.6rem); }
.page-hero p { max-width: 56ch; font-size: 18px; }
.crumbs { font-size: 13px; margin-bottom: 18px; color: #5a5a5a; }
.crumbs a { color: #5a5a5a; }
.crumbs a:hover { color: var(--red); }

.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.partner {
	border: var(--line); background: var(--cream); box-shadow: var(--shadow);
	padding: 32px; margin-top: 12px;
}
.partner h3 { font-size: 1.3rem; }
.partner p { max-width: 62ch; }

/* --------------------------------------------------------------- Адаптив -- */

@media (max-width: 1024px) {
	.cards3 { grid-template-columns: repeat(2, 1fr); }
	.cards4 { grid-template-columns: repeat(2, 1fr); }
	.gallery { grid-template-columns: repeat(2, 1fr); }
	.nav__list { display: none; }
	.nav__burger { display: flex; }
	.contacts { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 768px) {
	body { font-size: 16px; }
	.section { padding: 48px 0; }
	.topbar__note { display: none; }
	.topbar__date { margin-left: auto; }
	.footer__grid { grid-template-columns: 1fr 1fr; }
	.footer__brand { grid-column: 1 / -1; }
	.tourist { grid-template-columns: 1fr; gap: 18px; padding: 24px; }
	.cta { padding: 26px; }
	.sched__row { grid-template-columns: 1fr; gap: 6px; padding: 16px 2px; }
	.sched__time { padding-left: 16px; }
	.lb__stage { padding: 60px 12px 96px; }
	.lb__btn--prev { left: 10px; }
	.lb__btn--next { right: 10px; }
}

@media (max-width: 560px) {
	.wrap { padding: 0 18px; }
	.cards3, .cards4, .gallery { grid-template-columns: 1fr; }
	.footer__grid { grid-template-columns: 1fr; }
	.hero { padding: 32px 0 40px; }
	.hero__actions .btn { width: 100%; }
	.cta { flex-direction: column; align-items: flex-start; }
	.acc__inner { padding-left: 4px; }
	.divider { height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; transition: none; }
	* { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
	.nav, .mnav, .lb, .hero::before, .brand-block::before { display: none !important; }
	body { color: #000; background: #fff; }
}
