/*
 * Homepage widgets ("Калпазани" Elementor widgets). Spec: mockup 1 (desktop 1440,
 * mobile 390) and the style guide (1.3 spacing, 1.4 tiles and doodles, 2.4 cards).
 * Tablet (768–1199) is derived. Tokens only (tokens.css section 7).
 * Loaded only on pages that use a theme widget (inc/elementor.php).
 */

/* ── Elementor wrappers: the widgets bring their own container and spacing ── */
.elementor .e-con:has(> .elementor-widget[class*="elementor-widget-kz-"]) {
  --padding-top: 0;
  --padding-right: 0;
  --padding-bottom: 0;
  --padding-left: 0;
  --gap: 0;
  --row-gap: 0;
  --column-gap: 0;
  --widgets-spacing: 0;
}

.elementor-widget[class*="elementor-widget-kz-"] {
  width: 100%;
  margin: 0;
}

/* Elementor resets every image inside its content (.elementor img { height: auto;
   border-radius: 0 }), which is more specific than the theme's own rules: restore them. */
.elementor .product-card__image,
.elementor .kz-hero__img,
.elementor .kz-promo__media img,
.elementor .kz-bubble__media img,
.elementor .kz-store__media img,
.elementor .kz-post__media img {
  height: 100%;
}

.elementor .product-card__image {
  border-radius: inherit;
}

/* ── Shared ─────────────────────────────────────────────────────────── */
.kz-section {
  padding-top: var(--section-gap);
}

.kz-head {
  position: relative;
  z-index: 1; /* above the product rows' scroll padding */
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.kz-head .section-title {
  margin: 0;
}

.kz-head__more {
  margin-left: auto;
  font-family: var(--font-heading);
  font-size: var(--fs-body-s);
  font-weight: var(--fw-bold);
  text-decoration: none;
  white-space: nowrap;
}

.kz-head__more:hover {
  text-decoration: underline;
}

.section-title__marker--yellow { background: var(--tile-yellow); }

/* Logo-tile colours (.tile--*) and the tilted section marker: components.css */

/* Rotated badge tile ("Есен 2026", "−20%", "Ново!") */
.kz-tile {
  display: inline-block;
  padding: var(--badge-pad);
  border-radius: var(--radius-tile);
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-snug);
  transform: rotate(var(--tile-rotate-badge));
}

.kz-rotate-badge { transform: rotate(var(--tile-rotate-badge)); }
.kz-rotate-d     { transform: rotate(var(--rotate-d)); }

/* Two versions of a text: the long one from 768px, the short one on phones */
.kz-only-narrow { display: none; }

@media (max-width: 767px) {
  .kz-only-wide   { display: none; }
  .kz-only-narrow { display: inline; }
}

/* Doodles (guide 1.4): decorative, never on phones */
.kz-doodle {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.kz-doodle--star {
  width: var(--doodle-star);
  height: var(--doodle-star);
  fill: var(--tile-orange);
}

.kz-doodle--squiggle {
  width: var(--doodle-squiggle-w);
  height: var(--doodle-squiggle-h);
  fill: none;
  stroke: var(--color-ink);
  stroke-width: 2.5;
  stroke-linecap: round;
}

@media (max-width: 767px) {
  .kz-doodle { display: none; }
}

/* Phones: a row that scrolls sideways (categories, brands, stores, posts) */
@media (max-width: 767px) {
  /* ul.… outranks the list's own layout rules further down */
  ul.kz-swipe-narrow {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--space-4);
    margin-inline: calc(var(--container-pad) * -1);
    padding-inline: var(--container-pad);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--container-pad);
    scrollbar-width: none;
  }

  ul.kz-swipe-narrow::-webkit-scrollbar {
    display: none;
  }

  ul.kz-swipe-narrow > li {
    flex: none;
    scroll-snap-align: start;
  }
}

/* Editor only: a widget with nothing to show */
.kz-widget-empty {
  margin: var(--space-4) var(--container-pad);
  padding: var(--space-4);
  border: var(--border-dashed);
  border-radius: var(--radius-card);
  color: var(--color-muted);
  text-align: center;
}

