/* Секции страниц (главная и др.): баннер, плитки, слайдеры, карточки «Правильный мёд», награды, отзывы.
   Размеры и отступы сняты со старого сайта (ширина 1440). */

/* ===== Поток секций: между блоками 80px, под заголовком — 40px ===== */
.vp-home { margin: 0; background: #fff; }
.wp-site-blocks > .vp-home { margin-block-start: 0; }
.vp-sections { padding-bottom: 60px; }
.vp-sections.is-layout-constrained > * { margin-block: 0; }
.vp-sections.is-layout-constrained > * + * { margin-block-start: 80px; }
.vp-sections.is-layout-constrained > .vp-hero + * { margin-block-start: 50px; }
.vp-sections.is-layout-constrained > .vp-script-title + * { margin-block-start: 40px; }
.vp-sections.is-layout-constrained > .vp-home-h1 + * { margin-block-start: 50px; }
.vp-sections.is-layout-constrained > .vp-reviews-title + .vp-reviews-link { margin-block-start: 0; }
.vp-sections.is-layout-constrained > .vp-reviews-link + * { margin-block-start: 40px; }
.vp-sections.is-layout-constrained > .vp-ach + .vp-slider { margin-block-start: 70px; }
.vp-sections .vp-contact { padding: 0; }
/* у частей шаблона тема Ollie жёстко обнуляет margin-top (!important) — отступ делаем внутренним */
.vp-sections.is-layout-constrained > .wp-block-template-part { padding-top: 80px; }

.vp-sections figure.wp-block-image { margin: 0; }
.vp-sections p { margin: 0; }

/* Заголовки секций — рукописный шрифт */
:root .vp-script-title {
	font-family: var(--wp--preset--font-family--script);
	font-weight: 600;
	font-size: 52px;
	line-height: 40px;
	color: var(--vp-honey);
	letter-spacing: 0;
}

/* ===== Первый экран ===== */
.vp-hero {
	position: relative;
	height: 810px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	color: #fff;
}
.vp-hero.is-layout-constrained > * { margin-block: 0; position: relative; z-index: 1; }
.vp-hero > .vp-hero__bg { position: absolute; inset: 0; z-index: 0; max-width: none; margin: 0; }
.vp-hero__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vp-hero::after { content: ""; position: absolute; inset: 0; z-index: 0; background: rgba(0, 0, 0, .5); pointer-events: none; }
.vp-hero .vp-hero__logo img { width: 300px; height: 180px; display: block; }
.vp-hero.is-layout-constrained > .vp-hero__slogan {
	margin-top: 30px;
	font-family: var(--wp--preset--font-family--script);
	font-weight: 600;
	font-size: 42px;
	line-height: 70px;
	color: #fff;
}
.vp-hero.is-layout-constrained > .vp-hero__buttons { margin-top: 40px; }

/* Кнопки */
.vp-btn-white .wp-block-button__link {
	padding: 12px 20px;
	border-radius: 4px;
	background: #fff;
	color: var(--vp-brown);
	font-size: 16px;
	line-height: 19px;
	font-weight: 700;
	text-transform: uppercase;
}
.vp-btn-white .wp-block-button__link:hover { background: var(--vp-honey); color: #fff; }

.vp-btn-line .wp-block-button__link {
	padding: 16px 26px;
	border-radius: 4px;
	background: transparent;
	color: var(--vp-brown);
	box-shadow: inset 0 0 0 1px var(--vp-brown);
	font-size: 16px;
	line-height: 19px;
	font-weight: 700;
	text-transform: uppercase;
}
.vp-btn-line .wp-block-button__link:hover { background: var(--vp-brown); color: #fff; }

/* ===== Плитки разделов ===== */
.vp-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.vp-tiles > * { margin: 0; }
.vp-tile { position: relative; height: 187px; border-radius: 24px; overflow: hidden; }
.vp-tile__img, .vp-tile__img a, .vp-tile__img img { display: block; width: 100%; height: 100%; }
.vp-tile__img img { object-fit: cover; transition: transform .4s ease; }
.vp-tile::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .5); pointer-events: none; border-radius: inherit; transition: background .3s; }
.vp-tile:hover::after { background: rgba(0, 0, 0, .35); }
.vp-tile .vp-tile__label {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 16px;
	text-align: center;
	color: #fff;
	font-size: 20px;
	line-height: 24px;
	font-weight: 700;
	pointer-events: none;
}

/* ===== Слайдер (assets/js/site.js) =====
   В редакторе и до запуска скрипта — просто ряд карточек. */
.vp-slider { --vp-per-view: 1; --vp-gap: 20px; position: relative; }
.vp-slider > .vp-slider__viewport { overflow: hidden; }
.vp-slider__track { display: flex; gap: var(--vp-gap); transition: transform .5s ease; will-change: transform; }
.vp-slider__track > * {
	flex: 0 0 calc((100% - (var(--vp-per-view) - 1) * var(--vp-gap)) / var(--vp-per-view));
	min-width: 0;
	margin: 0 !important;
}
.vp-slider:not(.is-ready) { display: flex; gap: var(--vp-gap); overflow: hidden; }
.vp-slider:not(.is-ready) > * { flex: 0 0 calc((100% - (var(--vp-per-view) - 1) * var(--vp-gap)) / var(--vp-per-view)); margin: 0; }
.vp-slider__btn {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 40px;
	height: 40px;
	margin-top: -20px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 3px 5px -2px rgba(93, 66, 52, .5);
	color: var(--vp-brown);
	cursor: pointer;
}
.vp-slider__btn::before {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: url(../icons/chevron-right.svg) center / contain no-repeat;
	mask: url(../icons/chevron-right.svg) center / contain no-repeat;
	opacity: .5;
}
.vp-slider__btn:hover::before { opacity: 1; }
.vp-slider__btn--prev::before { transform: scaleX(-1); }
.vp-slider__btn[hidden] { display: none; }
.vp-slider__btn--prev { left: -20px; }
.vp-slider__btn--next { right: -20px; }

/* История пасеки: фото слева, текст справа */
.vp-slider--story { --vp-per-view: 1; --vp-gap: 20px; }
.vp-story { display: flex; align-items: center; gap: 40px; height: 560px; }
.vp-story > * { margin: 0 !important; }
.vp-story__img { flex: 0 0 780px; height: 560px; border-radius: 24px; overflow: hidden; }
.vp-story__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vp-story__text { flex: 1 1 auto; min-width: 0; }
.vp-story__text > * { margin: 0; }
.vp-story__text p { font-size: 20px; line-height: 24px; }
.vp-story__text p + p { margin-top: 16px; }
.vp-story__text .vp-story__title {
	max-width: 280px;
	margin-bottom: 20px;
	font-family: var(--wp--preset--font-family--script);
	font-weight: 600;
	font-size: 36px;
	line-height: 40px;
	color: var(--vp-honey);
}
.vp-story__text .vp-story__title + p { margin-top: 0; }
.vp-story__text .vp-story__sign { font-weight: 700; color: var(--vp-honey); }
.vp-story__buttons { margin-top: 36px !important; }
.vp-story__buttons .wp-block-button__link {
	width: 100%;
	padding: 8px 20px;
	border-radius: 4px;
	background: var(--vp-honey);
	color: #fff;
	font-size: 14px;
	line-height: 17px;
	font-weight: 700;
	text-transform: uppercase;
}
.vp-story__buttons .wp-block-button__link:hover { background: var(--vp-honey-light); }

/* ===== «Правильный мёд. Он какой?» — при наведении название сменяется текстом ===== */
.vp-flips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.vp-flips > * { margin: 0; }
.vp-flip {
	position: relative;
	height: 400px;
	padding: 20px 50px;
	border-radius: 8px;
	background: url(../img/paper.webp) center / cover;
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
}
.vp-flip > * { margin: 0 !important; transition: opacity .15s cubic-bezier(.455, .03, .515, .955); }
.vp-flip__front {
	position: absolute;
	inset: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.vp-flip .vp-flip__label {
	font-family: var(--wp--preset--font-family--script);
	font-weight: 600;
	font-size: 24px;
	line-height: 35px;
	text-align: center;
}
.vp-flip__back { opacity: 0; }
.vp-flip__back > * { margin: 0; }
.vp-flip .vp-flip__title { font-size: 24px; line-height: 29px; font-weight: 700; }
.vp-flip__back p:not(.vp-flip__title) { margin-top: 6px; font-size: 20px; line-height: 24px; }
.vp-flip:hover .vp-flip__front, .vp-flip:focus-within .vp-flip__front, .vp-flip.is-open .vp-flip__front { opacity: 0; }
.vp-flip:hover .vp-flip__back, .vp-flip:focus-within .vp-flip__back, .vp-flip.is-open .vp-flip__back { opacity: 1; }

/* ===== Рецепт правильного мёда ===== */
.vp-recipe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.vp-recipe > * { margin: 0; }
.vp-recipe__item > * { margin: 0; }
.vp-recipe__icon img { width: 150px; height: 150px; object-fit: contain; display: block; margin: 0 auto; }
:root .vp-recipe__title { margin-top: 20px; font-size: 24px; line-height: 29px; font-weight: 700; letter-spacing: 0; }
.vp-recipe__item p { margin-top: 10px; font-size: 20px; line-height: 24px; }
.vp-recipe__item p a { color: var(--vp-honey); text-decoration: none; }
.vp-recipe__item p a:hover { color: var(--vp-honey-light); }

/* ===== Нас показывают, о нас пишут ===== */
.vp-media { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.vp-media > * { margin: 0; }
.vp-media__item > * { margin: 0; }
.vp-media__img a { display: block; }
.vp-media__img img { width: 100%; height: 312px; object-fit: cover; border-radius: 24px; display: block; }
.vp-media .vp-media__title { margin-top: 16px; font-size: 20px; line-height: 24px; }
.vp-media .vp-media__source { margin-top: 8px; font-size: 16px; line-height: 19px; }
.vp-media__item .wp-block-buttons { margin-top: 16px; }

/* ===== Наши достижения ===== */
.vp-ach { position: relative; height: 540px; }
.vp-ach > .vp-ach__photo { margin: 0; height: 540px; border-radius: 24px; overflow: hidden; }
.vp-ach__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vp-ach__card {
	position: absolute;
	right: 50px;
	bottom: -20px;
	width: 400px;
	padding: 30px;
	border-radius: 24px;
	isolation: isolate;
}
.vp-ach__card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background: url(../img/paper-card.webp) center / cover;
	opacity: .7;
}
.vp-ach__card > * { margin: 0; }
.vp-ach__card .vp-ach__title { font-size: 24px; line-height: 29px; font-weight: 700; }
.vp-ach__card p:not(.vp-ach__title) { font-size: 20px; line-height: 24px; }
.vp-ach__card .vp-ach__title + p { margin-top: 26px; }
.vp-ach__card p + p { margin-top: 16px; }

.vp-slider--awards { --vp-per-view: 4; --vp-gap: 20px; }
.vp-slider--awards .vp-slider__btn--prev { left: 10px; }
.vp-slider--awards .vp-slider__btn--next { right: 10px; }
.vp-award { display: flex; align-items: flex-start; }
.vp-award > * { margin: 0 !important; }
.vp-award__icon { flex: 0 0 40px; }
.vp-award__icon img { width: 40px; height: auto; display: block; }
.vp-award__body { margin-left: 20px !important; display: flex; flex-direction: column; gap: 8px; }
.vp-award__body > * { margin: 0; }
.vp-award .vp-award__title { font-size: 20px; line-height: 24px; font-weight: 700; }
.vp-award .vp-award__text { font-size: 16px; line-height: 19px; }
.vp-award .vp-award__link { font-size: 16px; line-height: 19px; }
.vp-award .vp-award__link a { color: var(--vp-honey); text-decoration: none; }
.vp-award .vp-award__link a:hover { color: var(--vp-honey-light); }

/* ===== Отзывы ===== */
.vp-reviews-link { text-align: center; }
.vp-reviews-link a { display: inline-block; padding: 6px 0; color: var(--vp-honey); text-decoration: none; font-size: 16px; line-height: 19px; }
.vp-reviews-link a:hover { color: var(--vp-honey-light); }
.vp-slider--reviews { --vp-per-view: 2; --vp-gap: 30px; }
.vp-slider--reviews .vp-slider__track { align-items: stretch; }
.vp-slider--reviews .vp-slider__btn { width: 30px; height: 30px; margin-top: -15px; background: none; box-shadow: none; color: #000; }
.vp-slider--reviews .vp-slider__btn::before { opacity: 1; inset: -3px; width: 36px; height: 36px; }
.vp-slider--reviews .vp-slider__btn--prev { left: -50px; }
.vp-slider--reviews .vp-slider__btn--next { right: -50px; }
.vp-review {
	display: flex;
	flex-direction: column;
	padding: 30px;
	border-radius: 24px;
	background: var(--vp-brown-04);
	font-size: 16px;
	line-height: 19px;
}
.vp-review > * { margin: 0; }
.vp-review p { margin: 0; }
.vp-review__date { color: var(--vp-honey); }
.vp-review__title { margin-top: 16px !important; font-weight: 700; }
.vp-review__text { margin-top: 16px; flex: 1 1 auto; text-align: justify; line-height: 24px; }
.vp-review__text p + p { margin-top: 16px; }
.vp-review__author { margin-top: 16px; }
.vp-review__name { font-weight: 700; }
.vp-review__label { margin-top: 4px !important; color: var(--vp-brown-50); }

/* ===== Преимущества внизу страницы ===== */
.vp-advantages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.vp-advantages > * { margin: 0; }
.vp-adv { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.vp-adv > * { margin: 0 !important; }
.vp-adv__icon { flex: 0 0 60px; }
.vp-adv__icon img { width: 60px; height: 60px; display: block; }
.vp-adv .vp-adv__text { font-size: 16px; line-height: 19px; }

/* ===== Обычные страницы (шаблоны page и page-simple) ===== */
.vp-content-page { padding-bottom: 50px; }
.vp-content-page > .vp-breadcrumbs { margin-bottom: 18px !important; }
:root .vp-page-title { margin: 0 !important; font-size: 52px; line-height: 62px; font-weight: 700; letter-spacing: 0; }
.vp-content-page > .vp-page-content { margin-top: 40px !important; }
.vp-page-content > * { margin-block: 0; }
.vp-page-content.is-layout-constrained > * + * { margin-block-start: 30px; }

/* Контакты: карта и карточка */
.vp-contacts { display: flex; gap: 30px; height: 400px; }
.vp-contacts > * { margin: 0 !important; }
.vp-contacts__map { flex: 0 0 820px; width: 820px; height: 400px; border: 0; border-radius: 8px; display: block; }
.vp-contacts__card {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px;
	border-radius: 4px;
	background: #fff;
}
.vp-contacts__card > * { margin: 0 !important; }
.vp-contacts__item { display: flex; flex-direction: column; gap: 4px; }
.vp-contacts__item > * { margin: 0 !important; }
.vp-contacts .vp-contacts__label { font-size: 12px; line-height: 14px; color: var(--vp-brown-50); }
.vp-contacts .vp-contacts__value { font-size: 16px; line-height: 19px; }
.vp-contacts .vp-contacts__value--big { font-size: 24px; line-height: 29px; font-weight: 700; }
.vp-contacts__value a { color: var(--vp-brown); text-decoration: none; }
.vp-contacts__value a:hover { color: var(--vp-honey); }
.vp-contacts .vp-socials { gap: 8px !important; margin: 0; padding: 0; }
.vp-contacts .vp-socials .wp-social-link { color: var(--vp-honey) !important; }

/* ===== Просмотр картинки (награды) ===== */
.vp-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	background: rgba(0, 0, 0, .8);
	cursor: zoom-out;
}
.vp-lightbox[hidden] { display: none; }
.vp-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 10px 40px rgba(0, 0, 0, .4); }
.vp-lightbox__close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--vp-brown);
	cursor: pointer;
}
.vp-lightbox__close::before {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: url(../icons/x.svg) center / contain no-repeat;
	mask: url(../icons/x.svg) center / contain no-repeat;
}

