/* === Общие сбросы и стили === */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Segoe UI", Roboto, "Helvetica Neue", system-ui, sans-serif;
	background-color: #f5f5f5;
	color: #1e1e1e;
	line-height: 1.4;
	min-height: 100vh;
	margin: 0;
}

/* === Шапка сайта === */
.site-header {
	background-color: #ffffff;
	padding: 1rem 2.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid #eaeaea;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
	position: static;
	width: 100%;
}

.logo {
	font-size: 1.8rem;
	font-weight: 700;
	letter-spacing: 1px;
	color: #1a1a1a;
	white-space: nowrap;
	line-height: 1.2;
	text-transform: uppercase;
}

.logo span {
	font-weight: 400;
	color: #b89b5b;
	display: block;
	font-size: 1rem;
	letter-spacing: 2px;
}

/* === Главное меню (Manrope) === */
.main-nav {
	display: flex;
	align-items: center;
	gap: 2.8rem;
	list-style: none;
}

.main-nav a {
	font-family: "Manrope", sans-serif;
	font-weight: 700;
	font-size: 12px;
	color: #849372;
	line-height: 16px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	text-decoration: none;
	position: relative;
	padding: 0.3rem 0;
	transition: color 0.2s ease;
}

.main-nav a::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0%;
	height: 2px;
	background-color: #849372;
	transition: width 0.25s ease;
}

.main-nav a:hover {
	color: #849372;
}

.main-nav a:hover::after {
	width: 100%;
}

.header-contacts {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.3rem;
}

.phone-link {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
	font-size: 1.25rem;
	font-weight: 600;
	color: #1e1e1e;
	transition: color 0.2s;
	letter-spacing: 0.2px;
}

.phone-link:hover {
	color: #b89b5b;
}

.phone-icon {
	width: 1.3rem;
	height: 1.3rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex-shrink: 0;
}

.working-hours {
	font-size: 0.85rem;
	color: #5e5e5e;
	font-weight: 400;
	letter-spacing: 0.2px;
	white-space: nowrap;
}

/* === Hero-секция: две колонки === */
.hero-slider {
	display: flex;
	flex-direction: row;
	width: 100%;
	height: 600px;
	background-color: #eaeaea;
	margin-top: 0;
}

/* Левая панель — фиксированная ширина 33.333% */
.hero-panels {
	width: 33.333%;
	height: 100%;
	position: relative;
	flex-shrink: 0;
	order: 1;
}

.hero-panel {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 3rem 2.5rem;
	opacity: 0;
	transition: opacity 0.6s ease;
	pointer-events: none;
}

.hero-panel.active {
	opacity: 1;
	pointer-events: auto;
}

/* Цвета панелей */
.panel-1 {
	background-color: #efe8d6;
	color: #1e1e1e;
}
.panel-2 {
	background-color: #000000;
	color: #ffffff;
}
.panel-3 {
	background-color: #ffffff;
	color: #1e1e1e;
}

/* Типографика панели — Playfair Display */
.panel-super-title {
	font-family: "Playfair Display", serif;
	font-weight: 400;
	font-size: 0.95rem;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin-bottom: 1rem;
	opacity: 0.8;
}

.panel-title {
	font-family: "Playfair Display", serif;
	font-weight: 700;
	font-size: 2.4rem;
	line-height: 1.2;
	margin-bottom: 1.5rem;
}

.panel-desc {
	font-family: "Playfair Display", serif;
	font-weight: 400;
	font-size: 1.1rem;
	line-height: 1.6;
	margin-bottom: 2rem;
	opacity: 0.9;
}

.btn-participate {
	font-family: "Playfair Display", serif;
	font-weight: 700;
	align-self: flex-start;
	padding: 0.8rem 2rem;
	background: transparent;
	border: 2px solid currentColor;
	color: inherit;
	font-size: 0.95rem;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	cursor: pointer;
	transition:
		background 0.25s,
		color 0.25s;
	margin-top: auto;
	margin-bottom: 1rem;
}

.btn-participate:hover {
	background: currentColor;
}

.panel-1 .btn-participate {
	display: none;
}
.panel-2 .btn-participate:hover {
	background: #ffffff;
	color: #000000;
}
.panel-3 .btn-participate:hover {
	background: #000000;
	color: #ffffff;
}

/* === Правая часть (слайдер) === */
.slides-wrapper {
	width: 66.667%;
	height: 100%;
	position: relative;
	overflow: hidden;
	order: 2;
}

.slides-container {
	position: relative;
	width: 100%;
	height: 100%;
}

.slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transform: scale(1.12) translateX(4%);
	transition:
		opacity 0.8s ease,
		transform 0.8s ease;
	z-index: 0;
	overflow: hidden; /* обрезаем выступающее изображение */
}

