/* =========================================================
   Каникулы с Акрон Холдинг — основные стили
   ========================================================= */

:root {
	--red: #e60004;
	--red-dark: #c40004;
	--maroon: #752134;
	--orange: #e06e02;
	--teal: #00647e;
	--pink: #fff0f0;
	--cream: #fff8f0;
	--peach: #ffdecb;
	--brown: #993800;
	--border-soft: #e5c5b2;
	--field-bg: #fdf1ec;
	--field-border: #f1ddd2;
	--container: 1520px;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: 'Montserrat', -apple-system, Segoe UI, Roboto, Arial, sans-serif;
	color: var(--maroon);
	background: var(--cream);
	font-size: 16px;
	line-height: 1.4;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
p { margin: 0 0 1em; }

.container {
	width: min(var(--container), 100% - 80px);
	margin-inline: auto;
}
.container--narrow { max-width: 860px; }

/* Кнопки -------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 15px 20px;
	border-radius: 100px;
	border: none;
	font: inherit;
	font-size: 16px;
	line-height: 18px;
	cursor: pointer;
	text-decoration: none;
	transition: background .2s, color .2s, opacity .2s;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); }
.btn--block { width: 100%; }

/* Шапка --------------------------------------------------- */
.site-header { padding-top: 37px; position: relative; z-index: 20; }
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
}
.site-header__logo img,
.site-logo img { height: 60px; width: auto; }
.site-nav,
.site-nav__list {
	display: flex;
	align-items: center;
	gap: 30px;
	margin: 0;
	padding: 0;
	list-style: none;
	flex-wrap: wrap;
}
.site-nav__link,
.site-nav__list a {
	color: var(--maroon);
	font-size: 14px;
	line-height: 18px;
	text-decoration: underline;
}
.site-nav__btn { text-decoration: none; }

/* Бургер (только мобильные) */
.burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 10px;
	background: none;
	border: none;
	cursor: pointer;
	z-index: 30;
}
.burger span {
	display: block;
	height: 3px;
	width: 100%;
	border-radius: 3px;
	background: var(--red);
	transition: transform .25s, opacity .25s;
}
.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Декоративный верх: шапка поверх лучей ------------------- */
body.home .site-header,
body.single-excursion .site-header {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	z-index: 20;
}

/* Герой --------------------------------------------------- */
.hero { position: relative; }
.hero__inner {
	position: relative;
	width: 100%;
	aspect-ratio: 1920 / 751;
	background:
		url('../img/hero-bg.svg') center / 100% 100% no-repeat,
		linear-gradient(180deg, rgba(241, 156, 40, .6) 0%, rgba(255, 248, 240, .6) 100%);
}
/* Лента «Каникулы» — позиция и размер как в макете (в % от ширины) */
.hero__img {
	position: absolute;
	left: 50%;
	top: 14.5%;          /* 109 / 751 */
	width: 63.65%;       /* 1222 / 1920 */
	height: auto;
	transform: translateX(-50%);
}

/* О проекте ----------------------------------------------- */
.about { padding: 50px 0 0; }
.about__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}
.about__media {
	position: relative;
	min-height: 400px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.about__circle {
	border-radius: 50%;
	object-fit: cover;
}
.about__circle--lg {
	width: 376px;
	height: 376px;
	max-width: 100%;
}
.about__circle--sm {
	width: 125px;
	height: 125px;
	position: absolute;
	right: 14%;
	bottom: 4%;
	border: 6px solid var(--cream);
}
.about__text p {
	font-size: 16px;
	line-height: 20px;
	color: var(--maroon);
	margin: 0 0 16px;
}
.about__text p:last-child { margin-bottom: 0; }

/* Плашка-выделение ---------------------------------------- */
.highlight {
	background: var(--peach);
	border-radius: 1000px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 20px 30px 25px;
	text-align: center;
	margin-top: 50px;
}
.highlight__icon { width: 70px; height: 66px; flex-shrink: 0; }
.highlight__text { display: flex; flex-direction: column; gap: 6px; }
.highlight__line { font-size: 20px; line-height: 24px; margin: 0; color: var(--maroon); }
.highlight__line--bold { font-weight: 700; }

.highlight--left {
	flex-direction: row;
	align-items: center;
	text-align: left;
	gap: 30px;
	padding: 15px 40px;
	margin-top: 0;
}
.highlight--left .highlight__text { align-items: flex-start; }

/* Расписание ---------------------------------------------- */
.schedule { padding-top: 60px; }
.schedule__title {
	text-align: center;
	font-weight: 400;
	font-size: 54px;
	line-height: 64px;
	color: var(--maroon);
	margin: 0 0 30px;
}
.schedule__panel {
	position: relative;
	background: #fff;
	margin-top: 90px;
	padding: 30px 0 100px;
}
.schedule__panel::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: -89px;
	height: 90px;
	background: url('../img/wave.svg') bottom center / 100% 100% no-repeat;
	pointer-events: none;
}
.schedule__layout {
	display: grid;
	grid-template-columns: 213px 1fr;
	gap: 30px;
	align-items: start;
}
.schedule__tabs-label { font-weight: 600; font-size: 14px; line-height: 18px; margin: 0 0 20px; }
.tabs { display: flex; flex-direction: column; gap: 5px; }
.tab {
	border-radius: 100px;
	padding: 15px 20px;
	font: inherit;
	font-size: 16px;
	line-height: 18px;
	border: 1px solid var(--red);
	background: var(--pink);
	color: var(--red);
	cursor: pointer;
	text-align: center;
	transition: background .2s, color .2s;
}
.tab.is-active { background: var(--red); color: #fff; }

.schedule__cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}
.schedule__cards--archive { grid-column: 1; }
.schedule__empty { grid-column: 1 / -1; font-size: 18px; }

