/* ============================================================
   Главная hleb52.ru — кастомные стили (без Bootstrap)
   Палитра: тёплая пекарня
   ============================================================ */

@font-face {
	font-family: skazkaforserge;
	src: url(/bootstrap/fonts/skazkaforserge-medium.ttf);
	font-display: swap;
}

:root {
	--c-brown: #7B2D00;
	--c-brown-dark: #5e2300;
	--c-brown-light: #8e3500;
	--c-cream: #fffaf3;
	--c-cream-2: #f7ecd9;
	--c-gold: #c79a4a;
	--c-gold-soft: #e2cfb6;
	--c-text: #2b1d12;
	--c-text-soft: #5b4c3e;
	--c-bg: #fff;
	--shadow-card: 0 6px 22px rgba(123, 45, 0, 0.10);
	--shadow-card-hover: 0 14px 32px rgba(123, 45, 0, 0.18);
	--radius: 12px;
	--container: 1140px;
}

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

body {
	margin: 0;
	background: #fff url('/images/fon.jpg');
	background-position: 50% 0;
	background-repeat: repeat-y;
	font-family: 'Ubuntu', Arial, sans-serif;
	color: var(--c-text);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--c-brown);
	text-decoration: none;
	transition: color 0.2s, opacity 0.2s;
}

a:hover {
	color: var(--c-brown-light);
	text-decoration: underline;
}

h1, h2, h3, h4 {
	font-family: 'Ubuntu', Arial, sans-serif;
	color: var(--c-brown);
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 16px 0;
}

h1 {
	font-size: 30px;
	text-align: center;
	margin: 28px 0 22px;
	position: relative;
}

h1::after {
	content: "";
	display: block;
	width: 80px;
	height: 3px;
	margin: 14px auto 0;
	background: linear-gradient(90deg, transparent, var(--c-gold), transparent);
	border-radius: 2px;
}

h2 {
	font-size: 24px;
	text-align: center;
}

h3 {
	font-size: 20px;
	margin: 28px 0 12px;
	padding-left: 14px;
	border-left: 4px solid var(--c-gold);
}

p {
	margin: 0 0 14px;
}

img {
	max-width: 100%;
}

/* ============================================================
   Контейнер
   ============================================================ */

.container {
	max-width: var(--container);
	min-width: 240px;
	margin: 0 auto;
	background: var(--c-bg);
	padding: 0 32px 40px;
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
	display: flow-root;
}

/* ============================================================
   Шапка #head (разметка из include/head.php)
   ============================================================ */

#head {
	max-width: var(--container);
	min-width: 240px;
	margin: 0 auto;
	height: 413px;
	background: url('/images/ipad_header.jpg') center/cover no-repeat;
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.logo {
	display: inline-block;
	font-size: 44px;
	color: #fdf3df;
	font-family: 'skazkaforserge', 'Ubuntu', serif;
	padding: 22px 32px;
	line-height: 1.05;
	text-shadow: 3px 3px 12px rgba(20, 10, 0, 0.7);
	letter-spacing: 0.01em;
}

.phone {
	display: inline-block;
	font-size: 30px;
	color: #fdf3df;
	font-family: 'skazkaforserge', 'Ubuntu', serif;
	padding: 22px 32px;
	text-shadow: 3px 3px 12px rgba(20, 10, 0, 0.7);
	letter-spacing: 0.04em;
}

.phone > a {
	color: #fff;
}

.phone > a:hover {
	color: #fff;
	text-decoration: none;
	opacity: 0.85;
}

.vk-group {
	position: absolute;
	right: 24px;
	bottom: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	background: rgba(123, 45, 0, 0.85);
	border-radius: 50%;
	transition: transform 0.2s, background 0.2s;
}

.vk-group:hover {
	transform: scale(1.08);
	background: var(--c-brown);
}

.vk-group svg {
	width: 26px;
	height: 26px;
}

/* ============================================================
   Навигация #nav (разметка из include/head.php)
   ============================================================ */

#nav {
	max-width: var(--container);
	min-width: 240px;
	margin: 0 auto;
	background: linear-gradient(180deg, var(--c-brown), var(--c-brown-dark));
	color: #fff;
	padding: 0 24px;
	min-height: 50px;
	position: sticky;
	top: 0;
	z-index: 50;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

#in_nav {
	max-width: 1092px;
	margin: 0 auto;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 4px 4px;
	padding: 6px 0;
}

