/* ==========================================================================
   BestBaker — стилі сайту
   --------------------------------------------------------------------------
   1. Токени            7. Шапка і навігація     13. Внутрішні сторінки
   2. Основа            8. Банер                 14. Товар
   3. Розкладка         9. Категорії             15. Форми
   4. Кнопки, посилання 10. Товари               16. Контакти, портфоліо, послуги
   5. Заголовки секцій  11. Послуги (смуга)      17. Футер
   6. Спільні елементи  12. Статті, заклик       18. Службові
   Брейкпоінти: 1100px (меню), 900px (2 колонки), 600px (1 колонка).
   ========================================================================== */

/* 1. Токени
   ========================================================================== */
:root {
	--c-navy: #0f2a47;
	--c-primary: #1d5c96;
	--c-primary-rgb: 29, 92, 150;
	--c-primary-700: #174a7a;
	--c-primary-400: #2a73b8;
	--c-primary-300: #3582cb;
	--c-primary-50: #e8f0f8;
	--c-text: #1a2b3d;
	--c-muted: #5b6b7d;
	--c-placeholder: #6b7b8c;
	--c-border: #dfe6ee;
	--c-border-strong: #bfccd9;
	--c-white: #fff;
	--c-bg-soft: #f3f6fa;
	--c-bg-hero: #e9eff5;
	--c-bg-hero-rgb: 233, 239, 245;
	--c-accent-bg: #fbe3c3;
	--c-accent-text: #7f4a0e;
	--c-success: #2f7a4f;
	--c-danger: #b3261e;

	--font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--fs-2xs: 0.6875rem;
	--fs-xs: 0.75rem;
	--fs-13: 0.8125rem;
	--fs-sm: 0.875rem;
	--fs-md: 1rem;
	--fs-lg: 1.125rem;
	--fs-h3: 1.25rem;
	--fs-price: 1.75rem;
	--fs-h2: clamp(1.5rem, 1.2rem + 1vw, 2rem);
	--fs-h1: clamp(2rem, 1.4rem + 2.2vw, 3rem);

	--radius-sm: 6px;
	--radius: 10px;
	--radius-lg: 16px;
	--shadow: 0 10px 30px rgba(15, 42, 71, 0.10);

	--container: 1500px;
	--gutter: clamp(16px, 2.5vw, 40px);
	--header-h: 72px;
	--ease: 0.2s ease;
}

/* 2. Основа
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

/* Колір футера під сторінкою: без білої смуги при «пружинній» прокрутці та на коротких сторінках. */
html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
	background: var(--c-navy);
	overscroll-behavior-y: none;
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: var(--fs-md);
	line-height: 1.6;
	color: var(--c-text);
	background: var(--c-white);
	-webkit-font-smoothing: antialiased;
	/* Футер притиснутий до низу вікна навіть на коротких сторінках. */
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-main {
	flex: 1 0 auto;
}

body.menu-open {
	overflow: hidden;
}

img,
svg,
video,
iframe {
	max-width: 100%;
}

img {
	height: auto;
	vertical-align: middle;
}

a {
	color: var(--c-primary);
	text-decoration: none;
	transition: color var(--ease);
}

a:hover {
	color: var(--c-primary-700);
}

h1, h2, h3, h4 {
	margin: 0 0 0.5em;
	color: var(--c-navy);
	line-height: 1.2;
	font-weight: 800;
}

p {
	margin: 0 0 1em;
}

button {
	font: inherit;
}

:focus-visible {
	outline: 3px solid var(--c-primary);
	outline-offset: 2px;
}

.site-footer :focus-visible,
.cta :focus-visible {
	outline-color: var(--c-white);
}

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

.icon--flip {
	transform: scaleX(-1);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 200;
	padding: 8px 16px;
	background: var(--c-navy);
	color: var(--c-white);
	border-radius: var(--radius-sm);
}

.skip-link:focus {
	top: 8px;
	color: var(--c-white);
}

/* 3. Розкладка
   ========================================================================== */
.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

/* Вузький контейнер для текстових сторінок. */
.container--narrow {
	max-width: calc(820px + var(--gutter) * 2);
}

