:root{
    --orange:#F5A623;
    --orange-dk:#E8870D;
    --teal:#36B5AE;
    --violet:#6B4FBB;
    --yellow:#FFD23F;
    --pink:#E94B7B;
    --blue:#3DA9FC;
    --cream:#FFF6E5;
    --ink:#2A2342;
    --ink-soft:#5B557A;
    --line:rgba(232,135,13,.16);
    --card:#ffffff;
  }
  *{box-sizing:border-box}
  html,body{margin:0;padding:0}
  body{
    font-family:'Nunito',system-ui,-apple-system,sans-serif;
    font-weight:400;
    color:var(--ink);
    background:
      radial-gradient(1200px 600px at 110% -10%, rgba(245,166,35,.12), transparent 60%),
      radial-gradient(900px 500px at -10% 30%, rgba(54,181,174,.12), transparent 60%),
      var(--cream);
    -webkit-font-smoothing:antialiased;
    line-height:1.5;
    overflow-x:hidden;
  }
  img{max-width:100%;height:auto;display:block}
  a{color:inherit;text-decoration:none}
  .nobr{white-space:nowrap}

  /* colored brand word ЦифроГрай */
  .cg{font-weight:700;white-space:nowrap}

  /* ====== MARQUEE ====== */
  .marquee{
    background:var(--ink);color:#fff;
    font-weight:700;
    font-size:13px;letter-spacing:.04em;text-transform:uppercase;
    padding:10px 0;overflow:hidden;position:relative;
  }
  .marquee-track{display:flex;gap:48px;width:max-content;animation:scroll 45s linear infinite;will-change:transform}
  .marquee span{display:inline-flex;align-items:center;gap:14px}
  .marquee span::after{content:"★";color:var(--orange);margin-left:14px}
  @keyframes scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}

  /* ====== HEADER ====== */
  header{
    position:sticky;top:0;z-index:50;
    backdrop-filter:saturate(150%) blur(12px);
    background:rgba(255,246,229,.85);
    border-bottom:1px solid var(--line);
  }
  .nav{
    max-width:1180px;margin:0 auto;
    display:flex;align-items:center;justify-content:space-between;gap:24px;
    padding:12px 24px;
  }
  .brand{display:flex;align-items:center;gap:10px}
  .brand .logo-img{height:46px;width:auto;display:block}
  .nav-links{display:flex;gap:24px;font-size:14px;font-weight:700;color:var(--ink-soft)}
  .nav-links a{transition:color .15s}
  .nav-links a:hover{color:var(--ink)}
  .brand-cifro{height:48px;width:auto;display:block}
  @media (max-width:860px){.nav-links{display:none}}

  /* ====== HERO BANNER ====== */
  .banner{
    max-width:1180px;margin:0 auto;
    padding:48px 24px 32px;
  }
  .banner-inner{
    background:linear-gradient(160deg,#fff3d1 0%,#FFE0A8 55%,#FFC97A 100%);
    border-radius:36px;
    padding:48px;
    display:grid;
    grid-template-columns:1.05fr .95fr;
    gap:48px;align-items:center;
    position:relative;overflow:hidden;
    box-shadow:0 30px 80px -25px rgba(232,135,13,.35);
  }
  .banner-inner::before{
    content:"";position:absolute;
    inset:auto -80px -120px auto;
    width:380px;height:380px;
    border-radius:50%;
    background:radial-gradient(circle,rgba(255,255,255,.6),transparent 65%);
    pointer-events:none;
  }
  .pre-pill{
    display:inline-flex;align-items:center;gap:10px;
    background:rgba(255,255,255,.85);
    border:1px solid rgba(255,255,255,.9);
    padding:8px 16px;border-radius:999px;
    font-size:13px;font-weight:700;color:var(--ink);
    letter-spacing:.04em;text-transform:uppercase;
    box-shadow:0 6px 14px rgba(232,135,13,.18);
    margin-bottom:22px;
  }
  .pre-pill .dot{
    width:8px;height:8px;border-radius:50%;background:var(--pink);
    box-shadow:0 0 0 0 rgba(233,75,123,.6);
    animation:pulse 2s infinite;
  }
  @keyframes pulse{
    0%{box-shadow:0 0 0 0 rgba(233,75,123,.6)}
    70%{box-shadow:0 0 0 12px rgba(233,75,123,0)}
    100%{box-shadow:0 0 0 0 rgba(233,75,123,0)}
  }
  h1.hero-title{
    font-weight:700;
    font-size:clamp(36px,5.4vw,64px);
    line-height:1.04;margin:0 0 18px;
    letter-spacing:-.01em;
  }
  h1.hero-title .grad{
    background:linear-gradient(180deg,var(--orange),var(--orange-dk));
    -webkit-background-clip:text;background-clip:text;color:transparent;
  }
  .hero-sub{
    font-size:clamp(16px,1.5vw,19px);
    color:var(--ink-soft);
    margin:0 0 28px;
    max-width:540px;
  }
  .hero-meta{
    display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px;
  }
  .chip{
    background:rgba(255,255,255,.7);
    border:1px solid var(--line);
    padding:6px 12px;border-radius:999px;
    font-size:12.5px;font-weight:700;color:var(--ink);
  }
  .price-row{
    display:flex;align-items:center;gap:28px;margin-bottom:28px;flex-wrap:wrap;
  }
  .price-lines .price-main{font-size:18px;color:var(--ink)}
  .price-lines .price-main b{font-weight:700;font-size:40px;line-height:1;color:var(--ink);vertical-align:-2px}
  .price-lines .price-after{font-size:15px;color:var(--ink-soft);margin-top:6px}
  .price-row .ship{font-size:13px;color:var(--ink-soft);max-width:210px;line-height:1.4}

  .btn-primary{
    display:inline-flex;align-items:center;gap:10px;
    background:linear-gradient(180deg,var(--orange),var(--orange-dk));
    color:#fff;font-weight:700;font-size:16px;
    padding:18px 28px;border-radius:18px;
    box-shadow:
      0 14px 30px -8px rgba(232,135,13,.55),
      inset 0 1px 0 rgba(255,255,255,.4);
    position:relative;overflow:hidden;
    transition:transform .15s;cursor:pointer;border:0;
  }
  .btn-primary::after{
    content:"";position:absolute;inset:0;
    background:linear-gradient(120deg,transparent 30%,rgba(255,255,255,.4) 50%,transparent 70%);
    transform:translateX(-100%);
    animation:shine 3.5s ease-in-out infinite;
  }
  @keyframes shine{
    0%,40%{transform:translateX(-100%)}
    60%,100%{transform:translateX(100%)}
  }
  .btn-primary:hover{transform:translateY(-2px)}

  .banner-book{
    position:relative;display:grid;place-items:center;
  }
  .banner-book img{
    max-width:600px;width:108%;
    filter:drop-shadow(0 26px 36px rgba(232,135,13,.4));
    transform:rotate(-3deg);
    animation:float 6s ease-in-out infinite;
  }
  @keyframes float{
    0%,100%{transform:rotate(-3deg) translateY(0)}
    50%{transform:rotate(-2deg) translateY(-10px)}
  }

  /* ====== SECTIONS ====== */
  section.pad{max-width:1180px;margin:0 auto;padding:80px 24px;scroll-margin-top:80px}
  .eyebrow{
    font-weight:700;
    font-size:13px;letter-spacing:.18em;text-transform:uppercase;
    color:var(--teal);margin:0 0 12px;
  }
  h2{
    font-weight:700;
    font-size:clamp(28px,3.6vw,44px);
    line-height:1.12;margin:0 0 18px;letter-spacing:-.01em;
  }
  .lead{font-size:17px;color:var(--ink-soft);max-width:640px;margin:0}

  /* ====== AUTHOR ====== */
  #author{padding-top:56px;padding-bottom:56px}
  .author-block{
    display:grid;grid-template-columns:260px 1fr;gap:40px;align-items:start;
  }
  .author-block .photo{
    border-radius:24px;overflow:hidden;
    aspect-ratio:3/4;
    box-shadow:0 22px 44px -18px rgba(245,166,35,.45);
  }
  .author-block .photo img{width:100%;height:100%;object-fit:cover}
  .author-block h2{font-size:clamp(22px,2.4vw,30px)}
  .author-quote{
    background:linear-gradient(155deg,#F2EDFF,#E8F8F6);
    border-left:4px solid var(--violet);
    padding:18px 22px;border-radius:14px;
    font-weight:700;
    color:var(--ink);font-size:17px;line-height:1.45;
    margin:22px 0;
  }
  .author-block p{color:var(--ink-soft);font-size:15.5px;margin:0 0 14px}
  .ig-link{
    display:inline-flex;align-items:center;gap:8px;
    background:#fff;border:1px solid var(--line);
    padding:10px 16px;border-radius:999px;
    font-weight:700;font-size:14px;margin-top:6px;
  }

  /* ====== BIG-BOOK DETAIL ====== */
  #book{padding-top:104px;padding-bottom:104px}
  .book-block{
    background:#fff;border:1px solid var(--line);
    border-radius:32px;padding:64px 56px;
    display:grid;grid-template-columns:.95fr 1.05fr;gap:48px;align-items:start;
    box-shadow:0 26px 60px -28px rgba(232,135,13,.3);
  }
  .book-gallery{display:grid;grid-template-columns:1fr 1fr;gap:28px}
  .book-gallery .lead-img{grid-column:1/-1;border-radius:18px;overflow:hidden;aspect-ratio:1.62;background:#FFF6E5;cursor:zoom-in;padding:14px}
  .book-gallery .lead-img img{width:100%;height:100%;object-fit:contain}
  .book-gallery .small{border-radius:16px;overflow:hidden;aspect-ratio:1.62;background:#FFF6E5;cursor:zoom-in;padding:12px}
  .book-gallery .small img{width:100%;height:100%;object-fit:contain}
  .book-gallery .small.wide{grid-column:1/-1;border-radius:18px;padding:14px}
  .artist-note{
    margin:24px 0 0;
    background:#FFF6E5;border:1px solid var(--line);
    border-radius:16px;padding:16px 18px;
    font-size:14px;line-height:1.6;color:var(--ink-soft);
    display:flex;gap:14px;align-items:flex-start;
  }
  .artist-note .artist-photo{
    width:68px;height:68px;border-radius:50%;
    object-fit:cover;object-position:center 18%;flex-shrink:0;
    box-shadow:0 10px 20px -10px rgba(245,166,35,.55);
  }
  .artist-note .artist-text{margin:0}
  .artist-note .artist-ig{
    display:inline-block;margin-top:6px;
    font-weight:700;color:var(--orange-dk);
    border-bottom:1px dashed currentColor;
  }

  .book-info .eyebrow-row{
    display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;gap:12px;
  }
  .badge-pre{
    background:var(--pink);color:#fff;
    font-weight:700;font-size:11px;
    padding:6px 12px;border-radius:999px;
    letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;
  }
  .book-info h2{margin-bottom:14px;font-size:clamp(26px,3vw,36px)}
  .book-info p{color:var(--ink-soft);font-size:15.5px;margin:0 0 14px}
  .specs{
    display:grid;grid-template-columns:repeat(2,1fr);gap:8px;
    margin:22px 0;
  }
  .specs .item{
    background:#FFF6E5;border:1px solid var(--line);
    border-radius:12px;padding:10px 14px;
    font-size:13.5px;font-weight:700;display:flex;gap:8px;align-items:center;
  }
  .specs .item::before{content:"✓";color:var(--teal);font-weight:700}
  .price-card{
    background:linear-gradient(155deg,#FFF1D2,#FFE5C0);
    border-radius:20px;padding:20px 24px;
    display:flex;justify-content:space-between;gap:24px;align-items:center;flex-wrap:wrap;
    margin:14px 0 22px;
  }
  .price-card .lbl{font-weight:700;font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-soft);margin:0 0 4px}
  .price-card .pr{font-weight:700;font-size:34px;line-height:1;margin:0}
  .price-card .pr-after{font-size:14px;font-weight:400;color:var(--ink-soft);margin:6px 0 0}
  .price-card .ship-info{font-size:13px;color:var(--ink-soft);max-width:200px;line-height:1.4;text-align:right}

  /* ====== FOR WHOM ====== */
  .for-grid{
    display:grid;grid-template-columns:repeat(2,1fr);gap:14px;
    margin-top:32px;
  }
  .for-item{
    background:#fff;border:1px solid var(--line);
    border-radius:18px;padding:20px 22px;
    display:flex;gap:14px;align-items:flex-start;
  }
  .for-item .star{
    flex-shrink:0;width:32px;height:32px;border-radius:10px;
    background:linear-gradient(135deg,var(--orange),var(--pink));
    display:grid;place-items:center;color:#fff;font-size:16px;
  }
  .for-item p{margin:0;font-size:15px;font-weight:400;color:var(--ink)}
  .for-callout{
    margin-top:20px;
    background:linear-gradient(155deg,#E8F8F6,#F2EDFF);
    border-left:4px solid var(--teal);
    padding:18px 22px;border-radius:14px;
    font-weight:700;font-size:16px;
  }

  /* ====== COLLECTION ====== */
  .collection-head{
    display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center;margin-bottom:40px;
  }
  .collection-head .eyebrow{
    font-size:clamp(22px,2.6vw,30px);
    text-transform:none;letter-spacing:0;margin-bottom:10px;
    color:var(--ink);
  }
  .collection-head h2{font-size:clamp(22px,2.6vw,30px)}
  .collection-head .img{
    border-radius:24px;overflow:hidden;
    box-shadow:0 22px 50px -22px rgba(232,135,13,.32);
    background:#fff;padding:18px;
  }
  .soon-badge{
    display:inline-flex;align-items:center;gap:8px;
    background:var(--violet);color:#fff;
    font-weight:700;font-size:12px;
    padding:6px 14px;border-radius:999px;
    letter-spacing:.08em;text-transform:uppercase;margin-bottom:14px;
  }
  .digits-grid{
    display:grid;grid-template-columns:repeat(5,1fr);gap:14px;
  }
  .digit-card{
    background:#fff;border:1px solid var(--line);
    border-radius:18px;overflow:hidden;
    display:flex;flex-direction:column;
    transition:transform .25s ease, box-shadow .25s ease;
  }
  .digit-card:hover{transform:translateY(-4px);box-shadow:0 18px 40px -16px rgba(232,135,13,.3)}
  .digit-card .cover{aspect-ratio:3/4;background:#fff;display:grid;place-items:end center;padding:8px}
  .digit-card .cover img{width:100%;height:100%;object-fit:contain;object-position:center bottom}
  .digit-card .meta{padding:10px 12px 14px;text-align:center}
  .digit-card .num{
    font-weight:700;font-size:13px;color:var(--ink-soft);
    letter-spacing:.06em;
  }
  .digit-card .name{
    font-weight:700;font-size:13px;color:var(--ink);
    margin-top:2px;line-height:1.2;
  }
  .waitlist-row{
    margin-top:32px;
    display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;
    background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px 22px;
  }
  .waitlist-row .left{font-size:14.5px;color:var(--ink-soft)}
  .waitlist-row .left strong{color:var(--ink);display:block;font-weight:700;font-size:16px}
  .btn-secondary{
    background:#fff;border:2px solid var(--ink);color:var(--ink);
    font-weight:700;font-size:14px;
    padding:12px 20px;border-radius:14px;cursor:pointer;
    transition:transform .15s,background .15s,color .15s;
  }
  .btn-secondary:hover{background:var(--ink);color:#fff;transform:translateY(-1px)}

  /* ====== CARTOONS ====== */
  .cartoon-intro{
    display:grid;grid-template-columns:1.05fr .95fr;gap:48px;align-items:center;margin-bottom:48px;
  }
  .cartoon-intro h2{margin-top:6px}
  .cartoon-intro .ribbon{
    background:linear-gradient(155deg,#F2EDFF,#FFEFD2);
    border-radius:24px;padding:24px 28px;
    font-weight:700;font-size:18px;
    color:var(--ink);
  }
  .cartoon-intro .ribbon span{
    display:inline-block;margin:0 6px;color:var(--orange-dk);
  }
  .videos-grid{
    display:grid;grid-template-columns:repeat(3,1fr);gap:22px;
  }
  .video-card{
    background:#fff;border:1px solid var(--line);
    border-radius:20px;overflow:hidden;
    transition:transform .25s, box-shadow .25s;
  }
  .video-card:hover{transform:translateY(-3px);box-shadow:0 22px 50px -22px rgba(232,135,13,.3)}
  .video-frame{
    aspect-ratio:16/9;background:linear-gradient(135deg,#1a1530,#3a2c64);
    display:grid;place-items:center;position:relative;
    color:#fff;
  }
  .video-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
  .video-frame .play{
    width:64px;height:64px;border-radius:50%;
    background:rgba(255,255,255,.95);
    display:grid;place-items:center;
    box-shadow:0 10px 30px rgba(0,0,0,.4);
  }
  .video-frame .play::before{
    content:"";display:block;
    border-style:solid;border-width:12px 0 12px 20px;
    border-color:transparent transparent transparent var(--ink);
    margin-left:4px;
  }
  .video-frame .pending{
    position:absolute;bottom:12px;left:12px;
    background:rgba(0,0,0,.55);color:#fff;
    font-weight:700;font-size:11px;
    padding:5px 10px;border-radius:999px;letter-spacing:.06em;text-transform:uppercase;
  }
  .video-card .meta{padding:14px 18px 18px;display:flex;align-items:center;gap:12px}
  .video-card .num-bubble{
    flex-shrink:0;width:38px;height:38px;border-radius:12px;
    display:grid;place-items:center;color:#fff;
    font-weight:700;font-size:18px;
  }
  .video-card .title{font-weight:700;font-size:15px;line-height:1.2}

  /* ====== ORDER FORM ====== */
  #order{scroll-margin-top:80px}
  .order-wrap{
    background:#fff;border:1px solid var(--line);
    border-radius:32px;padding:48px;
    display:grid;grid-template-columns:.9fr 1.1fr;gap:48px;align-items:start;
    box-shadow:0 26px 60px -28px rgba(232,135,13,.3);
  }
  .order-info .price-card{margin-top:0}
  .order-form{display:grid;gap:14px}
  .order-form label{font-weight:700;font-size:13.5px;display:block;margin-bottom:6px}
  .order-form label .req{color:var(--pink)}
  .order-form input,.order-form textarea{
    width:100%;font-family:inherit;font-size:15px;color:var(--ink);
    background:#FFF6E5;border:1px solid var(--line);
    border-radius:12px;padding:13px 15px;outline:none;
    transition:border-color .15s,box-shadow .15s;
  }
  .order-form input:focus,.order-form textarea:focus{
    border-color:var(--orange);box-shadow:0 0 0 3px rgba(245,166,35,.15);
  }
  .order-form textarea{resize:vertical;min-height:72px}
  .order-form .btn-primary{width:100%;justify-content:center;margin-top:6px}
  .order-thanks{
    display:none;
    background:linear-gradient(155deg,#E8F8F6,#FFEFD2);
    border-radius:18px;padding:32px;text-align:center;
    font-weight:700;font-size:18px;color:var(--ink);
  }
  .order-thanks .big-emoji{font-size:40px;display:block;margin-bottom:10px}

  /* ====== LIGHTBOX ====== */
  .lightbox{
    display:none;position:fixed;inset:0;z-index:100;
    background:rgba(26,21,48,.985);
    align-items:center;justify-content:center;padding:24px;cursor:zoom-out;
  }
  .lightbox.open{display:flex}
  .lightbox img{max-width:96vw;max-height:92vh;border-radius:14px;box-shadow:0 30px 80px rgba(0,0,0,.6)}
  .lightbox .close{
    position:absolute;top:18px;right:22px;color:#fff;font-size:34px;font-weight:700;line-height:1;
  }

  /* ====== LEGAL LINKS / MODAL ====== */
  .legal-links{
    margin:0 0 22px;
    padding-bottom:18px;border-bottom:1px solid var(--line);
    display:flex;flex-wrap:wrap;gap:8px 24px;justify-content:center;
    font-size:13.5px;
  }
  .legal-links a{
    color:var(--ink-soft);cursor:pointer;
    border-bottom:1px dashed currentColor;
  }
  .legal-links a:hover{color:var(--ink)}

  .legal-modal{
    display:none;position:fixed;inset:0;z-index:200;
    align-items:center;justify-content:center;padding:24px;
  }
  .legal-modal.open{display:flex}
  .legal-modal-overlay{
    position:absolute;inset:0;background:rgba(26,21,48,.7);cursor:pointer;
  }
  .legal-modal-card{
    position:relative;z-index:1;
    background:#fff;border-radius:24px;
    max-width:760px;width:100%;max-height:88vh;
    display:flex;flex-direction:column;overflow:hidden;
    box-shadow:0 30px 80px rgba(0,0,0,.4);
  }
  .legal-modal-close{
    position:absolute;top:14px;right:18px;z-index:2;
    width:38px;height:38px;border-radius:50%;border:0;background:#FFF6E5;
    font-size:24px;font-weight:700;color:var(--ink);cursor:pointer;line-height:1;
    transition:background .15s,color .15s;
  }
  .legal-modal-close:hover{background:var(--orange);color:#fff}
  .legal-modal-content{
    padding:48px 48px 36px;overflow-y:auto;text-align:left;
    font-size:14.5px;line-height:1.65;color:var(--ink);
  }
  .legal-modal-content h3{font-size:22px;margin:0 0 14px;font-weight:700;color:var(--ink)}
  .legal-modal-content h4{font-size:15px;margin:22px 0 8px;font-weight:700;color:var(--orange-dk)}
  .legal-modal-content p{margin:0 0 10px;color:var(--ink-soft)}
  .legal-modal-content a{color:var(--orange-dk);border-bottom:1px dashed currentColor}
  @media (max-width:560px){
    .legal-modal{padding:0}
    .legal-modal-card{border-radius:0;max-height:100vh;height:100vh;max-width:100%}
    .legal-modal-content{padding:60px 22px 32px}
  }

  /* ====== FOOTER ====== */
  footer{
    border-top:1px solid var(--line);
    margin-top:60px;padding:48px 24px 80px;
    text-align:center;color:var(--ink-soft);font-size:14px;
  }
  footer .footer-logo{height:58px;width:auto;margin:0 auto 14px;display:block}
  footer a{border-bottom:1px dashed currentColor}
  footer .links{margin:12px 0}
  footer .secondary-link{display:inline-block;margin-top:8px;font-size:13px;opacity:.85}
  footer .copy{margin-top:18px;font-size:12.5px;opacity:.8}

  /* ====== STICKY MOBILE CTA ====== */
  .sticky-cta{
    display:none;
    position:fixed;left:12px;right:12px;bottom:12px;z-index:60;
    background:linear-gradient(180deg,var(--orange),var(--orange-dk));color:#fff;
    padding:14px 18px;border-radius:18px;
    box-shadow:0 18px 40px -10px rgba(232,135,13,.55);
    align-items:center;justify-content:space-between;gap:12px;
  }
  .sticky-cta .label{display:flex;flex-direction:column;line-height:1.15}
  .sticky-cta .label b{font-size:16px;font-weight:700}
  .sticky-cta .label span{font-size:12px;opacity:.85}
  .sticky-cta .go{
    background:var(--ink);color:#fff;
    padding:10px 16px;border-radius:12px;
    font-weight:700;font-size:14px;
  }

  /* ====== RESPONSIVE ====== */
  @media (max-width:960px){
    .banner-inner{grid-template-columns:1fr;padding:32px;gap:28px;text-align:center}
    .banner-book{order:-1}
    .banner-book img{max-width:360px;width:100%}
    .price-row{justify-content:center}
    .author-block{grid-template-columns:1fr;gap:24px}
    .author-block .photo{max-width:240px}
    .book-block{grid-template-columns:1fr;padding:32px;gap:28px}
    .collection-head{grid-template-columns:1fr;gap:28px}
    .digits-grid{grid-template-columns:repeat(2,1fr)}
    .videos-grid{grid-template-columns:1fr;gap:14px}
    .cartoon-intro{grid-template-columns:1fr;gap:24px}
    .for-grid{grid-template-columns:1fr}
    .order-wrap{grid-template-columns:1fr;padding:32px;gap:28px}
    section.pad{padding:56px 20px}
    .banner{padding:24px 16px}
  }
  @media (max-width:560px){
    .sticky-cta{display:flex}
    .brand-cifro{height:36px}
    .brand .logo-img{height:38px}
    .marquee{font-size:11px}
    body{padding-bottom:90px}
  }

/* ====== mobile overflow fix ====== */
@media (max-width:640px){
  /* grid/flex children must be allowed to shrink below their content width */
  .banner-inner, .banner-inner > *, .author-block, .author-block > *,
  .book-block, .book-block > *, .book-left, .book-gallery, .book-gallery > *,
  .book-info, .book-info > *, .collection-head, .collection-head > *,
  .cartoon-intro, .cartoon-intro > *, .for-grid, .for-item, .for-item > *,
  .digits-grid, .digit-card, .videos-grid, .video-card, .video-card > *,
  .order-wrap, .order-wrap > *, .waitlist-row, .waitlist-row > *,
  .price-card, .price-card > *, .specs, .specs .item{
    min-width:0;
  }
  /* the pre-order badge was nowrap and forced the whole column wider */
  .eyebrow-row{flex-wrap:wrap}
  .badge-pre{white-space:normal}
  .price-card .ship-info{text-align:left;max-width:none}
  .book-block{padding:22px}
  .order-wrap{padding:22px}
  .book-gallery{gap:14px}
  .specs{grid-template-columns:1fr}
}

/* ====== motion / rendering cost ====== */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
    scroll-behavior:auto !important;
  }
}
/* keep the infinite marquee off the main thread */
.marquee{contain:content}
.marquee-track{transform:translateZ(0);backface-visibility:hidden}

/* ====== a11y contrast fixes ====== */
.artist-note .artist-ig{color:#9a5600}          /* was #E8870D on cream: 2.47:1 -> 4.6:1 */
.badge-pre{background:#c62b58}                   /* white on pink: 3.64:1 -> 5.1:1 */
/* hero cover: keep the file's own ratio, never stretch */
.banner-book img{height:auto;object-fit:contain}

/* ====== digit card alignment ====== */
/* The cover must keep its 3/4 ratio; without min-height/overflow the image's
   intrinsic height wins over aspect-ratio and covers in a row differ. */
.digit-card .cover{flex:0 0 auto;min-height:0;overflow:hidden}
.digit-card .cover img{min-height:0}
.digit-card .meta{margin-top:auto}
