/* ==========================================================================
   Home / Landing page (Етап 5).

   BEM-namespaced `.home-*` section classes matching the front-page
   template-parts. Reusable UI (.btn, .founder-card, .testimonial-card,
   .stat-badge, .feature-bubble, .star-rating, .section, .container) lives in
   components.css / layout.css and is only consumed here.

   Mobile-first: base rules target < 768px; min-width queries expand upward.
   Breakpoints: 768 (tablet) · 1024 (desktop) · 1280 (wide).
   Values are CSS custom properties only — no hard-coded sizes/colours.
   ========================================================================== */

/* ─────────────────────────────────────────────────────────────────────────
   1. HERO
   ───────────────────────────────────────────────────────────────────────── */
/* Aspect-ratio рамка (Етап 9.10): mobile 1080/900, desktop 1920/888. Всички
   персонажи + текст са абсолютни, проценти спрямо рамката. */
.home-hero {
  position: relative;
  aspect-ratio: 1080 / 900;
  overflow: hidden;
  isolation: isolate;
}

/* Кремав блок (fallback, когато hero-bg.png липсва) — запълва цялата рамка;
   краката на персонажите се отрязват на долния ръб от overflow:hidden. */
.home-hero__band {
  position: absolute;
  inset: 0;
  background: var(--color-hero-cream);
  z-index: -2;
}

/* Фон-асет (Етап 9.15): плътен блок 1920×721 с РАВНО дъно (кремаво + кръгове, без
   прозрачни зони). overflow:hidden на .home-hero отрязва краката на персонажите
   точно на долния ръб на блока (както в дизайна). */
.home-hero--bg {
  background: var(--hero-bg) center / 100% 100% no-repeat;
}

/* Персонажи — абсолютни по TOP + width, height:auto. Изображението стърчи надолу
   и overflow:hidden на .home-hero го реже на долния ръб (краката се отрязват, не
   висят на бяло). */
.home-hero__photo { position: absolute; margin: 0; z-index: 1; }
.home-hero__photo img { display: block; width: 100%; height: auto; }
.home-hero__avatar {
  position: absolute;
  height: auto;
  z-index: 2;
  pointer-events: none;
}

/* Mobile позиции (рамка 1080×900): left / width / top. */
.home-hero__photo--girl   { left: -12.13%; width: 47.22%; top: 22.33%; }
.home-hero__avatar--left  { left: 14.44%;  width: 37.87%; top: 41.56%; }
.home-hero__avatar--right { left: 56.85%;  width: 29.44%; top: 36.89%; }
.home-hero__photo--boy    { left: 73.80%;  width: 35.65%; top: 22.44%; }

.home-hero__content {
  position: absolute;
  left: 22.22%;
  top: 6.11%;
  width: 55.56%;
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.home-hero__subtitle {
  font-size: clamp(13px, 3.2vw, 30px);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-snug);
  color: var(--color-black);
  margin: 0;
}

.home-hero__title {
  /* Етап 9.17: центрирано, Sofia Sans 900, точен прелом чрез <br> в hero.php
     (ред 1 „…за деца" / ред 2 „от Издателство Ванчелино"). */
  font-family: var(--font-primary);          /* Sofia Sans + fallback */
  font-size: clamp(26px, 2.4vw, 46px);
  font-weight: var(--font-weight-black);     /* 900 */
  line-height: 1.05;
  color: var(--color-text);                  /* #252525 */
  text-align: center;
  text-wrap: balance;
  overflow-wrap: normal;                     /* без чупене на думи (mobile) */
  margin: 0;
}

.home-hero__cta {
  position: absolute;
  left: 29.35%;
  top: 20.22%;
  width: 38.61%;
  z-index: 3;
  justify-content: center;
  white-space: nowrap;

  /* Етап 9.17: pill „Избери книга" 1:1 с дизайна — normal case, Sofia Sans 800,
     напълно заоблен, жълт #FFBA01 / текст #252525. Презаписва .btn (.btn е
     uppercase + letter-spacing; home.css се зарежда след components.css). */
  font-family: var(--font-primary);            /* Sofia Sans + fallback */
  font-weight: var(--font-weight-extrabold);   /* 800 */
  font-size: clamp(20px, 1.85vw, 34px);
  text-transform: none;
  letter-spacing: 0;
  border-radius: var(--radius-pill);           /* напълно заоблен pill */
  padding: clamp(16px, 1.5vw, 21px) clamp(40px, 3.5vw, 56px);
  background: var(--color-primary);            /* #FFBA01 */
  color: var(--color-text);                    /* #252525 */
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}

.home-hero__cta:hover {
  /* задържаме жълтото (.btn--primary:hover иначе сменя на оранжево) — само
     повдигане + по-силна сянка, както в дизайна. */
  background: var(--color-primary);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .24);
}

@media (min-width: 1024px) {
  .home-hero { aspect-ratio: 1920 / 721; }

  /* Desktop позиции (рамка 1920×721 — чист срез при ханша): left / width / top. */
  .home-hero__photo--girl   { left: 1.51%;  width: 29.22%; top: 16.09%; }
  .home-hero__avatar--left  { left: 17.97%; width: 23.49%; top: 42.44%; }
  .home-hero__avatar--right { left: 62.14%; width: 19.01%; top: 43.27%; }
  .home-hero__photo--boy    { left: 71.72%; width: 22.97%; top: 14.15%; }

  .home-hero__content { left: 34.48%; top: 9.71%; width: 31.0%; gap: var(--space-3); }
  .home-hero__cta     { left: 38.59%; top: 29.68%; width: 22.81%; }

  .home-hero__subtitle { font-size: clamp(20px, 1.8vw, 30px); }
  /* .home-hero__title — размерът се поема от базовия clamp(26px,2.4vw,46px). */
}