/* Обмеження ширини тексту всередині звичайного контейнера. */
.measure {
	max-width: 820px;
}

.section {
	padding: 56px 0;
}

.section--tight {
	padding: 20px 0;
}

.section--soft {
	background: var(--c-bg-soft);
}

.grid {
	display: grid;
	gap: 20px;
}

.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1100px) and (min-width: 601px) {
	.grid--articles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	.grid--3,
	.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.section { padding: 40px 0; }
}

@media (max-width: 600px) {
	.grid--3,
	.grid--4 { grid-template-columns: minmax(0, 1fr); }
	.grid--products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

@media (max-width: 380px) {
	.grid--products { grid-template-columns: minmax(0, 1fr); }
}

/* 4. Кнопки, посилання
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 12px 24px;
	border: 1.5px solid transparent;
	border-radius: var(--radius-sm);
	font-size: var(--fs-sm);
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: background-color var(--ease), border-color var(--ease), color var(--ease);
}

.btn .icon {
	width: 18px;
	height: 18px;
}

.btn--primary,
.wpcf7 input[type="submit"] {
	background: var(--c-primary);
	color: var(--c-white);
	box-shadow: 0 6px 16px rgba(var(--c-primary-rgb), 0.25);
}

.btn--primary:hover,
.wpcf7 input[type="submit"]:hover {
	background: var(--c-primary-700);
	color: var(--c-white);
}

.btn--outline {
	background: rgba(255, 255, 255, 0.7);
	border-color: var(--c-border-strong);
	color: var(--c-navy);
}

.btn--outline:hover {
	border-color: var(--c-primary);
	color: var(--c-primary);
	background: var(--c-white);
}

.btn--light {
	background: var(--c-white);
	color: var(--c-navy);
}

.btn--light:hover {
	color: var(--c-primary);
}

.btn--sm {
	min-height: 40px;
	padding: 10px 18px;
	font-size: var(--fs-13);
}

.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 16px;
}

@media (max-width: 480px) {
	.btn-row .btn { width: 100%; }
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: var(--fs-sm);
	font-weight: 700;
	color: var(--c-primary);
}

.link-arrow .icon {
	width: 16px;
	height: 16px;
}

/* Стрілка зсувається при наведенні на посилання або картку. */
.link-arrow .icon,
.arrow-nudge {
	transition: transform var(--ease), color var(--ease);
}

.link-arrow:hover .icon,
.card:hover .link-arrow .icon,
.card:hover .arrow-nudge {
	transform: translateX(3px);
}

/* 5. Заголовки секцій
   ========================================================================== */
.eyebrow {
	margin: 0 0 8px;
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--c-primary);
}

.section-title {
	font-size: var(--fs-h2);
	margin-bottom: 24px;
}

.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 4px;
}

.section-head .section-title {
	margin-bottom: 20px;
}

.section-head > .link-arrow {
	white-space: nowrap;
}

/* 6. Спільні елементи: картки, плитки іконок, бейджі, чипси, телефони
   ========================================================================== */
.card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background: var(--c-white);
	color: var(--c-text);
	transition: box-shadow var(--ease);
}

.card:hover {
	color: var(--c-text);
	box-shadow: var(--shadow);
}

.icon-tile {
	--tile: 44px;
	display: grid;
	place-items: center;
	width: var(--tile);
	height: var(--tile);
	flex-shrink: 0;
	border-radius: var(--radius);
	background: var(--c-primary-50);
	color: var(--c-primary);
}

.icon-tile .icon {
	width: calc(var(--tile) * 0.5);
	height: calc(var(--tile) * 0.5);
}

.icon-tile--lg {
	--tile: 56px;
}

.clamp-2,
.clamp-3 {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.clamp-2 { -webkit-line-clamp: 2; }
.clamp-3 { -webkit-line-clamp: 3; }

/* Рамки для фото в картках: розмір задає рамка (пропорція або висота),
   зображення лише заповнює її й обрізається (object-fit задано в самих блоках). */
.category-card__media,
.product-card__media,
.article-card__media,
.article-row__media,
.portfolio-card__media,
.gallery-grid a {
	position: relative;
	overflow: hidden;
}

.category-card__media img,
.product-card__media img,
.article-card__media img,
.article-row__media img,
.portfolio-card__media img,
.gallery-grid img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--c-primary-50);
	color: var(--c-primary-700);
	font-size: var(--fs-2xs);
	font-weight: 700;
	line-height: 1.5;
}

