/* home.css — the 12 blocks of the home page (logic/NEW_MAP_REVIEW.md §Главная), build P6 023, 01.10.2026. */

/* 1 · hero: full-background video from i2i scenes (R28, R13, R02 banners as scenes); the bottom edge is the half-oval of R35 P2 */
/* the first screen is the whole hero: words on top, the catalogue tiles at the bottom, the video behind both (Operator 01.10:
   «на главной хотелось бы видеть и видео, и карточки»). --hdr-real is the height of the header stack, set by js/app.js;
   the text stands in the flow, so on a short screen the hero grows with it instead of hiding the button (r1, 1536x730) */
:root { --cat-h: clamp(150px, 24svh, 290px); }
.hero { position: relative; display: flex; flex-direction: column; min-height: max(540px, calc(100svh - var(--hdr-real, 200px))); }
.hero__media { position: absolute; inset: 0; overflow: hidden; background: #f6d77c; }
.hero__media picture { display: contents; }   /* the poster img stays the flex child / absolute layer it was before picture */
.hero__poster, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.hero__video { opacity: 0; transition: opacity .8s var(--ease); }
.hero__video.is-on { opacity: 1; }
.hero__veil { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(252, 236, 176, .82) 0%, rgba(252, 236, 176, .55) 30%, rgba(252, 236, 176, 0) 56%); }
.hero__in { position: relative; z-index: 2; flex: 1 0 auto; padding-top: clamp(22px, 5svh, 72px); padding-bottom: clamp(20px, 3.5svh, 48px); }
.hero__h1 { font-size: clamp(34px, min(4.1vw, 7.2svh), 84px); max-width: 21ch; line-height: 1.04; text-wrap: balance; }   /* three lines, not five */
.hero__sub { margin-top: clamp(12px, 1.8svh, 24px); font-size: calc(var(--fs-body) * 1.18); max-width: 30ch; font-weight: 500; }
.hero__cta { margin-top: clamp(16px, 3svh, 40px); display: flex; gap: 14px; flex-wrap: wrap; }
.hero__btn { min-height: clamp(58px, 3.6vw, 76px); padding: 0 clamp(26px, 2vw, 44px); font-size: calc(var(--fs-body) * 1.08);
  box-shadow: 0 14px 30px -14px rgba(45, 41, 38, .45); }

/* 2 · categories at the foot of the first screen: R35 P1/P3/P4 — the ribbon bleeds out of the right edge of the screen;
   tiles lower than in round 2, products bigger in them (Operator 01.10: «на карточке места свободного остаётся») */
.cats { position: relative; z-index: 3; padding-bottom: clamp(14px, 2.4svh, 30px); }
.cats .ct { aspect-ratio: auto; height: var(--cat-h); padding: clamp(14px, 1.1vw, 24px) clamp(16px, 1.25vw, 26px); }
.cats .ct__t { font-size: clamp(19px, .9vw + 6px, 32px); max-width: 7.5ch; }
.cats .ct__more { margin-top: 6px; }
.cats .ct img { right: -8%; bottom: -16%; width: 70%; height: 110%; object-position: center bottom; }
.cats__row { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(230px, 17vw, 400px); gap: clamp(12px, 1.1vw, 24px);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px;
  width: auto; margin-left: calc((100% - var(--wrap)) / 2); margin-right: 0; padding-right: calc((100% - var(--wrap)) / 2);
  scroll-padding-left: 0; }
.cats__row::-webkit-scrollbar { display: none; }
.cats__row > * { scroll-snap-align: start; }
.cats__foot { display: flex; justify-content: space-between; align-items: center; margin-top: clamp(10px, 1.6svh, 18px); }
.cats__arrows { display: flex; gap: 10px; }

/* 3 · trust band: R38 G2 values in a row, still (no running line) */
.trust { margin-top: clamp(40px, 4vw, 80px); background: var(--sun); }
.trust__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 40px); padding-block: clamp(22px, 2vw, 40px); }
.trust__i { display: flex; align-items: center; gap: 14px; font-size: var(--fs-small); line-height: 1.35; }
.trust__i b { font-size: calc(var(--fs-body) * .98); }
.trust__big { font-family: var(--f-acc); font-weight: 700; font-size: clamp(46px, 3.4vw, 80px); line-height: .9; }
.trust__dr { width: clamp(60px, 4.6vw, 100px); height: auto; flex: none; mix-blend-mode: multiply; }