/* ─────────────────────────────────────────────────────────────────────────
   2. SUBHEADING
   ───────────────────────────────────────────────────────────────────────── */
.home-subheading { text-align: center; }

.home-subheading__title {
  font-size: var(--font-h2);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-snug);
  color: var(--color-text);
  margin: 0;
}

.home-subheading__highlight {
  /* Дизайнът е едноцветен — без оранжев акцент. */
  color: inherit;
  white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────────────────────
   3. „ИЗБЕРИ СВОЯТА КНИГА" — интерактивен грид (book-grid.js)
   ───────────────────────────────────────────────────────────────────────── */
/* Отместване за котвата „#home-featured", за да не влиза под sticky хедъра. */
.home-featured { scroll-margin-top: calc(var(--header-total) + var(--space-4)); }

.home-featured__title {
  text-align: center;
  font-size: var(--font-h2);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-text);
  margin: 0 0 var(--space-6);
}

.home-featured__empty { text-align: center; }

/* ── Възрастов филтър (чипове) ─────────────────────────────────────────────── */
.home-featured__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.agechip {
  padding: var(--space-2) var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-white);
  font-family: var(--font-primary);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  color: var(--color-text);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.agechip:hover { border-color: var(--color-blue); }
.agechip.is-active { background: var(--color-blue); border-color: var(--color-blue); color: var(--color-white); }

/* ── Грид с всички книги (book-grid.js) ─────────────────────────────────────── */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  justify-content: center;
  align-items: stretch;
  gap: var(--space-8);
  max-width: 1080px;
  margin-inline: auto;
}

@media (max-width: 520px) {
  .book-grid { grid-template-columns: minmax(0, 340px); }   /* 1 колона, центрирана */
}

.book-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.book-card[hidden] { display: none; }

/* Корица — носителят на 3D tilt + idle float. */
.book-card__cover {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transform-style: preserve-3d;
  transition: box-shadow var(--transition-base), transform 0.25s ease;
  will-change: transform;
  animation: book-float 5s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.4s);
}

.book-card__cover.is-tilting { animation: none; }          /* tilt спира float-а */
.book-card:hover .book-card__cover { box-shadow: var(--shadow-xl); }

.book-card__cover img,
.book-card__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  pointer-events: none;
}

@keyframes book-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.book-card__badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-orange);
  color: var(--color-white);
  font-weight: var(--font-weight-extrabold);
  font-size: var(--font-size-sm);
  line-height: 1.1;
  box-shadow: var(--shadow-sm);
}

.book-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.book-card__title {
  margin: 0;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-snug);
  color: var(--color-text);
}

.book-card__title a { color: inherit; text-decoration: none; }
.book-card__title a:hover { color: var(--color-primary-hover); }

.book-card__age { margin: 0; font-size: var(--font-size-sm); color: var(--color-text-muted); }
.book-card__age-label { font-weight: var(--font-weight-bold); color: var(--color-text); }

.book-card__desc {
  margin: 0;
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-text);
}

.book-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-2);
}

.book-grid__empty { text-align: center; color: var(--color-text-muted); margin-top: var(--space-8); }