.badge--accent {
	background: var(--c-accent-bg);
	color: var(--c-accent-text);
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 1px solid var(--c-border);
	border-radius: 999px;
	background: var(--c-white);
	color: var(--c-navy);
	font-size: var(--fs-sm);
	font-weight: 600;
}

.chip:hover {
	border-color: var(--c-primary);
	color: var(--c-primary);
}

.chip__count {
	color: var(--c-muted);
	font-weight: 500;
}

/* Телефони з іконкою: шапка і футер. */
.phones {
	display: flex;
	align-items: center;
	gap: 10px;
}

.phones > .icon {
	width: 20px;
	height: 20px;
}

.phones__list {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.phones__list a {
	white-space: nowrap;
}

/* 7. Шапка і навігація
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--c-white);
	border-bottom: 1px solid var(--c-border);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 32px;
	min-height: var(--header-h);
}

.site-header__logo {
	flex-shrink: 0;
	display: block;
}

.site-header__logo img {
	display: block;
	width: 152px;
	height: auto;
}

.site-header__panel {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 28px;
}

.nav {
	flex: 1;
}

.nav__list,
.nav .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav__list {
	display: flex;
	align-items: center;
	gap: 4px 26px;
}

.nav__list > .menu-item {
	position: relative;
	display: flex;
	align-items: center;
}

.nav__list > .menu-item > a {
	display: block;
	padding: 24px 0;
	color: var(--c-navy);
	font-size: var(--fs-sm);
	font-weight: 700;
	white-space: nowrap;
}

.nav__list > .menu-item > a:hover,
.nav__list > .current-menu-item > a,
.nav__list > .current-menu-ancestor > a {
	color: var(--c-primary);
}

.nav__toggle {
	display: inline-flex;
	padding: 4px;
	margin-left: 2px;
	border: 0;
	background: none;
	color: var(--c-navy);
	cursor: pointer;
}

.nav__toggle .icon {
	width: 16px;
	height: 16px;
	transition: transform var(--ease);
}

.menu-item.is-open > .nav__toggle .icon {
	transform: rotate(180deg);
}

.nav .sub-menu {
	position: absolute;
	top: 100%;
	left: -16px;
	z-index: 10;
	min-width: 300px;
	padding: 8px;
	background: var(--c-white);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
}

/* Наведення мишею або кнопка-стрілка (клавіатура, сенсорні екрани). */
.nav .menu-item:hover > .sub-menu,
.nav .menu-item.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.nav .sub-menu a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 9px 12px;
	border-radius: var(--radius-sm);
	color: var(--c-text);
	font-size: var(--fs-sm);
	font-weight: 600;
}

.nav .sub-menu a:hover,
.nav .sub-menu .current-menu-item > a {
	background: var(--c-bg-soft);
	color: var(--c-primary);
}

.nav__count {
	min-width: 28px;
	padding: 0 8px;
	border-radius: 999px;
	background: var(--c-bg-soft);
	color: var(--c-muted);
	font-size: var(--fs-xs);
	font-weight: 600;
	text-align: center;
}

.site-header__phones {
	color: var(--c-navy);
}

.site-header__phones > .icon {
	color: var(--c-primary);
}

.site-header__phones a {
	color: var(--c-navy);
	font-size: var(--fs-sm);
	font-weight: 700;
}

.site-header__phones a + a {
	font-size: var(--fs-xs);
	font-weight: 600;
	color: var(--c-muted);
}

.site-header__phones a:hover {
	color: var(--c-primary);
}

.burger {
	display: none;
	margin-left: auto;
	padding: 8px;
	border: 0;
	background: none;
	color: var(--c-navy);
	cursor: pointer;
}

.burger .icon {
	width: 28px;
	height: 28px;
}

.burger__close,
.burger[aria-expanded="true"] .burger__open {
	display: none;
}

.burger[aria-expanded="true"] .burger__close {
	display: block;
}