/* ===== Планшеты и телефоны ===== */
@media (max-width: 1240px) {
	.vp-slider__btn--prev { left: 0; }
	.vp-slider__btn--next { right: 0; }
	.vp-slider--reviews .vp-slider__btn--prev { left: -10px; }
	.vp-slider--reviews .vp-slider__btn--next { right: -10px; }
	.vp-story__img { flex-basis: 60%; }
}
@media (max-width: 1024px) {
	.vp-contacts { flex-direction: column; height: auto; }
	.vp-contacts__map { flex: 0 0 auto; width: 100%; height: 320px; }
	.vp-hero { height: 600px; }
	.vp-tiles, .vp-flips, .vp-media { grid-template-columns: repeat(2, 1fr); }
	.vp-recipe { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
	.vp-slider--awards { --vp-per-view: 2; }
	.vp-advantages { grid-template-columns: 1fr; gap: 20px; }
	.vp-ach { height: auto; }
	.vp-ach > .vp-ach__photo { height: 400px; }
	.vp-ach__card { position: relative; right: auto; bottom: auto; width: auto; margin-top: -60px !important; margin-inline: 20px !important; }
}
@media (max-width: 781px) {
	:root .vp-page-title { font-size: 32px; line-height: 38px; }
	.vp-content-page > .vp-page-content { margin-top: 24px !important; }
	:root .vp-script-title { font-size: 36px; line-height: 40px; }
	.vp-sections.is-layout-constrained > * + * { margin-block-start: 60px; }
	.vp-sections.is-layout-constrained > .wp-block-template-part { padding-top: 60px; }
	.vp-hero { height: 520px; padding: 0 16px; }
	.vp-hero .vp-hero__logo img { width: 200px; height: 120px; }
	.vp-hero.is-layout-constrained > .vp-hero__slogan { font-size: 30px; line-height: 40px; }
	.vp-tiles { grid-template-columns: 1fr 1fr; gap: 12px; }
	.vp-tile { height: 120px; border-radius: 16px; }
	.vp-tile .vp-tile__label { font-size: 16px; line-height: 19px; padding: 0 8px; }
	.vp-story { flex-direction: column; height: auto; gap: 24px; }
	.vp-story__img { flex: 0 0 auto; width: 100%; height: 260px; }
	.vp-slider--story .vp-slider__btn { top: 130px; }
	.vp-flips, .vp-media { grid-template-columns: 1fr; }
	.vp-flip { height: auto; min-height: 320px; }
	.vp-recipe { grid-template-columns: 1fr; }
	.vp-slider--awards { --vp-per-view: 1; }
	.vp-slider--reviews { --vp-per-view: 1; }
	.vp-slider--reviews .vp-slider__btn { display: none; }
	.vp-review { padding: 20px; }
	.vp-ach > .vp-ach__photo { height: 260px; }
	.vp-ach__card { margin-inline: 0 !important; padding: 20px; }
}