/* 4–6 · shelves */
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.3vw, 28px); }
.kinds { display: flex; gap: clamp(14px, 1.6vw, 34px); overflow-x: auto; scrollbar-width: none; margin: -6px 0 clamp(26px, 2.4vw, 46px); padding: 6px 2px; }
.kinds::-webkit-scrollbar { display: none; }
.kind { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 0 0 auto; width: clamp(92px, 7vw, 150px); text-align: center;
  font-weight: 600; font-size: var(--fs-small); }
.kind__c { width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--tone, var(--sand)); position: relative; overflow: hidden;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .7); transition: transform .35s var(--ease); }
.kind__c img { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; }
.kind:hover .kind__c { transform: translateY(-3px) rotate(-3deg); }
.shelf--dome { background: var(--sand); margin-top: clamp(110px, 11vw, 240px); }
.dome.sec { padding-top: clamp(8px, 1vw, 24px); }
.shelf--dome .pc { border-color: transparent; }
.pills { display: flex; flex-wrap: wrap; gap: 14px 18px; margin: -4px 0 clamp(26px, 2.4vw, 46px); }
.pill { display: inline-flex; align-items: center; padding: 14px 26px; border-radius: 50% / 60%; background: var(--c, var(--sand));
  font-family: var(--f-acc); font-weight: 700; font-size: clamp(18px, 1vw + 4px, 26px); transform: rotate(var(--r, 0deg));
  transition: transform .3s var(--ease); }
.pill:hover { transform: rotate(0deg) scale(1.04); }
.pill--ink { background: var(--ink); color: var(--white); }
.cell { display: flex; flex-direction: column; gap: 14px; justify-content: space-between; border-radius: var(--r-card); background: var(--sun);
  padding: clamp(18px, 1.6vw, 30px); min-height: 100%; }
.cell__t { font-family: var(--f-acc); font-weight: 700; font-size: clamp(22px, 1.2vw + 6px, 34px); line-height: 1.12; }
.cell__dr { width: 86%; align-self: center; mix-blend-mode: multiply; }

/* 7 · wholesale: R38 G3 four colour blocks stuck together · G4 photo in an almond mask · G5 captions along the sides */
.opt__grid { display: grid; grid-template-columns: 1.12fr .88fr; }
.opt__grid > * { border-radius: 40px; padding: clamp(28px, 3.2vw, 70px); min-height: clamp(360px, 28vw, 620px); position: relative; }
.opt__a { background: var(--sun); display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.opt__a .h2 { max-width: 16ch; }
.opt__a p { max-width: 38ch; font-size: calc(var(--fs-body) * 1.06); }
.opt__a .btn { align-self: flex-start; margin-top: 6px; }
.eyebrow { font-size: var(--fs-small); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.opt__b { background: var(--white); display: grid; place-items: center; }
.opt__mask { width: 58%; aspect-ratio: .78; -webkit-mask: var(--almond) center / contain no-repeat; mask: var(--almond) center / contain no-repeat; }
.opt__mask img { width: 100%; height: 100%; object-fit: cover; }
:root { --almond: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 128'><path d='M50 2C83 20 98 70 84 100c-8 18-24 26-34 26S24 118 16 100C2 70 17 20 50 2z'/></svg>"); }
.opt__side { position: absolute; top: 50%; left: clamp(4px, 1.4vw, 26px); transform: translateY(-50%) rotate(-90deg); transform-origin: center; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; white-space: nowrap; }
.opt__side--r { left: auto; right: clamp(-30px, -0.6vw, -6px); transform: translateY(-50%) rotate(90deg); }
.opt__c { background: var(--ink); color: var(--white); display: flex; flex-direction: column; gap: 14px; }
.opt__c h3 { font-family: var(--f-acc); font-size: var(--fs-h3); }
.opt__note { color: rgba(255, 255, 255, .7); font-size: var(--fs-small); }
.opt__rows { display: grid; gap: 10px; margin-top: 4px; }
.five { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, .07); }
.five__n { font-weight: 600; font-size: var(--fs-small); }
.five__p { grid-column: 1; font-size: 13px; color: rgba(255, 255, 255, .72); }
.five__s { grid-row: 1 / span 2; grid-column: 2; background: var(--sun); color: var(--ink); font-weight: 700; border-radius: var(--r-pill); padding: 6px 12px; font-size: 14px; }
.opt__d { background: var(--sand); display: flex; flex-direction: column; gap: 14px; justify-content: flex-end; overflow: hidden; }
.opt__dr { position: absolute; right: 6%; top: 8%; width: clamp(110px, 10vw, 220px); mix-blend-mode: multiply; opacity: .9; }
.opt__big { font-family: var(--f-acc); font-weight: 700; font-size: var(--fs-h3); max-width: 22ch; line-height: 1.2; }
.opt__d .btn { align-self: flex-start; }

/* 8 · how to get it: R35 P10 drawn cards; the warehouse is a real photo of the client (Maps) */
.how { background: var(--white); margin-top: clamp(110px, 11vw, 240px); }
.how__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.4vw, 28px); }
.how__c { border-radius: 30px; padding: clamp(22px, 2vw, 40px); display: flex; flex-direction: column; gap: 12px; min-height: 100%; }
.how__c h3 { font-family: var(--f-acc); font-size: var(--fs-h3); }
.how__c--sun { background: var(--sun); }
.how__c--photo { background: var(--cream); }
.how__c--ink { background: var(--ink); color: var(--white); }
.how__dr { width: clamp(120px, 11vw, 230px); height: auto; margin-bottom: 6px; mix-blend-mode: multiply; }
.how__c--ink .how__dr, .opt__c .dr { mix-blend-mode: normal; filter: invert(1) brightness(1.8); }
.how__big { font-weight: 700; font-size: calc(var(--fs-body) * 1.05); }
.how__ph { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 10; margin-bottom: 6px; }
.how__ph img:first-child { width: 100%; height: 100%; object-fit: cover; }
.how__dr--on { position: absolute; right: 10px; bottom: 6px; width: 34%; background: rgba(255, 255, 255, .88); border-radius: 14px; padding: 6px; mix-blend-mode: normal; margin: 0; }
.how__hours { color: var(--ink-2); font-size: var(--fs-small); }

