/* =====================================================================
   Рада Мила — Playful Geometric design system
   Shared stylesheet for all prototype screens (index + standalone screens).
   ===================================================================== */

:root {
  --background: #FFFDF5;
  --foreground: #1E293B;
  --muted: #F1F5F9;
  --muted-foreground: #64748B;
  --accent: #8B5CF6;
  --accent-deep: #6D28D9;
  --accent-tint: #F1E9FE;
  --accent-foreground: #FFFFFF;
  --secondary: #F472B6;
  --secondary-deep: #DB2777;
  --secondary-tint: #FCE7F3;
  --tertiary: #FBBF24;
  --tertiary-deep: #92400E;
  --tertiary-tint: #FFF3D6;
  --quaternary: #34D399;
  --quaternary-deep: #047857;
  --quaternary-tint: #E1FAF0;
  --border: #1E293B;
  --border-soft: #E2E8F0;
  --card: #FFFFFF;
  --ring: #8B5CF6;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --bw: 2px;
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/*
  Deliberately single-theme: this is a children's-book storefront, not a UI.
  The Playful Geometric system is applied as one committed "paper + ink"
  world (warm cream paper, dark slate ink, pop accents) rather than
  adapting to OS dark mode — a sticker book doesn't have a night mode.
*/

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.display {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 800;
  text-wrap: balance;
}

a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ================= decorative layer: dot-grid + confetti ================= */

.deco-field, .ml-deco {
  position: absolute;
  inset: 0;
  /*overflow: hidden;*/
  pointer-events: none;
  z-index: 0;
}
.deco-field > *, .ml-deco > * { position: absolute; }
.dot-grid, .ml-dot-grid {
  background-image: radial-gradient(var(--foreground) 1.6px, transparent 1.6px);
  background-size: 20px 20px;
  opacity: 0.07;
}
.confetti-circle { border-radius: 50%; }
.confetti-square { border-radius: var(--radius-sm); }
.confetti-tri { width: 0; height: 0; background: none !important; }

/* ================= screen 1: hero ================= */

.hero {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 64px) clamp(20px, 6vw, 48px) clamp(56px, 8vw, 88px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
@media (min-width: 881px) {
  .hero { grid-template-columns: 1.1fr 0.9fr; }
}

.hero-card {
  position: relative;
  z-index: 2;
  background: var(--card);
  border: var(--bw) solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 4vw, 46px) clamp(28px, 4.5vw, 50px) clamp(30px, 4vw, 40px);
  box-shadow: 8px 8px 0 var(--secondary);
  overflow: hidden;
}

.corner-flap {
  position: absolute;
  top: -18px;
  right: 28px;
  width: 46px;
  height: 46px;
  background: var(--tertiary);
  border: var(--bw) solid var(--border);
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--border);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 4px;
  background: var(--secondary);
  border-radius: var(--radius-full);
  display: inline-block;
}

.hero-card h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.5rem);
  line-height: 1.02;
  margin: 0 0 20px;
  color: var(--foreground);
}
.hero-card h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
  display: inline-block;
}
.hero-card h1 em::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0.06em;
  height: 0.32em;
  background: var(--tertiary);
  opacity: 0.55;
  z-index: -1;
  border-radius: var(--radius-sm);
}

.hero-card .subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.5;
  color: var(--muted-foreground);
  max-width: 44ch;
  margin: 0 0 26px;
  font-weight: 500;
}

.hero-divider {
  height: var(--bw);
  background-image: repeating-linear-gradient(90deg, var(--border) 0 10px, transparent 10px 18px);
  margin: 0 0 22px;
}

.status-row { display: flex; flex-wrap: wrap; gap: 10px; }
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: var(--radius-full);
  background: var(--card);
  border: var(--bw) solid var(--border);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--foreground);
  white-space: nowrap;
  transition: transform 0.25s var(--bounce);
}
.status-chip:hover { transform: translateY(-2px) rotate(-2deg); }
.status-chip:nth-child(1) .icon-dot { background: var(--accent); }
.status-chip:nth-child(2) .icon-dot { background: var(--secondary); }
.status-chip:nth-child(3) .icon-dot { background: var(--tertiary); }
.status-chip:nth-child(4) .icon-dot { background: var(--quaternary); }
.status-chip .icon-dot {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.status-chip .icon-dot svg {
  width: 13px; height: 13px; stroke: #ffffff; fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

.portrait-wrap {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  order: -1;
  max-width: 320px;
  margin: 0 auto;
}
@media (min-width: 881px) {
  .portrait-wrap { order: 0; max-width: none; margin: 0; }
}
.portrait-blob { position: absolute; inset: -6% -14% -6% -6%; z-index: -1; }
.portrait-frame {
  position: relative;
  width: 84%;
  height: 90%;
  border-radius: 46% 54% 52% 48% / 52% 48% 52% 48%;
  overflow: hidden;
  border: var(--bw) solid var(--border);
  box-shadow: 6px 6px 0 var(--border);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }

/* ================= video greeting (after hero) ================= */

.video-greeting {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 6vw, 48px) clamp(48px, 7vw, 76px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.video-greeting .kicker {
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--secondary-deep);
}
.video-greeting h2 { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.video-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--bw) solid var(--border);
  box-shadow: 8px 8px 0 var(--accent);
  background: #0f172a;
}
.video-card video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }

