/* mbl33 — design of the old mbl33.ru (design/mblnew): colours, fonts and the quilted background are kept,
   the page is wider (1360 instead of 1220 px) and adapts to tablets and phones. */

:root {
	--wine: #4b262d;          /* links and headings of the old site */
	--wine-dark: #2f161b;
	--accent: #ec0060;        /* brand filter of the old site */
	--hover: #e84d07;
	--gold: #c9a24a;
	--text: #2b2b2b;
	--muted: #707070;
	--line: #e0e0e0;
	--soft: #f6f4f2;
	--page: #fff;
	--wa: #25d366;
	--radius: 6px;
	--wrap: 1360px;
	--gut: clamp(14px, 2.4vw, 30px);
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	min-height: 100vh;
	font: 14px/1.5 Tahoma, Verdana, Arial, Helvetica, sans-serif;
	color: var(--text);
	background: #1c1a17 url(../images/bg.png) repeat;
}

img { max-width: 100%; height: auto; border: 0; }

a { color: var(--wine); }
a:hover { color: var(--hover); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
	outline: 2px solid var(--accent); outline-offset: 2px;
}

h1, h2, h3 { font-weight: normal; line-height: 1.2; color: #222; }
h1 { font-size: clamp(24px, 3vw, 30px); margin: 10px 0 14px; }
h2 { font-size: 21px; margin: 24px 0 10px; }
h3 { font-size: 17px; margin: 0 0 10px; }
p { margin: 0 0 14px; }

.page {
	max-width: var(--wrap);
	margin: 0 auto;
	background: var(--page);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 0 40px rgba(0, 0, 0, .45);
	overflow-x: clip;
}

/* ---------------------------------------------------------------- header */

.header { padding: 18px var(--gut) 0; position: relative; z-index: 20; background: var(--page); }

.header__row {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: start;
	gap: 16px 30px;
}

.logo { display: block; width: 281px; max-width: 100%; }
.logo img { display: block; }

.search { display: flex; align-self: center; max-width: 360px; width: 100%; justify-self: center; }
.search__input {
	flex: 1; min-width: 0; height: 36px; padding: 0 12px;
	border: 1px solid #b0b0b0; border-right: 0; border-radius: var(--radius) 0 0 var(--radius);
	font: inherit; font-size: 14px; background: #fff;
}
.search__btn {
	width: 42px; height: 36px; border: 1px solid #b0b0b0; border-radius: 0 var(--radius) var(--radius) 0;
	background: var(--soft); color: var(--wine); cursor: pointer; display: grid; place-items: center;
}
.search__btn svg { width: 20px; height: 20px; }
.search__btn:hover { background: var(--wine); color: #fff; border-color: var(--wine); }

.contacts { text-align: right; color: #505050; font-size: 13px; }
.contacts__phone {
	display: inline-block; font-size: clamp(24px, 3vw, 36px); line-height: 1.1;
	color: var(--wine); text-decoration: none; white-space: nowrap;
}
.contacts__phone:hover { color: var(--hover); }
.contacts__social { display: flex; justify-content: flex-end; gap: 8px; margin: 8px 0 6px; }
.contacts__info { line-height: 1.45; }
.contacts__info a { color: #505050; }

.soc {
	display: inline-flex; align-items: center; gap: 6px; height: 36px; min-width: 36px; padding: 0 8px;
	border-radius: 18px; color: #fff; text-decoration: none; font-size: 13px; font-weight: bold;
}
.soc svg { width: 22px; height: 22px; flex: none; }
.soc--vk { background: #4a76a8; }
.soc--wa { background: var(--wa); padding-right: 12px; }
.soc:hover { color: #fff; filter: brightness(1.08); }

.burger { display: none; }

/* catalog menu: one row of section names, like the old #menu2 */
.catnav { margin-top: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.catnav__list {
	list-style: none; margin: 0; padding: 4px 0;
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 4px;
}
.catnav__list a {
	display: block; padding: 7px 8px; font-size: 15px; color: var(--wine); text-decoration: underline;
	text-underline-offset: 3px; border-radius: 20px; white-space: nowrap;
}
.catnav__list a:hover { color: var(--hover); }
.catnav__list .is-active a { background: var(--wine); color: #fff; text-decoration: none; }
.catnav__extra { display: none; }

/* ---------------------------------------------------------------- content */

.main { flex: 1; padding: 6px var(--gut) 30px; width: 100%; }

.breadcrumb, .mod-breadcrumbs {
	list-style: none; margin: 10px 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 0 6px;
	font-size: 14px; color: #a0a0a0;
}
.breadcrumb li + li::before, .mod-breadcrumbs li + li::before { content: "→"; margin-right: 6px; color: #b5b5b5; }
.breadcrumb a, .mod-breadcrumbs a { color: #a0a0a0; }
.mod-breadcrumbs__here, .mod-breadcrumbs .divider, .mod-breadcrumbs__divider { display: none; }
.mod-breadcrumbs__divider + li::before { content: none !important; }

.btn, .button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 42px; padding: 8px 22px; border-radius: var(--radius); cursor: pointer;
	font: bold 15px/1.2 Arial, sans-serif; text-decoration: none; text-align: center;
	color: #fff; background: var(--wine); border: 1px solid var(--wine);
	transition: background .15s, border-color .15s;
}
.btn:hover, .button:hover { background: var(--hover); border-color: var(--hover); color: #fff; }
.btn--light { background: #fff; color: var(--wine); }
.btn--light:hover { color: #fff; }

.alert, #system-message-container joomla-alert { display: block; padding: 12px 16px; margin: 10px 0; border-radius: var(--radius); background: #fff7e6; border: 1px solid #f0d39a; }

/* text pages */
.item-page, .page-text { max-width: 980px; }
.item-page img, .page-text img { border-radius: 4px; }
.item-page table, .page-text table { border-collapse: collapse; max-width: 100%; display: block; overflow-x: auto; }
.item-page td, .item-page th { border: 1px solid var(--line); padding: 6px 10px; }
.item-page ul, .item-page ol { padding-left: 22px; margin: 0 0 14px; }
.page-header h1, .page-header h2 { margin-top: 10px; }

/* ---------------------------------------------------------------- catalog (JoomShopping, template mbl33) */

.shop-cat__subcats, .shop-brands { margin: 6px 0 14px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.shop-cat__label { font-size: 18px; margin: 14px 0 4px; color: #333; }
.shop-cat__subcats a, .shop-brands a { color: var(--accent); font-size: 16px; }
.shop-cat__subcats a:hover, .shop-brands a:hover { color: #000; }
.shop-brands a.is-selected { background: var(--accent); color: #fff; padding: 1px 6px; border-radius: 3px; text-decoration: none; }

.shop-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: #505050; font-size: 13px; margin: 14px 0; }
.shop-sort a.is-selected { color: #505050; text-decoration: none; font-weight: bold; }

.shop-cat__descr { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); color: #444; }

.products-grid {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 24px;
}

.pcard { display: flex; flex-direction: column; min-width: 0; }
.pcard__image {
	display: block; position: relative; aspect-ratio: 4 / 3; background: #fff; border: 1px solid var(--line);
	padding: 5px; overflow: hidden; border-radius: 2px;
}
.pcard__image img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.pcard__image:hover img { transform: scale(1.03); }
.pcard__image--empty { display: grid; place-items: center; background: var(--soft); color: #9a8f86; font-size: 13px; text-align: center; }
.pcard__image--empty img { width: 46%; height: auto; opacity: .35; filter: grayscale(1); }
.pcard__label {
	position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 3px;
	background: var(--accent); color: #fff; font-size: 12px; font-weight: bold;
}
.pcard__name { font-size: 16px; margin: 10px 0 4px; }
.pcard__name a { text-decoration: underline; text-underline-offset: 3px; }
.pcard__brand { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.pcard__annot { font-size: 13px; color: #505050; margin-bottom: 8px; }
.pcard__annot p { margin: 0 0 4px; }
.pcard__annot strong { font-weight: normal; }
.pcard__bottom { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }

.price { font-size: 18px; font-weight: bold; color: #222; white-space: nowrap; }
.price__old { font-size: 14px; font-weight: normal; color: var(--muted); text-decoration: line-through; margin-right: 6px; }
.price--request { font-size: 15px; font-weight: normal; color: var(--wine); }

.pager { margin: 24px 0 6px; }
.pager ul, .pagination { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pagination li a, .pagination li span, .pager .page-link {
	display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px;
	border: 1px solid var(--line); border-radius: 4px; text-decoration: none; color: var(--wine); background: #fff;
}
.pagination .active span, .pagination .active a, .pager .active .page-link { background: var(--wine); color: #fff; border-color: var(--wine); }
.pagination .disabled span { color: #bbb; }

.shop-empty { padding: 30px 0; color: var(--muted); }

/* product page */
.product-page { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px 40px; align-items: start; }
.product-page__gallery { min-width: 0; }
.gallery__main {
	display: block; border: 1px solid var(--line); background: #fff; padding: 6px; aspect-ratio: 4 / 3; cursor: zoom-in;
}
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 10px; }
.gallery__thumbs a { display: block; border: 1px solid var(--line); aspect-ratio: 4 / 3; padding: 3px; background: #fff; }
.gallery__thumbs a.is-current { border-color: var(--wine); box-shadow: 0 0 0 1px var(--wine); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }

.product-head h1 { margin-bottom: 4px; }
.product-head { margin-bottom: 14px; }
.product-page__info .product-page__buy { margin-top: 0; }
.product-page__brand { color: var(--muted); margin-bottom: 10px; }
.product-page__brand a { color: var(--accent); }
.product-page__buy {
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
	padding: 16px 18px; background: var(--soft); border-radius: var(--radius); margin: 14px 0 18px;
}
.product-page__buy .price { font-size: 26px; }
.product-page__buy .price--request { font-size: 20px; }
.product-page__note { width: 100%; font-size: 13px; color: var(--muted); }
.product-page__descr { font-size: 15px; line-height: 1.6; }
.product-page__descr div { margin-bottom: 8px; }
.product-page__where { margin-top: 18px; padding: 14px 16px; border: 1px dashed #d8cfcb; border-radius: var(--radius); font-size: 14px; color: #505050; }
.product-page__where p { margin: 0 0 4px; }
.product-page__where-title { font-weight: bold; color: #333; }
.product-page__variants { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: 14px; }
.product-page__variants td { padding: 7px 8px; border-bottom: 1px solid var(--line); }
.product-page__variants td:last-child { text-align: right; white-space: nowrap; }
.product-page__specs { list-style: none; padding: 0; margin: 14px 0; border-bottom: 1px solid var(--line); }
.product-page__specs li { display: grid; grid-template-columns: 40% 1fr; gap: 10px; padding: 8px 6px; border-top: 1px solid var(--line); }
.product-page__specs li:nth-child(odd) { background: #f7f7f7; }

.product-nav { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 20px; font-size: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

.related { margin-top: 36px; }

/* home */
.home-intro { margin: 10px 0 24px; }
.home-cats { list-style: none; margin: 0 0 34px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.home-cats li:first-child { grid-column: span 2; grid-row: span 2; }
.home-cats a {
	display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	color: var(--wine); text-decoration: none; overflow: hidden; transition: box-shadow .2s, border-color .2s;
}
.home-cats img { display: block; width: 100%; aspect-ratio: 4 / 3; flex: 1; object-fit: cover; min-height: 0; transition: transform .35s; }
.home-cats span { display: block; padding: 10px 12px; font-size: 16px; border-top: 1px solid var(--line); background: #fff; position: relative; }
.home-cats li:first-child span { font-size: 20px; }
.home-cats a:hover { border-color: var(--wine); box-shadow: 0 6px 18px rgba(75, 38, 45, .15); color: var(--hover); }
.home-cats a:hover img { transform: scale(1.04); }

/* ---------------------------------------------------------------- footer */

.footer { background: var(--soft); border-top: 3px solid var(--wine); padding: 0 var(--gut) 18px; font-size: 13px; color: #505050; }
.footer__menu ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; margin: 0; padding: 16px 0 10px; }
.footer__menu a { display: block; padding: 5px 9px; font-size: 15px; color: var(--wine); }
.footer__menu .current a, .footer__menu .active a { border: 1px solid #d5d5d5; background: #fff; border-radius: 20px; text-decoration: none; }
.footer__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 14px 0; border-top: 1px solid var(--line); }
.footer__col { text-align: right; line-height: 1.55; }
.footer__col--brand { text-align: left; }
.footer__col--brand .contacts__social { justify-content: flex-start; }
.footer__col h3, .salon__name { font-size: 17px; margin: 0 0 4px; color: #333; text-transform: uppercase; }
.footer__col a { color: #505050; }
.footer__review { margin: 14px 0 6px; font-weight: bold; }
.footer__review-btn {
	display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; font-size: 13px; line-height: 1.2;
	color: var(--wine); text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.footer__review-btn:hover { border-color: var(--wine); }
.footer__review-stars { color: #fc0; font-size: 15px; letter-spacing: 1px; }
.footer__copy { text-align: center; color: #999; font-size: 12px; padding-top: 10px; border-top: 1px solid var(--line); }

/* cookie notice: bottom left, clear of the WhatsApp button */
.cookie {
	position: fixed; left: 16px; right: 96px; bottom: 16px; z-index: 60; max-width: 640px; display: flex; align-items: center; gap: 14px;
	padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 4px 18px rgba(0, 0, 0, .12);
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; font-size: 13px; line-height: 1.4; }
.cookie .btn { flex: none; }

/* thank-you page after a price request: a card in the middle, Joomla's own title hidden */
.item-page:has(.thanks) { max-width: none; }
.item-page:has(.thanks) .page-header { display: none; }
.thanks {
	max-width: 620px; margin: 30px auto 40px; padding: 40px 32px 30px; text-align: center; background: #fff;
	border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 30px rgba(75, 38, 45, .08);
}
.thanks__icon {
	width: 76px; height: 76px; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center;
	color: #fff; background: var(--wine); border-radius: 50%; box-shadow: 0 0 0 8px rgba(75, 38, 45, .08);
}
.thanks__title { margin: 0 0 10px; font-size: 26px; line-height: 1.25; color: var(--wine); }
.thanks__text { margin: 0 auto 22px; max-width: 470px; font-size: 16px; line-height: 1.5; color: #444; }
.thanks__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.thanks__contact { margin: 0 0 6px; font-size: 14px; color: #555; }
.thanks__back { margin: 0; font-size: 13px; color: #999; }

/* floating WhatsApp, like the old soc_btn */
.wa-float {
	position: fixed; right: 22px; bottom: 22px; z-index: 50; width: 58px; height: 58px; border-radius: 50%;
	display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
	animation: wa-pulse 2.4s infinite;
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { color: #fff; filter: brightness(1.06); }
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); } 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

.to-top {
	position: fixed; right: 30px; bottom: 96px; z-index: 50; width: 42px; height: 42px; border-radius: 50%;
	border: 0; background: rgba(75, 38, 45, .85); color: #fff; font-size: 20px; cursor: pointer;
}

/* modal: price request and photo viewer */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(15, 10, 10, .7); }
.modal[hidden] { display: none; }
.modal__box {
	position: relative; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto;
	background: #fff; border-radius: 8px; padding: 24px 22px 20px; box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}
.modal__close { position: absolute; top: 6px; right: 8px; width: 36px; height: 36px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: #888; }
.modal__title { font-size: 20px; margin: 0 26px 4px 0; }
.modal__sub { color: var(--muted); margin-bottom: 14px; }
.form-row { margin-bottom: 12px; }
.form-row label { display: block; font-size: 13px; margin-bottom: 4px; }
.form-row input, .form-row textarea {
	width: 100%; padding: 9px 11px; border: 1px solid #c4c4c4; border-radius: 4px; font: inherit; font-size: 15px;
}
.form-row textarea { min-height: 80px; resize: vertical; }
.form-row--check label { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--muted); }
.form-row--check input { width: auto; margin-top: 2px; }
.form-hp { position: absolute; left: -5000px; }
.req { color: #d00; }
.form-msg { margin-top: 10px; font-size: 14px; }
.form-msg.is-error { color: #c00; }

.viewer { background: rgba(0, 0, 0, .9); }
.viewer img { max-width: 100%; max-height: calc(100vh - 80px); object-fit: contain; }
.viewer__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 32px; cursor: pointer; }
.viewer__prev { left: 10px; } .viewer__next { right: 10px; }
.viewer .modal__close { color: #fff; position: fixed; top: 10px; right: 14px; }

.error-box { text-align: center; padding: 50px var(--gut); }
.error-box__cats { list-style: none; padding: 0; margin: 20px auto 26px; max-width: 760px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; font-size: 16px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- adaptive */

@media (max-width: 1180px) {
	.products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.home-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.home-cats li:first-child { grid-column: span 3; grid-row: auto; }
	.home-cats li:first-child img { aspect-ratio: 2 / 1; }
	.catnav__list { justify-content: flex-start; }
	.footer__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	.header { padding-top: 10px; position: sticky; top: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
	.header__row { grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
	.logo { width: 190px; }
	.search { grid-column: 1 / -1; grid-row: 2; max-width: none; margin-bottom: 10px; }
	.contacts { grid-column: 2; grid-row: 1; }
	.contacts__social, .contacts__info { display: none; }
	.contacts__phone { font-size: 18px; }
	.burger {
		display: grid; place-items: center; grid-column: 3; grid-row: 1;
		width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer;
	}
	.header__row { grid-template-columns: 1fr auto auto; }
	.burger span, .burger span::before, .burger span::after { display: block; width: 22px; height: 2px; background: var(--wine); position: relative; transition: transform .2s, background .2s; }
	.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
	.burger span::before { top: -7px; } .burger span::after { top: 7px; }
	.burger[aria-expanded="true"] span { background: transparent; }
	.burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
	.burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

	.catnav {
		display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0; max-height: calc(100vh - 120px); overflow: auto;
		background: #fff; border-top: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0, 0, 0, .15); padding: 6px var(--gut) 16px;
	}
	.catnav.is-open { display: block; }
	.catnav__list { display: block; padding: 0; }
	.catnav__list a { padding: 11px 4px; border-radius: 0; border-bottom: 1px solid #f0f0f0; text-decoration: none; font-size: 16px; }
	.catnav__list .is-active a { background: none; color: var(--hover); }
	.catnav__extra { display: block; margin-top: 10px; }
	.catnav__extra ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
	.catnav__extra ul a { display: block; padding: 6px 0; color: #505050; }
	.catnav__phone { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 18px; text-decoration: none; }
	.catnav__phone svg { width: 18px; height: 18px; }

	.product-page { grid-template-columns: 1fr; }
	.wa-float { right: 14px; bottom: 14px; width: 54px; height: 54px; }
	.to-top { right: 20px; bottom: 80px; }
}

@media (max-width: 600px) {
	.thanks { margin: 14px auto 26px; padding: 28px 18px 22px; }
	.thanks__title { font-size: 21px; }
	.thanks__actions .btn { flex: 1 1 100%; }
	.cookie { left: 8px; right: 84px; bottom: 10px; gap: 8px; padding: 8px 10px; }
	.cookie p { font-size: 11.5px; line-height: 1.3; }
	.cookie .btn { padding: 7px 10px; font-size: 13px; }
	body { font-size: 15px; background: var(--page); }
	.page { box-shadow: none; }
	.logo { width: 150px; }
	.contacts__phone { font-size: 16px; }
	.products-grid { grid-template-columns: 1fr; gap: 26px; }
	.home-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.home-cats li:first-child { grid-column: span 2; }
	.home-cats span { font-size: 14px; padding: 8px 10px; }
	/* subcategories and factories: one row scrolled sideways instead of a screen of links */
	.shop-cat__subcats, .shop-brands {
		flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin-right: calc(-1 * var(--gut)); padding: 2px var(--gut) 8px 0;
		scrollbar-width: thin; -webkit-overflow-scrolling: touch;
	}
	.shop-cat__subcats a, .shop-brands a {
		flex: none; white-space: nowrap; text-decoration: none; font-size: 15px;
		border: 1px solid #f3b6cf; border-radius: 16px; padding: 5px 12px;
	}
	.shop-brands a.is-selected { padding: 5px 12px; border-radius: 16px; border-color: var(--accent); }
	.shop-cat__label { font-size: 16px; margin-top: 10px; }
	.footer__row { grid-template-columns: 1fr; }
	.footer__col, .footer__col--brand { text-align: left; }
	.product-page__buy .btn { width: 100%; }
	.gallery__thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
	.product-nav { flex-direction: column; }
}

@media (max-width: 380px) {
	.header__row { gap: 8px; }
	.logo { width: 128px; }
	.contacts__phone { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
	body { background: #fff; }
	.header .search, .burger, .catnav, .wa-float, .to-top, .footer__menu, .footer__review-btn, .cookie { display: none !important; }
	.page { box-shadow: none; }
}
