/* HotSki — home (template 1). Blocks in the order of logic/NEW_MAP.md §1 (coolzone home skeleton). */

/* ---------- B2 hero: layers bg · brand word · cut-out skier · snow · callouts ---------- */
.hero { position: relative; overflow: hidden; background: #2f6fd0; color: var(--ink); }
.hero__stage { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 100vh; min-height: 640px; overflow: hidden; }
.hero__layer { position: absolute; inset: 0; will-change: transform; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero__blur { opacity: 0; }
.hero__wordwrap { pointer-events: none; }
.hero__word {
  position: absolute; left: 0; right: 0; top: 7.5%; text-align: center; white-space: nowrap;
  font-family: var(--f-disp); font-weight: 900; font-size: 30.5vw; line-height: 0.78; letter-spacing: -0.015em;
  color: rgba(255, 255, 255, 0.92); text-transform: uppercase;
}
.hero__word .ch { display: inline-block; will-change: transform; }
.hero__fg { pointer-events: none; }
.hero__snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.hero__callouts { z-index: 4; pointer-events: none; }

/* callout (R12 f_018): red dot with a white ring on the item -> line (two segments) -> glass pill with the item */
.co { position: absolute; left: var(--x); top: var(--y); pointer-events: auto; }
.co__dot { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,0.95); box-shadow: 0 0 0 6px rgba(255,255,255,0.28), 0 4px 16px rgba(0,0,0,0.25); display: grid; place-items: center; cursor: pointer; }
.co__dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.co__dot::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.8); animation: coPulse 2.6s ease-out infinite; }
@keyframes coPulse { 0% { transform: scale(0.6); opacity: 0.9; } 80%, 100% { transform: scale(1.7); opacity: 0; } }
.co__seg { position: absolute; left: 0; top: 0; height: 1.5px; background: rgba(255,255,255,0.95); transform-origin: 0 50%; box-shadow: 0 0 6px rgba(0,0,0,0.12); }
.co__pill {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 7px 18px 7px 7px; border-radius: 999px; white-space: normal;   /* 08.10 (#8): the pill grows with its name */
  color: var(--ink); transform-origin: var(--ox, 0%) 50%;
}
.co__pill img { width: 44px; height: 44px; border-radius: 50%; object-fit: contain; background: var(--surface); }
.co__pill b { display: block; font-weight: 400; font-size: 11.5px; line-height: 1.2; text-transform: uppercase; letter-spacing: 0.02em; width: 190px; white-space: normal; overflow-wrap: anywhere; }
.co__pill > span { min-width: 0; }
.co__pill { width: max-content; max-width: 300px; }   /* 08.10 (#8): its own width — an anchor near the edge no longer squeezes the name out */
.co__pill span { display: block; font-size: 15px; font-weight: 400; margin-top: 2px; }
.co__pill:hover { box-shadow: 0 0 0 1px var(--accent), 0 18px 40px rgba(40,60,90,0.18); }
.co.is-hot .co__dot { box-shadow: 0 0 0 6px rgba(var(--accent-rgb),0.35), 0 4px 16px rgba(0,0,0,0.25); }

.hero__copy { position: absolute; z-index: 5; left: 0; bottom: 5.5%; width: 47%; pointer-events: none; }
.hero__title { font-size: clamp(48px, 4.45vw, 76px); line-height: 0.92; color: var(--ink); max-width: 8.6em; }
.hero__title .ln { overflow: hidden; padding-bottom: 0.04em; }
.hero__hint { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--ink); }
.hero__hint .dot { flex: 0 0 auto; }

/* R01: product card top-right on the photo */
.hero__card {
  position: absolute; z-index: 6; right: var(--pad); top: calc(var(--hdr) + 26px); width: 214px; padding: 12px 14px 16px;
  display: grid; gap: 6px; color: var(--ink); transition: box-shadow 0.3s;
}
.hero__card:hover { box-shadow: 0 0 0 1px rgba(var(--accent-rgb),0.6), 0 24px 50px rgba(40,60,90,0.2); }
.hero__card-top { display: flex; justify-content: space-between; }
.hero__card img { width: 100%; aspect-ratio: 2 / 3; object-fit: contain; background: var(--surface); margin: 2px 0 4px; }
.hero__card-name { line-height: 1.25; }
.hero__scroll { position: absolute; z-index: 5; left: 50%; bottom: 22px; transform: translateX(-50%); }

