@import url("pages.css?v=5");

/* What the live site needs beyond the mockup */
a { color: inherit; }
button { font: inherit; cursor: pointer; }
main { min-height: 50vh; }
.links a { color: inherit; }
.h1 { font-size: 26px; font-weight: 800; }
.h1 small, .head h2 small { display: block; font-size: 13px; font-weight: 400; color: var(--ink-2); margin-top: 4px; }
.h2 { font-size: 19px; margin-bottom: 14px; }
.narrow { max-width: 980px; }
.muted { color: var(--ink-2); font-size: 13px; }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--orange); }

/* Search form in the header */
.search button.go { border: 0; cursor: pointer; }
.search input::placeholder { color: #627585; }
.icon .badge[hidden] { display: none; }

/* Catalog menu */
nav.main ul li a { display: block; padding: 0 8px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.catalog-menu { position: relative; }
.catalog-menu summary { list-style: none; height: 100%; cursor: pointer; }
.catalog-menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; top: 100%; left: 0; z-index: 30; width: 340px; max-height: 70vh; overflow: auto; background: #fff;
  border-radius: 0 0 14px 14px; box-shadow: 0 18px 40px rgba(29,52,70,0.25); padding: 8px; }
.menu-panel a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: 14px; }
.menu-panel a:hover { background: var(--orange-soft); color: var(--orange-dark); }
.menu-panel small { color: var(--ink-2); font-weight: 400; }

