/* =========================================================
   Apple Mania — дизайн-система (світлий макет)
   Токени й компоненти з handoff `design_handoff_apple_mania`.
   ========================================================= */

:root {
	--am-bg: #f7f7f5;
	--am-surface: #ffffff;
	--am-surface-2: #fafaf8;
	--am-surface-3: #f4f4f1;

	--am-text: #111214;
	--am-text-2: #43474d;
	--am-text-3: #6b6f76;
	--am-muted: #6b7079; /* 4.6:1 на білому — вимога контрасту AA */
	--am-muted-2: #9aa0a8;
	--am-faint: #a2a7ad;

	--am-border: #ececea;
	--am-border-ctl: #e4e4e0;
	--am-border-ctl-2: #eaeae6;
	--am-border-hover: #d7d7d2;
	--am-divider: #f2f2ef;

	--am-dark: #1c1d1f;
	--am-dark-2: #2a2c30;
	--am-dark-3: #2e3033;

	--am-accent: oklch(0.55 0.14 250);
	--am-accent-soft: oklch(0.95 0.035 250);
	--am-hit: oklch(0.58 0.19 25);
	--am-hit-soft: oklch(0.95 0.05 25);
	--am-hit-text: oklch(0.52 0.19 25);
	--am-success: oklch(0.72 0.16 150);

	--am-container: 1360px;
	--am-pad: 28px;

	--am-r-sm: 9px;
	--am-r-md: 12px;
	--am-r-lg: 14px;
	--am-r-xl: 18px;
	--am-r-2xl: 22px;

	--am-shadow-card: 0 18px 34px -24px rgba(17, 18, 20, 0.28);
	--am-shadow-float: 0 14px 30px -14px rgba(17, 18, 20, 0.45);
	--am-shadow-menu: 0 30px 60px -30px rgba(17, 18, 20, 0.3);

	--am-font: "Manrope", Helvetica, Arial, sans-serif;
}

/* --- база ------------------------------------------------ */

body.am-body {
	background: var(--am-bg);
	color: var(--am-text);
	font-family: var(--am-font);
	font-size: 15px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/* :where() тримає специфічність базового посилання на рівні одного елемента,
   щоб будь-який клас компонента (кнопка, плитка, підвал) перекривав його. */
:where(body.am-body) a {
	color: var(--am-text);
	text-decoration: none;
	transition: color 0.18s ease;
}

:where(body.am-body) a:hover {
	color: var(--am-accent);
}

body.am-body h1,
body.am-body h2,
body.am-body h3 {
	font-family: var(--am-font);
	letter-spacing: -0.025em;
	font-weight: 800;
	color: var(--am-text);
}

body.am-body input,
body.am-body button,
body.am-body select,
body.am-body textarea {
	font-family: inherit;
}

body.am-body p {
	text-wrap: pretty;
}

.am-container {
	width: 100%;
	max-width: var(--am-container);
	margin: 0 auto;
	padding-inline: var(--am-pad);
}

/* власні елементи мають підкорятися атрибуту hidden попри display у правилах нижче */
body.am-body [class^="am-"][hidden],
body.am-body [class*=" am-"][hidden] {
	display: none !important;
}

/* --- хлібні крихти (спільні для каталогу й картки товару) --- */

.am-crumbs {
	display: flex;
	align-items: center;
	gap: 9px;
	padding-top: 18px;
	font-size: 13px;
	color: var(--am-muted);
	font-weight: 600;
}

.am-crumbs a {
	color: var(--am-muted);
}

.am-crumbs__here {
	color: var(--am-text);
}

.am-crumbs__full {
	display: flex;
	align-items: center;
	gap: 9px;
	flex-wrap: wrap;
}

/* Стрілка назад — тільки на мобільному, замість повного шляху. */
.am-crumbs__back {
	display: none;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 700;
	color: var(--am-text);
}

.am-crumbs__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	flex: none;
	border-radius: 9px;
	border: 1px solid var(--am-border);
	background: var(--am-surface-2);
	font-size: 17px;
	line-height: 1;
}

@media (max-width: 1024px) {
	.am-crumbs {
		padding-top: 14px;
	}

	.am-crumbs__full {
		display: none;
	}

	.am-crumbs__back {
		display: inline-flex;
	}
}

.am-dot {
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--am-success);
	flex: none;
}

.am-i {
	display: block;
	flex: none;
}

/* --- кнопки, чіпи, бейджі -------------------------------- */

/* Woodmart капіталізує текст кнопок і задає їм свою --btn-height через min-height.
   Наші контроли мають точні розміри з макета, тож обидва скидаємо. */
body.am-body :is(.am-btn, .am-catalog-btn, .am-tab, .am-fchip, .am-cmem, .am-fmore,
	.am-filters__apply, .am-ctool, .am-fav, .am-cdot, .am-ccard__fav, .am-search button,
	.am-pager .page-numbers, .am-chips__item, .am-frow, .am-cats__tile, .am-models__tile,
	.am-tool, .am-mburger, .am-drawer__close, .am-drawer__back, .am-cats__arrow, .am-models__arrow,
	.am-totop, .am-mfilters-btn, .am-filters__done, .am-filters__sheet-close) {
	min-height: 0;
	text-transform: none;
}

.am-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 46px;
	padding-inline: 22px;
	border: 1px solid transparent;
	border-radius: 13px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.am-btn--lg {
	height: 50px;
	padding-inline: 28px;
	font-size: 15px;
}

.am-btn--dark {
	background: var(--am-text);
	border-color: var(--am-text);
	color: #fff;
}

.am-btn--dark:hover {
	background: var(--am-dark-2);
	border-color: var(--am-dark-2);
	color: #fff;
}

.am-btn--ghost {
	background: #fff;
	border-color: #dededa;
	color: var(--am-text);
}

.am-btn--ghost:hover {
	border-color: var(--am-text);
	color: var(--am-text);
}

.am-btn:focus-visible {
	outline: 0;
	box-shadow: 0 0 0 3px var(--am-accent-soft);
}

.am-chip {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border: 1px solid var(--am-border-ctl);
	border-radius: var(--am-r-sm);
	background: #fff;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--am-text-2);
	white-space: nowrap;
}

.am-pill {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 13px 6px 9px;
	border-radius: 99px;
	background: var(--am-text);
	color: #fff;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	line-height: 1.2;
}

.am-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	padding: 4px 8px;
	border-radius: 7px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.07em;
	color: #fff;
}

.am-badge--new {
	background: var(--am-accent);
}

.am-badge--hit {
	background: var(--am-hit);
}

.am-tag {
	display: inline-flex;
	align-items: center;
	margin-left: 6px;
	padding: 2px 5px;
	border-radius: 5px;
	font-size: 9.5px;
	font-weight: 800;
	letter-spacing: 0.06em;
	line-height: 1.4;
}

.am-tag--new {
	background: var(--am-accent);
	color: #fff;
}

.am-tag--hit {
	background: var(--am-hit-soft);
	color: var(--am-hit-text);
}

.am-swatch {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	flex: none;
	box-shadow: 0 0 0 1px rgba(17, 18, 20, 0.12), 0 0 0 4px #fff, 0 0 0 5px var(--am-border);
}

/* --- службовий рядок ------------------------------------- */

.am-topbar {
	background: #fff;
	border-bottom: 1px solid var(--am-border);
}

.am-topbar__inner {
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	font-size: 13px;
	color: var(--am-text-3);
}

.am-topbar__group {
	display: flex;
	align-items: center;
	gap: 22px;
	min-width: 0;
}

.am-topbar__hours {
	display: flex;
	align-items: center;
	gap: 7px;
	white-space: nowrap;
}

/* --- графік роботи --------------------------------------- */

.am-hours {
	position: relative;
}

body.am-body .am-hours__btn {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	line-height: inherit;
	white-space: nowrap;
	cursor: pointer;
	min-height: 0;
	text-transform: none;
}

.am-hours__chev {
	font-size: 9px;
	opacity: 0.55;
	transition: transform 0.18s ease;
}

.am-hours__btn[aria-expanded="true"] .am-hours__chev {
	transform: rotate(180deg);
}

.am-dot--off {
	background: var(--am-muted);
}

.am-hours__pop {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	z-index: 70;
	width: 258px;
	padding: 14px;
	border-radius: var(--am-r-lg);
	border: 1px solid var(--am-border);
	background: #fff;
	box-shadow: 0 24px 50px -18px rgba(17, 18, 20, 0.35);
	color: var(--am-text);
	font-size: 13px;
	animation: am-hours-in 0.16s ease;
}

.am-hours__pop[hidden] {
	display: none;
}

@keyframes am-hours-in {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
}

/* Місток під підказкою: миша перетинає порожнечу і меню не блимає. */
.am-hours__pop::before {
	content: "";
	position: absolute;
	inset: -12px 0 auto 0;
	height: 12px;
}

.am-hours__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
	font-weight: 800;
	font-size: 14px;
}

.am-hours__state {
	font-size: 11px;
	font-weight: 700;
	color: var(--am-ok, #17a34a);
	white-space: nowrap;
}

.am-hours__state--off {
	color: var(--am-muted);
}

.am-hours__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.am-hours__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 8px;
	border-radius: 9px;
	font-weight: 600;
	color: var(--am-text-2, var(--am-text));
}

.am-hours__row.is-today {
	background: var(--am-surface-2);
	font-weight: 800;
	color: var(--am-text);
}

.am-hours__row.is-off .am-hours__time {
	color: var(--am-muted);
}

.am-hours__time {
	font-variant-numeric: tabular-nums;
}

body.am-body .am-hours__addr {
	display: block;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--am-border);
	font-size: 12px;
	font-weight: 600;
	color: var(--am-muted);
}

/* --- графік у мобільному меню: плитка + вікно на весь екран --- */

body.am-body .am-hoursblock__btn {
	position: relative;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 2px 10px;
	width: 100%;
	padding: 14px 14px 13px;
	border: 1px solid var(--am-border);
	border-radius: var(--am-r-lg);
	background: var(--am-surface-2);
	color: var(--am-text);
	text-align: left;
	cursor: pointer;
	min-height: 0;
	text-transform: none;
}

.am-hoursblock__phone {
	grid-column: 1;
	font-size: 19px;
	font-weight: 800;
	line-height: 1.15;
	margin-bottom: 6px;
}

.am-hoursblock__cap {
	grid-column: 1;
	font-size: 11px;
	font-weight: 600;
	color: var(--am-muted);
}

.am-hoursblock__today {
	grid-column: 1;
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	font-weight: 700;
}

/* Стрілка тримається праворуч по центру всієї плитки. */
.am-hoursblock__chev {
	grid-column: 2;
	grid-row: 1 / -1;
	align-self: center;
	font-size: 18px;
	color: var(--am-muted);
}

/* --- модальне вікно (спільне з «1 клік» на картці товару) --- */

.am-modal {
	position: fixed;
	inset: 0;
	z-index: 95;
	background: rgba(17, 18, 20, 0.42);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	animation: am-modal-fade 0.18s ease;
}

.am-modal[hidden] {
	display: none;
}

.am-modal__box {
	width: 440px;
	max-width: 100%;
	max-height: 100%;
	overflow-y: auto;
	background: #fff;
	border-radius: var(--am-r-2xl);
	padding: 26px 26px 24px;
	box-shadow: 0 40px 80px -30px rgba(17, 18, 20, 0.5);
	display: flex;
	flex-direction: column;
	gap: 16px;
	animation: am-modal-in 0.22s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes am-modal-fade {
	from {
		opacity: 0;
	}
}

@keyframes am-modal-in {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.98);
	}
}

