/* Peaceable Kingdom — «the round table». Палитра по лого и баннеру стора. */
:root {
  --lemon: #f8e46a; --straw: #fbf1a6; --cream: #fffbea; --teal: #00a0a2; --teal-d: #00777a; --flag: #ee5b47;
  --orange: #f07028; --lime: #9bcb43; --plum: #b84898; --gold: #f6b21b;
  --mustard: #d6ac3e; --mint: #4fb486; --rose: #c9737a; --slate: #a8b7c4; --sage: #8ea787;
  --ink: #23343a; --ink-2: #4a5b60; --line: #e7dfb7; --white: #fff;
  --head: "Gelasio", Georgia, "Times New Roman", serif; --text: "Red Hat Text", "Segoe UI", Arial, sans-serif;
  --r: 14px; --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.6 var(--text); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-d); }
h1, h2, h3 { font-family: var(--head); line-height: 1.18; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 700; }
h2 { font-size: clamp(25px, 3vw, 36px); font-weight: 700; }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.jump { position: absolute; left: -999px; }
.jump:focus { left: 12px; top: 12px; z-index: 50; background: var(--white); padding: 8px 14px; }
.center { text-align: center; }

/* полоса над шапкой (Labyrinth) */
.strip { background: var(--teal); color: var(--white); font-size: 14px; font-weight: 600; }
.strip ul { list-style: none; margin: 0 auto; padding: 7px 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; }
.strip li:first-child { font-family: var(--head); font-style: italic; }

/* шапка: соломенный бар, лого слева (лидер выдачи) */
.mast { background: var(--straw); border-bottom: 4px solid var(--lemon); position: relative; z-index: 5; }
.mast-top { display: flex; align-items: center; gap: 20px; padding: 10px 0; }
.mast-logo img { width: 128px; }
.mast-say { font-family: var(--head); font-style: italic; color: var(--ink-2); font-size: 17px; margin-right: auto; }
.mast-buy { width: 230px; }
.menu-btn { display: none; margin-left: auto; background: var(--teal); color: var(--white); border: 0; border-radius: 999px; padding: 9px 18px; font: 700 15px var(--text); }
.mast-nav ul { list-style: none; margin: 0 auto; padding: 0 16px 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 4px; max-width: var(--wrap); }
.mast-nav a { display: block; padding: 6px 11px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; border-radius: 999px; }
.mast-nav a:hover, .mast-nav a[aria-current] { background: var(--white); color: var(--teal-d); }
.mast-nav li:last-child a { background: var(--teal); color: var(--white); }

/* кнопка-штамп */
.buy { display: block; width: 100%; max-width: 330px; padding: 0; border: 0; background: none; cursor: pointer; transition: transform .15s; }
.buy:hover { transform: translateY(-2px); }
.buy img { width: 100%; }
.buy-card { max-width: 250px; margin: 12px auto 0; }
.buy-mast { max-width: 230px; }
.buy-big { max-width: 360px; }