/* Карточка экскурсии -------------------------------------- */
.ex-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	text-decoration: none;
	color: inherit;
}
.ex-card.is-hidden { display: none; }
.ex-card__date { display: flex; align-items: center; gap: 10px; }
.ex-card__cal { width: 31px; height: 29px; flex-shrink: 0; }
.ex-card__date span { font-weight: 600; font-size: 22px; line-height: 24px; color: var(--orange); }
.ex-card__photo {
	border-radius: 10px;
	overflow: hidden;
	aspect-ratio: 406 / 180;
	background: #ffe3d0;
}
.ex-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ex-card__photo-placeholder { display: block; width: 100%; height: 100%; }
.ex-card:hover .ex-card__photo img { transform: scale(1.04); }
.ex-card__body { display: flex; flex-direction: column; gap: 5px; }
.ex-card__title { font-weight: 700; font-size: 18px; line-height: 24px; margin: 0; color: var(--maroon); }
.ex-card__desc { font-size: 14px; line-height: 16px; margin: 0; color: var(--maroon); }
.ex-card__more { font-size: 14px; line-height: 16px; color: var(--teal); text-decoration: underline; }

/* Показать ещё -------------------------------------------- */
.ex-more {
	display: flex;
	align-items: center;
	justify-content: center;
}
.ex-more.is-hidden { display: none; }
.ex-more__btn {
	background: var(--cream);
	color: var(--brown);
	border: none;
	border-radius: 1000px;
	width: 260px;
	height: 260px;
	max-width: 100%;
	font: inherit;
	font-size: 18px;
	cursor: pointer;
	transition: background .2s;
}
.ex-more__btn:hover { background: #ffe9d6; }

/* Подвал -------------------------------------------------- */
.site-footer { padding: 70px 0 30px; }
.footer-card {
	background: var(--peach);
	border-radius: 1000px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 60px;
	padding: 30px;
}
.footer-card__logo img { height: 60px; width: auto; }
.footer-card__label { font-size: 14px; line-height: 18px; margin: 0 0 10px; }
.footer-card__name { font-weight: 700; font-size: 24px; line-height: 24px; margin: 0 0 10px; }
.footer-card__list { display: flex; flex-direction: column; gap: 5px; }
.footer-card__item {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--maroon);
	text-decoration: none;
	font-size: 18px;
	line-height: 20px;
}
.footer-card__item img { width: 22px; height: 22px; }
.site-footer__copy { text-align: center; font-size: 14px; line-height: 16px; margin: 30px 0 0; }

/* Страница экскурсии -------------------------------------- */
.ex-page { position: relative; }
.ex-page::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 533px;
	z-index: -1;
	background:
		url('../img/excursion-top.svg') top center / 100% auto no-repeat,
		linear-gradient(180deg, rgba(241, 156, 40, .5) 0%, rgba(255, 248, 240, 0) 70%);
	pointer-events: none;
}
.ex-top { padding-top: 130px; }
.ex-top__title { font-weight: 400; font-size: 44px; line-height: 46px; color: var(--maroon); margin: 0; }
.ex-detail { padding-top: 30px; }
.ex-detail__grid {
	display: grid;
	grid-template-columns: 705fr 785fr;
	gap: 30px;
	align-items: start;
}
.ex-detail__main { display: flex; flex-direction: column; gap: 30px; }
.ex-detail__text { font-size: 16px; line-height: 20px; color: var(--maroon); }
.ex-detail__text p { margin: 0 0 16px; }
.ex-detail__text p:last-child { margin-bottom: 0; }