#in_nav > a {
	color: #fff;
	font-size: 13px;
	letter-spacing: 0.10em;
	font-weight: 700;
	text-transform: uppercase;
	padding: 10px 10px;
	border-radius: 6px;
	transition: background 0.2s, opacity 0.2s;
}

#in_nav > a:hover {
	background: rgba(255, 255, 255, 0.10);
	color: #fff;
	text-decoration: none;
}

/* ============================================================
   Мобильное меню
   ============================================================ */

.mobile-menu {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	z-index: 9999;
	background: var(--c-cream);
	overflow-y: auto;
	transition: opacity 0.3s;
}

.mobile-menu.active {
	display: block;
	animation: animation-block 0.4s forwards;
}

.mobile-menu > a {
	display: block;
	text-align: center;
	margin: 22px 0;
	font-size: 18px;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--c-brown);
	letter-spacing: 0.08em;
}

.close-mobile-menu {
	padding: 24px 28px 0;
	font-size: 28px;
	text-align: right;
	cursor: pointer;
	color: var(--c-brown);
}

/* заменяем глификон bootstrap через юникод */
.glyphicon-remove::before {
	content: "\00D7";
	font-weight: 700;
	font-size: 32px;
	line-height: 1;
}

.glyphicon-align-justify::before {
	content: "\2630";
	font-size: 18px;
	margin-right: 6px;
	vertical-align: -2px;
}

@keyframes animation-block {
	0%   { opacity: 0; }
	100% { opacity: 0.97; }
}

/* ============================================================
   Bootstrap-шимы (только то, что используется в head.php / footer.php)
   ============================================================ */

.row {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
}

.col-md-6,
.col-sm-6,
.col-xs-6 {
	flex: 0 0 50%;
	max-width: 50%;
	padding: 0;
}

.text-right { text-align: right; }
.text-center { text-align: center; }

/* видимость по брейкпоинтам — bootstrap 3 совместимо */
.visible-xs,
.visible-sm { display: none; }

@media (max-width: 991px) {
	.hidden-sm { display: none !important; }
	.visible-sm { display: block !important; }
	.row.visible-sm { display: flex !important; }
}

@media (max-width: 767px) {
	.hidden-xs { display: none !important; }
	.visible-xs { display: block !important; }
	.row.visible-xs { display: flex !important; }
}

/* для строки в шапке (Меню / Заказать) */
@media (max-width: 991px) {
	#in_nav { display: none; }
}

.row.visible-xs.visible-sm {
	align-items: center;
	min-height: 50px;
	padding: 0 8px;
}

.open-mobile-menu {
	cursor: pointer;
	padding: 12px 16px;
	color: #fff;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: 14px;
}

.open-mobile-menu:hover { opacity: 0.85; }

.row.visible-xs.visible-sm .text-right a {
	color: #fff;
	display: inline-block;
	padding: 12px 16px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: 14px;
}

/* ============================================================
   Основная сетка контента
   ============================================================ */

.content-section {
	margin: 36px 0;
	color: var(--c-text);
	line-height: 1.75;
}

.content-section p {
	margin: 0 0 14px;
}

.content-section strong {
	color: var(--c-text);
}

.content-section a {
	border-bottom: 1px dashed rgba(123, 45, 0, 0.4);
}

.content-section a:hover {
	text-decoration: none;
	border-bottom-color: var(--c-brown);
}

.section-divider {
	border: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--c-gold-soft), transparent);
	margin: 40px 0;
}

/* ============================================================
   Сетка товаров
   ============================================================ */

.products-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	margin: 24px 0 40px;
}

.product-card {
	background: #fff;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-card);
	transition: transform 0.25s, box-shadow 0.25s;
	display: flex;
	flex-direction: column;
}

.product-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-card-hover);
}

.product-card a {
	display: block;
	overflow: hidden;
}

.product-card img {
	display: block;
	width: 100%;
	height: 340px;
	object-fit: cover;
	object-position: center;
	pointer-events: none;
	transition: transform 0.4s ease;
}

.product-card:hover img {
	transform: scale(1.04);
}

.product-card__title {
	padding: 16px 18px 18px;
	font-size: 15px;
	line-height: 1.45;
	color: var(--c-text);
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex-grow: 1;
}

.product-card__price {
	display: inline-block;
	font-size: 19px;
	font-weight: 700;
	color: var(--c-brown);
	letter-spacing: 0.01em;
}

/* ============================================================
   Картинка декора (lightbox)
   ============================================================ */