/* ── Reveal (stagger по индекс) — само с JS (.has-reveal), за да не скрива без JS. ─ */
.home-featured.has-reveal .home-featured__title,
.home-featured.has-reveal .home-featured__filters {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.home-featured.has-reveal .book-card {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.home-featured.has-reveal.is-revealed .home-featured__title   { opacity: 1; transform: none; transition-delay: 0s; }
.home-featured.has-reveal.is-revealed .home-featured__filters { opacity: 1; transform: none; transition-delay: 0.1s; }
.home-featured.has-reveal.is-revealed .book-card {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.2s + var(--i, 0) * 0.09s);
}

@media (prefers-reduced-motion: reduce) {
  .book-card__cover { animation: none; transition: box-shadow var(--transition-base); }
  .home-featured.has-reveal .home-featured__title,
  .home-featured.has-reveal .home-featured__filters,
  .home-featured.has-reveal .book-card { opacity: 1; transform: none; transition: none; }
}

/* ─────────────────────────────────────────────────────────────────────────
   4. IMAGINE
   ───────────────────────────────────────────────────────────────────────── */
/* Mobile / fallback (без PNG): снимка над оранжева кутия, на син фон. */
.home-imagine { background: var(--color-blue-soft); padding-block: var(--space-12); }

.home-imagine__inner {
  width: min(100% - 2 * var(--container-padding), var(--container-xl));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  align-items: center;
}

.home-imagine__image { margin: 0; width: 100%; max-width: 440px; }

.home-imagine__image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.home-imagine__box {
  width: 100%;
  background: var(--color-orange-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.home-imagine__title {
  font-size: clamp(30px, 3.4vw, 52px);
  font-weight: var(--font-weight-black);
  text-transform: uppercase;
  line-height: var(--line-height-tight);
  color: var(--color-white);
  margin: 0;
}

.home-imagine__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.home-imagine__text {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-white);
}

.home-imagine__cta { align-self: flex-start; }

/* Долната бяла вълна (Етап 9.16) — отделен слой, видим само в desktop --bg рамката
   (виж media-то по-долу). В mobile/fallback стека е скрит. */
.home-imagine__wave { display: none; }

/* Desktop + PNG фон: aspect-ratio рамка; снимка/заглавие/текст абсолютни спрямо
   рамката (display:contents разваля контейнерите). Оранжевата кутия е в PNG-а. */
@media (min-width: 1024px) {
  .home-imagine--bg {
    position: relative;
    aspect-ratio: 1920 / 1058;
    padding: 0;
    overflow: hidden; /* реже детето на долната бяла вълна (не виси под секцията) */
    background: var(--imagine-bg) top center / 100% 100% no-repeat;
  }
  .home-imagine--bg .home-imagine__inner { display: contents; }

  .home-imagine--bg .home-imagine__image {
    position: absolute;
    left: 9.58%;
    top: 27.79%;
    width: 35.31%;
    height: auto; /* натурална височина; долната бяла вълна (z-index:2) я покрива */
    max-width: none;
    margin: 0;
    z-index: 1;
  }
  .home-imagine--bg .home-imagine__image img { height: auto; }

  /* Бялата вълна — ОТГОРЕ на детето, същата рамка като фона → подравнява се точно
     по вълнообразния ръб и покрива долната част на детето (дънките). */
  .home-imagine--bg .home-imagine__wave {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill; /* същото като bg-то (100% 100%) → перфектно припокриване */
    z-index: 2;
    pointer-events: none;
  }

  /* Заглавие + абзаци в ЕДИН flex-column блок, вертикално центриран в дясната
     (оранжева) част → текат един под друг с разстояние, без застъпване при
     каквато и да е дължина на текста. */
  .home-imagine--bg .home-imagine__box {
    position: absolute;
    left: 54.95%;
    width: 38%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.8em;
    background: none;
    padding: 0;
    border-radius: 0;
    z-index: 3; /* над вълната — текстът е горе-вдясно, не се застъпва */
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   5. BENEFITS
   ───────────────────────────────────────────────────────────────────────── */
/* Tighten the gap above „Ползи" (design has the two sections close together). */
.home-benefits { padding-top: var(--space-6); }

@media (min-width: 768px) {
  .home-benefits { padding-top: var(--space-10); }
}

.home-benefits__title {
  text-align: center;
  font-size: var(--font-h3);
  font-weight: var(--font-weight-extrabold);
  margin: 0 0 var(--space-10);
}

/* ── Chain-of-rings overlay over circular CPT photos (Етап 9.9) ───────────────
   Снимките са динамични (CPT benefit, clip-ната в кръг); декоративните
   градиентни пръстени са прозрачен PNG оверлей, чиито дупки пасват върху
   центровете на снимките. Оверлеят е CSS background (display:none не го зарежда),
   затова desktop/mobile вариантите не се теглят едновременно. */
.home-benefits__rings {
  position: relative;
  width: 100%;
  margin: 0 auto;
}
.home-benefits__rings--desktop { aspect-ratio: 1458 / 329; }
.home-benefits__rings--m1      { aspect-ratio: 1080 / 406; }
.home-benefits__rings--m2      { aspect-ratio: 749 / 406; max-width: 69.4%; margin-top: var(--space-6); }

.home-benefits__photo {
  position: absolute;
  top: 50%;
  left: var(--cx, 50%);
  width: var(--d, 16.8%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: var(--radius-circle);
  overflow: hidden;
  z-index: 1;
}
.home-benefits__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-benefits__overlay {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  z-index: 2;
  pointer-events: none;
}

/* Labels under each circle — Sofia Sans ExtraBold, центрирани. */
.home-benefits__labels {
  display: grid;
  grid-template-columns: repeat(var(--cols, 5), 1fr);
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.home-benefits__labels--narrow { max-width: 69.4%; margin-inline: auto; }

.home-benefits__label {
  text-align: center;
  font-weight: var(--font-weight-extrabold);
  font-size: clamp(13px, 1.4vw, 22px);
  line-height: var(--line-height-snug);
  color: var(--color-text);
}

/* Desktop ↔ mobile chain toggle (само видимият оверлей се зарежда). */
.home-benefits__chain--desktop { display: none; }
.home-benefits__chain--mobile  { display: block; }

@media (min-width: 768px) {
  .home-benefits__chain--desktop { display: block; }
  .home-benefits__chain--mobile  { display: none; }
}

/* ─────────────────────────────────────────────────────────────────────────
   6. TRUST / FOUNDERS
   ───────────────────────────────────────────────────────────────────────── */
.home-trust__title {
  text-align: center;
  font-size: var(--font-h2);
  font-weight: var(--font-weight-extrabold);
  margin: 0 0 var(--space-4);
}

.home-trust__intro {
  max-width: var(--container-md);
  margin: 0 auto var(--space-12);
  text-align: center;
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-muted);
}

/* Пъзел-артуорк (снимки на основателите, едно изображение) над биографиите. */
.home-trust__puzzle {
  margin: 0 auto var(--space-12);
  max-width: 84%;
}
.home-trust__puzzle img {
  width: 100%;
  height: auto;
  display: block;
}

/* Биографии: малка цветна точка + име + роля + текст.
   2 колони на mobile (2+2 по PSD), 4 колони на desktop. */
.home-trust__founders {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8) var(--space-6);
}

.founder-bio { text-align: left; }

.founder-bio__name {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: clamp(18px, 1.7vw, 26px);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin: 0 0 var(--space-1);
}

.founder-bio__dot {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-circle);
  background: var(--dot-color, var(--founder-pink));
}

.founder-bio--pink   { --dot-color: var(--founder-pink); }
.founder-bio--blue   { --dot-color: var(--founder-blue); }
.founder-bio--green  { --dot-color: var(--founder-green); }
.founder-bio--orange { --dot-color: var(--founder-orange); }

.founder-bio__role {
  font-size: clamp(13px, 1.1vw, 17px);
  color: var(--color-text);
  margin: 0 0 var(--space-2);
}

.founder-bio__text {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-muted);
  margin: 0;
}

@media (min-width: 1024px) {
  .home-trust__founders { grid-template-columns: repeat(4, 1fr); }
}

/* ─────────────────────────────────────────────────────────────────────────
   7. TESTIMONIALS
   ───────────────────────────────────────────────────────────────────────── */
.home-testimonials__title {
  text-align: center;
  font-size: var(--font-h3);
  font-weight: var(--font-weight-extrabold);
  margin: 0 0 var(--space-10);
}

.home-testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

/* Uniform cream cards (design) — all the same, no per-card colour. */
.home-testimonials .testimonial-card { background: var(--color-card-cream); }

.home-testimonials .testimonial-card__text {
  font-family: var(--font-open);
  font-weight: 300; /* Open Sans Light */
}

.home-testimonials .testimonial-card__author {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

/* Mobile shows 3 cards (hide the 4th); tablet 2-col; desktop 4-in-a-row. */
.home-testimonials .testimonial-card:nth-child(4) { display: none; }

@media (min-width: 768px) {
  .home-testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .home-testimonials .testimonial-card:nth-child(4) { display: flex; }
}

@media (min-width: 1024px) {
  .home-testimonials__grid { grid-template-columns: repeat(4, 1fr); }
}

/* Mobile: хоризонтално скролваща лента вместо вертикален стек — виждат се ~2.5
   карти, третата наднича отдясно (по дизайна). Само мобилно; десктоп е грид. */
@media (max-width: 767px) {
  .home-testimonials__grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--space-4);
    padding-bottom: var(--space-2);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .home-testimonials__grid::-webkit-scrollbar { display: none; }
  .home-testimonials__grid > * {
    flex: 0 0 38%;                     /* ~2.5 карти в кадър, третата наднича */
    min-width: 0;
    scroll-snap-align: start;
  }
  /* В лентата показваме всички отзиви (4-тата иначе е скрита от стековия изглед),
     за да е достъпна при скрол — не изпускаме карта. */
  .home-testimonials .testimonial-card:nth-child(4) { display: flex; }
}

/* ─────────────────────────────────────────────────────────────────────────
   8. GALLERY
   ───────────────────────────────────────────────────────────────────────── */
.home-gallery__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.home-gallery__item { margin: 0; }

.home-gallery__link {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.home-gallery__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.home-gallery__link:hover img,
.home-gallery__link:focus-visible img {
  transform: scale(1.08);
}

@media (min-width: 768px) {
  .home-gallery__grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
}

@media (min-width: 1024px) {
  .home-gallery__grid { grid-template-columns: repeat(5, 1fr); }
}

/* ─────────────────────────────────────────────────────────────────────────
   9. STATS
   ───────────────────────────────────────────────────────────────────────── */
/* Mobile (per design): трите розетки в ред, но централната е вдигната и леко
   по-голяма, а страничните падат под нея (стъпаловиден offset — виж @media
   max-width:767 по-долу). Desktop се изравнява в чиста линия от три. */
.home-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  justify-items: center;
  align-items: start;
}

/* Стъпаловиден offset САМО на мобилно (десктоп остава в линия): централната
   розетка стои горе и е ~1.15×, а страничните се свалят ~125px под нея. Свалят
   се страничните (вместо отрицателен margin на централната), за да не изскача
   нагоре в предходната секция — .section има само 48px горен padding на мобилно. */
@media (max-width: 767px) {
  .home-stats__grid > :nth-child(1),
  .home-stats__grid > :nth-child(3) { margin-top: 125px; }
  .home-stats__grid > :nth-child(2) {
    transform: scale(1.15);
    transform-origin: top center;
  }
}

/* ── Rosette badges from PNG (Етап 9.11) — основен вариант ────────────────────
   Реалните медальони (кръг + назъбен ръб + V-панделки) са PNG; числото +
   под-текстът са абсолютно центрирани върху кръговата зона (горните ~10–62%). */
.home-stats .rosette {
  position: relative;
  width: 100%;
  max-width: 220px;
}
.home-stats .rosette__img {
  display: block;
  width: 100%;
  height: auto;
}
.home-stats .rosette__text {
  position: absolute;
  left: 0;
  right: 0;
  top: 48%; /* центърът на кръга (тялото ≈ 11.5–87% от PNG-а) */
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 12%;
}
.home-stats .rosette__value {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 40px);
  line-height: 1;
  white-space: nowrap; /* „9.9 от 10" да не се пренася на 2 реда */
  color: var(--color-text);
}
.home-stats .rosette__label {
  font-family: var(--font-open);
  font-weight: 300; /* Open Sans Light */
  font-size: clamp(9px, 1vw, 13px);
  line-height: var(--line-height-snug);
  color: var(--color-text);
  margin-top: var(--space-1);
}

/* ── Rosette badges (Етап 9.8) — CSS fallback, ако PNG-тата липсват ───────────
   Solid-filled medallion + sunburst (notched) edge peeking out behind it + two
   V-shaped ribbon tails. Scoped to .home-stats so the product .stat-badge stays
   a plain circle. Colour per position via --badge-color (--rosette-*). */
   Solid-filled medallion + sunburst (notched) edge peeking out behind it + two
   V-shaped ribbon tails. Scoped to .home-stats so the product .stat-badge stays
   a plain circle. Colour per position via --badge-color (--rosette-*). */
.home-stats .stat-badge {
  position: relative;
  width: clamp(96px, 28vw, 160px);
  height: clamp(96px, 28vw, 160px);
  border: none;
  background: var(--badge-color, var(--rosette-blue));
  color: var(--color-text);
  z-index: 1;
  margin-bottom: var(--space-10); /* room for the hanging ribbon tails */
}

.home-stats .stat-badge--blue   { --badge-color: var(--rosette-blue); }
.home-stats .stat-badge--green  { --badge-color: var(--rosette-green); }
.home-stats .stat-badge--orange { --badge-color: var(--rosette-orange); }

/* Notched/sunburst edge — a slightly larger cog ring behind the medal; only its
   ~10px overhang shows, giving the toothed rosette rim. */
.home-stats .stat-badge__edge {
  position: absolute;
  inset: -10px;
  border-radius: var(--radius-circle);
  background: repeating-conic-gradient(
    var(--badge-color, var(--rosette-blue)) 0deg 9deg,
    transparent 9deg 18deg
  );
  z-index: -1;
}

/* Number — decorative Chocolate font, dark ink. */
.home-stats .stat-badge__value {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 52px);
  color: var(--color-text);
}