/* ================= screen 2: nav cards ================= */

.nav-section {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 6vw, 48px) clamp(64px, 9vw, 110px);
}
.nav-heading { position: relative; z-index: 1; text-align: center; max-width: 640px; margin: 0 auto 44px; }
.nav-heading .kicker {
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--secondary-deep); margin-bottom: 10px; display: block;
}
.nav-heading h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; margin: 0; }

.card-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: clamp(20px, 3vw, 32px); }
@media (min-width: 881px) { .card-grid { grid-template-columns: 1fr 1fr; } }

.nav-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px);
  border: var(--bw) solid var(--border);
  box-shadow: 8px 8px 0 var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.3s var(--bounce), box-shadow 0.3s var(--bounce);
  text-decoration: none;
  color: var(--foreground);
  overflow: hidden;
}
.nav-card:hover { transform: rotate(-1deg) scale(1.02); box-shadow: 10px 10px 0 var(--border-soft); }
.nav-card:nth-child(1) .corner-flap { background: var(--quaternary); }
.nav-card:nth-child(2) .corner-flap { background: var(--secondary); }
.nav-card .corner-flap { top: -16px; right: 20px; width: 40px; height: 40px; }

.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-deep); }
.age-stamp {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%;
  background: var(--tertiary); color: var(--tertiary-deep);
  border: var(--bw) solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: "Outfit", system-ui, sans-serif; font-weight: 800; font-size: 14px;
  transform: rotate(-8deg); box-shadow: 3px 3px 0 var(--border);
}
.nav-card h3 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin: 0; line-height: 1.05; }
.nav-card .tagline { margin: -10px 0 0; color: var(--accent-deep); font-weight: 700; font-size: 15px; }

.media-preview {
  border-radius: var(--radius-md); background: var(--muted); border: var(--bw) solid var(--border-soft);
  padding: 14px; display: grid; gap: 10px;
}
.thumb-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.thumb { aspect-ratio: 3 / 4; border-radius: var(--radius-sm); overflow: hidden; position: relative; border: var(--bw) solid var(--border); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .thumb-tag {
  position: absolute; left: 8px; bottom: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em;
  color: #fff; background: rgba(30, 41, 59, 0.65); padding: 4px 9px; border-radius: var(--radius-full);
}
.thumb .play-dot {
  position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(30, 41, 59, 0.65); display: flex; align-items: center; justify-content: center;
}
.thumb .play-dot::after {
  content: ""; width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent;
  border-left: 8px solid #fff; margin-left: 2px;
}

/* all 4 book covers in the "Книги" nav card */
.cover-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.cover-grid .cover-item {
  aspect-ratio: 1 / 1; border-radius: var(--radius-sm); overflow: hidden; border: var(--bw) solid var(--border);
  box-shadow: 2px 2px 0 var(--border-soft);
}
.cover-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }

.card-cta {
  margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13.5px; font-weight: 800; letter-spacing: 0.02em; color: var(--foreground);
  background: var(--card); border: var(--bw) solid var(--border); border-radius: var(--radius-full);
  padding: 10px 18px; box-shadow: 3px 3px 0 var(--border);
  transition: transform 0.2s var(--bounce), box-shadow 0.2s var(--bounce), background 0.2s ease;
}
.card-cta svg { width: 14px; height: 14px; stroke-width: 2.5; transition: transform 0.25s ease; }
.nav-card:hover .card-cta { background: var(--tertiary); transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--border); }
.nav-card:hover .card-cta svg { transform: translateX(4px); }

/* ================= screen 3: play spaces (bento overview) ================= */