.dekor-image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--radius);
	box-shadow: var(--shadow-card);
	margin: 16px 0 24px;
	transition: transform 0.25s, box-shadow 0.25s;
}

.dekor-image:hover {
	transform: scale(1.01);
	box-shadow: var(--shadow-card-hover);
}

/* ============================================================
   Форма заказа
   ============================================================ */

.order-form {
	max-width: 540px;
	margin: 40px auto 60px;
	background: var(--c-cream);
	border: 1px solid var(--c-gold-soft);
	border-radius: 16px;
	padding: 30px 32px 28px;
	box-shadow: 0 8px 28px rgba(123, 45, 0, 0.08);
}

.order-form h3 {
	margin-top: 0;
	text-align: center;
	border-left: none;
	padding-left: 0;
}

.order-form h3::after {
	content: "";
	display: block;
	width: 60px;
	height: 2px;
	margin: 10px auto 0;
	background: var(--c-gold);
	border-radius: 2px;
}

.form-field {
	margin-bottom: 14px;
	position: relative;
}

.form-field label {
	display: block;
	font-size: 12px;
	color: var(--c-text-soft);
	margin-bottom: 6px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 500;
}

.form-mini-callback {
	display: block;
	width: 100%;
	padding: 12px 14px;
	font: inherit;
	font-size: 15px;
	color: var(--c-text);
	background: #fff;
	border: 1px solid var(--c-gold-soft);
	border-radius: 8px;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.form-mini-callback:focus {
	border-color: var(--c-brown);
	box-shadow: 0 0 0 3px rgba(123, 45, 0, 0.10);
}

textarea.form-mini-callback {
	min-height: 80px;
	resize: vertical;
	font-family: inherit;
}

.form-eror {
	color: #b01904;
	font-size: 12px;
	margin: 4px 0 0;
	display: none;
}

.form-actions {
	display: flex;
	justify-content: center;
	margin-top: 18px;
}

.button-mini-callback {
	display: inline-block;
	margin: 0;
	padding: 14px 36px;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fff;
	background: linear-gradient(180deg, var(--c-brown-light), var(--c-brown-dark));
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(123, 45, 0, 0.25);
	transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
	min-width: 200px;
	text-align: center;
}

.button-mini-callback:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 22px rgba(123, 45, 0, 0.35);
	opacity: 0.95;
}

.button-mini-callback:active {
	transform: translateY(0);
}

/* ============================================================
   Видео
   ============================================================ */

.video-section {
	margin: 40px 0;
}

.video-section iframe {
	display: block;
	width: 100%;
	height: 480px;
	max-height: 56.25vw;
	border: 0;
	border-radius: var(--radius);
	box-shadow: var(--shadow-card);
}

.video-player {
	position: relative;
	width: 100%;
	max-width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-card);
	background: #000;
}

.video-player--product {
	max-width: 720px;
}

.video-player__media {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: #000;
}

.video-player__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	transition: opacity 0.25s ease;
	pointer-events: none;
}

.video-player__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 96px;
	height: 96px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	color: #b01904;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
	transition: transform 0.2s ease, background 0.2s ease, opacity 0.25s ease;
}

.video-player__play:hover,
.video-player__play:focus-visible {
	background: #fff;
	transform: translate(-50%, -50%) scale(1.06);
	outline: none;
}

.video-player__play svg {
	width: 56px;
	height: 56px;
	display: block;
}

.video-player.is-playing .video-player__overlay,
.video-player.is-playing .video-player__play {
	opacity: 0;
	pointer-events: none;
}

/* ============================================================
   Призыв позвонить (телефон в тексте «Позвоните нам»)
   ============================================================ */

.phone-cta {
	display: block;
	margin: 14px 0 18px;
	font-size: 22px;
	font-weight: 700;
	color: var(--c-brown);
}

.phone-cta a {
	color: var(--c-brown);
	border-bottom: 2px solid var(--c-gold);
}

.phone-cta a:hover {
	color: var(--c-brown-light);
	border-bottom-color: var(--c-brown-light);
	text-decoration: none;
}

/* ============================================================
   Футер #footer (разметка из include/footer.php)
   ============================================================ */

#footer {
	max-width: var(--container);
	min-width: 240px;
	margin: 0 auto 24px;
	background: linear-gradient(180deg, var(--c-brown), var(--c-brown-dark));
	color: #fdf3df;
	text-align: center;
	padding: 18px 16px;
	font-size: 14px;
	letter-spacing: 0.02em;
}