/* ---------- B3 novelty carousel ---------- */
.novelty .shead { align-items: flex-end; }
.novelty .tabs { padding-bottom: 5px; }

/* ---------- B4 new collection: photo 2/3 + red panel, ski-track dots (R04) ---------- */
.newcol { min-height: 700px; }
.newcol__photo img { transform-origin: 60% 40%; }
.newcol__track { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.newcol__track circle { fill: var(--accent); stroke: #fff; stroke-width: 1.4px; }
.newcol__brands { opacity: 0.85; margin-bottom: 14px; }
/* 08.10 (#1, red panels): the panel holds three products of the collection between the headline and the brands */
.newcol__picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0; }
.newcol__pick { display: grid; gap: 6px; align-content: start; color: var(--white); }
.newcol__pick-img { display: block; aspect-ratio: 2 / 3; background: #fff; }
.newcol__pick-img img { width: 100%; height: 100%; object-fit: contain; }
.newcol__pick-t { text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.25; }
.newcol__pick:hover .newcol__pick-t { text-decoration: underline; }
@media (max-width: 767px) { .newcol__picks { gap: 8px; margin: 18px 0; } }
/* 08.10 (#5, red panels): the shop's own facts fill the panel */
.shops__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; margin: 34px 0 28px; max-width: 520px; }
.shops__facts dt { opacity: 0.8; margin-bottom: 6px; }
.shops__facts dd { margin: 0; }
.shops__facts a { color: inherit; }
@media (max-width: 767px) { .shops__facts { grid-template-columns: 1fr; gap: 14px; margin: 22px 0; } }
/* 09.10 walk #17: rating gone; larger text — label 10 -> 13 px, value 18 -> 24 px, address 15 -> 18 px, shop name 13 -> 20 px;
   «Как добраться» takes the full row so the panel has no empty cell */
.shops__facts dt { font-size: 13px; opacity: 0.9; }
.shops__facts dd { font-size: clamp(20px, 1.5vw, 24px); line-height: 1.25; }
.shops__facts { grid-template-columns: 1fr; gap: 18px; margin: 30px 0 0; }
.shops__facts dd { white-space: nowrap; }
.shops__addr .t15 { font-size: 18px; line-height: 1.45; }
.shops__org { font-size: 20px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.shops__org:hover { opacity: 0.8; }

/* ---------- B5 ready looks ---------- */
.looks { display: grid; grid-template-columns: 338px 1fr 338px; gap: var(--gap); align-items: start; }
.looks__side { display: grid; gap: 18px; align-content: start; }
.looks__sub { max-width: 260px; }
.looks__tabs { display: grid; gap: 12px; justify-items: start; margin-top: 18px; }
.looks__tabs .tab { font-size: 15px; }
.looks__stage { display: grid; gap: 22px; justify-items: start; }
.looks__photo { position: relative; width: 100%; aspect-ratio: 690 / 756; overflow: hidden; background: #1f4fa3; }
.looks__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.looks__photo img.is-leaving { z-index: 1; }
.look-dot { position: absolute; left: var(--x); top: var(--y); width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #fff; display: grid; place-items: center; z-index: 3; cursor: pointer; animation: lookPulse 3s ease-in-out infinite; }
.look-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.look-dot:hover, .look-dot.is-on { animation-play-state: paused; box-shadow: 0 0 0 2px var(--accent); }
.look-dot::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: rgba(255,255,255,0.6); pointer-events: none; animation: lookRing 3s ease-out infinite; }
.look-dot:hover::before, .look-dot.is-on::before { animation: none; opacity: 0; }
@keyframes lookPulse { 0%, 100% { transform: scale(0.9); } 50% { transform: scale(1); } }
@keyframes lookRing { 0% { transform: scale(1); opacity: 0.8; } 60%, 100% { transform: scale(1.65); opacity: 0; } }
.look-tip { position: absolute; z-index: 4; left: var(--x); top: var(--y); transform: translate(18px, -50%); width: 230px; padding: 8px 12px; font-size: 11.5px; line-height: 1.3; text-transform: uppercase; letter-spacing: 0.02em; pointer-events: none; opacity: 0; transition: opacity 0.2s; }
.look-tip.is-left { transform: translate(calc(-100% - 18px), -50%); }
.look-tip.is-left::before { right: auto; left: 100%; }
.look-dot:hover + .look-tip, .look-dot.is-on + .look-tip { opacity: 1; }
.look-tip::before { content: ""; position: absolute; right: 100%; top: 50%; width: 14px; height: 1.5px; background: #fff; }
.looks__items { display: grid; gap: 0; }
.looks__card { position: relative; min-height: 600px; }
.looks__bar { margin-top: 18px; }
.looks__list { counter-reset: li; margin-top: 26px; border-top: 1px solid var(--ink); }
.looks__list li { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; padding: 10px 0; border-bottom: 1px solid #e3e3e3; font-size: 12px; text-transform: uppercase; letter-spacing: 0.02em; cursor: pointer; }
.looks__list li::before { counter-increment: li; content: counter(li); color: var(--accent); }
.looks__list li.is-on { color: var(--accent); }
.looks__sum { margin-top: 14px; display: flex; justify-content: space-between; }
.looks__sum b { font-weight: 400; font-size: 18px; text-transform: none; }

/* ---------- B6 wave ---------- */
.wave { position: relative; padding: 40px 0 70px; overflow: hidden; }
.wave__media { position: relative; height: 620px; }
.wave__gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.wave__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: url(#waveClip); }
.wave.has-gl .wave__img { visibility: hidden; }
.wave__fallback { position: absolute; width: 0; height: 0; }
.wave__copy { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-top: -170px; z-index: 2; }
.wave__title { max-width: 900px; width: fit-content; padding: 14px 22px 16px; margin-left: -22px; border-radius: 10px; background: rgba(255, 255, 255, 0.84); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }   /* 11.10 (#34): frosted plate, the heading reads where it crosses the snow */
.wave__btn { flex: 0 0 auto; margin-bottom: 6px; background: var(--red); border-color: var(--red); color: var(--white); }   /* 11.10 (#34): solid brand red, white text 4.85:1 on any photo */
.wave__btn:hover, .wave__btn:focus-visible { background: #c40f16; border-color: #c40f16; box-shadow: none; }
.wave__ice { position: absolute; z-index: 3; right: var(--pad); top: 12px; width: 268px; }
.wave__ice img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.wave__ice-tag { position: absolute; left: 12px; right: 12px; bottom: 12px; display: grid; gap: 4px; padding: 12px 14px; }
.wave__ice:hover img { transform: scale(1.02); }
.wave__ice img { transition: transform 0.8s var(--ease-out); }

/* ---------- B7 kids ---------- */
.kids__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; margin-bottom: 36px; }
.kids__aside { max-width: 420px; display: grid; gap: 14px; justify-items: start; }
.kids__grid { display: grid; grid-template-columns: 1.15fr 0.95fr 1.1fr; gap: 0; min-height: 640px; }
.kids__grid > * { min-width: 0; }
.kids__portrait { margin: 0; position: relative; overflow: hidden; min-height: 640px; }
.kids__portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.kids__panel { position: relative; background: var(--accent); color: var(--white); padding: 24px 22px; display: flex; flex-direction: column; gap: 16px; }
.kids__quote { margin: 0; max-width: 300px; }
.kids__polaroid { position: absolute; right: -54px; bottom: 44px; width: 250px; margin: 0; padding: 12px 12px 44px; background: #fff; box-shadow: 0 18px 40px rgba(0,0,0,0.22); transform: rotate(4deg); z-index: 2; }
.kids__polaroid img { width: 100%; aspect-ratio: 1 / 1.08; object-fit: cover; }
.kids__polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; color: var(--accent); font-size: 34px; }
.kids__rail { background: var(--accent); padding: 22px 22px 22px 70px; display: flex; flex-direction: column; gap: 18px; color: var(--white); }
.kids__bar .arr { background: transparent; border-color: #fff; color: #fff; }
.kids__bar .car__progress { background: rgba(255,255,255,0.5); }
.kids__bar .car__progress i { background: #fff; }
.kids__car { background: transparent; }
.kids__car .car__track > * { flex: 0 0 100%; }
.kids__car .pcard { color: var(--white); }
.kids__car .pcard__meta { color: rgba(255,255,255,0.75); }
.kids__car .pcard__media { background: #fff; }

/* ---------- B8 shops ---------- */
.shops { min-height: 560px; grid-template-columns: 1fr 1fr; }
.shops__photo img { opacity: 0; transition: opacity 0.85s ease-in-out, transform 1.4s var(--ease-out); transform: scale(1.04); }
.shops__photo img.is-on { opacity: 1; transform: none; }
.shops__tabs { display: grid; gap: 12px; justify-items: start; margin-top: 26px; }
.tab--w { color: var(--white); }
.tab--w::after { background: var(--white); }
.shops__info { position: relative; min-height: 120px; }
.shops__addr { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 16px; opacity: 0; transform: translateY(10px); transition: opacity 0.4s, transform 0.5s var(--ease-out); pointer-events: none; }
.shops__addr.is-on { opacity: 1; transform: none; pointer-events: auto; }
.shops__addr p { max-width: 420px; }

/* ---------- B9 seo ---------- */
.seo { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; padding-bottom: 70px; }
.seo__text { display: grid; gap: 16px; max-width: 760px; }
.seo__text.t15 { font-size: clamp(17px, 1.05vw, 19px); line-height: 1.6; }   /* 08.10 (#6): 15 px -> 17-19 px, «шрифт чуть побольше» */

/* ================= adaptive — ADAPTIVE.md §1–5 (26.09): the same content, another packaging; the 1440 view is untouched =================
   xl >=1600 · lg 1200–1599 (the 1440 layout) · md 768–1199 (tablet: burger, hero 16:10) · sm <=767 (phone: bottom bar, portrait hero).
   The hero callout points are percent of the photo, mapped through object-fit: cover by js/home.js — dots stay on the items. */

.hero__row { display: none; }   /* the items of the skier as a row — phone only */

/* ---------- lg: below 1440 the hero card narrows with the frame, so the trousers pill never slides under it ----------
   (1440: card 214, photo 184x255 inside the 1px ice border — the height="255" attribute used to fix the height, now the proportion does) */
@media (min-width: 1200px) {
  .hero__card { width: min(214px, calc(26.87vw - 168px)); }
  .hero__card img { height: auto; aspect-ratio: 184 / 255; }
}

/* ---------- xl: the grid of four grows (coolzone 1920: columns 433), photos grow with it ---------- */
@media (min-width: 1600px) {
  .looks { grid-template-columns: calc((100% - 3 * var(--gap)) / 4) minmax(0, 1fr) calc((100% - 3 * var(--gap)) / 4); }
  .newcol { min-height: clamp(700px, 45vw, 860px); }
  .shops { min-height: clamp(560px, 36vw, 700px); }
  .wave__media { height: clamp(620px, 40vw - 20px, 760px); }
}

/* ---------- md: tablet and small laptop ---------- */
@media (min-width: 768px) and (max-width: 1199px) {
  /* hero: frame 16:10, smaller pills and card; anchors retuned in js (CALLOUTS_MD) */
  .hero__stage { aspect-ratio: 16 / 10; min-height: 0; }
  .hero__copy { width: 50%; bottom: 6%; }
  .hero__title { font-size: calc(3.125vw + 14px); }
  .hero__hint { margin-top: 14px; }
  .hero__card { width: clamp(118px, 12.5vw + 22px, 170px); top: calc(var(--hdr) + 8px); padding: 9px 10px 11px; gap: 4px; }
  .hero__card img { height: auto; aspect-ratio: 184 / 255; }
  .hero__card-name { font-size: 11px; }
  .hero__card-meta { font-size: 10.5px; }
  .hero__card-price { font-size: 15px; }
  .co__pill { gap: 7px; padding: 4px 11px 4px 4px; width: max-content; }   /* its own width, not the room left at its anchor */
  .co__pill > span { flex: 0 0 auto; }
  .co__pill img { width: 30px; height: 30px; }
  .co__pill b { font-size: 9.5px; width: 132px; line-height: 1.2; }
  .co__pill span { font-size: 12.5px; margin-top: 1px; line-height: 1.2; }

  .newcol { min-height: 520px; }

  /* looks: title row on top, then the photo (stays in view) and the item column */
  .looks { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); row-gap: 26px; column-gap: 22px; }
  .looks__side { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 40px; }
  .looks__sub { max-width: 320px; margin-left: auto; }
  .looks__tabs { flex: 1 1 100%; display: flex; gap: 22px; margin-top: 4px; }
  .looks__stage { position: sticky; top: calc(var(--hdr) + 16px); }
  .looks__card { min-height: 0; }
  .look-tip { width: clamp(140px, 42%, 230px); }

  /* kids: three columns stay, narrower polaroid and rail padding */
  .kids__grid { grid-template-columns: 1fr 0.9fr 1.1fr; min-height: 560px; }
  .kids__portrait { min-height: 560px; }
  .kids__quote { max-width: none; }
  .kids__polaroid { width: clamp(150px, 16vw + 30px, 250px); right: -34px; bottom: 34px; padding: 9px 9px 34px; }
  .kids__polaroid figcaption { font-size: 26px; bottom: 5px; }
  .kids__rail { padding: 20px 18px 20px 48px; }

  .shops { min-height: 480px; }
  .seo { gap: 32px; }
}

/* ---------- sm: phone ---------- */
@media (max-width: 767px) {
  /* hero: portrait frame on the skier, the brand word stands at the left edge (R10: tops to the edge), behind the skier */
  .hero { background: var(--white); }
  .hero__stage { aspect-ratio: 4 / 5; min-height: 0; max-height: none; background: #2f6fd0; }
  .hero__img { object-position: 62% 30%; }
  .hero__word { left: 1.5vw; right: auto; top: 76vw; font-size: 27vw; text-align: left; transform: rotate(-90deg); transform-origin: 0 0; }
  .hero__card { display: none; }   /* its item, brand, sizes and price open the row below */
  .hero__copy { position: relative; left: auto; bottom: auto; width: auto; padding-top: 22px; }
  .hero__title { font-size: clamp(34px, 10.2vw, 60px); max-width: 9em; }
  .hero__hint { margin-top: 14px; }
  .hero__scroll { position: static; transform: none; display: flex; justify-content: center; padding: 20px 0 4px; }

  /* callouts: the dot stays on the item; its line and pill wait for a tap, one open at a time (§5) */
  .co__seg, .co__pill { opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0s 0.4s; }
  .co__pill { width: max-content; transform: scale(0.85); gap: 10px; padding: 6px 14px 6px 6px; transition: opacity 0.3s, transform 0.45s var(--ease-out), visibility 0s 0.45s; }
  .co__pill > span { flex: 0 0 auto; }
  .co__pill img { width: 38px; height: 38px; }
  .co__pill b { font-size: 10px; width: 168px; }
  .co__pill span { font-size: 13px; }
  .co.is-open .co__seg, .co.is-open .co__pill { opacity: 1; visibility: visible; transition-delay: 0s; }
  .co.is-open .co__pill { transform: none; }
  .co.is-open .co__dot { box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0.35), 0 4px 16px rgba(0, 0, 0, 0.25); }
  .co__dot { width: 22px; height: 22px; left: -11px; top: -11px; }

  /* the row: the same card as the hero card, one per item, under the photo and a little over its snow */
  .hero__row {
    display: flex; gap: 10px; position: relative; z-index: 6; margin-top: -26px; padding: 0 var(--pad) 2px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .hero__row::-webkit-scrollbar { display: none; }
  .hero__item {
    flex: 0 0 min(256px, 72vw); scroll-snap-align: start; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px;
    align-items: center; padding: 8px 12px 8px 8px; color: var(--ink); transition: box-shadow var(--tr);
  }
  .hero__item img { width: 52px; height: auto; aspect-ratio: 2 / 3; object-fit: contain; background: var(--surface); }
  .hero__item-txt { display: grid; gap: 3px; }
  .hero__item-top { display: flex; justify-content: space-between; }
  .hero__item-name { font-size: 11px; line-height: 1.25; text-transform: uppercase; letter-spacing: 0.02em; }
  .hero__item-meta { font-size: 10px; line-height: 1.3; color: var(--gray); }
  .hero__item-price { font-size: 15px; font-weight: 400; }
  .hero__item.is-on { box-shadow: 0 0 0 1px var(--accent), 0 14px 30px rgba(40, 60, 90, 0.16); }

  /* novelty: «Смотреть все» on its own line, full width (coolzone 375) */
  .novelty .car__bar { flex-wrap: wrap; }
  .novelty .car__bar .btn { flex: 1 1 100%; }

  .newcol { min-height: 0; }

  /* looks: photo full width with its dots, then the item (compact card), the list with the sum, the button last */
  .looks { display: flex; flex-direction: column; gap: 0; }
  .looks__side { gap: 10px; }
  .looks__sub { max-width: none; }
  .looks__tabs { display: flex; gap: 22px; margin-top: 6px; }
  .looks__stage { display: contents; }
  .looks__photo { order: 2; margin-top: 22px; }
  .looks__items { order: 3; margin-top: 18px; }
  .looks__all { order: 4; width: 100%; margin-top: 22px; }
  .looks__card { min-height: 0; }
  .looks__card .pcard { display: grid; grid-template-columns: 36% minmax(0, 1fr); gap: 0 14px; align-items: start; }
  .looks__card .pcard__body { padding-top: 2px; }
  .looks__card .pcard__arr--r { right: auto; left: calc(36% - 32px); }
  .looks__card .pcard__fav { right: auto; left: calc(36% - 28px); }
  .looks__list { margin-top: 18px; }
  .look-tip { width: clamp(130px, 44%, 230px); }
  .look-dot { width: 26px; height: 26px; margin: -13px 0 0 -13px; }

  /* wave: lower, the slogan and the ice card under it */
  .wave { padding: 20px 0 44px; }
  .wave__media { height: clamp(240px, 66vw, 460px); }
  .wave__copy { margin-top: 6px; flex-direction: column; align-items: flex-start; gap: 18px; }
  .wave__title { padding: 0; margin-left: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .wave__btn { margin-bottom: 0; }
  .wave__ice { position: relative; right: auto; top: auto; display: block; width: min(68%, 268px); margin: 28px var(--pad) 0 auto; }

  /* kids: a column — portrait, the red review with the polaroid, the red rail with one card */
  .kids__head { flex-direction: column; gap: 14px; margin-bottom: 22px; }
  .kids__aside { max-width: none; }
  .kids__grid { grid-template-columns: 1fr; min-height: 0; margin: 0 calc(-1 * var(--pad)); }
  .kids__portrait { min-height: 0; aspect-ratio: 4 / 5; }
  .kids__panel { padding: 24px var(--pad) 26px; }
  .kids__quote { max-width: none; }
  .kids__polaroid { position: relative; right: auto; bottom: auto; align-self: flex-end; width: min(58%, 250px); margin: 6px 4px -70px 0; }
  .kids__rail { padding: 64px var(--pad) 26px; }

  /* shops: a column (photo 4:5, then the panel) */
  .shops { grid-template-columns: 1fr; min-height: 0; }

  .seo { grid-template-columns: 1fr; gap: 18px; padding-bottom: 44px; }
}


/* ---------- P8 summer set (07.10): the same eleven-block skeleton, the client's summer photos (logic/NEW_MAP_SEASON.md §3) ---------- */
.hero--leto .hero__word { font-size: 20.5vw; top: 5.5%; }
.newcol--leto .newcol__track { display: none; }   /* the ski-track dots crossed the bike's wheel on the summer photo */
.hero__card.hero__card--leto img { aspect-ratio: 4 / 3; height: auto; object-fit: contain; background: #fff; }
.hero--leto .co__pill img, .hero--leto .hero__item img { object-fit: contain; background: #fff; }
.hero--leto .co__pill b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* the helmet reaches the header: a soft shade under the white header line keeps «Мы работаем…» readable */
.hero--leto .hero__stage::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 150px; z-index: 4; pointer-events: none;
  background: linear-gradient(rgba(6, 38, 86, 0.42), rgba(6, 38, 86, 0)); }

/* B6а categories: five tiles of the client's summer categories, square photos cut around each object */
.lcats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
.lcat { display: grid; gap: 10px; align-content: start; color: var(--ink); }
.lcat__img { display: block; aspect-ratio: 1; overflow: hidden; background: var(--surface); }
.lcat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.lcat:hover .lcat__img img { transform: scale(1.045); }
.lcat__name { font-size: 15px; line-height: 1.2; text-transform: uppercase; letter-spacing: 0.02em; }
.lcat:hover .lcat__name { color: var(--accent); }
.lcat__n { color: var(--gray); margin-top: -4px; }

/* B5 kit: the photo is wide (16:9), so the title runs above and the item column stands at its right */
.looks.looks--kit .looks__photo { aspect-ratio: 16 / 9; background: var(--surface); }
@media (min-width: 1200px) {
  .looks.looks--kit { grid-template-columns: minmax(0, 1fr) clamp(300px, 24vw, 433px); row-gap: 26px; }
  .looks.looks--kit .looks__side { grid-column: 1 / -1; }
}

/* B6 summer wave and its product card (the client's photo on white, the whole bike in the frame) */
.wave--leto .wave__img { clip-path: url(#waveClipL); }
.wave__ice.wave__ice--leto img { aspect-ratio: 4 / 3; object-fit: contain; background: #fff; }

/* B7 summer kids: photo of the child on the HORST Scarto + the rail of kids' bikes */
.kids.kids--leto .kids__aside { max-width: 560px; }
.kids.kids--leto .kids__grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.kids.kids--leto .kids__portrait img { object-position: 35% 50%; }
.kids.kids--leto .kids__rail { padding-left: 22px; }

/* B8 summer shop: one shop, the client's news under its name */
.shops--leto .shops__name { margin-top: 20px; }
.shops--leto .shops__news { display: grid; gap: 6px; max-width: 440px; margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.45); }
.shops--leto .shops__info { min-height: 0; }
.shops--leto .shops__addr { position: relative; gap: 10px; }

@media (min-width: 768px) and (max-width: 1199px) {
  .lcats { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
  .lcat__name { font-size: 12.5px; }
}
@media (max-width: 767px) {
  .hero--leto .hero__img { object-position: 74% 50%; }
  .hero--leto .hero__word { font-size: 19vw; top: 108vw; }
  .lcats { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(62vw, 260px); overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0; padding: 0 var(--pad); scroll-padding: 0 var(--pad); scrollbar-width: none; overscroll-behavior-x: contain; }   /* the row is the .wrap itself: no negative margin (360: 376 px wide, accept_widths 08.10) */
  .lcats::-webkit-scrollbar { display: none; }
  .lcat { scroll-snap-align: start; }
  .kids.kids--leto .kids__grid { grid-template-columns: 1fr; }
  .kids.kids--leto .kids__portrait { aspect-ratio: 4 / 3; }
  .kids.kids--leto .kids__rail { padding: 22px var(--pad) 26px; }
}