/* ── Hero + promo tiles ─────────────────────────────────────────────── */
.kz-hero {
  padding-top: var(--space-7);
}

.kz-hero__grid {
  display: grid;
  gap: var(--grid-gap);
}

@media (min-width: 1200px) {
  .kz-hero__grid {
    grid-template-columns: 2fr 1fr;
  }

  .kz-hero__grid--solo {
    grid-template-columns: minmax(0, 1fr);
  }
}

.kz-hero__main {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--radius-panel);
  background: var(--tint-yellow);
}

@media (min-width: 768px) {
  .kz-hero__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: var(--hero-min-h);
  }
}

/* Desktop: more room for the text (3 : 2) so the title stays on two lines */
@media (min-width: 1200px) {
  .kz-hero__main {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }
}

.kz-hero .kz-hero__title { /* outranks the base rule below: max two lines */
  font-size: var(--fs-hero-title);
}

.kz-hero__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-5);
  padding: var(--hero-pad);
}

.kz-hero__badge {
  padding: var(--badge-hero-pad);
  font-size: var(--fs-badge-hero);
  transform: rotate(var(--rotate-a));
}

.kz-hero__title {
  margin: 0;
  font-size: var(--fs-h1);
  font-weight: var(--fw-black);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  text-wrap: balance;
}

.kz-hero__text {
  max-width: var(--hero-text-w);
  margin: 0;
  color: var(--color-text-2);
  font-size: var(--fs-body-l);
  line-height: var(--lh-body);
}

.kz-hero__media {
  position: relative;
  min-height: var(--hero-media-h);
}

.kz-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kz-hero__star {
  top: var(--doodle-hero-y);
  left: var(--doodle-hero-x);
}

.kz-hero__squiggle {
  bottom: var(--squiggle-hero-y);
  left: var(--squiggle-hero-x);
}

@media (max-width: 767px) {
  .kz-hero {
    padding-top: 0;
  }

  .kz-hero__body {
    gap: var(--space-3);
  }

  .kz-hero__media {
    order: -1;
    height: var(--hero-media-h);
  }

  .kz-hero__media--empty,
  .kz-hero__text {
    display: none;
  }
}

/* Promo tiles: stacked on the right (desktop), side by side below (tablet, phones) */
.kz-hero__tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap);
}

@media (min-width: 1200px) {
  .kz-hero__tiles {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 1fr;
  }
}

.kz-promo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--promo-media);
  align-items: center;
  gap: var(--space-4);
  padding: var(--promo-pad);
  border-radius: var(--radius-panel);
  color: var(--color-ink);
  text-decoration: none;
}

.kz-promo--no-media {
  grid-template-columns: minmax(0, 1fr);
}

.kz-promo__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

.kz-promo__badge {
  font-size: var(--fs-badge-promo);
}

.kz-promo__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-snug);
}

.kz-promo__link {
  font-family: var(--font-heading);
  font-size: var(--fs-body-s);
  font-weight: var(--fw-bold);
  text-decoration: underline;
  text-underline-offset: .25em;
}

a.kz-promo:hover .kz-promo__link {
  text-decoration-thickness: .125em;
}

.kz-promo__media {
  height: var(--promo-media);
  overflow: hidden;
  border-radius: var(--radius-card);
}

.kz-promo__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
  .kz-promo {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2);
    border-radius: var(--radius-card);
  }

  .kz-promo__body {
    gap: var(--space-2);
  }

  .kz-promo__media,
  .kz-promo__link {
    display: none;
  }
}

/* ── Category bubbles ───────────────────────────────────────────────── */
.kz-cats__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 1200px) {
  .kz-cats__list {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

.kz-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  color: var(--color-ink);
  text-align: center;
  text-decoration: none;
}

.kz-bubble__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--bubble);
  height: var(--bubble);
  overflow: hidden;
  border-radius: var(--radius-round);
  transition: transform var(--dur-base) var(--ease-out);
}

.kz-bubble:hover .kz-bubble__media {
  transform: var(--lift-card);
}