/* ============================================================
   Галерея (portfolio.php, otzivi.php)
   ============================================================ */

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	margin: 24px 0 40px;
}

.gallery-grid a {
	display: block;
	overflow: hidden;
	border-radius: var(--radius);
	box-shadow: var(--shadow-card);
	transition: transform 0.25s, box-shadow 0.25s;
	background: #fff;
	border-bottom: 0;
}

.gallery-grid a:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-card-hover);
}

.gallery-grid img {
	display: block;
	width: 100%;
	height: 240px;
	object-fit: cover;
	object-position: center;
	transition: transform 0.4s ease;
}

.gallery-grid a:hover img {
	transform: scale(1.04);
}

/* ============================================================
   Текстовые страницы (tradition.php, kontakt.php, otzivi.php)
   ============================================================ */

.text-page {
	margin: 30px 0 50px;
	line-height: 1.75;
	font-size: 16px;
	color: var(--c-text);
}

.text-page p { margin: 0 0 14px; }

.text-page img.float-right {
	float: right;
	max-width: 380px;
	width: 100%;
	margin: 0 0 16px 24px;
	border-radius: var(--radius);
	box-shadow: var(--shadow-card);
}

.text-page::after {
	content: "";
	display: block;
	clear: both;
}

/* контакты */
.contact-card {
	margin: 36px auto 60px;
	max-width: 560px;
	background: var(--c-cream);
	border: 1px solid var(--c-gold-soft);
	border-radius: 16px;
	padding: 30px 32px;
	box-shadow: 0 8px 28px rgba(123, 45, 0, 0.08);
	line-height: 1.85;
	font-size: 16px;
}

.contact-card h3 {
	margin-top: 0;
	border-left: none;
	padding-left: 0;
	text-align: center;
}

.contact-card h3::after {
	content: "";
	display: block;
	width: 60px;
	height: 2px;
	margin: 10px auto 0;
	background: var(--c-gold);
	border-radius: 2px;
}

.contact-row {
	display: flex;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px dashed var(--c-gold-soft);
}

.contact-row:last-child { border-bottom: 0; }

.contact-row__label {
	min-width: 130px;
	color: var(--c-text-soft);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 500;
	padding-top: 2px;
}

.contact-row__value {
	flex: 1;
	font-size: 17px;
	font-weight: 500;
}

/* ============================================================
   Отзывы (otzivi.php)
   ============================================================ */

.reviews-intro {
	margin: 24px 0 32px;
	padding: 18px 22px;
	background: var(--c-cream);
	border-left: 4px solid var(--c-gold);
	border-radius: 0 10px 10px 0;
	font-size: 15px;
	line-height: 1.6;
}

.review {
	margin: 0 0 36px;
	padding: 22px 24px 18px;
	background: #fff;
	border-radius: var(--radius);
	box-shadow: var(--shadow-card);
}

.review__author {
	font-weight: 700;
	color: var(--c-brown);
	margin-bottom: 8px;
	font-size: 15px;
	letter-spacing: 0.02em;
}

.review__author .review__date {
	color: var(--c-text-soft);
	font-weight: 400;
	font-size: 13px;
	margin-left: 6px;
}

.review__text {
	line-height: 1.7;
	margin-bottom: 14px;
	color: var(--c-text);
}

.review__photo {
	display: block;
	width: 100%;
	max-width: 650px;
	margin: 0 auto;
	border-radius: var(--radius);
}

.review__gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	max-width: 650px;
	margin: 0 auto;
}

.review__gallery a {
	display: block;
	overflow: hidden;
	border-radius: 8px;
	box-shadow: 0 4px 14px rgba(123, 45, 0, 0.12);
	transition: transform 0.25s;
	border-bottom: 0;
}

.review__gallery a:hover { transform: translateY(-2px); }

.review__gallery img {
	width: 100%;
	height: 130px;
	object-fit: cover;
	object-position: center;
	display: block;
}

/* форма отзыва с загрузкой картинок */
.review-form {
	max-width: 640px;
	margin: 30px auto 50px;
	background: var(--c-cream);
	border: 1px solid var(--c-gold-soft);
	border-radius: 16px;
	padding: 30px 32px 28px;
	box-shadow: 0 8px 28px rgba(123, 45, 0, 0.08);
}

.review-form h3 {
	margin-top: 0;
	text-align: center;
	border-left: none;
	padding-left: 0;
}