.am-modal__head {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.am-modal__titles {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
	min-width: 0;
}

.am-modal__title {
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.025em;
}

.am-modal__sub {
	font-size: 13px;
	color: var(--am-muted);
	font-weight: 600;
}

body.am-body .am-modal__close {
	width: 36px;
	height: 36px;
	flex: none;
	border-radius: 11px;
	border: 1px solid var(--am-border);
	background: #fff;
	font-size: 16px;
	color: var(--am-muted);
	cursor: pointer;
	padding: 0;
	min-height: 0;
}

body.am-body .am-modal__close:hover {
	border-color: var(--am-text);
	color: var(--am-text);
}

.am-modal__text {
	font-size: 14px;
	line-height: 1.55;
	color: #3c4046;
}

.am-modal__form,
.am-modal__done {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.am-modal__form[hidden],
.am-modal__done[hidden] {
	display: none;
}

body.am-body .am-modal__form input {
	height: 50px;
	border: 1px solid var(--am-border-ctl);
	border-radius: 13px;
	background: var(--am-surface-2);
	padding-inline: 16px;
	font-size: 15px;
	color: var(--am-text);
	outline: none;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

body.am-body .am-modal__form input:focus {
	border-color: var(--am-accent);
	box-shadow: 0 0 0 3px var(--am-accent-soft);
}

body.am-body .am-modal__submit {
	height: 54px;
	border-radius: var(--am-r-lg);
	font-size: 16px;
}

.am-modal__error {
	font-size: 13px;
	font-weight: 700;
	color: #c9372c;
}

.am-modal__error[hidden] {
	display: none;
}

.am-modal__legal {
	font-size: 12px;
	color: var(--am-faint);
	font-weight: 600;
	line-height: 1.5;
}

.am-modal__done {
	gap: 14px;
	padding: 6px 0 2px;
}

.am-modal__check {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: #eef7f1;
	border: 1px solid #d8ecdf;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	color: oklch(0.5 0.13 155);
	font-weight: 800;
}

body.am-body .am-modal__done .am-btn {
	height: 50px;
	border-radius: 13px;
	font-size: 14.5px;
}

/* Дзвінок попри попередження — тиха посилання-відмовка під формою. */
body.am-body .am-modal__anyway {
	align-self: center;
	padding: 6px 4px;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--am-muted);
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.am-body .am-modal__anyway:hover {
	color: var(--am-text);
}

/* --- вміст вікна з графіком ------------------------------ */

.am-modal--hours .am-modal__box {
	gap: 14px;
}

.am-modal--hours .am-modal__sub {
	display: flex;
	align-items: center;
	gap: 7px;
	color: var(--am-success);
	font-weight: 700;
}

.am-modal--hours .am-modal__sub--off {
	color: var(--am-muted);
}

.am-hours__list--big {
	margin-inline: -8px;
}

.am-hours__list--big .am-hours__row {
	padding: 10px 12px;
	font-size: 14.5px;
}

body.am-body .am-hoursfull__addr {
	display: block;
	padding-top: 14px;
	border-top: 1px solid var(--am-border);
	font-size: 13.5px;
	font-weight: 600;
	color: var(--am-muted);
}

body.am-body .am-hoursfull__call {
	width: 100%;
	height: 52px;
	border-radius: var(--am-r-lg);
	justify-content: center;
	font-size: 15px;
}

.am-topbar a {
	color: var(--am-text-3);
	white-space: nowrap;
}

/* --- шапка ----------------------------------------------- */

.am-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: #fff;
	border-bottom: 1px solid var(--am-border);
}

.am-header__inner {
	height: 76px;
	display: flex;
	align-items: center;
	gap: 20px;
}

.am-logo {
	display: flex;
	align-items: center;
	gap: 11px;
	flex: none;
	margin-right: 6px;
}

.am-logo__mark {
	position: relative;
	width: 40px;
	height: 40px;
	border-radius: 13px;
	background: var(--am-text);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	flex: none;
}

.am-logo__gloss {
	position: absolute;
	inset: 0;
	background: radial-gradient(120% 120% at 20% 0%, rgba(255, 255, 255, 0.22), transparent 60%);
}

.am-logo__am {
	position: relative;
	color: #fff;
	font-weight: 800;
	font-size: 17px;
	letter-spacing: -0.05em;
	line-height: 1;
}

.am-logo__dot {
	position: absolute;
	right: 6px;
	bottom: 6px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--am-success);
}

.am-logo__mark--light {
	background: #fff;
}

.am-logo__mark--light .am-logo__am {
	color: var(--am-dark);
}

.am-logo__text {
	display: flex;
	flex-direction: column;
	line-height: 1.05;
}

.am-logo__title {
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.am-logo__sub {
	font-size: 11px;
	color: var(--am-muted);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.am-catalog-btn {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 46px;
	padding-inline: 22px;
	border: 0;
	border-radius: var(--am-r-md);
	background: var(--am-text);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	flex: none;
	transition: background-color 0.18s ease;
}

/* Woodmart на :hover підставляє свій --btn-color-hover і текст стає сірим.
   Селектор із .am-body переважує його, як і решта наших скидань вище. */
body.am-body .am-catalog-btn:hover,
body.am-body .am-catalog-btn:focus,
body.am-body .am-catalog-btn:focus-visible,
body.am-body .am-catalog-btn:active {
	color: #fff;
}

.am-catalog-btn[aria-expanded="true"] {
	background: var(--am-accent);
}

.am-burger {
	display: flex;
	flex-direction: column;
	gap: 3px;
	width: 15px;
}

.am-burger span {
	height: 2px;
	border-radius: 2px;
	background: currentColor;
}

.am-search {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	height: 46px;
	background: var(--am-surface-3);
	border: 1px solid var(--am-border-ctl-2);
	border-radius: var(--am-r-md);
	padding: 0 6px 0 16px;
	transition: border-color 0.18s ease;
}

.am-search:focus-within {
	border-color: var(--am-border-hover);
}

.am-search input[type="search"] {
	flex: 1;
	min-width: 0;
	width: 0;
	height: 100%;
	border: 0;
	background: transparent;
	outline: none;
	font-size: 14.5px;
	color: var(--am-text);
	-webkit-appearance: none;
	appearance: none;
}

.am-search input::placeholder {
	color: var(--am-faint);
}

.am-search button {
	flex: none;
	height: 34px;
	padding-inline: 18px;
	border: 0;
	border-radius: var(--am-r-sm);
	background: var(--am-text);
	color: #fff;
	font-size: 13.5px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.18s ease;
}

.am-search button:hover {
	background: var(--am-dark-2);
}

.am-header__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: none;
}

.am-phone {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
	padding-right: 8px;
}

.am-phone__num {
	font-size: 15px;
	font-weight: 800;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.am-phone__note {
	font-size: 11.5px;
	color: var(--am-muted);
	font-weight: 600;
	white-space: nowrap;
}

.am-tool {
	position: relative;
	flex: none;
	width: 46px;
	height: 46px;
	border-radius: var(--am-r-md);
	background: var(--am-surface-3);
	border: 1px solid var(--am-border-ctl-2);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--am-text);
	transition: background-color 0.18s ease, border-color 0.18s ease;
}

.am-tool:hover {
	background: #fff;
	border-color: var(--am-border-hover);
	color: var(--am-text);
}

.am-tool--sm {
	width: 38px;
	height: 38px;
	border-radius: 11px;
	background: var(--am-surface-2);
	border-color: var(--am-border);
}

.am-tool__count {
	position: absolute;
	top: -5px;
	right: -5px;
	min-width: 19px;
	height: 19px;
	padding-inline: 5px;
	border-radius: 99px;
	background: var(--am-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #fff;
}

.am-tool--sm .am-tool__count {
	min-width: 17px;
	height: 17px;
	font-size: 10px;
}

/* --- мега-меню ------------------------------------------- */

.am-mega {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
}

/* Затемнення сторінки під шапкою: на всю ширину й висоту екрана,
   а не смужками обабіч панелі. */
.am-mega::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 100vh;
	background: rgba(17, 18, 20, 0.28);
}

.am-mega[hidden] {
	display: none;
}

.am-mega__panel {
	position: relative;
	z-index: 1;
	background: #fff;
	border: 1px solid var(--am-border);
	border-top: 0;
	border-radius: 0 0 var(--am-r-xl) var(--am-r-xl);
	box-shadow: var(--am-shadow-menu);
	display: grid;
	grid-template-columns: 284px 1fr;
	overflow: hidden;
	min-height: 462px;
}

.am-mega__cats {
	background: var(--am-surface-2);
	border-right: 1px solid var(--am-border);
	padding: 14px 12px;
}

.am-mega__cat {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 9px 12px;
	border: 0;
	border-radius: 11px;
	background: transparent;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--am-text);
	cursor: pointer;
	text-align: left;
	transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.am-mega__cat.is-active {
	background: #fff;
	font-weight: 700;
	box-shadow: 0 1px 0 var(--am-border), 0 8px 18px -14px rgba(17, 18, 20, 0.35);
}

.am-mega__cat-name {
	flex: 1;
}

.am-mega__ico {
	width: 30px;
	height: 30px;
	border-radius: var(--am-r-sm);
	background: #fff;
	border: 1px solid var(--am-border);
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
}

.am-mega__ico img {
	width: 19px;
	height: 19px;
	object-fit: contain;
}

.am-mega__chev {
	font-size: 17px;
	color: #c3c7cc;
	line-height: 1;
}

.am-mega__cat.is-active .am-mega__chev {
	color: var(--am-accent);
}

.am-mega__body {
	position: relative;
}

.am-mega__pane {
	display: none;
	padding: 26px 30px 30px;
	flex-direction: column;
	min-height: 100%;
}

.am-mega__pane.is-active {
	display: flex;
}

.am-mega__head {
	display: flex;
	align-items: baseline;
	gap: 14px;
	margin-bottom: 22px;
}

.am-mega__head h3 {
	margin: 0;
	font-size: 21px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.am-mega__count {
	font-size: 13px;
	color: var(--am-muted);
	font-weight: 600;
}

.am-mega__all {
	margin-left: auto;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--am-accent);
	white-space: nowrap;
}

.am-mega__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px 34px;
	align-items: start;
	padding-bottom: 28px;
}

/* Розділ із чотирма групами (iPhone: 18 · 17 · попередні · підбір). */
.am-mega__grid--4 {
	grid-template-columns: repeat(4, 1fr);
	gap: 28px 26px;
}

.am-mega__group {
	display: flex;
	flex-direction: column;
	gap: 11px;
	min-width: 0;
}

.am-mega__label {
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--am-muted-2);
}

.am-mega__group a {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 14.5px;
	font-weight: 600;
	color: #2c2f34;
	padding: 2px 0;
}

.am-mega__promo {
	margin-top: auto;
	padding-top: 22px;
	border-top: 1px solid var(--am-divider);
	display: flex;
	gap: 14px;
}

/* Нижній ряд мега-меню — один на всю панель, під категоріями й вмістом.
   Раніше блок жив усередині кожного розділу і стрибав разом із його висотою. */
.am-mega__foot {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	padding: 18px 30px 22px;
	border-top: 1px solid var(--am-divider);
	background: var(--am-surface);
}

.am-mega__foot .am-mega__promo-item {
	min-width: 0;
}

.am-mega__promo-item {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 18px;
	background: var(--am-surface-2);
	border: 1px solid var(--am-border);
	border-radius: var(--am-r-lg);
	transition: border-color 0.18s ease;
}

.am-mega__promo-item:hover {
	border-color: var(--am-border-hover);
}

.am-mega__promo-art {
	width: 52px;
	height: 52px;
	border-radius: 13px;
	flex: none;
	display: grid;
	place-items: center;
	background: var(--am-surface);
	border: 1px solid var(--am-border-ctl-2);
	color: var(--am-text);
	transition: border-color 0.18s ease, color 0.18s ease;
}

.am-mega__promo-item:hover .am-mega__promo-art {
	border-color: var(--am-border-hover);
	color: var(--am-accent);
}

