/*! за Хлебом — zaxlebom.ru
   Part 2b/6: hero variants for review (B and C).

   PREVIEW ONLY. index.html keeps B and C as inert markup inside <xmp> and the
   script by the footer turns the one named by ?hero=a|b|c into real elements.
   Once a variant is chosen: leave its <section> in place as plain markup, delete
   the two <xmp> blocks, move its rules into 02-hero.css, then delete this file,
   its <link>, the <script> by the footer and the unused .heroA/.heroB/.heroC
   blocks in 05-responsive.css. */

/* B and C arrive as markup text inside <xmp id="tpl-hero-…">, which browsers keep
   as inert text: nothing in it is fetched, and the script by the footer re-inserts
   only the chosen hero. Once a variant is picked this file disappears together with
   the two <xmp> blocks and that script. */

/* ---------- B — split: copy on the left, a portrait "window" on the right ----------
   The calmer option: everything above the fold, photo cropped 3:4 so the cup,
   the hand and the dessert all stay in frame. */
.heroB-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  padding-block: clamp(30px, 4.6vw, 62px) clamp(34px, 5vw, 68px);
}
.heroB-title { font-size: var(--t-hero); }

/* the underlined word: same gesture as the letterhead in A — a slim red rule
   sitting inside the letters' lower zone, slightly tilted, so it reads as a
   printer's mark rather than a sticker */
.heroB-sticker {
  position: relative;
  display: inline-block;
  z-index: 0;
}
.heroB-sticker::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -.04em;
  right: -.04em;
  bottom: .04em;
  height: .2em;
  border-radius: 3px 8px 5px 2px;
  background: var(--orange);
  transform: rotate(-.7deg);
}

.heroB-lead { margin-top: clamp(18px, 2.4vw, 26px); }
.heroB-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: clamp(24px, 3vw, 32px); }

.heroB-side { position: relative; }
.heroB-figure { position: relative; margin: 0; }
/* a second plane behind the photo: the page reads as a stack of paper */
.heroB-figure::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border-radius: var(--radius);
  background: var(--cream-2);
  border: 1px solid var(--line);
}
.heroB-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 58% 45%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
}

/* ---------- C — asymmetric: headline as the object, photo breaks the grid ----------
   The most "designed" option: a large headline with a sketched underline,
   the photo offset past the right edge, a footnote strip along the bottom. */
.heroC-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: end;
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(18px, 2.6vw, 34px) clamp(20px, 2.6vw, 32px);
}
.heroC-copy { position: relative; z-index: 2; padding-bottom: clamp(10px, 3vw, 44px); }
.heroC-title { font-size: clamp(2.9rem, 1.6rem + 5.4vw, 5.6rem); line-height: 1.0; letter-spacing: -.035em; }
.heroC-word { position: relative; display: inline-block; }
.heroC-word::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -.2em;
  height: 9px;
  background: var(--orange);
  border-radius: 40% 60% 55% 45% / 60% 50% 50% 40%;
  transform: rotate(-1.2deg) scaleX(1.02);
  transform-origin: left center;
}
.heroC-lead { margin-top: clamp(26px, 3.6vw, 40px); }
.heroC-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: clamp(22px, 3vw, 30px); }

.heroC-figure {
  position: relative;
  margin: 0 0 0 auto;
  width: 100%;
}
.heroC-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 60% 42%;
  border-radius: var(--radius) 0 0 var(--radius);
  box-shadow: var(--shadow-2);
}
.heroC-caption {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  margin-top: clamp(16px, 2vw, 24px);
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
