@layer base, parts, pages;

@layer base {
  :root {
    --ink: #231f1e; --walnut: #2a1610; --night: #170906; --copper: #a04e19; --copper-hi: #b8601f;
    --maple: #cb8841; --tan: #c8975a; --cream: #f6eee0; --paper: #fffdf9; --line: #e1d5c0; --dim: #6d625a;
    --disp: "Big Shoulders Display", "Arial Narrow", sans-serif; --serif: "Playfair Display", Georgia, serif;
    --text: "Work Sans", system-ui, sans-serif; --w: 1280px;
  }
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
  body { margin: 0; font: 400 16px/1.6 var(--text); color: var(--ink); background: var(--paper); overflow-x: hidden; }
  img { max-inline-size: 100%; block-size: auto; display: block; }
  picture { display: block; }
  a { color: inherit; }
  h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, table { margin: 0; padding: 0; }
  ul, ol { list-style: none; }
  h1, h2, h3 { font-family: var(--disp); font-weight: 700; line-height: 1.05; letter-spacing: .01em; text-transform: uppercase; }
  button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
  address { font-style: normal; }
  :focus-visible { outline: 3px solid var(--maple); outline-offset: 2px; }
  .frame { inline-size: min(100% - 32px, var(--w)); margin-inline: auto; }
  .mute { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .skip { position: absolute; inset-inline-start: -999px; }
  .skip:focus { inset-inline-start: 8px; inset-block-start: 8px; background: #fff; padding: 8px 12px; z-index: 99; }
  main > section, main > article { margin-block: 56px; }
  main > .opening, main > .cream, main > .night, main > .banner, main > .lead--pic { margin-block: 0; }
}

@layer parts {
  /* косая лента */
  .ribbon { background: linear-gradient(100deg, var(--paper) 0 9%, var(--tan) 9% 91%, var(--paper) 91%); color: #fff; font-size: 14px; font-weight: 500; }
  .ribbon ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; padding-block: 9px; }
  .ribbon li + li::before { content: "\2022"; margin-inline-end: 28px; opacity: .7; }

  /* шапка */
  .mast { background: var(--paper); border-block-end: 1px solid var(--line); position: sticky; inset-block-start: 0; z-index: 20; }
  .mast__row { display: flex; align-items: center; gap: 20px; min-block-size: 76px; }
  .mast__logo img { inline-size: 190px; }
  .mast__nav { flex: 1; }
  .mast__nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; }
  .mast__nav a, .mast__fold a { font: 600 21px/1 var(--disp); text-decoration: none; letter-spacing: .02em; padding-block: 8px; display: block; border-block-end: 3px solid transparent; }
  .mast__nav a:hover, .mast__nav a[aria-current] { border-color: var(--copper); color: var(--copper); }
  .mast__go { inline-size: 210px; flex: none; }
  .mast__fold { display: none; position: relative; }
  .mast__fold summary { list-style: none; inline-size: 44px; block-size: 44px; display: grid; place-items: center; border: 1px solid var(--line); cursor: pointer; }
  .mast__fold summary::-webkit-details-marker { display: none; }
  .mast__fold summary span, .mast__fold summary span::before, .mast__fold summary span::after { content: ""; display: block; inline-size: 20px; block-size: 2px; background: var(--ink); position: relative; }
  .mast__fold summary span::before { position: absolute; inset-block-start: -6px; }
  .mast__fold summary span::after { position: absolute; inset-block-start: 6px; }
  .mast__fold ul { position: absolute; inset-inline-end: 0; inset-block-start: 52px; background: var(--paper); border: 1px solid var(--line); padding: 8px 20px; inline-size: 240px; box-shadow: 0 12px 30px rgb(0 0 0 / .15); }

  /* штамп */
  .go { display: block; inline-size: 100%; transition: transform .15s; }
  .go:hover { transform: translateY(-2px); }
  .go:active { transform: translateY(1px); }
  .go img { inline-size: 100%; }

  /* заголовки секций */
  .head { margin-block-end: 28px; }
  .head h2 { font-size: clamp(30px, 4vw, 46px); }
  .head p { color: var(--dim); margin-block-start: 6px; }
  .head small { font: 500 17px var(--text); color: var(--dim); display: block; margin-block-end: 4px; }
  .head--mid { text-align: center; }
  .head--split h2 { text-align: center; font-weight: 600; font-size: clamp(38px, 6vw, 68px); color: #fff; }
  .head--split h2 b { color: var(--tan); font-weight: 800; }
  .more { text-align: center; margin-block-start: 28px; }
  .more a, .link { font: 700 19px var(--disp); letter-spacing: .08em; text-transform: uppercase; color: var(--copper); text-underline-offset: 5px; }

  .cream { background: var(--cream); padding-block: 56px; }
  .night { background: var(--ink); color: #fff; padding-block: 56px; background-image: linear-gradient(180deg, var(--night), var(--ink)); }
  .night .head p { color: #d8cdbd; }
  .night--flat { background: var(--walnut); }

  /* карточка товара */
  .lots { display: grid; gap: 20px; }
  .lots > *, .sieve > *, .duo > *, .piece > *, .tale > *, .rank > *, .origin > * { min-inline-size: 0; }
  .lot__name { overflow-wrap: anywhere; }
  .lots--4 { grid-template-columns: repeat(4, 1fr); }
  .lots--3 { grid-template-columns: repeat(3, 1fr); }
  .lot { background: #fff; color: var(--ink); border: 1px solid var(--line); display: flex; flex-direction: column; padding: 12px; }
  .lot[hidden] { display: none; }
  .lot__pic { position: relative; display: block; }
  .lot__pic img { aspect-ratio: 1; object-fit: contain; }
  .lot__flag { position: absolute; inset-block-start: 0; inset-inline-start: 0; z-index: 1; background: var(--ink); color: #fff; font: 600 13px var(--disp); letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; }
  .lot__body { flex: 1; padding-block: 12px; }
  .lot__shelf { font: 600 14px var(--disp); letter-spacing: .12em; text-transform: uppercase; color: var(--copper); }
  .lot__name { font: 500 16px/1.3 var(--text); text-transform: none; letter-spacing: 0; margin-block: 4px 8px; }
  .lot__name a { text-decoration: none; }
  .lot__name a:hover { text-decoration: underline; }
  .lot__cost { font: 700 24px var(--disp); color: var(--copper); }
  .lot__cost s, .piece__cost s { font: 400 15px var(--text); color: var(--dim); }
  .lot__cost em, .piece__cost em { font: 600 13px var(--text); color: #2c6e2f; font-style: normal; }
  .tally { display: flex; align-items: center; gap: 6px; font-size: 14px; margin-block-end: 6px; }
  .tally__n { color: var(--dim); }
  .pips { display: inline-block; inline-size: 86px; block-size: 16px; background: linear-gradient(90deg, var(--maple) var(--fill), #d9d0c2 var(--fill)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 86 16'%3E%3Cg%3E%3Cpath id='s' d='M8 0l2.300 5.200 5.700.500-4.300 3.800 1.300 5.600L8 12.200 3 15.100l1.300-5.600L0 5.700l5.700-.5z'/%3E%3Cuse href='%23s' x='17.500'/%3E%3Cuse href='%23s' x='35'/%3E%3Cuse href='%23s' x='52.500'/%3E%3Cuse href='%23s' x='70'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 86 16'%3E%3Cg%3E%3Cpath id='s' d='M8 0l2.300 5.200 5.700.500-4.300 3.800 1.300 5.600L8 12.200 3 15.100l1.300-5.600L0 5.700l5.700-.5z'/%3E%3Cuse href='%23s' x='17.500'/%3E%3Cuse href='%23s' x='35'/%3E%3Cuse href='%23s' x='52.500'/%3E%3Cuse href='%23s' x='70'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }

  /* хлебные крошки */
  .trail { margin-block: 18px 0; font-size: 14px; color: var(--dim); }
  .trail ol { display: flex; flex-wrap: wrap; gap: 6px; }
  .trail li + li::before { content: "/"; margin-inline-end: 6px; }

  /* вопросы */
  .ask details { border-block-end: 1px solid var(--line); }
  .ask summary { cursor: pointer; padding-block: 16px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
  .ask summary::-webkit-details-marker { display: none; }
  .ask summary::after { content: "+"; font: 600 26px/0.8 var(--disp); color: var(--copper); }
  .ask details[open] summary::after { content: "\2013"; }
  .ask p { padding-block-end: 18px; color: #4a413b; }
  .ask a, .duo a, .read a, .svc a, .notes a { color: var(--copper); }

  /* отзывы */
  .stories__list { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 3px double var(--ink); }
  .story { padding: 26px 24px; border-inline-start: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
  .story:nth-child(3n+1) { border-inline-start: 0; }
  .story:nth-child(n+4) { border-block-start: 1px solid var(--line); }
  .story .pips { background: linear-gradient(90deg, #e2a11a var(--fill), #d9d0c2 var(--fill)); }
  .story h3 { font: 700 18px/1.3 var(--serif); text-transform: none; letter-spacing: 0; }
  .story blockquote { flex: 1; font-size: 15px; color: #4a413b; }
  .story footer { font-size: 14px; display: flex; flex-wrap: wrap; gap: 2px 10px; color: var(--dim); }
  .story footer b { color: var(--ink); }
  .story footer a { flex-basis: 100%; color: var(--copper); }

  /* финальная полоса и подвал */
  .endgame { background: var(--tan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath fill='%23fff' fill-opacity='.08' d='M0 0h40v40H0zM40 40h40v40H40z'/%3E%3C/svg%3E"); color: var(--ink); padding-block: 40px; }
  .endgame__row { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: center; }
  .endgame h2 { font-size: clamp(30px, 4vw, 48px); }
  .endgame p { font-size: 18px; margin-block-start: 4px; }
  .foot { background: var(--cream); }
  .foot__grid { display: grid; grid-template-columns: 300px 1fr; }
  .foot__dark { background: var(--ink); color: #eee4d4; padding: 40px 28px; }
  .foot__dark img { inline-size: 180px; margin-block-end: 26px; }
  .foot__dark h2 { font-size: 17px; letter-spacing: .12em; color: var(--tan); margin-block: 18px 6px; }
  .foot__dark a { overflow-wrap: anywhere; }
  .foot__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 40px 0 40px 44px; }
  .foot__cols h2 { font-size: 20px; margin-block-end: 12px; }
  .foot__cols li { margin-block-end: 8px; font-size: 15px; }
  .foot__cols a { text-decoration: none; }
  .foot__cols a:hover { text-decoration: underline; color: var(--copper); }
  .foot__base { background: var(--night); color: #cfc3b2; font-size: 13px; padding-block: 14px; }
  .foot__base .frame { display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: space-between; }
}

@layer pages {
  /* первый экран */
  .opening { position: relative; background: var(--night); color: #fff; display: grid; }
  .opening { min-block-size: clamp(460px, 42vw, 620px); }
  .opening > picture { position: absolute; inset: 0; }
  .opening__in { grid-area: 1 / 1; }
  .opening > picture img { inline-size: 100%; block-size: 100%; object-fit: cover; }
  .opening::after { content: ""; grid-area: 1 / 1; z-index: 0; background: linear-gradient(90deg, rgb(15 6 3 / .88) 0%, rgb(15 6 3 / .55) 45%, rgb(15 6 3 / 0) 75%); }
  .opening__in { z-index: 1; align-self: center; padding-block: 48px; }
  .opening__in > * { max-inline-size: 600px; }
  .opening__mark { font: italic 500 26px var(--serif); color: var(--maple); margin-block-end: 10px; }
  .opening h1 { font: 700 clamp(34px, 5vw, 62px)/1.05 var(--serif); text-transform: none; letter-spacing: 0; }
  .opening h1 em { color: var(--maple); font-style: italic; font-weight: 500; white-space: nowrap; }
  .opening__say { font-size: 18px; margin-block: 18px 26px; color: #efe6d8; }
  .go--open { max-inline-size: 360px; }
  .motto { font: 700 clamp(22px, 3.4vw, 40px) var(--disp); letter-spacing: .03em; text-transform: uppercase; color: var(--tan); text-align: center; padding-block: 28px 0; }
  .motto span { display: block; }

  /* плитки */
  main > .tiles { margin-block-start: 28px; }
  .tiles ul { display: grid; border-inline-start: 1px solid var(--line); border-block-start: 1px solid var(--line); }
  .tiles__big { grid-template-columns: repeat(3, 1fr); }
  .tiles__small { grid-template-columns: repeat(5, 1fr); border-block-start: 0 !important; }
  .tiles li { background: #fff; border-inline-end: 1px solid var(--line); border-block-end: 1px solid var(--line); }
  .tiles a { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; padding: 22px 16px 18px; block-size: 100%; }
  .tiles__big h3 { font-size: clamp(28px, 3.4vw, 44px); }
  .tiles__small h3 { font-size: clamp(18px, 1.8vw, 24px); font-weight: 600; }
  .tiles img { aspect-ratio: 1; object-fit: contain; transition: transform .25s; }
  .tiles__big img { inline-size: min(100%, 300px); }
  .tiles__small img { inline-size: min(100%, 170px); }
  .tiles a:hover img { transform: scale(1.05); }
  .tiles a:hover h3 { color: var(--copper); }
  .tiles span { font-size: 14px; font-weight: 500; }

  /* ряды «по игре» */
  .rank { display: grid; grid-template-columns: 250px 1fr; gap: 20px; margin-block-start: 28px; }
  .rank__tag { position: relative; display: grid; color: #fff; text-decoration: none; overflow: hidden; border-radius: 4px; }
  .rank__tag picture, .rank__tag > span { grid-area: 1 / 1; }
  .rank__tag img { inline-size: 100%; block-size: 100%; object-fit: cover; filter: brightness(.45); }
  .rank__tag > span { z-index: 1; padding: 22px 18px; display: flex; flex-direction: column; gap: 6px; }
  .rank__tag small { font-size: 14px; }
  .rank__tag b { font: 800 34px/1 var(--disp); text-transform: uppercase; }
  .rank__tag i { font-style: normal; font-size: 14px; color: #e9dfd0; }
  .rank__tag u { margin-block-start: auto; font-size: 14px; text-underline-offset: 4px; }

  /* плашки */
  .perks ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .perks li { background: var(--copper); color: #fff; padding: 20px; border-radius: 6px; }
  .perks h3 { font-size: 22px; margin-block-end: 6px; }
  .perks p { font-size: 14.5px; }

  /* сравнение */
  .versus__row { display: grid; grid-template-columns: 1fr 1.7fr 1fr; gap: 24px; align-items: center; }
  .versus__pic { text-decoration: none; text-align: center; }
  .versus__pic span { font: 700 26px var(--disp); text-transform: uppercase; letter-spacing: .06em; }
  .versus__tab { inline-size: 100%; border-collapse: collapse; font-size: 15px; }
  .versus__tab th, .versus__tab td { padding: 12px 10px; border-block-end: 1px solid var(--line); text-align: start; vertical-align: top; }
  .versus__tab thead th { font: 700 20px var(--disp); text-transform: uppercase; color: var(--copper); border-block-end: 2px solid var(--ink); }
  .versus__tab tbody th { font-weight: 600; color: var(--dim); inline-size: 22%; }
  .versus__tab tfoot td { border: 0; }
  .versus__tab tfoot a { color: var(--copper); font-weight: 600; }

  .banner img { inline-size: 100%; }

  /* о бренде */
  .origin { display: grid; grid-template-columns: 300px 1fr; gap: 48px; position: relative; padding-block-end: 70px; }
  .origin__facts li { display: flex; gap: 14px; align-items: baseline; padding-block: 14px; border-block-end: 1px solid var(--line); }
  .origin__facts b { font: 800 40px/1 var(--disp); color: var(--copper); min-inline-size: 84px; }
  .origin__facts span { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
  .origin__text small { font: 500 19px var(--text); color: var(--dim); }
  .origin__text h2 { font-size: clamp(32px, 4vw, 48px); margin-block: 2px 14px; text-transform: none; }
  .origin__text p { margin-block-end: 12px; max-inline-size: 62ch; }
  .origin__big { position: absolute; inset-inline-end: 0; inset-block-end: 0; font: 800 clamp(60px, 11vw, 150px)/.8 var(--disp); text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px var(--line); pointer-events: none; }

  /* гайды */
  .world { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .world a { display: grid; text-decoration: none; color: #fff; }
  .world a picture, .world a h3 { grid-area: 1 / 1; }
  .world img { aspect-ratio: 1.6; object-fit: cover; inline-size: 100%; filter: brightness(.7); }
  .world h3 { align-self: end; padding: 16px; font: 700 24px/1.15 var(--serif); text-transform: none; letter-spacing: 0; z-index: 1; }
  .world p { font-size: 15px; margin-block-start: 10px; }

  /* SEO + вопросы */
  .duo { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; }
  .duo--one { grid-template-columns: minmax(0, 860px); justify-content: center; }
  .duo h2 { font-size: clamp(26px, 3vw, 36px); margin-block-end: 14px; text-transform: none; }
  .duo__text p { margin-block-end: 14px; color: #3d3530; }
  .duo__ask h3 { font-size: 20px; margin-block: 28px 12px; }
  .also { display: flex; flex-wrap: wrap; gap: 8px; }
  .also a { display: block; border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; font-size: 14px; text-decoration: none; color: var(--ink); }
  .also a:hover { border-color: var(--copper); color: var(--copper); }

  /* каталог */
  .lead h1 { font-size: clamp(34px, 5vw, 58px); }
  .lead p { max-inline-size: 70ch; margin-block-start: 10px; color: #4a413b; }
  main > .lead { margin-block: 22px 28px; }
  .lead--pic { position: relative; display: grid; background: var(--night); color: #fff; margin-block-start: 14px !important; }
  .lead--pic { min-block-size: 260px; }
  .lead--pic > picture { position: absolute; inset: 0; }
  .lead--pic > .frame { grid-area: 1 / 1; }
  .lead--pic img { inline-size: 100%; block-size: 100%; object-fit: cover; filter: brightness(.42); }
  .lead--pic > .frame { z-index: 1; align-self: center; padding-block: 28px; }
  .lead--pic h1 { font: 700 clamp(30px, 4.4vw, 52px)/1.1 var(--serif); text-transform: none; letter-spacing: 0; }
  .lead--pic p { color: #efe6d8; }
  .sieve { display: grid; grid-template-columns: 240px 1fr; gap: 36px; margin-block: 36px 56px; }
  .sieve__side h2, .sieve legend { font: 700 17px var(--disp); letter-spacing: .12em; text-transform: uppercase; padding: 0; margin-block-end: 8px; }
  .sieve__lines { margin-block-end: 24px; border-block-start: 2px solid var(--ink); }
  .sieve__lines a { display: flex; justify-content: space-between; padding-block: 8px; border-block-end: 1px solid var(--line); text-decoration: none; font-size: 15px; }
  .sieve__lines a[aria-current] { color: var(--copper); font-weight: 600; }
  .sieve__lines span { color: var(--dim); font-size: 13px; }
  .sieve fieldset { border: 0; border-block-start: 1px solid var(--line); padding: 14px 0; margin: 0; }
  .sieve label { display: flex; gap: 8px; align-items: center; font-size: 15px; padding-block: 3px; cursor: pointer; }
  .sieve input { accent-color: var(--copper); inline-size: 16px; block-size: 16px; }
  .sieve select { inline-size: 100%; padding: 8px; font: inherit; border: 1px solid var(--line); background: #fff; }
  .sieve form button { font: 600 14px var(--text); color: var(--copper); text-decoration: underline; }
  .sieve__count { font-size: 14px; color: var(--dim); margin-block-end: 14px; text-transform: uppercase; letter-spacing: .06em; }
  .sieve__none { display: none; padding: 40px 0; text-align: center; }
  .sieve__none.on { display: block; }
  .notes h2 { font-size: clamp(26px, 3vw, 38px); margin-block-end: 22px; text-align: center; }
  .notes__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .notes h3 { font-size: 22px; color: var(--copper); margin-block-end: 8px; }
  .notes p { font-size: 15px; }

  /* карточка товара */
  .piece { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-block-start: 22px !important; }
  .view__main { border: 1px solid var(--line); background: #fff; }
  .view__main img { inline-size: 100%; aspect-ratio: 1; object-fit: contain; }
  .view__row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-block-start: 10px; }
  .view__row label { border: 1px solid var(--line); cursor: pointer; background: #fff; position: relative; }
  .view__row label:has(:checked) { border-color: var(--copper); box-shadow: 0 0 0 1px var(--copper); }
  .view__row input { position: absolute; opacity: 0; }
  .view__row label:has(:focus-visible) { outline: 3px solid var(--maple); }
  .piece__shelf { font: 700 16px var(--disp); letter-spacing: .14em; text-transform: uppercase; color: var(--copper); text-decoration: none; }
  .piece h1 { font: 700 clamp(26px, 3.2vw, 40px)/1.15 var(--serif); text-transform: none; letter-spacing: 0; margin-block: 8px 12px; }
  .piece__hook { font-size: 18px; color: #4a413b; margin-block: 8px 20px; }
  .piece__buy { background: var(--cream); padding: 20px; border-inline-start: 4px solid var(--copper); }
  .piece__cost { font: 800 40px/1 var(--disp); color: var(--copper); margin-block-end: 14px; }
  .go--piece { max-inline-size: 400px; }
  .piece__buy small { display: block; margin-block-start: 10px; color: var(--dim); font-size: 13px; }
  .piece__points { margin-block-start: 22px; }
  .piece__points li { padding: 9px 0 9px 28px; border-block-end: 1px solid var(--line); position: relative; }
  .piece__points li::before { content: ""; position: absolute; inset-inline-start: 2px; inset-block-start: 15px; inline-size: 12px; block-size: 12px; background: var(--copper); box-shadow: 6px 6px 0 -3px var(--ink); }
  .tale { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
  .tale h2 { font-size: 34px; margin-block-end: 14px; }
  .tale__text p { margin-block-end: 14px; }
  .tale__spec { inline-size: 100%; border-collapse: collapse; background: #fff; font-size: 15px; }
  .tale__spec caption { font: 700 22px var(--disp); text-transform: uppercase; text-align: start; background: var(--ink); color: #fff; padding: 10px 14px; }
  .tale__spec th, .tale__spec td { padding: 10px 14px; border-block-end: 1px solid var(--line); text-align: start; vertical-align: top; }
  .tale__spec th { font-weight: 600; color: var(--dim); inline-size: 38%; }

  /* сервисные и гайды */
  .svc, .read { max-inline-size: 980px; margin-block-start: 22px !important; }
  .svc__head { margin-block-end: 32px; }
  .svc__head h1 { font-size: clamp(40px, 6vw, 72px); }
  .svc__head p { font: italic 500 20px var(--serif); color: #4a413b; margin-block-start: 8px; }
  .svc__out { margin-block-start: 28px; font-size: 17px; }
  .marks { margin: 0 0 16px 20px; list-style: square; }
  ol.marks { list-style: decimal; }
  .marks li { margin-block-end: 6px; }
  .marks li::marker { color: var(--copper); }
  .read__pic img { inline-size: 100%; }
  .read__body { max-inline-size: 720px; margin: 28px auto 0; }
  .read__body h2 { font-size: 28px; margin-block: 28px 10px; }
  .read__body p { margin-block-end: 14px; }
  .grid2 { inline-size: 100%; border-collapse: collapse; margin-block-end: 18px; }
  .grid2 th, .grid2 td { padding: 10px 12px; border: 1px solid var(--line); text-align: start; }
  .grid2 th { background: var(--cream); inline-size: 34%; font-weight: 600; }
  .notice { background: var(--cream); border-inline-start: 4px solid var(--copper); padding: 22px 24px; margin-block-start: 32px; }
  .notice h2 { font-size: 24px; margin-block-end: 8px; }

  /* about: бланк партии */
  .sheet { border: 2px solid var(--ink); background: #fff; }
  .sheet__head { display: flex; flex-wrap: wrap; gap: 6px 28px; padding: 12px 18px; border-block-end: 2px solid var(--ink); font: 600 16px var(--disp); letter-spacing: .1em; text-transform: uppercase; }
  .sheet__moves { display: grid; grid-template-columns: 1fr 1fr; }
  .sheet__moves li { display: flex; gap: 14px; padding: 18px; border-block-end: 1px solid var(--line); }
  .sheet__moves li:nth-child(odd) { border-inline-end: 1px solid var(--line); }
  .sheet__no { font: 800 30px/1 var(--disp); color: var(--copper); min-inline-size: 34px; }
  .sheet__moves h2 { font: 700 19px var(--serif); text-transform: none; letter-spacing: 0; margin-block-end: 4px; }
  .sheet__moves p { font-size: 15px; }
  .creed { background: var(--ink); color: #fff; padding: 28px; margin-block-start: 28px; display: grid; grid-template-columns: 1fr auto; gap: 14px 28px; align-items: end; }
  .creed h2 { font-size: 26px; grid-column: 1 / -1; color: var(--tan); }
  .creed li { font: italic 500 19px var(--serif); padding-block: 5px; }
  .creed img { inline-size: 170px; }

  /* contact: открытка */
  .post { display: grid; grid-template-columns: 1.2fr 1fr; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 28px rgb(35 31 30 / .1); }
  .post__msg { padding: 28px; border-inline-end: 2px dashed var(--line); }
  .post__msg h2 { font-size: 24px; margin-block-end: 12px; }
  .post__msg li a { display: block; padding: 11px 0; border-block-end: 1px solid var(--line); text-decoration: none; color: var(--ink); }
  .post__msg li b { display: block; color: var(--copper); }
  .post__msg li span { font-size: 14px; color: var(--dim); }
  .post__msg p { margin-block-start: 14px; font-size: 14px; color: var(--dim); }
  .post__addr { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
  .post__stamp { align-self: end; inline-size: 62px; block-size: 74px; display: grid; place-items: center; background: var(--copper); color: #fff; outline: 2px dashed var(--copper); outline-offset: 3px; }
  .post__stamp svg { inline-size: 36px; block-size: 36px; }
  .post__mail { font: 700 clamp(17px, 2vw, 22px) var(--serif); overflow-wrap: anywhere; }
  .post address { line-height: 2; background: repeating-linear-gradient(transparent 0 31px, var(--line) 31px 32px); }

  /* faq: вкладки */
  .openings__tabs { display: flex; flex-wrap: wrap; gap: 6px; border-block-end: 2px solid var(--ink); }
  .openings__tabs label { font: 700 19px var(--disp); letter-spacing: .08em; text-transform: uppercase; padding: 10px 18px; cursor: pointer; background: var(--cream); }
  .openings__panel { display: none; }
  .openings__panel details { border-block-end: 1px solid var(--line); }
  .openings__panel summary { cursor: pointer; padding: 16px 0; font: 700 18px var(--serif); }
  .openings__panel p { padding-block-end: 18px; }
  #op-chess:checked ~ .openings__tabs [for=op-chess], #op-games:checked ~ .openings__tabs [for=op-games],
  #op-care:checked ~ .openings__tabs [for=op-care], #op-orders:checked ~ .openings__tabs [for=op-orders] { background: var(--ink); color: #fff; }
  #op-chess:checked ~ [data-for=op-chess], #op-games:checked ~ [data-for=op-games],
  #op-care:checked ~ [data-for=op-care], #op-orders:checked ~ [data-for=op-orders] { display: block; }
  .openings input:focus-visible ~ .openings__tabs { outline: 3px solid var(--maple); }

  /* privacy: в коробке / не в коробке */
  .lid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
  .lid section { padding: 26px; }
  .lid h2 { font-size: 26px; margin-block-end: 14px; }
  .lid__in { background: var(--cream); border-block-start: 6px solid var(--copper); }
  .lid__in li { margin-block-end: 14px; }
  .lid__in h3 { font: 700 18px var(--serif); text-transform: none; letter-spacing: 0; }
  .lid__out { background: var(--ink); color: #fff; border-block-start: 6px solid var(--tan); }
  .lid__out li { padding: 10px 0 10px 26px; position: relative; border-block-end: 1px solid rgb(255 255 255 / .15); }
  .lid__out li::before { content: "\00d7"; position: absolute; inset-inline-start: 0; color: var(--tan); font-weight: 700; font-size: 20px; line-height: 1.2; }
  .terms { margin-block-start: 32px; display: grid; grid-template-columns: 200px 1fr; gap: 0 28px; }
  .terms dt { font: 700 19px var(--disp); text-transform: uppercase; letter-spacing: .06em; padding-block: 16px; border-block-start: 1px solid var(--line); }
  .terms dd { padding-block: 16px; border-block-start: 1px solid var(--line); }

  /* terms: клетки */
  .rules { counter-reset: r; display: grid; grid-template-columns: 1fr 1fr; }
  .rules li { counter-increment: r; padding: 24px 24px 24px 84px; position: relative; min-block-size: 150px; }
  .rules li:nth-child(4n+1), .rules li:nth-child(4n) { background: var(--cream); }
  .rules li::before { content: counter(r); position: absolute; inset-inline-start: 20px; inset-block-start: 22px; inline-size: 46px; block-size: 46px; display: grid; place-items: center; background: var(--ink); color: #fff; font: 800 24px var(--disp); }
  .rules h2 { font-size: 22px; margin-block-end: 6px; }
  .rules p { font-size: 15px; }

  /* delivery: диагональ */
  .diag { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .diag li { background: var(--cream); padding: 20px; }
  .diag li:nth-child(2) { margin-block-start: 28px; }
  .diag li:nth-child(3) { margin-block-start: 56px; }
  .diag li:nth-child(4) { margin-block-start: 84px; background: var(--copper); color: #fff; }
  .diag span { font: 800 40px/1 var(--disp); color: var(--copper); }
  .diag li:nth-child(4) span { color: #fff; }
  .diag h2 { font-size: 22px; margin-block: 8px 6px; }
  .diag p { font-size: 15px; }

  /* returns */
  .undo { display: grid; gap: 14px; }
  .undo li { display: grid; grid-template-columns: 300px 1fr; border: 1px solid var(--line); background: #fff; }
  .undo__if { background: var(--ink); color: #fff; padding: 20px; font: 700 19px/1.3 var(--serif); position: relative; }
  .undo__if::after { content: ""; position: absolute; inset-inline-end: -12px; inset-block-start: 24px; border: 12px solid transparent; border-inline-start-color: var(--ink); border-inline-end: 0; }
  .undo__then { padding: 20px 20px 20px 32px; }

  .lost { text-align: center; padding-block: 30px; }
  .lost__sq { inline-size: 110px; block-size: 110px; margin: 0 auto 20px; background: var(--ink); color: var(--tan); font: 800 80px/110px var(--disp); }
  .lost h1 { font-size: 48px; margin-block-end: 10px; }

  @media (max-width: 1100px) {
    .mast__nav { display: none; }
    .mast__fold { display: block; }
    .mast__go { margin-inline-start: auto; }
    .lots--4 { grid-template-columns: repeat(3, 1fr); }
    .rank { grid-template-columns: 1fr; }
    .rank__tag img { max-block-size: 190px; }
    .rank .lots--4 { grid-template-columns: repeat(4, 1fr); }
    .tiles__small { grid-template-columns: repeat(3, 1fr); }
    .perks ul { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 860px) {
    .lots--4, .lots--3, .rank .lots--4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .stories__list { grid-template-columns: 1fr; }
    .story { border-inline-start: 0; border-block-start: 1px solid var(--line); }
    .story:first-child { border-block-start: 0; }
    .versus__row, .origin, .duo, .piece, .tale, .sieve, .foot__grid, .post, .lid, .endgame__row { grid-template-columns: 1fr; }
    .versus__pic { display: none; }
    .world, .notes__cols { grid-template-columns: 1fr; }
    .foot__cols { padding: 32px 16px; }
    .foot__grid { inline-size: 100%; }
    .tiles__big { grid-template-columns: 1fr; }
    .tiles__big a { flex-direction: row; flex-wrap: wrap; justify-content: space-between; text-align: start; }
    .tiles__big img { inline-size: 120px; order: 3; }
    .tiles__big h3 { flex-basis: 60%; }
    .tiles__small { grid-template-columns: repeat(2, 1fr); }
    .tiles__small li:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .sieve__side > h2, .sieve__lines { display: none; }
    .sheet__moves, .rules, .diag { grid-template-columns: 1fr; }
    .sheet__moves li:nth-child(odd) { border-inline-end: 0; }
    .rules li:nth-child(n) { background: none; }
    .rules li:nth-child(odd) { background: var(--cream); }
    .diag li:nth-child(n) { margin-block-start: 0; }
    .undo li { grid-template-columns: 1fr; }
    .undo__if::after { display: none; }
    .terms { grid-template-columns: 1fr; }
    .terms dd { border: 0; padding-block-start: 0; }
    .post__msg { border-inline-end: 0; border-block-end: 2px dashed var(--line); }
    .ribbon li:nth-child(n+2) { display: none; }
    .ribbon { background: var(--tan); }
    .origin__big { display: none; }
    .origin { padding-block-end: 0; }
    .view__row { grid-template-columns: repeat(6, 1fr); }
    .opening::after { background: rgb(15 6 3 / .74); }
    main > section:not(.opening, .cream, .night, .banner, .lead--pic), main > article { margin-block: 40px; }
    .cream, .night { padding-block: 40px; }
    .sieve { margin-block: 24px 40px; }
  }
  @media (max-width: 520px) {
    .mast__logo img { inline-size: 132px; }
    .mast__go { inline-size: 168px; }
    .mast__row { gap: 10px; min-block-size: 64px; }
    .lot { padding: 8px; }
    .lot__name { font-size: 14.5px; }
    .lot__cost { font-size: 21px; }
    .perks ul { grid-template-columns: 1fr; }
    .foot__cols { grid-template-columns: 1fr 1fr; }
    .versus__tab { font-size: 14px; }
    .versus__tab th, .versus__tab td { padding: 9px 6px; }
  }
}