.ex-info { display: flex; flex-direction: column; gap: 10px; }
.ex-info__item {
	border-bottom: 1px solid var(--border-soft);
	padding-bottom: 10px;
	text-align: left;
}
.ex-info__title { font-weight: 700; font-size: 16px; line-height: 20px; margin: 0 0 5px; }
.ex-info__text { font-size: 16px; line-height: 20px; margin: 0; }
.ex-detail__register { align-self: flex-start; }

/* Слайдер ------------------------------------------------- */
.ex-slider { position: relative; }
.ex-slider__viewport {
	border-radius: 10px;
	overflow: hidden;
	aspect-ratio: 736 / 390;
	background: #ffe3d0;
}
.ex-slider__track { display: flex; height: 100%; transition: transform .4s ease; }
.ex-slider__slide { min-width: 100%; height: 100%; }
.ex-slider__slide img { width: 100%; height: 100%; object-fit: cover; }
.ex-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	width: 49px;
	height: 50px;
	z-index: 2;
}
.ex-slider__arrow img { width: 100%; height: 100%; }
.ex-slider__arrow--prev { left: 6px; }
.ex-slider__arrow--prev img { transform: scaleX(-1); }
.ex-slider__arrow--next { right: 6px; }
.ex-slider__dots {
	position: absolute;
	bottom: 14px;
	right: 24px;
	display: flex;
	align-items: center;
	gap: 15px;
	z-index: 2;
}
.ex-slider__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	border: none;
	padding: 0;
	background: rgba(255, 255, 255, .6);
	cursor: pointer;
	transition: all .2s;
}
.ex-slider__dot.is-active { width: 10px; height: 10px; background: #fff; }

/* Адрес и карта ------------------------------------------- */
.ex-address-wrap { padding-top: 40px; }
.ex-map-wrap { padding-top: 30px; }
.ex-map {
	border-radius: 20px;
	overflow: hidden;
	height: 430px;
	background: #ffe3d0;
}
.ex-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Обычные страницы / блог --------------------------------- */
.page-section { padding: 50px 0 20px; }
.page-section__title { font-weight: 400; font-size: 44px; line-height: 1.1; color: var(--maroon); margin: 0 0 24px; }
.post-item { margin-bottom: 30px; }
.post-item__title { font-size: 24px; margin: 0 0 8px; }
.post-item__title a { color: var(--maroon); text-decoration: none; }

/* Модальное окно ------------------------------------------ */
.modal { position: fixed; inset: 0; z-index: 1000; display: none; }
.modal.is-open { display: block; }
.modal__overlay { position: absolute; inset: 0; background: rgba(40, 10, 15, .45); }
.modal__dialog {
	position: relative;
	background: #fff;
	border-radius: 30px;
	max-width: 965px;
	width: calc(100% - 40px);
	margin: 40px auto;
	padding: 30px 35px 35px;
	max-height: calc(100vh - 80px);
	overflow: auto;
}
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.modal__title { font-weight: 400; font-size: 48px; line-height: 1; color: var(--maroon); margin: 0; }
.modal__close { background: none; border: none; font-size: 34px; line-height: 1; color: var(--red); cursor: pointer; padding: 0; }

/* Форма --------------------------------------------------- */
.reg-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.reg-form__col { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-weight: 700; font-size: 16px; line-height: 22px; color: var(--maroon); }
.field__note { font-size: 13px; line-height: 17px; color: var(--maroon); margin-top: -6px; }
.field input {
	background: var(--field-bg);
	border: 1px solid var(--field-border);
	border-radius: 12px;
	padding: 14px 15px;
	font: inherit;
	font-size: 16px;
	color: var(--maroon);
	width: 100%;
}
.field input::placeholder { color: #c2a397; }
.field input:focus { outline: none; border-color: var(--red); }

/* Ползунок возраста */
.range { padding-top: 26px; }
.range__track { position: relative; height: 6px; }
.range__line, .range__fill { position: absolute; top: 0; height: 6px; border-radius: 100px; }
.range__fill { left: 0; background: var(--red); width: 50%; }
.range__input {
	-webkit-appearance: none;
	appearance: none;
	position: absolute;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
	width: 100%;
	height: 20px;
	margin: 0;
	background: transparent;
	z-index: 3;
}
.range__track { background: var(--field-border); }
.range__input::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--red);
	cursor: pointer;
	border: none;
}
.range__input::-moz-range-thumb {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--red);
	cursor: pointer;
	border: none;
}
.range__scale { position: relative; display: flex; justify-content: space-between; margin-top: 12px; font-size: 16px; color: var(--maroon); }
.range__value { position: absolute; top: 0; transform: translateX(-50%); font-weight: 700; }