.section, .parks-section {
  position: relative; max-width: 1180px; margin: 0 auto;
  padding: clamp(20px, 4vw, 32px) clamp(20px, 6vw, 48px) clamp(40px, 7vw, 76px);
}
.section-heading, .parks-intro-heading { max-width: 680px; margin: 0 0 36px; }
.section-heading .kicker, .parks-intro-heading .kicker {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--secondary-deep); margin-bottom: 12px;
}
.section-heading .kicker::before, .parks-intro-heading .kicker::before {
  content: ""; width: 22px; height: 4px; background: var(--secondary); border-radius: var(--radius-full); display: inline-block;
}
.section-heading h2, .parks-intro-heading h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.08; margin: 0 0 14px; color: var(--foreground); }
.section-heading p, .parks-intro-heading p { font-size: clamp(0.98rem, 1.4vw, 1.08rem); line-height: 1.55; color: var(--muted-foreground); max-width: 56ch; margin: 0; }

.bento { display: grid; grid-template-columns: 1fr; grid-auto-rows: auto; grid-auto-flow: dense; gap: 16px; }
.tile-photo { grid-column: span 1; grid-row: span 1; aspect-ratio: 4/3; }
.tile-quote, .tile-tg, .tile-books, .tile-contact, .tile-accent {
  grid-column: span 1; aspect-ratio: auto; min-height: 120px;
}
.tile-accent { aspect-ratio: 4/3; min-height: 0; }
@media (min-width: 561px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .tile-photo { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .tile-quote { grid-column: span 2; }
  .tile-tg, .tile-books, .tile-contact, .tile-accent { min-height: 0; }
}
@media (min-width: 861px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 132px; }
}

.tile {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: var(--bw) solid var(--border); box-shadow: 6px 6px 0 var(--border-soft);
  transition: transform 0.3s var(--bounce), box-shadow 0.3s var(--bounce);
}

.tile-photo.tile-wide { grid-row: span 1; }
.tile-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-photo .tile-scrim {
  position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 41, 59, 0) 45%, rgba(30, 41, 59, 0.72) 100%);
}
.tile-photo .tile-label { position: absolute; left: 20px; right: 20px; bottom: 16px; color: #ffffff; }
.tile-photo .tile-label .name {
  font-family: "Outfit", system-ui, sans-serif; font-weight: 800; letter-spacing: -0.01em;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem); display: block;
}
.tile-photo .tile-label .meta { font-size: 12.5px; font-weight: 600; opacity: 0.9; display: block; margin-top: 3px; }

.tile-tg {
  grid-column: span 1; grid-row: span 1; display: flex; flex-direction: column; justify-content: space-between;
  padding: 18px; text-decoration: none; color: inherit;
}
.tile-tg:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--border-soft); }
.tile-tg.petrol { background: var(--accent); color: #ffffff; }
.tile-tg.mustard { background: var(--tertiary); color: var(--tertiary-deep); }
.tile-tg .tg-icon { width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); display: flex; align-items: center; justify-content: center; }
.tile-tg.mustard .tg-icon { background: rgba(146, 64, 14, 0.16); }
.tile-tg .tg-icon svg { width: 16px; height: 16px; fill: currentColor; }
.tile-tg .tg-handle { font-family: "Outfit", system-ui, sans-serif; font-weight: 800; font-size: 15px; letter-spacing: -0.01em; margin-top: 14px; }
.tile-tg .tg-sub { font-size: 12px; font-weight: 700; opacity: 0.85; margin-top: 2px; }
.tile-tg .tg-cta { font-size: 12.5px; font-weight: 800; display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; }
.tile-tg .tg-cta svg { width: 13px; height: 13px; stroke-width: 2.5; transition: transform 0.25s ease; }
.tile-tg:hover .tg-cta svg { transform: translateX(3px); }

.tile-quote { background: var(--card); padding: 22px 26px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.tile-quote .quote-mark { font-family: Georgia, serif; font-size: 42px; line-height: 0.5; color: var(--secondary); font-weight: 700; }
.tile-quote p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--foreground); font-weight: 500; }
.tile-quote .quote-attr { font-size: 12px; color: var(--muted-foreground); font-weight: 700; }

