/* Главная, каталог и доставка. */

/* ── Главная: вся коллекция в первом экране ── */
.home-hero { position: relative; overflow: hidden; isolation: isolate; }
.home-hero::before {
  position: absolute; z-index: -1; inset: 0; content: "";
  background:
    radial-gradient(45% 65% at 92% 6%, rgba(255, 255, 255, .72), transparent 72%),
    radial-gradient(42% 58% at 8% 95%, rgba(239, 163, 75, .22), transparent 74%),
    var(--hero-gradient);
}
.home-hero__inner { min-height: 690px; padding: clamp(50px, 6vw, 74px) 0 64px; }
.home-hero__copy { max-width: 820px; margin: 0 auto; text-align: center; }
.kicker { margin-bottom: 18px; color: var(--rust); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.home-hero__copy h1 { max-width: 16ch; margin-inline: auto; font-size: clamp(46px, 5.5vw, 76px); }
.home-hero__copy .lead { max-width: 670px; margin-inline: auto; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin-top: 28px; }

.hero-collection {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end;
  gap: clamp(8px, 1.5vw, 22px); max-width: 1060px; margin: 46px auto 0;
}
.hero-game {
  position: relative; display: grid; justify-items: center; align-content: end; min-width: 0;
  padding: 18px 12px 12px; border-radius: 18px; background: color-mix(in srgb, var(--game-sand) 84%, white);
  color: var(--game-accent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--game-accent) 18%, transparent);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.hero-game:nth-child(2), .hero-game:nth-child(4) { transform: translateY(22px); }
.hero-game:hover, .hero-game:focus-within { transform: translateY(-8px); box-shadow: 0 24px 38px -24px color-mix(in srgb, var(--game-accent) 62%, transparent); }
.hero-game:nth-child(2):hover, .hero-game:nth-child(2):focus-within,
.hero-game:nth-child(4):hover, .hero-game:nth-child(4):focus-within { transform: translateY(14px); }
.hero-game__cover { display: grid; justify-items: center; color: inherit; text-decoration: none; }
.hero-game img { width: min(100%, 140px); border-radius: 4px; box-shadow: 0 20px 26px -16px rgba(55, 28, 25, .48); }
.hero-game span { margin-top: 11px; font-size: 12px; font-weight: 600; line-height: 1.25; text-align: center; }
.hero-game__buy { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; margin-top: 9px; padding: 0 14px; border-radius: 8px; background: var(--game-accent); color: white; text-decoration: none; font-size: 12px; font-weight: 600; }
.hero-game__buy:hover { filter: brightness(.9); }

/* ── Короткие факты ── */
.proof-bar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.proof-item { display: flex; min-height: 94px; align-items: baseline; justify-content: center; gap: 11px; padding: 24px; border-right: 1px solid var(--line); text-align: center; }
.proof-item:last-child { border-right: 0; }
.proof-item strong { color: var(--rust); font-family: var(--display); font-size: clamp(21px, 2.2vw, 30px); line-height: 1; white-space: nowrap; }
.proof-item span { color: var(--ink-soft); font-size: 14px; }

/* ── Игры: коробка, суть и два понятных действия ── */
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.game-card { position: relative; width: 290px; height: 420px; perspective: 1200px; cursor: pointer; }
.game-card__inner { position: relative; width: 100%; height: 100%; transition: transform .75s cubic-bezier(.4, 0, .2, 1); transform-style: preserve-3d; }
.game-card:hover .game-card__inner, .game-card:focus-within .game-card__inner { transform: rotateY(180deg); }
.game-card__face { position: absolute; inset: 0; overflow: hidden; border: 1px solid color-mix(in srgb, var(--card-accent) 18%, transparent); border-radius: 22px; background: var(--paper); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.game-card__front { display: flex; flex-direction: column; }
.game-card__cover { position: relative; display: grid; flex: 0 0 220px; place-items: center; background: var(--card-sand, var(--cream)); text-decoration: none; }
.game-card__cover img { width: 80px; height: auto; border-radius: 4px; box-shadow: 0 20px 30px -14px rgba(76, 43, 35, .54); transform: rotate(-2deg); }
.game-card__badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; background: var(--paper); color: var(--card-accent, var(--rust)); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 2px 8px rgba(0, 0, 0, .1); }
.game-card__body { display: flex; flex: 1; flex-direction: column; padding: 16px 20px 20px; }
.game-card__title { margin-bottom: 6px; color: var(--cocoa); font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.game-card__desc { flex: 1; color: var(--ink-soft); font-size: 13px; line-height: 1.4; }
.game-card__price { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; }
.price-tag { color: var(--cocoa); font-family: var(--display); font-size: 22px; font-weight: 700; white-space: nowrap; }
.price-tag--ask { color: var(--ink-soft); font-family: var(--body); font-size: 13px; font-weight: 600; }
.game-card__cta { display: none; }

.game-card__back { display: flex; flex-direction: column; padding: 28px 24px 24px; transform: rotateY(180deg); border-color: transparent; background: var(--card-accent-deep, var(--cocoa)); color: var(--cream); }
.game-card__back-title { margin-bottom: 12px; color: var(--cream); font-family: var(--display); font-size: 18px; font-weight: 700; text-align: center; }
.game-card__back-title a { text-decoration: none; }
.game-card__back-txt { flex: 1; font-size: 13px; line-height: 1.55; opacity: .88; }
.game-card__back-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
.game-card__back .price-tag { color: var(--cream); }
.game-card__buy { display: inline-flex; width: 100%; min-height: 46px; align-items: center; justify-content: center; margin-top: 16px; border-radius: 11px; background: var(--honey); color: var(--cocoa); font-family: var(--display); font-size: 15px; font-weight: 700; text-decoration: none; box-shadow: 3px 3px 0 var(--rust); transition: transform .2s, box-shadow .2s; }
.game-card__buy:hover, .game-card__buy:focus-visible { transform: translateY(-2px); box-shadow: 4px 5px 0 var(--rust); }

.game-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }

/* ── О бренде — один акцент вместо сетки карточек ── */
.brand-note { padding: clamp(68px, 9vw, 116px) 0; background: var(--dark); color: var(--paper); }
.brand-note__grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: start; gap: clamp(34px, 8vw, 100px); }
.brand-note h2 { margin: 0; font-size: clamp(38px, 5vw, 64px); }
.brand-note p { max-width: 600px; color: rgba(255, 245, 231, .82); font-size: 18px; }
.brand-note .mission { margin-top: 30px; color: var(--yellow); font-family: var(--display); font-size: 24px; font-weight: 700; line-height: 1.3; }