.kz-bubble__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kz-bubble__letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--bubble-letter);
  height: var(--bubble-letter);
  border-radius: var(--radius-tile-lg);
  font-family: var(--font-heading);
  font-size: var(--fs-bubble-letter);
  font-weight: var(--fw-black);
  transform: rotate(var(--rotate-a));
}

.kz-cats__list > li:nth-child(even) .kz-bubble__letter {
  transform: rotate(var(--rotate-b));
}

.kz-bubble__name {
  min-height: var(--bubble-label-min);
  font-family: var(--font-heading);
  font-size: var(--fs-body-s);
  font-weight: var(--fw-bold);
  line-height: var(--lh-ui);
}

.kz-bubble:hover .kz-bubble__name {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .kz-bubble {
    gap: var(--space-2);
    width: var(--bubble);
  }

  .kz-bubble__name {
    font-size: var(--fs-caption);
  }
}

/* ── Age tiles ──────────────────────────────────────────────────────── */
.kz-ages__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .kz-ages__list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--space-5);
  }
}

.kz-age {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: var(--age-tile-h);
  border-radius: var(--radius-age);
  box-shadow: var(--shadow-tile);
  color: var(--color-ink);
  text-decoration: none;
  transform: rotate(var(--rotate-a));
  transition: translate var(--dur-base) var(--ease-out);
}

.kz-ages__list > li:nth-child(6n + 2) .kz-age,
.kz-ages__list > li:nth-child(6n + 6) .kz-age { transform: rotate(var(--rotate-b)); }
.kz-ages__list > li:nth-child(6n + 3) .kz-age,
.kz-ages__list > li:nth-child(6n + 5) .kz-age { transform: rotate(var(--rotate-c)); }
.kz-ages__list > li:nth-child(6n + 4) .kz-age  { transform: rotate(var(--rotate-d)); }

.kz-age:hover {
  translate: 0 calc(var(--space-1) * -1);
}

.kz-age__label {
  font-family: var(--font-heading);
  font-size: var(--fs-age-tile-big);
  font-weight: var(--fw-black);
  line-height: 1;
}

.kz-age__unit {
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
}

@media (max-width: 767px) {
  .kz-age__unit {
    font-size: var(--fs-caption);
  }
}

/* ── Brand strip ────────────────────────────────────────────────────── */
.kz-brands__box {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-7);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.kz-brands__label {
  flex: none;
  margin: 0 var(--space-2) 0 0;
  color: var(--color-muted);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
}

.kz-brands__list {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: var(--space-4);
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kz-brands__list > li {
  flex: 1 1 var(--brand-chip-min-w);
}

.kz-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--brand-chip-h);
  padding-inline: var(--space-3);
  border: var(--border-chip);
  border-radius: var(--radius-age);
  color: var(--color-text-2);
  font-family: var(--font-heading);
  font-size: var(--fs-body-s);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-ui);
  text-align: center;
  text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease-out);
}

.kz-brand:hover {
  border-color: var(--color-ink);
  color: var(--color-ink);
}

.kz-brand img {
  width: auto;
  max-height: var(--brand-logo-h);
  object-fit: contain;
}

@media (max-width: 1199px) {
  .kz-brands__box {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 767px) {
  .kz-brands__box {
    gap: var(--space-3);
    padding: var(--space-4) 0;
    background: none;
  }

  .kz-brands__list > li {
    flex: none;
    min-width: var(--brand-chip-min-w);
  }

  .kz-brand {
    background: var(--color-surface);
    white-space: nowrap;
  }
}

/* ── Product rows ───────────────────────────────────────────────────── */
.kz-row__arrows {
  display: flex;
  gap: var(--space-2);
}

.kz-row__arrows[hidden] {
  display: none;
}

.kz-head__more + .kz-row__arrows {
  margin-left: var(--space-2);
}

.kz-head .section-title + .kz-row__arrows {
  margin-left: auto;
}

.kz-row__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--row-arrow);
  height: var(--row-arrow);
  padding: 0;
  border: var(--border-arrow);
  border-radius: var(--radius-round);
  background: transparent;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: var(--fs-h5);
  font-weight: var(--fw-bold);
  line-height: 1;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}