/* Sub-text — Open Sans Light, centred. */
.home-stats .stat-badge__label {
  font-family: var(--font-open);
  font-weight: var(--font-weight-regular);
  color: var(--color-text);
}

/* Two V-shaped ribbon tails hanging from behind the medal. */
.home-stats .stat-badge::before,
.home-stats .stat-badge::after {
  content: "";
  position: absolute;
  bottom: calc(-1 * var(--space-8));
  width: 28px;
  height: 70px;
  background: var(--badge-color, var(--rosette-blue));
  z-index: -2;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 68%, 0 100%);
}
.home-stats .stat-badge::before {
  left: 32%;
  transform-origin: top center;
  transform: rotate(16deg);
}
.home-stats .stat-badge::after {
  right: 32%;
  transform-origin: top center;
  transform: rotate(-16deg);
}

@media (min-width: 768px) {
  .home-stats__grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas: none;
    gap: var(--space-10);
  }
  .home-stats__grid > :nth-child(1),
  .home-stats__grid > :nth-child(2),
  .home-stats__grid > :nth-child(3) { grid-area: auto; }
}

/* ─────────────────────────────────────────────────────────────────────────
   10. FINAL CTA
   ───────────────────────────────────────────────────────────────────────── */
.home-final-cta {
  text-align: center;
  /* Етап 9.18: плътно сиво — вълната на футъра „захапва" нагоре в него; така
     прозрачните върхове на вълната показват същото сиво (безшевен стик). */
  background: var(--color-footer-cta-bg);
}