/* ── Ежедневники ── */
.planners { background: var(--sand-2); }
.planners__grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(44px, 8vw, 100px); align-items: center; }
.planners__copy .lead { max-width: 580px; }
.planners__copy .btn { margin-top: 30px; }
.planner-visual { position: relative; min-height: 410px; }
.planner { position: absolute; left: calc(10% + var(--i) * 18%); top: calc(5% + var(--i) * 10%); width: 210px; aspect-ratio: 148 / 210; display: grid; align-content: end; gap: 4px; padding: 22px 20px 24px 34px; border-radius: 6px 14px 14px 6px; background: linear-gradient(135deg, #2a2624, #14110f); color: var(--paper); box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .6); transform: rotate(calc(-7deg + var(--i) * 4deg)); }
.planner b { font-family: var(--display); font-size: 20px; }
.planner span { font-size: 11px; opacity: .7; }
.planner__spiral { position: absolute; left: 7px; top: 12px; bottom: 12px; width: 8px; border-radius: 4px; background: repeating-linear-gradient(to bottom, #bfb8ad 0 6px, transparent 6px 14px); }

/* Каталог: карточки ежедневников */
.planner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.planner-card { display: grid; gap: 6px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.planner-card__visual { position: relative; height: 240px; margin-bottom: 12px; }
.planner-card .planner { --i: 0; left: 50%; top: 10px; width: 150px; transform: translateX(-50%) rotate(-4deg); }
.planner-card b { font-family: var(--display); font-size: 20px; }
.planner-card > span { color: var(--ink-soft); font-size: 14px; }
.soon-tag { display: inline-block; width: max-content; margin-top: 6px; padding: 5px 10px; border-radius: 999px; background: var(--cream); color: var(--rust) !important; font-size: 11px !important; font-weight: 600; }
.planner-quote { max-width: 800px; margin: 44px 0 0; padding: 30px 0 0; border-top: 1px solid var(--line); font-family: var(--display); font-size: clamp(20px, 2.2vw, 28px); line-height: 1.35; }
.planner-quote cite { display: block; margin-top: 16px; color: var(--ink-soft); font-family: var(--body); font-size: 14px; font-style: normal; }
.planner-quote cite b { display: block; color: var(--cocoa); }
.planners__facts { display: grid; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.planners__facts li { position: relative; padding-left: 22px; color: var(--ink-soft); font-size: 15px; }
.planners__facts li::before { position: absolute; left: 0; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--honey); content: ""; }

/* ── Финальный выбор ── */
.final { padding: 56px 0; background: var(--sand-2); }
.final-card { position: relative; overflow: hidden; padding: clamp(42px, 7vw, 74px); border-radius: 28px; background: var(--rust); color: var(--paper); }
.final-copy { position: relative; z-index: 1; max-width: 760px; }
.final-copy .eyebrow { color: var(--yellow); }
.final-copy p { color: rgba(255, 248, 237, .82); font-size: 18px; }
.final-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }

/* ── Каталог и доставка ── */
.page-head { padding: 64px 0 40px; }
.page-head h1 { font-size: clamp(40px, 5.6vw, 76px); }
.page-head .lead { max-width: 640px; }
.tabs { display: flex; gap: 8px; margin-top: 26px; }
.tabs a { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 600; }
.tabs a[aria-current="true"] { border-color: var(--cocoa); background: var(--cocoa); color: var(--paper); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.info-card { padding: 34px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); }
.info-card--wide { grid-column: 1 / -1; }
.info-card h2 { font-size: clamp(26px, 3vw, 38px); }
.info-card p { color: var(--ink-soft); }
.terms { width: 100%; margin: 18px 0; border-collapse: collapse; }
.terms th, .terms td { padding: 12px 0; border-top: 1px solid var(--line); text-align: left; font-weight: 400; }
.terms td { text-align: right; font-weight: 600; white-space: nowrap; }
.free { display: inline-block; margin: 8px 0 14px; padding: 8px 14px; border-radius: 999px; background: var(--cream); color: var(--cocoa) !important; font-size: 14px; font-weight: 600; }
.pay { display: grid; gap: 16px; margin: 0; }
.pay dt { font-weight: 600; }
.pay dd { margin: 4px 0 0; color: var(--ink-soft); }
.steps-list { padding-left: 22px; color: var(--ink-soft); }
.steps-list li + li { margin-top: 8px; }
.contacts p a { color: var(--cocoa); text-decoration: none; font-weight: 600; }

@media (max-width: 1100px) {
  .planner-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .home-hero__inner { min-height: 0; }
  .hero-collection { margin-top: 46px; }
  .hero-game { padding: 12px 8px 9px; border-radius: 13px; }
  .hero-game span { font-size: 11px; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-item { min-height: 70px; border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-item:last-child { border-bottom: 0; }
  .brand-note__grid, .planners__grid { grid-template-columns: 1fr; }
  .planner-visual { min-height: 330px; }
  .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .home-hero__inner { padding-top: 44px; }
  .home-hero__copy h1 { font-size: clamp(30px, 9vw, 58px); }
  .hero-actions .btn { width: 100%; }
  .hero-collection { grid-template-columns: repeat(6, 1fr); gap: 8px; }
  .hero-game { grid-column: span 2; }
  .hero-game:nth-child(4) { grid-column: 2 / span 2; }
  .hero-game:nth-child(5) { grid-column: 4 / span 2; }
  .hero-game:nth-child(2), .hero-game:nth-child(4) { transform: none; }
  .hero-game:nth-child(2):hover, .hero-game:nth-child(2):focus-within,
  .hero-game:nth-child(4):hover, .hero-game:nth-child(4):focus-within { transform: translateY(-5px); }
  .hero-game img { width: min(100%, 112px); }
  .hero-game__buy { width: 100%; padding-inline: 8px; }
  .proof-item { flex-wrap: wrap; padding: 18px; }
  .game-grid { gap: 16px; }
  .game-card { width: 100%; height: auto; perspective: none; cursor: auto; }
  .game-card__inner { transform: none !important; transform-style: flat; }
  .game-card__face { position: static; }
  .game-card__back { display: none; }
  .game-card__cover { flex-basis: auto; aspect-ratio: 335 / 210; }
  .game-card__cover img { width: 76px; }
  .game-card__body { gap: 10px; padding: 16px 18px 18px; }
  .game-card__title { font-size: 22px; }
  .game-card__desc { flex: none; font-size: 14px; line-height: 1.45; }
  .game-card__price { margin-top: 0; }
  .game-card__cta { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; margin-top: 4px; border-radius: 11px; background: var(--honey); color: var(--cocoa); font-family: var(--display); font-size: 15px; font-weight: 700; text-decoration: none; box-shadow: 3px 3px 0 var(--rust); }
  .game-card__cta:active { transform: scale(.98); box-shadow: 2px 2px 0 var(--rust); }
  .brand-note__grid { gap: 26px; }
  .brand-note p { font-size: 17px; }
  .planner { width: 155px; }
  .planner-visual { min-height: 280px; }
  .planner-card .planner { width: 140px; }
  .info-card { padding: 24px; }
  .final-card { border-radius: 20px; }
}

/* ── Эйбрау-подписи: рукописный шрифт ── */
.eyebrow { font-family: var(--hand); font-size: clamp(20px, 1.8vw, 26px); font-weight: 400; letter-spacing: .02em; text-transform: none; }
.eyebrow::before { display: none; }

/* ── Декор карточек игр: фоновые элементы со страниц игр ── */
.game-card__cover::before { position: absolute; inset: 0; z-index: 0; content: ""; pointer-events: none; }
.game-card__cover > img { position: relative; z-index: 1; }
.game-card--vsd .game-card__cover { background: linear-gradient(160deg, #2c2a4a, #3d3866 70%, #4a3f6e); }
.game-card--vsd .game-card__cover::before {
  background: url('../assets/games/vsd/decor/garland.svg') 50% 0 / 300px auto repeat-x, url('../assets/games/vsd/decor/stars.svg') 0 0 / 360px 240px repeat; opacity: .85; }
.game-card--noya .game-card__cover::before {
  background: url('../assets/games/noya/decor/leaves-top.webp') 50% 0 / auto 62% repeat-x; opacity: .9; }
.game-card--zhv2 .game-card__cover::before {
  background: url('../assets/games/zhv2/decor/fork.svg') 50% 100% / 118% auto no-repeat; opacity: .9; }
/* ЖВ: как на странице игры — зелёный круг, жёлтые круги и небольшое тёплое свечение за коробкой */
.game-card--zhv .game-card__cover::before {
  background:
    radial-gradient(circle 15px at 27% 24%, var(--yellow, #f3c45d) 98%, transparent 100%),
    radial-gradient(circle 11px at 74% 70%, rgba(243, 196, 93, .7) 98%, transparent 100%),
    radial-gradient(circle 46px at 40% 76%, #2f5247 98%, transparent 100%),
    radial-gradient(closest-side at 50% 50%, rgba(239, 163, 75, .34), transparent) 50% 50% / 190px 190px no-repeat;
}

/* ── Карточки ежедневников: рендер из 3D-студии (assets/03 · 3D-фотостудия/studio-planner) ── */
.game-card__cover .pc-photo { width: auto; height: 204px; max-width: 100%; border-radius: 0; box-shadow: none; transform: none; object-fit: contain; filter: drop-shadow(0 14px 14px rgba(76, 43, 35, .12)); }
@media (max-width: 640px) { .game-card__cover .pc-photo { height: 190px; } }
.game-card__badge { z-index: 2; }