.kz-row__arrow:hover:not(:disabled) {
  background: var(--color-ghost-hover);
}

.kz-row__arrow:disabled {
  border-color: var(--color-border-strong);
  color: var(--color-disabled);
  cursor: default;
}

/* The row scrolls sideways. The padding leaves room for the card's hover lift and
   shadow; sideways it stays smaller than the gap, so the 6th card never peeks in. */
.kz-row__track.product-grid {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--row-cols) - 1) * var(--grid-gap)) / var(--row-cols));
  margin: calc(var(--row-shadow-room) * -1) calc(var(--space-2) * -1);
  padding: var(--row-shadow-room) var(--space-2);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--space-2);
  scrollbar-width: none;
}

.kz-row__track::-webkit-scrollbar {
  display: none;
}

.kz-row__track > li {
  scroll-snap-align: start;
}

@media (max-width: 767px) {
  /* Phones: the first 4 in two columns (mockup 1) */
  .kz-row__track.product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .kz-row__track > li:nth-child(n + 5) {
    display: none;
  }

  .kz-row__arrows {
    display: none;
  }

  .kz-head__more {
    font-size: var(--fs-small);
  }
}

/* ── Gift finder band ───────────────────────────────────────────────── */
.kz-gifts {
  margin-top: var(--band-gap);
}

.kz-wave {
  display: block;
  width: 100%;
  height: var(--wave-h);
  fill: var(--tint-orange);
}

.kz-wave--narrow {
  display: none;
}

@media (max-width: 767px) {
  .kz-wave--wide   { display: none; }
  .kz-wave--narrow { display: block; }
}

.kz-gifts__band {
  margin-top: calc(var(--border-w-hair) * -1); /* no hairline between the wave and the band */
  padding: var(--space-9) 0 var(--space-13);
  background: var(--tint-orange);
}

.kz-gifts__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: var(--space-6);
}

@media (min-width: 1200px) {
  .kz-gifts__grid {
    grid-template-columns: var(--gift-col) minmax(0, 1fr);
    gap: var(--space-11);
  }
}

.kz-gifts__intro {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.kz-gifts__star {
  top: var(--doodle-gift-y);
  left: var(--doodle-gift-x);
  width: var(--doodle-star-sm);
  height: var(--doodle-star-sm);
  fill: var(--tile-blue);
}

.kz-gifts__title {
  margin: 0;
  font-size: var(--fs-gift-title);
  font-weight: var(--fw-black);
  line-height: var(--lh-tight);
}

.kz-gifts__text {
  margin: 0;
  color: var(--color-text-2);
  font-size: var(--fs-body-l);
  line-height: var(--lh-body);
}

.kz-gifts__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.kz-gift {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  height: 100%;
  padding: var(--space-7);
  border-radius: var(--radius-panel);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  color: var(--color-ink);
  text-decoration: none;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}

.kz-gift:hover {
  box-shadow: var(--shadow-card-hover);
  transform: var(--lift-card);
}

.kz-gift__label {
  color: var(--color-muted);
  font-size: var(--fs-body-s);
  font-weight: var(--fw-bold);
}

.kz-gift__amount {
  align-self: flex-start;
  padding: var(--gift-amount-pad);
  border-radius: var(--radius-tile-lg);
  font-family: var(--font-heading);
  font-size: var(--fs-gift-amount);
  font-weight: var(--fw-black);
  line-height: 1;
  white-space: nowrap;
  transform: rotate(var(--rotate-a));
}

.kz-gifts__list > li:nth-child(3n + 2) .kz-gift__amount { transform: rotate(var(--rotate-b)); }
.kz-gifts__list > li:nth-child(3n + 3) .kz-gift__amount { transform: rotate(var(--rotate-c)); }

.kz-gift__ideas {
  color: var(--color-text-2);
  font-size: var(--fs-body-s);
}

.kz-gift__cta {
  margin-top: auto;
  font-family: var(--font-heading);
  font-size: var(--fs-body-s);
  font-weight: var(--fw-bold);
}

.kz-gift:hover .kz-gift__cta {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .kz-gifts__band {
    padding: var(--space-5) 0 var(--space-7);
  }

  .kz-gifts__grid {
    gap: var(--space-4);
  }

  .kz-gifts__text,
  .kz-gift__ideas,
  .kz-gift__cta {
    display: none;
  }

  .kz-gift {
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-2);
    border-radius: var(--radius-card);
    box-shadow: none;
  }

  .kz-gift__label {
    font-size: var(--fs-caption);
  }

  /* "Подарък" stays for screen readers: "Подарък до 20 €" */
  .kz-gift__label-long {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .kz-gift__amount {
    align-self: center;
    border-radius: var(--radius-tile);
  }
}

/* ── Trust strip ────────────────────────────────────────────────────── */
.kz-trust--overlap {
  position: relative;
  margin-top: calc(var(--trust-overlap) * -1);
}

.kz-trust__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
  margin: 0;
  padding: var(--space-7) var(--space-9);
  border-radius: var(--radius-panel);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  list-style: none;
}

