/* JPCASIO — screens.css (namespaced under .jp; source: design_files/screens.css) */
@keyframes rise { from { transform: translateY(8px); } to { transform: none; } }

.jp {
  box-sizing: border-box;

  /* JPCASIO v2 — стили экранов: главная */
  .prod-grid { display: grid; gap: 20px; }
  .prod-grid.g4 { grid-template-columns: repeat(4, 1fr); }
  .prod-grid.g3 { grid-template-columns: repeat(3, 1fr); }
  .sec-sub { font-size: 13px; color: var(--ink-2); margin-top: 8px; }
  .section-head.ctr .htitle { justify-content: center; }
  /* ---------- HERO ---------- */
  .hero { position: relative; background: var(--sand); overflow: hidden; }
  .hero-in { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; min-height: 440px; padding-top: 46px; padding-bottom: 56px; }
  .hero-copy .eyebrow { color: var(--ink-2); }
  .hero-title { margin: 16px 0 18px; }
  .hero-sub { font-size: 16px; color: var(--ink-2); max-width: 380px; margin-bottom: 28px; line-height: 1.55; }
  .hero-art { position: relative; }
  .hero-img { aspect-ratio: 16 / 11; border-radius: var(--r-l); background-color: #fff; border: 1px solid var(--line-2); box-shadow: var(--sh-2); }
  .hero-cap { position: absolute; bottom: 14px; right: 14px; font-size: 11px; color: var(--ink-2); background: rgba(255,255,255,.8); padding: 5px 10px; border-radius: 999px; }
  .hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 40px; height: 40px; border-radius: 999px; background: rgba(255,255,255,.7); display: flex; align-items: center; justify-content: center; color: var(--ink); transition: background .15s; }
  .hero-arrow:hover { background: #fff; }
  .hero-arrow.l { left: 14px; }
  .hero-arrow.r { right: 14px; }
  .hero-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; z-index: 3; }
  .hero-dots button { width: 8px; height: 8px; border-radius: 999px; background: rgba(20,20,15,.25); transition: background .15s, width .2s; }
  .hero-dots button.on { background: var(--ink); width: 22px; }
  /* ---------- GIFT FINDER ---------- */
  .gift-grid { display: grid; grid-template-columns: 0.85fr 1.7fr 0.9fr; gap: 32px; align-items: start; }
  .gift-cats .htitle { display: flex; }
  .catlist { display: flex; flex-direction: column; }
  .catrow { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); text-align: left; transition: padding .15s; }
  .catrow:hover { padding-left: 6px; }
  .catrow-n { font-size: 17px; font-weight: 700; }
  .catrow:hover .catrow-n { color: var(--acc-ink); }
  .catrow-c { font-size: 11px; color: var(--ink-3); }
  .picks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .gift-life { position: relative; border-radius: var(--r-l); overflow: hidden; min-height: 100%; display: block; aspect-ratio: 3 / 4; }
  .gift-life-img { position: absolute; inset: 0; }
  .gift-life-label { position: absolute; left: 18px; top: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; background: #fff; padding: 8px 14px; border-radius: var(--r-m); font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
  /* ---------- BESTSELLERS ---------- */
  .brand-tabs { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 30px; }
  .btab { font-size: 14px; font-weight: 700; padding: 8px 16px; border-radius: 999px; color: var(--ink-2); transition: background .15s, color .15s; }
  .btab:hover { color: var(--ink); }
  .btab.on { background: var(--ink); color: #fff; }
  .best-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 20px; align-items: stretch; }
  .best-feature { position: relative; border-radius: var(--r-l); overflow: hidden; display: flex; flex-direction: column; text-align: left; min-height: 100%; }
  .best-feature-img { position: absolute; inset: 0; }
  .best-feature-body { position: relative; z-index: 2; margin-top: auto; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
  .best-feature-name { font-size: 30px; font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; }
  /* ---------- NEW / SALE sections ---------- */
  .newsec { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .salesec { }
  .salesec .card-top, .newsec .card-top { background: #fff; }
  /* ---------- EDITORIAL + BLOG ---------- */
  .edit-grid { display: grid; grid-template-columns: 0.8fr 1.6fr; gap: 36px; align-items: stretch; }
  .edit-banner { position: relative; border-radius: var(--r-l); overflow: hidden; min-height: 360px; display: block; text-align: left; }
  .edit-banner-img { position: absolute; inset: 0; }
  .edit-banner-body { position: absolute; inset: 0; z-index: 2; padding: 30px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(120deg, rgba(20,20,15,.55), rgba(20,20,15,.05)); }
  .edit-banner-body h3 { font-size: 38px; font-weight: 900; text-transform: uppercase; color: #fff; line-height: 0.98; letter-spacing: -0.01em; }
  .edit-banner-body h3 .acc { color: var(--acc); }
  .blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .blog-card { display: flex; flex-direction: column; gap: 8px; text-align: left; }
  .blog-img { aspect-ratio: 16 / 9; border-radius: var(--r-m); }
  .blog-kicker { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--acc-ink); margin-top: 4px; }
  .blog-title { font-size: 15px; font-weight: 700; line-height: 1.25; }
  .blog-card:hover .blog-title { color: var(--acc-ink); }
  .screen-anim { }
  @media (prefers-reduced-motion: no-preference) {
    .screen-anim { animation: rise .32s ease both; }
  }
}