.review-form h3::after {
	content: "";
	display: block;
	width: 60px;
	height: 2px;
	margin: 10px auto 0;
	background: var(--c-gold);
	border-radius: 2px;
}

.upload-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin: 16px 0;
}

.upload-cell {
	position: relative;
	aspect-ratio: 1 / 1;
	border: 2px dashed var(--c-gold-soft);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	transition: border-color 0.2s;
}

.upload-cell:hover { border-color: var(--c-brown); }

.upload-cell label.uploadbutton {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	margin: 0;
}

.upload-cell label.uploadbutton .button {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.upload-cell label.uploadbutton input { display: none; }

.upload-cell .img_file {
	max-width: 60%;
	max-height: 60%;
	width: auto;
	height: auto;
	object-fit: contain;
	opacity: 0.55;
	transition: opacity 0.2s;
}

.upload-cell.has-photo .img_file {
	max-width: 100%;
	max-height: 100%;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 1;
}

.delete_img_file {
	position: absolute;
	top: 6px;
	right: 6px;
	z-index: 2;
	display: none;
	width: 28px;
	height: 28px;
	background: rgba(123, 45, 0, 0.92);
	color: #fff;
	border-radius: 50%;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	text-align: center;
	padding: 0;
}

.delete_img_file::before {
	content: "\00D7";
	display: inline-block;
	line-height: 28px;
	font-weight: 700;
	font-size: 22px;
}

.delete_img_file .glyphicon { display: none; }

/* ============================================================
   FAQ на главной
   ============================================================ */

.faq__item {
	background: #fff;
	border: 1px solid var(--c-gold-soft);
	border-radius: 10px;
	margin-bottom: 12px;
	box-shadow: var(--shadow-card);
	overflow: hidden;
}

.faq__q {
	list-style: none;
	cursor: pointer;
	padding: 16px 48px 16px 20px;
	position: relative;
	font-weight: 500;
	color: var(--c-brown);
	font-size: 16px;
	line-height: 1.5;
}

.faq__q::-webkit-details-marker { display: none; }

.faq__q::after {
	content: "+";
	position: absolute;
	top: 50%;
	right: 18px;
	transform: translateY(-50%);
	font-size: 24px;
	font-weight: 400;
	color: var(--c-gold);
	transition: transform 0.2s;
}

.faq__item[open] .faq__q::after {
	content: "\2212";
}

.faq__q:hover { color: var(--c-brown-light); }

.faq__a {
	padding: 0 20px 18px;
	color: var(--c-text);
	line-height: 1.7;
}

/* ============================================================
   Блок отзывов на главной (без фото)
   ============================================================ */

.reviews-home__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 18px;
	margin: 20px 0 18px;
}

.review-mini {
	background: #fff;
	border-radius: var(--radius);
	box-shadow: var(--shadow-card);
	padding: 20px 22px;
	display: flex;
	flex-direction: column;
}

.review-mini__text {
	line-height: 1.7;
	color: var(--c-text);
	margin-bottom: 12px;
	flex: 1 1 auto;
}

.review-mini__author {
	font-weight: 700;
	color: var(--c-brown);
	font-size: 15px;
	letter-spacing: 0.02em;
}

.review-mini__date {
	color: var(--c-text-soft);
	font-weight: 400;
	font-size: 13px;
	margin-left: 6px;
}

.reviews-home__more {
	text-align: center;
	margin: 6px 0 0;
}

.reviews-home__more a {
	font-weight: 500;
	border-bottom: 1px dashed rgba(123, 45, 0, 0.4);
}

.reviews-home__more a:hover {
	text-decoration: none;
	border-bottom-color: var(--c-brown);
}

/* ============================================================
   Карточка товара (include/product_card.php)
   ============================================================ */

.product-card-wrap {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 36px;
	margin: 30px 0 24px;
	align-items: start;
}

.product-card-photo-slider {
	width: 100%;
	overflow: hidden;
	border-radius: var(--radius);
	box-shadow: var(--shadow-card);
	background: #fff;
}

.product-card-photo-slider .owl-carousel .item,
.product-card-photo-slider .main-photo-page-good,
.product-card-photo-slider .second-photo-page-good {
	display: block;
	width: 100%;
}

.product-card-photo-slider img {
	display: block;
	width: 100%;
	height: 480px;
	object-fit: cover;
	object-position: center;
	cursor: zoom-in;
}

