/* ThEast — the art table. Палитра по лого и баннеру стора: солнце, коралл, небо, крем, тушь. */
@layer base, parts, pages;

@layer base {
  :root {
    --sun: #fbc63c; --sun-soft: #ffe59a; --coral: #f2603c; --sky: #4fb3c6; --sky-soft: #dff3f6; --teal: #1f8a9e; --leaf: #8cc63f;
    --cream: #fff6db; --paper: #fff; --ink: #2a2622; --mute: #6a6259; --line: #efe2bb;
    --r: 22px; --w: 1200px; --head: "Fredoka", "Trebuchet MS", sans-serif; --text: "Mulish", "Segoe UI", sans-serif;
  }
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.6 var(--text); overflow-x: hidden; }
  img { max-inline-size: 100%; block-size: auto; display: block; }
  picture { display: block; }
  a { color: var(--teal); text-underline-offset: 3px; }
  a:hover { color: var(--coral); }
  h1, h2, h3 { font-family: var(--head); line-height: 1.12; margin: 0 0 .5em; font-weight: 600; }
  h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
  h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
  h3 { font-size: 1.15rem; }
  p { margin: 0 0 1em; }
  ul, ol { margin: 0; padding: 0; list-style: none; }
  address { font-style: normal; }
  button { font: inherit; }
  [hidden] { display: none !important; }
  :focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
  .wrap { inline-size: min(var(--w), 100% - 32px); margin-inline: auto; }
  .center { text-align: center; margin: 28px 0 0; }
  .jump { position: absolute; inset-inline-start: -999px; }
  .jump:focus { inset-inline-start: 12px; inset-block-start: 12px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 50; border-radius: 8px; }
}