@media (min-width: 1200px) {
  .kz-trust__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.kz-trust__item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.kz-trust__icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: var(--trust-icon);
  height: var(--trust-icon);
  border-radius: var(--radius-age-sm);
  transform: rotate(var(--tile-rotate-badge));
}

.kz-trust__item:nth-child(4n + 2) .kz-trust__icon { transform: rotate(var(--rotate-d)); }
.kz-trust__item:nth-child(4n + 3) .kz-trust__icon { transform: rotate(var(--rotate-a)); }
.kz-trust__item:nth-child(4n + 4) .kz-trust__icon { transform: rotate(var(--rotate-e)); }

.kz-trust__icon .icon {
  width: var(--trust-glyph);
  height: var(--trust-glyph);
}

.kz-trust__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
}

.kz-trust__title {
  font-family: var(--font-heading);
  font-size: var(--fs-body-m);
  font-weight: var(--fw-bold);
  line-height: var(--lh-ui);
}

.kz-trust__text {
  color: var(--color-muted);
  font-size: var(--fs-small);
}

@media (max-width: 767px) {
  .kz-trust__list {
    gap: var(--space-4);
    padding: var(--space-6) 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  .kz-trust__item {
    gap: var(--space-3);
  }

  .kz-trust__title {
    font-size: var(--fs-small);
  }

  .kz-trust__text {
    display: none;
  }
}

/* ── Store and post cards ───────────────────────────────────────────── */
.kz-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 767px) {
  .kz-cards > li {
    width: var(--scroll-card-w);
  }
}

.kz-store {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.kz-store__media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--store-media-h);
  background: var(--tint-lime);
  color: var(--color-muted);
}

.kz-store__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kz-store__placeholder {
  width: var(--service-tile);
  height: var(--service-tile);
}

.kz-store__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-6) var(--space-6);
}

.kz-store__city {
  margin: 0;
  font-size: var(--fs-h4);
  font-weight: var(--fw-extrabold);
}

.kz-store__line {
  margin: 0;
  color: var(--color-text-2);
  font-size: var(--fs-body-s);
  line-height: var(--lh-body);
}

.kz-store__phone {
  font-size: var(--fs-body-s);
  font-weight: var(--fw-bold);
  text-decoration: none;
}

.kz-store__phone:hover {
  text-decoration: underline;
}

.kz-store__map {
  margin-top: auto;
  padding-top: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--fs-body-s);
  font-weight: var(--fw-bold);
}

.kz-post {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  color: var(--color-ink);
  text-decoration: none;
}

.kz-post__media {
  display: block;
  height: var(--post-media-h);
  overflow: hidden;
  border-radius: var(--radius-card);
}

.kz-post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.kz-post:hover .kz-post__media img {
  transform: scale(1.03);
}

.kz-post__meta {
  color: var(--color-muted);
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
}

.kz-post__title {
  margin: 0;
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  text-wrap: pretty;
}

.kz-post:hover .kz-post__title {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .kz-post {
    gap: var(--space-2);
  }
}