@media (max-width: 1240px) {
	.site-header__inner { gap: 20px; }
	.nav__list { gap: 4px 18px; }
	.site-header__panel { gap: 20px; }
}

@media (max-width: 1100px) {
	:root { --header-h: 64px; }

	.burger { display: inline-flex; }

	.site-header__panel {
		position: fixed;
		top: var(--header-h);
		left: 0;
		right: 0;
		bottom: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 24px;
		padding: 16px var(--gutter) 32px;
		background: var(--c-white);
		overflow-y: auto;
		visibility: hidden;
		opacity: 0;
		transform: translateY(-8px);
		transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
	}

	.site-header__panel.is-open {
		visibility: visible;
		opacity: 1;
		transform: none;
	}

	.nav { flex: 0 0 auto; }

	.nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.nav__list > .menu-item {
		flex-wrap: wrap;
		justify-content: space-between;
		border-bottom: 1px solid var(--c-border);
	}

	.nav__list > .menu-item > a {
		flex: 1;
		padding: 14px 0;
		font-size: var(--fs-md);
	}

	.nav__toggle { padding: 10px; }

	.nav .sub-menu {
		position: static;
		display: none;
		flex-basis: 100%;
		min-width: 0;
		margin-bottom: 12px;
		padding: 4px;
		border: 0;
		box-shadow: none;
		background: var(--c-bg-soft);
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.nav .menu-item.is-open > .sub-menu { display: block; }

	.site-header__cta { width: 100%; min-height: 48px; }
}

/* 8. Банер
   ========================================================================== */
.hero {
	position: relative;
	overflow: hidden;
	background: var(--c-bg-hero);
}

.hero__bg {
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	width: 68%;
	background-position: center;
	background-size: cover;
}

.hero__bg::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, var(--c-bg-hero) 0%, rgba(var(--c-bg-hero-rgb), 0.85) 18%, rgba(var(--c-bg-hero-rgb), 0) 55%);
}

.hero__inner {
	position: relative;
	padding-top: 72px;
	padding-bottom: 80px;
}

.hero__inner > * {
	max-width: 640px;
}

.hero__title {
	font-size: var(--fs-h1);
	letter-spacing: -0.02em;
	margin-bottom: 20px;
}

.hero__text {
	font-size: var(--fs-lg);
	color: var(--c-muted);
	max-width: 440px;
	margin-bottom: 32px;
}

@media (max-width: 900px) {
	.hero__bg { width: 100%; }

	.hero__bg::before {
		background: linear-gradient(180deg, rgba(var(--c-bg-hero-rgb), 0.95) 0%, rgba(var(--c-bg-hero-rgb), 0.88) 60%, rgba(var(--c-bg-hero-rgb), 0.6) 100%);
	}

	.hero__inner { padding-top: 48px; padding-bottom: 56px; }
}

/* 9. Категорії
   ========================================================================== */
.category-card__media {
	display: block;
	height: 120px;
	background: var(--c-bg-soft);
}

.category-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.category-card__head {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	align-self: flex-start;
	margin-top: -28px;
	padding: 10px 20px 6px 12px;
	background: var(--c-white);
	border-radius: 0 var(--radius) 0 0;
}

.category-card__title {
	font-size: var(--fs-md);
	font-weight: 800;
	line-height: 1.25;
	color: var(--c-navy);
}

.category-card__text {
	flex: 1;
	padding: 8px 20px 0 12px;
	font-size: var(--fs-sm);
	color: var(--c-muted);
	line-height: 1.5;
}

.category-card .link-arrow {
	padding: 14px 20px 20px 12px;
}

/* 10. Товари
   ========================================================================== */
.popular {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) repeat(4, minmax(0, 1fr));
	gap: 20px;
	align-items: stretch;
}

.popular__title {
	margin-top: 0;
	padding-right: 8px;
}