/* хиро: полноширинное фото, затемнение, serif по центру, плитки внахлёст */
.hero { position: relative; color: var(--white); text-align: center; }
.hero-pic, .hero-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(25, 38, 40, .55), rgba(25, 38, 40, .62)); }
.hero-in { position: relative; z-index: 1; padding: clamp(56px, 9vw, 110px) 0 150px; max-width: 920px; }
.hero h1 { color: var(--white); font-size: clamp(34px, 5.4vw, 64px); text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero .kick { color: var(--lemon); }
.hero-lede { font-size: 19px; max-width: 720px; margin: 0 auto 26px; }
.hero .buy { margin: 0 auto; }
.hero-alt { display: inline-block; margin-top: 14px; color: var(--white); font-weight: 700; }
.kick { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 800; color: var(--teal-d); margin-bottom: 10px; }
.kick a { color: inherit; text-decoration: none; }
.pillars { position: relative; z-index: 2; margin-top: -110px; display: grid; grid-template-columns: repeat(3, 1fr); }
.pillar { padding: 30px 26px; text-align: center; color: var(--white); }
.pillar:nth-child(1) { background: var(--mustard); border-radius: var(--r) 0 0 var(--r); }
.pillar:nth-child(2) { background: var(--mint); }
.pillar:nth-child(3) { background: var(--rose); border-radius: 0 var(--r) var(--r) 0; }
.pillar svg { width: 34px; height: 34px; margin: 0 auto 10px; fill: none; stroke: var(--white); stroke-width: 2; }
.pillar h3 { color: var(--white); margin-bottom: 6px; font-size: 19px; }
.pillar p { margin: 0; font-size: 15px; opacity: .95; }

/* секции */
.sect { padding: 64px 0; }
.sect-white { background: var(--white); }
.sect-straw { background: var(--straw); }
.sect-h { text-align: center; }
.sect-sub { text-align: center; max-width: 680px; margin: -4px auto 34px; color: var(--ink-2); }

/* круги по возрасту (Montessori Room) */
.ages { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.ages a { display: block; text-align: center; text-decoration: none; color: var(--ink); font-weight: 800; }
.ages .ring { display: block; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 6px solid var(--teal); margin-bottom: 10px; background: var(--teal); }
.ages .ring img { width: 100%; height: 100%; object-fit: cover; }
.ages li:nth-child(2) .ring { border-color: var(--orange); }
.ages li:nth-child(3) .ring { border-color: var(--lime); }
.ages li:nth-child(4) .ring { border-color: var(--gold); }
.ages .ring-txt { display: grid; place-items: center; color: var(--white); font: 700 26px/1.1 var(--head); padding: 14px; }
.ages li:nth-child(5) .ring-txt { background: var(--plum); border-color: var(--plum); }
.ages li:nth-child(6) .ring-txt { background: var(--teal-d); border-color: var(--teal-d); font-size: 20px; }

/* сетка товаров: серые карточки и оранжевая кнопка (лидер выдачи) */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: #f3f3ef; border-radius: var(--r); padding: 16px 16px 20px; display: flex; flex-direction: column; text-align: center; position: relative; }
.card[hidden] { display: none; }
.card-pic { display: block; background: var(--white); border-radius: 10px; overflow: hidden; margin-bottom: 12px; }
.card-pic img { aspect-ratio: 1; object-fit: contain; width: 100%; }
.card-meta { font-size: 13px; color: var(--ink-2); margin: 0 0 4px; }
.card-name { font-family: var(--head); font-size: 17px; line-height: 1.3; margin: 0 0 6px; }
.card-name a { color: var(--ink); text-decoration: none; }
.card-name a:hover { color: var(--teal-d); }
.card-blurb { font-size: 14.5px; color: var(--ink-2); margin: 0 0 8px; flex: 1; }
.card-flag { position: absolute; top: 24px; left: 24px; background: var(--flag); color: var(--white); font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; z-index: 1; }
.stars { margin: 0 0 6px; font-size: 14px; display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; }
.stars i { --pct: calc(var(--v) / 5 * 100%); width: 84px; height: 16px; background: linear-gradient(90deg, var(--gold) var(--pct), #d8d4c4 var(--pct));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24'%3E%3Cg%3E%3Cpath id='s' d='M12 1l3.4 7 7.6 1-5.5 5.3 1.3 7.6L12 18.3 5.2 21.9l1.3-7.6L1 9l7.6-1z'/%3E%3Cuse href='%23s' x='24'/%3E%3Cuse href='%23s' x='48'/%3E%3Cuse href='%23s' x='72'/%3E%3Cuse href='%23s' x='96'/%3E%3C/g%3E%3C/svg%3E") 0 0/100% 100%;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24'%3E%3Cg%3E%3Cpath id='s' d='M12 1l3.4 7 7.6 1-5.5 5.3 1.3 7.6L12 18.3 5.2 21.9l1.3-7.6L1 9l7.6-1z'/%3E%3Cuse href='%23s' x='24'/%3E%3Cuse href='%23s' x='48'/%3E%3Cuse href='%23s' x='72'/%3E%3Cuse href='%23s' x='96'/%3E%3C/g%3E%3C/svg%3E") 0 0/100% 100%; }
.stars span { color: var(--ink-2); }
.price { margin: 0; font-size: 15px; }
.price strong { font-size: 21px; color: var(--ink); }
.price del { color: var(--ink-2); margin-left: 8px; }
.price mark { background: var(--lemon); padding: 1px 8px; border-radius: 999px; margin-left: 8px; font-weight: 700; font-size: 13px; }
.more { text-align: center; margin-top: 30px; }
.pill { display: inline-block; background: var(--orange); color: var(--white); text-decoration: none; font-weight: 800; padding: 12px 26px; border-radius: 999px; }
.pill:hover { background: #d95f1b; }
.pill-line { background: transparent; color: var(--teal-d); box-shadow: inset 0 0 0 2px var(--teal); }
.pill-line:hover { background: var(--teal); color: var(--white); }

/* полки */
.shelves { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.shelf { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--white); border-radius: var(--r); overflow: hidden; box-shadow: 0 2px 0 var(--line); transition: transform .15s; }
.shelf:hover { transform: translateY(-3px); }
.shelf-pic { aspect-ratio: 2 / 1; background: var(--straw); display: grid; place-items: center; overflow: hidden; }
.shelf-pic img { width: 100%; height: 100%; object-fit: cover; }
.shelf-pic.dot img { width: auto; height: 90%; object-fit: contain; }
.shelf b { font-family: var(--head); font-size: 18px; padding: 12px 14px 0; }
.shelf span { font-size: 14px; color: var(--ink-2); padding: 2px 14px 14px; }

/* «чем отличается»: бежевые боксы 2x2 */
.boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.boxes article { background: #ece6c8; border-radius: var(--r); padding: 28px 30px; position: relative; padding-left: 74px; }
.boxes article::before { content: "»"; position: absolute; left: 28px; top: 20px; font: 700 36px/1 var(--head); color: var(--flag); }
.boxes h3 { font-size: 21px; }
.boxes p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* навыки: пунктирные выноски */
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 48px; list-style: none; padding: 0; margin: 0; }
.skills b { display: flex; align-items: baseline; gap: 12px; font-family: var(--head); font-size: 19px; }
.skills b::after { content: ""; flex: 1; border-bottom: 2px dashed var(--teal); transform: translateY(-4px); }
.skills span { display: block; color: var(--ink-2); font-size: 15px; margin-top: 2px; }

/* спотлайт */
.spot { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.spot-pic { background: var(--white); border-radius: var(--r); padding: 18px; }
.spot .price { margin-bottom: 14px; }

/* баннер персонажей */
.band { background: var(--lime); }
.band img { width: 100%; max-width: 2000px; margin: 0 auto; }

/* отзывы на сером-синем */
.revs { background: var(--slate); padding: 64px 0; }
.revs .sect-sub { color: var(--ink); }
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rev { background: rgba(255, 255, 255, .55); border-radius: var(--r); padding: 24px; margin: 0; display: flex; flex-direction: column; }
.rev-stars { color: var(--gold); letter-spacing: 3px; font-size: 18px; }
.rev h3 { font-size: 18px; margin: 6px 0 8px; }
.rev blockquote { margin: 0 0 14px; font-size: 15.5px; flex: 1; }
.rev figcaption { font-size: 14px; color: var(--ink-2); }
.rev figcaption b { color: var(--ink); }
.rev figcaption a { color: var(--teal-d); font-weight: 700; }

/* SEO и FAQ */
.prose-2 { columns: 2; column-gap: 48px; }
.prose-2 p { break-inside: avoid; }
.faq { max-width: 900px; margin: 0 auto; counter-reset: q; }
.faq details { border-bottom: 1px solid var(--line); counter-increment: q; }
.faq summary { list-style: none; cursor: pointer; display: flex; gap: 14px; align-items: center; padding: 18px 0; font: 700 18px/1.35 var(--head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: counter(q) "."; color: var(--teal-d); }
.faq summary::after { content: "+"; margin-left: auto; color: var(--flag); font: 400 34px/1 var(--text); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; padding-left: 28px; color: var(--ink-2); }

/* префутер со слоганом */
.closing { background: var(--teal); color: var(--white); }
.closing-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 56px 0; }
.closing h2 { color: var(--white); font-style: italic; font-size: clamp(30px, 4vw, 46px); }
.closing img { border-radius: var(--r); }

/* подвал: белый ряд лого/контакты/адрес + колонки + шалфейная полоса */
.floor { background: var(--white); border-top: 4px solid var(--lemon); }
.floor-top { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line); }
.floor-top img { width: 132px; }
.floor-top p, .floor-top address { margin: 0; font-style: normal; }
.floor-cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr; gap: 30px; padding: 34px 0; }
.floor h3 { font-size: 17px; margin-bottom: 10px; }
.floor ul { list-style: none; padding: 0; margin: 0; columns: 1; }
.floor li { margin-bottom: 6px; font-size: 15px; }
.floor-cols a { color: var(--ink); text-decoration: none; }
.floor-cols a:hover { color: var(--teal-d); text-decoration: underline; }
.floor-shelves ul { columns: 2; column-gap: 20px; }
.floor-cta p { font-size: 14.5px; color: var(--ink-2); }
.floor-fine { background: var(--sage); color: #1f2c22; text-align: center; font-size: 14px; padding: 16px; }
.floor-fine p { margin: 2px auto; max-width: 900px; }

/* шапка раздела с фото (Labyrinth) */
.path ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 0 0; margin: 0; font-size: 14px; }
.path li + li::before { content: "›"; margin-right: 6px; color: var(--ink-2); }
.path a { color: var(--ink-2); }
.lead { position: relative; margin: 14px auto 0; border-radius: var(--r); overflow: hidden; background: var(--teal-d); color: var(--white); min-height: 210px; display: grid; align-items: end; }
.lead-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.lead-in { position: relative; padding: 36px 36px 30px; max-width: 860px; }
.lead h1 { color: var(--white); font-size: clamp(28px, 3.6vw, 42px); }
.lead .kick { color: var(--lemon); }
.lead p { margin: 0; font-size: 17.5px; }

/* каталог: сайдбар-фильтр + сетка */
.cat { display: grid; grid-template-columns: 250px 1fr; gap: 30px; padding: 30px 0 60px; align-items: start; }
.side { background: var(--white); border-radius: var(--r); padding: 20px; position: sticky; top: 12px; }
.side h2 { font-size: 17px; margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.side ul { list-style: none; padding: 0; margin: 0 0 18px; }
.side li { margin: 3px 0; font-size: 15px; }
.side a { color: var(--ink); text-decoration: none; }
.side a[aria-current] { color: var(--teal-d); font-weight: 800; }
.side label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.side input { accent-color: var(--teal); width: 16px; height: 16px; }
.cat-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; font-size: 15px; color: var(--ink-2); }
.cat .grid { grid-template-columns: repeat(3, 1fr); }
.none { text-align: center; padding: 30px; background: var(--white); border-radius: var(--r); }
.note-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

/* карточка товара */
.pd { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; padding: 26px 0 50px; align-items: start; }
.pd-main { background: var(--white); border-radius: var(--r); overflow: hidden; }
.pd-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 10px; }
.pd-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: var(--white); cursor: pointer; }
.pd-thumbs button[aria-pressed="true"] { border-color: var(--teal); }
.pd-info h1 { font-size: clamp(27px, 3.2vw, 38px); }
.pd-info .stars { justify-content: flex-start; }
.chips { list-style: none; padding: 0; margin: 10px 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--straw); border-radius: 999px; padding: 4px 14px; font-size: 14px; font-weight: 700; }
.pd-info .price { margin-bottom: 14px; }
.fine { font-size: 13px; color: var(--ink-2); margin-top: 8px; }
.pd-lede { font-size: 18px; margin-top: 18px; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.6 2.5L12 5.5' fill='none' stroke='white' stroke-width='2.2'/%3E%3C/svg%3E") center/14px no-repeat; }
.how { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.know { background: var(--straw); border-radius: var(--r); padding: 24px; }
.know h2, .know h3 { font-size: 19px; }
.know ul { margin: 0; padding-left: 20px; }
.slim { text-align: center; padding: 40px 0; }
.slim .buy { margin: 12px auto 0; }

/* статьи и сервисные */
.read { max-width: 860px; padding: 26px 0 60px; }
.read-dek { font-size: 19px; color: var(--ink-2); }
.read-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 26px; margin: 26px 0 30px; align-items: start; }
.read-top img { border-radius: var(--r); }
.read h2 { margin-top: 1.4em; }
.read > picture img { border-radius: var(--r); margin: 18px 0 26px; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 24px 0; }
.tile { display: block; background: var(--white); border-radius: var(--r); padding: 22px; color: var(--ink); text-decoration: none; border-top: 5px solid var(--teal); }
.tile:nth-child(2) { border-color: var(--orange); }
.tile:nth-child(3) { border-color: var(--lime); }
.tile:nth-child(4) { border-color: var(--plum); }
.tile h2 { font-size: 20px; margin-top: 0; }
.tile p { margin: 0; color: var(--ink-2); }
.bigmail { font: 700 clamp(18px, 3vw, 28px) var(--head); overflow-wrap: anywhere; }
.floor-top p, .read p { overflow-wrap: anywhere; }
.road { list-style: none; padding: 0; margin: 24px 0; counter-reset: s; }
.road li { counter-increment: s; position: relative; padding: 0 0 22px 64px; border-left: 3px dashed var(--teal); margin-left: 22px; }
.road li::before { content: counter(s); position: absolute; left: -24px; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: var(--white); display: grid; place-items: center; font: 700 20px var(--head); }
.road h2 { margin: 0 0 4px; font-size: 21px; }
.cases dt { font: 700 19px var(--head); margin-top: 18px; }
.cases dd { margin: 4px 0 0; padding: 12px 16px; background: var(--white); border-left: 4px solid var(--flag); border-radius: 0 10px 10px 0; }
.rules { padding-left: 22px; }
.rules li::marker { font: 700 20px var(--head); color: var(--teal-d); }
.rules h2 { font-size: 20px; margin: 18px 0 4px; }
address { font-style: normal; }

/* мобильные */
@media (max-width: 1020px) {
  .grid, .shelves { grid-template-columns: repeat(3, 1fr); }
  .ages { grid-template-columns: repeat(3, 1fr); }
  .cat { grid-template-columns: 1fr; }
  .side { position: static; }
  .floor-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .mast-top { flex-wrap: wrap; gap: 10px; }
  .mast-say, .mast-buy { display: none; }
  .mast-logo img { width: 100px; }
  .menu-btn { display: block; }
  .mast-nav { display: none; }
  .mast-nav.open { display: block; }
  .mast-nav ul { flex-direction: column; align-items: stretch; }
  .grid, .cat .grid, .shelves { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card { padding: 10px 10px 14px; }
  .card-blurb { display: none; }
  .card-flag { top: 14px; left: 14px; }
  .pillars, .boxes, .skills, .spot, .rev-grid, .note-wrap, .pd, .how, .read-top, .cols-2, .closing-in, .floor-top { grid-template-columns: 1fr; }
  .pillars { margin-top: -70px; }
  .pillar:nth-child(n) { border-radius: 0; }
  .pillar:first-child { border-radius: var(--r) var(--r) 0 0; }
  .pillar:last-child { border-radius: 0 0 var(--r) var(--r); }
  .hero-in { padding-bottom: 100px; }
  .prose-2 { columns: 1; }
  .ages { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .ages .ring-txt { font-size: 18px; }
  .ages li:nth-child(6) .ring-txt { font-size: 14px; }
  .boxes article { padding: 22px 20px 22px 58px; }
  .boxes article::before { left: 18px; }
  .floor-cols { grid-template-columns: 1fr; }
  .floor-top { text-align: center; }
  .floor-top img { margin: 0 auto; }
  .lead-in { padding: 24px 20px 22px; }
  .sect { padding: 44px 0; }
  .pd-thumbs { grid-template-columns: repeat(4, 1fr); }
}
