/* Новий вигляд ВсякоТех: темна шапка з каталогом, головна з банерами, плитки розділів,
   переваги, вкладки товарів, темний підвал. Підключається останнім і перекриває старі стилі. */
:root {
  --navy: #1B2335;
  --navy-2: #283149;
  --soft: #F4F6FA;
  --soft-2: #EDF0F6;
}
.container { max-width: 1320px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ================= Шапка ================= */
.hd { position: relative; z-index: 50; }
.hd__top { background: var(--navy); position: relative; }
.hd__row { display: flex; align-items: center; gap: 14px; min-height: 84px; }
.hd-logo { flex: none; display: flex; }
.hd-logo img { height: 32px; width: auto; }
.hd-catalog {
  flex: none; display: inline-flex; align-items: center; gap: 9px; height: 48px; padding: 0 18px;
  background: #fff; color: var(--navy); border-radius: 999px; font-weight: 600; font-size: 14.5px; transition: .2s;
}
.hd-catalog svg { width: 20px; height: 20px; }
.hd-catalog:hover, .hd-catalog.on { background: #E6ECFF; color: var(--blue); }
.hd-chev { width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); }
.hd-catalog.on .hd-chev { transform: rotate(-135deg) translate(-2px, -2px); }

.hd-search { position: relative; flex: 1; min-width: 0; }
.hd-search input {
  width: 100%; height: 48px; border: 0; border-radius: 999px; background: #F1F3F8;
  padding: 0 58px 0 22px; font: inherit; font-size: 14.5px; color: #111; outline: none;
}
.hd-search input:focus { background: #fff; box-shadow: 0 0 0 3px rgba(47, 91, 255, .35); }
.hd-search button {
  position: absolute; right: 5px; top: 5px; width: 38px; height: 38px; border-radius: 50%;
  background: #fff; color: var(--navy); display: grid; place-items: center; box-shadow: 0 1px 4px rgba(16, 26, 51, .12);
}
.hd-search button svg { width: 19px; height: 19px; }
.hd-search .suggest { top: calc(100% + 10px); }

.hd-pill {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px;
  background: #fff; color: var(--navy); border-radius: 999px; font-size: 14.5px;
}
.hd-pill svg { width: 19px; height: 19px; }
.hd-phone { position: relative; flex: none; }
.hd-phone__menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 270px; background: #fff; color: #111;
  border-radius: 16px; box-shadow: 0 18px 40px rgba(16, 26, 51, .22); padding: 16px; display: none;
  flex-direction: column; gap: 9px; z-index: 70;
}
.hd-phone__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.hd-phone:hover .hd-phone__menu, .hd-phone:focus-within .hd-phone__menu, .hd-phone.open .hd-phone__menu { display: flex; }
.hd-phone__menu > a { font-weight: 600; font-size: 15px; }
.hd-phone__menu > a:hover { color: var(--blue); }
.hd-phone__social { display: flex; flex-wrap: wrap; gap: 6px; }
.hd-phone__social a { font-size: 12px; padding: 5px 10px; border-radius: 999px; background: var(--soft); }
.hd-phone__social a:hover { background: #E6ECFF; color: var(--blue); }
.hd-phone__menu .btn-primary { margin-top: 4px; }

.hd-round {
  flex: none; position: relative; width: 48px; height: 48px; border-radius: 50%;
  background: #fff; color: var(--navy); display: grid; place-items: center; transition: .2s;
}
.hd-round svg { width: 22px; height: 22px; }
.hd-round:hover { background: #E6ECFF; color: var(--blue); }
.hd-round--cart { background: var(--blue); color: #fff; }
.hd-round--cart:hover { background: var(--blue-dark); color: #fff; }
.hd-round .badge, .dock .badge {
  top: -3px; right: -3px; min-width: 19px; height: 19px; border-radius: 10px; font-size: 10.5px;
  background: var(--yellow); color: #111; border: 2px solid var(--navy);
}

.hd-lang { flex: none; display: inline-flex; padding: 3px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .35); }
.hd-lang a { min-width: 30px; height: 30px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #cfd5e3; }
.hd-lang a.active { background: #fff; color: var(--navy); }

.hd-burger { display: none; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--navy-2); flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.hd-burger i { width: 20px; height: 2px; background: #fff; border-radius: 2px; }

.hd__nav { background: #F6F7FA; border-bottom: 1px solid #E6E9F0; }
.hd__navrow { display: flex; align-items: center; gap: 26px; height: 50px; overflow-x: auto; scrollbar-width: none; }
.hd__navrow a { white-space: nowrap; font-size: 14px; color: #1c2233; font-weight: 500; }
.hd__navrow a:hover { color: var(--blue); }
.hd-hot em { font-style: normal; font-size: 10px; font-weight: 800; color: #fff; background: var(--red); border-radius: 999px; padding: 2px 6px; margin-left: 3px; vertical-align: 2px; }

/* Мега-меню */
.mega { position: absolute; left: 0; right: 0; top: 100%; z-index: 60; padding-top: 10px; }
.mega__box {
  display: grid; grid-template-columns: 290px 1fr; background: #fff; border-radius: 18px;
  box-shadow: 0 24px 60px rgba(16, 26, 51, .25); overflow: hidden; min-height: 440px; padding: 0;
}
.mega__sections { list-style: none; background: var(--soft); padding: 10px; }
.mega__sections a, .home-cats__item > a {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; font-size: 14px; font-weight: 500; color: #1c2233;
}
.mega__sections li.on a, .mega__sections a:hover { background: #fff; color: var(--blue); }
.mega__arr { margin-left: auto; color: #9aa3b5; font-size: 18px; line-height: 1; }
.mega__panel { padding: 22px 26px; }
.mega__title { display: inline-flex; gap: 8px; font-family: var(--head-font); font-size: 18px; font-weight: 700; margin-bottom: 16px; color: #111; }
.mega__title:hover { color: var(--blue); }
.mega__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.mega__sub { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 8px; border-radius: 14px; text-align: center; font-size: 13px; font-weight: 500; line-height: 1.3; }
.mega__sub:hover { background: var(--soft); color: var(--blue); }
.mega__img { width: 76px; height: 76px; border-radius: 16px; background: var(--soft); display: grid; place-items: center; overflow: hidden; }
.mega__sub:hover .mega__img { background: #fff; }
.mega__img .cat__photo { width: 82%; height: 82%; }
.mega__img .cat__img--emoji { font-size: 34px; }
.mega__img .cat__img--svg svg { width: 34px; height: 34px; }
.side-ic { width: 22px; height: 22px; display: inline-grid; place-items: center; flex: none; font-size: 17px; }
.side-ic svg { width: 22px; height: 22px; }

/* ================= Головна ================= */
.home-top { display: grid; grid-template-columns: 280px minmax(0, 1fr) 290px; gap: 20px; margin: 8px 0 34px; }
.home-cats { position: relative; background: #fff; border: 1px solid #ECEFF5; border-radius: 18px; padding: 8px; align-self: start; }
.home-cats__item > a:hover { background: var(--soft); color: var(--blue); }
.home-cats__fly {
  display: none; position: absolute; left: calc(100% + 8px); top: 0; width: 560px; min-height: 100%;
  background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(16, 26, 51, .2); padding: 22px 24px; z-index: 30;
}
/* Панель відкриває JS (клас .open) — із затримками, щоб не закривалась на шляху мишки до неї */
.home-cats__item.open .home-cats__fly { display: block; }
.home-cats__fly::before { content: ""; position: absolute; top: 0; bottom: 0; left: -14px; width: 14px; }
.home-cats__item.open > a { background: var(--soft); color: var(--blue); }
.home-cats__subs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
.home-cats__subs a { padding: 8px 0; font-size: 14px; color: #333; border-bottom: 1px dashed #E6E9F0; }
.home-cats__subs a:hover { color: var(--blue); }

.hero2 {
  position: relative; min-height: 420px; border-radius: 22px; overflow: hidden;
  --hero-bg: radial-gradient(120% 120% at 85% 30%, #FFFFFF 0%, #EEF2FF 45%, #DCE5FF 100%);
  background: var(--hero-bg);
}
/* Свій фон у кожного слайда: під час плавної зміни (opacity < 1) білий фон фото змішується з ним, а не з порожнечею —
   інакше на півсекунди проступає білий прямокутник */
.hero2 .slide { background: var(--hero-bg); }
.slide { position: absolute; inset: 0; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 10px; padding: 40px 44px; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.slide.on { opacity: 1; visibility: visible; }
.slide__kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--blue); background: #fff; padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }
.slide h2 { font-family: var(--head-font); font-size: 30px; line-height: 1.2; color: var(--navy); margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.slide p { color: #4b5368; font-size: 15px; line-height: 1.6; margin-bottom: 22px; max-width: 440px; }
.slide__price { display: flex; flex-direction: column; margin-bottom: 22px; }
.slide__price b { font-family: var(--head-font); font-size: 30px; color: var(--navy); }
.slide__price s { color: #8a8f9c; font-size: 15px; }
.slide__btn { display: inline-block; background: var(--navy); color: #fff; padding: 14px 26px; border-radius: 999px; font-weight: 600; transition: .2s; }
.slide:hover .slide__btn, .slide__btn:hover { background: var(--blue); }
.slide__media { height: 100%; max-height: 340px; display: grid; place-items: center; }
.slide__media img { max-width: 100%; max-height: 340px; object-fit: contain; mix-blend-mode: multiply; transition: transform .5s; }
.slide.on .slide__media img { animation: heroIn .7s ease-out; }
@keyframes heroIn { from { transform: translateX(30px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.slide__media--trio { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slide__media--trio img { max-height: 200px; }
.slide__media--trio img:nth-child(2) { max-height: 260px; }
.hero2__nav { position: absolute; top: 16px; right: 16px; display: flex; gap: 4px; background: #fff; border-radius: 999px; padding: 4px; box-shadow: 0 4px 14px rgba(16, 26, 51, .1); z-index: 2; }
.hero2__nav button { width: 38px; height: 38px; border-radius: 50%; font-size: 16px; }
.hero2__nav button:hover { background: var(--soft); color: var(--blue); }
.hero2__dots { position: absolute; left: 44px; bottom: 20px; display: flex; gap: 6px; z-index: 2; }
.hero2__dots i { width: 8px; height: 8px; border-radius: 99px; background: rgba(27, 35, 53, .2); cursor: pointer; transition: .3s; }
.hero2__dots i.on { width: 26px; background: var(--blue); }

.promo-card { display: flex; flex-direction: column; background: var(--navy); color: #fff; border-radius: 22px; padding: 22px; min-height: 420px; transition: .2s; }
.promo-card:hover { box-shadow: 0 16px 36px rgba(16, 26, 51, .3); transform: translateY(-2px); }
.promo-card__kicker { align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; background: var(--yellow); color: #111; padding: 6px 10px; border-radius: 999px; }
.promo-card__name { font-family: var(--head-font); font-size: 17px; line-height: 1.35; margin: 14px 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.promo-card__media { flex: 1; background: #fff; border-radius: 16px; display: grid; place-items: center; padding: 14px; min-height: 0; }
.promo-card__media img { max-width: 100%; max-height: 200px; object-fit: contain; }
.promo-card__price { font-family: var(--head-font); font-size: 22px; margin-top: 14px; color: var(--yellow); }

.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 22px 12px 18px; border-radius: 18px; background: var(--soft); border: 1px solid #ECEFF5; text-align: center; transition: .2s; }
.tile:hover { background: #fff; border-color: #DCE3F2; box-shadow: 0 12px 28px rgba(16, 26, 51, .1); transform: translateY(-2px); }
.tile__img { width: 110px; height: 96px; display: grid; place-items: center; }
.tile__img .cat__photo { width: 100%; height: 100%; }
.tile__img .cat__img--svg svg { width: 52px; height: 52px; }
.tile__img .cat__img--emoji { font-size: 50px; }
.tile__name { font-weight: 700; font-size: 14px; color: var(--navy); line-height: 1.3; }

.adv2 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin: 10px 0 40px; }
.adv2__item { background: var(--soft); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.adv2__ic { position: relative; width: 50px; height: 50px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(16, 26, 51, .06); }
.adv2__ic svg { width: 24px; height: 24px; }
.adv2__ic::after { content: ""; position: absolute; top: 1px; right: 1px; width: 10px; height: 10px; border-radius: 50%; background: var(--dot); border: 2px solid var(--soft); }
.adv2__item b { font-size: 15px; color: var(--navy); }
.adv2__item span:last-child { font-size: 12.5px; color: #7b8396; line-height: 1.45; }

.home-tabs { display: inline-flex; max-width: 100%; gap: 2px; padding: 5px; background: var(--soft-2); border-radius: 999px; overflow-x: auto; scrollbar-width: none; margin-bottom: 22px; }
.home-tabs button { white-space: nowrap; padding: 11px 20px; border-radius: 999px; font-size: 14px; color: #7b8396; font-weight: 500; transition: .2s; }
.home-tabs button:hover { color: var(--navy); }
.home-tabs button.on { background: #fff; color: var(--navy); font-weight: 600; box-shadow: 0 2px 10px rgba(16, 26, 51, .08); }
.home-sec__head h2, .home-sec h2 { font-family: var(--head-font); }
.more-wrap { text-align: center; }

/* ================= Підвал ================= */
.ft { background: var(--navy); color: #AEB6C8; padding: 44px 0 22px; margin-top: 40px; font-size: 14px; }
.ft__top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .1); flex-wrap: wrap; }
.ft__logo img { height: 34px; width: auto; }
.ft__cta { display: flex; align-items: center; gap: 18px; color: #fff; font-weight: 600; flex-wrap: wrap; }
.ft__cta-btn { padding: 12px 22px; border-radius: 999px; border: 1.5px solid var(--blue); color: #8EA8FF; font-weight: 600; transition: .2s; }
.ft__cta-btn:hover { background: var(--blue); color: #fff; }
.ft__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 30px; padding: 30px 0; }
.ft h4 { color: #fff; font-family: var(--head-font); font-size: 15px; margin-bottom: 14px; }
.ft__grid > div > a, #footerCats a { display: block; padding: 5px 0; color: #AEB6C8; }
.ft__grid a:hover { color: #fff; }
.ft__line { display: block; margin-bottom: 10px; }
.ft__contacts a.ft__line { color: #fff; font-size: 17px; font-weight: 600; }
.ft__contacts a.ft__mail { color: #8EA8FF; font-size: 15px; }
.ft__social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ft__social a { padding: 7px 12px; border-radius: 999px; background: var(--navy-2); color: #fff; font-size: 12.5px; }
.ft__social a:hover { background: var(--blue); }
.ft__switch { display: flex; gap: 10px; margin-top: 16px; }
.ft__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 18px; font-size: 12.5px; color: #7B849A; }

/* Плаваюча панель обране/порівняння та «нагору» */
.dock { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; gap: 6px; padding: 6px; background: var(--navy); border-radius: 999px; box-shadow: 0 12px 30px rgba(16, 26, 51, .35); }
.dock__btn { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; transition: .2s; }
.dock__btn svg { width: 21px; height: 21px; }
.dock__btn:hover { background: var(--navy-2); }
.to-top { bottom: 86px; right: 24px; }

/* ================= Адаптив ================= */
@media (max-width: 1200px) {
  .home-top { grid-template-columns: 250px minmax(0, 1fr); }
  .promo-card { display: none; }
  .adv2 { grid-template-columns: repeat(3, 1fr); }
  .hd-phone__btn b { display: none; }
}
@media (max-width: 900px) {
  .hd__row { flex-wrap: wrap; gap: 10px; min-height: 0; padding: 10px 16px 12px; }
  .hd-burger { display: flex; }
  .hd-logo { margin-right: auto; }
  .hd-logo img { height: 24px; }
  .hd-catalog, .hd-phone, .hd__top .hd-lang { display: none; }
  .hd-round { width: 42px; height: 42px; }
  .hd-search { order: 10; flex-basis: 100%; }
  .hd-search input { height: 44px; }
  .hd-search button { width: 34px; height: 34px; }
  .hd__nav, .mega { display: none; }
  .home-top { grid-template-columns: 1fr; margin-top: 4px; }
  .home-cats { display: none; }
  .hero2 { min-height: 330px; }
  .slide { padding: 26px 22px 40px; grid-template-columns: 1.2fr 1fr; }
  .slide h2 { font-size: 20px; }
  .slide p { display: none; }
  .slide__price b { font-size: 22px; }
  .slide__media img { max-height: 220px; }
  .slide__btn { padding: 11px 18px; font-size: 13px; }
  .hero2__dots { left: 22px; bottom: 14px; }
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .ft__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile { padding: 16px 8px 14px; }
  .tile__img { width: 90px; height: 76px; }
  .adv2 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .adv2__item { padding: 14px; }
  .slide { grid-template-columns: 1fr; align-content: start; }
  .slide__media { position: absolute; right: 12px; bottom: 34px; width: 46%; height: 52%; }
  .slide__text { position: relative; z-index: 1; max-width: 62%; }
  .ft__grid { grid-template-columns: 1fr; gap: 20px; }
  .dock { right: 12px; bottom: 12px; }
  .to-top { right: 16px; bottom: 76px; }
}

/* Фото в плитках і мега-меню: вписуємо в блок (у grid відсоткова висота не працює — тому flex і max-*) */
.tile__img, .mega__img { display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tile__img .cat__photo, .mega__img .cat__photo { width: auto; height: auto; max-width: 100%; max-height: 100%; }
.mega__img .cat__photo { max-width: 82%; max-height: 82%; }

.home-sec .more-wrap { margin-top: 22px; }

/* Головне фото товару: білий фон фото зливається з сірою підкладкою */
.pdp__main img, .pdp__thumbs img { mix-blend-mode: multiply; }

/* Маленькі фото постачальників (напр. LUGI 200×200) не розтягуємо до розмиття — показуємо в натуральному розмірі */
.pdp__main img, .slide__media img, .promo-card__media img { object-fit: scale-down; }

/* ================= Онлайн-чат підтримки ================= */
.chat-fab {
  position: fixed; right: 22px; bottom: 92px; z-index: 61; width: 62px; height: 62px; border-radius: 50%;
  background: var(--blue); color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 30px rgba(47, 91, 255, .45); transition: transform .2s, background .2s;
}
.chat-fab:hover { transform: scale(1.06); background: var(--blue-dark); }
.chat-fab svg { width: 28px; height: 28px; grid-area: 1 / 1; transition: opacity .2s, transform .2s; }
.chat-fab__close { opacity: 0; transform: rotate(-90deg); }
body.chat-open .chat-fab__ic { opacity: 0; transform: rotate(90deg); }
body.chat-open .chat-fab__close { opacity: 1; transform: none; }
/* Пульсація, щоб кнопку помітили */
.chat-fab::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--blue); animation: chatPulse 2.4s ease-out infinite; }
body.chat-open .chat-fab::after { display: none; }
@keyframes chatPulse { from { transform: scale(1); opacity: .6; } to { transform: scale(1.5); opacity: 0; } }
.chat-fab .badge { top: -2px; right: -2px; min-width: 22px; height: 22px; border-radius: 11px; font-size: 11px; background: var(--red); color: #fff; border: 2px solid #fff; }
.to-top { bottom: 164px; }

.chat {
  position: fixed; right: 22px; bottom: 166px; z-index: 62; width: 370px; height: min(560px, calc(100vh - 190px));
  background: #fff; border-radius: 20px; box-shadow: 0 24px 60px rgba(16, 26, 51, .28);
  display: flex; flex-direction: column; overflow: hidden; animation: chatIn .2s ease-out;
}
@keyframes chatIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--navy); color: #fff; }
.chat__avatar { width: 42px; height: 42px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.chat__avatar img { width: 30px; height: 30px; object-fit: contain; }
.chat__who { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chat__who b { font-size: 15px; }
.chat__who small { font-size: 12px; color: #AEB6C8; display: flex; align-items: center; gap: 6px; }
.chat__dot { width: 8px; height: 8px; border-radius: 50%; background: #2fd36b; box-shadow: 0 0 0 3px rgba(47, 211, 107, .25); }
.chat__close { width: 34px; height: 34px; border-radius: 50%; color: #fff; font-size: 24px; line-height: 1; }
.chat__close:hover { background: var(--navy-2); }
.chat__list { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 8px; background: var(--soft); }
.msg { max-width: 82%; display: flex; flex-direction: column; }
.msg p { padding: 10px 13px; border-radius: 16px; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.msg time { font-size: 10.5px; color: #9aa3b5; margin-top: 3px; padding: 0 6px; }
.msg--op { align-self: flex-start; }
.msg--op p { background: #fff; color: #1c2233; border-bottom-left-radius: 5px; box-shadow: 0 1px 3px rgba(16, 26, 51, .06); }
.msg--me { align-self: flex-end; align-items: flex-end; }
.msg--me p { background: var(--blue); color: #fff; border-bottom-right-radius: 5px; }
.msg--pending p { opacity: .6; }
.chat__err { font-size: 12.5px; color: var(--red); text-align: center; padding: 4px 8px; }
.chat__form { padding: 10px 12px 12px; border-top: 1px solid #ECEFF5; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.chat__name { height: 38px; border: 1px solid #E2E6F0; border-radius: 12px; padding: 0 12px; font: inherit; font-size: 13.5px; outline: none; }
.chat__row { display: flex; align-items: flex-end; gap: 8px; }
.chat__row textarea {
  flex: 1; resize: none; min-height: 44px; max-height: 120px; border: 1px solid #E2E6F0; border-radius: 14px;
  padding: 11px 13px; font: inherit; font-size: 14px; line-height: 1.4; outline: none;
}
.chat__name:focus, .chat__row textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 91, 255, .15); }
.chat__send { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; }
.chat__send:hover { background: var(--blue-dark); }
.chat__send svg { width: 19px; height: 19px; margin-left: 2px; }

@media (max-width: 600px) {
  .chat-fab { right: 14px; bottom: 76px; width: 56px; height: 56px; }
  .to-top { bottom: 142px; right: 18px; }
  .chat { right: 0; left: 0; bottom: 0; width: auto; height: 100dvh; border-radius: 0; z-index: 80; }
  body.chat-open { overflow: hidden; }
  body.chat-open .chat-fab, body.chat-open .dock { display: none; }
}

/* Завершення чату та опитування «чи допоміг оператор» */
.chat__end { padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; }
.chat__end:hover { background: var(--navy-2); }
.chat-survey { align-self: stretch; background: #fff; border-radius: 16px; padding: 16px; margin-top: 6px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; box-shadow: 0 2px 10px rgba(16, 26, 51, .07); }
.chat-survey__ended { font-size: 12px; color: #8a8f9c; text-transform: uppercase; letter-spacing: .4px; }
.chat-survey b { font-size: 15px; color: var(--navy); }
.chat-survey__btns { display: flex; gap: 8px; }
.chat-survey__btns button, .chat-survey__new { padding: 10px 18px; border-radius: 999px; background: var(--soft); font-weight: 600; font-size: 14px; transition: .2s; }
.chat-survey__btns button:hover { background: #E6ECFF; color: var(--blue); }
.chat-survey__new { background: var(--blue); color: #fff; }
.chat-survey__new:hover { background: var(--blue-dark); }
.chat-survey textarea { width: 100%; border: 1px solid #E2E6F0; border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 13.5px; resize: none; outline: none; }
.chat-survey textarea:focus { border-color: var(--blue); }

.ac__retry { color: var(--blue) !important; font-weight: 600; cursor: pointer; }

/* ===== «Вибір дня»: таймер до зміни товару ===== */
.promo-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.promo-card__top .promo-card__kicker { align-self: auto; }
.promo-card__timer { font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .12); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }

/* ===== Сторінка товару: переваги, поділитися, нижня панель ===== */
.pdp__share { margin: 6px 0 0 16px; padding: 10px 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.pdp__share:hover { color: var(--blue); }
.pdp__perks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pdp__perks li { display: flex; gap: 10px; align-items: flex-start; background: var(--soft); border-radius: 14px; padding: 12px 14px; }
.pdp__perks li > span { font-size: 20px; line-height: 1.2; }
.pdp__perks b { display: block; font-size: 13.5px; color: var(--navy); margin-bottom: 2px; }
.pdp__perks a, .pdp__perks button { font-size: 12.5px; color: var(--muted); text-align: left; padding: 0; }
.pdp__perks a:hover, .pdp__perks button:hover { color: var(--blue); text-decoration: underline; }
.pdp-bar { display: none; }
@media (max-width: 760px) {
  .pdp__perks { grid-template-columns: 1fr; }
  .pdp-bar:not([hidden]) {
    display: flex; align-items: center; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: #fff; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 24px rgba(16, 26, 51, .14);
    animation: barUp .25s ease-out;
  }
  .pdp-bar img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; mix-blend-mode: multiply; }
  .pdp-bar__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .pdp-bar__txt span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pdp-bar__txt b { font-family: var(--head-font); font-size: 18px; color: var(--navy); }
  .pdp-bar .card__buy { width: auto; padding: 12px 22px; }
  body.has-pdp-bar .dock { bottom: 84px; }
  body.has-pdp-bar .chat-fab { bottom: 148px; }
  body.has-pdp-bar { padding-bottom: 70px; }
}
@keyframes barUp { from { transform: translateY(100%); } to { transform: none; } }

/* ===== Контакти ===== */
.cc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 8px 0 36px; }
.cc { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; transition: .2s; }
.cc:hover { box-shadow: 0 12px 30px rgba(16, 26, 51, .08); transform: translateY(-2px); }
.cc__ic { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 22px;
  background: color-mix(in srgb, var(--c) 14%, #fff); }
.cc h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 6px; }
.cc p { font-size: 14px; color: #4b5368; line-height: 1.5; margin: 0 0 6px; }
.cc .big-phone { display: block; font-family: var(--head-font); font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.cc .big-phone:hover, .cc .big-mail:hover { color: var(--blue); }
.cc .big-mail { font-size: 16px; font-weight: 600; color: var(--navy); word-break: break-all; }
.cc .big-txt { font-size: 15px; font-weight: 600; color: var(--navy); }
.cc__link { color: var(--blue); font-weight: 600; font-size: 14px; padding: 0; }
.cc__link:hover { text-decoration: underline; }
.cc__socials { display: flex; flex-wrap: wrap; gap: 6px; }
.cc__socials a { background: var(--soft); color: var(--blue); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.faq__title { font-family: var(--head-font); font-size: 22px; color: var(--navy); margin-bottom: 14px; }
.faq { display: grid; gap: 10px; margin-bottom: 30px; }
.faq__item { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.faq__item summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 600; color: var(--navy); position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--blue); transition: .2s; }
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { padding: 0 18px 16px; margin: 0; color: #4b5368; line-height: 1.6; font-size: 14.5px; }
.article:has(.cc-grid) { max-width: 1100px; }
.cc .big-phone { white-space: nowrap; }

/* Переваги на головній — кожна картка у своєму кольорі */
.adv2__item {
  background: linear-gradient(150deg, color-mix(in srgb, var(--dot) 16%, #fff) 0%, color-mix(in srgb, var(--dot) 5%, #fff) 100%);
  border: 1px solid color-mix(in srgb, var(--dot) 22%, #fff);
  transition: transform .2s, box-shadow .2s;
}
.adv2__item:hover { transform: translateY(-3px); box-shadow: 0 14px 30px color-mix(in srgb, var(--dot) 22%, transparent); }
.adv2__ic { background: var(--dot); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--dot) 40%, transparent); }
.adv2__ic::after { display: none; }