@media (max-width: 1100px) {
	.popular { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.popular__title { grid-column: 1 / -1; margin-bottom: 4px; }
}

@media (max-width: 900px) {
	.popular { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
	.popular { gap: 12px; }
}

.product-card {
	padding: 14px;
}

.product-card__media {
	display: block;
	aspect-ratio: 4 / 3;
	margin-bottom: 14px;
	overflow: hidden;
	border-radius: var(--radius-sm);
	background: var(--c-white);
}

.product-card__media img {
	object-fit: cover;
}

.product-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}

.product-card__title {
	font-size: var(--fs-sm);
	font-weight: 700;
	line-height: 1.4;
	color: var(--c-navy);
}

.product-card__meta {
	font-size: var(--fs-xs);
	color: var(--c-muted);
}

.product-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--c-border);
	color: var(--c-navy);
}

.product-card__price {
	font-size: var(--fs-sm);
	font-weight: 800;
}

.product-card__old-price {
	display: block;
	font-size: var(--fs-xs);
	font-weight: 500;
	color: var(--c-muted);
}

.product-card__footer .icon {
	width: 18px;
	height: 18px;
}

.product-card:hover .product-card__footer .icon {
	color: var(--c-primary);
}

.product-card--sold .product-card__media img {
	opacity: 0.55;
}

.product-card--sold .product-card__price {
	color: var(--c-muted);
}

@media (max-width: 600px) {
	.product-card { padding: 10px; }
	.product-card__title { font-size: var(--fs-13); }
}

/* 11. Послуги (смуга)
   ========================================================================== */
.services-strip {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0;
	padding: 28px 0;
	list-style: none;
	background: var(--c-primary-50);
	border-radius: var(--radius-lg);
}

.services-strip__item {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	padding: 0 24px;
}

.services-strip__item + .services-strip__item {
	border-left: 1px solid var(--c-border-strong);
}

.services-strip__icon {
	width: 40px;
	height: 40px;
	color: var(--c-primary);
	stroke-width: 1.75;
}

.services-strip__title {
	display: block;
	font-weight: 800;
	color: var(--c-navy);
	font-size: var(--fs-md);
}

a.services-strip__title:hover {
	color: var(--c-primary);
}

.services-strip__text {
	margin: 2px 0 0;
	font-size: var(--fs-sm);
	color: var(--c-muted);
}

@media (max-width: 900px) {
	.services-strip {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
		padding: 24px;
	}

	.services-strip__item { justify-content: flex-start; padding: 0; }

	.services-strip__item + .services-strip__item {
		border-left: 0;
		border-top: 1px solid var(--c-border-strong);
		padding-top: 20px;
	}
}

/* 12. Статті, заклик
   ========================================================================== */
.section--articles {
	padding-top: 32px;
}

/* Вертикальна картка: сітки статей. */
.article-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	background: var(--c-bg-soft);
}

.article-card__media img,
.article-row__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.article-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	padding: 18px 20px 20px;
}

.article-card__title {
	font-size: var(--fs-lg);
	font-weight: 700;
	line-height: 1.4;
	color: var(--c-navy);
}

.article-card__excerpt {
	font-size: var(--fs-sm);
	color: var(--c-muted);
}

.article-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	font-size: var(--fs-xs);
	color: var(--c-muted);
}

.article-card__footer .icon {
	width: 16px;
	height: 16px;
	color: var(--c-primary);
}

/* Горизонтальна картка: головна сторінка. */
.article-row {
	flex-direction: row;
}

.article-row__media {
	flex: 0 0 38%;
	min-height: 104px;
	background: var(--c-bg-soft);
}

.article-row__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	padding: 12px 14px;
}

.article-row__title {
	font-size: var(--fs-13);
	font-weight: 700;
	line-height: 1.4;
	color: var(--c-navy);
}

.cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 36px 40px;
	border-radius: var(--radius-lg);
	background: linear-gradient(120deg, var(--c-navy) 0%, var(--c-primary) 100%);
	color: var(--c-white);
}

.cta__title {
	margin-bottom: 6px;
	font-size: var(--fs-h3);
	color: var(--c-white);
}

.cta__text {
	margin: 0;
	color: rgba(255, 255, 255, 0.8);
}

.cta__actions {
	flex-shrink: 0;
}

.cta .btn--primary {
	box-shadow: none;
	background: var(--c-primary-400);
}

.cta .btn--primary:hover {
	background: var(--c-primary-300);
}