.slide.active {
	opacity: 1;
	transform: scale(1) translateX(0);
	z-index: 1;
}

.slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.slide.active img {
	animation: zoomIn 5s ease-out forwards;
}

@keyframes zoomIn {
	from {
		transform: scale(1);
	}
	to {
		transform: scale(1.1);
	}
}

/* Кнопки слайдера */
.slider-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.25);
	backdrop-filter: blur(4px);
	border: none;
	color: #333;
	font-size: 2.2rem;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	cursor: pointer;
	transition:
		background 0.25s,
		color 0.25s;
	z-index: 5;
	line-height: 1;
	padding: 0;
}

.slider-btn:hover {
	background: rgba(255, 255, 255, 0.6);
	color: #000;
}

.prev {
	left: 20px;
}

.next {
	right: 20px;
}

/* Точки */
.slider-dots {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	z-index: 5;
}

.dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: background 0.3s;
	border: 1px solid rgba(0, 0, 0, 0.2);
}

.dot.active {
	background: #849372;
	border-color: #849372;
}

/* === Popup-форма === */
.popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 0.3s ease,
		visibility 0.3s;
}

.popup-overlay.visible {
	opacity: 1;
	visibility: visible;
}

.popup-window {
	background: #ffffff;
	border-radius: 4px;
	padding: 2.5rem;
	width: 90%;
	max-width: 450px;
	position: relative;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.popup-close {
	position: absolute;
	top: 10px;
	right: 15px;
	background: none;
	border: none;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
	color: #666;
}

.popup-title {
	font-family: "Manrope", sans-serif;
	font-weight: 700;
	font-size: 1.6rem;
	margin-bottom: 1.8rem;
	color: #1e1e1e;
}

.popup-form input,
.popup-form textarea {
	width: 100%;
	padding: 0.8rem 1rem;
	margin-bottom: 1rem;
	border: 1px solid #ddd;
	font-family: inherit;
	font-size: 0.95rem;
	border-radius: 2px;
}

.popup-form input:focus,
.popup-form textarea:focus {
	outline: none;
	border-color: #849372;
}

.btn-submit {
	width: 100%;
	padding: 0.9rem;
	background: #849372;
	color: #fff;
	border: none;
	font-family: "Manrope", sans-serif;
	font-weight: 700;
	font-size: 0.9rem;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s;
}

.btn-submit:hover {
	background: #6e7d5e;
}

/* === Адаптивность === */
@media (max-width: 850px) {
	.site-header {
		flex-wrap: wrap;
		padding: 1rem 1.5rem;
		gap: 1rem;
	}
	.logo {
		font-size: 1.5rem;
	}
	.main-nav {
		order: 3;
		width: 100%;
		justify-content: center;
		gap: 1.8rem;
		padding-top: 0.6rem;
		border-top: 1px solid #f0f0f0;
	}
	.header-contacts {
		align-items: flex-end;
	}
}

@media (max-width: 550px) {
	.main-nav {
		gap: 1.2rem;
		flex-wrap: wrap;
	}
	.main-nav a {
		font-size: 11px;
	}
	.phone-link {
		font-size: 1.1rem;
	}
}

/* Адаптация hero-секции */
@media (max-width: 768px) {
	.hero-slider {
		height: 400px;
	}
	.hero-panels {
		width: 45%;
	}
	.slides-wrapper {
		width: 55%;
	}
	.hero-panel {
		padding: 2rem 1.5rem;
	}
	.panel-title {
		font-size: 1.9rem;
	}
}

@media (max-width: 550px) {
	.hero-slider {
		flex-direction: column;
		height: 550px;
		margin-top: 0;
	}
	.hero-panels {
		width: 100%;
		height: 40%;
		position: relative;
		min-height: auto;
		order: 1;
	}
	.slides-wrapper {
		width: 100%;
		height: 60%;
		order: 2;
	}
	.hero-panel {
		position: relative;
		padding: 1.5rem;
		height: 100%;
	}
	.hero-panel.panel-2,
	.hero-panel.panel-3 {
		background-color: rgba(0, 0, 0, 0.8);
		color: #fff;
	}
	.hero-panel.panel-1 {
		background-color: rgba(239, 232, 214, 0.95);
	}
}

/* Подпись в галерее */
.gallery-caption {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 10px;
    font-size: 1rem;
    font-weight: 500;
    z-index: 10;
    backdrop-filter: blur(4px);
    font-family: 'Playfair Display', serif;
}

@media (max-width: 640px) {
    .gallery-caption {
        font-size: 0.8rem;
        padding: 6px;
        bottom: 10px;
    }
}