.tile-books {
  grid-column: span 1; grid-row: span 1; background: var(--secondary); color: #ffffff; padding: 18px;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
}
.tile-books:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--border-soft); }
.tile-books .tb-icon { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, 0.26); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.tile-books .tb-icon svg { width: 15px; height: 15px; stroke: #ffffff; fill: none; stroke-width: 2.5; }
.tile-books .tb-title { font-family: "Outfit", system-ui, sans-serif; font-weight: 800; font-size: 13.5px; }
.tile-books .tb-text { font-size: 12px; line-height: 1.4; opacity: 0.95; }

.tile-contact {
  grid-column: span 1; grid-row: span 1; background: var(--card); padding: 18px;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
}
.tile-contact .tc-icon { width: 30px; height: 30px; border-radius: 50%; background: var(--quaternary); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.tile-contact .tc-icon svg { width: 14px; height: 14px; stroke: #ffffff; fill: none; stroke-width: 2.5; }
.tile-contact .tc-phone { font-family: "Outfit", system-ui, sans-serif; font-weight: 800; font-size: 15px; color: var(--foreground); }
.tile-contact .tc-label { font-size: 11.5px; color: var(--muted-foreground); font-weight: 600; }

.tile-accent { grid-column: span 1; grid-row: span 1; }
.tile-accent img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ================= screen 3b: venues detail ================= */

.venues-wrap {
  max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 6vw, 48px) clamp(48px, 7vw, 84px);
  display: flex; flex-direction: column; gap: clamp(48px, 7vw, 84px);
}

.venue { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 52px); align-items: center; }
.venue-media { order: -1; }
.venue-content { order: 2; }
@media (min-width: 861px) {
  .venue { grid-template-columns: 1fr 1fr; }
  .venue-media { order: 0; }
  .venue-content { order: 0; }
  .venue.reverse .venue-media { order: 2; }
  .venue.reverse .venue-content { order: 1; }
}

.venue-media { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.venue-media .shot-main {
  grid-row: span 2; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3/4;
  border: var(--bw) solid var(--border); box-shadow: 6px 6px 0 var(--border-soft);
}
.venue-media .shot-sub { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 1/1; border: var(--bw) solid var(--border); }
.venue-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.venue-content .kicker {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 12px;
}
.venue.motor .kicker { color: var(--accent-deep); }
.venue.milo .kicker { color: var(--tertiary-deep); }
.venue-content .kicker::before { content: ""; width: 20px; height: 4px; background: currentColor; border-radius: var(--radius-full); display: inline-block; }

.venue-content h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.02; margin: 0 0 10px; }
.venue-content .tagline { font-size: 15px; font-weight: 700; margin: 0 0 14px; }
.venue.motor .tagline { color: var(--accent-deep); }
.venue.milo .tagline { color: var(--tertiary-deep); }
.venue-content .desc { font-size: 15px; line-height: 1.6; color: var(--muted-foreground); margin: 0 0 20px; max-width: 46ch; }

.feature-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 24px; }
.feature-list li { font-size: 12.5px; font-weight: 700; padding: 7px 13px; border-radius: var(--radius-full); background: var(--card); border: var(--bw) solid var(--border); color: var(--foreground); }

.venue-contacts { display: grid; gap: 10px; padding: 18px 20px; border-radius: var(--radius-md); background: var(--card); border: var(--bw) solid var(--border); box-shadow: 5px 5px 0 var(--border-soft); }
.contact-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.contact-row .c-icon { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.venue.motor .contact-row .c-icon { background: var(--accent-tint); }
.venue.milo .contact-row .c-icon { background: var(--tertiary-tint); }
.contact-row .c-icon svg { width: 13px; height: 13px; stroke-width: 2.5; fill: none; }
.venue.motor .contact-row .c-icon svg { stroke: var(--accent-deep); }
.venue.milo .contact-row .c-icon svg { stroke: var(--tertiary-deep); }
.contact-row .c-main { font-weight: 700; color: var(--foreground); }
.contact-row .c-sub { color: var(--muted-foreground); font-weight: 500; }
.contact-row a.c-main { text-decoration: none; }
.contact-row.missing { border: var(--bw) dashed var(--border-soft); border-radius: var(--radius-sm); padding: 6px 10px; margin: -6px -10px; }
.contact-row.missing .c-icon { background: transparent; border: var(--bw) dashed var(--border-soft); }
.contact-row.missing .c-icon svg { stroke: var(--muted-foreground); }
.contact-row.missing .c-main { color: var(--muted-foreground); font-weight: 600; font-style: italic; }

/* ================= screen 4: books ================= */

.books-section { max-width: 1180px; margin: 0 auto; padding: clamp(40px, 7vw, 76px) clamp(20px, 6vw, 48px); }
.books-intro { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.books-intro .kicker {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--secondary-deep); margin-bottom: 12px;
}
.books-intro h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.08; margin: 0 0 12px; }
.books-intro p { font-size: 15px; line-height: 1.6; color: var(--muted-foreground); margin: 0; }