.product-card-info {
	width: 100%;
}

.title-in-page-good {
	font-size: 26px;
	font-weight: 700;
	color: var(--c-brown);
	margin: 0 0 16px;
	line-height: 1.25;
	text-align: left;
}

.title-in-page-good::after { display: none; }

.wrap-order-children-party {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 16px 0 22px;
	padding: 16px 18px;
	background: var(--c-cream);
	border-radius: var(--radius);
	border: 1px solid var(--c-gold-soft);
}

.wrap-button-product_in_cart { display: flex; }

.add-cart-button-in-page-good,
.button-new-style {
	background: linear-gradient(180deg, var(--c-brown-light), var(--c-brown-dark));
	color: #fff;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 14px 28px;
	border-radius: 10px;
	cursor: pointer;
	font-size: 14px;
	transition: transform 0.2s, box-shadow 0.2s;
	box-shadow: 0 6px 18px rgba(123, 45, 0, 0.25);
	user-select: none;
	display: inline-block;
	border: 0;
	font-family: inherit;
}

.add-cart-button-in-page-good:hover,
.button-new-style:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 22px rgba(123, 45, 0, 0.35);
}

.wrap-price-children-party {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	line-height: 1.2;
}

.old-price-children-party {
	text-decoration: line-through;
	color: var(--c-text-soft);
	font-size: 14px;
}

.price-children-party {
	font-weight: 700;
	font-size: 26px;
	color: var(--c-brown);
}

.product-variable {
	margin: 18px 0 22px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.product-variable__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	background: #fff;
	border: 1px solid var(--c-gold-soft);
	border-radius: 10px;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s;
}

.product-variable__item:hover { border-color: var(--c-brown); }

.product-variable__item.active {
	border-color: var(--c-brown);
	background: var(--c-cream);
}

.product-variable__item_radio {
	width: 20px;
	height: 20px;
	min-width: 20px;
	border: 2px solid var(--c-brown);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.radio-indicator {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: transparent;
	transition: background 0.2s;
}

.product-variable__item.active .radio-indicator { background: var(--c-brown); }

.product-variable__item_info {
	flex: 1;
	font-size: 14px;
	color: var(--c-text);
}

.product-additional-service {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 22px 0;
}

.product-additional-service__item {
	flex: 1;
	min-width: 130px;
	max-width: 150px;
	padding: 12px;
	background: #fff;
	border: 1px solid var(--c-gold-soft);
	border-radius: 10px;
	transition: border-color 0.2s, background 0.2s;
}

.product-additional-service__item:hover { border-color: var(--c-brown); }

.product-additional-service__item.active {
	border-color: var(--c-brown);
	background: var(--c-cream);
}

.product-additional-service__item_title {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	margin-bottom: 8px;
}

.product-additional-service__item_checkbox {
	width: 18px;
	height: 18px;
	min-width: 18px;
	border: 2px solid var(--c-brown);
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.checkbox-indicator {
	width: 8px;
	height: 8px;
	background: transparent;
	border-radius: 1px;
	transition: background 0.2s;
}

.product-additional-service__item.active .checkbox-indicator { background: var(--c-brown); }

.product-additional-service__item_text {
	font-size: 14px;
	font-weight: 500;
}

.product-additional-service__item img {
	width: 100%;
	height: 90px;
	object-fit: cover;
	border-radius: 6px;
	cursor: zoom-in;
}

.item-product-info {
	margin: 16px 0;
}

.in_stock_cat {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: var(--c-cream);
	border-radius: 20px;
	font-size: 13px;
	color: var(--c-text-soft);
}

.in_stock_cat svg {
	width: 16px;
	height: 16px;
	fill: var(--c-brown);
}

/* нав-меню под карточкой */
.bottom-quest-menu {
	margin: 28px 0 18px;
	border-bottom: 1px solid var(--c-gold-soft);
}

.wrap-items-bottom-quest-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.item-bottom-quest-menu {
	padding: 12px 18px;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--c-text-soft);
	cursor: pointer;
	border-bottom: 2px solid transparent;
	transition: color 0.2s, border-color 0.2s;
}

.item-bottom-quest-menu:hover {
	color: var(--c-brown);
	border-bottom-color: var(--c-gold);
}

.description-in-page-good {
	margin: 24px 0;
	line-height: 1.75;
	color: var(--c-text);
}

.quest-h2 {
	font-size: 22px;
	color: var(--c-brown);
	margin: 32px 0 14px;
	padding-left: 14px;
	border-left: 4px solid var(--c-gold);
}

/* ----- модалка обратной связи ----- */
.mini-modal-wrap {
	position: fixed;
	inset: 0;
	background: rgba(20, 10, 0, 0.7);
	z-index: 3000;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	overflow-y: auto;
	padding: 5vh 16px;
}

.mini-modal-wrap.active_popup {
	opacity: 1;
	pointer-events: auto;
}

.svg-close-modal-wrap {
	position: fixed;
	top: 16px;
	right: 16px;
	cursor: pointer;
	z-index: 3010;
	width: 36px;
	height: 36px;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s;
}

.svg-close-modal-wrap:hover { transform: rotate(90deg); }

.svg-close-modal {
	width: 18px;
	height: 18px;
	fill: var(--c-brown);
}

.mini-modal {
	width: 100%;
	max-width: 480px;
	background: #fff;
	border-radius: 16px;
	padding: 28px 28px 24px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	margin: auto;
}

.mini-modal-title {
	font-size: 16px;
	margin: 0 0 20px;
	color: var(--c-text);
	text-align: center;
	line-height: 1.5;
}

.form-handler-area { display: block; }

.form-fluid {
	display: block;
	width: 100%;
	padding: 12px 14px;
	font: inherit;
	font-size: 15px;
	color: var(--c-text);
	background: #fff;
	border: 1px solid var(--c-gold-soft);
	border-radius: 8px;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
	margin-bottom: 12px;
}

.form-fluid:focus {
	border-color: var(--c-brown);
	box-shadow: 0 0 0 3px rgba(123, 45, 0, 0.10);
}

.form-handler-area .input-group {
	display: flex;
	flex-direction: column;
	margin-bottom: 12px;
}

.form-handler-area .input-group-addon {
	font-size: 12px;
	color: var(--c-text-soft);
	margin-bottom: 6px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 500;
	background: transparent;
	border: 0;
	padding: 0;
}

.form-handler-area .input-group .form-fluid { margin-bottom: 0; }

.button-modal-form-go {
	display: inline-block;
	margin: 12px auto 0;
	padding: 14px 32px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fff;
	background: linear-gradient(180deg, var(--c-brown-light), var(--c-brown-dark));
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(123, 45, 0, 0.25);
	transition: transform 0.2s, box-shadow 0.2s;
}

.button-modal-form-go:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 22px rgba(123, 45, 0, 0.35);
}