/* ── Newsletter band ────────────────────────────────────────────────── */
.kz-newsletter {
  /* The footer already sits one --section-gap below the content (footer.css):
     add only the rest, so newsletter → footer is the mockup's 72px. */
  padding: var(--section-gap) 0 calc(var(--page-end-gap) - var(--section-gap));
}

.kz-newsletter__band {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: var(--space-6);
  padding: var(--newsletter-pad);
  border-radius: var(--radius-band);
  background: var(--tint-blue);
}

@media (min-width: 1200px) {
  .kz-newsletter__band {
    grid-template-columns: minmax(0, 1fr) var(--newsletter-form-w);
    gap: var(--space-10);
  }
}

.kz-newsletter__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.kz-newsletter__title {
  margin: 0;
  font-size: var(--fs-newsletter);
  font-weight: var(--fw-black);
  line-height: var(--lh-heading);
}

.kz-newsletter__text {
  margin: 0;
  color: var(--color-text-2);
  font-size: var(--fs-body-m);
  line-height: var(--lh-body);
}

.kz-newsletter__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: 0;
}

.kz-newsletter__field {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-2);
  border: var(--border-field);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
}

.kz-newsletter__field:focus-within {
  box-shadow: var(--focus-ring);
}

.kz-newsletter__input {
  flex: 1;
  min-width: 0;
  padding: 0 var(--space-5);
  border: 0;
  background: transparent;
  font-size: var(--fs-body-m);
}

.kz-newsletter__input:focus,
.kz-newsletter__input:focus-visible {
  outline: none;
  box-shadow: none;
}

.kz-newsletter__input::placeholder {
  color: var(--color-muted); /* AA contrast (subtle is for large/decorative text only) */
}

.kz-newsletter__btn.btn {
  height: var(--input-pill-h);
}

.kz-newsletter__form.is-busy .kz-newsletter__btn {
  opacity: var(--busy-opacity);
  pointer-events: none;
}

.kz-newsletter__trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  opacity: 0;
}

.kz-newsletter__note {
  margin: 0;
  padding-left: var(--space-5);
  color: var(--color-text-2);
  font-size: var(--fs-caption);
}

.kz-newsletter__note a {
  text-underline-offset: .2em;
}

.kz-newsletter__status {
  margin: 0;
  padding-left: var(--space-5);
  font-size: var(--fs-body-s);
  font-weight: var(--fw-bold);
}

.kz-newsletter__status:empty {
  display: none;
}

.kz-newsletter__status[data-tone="error"]   { color: var(--color-error); }
.kz-newsletter__status[data-tone="success"] { color: var(--color-ink); } /* AA on the tinted band */

@media (max-width: 767px) {
  .kz-newsletter__band {
    gap: var(--space-3);
    border-radius: var(--radius-panel);
  }

  /* Phones: the field and the button on their own rows (mockup 1 mobile) */
  .kz-newsletter__field {
    flex-direction: column;
    padding: 0;
    border: 0;
    background: none;
  }

  .kz-newsletter__field:focus-within {
    box-shadow: none;
  }

  .kz-newsletter__input {
    flex: none; /* in the column, flex-basis 0 would override the height */
    height: var(--input-pill-h);
    border: var(--border-field);
    border-radius: var(--radius-pill);
    background: var(--color-surface);
  }

  .kz-newsletter__input:focus-visible {
    box-shadow: var(--focus-ring);
  }

  .kz-newsletter__btn.btn {
    width: 100%;
  }

  .kz-newsletter__note,
  .kz-newsletter__status {
    padding-left: 0;
  }
}

/* ── Text block (content pages) ────────────────────────────────────── */
.kz-text__inner {
  max-width: var(--prose-max-w);
}

.kz-text__inner--wide {
  max-width: none;
}

.kz-text--lead {
  padding-top: var(--space-9);
}

.kz-text__h1 {
  margin: 0 0 var(--space-5);
  font-size: var(--fs-h1);
  font-weight: var(--fw-black);
  line-height: var(--lh-heading);
}

@media (max-width: 767px) {
  .kz-text--lead {
    padding-top: var(--space-6);
  }
}
