/* Alloy — світла тема */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(../fonts/inter-400.woff) format('woff'); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(../fonts/inter-500.woff) format('woff'); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(../fonts/inter-600.woff) format('woff'); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(../fonts/inter-700.woff) format('woff'); }
@font-face { font-family: Inter; font-weight: 800; font-display: swap; src: url(../fonts/inter-800.woff) format('woff'); }

:root {
  --green: #48C928; --teal: #14B8A6; --blue: #0088F5;
  --text: #0F172A; --muted: #64748B; --bg: #FFFFFF; --soft: #F5F7FA; --line: #E5EAF0;
  --gradient: linear-gradient(105deg, var(--green), var(--teal) 50%, var(--blue));
  --radius: 14px; --shadow: 0 2px 10px rgb(15 23 42 / .05); --shadow-up: 0 14px 34px rgb(15 23 42 / .11);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.55 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
[hidden] { display: none !important; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.022em; margin: 0 0 .5em; }
h1 { font-size: clamp(26px, 3vw, 34px); }
h2 { font-size: clamp(21px, 2.2vw, 27px); }
p { margin: 0 0 .8em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.container { width: min(1360px, 100% - 48px); margin-inline: auto; }
.narrow { max-width: 820px; min-height: 45vh; padding-bottom: 40px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--text); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }
.icon { width: 20px; height: 20px; flex: none; }
.note { color: var(--muted); font-size: 13px; }
.empty { color: var(--muted); padding: 28px 0; }
.row { display: flex; flex-wrap: wrap; gap: 8px; }

.demo-bar { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 0; padding: 7px 16px; background: var(--soft); color: #475569; font-size: 12.5px; text-align: center; border-bottom: 1px solid var(--line); }
.demo-bar .icon { width: 16px; height: 16px; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: 11px; background: none; font-weight: 600; font-size: 14px; transition: transform .2s, box-shadow .2s, filter .2s, border-color .2s; }
.btn:not(:disabled):hover { transform: translateY(-1px); }
.btn--gradient { background: var(--gradient) border-box; color: #fff; text-shadow: 0 1px 2px rgb(0 50 60 / .25); }
.btn--gradient:not(:disabled):hover { box-shadow: 0 8px 22px rgb(20 184 166 / .35); filter: saturate(1.12); }
.btn:disabled { background: var(--line); color: var(--muted); text-shadow: none; }
.btn--outline { border-color: var(--line); background: #fff; }
.btn--outline:hover { border-color: var(--teal); }
.btn--large { min-height: 50px; padding: 0 28px; font-size: 15px; }
.btn--square { width: 44px; padding: 0; }
.btn--wide { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; background: transparent; transition: background .2s, color .2s; }
.icon-btn:not(:disabled):hover { background: var(--soft); }
.icon-btn:disabled { opacity: .35; }
.link-more { display: inline-flex; align-items: center; gap: 7px; color: #0F8A7B; font-weight: 600; font-size: 14px; }
.link-more .icon { transition: transform .2s; }
.link-more:hover .icon { transform: translateX(4px); }

/* Шапка */
.header { position: sticky; top: 0; z-index: 30; background: rgb(255 255 255 / .96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header__main { display: flex; align-items: center; gap: 26px; min-height: 80px; }
.logo img { width: 115px; height: auto; }
.catalog { position: relative; }
.catalog__btn { min-width: 150px; min-height: 46px; }
.chevron { width: 15px; height: 15px; transition: transform .2s; }
.is-open .chevron { transform: rotate(180deg); }
.catalog__menu, .menu__sub { position: absolute; z-index: 40; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-up); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; }
.is-open > .catalog__menu, .is-open > .menu__sub { opacity: 1; visibility: visible; transform: none; }
.catalog__menu { top: calc(100% + 12px); left: 0; display: grid; grid-template-columns: repeat(3, minmax(190px, 1fr)); gap: 24px; width: max-content; max-height: 70vh; overflow: auto; padding: 24px; }
.catalog__menu a { display: block; padding: 4px 0; color: #475569; font-size: 14px; }
.catalog__menu a:hover { color: var(--blue); }
.catalog__menu .catalog__title { color: var(--text); font-weight: 700; }
.catalog__menu .catalog__all { display: inline-flex; grid-column: 1 / -1; color: #0F8A7B; }

.search { position: relative; flex: 1; display: flex; align-items: center; gap: 11px; height: 46px; padding: 0 12px 0 16px; background: var(--soft); border: 1px solid transparent; border-radius: 12px; color: var(--muted); transition: .2s; }
.search:focus-within { background: #fff; border-color: var(--teal); box-shadow: 0 0 0 4px rgb(20 184 166 / .12); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; color: var(--text); font-size: 14px; text-overflow: ellipsis; }
.search kbd { font: 500 11px Inter, sans-serif; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px; white-space: nowrap; }
.suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-up); padding: 8px; color: var(--text); z-index: 50; }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 9px; font-size: 14px; }
.suggest a:hover, .suggest a:focus { background: var(--soft); }
.suggest a span { flex: 1; }
.suggest img { width: 56px; }
.suggest .suggest__all { justify-content: center; color: #0F8A7B; font-weight: 600; }
.suggest .empty { padding: 10px; margin: 0; }

.actions { display: flex; align-items: center; gap: 20px; }
.action { position: relative; display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; transition: color .2s; }
.action:hover { color: var(--blue); }
.count { position: absolute; top: -9px; left: 11px; min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center; border-radius: 9px; background: var(--blue); color: #fff; font-size: 10px; text-shadow: none; }
.cart-btn { min-height: 46px; }
.cart-btn b { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: #fff; color: #0369A1; font-size: 11.5px; text-shadow: none; }

.menu { border-top: 1px solid var(--line); }
.menu__list { display: flex; gap: 38px; list-style: none; padding: 0; margin-block: 0; }
.menu__item { position: relative; display: flex; align-items: center; white-space: nowrap; font-size: 14px; font-weight: 600; }
.menu__item > a { display: flex; align-items: center; gap: 7px; padding: 12px 0; transition: color .2s; }
.menu__item > a:hover { color: var(--blue); }
.menu__item > button { border: 0; background: none; padding: 10px 5px; display: grid; }
.menu__item--sale { color: #15803D; }
.menu__sub { top: 100%; left: -14px; min-width: 240px; list-style: none; margin: 0; padding: 8px; }
.menu__sub a { display: block; padding: 9px 12px; border-radius: 8px; font-weight: 500; }
.menu__sub a:hover { background: var(--soft); }

/* Банер */
.hero { position: relative; display: grid; margin-top: 18px; border-radius: 20px; overflow: hidden; background: var(--soft); isolation: isolate; }
.hero__slide { grid-area: 1 / 1; position: relative; min-height: 430px; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; z-index: -1; }
.hero__text { padding: 44px 0 56px 88px; max-width: 650px; }
.hero__eyebrow { color: #0F766E; text-transform: uppercase; letter-spacing: .2em; font-weight: 700; font-size: 12.5px; }
.hero h2 { font-size: clamp(30px, 3.5vw, 48px); font-weight: 800; line-height: 1.1; letter-spacing: -.035em; }
.hero__sub { max-width: 420px; color: #334155; font-size: 16px; margin-bottom: 26px; }
.hero__arrow { position: absolute; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; box-shadow: var(--shadow-up); transition: scale .2s; }
.hero__arrow:hover { scale: 1.08; }
.hero__arrow--prev { left: 22px; }
.hero__arrow--next { right: 22px; }
.hero__dots { position: absolute; left: 88px; bottom: 22px; display: flex; gap: 4px; }
.hero__dots button { width: 18px; height: 20px; padding: 0; border: 0; background: none; transition: width .25s; }
.hero__dots button::after { content: ''; display: block; height: 7px; width: 8px; margin: auto; border-radius: 4px; background: #94A3B8; transition: .25s; }
.hero__dots button[aria-current] { width: 34px; }
.hero__dots button[aria-current]::after { width: 26px; background: var(--gradient); }

.benefits { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 8px 0; padding: 14px 0; }
.benefits li { display: flex; align-items: center; justify-content: center; gap: 15px; padding: 4px 14px; }
.benefits li + li { border-left: 1px solid var(--line); }
.benefits .icon { width: 30px; height: 30px; color: #12A594; }
.benefits strong { display: block; font-size: 14px; }
.benefits span { display: block; color: var(--muted); font-size: 12.5px; }

.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; min-height: 138px; padding: 18px; border-radius: var(--radius); background: linear-gradient(125deg, #F3FAF8 20%, #D2F1E8 60%, #CFE8FB); isolation: isolate; transition: transform .25s, box-shadow .25s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
.tile__name { font-weight: 700; font-size: 16px; letter-spacing: -.02em; }
.tile .icon { margin-top: 12px; color: #12A594; transition: transform .25s; }
.tile:hover .icon { transform: translateX(5px); }
.tile img { position: absolute; right: -8px; bottom: -6px; width: 76%; max-height: 100%; object-fit: contain; object-position: right bottom; z-index: -1; transition: scale .35s; }
.tile:hover img { scale: 1.06; }

/* Товари */
.section { margin-top: 44px; }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.section__head > h1, .section__head > h2 { margin: 0; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card { position: relative; display: flex; flex-direction: column; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-up); border-color: #D3E5EA; }
.card__media { display: block; aspect-ratio: 4 / 3; margin-bottom: 8px; }
.card__media img { width: 100%; height: 100%; object-fit: contain; transition: scale .35s; }
.card:hover .card__media img { scale: 1.04; }
.card__tools { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; z-index: 2; }
[data-toggle][aria-pressed="true"] { color: #0284C7; border-color: #0284C7; }
[data-toggle="favorites"][aria-pressed="true"] .icon { fill: currentColor; }
.icon-btn[data-toggle="compare"][aria-pressed="true"] { background: #E0F2FE; }
.badge { position: absolute; top: 14px; left: 14px; z-index: 1; padding: 3px 10px; border-radius: 7px; color: #fff; font-size: 11.5px; font-weight: 700; }
.badge--hit { background: #2E9E16; }
.badge--new { background: #0077D9; }
.badge--sale { background: #E11D48; }
.card__name { font-size: 15.5px; margin-bottom: 2px; }
.card__name a:hover { color: #0077D9; }
.card__desc { color: var(--muted); font-size: 13px; margin-bottom: 8px; min-height: 20px; }
.status { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; margin-top: auto; margin-bottom: 8px; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--in_stock { color: #15803D; }
.status--preorder { color: #B45309; }
.status--out_of_stock { color: var(--muted); }
.card__buy { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.price { display: flex; flex-direction: column; margin: 0; }
.price strong { font-size: 19px; letter-spacing: -.025em; }
.price del { color: var(--muted); font-size: 12.5px; line-height: 1.2; }
.price--large { margin: 18px 0; }
.price--large strong { font-size: 32px; }

.brands { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.brands a { display: grid; place-items: center; height: 76px; padding: 10px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 700; color: #475569; transition: .2s; }
.brands a:hover { border-color: var(--teal); color: var(--text); box-shadow: var(--shadow); }
.about { display: flex; justify-content: space-between; align-items: center; gap: 28px; margin-top: 48px; padding: 36px 40px; border-radius: 20px; background: var(--soft); }
.about p { max-width: 700px; color: #475569; margin: 0; }

/* Внутрішні сторінки */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 20px 0; color: var(--muted); font-size: 13px; }
.crumbs .icon { width: 14px; height: 14px; }
.sort { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.sort select { height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 30px; }
.pagination a { display: grid; place-items: center; min-width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; }
.pagination a[aria-current] { background: var(--text); color: #fff; }
.product { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: start; }
.product__media { border-radius: 20px; background: var(--soft); padding: 24px; }
.product__media img { width: 100%; }
.product__buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.prose { overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; }
.compare { border-collapse: collapse; min-width: 100%; table-layout: fixed; }
.compare th, .compare td { border: 1px solid var(--line); padding: 14px; text-align: left; vertical-align: top; }
.compare th { width: 130px; background: var(--soft); font-size: 13px; }
.compare td { min-width: 220px; }
.compare img { width: 200px; }

/* Кошик */
.drawer { margin: 0 0 0 auto; width: min(460px, 100%); max-width: 100%; height: 100%; max-height: 100%; padding: 0; border: 0; color: var(--text); box-shadow: var(--shadow-up); }
.drawer[open] { display: flex; flex-direction: column; animation: slide .28s ease; }
.drawer::backdrop { background: rgb(15 23 42 / .35); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { margin: 0; }
.drawer__body { flex: 1; overflow: auto; padding: 8px 22px; }
.drawer__foot { padding: 18px 22px; border-top: 1px solid var(--line); }
.drawer__foot .note { margin: 10px 0 0; text-align: center; }
.drawer__total { display: flex; justify-content: space-between; font-size: 18px; }
.line { display: grid; grid-template-columns: 80px 1fr auto; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line p { margin: 0 0 4px; }
.line__name { display: block; font-weight: 600; font-size: 14px; }
.line strong { font-size: 14px; white-space: nowrap; }
.qty { display: flex; align-items: center; gap: 4px; }
.qty span { min-width: 24px; text-align: center; font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 20px; padding: 12px 20px; background: var(--text); color: #fff; border-radius: 11px; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 60; width: max-content; max-width: calc(100% - 32px); }
.toast.is-visible { opacity: 1; translate: -50% 0; }

.footer { margin-top: 64px; padding-top: 44px; background: var(--soft); border-top: 1px solid var(--line); font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer h2 { font-size: 15px; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; color: #475569; }
.footer a:hover { color: #0077D9; }
.footer p { color: var(--muted); margin-top: 12px; }
.footer__contacts li { display: flex; gap: 10px; align-items: flex-start; overflow-wrap: anywhere; }
.footer__bottom { margin-top: 28px; padding-block: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }

/* Планшети та невеликі ноутбуки */
@media (max-width: 1200px) {
  .header__main { gap: 16px; }
  .action span, .search kbd { display: none; }
  .menu__list { gap: 22px; }
}
@media (max-width: 1000px) {
  .header__main { flex-wrap: wrap; gap: 10px 12px; padding-block: 12px; }
  .logo { margin-right: auto; }
  .logo img { width: 92px; }
  .actions { gap: 14px; }
  .header__main::after { content: ''; order: 2; flex-basis: 100%; }
  .header__main { row-gap: 0; }
  .header__main > .catalog, .header__main > .search { margin-top: 10px; }
  .catalog { order: 3; }
  .catalog__btn { min-width: 0; }
  .search { order: 4; flex: 1 1 calc(100% - 180px); }
  .menu__list { overflow-x: auto; scrollbar-width: none; }
  .menu__item > button, .menu__sub { display: none; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .benefits { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
  .benefits li { justify-content: flex-start; }
  .benefits li:nth-child(3) { border-left: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .product { grid-template-columns: 1fr; gap: 22px; }
}
/* Банер на планшетах і телефонах: текст зверху, фото знизу */
@media (max-width: 900px) {
  .hero__slide { min-height: 540px; align-items: flex-start; }
  .hero__slide > img { top: auto; height: 46%; object-position: 88% center; -webkit-mask-image: linear-gradient(transparent, #000 30%); mask-image: linear-gradient(transparent, #000 30%); }
  .hero__text { padding: 28px 22px; }
  .hero__sub { font-size: 14.5px; margin-bottom: 18px; }
  .hero__arrow { display: none; }
  .hero__dots { left: 50%; translate: -50% 0; bottom: 12px; padding: 0 8px; background: rgb(255 255 255 / .85); border-radius: 12px; }
}
/* Смартфони */
@media (max-width: 700px) {
  .container { width: calc(100% - 28px); }
  .header { position: relative; }
  .cart-btn { padding: 0 11px; }
  .cart-btn span, .catalog__btn span, .catalog__btn .chevron { display: none; }
  .catalog__btn { width: 46px; padding: 0; }
  .search { flex-basis: calc(100% - 70px); }
  .tile img { max-height: 68%; }
  .catalog__menu { grid-template-columns: 1fr 1fr; width: calc(100vw - 28px); gap: 18px; padding: 18px; }
  .actions { gap: 12px; }
  .benefits li { gap: 10px; padding-inline: 6px; }
  .benefits .icon { width: 24px; height: 24px; }
  .benefits strong { font-size: 12.5px; }
  .benefits span { font-size: 11.5px; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tile { min-height: 124px; padding: 14px; }
  .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .tile__name { font-size: 14px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { padding: 10px; }
  .card__media { margin-top: 24px; }
  .card__tools { top: 4px; right: 4px; flex-direction: row; }
  .card__tools .icon-btn { width: 32px; height: 32px; }
  .badge { top: 9px; left: 9px; font-size: 10.5px; padding: 2px 7px; }
  .card__name { font-size: 14px; overflow-wrap: anywhere; }
  .card__desc { font-size: 12px; }
  .card .price strong { font-size: 15.5px; }
  .card .btn--square { width: 40px; min-height: 40px; }
  .about { flex-direction: column; align-items: flex-start; padding: 24px; }
}
@media (max-width: 420px) {
  .footer__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