@media (max-width: 900px) {
	.cta { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
}

/* 13. Внутрішні сторінки
   ========================================================================== */
.page-head {
	padding: 28px 0 32px;
	background: var(--c-bg-hero);
}

.page-head__title {
	margin: 0;
	font-size: var(--fs-h2);
	overflow-wrap: anywhere;
}

.page-head__lead {
	max-width: 640px;
	margin: 12px 0 0;
	color: var(--c-muted);
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 0;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
	font-size: var(--fs-xs);
	color: var(--c-muted);
}

.breadcrumbs li + li::before {
	content: '/';
	margin: 0 8px;
	opacity: 0.5;
}

.breadcrumbs a {
	color: var(--c-muted);
}

.breadcrumbs a:hover {
	color: var(--c-primary);
}

.breadcrumbs [aria-current] {
	display: inline-block;
	max-width: 40ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: bottom;
}

/* Контент із редактора WordPress: тексти сторінок, статей, описи товарів. */
.prose {
	overflow-wrap: break-word;
}

.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }

.prose h2 { font-size: var(--fs-h3); margin-top: 1.6em; }
.prose h3 { font-size: var(--fs-lg); margin-top: 1.4em; }
.prose h4 { font-size: var(--fs-md); margin-top: 1.2em; }

.prose ul,
.prose ol {
	padding-left: 1.4em;
	margin: 0 0 1em;
}

.prose li + li { margin-top: 0.3em; }

.prose a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.prose img {
	border-radius: var(--radius-sm);
}

.prose table {
	width: 100%;
	margin: 0 0 1em;
	border-collapse: collapse;
	font-size: var(--fs-sm);
}

.prose th,
.prose td {
	padding: 8px 10px;
	border: 1px solid var(--c-border);
	text-align: left;
	vertical-align: top;
}

.prose blockquote {
	margin: 1.2em 0;
	padding: 4px 0 4px 18px;
	border-left: 3px solid var(--c-primary);
	color: var(--c-muted);
}

.prose iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	border: 0;
	border-radius: var(--radius-sm);
}

.alignleft { float: left; margin: 0.3em 1.5em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.5em; }

/* Старі статті: картинки з обтіканням бувають ширшими за колонку тексту.
   Обмежуємо, щоб текст поруч не стискався в смужку. */
.prose .alignleft,
.prose .alignright {
	max-width: min(45%, 380px);
	height: auto;
}

.prose .wp-caption img {
	width: 100%;
	height: auto;
}

/* Наступні блоки не залазять під картинку з обтіканням. */
.prose::after {
	content: '';
	display: table;
	clear: both;
}
.aligncenter { display: block; margin: 0 auto 1em; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: var(--fs-sm); color: var(--c-muted); }

@media (max-width: 600px) {
	.alignleft, .alignright,
	.prose .alignleft, .prose .alignright { float: none; max-width: 100%; margin: 0 0 1em; }
}

.post-meta {
	color: var(--c-muted);
	font-size: var(--fs-sm);
}

.post-cover {
	margin: 0 0 28px;
}

.post-cover img {
	width: 100%;
	border-radius: var(--radius);
}

.term-description {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--c-border);
	color: var(--c-muted);
	font-size: var(--fs-sm);
}

.empty-state {
	padding: 32px;
	border: 1px dashed var(--c-border);
	border-radius: var(--radius);
	color: var(--c-muted);
	text-align: center;
}

.pagination {
	margin-top: 40px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
	background: var(--c-white);
	color: var(--c-navy);
	font-weight: 700;
	font-size: var(--fs-sm);
}

.pagination .page-numbers.current {
	background: var(--c-primary);
	border-color: var(--c-primary);
	color: var(--c-white);
}

.pagination a.page-numbers:hover {
	border-color: var(--c-primary);
	color: var(--c-primary);
}

.pagination .page-numbers .icon {
	width: 18px;
	height: 18px;
}

.pagination .dots {
	border: 0;
	background: none;
}

.error-404 {
	text-align: center;
}

.error-404__code {
	margin: 0;
	font-size: clamp(4rem, 12vw, 7rem);
	font-weight: 800;
	line-height: 1;
	color: var(--c-primary-50);
	-webkit-text-stroke: 2px var(--c-primary);
}