/* 9 · reviews */
.rev { display: grid; grid-template-columns: .8fr 1.6fr; gap: clamp(24px, 3vw, 70px); align-items: start; }
.rev__side { position: sticky; top: 140px; display: grid; gap: 22px; }
.rev__score { display: flex; align-items: center; gap: 16px; }
.rev__score b { font-family: var(--f-acc); font-size: clamp(56px, 4.4vw, 104px); line-height: .9; }
.stars { display: flex; gap: 2px; color: #f2a312; }
.stars svg { width: 20px; height: 20px; }
.rev__list { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.3vw, 26px); }
.rv { background: var(--white); border-radius: var(--r-card); padding: clamp(20px, 1.8vw, 34px); display: flex; flex-direction: column; gap: 14px; border: 1px solid #efe5d6; }
.rv__q { font-family: var(--f-acc); font-weight: 700; font-size: calc(var(--fs-body) * 1.12); line-height: 1.3; }
.rv__t { color: var(--ink-2); font-size: var(--fs-small); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.rv__who { margin-top: auto; display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--ink-2); }
.rv__who b { color: var(--ink); }

/* 10 · before you buy */
.faq { background: var(--sand); margin-top: clamp(110px, 11vw, 240px); }
.faq__grid { display: grid; grid-template-columns: .8fr 1.6fr; gap: clamp(24px, 3vw, 70px); align-items: start; }
.faq__dr { width: clamp(160px, 14vw, 300px); margin-top: 26px; mix-blend-mode: multiply; }
.faq__list { display: grid; gap: 12px; }
.qa { background: var(--white); border-radius: 22px; padding: 0 clamp(18px, 1.6vw, 30px); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 76px;
  font-family: var(--f-acc); font-weight: 700; font-size: var(--fs-h3); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--sun); display: grid; place-items: center;
  font-family: var(--f-txt); font-size: 26px; transition: transform .3s var(--ease); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { padding-bottom: 14px; max-width: 62ch; }
.qa .link-arrow { margin-bottom: 22px; }
.qa__warn { color: var(--clay); font-weight: 600; }

/* 11 · recipes: R35 P12 */
.rc__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.3vw, 28px); }
.rc { display: flex; flex-direction: column; gap: 12px; background: var(--white); border-radius: var(--r-card); padding: 10px 10px 18px; border: 1px solid #efe5d6; position: relative; }
.rc__ph { border-radius: var(--r-plate); overflow: hidden; aspect-ratio: 1.15; background: var(--sand); }
.rc__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.rc:hover .rc__ph img { transform: scale(1.04); }
.rc__t { font-weight: 600; font-size: calc(var(--fs-body) * .98); line-height: 1.3; padding: 0 8px; padding-right: 58px; }
.rc__m { font-size: 13px; color: var(--ink-2); padding: 0 8px; }
.rc .circle-btn { position: absolute; right: 16px; bottom: 16px; width: 46px; height: 46px; }

/* ---------- 1440 → 2560: nothing pinned to px except tap targets ---------- */
@media (min-width: 2000px) {
  .grid4 { gap: 32px; }
}
@media (max-width: 1100px) and (min-width: 768px) {
  .grid4, .rc__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust__row { grid-template-columns: 1fr 1fr; }
  .rev, .faq__grid { grid-template-columns: 1fr; }
  .rev__side { position: static; }
}

/* ---------- phone: R61 taken whole · R49 colour-filled first screen ---------- */
@media (max-width: 767px) {
  .hero { min-height: 0; display: block; }
  .hero__media { position: relative; inset: auto; height: auto; aspect-ratio: auto; min-height: 0; background: var(--sun); border-radius: 0 0 36px 36px; padding: 26px 16px 0; display: flex; flex-direction: column; }
  .hero__poster, .hero__video { position: relative; inset: auto; order: 2; width: calc(100% + 32px); max-width: none; margin: 8px -16px 0; height: 360px; object-position: 50% 80%;
    -webkit-mask: linear-gradient(180deg, transparent 0, #000 22%); mask: linear-gradient(180deg, transparent 0, #000 22%); }
  .hero__video { display: none; }
  .hero__veil { display: none; }
  .hero__in { position: absolute; top: 26px; left: 0; right: 0; padding: 0; }
  .hero__h1 { font-size: 34px; max-width: 11ch; }
  .hero__sub { font-size: 16px; max-width: 28ch; }
  .hero__btn { width: 100%; }
  .hero__cta { position: relative; z-index: 2; }
  .hero__media::before { content: ""; display: block; height: 300px; order: 1; }
  .cats { margin-top: 16px; padding-bottom: 0; }
  .cats__row { grid-auto-flow: row; grid-template-columns: 1fr 1fr; grid-auto-columns: auto; overflow: visible; margin-right: 0; padding-right: 0; gap: 12px; }
  .cats__row .ct:nth-child(n + 5) { display: none; }
  .cats .ct { height: auto; aspect-ratio: 1.15; border-radius: 18px; padding: 14px; }
  .cats .ct__t { font-size: 20px; max-width: 9ch; }
  .cats .ct img { width: 76%; height: 88%; right: -10%; bottom: -14%; }
  .cats__arrows { display: none; }
  .cats__foot .btn { width: 100%; }
  .trust { margin-top: 28px; background: transparent; }
  .trust__row { display: flex; overflow-x: auto; gap: 12px; padding: 4px 0 4px; scrollbar-width: none; }
  .trust__i { flex: 0 0 74%; flex-direction: column; align-items: flex-start; background: #e9f3dc; background: var(--butter); border-radius: 20px; padding: 16px; }
  .trust__dr { width: 56px; }
  .grid4 { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 46%; overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 10px; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .grid4::-webkit-scrollbar { display: none; }
  .grid4 > * { scroll-snap-align: start; }
  .pc__tag { padding: 4px 2px 8px 10px; }
  .pc__price { font-size: 19px; }
  .pc .wt button { min-height: 34px; min-width: 0; padding: 0 9px; font-size: 13px; }
  .pc .add { min-height: 42px; padding: 0 10px 0 4px; font-size: 13px; margin-left: 0; width: 100%; }
  .pc .add i { width: 32px; height: 32px; }
  .pc__foot { flex-wrap: wrap; }
  .pc .step { width: 100%; justify-content: space-between; margin-left: 0; }
  .kinds { margin-bottom: 18px; }
  .kind { width: 74px; font-size: 12px; }
  .pills { gap: 10px; }
  .pill { padding: 10px 18px; font-size: 17px; }
  .cell { display: none; }
  .opt__grid { grid-template-columns: 1fr; gap: 10px; }
  .opt__grid > * { min-height: 0; border-radius: 26px; }
  .opt__b { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
  .opt__mask { width: 64%; }
  /* the side captions of R38 G5 read sideways only on a wide block; on the phone they stand as a caption above and below */
  .opt__side, .opt__side--r { position: static; transform: none; font-size: 13px; }
  .how__grid, .rev__list, .faq__grid, .rev { grid-template-columns: 1fr; }
  .rev__side { position: static; }
  .rev__list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .rev__list > * { flex: 0 0 86%; scroll-snap-align: start; }
  .faq__dr { display: none; }
  .qa summary { font-size: 18px; min-height: 64px; }
  .rc__grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 70%; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
}