.book-list { display: flex; flex-direction: column; gap: 24px; }

.book-row {
  display: flex; flex-direction: column; gap: 20px;
  background: var(--card); border: var(--bw) solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 30px); box-shadow: 8px 8px 0 var(--border-soft);
  transition: transform 0.3s var(--bounce), box-shadow 0.3s var(--bounce);
}
.book-row:hover { transform: translate(-2px, -2px); box-shadow: 10px 10px 0 var(--border-soft); }
@media (min-width: 761px) { .book-row { flex-direction: row; align-items: flex-start; } }

.book-cover-btn {
  position: relative; flex-shrink: 0; width: 100%; max-width: 240px; margin: 0 auto;
  aspect-ratio: 1 / 1; border-radius: var(--radius-md); overflow: hidden;
  border: var(--bw) solid var(--border); padding: 0; cursor: pointer; display: block;
  box-shadow: 4px 4px 0 var(--border); background: var(--muted);
  transition: transform 0.25s var(--bounce), box-shadow 0.25s var(--bounce);
}
@media (min-width: 761px) { .book-cover-btn { width: 210px; max-width: none; margin: 0; } }
.book-cover-btn:hover, .book-cover-btn:focus-visible { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--border); }
.book-cover-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book-cover-btn .cover-hint {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0) 0%, rgba(30, 41, 59, 0.76) 100%);
  color: #ffffff; font-size: 12px; font-weight: 700; padding: 30px 12px 12px; text-align: center;
  opacity: 0; transition: opacity 0.25s ease;
}
.book-cover-btn:hover .cover-hint, .book-cover-btn:focus-visible .cover-hint { opacity: 1; }
.book-age-stamp {
  position: absolute; top: -10px; right: -10px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--tertiary); color: var(--tertiary-deep); border: var(--bw) solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: "Outfit", system-ui, sans-serif; font-weight: 800; font-size: 12px; text-align: center; line-height: 1.05;
  transform: rotate(-8deg); box-shadow: 3px 3px 0 var(--border);
}

.book-content { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.book-eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-deep); }
.book-content h3 { margin: 0; font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.08; }

.book-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.book-badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-full); background: var(--muted); color: var(--foreground); border: var(--bw) solid var(--border-soft); }
.book-badge.award { background: var(--accent-tint); color: var(--accent-deep); border-color: var(--accent-tint); }
.book-badge.gift { background: var(--secondary-tint); color: var(--secondary-deep); border-color: var(--secondary-tint); }

.book-desc { font-size: 13.5px; line-height: 1.62; color: var(--muted-foreground); margin: 0; }
.book-tagline { font-size: 12.5px; font-style: italic; font-weight: 700; color: var(--tertiary-deep); margin: 0; }