.error-404 .search-form {
	margin: 28px auto;
}

.error-404 .btn-row {
	justify-content: center;
}

/* 14. Товар
   ========================================================================== */
.section--product {
	padding-top: 40px;
}

.product {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}

.product__gallery {
	min-width: 0;
	padding: 16px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-lg);
	background: var(--c-white);
}

.product-slider {
	margin: 0;
	padding: 0;
	list-style: none;
}

.product-slider img {
	display: block;
	width: 100%;
	max-height: 520px;
	margin: 0 auto;
	object-fit: contain;
}

.video-wrapper {
	position: relative;
	aspect-ratio: 16 / 9;
}

.video-wrapper iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.product__placeholder {
	display: block;
	margin: 0 auto;
}

.product__summary {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.product__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.product__price-box {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	padding: 24px;
	border-radius: var(--radius-lg);
	background: var(--c-bg-soft);
}

.product__price-label {
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--c-muted);
}

.product__price {
	font-size: var(--fs-price);
	font-weight: 800;
	line-height: 1.2;
	color: var(--c-navy);
}

.product__price--sold,
.product__old-price {
	color: var(--c-muted);
}

.product__action-date {
	font-size: var(--fs-sm);
	color: var(--c-danger);
	font-weight: 600;
}

.product__stock {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: var(--fs-sm);
	font-weight: 600;
	color: var(--c-muted);
}

.product__stock--in {
	color: var(--c-success);
}

.product__stock .icon {
	width: 18px;
	height: 18px;
}

.product__actions {
	margin-top: 12px;
}

.product__description {
	font-size: var(--fs-sm);
}

.product__description h2 {
	font-size: var(--fs-lg);
}

.product-details {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}

.product-details__main {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.product-details__aside {
	position: sticky;
	top: calc(var(--header-h) + 20px);
}

.panel {
	padding: 28px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-lg);
	background: var(--c-white);
}

.panel.prose {
	font-size: var(--fs-sm);
}

.panel.prose h2,
.panel__title {
	margin-top: 0;
	font-size: var(--fs-h3);
}

.panel__text {
	color: var(--c-muted);
	font-size: var(--fs-sm);
}

.files {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.files a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
}

@media (max-width: 900px) {
	.product,
	.product-details { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.product-details__aside { position: static; }
	.panel { padding: 20px; }
}

/* 15. Форми (Contact Form 7, пошук)
   ========================================================================== */
.input,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid var(--c-border-strong);
	border-radius: var(--radius-sm);
	background: var(--c-white);
	color: var(--c-text);
	font: inherit;
	font-size: var(--fs-sm);
	transition: border-color var(--ease), box-shadow var(--ease);
}

.wpcf7 textarea {
	min-height: 120px;
	resize: vertical;
}

.input:focus,
.wpcf7 input:focus,
.wpcf7 textarea:focus {
	outline: 0;
	border-color: var(--c-primary);
	box-shadow: 0 0 0 3px rgba(var(--c-primary-rgb), 0.25);
}

.input::placeholder,
.wpcf7 ::placeholder {
	color: var(--c-placeholder);
}

/* Розмітку форм задано в адмінці CF7 класами Bootstrap (.row, .col-md-*). */
.wpcf7 .row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.wpcf7 .col-md-12 {
	grid-column: 1 / -1;
}

@media (max-width: 600px) {
	.wpcf7 .row > div { grid-column: 1 / -1; }
}

.wpcf7 .wpcf7-form-control-wrap {
	display: block;
}

/* Кольори кнопки — разом із .btn--primary (розділ 4). */
.wpcf7 input[type="submit"] {
	display: block;
	width: 100%;
	min-height: 48px;
	margin-top: 12px;
	padding: 12px 24px;
	border: 0;
	border-radius: var(--radius-sm);
	font: inherit;
	font-size: var(--fs-sm);
	font-weight: 700;
	cursor: pointer;
	transition: background-color var(--ease);
}

.wpcf7 .ajax-loader {
	display: block;
	margin: 8px auto 0;
}

.wpcf7 .wpcf7-not-valid-tip {
	margin-top: 4px;
	font-size: var(--fs-xs);
	color: var(--c-danger);
}

