/* =========================================================================
   lyudmila.watch — сторінки на блоках (Про нас, Оплата і доставка, Контакти, Бренди)
   Підключається на сайті і в редакторі блоків (inc/pages.php).
   Класи задаються в блоках: «Додатково» → «Додаткові класи CSS».
   ========================================================================= */

:root {
	--lyd-brand: #1f4f38;
	--lyd-brand-dark: #163a29;
	--lyd-soft: #f4f7f5;
	--lyd-line: #e4e8e6;
	--lyd-ink: #111;
	--lyd-grey: #5f6662;
}

/* ---------- Каркас сторінки ------------------------------------------- */
body.lyd-content-page .klb-page.page-content { margin-top: 0 !important; padding: 32px 0 72px; }
body.lyd-content-page .klb-page .col-lg-10 { flex: 0 0 100%; max-width: 100%; margin-left: 0; }
body.lyd-content-page .klb-page-title {
	margin: 0 0 14px;
	font-size: clamp(28px, 3vw, 36px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -.01em;
	color: var(--lyd-ink);
}
body.lyd-content-page .klb-post { color: #222; font-size: 16px; line-height: 1.7; }
body.lyd-content-page .klb-post > * + * { margin-top: 0; }
body.lyd-content-page .single-post .no-comment-list,
body.lyd-content-page .klb-page .comments-area { display: none; }

.lyd-lead {
	max-width: 780px;
	margin: 0 0 28px !important;
	font-size: 18px;
	line-height: 1.65;
	color: var(--lyd-grey);
}

.lyd-section { margin: 64px 0 !important; }
.klb-post h2.wp-block-heading,
.editor-styles-wrapper h2.wp-block-heading {
	margin: 0 0 20px;
	padding: 0;
	font-size: clamp(24px, 2.6vw, 30px);
	font-weight: 700;
	line-height: 1.2;
	color: var(--lyd-ink);
}
.klb-post h3.wp-block-heading,
.editor-styles-wrapper h3.wp-block-heading {
	margin: 0 0 10px;
	padding: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--lyd-ink);
}

/* ---------- Базова розкладка блоків ------------------------------------
   Сайт підвантажує стилі блоків WordPress не повністю, тому колонки,
   галерею й зображення розкладаємо самі. */
.klb-post .wp-block-columns,
.editor-styles-wrapper .wp-block-columns { display: flex; flex-wrap: wrap; gap: 24px; box-sizing: border-box; margin-bottom: 24px; }
.klb-post .wp-block-column { flex: 1 1 0; min-width: 0; box-sizing: border-box; word-break: break-word; }
.klb-post .wp-block-group,
.klb-post .wp-block-column { box-sizing: border-box; }
.klb-post .wp-block-image img { max-width: 100%; height: auto; }
.klb-post .wp-block-gallery.has-nested-images { display: flex; flex-wrap: wrap; gap: 12px; }
.klb-post .wp-block-gallery.has-nested-images figure.wp-block-image { flex-grow: 0; margin: 0; }
.klb-post .wp-block-gallery.has-nested-images figure.wp-block-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.klb-post .wp-block-gallery.columns-2 figure.wp-block-image { width: calc(50% - 6px); }
.klb-post .wp-block-gallery.columns-3 figure.wp-block-image { width: calc(33.333% - 8px); }
.klb-post .wp-block-gallery.columns-4 figure.wp-block-image { width: calc(25% - 9px); }
@media (min-width: 782px) {
	.klb-post .wp-block-columns { flex-wrap: nowrap; }
}
@media (max-width: 781.98px) {
	.klb-post .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column { flex-basis: 100%; }
	.klb-post .wp-block-gallery.columns-3 figure.wp-block-image,
	.klb-post .wp-block-gallery.columns-4 figure.wp-block-image { width: calc(50% - 6px); }
}

/* ---------- Кнопки ----------------------------------------------------- */
.lyd-content-page .wp-block-buttons,
.editor-styles-wrapper .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }
.lyd-content-page .wp-block-button__link,
.editor-styles-wrapper .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 26px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	color: #fff !important;
	background: var(--lyd-brand);
	border: 1.5px solid var(--lyd-brand);
	border-radius: 50px;
	transition: background-color .15s, color .15s, border-color .15s;
}
.lyd-content-page .wp-block-button__link:hover { background: var(--lyd-brand-dark); border-color: var(--lyd-brand-dark); }
.lyd-content-page .is-style-outline .wp-block-button__link,
.editor-styles-wrapper .is-style-outline .wp-block-button__link { color: var(--lyd-ink) !important; background: #fff; border-color: #cfd5d2; }
.lyd-content-page .is-style-outline .wp-block-button__link:hover { color: #fff !important; background: var(--lyd-brand); border-color: var(--lyd-brand); }

/* ---------- Картки ----------------------------------------------------- */
.lyd-cards.wp-block-columns { gap: 20px; margin: 0 0 24px; }
.lyd-cards > .wp-block-column { display: flex; }
.lyd-card {
	flex: 1;
	box-sizing: border-box;
	padding: 28px;
	background: #fff;
	border: 1px solid var(--lyd-line);
	border-radius: 18px;
}
.lyd-card--soft { background: var(--lyd-soft); border-color: transparent; }
.lyd-card p { margin: 0 0 6px; }
.lyd-card p:last-child { margin-bottom: 0; }
.lyd-card__big { font-size: 18px; font-weight: 700; }
.lyd-card__big a { color: var(--lyd-ink); }
.lyd-card__big a:hover { color: var(--lyd-brand); }
.lyd-muted { font-size: 14px; color: var(--lyd-grey); }

/* Іконки біля заголовків: клас «lyd-ih lyd-i--назва» */
.lyd-ih { display: flex; align-items: center; gap: 12px; }
.lyd-ih::before {
	content: "";
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	background-color: var(--lyd-soft);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 22px;
	border-radius: 50%;
}
.lyd-card--soft .lyd-ih::before { background-color: #fff; }
.lyd-i--badge::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f4f38' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='9' r='5.5'/%3E%3Cpath d='m9.6 9 1.6 1.6 3.2-3.2M8.6 13.4 7.5 21l4.5-2.4 4.5 2.4-1.1-7.6'/%3E%3C/svg%3E"); }
.lyd-i--truck::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f4f38' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.75 6.75h11v9.5h-11zM13.75 9.75h4l3.5 3.5v3h-7.5'/%3E%3Ccircle cx='6.75' cy='17.75' r='1.75'/%3E%3Ccircle cx='17.25' cy='17.75' r='1.75'/%3E%3C/svg%3E"); }
.lyd-i--store::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f4f38' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.75 9.5V20.25h16.5V9.5M2.75 9.5l2-5.75h14.5l2 5.75zM9.5 20.25v-6h5v6'/%3E%3C/svg%3E"); }
.lyd-i--card::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f4f38' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.75' y='5.25' width='18.5' height='13.5' rx='1.5'/%3E%3Cpath d='M2.75 9.75h18.5M6.5 14.75h4'/%3E%3C/svg%3E"); }
.lyd-i--phone::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f4f38' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.2 3.75h3.1l1.6 4.3-2.1 1.4a11.2 11.2 0 0 0 6.75 6.75l1.4-2.1 4.3 1.6v3.1a1.9 1.9 0 0 1-2 1.9C10.8 20.2 3.8 13.2 3.3 5.75a1.9 1.9 0 0 1 1.9-2z'/%3E%3C/svg%3E"); }
.lyd-i--chat::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f4f38' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.25 11.6c0 4.2-3.7 7.4-8.25 7.4-1.1 0-2.2-.2-3.1-.5L4.5 20l1.2-3.4c-1.2-1.3-1.95-3-1.95-5 0-4.2 3.7-7.6 8.25-7.6s8.25 3.4 8.25 7.6z'/%3E%3C/svg%3E"); }
.lyd-i--mail::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f4f38' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5.25' width='18' height='13.5' rx='1.5'/%3E%3Cpath d='m3.5 6.5 8.5 6.25 8.5-6.25'/%3E%3C/svg%3E"); }
.lyd-i--pin::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f4f38' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21.25s-6.75-6.2-6.75-11.5a6.75 6.75 0 0 1 13.5 0c0 5.3-6.75 11.5-6.75 11.5z'/%3E%3Ccircle cx='12' cy='9.75' r='2.5'/%3E%3C/svg%3E"); }
.lyd-i--clock::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f4f38' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.25'/%3E%3Cpath d='M12 7v5l3.25 2'/%3E%3C/svg%3E"); }
.lyd-card .lyd-ih { margin-bottom: 14px; }
.lyd-cards--2 h2.lyd-ih { font-size: 22px; }

/* Список з галочками */
.lyd-checklist { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.lyd-checklist.wp-block-list li,
.lyd-checklist li {
	position: relative;
	margin: 0 0 12px;
	padding-left: 32px !important;
	line-height: 1.55;
	list-style: none !important;
}
.lyd-checklist.wp-block-list li:last-child { margin-bottom: 0; }
.lyd-checklist.wp-block-list li::before {
	content: "";
	position: absolute;
	top: 2px;
	left: 0;
	width: 21px;
	height: 21px;
	background: var(--lyd-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-8.5'/%3E%3C/svg%3E") center / 13px no-repeat;
	border-radius: 50%;
}

/* ---------- «Про нас» ------------------------------------------------- */
.lyd-gallery.wp-block-gallery { display: flex; flex-wrap: wrap; gap: 12px !important; margin: 0 0 32px; --wp--style--unstable-gallery-gap: 12px; }
.lyd-gallery.wp-block-gallery .wp-block-image { margin: 0 !important; overflow: hidden; border-radius: 16px; }
.lyd-gallery.wp-block-gallery .wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s; }
.lyd-gallery.wp-block-gallery .wp-block-image:hover img { transform: scale(1.04); }

.lyd-stats.wp-block-columns {
	gap: 0;
	margin: 0 0 64px;
	background: var(--lyd-soft);
	border-radius: 18px;
}
.lyd-stats > .wp-block-column { padding: 26px 20px; text-align: center; }
.lyd-stats > .wp-block-column + .wp-block-column { border-left: 1px solid var(--lyd-line); }
.lyd-stats p { margin: 0; font-size: 14px; color: var(--lyd-grey); }
.lyd-stats strong { display: block; margin-bottom: 4px; font-size: 32px; font-weight: 700; line-height: 1.1; color: var(--lyd-brand); }

.lyd-split.wp-block-columns { gap: 48px; align-items: flex-start; }
@media (min-width: 782px) {
	.lyd-split > .wp-block-column { flex: 1 1 0 !important; min-width: 0; }
	.lyd-split > .wp-block-column:first-child { flex-grow: 1.45 !important; }
}

.lyd-quote {
	max-width: 860px;
	margin: 0 auto 48px !important;
	font-size: 22px;
	font-weight: 500;
	line-height: 1.5;
	text-align: center;
	color: var(--lyd-ink);
}

/* ---------- Заклик (зелений блок) -------------------------------------- */
.lyd-cta {
	margin: 64px 0 0;
	padding: 44px 48px;
	color: #fff;
	text-align: center;
	background: var(--lyd-brand) radial-gradient(120% 140% at 100% 0, rgba(255, 255, 255, .12), transparent 55%);
	border-radius: 22px;
}
.lyd-cta h2.wp-block-heading { margin-bottom: 8px; color: #fff; }
.lyd-cta p { max-width: 560px; margin: 0 auto; color: rgba(255, 255, 255, .82); }
.lyd-cta .wp-block-buttons { justify-content: center; }
.lyd-content-page .lyd-cta .wp-block-button__link,
.editor-styles-wrapper .lyd-cta .wp-block-button__link { color: var(--lyd-ink) !important; background: #fff; border-color: #fff; }
.lyd-content-page .lyd-cta .is-style-outline .wp-block-button__link,
.editor-styles-wrapper .lyd-cta .is-style-outline .wp-block-button__link { color: #fff !important; background: transparent; border-color: rgba(255, 255, 255, .55); }
.lyd-content-page .lyd-cta .wp-block-button__link:hover { color: #fff !important; background: rgba(255, 255, 255, .14); border-color: #fff; }

/* ---------- «Оплата і доставка» ---------------------------------------- */
.lyd-note {
	margin: 0 0 24px !important;
	padding: 18px 22px 18px 54px;
	font-size: 15px;
	line-height: 1.6;
	background: #fff8e8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b26b00' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.25'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.01'/%3E%3C/svg%3E") 20px 19px / 22px no-repeat;
	border: 1px solid #f3dfb0;
	border-radius: 14px;
}
.lyd-note a { font-weight: 600; text-decoration: underline !important; }

.lyd-steps.wp-block-columns { gap: 16px; margin: 0; counter-reset: lyd-step; }
.lyd-steps > .wp-block-column {
	position: relative;
	padding: 64px 22px 22px;
	background: var(--lyd-soft);
	border-radius: 16px;
	counter-increment: lyd-step;
}
.lyd-steps > .wp-block-column::before {
	content: counter(lyd-step);
	position: absolute;
	top: 20px;
	left: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	background: var(--lyd-brand);
	border-radius: 50%;
}
.lyd-steps p { margin: 0; font-size: 14px; color: var(--lyd-grey); }

.lyd-req.wp-block-columns { gap: 32px; align-items: center; margin: 0; }
.lyd-req > .wp-block-column:last-child { flex: 0 0 200px !important; text-align: center; }
.lyd-req__row { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 !important; padding: 12px 0; font-weight: 600; border-bottom: 1px solid var(--lyd-line); }
.lyd-req__row:last-child { border-bottom: 0; }
.lyd-req__row span { flex: 0 0 170px; font-weight: 400; color: var(--lyd-grey); }
.lyd-req__qr { margin: 0 auto 6px !important; }
.lyd-req__qr img { width: 180px; height: auto; padding: 8px; background: #fff; border: 1px solid var(--lyd-line); border-radius: 14px; }
.lyd-req__hint { margin: 0; font-size: 13px; color: var(--lyd-grey); }

/* ---------- «Контакти» ------------------------------------------------- */
.lyd-hours { display: flex; justify-content: space-between; gap: 12px; margin: 0 !important; padding: 12px 0; border-bottom: 1px solid var(--lyd-line); }
.lyd-hours:last-child { border-bottom: 0; }
.lyd-hours span { color: var(--lyd-grey); }
.lyd-map { overflow: hidden; margin: 0 0 24px; border: 1px solid var(--lyd-line); border-radius: 18px; }
.lyd-map iframe { display: block; width: 100%; height: 420px; border: 0; }
.lyd-social { margin: 48px 0 0 !important; text-align: center; }
.lyd-social .wp-block-buttons { justify-content: center; }

/* ---------- Бренди [lyudmila_brands] ----------------------------------- */
.lyd-bgrid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 14px;
	margin: 0 0 40px;
}
.lyd-bgrid__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 18px 14px 16px;
	text-align: center;
	color: var(--lyd-ink) !important;
	background: #fff;
	border: 1px solid var(--lyd-line);
	border-radius: 16px;
	transition: border-color .15s, box-shadow .15s;
}
.lyd-bgrid__item:hover { border-color: #b9c2bd; box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .25); }
.lyd-bgrid__logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 64px; }
.lyd-bgrid__logo img { max-width: 140px; max-height: 56px; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.lyd-bgrid__text { font-size: 17px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.lyd-bgrid__name { margin-top: 10px; font-size: 14px; font-weight: 600; }
.lyd-bgrid__count { margin-top: 2px; font-size: 12px; color: var(--lyd-grey); }
.lyd-bgrid--logos { grid-template-columns: repeat(4, 1fr); margin-bottom: 0; }
.lyd-bgrid--logos .lyd-bgrid__item { padding: 20px 14px; }

/* ---------- Адаптив ---------------------------------------------------- */
@media (max-width: 1023.98px) {
	.lyd-cards--4.wp-block-columns,
	.lyd-steps.wp-block-columns { flex-wrap: wrap !important; }
	.lyd-cards--4 > .wp-block-column,
	.lyd-steps > .wp-block-column { flex: 1 1 calc(50% - 16px) !important; }
}
@media (max-width: 781.98px) {
	body.lyd-content-page .klb-page.page-content { padding: 24px 0 48px; }
	.lyd-lead { margin-bottom: 26px !important; font-size: 16px; }
	.lyd-section { margin: 44px 0 !important; }
	.lyd-card { padding: 22px; }
	.lyd-gallery.wp-block-gallery { gap: 8px !important; --wp--style--unstable-gallery-gap: 8px; }
	.lyd-gallery.wp-block-gallery .wp-block-image { width: calc(50% - 4px) !important; border-radius: 12px; }
	.lyd-stats.wp-block-columns { flex-wrap: wrap !important; margin-bottom: 44px; }
	.lyd-stats.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column { flex: 0 0 50% !important; padding: 20px 12px; }
	.lyd-stats > .wp-block-column + .wp-block-column { border-left: 0; }
	.lyd-stats > .wp-block-column:nth-child(even) { border-left: 1px solid var(--lyd-line); }
	.lyd-stats > .wp-block-column:nth-child(n+3) { border-top: 1px solid var(--lyd-line); }
	.lyd-stats strong { font-size: 26px; }
	.lyd-split.wp-block-columns { gap: 28px; }
	.lyd-quote { font-size: 18px; }
	.lyd-cta { padding: 32px 22px; border-radius: 18px; }
	.lyd-steps > .wp-block-column { flex-basis: 100% !important; padding: 20px 20px 20px 70px; }
	.lyd-steps > .wp-block-column::before { top: 20px; left: 20px; }
	.lyd-req > .wp-block-column:last-child { flex-basis: 100% !important; }
	.lyd-req__row span { flex-basis: 100%; }
	.lyd-map iframe { height: 320px; }
	.lyd-bgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.lyd-bgrid--logos { grid-template-columns: repeat(2, 1fr); }
	.lyd-bgrid__logo img { max-width: 120px; max-height: 46px; }
}