.buy-groups { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; padding-top: 14px; border-top: var(--bw) dashed var(--border-soft); }
.buy-group { display: flex; flex-direction: column; gap: 6px; }
.buy-group-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-foreground); }
.buy-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.buy-pill {
  font-size: 12px; font-weight: 800; padding: 7px 14px; border-radius: var(--radius-full);
  background: var(--accent); color: #ffffff; text-decoration: none;
  border: var(--bw) solid var(--border); box-shadow: 3px 3px 0 var(--border);
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  transition: transform 0.2s var(--bounce), box-shadow 0.2s var(--bounce);
}
.buy-pill:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--border); }
.buy-pill:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--border); }
.buy-pill.alt { background: var(--tertiary); color: var(--tertiary-deep); }
.buy-pill.audio { background: var(--secondary); color: #ffffff; }

/* ---------- lightbox slider (books gallery) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 50; background: rgba(30, 41, 59, 0.88);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease; padding: 24px;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: min(90vw, 640px); max-height: 80vh; border-radius: var(--radius-md);
  border: var(--bw) solid var(--border); box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.3); background: #fff;
}
.lb-close {
  position: absolute; top: 16px; right: 18px;
  background: var(--card); border: var(--bw) solid var(--border); color: var(--foreground);
  font-size: 20px; line-height: 1; width: 40px; height: 40px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.25); transition: transform 0.2s var(--bounce);
}
.lb-close:hover { transform: translate(-1px, -1px) rotate(-8deg); }
.lb-prev, .lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: var(--card); border: var(--bw) solid var(--border); color: var(--foreground);
  width: 46px; height: 46px; border-radius: 50%; font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.25); transition: transform 0.2s var(--bounce);
}
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.08); }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-counter {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  color: var(--foreground); font-size: 12.5px; font-weight: 800;
  background: var(--tertiary); border: var(--bw) solid var(--border); padding: 5px 12px; border-radius: var(--radius-full);
}
@media (max-width: 600px) { .lb-prev, .lb-next { width: 38px; height: 38px; font-size: 18px; } }

/* ================= screen 5: МилоЛэнд — unified tile block ================= */
.ml-bg {
  /*background: #d58851;*/
}
.ml-bento-wrap {
  max-width: 1180px; margin: 0 auto;
  padding: clamp(20px, 5vw, 40px) clamp(20px, 6vw, 48px) clamp(56px, 8vw, 88px);
  display: flex; flex-direction: column; gap: 20px;
}

.ml-tile {
  background: var(--card); border: var(--bw) solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 6px 6px 0 var(--border-soft);
}

/* -- top row: tile 1 (intro) + tile 2 (video) -- */
.ml-top-row { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 860px) { .ml-top-row { grid-template-columns: 2.5fr 1fr; align-items: stretch; } }
.ml-intro-tile { padding: clamp(24px, 3.5vw, 36px); display: flex; flex-direction: column; gap: 12px; }
.ml-intro-tile .ml-logo-row { display: flex; align-items: center; gap: 12px; }
.ml-intro-tile .ml-logo {
  width: 48px; height: 48px; border-radius: 50%; border: var(--bw) solid var(--border);
  overflow: hidden; flex-shrink: 0; box-shadow: 2px 2px 0 var(--border); background: #fff;
}
.ml-intro-tile .ml-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ml-intro-tile .ml-kicker { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tertiary-deep); }
.ml-intro-tile h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.02; }
.ml-intro-tile .ml-subhead { margin: 0; font-size: 15px; font-weight: 800; color: var(--tertiary-deep); }
.ml-intro-tile p.ml-desc { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted-foreground); }
.ml-tg-btn {
  align-self: flex-start; margin-top: 6px;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--tertiary); color: var(--tertiary-deep);
  font-weight: 800; font-size: 14px;
  padding: 11px 20px; border-radius: var(--radius-full);
  border: var(--bw) solid var(--border);
  box-shadow: 3px 3px 0 var(--border);
  text-decoration: none;
  transition: transform 0.2s var(--bounce), box-shadow 0.2s var(--bounce);
}
.ml-tg-btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--border); }
.ml-tg-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--border); }
.ml-tg-btn svg { width: 15px; height: 15px; fill: currentColor; }

/* tile 2: vertical video */
.ml-video-tile {
  position: relative; overflow: hidden; cursor: pointer;
  aspect-ratio: 9 / 16; max-height: 560px;
}
.ml-video-tile img, .ml-video-tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ml-video-tile .ml-play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--card); border: var(--bw) solid var(--border);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 4px 4px 0 var(--border);
  transition: transform 0.2s var(--bounce);
}
.ml-video-tile:hover .ml-play-btn { transform: translate(-50%, -50%) scale(1.08); }
.ml-video-tile .ml-play-btn svg { width: 22px; height: 22px; fill: var(--tertiary-deep); margin-left: 3px; }
.ml-video-tile .ml-video-tag {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(30, 41, 59, 0.7); color: #fff; font-size: 11px; font-weight: 700;
  padding: 5px 11px; border-radius: var(--radius-full);
}
.ml-video-tile.playing .ml-play-btn, .ml-video-tile.playing .ml-video-tag { display: none; }
.ml-video-tile.playing { cursor: default; }

/* -- zones group (tile group 3) -- */
.ml-zones-head { display: flex; flex-direction: column; gap: 4px; }
.ml-zones-head .ml-kicker {
  display: inline-flex; align-items: center; gap: 8px; color: var(--tertiary-deep);
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
}
.ml-zones-head .ml-kicker::before { content: ""; width: 20px; height: 4px; background: var(--tertiary); border-radius: var(--radius-full); display: inline-block; }
.ml-zones-head h3 { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.ml-zones-head p { margin: 0; font-size: 13.5px; color: var(--muted-foreground); }

.ml-zones-scroller {
  display: grid; grid-auto-flow: column; grid-auto-columns: 62%;
  gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 2px 2px 10px; scrollbar-width: none;
}
.ml-zones-scroller::-webkit-scrollbar { display: none; }
.ml-zones-scroller .ml-zone-card { scroll-snap-align: start; }
@media (min-width: 640px) { .ml-zones-scroller { grid-auto-columns: 38%; } }
@media (min-width: 980px) {
  .ml-zones-scroller { display: grid; grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); overflow-x: visible; }
}