.wpcf7 .wpcf7-not-valid {
	border-color: var(--c-danger);
}

.wpcf7 .wpcf7-response-output {
	margin: 16px 0 0;
	padding: 10px 14px;
	border-radius: var(--radius-sm);
	font-size: var(--fs-sm);
}

.search-form {
	display: flex;
	gap: 10px;
	max-width: 560px;
	margin-bottom: 32px;
}

/* 16. Контакти, портфоліо, послуги
   ========================================================================== */
.contacts {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: 40px;
	align-items: start;
}

.contact-list {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.contact-list__item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 18px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
}

.contact-list__label {
	display: block;
	font-size: var(--fs-xs);
	color: var(--c-muted);
}

.contact-list__value {
	font-weight: 700;
	color: var(--c-navy);
	overflow-wrap: anywhere;
}

a.contact-list__value:hover {
	color: var(--c-primary);
}

.map iframe {
	display: block;
	width: 100%;
	height: 420px;
	border: 0;
	pointer-events: none;
}

.map.is-active iframe {
	pointer-events: auto;
}

@media (max-width: 900px) {
	.contacts { grid-template-columns: minmax(0, 1fr); }
}

.portfolio-card {
	border: 0;
	background: none;
	color: var(--c-navy);
}

.portfolio-card:hover {
	box-shadow: none;
	color: var(--c-navy);
}

.portfolio-card__media {
	display: block;
	aspect-ratio: 1;
	margin-bottom: 12px;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--c-bg-soft);
}

.portfolio-card__media img,
.gallery-grid img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

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

.portfolio-card__title {
	font-weight: 700;
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 12px;
	margin-top: 32px;
}

.gallery-grid a {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: var(--radius-sm);
}

.services-intro {
	margin-bottom: 36px;
}

.service-card {
	gap: 10px;
	padding: 28px 24px;
	border-radius: var(--radius-lg);
}

.service-card .icon-tile {
	margin-bottom: 6px;
}

.service-card__title {
	font-size: var(--fs-lg);
	font-weight: 800;
	color: var(--c-navy);
}

.service-card__text {
	flex: 1;
	font-size: var(--fs-sm);
	color: var(--c-muted);
}

/* 17. Футер
   ========================================================================== */
.site-footer {
	background: var(--c-navy);
	color: rgba(255, 255, 255, 0.72);
	font-size: var(--fs-sm);
}

.site-footer__inner {
	display: grid;
	grid-template-columns: auto 1fr auto auto;
	align-items: center;
	gap: 24px 48px;
	padding-top: 28px;
	padding-bottom: 28px;
}

.site-footer a {
	color: rgba(255, 255, 255, 0.85);
}

.site-footer a:hover {
	color: var(--c-white);
}

.site-footer__logo img {
	display: block;
	width: 128px;
	/* Логотип синій — у футері робимо його білим. */
	filter: brightness(0) invert(1);
}

.site-footer__tagline {
	margin: 6px 0 0;
	font-size: var(--fs-xs);
}

.site-footer__menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--fs-xs);
	font-weight: 600;
}

.site-footer__phones {
	font-size: var(--fs-xs);
	font-weight: 600;
}

.site-footer__phones > .icon {
	width: 18px;
	height: 18px;
}

.site-footer__socials {
	display: flex;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__socials a {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	transition: background-color var(--ease);
}

.site-footer__socials a:hover {
	background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 1100px) {
	.site-footer__inner {
		grid-template-columns: 1fr auto;
	}

	.site-footer__nav {
		grid-column: 1 / -1;
		order: 3;
	}

	.site-footer__menu { justify-content: flex-start; }

	.site-footer__phones { order: 4; }
	.site-footer__socials { order: 5; justify-self: end; }
}

@media (max-width: 600px) {
	.site-footer__inner { grid-template-columns: 1fr; }
	.site-footer__socials { justify-self: start; }
}

/* 18. Службові
   ========================================================================== */
.to-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 90;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: var(--c-primary);
	color: var(--c-white);
	box-shadow: var(--shadow);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
}

.to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.to-top:hover {
	background: var(--c-primary-700);
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
