/* =====================================================================
   ArtExpo — шаблон ArtExpoShop  ·  v1.0.0
   ===================================================================== */

@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/manrope-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--brand: #0BA7B9;          /* фирменная бирюза логотипа */
	--brand-600: #0A7C8A;      /* кнопки/ссылки, контраст AA на белом */
	--brand-700: #08636E;
	--brand-50: #E9F7F9;
	--brand-100: #D2EFF3;
	--accent: #FFCB05;         /* жёлтый логотипа — главные CTA */
	--accent-600: #F2B900;
	--ink: #15181D;
	--ink-2: #2B3038;
	--muted: #5B6470;
	--line: #E3E7EC;
	--bg: #FFFFFF;
	--bg-soft: #F4F7F9;
	--danger: #D93A3A;
	--success: #1E9E5A;
	--sale: #E5484D;

	--radius: 14px;
	--radius-sm: 10px;
	--radius-lg: 22px;
	--shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
	--shadow: 0 6px 24px -6px rgba(16, 24, 40, .12);
	--shadow-lg: 0 24px 48px -12px rgba(16, 24, 40, .22);

	--font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--container: 1240px;
	--gutter: 16px;
	--hdr-h: 72px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font: 400 16px/1.6 var(--font);
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--brand-600); text-decoration: none; transition: color .15s; }
a:hover { color: var(--brand-700); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4, h5 { margin: 0 0 .6em; line-height: 1.2; font-weight: 800; letter-spacing: -.015em; color: var(--ink); }
h1 { font-size: clamp(28px, 3.2vw, 40px); }
h2 { font-size: clamp(22px, 2.4vw, 30px); }
h3 { font-size: 20px; }
h4 { font-size: 17px; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
table { border-collapse: collapse; max-width: 100%; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.ic { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden, .element-invisible {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 8px; color: #fff; }
.hp { position: absolute; left: -9999px; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn, .button, .jshop input.button, input[type="submit"].btn, .validate {
	--h: 44px;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: var(--h); padding: 0 20px;
	border: 1.5px solid transparent; border-radius: 12px;
	background: var(--brand-600); color: #fff;
	font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none !important;
	cursor: pointer; white-space: nowrap;
	transition: background .15s, transform .1s, box-shadow .15s, border-color .15s, color .15s;
	-webkit-appearance: none; appearance: none;
}
.btn:hover, .button:hover, .validate:hover { background: var(--brand-700); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn .ic { width: 18px; height: 18px; }
.btn--primary { background: var(--brand-600); color: #fff; }
.btn--accent { background: var(--accent); color: var(--ink); box-shadow: 0 6px 16px -6px rgba(242, 185, 0, .7); }
.btn--accent:hover { background: var(--accent-600); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--bg-soft); color: var(--ink); border-color: #cfd6de; }
.btn--sm { --h: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn--lg { --h: 54px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn--block { display: flex; width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.link { background: none; border: 0; padding: 0; color: var(--brand-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.link:hover { color: var(--brand-700); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; }
.link-arrow .ic { width: 18px; height: 18px; transition: transform .15s; }
.link-arrow:hover .ic { transform: translateX(3px); }

.chip {
	display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px;
	background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 13px; font-weight: 600;
	box-shadow: var(--shadow-sm); backdrop-filter: blur(6px);
}
.chip:hover { background: #fff; color: var(--brand-600); text-decoration: none; }

.badge {
	position: absolute; left: 10px; top: 10px; z-index: 2;
	display: inline-block; padding: 4px 9px; border-radius: 8px;
	font-size: 12px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; line-height: 1.3;
	background: var(--brand-600); color: #fff;
}
.badge--sale { background: var(--sale); }
.badge--hit { background: var(--accent); color: var(--ink); }

/* ---------- Forms ---------- */
input[type="text"], input[type="tel"], input[type="email"], input[type="search"], input[type="password"], input[type="number"],
select, textarea, .inputbox {
	width: 100%; min-height: 46px; padding: 10px 14px;
	border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
	font-size: 16px; line-height: 1.4; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 96px; resize: vertical; }
select, .jshop select, .inputbox[size="1"] {
	padding-right: 40px; -webkit-appearance: none; appearance: none; cursor: pointer;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%235B6470' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center;
}
input:focus, select:focus, textarea:focus, .inputbox:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--brand-600); vertical-align: middle; }
label { font-weight: 600; font-size: 14px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { color: var(--ink-2); }
.field.is-invalid input { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(217, 58, 58, .12); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 12.5px; font-weight: 500; color: var(--muted); line-height: 1.45; cursor: pointer; }
.consent input { margin-top: 1px; flex: none; }
.consent.is-invalid { color: var(--danger); }
.lead-form__msg { margin-top: 12px; font-size: 14px; font-weight: 600; }
.lead-form__msg.is-error { color: var(--danger); }
.lead-form__msg.is-ok { color: var(--success); }
.lead-form.is-done .field, .lead-form.is-done .consent, .lead-form.is-done [type="submit"] { display: none; }
.lead-form.is-done .lead-form__msg { font-size: 17px; padding: 18px; border-radius: var(--radius); background: #E9F8EF; color: #136B3C; }

/* =====================================================================
   HEADER
   ===================================================================== */
.hdr { position: sticky; top: -39px; z-index: 50; background: #fff; }
.hdr__top { background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.hdr__top-in { display: flex; align-items: center; gap: 22px; min-height: 38px; }
.hdr__top-spacer { flex: 1; }
.hdr__meta { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); white-space: nowrap; }
.hdr__meta .ic { width: 15px; height: 15px; color: var(--brand-600); }
a.hdr__meta:hover { color: var(--ink); }
.hdr__meta--tg, .hdr__meta--tg .ic { color: #229ED9; font-weight: 600; }
.hdr__meta--wa, .hdr__meta--wa .ic { color: #1DA851; font-weight: 600; }

.hdr__main { background: #fff; border-bottom: 1px solid var(--line); }
.hdr__main-in { display: flex; align-items: center; gap: 18px; min-height: var(--hdr-h); }
.logo { display: inline-flex; flex-direction: column; flex: none; text-decoration: none !important; line-height: 1; }
.logo img { width: 210px; height: auto; display: block; }
.logo__slogan { margin-top: 5px; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.hdr__catalog { --h: 48px; padding: 0 18px; }
.hdr__catalog[aria-expanded="true"] { background: var(--ink); }
.search { position: relative; flex: 1; min-width: 160px; display: flex; }
.search__input { min-height: 48px; padding-right: 50px; border-radius: 12px; background: var(--bg-soft); border-color: transparent; }
.search__input:focus { background: #fff; }
.search__btn { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 42px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); display: grid; place-items: center; }
.search__btn:hover { color: var(--brand-600); background: var(--brand-50); }
.search__input::-webkit-search-cancel-button { display: none; }
.hdr__contact { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; flex: none; }
.hdr__phone { color: var(--ink); font-size: 18px; white-space: nowrap; }
.hdr__phone span { color: var(--muted); font-weight: 600; }
.hdr__phone b { font-weight: 800; }
.hdr__phone:hover { color: var(--brand-600); text-decoration: none; }
.hdr__callback { margin-top: 3px; padding: 0; border: 0; background: none; color: var(--brand-600); font-size: 13px; font-weight: 600; border-bottom: 1px dashed currentColor; }
.hdr__callback:hover { color: var(--brand-700); }
.hdr__cart { display: flex; align-items: center; gap: 10px; flex: none; padding: 6px 10px 6px 6px; border-radius: 12px; color: var(--ink); }
.hdr__cart:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.hdr__cart-ic { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); color: var(--brand-600); }
.hdr__cart-ic .ic { width: 22px; height: 22px; }
.hdr__cart-n, .mbar__cart i {
	position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px;
	border-radius: 10px; background: var(--accent); color: var(--ink); border: 2px solid #fff;
	font: 800 11px/16px var(--font); text-align: center; font-style: normal;
}
.hdr__cart-txt { display: flex; flex-direction: column; line-height: 1.2; }
.hdr__cart-txt small { font-size: 12px; color: var(--muted); }
.hdr__cart-txt b { font-size: 14px; font-weight: 800; white-space: nowrap; }
.hdr__burger, .hdr__icon { display: none; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: var(--bg-soft); color: var(--ink); flex: none; }
.hdr__burger .ic, .hdr__icon .ic { width: 22px; height: 22px; }

/* Main nav */
.hdr > .mnav { border-bottom: 1px solid var(--line); background: #fff; }
.nav__list { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; min-height: 50px; }
.nav__item { position: relative; }
.nav__link {
	display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 10px;
	color: var(--ink-2); font-weight: 600; font-size: 15px; background: none; border: 0; white-space: nowrap;
}
.nav__link:hover, .nav__item.is-active > .nav__link { color: var(--brand-600); background: var(--brand-50); text-decoration: none; }
.nav__chev { width: 16px; height: 16px; transition: transform .2s; }
.nav__item.has-sub:hover .nav__chev, .nav__item.has-sub:focus-within .nav__chev { transform: rotate(180deg); }
.nav__sub {
	position: absolute; left: 0; top: 100%; min-width: 250px; margin: 0; padding: 8px; list-style: none;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; z-index: 30;
}
.nav__item.has-sub:hover .nav__sub, .nav__item.has-sub:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 500; }
.nav__sub a:hover, .nav__sub a[aria-current] { background: var(--bg-soft); color: var(--brand-600); text-decoration: none; }
.nav__item--cta { margin-left: auto; }
.nav__calc { color: var(--ink); background: #FFF6D1; }
.nav__calc:hover { background: var(--accent) !important; color: var(--ink) !important; }
.nav__calc .ic { width: 18px; height: 18px; }
.nav__item.sale > .nav__link, .nav__link[href*="sale"] { color: var(--sale); }

/* Mega catalog */
.mega {
	position: absolute; left: 0; right: 0; top: 100%;
	background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
	padding: 22px 0; animation: drop .18s ease-out;
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mega__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 14px; }
.mega__item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; color: var(--ink); font-weight: 600; }
.mega__item:hover, .mega__item.is-active { background: var(--bg-soft); color: var(--brand-600); text-decoration: none; }
.mega__img { width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--bg-soft); overflow: hidden; }
.mega__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.mega__item--sale .mega__img { background: #FDECEC; color: var(--sale); font-size: 24px; }
.mega__item--sale { color: var(--sale); }
.mega__item--new .mega__img { background: #FFF6D1; color: #B07F00; }
.mega__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* Drawer (mobile menu) */
.drawer { position: fixed; inset: 0; z-index: 200; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(15, 20, 25, .5); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.drawer__panel {
	position: absolute; left: 0; top: 0; bottom: 0; width: min(88vw, 380px);
	background: #fff; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px 24px;
	animation: slide .22s ease-out; display: flex; flex-direction: column; gap: 14px;
}
@keyframes slide { from { transform: translateX(-100%); } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; }
.drawer__close { width: 42px; height: 42px; border: 0; border-radius: 10px; background: var(--bg-soft); display: grid; place-items: center; }
.dmenu { list-style: none; margin: 0; padding: 0; }
.dmenu > li { border-bottom: 1px solid var(--line); }
.dmenu a, .dmenu summary { display: flex; align-items: center; justify-content: space-between; padding: 13px 4px; color: var(--ink); font-weight: 700; font-size: 16px; list-style: none; cursor: pointer; }
.dmenu summary::-webkit-details-marker { display: none; }
.dmenu details[open] > summary .ic { transform: rotate(180deg); }
.dmenu summary .ic { transition: transform .2s; color: var(--muted); }
.dmenu ul { list-style: none; margin: 0 0 10px; padding: 0 0 0 10px; }
.dmenu ul a { padding: 9px 4px; font-weight: 500; font-size: 15px; color: var(--ink-2); }
.dmenu a[aria-current] { color: var(--brand-600); }
.drawer__contacts { display: grid; gap: 10px; margin-top: auto; padding-top: 6px; font-weight: 600; }
.drawer__contacts a, .drawer__contacts span { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.drawer__contacts .ic { color: var(--brand-600); }
.search--drawer { flex: none; }

/* =====================================================================
   LAYOUT / COMMON
   ===================================================================== */
.site-main { min-height: 50vh; }
.is-inner .site-main { padding-bottom: 8px; }
.layout { display: block; padding-bottom: 40px; }
.layout--sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
.layout__content { min-width: 0; }

.breadcrumb, ul.breadcrumb {
	display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px;
	list-style: none; margin: 0; padding: 18px 0 14px; font-size: 13.5px; color: var(--muted); background: none;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-600); }
.breadcrumb .divider { color: #b8c0c9; font-size: 0; }
.breadcrumb .divider::before { content: "/"; font-size: 13px; }
.breadcrumb li:first-child .divider, .breadcrumb .divider img, .breadcrumb .icon-location { display: none; }
.breadcrumb li.active span, .breadcrumb > span:last-child { color: var(--ink-2); }

.page-head { margin: 4px 0 18px; }
.page-head h1, .jshop .page-head h1, .pp h1.pp__title { margin-bottom: 6px; font-size: clamp(26px, 3vw, 38px); font-weight: 800; color: var(--ink); line-height: 1.15; }
.jshop h1 { font-weight: 800; color: var(--ink); }
.page-head__lead { color: var(--muted); max-width: 760px; margin: 0; }
.page-header h1, .page-header h2, .item-page h1 { margin-top: 4px; }

.section { padding: 56px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.section__head h2 { margin: 0; }
.section__sub { margin: 0; color: var(--muted); flex-basis: 100%; }
.eyebrow { margin: 0 0 12px; color: var(--brand-600); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }

.collapsible { position: relative; max-height: 220px; overflow: hidden; transition: max-height .3s; }
.collapsible::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.collapsible.is-open { max-height: none; }
.collapsible.is-open::after, .collapsible.is-short::after { display: none; }
.collapsible.is-short { max-height: none; }
.collapsible.is-short + [data-collapsible-toggle] { display: none; }
[data-collapsible-toggle] { margin-top: 10px; }

/* System messages */
#system-message-container { margin: 0 0 12px; }
.alert { padding: 14px 18px; border-radius: var(--radius); background: var(--brand-50); border: 1px solid var(--brand-100); margin-bottom: 12px; position: relative; }
.alert-error, .alert-danger { background: #FDECEC; border-color: #F7C9C9; }
.alert-warning { background: #FFF6D1; border-color: #F8E39A; }
.alert-success { background: #E9F8EF; border-color: #BFE8CF; }
.alert .close { position: absolute; right: 12px; top: 8px; background: none; border: 0; font-size: 22px; line-height: 1; color: var(--muted); }
.alert-heading { font-size: 15px; margin-bottom: 4px; }

/* =====================================================================
   HOME
   ===================================================================== */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% 0%, var(--brand-50), transparent 60%), linear-gradient(180deg, #fff, var(--bg-soft)); }
.hero__in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.hero__title { font-size: clamp(30px, 3.5vw, 46px); line-height: 1.08; letter-spacing: -.025em; margin-bottom: 18px; }
.hero__lead { font-size: 18px; color: var(--ink-2); max-width: 560px; }
.checks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.checks .ic { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--brand-600); color: #fff; margin-top: 1px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media { position: relative; }
.hero__media > img { width: calc(100% + 64px); max-width: none; height: auto; margin: -24px -32px -8px; display: block; filter: drop-shadow(0 30px 40px rgba(16, 36, 43, .08)); }
.hero__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; position: relative; }

.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.cat {
	position: relative; display: flex; flex-direction: column; gap: 8px; padding: 14px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink);
	transition: box-shadow .2s, transform .2s, border-color .2s;
}
.cat:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: transparent; color: var(--ink); text-decoration: none; }
.cat__img { position: relative; display: block; aspect-ratio: 1; border-radius: 10px; background: var(--bg-soft); overflow: hidden; }
.cat__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s; }
.cat:hover .cat__img img { transform: scale(1.04); }
.cat__name { font-weight: 700; line-height: 1.3; }
.cat:hover .cat__name { color: var(--brand-600); }
.cat__desc { font-size: 13px; color: var(--muted); line-height: 1.45; }
.cats--sub { margin-bottom: 28px; }

.tabs { display: inline-flex; gap: 4px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.tabs__btn { padding: 8px 14px; border: 0; border-radius: 9px; background: none; font-weight: 700; font-size: 14px; color: var(--muted); }
.tabs__btn:hover { color: var(--ink); }
.tabs__btn.is-active { background: var(--ink); color: #fff; }

.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.service {
	position: relative; display: flex; flex-direction: column; gap: 14px; padding: 20px;
	border-radius: var(--radius); background: var(--bg-soft); color: var(--ink); min-height: 150px;
	transition: background .2s, color .2s;
}
.service:hover { background: var(--brand-600); color: #fff; text-decoration: none; }
.service__ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--brand-600); }
.service__ic .ic { width: 24px; height: 24px; }
.service__name { font-weight: 700; line-height: 1.3; }
.service__arr { position: absolute; right: 18px; bottom: 18px; opacity: .5; }
.service:hover .service__arr { opacity: 1; }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); gap: 56px; align-items: start; }
.about__media { margin: 0; position: sticky; top: 110px; }
.about__media img { width: 100%; height: auto; display: block; }
.home-text__item h2 { font-size: clamp(22px, 2.2vw, 28px); }
.home-text p, .seo-text p { color: var(--ink-2); }

/* CTA band */
.cta { padding: 56px 0; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(11, 167, 185, .45), transparent 70%); }
.cta__in { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.cta h2 { color: #fff; }
.cta p { color: #C9D1DA; font-size: 17px; }
.cta__alt a { color: var(--accent); font-weight: 700; }
.cta__form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 22px; background: #fff; border-radius: var(--radius-lg); color: var(--ink); box-shadow: var(--shadow-lg); }
.cta__form .field { margin: 0; }
.cta__form .btn, .cta__form .consent, .cta__form .lead-form__msg { grid-column: 1 / -1; }
.cta__form .consent { margin: 0; }
.cta__form.is-done { display: block; }

/* =====================================================================
   PRODUCTS — cards & grid
   ===================================================================== */
.products-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.layout--sidebar .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pcard {
	position: relative; display: flex; flex-direction: column; background: #fff;
	border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
	transition: box-shadow .2s, border-color .2s;
}
.pcard:hover { box-shadow: var(--shadow); border-color: transparent; }
.pcard__img { position: relative; display: block; aspect-ratio: 1; background: #fff; overflow: hidden; }
.pcard__img img { position: absolute; left: 14px; top: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; transition: transform .3s; }
.pcard:hover .pcard__img img { transform: scale(1.04); }
.pcard__body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 4px 16px 16px; }
.pcard__name { font-weight: 700; color: var(--ink); line-height: 1.3; font-size: 15.5px; }
.pcard__name:hover { color: var(--brand-600); text-decoration: none; }
.pcard__desc { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__na { font-size: 13px; color: var(--danger); font-weight: 600; }
.pcard__foot { margin-top: auto; padding-top: 10px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pcard__price { display: flex; flex-direction: column; line-height: 1.15; }
.pcard__price s { font-size: 13px; color: var(--muted); }
.pcard__price b { font-size: 19px; font-weight: 800; white-space: nowrap; }
.pcard__price s + b { color: var(--sale); }
.pcard__ask { font-size: 15px !important; color: var(--ink-2); }
.pcard__btns { display: flex; gap: 6px; }
.pcard__btns .btn--accent { padding: 0 10px; }

/* Category nav strip */
.catnav { margin: 0 calc(var(--gutter) * -1) 22px; }
.catnav__track { display: flex; gap: 8px; overflow-x: auto; padding: 2px var(--gutter) 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.catnav__item {
	display: inline-flex; align-items: center; gap: 8px; flex: none; scroll-snap-align: start;
	padding: 5px 14px 5px 5px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
	color: var(--ink-2); font-size: 14px; font-weight: 600; white-space: nowrap;
}
.catnav__item img { width: 32px; height: 32px; border-radius: 50%; object-fit: contain; background: var(--bg-soft); mix-blend-mode: multiply; }
.catnav__item:hover { border-color: var(--brand); color: var(--brand-600); text-decoration: none; }
.catnav__item.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.catnav__item.is-active img { background: #fff; mix-blend-mode: normal; }

/* old "category_banner" modules (X/L banner switches) */
.mass-top { margin: 0 0 12px; }
.category_banner { display: flex; flex-wrap: wrap; gap: 8px; }
.category_banner a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; color: var(--ink-2); }
.category_banner a:hover { border-color: var(--brand); text-decoration: none; }
.category_banner a.active { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }

/* sorting / filters (JoomShopping) */
.form_sort_count { margin: 0 0 16px; }
.block_sorting_count_to_page { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.block_sorting_count_to_page .control-group { display: flex; align-items: center; gap: 8px; margin: 0; }
.block_sorting_count_to_page .control-label { font-size: 14px; color: var(--muted); font-weight: 600; }
.block_sorting_count_to_page .controls { display: flex; align-items: center; gap: 6px; }
.block_sorting_count_to_page select { width: auto; min-height: 40px; padding-top: 6px; padding-bottom: 6px; font-size: 14px; }
.block_sorting_count_to_page .icon-arrow img { width: 32px; height: 32px; padding: 8px; border-radius: 8px; background: var(--bg-soft); cursor: pointer; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.filter_price, .filters .control-group { display: flex; align-items: center; gap: 8px; }
.jshop_list_product .no_products, .no_products { padding: 32px; text-align: center; border-radius: var(--radius); background: var(--bg-soft); color: var(--muted); }

/* Pagination */
.pagination, .jshop_pagination { margin: 28px 0 8px; }
.pagination ul, ul.pagination-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pagination li > a, .pagination li > span {
	display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px;
	border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 700;
}
.pagination li > a:hover { border-color: var(--brand); color: var(--brand-600); text-decoration: none; }
.pagination li.active > a, .pagination li.active > span { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination li.disabled > a, .pagination li.disabled > span { opacity: .4; }
.pagination .counter, p.counter { text-align: center; color: var(--muted); font-size: 14px; }

.help-box {
	display: flex; align-items: center; gap: 18px; margin: 32px 0; padding: 20px 22px;
	border-radius: var(--radius); background: #FFF8DC; border: 1px solid #F8E39A;
}
.help-box__ic { width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--accent); color: var(--ink); }
.help-box__ic .ic { width: 26px; height: 26px; }
.help-box__text { flex: 1; display: grid; gap: 2px; }
.help-box__text span { color: var(--ink-2); font-size: 15px; }
.seo-text { margin: 12px 0 0; max-width: 900px; }
.seo-text h2, .seo-text h3 { margin-top: 1.2em; }

/* =====================================================================
   PRODUCT PAGE
   ===================================================================== */
.pp { padding-bottom: 24px; }
.pp__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.pp__gallery { position: sticky; top: 140px; }
.pp__main { width: auto !important; position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; overflow: hidden; }
.pp__main .badge { left: 16px; top: 16px; font-size: 13px; }
#list_product_image_middle { display: block; }
#list_product_image_middle a, #list_product_image_middle > img { display: flex !important; align-items: center; justify-content: center; aspect-ratio: 1; padding: 24px; position: relative; }
#list_product_image_middle a[style*="none"] { display: none !important; }
#list_product_image_middle a img { position: absolute; left: 24px; top: 24px; width: calc(100% - 48px); height: calc(100% - 48px); object-fit: contain; }
#list_product_image_middle > img { width: 100%; height: auto; object-fit: contain; }
.text_zoom { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); box-shadow: var(--shadow-sm); font-size: 13px; color: var(--muted); font-weight: 600; }
.text_zoom img { display: none; }
.text_zoom .ic { width: 15px; height: 15px; }
.pp__thumbs { margin-top: 12px; }
#list_product_image_thumb { display: flex; flex-wrap: wrap; gap: 10px; }
.jshop_img_thumb, .jshop_video_thumb {
	width: 76px; height: 76px; object-fit: contain; padding: 6px; border-radius: 12px; cursor: pointer;
	border: 2px solid var(--line); background: #fff; transition: border-color .15s;
}
.jshop_img_thumb:hover, .jshop_img_thumb.is-active { border-color: var(--brand); }

.pp__title { font-size: clamp(26px, 2.6vw, 36px); margin-bottom: 12px; }
.pp__desc { color: var(--ink-2); margin-bottom: 18px; }
.pp__desc p:last-child { margin-bottom: 0; }
.pp__attrs { display: grid; gap: 14px; margin-bottom: 18px; }
.pp__attr { display: grid; gap: 6px; }
.pp__attr-label { font-size: 14px; color: var(--ink-2); }
.pp__attr-label small { font-weight: 500; color: var(--muted); }
.pp__attr-ctl select { max-width: 420px; }
.pp__attr-ctl input[type="radio"] { margin: 0 6px 0 0; }
.pp__attr-group { font-weight: 800; margin-top: 4px; }

.buybox { padding: 22px; border-radius: var(--radius-lg); background: var(--bg-soft); display: grid; gap: 12px; }
.buybox__prices { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.buybox__price { font-size: clamp(30px, 3vw, 38px); font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.buybox__old { font-size: 18px; color: var(--muted); text-decoration: line-through; }
.buybox__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.buybox__cart { flex: 1; min-width: 180px; }
.buybox__calc { display: inline-flex; align-items: center; gap: 8px; justify-self: start; font-size: 14px; }
.buybox__calc .ic { width: 18px; height: 18px; }
.buybox .not_available:empty { display: none; }
.buybox .not_available { color: var(--danger); font-weight: 600; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.qty__btn { width: 44px; height: 51px; border: 0; background: none; font-size: 20px; color: var(--ink-2); }
.qty__btn:hover { background: var(--bg-soft); }
input.qty__input { width: 52px; min-height: 51px; padding: 0; border: 0; border-radius: 0; text-align: center; font-weight: 700; box-shadow: none !important; }
#jshop_image_loading { position: absolute; }
.price_prod_qty_list { width: 100%; font-size: 14px; background: #fff; border-radius: 10px; overflow: hidden; }
.price_prod_qty_list td { padding: 8px 10px; border-bottom: 1px solid var(--line); }
.price_prod_qty_list_head { font-weight: 700; font-size: 14px; }

.specs { margin: 22px 0 0; display: grid; }
.specs__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; }
.specs__group { font-weight: 800; margin-top: 12px; }
.perks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.perks li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.perks .ic { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--brand-50); color: var(--brand-600); }
.perks b { color: var(--ink); }

.related { margin-top: 56px; }
.related__title { font-size: clamp(22px, 2.2vw, 28px); }
.products-grid--related { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#list_product_demofiles:empty { display: none; }
.review_header, .review_mark { margin-top: 24px; }

.buybar { display: none; }

/* =====================================================================
   CART / CHECKOUT (JoomShopping)
   ===================================================================== */
.jshop h1, .jshop .shophead h1 { margin-top: 4px; }
table.jshop { width: 100%; }
table.cart { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); border-collapse: separate; border-spacing: 0; overflow: hidden; background: #fff; }
table.cart th { padding: 12px 14px; background: var(--bg-soft); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); text-align: left; }
table.cart td { padding: 14px; border-top: 1px solid var(--line); vertical-align: middle; }
table.cart .jshop_img { width: 90px; height: 90px; object-fit: contain; }
table.cart .product_name a { font-weight: 700; color: var(--ink); }
table.cart .quantity input { width: 70px; text-align: center; display: inline-block; }
table.cart .cart_reload img, table.cart .remove img { width: 22px; cursor: pointer; opacity: .6; }
table.cart .cart_reload img:hover, table.cart .remove img:hover { opacity: 1; }
table.cart .total_price { font-weight: 800; white-space: nowrap; }
.mobile-cart { display: none; }
.jshop_subtotal, table.jshop_subtotal { margin: 18px 0 0 auto; min-width: 320px; }
.jshop_subtotal td { padding: 8px 12px; }
.jshop_subtotal .total td, tr.total td { font-size: 20px; font-weight: 800; border-top: 1px solid var(--line); }
.jshop .cart_buttons, .cart_buttons { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.cart_buttons a, .cart_buttons .btn, #checkout a.btn { min-height: 48px; }
.clear-cart { margin-top: 12px; }
.cart_empty_text, .cart .cart_empty_text { padding: 32px; text-align: center; border-radius: var(--radius); background: var(--bg-soft); }

#jshop_menu_order, .jshop_menu_level_0, ul#jshop_menu_order { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 24px; counter-reset: step; }
#jshop_menu_order td, .jshop_menu_level_0 li, .jshop_menu_level_1 li, .jshop_menu_level_2 li { padding: 8px 14px; border-radius: 999px; background: var(--bg-soft); font-size: 14px; font-weight: 600; color: var(--muted); }
#jshop_menu_order .jshop_menu_level_1, .jshop_menu_level_1 { background: var(--ink); color: #fff; }
#jshop_menu_order a { color: inherit; }
.checkout_menu, table#jshop_menu_order { border-collapse: separate; border-spacing: 6px; margin-left: -6px; }

.jshop .row-fluid { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.jshop .control-group { margin-bottom: 14px; }
.jshop .control-label { font-weight: 600; font-size: 14px; margin-bottom: 6px; display: block; }
.jshop .controls { max-width: 520px; }
.jshop fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 18px; }
.jshop legend { padding: 0 8px; font-weight: 800; }
.jshop table.jshop td { padding: 6px 8px; }
.jshop .name, #table_shippings .name, #table_payments .name { font-weight: 700; }
#table_shippings, #table_payments { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
#table_shippings td, #table_payments td { padding: 12px 14px; background: var(--bg-soft); }
#table_shippings td:first-child, #table_payments td:first-child { border-radius: 12px 0 0 12px; width: 44px; }
#table_shippings td:last-child, #table_payments td:last-child { border-radius: 0 12px 12px 0; }
.jshop .requiredtext, .requiredtext { font-size: 13px; color: var(--muted); }
.jshop .box_button, .jshop .checkout_button, .finish_button { margin-top: 16px; }
.jshop input.button, .jshop .btn-primary { background: var(--brand-600); color: #fff; }
.jshop input.button:hover { background: var(--brand-700); }
.jshop .btn-success, #submitCheckout, input#payment_submit, input[name="finish_registration"] { background: var(--accent) !important; color: var(--ink) !important; }
.jshop textarea { max-width: 620px; }
.checkout_pfinish_block { padding: 18px 20px; background: var(--bg-soft); border-radius: var(--radius); }
.jshop .login_block, .jshop .register_block { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }

/* =====================================================================
   CONTENT (articles, blogs, contacts)
   ===================================================================== */
.item-page, .blog, .category-list, .contact { max-width: 920px; }
.item-page img, .blog img { border-radius: 12px; }
.item-page table, .blog table { width: 100%; }
.item-page table td, .item-page table th { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.article-info, dl.article-info { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.article-info dd { margin: 0; }
.article-info dt { display: none; }
.blog .items-row, .blog .items-leading > div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.blog .page-header h2 { font-size: 22px; }
.readmore a, p.readmore a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.pager ul, ul.pager { display: flex; justify-content: space-between; list-style: none; padding: 0; margin: 28px 0; }
.pager a { padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; }
.icons, .btn-group.pull-right { display: none; }
.item-page ul li, .item-page ol li { margin-bottom: 6px; }
.item-page blockquote { margin: 1.5em 0; padding: 14px 20px; border-left: 4px solid var(--brand); background: var(--brand-50); border-radius: 0 12px 12px 0; }
.contact .contact-address, .contact dl { margin: 0 0 16px; }
iframe { max-width: 100%; border: 0; border-radius: 12px; }
.besps_holder, .besps_ctrls { max-width: 100% !important; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.ftr { background: #0F1216; color: #AEB7C1; font-size: 15px; }
.ftr__grid { display: grid; grid-template-columns: 1.3fr 1fr 2fr 1.2fr; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.ftr__brand p { margin: 16px 0 20px; max-width: 300px; }
.logo--light img { width: 190px; }
.ftr h3, .ftr .moduletable h3 { color: #fff; font-size: 15px; letter-spacing: .03em; text-transform: uppercase; margin: 0 0 16px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ftr a { color: #D6DDE4; }
.ftr a:hover { color: var(--accent); text-decoration: none; }
.ftr .nav, .ftr ul.menu { border: 0; background: none; }
.ftr__contacts li { display: flex; gap: 10px; align-items: flex-start; }
.ftr__contacts .ic { width: 18px; height: 18px; margin-top: 3px; color: var(--brand); }
.ftr__bottom { border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; }
.ftr__bottom-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.counters { display: none; }

/* Floating action button */
.fab { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fab__toggle {
	position: relative; width: 60px; height: 60px; border: 0; border-radius: 50%;
	background: var(--brand-600); color: #fff; box-shadow: 0 10px 28px -6px rgba(10, 124, 138, .7);
	display: grid; place-items: center; transition: transform .2s, background .2s;
}
.fab__toggle::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--brand); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.55); opacity: 0; } }
.fab__toggle:hover { transform: scale(1.05); }
.fab__toggle .ic { width: 26px; height: 26px; }
.fab__ic--close { display: none; }
.fab.is-open .fab__ic--open { display: none; }
.fab.is-open .fab__ic--close { display: block; }
.fab.is-open .fab__toggle { background: var(--ink); box-shadow: var(--shadow-lg); }
.fab.is-open .fab__toggle::before { display: none; }
.fab__list { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; animation: rise .18s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.fab__item {
	display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border: 0; border-radius: 999px;
	background: #fff; color: var(--ink); font-weight: 700; font-size: 14px; box-shadow: var(--shadow-lg); white-space: nowrap;
}
.fab__item:hover { color: var(--ink); text-decoration: none; transform: translateX(-2px); }
.fab__item .ic { width: 36px; height: 36px; padding: 8px; border-radius: 50%; color: #fff; background: var(--brand-600); }
.fab__item--tg .ic { background: #229ED9; }
.fab__item--wa .ic { background: #25D366; }
.fab__item--cb .ic { background: var(--accent); color: var(--ink); }

.mbar { display: none; }

/* =====================================================================
   MODAL
   ===================================================================== */
.modal {
	width: min(100% - 32px, 480px); max-height: calc(100dvh - 32px); padding: 0; border: 0;
	border-radius: var(--radius-lg); background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); overflow: auto;
}
.modal::backdrop { background: rgba(15, 20, 25, .55); backdrop-filter: blur(2px); }
.modal[open] { animation: pop .2s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.modal__box { position: relative; padding: 28px; }
.modal__close { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--bg-soft); display: grid; place-items: center; }
.modal__close:hover { background: var(--line); }
.modal__title { font-size: 24px; margin: 0 40px 8px 0; }
.modal__sub { color: var(--muted); font-size: 15px; }
.modal__product { display: grid; gap: 2px; margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); font-size: 14px; }
.modal__product b { font-size: 15px; }
.modal__product span { color: var(--muted); }

/* Error page */
.error-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 40px 0; }
.error-page__code { font-size: clamp(80px, 16vw, 160px); font-weight: 800; line-height: 1; margin: 30px 0 10px; color: var(--brand); letter-spacing: -.04em; }
.error-page__cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1180px) {
	.hdr__cart-txt { display: none; }
	.services { grid-template-columns: repeat(2, 1fr); }
	.ftr__grid { grid-template-columns: 1fr 1fr 1fr; }
	.ftr__brand { grid-column: 1 / -1; }
	.mega__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1023px) {
	:root { --hdr-h: 64px; }
	.hdr__top, .hdr > .mnav, .hdr__contact, .hdr__catalog, .mega { display: none !important; }
	.hdr__burger, .hdr__icon { display: grid; }
	.hdr__main-in { gap: 10px; }
	.logo { flex: 1; min-width: 0; }
	.logo img { width: 170px; }
	.logo__slogan { display: none; }
	.hdr__main .search { display: none; }
	.hdr__cart { padding: 0; }
	.hdr__cart-ic { background: var(--bg-soft); color: var(--ink); }

	.hero__in { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; padding-bottom: 40px; }
	.hdr { top: 0; }
	.hero__media > img { width: 100%; margin: 0; }
	.about { grid-template-columns: 1fr; gap: 24px; }
	.about__media { position: static; max-width: 520px; margin: 0 auto; order: -1; display: none; }
	.products-grid, .products-grid--related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.pp__grid { grid-template-columns: 1fr; gap: 24px; }
	.pp__gallery { position: static; }
	.cta__in { grid-template-columns: 1fr; gap: 24px; }
	.layout--sidebar { grid-template-columns: 1fr; }

	/* mobile bottom bar */
	body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
	.mbar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
		display: flex; justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
		background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); backdrop-filter: blur(10px);
	}
	.mbar__item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; color: var(--ink-2); font-size: 11.5px; font-weight: 700; }
	.mbar__item:hover { text-decoration: none; color: var(--brand-600); }
	.mbar__item .ic { width: 24px; height: 24px; }
	.mbar__item--tg .ic { color: #229ED9; }
	.mbar__item--wa .ic { color: #1DA851; }
	.mbar__cart { position: relative; }
	.fab { display: none; }
	.pp ~ .mbar, .ctrl-product .mbar { display: none; }

	/* sticky buy bar on product page */
	.buybar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 96;
		display: flex; align-items: center; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
		background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(16, 24, 40, .25);
		transform: translateY(110%); transition: transform .25s;
	}
	.buybar.is-visible { transform: none; }
	.buybar__price { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
	.buybar__price small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.buybar__price b { font-size: 18px; font-weight: 800; }
	.buybar .btn { --h: 46px; padding: 0 14px; }
	.view-product.ctrl-product .mbar, body.has-buybar .mbar { display: none; }
}

@media (max-width: 767px) {
	body { font-size: 15.5px; }
	.section { padding: 40px 0; }
	.hero__lead { font-size: 16px; }
	.hero__cta .btn { flex: 1 1 100%; }
	.hero__chips { display: none; }
	.cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.cat { padding: 10px; }
	.cat__name { font-size: 14px; }
	.products-grid, .products-grid--related, .layout--sidebar .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.pcard__body { padding: 2px 12px 12px; }
	.pcard__name { font-size: 14px; }
	.pcard__desc { display: none; }
	.pcard__foot { flex-direction: column; align-items: stretch; }
	.pcard__price b { font-size: 17px; }
	.pcard__btns .btn--primary { flex: 1; }
	.services { grid-template-columns: 1fr 1fr; gap: 10px; }
	.service { min-height: 0; padding: 16px; }
	.section__head { align-items: flex-start; }
	.tabs { width: 100%; overflow-x: auto; }
	.tabs__btn { flex: 1; white-space: nowrap; }
	.cta { padding: 40px 0; }
	.cta__form { grid-template-columns: 1fr; padding: 18px; }
	.help-box { flex-direction: column; align-items: flex-start; }
	.help-box .btn { width: 100%; }
	.buybox { padding: 16px; margin: 0 calc(var(--gutter) * -1); border-radius: 0; }
	.buybox__actions .btn { flex: 1 1 auto; }
	.specs__row { grid-template-columns: 1fr; gap: 2px; }
	.ftr__grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-top: 40px; }
	.ftr__contacts { grid-column: 1 / -1; }
	.modal__box { padding: 22px 18px; }

	/* cart table → cards */
	table.cart, table.cart tbody, table.cart tr, table.cart td { display: block; width: 100% !important; }
	table.cart tr:first-child { display: none; }
	table.cart tr { border-top: 1px solid var(--line); padding: 12px; }
	table.cart td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
	.mobile-cart { display: block; font-size: 13px; color: var(--muted); }
	table.cart .jshop_img_description_center .mobile-cart { display: none; }
	.jshop_subtotal, table.jshop_subtotal { min-width: 0; width: 100%; }
	.cart_buttons > * { flex: 1 1 100%; }
}

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

@media print {
	.hdr, .ftr, .fab, .mbar, .buybar, .cta, .help-box { display: none !important; }
}
#block_price { color: inherit; font-size: inherit; }

/* cart buttons */
#checkout { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; flex-wrap: wrap; }
#checkout .clearfix { display: none; }
#checkout .btn-arrow-left { background: transparent; color: var(--ink); border-color: var(--line); }
#checkout .btn-arrow-left:hover { background: var(--bg-soft); }
#checkout .btn-arrow-right { --h: 54px; padding: 0 30px; font-size: 16px; background: var(--accent); color: var(--ink); box-shadow: 0 6px 16px -6px rgba(242, 185, 0, .7); }
#checkout .btn-arrow-right:hover { background: var(--accent-600); }
table.jshop_subtotal td.value { text-align: right; font-weight: 700; white-space: nowrap; }
.cart_block_discount { margin-top: 20px; max-width: 460px; }
.cart_block_discount .span12 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cart_block_discount .name { width: 100%; font-weight: 600; }
.cart_block_discount .inputbox { flex: 1; }
@media (max-width: 767px) { #checkout > div { flex: 1 1 100%; } #checkout .btn { width: 100%; } }

/* auth / checkout start */
.auth { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; align-items: start; max-width: 1040px; }
.auth__card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.auth__card h2 { font-size: 21px; }
.auth__card p { color: var(--muted); font-size: 15px; }
.auth__card--main { background: #FFF8DC; border-color: #F8E39A; }
.auth__row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.auth .consent { font-size: 14px; color: var(--ink-2); }

/* funnel pages: no distractions */
.is-inner.ctrl-cart .cta, .is-inner.ctrl-checkout .cta, .is-inner.ctrl-user .cta { display: none; }
.is-inner .site-main { padding-bottom: 0; }
.ftr { margin-top: 0; }

/* checkout steps */
#jshop_menu_order td.jshop_order_step { counter-increment: step; }
#jshop_menu_order td.jshop_order_step span::before { content: counter(step) ". "; }
#jshop_menu_order td.active { background: var(--ink); color: #fff; }
#jshop_menu_order td.prev, #jshop_menu_order td.passed { background: var(--brand-50); color: var(--brand-600); }
#jshop_menu_order { counter-reset: step; }
#comjshop input[name="next"], #comjshop input[type="submit"].btn-primary:not([value="Логин"]) {
	--h: 54px; padding: 0 34px; font-size: 16px; background: var(--accent); color: var(--ink); box-shadow: 0 6px 16px -6px rgba(242, 185, 0, .7);
}
#comjshop input[name="next"]:hover { background: var(--accent-600); }
.pagelogin input[type="submit"] { --h: 44px; }
@media (max-width: 767px) { #jshop_menu_order td { font-size: 12px; padding: 6px 10px; } #comjshop input[name="next"] { width: 100%; } }
.no-bc { padding-top: 28px; }

/* footer catalog: one list in two even columns */
.ftr ul.ftr__cols { display: block; columns: 2; column-gap: 28px; }
.ftr__cols li { break-inside: avoid; margin: 0 0 9px; }
@media (max-width: 767px) { .ftr__catalog { grid-column: 1 / -1; } }

/* services page */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.svc {
	display: flex; flex-direction: column; gap: 14px; padding: 24px; min-height: 230px;
	border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; color: var(--ink);
	transition: box-shadow .2s, transform .2s, border-color .2s;
}
.svc:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: transparent; color: var(--ink); text-decoration: none; }
.svc__ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); transition: background .2s, color .2s; }
.svc__ic .ic { width: 28px; height: 28px; }
.svc:hover .svc__ic { background: var(--brand-600); color: #fff; }
.svc__img { display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--bg-soft); }
.svc__img img { width: 100%; height: 100%; object-fit: cover; }
.svc__body { display: grid; gap: 8px; }
.svc__title { font-size: 19px; font-weight: 800; line-height: 1.25; }
.svc__text { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.svc__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--brand-600); font-weight: 700; font-size: 15px; }
.svc__more .ic { width: 18px; height: 18px; transition: transform .15s; }
.svc:hover .svc__more .ic { transform: translateX(3px); }
.services-page .help-box { margin-top: 28px; }
@media (max-width: 1023px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } .svc { min-height: 0; padding: 18px; } }

/* contacts: pickup map smaller */
.item-page img[src*="samovyvoz"] { width: 100% !important; max-width: 460px; height: auto; border: 1px solid var(--line); border-radius: 14px; cursor: zoom-in; display: block; }

/* privacy policy page */
.policy-meta { color: var(--muted); font-size: 14px; }
.item-page img.is-zoomed[src*="samovyvoz"] { max-width: 100%; cursor: zoom-out; }

/* JoomShopping 5 */
#list_product_image_thumb .sblock0 { display: contents; }
.text_zoom .icon-zoom-in { display: none; }
.buybox .block_available { font-weight: 600; font-size: 14px; }
.buybox .block_available.available { color: var(--success); }
.buybox .block_available.not_available { color: var(--danger); }
.video_full iframe, .video_full video { width: 100%; aspect-ratio: 16 / 9; height: auto; }
#mxcpr { display: none !important; }

/* Joomla 6 breadcrumbs */
.mod-breadcrumbs__here { display: none !important; }
.mod-breadcrumbs.breadcrumb { padding: 18px 0 14px !important; margin: 0; }
.breadcrumb-item + .breadcrumb-item::before { content: "/"; color: #b8c0c9; margin-right: 6px; }
.breadcrumb-item.active span { color: var(--ink-2); }

/* JoomShopping 5: checkout steps (div markup) */
div#jshop_menu_order { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 24px; counter-reset: step; }
div#jshop_menu_order .jshop_order_step { counter-increment: step; padding: 8px 16px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); font-size: 14px; font-weight: 700; }
div#jshop_menu_order .jshop_order_step span::before { content: counter(step) ". "; }
div#jshop_menu_order .jshop_order_step.active { background: var(--ink); color: #fff; }
div#jshop_menu_order .jshop_order_step.prev, div#jshop_menu_order .jshop_order_step.passed { background: var(--brand-50); color: var(--brand-600); }
div#jshop_menu_order a { color: inherit; }
.max-500 { max-width: 560px; }
.jshop .form-control { width: 100%; }
.jshop .controls input[type="radio"] + label { margin: 0 14px 0 6px; font-weight: 500; }

/* JoomShopping 5: cart */
.mobile-cart-inline { display: none; }
.cart_reload.icon-refresh { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-left: 6px; border-radius: 8px; background: var(--bg-soft); cursor: pointer; vertical-align: middle; }
.cart_reload.icon-refresh::before { content: "↻"; font-size: 18px; color: var(--ink-2); }
table.cart .remove .btn-danger { background: transparent; color: var(--danger); border-color: #F3C4C4; --h: 34px; padding: 0 12px; font-size: 13px; }
table.cart .remove .btn-danger:hover { background: #FDECEC; color: var(--danger); }
table.cart input[type="number"] { width: 76px; display: inline-block; text-align: center; }
table.cart .jshop_cart_attribute { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
table.cart .jshop_cart_attribute .name { color: var(--ink-2); }
.jshop_subtotal .name { color: var(--muted); }
@media (max-width: 767px) {
	.mobile-cart-inline { display: inline; font-size: 13px; color: var(--muted); }
}

/* checkout: payment & shipping choices as cards (JoomShopping 5 div markup) */
#table_payments, #table_shippings { display: block; max-width: 640px; margin-bottom: 20px; }
#table_payments > .name, #table_shippings > .name { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; background: #fff; border: 1.5px solid var(--line, #dde5e8); border-radius: 14px; font-weight: 400; cursor: pointer; transition: border-color .15s, box-shadow .15s; margin-bottom: 10px; }
#table_payments > .name:hover, #table_shippings > .name:hover { border-color: var(--brand-600, #0A7C8A); }
#table_payments > .name:has(input:checked), #table_shippings > .name:has(input:checked) { border-color: var(--brand, #0A7C8A); box-shadow: 0 0 0 3px rgba(10, 124, 138, .12); background: var(--brand-50, #eef8f9); }
#table_payments > .name input[type=radio], #table_shippings > .name input[type=radio] { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand, #0A7C8A); cursor: pointer; }
#table_payments > .name label, #table_shippings > .name label { flex: 1; margin: 0; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; line-height: 1.35; }
#table_payments > .name label::after, #table_shippings > .name label::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
#table_payments > .name b, #table_shippings > .name b { font-weight: 700; color: var(--ink); }
.payment_image img, .shipping_image img { max-height: 24px; width: auto; display: block; }
.payment_price, .shipping_price { color: var(--muted); font-size: 14px; }
#table_payments .paymform { margin: -2px 0 10px; padding: 0 18px 0 48px; color: var(--muted); font-size: 14px; }
#table_payments .paymform:empty, #table_payments .jshop_payment_method:empty { display: none; }
#table_shippings .shipping_weight_to_price { margin-top: 8px; font-size: 13px; }
#payment_submit, #shipping_submit { min-width: 160px; }

/* Joomla 4+ system messages (<joomla-alert>) */
#system-message-container joomla-alert { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 12px; padding: 14px 44px 14px 18px; border-radius: var(--radius); border: 1px solid var(--brand-100, #cdeef2); background: var(--brand-50); color: var(--ink); font-size: 15px; line-height: 1.45; box-shadow: none; position: relative; opacity: 1; }
#system-message-container joomla-alert[type="success"] { background: #E9F8EF; border-color: #BFE8CF; }
#system-message-container joomla-alert[type="warning"] { background: #FFF6D1; border-color: #F8E39A; }
#system-message-container joomla-alert[type="danger"], #system-message-container joomla-alert[type="error"] { background: #FDECEC; border-color: #F7C9C9; }
#system-message-container joomla-alert .alert-heading { display: none; }
#system-message-container joomla-alert .alert-wrapper, #system-message-container joomla-alert .alert-message { background: none; border: 0; padding: 0; margin: 0; border-radius: 0; }
#system-message-container joomla-alert .joomla-alert--close, #system-message-container joomla-alert .joomla-alert-button--close { position: absolute; right: 12px; top: 10px; background: none; border: 0; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; opacity: .7; padding: 0; }
#system-message-container joomla-alert .joomla-alert--close:hover { opacity: 1; }