.form-policy-information {
	display: block;
	font-size: 11px;
	color: var(--c-text-soft);
	text-align: center;
	margin-top: 12px;
	line-height: 1.5;
}

.form-thanks-area { display: none; }

/* нав-точки прокрутки до якорей */
.navi_point { scroll-margin-top: 70px; }

/* owl carousel — обёртки на случай, если плагин не успел инициализироваться */
.owl-carousel:not(.owl-loaded) > div + div { display: none; }

.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.92);
	color: var(--c-brown);
	font-size: 28px;
	line-height: 1;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 0;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
	cursor: pointer;
	transition: background 0.2s, transform 0.2s;
}

.owl-carousel .owl-nav button.owl-prev { left: 12px; }
.owl-carousel .owl-nav button.owl-next { right: 12px; }

.owl-carousel .owl-nav button:hover {
	background: var(--c-brown);
	color: #fff;
}

.owl-dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0; }
.owl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c-gold-soft); border: 0; cursor: pointer; padding: 0; }
.owl-dot.active { background: var(--c-brown); }

.message-add-cart {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	background: var(--c-brown);
	color: #fff;
	padding: 12px 20px;
	border-radius: 10px;
	font-size: 14px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s;
	z-index: 4000;
}

.message-add-cart.active {
	opacity: 1;
	pointer-events: auto;
}

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