/* Cards */
.card .fav-form { position: absolute; top: 12px; right: 12px; z-index: 2; }
.card .fav { position: static; border: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--bg); color: #7b8d9e; font-size: 15px; display: grid; place-items: center; }
.card .fav.on { color: var(--sale); }
.card .name:hover { color: var(--orange); }
.card .buy { border: 0; }
.card .img { overflow: hidden; }
.nophoto { color: var(--ink-2); font-size: 12px; background: var(--bg); border-radius: 10px; padding: 30px 10px; text-align: center; width: 100%; }
.cards.scroll { grid-auto-flow: column; grid-auto-columns: calc((100% - 64px) / 5); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.cards.scroll .card { scroll-snap-align: start; }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.cat-grid .tile:hover .label { color: var(--orange); }
.chips a.chip small { color: #66788a; margin-left: 4px; }
.chips a.chip:hover { border-color: var(--orange); color: var(--orange-dark); }
.sort select { height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; color: var(--ink); background: #fff; }
.pager { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 28px 0 10px; }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 600; }
.pager a.on { background: var(--steel); color: #fff; border-color: transparent; }

/* Product page */
.thumbs button { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; background: #fff; padding: 4px; }
.thumbs button.on { border: 2px solid var(--orange); }
.thumbs img { max-width: 90%; max-height: 90%; object-fit: contain; }
.qty button { width: 40px; height: 50px; border: 0; background: var(--bg); font-size: 20px; color: var(--ink-2); }
.qty input { width: 46px; text-align: center; font-weight: 700; font-size: 16px; border: 0; height: 50px; }
.btn-main { border: 0; text-decoration: none; }
.btn-quick { width: 100%; background: #fff; cursor: pointer; }
.quick button { font-size: 12.5px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 11px; color: var(--ink-2); }
.quick button:hover { border-color: var(--orange); color: var(--orange-dark); }
.askfield input { font: inherit; color: var(--ink); }
.askfield button { width: 42px; height: 42px; border-radius: 50%; background: var(--orange); color: #fff; border: 0; }
.answers .bubble { white-space: pre-line; }
.details { margin-top: 10px; }
.details p { white-space: pre-line; }

/* Cart and checkout */
.lines { display: grid; gap: 10px; }
.line { display: grid; grid-template-columns: 76px 1fr auto auto auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.line-img { width: 76px; height: 76px; display: block; position: relative; }
.line-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.line-name a { font-weight: 600; }
.line-name small { display: block; color: var(--ink-2); margin-top: 3px; }
.qty.small button { width: 34px; height: 36px; }
.qty.small span { width: 36px; text-align: center; font-weight: 700; }
.line-sum { min-width: 90px; text-align: right; }
.remove { border: 0; background: none; color: #7a8b99; font-size: 16px; min-width: 32px; min-height: 32px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 4px; font-size: 18px; }
.cart-total b { font-size: 24px; }
.btn-main.wide { width: 100%; display: flex; }
.checkout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
.box { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 13.5px; }
.form label small { font-weight: 400; color: var(--ink-2); }
.form input, .form textarea { height: 46px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; font: inherit; font-weight: 400; color: var(--ink); }
.form textarea { height: 80px; padding: 10px 14px; resize: vertical; }
.form input:focus, .form textarea:focus, .search input:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.pay-note { background: var(--orange-soft); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.done { text-align: center; margin: 40px auto; display: grid; gap: 14px; justify-items: center; }
.done-icon { width: 72px; height: 72px; border-radius: 50%; background: #e6f8ef; color: #0f8a5f; font-size: 36px; display: grid; place-items: center; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.row-btns .btn-main, .row-btns .btn-quick { padding: 0 22px; width: auto; display: inline-flex; align-items: center; height: 48px; line-height: normal; }
.auth { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.notice { background: #fdeceb; color: #a12a2c; border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-size: 14px; }
.empty { background: var(--bg); border-radius: 14px; padding: 30px; text-align: center; color: var(--ink-2); }
.empty a, .muted a, .notice a { color: var(--orange); font-weight: 600; }
.info-page { margin: 40px auto; display: grid; gap: 14px; justify-items: start; }
.info-page .btn-main { padding: 0 22px; height: 46px; display: inline-flex; align-items: center; }
.hello .logout { background: rgba(255,255,255,0.15); color: #fff; border: 0; border-radius: 12px; padding: 12px 16px; font-weight: 600; height: 100%; }
.order .steps::after { width: calc(var(--done, 0) * 25.3%); }
.order .goods a { width: 58px; height: 58px; border: 1px solid var(--line); border-radius: 10px; display: grid; place-items: center; }
.order .goods img { max-width: 80%; max-height: 80%; object-fit: contain; }
.addr-box { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 40px; }
.hello { margin-top: 22px; }

/* Photo search */
.drop { display: block; cursor: pointer; }
.drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop .btns span { display: inline-block; border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 13.5px; background: var(--steel); color: #fff; }
.drop .chosen { display: block; max-width: 220px; max-height: 160px; margin: 14px auto 0; border-radius: 10px; object-fit: contain; }
.find { border: 0; width: 100%; cursor: pointer; }
.howto { padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); line-height: 1.5; }

/* Product photos sit on the page: no white square, a thin dark outline along the product and a soft shadow.
   The photos have their white background removed (tools/clean_photos.py), so the outline follows the product. */
.card .img, .tile .pic, .big, .thumbs button, .collage div, .side-card.week, .banner .goods a { background: transparent; }
.card .img img, .tile .pic img, .big img, .collage img, .side-card.week img, .order .goods img, .line-img img,
.seen .shot img, .banner .goods img {
  filter: drop-shadow(0 0 0.6px rgba(20, 32, 44, 0.9)) drop-shadow(0 0 0.4px rgba(20, 32, 44, 0.6))
          drop-shadow(0 10px 12px rgba(29, 52, 70, 0.22));
}
.thumbs img { filter: drop-shadow(0 0 0.5px rgba(20, 32, 44, 0.8)); }
/* Banner: the cut-out products stand right on the banner, a soft light spot under each, nothing moves */
.banner .goods a { position: relative; display: block; aspect-ratio: 1; }
.banner .goods a::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 4%; height: 14%; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.28), rgba(255,255,255,0) 70%); }
.banner .goods img, .banner .goods img:nth-child(2) { position: absolute; inset: 0; margin: auto; width: 92%; height: 92%;
  max-width: none; object-fit: contain; background: transparent; box-shadow: none; padding: 0; border-radius: 0; transform: none;
  aspect-ratio: auto; z-index: 1; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.35)); }
.tile { background: #fff; }
.pricebig b { color: var(--ink); }
a.perk:hover b { color: var(--orange); }
/* Any photo fits its frame: a fixed box, the picture inside it, whatever its proportions */
.card .img, .tile .pic, .collage div { position: relative; display: block; overflow: hidden; }
.card .img { aspect-ratio: 1; }
.tile .pic { aspect-ratio: 1.1; }
.collage div { aspect-ratio: 1; }
.card .img img, .tile .pic img, .collage div img {
  position: absolute; inset: 0; margin: auto; width: 82%; height: 82%; max-width: none; max-height: none; object-fit: contain;
}
.tile .pic img { width: 74%; height: 74%; }
.card .img .nophoto { position: absolute; inset: 10%; width: auto; display: grid; place-items: center; }
.big { position: relative; }
.big img { position: absolute; inset: 0; margin: auto; width: 84%; height: 84%; max-width: none; max-height: none; object-fit: contain; }
/* Magnifier: over the big photo it grows to the point under the pointer and follows it */
.big { overflow: hidden; }
.big.zooming { cursor: zoom-in; }
.big img { transition: transform 0.18s ease-out; will-change: transform; }
.big.zooming img { transform: scale(2.3); filter: none; }
.tile .pic { background: radial-gradient(circle at 50% 55%, var(--bg), #fff 70%); }

/* Photo carousel on a card: the next photo slides in while the pointer is over it */
.card .img { position: relative; }
.card .img img { transition: opacity .28s ease, transform .35s ease; }
.card .img img.fade { opacity: 0; transform: scale(0.96); }
.card:hover .img img { transform: scale(1.04); }
.dots-mini { position: absolute; bottom: 4px; left: 0; right: 0; display: flex; gap: 4px; justify-content: center; opacity: 0; transition: opacity .2s; }
.dots-mini i { width: 6px; height: 6px; border-radius: 50%; background: #c9d5de; }
.dots-mini i.on { background: var(--orange); width: 14px; border-radius: 3px; }
.card:hover .dots-mini { opacity: 1; }

/* Category tiles pull a little towards the pointer, like a magnet (the movement is set in site.js) */
.tile, .cat-grid .tile { transition: transform .25s ease, box-shadow .25s ease; will-change: transform; }
.tile:hover { box-shadow: 0 16px 34px rgba(29, 52, 70, 0.16); }
.tile .pic img { transition: transform .3s ease; }
.tile:hover .pic img { transform: scale(1.08); }
@media (prefers-reduced-motion: reduce) {
  .tile, .tile .pic img, .card .img img { transition: none; transform: none !important; }
}

/* The group's mini page: on hover the cover zooms away and a small grid of the group's goods zooms in,
   the size of the picture (mouse only — on a phone the tile just opens the group) */
.tile .pic .peek { display: none; }
@media (hover: hover) and (pointer: fine) {
  .tile .pic .peek {
    position: absolute; inset: 6px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
    gap: 5px; padding: 5px 5px 26px; background: #fff; border-radius: 14px;
    box-shadow: inset 0 0 0 1px var(--line);
    opacity: 0; transform: scale(1.18); transition: opacity .28s ease, transform .32s ease; pointer-events: none;
  }
  .tile:hover .pic .peek { opacity: 1; transform: scale(1); transition-delay: .12s; }
  .tile:hover .pic > img { transform: scale(1.35); opacity: 0; transition: transform .35s ease, opacity .25s ease .05s; }
  .tile .pic .peek-item { position: relative; background: var(--bg); border-radius: 9px; overflow: hidden; }
  .tile .pic .peek-item img {
    position: absolute; inset: 0; margin: auto; width: 80%; height: 64%; top: -20%;
    object-fit: contain; transform: none; filter: drop-shadow(0 3px 4px rgba(29, 52, 70, 0.18));
  }
  .tile:hover .pic .peek-item img { transform: none; }
  .tile .pic .peek-item b {
    position: absolute; left: 0; right: 0; bottom: 3px; text-align: center; font-size: 11px; font-weight: 800;
    color: var(--ink); text-transform: none; letter-spacing: 0;
  }
  .tile .pic .peek-more {
    position: absolute; left: 0; right: 0; bottom: 5px; text-align: center; font-size: 11.5px; font-weight: 700;
    color: var(--orange); text-transform: none; letter-spacing: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tile .pic .peek, .tile:hover .pic > img { transition: none; transform: none; }
}

/* Stars: a grey row of five with the gold part as wide as the rating (--r of 5) */
.stars-mini { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--ink);
  text-decoration: none; }
.stars-mini small { font-weight: 400; color: var(--ink-2); }
.stars-mini > span:not(.sr-only) { position: relative; display: inline-block; font-size: 13px; letter-spacing: 1px; line-height: 1; }
.stars-mini > span:not(.sr-only)::before { content: "★★★★★"; color: #b3c0cb; }
.stars-mini > span:not(.sr-only)::after { content: "★★★★★"; color: #f5a623; position: absolute; left: 0; top: 0; overflow: hidden;
  width: calc(var(--r) / 5 * 100%); white-space: nowrap; }
.card .stars-mini { margin: 2px 0 0; }
.stars-line { display: inline-block; margin: -4px 0 10px; font-size: 13px; color: var(--ink-2); text-decoration: none; }
.stars-line:hover { color: var(--orange); }

/* Reviews on the product page */
.reviews { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 22px; }
.reviews .h2 small { font-size: 15px; color: var(--ink-2); font-weight: 600; }
.review-form { display: grid; gap: 10px; max-width: 640px; background: var(--bg); border-radius: 16px; padding: 16px; margin: 10px 0 18px; }
.review-form textarea { min-height: 90px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; resize: vertical; }
.review-form .btn-main { justify-self: start; }
.rate-pick { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.rate-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate-pick label { font-size: 30px; line-height: 1; color: #d4dce3; cursor: pointer; transition: color .15s, transform .15s; }
.rate-pick label:hover, .rate-pick label:hover ~ label, .rate-pick input:checked ~ label { color: #f5a623; }
.rate-pick input:focus-visible + label { outline: 2px solid var(--orange); border-radius: 4px; }
.review { padding: 14px 0; border-bottom: 1px solid var(--line); max-width: 760px; }
.review-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.review-top small { color: var(--ink-2); }
.review p { margin: 6px 0 0; white-space: pre-line; }
.review-links { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 10px; font-size: 13px; }
.review-links a { color: var(--orange); }

/* «Новинка» in the hero */
.news-rotator { margin-top: 12px; }
.side-card .lbl.new { color: #16784a; }

/* A light home page: popular groups and the way to the whole catalog */
.block .head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.block .head .all { font-weight: 700; color: var(--orange); white-space: nowrap; text-decoration: none; }
.catalog-more { display: block; text-align: center; margin: 18px auto 0; max-width: 420px; text-decoration: none; }
.catalog-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.catalog-jump a { padding: 7px 12px; border-radius: 999px; background: var(--bg); color: var(--ink); text-decoration: none; font-size: 13px; }
.catalog-jump a:hover { background: var(--orange-soft); }

/* The home page's H1 (for search engines) looks like the banner heading it replaced */
.banner .hero-title { font-size: 38px; line-height: 1.1; margin: 14px 0 10px; font-weight: 800; }
.banner .hero-title em { font-style: normal; color: var(--amber); }
@media (max-width: 760px) { .banner .hero-title { font-size: 27px; } }

/* «Товар тижня» and «Новинка» zoom in on hover, like the product cards */
.side-card.week { transition: box-shadow .25s ease, transform .25s ease; }
.side-card.week .week-pic img { transition: transform .35s ease; }
.side-card.week:hover { box-shadow: 0 14px 30px rgba(29, 52, 70, 0.16); }
.side-card.week:hover .week-pic img { transform: scale(1.14); }
.side-card.week:hover .week-name { color: var(--orange); }
@media (prefers-reduced-motion: reduce) { .side-card.week .week-pic img { transition: none; transform: none !important; } }

/* «Not found» */
.notfound { text-align: center; padding: 34px 22px; margin-top: 26px; }
.nf-code { font-size: 64px; font-weight: 800; color: var(--orange); line-height: 1; }
.nf-search { display: flex; gap: 8px; max-width: 460px; margin: 16px auto; }
.nf-search input { flex: 1; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; }
.notfound .row-btns { justify-content: center; }

/* Endless strips: bigger cards (4 in view instead of 5), arrows at the sides; the strip loads more goods by itself */
.cards.scroll[data-endless] { grid-auto-columns: calc((100% - 48px) / 4); scroll-behavior: smooth; scrollbar-width: thin; }
.strip { position: relative; }
.strip-arrow {
  position: absolute; top: 38%; transform: translateY(-50%); z-index: 3; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer;
  box-shadow: 0 8px 22px rgba(29, 52, 70, 0.18); display: grid; place-items: center; padding: 0 0 3px;
  transition: background .2s, color .2s, transform .2s, opacity .2s;
}
.strip-arrow.prev { left: -18px; }
.strip-arrow.next { right: -18px; }
.strip-arrow:hover { background: var(--orange); color: #fff; transform: translateY(-50%) scale(1.08); }
.strip-arrow:disabled { opacity: 0; pointer-events: none; }
.strip-arrow:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
@media (max-width: 760px) {
  .cards.scroll[data-endless] { grid-auto-columns: 62%; }
  .strip-arrow { width: 38px; height: 38px; font-size: 24px; }
  .strip-arrow.prev { left: -6px; }
  .strip-arrow.next { right: -6px; }
}

/* Favourites: the saved goods with «Товар тижня» and «Новинка» at the side */
.fav-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.fav-cards { grid-template-columns: repeat(4, 1fr); }
.fav-side { display: grid; gap: 12px; position: sticky; top: 16px; }
.fav-side .week-rotator { margin-top: 0; }
@media (max-width: 1000px) { .fav-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .fav-layout { grid-template-columns: 1fr; }
  .fav-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fav-side { position: static; }
}

/* Round arrow buttons: the SVG arrow exactly in the middle */
.strip-arrow, .mini-arrow, .to-top { display: grid; place-items: center; padding: 0; font-size: 0; }
.strip-arrow svg { width: 22px; height: 22px; }
.mini-arrow svg { width: 14px; height: 14px; }
.to-top svg { width: 22px; height: 22px; }
@media (max-width: 760px) { .strip-arrow svg { width: 18px; height: 18px; } .mini-arrow svg { width: 12px; height: 12px; } }

/* The banner's small catalog turns like a carousel: tiles roll out one after another, the next roll in */
.mini-catalog.changing { opacity: 1; }
.mini-item.roll-out-left { animation: miniOutLeft .32s ease-in forwards; animation-delay: calc(var(--i, 0) * 35ms); }
.mini-item.roll-out-right { animation: miniOutRight .32s ease-in forwards; animation-delay: calc(var(--i, 0) * 35ms); }
.mini-item.roll-in-right { animation: miniInRight .42s cubic-bezier(.2, .8, .3, 1.15) both; animation-delay: calc(var(--i, 0) * 45ms); }
.mini-item.roll-in-left { animation: miniInLeft .42s cubic-bezier(.2, .8, .3, 1.15) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes miniOutLeft { to { transform: translateX(-70%) rotateY(35deg) scale(.85); opacity: 0; } }
@keyframes miniOutRight { to { transform: translateX(70%) rotateY(-35deg) scale(.85); opacity: 0; } }
@keyframes miniInRight { from { transform: translateX(80%) rotateY(-35deg) scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes miniInLeft { from { transform: translateX(-80%) rotateY(35deg) scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
/* The rolling tiles stay inside the catalog's sides (not over the banner text); up and down the hover lift still shows */
.mini-catalog { perspective: 900px; clip-path: inset(-30px 0 -30px 0); }
@media (prefers-reduced-motion: reduce) { .mini-item[class*="roll-"] { animation: none; } }

/* The collage at the bottom of the home page: goods to click, they zoom in and turn over to others */
.about .collage-item { position: relative; display: block; aspect-ratio: 1; border-radius: 14px; background: var(--bg); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease; perspective: 600px; }
.about .collage-item[hidden] { display: none; }
.about .collage-item img { position: absolute; inset: 0; margin: auto; width: 74%; height: 74%; object-fit: contain;
  filter: drop-shadow(0 6px 8px rgba(31, 41, 51, 0.2)); transition: transform .35s ease; }
.about .collage-item b { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 999px; background: #fff;
  font-size: 12px; color: var(--ink); box-shadow: 0 2px 6px rgba(29, 52, 70, 0.15); opacity: 0; transform: translateY(4px);
  transition: opacity .2s, transform .2s; }
.about .collage-item:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(29, 52, 70, 0.16); }
.about .collage-item:hover img { transform: scale(1.15); }
.about .collage-item:hover b { opacity: 1; transform: none; }
.about .collage-item.flip-out { animation: tileOut .33s ease-in forwards; }
.about .collage-item.flip-in { animation: tileIn .42s ease-out both; }
@keyframes tileOut { to { transform: rotateY(90deg) scale(.9); opacity: .2; } }
@keyframes tileIn { from { transform: rotateY(-90deg) scale(.9); opacity: .2; } to { transform: none; opacity: 1; } }

/* The search field: bigger text; the focus ring goes round the whole rounded field, not a square inside it */
.search input { font-size: 17px; color: var(--ink); }
.search input::placeholder { font-size: 16.5px; }
.search input:focus-visible { outline: none; }
/* The ring around the whole field: a white gap and a dark steel ring, clearly visible (WCAG 2.4.7, 3:1) */
.search:has(input:focus-visible) { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--orange-dark); }
@media (max-width: 760px) { .search input { font-size: 16px; } .search input::placeholder { font-size: 15px; } }

/* The login and registration boxes keep their own height (no stretched empty space in «Вхід») */
.auth-top { align-items: start; }

/* Photo search for registered customers only */
.login-gate { max-width: 640px; margin: 28px auto 10px; text-align: center; background: #fff; border: 1px solid var(--line);
  border-radius: 20px; padding: 30px 22px; }
.login-gate .cam { font-size: 40px; }
.login-gate h2 { margin: 8px 0 6px; font-size: 21px; }
.login-gate p { color: var(--ink-2); margin: 0 0 18px; }
.login-gate .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.login-gate .row a { min-width: 170px; text-align: center; text-decoration: none; display: inline-block; }

.email-box { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.email-box p { flex-basis: 100%; }
.email-box input { flex: 1 1 220px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; }

/* Password recovery */
.forgot-link { display: inline-block; margin-top: 10px; font-size: 13.5px; color: var(--orange); background: none; border: 0;
  padding: 0; cursor: pointer; text-decoration: underline; }
.auth.single { grid-template-columns: 1fr; max-width: 460px; }
.resend { text-align: center; }

/* Advantages are buttons */
.adv a, .adv button { text-align: center; padding: 18px 10px; border: 0; background: none; border-radius: 16px; color: inherit; display: block; transition: background .2s, transform .2s; }
.adv a:hover, .adv button:hover { background: var(--orange-soft); transform: translateY(-3px); }
.adv a span, .adv button span { display: block; font-size: 12.5px; color: var(--ink-2); }
.adv i { font-style: normal; font-size: 30px; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--orange-soft); margin: 0 auto 10px; }
.adv b { display: block; font-size: 14px; margin-bottom: 4px; }
.pulse { animation: pulse 1.2s ease 2; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(61,154,209,0); } 50% { box-shadow: 0 0 0 8px rgba(61,154,209,0.35); } }

/* The consultant chat */
.chat { position: fixed; right: 20px; bottom: 20px; width: 380px; max-width: calc(100vw - 32px); height: 520px; max-height: calc(100vh - 120px);
  background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(29,52,70,0.3); z-index: 60; display: flex; flex-direction: column; overflow: hidden; }
.chat[hidden] { display: none; }
.chat__head { background: var(--steel); color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
.chat__head button { background: none; border: 0; color: #fff; font-size: 18px; }
.chat__body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 4px; background: var(--bg); }
.chat__body .bubble { white-space: pre-line; }
.chat__goods { display: grid; gap: 6px; margin-bottom: 8px; }
.chat__goods a { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px 10px; font-size: 13px; }
.chat__goods img { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }
.chat__goods b { margin-left: auto; white-space: nowrap; }
.chat__form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat__form input { flex: 1; height: 42px; border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; font: inherit; }
.chat__form button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--orange); color: #fff; }

/* Information pages */
.info-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 14px; }
.info-tabs a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 13.5px; color: var(--ink-2); background: #fff; }
.info-tabs a.on { background: var(--steel); color: #fff; border-color: transparent; }
.info-page { margin: 0 0 40px; justify-items: stretch; }
.info-section ul { padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); line-height: 1.55; }
.info-section p { color: var(--ink-2); line-height: 1.6; }

/* Footer: the layout of dozer.com.ua */
.site-footer { background: #fff; color: var(--ink); border-top: 1px solid var(--line); margin-top: 0; }
.site-footer__inner { max-width: 1240px; margin: 0 auto; padding: 30px 20px; display: grid; grid-template-columns: 1fr 1fr; }
.site-footer__commerce { display: grid; justify-items: center; align-content: start; gap: 16px; padding-right: 30px; border-right: 1px solid var(--line); }
.site-footer__brand { display: grid; justify-items: center; gap: 6px; }
.site-footer__brand > span { font-size: 12px; color: #66788a; }
.site-footer__apps { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.store { display: flex; align-items: center; gap: 8px; background: #000; color: #fff; border-radius: 7px; padding: 6px 12px; min-width: 132px; }
.store svg { width: 22px; height: 22px; }
.store span { display: grid; font-size: 15px; font-weight: 600; line-height: 1.05; }
.store small { font-size: 9px; font-weight: 400; text-transform: uppercase; }
.site-footer__payments { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; justify-content: center; }
.pay { font-weight: 800; font-size: 14px; }
.pay.mc { display: inline-flex; }
.pay.mc i { width: 18px; height: 18px; border-radius: 50%; background: #eb001b; }
.pay.mc i + i { background: #f79e1b; margin-left: -7px; mix-blend-mode: multiply; }
.pay.wfp { letter-spacing: 1px; color: #444; }
.pay.wfp b { color: #2aa8e0; }
.pay.visa { color: #1a1f71; font-style: italic; font-size: 16px; }
.pay.plata b { background: #111; color: #fff; padding: 2px 6px; border-radius: 4px; margin-right: 3px; }
.site-footer__navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding-left: 36px; }
.site-footer__column { display: grid; gap: 10px; align-content: start; font-size: 13px; }
.site-footer__column h2 { font-size: 13px; color: #2e8540; margin-bottom: 4px; }
.site-footer__column:last-child h2 { color: var(--ink); }
.site-footer__column a, .footer-contact summary { color: var(--ink); cursor: pointer; }
.site-footer__column a:hover, .footer-contact summary:hover { color: var(--orange); }
.footer-contact summary { list-style: none; }
.footer-contact summary::-webkit-details-marker { display: none; }
.footer-contact__popover { display: grid; gap: 3px; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.footer-contact__popover strong { font-size: 12px; margin-top: 4px; }
.site-footer__socials { display: flex; gap: 10px; flex-wrap: wrap; max-width: 120px; }
.site-footer__socials a { width: 30px; height: 30px; border-radius: 50%; background: #f1f3f5; display: grid; place-items: center; color: #111; }
.site-footer__socials svg { width: 15px; height: 15px; fill: currentColor; }
.site-footer__legal { border-top: 1px solid var(--line); text-align: center; padding: 14px 20px 18px; font-size: 12px; color: #66788a; display: grid; gap: 6px; }
.site-footer__legal a { color: #5a6ad6; }
.site-footer .logo-text b { color: var(--ink); }

/* White cart icon on the cards */
.card .buy { color: #fff; }
.card .buy svg { width: 20px; height: 20px; display: block; }

/* Small catalog in the banner: the goods come closer under the pointer, a click leads to the recommendations */
.mini-catalog { flex: 0 1 520px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mini-item { display: grid; gap: 6px; justify-items: center; text-align: center; color: #d5e3ee; font-size: 11.5px; line-height: 1.2; }
.mini-item small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-pic { position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: 16px; background: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,0.22); transition: transform .3s ease, box-shadow .3s ease; }
.mini-pic img { position: absolute; inset: 0; margin: auto; width: 76%; height: 76%; object-fit: contain;
  filter: drop-shadow(0 0 0.5px rgba(20,32,44,0.8)) drop-shadow(0 6px 6px rgba(29,52,70,0.2)); transition: transform .3s ease; }
.mini-item:hover .mini-pic { transform: translateY(-6px) scale(1.1); box-shadow: 0 16px 30px rgba(0,0,0,0.35); }
.mini-item:hover .mini-pic img { transform: scale(1.08); }
.mini-item:hover small { color: #fff; }
.mini-item[hidden] { display: none; }
.mini-catalog { transition: opacity .3s ease; }
.mini-catalog.changing { opacity: 0; }
/* The banner's small catalog turns by the arrows too (endless, round over all groups) */
/* The arrows sit in their own margins at the sides, never over the tiles */
.mini-wrap { position: relative; flex: 1 1 auto; display: flex; }
/* The banner text keeps a fixed width (the button on one line); the small catalog takes all the rest */
@media (min-width: 761px) {
  .banner .text { flex: 0 0 255px; min-width: 255px; }
  .banner .text .btn { white-space: nowrap; }
  .banner .text p { font-size: 14.5px; }
}
.mini-wrap .mini-catalog { flex: 1; gap: 14px; }
/* Bigger pictures in the banner's small catalog: the photo fills more of its tile */
.mini-wrap .mini-pic img { width: 88%; height: 88%; }
.mini-wrap .mini-item { font-size: 12px; }
.mini-arrow {
  position: absolute; top: calc(50% - 10px); transform: translateY(-50%); z-index: 2; width: 24px; height: 24px;
  border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.92); color: var(--ink); font-size: 17px; line-height: 1;
  padding: 0 0 2px; cursor: pointer; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25); transition: background .2s, color .2s, transform .2s;
}
/* In the gaps beside the catalog (between it and the text, and the banner's edge), not over the tiles */
.mini-arrow.prev { left: -30px; }
.mini-arrow.next { right: -30px; }
.mini-arrow:hover { background: var(--orange); color: #fff; transform: translateY(-50%) scale(1.12); }
.mini-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 760px) {
  .mini-wrap { flex: none; padding: 0 26px; }
  .mini-arrow { width: 24px; height: 24px; font-size: 15px; }
  .mini-arrow.prev { left: 0; }
  .mini-arrow.next { right: 0; }
}

/* The search button: only a coloured magnifier, no circle */
.search .go { background: transparent; box-shadow: none; color: var(--orange); width: 44px; height: 44px; }
.search .go svg { width: 24px; height: 24px; display: block; margin: auto; }
.search .go:hover { color: var(--blue); }

/* «Товар тижня» changes by itself */
.week-rotator { position: relative; min-height: 150px; }
.week-rotator .side-card.week { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .6s ease; }
.week-rotator .side-card.week.on { opacity: 1; pointer-events: auto; }
.week-pic { position: relative; width: 92px; height: 92px; flex-shrink: 0; }
.week-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.week-name { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Warehouses in the cart and checkout */
.wh-head { display: flex; justify-content: space-between; align-items: center; margin: 16px 0 8px; }
.wh-badge { display: inline-block; background: var(--orange-soft); color: var(--orange-dark); font-weight: 700; font-size: 13px; border-radius: 999px; padding: 5px 12px; }
.wh-head small { color: var(--ink-2); font-weight: 600; }
.ship-note { background: #fff8ec; border: 1px solid #f6dfb5; border-radius: 12px; padding: 12px 14px; font-size: 13.5px; line-height: 1.5; }
.ship-choice { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 10px; }
.ship-choice legend { font-weight: 700; font-size: 13.5px; padding: 0 6px; }
.ship-choice .option { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.ship-choice .option input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--orange); }
.ship-choice .option b { display: block; font-size: 14px; }
.ship-choice .option small { display: block; color: var(--ink-2); font-size: 12.5px; margin-top: 2px; }
.product-wh { color: var(--ink-2); }

/* Back to the top */
.to-top { position: fixed; right: 20px; bottom: 24px; width: 48px; height: 48px; border-radius: 50%; border: 0; z-index: 40;
  background: var(--steel); color: #fff; font-size: 22px; box-shadow: 0 10px 24px rgba(29,52,70,0.35);
  opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .25s, transform .25s; }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }

/* Cart preview under the cart icon */
.icons { position: relative; }
.mini-cart { position: absolute; top: calc(100% + 10px); right: 0; width: 360px; max-width: calc(100vw - 32px); z-index: 45;
  background: #fff; border-radius: 16px; box-shadow: 0 20px 50px rgba(29,52,70,0.28); padding: 14px; }
.mini-cart[hidden] { display: none; }
.mini-cart h4 { font-size: 15px; margin-bottom: 10px; }
.mini-cart__list { display: grid; gap: 8px; max-height: 320px; overflow-y: auto; }
.mini-line { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.mini-line .pic { width: 52px; height: 52px; position: relative; }
.mini-line .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.mini-line small { display: block; color: var(--ink-2); }
.mini-cart__total { display: flex; justify-content: space-between; padding: 12px 2px; border-top: 1px solid var(--line); margin-top: 10px; font-size: 15px; }
.mini-cart__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mini-cart__btns a { height: 42px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 13.5px; }
.mini-cart__btns a:first-child { border: 1px solid var(--line); }
.mini-cart__btns a:last-child { background: var(--steel); color: #fff; }
.mini-cart__empty { color: var(--ink-2); padding: 10px 0; }

.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 50; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.toast:empty { display: none; }

@media (max-width: 760px) {
  .cards.scroll { grid-auto-columns: 46%; }
  .line { grid-template-columns: 60px 1fr auto; }
  .line-img { width: 60px; height: 60px; }
  .line-sum { grid-column: 2; text-align: left; }
  .checkout, .auth { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .h1 { font-size: 21px; }
  .toast { bottom: 80px; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 24px; padding-bottom: 20px; }
  .site-footer__commerce { border-right: 0; padding-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
  .site-footer__navigation { padding-left: 0; }
  .site-footer__legal { padding-bottom: 84px; }
  .mini-catalog { flex: none; gap: 8px; }
  .week-rotator .side-card.week { display: flex; }
  .to-top { bottom: 80px; right: 12px; width: 44px; height: 44px; }
  .mini-cart { position: fixed; top: 70px; left: 16px; right: 16px; width: auto; }
  .chat { right: 8px; left: 8px; bottom: 76px; width: auto; max-width: none; height: 70vh; }
  .adv { grid-template-columns: repeat(2, 1fr); }
  .adv a:last-child { display: block; }
}

/* One style with the logo: Nunito everywhere (style.css), tight big headings, the logo's tick as the «done» mark,
   the about-list bullets drawn as the same tick instead of a ✓ glyph */
h1, h2, .h1, .head h2, .banner .hero-title { letter-spacing: -0.01em; }
.tick { width: 1.05em; height: 1.05em; vertical-align: -0.2em; margin-right: 0.3em; flex: none; }
.about li { display: flex; align-items: flex-start; gap: 8px; }
.about li::before { content: ""; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5 10 17.5 17.5 6.5' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* Photos on a white background (warehouses 2 and 3, everything that is not a cut-out from /media/clean/):
   the outline-and-shadow filter drew a box round the white square; instead the white melts into the card
   (multiply), so the good itself stands on the page like the cut-outs do */
:is(.card .img, .tile .pic, .big, .about .collage-item, .side-card.week, .week-pic, .mini-pic, .peek-item, .order .goods,
    .line-img, .thumbs, .mini-line .pic, .chat__goods) img:not([src*="/media/clean/"]) {
  filter: none !important; mix-blend-mode: multiply;
}

/* The «dvd з галочкою» logo (design/logo/kit): one SVG in the header and the footer */
.logo img { display: block; height: 44px; width: auto; }
.site-footer .logo img { height: 40px; }
@media (max-width: 760px) { header .logo img { height: 32px; } }

/* ---- Interface pass (better-interface review) ---- */

/* «Перейти до вмісту»: the first Tab stop, visible only while focused */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; font-weight: 700;
  padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
/* The photo picker's real file input is hidden; its keyboard focus shows on the visible «Обрати фото» button */
.drop:has(input[type=file]:focus-visible) .btns span { outline: 2px solid var(--orange-dark); outline-offset: 3px; }
/* A form error after a reload gets the focus (site.js), so it is read out first; no extra ring around the box */
.notice:focus { outline: none; box-shadow: 0 0 0 2px #a12a2c; }
.search .photo i { font-style: normal; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* The pause button of everything that changes by itself (the side cards, the banner catalog, the collage) */
.collage { position: relative; }
.auto-pause { position: absolute; z-index: 4; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92); color: var(--ink); display: grid; place-items: center; padding: 0; cursor: pointer;
  box-shadow: 0 2px 6px rgba(29, 52, 70, 0.15); }
.auto-pause svg { width: 12px; height: 12px; display: block; }
.auto-pause:focus-visible { outline: 2px solid var(--orange-dark); outline-offset: 2px; }
.week-rotator > .auto-pause { top: 8px; right: 8px; }
.collage > .auto-pause { top: -36px; right: 0; }
.mini-wrap > .auto-pause { bottom: -6px; right: -30px; }
@media (max-width: 760px) { .mini-wrap > .auto-pause { right: 0; bottom: -30px; } }

/* Prices and sums keep one digit width, so a changing total never jumps */
.price, .cart-sum, .line-sum, .cart-total b, .mini-cart__total b, .sum-line, .pricebig { font-variant-numeric: tabular-nums; }

/* Headings break into even lines, paragraphs avoid a lone last word */
h1, h2, .h1, .head h2 { text-wrap: balance; }
.banner p, .about p, .info-section p, .side-card p { text-wrap: pretty; }

/* On touch screens a hover state would stick after a tap: no lift, zoom or shadow there */
@media (hover: none) {
  .card:hover, .tile:hover, .side-card.week:hover, .about .collage-item:hover, .adv a:hover, .adv button:hover { transform: none; box-shadow: none; }
  .card:hover .img img, .tile:hover .pic img, .side-card.week:hover .week-pic img, .about .collage-item:hover img,
  .mini-item:hover .mini-pic, .mini-item:hover .mini-pic img { transform: none; }
  .adv a:hover, .adv button:hover { background: none; }
}

/* Reduced motion: no lifts, zooms, flips, pulses or smooth scrolling anywhere; colours and opacity still change */
@media (prefers-reduced-motion: reduce) {
  html, .cards.scroll[data-endless] { scroll-behavior: auto; }
  .adv a, .adv button, .about .collage-item, .about .collage-item img, .mini-pic, .mini-pic img, .strip-arrow, .mini-arrow,
  .side-card.week, .to-top, .card .img img, .dots-mini, .big img { transition-property: opacity, background-color, color, box-shadow; }
  .adv a:hover, .adv button:hover, .about .collage-item:hover, .about .collage-item:hover img, .mini-item:hover .mini-pic,
  .mini-item:hover .mini-pic img, .strip-arrow:hover, .mini-arrow:hover, .card .img img.fade, .to-top { transform: none; }
  .strip-arrow:hover, .mini-arrow:hover { transform: translateY(-50%); }
  .pulse, .about .collage-item.flip-out, .about .collage-item.flip-in { animation: none; }
}


/* ---- Plain style (2026-10-26): away from the "template" look ----
   Flat colours instead of gradients and glows, no decorative shadows, no hover lifts or zooms, smaller corner
   radii, line icons instead of emoji, an off-white page so the white cards read as cards. Floating things
   (menus, the chat, the cart preview, toasts) keep a shadow: there it shows they sit above the page. */
body { background: #f6f8fa; }
header { background: #fff; }
nav.main, .chat__head, .pager a.on, .info-tabs a.on, .mini-cart__btns a:last-child, .to-top, .drop .btns span,
.drop .cam, .btn-main { background: #1f3a52; }
.banner { background: #1f3a52; border-radius: 14px; }
.side-card { border-radius: 14px; }
.side-card.photo { background: #2b6f9a; }
.search .ai { background: var(--orange-soft); color: var(--orange-dark); }
.sale { background: none; }
.ask { background: #f4f8fb; border-radius: 12px; }
.advice { border-left: 0; border-radius: 10px; background: #f4f8fb; }
.tile .pic { background: #fff; }
.tile .label { border-top: 1px solid var(--line); }

/* Shadows: only on what floats */
.card:hover, .tile:hover, .side-card.week:hover, .about .collage-item:hover, .banner .btn, .mini-pic,
.mini-item:hover .mini-pic, .strip-arrow, .strip-arrow:hover, .mini-arrow, .auto-pause, .buybox, .box,
.btn-main, .drop .cam, .about .collage-item b { box-shadow: none; }
.card:hover { border-color: #c9d6e1; }
.tile:hover, .side-card.week:hover { border-color: #c9d6e1; }

/* Product photos: no outline and no cast shadow, the good just stands on the card */
.card .img img, .tile .pic img, .big img, .collage img, .about .collage-item img, .side-card.week img, .week-pic img,
.mini-pic img, .peek-item img, .order .goods img, .line-img img, .seen .shot img, .thumbs img { filter: none; }

/* A photo on a studio background, a promo picture or a good cut by the frame: the whole picture as a tile */
img.framed { mix-blend-mode: normal !important; width: 100% !important; height: 100% !important; object-fit: contain;
  border-radius: 8px; }
.big img.framed { width: 92% !important; height: 92% !important; }

/* Hover: colour only. No lifts, zooms or magnet pull (the photo magnifier on the product page stays) */
.card:hover .img img, .tile:hover .pic img, .side-card.week:hover .week-pic img, .about .collage-item:hover,
.about .collage-item:hover img, .mini-item:hover .mini-pic, .mini-item:hover .mini-pic img, .adv a:hover,
.adv button:hover { transform: none; }
.strip-arrow:hover, .mini-arrow:hover { transform: translateY(-50%); }
.tile, .cat-grid .tile { transition: border-color .15s; will-change: auto; }
.tile .pic .peek { transform: none !important; }

/* Corners: modest radii instead of very soft ones */
.card, .tile { border-radius: 10px; }
.card .img { border-radius: 6px; }
.buybox, .box, .login-gate, .chat, .mini-cart { border-radius: 12px; }
.about .collage-item, .mini-pic { border-radius: 10px; }

/* The advantages: a plain row of links with line icons, no circles or cards */
.adv { gap: 8px; }
.adv a, .adv button { text-align: left; display: grid; grid-template-columns: 28px 1fr; column-gap: 10px; align-items: start;
  padding: 14px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.adv a:hover, .adv button:hover { background: #fff; border-color: #c9d6e1; }
.adv i { width: auto; height: auto; margin: 2px 0 0; background: none; font-size: 24px; color: var(--orange); grid-row: span 2; display: block; }
.adv b { margin: 0; }

/* The line icons (_macros.html icon): one round 2-unit stroke like the logo */
.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  display: inline-block; vertical-align: -0.15em; flex: none; }
.icon i .ico, .tabbar a i .ico { width: 1em; height: 1em; }
.btn-main .ico, .find .ico, .advice b .ico, .ship-note .ico, .pay-note .ico, .wh-badge .ico, .product-wh .ico, .ask h3 .ico {
  margin-right: 0.4em; }
.remove .ico, .chat__head button .ico { font-size: 18px; }
.chat__form button .ico, .askfield button .ico { font-size: 18px; }
.side-card.photo .cam, .login-gate .cam, .drop .cam { font-size: 30px; line-height: 1; }
.side-card.photo .cam .ico { font-size: 34px; }
.search .photo i .ico { font-size: 18px; }

/* «Про магазин»: a plain list (the tick circles read as a template's feature list) */
.about ul { list-style: disc; padding-left: 20px; gap: 6px; }
.about li { display: list-item; }
.about li::before { content: none; }

/* An endless strip shows grey placeholder cards while it loads the next goods */
.card.skeleton { pointer-events: none; }
.card.skeleton .img, .card.skeleton .sk-line { background: #eef2f6; border-radius: 6px; }
.card.skeleton .sk-line { height: 12px; margin: 10px 0 0; }
.card.skeleton .sk-line.short { width: 40%; height: 18px; margin-top: 18px; }.catalog-btn .cat-ico { font-size: 20px; color: var(--amber); display: grid; }

/* The honeypot field (bots.py): off-screen, people never see or reach it */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: 4px 0; }

/* A good comes a little closer under the pointer, wherever goods are shown (the owner, 2026-10-26): only the photo
   inside its frame grows, the card itself doesn't jump; mouse only, and not with reduced motion */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card .img img, .tile .pic > img, .week-pic img, .mini-pic img, .about .collage-item img, .peek-item img,
  .line-img img, .mini-line .pic img, .chat__goods img { transition: transform .25s ease-out; }
  .card:hover .img img, .tile:hover .pic > img, .side-card.week:hover .week-pic img, .mini-item:hover .mini-pic img,
  .about .collage-item:hover img, .peek-item:hover img, .line:hover .line-img img, .mini-line:hover .pic img,
  .chat__goods a:hover img { transform: scale(1.06); }
  .card .img, .tile .pic, .about .collage-item, .mini-pic { overflow: hidden; }
}
/* The public offer and the privacy policy: the points carry their own numbers (1.1, 1.2…), so no bullets */
.info-agreement .info-section ul, .info-privacy .info-section ul { list-style: none; padding-left: 0; }

/* Footer: the ways to pay and deliver as plain text (no payment logos until card payment is on) */
.site-footer__pay { max-width: 340px; margin: 0; text-align: center; font-size: 13px; line-height: 1.5; color: var(--ink-2); }

/* Footer colours from the logo, the e-mail with its icon on one line */
.site-footer__column h2 { color: var(--ink); }
.site-footer__legal a { color: var(--orange); }
.site-footer__column a { display: inline-flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }

/* «Надіслати код ще раз» while its timer runs */
.forgot-link:disabled { opacity: .55; cursor: default; text-decoration: none; }

/* Phone, hours and the Telegram bot on the right of the catalog bar */
nav.main .contacts { margin-left: auto; display: flex; align-items: center; gap: 28px; color: #fff; }
nav.main .contact { display: flex; align-items: center; gap: 10px; color: #fff; line-height: 1.25; white-space: nowrap; }
nav.main .contact i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(124, 196, 240, .16); color: var(--amber); font-size: 16px; flex-shrink: 0; }
nav.main .contact span { display: grid; }
nav.main .contact b { font-size: 13.5px; font-weight: 700; }
nav.main .contact small { font-size: 12px; color: #cfe0ec; }
nav.main a.contact:hover b { color: var(--amber); }
@media (max-width: 1180px) { nav.main .contact:not(:nth-child(2)) small { display: none; } nav.main .contacts { gap: 20px; } }
@media (max-width: 960px) { nav.main .contact:nth-child(2) { display: none; } }
/* The banner's changing slides. Colours only from the logo: navy letters #1f3a52, the tick blue #3d9ad1 and light
   blue #7cc4f0, white, and their darker and paler shades; the background changes smoothly with the slide */
.banner { --hero-bg: #1f3a52; --hero-ink: #fff; --hero-text: #d3e2ee; --hero-accent: #7cc4f0; --hero-tag-bg: #7cc4f0;
  --hero-tag-ink: #13293b; --hero-btn-bg: #fff; --hero-btn-ink: #1f3a52; --hero-mini: #d5e3ee;
  background: var(--hero-bg); color: var(--hero-ink); transition: background-color .8s ease, color .8s ease; }
.banner[data-theme="blue"] { --hero-bg: #2b78ae; --hero-text: #eef6fc; --hero-accent: #fff; --hero-tag-bg: #fff;
  --hero-tag-ink: #1f3a52; --hero-btn-bg: #1f3a52; --hero-btn-ink: #fff; --hero-mini: #eef6fc; }
.banner[data-theme="ice"] { --hero-bg: #eaf4fb; --hero-ink: #1f3a52; --hero-text: #3e5a71; --hero-accent: #2b78ae;
  --hero-tag-bg: #1f3a52; --hero-tag-ink: #fff; --hero-btn-bg: #1f3a52; --hero-btn-ink: #fff; --hero-mini: #1f3a52; }
.banner[data-theme="ink"] { --hero-bg: #13293b; --hero-text: #c9dae7; --hero-accent: #7cc4f0; }
.banner[data-theme="sky"] { --hero-bg: #bfe1f7; --hero-ink: #13293b; --hero-text: #24435c; --hero-accent: #1f5f8f;
  --hero-tag-bg: #fff; --hero-tag-ink: #1f3a52; --hero-btn-bg: #1f3a52; --hero-btn-ink: #fff; --hero-mini: #13293b; }
.banner .hero-title em { color: var(--hero-accent); transition: color .8s ease; }
.banner .text p { color: var(--hero-text); }
.banner .text .hero-title { color: var(--hero-ink); font-size: 38px; line-height: 1.1; margin: 14px 0 10px; font-weight: 800; }
@media (max-width: 760px) { .banner .text .hero-title { font-size: 27px; } }
.banner .tag { background: var(--hero-tag-bg); color: var(--hero-tag-ink); }
.banner .btn { background: var(--hero-btn-bg); color: var(--hero-btn-ink); }
.banner .mini-item { color: var(--hero-mini); }
[data-hero] { display: grid; align-content: center; }
.hero-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .5s ease, transform .5s ease, visibility 0s .5s; }
.hero-slide.on { opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease .15s, transform .5s ease .15s; }
.hero-dots { grid-area: 2 / 1; display: flex; margin: 12px 0 0 -8px; }
.hero-dots button { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 4px; border: 0;
  background: none; color: inherit; cursor: pointer; }
.hero-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: currentColor; opacity: .35;
  transition: width .3s ease, opacity .3s ease; }
.hero-dots button[aria-current]::before { width: 22px; opacity: 1; }
.hero-dots button:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; border-radius: 6px; }
.banner[data-theme="ice"] .mini-pic, .banner[data-theme="sky"] .mini-pic { box-shadow: 0 0 0 1px rgba(31, 58, 82, .12); }
[data-hero] > .auto-pause { position: static; grid-area: 2 / 1; justify-self: end; align-self: end; }
@media (min-width: 761px) { .banner { column-gap: 44px; } }
@media (prefers-reduced-motion: reduce) { .banner, .hero-slide, .hero-slide.on, .banner .hero-title em { transition: none; } }

/* «Товар тижня» / «Новинка»: two small arrows in the corner instead of the pause button */
.rotator-arrows { position: absolute; top: 8px; right: 8px; z-index: 4; display: flex; gap: 4px; }
.rotator-arrows button { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; }
.rotator-arrows button svg { width: 12px; height: 12px; }
.rotator-arrows button:hover { color: #fff; background: var(--orange); border-color: var(--orange); }
.rotator-arrows button:focus-visible { outline: 2px solid var(--orange-dark); outline-offset: 2px; }

/* Checkout radios: one size whatever the text beside them (the general input style gave them padding and a
   height, and a long label squeezed them) */
.form .ship-choice .option input { flex: 0 0 20px; width: 20px; height: 20px; padding: 0; margin: 1px 0 0; border: 0;
  border-radius: 50%; accent-color: var(--steel); }
.form [hidden], .suggest-list[hidden] { display: none; }
.sub-choice { display: grid; gap: 8px; margin: -2px 0 2px 30px; padding: 10px 12px; border-radius: 12px; background: var(--orange-soft); }
.sub-choice .sub-title { font-size: 13px; font-weight: 700; }
.ship-choice .option.small b { font-size: 13.5px; }

/* City and branch suggestions under the field */
.suggest { position: relative; }
.suggest-list { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px; list-style: none;
  max-height: 290px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 28px rgba(19, 41, 59, .14); }
.suggest-list li { display: grid; gap: 1px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.suggest-list li b { font-size: 14px; font-weight: 600; }
.suggest-list li small { font-size: 12px; color: var(--ink-2); }
.suggest-list li:hover, .suggest-list li[aria-selected="true"] { background: var(--orange-soft); }
.form label small { font-size: 12px; }
.summary .sum-line b { white-space: nowrap; }
.ship-cost { display: flex; justify-content: space-between; gap: 12px; padding: 0 4px 12px; font-size: 14px; }
.ship-cost b { text-align: right; font-variant-numeric: tabular-nums; }

.order .status.no { background: #fdecec; color: #a12626; }

/* Cart: «Разом дешевше» */
.deals { margin: 6px 0 18px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.deals .h2 { margin: 0 0 2px; }
.deals .muted { margin: 0 0 12px; font-size: 13px; }
.deal-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.deal { display: grid; grid-template-rows: auto 1fr auto auto; gap: 6px; }
.deal-img { display: block; aspect-ratio: 1; border-radius: 10px; background: #fff; overflow: hidden; }
.deal-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.deal-name { font-size: 13px; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.deal-price { display: flex; gap: 8px; align-items: baseline; font-variant-numeric: tabular-nums; }
.deal-price s, .line-name s { color: var(--ink-2); font-size: 12.5px; }
.deal-price b { font-size: 16px; color: #0b7650; }
.deal form .btn-quick { width: 100%; justify-content: center; }
.deal-tag { display: inline-block; padding: 1px 6px; border-radius: 6px; background: #e6f8ef; color: #0b7650; font-weight: 700; }
@media (max-width: 760px) { .deal-list { grid-template-columns: repeat(2, 1fr); } }
.checkout-side { display: grid; gap: 16px; align-content: start; }
.deals.in-checkout { margin: 0; }
/* The deals scroll sideways and snap to a card: 4 in view in the cart, 2 beside the checkout form */
.deal-list[data-deal-strip] { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 36px) / 4);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; padding-bottom: 2px; }
.deal-list[data-deal-strip]::-webkit-scrollbar { display: none; }
.deal-list[data-deal-strip] .deal { scroll-snap-align: start; }
.deals.in-checkout .deal-list[data-deal-strip] { grid-auto-columns: calc((100% - 12px) / 2); }
.deal-strip .strip-arrow { top: 34%; }
.deal-strip .strip-arrow:disabled { opacity: 0; pointer-events: none; }
@media (max-width: 760px) { .deal-list[data-deal-strip], .deals.in-checkout .deal-list[data-deal-strip] { grid-auto-columns: 44%; } }
/* Checkout summary: a small picture of each good */
.sum-line.with-pic { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; }
.sum-pic { width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line); background: #fff; overflow: hidden; }
.sum-pic img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.sum-line.with-pic small { display: block; color: #0b7650; font-weight: 700; font-size: 11.5px; }

/* The banner's small catalog: 6 bigger tiles (3 × 2) instead of 8 */
.mini-wrap .mini-catalog { grid-template-columns: repeat(3, 1fr); }
.mini-wrap .mini-item { font-size: 13px; }
/* On a phone: all the groups in a two-row strip moved by the finger, snapping to a column */
.mini-catalog.mini-strip { display: grid; grid-template-columns: none; grid-template-rows: auto auto; grid-auto-flow: column;
  grid-auto-columns: 30%; gap: 12px 10px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; clip-path: none; padding-bottom: 2px; }
.mini-catalog.mini-strip::-webkit-scrollbar { display: none; }
.mini-catalog.mini-strip .mini-item { scroll-snap-align: start; font-size: 12px; }
.mini-catalog.mini-strip .mini-pic img { width: 86%; height: 86%; }

/* Strips everywhere: the finger scrolls them sideways, the page still scrolls up and down */
.cards.scroll, .deal-list[data-deal-strip], .mini-strip { touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; }

/* The photo search offered under the empty search field */
.search { position: relative; }
.search-hint { position: absolute; z-index: 30; left: -2px; right: -2px; top: calc(100% + 6px); display: flex; gap: 12px;
  align-items: center; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 14px 30px rgba(19, 41, 59, .16); color: var(--ink); }
.search-hint[hidden] { display: none; }
.search-hint i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--orange-soft);
  color: var(--steel); font-size: 18px; flex-shrink: 0; }
.search-hint span { display: grid; gap: 2px; }
.search-hint b { font-size: 14.5px; }
.search-hint small { font-size: 12.5px; color: var(--ink-2); }
.search-hint:hover b { color: var(--orange); }

/* Coming in as they reach the screen: a small rise, or from the right in a sideways strip */
.reveal, .reveal-x { opacity: 0; transition: opacity .45s ease, transform .45s cubic-bezier(.2, .7, .3, 1); }
.reveal { transform: translateY(18px); }
.reveal-x { transform: translateX(26px) scale(.97); }
.reveal.shown, .reveal-x.shown { opacity: 1; transform: none; }
.catalog-menu[open] .menu-panel a { animation: menuIn .28s ease both; animation-delay: calc(var(--n, 0) * 14ms); }
@keyframes menuIn { from { opacity: 0; transform: translateX(-8px); } }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-x { opacity: 1; transform: none; transition: none; }
  .catalog-menu[open] .menu-panel a { animation: none; }
}

/* ---------- Phones ---------- */
.icons .icon.call { display: none; }           /* on wide screens the phone is in the catalog bar */
@media (max-width: 760px) {
  /* The call button beside the cart (the catalog bar with the phone is hidden on phones) */
  .icons .icon.call { display: flex; }
  /* A cart line: the picture on the left, the name across, the quantity and the sum below it */
  .line { grid-template-columns: 64px auto 1fr auto; grid-template-areas: "img name name del" "img qty sum sum";
    gap: 8px 12px; align-items: center; padding: 10px 12px; }
  .line-img { grid-area: img; width: 64px; height: 64px; align-self: start; }
  .line-name { grid-area: name; min-width: 0; }
  .line > form.qty { grid-area: qty; }
  .line-sum { grid-area: sum; min-width: 0; text-align: right; }
  .line > form:last-child { grid-area: del; align-self: start; }
  /* Fields at 16 px: a smaller font makes iPhones zoom the page in when a field is tapped */
  input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]), textarea, select { font-size: 16px; }
  /* The search field fills its whole box, so a tap anywhere in it lands in the field */
  .search input { align-self: stretch; }
  /* The footer's columns one under another: the e-mail fits on one line */
  .site-footer__navigation { grid-template-columns: 1fr; gap: 22px; }
  .site-footer__column a { overflow-wrap: normal; word-break: normal; }
}

/* Checkout: «Не телефонуйте мені» */
.form label.check-line { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.form label.check-line input { width: 20px; height: 20px; padding: 0; margin: 0; flex-shrink: 0; accent-color: var(--steel); }

/* Card payments: the order waiting for its payment, and the paid state in the account */
.done-icon.wait { background: #fff4dc; color: #9a6200; }
.pay-state { display: flex; gap: 12px; align-items: center; margin-top: 8px; font-size: 13px; }
.pay-state .paid { color: #0b7650; font-weight: 700; }
.pay-state .unpaid { color: #9a6200; font-weight: 700; }
.pay-state a { color: var(--orange); font-weight: 700; }

.site-footer__hours { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
