/* SezonHit theme: home page only (common/home.twig), loaded after stylesheet.css.
   Shared components (.season, .shot, .sec, .cats, cards) live in stylesheet.css; this file adds the home's own parts. */

/* ── Season opener's photo tiles: 1 (one big photo), 2 (two tall side by side), 3 (a tall one and two small: the
      stylesheet's own grid) or 4 (two by two, no tall one). Also what's left when a featured product is off ── */
.season--solo { grid-template-columns: minmax(0, 1fr); }
.season__grid[data-n="2"] .shot { grid-row: span 2; }
.season__grid[data-n="1"] { grid-template-columns: minmax(0, 1fr); }
.season__grid[data-n="1"] .shot { grid-row: span 2; }
@media (max-width: 960px) {
  .season__grid[data-n="1"] .shot { grid-row: auto; grid-column: span 2; aspect-ratio: 4 / 3; }
  .season__grid[data-n="1"] { grid-template-columns: 1fr 1fr; }
  /* two stay side by side, as the small ones of three do */
  .season__grid[data-n="2"] .shot { grid-row: auto; grid-column: auto; aspect-ratio: 4 / 5; }
  /* four small ones: square, so the two rows don't push the page's next part off a phone's second screen */
  .season__grid[data-n="4"] .shot { aspect-ratio: 1 / 1; }
}
.btn__arrow { width: 18px; height: 18px; flex: none; transition: transform var(--t-fast) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ── Trust strip: what the shop's settings back up, one calm row ── */
.facts-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 40px 0 0; padding: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.facts-strip li { display: flex; align-items: center; gap: 14px; padding: 18px 20px; min-width: 0; }
.facts-strip li + li { border-left: 1px solid var(--line); }
.facts-strip__icon { width: 30px; height: 30px; flex: none; color: var(--brown); }
.facts-strip b { display: block; font: 600 15px/1.3 var(--ui); }
.facts-strip small { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.35; color: var(--ink-3); }
@media (max-width: 960px) {
  .facts-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-strip li:nth-child(3) { border-left: 0; }
  .facts-strip li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .facts-strip { margin-top: 28px; }
  .facts-strip li { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
  .facts-strip__icon { width: 26px; height: 26px; }
  .facts-strip b { font-size: 14px; }
  .facts-strip small { font-size: 12.5px; }
}
/* fewer than four (the owners' choice): a row of them on wide screens, one under another where three would be cramped */
.facts-strip--n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts-strip--n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facts-strip--n1 { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 960px) {
  .facts-strip--n3 { grid-template-columns: minmax(0, 1fr); }
  .facts-strip--n3 li + li { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .facts-strip--n3 li, .facts-strip--n1 li { flex-direction: row; align-items: center; gap: 12px; }
}

/* ── Phones: the other categories under the opener (on wider screens the category row shows them all) ── */
.also { display: none; }
@media (max-width: 760px) {
  .also { display: block; margin-top: 28px; }
  .also__title { margin-bottom: 10px; font: 600 13px/1 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
  .also__chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px;
    background: var(--card); font: 500 15px/1.2 var(--ui); color: var(--ink); text-decoration: none; }
  .also__chip:hover { border-color: var(--green); }
}

/* ── Opener's numbers row, under its buttons: countdown, designs, reviews ── */
.season__stats { display: flex; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 34em; }
.season__stats li { flex: 1 1 0; min-width: 0; display: grid; align-content: start; gap: 6px; padding: 0 20px; }
.season__stats li:first-child { padding-left: 0; }
.season__stats li + li { border-left: 1px solid var(--line); }
.season__stats b { font: 600 36px/1 var(--serif); color: var(--brown); font-variant-numeric: lining-nums; }
.season__stats span { font-size: 14px; line-height: 1.35; color: var(--ink-2); }
@media (max-width: 560px) {
  .season__stats { margin-top: 28px; padding-top: 18px; }
  .season__stats li { padding: 0 12px; gap: 4px; }
  .season__stats b { font-size: 27px; }
  .season__stats span { font-size: 12.5px; }
}

/* ── Season shelf: the season's categories side by side, one compact row per item ── */
.shelf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.shelf[data-n="1"] { grid-template-columns: minmax(0, 1fr); }
.shelf__col { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 6px 18px 8px; }
.shelf__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.shelf__head h3 { font: 600 21px/1.2 var(--serif); }
.shelf__list li + li { border-top: 1px solid var(--line); }
.shelf__item {
  display: grid; grid-template-columns: 88px minmax(0, 1fr) auto 20px; align-items: center; gap: 16px;
  min-height: 108px; padding: 10px 6px; margin: 0 -6px; border-radius: var(--r); text-decoration: none; color: inherit;
}
.shelf__list li:first-child .shelf__item { border-top: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r); }
.shelf__item:hover { background: var(--paper); }
.shelf__item img { width: 88px; height: 88px; border-radius: 12px; object-fit: cover; background: var(--paper-2); }
.shelf__text { display: grid; gap: 3px; min-width: 0; }
.shelf__text b { font: 600 16px/1.3 var(--ui); }
.shelf__item:hover .shelf__text b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.shelf__text small { font-size: 13.5px; line-height: 1.35; color: var(--ink-3); }
.shelf__text small span { white-space: nowrap; }
.shelf__text em { justify-self: start; margin-top: 2px; padding: 3px 8px; border-radius: 999px; background: var(--brown-tint); color: var(--brown);
  font: 600 12px/1.2 var(--ui); font-style: normal; }
.shelf__price { display: grid; justify-items: end; gap: 2px; font: 700 17px/1.1 var(--ui); white-space: nowrap; font-variant-numeric: tabular-nums; }
.shelf__price small { font: 500 13px/1 var(--ui); color: var(--ink-2); }
.shelf__price .shelf__tier { font: 500 12.5px/1.2 var(--ui); color: var(--green); }
.shelf__go { color: var(--ink-3); }
.shelf__go svg { width: 18px; height: 18px; display: block; transition: transform var(--t-fast) var(--ease); }
.shelf__item:hover .shelf__go { color: var(--green); }
.shelf__item:hover .shelf__go svg { transform: translateX(3px); }
/* two columns need ~1080 px: below that names ran to 3–4 lines and facts wrapped */
@media (max-width: 1080px) { .shelf { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 1081px) and (max-width: 1180px) {
  .shelf__head .more span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 560px) {
  .shelf__col { padding: 4px 12px 6px; }
  .shelf__head .more span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .shelf__item { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; min-height: 92px; }
  .shelf__item img { width: 72px; height: 72px; border-radius: 10px; }
  .shelf__go { display: none; }
  .shelf__text b { font-size: 15px; }
  .shelf__price { font-size: 15.5px; }
}
/* narrow phones: the price goes under the text, which gets the row's width (names ran to three lines at 360) */
@media (max-width: 440px) {
  .shelf__item { grid-template-columns: 72px minmax(0, 1fr); row-gap: 5px; }
  .shelf__item img { grid-row: span 2; }
  .shelf__text { align-self: end; }
  .shelf__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; align-self: start; }
}

/* ── «Новинки»: the listings' cards (.grid4.listing), one row; three a row (561–960 px) shows the first three ── */
@media (min-width: 561px) and (max-width: 960px) { .home-new > .card:nth-child(n+4) { display: none; } }

/* ── Design wall: the season's designs, each opening its box with that design chosen ── */
.dwall { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.dwall__tile { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: var(--r); overflow: hidden; background: var(--paper-2); }
.dwall__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-zoom) var(--ease); }
.dwall__tile:hover img { transform: scale(1.06); }
/* the name takes two lines rather than an ellipsis («Чемній д…» said nothing); the radius keeps one line a pill */
.dwall__tile span {
  position: absolute; left: 6px; bottom: 6px; max-width: calc(100% - 12px); padding: 4px 8px; border-radius: 11px;
  background: rgb(255 252 246 / .94); color: var(--ink); font: 600 12px/1.2 var(--ui); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; box-shadow: 0 2px 8px -2px rgb(0 0 0 / .35);
}
/* only full rows: an unfinished last row hides (16 tiles at 6 a row left 4 alone). The first tile of a row after the
   first that has fewer than a row's worth from it to the end, and the tiles after it. */
@media (min-width: 961px) { .dwall li:nth-child(8n+9):nth-last-child(-n+7), .dwall li:nth-child(8n+9):nth-last-child(-n+7) ~ li { display: none; } }
@media (max-width: 960px) { .dwall { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 641px) and (max-width: 960px) { .dwall li:nth-child(6n+7):nth-last-child(-n+5), .dwall li:nth-child(6n+7):nth-last-child(-n+5) ~ li { display: none; } }
@media (max-width: 640px) {
  .dwall { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .dwall li:nth-child(4n+5):nth-last-child(-n+3), .dwall li:nth-child(4n+5):nth-last-child(-n+3) ~ li { display: none; }
  .dwall__tile span { left: 4px; bottom: 4px; max-width: calc(100% - 8px); padding: 3px 5px; border-radius: 9px; font-size: 11px; line-height: 1.15; }
}

/* ── Category tiles: white labels on any photo. The gradient starts higher and gets darker than the mock's: two-line
      labels over bright photos dropped to ~2.5:1 on phones. An arrow says «go there». ── */
.cat::after { inset: 30% 0 0; background: linear-gradient(rgb(20 16 10 / 0), rgb(20 16 10 / .5) 50%, rgb(20 16 10 / .82)); }
.cat span { flex: 1; text-shadow: 0 1px 3px rgb(20 16 10 / .5); }
.cat__go { flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin: 0 14px 14px 0; border-radius: 50%;
  border: 1.5px solid rgb(255 252 246 / .75); color: #fffcf6; transition: background-color var(--t-fast), transform var(--t-fast) var(--ease); }
.cat__go svg { width: 16px; height: 16px; }
.cat:hover .cat__go { background: rgb(255 252 246 / .18); transform: translateX(2px); }
@media (max-width: 960px) { .cat__go { width: 28px; height: 28px; margin: 0 10px 10px 0; } }

@media (prefers-reduced-motion: reduce) { .dwall__tile img, .btn__arrow, .shelf__go svg, .cat__go { transition: none; } }

/* ── Reviews: the count + link to /vidhuky and the newest two with a text (a row of three), then the social links with
   a few real photos (the whole width under them; without the quotes it sits beside the count as before) ── */
.home-revs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; }
.home-revs--solo { grid-template-columns: minmax(0, 1fr); }
.home-revs--quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-revs--quotes .home-social { grid-column: 1 / -1; }
.home-revs__count {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.home-revs__count > svg { width: 48px; height: 40px; color: var(--gold); }
.home-revs__count p { font-size: 17px; color: var(--ink-2); }
.home-revs__count p b { display: block; font: 600 30px/1.1 var(--serif); color: var(--ink); }
.home-revs__pos { display: block; margin-top: 8px; font-size: 15px; color: var(--ink-3); }
.home-revs__count .btn { margin-top: auto; }
/* a review: the mock's quote card */
.home-rev { display: flex; flex-direction: column; gap: 14px; min-width: 0; margin: 0; padding: 22px 24px 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.home-rev__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.home-rev__mark { width: 28px; height: 20px; color: var(--gold); }
.home-rev__stars { display: inline-flex; gap: 2px; }
.home-rev__stars svg { width: 15px; height: 15px; color: var(--gold); }
.home-rev__stars svg.off { color: var(--line-2); }
.home-rev blockquote { margin: 0; font: italic 400 17px/1.5 var(--serif); color: var(--ink); overflow-wrap: anywhere; }
/* a long one ends with «…»: the whole text is on the reviews page */
.home-rev blockquote p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }
.home-rev figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; margin-top: auto; font-size: 14px; color: var(--ink-3); }
.home-rev figcaption b { font-weight: 600; color: var(--ink-2); }
.home-social {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; overflow: hidden;
  padding: 24px; background: var(--green); color: #f3eee4; border-radius: var(--r-lg);
}
.home-social h3 { font: 600 24px/1.2 var(--serif); }
.home-social p { margin-top: 8px; color: #d6cfbf; font-size: 15px; }
.home-social__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.home-social__btns .btn { gap: 8px; }
.home-social__btns svg { width: 18px; height: 18px; }
/* three real photos as a hand fan: stacked on one spot, each turned about the same point below the stack (the
   transform origin), so at rest it's a closed fan and pointing at the card opens it */
.home-social__photos { position: relative; width: 280px; height: 196px; margin-right: 4px; }
.home-social__photos img {
  position: absolute; top: 16px; left: calc(50% - 60px);
  width: 120px; height: 150px; object-fit: cover; border: 5px solid #fffcf6; border-radius: 6px;
  box-shadow: 0 10px 24px -10px rgb(0 0 0 / .6); transform-origin: 50% 170%; transform: rotate(-5deg);
}
.home-social__photos img:nth-child(2) { transform: none; z-index: 1; }
.home-social__photos img:nth-child(3) { transform: rotate(5deg); }
@media (hover: hover) {
  .home-social__photos img { transition: transform var(--t-zoom) var(--ease); }
  .home-social:hover .home-social__photos img:nth-child(1),
  .home-social:focus-within .home-social__photos img:nth-child(1) { transform: rotate(-18deg); }
  .home-social:hover .home-social__photos img:nth-child(2),
  .home-social:focus-within .home-social__photos img:nth-child(2) { transform: translateY(-8px); }
  .home-social:hover .home-social__photos img:nth-child(3),
  .home-social:focus-within .home-social__photos img:nth-child(3) { transform: rotate(18deg); }
}
@media (hover: hover) and (prefers-reduced-motion: reduce) { .home-social__photos img { transition: none; } }
/* nothing to point with on a touch screen: the fan is shown open, so all three photos are seen */
@media (hover: none) {
  .home-social__photos img:nth-child(1) { transform: rotate(-18deg); }
  .home-social__photos img:nth-child(2) { transform: translateY(-8px); }
  .home-social__photos img:nth-child(3) { transform: rotate(18deg); }
}
@media (max-width: 1080px) {
  .home-revs { grid-template-columns: minmax(0, 1fr); }
  .home-revs__count { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .home-revs__count .btn { margin: 0 0 0 auto; }
  /* the count a row of its own, the two quotes side by side under it */
  .home-revs--quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-revs--quotes .home-revs__count { grid-column: 1 / -1; }
}
/* one review beside the count, or three (the owners' «how many»); two is the grid above */
.home-revs--q1 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.home-revs--q3 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) {
  .home-revs--q1 .home-rev { grid-column: 1 / -1; }
  .home-revs--q3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .home-revs--q3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-revs--q3 .home-rev:last-of-type { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .home-revs--q1, .home-revs--q3 { grid-template-columns: minmax(0, 1fr); }
  .home-social { grid-template-columns: minmax(0, 1fr); }
  .home-social__photos { justify-self: center; width: 230px; height: 160px; margin: 0; }
  .home-social__photos img { top: 12px; left: calc(50% - 48px); width: 96px; height: 120px; }
  .home-revs__count .btn { margin: 0; }
  .home-revs--quotes { grid-template-columns: minmax(0, 1fr); }
  .home-rev { padding: 18px 18px 16px; }
}

/* «Своє фото»: the blank lid with its dashed frame beside the words; the lid's photo narrower than a banner's (it stands
   4:5), the green as on the product page's switch and the category strip's tile */
.hphoto { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 0; overflow: hidden; border-radius: var(--r-lg);
  background: var(--green-tint); }
/* the photo's column is as tall as the words beside it (at least 4:5 of its width), and the lid's photo covers it */
.hphoto__img { position: relative; display: block; min-height: 425px; overflow: hidden; container-type: size; }
.pphoto__bar { display: block; height: 6px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.pphoto__bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--green); transition: width .2s; }
/* the photo at its own 4:5 with the frame on it, covering the box whatever its shape (a tall column, a wide phone row):
   as wide as the box or as 4:5 of its height, whichever is more, and slid so the frame's middle (--cx, --cy: fractions
   of the photo) is as near the box's middle as the photo's edges allow */
.hphoto__lid { --w: max(100cqw, 80cqh); position: absolute; width: var(--w); aspect-ratio: 4 / 5;
  left: clamp(calc(100cqw - var(--w)), calc(50cqw - var(--cx, .5) * var(--w)), 0px);
  top: clamp(calc(100cqh - var(--w) * 1.25), calc(50cqh - var(--cy, .5) * var(--w) * 1.25), 0px); }
.hphoto__lid img { display: block; width: 100%; height: 100%; transition: transform var(--t-zoom) var(--ease); }
.hphoto__frame { position: absolute; display: grid; place-items: center; border: 2px dashed rgb(255 255 255 / .95); border-radius: 12px;
  background: rgb(255 255 255 / .38); box-shadow: 0 0 0 1px rgb(0 0 0 / .2), inset 0 0 0 1px rgb(0 0 0 / .2); transform-origin: center; }
.hphoto__frame--round { border-radius: 50%; }
.hphoto__frame { overflow: hidden; cursor: pointer; animation: hphoto-pulse 2.4s ease-in-out infinite; }
.is-done .hphoto__frame { border: 0; background: none; box-shadow: none; cursor: default; animation: none; }
.is-done .hphoto__empty { display: none; }
/* the buyer's framed photo fills the frame (its own proportions: the frame was marked in the print area's) */
.hphoto__shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* a lid at an angle: the frame is the whole lid photo laid onto the four corners, so the photo stretches over it as is */
.hphoto__frame--quad .hphoto__shot { object-fit: fill; }
.hphoto__frame--quad > .hphoto__empty { transform: scale(calc(1 / var(--qs, 1))); }
.hphoto__lid .hphoto__hole { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* the buyer's photo lit as the lid is: multiplied by the lid's white (--tone), as on the product page */
.is-done .hphoto__frame::after { content: ""; position: absolute; inset: 0; background: var(--tone, rgb(236 232 225)); mix-blend-mode: multiply; pointer-events: none; }
/* «Ваше фото тут» breathes, so the eye finds it (none for those who'd rather have less motion) */
@keyframes hphoto-pulse { 0%, 100% { box-shadow: 0 0 0 1px rgb(0 0 0 / .2), inset 0 0 0 1px rgb(0 0 0 / .2), 0 0 0 0 rgb(255 255 255 / .75); }
  50% { box-shadow: 0 0 0 1px rgb(0 0 0 / .2), inset 0 0 0 1px rgb(0 0 0 / .2), 0 0 0 12px rgb(255 255 255 / 0); } }
@media (prefers-reduced-motion: reduce) { .hphoto__frame { animation: none; } }
.hphoto__tag { position: absolute; left: 10px; bottom: 10px; padding: 4px 9px; border-radius: 999px; background: rgb(255 255 255 / .92); color: var(--ink);
  font: 600 12.5px/1.3 var(--ui); box-shadow: 0 1px 3px rgb(0 0 0 / .18); pointer-events: none; }
.hphoto__steps { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; counter-reset: hstep; font: 600 14px/1.3 var(--ui); color: var(--ink); }
.hphoto__steps li { display: inline-flex; align-items: center; gap: 8px; counter-increment: hstep; }
.hphoto__steps li::before { content: counter(hstep); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--card);
  color: var(--green); font: 700 13px/1 var(--ui); box-shadow: inset 0 0 0 1.5px var(--green); }
/* the boxes a photo can go on: each by its lid's photo (around the frame) and its name; the one picked ringed in green
   with a tick, as the product page's picked design */
.hphoto__boxes { display: flex; flex-wrap: wrap; gap: 12px; }
.hphoto__box { position: relative; display: grid; justify-items: center; align-content: start; gap: 6px; width: 92px; padding: 0; border: 0; background: none;
  color: var(--ink-2); cursor: pointer; text-align: center; }
.hphoto__box img { display: block; width: 88px; height: 88px; border-radius: 14px; object-fit: cover; background: var(--paper-2);
  box-shadow: 0 0 0 1.5px var(--line-2); transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease); }
.hphoto__box span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; font: 600 12.5px/1.25 var(--ui); }
.hphoto__box:hover img { box-shadow: 0 0 0 1.5px var(--ink-3); }
.hphoto__box[aria-pressed="true"] { color: var(--ink); }
.hphoto__box[aria-pressed="true"] img { box-shadow: 0 0 0 3px var(--green); }
.hphoto__box[aria-pressed="true"]::after { content: ""; position: absolute; top: -6px; right: -2px; width: 22px; height: 22px; border-radius: 50%; background: var(--green)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.8'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: 0 0 0 2px var(--green-tint); }
.hphoto__box:focus-visible { outline: none; }
.hphoto__box:focus-visible img { box-shadow: 0 0 0 3px var(--green), 0 0 0 6px rgb(30 58 43 / .25); }
@media (max-width: 560px) {
  .hphoto__boxes { gap: 10px; }
  .hphoto__box { width: 84px; }
  .hphoto__box img { width: 80px; height: 80px; }
}
@media (prefers-reduced-motion: reduce) { .hphoto__box img { transition: none; } }
.hphoto__busy { display: grid; gap: 6px; width: min(100%, 360px); font-size: 14px; color: var(--ink-2); }
.hphoto__q { font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.hphoto__q.is-good b { color: var(--green); }
.hphoto__q.is-ok b { color: #9a6700; }
.hphoto__q.is-low b { color: var(--warn); }
.hphoto__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 4px; }
.hphoto__link { padding: 6px 0; border: 0; background: none; color: var(--green); font: 600 15px/1.3 var(--ui); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hphoto__err { color: var(--warn); font-size: 14.5px; }
.hphoto__frame > span { display: grid; justify-items: center; gap: .3em; color: var(--ink); font: 600 clamp(12px, 4.4cqw, 16px)/1.2 var(--ui);
  text-shadow: 0 0 6px #fff, 0 0 2px #fff; }
.hphoto__frame svg { width: clamp(22px, 9cqw, 36px); height: auto; }
.hphoto__body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; min-width: 0; padding: 40px 44px; }
.hphoto__kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font: 700 14px/1.2 var(--ui); }
.hphoto__kicker i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: var(--card); }
.hphoto__kicker svg { width: 19px; height: 19px; }
.hphoto__body h2 { font-size: clamp(27px, 2.6vw, 36px); line-height: 1.15; text-wrap: balance; }
.hphoto__text { max-width: 32em; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.hphoto__body .btn { margin-top: 0; }
@media (max-width: 760px) {
  .hphoto { grid-template-columns: minmax(0, 1fr); }
  .hphoto__img { min-height: 0; aspect-ratio: 4 / 3; }
  .hphoto__body { padding: 22px 20px 24px; gap: 12px; }
  .hphoto__text { font-size: 16px; }
}
@media (max-width: 560px) { .hphoto__body .btn { width: 100%; } .hphoto__steps { font-size: 13.5px; gap: 6px 14px; } }
/* ── The owners' banner (admin › Головна сторінка): a photo beside its words, under it on phones ── */
.hbanner {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.hbanner--text { grid-template-columns: minmax(0, 1fr); }
.hbanner__img { display: block; min-height: 100%; background: var(--paper-2); }
.hbanner__img img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hbanner__body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; min-width: 0; padding: 40px 44px; }
.hbanner__body h2 { font-size: clamp(27px, 2.6vw, 36px); line-height: 1.15; text-wrap: balance; }
.hbanner__text { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 34em; overflow-wrap: anywhere; }
.hbanner__text p + p { margin-top: 10px; }
.hbanner__body .btn { margin-top: 6px; }
@media (max-width: 860px) {
  .hbanner { grid-template-columns: minmax(0, 1fr); }
  .hbanner__body { padding: 22px 20px 24px; gap: 12px; }
  .hbanner__text { font-size: 16px; }
}
@media (max-width: 560px) { .hbanner__body .btn { width: 100%; } }

/* ── The owners' text: a heading, a few paragraphs and a button, at reading width ── */
.htext > h2 { font-size: clamp(27px, 2.6vw, 36px); max-width: 24em; text-wrap: balance; }
.htext__body { max-width: 68ch; margin-top: 14px; font-size: 17px; line-height: 1.65; color: var(--ink-2); overflow-wrap: anywhere; }
.htext__body p + p { margin-top: 12px; }
.htext > .btn { margin-top: 22px; }
@media (max-width: 560px) { .htext__body { font-size: 16px; } .htext > .btn { width: 100%; } }