@media (max-width: 991px) {
	.container { padding: 0 20px 32px; }
	#head { height: auto; aspect-ratio: 988 / 413; }
	.logo { font-size: 36px; padding: 18px 24px; }
	.phone { font-size: 24px; padding: 18px 24px; }
	h1 { font-size: 26px; }
	.products-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
	.product-card img { height: 340px; }
	.video-section iframe { height: auto; aspect-ratio: 16 / 9; max-height: none; }
	.gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.gallery-grid img { height: 200px; }
	.review__gallery img { height: 110px; }

	.product-card-wrap {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.product-card-photo-slider img { height: 360px; }
	.title-in-page-good { font-size: 22px; }
}

@media (max-width: 767px) {
	body { font-size: 15px; }
	.container { padding: 0 14px 28px; }

	#head {
		background-image: url('/images/ipad_header.jpg');
		height: auto;
		aspect-ratio: 988 / 413;
		min-height: 180px;
		width:100%;
	}

	.logo {
		font-size: 26px;
		padding: 12px 14px;
		line-height: 1;
	}

	.phone { display: none; }

	.vk-group {
		right: 14px;
		top: 12px;
		bottom: auto;
		width: 38px;
		height: 38px;
	}

	.vk-group svg { width: 20px; height: 20px; }

	#nav { padding: 0 8px; min-height: 50px; }

	h1 {
		font-size: 22px;
		margin: 18px 0 14px;
	}

	h3 {
		font-size: 18px;
		margin: 22px 0 10px;
	}

	.products-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px;
	}

	.reviews-home__grid { grid-template-columns: 1fr; gap: 14px; }

	.product-card img { height: 200px; }

	.product-card__title {
		padding: 12px 12px 14px;
		font-size: 13px;
		line-height: 1.4;
	}

	.product-card__price { font-size: 16px; }

	.order-form {
		padding: 22px 18px 20px;
		margin: 28px 0 40px;
		border-radius: 12px;
	}

	.button-mini-callback {
		width: 100%;
		min-width: 0;
		padding: 14px 18px;
		font-size: 14px;
	}

	.phone-cta { font-size: 18px; }

	#footer {
		font-size: 12px;
		padding: 14px 12px;
	}

	.gallery-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}

	.gallery-grid img { height: 150px; }

	.text-page img.float-right {
		float: none;
		display: block;
		margin: 0 auto 16px;
		max-width: 100%;
	}

	.contact-card {
		padding: 22px 18px;
		margin: 24px 0 40px;
		border-radius: 12px;
	}

	.contact-row {
		flex-direction: column;
		gap: 2px;
	}

	.contact-row__label {
		min-width: 0;
		font-size: 11px;
	}

	.contact-row__value { font-size: 15px; }

	.review {
		padding: 16px 16px 14px;
		margin-bottom: 24px;
	}

	.review__gallery img { height: 90px; }

	.review-form {
		padding: 20px 16px;
		margin: 24px 0 36px;
		border-radius: 12px;
	}

	.upload-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 8px;
	}

	.product-card-photo-slider img { height: 280px; }

	.wrap-order-children-party {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}

	.wrap-button-product_in_cart { justify-content: center; }

	.wrap-price-children-party { align-items: center; }

	.product-additional-service { gap: 10px; }

	.product-additional-service__item { min-width: 100px; padding: 8px; }

	.product-additional-service__item img { height: 70px; }

	.mini-modal { padding: 22px 18px 20px; border-radius: 12px; }

	.item-bottom-quest-menu {
		padding: 10px 12px;
		font-size: 12px;
	}

	.quest-h2 { font-size: 18px; }
}

@media (max-width: 480px) {
	.product-card img { height: 160px; }
	.logo { font-size: 22px; }
	.gallery-grid img { height: 160px; }
}


/* ============================================================
   2026-11-03: персональные данные — галочка согласия в формах,
   ссылки в подвале, страницы politika.php и soglasie.php
   ============================================================ */

label.form-soglasie {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 4px 0 0;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.45;
	letter-spacing: normal;
	text-transform: none;
	text-align: left;
	color: var(--c-text-soft);
	cursor: pointer;
}

label.form-soglasie input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--c-brown);
	cursor: pointer;
}

label.form-soglasie a {
	color: var(--c-brown);
	border-bottom: 1px dashed rgba(123, 45, 0, 0.4);
}

label.form-soglasie.is-error,
label.form-soglasie.is-error a {
	color: #b01904;
}

.footer-pdn {
	display: block;
	margin-top: 6px;
	font-size: 12px;
}

#footer .footer-pdn a {
	color: #fdf3df;
	border-bottom: 1px dashed rgba(253, 243, 223, 0.5);
}

#footer .footer-pdn a:hover {
	text-decoration: none;
	border-bottom-color: #fdf3df;
}

.pdn-page h2 {
	text-align: left;
	font-size: 20px;
	margin: 28px 0 10px;
}

.pdn-page ul {
	margin: 0 0 14px;
	padding-left: 22px;
}

.pdn-page li { margin-bottom: 6px; }