@layer parts {
  /* полоса над шапкой */
  .ribbon { background: var(--coral); color: #fff; font: 600 .84rem/1.3 var(--head); letter-spacing: .04em; }
  .ribbon ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; padding: 7px 16px; }
  .ribbon li + li::before { content: "★"; margin-inline-end: 28px; color: var(--sun); }

  /* шапка: лого по центру, категории строкой ниже */
  .mast { background: var(--paper); border-block-end: 3px solid var(--ink); }
  .mast-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-block: 14px 10px; }
  .mast-say { font: 600 .82rem var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
  .mast-logo img { inline-size: clamp(150px, 20vw, 230px); }
  .mast-buy { justify-self: end; }
  .mast-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 8px; padding: 0 12px 10px; }
  .mast-nav a { display: block; padding: 7px 16px; border-radius: 99px; color: var(--ink); text-decoration: none; font: 600 .92rem var(--head); letter-spacing: .09em; text-transform: uppercase; }
  .mast-nav a:hover { background: var(--sun-soft); }
  .mast-nav a[aria-current] { background: var(--ink); color: var(--sun); }

  /* кнопка-штамп */
  .buy { display: block; inline-size: 100%; padding: 0; border: 0; background: none; cursor: pointer; transition: transform .15s; }
  .buy:hover { transform: translateY(-2px) rotate(-.6deg); }
  .buy:active { transform: translateY(2px); }
  .buy img { inline-size: 100%; }
  .buy-mast { inline-size: 210px; }
  .buy-big { max-inline-size: 380px; }
  .buy-card { margin-block-start: auto; }

  .pill { display: inline-block; padding: 11px 26px; border-radius: 99px; background: var(--ink); color: #fff; font: 600 .98rem var(--head); letter-spacing: .03em; text-decoration: none; border: 2px solid var(--ink); }
  .pill:hover { background: var(--coral); border-color: var(--coral); color: #fff; }
  .pill-line { background: transparent; color: var(--ink); }
  .kick { font: 600 .82rem var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--coral); margin: 0 0 10px; }
  .kick a { color: inherit; text-decoration: none; }
  .fine { font-size: .84rem; color: var(--mute); }

  /* «листы» и точки между ними */
  .sheet { inline-size: min(var(--w), 100% - 32px); margin-inline: auto; background: var(--paper); border-radius: var(--r); padding: clamp(22px, 4vw, 44px); box-shadow: 0 2px 0 var(--line); }
  .sheet-sky { background: var(--sky-soft); }
  .sheet-h { text-align: center; text-transform: uppercase; letter-spacing: .06em; }
  .sheet-h::after { content: ""; display: block; inline-size: 84px; block-size: 6px; margin: 14px auto 0; border-radius: 6px; background: linear-gradient(90deg, var(--coral) 0 25%, var(--sun) 25% 50%, var(--leaf) 50% 75%, var(--sky) 75%); }
  .sheet-sub { text-align: center; max-inline-size: 62ch; margin: 0 auto 26px; color: var(--mute); }
  .sheet-h + :not(.sheet-sub) { margin-block-start: 26px; }
  .label-h { inline-size: fit-content; max-inline-size: 100%; margin: 0 auto 14px; padding: 8px 26px; border-radius: 12px; background: var(--ink); color: #fff; text-transform: uppercase; letter-spacing: .2em; font-size: clamp(1.1rem, 2.2vw, 1.5rem); text-align: center; }
  .dots { display: flex; justify-content: center; gap: 9px; padding-block: 16px; }
  .dots i { inline-size: 9px; block-size: 9px; border-radius: 50%; background: var(--coral); }
  .dots i:nth-child(2) { background: var(--sun); }
  .dots i:nth-child(3) { background: var(--sky); }

  /* карточка товара */
  .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 20px; }
  .box { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 2px solid var(--line); border-radius: 18px; padding: 14px; transition: border-color .15s; }
  .box:hover { border-color: var(--ink); }
  .box-pic { display: block; border-radius: 12px; overflow: hidden; background: #fff; margin-block-end: 12px; }
  .box-flag { position: absolute; inset-block-start: 22px; inset-inline-start: 22px; z-index: 1; background: var(--leaf); color: var(--ink); font: 700 .76rem var(--head); padding: 4px 11px; border-radius: 99px; }
  .box-meta { font: 600 .74rem var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin: 0 0 6px; }
  .box-name { font-size: 1.04rem; line-height: 1.25; margin: 0 0 8px; }
  .box-name a { color: var(--ink); text-decoration: none; }
  .box-name a:hover { color: var(--coral); }
  .box-blurb { font-size: .92rem; color: var(--mute); margin: 0 0 10px; }
  .stars { display: flex; align-items: center; gap: 7px; font-size: .86rem; margin: 0 0 8px; color: var(--mute); }
  .stars i { inline-size: 84px; block-size: 16px; --p: calc(var(--v) / 5 * 100%); background: linear-gradient(90deg, var(--sun) var(--p), #e6dcc0 var(--p));
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 19'%3E%3Cpath d='M10 0l3 6.2 6.9.9-5 4.8 1.2 6.8L10 15.4 3.900 18.700l1.200-6.800-5-4.800 6.900-.900z'/%3E%3C/svg%3E") 0 0 / 16.800px 16px repeat-x;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 19'%3E%3Cpath d='M10 0l3 6.2 6.9.9-5 4.8 1.2 6.8L10 15.4 3.900 18.700l1.200-6.800-5-4.800 6.900-.900z'/%3E%3C/svg%3E") 0 0 / 16.800px 16px repeat-x; }
  .stars b { color: var(--ink); }
  .price { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; }
  .price strong { font: 700 1.5rem var(--head); }
  .price del { color: var(--mute); }
  .price mark { background: var(--sun-soft); padding: 1px 8px; border-radius: 6px; font-weight: 800; font-size: .82rem; }

  .ticks li { position: relative; padding-inline-start: 30px; margin-block-end: 8px; }
  .ticks li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .28em; inline-size: 18px; block-size: 18px; border-radius: 50%; background: var(--leaf); box-shadow: inset 0 0 0 5px var(--paper), 0 0 0 2px var(--ink); }

  .qa details { border-block-end: 2px dashed var(--line); }
  .qa summary { cursor: pointer; padding: 15px 34px 15px 0; font: 600 1.06rem var(--head); list-style: none; position: relative; }
  .qa summary::-webkit-details-marker { display: none; }
  .qa summary::after { content: "+"; position: absolute; inset-inline-end: 4px; inset-block-start: 9px; font-size: 1.6rem; color: var(--coral); }
  .qa details[open] summary::after { content: "–"; }
  .qa p { margin: 0 0 16px; max-inline-size: 75ch; }

  .path { padding-block: 16px 6px; font-size: .86rem; }
  .path ol { display: flex; flex-wrap: wrap; gap: 4px 8px; }
  .path li + li::before { content: "›"; margin-inline-end: 8px; color: var(--mute); }
  .path [aria-current] { color: var(--mute); }

  .duo { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
  .duo-flip .duo-txt { order: 2; }
  .duo-txt .sheet-h { text-align: start; }
  .duo-txt .sheet-h::after { margin-inline: 0; }
  .duo-txt .sheet-h + * { margin-block-start: 18px; }
  .duo-pic img { border-radius: 18px; inline-size: 100%; }
  .know { background: var(--sun-soft); border: 2px solid var(--ink); border-radius: 18px; padding: 22px 24px; box-shadow: 6px 6px 0 var(--ink); }
  .know h2, .know h3 { font-size: 1.2rem; margin-block-end: 12px; }
  .know li { padding-inline-start: 22px; position: relative; margin-block-end: 8px; }
  .know li::before { content: "✎"; position: absolute; inset-inline-start: 0; color: var(--coral); }

  .prose-2 { columns: 2 340px; column-gap: 44px; }
  .prose-2 > div { display: contents; }
  .prose-2 p { break-inside: avoid; }

  .last { text-align: center; padding-block: clamp(36px, 6vw, 64px); }
  .last p { max-inline-size: 56ch; margin-inline: auto; }
  .last .buy, .last .price { margin-inline: auto; justify-content: center; }
  .last-slim { padding-block: 34px; }
  .last-slim h2 { font-size: 1.3rem; max-inline-size: 30ch; margin-inline: auto; }

  /* подвал: волна и бирюза */
  .floor { background: var(--teal); color: #fff; position: relative; margin-block-start: 70px; }
  .wave { position: absolute; inset-inline: 0; inset-block-end: 100%; inline-size: 100%; block-size: 46px; fill: var(--teal); display: block; margin-block-end: -1px; }
  .floor-in { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr) 1.4fr; gap: 30px; padding-block: 34px 30px; }
  .floor a { color: #fff; text-decoration: none; }
  .floor a:hover { text-decoration: underline; color: var(--sun); }
  .floor h3 { font-size: .92rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sun); margin-block-end: 12px; }
  .floor li { margin-block-end: 7px; font-size: .95rem; }
  .floor-logo { display: inline-block; background: #fff; padding: 10px 16px; border-radius: 14px; margin-block-end: 14px; }
  .floor-logo img { inline-size: 150px; }
  .floor-brand p, .floor-brand address { font-size: .93rem; margin-block-end: 12px; }
  .floor-cta { background: rgb(255 255 255 / .12); border-radius: 18px; padding: 20px; align-self: start; }
  .floor-cta p { font-size: .9rem; }
  .floor-cta .buy-mast { inline-size: 100%; max-inline-size: 240px; }
  .floor-fine { border-block-start: 1px solid rgb(255 255 255 / .3); padding-block: 16px 22px; font-size: .82rem; display: flex; flex-wrap: wrap; gap: 6px 30px; justify-content: space-between; }
  .floor-fine p { margin: 0; }
}

@layer pages {
  /* главная */
  .hero { padding-block: 22px 8px; }
  .hero-card { display: grid; grid-template-columns: 1fr 1.15fr; border: 3px solid var(--ink); border-radius: 28px; overflow: hidden; background: var(--sun); }
  .hero-txt { padding: clamp(22px, 4vw, 50px); align-self: center; }
  .hero-txt .kick { color: var(--ink); }
  .hero-lede { font-size: 1.08rem; }
  .hero-txt .ticks { margin-block-end: 22px; font-weight: 600; }
  .hero-txt .ticks li::before { box-shadow: inset 0 0 0 5px var(--sun), 0 0 0 2px var(--ink); background: var(--coral); }
  .hero-pic picture { block-size: 100%; }
  .hero-pic img { inline-size: 100%; block-size: 100%; object-fit: cover; }
  .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-block-start: 14px; background: var(--paper); border-radius: 18px; padding: 16px; text-align: center; }
  .stats li + li { border-inline-start: 2px dashed var(--line); }
  .stats b { display: block; font: 700 1.5rem var(--head); color: var(--coral); }
  .stats span { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }

  .tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .tile { text-align: center; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 6px; }
  .tile picture { inline-size: 100%; }
  .tile img { inline-size: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; border: 3px solid var(--ink); transition: transform .2s; }
  .tile:hover img { transform: rotate(-1.5deg) scale(1.01); }
  .tile-cap { font: 600 .74rem var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); margin-block-start: 10px; }
  .tile-name { font: 600 1.35rem var(--head); }
  .tile .pill { margin-block-start: 6px; }

  .anat { display: grid; grid-template-columns: 1fr minmax(240px, 380px) 1fr; gap: 26px; align-items: center; }
  .anat-fig img { border-radius: 50%; border: 3px solid var(--ink); aspect-ratio: 1; object-fit: cover; background: #fff; }
  .anat ol { display: grid; gap: 22px; counter-reset: none; }
  .anat li { position: relative; padding-block-end: 12px; border-block-end: 3px dotted var(--teal); }
  .anat li b { display: block; font: 600 1.08rem var(--head); color: var(--teal); }
  .anat li span { font-size: .93rem; }
  .anat-l { text-align: end; }
  .anat li::after { content: ""; position: absolute; inset-block-end: -8px; inline-size: 13px; block-size: 13px; border-radius: 50%; background: var(--coral); border: 2px solid var(--ink); }
  .anat-l li::after { inset-inline-end: -8px; }
  .anat-r li::after { inset-inline-start: -8px; }

  .way { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .way > input { position: absolute; opacity: 0; }
  .way > label { padding: 8px 22px; border: 2px solid var(--teal); border-radius: 99px; font: 600 .86rem var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--teal); cursor: pointer; }
  .way > input:checked + label { background: var(--teal); color: #fff; }
  .way > input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 2px; }
  .way-pane { display: none; order: 9; flex: 0 0 100%; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-block-start: 18px; }
  .way > input:nth-of-type(1):checked ~ .way-pane:nth-of-type(1),
  .way > input:nth-of-type(2):checked ~ .way-pane:nth-of-type(2),
  .way > input:nth-of-type(3):checked ~ .way-pane:nth-of-type(3) { display: grid; }
  .way-pane a { background: var(--sky-soft); border-radius: 18px; padding: 20px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 6px; border: 2px solid transparent; }
  .way-pane a:hover { border-color: var(--teal); }
  .way-pane b { font: 600 1.2rem var(--head); }
  .way-pane span { font-size: .93rem; flex: 1; }
  .way-pane em { font-style: normal; font-weight: 800; color: var(--teal); font-size: .88rem; }
  .way-pane em::after { content: " →"; }

  .occs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .occ { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; min-block-size: 112px; padding: 14px; border-radius: 16px; text-decoration: none; color: #fff; background: var(--c); box-shadow: inset 0 -6px 0 rgb(0 0 0 / .16); transition: transform .15s; }
  .occ:hover { transform: translateY(-3px); color: #fff; }
  .occ b { font: 700 1.2rem var(--head); letter-spacing: .08em; text-transform: uppercase; }
  .occ span { font-size: .82rem; opacity: .95; }
  .occ-1 { --c: #e5492d; } .occ-2 { --c: #ec7a1c; } .occ-3 { --c: #d83f7c; } .occ-4 { --c: #2f9a54; }
  .occ-5 { --c: #2e7fd0; } .occ-6 { --c: #6b5a51; } .occ-7 { --c: #7a3fc4; } .occ-8 { --c: #1f8a9e; }

  .trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; padding-block: 8px 30px; }
  .trust li { background: var(--paper); border: 2px solid var(--ink); border-radius: 99px; padding: 8px 20px; font: 600 .95rem var(--head); }

  .stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-block-start: 22px; }
  .story { position: relative; border-radius: 26px; overflow: hidden; color: #fff; text-decoration: none; display: block; }
  .story img { inline-size: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .3s; }
  .story:hover img { transform: scale(1.04); }
  .story span { position: absolute; inset: auto 0 0 0; padding: 60px 20px 18px; background: linear-gradient(transparent, rgb(20 16 12 / .86)); display: grid; gap: 4px; }
  .story b { font: 700 1.3rem/1.1 var(--head); text-transform: uppercase; }
  .story em { font-style: normal; font-size: .88rem; }
  .story:hover { color: var(--sun); }
  .band { padding-block: 30px; }
  .band img { border-radius: var(--r); border: 3px solid var(--ink); inline-size: 100%; }

  /* разделы */
  .lead { text-align: center; padding-block: 18px 30px; }
  .lead p:not(.kick):not(.chips) { max-inline-size: 64ch; margin-inline: auto; font-size: 1.06rem; }
  .chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 0; }
  .chips a { padding: 6px 18px; border: 2px solid var(--ink); border-radius: 99px; text-decoration: none; color: var(--ink); font: 600 .88rem var(--head); background: var(--paper); }
  .chips a[aria-current], .chips a:hover { background: var(--ink); color: var(--sun); }
  .sums { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
  .sum { background: var(--paper); border: 2px solid var(--ink); border-radius: 18px; padding: 18px 14px; text-align: center; text-decoration: none; color: var(--ink); display: grid; gap: 2px; box-shadow: 5px 5px 0 var(--teal); }
  .sum:hover { box-shadow: 5px 5px 0 var(--coral); color: var(--ink); }
  .sum b { font: 700 2.6rem/1 var(--head); color: var(--coral); }
  .sum span { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--mute); }
  .sum strong { font: 600 1.25rem var(--head); margin-block-start: 8px; }
  .sum em { font-style: normal; font-weight: 800; color: var(--teal); }
  .sum small { font-size: .8rem; color: var(--mute); margin-block-start: 6px; }
  .sift { display: grid; gap: 10px; margin-block-end: 24px; }
  .sift-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .sift-row b { font: 600 .8rem var(--head); letter-spacing: .12em; text-transform: uppercase; inline-size: 70px; }
  .sift input { position: absolute; opacity: 0; }
  .sift label span { display: block; padding: 6px 16px; border: 2px solid var(--ink); border-radius: 99px; font: 600 .88rem var(--head); cursor: pointer; }
  .sift input:checked + span { background: var(--ink); color: var(--sun); }
  .sift input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
  .sift-n { margin: 0; color: var(--mute); font-size: .9rem; }
  .sift-none { text-align: center; padding: 30px; }

  /* карточка товара */
  .pd { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 4vw, 54px); padding-block: 10px 30px; align-items: start; }
  .pd-main { background: #fff; border: 3px solid var(--ink); border-radius: 24px; overflow: hidden; }
  .pd-main img { inline-size: 100%; }
  .pd-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-block-start: 12px; }
  .pd-thumbs button { padding: 0; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; cursor: pointer; }
  .pd-thumbs button[aria-pressed="true"] { border-color: var(--coral); box-shadow: 0 0 0 2px var(--coral); }
  .pd-info h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
  .facts { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 14px; }
  .facts li { background: var(--sky-soft); border-radius: 99px; padding: 5px 14px; font: 600 .86rem var(--head); }
  .pd-info .price strong { font-size: 2.1rem; }
  .pd-info .fine { margin-block: 10px 18px; }
  .pd-lede { font-size: 1.06rem; }
  .sizes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block-end: 20px; }
  .sizes b { flex: 0 0 100%; font: 600 .8rem var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
  .sizes a { padding: 7px 14px; border: 2px solid var(--ink); border-radius: 12px; text-decoration: none; color: var(--ink); font: 600 .9rem var(--head); background: var(--paper); }
  .sizes a[aria-current] { background: var(--sun); }
  .sizes a:hover { background: var(--sun-soft); }

  /* статьи и сервисные */
  .read { max-inline-size: 860px; padding-block: 8px 40px; }
  .read h2 { margin-block-start: 1.6em; }
  .read-dek { font-size: 1.16rem; color: var(--mute); }
  .read > picture img { border-radius: var(--r); border: 3px solid var(--ink); margin-block: 18px; }
  .read-top { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; margin-block: 22px; }
  .read-top img { border-radius: var(--r); }
  .read-top h2 { margin-block-start: 0; }
  .cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-block: 24px; }
  .note { background: var(--paper); border-radius: 18px; padding: 22px; border-block-start: 8px solid var(--c, var(--sun)); text-decoration: none; color: var(--ink); display: block; }
  a.note:hover { color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
  .note h2 { font-size: 1.2rem; margin-block-start: 0; }
  .note p { margin: 0; }
  .note-1 { --c: var(--coral); } .note-2 { --c: var(--sun); } .note-3 { --c: var(--leaf); } .note-4 { --c: var(--sky); }
  .bigmail a { font: 600 clamp(1.3rem, 4vw, 2rem) var(--head); }
  .route { counter-reset: r; display: grid; gap: 14px; margin-block: 24px; }
  .route li { counter-increment: r; background: var(--paper); border-radius: 18px; padding: 20px 20px 20px 78px; position: relative; }
  .route li::before { content: counter(r); position: absolute; inset-inline-start: 18px; inset-block-start: 18px; inline-size: 44px; block-size: 44px; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); display: grid; place-items: center; font: 700 1.3rem var(--head); }
  .route h2 { font-size: 1.2rem; margin: 0 0 4px; }
  .route p { margin: 0; }
  .cases { margin-block: 24px; }
  .cases dt { font: 600 1.15rem var(--head); background: var(--ink); color: var(--sun); display: inline-block; padding: 6px 16px; border-radius: 12px 12px 12px 0; }
  .cases dd { margin: 0 0 22px; padding: 16px 18px; background: var(--paper); border-radius: 0 18px 18px 18px; }
  .drawer details { background: var(--paper); border-radius: 14px; margin-block-end: 10px; padding-inline: 20px; border-inline-start: 8px solid var(--sky); }
  .drawer summary { cursor: pointer; padding-block: 15px; font: 600 1.1rem var(--head); }
  .rules { counter-reset: r; }
  .rules li { counter-increment: r; padding: 20px 0 6px; border-block-end: 2px dashed var(--line); }
  .rules h2 { font-size: 1.2rem; margin: 0 0 6px; }
  .rules h2::before { content: "Rule " counter(r) ". "; color: var(--coral); }
  .lost h1 { margin-block-end: 14px; }
  .lost .pill { margin: 6px; }
}

@media (max-width: 980px) {
  .floor-in { grid-template-columns: 1fr 1fr; }
  .floor-brand, .floor-cta { grid-column: 1 / -1; }
  .anat { grid-template-columns: 1fr; }
  .anat-fig { order: -1; max-inline-size: 320px; margin-inline: auto; }
  .anat-l { text-align: start; }
  .anat li::after { display: none; }
  .occs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .mast-top { grid-template-columns: auto 1fr; }
  .mast-say { display: none; }
  .buy-mast { inline-size: 168px; }
  .hero-card, .duo, .pd, .read-top, .cols-2 { grid-template-columns: 1fr; }
  .hero-pic { order: -1; }
  .duo-flip .duo-txt { order: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats li:nth-child(3) { border-inline-start: 0; }
  .tiles, .stories { grid-template-columns: 1fr; }
  .tile img { aspect-ratio: 16 / 10; }
  .story img { aspect-ratio: 16 / 11; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .box { padding: 10px; }
  .box-blurb { display: none; }
  .ribbon li:nth-child(n+3) { display: none; }
}
@media (max-width: 400px) {
  .grid { grid-template-columns: 1fr; }
  .box-blurb { display: block; }
}