.reg-form__consent {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 30px 0 25px;
	font-size: 16px;
	line-height: 17px;
	color: var(--maroon);
	cursor: pointer;
}
.reg-form__consent input { width: 26px; height: 26px; accent-color: #2f9e44; flex-shrink: 0; margin: 0; }
.reg-form__message { margin: 14px 0 0; font-size: 15px; text-align: center; }
.reg-form__message.is-error { color: var(--red); }
.reg-form__message.is-success { color: #2f9e44; }

body.modal-open { overflow: hidden; }

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 1200px) {
	.schedule__title { font-size: 44px; line-height: 52px; }
	.about__grid { gap: 40px; }
}

@media (max-width: 992px) {
	.container { width: min(var(--container), 100% - 48px); }
	.about__grid { grid-template-columns: 1fr; gap: 30px; }
	.about__media { min-height: 0; order: -1; }
	.schedule__layout { grid-template-columns: 1fr; gap: 24px; }
	.tabs { flex-direction: row; flex-wrap: wrap; }
	.tab { flex: 1 1 auto; }
	.schedule__cards { grid-template-columns: repeat(2, 1fr); }
	.ex-detail__grid { grid-template-columns: 1fr; }
	.ex-detail__main { order: 2; }
	.ex-slider { order: 1; }
	.footer-card { flex-direction: column; gap: 24px; text-align: center; border-radius: 40px; }
	.footer-card__contacts { display: flex; flex-direction: column; align-items: center; }
	.footer-card__item { justify-content: center; }
	.reg-form__grid { grid-template-columns: 1fr; gap: 20px; }
	.modal__title { font-size: 36px; }
}

@media (max-width: 768px) {
	.container { width: min(var(--container), 100% - 32px); }
	.site-header__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
	.burger { display: flex; }
	/* Выпадающее меню */
	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
		background: #fff;
		padding: 20px 24px 24px;
		box-shadow: 0 12px 24px rgba(117, 33, 52, .15);
		border-radius: 0 0 16px 16px;
		z-index: 29;
	}
	.site-nav.is-open { display: flex; }
	.site-nav__list { flex-direction: column; align-items: stretch; gap: 14px; width: 100%; }
	.site-nav__btn { align-self: flex-start; }
	/* На мобильных шапка в обычном потоке, без перекрытия */
	body.home .site-header,
	body.single-excursion .site-header { position: relative; }
	.hero__inner {
		aspect-ratio: auto;
		display: flex;
		justify-content: center;
		align-items: center;
		padding: 14px 16px 28px;
	}
	.hero__img { position: static; transform: none; width: min(88%, 380px); }
	.ex-top { padding-top: 24px; }
	.ex-page::before { height: 300px; }
	.schedule__title { font-size: 34px; line-height: 40px; }
	.schedule__cards { grid-template-columns: 1fr; }
	.schedule__panel::before { top: -49px; height: 50px; }
	.schedule__panel { margin-top: 50px; }
	.ex-top__title { font-size: 30px; line-height: 34px; }
	.highlight--left { flex-direction: column; text-align: center; padding: 20px; }
	.highlight--left .highlight__text { align-items: center; }
	.highlight__line { font-size: 17px; }
	.about__circle--sm { right: 6%; }
	.modal__dialog { padding: 24px 20px; border-radius: 20px; }
	.modal__title { font-size: 30px; }
	.ex-map { height: 320px; }
}

@media (max-width: 480px) {
	.hero { padding-top: 12px; }
	.schedule__title { font-size: 28px; line-height: 34px; }
	.ex-card__date span { font-size: 20px; }
	.footer-card__name { font-size: 20px; }
	.footer-card__item { font-size: 16px; }
}