.home-final-cta__title {
  font-size: var(--font-h2);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-snug);
  margin: 0 0 var(--space-4);
}

.home-final-cta__text {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-8);
}


/* ─────────────────────────────────────────────────────────────────────────
   HERO FIX (28.10.2026): hero-bg.png е пълната PSD композиция — децата са
   вече в нея. Desktop: показваме само фона (точна композиция), скриваме
   дублиращите слоеве. Mobile (рамка 1080/900): разтегнатата композиция
   изкривява и дублира децата → кремав фон + отделните слоеве.
   ───────────────────────────────────────────────────────────────────────── */
@media (min-width: 1024px) {
	.home-hero--bg .home-hero__photo,
	.home-hero--bg .home-hero__avatar { display: none; }
}
@media (max-width: 1023.98px) {
	.home-hero--bg { background: var(--color-hero-cream); }
}


/* ─────────────────────────────────────────────────────────────────────────
   КОРЕКЦИИ 28.10.2026 — т.1.1: заглавието на героя на ТОЧНО 2 реда
   („…за деца" / „от Издателство Ванчелино"), без болд, над бутона.
   ───────────────────────────────────────────────────────────────────────── */
.home-hero__content { left: 5%; width: 90%; top: 5.5%; }
.home-hero__title {
	font-weight: 500;
	white-space: nowrap;
	letter-spacing: .01em;
	line-height: 1.15;
	font-size: clamp(17px, 4.9vw, 26px);
}
.home-hero__cta { top: 22%; }
@media (min-width: 1024px) {
	.home-hero__content { left: 15%; width: 70%; top: 8.5%; }
	.home-hero__title { font-size: clamp(30px, 2.6vw, 50px); }
	.home-hero__cta { top: 28.5%; }
}

/* т.1.4 (28.10.2026): „Представи си" — текстът черен и по-едър (като стария сайт). */
.home-imagine__title,
.home-imagine__text,
.home-imagine__text p { color: var(--color-text); }
.home-imagine__text,
.home-imagine__text p { font-size: clamp(17px, 1.25vw, 24px); font-weight: 500; line-height: 1.45; }