.am-mega__promo-text {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.am-mega__promo-title {
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.35;
}

.am-mega__promo-sub {
	font-size: 12.5px;
	color: #7b8088;
	line-height: 1.4;
}

/* --- мобільна шапка -------------------------------------- */

.am-mheader {
	display: none;
	position: sticky;
	top: 0;
	z-index: 40;
	background: #fff;
	border-bottom: 1px solid var(--am-border);
	padding-inline: 14px;
}

/* Бургер ліворуч, логотип по центру, пошук і кошик праворуч. */
.am-mheader__bar {
	height: 56px;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 10px;
}

.am-mheader__bar .am-logo {
	justify-self: center;
	margin-right: 0;
}

.am-mheader__tools {
	display: flex;
	align-items: center;
	gap: 6px;
}

.am-logo--sm .am-logo__mark {
	width: 34px;
	height: 34px;
	border-radius: 11px;
}

.am-logo--sm .am-logo__am {
	font-size: 15px;
}

.am-logo--sm .am-logo__title {
	font-size: 16px;
}

.am-logo--sm .am-logo__sub {
	font-size: 9.5px;
}

.am-mburger {
	width: 38px;
	height: 38px;
	border-radius: 11px;
	border: 0;
	background: var(--am-text);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex: none;
	transition: background-color 0.18s ease;
}

.am-mburger[aria-expanded="true"] {
	background: var(--am-accent);
}

.am-search--mobile {
	height: 46px;
	margin-bottom: 8px;
}

.am-search--mobile button {
	width: 70px;
	padding-inline: 0;
	font-size: 12.5px;
}

/* --- drawer (макет «Мобільне меню з іконками») ------------- */

.am-scrim {
	position: fixed;
	inset: 0;
	z-index: 60;
	background: rgba(17, 18, 20, 0.45);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.am-scrim.is-open {
	opacity: 1;
}

.am-scrim[hidden],
.am-drawer[hidden] {
	display: none;
}

/* Виїжджає зліва — з-під бургера, який теж стоїть ліворуч. На телефоні — на весь екран. */
.am-drawer {
	--am-dr-ink: #111114;
	--am-dr-line: #ececef;
	--am-dr-line-2: #e6e6ea;
	--am-dr-soft: #f6f6f8;
	--am-dr-chev: #b6b6be;

	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	z-index: 61;
	/* Праворуч лишається смужка сторінки: дотик по ній закриває меню. */
	width: min(380px, 86vw);
	background: #fff;
	color: var(--am-dr-ink);
	box-shadow: 24px 0 60px -20px rgba(17, 18, 20, 0.5);
	display: flex;
	flex-direction: column;
	transform: translateX(-100%);
	transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.am-drawer.is-open {
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.am-scrim,
	.am-drawer,
	.am-drawer__nav {
		transition: none;
	}
}

/* шапка: кабінет і кошик ліворуч, закрити праворуч; у підрозділі — назад і назва */
.am-drawer__head {
	flex: none;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 84px;
	box-sizing: border-box;
	padding: 14px 16px;
	border-bottom: 1px solid var(--am-dr-line);
	background: #fff;
}

.am-drawer__acts {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 10px;
}

.am-drawer.is-sub .am-drawer__acts {
	display: none;
}

.am-drawer__title {
	flex: 1;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
}

.am-drawer:not(.is-sub) .am-drawer__title {
	display: none;
}

/* кнопка «назад» у підрозділі — м'яка, у тон карткам шапки */
body.am-body .am-drawer__back {
	position: relative;
	width: 44px;
	height: 44px;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	min-height: 0;
	border: 0;
	border-radius: 14px;
	background: var(--am-dr-soft);
	color: var(--am-dr-ink);
	cursor: pointer;
}

body.am-body .am-drawer__back:hover {
	background: #ececf0;
	color: var(--am-dr-ink);
}

/* картка профілю: аватар, ім'я або «Увійти», підпис */
body.am-body .am-drawer__me {
	flex: 1;
	min-width: 0;
	height: 56px;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 6px 14px 6px 6px;
	border-radius: 18px;
	background: var(--am-dr-soft);
	color: var(--am-dr-ink);
	text-decoration: none;
	transition: background-color 0.15s ease;
}

body.am-body .am-drawer__me:hover {
	background: #ececf0;
	color: var(--am-dr-ink);
}

.am-drawer__avatar {
	width: 44px;
	height: 44px;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--am-dr-ink);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.am-drawer__me-text {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.am-drawer__me-title {
	overflow: hidden;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.15;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.am-drawer__me-sub {
	overflow: hidden;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
	color: #8d8d97;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* кошик — квадрат у тон картці профілю */
body.am-body .am-drawer__cart {
	position: relative;
	width: 56px;
	height: 56px;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 18px;
	background: var(--am-dr-soft);
	color: var(--am-dr-ink);
	text-decoration: none;
	transition: background-color 0.15s ease;
}

body.am-body .am-drawer__cart:hover {
	background: #ececf0;
	color: var(--am-dr-ink);
}

body.am-body .am-drawer__cart .am-drawer__badge {
	top: 6px;
	right: 6px;
	box-shadow: 0 0 0 2px var(--am-dr-soft);
}

/* лічильники кошика, обраного й порівняння */
.am-drawer__badge {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	box-sizing: border-box;
	border-radius: 10px;
	background: var(--am-dr-ink);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
}

.am-drawer__badge[hidden] {
	display: none;
}

/* Дві панелі в одному вікні: список розділів і список моделей. */
.am-drawer__viewport {
	position: relative;
	flex: 1;
	min-height: 0;
	overflow: hidden;
}

.am-drawer__nav {
	position: absolute;
	inset: 0;
	overflow-y: auto;
	padding: 12px 16px 16px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	background: #fff;
	transition: transform 0.28s ease;
}

.am-drawer__nav--sub {
	transform: translateX(100%);
	pointer-events: none;
	visibility: hidden;
}

.am-drawer__nav--sub.is-active {
	transform: translateX(0);
	pointer-events: auto;
	visibility: visible;
}

.am-drawer.is-sub .am-drawer__nav[data-am-panel="root"] {
	transform: translateX(-100%);
}

/* рядок розділу: іконка в рамці, назва, стрілка */
body.am-body .am-drawer__item,
body.am-body .am-drawer__sub {
	/* не стискати: список прокручується, а не сплющується під висоту панелі */
	flex: none;
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	min-height: 0;
	margin: 0;
	padding: 8px 4px;
	border: 0;
	border-radius: 14px;
	background: transparent;
	color: var(--am-dr-ink);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
	text-align: left;
	text-transform: none;
	text-decoration: none;
	cursor: pointer;
}

body.am-body .am-drawer__sub {
	padding: 11px 4px;
	font-size: 14px;
	font-weight: 600;
}

body.am-body .am-drawer__item:hover,
body.am-body .am-drawer__sub:hover {
	background: var(--am-dr-soft);
	color: var(--am-dr-ink);
}

.am-drawer__ico {
	width: 44px;
	height: 44px;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--am-dr-line);
	border-radius: 14px;
	color: var(--am-dr-ink);
}

.am-drawer__label {
	flex: 1;
}

.am-drawer__chev {
	flex: none;
	color: var(--am-dr-chev);
}

body.am-body .am-drawer__all {
	color: var(--am-accent);
	font-weight: 700;
}

/* Межа між каталогом і службовими сторінками. */
.am-drawer__rule {
	flex: none;
	height: 1px;
	margin: 14px 4px;
	background: var(--am-dr-line);
}

/* низ: обране й порівняння, телефон і графік */
.am-drawer__foot {
	flex: none;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 12px 16px 18px;
	border-top: 1px solid var(--am-dr-line);
	background: #fff;
}

/* шапка в один рядок: профіль, обране, порівняння, кошик */
.am-drawer .am-drawer__acts {
	min-width: 0;
	gap: 8px;
}

body.am-body .am-drawer .am-drawer__me {
	gap: 8px;
	padding: 4px 10px 4px 4px;
}

.am-drawer .am-drawer__me-title {
	font-size: 14px;
}

body.am-body .am-drawer .am-drawer__icon,
body.am-body .am-drawer .am-drawer__cart {
	width: clamp(42px, 6.4vh, 52px);
	width: clamp(42px, 6.4dvh, 52px);
	height: clamp(42px, 6.4vh, 52px);
	height: clamp(42px, 6.4dvh, 52px);
	border-radius: clamp(13px, 2vh, 16px);
	border-radius: clamp(13px, 2dvh, 16px);
}

body.am-body .am-drawer .am-drawer__me {
	height: clamp(42px, 6.4vh, 52px);
	height: clamp(42px, 6.4dvh, 52px);
	border-radius: clamp(13px, 2vh, 16px);
	border-radius: clamp(13px, 2dvh, 16px);
}

.am-drawer .am-drawer__avatar {
	width: clamp(34px, 5.2vh, 42px);
	width: clamp(34px, 5.2dvh, 42px);
	height: clamp(34px, 5.2vh, 42px);
	height: clamp(34px, 5.2dvh, 42px);
}

body.am-body .am-drawer .am-drawer__icon {
	position: relative;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--am-dr-soft);
	color: var(--am-dr-ink);
	text-decoration: none;
	transition: background-color 0.15s ease;
}

body.am-body .am-drawer .am-drawer__icon:hover {
	background: #ececf0;
	color: var(--am-dr-ink);
}

body.am-body .am-drawer .am-drawer__icon .am-drawer__badge,
body.am-body .am-drawer .am-drawer__cart .am-drawer__badge {
	top: 4px;
	right: 4px;
	box-shadow: 0 0 0 2px var(--am-dr-soft);
}

body.am-body .am-drawer__tool {
	position: relative;
	flex: 1;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0 14px;
	border: 1px solid var(--am-dr-line-2);
	border-radius: 14px;
	background: #fff;
	color: var(--am-dr-ink);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
}

body.am-body .am-drawer__tool:hover {
	border-color: var(--am-dr-ink);
	color: var(--am-dr-ink);
}

body.am-body .am-drawer .am-hoursblock__btn {
	padding: 14px 16px;
	border: 1px solid var(--am-dr-line);
	border-radius: 18px;
	background: #fafafb;
	gap: 4px 12px;
}

body.am-body .am-drawer .am-hoursblock__btn:hover {
	border-color: var(--am-dr-ink);
}

.am-drawer .am-hoursblock__phone {
	margin-bottom: 0;
	font-size: 21px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.01em;
}

.am-drawer .am-hoursblock__cap {
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
	color: #8d8d97;
}

.am-drawer .am-hoursblock__today {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
}

.am-drawer .am-hoursblock__chev {
	color: #9a9aa4;
	font-size: 22px;
}

/*
 * Меню під висоту екрана. На телефоні з панелями браузера видно ~650–700 px:
 * рядки, іконки, шрифти й відступи зменшуються разом із висотою, щоб усі
 * пункти, кнопки й телефон вміщувались без прокрутки. На високих екранах —
 * розміри з макету (верхня межа clamp). Спершу vh — запасний варіант для
 * старих браузерів, далі dvh — реальна видима висота.
 */
body.am-body .am-drawer__item {
	padding-block: clamp(1px, calc(1.2vh - 6px), 8px);
	padding-block: clamp(1px, calc(1.2dvh - 6px), 8px);
	font-size: clamp(13px, 2vh, 15px);
	font-size: clamp(13px, 2dvh, 15px);
}

.am-drawer__nav[data-am-panel="root"] {
	gap: 0;
	padding-block: clamp(6px, 1.2vh, 12px);
	padding-block: clamp(6px, 1.2dvh, 12px);
}

.am-drawer__ico {
	width: clamp(30px, 4.8vh, 44px);
	width: clamp(30px, 4.8dvh, 44px);
	height: clamp(30px, 4.8vh, 44px);
	height: clamp(30px, 4.8dvh, 44px);
	border-radius: clamp(10px, 1.7vh, 14px);
	border-radius: clamp(10px, 1.7dvh, 14px);
}

.am-drawer__ico svg {
	width: clamp(16px, 2.4vh, 20px);
	width: clamp(16px, 2.4dvh, 20px);
	height: auto;
}

.am-drawer__rule {
	margin-block: clamp(4px, 1vh, 14px);
	margin-block: clamp(4px, 1dvh, 14px);
}

.am-drawer__head {
	min-height: 0;
	padding-block: clamp(8px, 1.6vh, 14px);
	padding-block: clamp(8px, 1.6dvh, 14px);
}

body.am-body .am-drawer__me,
body.am-body .am-drawer__cart {
	height: clamp(44px, 7vh, 56px);
	height: clamp(44px, 7dvh, 56px);
	border-radius: clamp(14px, 2.2vh, 18px);
	border-radius: clamp(14px, 2.2dvh, 18px);
}

body.am-body .am-drawer__cart {
	width: clamp(44px, 7vh, 56px);
	width: clamp(44px, 7dvh, 56px);
}

.am-drawer__avatar {
	width: clamp(34px, 5.4vh, 44px);
	width: clamp(34px, 5.4dvh, 44px);
	height: clamp(34px, 5.4vh, 44px);
	height: clamp(34px, 5.4dvh, 44px);
	font-size: clamp(13px, 1.9vh, 15px);
	font-size: clamp(13px, 1.9dvh, 15px);
}

.am-drawer__foot {
	gap: clamp(6px, 1.2vh, 12px);
	gap: clamp(6px, 1.2dvh, 12px);
	padding-block: clamp(8px, 1.5vh, 12px) clamp(10px, 2.2vh, 18px);
	padding-block: clamp(8px, 1.5dvh, 12px) clamp(10px, 2.2dvh, 18px);
}

body.am-body .am-drawer__tool {
	height: clamp(38px, 6vh, 48px);
	height: clamp(38px, 6dvh, 48px);
	font-size: clamp(13px, 1.9vh, 14px);
	font-size: clamp(13px, 1.9dvh, 14px);
}

body.am-body .am-drawer .am-hoursblock__btn {
	padding-block: clamp(8px, 1.4vh, 14px);
	padding-block: clamp(8px, 1.4dvh, 14px);
	row-gap: clamp(2px, 0.5vh, 4px);
	row-gap: clamp(2px, 0.5dvh, 4px);
}

.am-drawer .am-hoursblock__phone {
	font-size: clamp(16px, 2.5vh, 19px);
	font-size: clamp(16px, 2.5dvh, 19px);
}

.am-drawer .am-hoursblock__cap {
	font-size: clamp(11px, 1.6vh, 12px);
	font-size: clamp(11px, 1.6dvh, 12px);
}

/* --- головна: герой -------------------------------------- */

.am-main {
	display: block;
}

.am-hero-row {
	display: grid;
	grid-template-columns: 1fr 330px;
	gap: 16px;
	padding-top: 26px;
}

.am-hero {
	position: relative;
	min-height: 420px;
	border-radius: var(--am-r-2xl);
	background: linear-gradient(120deg, #ffffff 0%, #ffffff 52%, var(--am-surface-3) 100%);
	border: 1px solid var(--am-border);
	overflow: hidden;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.am-hero__copy {
	padding: 40px 38px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 16px;
	position: relative;
	z-index: 2;
	min-width: 0;
}

.am-hero__title {
	margin: 0;
	font-size: clamp(34px, 3.6vw, 54px);
	line-height: 0.98;
	font-weight: 800;
	letter-spacing: -0.04em;
}

.am-hero__title span {
	color: var(--am-muted-2);
}

.am-hero__text {
	margin: 0;
	font-size: 15.5px;
	line-height: 1.5;
	color: var(--am-text-3);
	max-width: 340px;
}

.am-hero__colors {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-top: 2px;
}

.am-hero__colors-note {
	font-size: 12.5px;
	color: var(--am-muted);
	font-weight: 600;
	margin-left: 4px;
	white-space: nowrap;
}

.am-hero__mems {
	display: flex;
	align-items: center;
	gap: 7px;
	flex-wrap: wrap;
}

.am-hero__price {
	display: flex;
	align-items: flex-end;
	gap: 10px;
	margin-top: 6px;
	flex-wrap: wrap;
}

.am-hero__from,
.am-hero__mo {
	font-size: 13px;
	color: var(--am-muted);
	font-weight: 600;
	padding-bottom: 5px;
	white-space: nowrap;
}

.am-hero__amount {
	font-size: 31px;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1;
	white-space: nowrap;
}

.am-hero__cta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 6px;
	flex-wrap: wrap;
}

.am-hero__art {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 26px;
}

.am-hero__glow {
	position: absolute;
	width: 78%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(17, 18, 20, 0.07), transparent 68%);
}

.am-hero__ring {
	position: absolute;
	width: 56%;
	aspect-ratio: 1;
	border-radius: 50%;
	border: 1px solid #e8e8e4;
}

.am-hero__shot {
	position: relative;
	width: 100%;
	max-width: 260px;
	aspect-ratio: 260 / 340;
	border-radius: 30px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 30px 60px -30px rgba(17, 18, 20, 0.45);
	display: block;
}

.am-hero__shot img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	/* contain, а не cover: широкі фото (MacBook, iMac, iPad) інакше
	   обрізаються рамкою 260×340 до вертикальної смуги. */
	object-fit: contain;
	padding: 16px;
}

/* Фото героя на десктопі — близько 80% висоти блоку, а не фіксовані 260 px:
   на широкому екрані картка губилась у правій половині. */
@media (min-width: 1025px) {
	.am-hero__art {
		padding: 20px 28px;
	}

	.am-hero__shot {
		width: auto;
		max-width: 100%;
		height: 86%;
		max-height: 660px;
	}

	.am-hero__shot img {
		padding: 5%;
	}

	.am-hero__glow {
		width: 96%;
	}

	.am-hero__ring {
		width: 74%;
	}
}

.am-hero__chip {
	position: absolute;
	right: 18px;
	padding: 7px 12px;
	border-radius: 10px;
	background: #fff;
	border: 1px solid var(--am-border);
	font-size: 12px;
	font-weight: 700;
	box-shadow: 0 12px 24px -18px rgba(17, 18, 20, 0.4);
	white-space: nowrap;
}

.am-hero__chip--top {
	top: 22px;
}

.am-hero__chip--bottom {
	bottom: 22px;
}

/* --- головна: бічні банери ------------------------------- */

.am-side {
	display: grid;
	grid-template-rows: 1fr 1fr;
	gap: 16px;
}

.am-side__card {
	position: relative;
	border-radius: 20px;
	background: #fff;
	border: 1px solid var(--am-border);
	padding: 22px 24px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
	min-height: 150px;
	transition: border-color 0.18s ease;
}

.am-side__card:hover {
	border-color: var(--am-border-hover);
}

.am-side__top {
	display: flex;
	flex-direction: column;
	gap: 7px;
	position: relative;
	z-index: 2;
}

.am-side__title {
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.am-side__sub {
	font-size: 13px;
	color: #7b8088;
	font-weight: 600;
	max-width: 160px;
	line-height: 1.4;
}

.am-side__cta {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--am-accent);
	position: relative;
	z-index: 2;
}

/* Іконка картки — у стилі плиток мега-меню, замість смугастого кружка-заглушки. */
.am-side__art {
	position: absolute;
	right: 24px;
	top: 50%;
	width: 64px;
	height: 64px;
	display: grid;
	place-items: center;
	border-radius: 18px;
	background: var(--am-surface-2);
	border: 1px solid var(--am-border-ctl-2);
	color: var(--am-text);
	transform: translateY(-50%);
	transition: border-color 0.18s ease, background-color 0.18s ease;
}

.am-side__card:hover .am-side__art {
	border-color: var(--am-border-hover);
	background: var(--am-surface);
}

/* Текст не заходить під іконку. */
.am-side__top,
.am-side__cta {
	padding-right: 84px;
}

/* --- головна: стрічка категорій -------------------------- */

.am-cats {
	position: relative;
	padding-top: 34px;
}

.am-cats__strip {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding-bottom: 2px;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.am-cats__strip::-webkit-scrollbar {
	height: 0;
	width: 0;
}

.am-cats__tile {
	flex: none;
	width: 151px;
	min-height: 119px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 13px;
	padding: 20px 12px;
	border-radius: 16px;
	border: 1px solid var(--am-border);
	background: #fff;
	color: var(--am-text);
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: -0.01em;
	text-align: center;
	line-height: 1.2;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.am-cats__tile:hover {
	border-color: var(--am-border-hover);
	color: var(--am-text);
	box-shadow: var(--am-shadow-card);
}

.am-cats__tile img {
	width: 38px;
	height: 38px;
	object-fit: contain;
}

.am-cats__tile.is-active {
	background: var(--am-text);
	border-color: var(--am-text);
	color: #fff;
}

.am-cats__tile.is-active:hover {
	color: #fff;
}

/* чорні PNG-гліфи на темній плитці — інвертуємо в білий */
.am-cats__tile.is-active img {
	filter: invert(1);
}

.am-cats__arrow {
	position: absolute;
	top: calc(50% + 17px);
	transform: translateY(-50%);
	z-index: 3;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--am-border-ctl);
	background: #fff;
	color: var(--am-text);
	font-size: 17px;
	font-weight: 700;
	box-shadow: 0 10px 22px -14px rgba(17, 18, 20, 0.45);
	align-items: center;
	justify-content: center;
	cursor: pointer;
	display: none;
	transition: border-color 0.18s ease;
}

.am-cats__arrow:hover {
	border-color: var(--am-text);
}

.am-cats__arrow.is-on {
	display: flex;
}

.am-cats__arrow--left {
	left: 12px;
}

.am-cats__arrow--right {
	right: 12px;
}

/* --- головна: популярні моделі --------------------------- */

.am-pop {
	padding-top: 44px;
	padding-bottom: 60px;
}

.am-pop__head {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.am-pop__head h2 {
	margin: 0;
	font-size: 27px;
	font-weight: 800;
	letter-spacing: -0.03em;
}

.am-pop__tabs {
	display: flex;
	gap: 8px;
	margin-left: 10px;
	flex-wrap: wrap;
}

.am-tab {
	height: 34px;
	padding-inline: 15px;
	border-radius: 99px;
	border: 1px solid var(--am-border-ctl);
	background: #fff;
	color: var(--am-text-2);
	font-size: 13.5px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.am-tab.is-active {
	background: var(--am-text);
	border-color: var(--am-text);
	color: #fff;
}

.am-pop__all {
	margin-left: auto;
	font-size: 14px;
	font-weight: 700;
	color: var(--am-text-3);
	white-space: nowrap;
}

.am-grid {
	display: grid;
	gap: 16px;
}

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

.am-grid__cell[hidden] {
	display: none;
}

/* --- картка товару --------------------------------------- */

.am-card {
	height: 100%;
	background: #fff;
	border: 1px solid var(--am-border);
	border-radius: var(--am-r-xl);
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.am-card:hover {
	border-color: var(--am-border-hover);
	box-shadow: var(--am-shadow-card);
}

.am-card__media {
	position: relative;
	height: 210px;
	border-radius: var(--am-r-md);
	overflow: hidden;
	/* білий, як фон на фото товарів — тепла підкладка виглядала жовтуватою рамкою */
	background: var(--am-surface);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
}

/* смугастий плейсхолдер — лише коли фото товару немає */
.am-card__media--empty {
	background: repeating-linear-gradient(135deg, #f0f0ee 0 8px, #f8f8f6 8px 16px);
}

.am-card__media img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.am-card__head {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.am-card__name {
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.am-card__spec {
	font-size: 12.5px;
	color: var(--am-muted);
	font-weight: 600;
}

.am-card__price {
	display: flex;
	align-items: flex-end;
	gap: 9px;
	margin-top: auto;
}

.am-card__now {
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.am-card__old {
	font-size: 14px;
	color: var(--am-faint);
	text-decoration: line-through;
	font-weight: 600;
	padding-bottom: 2px;
}

.am-card__actions {
	display: flex;
	gap: 8px;
}

.am-card__buy {
	flex: 1;
	height: 42px;
	border-radius: 11px;
	padding-inline: 14px;
}

.am-fav {
	width: 42px;
	height: 42px;
	flex: none;
	border: 1px solid var(--am-border-ctl-2);
	border-radius: 11px;
	background: var(--am-surface-2);
	color: var(--am-text);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: border-color 0.18s ease, color 0.18s ease;
}

.am-fav:hover {
	border-color: var(--am-text);
}

.am-fav[aria-pressed="true"] {
	color: var(--am-hit);
	border-color: var(--am-hit);
}

.am-fav[aria-pressed="true"] .am-i {
	fill: currentColor;
}

/* --- блок довіри ----------------------------------------- */

.am-trust {
	background: #fff;
	border-top: 1px solid var(--am-border);
}

.am-trust__grid {
	padding-block: 34px;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 26px;
}

.am-trust__item {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.am-trust__ico {
	width: 42px;
	height: 42px;
	border-radius: var(--am-r-md);
	background: var(--am-surface-3);
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	color: var(--am-text);
}

.am-trust__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.am-trust__title {
	font-size: 15px;
	font-weight: 700;
}

.am-trust__sub {
	font-size: 13px;
	color: #7b8088;
	line-height: 1.45;
}

/* --- підвал ---------------------------------------------- */

.am-footer {
	background: var(--am-dark);
	color: var(--am-divider);
}

.am-footer a {
	color: var(--am-muted-2);
}

.am-footer a:hover {
	color: #fff;
}

.am-footer__grid {
	padding: 52px var(--am-pad) 40px;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 34px;
}

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

.am-footer .am-logo__title {
	font-size: 18px;
	color: #fff;
}

.am-footer .am-logo__sub {
	font-size: 10.5px;
	color: var(--am-muted);
}

.am-footer__rule {
	height: 1px;
	background: var(--am-dark-3);
	max-width: 230px;
}

.am-footer__phone {
	color: #fff;
	font-size: 25px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.am-footer__mail {
	color: #c9ccd1;
	font-size: 14.5px;
	font-weight: 600;
}

.am-footer__col {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}

.am-footer__col a {
	font-size: 14.5px;
	font-weight: 600;
}

.am-footer__label {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #fff;
}

.am-footer__col--wide {
	gap: 26px;
}

.am-footer__socials {
	display: flex;
	gap: 10px;
}

.am-footer__socials a {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--am-dark-2);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #e6e8ea;
	font-size: 12.5px;
	font-weight: 800;
	transition: background-color 0.18s ease;
}

.am-footer__socials a:hover {
	background: #3a3d42;
	color: #fff;
}

.am-footer__partners {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.am-footer__partner-list {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}

.am-footer__partner-list span {
	font-size: 14px;
	font-weight: 800;
	color: #75797f;
	white-space: nowrap;
}

.am-footer__bottom {
	border-top: 1px solid var(--am-dark-2);
}

.am-footer__bottom-inner {
	padding-block: 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	font-size: 13px;
	color: #75797f;
}

.am-footer__bottom-inner a {
	color: #75797f;
}

.am-footer__legal {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}

/* --- кнопка «наверх» ------------------------------------- */

.am-totop {
	position: fixed;
	right: 18px;
	bottom: 22px;
	z-index: 50;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1px solid var(--am-border-ctl);
	background: #fff;
	color: var(--am-text);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: var(--am-shadow-float);
	opacity: 0;
	transition: opacity 0.22s ease, bottom 0.22s ease;
}

.am-totop[hidden] {
	display: none;
}

.am-totop.is-on {
	opacity: 1;
}

/* --- сумісність із Woodmart ------------------------------ */

body.am-body .main-page-wrapper {
	padding-top: 0;
	background: var(--am-bg);
}

body.am-body .wd-page-wrapper {
	overflow-x: clip;
}

/* Сторінка «Замовлення прийнято» — той самий сірий фон, що й на головній.
   Там його малює .main-page-wrapper, а тут вміст лежить просто на білій
   обгортці Woodmart, і білі картки зливалися з фоном. :has() — на випадок,
   якщо клас сторінки колись зміниться. */
body.am-body.woocommerce-order-received .wd-page-wrapper,
body.am-body:has(.am-done) .wd-page-wrapper {
	background: var(--am-bg);
}

body.am-body .site-content {
	margin-bottom: 0;
}

/* внутрішні сторінки Woodmart отримують ті самі токени */
body.am-body .container,
body.am-body .wd-content-layout {
	max-width: var(--am-container);
}

body.am-body:not(.home) .site-content {
	padding-top: 30px;
	padding-bottom: 50px;
}

body.am-body .woocommerce-breadcrumb,
body.am-body .wd-breadcrumbs {
	font-size: 13px;
	color: var(--am-muted);
}

/* --- адаптив --------------------------------------------- */

@media (max-width: 1180px) {
	.am-grid--4 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.am-hero-row {
		grid-template-columns: 1fr 280px;
	}

	.am-phone {
		display: none;
	}
}

@media (max-width: 1024px) {
	:root {
		--am-pad: 14px;
	}

	.am-topbar,
	.am-header {
		display: none;
	}

	.am-mheader {
		display: block;
	}

	.am-hero-row {
		grid-template-columns: 1fr;
		gap: 12px;
		padding-top: 16px;
	}

	.am-hero {
		grid-template-columns: 1fr;
		min-height: 0;
		background: linear-gradient(165deg, #f2f4f7 0%, #e6eaf0 100%);
		border-color: #e1e4e9;
	}

	.am-hero__copy {
		padding: 26px 20px 0;
		gap: 13px;
	}

	.am-hero__title {
		font-size: 40px;
		letter-spacing: -0.045em;
	}

	.am-hero__text {
		font-size: 14px;
		max-width: none;
	}

	.am-hero__cta {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}

	.am-hero__cta .am-btn {
		height: 52px;
		padding-inline: 12px;
	}

	.am-hero__art {
		padding: 10px 20px 26px;
	}

	.am-hero__shot {
		max-width: 210px;
	}

	.am-hero__chip {
		display: none;
	}

	.am-side {
		grid-template-rows: none;
		grid-template-columns: 1fr 1fr;
	}

	.am-cats {
		padding-top: 22px;
	}

	.am-cats__arrow {
		display: none !important;
	}

	.am-pop {
		padding-top: 26px;
		padding-bottom: 32px;
	}

	.am-pop__head h2 {
		font-size: 20px;
	}

	.am-pop__tabs {
		margin-left: 0;
		order: 3;
		width: 100%;
	}

	.am-pop__all {
		font-size: 13px;
	}

	.am-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.am-card {
		padding: 12px;
		gap: 10px;
		border-radius: 16px;
	}

	.am-card__media {
		height: 150px;
	}

	.am-card__name {
		font-size: 13.5px;
	}

	.am-card__now {
		font-size: 17px;
		letter-spacing: -0.025em;
	}

	.am-card__actions {
		gap: 6px;
	}

	.am-card__buy {
		height: 38px;
		font-size: 13px;
	}

	.am-fav {
		width: 38px;
		height: 38px;
	}

	.am-trust__grid {
		grid-template-columns: 1fr;
		gap: 16px;
		padding-block: 24px;
	}

	.am-footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: 26px;
		padding-block: 34px 26px;
	}

	.am-footer__brand {
		grid-column: 1 / -1;
	}

	.am-footer__col--wide {
		grid-column: 1 / -1;
	}
}

@media (max-width: 560px) {
	.am-side {
		grid-template-columns: 1fr;
	}

	.am-cats__tile {
		width: 124px;
		min-height: 104px;
		gap: 10px;
		font-size: 12.5px;
	}

	.am-cats__tile img {
		width: 30px;
		height: 30px;
	}

	.am-footer__grid {
		grid-template-columns: 1fr;
	}

	.am-hero__title {
		font-size: 34px;
	}
}

/* === інформаційні сторінки ========================================= */

.am-page {
	background: #f4f4f2;
	padding-bottom: 80px;
}

.am-page__inner {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding-top: 18px;
}

.am-page__crumbs {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 12.5px;
	color: #9a9a94;
}

.am-page__crumbs a {
	color: inherit;
	text-decoration: none;
}

.am-page__crumbs a:hover {
	color: #111;
}

.am-page__here {
	color: #111;
	font-weight: 600;
}

.am-page__card {
	background: #fff;
	border: 1px solid #ececea;
	border-radius: 28px;
	padding: 46px 56px 52px;
}

.am-page__title {
	margin: 0 0 26px;
	font-size: 40px;
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1.05;
	text-wrap: balance;
}

/* Міра рядка: довгі юридичні тексти інакше не читаються. */
.am-page__body {
	max-width: 74ch;
	font-size: 15.5px;
	line-height: 1.62;
	color: #35352f;
}

.am-page__body > *:first-child {
	margin-top: 0;
}

.am-page__body h2 {
	margin: 40px 0 14px;
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.15;
	color: #111;
}

.am-page__body h3 {
	margin: 32px 0 12px;
	font-size: 19px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #111;
}

.am-page__body h4 {
	margin: 24px 0 10px;
	font-size: 16px;
	font-weight: 700;
	color: #111;
}

.am-page__body p {
	margin: 0 0 14px;
	text-wrap: pretty;
}

.am-page__body ul,
.am-page__body ol {
	margin: 0 0 18px;
	padding-left: 22px;
}

.am-page__body li {
	margin-bottom: 7px;
}

.am-page__body strong {
	color: #111;
	font-weight: 700;
}

.am-page__body a {
	color: #12a150;
	text-decoration: none;
	border-bottom: 1px solid rgba(18, 161, 80, 0.3);
}

.am-page__body a:hover {
	border-bottom-color: #12a150;
}

.am-page__body em {
	color: #6f6f6a;
}

@media (max-width: 720px) {
	.am-page__card {
		padding: 28px 20px 32px;
		border-radius: 20px;
	}

	.am-page__title {
		font-size: 28px;
	}

	.am-page__body {
		font-size: 15px;
	}
}

/* Кабінет: авторизований стан */
.am-tool--auth {
	color: var(--am-accent, #0071e3);
	border-color: color-mix(in srgb, var(--am-accent, #0071e3) 34%, var(--am-border-ctl-2, #e3e3e6));
}

.am-tool--auth:hover {
	color: var(--am-accent, #0071e3);
	border-color: var(--am-accent, #0071e3);
}


/* Аватар з ініціалами замість іконки — для авторизованого, як у макеті */
.am-tool--auth:has(.am-tool__ini) {
	background: var(--am-dark);
	border-color: var(--am-dark);
	color: #fff;
}

.am-tool--auth:has(.am-tool__ini):hover {
	background: var(--am-dark-2);
	border-color: var(--am-dark-2);
	color: #fff;
}

.am-tool__ini {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1;
}

.am-tool__ini--sm {
	font-size: 12px;
}


/* Woodmart додає 40px над вмістом сторінки. Там, де ми малюємо власні
   крихти й заголовок — кабінет, обране, порівняння — це зайвий провал
   під шапкою. Правило тут, в app.css, бо він вантажиться всюди. */

body.am-page-flush .wd-content-layout,
body.am-page-flush .content-layout-wrapper {
	padding-top: 0;
}


/* На сторінці запису Woodmart робить із контейнера сітку на 16 колонок
   і чекає на власні `wd-grid-col`. Наш <main> потрапляв у одну колонку
   й стискався до 75px — заголовок ламався по одному слову в рядок. */

body.am-page-flush .wd-content-layout.wd-grid-g {
	display: block;
}

/* === головна: банер «кілька товарів» (макет Claude Design, 2026-09-11) === */

.am-bn-row {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding-top: 26px;
}

.am-bn {
	display: flex;
	flex-direction: column;
	gap: 18px;
	touch-action: pan-y;
	color: #111312;
}

/* Слайди лежать один на одному в одній комірці — висота банера не стрибає. */
.am-bn__stage {
	position: relative;
	display: grid;
	background: #fff;
	border-radius: 32px;
	overflow: hidden;
}

.am-bn__slide {
	grid-area: 1 / 1;
	display: grid;
	grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
	min-height: 600px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .4s ease, visibility .4s;
}

.am-bn__slide.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.am-bn__copy {
	padding: 46px 40px 40px 48px;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.am-bn__meta {
	display: flex;
	align-items: center;
	gap: 12px;
}

.am-bn__pill {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: #111312;
	color: #fff;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .08em;
	padding: 9px 15px;
	border-radius: 999px;
	line-height: 1.2;
}

.am-bn__pill i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #47C16A;
}

.am-bn__pill--order i {
	background: #E0A43A;
}

.am-bn__count {
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .1em;
	color: #5C615D;
}

.am-bn .am-bn__title {
	margin: 26px 0 0;
	font-size: 46px;
	line-height: 1.03;
	font-weight: 800;
	letter-spacing: -0.037em;
	text-wrap: balance;
	color: #111312;
}

.am-bn__color {
	margin-top: 12px;
	font-size: 17px;
	font-weight: 700;
	color: #7A807B;
}

.am-bn__text {
	margin: 18px 0 0;
	max-width: 40ch;
	font-size: 16px;
	line-height: 1.55;
	color: #525753;
	text-wrap: pretty;
}

.am-bn__specs {
	margin-top: 24px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.am-bn__specs span {
	font-size: 12.5px;
	font-weight: 700;
	color: #454A46;
	background: #F5F6F4;
	border: 1px solid #EAEBE8;
	padding: 9px 14px;
	border-radius: 999px;
	line-height: 1.2;
}

.am-bn__foot {
	margin-top: auto;
	padding-top: 36px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.am-bn__price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 12px;
}

.am-bn__amount {
	font-size: 44px;
	font-weight: 800;
	letter-spacing: -0.038em;
	line-height: 1;
	white-space: nowrap;
}

.am-bn__note {
	font-size: 14px;
	font-weight: 700;
	color: #5C615D;
	white-space: nowrap;
}

.am-bn__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.am-bn a.am-bn__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	line-height: 1.2;
	border-radius: 14px;
	text-decoration: none;
	transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.am-bn a.am-bn__btn--dark {
	background: #111312;
	color: #fff;
	font-weight: 800;
	padding: 17px 28px;
}

.am-bn a.am-bn__btn--dark:hover {
	background: #2A6FD6;
	color: #fff;
}

.am-bn a.am-bn__btn--ghost {
	border: 1px solid #E4E6E3;
	color: #111312;
	font-weight: 700;
	padding: 16px 26px;
}

.am-bn a.am-bn__btn--ghost:hover {
	border-color: #111312;
	color: #111312;
}

.am-bn__art {
	position: relative;
	display: block;
	background: #F2F3F1;
}

.am-bn__art img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
	padding: 46px;
	box-sizing: border-box;
	mix-blend-mode: multiply;
}

.am-bn__chip {
	position: absolute;
	right: 24px;
	z-index: 2;
	background: #fff;
	font-size: 13px;
	padding: 10px 15px;
	border-radius: 12px;
	line-height: 1.2;
	color: #111312;
	white-space: nowrap;
}

.am-bn__chip--top {
	top: 24px;
	font-weight: 800;
}

.am-bn__chip--bottom {
	bottom: 24px;
	font-weight: 700;
	color: #525753;
}

/* Стрілки й крапки — одна пігулка в лівому нижньому куті фото. */
.am-bn__nav {
	position: absolute;
	left: calc(44% + 24px);
	bottom: 24px;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 14px;
	background: #fff;
	padding: 10px 15px;
	border-radius: 999px;
}

/* Жорсткий скид: загальні стилі кнопок теми перебивають розміри. */
.am-bn__nav button {
	-webkit-appearance: none;
	appearance: none;
	min-width: 0;
	min-height: 0;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: #111312;
	font: 800 15px/1 inherit;
	cursor: pointer;
	user-select: none;
}

.am-bn__dots {
	display: flex;
	align-items: center;
	gap: 6px;
}

.am-bn__nav button.am-bn__dot {
	display: block;
	flex: 0 0 auto;
	width: 6px;
	height: 6px;
	border-radius: 3px;
	background: #C9CCC8;
	font-size: 0;
	transition: width .2s ease, background .2s ease;
}

.am-bn__nav button.am-bn__dot.is-active {
	width: 20px;
	background: #111312;
}

.am-bn__tabs {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
}

.am-bn button.am-bn__tab {
	-webkit-appearance: none;
	appearance: none;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	min-height: 0;
	height: auto;
	margin: 0;
	padding: 14px 16px;
	border: 0;
	border-radius: 16px;
	background: transparent;
	box-shadow: inset 0 0 0 1px #DCDED9;
	color: #111312;
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	transition: background .16s ease, box-shadow .16s ease;
}

.am-bn button.am-bn__tab:hover {
	box-shadow: inset 0 0 0 1px #111312;
}

.am-bn button.am-bn__tab.is-active {
	background: #fff;
	box-shadow: inset 0 0 0 2px #111312;
}

.am-bn__tabnum {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .09em;
	color: #5C615D;
}

.am-bn__tabname {
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.25;
}

/* Trade-in і ремонт тепер стрічкою під банером. */
.am-side--row {
	grid-template-rows: none;
	grid-template-columns: 1fr 1fr;
}

.am-side--row .am-side__card {
	min-height: 130px;
}

.am-side--row .am-side__sub {
	max-width: 320px;
}

@media (max-width: 1180px) {
	.am-bn .am-bn__title {
		font-size: 40px;
	}

	.am-bn__amount {
		font-size: 38px;
	}
}

@media (max-width: 1024px) {
	.am-bn-row {
		gap: 12px;
		padding-top: 16px;
	}

	.am-bn {
		gap: 12px;
	}

	.am-bn__stage {
		border-radius: 24px;
	}

	.am-bn__slide {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	/* Фото зверху, щоб товар було видно одразу. */
	.am-bn__art {
		order: -1;
		height: 300px;
	}

	.am-bn__art img {
		padding: 28px;
	}

	.am-bn__chip {
		right: 14px;
		font-size: 12px;
		padding: 8px 12px;
	}

	.am-bn__chip--top {
		top: 14px;
	}

	.am-bn__chip--bottom {
		bottom: 14px;
	}

	.am-bn__nav {
		left: 14px;
		top: 248px;
		bottom: auto;
	}

	.am-bn__copy {
		padding: 22px 20px 24px;
	}

	.am-bn .am-bn__title {
		margin-top: 18px;
		font-size: 32px;
	}

	.am-bn__color {
		font-size: 15px;
		margin-top: 8px;
	}

	.am-bn__text {
		font-size: 14.5px;
		margin-top: 12px;
	}

	.am-bn__specs {
		margin-top: 16px;
	}

	.am-bn__foot {
		padding-top: 24px;
		gap: 16px;
	}

	.am-bn__amount {
		font-size: 34px;
	}

	.am-bn__cta {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.am-bn a.am-bn__btn--dark,
	.am-bn a.am-bn__btn--ghost {
		padding: 16px 12px;
	}

	/* Вкладки гортаються вбік, а не стискаються до нечитабельних. */
	.am-bn__tabs {
		display: flex;
		overflow-x: auto;
		scrollbar-width: none;
		padding: 2px;
		margin: -2px;
	}

	.am-bn__tabs::-webkit-scrollbar {
		display: none;
	}

	.am-bn button.am-bn__tab {
		flex: 0 0 150px;
	}
}

@media (max-width: 560px) {
	.am-side--row {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.am-bn__slide {
		transition: none;
	}
}

/* --- банер: правки макета 2026-09-11 — фото в окремій картці з сіткою, перемикач під банером --- */

.am-bn__art {
	margin: 14px 14px 14px 0;
	border: 1px solid #E3E5E1;
	border-radius: 24px;
	overflow: hidden;
	background:
		radial-gradient(ellipse 60% 55% at 50% 38%, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 70%),
		linear-gradient(#E0E2DE 1px, transparent 1px) 0 0 / 64px 64px,
		linear-gradient(90deg, #E0E2DE 1px, transparent 1px) 0 0 / 64px 64px,
		#ECEDEA;
}

.am-bn__art img {
	z-index: 1;
}

/* Номер слайда — велика бліда цифра, верх зрізаний краєм картки. */
.am-bn__num {
	position: absolute;
	left: 32px;
	top: -48px;
	z-index: 0;
	font-size: 190px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.04em;
	color: rgba(17, 19, 18, .07);
	pointer-events: none;
	user-select: none;
}

.am-bn__chip {
	right: 18px;
	box-shadow: 0 6px 18px -8px rgba(17, 19, 18, .22);
}

.am-bn__chip--top {
	top: 18px;
}

.am-bn__chip--bottom {
	bottom: 18px;
}

.am-bn__nav {
	position: static;
	align-self: center;
	gap: 22px;
	padding: 11px 22px;
	box-shadow: 0 12px 30px -14px rgba(17, 19, 18, .28);
}

.am-bn__nav button svg {
	display: block;
}

.am-bn__nav button.am-bn__dot.is-active {
	width: 28px;
}

@media (max-width: 1024px) {
	.am-bn__art {
		margin: 10px 10px 0;
		border-radius: 18px;
	}

	.am-bn__num {
		font-size: 120px;
		left: 18px;
		top: -28px;
	}

	.am-bn__chip {
		right: 12px;
	}

	.am-bn__chip--top {
		top: 12px;
	}

	.am-bn__chip--bottom {
		bottom: 12px;
	}

	.am-bn__nav {
		top: auto;
		left: auto;
	}
}

/*
 * Змінні шрифтів Woodmart вказують на Albert Sans, який ми більше не вантажимо
 * (зайвий запит до Google Fonts, що блокував відмальовку). Ним жили лише h4–h6,
 * заголовки таблиць і .wd-entities-title — тепер усе на Manrope, як решта.
 * `html:root` сильніший за `:root` в інлайн-стилях Woodmart, які друкуються
 * після цього файлу.
 */
html:root {
	--wd-text-font: var(--am-font);
	--wd-title-font: var(--am-font);
	--wd-entities-title-font: var(--am-font);
	--wd-widget-title-font: var(--am-font);
	--wd-header-el-font: var(--am-font);
}


/* === три стани наявності: картки на головній ========================= */

.am-card__stock {
	margin-top: 4px;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.3;
}

.am-card__stock--in {
	color: oklch(0.5 0.13 155);
}

.am-card__stock--pre {
	color: oklch(0.55 0.14 65);
}

.am-card__stock--out {
	color: #c9372c;
}


/* === слайд-новинка з перебором кольорів ============================== */

.am-bn__pill--pre i {
	background: #ffb454;
}

.am-bn__art--feature {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.am-bn__art--feature .am-bn__glow {
	position: absolute;
	inset: -25%;
	z-index: 0;
	pointer-events: none;
	background: radial-gradient(42% 42% at 60% 46%, var(--am-ft, #b6b6b8) 0%, transparent 72%);
	opacity: 0.38;
	filter: blur(28px);
	transition: background 0.9s ease;
}

.am-bn__ft-shot {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: grid;
	place-items: center;
	padding: 40px;
	opacity: 0;
	transform: translateY(18px) scale(0.96);
	transition: opacity 0.7s ease, transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
	pointer-events: none;
}

.am-bn__ft-shot img {
	max-width: 74%;
	max-height: 82%;
	width: auto;
	height: auto;
	object-fit: contain;
	mix-blend-mode: multiply;
	filter: drop-shadow(0 34px 44px rgba(17, 18, 20, 0.22));
}

.am-bn__ft-shot.is-on {
	opacity: 1;
	transform: none;
	pointer-events: auto;
	animation: am-ft-float 6s ease-in-out infinite;
}

.am-bn__art--feature .am-bn__num,
.am-bn__art--feature .am-bn__chip {
	z-index: 2;
}

.am-bn__swatches {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 6px 0 18px;
}

.am-bn__swatch {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 2px solid #fff;
	background: var(--c, #b6b6b8);
	box-shadow: 0 0 0 1px #d7d7d2;
	padding: 0;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.am-bn__swatch:hover {
	transform: scale(1.12);
}

.am-bn__swatch.is-on {
	box-shadow: 0 0 0 2px #111214;
}

.am-bn__copy--feature .am-bn__color {
	transition: opacity 0.3s ease;
}

/* поява тексту при показі слайда */
.am-bn__slide--feature.is-active .am-bn__copy--feature > * {
	animation: am-ft-up 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.am-bn__slide--feature.is-active .am-bn__copy--feature > :nth-child(2) { animation-delay: 0.08s; }
.am-bn__slide--feature.is-active .am-bn__copy--feature > :nth-child(3) { animation-delay: 0.16s; }
.am-bn__slide--feature.is-active .am-bn__copy--feature > :nth-child(4) { animation-delay: 0.24s; }
.am-bn__slide--feature.is-active .am-bn__copy--feature > :nth-child(5) { animation-delay: 0.32s; }
.am-bn__slide--feature.is-active .am-bn__copy--feature > :nth-child(6) { animation-delay: 0.4s; }

@keyframes am-ft-up {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: none; }
}

@keyframes am-ft-float {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
	.am-bn__ft-shot,
	.am-bn__ft-shot.is-on,
	.am-bn__slide--feature.is-active .am-bn__copy--feature > * {
		animation: none;
		transition: none;
	}
}

@media (max-width: 720px) {
	.am-bn__ft-shot { padding: 20px; }
	.am-bn__ft-shot img { max-width: 70%; }
}

/* свотчі кольорів: не підкоряються мобільним правилам для кнопок слайда */
body.am-body .am-bn__swatches .am-bn__swatch {
	flex: none;
	width: 24px;
	height: 24px;
	min-height: 0;
	min-width: 0;
	border-radius: 50%;
	padding: 0;
	margin: 0;
}

@media (max-width: 720px) {
	.am-bn__pill--pre {
		white-space: nowrap;
		font-size: 10px;
		letter-spacing: 0.06em;
	}
}

/* Логотип «ЕплМанія»: підпис завжди в один рядок. */
.am-logo__sub {
	white-space: nowrap;
}

/* У мобільній шапці між бургером і кнопками місця лише на назву. */
@media (max-width: 480px) {
	.am-logo--sm .am-logo__sub {
		display: none;
	}

	.am-logo--sm .am-logo__title {
		font-size: 18px;
	}
}

/* === Планшет (iPad вертикально, 721–1024 px) ==========================
   Шапка лишається мобільною, але сітки не розтягуються на весь екран:
   ширші поля й три картки в ряд замість двох. */
@media (min-width: 721px) and (max-width: 1024px) {
	:root {
		--am-pad: 24px;
	}

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

	.am-card__media {
		height: 180px;
	}
}

/* Планшет: у «Популярних моделях» 8 карток — у три колонки останній ряд був
   неповним. Показуємо рівно два ряди. */
@media (min-width: 721px) and (max-width: 1024px) {
	/* catalog.css має #am-pop-grid .am-grid__cell:not([hidden]) — тієї ж ваги й пізніше. */
	body #am-pop-grid .am-grid__cell.is-extra {
		display: none;
	}
}

/* === Банер головної: фото новинки по центру (планшет і телефон) =========
   Загальне мобільне правило .am-bn__art img робить картинку absolute з
   left: 0 — у слайді-новинці фото прилипало до лівого краю. */
@media (max-width: 1024px) {
	.am-bn__art--feature .am-bn__ft-shot img {
		position: static;
		inset: auto;
		width: auto;
		height: auto;
		padding: 0;
	}
}

/* === Банер головної на планшеті: текст ліворуч, фото праворуч ==========
   В одну колонку на iPad фото займало смугу 300 px на всю ширину, а текст
   і кнопки розтягувались під ним. */
@media (min-width: 721px) and (max-width: 1024px) {
	.am-bn__slide {
		grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
		min-height: 460px;
	}

	.am-bn__art {
		order: 0;
		height: auto;
		margin: 12px 12px 12px 0;
		border-radius: 20px;
	}

	.am-bn__num {
		font-size: 140px;
		left: 22px;
		top: -34px;
	}

	.am-bn__copy {
		padding: 30px 18px 28px 28px;
	}

	.am-bn .am-bn__title {
		margin-top: 20px;
		font-size: 34px;
	}

	.am-bn__amount {
		font-size: 32px;
	}

	.am-bn__cta {
		display: flex;
		flex-direction: column;
		gap: 8px;
	}

	.am-bn a.am-bn__btn--dark,
	.am-bn a.am-bn__btn--ghost {
		width: 100%;
		padding: 14px 16px;
	}
}

/* Планшет: у вужчій текстовій колонці плашка «Передзамовлення · з 28.09»
   і лічильник «01 / 06» ламались на два рядки. */
@media (min-width: 721px) and (max-width: 1024px) {
	.am-bn__meta {
		flex-wrap: wrap;
		gap: 8px 10px;
	}

	.am-bn__pill {
		white-space: nowrap;
		font-size: 10.5px;
		letter-spacing: 0.05em;
		padding: 8px 13px;
	}

	.am-bn__count {
		white-space: nowrap;
	}
}

/* Головна на телефоні: поле по боках уже дає загальний контейнер сторінки
   (15 px). Власний відступ блоків (.am-container, 14 px) подвоював його —
   банер, категорії й картки стояли за 29 px від краю. Лишаємо одне поле.
   Смуга переваг має білий фон: розтягуємо її до країв екрана, а поле 15 px
   переносимо всередину, щоб текст не прилипав до краю фону. */
@media (max-width: 640px) {
	/* Лише головна: у каталозі зовнішнього поля немає, там відступ дає сам блок. */
	body.am-body.home .am-main > .am-container {
		padding-inline: 0;
	}

	body.am-body.home .am-main > .am-trust {
		margin-inline: -15px;
	}

	body.am-body.home .am-main > .am-trust > .am-container {
		padding-inline: 15px;
	}
}

/* Головна на телефоні: менші поля всередині банера. Фото відступало від
   краю білої картки на 10 px, текст — на 20 px збоку й 22–24 px зверху/знизу. */
@media (max-width: 640px) {
	body.am-body.home .am-bn__art {
		margin: 6px 6px 0;
	}

	body.am-body.home .am-bn__copy {
		padding: 16px 14px 18px;
	}

	body.am-body.home .am-bn__foot {
		padding-top: 16px;
	}

	body.am-body.home .am-bn__nav {
		padding: 8px 14px;
	}
}

/* === Сповіщення «Додано в обране / до порівняння» =====================
   Зразок клієнта: темна плашка, зелений кружок зі значком, заголовок і
   підпис; уся ліва частина — посилання, хрестик відділено рискою. */

.am-toast {
	position: fixed;
	left: 50%;
	bottom: max(24px, env(safe-area-inset-bottom));
	z-index: 10000;
	display: flex;
	align-items: stretch;
	width: max-content;
	min-width: 320px;
	max-width: calc(100vw - 24px);
	border-radius: 20px;
	background: #1b1b20;
	color: #fff;
	box-shadow: 0 18px 44px -14px rgba(17, 17, 20, 0.5);
	font-family: var(--am-font);
	opacity: 0;
	transform: translate(-50%, 16px);
	transition: opacity 0.22s ease, transform 0.22s ease;
}

.am-toast.is-on {
	opacity: 1;
	transform: translate(-50%, 0);
}

body.am-body .am-toast__main {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 18px 16px 20px;
	border-radius: 20px 0 0 20px;
	color: #fff;
	text-decoration: none;
}

body.am-body .am-toast__main:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.04);
}

.am-toast__icon {
	flex: none;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #fff;
	color: #1b1b20;
}

.am-toast__body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.am-toast__title {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.25;
}

.am-toast__sub {
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1.25;
	color: rgba(255, 255, 255, 0.62);
}

body.am-body .am-toast__main:hover .am-toast__sub {
	color: rgba(255, 255, 255, 0.85);
}

.am-toast__sep {
	flex: none;
	width: 1px;
	margin: 14px 0;
	background: rgba(255, 255, 255, 0.14);
}

body.am-body .am-toast__close {
	flex: none;
	width: 56px;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 0 20px 20px 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
}

body.am-body .am-toast__close:hover {
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
}

body.am-body :is(.am-toast__main, .am-toast__close):focus-visible {
	outline: 2px solid #fff;
	outline-offset: -4px;
}

@media (max-width: 640px) {
	.am-toast {
		left: 12px;
		right: 12px;
		width: auto;
		min-width: 0;
		max-width: none;
		border-radius: 18px;
		transform: translateY(16px);
	}

	.am-toast.is-on {
		transform: translateY(0);
	}

	body.am-body .am-toast__main {
		gap: 12px;
		padding: 12px 12px 12px 14px;
		border-radius: 18px 0 0 18px;
	}

	.am-toast__icon {
		width: 38px;
		height: 38px;
	}

	.am-toast__title {
		font-size: 14.5px;
	}

	.am-toast__sub {
		font-size: 13px;
	}

	body.am-body .am-toast__close {
		width: 48px;
		border-radius: 0 18px 18px 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.am-toast {
		transition: none;
	}
}

/* === Головна: банер «iPhone 18 Pro Max · Твій наступний iPhone.» (17.09.2026) ===
   Перший слайд каруселі за макетом: білий фон, великий заголовок, фото
   з картки товару, чорна кнопка. Увесь слайд — одне посилання.
   ПК і планшет: текст ліворуч, фото праворуч. Телефон: усе по центру,
   фото між підзаголовком і кнопкою. */
.am-bn__slide.am-bn__slide--promo {
	display: block;
}

.am-bn .am-bn__promo {
	display: grid;
	grid-template-columns: minmax(0, 50fr) minmax(0, 50fr);
	grid-template-rows: 1fr auto auto auto auto auto 1fr;
	grid-template-areas:
		". art"
		"brand art"
		"model art"
		"title art"
		"sub art"
		"btn art"
		". art";
	align-items: start;
	justify-items: start;
	height: 100%;
	padding: 40px 48px 40px 64px;
	background: #fff;
	color: #111312;
	text-decoration: none;
}

.am-bn .am-bn__promo:hover,
.am-bn .am-bn__promo:focus {
	color: #111312;
	text-decoration: none;
}

.am-bn__promo-brand {
	grid-area: brand;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1;
}

.am-bn .am-bn__promo-title {
	grid-area: title;
	margin: 26px 0 0;
	font-size: clamp(44px, 4.7vw, 70px);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -0.035em;
	color: #111312;
}

.am-bn__promo-sub {
	grid-area: sub;
	margin-top: 14px;
	font-size: clamp(22px, 2.1vw, 31px);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.015em;
	color: #7a7c80;
}

.am-bn__promo-btn {
	grid-area: btn;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 40px;
	padding: 19px 42px;
	border-radius: 999px;
	background: #111312;
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	transition: background-color .2s ease, transform .2s ease;
}

.am-bn .am-bn__promo:hover .am-bn__promo-btn {
	background: #2b2e2c;
}

.am-bn .am-bn__promo:focus-visible {
	outline: none;
}

.am-bn .am-bn__promo:focus-visible .am-bn__promo-btn {
	box-shadow: 0 0 0 3px #fff, 0 0 0 5px #111312;
}

.am-bn__promo-art {
	grid-area: art;
	position: relative;
	align-self: stretch;
	justify-self: stretch;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
}

/* м'яка тінь під телефонами */
.am-bn__promo-art::after {
	content: "";
	position: absolute;
	left: 18%;
	right: 18%;
	bottom: 6%;
	height: 26px;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(17, 19, 18, .16), rgba(17, 19, 18, 0));
	pointer-events: none;
}

.am-bn .am-bn__promo-img {
	position: relative;
	z-index: 1;
	display: block;
	width: auto;
	height: 100%;
	max-height: 540px;
	max-width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	transition: transform .5s ease;
}

.am-bn .am-bn__promo:hover .am-bn__promo-img {
	transform: translateY(-4px);
}

@media (max-width: 1024px) {
	.am-bn .am-bn__promo {
		padding: 28px 20px 28px 32px;
	}

	.am-bn__promo-brand {
		font-size: 17px;
	}

	.am-bn .am-bn__promo-title {
		margin-top: 18px;
		font-size: clamp(30px, 4.4vw, 40px);
		white-space: nowrap;
	}

	.am-bn__promo-sub {
		font-size: 21px;
	}

	.am-bn__promo-btn {
		margin-top: 28px;
		padding: 16px 30px;
		font-size: 16px;
	}

	/* фото вужче за висоту колонки — блок по висоті фото, тінь під телефонами */
	.am-bn__promo-art {
		align-self: center;
	}

	.am-bn .am-bn__promo-img {
		height: auto;
		width: 100%;
		max-height: 420px;
	}
}

@media (max-width: 720px) {
	.am-bn .am-bn__promo {
		grid-template-columns: minmax(0, 1fr);
		/* висоту банера задає найвищий слайд каруселі — запас віддаємо фото */
		grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
		grid-template-areas:
			"brand"
			"model"
			"title"
			"sub"
			"art"
			"btn";
		justify-items: center;
		padding: 26px 16px 16px;
		text-align: center;
	}

	.am-bn__promo-brand {
		font-size: 16px;
	}

	.am-bn .am-bn__promo-title {
		margin-top: 12px;
		font-size: clamp(28px, 8.4vw, 36px);
	}

	.am-bn__promo-sub {
		margin-top: 6px;
		font-size: clamp(17px, 4.9vw, 21px);
	}

	/* блок фото — по висоті самого фото, щоб тінь стояла під телефонами */
	.am-bn__promo-art {
		align-self: center;
		width: 100%;
		margin: 4px 0 8px;
	}

	.am-bn .am-bn__promo-img {
		/* по боках у фото прозоре поле — трохи виходимо за ширину колонки */
		width: min(124%, 440px);
		height: auto;
		max-width: none;
		max-height: none;
	}

	.am-bn__promo-art::after {
		bottom: 7%;
		height: 18px;
	}

	.am-bn__promo-btn {
		width: 100%;
		margin-top: 4px;
		padding: 17px 20px;
		border-radius: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.am-bn .am-bn__promo-img,
	.am-bn__promo-btn {
		transition: none;
	}
}

/* === Головна: темний банер «Твій вибір. Твій Pro Max.» (17.09.2026) ===
   Той самий слайд-посилання, що й білий, але на чорному тлі з м'яким
   світлом за телефоном: назва моделі, велике гасло, біла кнопка. */
.am-bn .am-bn__promo--dark {
	background:
		radial-gradient(ellipse 42% 60% at 74% 38%, rgba(255, 255, 255, .13), rgba(255, 255, 255, 0) 70%),
		radial-gradient(ellipse 70% 45% at 70% 108%, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 70%),
		linear-gradient(160deg, #1b1b1e 0%, #0b0b0c 55%, #050506 100%);
	color: #fff;
}

.am-bn .am-bn__promo--dark:hover,
.am-bn .am-bn__promo--dark:focus {
	color: #fff;
}

.am-bn__promo--dark .am-bn__promo-brand {
	color: rgba(255, 255, 255, .92);
}

.am-bn .am-bn__promo-model {
	grid-area: model;
	margin: 34px 0 0;
	font-size: clamp(24px, 2.3vw, 34px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: #fff;
}

.am-bn .am-bn__promo--dark .am-bn__promo-title {
	margin-top: 22px;
	font-size: clamp(42px, 4.5vw, 66px);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.03em;
	white-space: normal;
	color: #fff;
}

.am-bn .am-bn__promo--dark .am-bn__promo-sub {
	margin-top: 20px;
	font-size: clamp(16px, 1.5vw, 21px);
	font-weight: 500;
	letter-spacing: 0;
	color: rgba(255, 255, 255, .72);
}

.am-bn .am-bn__promo--dark .am-bn__promo-btn {
	margin-top: 36px;
	background: #fff;
	color: #111312;
}

.am-bn .am-bn__promo--dark:hover .am-bn__promo-btn {
	background: #e8e8eb;
}

.am-bn .am-bn__promo--dark:focus-visible .am-bn__promo-btn {
	box-shadow: 0 0 0 3px #0b0b0c, 0 0 0 5px #fff;
}

/* на чорному тінь не видно — під телефонами слабке світло */
.am-bn__promo--dark .am-bn__promo-art::after {
	background: radial-gradient(closest-side, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0));
}

.am-bn .am-bn__promo--dark .am-bn__promo-img {
	filter: drop-shadow(0 28px 44px rgba(0, 0, 0, .65));
}

@media (max-width: 1024px) {
	.am-bn .am-bn__promo-model {
		margin-top: 20px;
		font-size: 22px;
	}

	.am-bn .am-bn__promo--dark .am-bn__promo-title {
		margin-top: 14px;
		font-size: clamp(32px, 4.6vw, 44px);
	}

	.am-bn .am-bn__promo--dark .am-bn__promo-sub {
		margin-top: 14px;
		font-size: 15px;
	}

	.am-bn .am-bn__promo--dark .am-bn__promo-btn {
		margin-top: 24px;
	}
}

@media (max-width: 720px) {
	.am-bn .am-bn__promo--dark {
		background:
			radial-gradient(ellipse 70% 38% at 50% 64%, rgba(255, 255, 255, .13), rgba(255, 255, 255, 0) 70%),
			linear-gradient(180deg, #1b1b1e 0%, #0b0b0c 60%, #050506 100%);
	}

	.am-bn .am-bn__promo-model {
		margin-top: 12px;
		font-size: 20px;
	}

	.am-bn .am-bn__promo--dark .am-bn__promo-title {
		margin-top: 10px;
		font-size: clamp(30px, 8.8vw, 38px);
	}

	.am-bn .am-bn__promo--dark .am-bn__promo-sub {
		margin-top: 10px;
		max-width: 300px;
		font-size: 15px;
		line-height: 1.35;
	}

	.am-bn .am-bn__promo--dark .am-bn__promo-btn {
		margin-top: 4px;
	}
}

/* Підпис під гаслом: рядки однакової довжини, без слова-сироти, і не впритул до фото. */
.am-bn .am-bn__promo-sub {
	max-width: calc(100% - 24px);
	text-wrap: balance;
}

@media (max-width: 720px) {
	.am-bn .am-bn__promo-sub {
		max-width: 320px;
	}
}

/* === Логотип: значок «am» у пропорціях фірмового знака (17.09.2026) ===
   Розміри були в пікселях: у малому значку мобільної шапки (34 px) точка
   лишалась на тих самих 6 px від краю й налазила на «m», у великому майже
   торкалась її. Тепер усе — частки сторони квадрата, як в іконці сайта:
   «am» ~40 % висоти, точка 12 % у правому нижньому куті з відступом 15 %. */
.am-logo .am-logo__mark {
	--am-lg: 40px;
	width: var(--am-lg);
	height: var(--am-lg);
	border-radius: calc(var(--am-lg) * 0.325);
}

.am-logo.am-logo--sm .am-logo__mark {
	--am-lg: 34px;
}

.am-logo .am-logo__am {
	font-size: calc(var(--am-lg) * 0.4);
	transform: translateY(calc(var(--am-lg) * -0.01));
}

.am-logo .am-logo__dot {
	right: calc(var(--am-lg) * 0.15);
	bottom: calc(var(--am-lg) * 0.15);
	width: calc(var(--am-lg) * 0.12);
	height: calc(var(--am-lg) * 0.12);
}

/* === Логотип: підпис рівно під назвою (17.09.2026) ======================
   Як у фірмовому знаку: «ТЕХНІКА • СЕРВІС • АКСЕСУАРИ» займає ту саму
   ширину, що й «ЕплМанія». Раніше підпис був у 2,2 раза ширший за назву.
   Розмір підпису — частка розміру назви (0,2743 при Manrope 800 і
   розрядці 0,02em), тож ширини збігаються в шапці, мобільній шапці й підвалі.
   Змінюєте шрифт, вагу чи розрядку — перерахуйте частку. */
.am-logo .am-logo__text {
	--am-lt: 24px;
	align-items: flex-start;
}

.am-logo.am-logo--sm .am-logo__text {
	--am-lt: 20px;
}

.am-logo.am-logo--footer .am-logo__text {
	--am-lt: 22px;
}

.am-logo .am-logo__title,
.am-footer .am-logo .am-logo__title {
	font-size: var(--am-lt);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1;
}

.am-logo .am-logo__sub,
.am-footer .am-logo .am-logo__sub {
	margin-top: calc(var(--am-lt) * 0.2);
	font-size: calc(var(--am-lt) * 0.2743);
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1;
	white-space: nowrap;
	color: #6b7078;
}

@media (max-width: 480px) {
	.am-logo.am-logo--sm .am-logo__text {
		--am-lt: 18px;
	}
}

/* === Способи оплати на інформаційних сторінках («Оплата і доставка») === */

.am-page__body .am-pay {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 6px 0 22px;
}

.am-page__body .am-pay__item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px 18px;
	border: 1px solid var(--am-border);
	border-radius: var(--am-r-lg);
	background: var(--am-surface-2);
}

.am-page__body .am-pay__name {
	color: var(--am-text);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

.am-page__body .am-pay__fee {
	align-self: flex-start;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--am-surface-3);
	color: var(--am-text);
	font-size: 13px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.am-page__body .am-pay__fee--free {
	background: oklch(0.95 0.05 150);
	color: oklch(0.45 0.12 150);
}

.am-page__body .am-pay__note {
	color: var(--am-text-3);
	font-size: 13.5px;
	line-height: 1.5;
}

@media (max-width: 720px) {
	.am-page__body .am-pay {
		grid-template-columns: 1fr;
	}
}

/* WordPress (wpautop) ставить <br> між рядками картки — відступи задає gap. */
.am-page__body .am-pay__item br {
	display: none;
}


/* === Соцмережі: значки брендів, при наведенні — фірмовий колір (18.09.2026) === */

.am-footer__socials a {
	color: #cfd2d6;
	transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.am-footer__socials a:hover {
	color: #fff;
	transform: translateY(-2px);
}

.am-footer__socials a[data-soc="yt"]:hover { background: #ff0033; }
.am-footer__socials a[data-soc="fb"]:hover { background: #1877f2; }
.am-footer__socials a[data-soc="tg"]:hover { background: #229ed9; }
.am-footer__socials a[data-soc="ig"]:hover {
	background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.am-soc-ico {
	display: block;
	flex: none;
}

@media (prefers-reduced-motion: reduce) {
	.am-footer__socials a:hover {
		transform: none;
	}
}

/* --- skip-link (доступність): видно лише з клавіатури --- */
.am-skip {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 1000;
	padding: 10px 14px;
	border-radius: 10px;
	background: #14181c;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.am-skip:focus-visible {
	top: 12px;
	outline: 2px solid #fff;
}

/* --- футер: зона натискання посилань ≥ 24px і відступ між ними --- */
.am-footer__col a {
	display: inline-block;
	padding: 4px 0;
	margin: -4px 0;
}


/* === Повідомлення сайту в тому самому блоці (20.09.2026) ==================
   Помилки, підтвердження й підказки WooCommerce показуємо знизу екрана
   тим самим сповіщенням, що й «Додано в обране». Колір кружка — за типом. */

.am-toast--notice {
	max-width: min(560px, calc(100vw - 24px));
}

body.am-body .am-toast--notice .am-toast__main {
	cursor: default;
}

body.am-body .am-toast--notice .am-toast__main:hover {
	background: transparent;
}

.am-toast--notice .am-toast__body {
	gap: 6px;
}

.am-toast--notice .am-toast__title {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
}

body.am-body .am-toast--notice .am-toast__title a {
	color: #fff;
	text-decoration: underline;
}

.am-toast[data-am-kind="error"] .am-toast__icon {
	background: #fdecec;
	color: #b3261e;
}

.am-toast[data-am-kind="success"] .am-toast__icon {
	background: #e7f4ec;
	color: #0d7c37;
}

.am-toast[data-am-kind="info"] .am-toast__icon {
	background: #eef1f6;
	color: #1f4f8b;
}

@media (max-width: 640px) {
	.am-toast--notice .am-toast__title {
		font-size: 14px;
	}
}