.ml-zone-card {
  background: var(--card); border: var(--bw) solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: 5px 5px 0 var(--border-soft);
  transition: transform 0.3s var(--bounce), box-shadow 0.3s var(--bounce);
  display: flex; flex-direction: column;
}
.ml-zone-card:hover { transform: translateY(-3px); box-shadow: 7px 7px 0 var(--border-soft); }
.ml-zone-photo { aspect-ratio: 3 / 4; position: relative; background: var(--muted); overflow: hidden;}
.ml-zone-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ml-zone-num {
  position: absolute; top: 8px; left: 8px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--tertiary); border: var(--bw) solid var(--border); color: var(--tertiary-deep);
  font-family: "Outfit", system-ui, sans-serif; font-weight: 800; font-size: 11px;
  display: flex; align-items: center; justify-content: center; box-shadow: 2px 2px 0 var(--border);
}
.ml-zone-body { padding: 12px 14px 14px; }
.ml-zone-body h4 { margin: 0 0 4px; font-size: 13.5px; font-family: "Outfit", system-ui, sans-serif; font-weight: 800; }
.ml-zone-body p { margin: 0; font-size: 11.5px; line-height: 1.45; color: var(--muted-foreground); }

.ml-swipe-hint {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; color: var(--muted-foreground);
}
.ml-swipe-hint svg { width: 14px; height: 14px; stroke: var(--muted-foreground); fill: none; stroke-width: 2.4; animation: ml-swipe-nudge 1.6s ease-in-out infinite; }
@media (min-width: 980px) { .ml-swipe-hint { display: none; } }
@keyframes ml-swipe-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

/* -- perks group (tile group 4, no heading) -- */
.ml-perks-row { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .ml-perks-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .ml-perks-row { grid-template-columns: repeat(4, 1fr); } }

.ml-perk-card {
  background: var(--card); border: var(--bw) solid var(--border); border-radius: var(--radius-md);
  padding: 18px; box-shadow: 5px 5px 0 var(--border-soft);
  display: flex; flex-direction: column; gap: 8px;
}
.ml-perk-icon { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: var(--bw) solid var(--border); }
.ml-perk-icon svg { width: 18px; height: 18px; fill: none; stroke-width: 2.4; }
.ml-perk-card:nth-child(1) .ml-perk-icon { background: var(--quaternary-tint); }
.ml-perk-card:nth-child(1) .ml-perk-icon svg { stroke: var(--quaternary-deep); }
.ml-perk-card:nth-child(2) .ml-perk-icon { background: var(--secondary-tint); }
.ml-perk-card:nth-child(2) .ml-perk-icon svg { stroke: var(--secondary-deep); }
.ml-perk-card:nth-child(3) .ml-perk-icon { background: var(--tertiary-tint); }
.ml-perk-card:nth-child(3) .ml-perk-icon svg { stroke: var(--tertiary-deep); }
.ml-perk-card:nth-child(4) .ml-perk-icon { background: var(--accent-tint); }
.ml-perk-card:nth-child(4) .ml-perk-icon svg { stroke: var(--accent-deep); }
.ml-perk-card h3 { margin: 0; font-size: 14.5px; }
.ml-perk-card p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted-foreground); }

/* -- tile 5 (contacts) + tile 6 (price) -- */
.ml-bottom-row { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 780px) { .ml-bottom-row { grid-template-columns: 1fr 1fr; } }


.ml-contact-tile {
    background: #d58851;
    color: #FFF;
}
.ml-contact-tile, .ml-price-tile { padding: clamp(22px, 3vw, 30px); }
.ml-tile-label {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px;
}
.ml-tile-label::before { content: ""; width: 20px; height: 4px; border-radius: var(--radius-full); display: inline-block; }
.ml-contact-tile .ml-tile-label { color: var(--card); }
.ml-contact-tile .ml-tile-label::before { background: var(--quaternary); }
.ml-price-tile .ml-tile-label { color: var(--secondary-deep); }
.ml-price-tile .ml-tile-label::before { background: var(--secondary); }