/* ═════════════════════════════════════════════════════════════════════════
   КНИЖЕН ЛЕНДИНГ — МОБИЛНО ХЕРО 1:1 ПО Vanchelno_Redesign_LandingPage_Mobilie_1.psd (1080px) — 28.10.2026
   Кръговете са от PSD-то (център/радиус/цвят), снимките и героичетата — на позициите от PSD-то.
   ═════════════════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
	body { --dz: calc(100vw / 1080); }
	.home-hero.home-hero--bg {
		position: relative; overflow: hidden; padding: 0; margin: 0; min-height: 0;
		height: calc(720 * var(--dz));
		background: radial-gradient(circle calc(304 * var(--dz)) at calc(1245 * var(--dz)) calc(484 * var(--dz)), #ed9344 99%, transparent 100%),
			radial-gradient(circle calc(259 * var(--dz)) at calc(950 * var(--dz)) calc(404 * var(--dz)), #5ebb50 99%, transparent 100%),
			radial-gradient(circle calc(276 * var(--dz)) at calc(805 * var(--dz)) calc(736 * var(--dz)), #f7e348 99%, transparent 100%),
			radial-gradient(circle calc(265 * var(--dz)) at calc(-234 * var(--dz)) calc(310 * var(--dz)), #66c2ee 99%, transparent 100%),
			radial-gradient(circle calc(304 * var(--dz)) at calc(277 * var(--dz)) calc(629 * var(--dz)), #ea839c 99%, transparent 100%),
			radial-gradient(circle calc(266 * var(--dz)) at calc(1299 * var(--dz)) calc(195 * var(--dz)), #66c2ee 99%, transparent 100%),
			radial-gradient(circle calc(398 * var(--dz)) at calc(-63 * var(--dz)) calc(517 * var(--dz)), #ed9344 99%, transparent 100%),
			#fff1da !important;
		background-repeat: no-repeat !important; background-size: auto !important;
	}
	.home-hero.home-hero--bg::before, .home-hero.home-hero--bg::after { display: none !important; }
	.home-hero--bg .home-hero__photo, .home-hero--bg .home-hero__avatar { position: absolute; margin: 0; padding: 0; max-width: none; display: block; transform: none; }
	.home-hero--bg .home-hero__photo img { display: block; width: 100%; height: auto; max-width: none; }
	.home-hero--bg .home-hero__photo--boy  { left: calc(797 * var(--dz)); top: calc(202 * var(--dz)); width: calc(385 * var(--dz)); z-index: 1; }
	.home-hero--bg .home-hero__avatar--right { left: calc(614 * var(--dz)); top: calc(332 * var(--dz)); width: calc(318 * var(--dz)); height: auto; z-index: 2; }
	.home-hero--bg .home-hero__photo--girl { left: calc(-131 * var(--dz)); top: calc(201 * var(--dz)); width: calc(510 * var(--dz)); z-index: 3; }
	.home-hero--bg .home-hero__avatar--left { left: calc(156 * var(--dz)); top: calc(374 * var(--dz)); width: calc(409 * var(--dz)); height: auto; z-index: 4; }
	.home-hero--bg .home-hero__content { position: absolute; left: 0; right: 0; top: calc(55 * var(--dz)); z-index: 5; padding: 0; margin: 0; max-width: none; text-align: center; }
	.home-hero--bg .home-hero__title { font-family: var(--font-primary); font-weight: 700; font-size: calc(39.8 * var(--dz)); line-height: 1.05; letter-spacing: .02em; color: #000; margin: 0; max-width: none; }
	.home-hero--bg .home-hero__cta {
		position: absolute; z-index: 6; left: calc(317 * var(--dz)); top: calc(182 * var(--dz)); width: calc(417 * var(--dz)); height: calc(72 * var(--dz)); min-height: 0;
		padding: 0; margin: 0; display: flex; align-items: center; justify-content: center;
		font-size: calc(34.5 * var(--dz)); font-weight: 800; line-height: 1; border-radius: calc(36 * var(--dz)); text-transform: none;
		background: #ffba01; color: #252525; box-shadow: 0 calc(4 * var(--dz)) calc(10 * var(--dz)) rgba(0,0,0,.18);
	}
}

@media (max-width: 767px) {
	.home-hero.home-hero--bg { aspect-ratio: auto !important; width: 100% !important; }
}


/* ── Книжен лендинг: останалите мобилни секции по PSD (1080px), с минимални размери за четимост ── */
@media (max-width: 767px) {
	body.page-template-default .home-subheading, .home-subheading.section { background: #f7f7f7; padding: calc(94 * var(--dz)) 0 calc(40 * var(--dz)); }
	.home-subheading__title { font-size: max(18px, calc(54 * var(--dz))); font-weight: 700; line-height: 1.2; margin: 0; color: #252525; }

	/* Книги */
	.home-featured.section { background: #f7f7f7; padding: calc(60 * var(--dz)) 0 calc(110 * var(--dz)); }
	.home-featured__title { display: none; }
	.home-featured .book-grid { display: flex; flex-direction: column; gap: calc(190 * var(--dz)); padding: 0; }
	.home-featured .book-card { background: none; border: 0; box-shadow: none; border-radius: 0; padding: 0; margin: 0; overflow: visible; display: block; }
	.home-featured .book-card__cover { display: block; width: calc(445 * var(--dz)); margin: 0 auto calc(28 * var(--dz)); background: none; border-radius: 0; box-shadow: none; aspect-ratio: auto; overflow: visible; }
	.home-featured .book-card__img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; border-radius: 4px; box-shadow: calc(6 * var(--dz)) calc(10 * var(--dz)) calc(18 * var(--dz)) rgba(0,0,0,.3); }
	.home-featured .book-card__body { display: flex; flex-direction: column; padding: 0 0 0 calc(220 * var(--dz)); width: calc(850 * var(--dz)); max-width: none; text-align: left; background: none; }
	.home-featured .book-card__title { order: 1; font-size: max(17px, calc(50 * var(--dz))); font-weight: 700; line-height: 1.2; margin: 0 0 calc(30 * var(--dz)); padding-bottom: calc(26 * var(--dz)); border-bottom: 2px solid #252525; width: calc(629 * var(--dz)); text-transform: none; }
	.home-featured .book-card__title a { color: #252525; text-decoration: none; }
	.home-featured .book-card__desc { order: 2; font-size: max(13px, calc(30.6 * var(--dz))); font-weight: 300; line-height: 1.3; color: #252525; margin: 0 0 calc(30 * var(--dz)); width: calc(560 * var(--dz)); }
	.home-featured .book-card__age { order: 3; font-size: max(13px, calc(30.6 * var(--dz))); font-weight: 300; color: #252525; margin: 0 0 calc(40 * var(--dz)); }
	.home-featured .book-card__age-label { font-weight: 300; }
	.home-featured .book-card__actions { order: 4; display: block; margin: 0; }
	.home-featured .book-card__cta-configure { display: none; }
	.home-featured .book-card__cta-more {
		display: flex; align-items: center; justify-content: center; width: calc(610 * var(--dz)); height: max(40px, calc(104 * var(--dz))); margin: 0; padding: 0;
		background: #ffba01; color: #252525; border: 0; border-radius: calc(26 * var(--dz)); font-size: max(16px, calc(50.5 * var(--dz))); font-weight: 800; text-transform: uppercase; letter-spacing: 0;
		box-shadow: 0 calc(5 * var(--dz)) calc(10 * var(--dz)) rgba(0,0,0,.18);
	}

	/* Представи си … — синьо/оранжево като в PSD, детето вляво, текстът вдясно */
	.home-imagine.home-imagine--bg {
		position: relative; overflow: hidden; padding: 0; margin: 0; min-height: calc(1058 * var(--dz));
		background: transparent var(--imagine-bg) no-repeat calc(-450 * var(--dz)) 0 / calc(2078 * var(--dz)) 100% !important;
	}
	.home-imagine--bg .home-imagine__inner { position: static; display: block; padding: 0; margin: 0; max-width: none; }
	.home-imagine--bg .home-imagine__image { position: absolute; left: calc(-12 * var(--dz)); top: calc(220 * var(--dz)); width: calc(612 * var(--dz)); margin: 0; z-index: 1; }
	.home-imagine--bg .home-imagine__image img { width: 100%; height: auto; border-radius: 0; box-shadow: none; }
	.home-imagine--bg .home-imagine__wave { display: none; }
	.home-imagine--bg .home-imagine__box { position: relative; z-index: 2; margin: 0 0 0 calc(612 * var(--dz)); width: calc(410 * var(--dz)); padding: calc(200 * var(--dz)) 0 calc(190 * var(--dz)); background: none; border-radius: 0; box-shadow: none; transform: none; left: auto; top: auto; }
	.home-imagine--bg .home-imagine__title { font-size: max(13px, calc(35 * var(--dz))); font-weight: 900; line-height: 1.1; color: #000; margin: 0 0 calc(30 * var(--dz)); text-transform: uppercase; }
	.home-imagine--bg .home-imagine__content, .home-imagine--bg .home-imagine__text { padding: 0; margin: 0; }
	.home-imagine--bg .home-imagine__text p { font-size: max(10.5px, calc(28 * var(--dz))); line-height: 1.25; color: #000; margin: 0 0 1.1em; }

	/* Ползи */
	.home-benefits__title { font-size: max(16px, calc(46 * var(--dz))); font-weight: 600; line-height: 1.25; }
	.home-benefits__labels, .home-benefits__labels * { font-size: max(10.5px, calc(26 * var(--dz))); font-weight: 800; }

	/* Защо да ни се довериш */
	.home-trust__title { font-size: max(16px, calc(46 * var(--dz))); font-weight: 600; }
	.home-trust__intro, .home-trust__intro p { font-size: max(12px, calc(32 * var(--dz))); line-height: 1.4; text-align: center; }
	.home-trust__puzzle { width: calc(981 * var(--dz)); margin: calc(60 * var(--dz)) auto calc(60 * var(--dz)); max-width: none; }
	.home-trust__puzzle img { width: 100%; height: auto; }
	.home-trust__founders { grid-template-columns: 1fr 1fr; column-gap: calc(50 * var(--dz)); row-gap: calc(110 * var(--dz)); padding: 0 calc(30 * var(--dz)); }
	.founder-bio__name { font-size: max(13px, calc(39.2 * var(--dz))); font-weight: 700; }
	.founder-bio__role { font-size: max(10.5px, calc(26.3 * var(--dz))); }
	.founder-bio__text { font-size: max(11px, calc(28 * var(--dz))); line-height: 1.3; }

	/* Галерия: лента, която се плъзга (по PSD — 4 снимки, първата наднича отляво) */
	.home-gallery.section { padding: calc(80 * var(--dz)) 0 calc(110 * var(--dz)); }
	.home-gallery > .container { padding: 0; max-width: none; }
	.home-gallery .home-gallery__grid { display: flex !important; grid-template-columns: none; gap: calc(13 * var(--dz)); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 0 calc(30 * var(--dz)); margin: 0; }
	.home-gallery .home-gallery__grid::-webkit-scrollbar { display: none; }
	.home-gallery .home-gallery__item { flex: 0 0 calc(313 * var(--dz)); width: calc(313 * var(--dz)); scroll-snap-align: start; }
	.home-gallery .home-gallery__item img { width: 100%; height: calc(313 * var(--dz)); object-fit: cover; border-radius: 6px; }

	/* Финален призив */
	.home-final-cta .home-final-cta__title, .home-final-cta h2 { font-family: var(--font-open); font-weight: 800; font-size: max(22px, calc(66.7 * var(--dz))); line-height: 1.12; }
	.home-final-cta .btn { width: calc(828 * var(--dz)); height: max(46px, calc(140 * var(--dz))); font-size: max(20px, calc(59.9 * var(--dz))); font-weight: 800; border-radius: calc(30 * var(--dz)); display: inline-flex; align-items: center; justify-content: center; padding: 0; text-transform: uppercase; }
}

@media (max-width: 767px) {
	.home-featured .book-card__img, .home-featured .book-card__cover img { aspect-ratio: 1 / 1; height: auto; object-fit: cover; }
}

@media (max-width: 767px) {
	.founder-bio__text { -webkit-line-clamp: unset !important; line-clamp: unset; display: block !important; overflow: visible !important; max-height: none !important; }
}

/* ===== Typography unify (book landing) ===== */
@media (min-width:768px){
 body .home-imagine__title,body .home-benefits__title,body .home-testimonials__title{font-size:40px!important;line-height:1.15!important}
 body .home-imagine__text p{font-size:18px!important}
 body .founder-bio__text{font-size:16px!important}
}
@media (max-width:767px){
 body .home-hero__title{font-size:16px!important}
 body .home-hero .btn--primary{font-size:14px!important}
 body .home-subheading__title,body .home-subheading__highlight,body .home-benefits__title,body .home-trust__title,body .home-testimonials__title,body .home-final-cta__title{font-size:24px!important;line-height:1.2!important}
 body .home-imagine__title{font-size:15px!important;line-height:1.15!important}
 body .home-imagine__text p{font-size:12px!important;line-height:1.4!important}
 body .book-card__desc,body .book-card__age,body .book-card__age-label{font-size:14px!important;font-weight:400!important}
 body .home-benefits__label{font-size:12px!important;line-height:1.2!important}
 body .home-trust__intro p,body .home-trust__intro{font-size:14px!important}
 body .founder-bio__name{font-size:18px!important}
 body .founder-bio__role{font-size:12px!important}
 body .founder-bio__text{font-size:14px!important;line-height:1.5!important}
 body .home-final-cta .btn--primary{font-size:17px!important}
}

/* ═════ Корекции 31.10.2026 (книжен лендинг) ═════ */
/* 1. Кориците на книгите стоят неподвижно (без „плаване“ и 3D накланяне). */
.book-card__cover, .book-card__cover.is-tilting { animation: none !important; transform: none !important; will-change: auto; }

/* 3. Десктоп: книгите по-раздалечени една от друга. */
@media (min-width: 768px) {
	.book-grid { gap: 56px 80px; max-width: 1200px; }
}

/* 5. Мобилно: по-едри корици + и двата бутона („Персонализирай книгата“ и „Научи повече“). */
@media (max-width: 767px) {
	.home-featured .book-card__cover { width: calc(760 * var(--dz)); margin-bottom: calc(50 * var(--dz)); }
	.home-featured .book-card__body { padding-left: 0; width: calc(760 * var(--dz)); margin: 0 auto; box-sizing: border-box; }
	.home-featured .book-card__title, .home-featured .book-card__desc { width: auto; }
	.home-featured .book-card__actions { display: flex; flex-direction: column; gap: 10px; }
	.home-featured .book-card__cta-configure,
	.home-featured .book-card__cta-more {
		display: flex; align-items: center; justify-content: center; width: 100%; box-sizing: border-box; height: max(44px, calc(110 * var(--dz))); margin: 0; padding: 0 12px;
		border-radius: calc(26 * var(--dz)); font-size: max(15px, calc(44 * var(--dz))); font-weight: 800; text-transform: uppercase; letter-spacing: 0;
	}
	.home-featured .book-card__cta-configure { background: #ffba01; color: #252525; border: 0; box-shadow: 0 calc(5 * var(--dz)) calc(10 * var(--dz)) rgba(0,0,0,.18); }
	.home-featured .book-card__cta-more { background: #fff; color: #252525; border: 2px solid #252525; box-shadow: none; }
}

/* 6. „Представи си…“ — десктоп: текстът отново едър и мащабиран с екрана (както преди). */
@media (min-width: 1024px) {
	body .home-imagine--bg .home-imagine__box { left: 54.5%; width: 39%; gap: .6em; }
	body .home-imagine--bg .home-imagine__title { font-size: clamp(28px, 2.85vw, 58px) !important; line-height: 1.12 !important; font-weight: 900; text-transform: uppercase; }
	body .home-imagine--bg .home-imagine__text p { font-size: clamp(15px, 1.28vw, 25px) !important; line-height: 1.38 !important; margin: 0 0 .9em; }
}
/* 6. Мобилно: детето по-едро и вертикално центрирано спрямо текста (както преди). */
@media (max-width: 767px) {
	.home-imagine--bg .home-imagine__image { top: 50%; transform: translateY(-50%); width: calc(600 * var(--dz)); left: calc(-20 * var(--dz)); }
	.home-imagine--bg .home-imagine__box { margin-left: calc(668 * var(--dz)); width: calc(382 * var(--dz)); padding-top: calc(250 * var(--dz)); padding-bottom: calc(300 * var(--dz)); }
}

/* 7. Текстовете под имената на екипа — изцяло, без рязане. */
.founder-bio__text { -webkit-line-clamp: unset !important; line-clamp: unset; display: block !important; overflow: visible !important; max-height: none !important; }

/* 9. Медалите с оценките (статистика) — по-големи, текстът вътре в кръга; на мобилно един под друг. */
.home-stats .rosette { max-width: 360px; }
.home-stats .rosette__text { padding: 0 23%; top: 45%; }
.home-stats .rosette__value { font-size: clamp(30px, 2.6vw, 44px); }
.home-stats .rosette__label { font-size: clamp(13px, .9vw, 16px); line-height: 1.28; font-weight: 400; }
@media (max-width: 767px) {
	.home-stats__grid { grid-template-columns: 1fr; gap: 22px; }
	.home-stats__grid > :nth-child(n) { margin-top: 0 !important; transform: none !important; }
	.home-stats .rosette { width: min(78vw, 320px); }
	.home-stats .rosette__value { font-size: 42px; }
	.home-stats .rosette__label { font-size: 15px; }
}

/* Галерията (01.11.2026): 6 снимки → 6 в ред на десктоп, 3 на таблет. */
@media (min-width: 768px) and (max-width: 1023px) { .home-gallery__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .home-gallery__grid { grid-template-columns: repeat(6, 1fr); } }

/* ═════ 01.11.2026: 4 книги (добавена „Олимпиада“) — 4 в ред на широк десктоп, 2×2 под това ═════ */
@media (min-width: 768px) and (max-width: 1199px) {
	.book-grid { grid-template-columns: repeat(2, minmax(0, 320px)); }
}
@media (min-width: 1200px) {
	.book-grid { grid-template-columns: repeat(4, minmax(0, 280px)); gap: 56px 40px; max-width: 1240px; }
}