.ml-contact-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; margin-bottom: 12px; }
.ml-contact-row:last-child { margin-bottom: 0; }
.ml-contact-row .ic {
  width: 28px; height: 28px; border-radius: 50%; background: var(--quaternary-tint);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
}
.ml-contact-row .ic svg { width: 14px; height: 14px; stroke: var(--quaternary-deep); fill: none; stroke-width: 2.4; }
.ml-contact-row .big { font-family: "Outfit", system-ui, sans-serif; font-weight: 800; font-size: 17px; text-decoration: none; color: var(--foreground); }
.ml-contact-row p { margin: 0; line-height: 1.5; color: var(--muted-foreground); }
.ml-contact-row b { display: block; color: var(--foreground); font-weight: 700; }

.ml-price-headline { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.ml-price-headline .num { font-family: "Outfit", system-ui, sans-serif; font-weight: 800; font-size: clamp(1.8rem, 3.6vw, 2.3rem); color: var(--secondary-deep); }
.ml-price-headline .lbl { font-size: 13px; font-weight: 700; color: var(--muted-foreground); }
.ml-price-note { font-size: 13px; line-height: 1.55; color: var(--foreground); margin: 0 0 12px; }
.ml-price-todo {
  display: inline-block; margin-bottom: 14px; font-size: 11.5px; font-style: italic; font-weight: 700;
  color: var(--muted-foreground); border: var(--bw) dashed var(--border-soft); border-radius: var(--radius-sm); padding: 6px 10px;
}
.ml-pay-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ml-pay-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  background: var(--muted); border: var(--bw) solid var(--border-soft); border-radius: var(--radius-full); padding: 6px 12px;
}
.ml-pay-chip svg { width: 14px; height: 14px; stroke: var(--foreground); fill: none; stroke-width: 2.2; }
.ml-call-note {
  font-size: 12.5px; line-height: 1.5; color: var(--muted-foreground);
  background: var(--tertiary-tint); border-radius: var(--radius-sm); padding: 10px 12px; margin: 0;
}
.ml-call-note a { font-weight: 800; color: var(--tertiary-deep); text-decoration: none; }

/* -- unconfirmed-fact state, reused across both venue blocks -- */
.ml-contact-row.missing .ic { background: transparent; border: var(--bw) dashed var(--border-soft); }
.ml-contact-row.missing .ic svg { stroke: var(--muted-foreground); }
.ml-contact-row.missing p, .ml-contact-row.missing .big { font-style: italic; color: var(--muted-foreground); }
.ml-price-pending {
  border: var(--bw) dashed var(--border-soft); border-radius: var(--radius-md);
  padding: 14px; text-align: center; font-style: italic; font-weight: 700;
  color: var(--muted-foreground); font-size: 13px; margin-bottom: 14px;
}

/* -- Motor City variant: same tile system, violet instead of amber -- */
.mc-bg {
  /*background: #70b2b2;*/
}
.mc-block .ml-intro-tile .ml-kicker,
.mc-block .ml-subhead,
.mc-block .ml-zones-head .ml-kicker { color: var(--accent-deep); }
.mc-block .ml-zones-head .ml-kicker::before { background: var(--accent); }
.mc-block .ml-tg-btn { background: var(--accent); color: #ffffff; }
.mc-block .ml-zone-num { background: var(--accent); color: #ffffff; }
.mc-block .ml-video-tile .ml-play-btn svg { fill: var(--accent-deep); }
.mc-block .ml-contact-tile .ml-tile-label,
.mc-block .ml-price-tile .ml-tile-label { color: var(--accent-deep); }
.mc-block .ml-contact-tile .ml-tile-label::before,
.mc-block .ml-price-tile .ml-tile-label::before { background: var(--accent); }
.mc-block .ml-contact-row .ic { background: var(--accent-tint); }
.mc-block .ml-contact-row .ic svg { stroke: var(--accent-deep); }
.mc-block .ml-price-headline .num { color: var(--accent-deep); }
.mc-block .ml-call-note { background: var(--accent-tint); }
.mc-block .ml-call-note a { color: var(--accent-deep); }

/* -- perks group (tile group 4, no heading) -- */
.mc-perks-row { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .mc-perks-row { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .mc-perks-row { grid-template-columns: repeat(3, 1fr); } }
/* ================= global ================= */

.build-note {
  position: fixed; bottom: 14px; right: 14px; z-index: 5;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--foreground);
  background: var(--card); border: var(--bw) solid var(--border); padding: 7px 12px;
  border-radius: var(--radius-full); box-shadow: 3px 3px 0 var(--border);
}
