/* SVRAKA — «гнездо сороки»: перо цвета чернил с отливом + яркие конфетные цвета. */
:root {
  --ink: #1B1035;          /* перо сороки: чёрный с фиолетовым отливом */
  --ink-soft: #4A3F66;
  --paper: #F6F0FF;        /* светлая сирень */
  --white: #FFFFFF;
  --pink: #E30384;         /* фирменный малиновый SVRAKA (из лого) */
  --lemon: #FFE14D;
  --teal: #00C2A8;
  --cobalt: #3D5AFE;
  --tangerine: #FF7A2F;
  --lilac: #B79CFF;

  --font-display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --font-body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --line: 3px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --shadow-lg: 8px 8px 0 var(--ink);
  --r-sm: 12px;
  --r: 22px;
  --r-lg: 36px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font-body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }
.muted { color: var(--ink-soft); }
.small { font-size: .875rem; }

/* ---------- Типографика ---------- */
.h1, .h2, .h3, .hero-title, .product-title, .follow-title {
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.h1 { font-weight: 800; font-size: clamp(2.1rem, 5.5vw, 3.9rem); }
.h2 { font-weight: 800; font-size: clamp(1.6rem, 3.6vw, 2.5rem); margin-bottom: 28px; }
.h3 { font-weight: 800; font-size: 1.45rem; margin-bottom: 18px; }
.lead { font-size: 1.2rem; max-width: 46ch; margin: 14px 0 0; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 26px;
  border: var(--line); border-radius: 999px;
  font: 600 1rem/1.1 var(--font-display); letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn--ink { background: var(--ink); color: var(--white); box-shadow: 5px 5px 0 var(--pink); }
.btn--ink:hover { box-shadow: 7px 7px 0 var(--pink); }
.btn--ink:active { box-shadow: 2px 2px 0 var(--pink); }
.btn--ghost { background: var(--white); }
.btn--pink { background: var(--pink); color: var(--white); }
.btn--big { min-height: 60px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--small { min-height: 40px; padding: 8px 16px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.text-link { display: inline-block; padding-block: 10px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; text-decoration-color: var(--pink); }
.text-link:hover { text-decoration-color: var(--ink); }

/* ---------- Шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: var(--line); }
.header-row { display: flex; align-items: center; gap: 20px; min-height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
/* фирменная сорока — SVG-спрайт /img/magpie.svg, цвет через currentColor */
.magpie { display: block; color: var(--ink); overflow: visible; }
.logo-bird { width: 50px; height: 44px; flex: none; }
.logo-word { font: 900 1.35rem/1 var(--font-display); letter-spacing: -0.03em; }
.main-nav { display: flex; gap: 6px; margin-left: 12px; }
.main-nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 700; }
.main-nav a:hover { background: var(--white); }
.main-nav a[aria-current] { background: var(--lemon); box-shadow: inset 0 0 0 3px var(--ink); }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; border: var(--line); border-radius: 999px; overflow: hidden; background: var(--white); }
.lang-switch a { padding: 6px 10px; font-size: .85rem; font-weight: 700; text-decoration: none; }
.lang-switch a + a { border-left: 2px solid var(--ink); }
.lang-switch a[aria-current] { background: var(--ink); color: var(--white); }
.lang-menu { position: relative; display: none; }
.lang-menu summary { display: flex; align-items: center; gap: 4px; padding: 7px 10px 7px 12px; border: var(--line); border-radius: 999px; background: var(--white); font-weight: 700; font-size: .85rem; cursor: pointer; list-style: none; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary svg { width: 14px; height: 14px; transition: transform .15s; }
.lang-menu[open] summary svg { transform: rotate(180deg); }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; list-style: none; margin: 0; padding: 6px; min-width: 150px; background: var(--white); border: var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.lang-menu a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.lang-menu a:hover { background: var(--lemon); }
.lang-menu a[aria-current] { background: var(--ink); color: var(--white); }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px; border: var(--line); border-radius: 999px; background: var(--pink); color: var(--white); text-decoration: none; font-weight: 700; box-shadow: 3px 3px 0 var(--ink); }
.cart-btn svg { width: 24px; height: 24px; }
.cart-count { position: absolute; top: -10px; right: -10px; min-width: 26px; height: 26px; padding: 0 6px; display: grid; place-items: center; border: var(--line); border-radius: 999px; background: var(--lemon); font: 800 .8rem/1 var(--font-display); }
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.35) rotate(-8deg); } }

/* ---------- Первый экран: гнездо ---------- */
.hero { position: relative; padding-top: clamp(32px, 6vw, 72px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: center; position: relative; z-index: 2; }
.hero-title { font-weight: 900; font-size: clamp(2.3rem, 5.6vw, 4.6rem); line-height: 1; letter-spacing: -0.035em; max-width: 12ch; }
.hero-text { font-size: 1.18rem; max-width: 40ch; margin: 22px 0 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hoard { list-style: none; margin: 0; padding: 0; position: relative; height: clamp(360px, 42vw, 540px); }
.sticker { position: absolute; width: 38%; }
.sticker a { display: block; position: relative; background: var(--white); padding: 8px; border: var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); text-decoration: none; transition: transform .18s ease; }
.sticker img { border-radius: 14px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.sticker a:hover { transform: rotate(0deg) scale(1.05) !important; z-index: 5; }
.sticker-price { position: absolute; bottom: -14px; right: 14px; background: var(--lemon); border: var(--line); border-radius: 999px; padding: 4px 12px; font: 800 .85rem/1.2 var(--font-display); white-space: nowrap; }
.sticker--1 { left: 2%;  top: 6%;  z-index: 3; } .sticker--1 a { transform: rotate(-9deg); }
.sticker--2 { left: 34%; top: 0;   z-index: 2; width: 34%; } .sticker--2 a { transform: rotate(6deg); }
.sticker--3 { left: 63%; top: 12%; z-index: 4; width: 35%; } .sticker--3 a { transform: rotate(-4deg); }
.sticker--4 { left: 20%; top: 50%; z-index: 5; width: 32%; } .sticker--4 a { transform: rotate(8deg); }
.sticker--5 { left: 52%; top: 54%; z-index: 4; width: 30%; } .sticker--5 a { transform: rotate(-11deg); }

/* один момент движения: добыча падает в гнездо при загрузке */
@media (prefers-reduced-motion: no-preference) {
  .sticker { animation: drop .7s cubic-bezier(.2, 1.4, .4, 1) both; animation-delay: calc(var(--i) * 110ms + 150ms); }
  .wordmark-bird { animation: hop .6s ease-out .85s both; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-90px) rotate(-18deg) scale(.85); } }
@keyframes hop { 0% { opacity: 0; transform: translateY(30px); } 60% { transform: translateY(-14px); } 100% { opacity: 1; } }

.hero-copy { padding-bottom: clamp(40px, 5vw, 72px); }
.wordmark { position: relative; z-index: 1; margin-top: clamp(-90px, -6vw, -20px); padding-inline: var(--gutter); text-align: center; user-select: none; }
.wordmark span { display: block; font: 900 17.2vw/0.78 var(--font-display); letter-spacing: -0.055em; color: var(--ink); white-space: nowrap; transform: translateY(0.1em); }
.wordmark-bird { --bw: clamp(120px, 17vw, 260px); position: absolute; width: var(--bw); height: calc(var(--bw) * 0.89); right: 3%; top: calc(var(--bw) * -0.74); transform-origin: bottom center; filter: drop-shadow(5px 5px 0 var(--pink)); }

/* бегущая строка: два одинаковых списка, сдвигаем дорожку на половину */
.marquee { background: var(--lemon); border-block: var(--line); position: relative; z-index: 3; overflow: hidden; }
.marquee-track { display: flex; width: max-content; }
.marquee-list { list-style: none; display: flex; flex: none; margin: 0; padding: 14px 0; font: 600 clamp(.9rem, 1.6vw, 1.1rem)/1.3 var(--font-display); white-space: nowrap; }
.marquee-list li { display: flex; align-items: center; }
.marquee-list li::after { content: '✦'; margin-inline: clamp(14px, 2vw, 24px); color: var(--pink); -webkit-text-stroke: 1.5px var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 40s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { width: auto; justify-content: center; }
  .marquee-list { flex-wrap: wrap; justify-content: center; white-space: normal; padding-inline: 16px; }
  .marquee-list[aria-hidden], .marquee-list li:nth-child(n+7) { display: none; }
}

/* ---------- Секции ---------- */
.section { padding-block: clamp(48px, 8vw, 96px) 0; }
.section--tight { padding-top: 24px; }
.section--last { padding-bottom: 0; }
main { padding-bottom: clamp(56px, 9vw, 110px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head .h2 { margin: 0; }
.page-head { padding-top: clamp(32px, 6vw, 64px); }

/* Категории — цветные плитки */
.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat-tile { display: flex; flex-direction: column; justify-content: space-between; min-height: 170px; padding: 22px 24px; border: var(--line); border-radius: var(--r-lg); text-decoration: none; box-shadow: var(--shadow); transition: transform .12s ease, box-shadow .12s ease; }
.cat-tile:hover { transform: translate(-3px, -3px) rotate(-1deg); box-shadow: var(--shadow-lg); }
.cat-name { font: 800 clamp(1.3rem, 2.6vw, 1.9rem)/1.05 var(--font-display); letter-spacing: -0.02em; text-wrap: balance; overflow-wrap: break-word; }
.cat-count { font-weight: 700; }
.cat-grid li:nth-child(1) .cat-tile { border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 8px; }
.cat-grid li:nth-child(5) .cat-tile { border-radius: 8px var(--r-lg) var(--r-lg) var(--r-lg); }

.cat-tile--pink, .chip--pink[aria-current] { background: var(--pink); color: var(--white); }
.cat-tile--lemon, .chip--lemon[aria-current] { background: var(--lemon); }
.cat-tile--teal, .chip--teal[aria-current] { background: var(--teal); }
.cat-tile--cobalt, .chip--cobalt[aria-current] { background: var(--cobalt); color: var(--white); }
.cat-tile--tangerine, .chip--tangerine[aria-current] { background: var(--tangerine); }
.cat-tile--lilac, .chip--lilac[aria-current] { background: var(--lilac); }

/* ---------- Карточки товаров ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 28px); }
.card { display: flex; flex-direction: column; }
.card-link { text-decoration: none; display: block; }
.card-media { position: relative; border: var(--line); border-radius: var(--r); overflow: hidden; background: var(--white); transition: transform .14s ease, box-shadow .14s ease; }
.card-link:hover .card-media { transform: translate(-3px, -3px); box-shadow: var(--shadow); }
.card-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.card--pink .card-media { background: var(--pink); }
.card--lemon .card-media { background: var(--lemon); }
.card--teal .card-media { background: var(--teal); }
.card--cobalt .card-media { background: var(--cobalt); }
.card--tangerine .card-media { background: var(--tangerine); }
.card--lilac .card-media { background: var(--lilac); }
.badges { position: absolute; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.badges--inline { position: static; margin-bottom: 14px; align-items: center; }
.badges--inline .badge { display: inline-flex; align-items: center; padding: 6px 12px; } /* все метки над названием — одной высоты, текст по центру */
.badge { display: inline-block; padding: 3px 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); font: 700 .78rem/1.3 var(--font-body); text-decoration: none; }
.badge--new { background: var(--lemon); }
.badge--best { background: var(--ink); color: var(--white); }
.badge--mto { background: var(--white); }
.badge--col { background: var(--white); }
.badge--col:hover { background: var(--lemon); }
.card-name { font: 600 1rem/1.3 var(--font-body); margin: 12px 0 4px; overflow-wrap: anywhere; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding: 4px 3px 3px 0; }
.card-price { margin: 0; font: 800 1.05rem/1.2 var(--font-display); }
.card-price s, .product-price s { font-weight: 600; color: var(--ink-soft); font-size: .8em; margin-right: 4px; }
.card-price small, .product-price small { display: block; font: 500 .8rem var(--font-body); color: var(--ink-soft); }
.add-mini { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border: var(--line); border-radius: 50%; background: var(--white); cursor: pointer; box-shadow: 3px 3px 0 var(--ink); transition: transform .12s ease, background .12s ease; }
.add-mini svg { width: 20px; height: 20px; }
.add-mini:hover { background: var(--lemon); }
.add-mini:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.add-mini.is-added { background: var(--teal); }

/* ---------- Коллекции ---------- */
.collections { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.collection { display: flex; flex-direction: column; gap: 12px; min-height: 260px; padding: 28px; border: var(--line); border-radius: var(--r-lg); text-decoration: none; box-shadow: var(--shadow); transition: transform .12s ease, box-shadow .12s ease; }
.collection:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-lg); }
.collection-name { font: 900 clamp(1.6rem, 3vw, 2.3rem)/1 var(--font-display); letter-spacing: -0.03em; }
.collection-desc { max-width: 34ch; }
.collection-count { margin-top: auto; font-weight: 700; }
.collection-fan { display: flex; margin: 6px 0 4px; padding-left: 4px; }
.collection-fan img { width: clamp(72px, 9vw, 108px); aspect-ratio: 4 / 5; object-fit: cover; border: 3px solid var(--ink); border-radius: 14px; background: var(--white); box-shadow: 3px 3px 0 var(--ink); }
.collection-fan img + img { margin-left: -18px; }
.collection-fan img:nth-child(1) { transform: rotate(-7deg); }
.collection-fan img:nth-child(2) { transform: rotate(4deg) translateY(-6px); z-index: 1; }
.collection-fan img:nth-child(3) { transform: rotate(-2deg) translateY(4px); }
.collection:hover .collection-fan img:nth-child(1) { transform: rotate(-11deg) translateX(-6px); }
.collection:hover .collection-fan img:nth-child(3) { transform: rotate(3deg) translateX(6px); }
.collection-fan img { transition: transform .2s ease; }
.collection--pink { background: var(--pink); color: var(--white); }
.collection--lemon { background: var(--lemon); }
.collection--teal { background: var(--teal); }
.collection--cobalt { background: var(--cobalt); color: var(--white); }
.collection--tangerine { background: var(--tangerine); }
.collection--lilac { background: var(--lilac); }

/* ---------- Как заказать (настоящая последовательность — нумеруем) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 70px 24px 24px; border: var(--line); border-radius: var(--r); background: var(--white); counter-increment: step; }
.step::before { content: counter(step); position: absolute; top: 18px; left: 22px; width: 40px; height: 40px; display: grid; place-items: center; border: var(--line); border-radius: 50%; background: var(--lemon); font: 900 1.1rem/1 var(--font-display); }
.step-title { font: 800 1.15rem/1.2 var(--font-display); margin: 0 0 8px; }
.step p { margin: 0; }

.follow { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: clamp(28px, 5vw, 52px); border-radius: var(--r-lg); background: var(--ink); color: var(--white); box-shadow: 8px 8px 0 var(--teal); }
.follow-title { font-weight: 800; font-size: clamp(1.4rem, 3vw, 2.1rem); max-width: 22ch; margin-bottom: 10px; }
.follow p { margin: 0; max-width: 52ch; color: #DCD3F2; }

/* ---------- Каталог ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.chip { padding: 9px 16px; border: var(--line); border-radius: 999px; background: var(--white); font-weight: 700; text-decoration: none; white-space: nowrap; }
.chip:hover { background: var(--lemon); }
.chip[aria-current] { background: var(--ink); color: var(--white); }
.chip--outline { border-style: dashed; background: transparent; }
.chips--collections { margin-bottom: 24px; }
.catalog-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.catalog-bar p { margin: 0; font-weight: 600; }
.sort-form select { appearance: none; padding: 10px 44px 10px 16px; border: var(--line); border-radius: 999px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%231B1035' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; font-weight: 700; cursor: pointer; }
.empty { text-align: center; padding: 56px 20px; border: 3px dashed var(--ink); border-radius: var(--r-lg); background: var(--white); }
.empty p { max-width: 46ch; margin: 0 auto 22px; font-size: 1.1rem; }
.empty--big { border: 0; background: none; }
.empty--big .h1 { margin-bottom: 12px; }

/* ---------- Карточка товара ---------- */
.crumbs { display: flex; gap: 10px; padding-top: 24px; font-weight: 600; }
.crumbs { align-items: center; flex-wrap: wrap; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.product { padding-top: 20px; }
.product-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.gallery { position: sticky; top: 94px; }
.gallery-main { border: var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--white); }
.gallery-main.card--pink { background: var(--pink); } .gallery-main.card--lemon { background: var(--lemon); }
.gallery-main.card--teal { background: var(--teal); } .gallery-main.card--cobalt { background: var(--cobalt); }
.gallery-main.card--tangerine { background: var(--tangerine); } .gallery-main.card--lilac { background: var(--lilac); }
.gallery-main img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 16px; }
.gallery-thumbs button { padding: 0; width: 72px; border: var(--line); border-radius: var(--r-sm); overflow: hidden; cursor: pointer; background: none; opacity: .65; }
.gallery-thumbs button[aria-current] { opacity: 1; box-shadow: 3px 3px 0 var(--pink); }
.product-title { font-weight: 900; font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -0.03em; }
.product-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 18px 0; font: 900 clamp(1.7rem, 3.4vw, 2.3rem)/1 var(--font-display); }
.product-price span { background: var(--lemon); padding: 6px 14px; border: var(--line); border-radius: 999px; transform: rotate(-2deg); display: inline-block; }
.product-price small { flex-basis: 100%; }
.product-desc { font-size: 1.15rem; max-width: 48ch; margin: 0 0 18px; }
.stock { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; margin: 0 0 18px; }
.stock::before { content: ''; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); }
.stock--in::before { background: var(--teal); }
.stock--mto::before { background: var(--lemon); }
.stock--out::before { background: var(--ink-soft); }
.buy { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.buy .btn { flex: 1 1 220px; }
.qty { display: inline-flex; align-items: center; border: var(--line); border-radius: 999px; background: var(--white); padding: 4px; gap: 2px; }
.qty button { width: 52px; height: 52px; border: 0; border-radius: 50%; background: none; font: 800 1.4rem/1 var(--font-display); cursor: pointer; transition: background .15s ease; } /* заливка при наведении — круг внутри рамки, не обрезается */
.qty button:hover { background: var(--lemon); }
.qty output { min-width: 32px; text-align: center; font: 800 1.15rem/1 var(--font-display); }
.specs { margin: 0 0 24px; border-top: var(--line); }
.specs div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 12px 0; border-bottom: 2px solid color-mix(in srgb, var(--ink) 18%, transparent); }
.specs dt { font-weight: 700; }
.specs dd { margin: 0; }
.fold { border: var(--line); border-radius: var(--r); background: var(--white); margin-bottom: 12px; }
.fold summary { padding: 16px 20px; cursor: pointer; font: 700 1.05rem/1.2 var(--font-display); list-style: none; display: flex; justify-content: space-between; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: '+'; font-size: 1.4rem; line-height: .8; }
.fold[open] summary::after { content: '−'; }
.fold p { margin: 0; padding: 0 20px 18px; }
.fold .fold-body { padding: 0 20px 18px; margin: 0; }
.fold .fold-body p { padding: 0; margin: 0 0 10px; }
.fold .fold-body p:last-child { margin-bottom: 0; }
.care-list { padding-left: 40px !important; display: grid; gap: 6px; }
.care-list li::marker { color: var(--pink); }
.len-guide { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.len-guide li { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--paper); }
.len-guide li.is-this { background: var(--lemon); box-shadow: inset 0 0 0 2px var(--ink); }
.len-guide b { white-space: nowrap; }

/* пакетики-сюрпризы «Не девичьи секреты» */
.surprise { margin: 0 0 22px; padding: 18px; border: var(--line); border-radius: var(--r); background: var(--pink); color: var(--white); box-shadow: var(--shadow); }
.surprise-title { font: 800 1.15rem/1.2 var(--font-display); margin: 0 0 12px; }
.surprise-items { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.surprise-item { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 14px; background: var(--white); color: var(--ink); font-weight: 700; font-size: .95rem; line-height: 1.25; }
.surprise-item::before { content: '?'; flex: none; width: 26px; height: 26px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; font: 800 .85rem var(--font-display); }
.surprise-item--0::before { background: var(--lemon); }
.surprise-item--1::before { background: var(--teal); }
.surprise-item--2::before { background: var(--lilac); }
.surprise-item--3::before { background: var(--tangerine); }
.surprise-bonus { margin: 0 0 4px; font-weight: 700; }
.surprise-note { margin: 0; opacity: .9; font-size: .95rem; }
.badge--surprise { background: var(--pink); color: var(--white); }
@media (max-width: 360px) { .surprise-items { grid-template-columns: 1fr; } }

.promo { display: grid; grid-template-columns: minmax(0, 320px) 1fr; gap: clamp(18px, 4vw, 48px); align-items: center; padding: clamp(16px, 3vw, 32px); border: var(--line); border-radius: var(--r-lg); background: var(--pink); color: var(--white); text-decoration: none; box-shadow: var(--shadow-lg); transition: transform .15s ease, box-shadow .15s ease; }
.promo:hover { transform: translate(-3px, -3px); }
.promo-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: var(--line); border-radius: var(--r); transform: rotate(-3deg); background: var(--white); }
.promo-kicker { display: inline-block; margin: 0 0 12px; padding: 4px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--lemon); color: var(--ink); font-weight: 700; font-size: .85rem; }
.promo-title { font: 900 clamp(1.8rem, 5vw, 3.4rem)/1.02 var(--font-display); letter-spacing: -0.02em; margin: 0 0 12px; }
.promo-text { margin: 0 0 20px; font-size: 1.08rem; max-width: 44ch; }
.btn--lemon { background: var(--lemon); color: var(--ink); }
@media (max-width: 640px) {
  .promo { grid-template-columns: 1fr; }
  .promo-img { max-width: 240px; justify-self: center; }
  .promo-btn { width: 100%; }
}

/* подарочная открытка в корзине */
.field.gift { padding: 14px 16px; border: var(--line); border-radius: var(--r-sm); background: #FFF0F8; }
.field .gift-check { position: relative; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; margin: 0; font-weight: 400; }
.gift-check input { position: absolute; opacity: 0; width: 1px !important; height: 1px; padding: 0 !important; }
.gift-box { flex: none; width: 26px; height: 26px; border: var(--line); border-radius: 8px; background: var(--white); display: grid; place-items: center; margin-top: 1px; }
.gift-check input:checked + .gift-box { background: var(--pink); }
.gift-check input:checked + .gift-box::after { content: ''; width: 7px; height: 12px; border: solid var(--white); border-width: 0 3px 3px 0; transform: translateY(-1px) rotate(45deg); }
.gift-check input:focus-visible + .gift-box { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.gift-price { display: inline-block; margin-left: 4px; padding: 0 8px; border-radius: 999px; background: var(--lemon); font-weight: 700; font-size: .85rem; white-space: nowrap; }
.gift-body { margin-top: 14px; }
.gift-body textarea { background: var(--white); }
.field .gift-body label { margin-bottom: 8px; }
.gift-meta { display: flex; justify-content: space-between; gap: 10px; margin: 6px 0 0; }

/* блок «Сорока в Instagram» на главной */
.ig-head { align-items: flex-end; }
.ig-sub { margin: 6px 0 0; color: var(--ink-soft); font-weight: 600; }
.ig-sub a { color: var(--ink); text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ig-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.ig-tile { position: relative; display: block; aspect-ratio: 1 / 1; border: var(--line); border-radius: var(--r); overflow: hidden; background: var(--white); box-shadow: var(--shadow); transition: transform .12s ease, box-shadow .12s ease; }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; }
.ig-tile:hover { transform: translate(-3px, -3px) rotate(-1deg); box-shadow: var(--shadow-lg); }
.ig-kind { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(27, 16, 53, .6); color: var(--white); }
.ig-kind svg { width: 16px; height: 16px; }
html.tg .ig-section { display: none; }
@media (max-width: 900px) { .ig-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } }
@media (max-width: 640px) {
  .ig-head { flex-wrap: wrap; }
  .ig-follow { width: 100%; order: 3; }
}

/* доставка в корзине: цена у каждого способа, итог, подсказка про бесплатную доставку */
.radios .radio--ship span { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; grid-template-areas: "dot name price" "dot note price"; column-gap: 12px; row-gap: 1px; align-items: center; }
.radios .radio--ship span::before { grid-area: dot; }
.radio--ship b { grid-area: name; font-weight: 700; }
.radio--ship .ship-note { grid-area: note; font-weight: 500; color: var(--ink-soft); font-size: .85rem; }
.radio--ship .ship-price { grid-area: price; justify-self: end; padding: 2px 8px; border-radius: 999px; background: var(--white); border: 2px solid var(--ink); font-weight: 700; font-size: .82rem; white-space: nowrap; }
.radio--ship .ship-price:empty { display: none; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 12px; }
.field-row .field { margin-bottom: 18px; }
.zip-hint { margin: -8px 0 18px; }
.totals .totals-sum { margin-top: 6px; padding-top: 10px; border-top: 2px solid var(--ink); }
.totals .totals-sum dd { font-size: 1.35rem; }
.free-hint { margin: 10px 0 0; padding: 10px 14px; border: 2px dashed var(--ink); border-radius: var(--r-sm); background: var(--white); font-weight: 700; }
.free-hint.is-ok { border-style: solid; background: var(--teal); }
@media (max-width: 400px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .radios .radio--ship span { grid-template-areas: "dot name name" "dot note price"; }
}

/* шапка: поиск и избранное */
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border: var(--line); border-radius: 50%; background: var(--white); color: var(--ink); cursor: pointer; padding: 0; font: inherit; }
.icon-btn:hover { background: var(--lemon); }
.icon-btn svg { width: 20px; height: 20px; }
/* сердечко в шапке: белое, пока избранного нет; розовое, как только что-то отмечено */
.fav-link svg path { fill: var(--white); stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; transition: fill .2s ease, stroke .2s ease; }
.fav-link.has-fav svg path { fill: var(--pink); stroke: var(--pink); }
.fav-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 999px; background: var(--lemon); color: var(--ink); font: 800 .7rem/1 var(--font-display); }

.header-search { border-top: 2px solid var(--ink); background: var(--paper); padding: 12px 0; }
.header-search-row { display: flex; gap: 8px; align-items: center; }
.header-search input { flex: 1; min-width: 0; padding: 11px 16px; border: var(--line); border-radius: 999px; background: var(--white); font: inherit; }
.header-search input:focus { outline: none; box-shadow: 4px 4px 0 var(--pink); }
.header-search .btn { flex: none; }
.icon-btn[aria-expanded="true"] { background: var(--lemon); }
@media (max-width: 400px) { .header-search .btn { padding-inline: 14px; } }

/* сердечко на карточке и в товаре */
.card { position: relative; }
.card .badges { right: 56px; } /* метки не заезжают под сердечко */
.fav-btn { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: rgba(255, 255, 255, .92); cursor: pointer; padding: 0; }
.fav-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2.2; }
.fav-btn[aria-pressed="true"] svg { fill: var(--pink); stroke: var(--pink); }
.fav-btn:hover { background: var(--white); transform: scale(1.06); }
.fav-btn.pop svg { animation: fav-pop .35s ease; }
@keyframes fav-pop { 50% { transform: scale(1.35); } }
.fav-btn--inline { position: static; height: auto; display: flex; width: fit-content; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; font-weight: 700; margin: 16px 0 0; }
.fav-btn--inline:hover { transform: none; background: var(--lemon); }
.fav-btn--inline + .product-price { margin-top: 20px; } /* одинаковый отступ над и под кнопкой */

/* поиск в каталоге */
.search-form { display: flex; gap: 8px; margin-bottom: 18px; max-width: 560px; }
.search-form input { flex: 1; min-width: 0; padding: 12px 16px; border: var(--line); border-radius: 999px; background: var(--white); font: inherit; }
.search-form input:focus { outline: none; box-shadow: 4px 4px 0 var(--pink); }
.search-form .btn { flex: none; }
.search-result { margin: -6px 0 14px; }
@media (max-width: 400px) {
  .main-nav { display: none; } /* на узком телефоне в каталог ведут логотип, поиск и меню внизу страницы */
  .header-tools { gap: 8px; }
  .icon-btn { width: 40px; height: 40px; }
}

/* промокод в корзине */
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .04em; }
.code-row input[readonly] { background: #DFFBF5; }
.code-row .btn { flex: none; padding: 10px 16px; min-height: 0; border: var(--line); border-radius: var(--r-sm); background: var(--white); color: var(--ink); font-weight: 700; box-shadow: none; }
.code-msg { margin: 6px 0 0; font-weight: 700; font-size: .9rem; color: #B4005A; }
.code-msg.is-ok { color: #00806F; }

/* отзывы */
.reviews { columns: 3 280px; column-gap: 16px; }
.review { break-inside: avoid; margin: 0 0 16px; padding: 18px; border: var(--line); border-radius: var(--r); background: var(--white); box-shadow: var(--shadow); }
.review:nth-child(3n+2) { background: #FFF0F8; }
.review:nth-child(3n) { background: #FFFBE0; }
.review-photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: 2px solid var(--ink); border-radius: var(--r-sm); margin-bottom: 12px; }
.review-text { margin: 0 0 12px; font-size: 1.02rem; line-height: 1.55; white-space: pre-line; }
.review-text::before { content: '«'; } .review-text::after { content: '»'; }
.review-author { font-size: .92rem; color: var(--ink-soft); }
.review-author b { color: var(--ink); }
.review-author a { color: inherit; text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* индивидуальный заказ */
.custom-lead { font-size: 1.1rem; max-width: 60ch; margin: 0; }
.custom-wrap { max-width: 720px; }
.checkout.custom-form { position: static; }
.custom-form .field-label { display: block; font-weight: 700; margin-bottom: 8px; }
.type-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.type-chip { position: relative; margin: 0 !important; }
.type-chip input { position: absolute; opacity: 0; width: 1px !important; height: 1px; padding: 0 !important; }
.type-chip span { display: block; padding: 8px 14px; border: var(--line); border-radius: 999px; font-weight: 700; cursor: pointer; background: var(--white); }
.type-chip input:checked + span { background: var(--ink); color: var(--white); }
.type-chip input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.seg--wrap { flex-wrap: wrap; border-radius: var(--r-sm); }
.seg--wrap label { flex: 1 1 45%; }
.field-row--even { grid-template-columns: 1fr 1fr; }
.photo-drop { position: relative; display: block; padding: 18px; border: 3px dashed var(--ink); border-radius: var(--r-sm); background: var(--paper); text-align: center; cursor: pointer; font-weight: 600; margin: 0 !important; }
.photo-drop:hover, .photo-drop:focus-within { background: #FFF0F8; }
.photo-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100% !important; }
.photo-previews { list-style: none; margin: 10px 0 0; padding: 0; display: flex; gap: 8px; }
.photo-previews:empty { display: none; }
.photo-previews img { width: 80px; height: 80px; object-fit: cover; border: 2px solid var(--ink); border-radius: 12px; }
.custom-cta { display: grid; grid-template-columns: auto 1fr auto; gap: 18px 24px; align-items: center; padding: clamp(18px, 3vw, 28px); border: var(--line); border-radius: var(--r-lg); background: var(--lilac); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .15s ease; }
.custom-cta:hover { transform: translate(-3px, -3px); }
.custom-cta-bird { width: 64px; height: 57px; color: var(--ink); }
.custom-cta-body { display: grid; gap: 4px; }
.custom-cta-title { font: 800 clamp(1.2rem, 2.6vw, 1.6rem)/1.15 var(--font-display); }
@media (max-width: 640px) {
  .custom-cta { grid-template-columns: auto 1fr; }
  .custom-cta-btn { grid-column: 1 / -1; width: 100%; }
  .field-row--even { grid-template-columns: 1fr; gap: 0; }
}

/* «Хочу похожее» */
.wish { margin: -12px 0 24px; }
.wish--sold { margin-top: 0; padding: clamp(18px, 3vw, 26px); border: var(--line); border-radius: var(--r); background: var(--white); box-shadow: var(--shadow); }
.wish--sold .h3 { margin: 0 0 8px; }
.wish--sold > p { margin: 0 0 16px; }
.wish-toggle { padding: 10px 0; font-size: 1rem; color: var(--ink); text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.wish:not(.wish--sold) .wish-form { margin-top: 8px; padding: 18px; border: var(--line); border-radius: var(--r); background: var(--white); }
.wish-form > p:first-child { margin: 0 0 14px; }
.wish-form .field input[aria-invalid="true"] { border-color: #D6005F; background: #FFE6F1; }
.wish-form .small { margin: 10px 0 0; }
.wish-done { margin: 0; padding: 14px 18px; border: var(--line); border-radius: var(--r); background: var(--lemon); font-weight: 700; }
.wish--sold .wish-done { margin-top: 4px; }
.badge--sold { background: var(--ink); color: var(--white); }
.card--sold .card-media img { filter: saturate(.55) brightness(.97); }
.card--sold .card-price { color: var(--ink-soft); }

/* ---------- Корзина ---------- */
.cart-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.cart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; align-items: center; padding: 12px; border: var(--line); border-radius: var(--r); background: var(--white); }
.cart-item img { width: 88px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; border: 2px solid var(--ink); }
.cart-item h3 { margin: 0 0 4px; font: 600 1rem/1.3 var(--font-body); }
.cart-item h3 a { text-decoration: none; }
.cart-item .card-price { font-size: .95rem; }
.cart-item .qty button { width: 34px; height: 34px; font-size: 1.1rem; }
.cart-item .qty output { min-width: 24px; font-size: 1rem; }
.cart-side { display: grid; justify-items: end; gap: 8px; }
.link-btn { border: 0; background: none; padding: 4px; font-size: .9rem; font-weight: 600; text-decoration: underline; cursor: pointer; color: var(--ink-soft); }
.cart-warn { color: #B4005A; font-weight: 700; font-size: .9rem; margin: 2px 0 0; }
.totals { margin: 22px 0 0; padding: 18px 20px; border: var(--line); border-radius: var(--r); background: var(--lemon); }
.totals div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.totals dt { font-weight: 700; }
.totals dd { margin: 0; font: 800 1.1rem var(--font-display); text-align: right; }
.totals dd.muted { font: 500 .95rem var(--font-body); }

.checkout { padding: clamp(20px, 3vw, 32px); border: var(--line); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow-lg); position: sticky; top: 94px; }
.field input, .field textarea, .field legend { scroll-margin-top: 110px; }
.field { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 8px; padding: 0; }
.field input, .field textarea { width: 100%; padding: 13px 16px; border: var(--line); border-radius: var(--r-sm); background: var(--paper); }
.field input:focus, .field textarea:focus { outline: none; background: var(--white); box-shadow: 4px 4px 0 var(--pink); }
.field input[aria-invalid="true"] { border-color: #D6005F; background: #FFE6F1; }
.field .err { color: #B4005A; font-weight: 700; font-size: .9rem; margin: 6px 0 0; }
.seg { display: flex; border: var(--line); border-radius: 999px; overflow: hidden; }
.seg label { flex: 1; margin: 0; }
.seg label, .radio { position: relative; }
.seg input, .radio input { position: absolute; opacity: 0; pointer-events: none; width: 1px !important; height: 1px; padding: 0 !important; margin: 0; }
.seg span { display: block; padding: 11px 8px; text-align: center; font-weight: 700; font-size: .95rem; cursor: pointer; }
.seg label + label span { border-left: 2px solid var(--ink); }
.seg input:checked + span { background: var(--ink); color: var(--white); }
.seg input:focus-visible + span, .radio input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: -5px; }
.radios { display: grid; gap: 8px; }
.radio span { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: var(--line); border-radius: var(--r-sm); cursor: pointer; font-weight: 600; }
.radio span::before { content: ''; flex: none; width: 18px; height: 18px; border: 3px solid var(--ink); border-radius: 50%; background: var(--white); }
.radio input:checked + span { background: var(--lemon); }
.radio input:checked + span::before { background: var(--ink); box-shadow: inset 0 0 0 3px var(--white); }
.form-error { padding: 12px 14px; border-radius: var(--r-sm); background: #FFE6F1; border: 2px solid #D6005F; font-weight: 600; }

.done { text-align: center; padding: 40px 20px 0; }
.done p { max-width: 44ch; margin: 0 auto 26px; font-size: 1.15rem; }
.done-bird { width: 170px; height: 151px; margin: 0 auto 22px; filter: drop-shadow(5px 5px 0 var(--pink)); }

/* ---------- Подвал ---------- */
.site-footer { background: var(--ink); color: var(--white); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.logo--light .magpie { color: var(--white); }
.footer-about { color: #DCD3F2; max-width: 36ch; }
.footer-h { font: 700 1rem var(--font-display); margin: 0 0 12px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.footer-links li { padding-block: 4px; }
.footer-links a { display: inline-block; padding-block: 8px; text-decoration: none; color: #DCD3F2; }
.footer-links a:hover { color: var(--lemon); }
.footer-base { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-block: 28px; margin-top: 40px; border-top: 1px solid #3A2F57; color: #A99CC8; font-size: .9rem; }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.footer-base a { color: inherit; text-decoration: none; display: inline-block; padding-block: 6px; margin-block: -6px; }
.footer-base a:hover { color: var(--lemon); text-decoration: underline; }

/* текстовые страницы: политика, доставка */
.prose-head { max-width: 760px; }
.prose-head .h1 { font-size: clamp(1.6rem, 6vw, 3.2rem); margin-bottom: 8px; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.prose { max-width: 760px; font-size: 1.05rem; line-height: 1.65; padding-bottom: clamp(40px, 6vw, 72px); }
.prose h2 { font: 800 clamp(1.2rem, 2.6vw, 1.5rem)/1.2 var(--font-display); margin: 2em 0 .6em; }
.prose p, .prose ul { margin: 0 0 1em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--pink); }
.prose a { text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.field-note { margin: 8px 0 0; }
.prose h3 { font: 800 1.05rem/1.25 var(--font-display); margin: 0 0 4px; }
.prose .steps { list-style: none; counter-reset: step; padding: 0 !important; display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 1.5em !important; }
.prose .steps li { counter-increment: step; position: relative; padding: 14px 16px 14px 60px; background: var(--white); border: var(--line); border-radius: 18px; margin: 0; }
.prose .steps li::before { content: counter(step); position: absolute; left: 14px; top: 12px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--pink); color: var(--white); font: 800 1rem var(--font-display); }
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; margin-bottom: 1em; }
.way { padding: 16px; background: var(--white); border: var(--line); border-radius: 18px; }
.way p { margin: 0; font-size: .97rem; }
.way .way-price { display: inline-block; margin: 2px 0 8px; padding: 2px 10px; border-radius: 999px; background: var(--lemon); font-weight: 700; font-size: .85rem; }
.prose code { font-size: .9em; background: var(--white); border: 1.5px solid var(--ink); border-radius: 6px; padding: 0 5px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translateX(-50%); padding: 12px 20px; border: var(--line); border-radius: 999px; background: var(--lemon); font-weight: 700; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }
.toast a { margin-left: 10px; }

/* ---------- Telegram Web App ---------- */
html.tg .lang-switch, html.tg .lang-menu, html.tg .site-footer, html.tg .follow { display: none; }
html.tg .cart-label { display: none; }
html.tg .checkout [data-submit] { display: none; } /* в Telegram заказ отправляет нижняя кнопка MainButton */
html.tg main { padding-bottom: 40px; }

/* ---------- Адаптив ---------- */
/* вырезы экрана iPhone */
.wrap { padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
.toast { bottom: max(24px, calc(env(safe-area-inset-bottom) + 12px)); }

@media (min-width: 1600px) {
  :root { --maxw: 1400px; }
  body { font-size: 1.125rem; }
}
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .collections { grid-template-columns: 1fr 1fr; }
  .collections > :last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 0; }
}
@media (max-width: 900px) {
  .cart-label { display: none; } /* в шапке появились поиск и избранное — на планшете корзина значком */
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-copy { padding-bottom: 8px; }
  .hero-title { max-width: 14ch; }
  .hoard { height: clamp(280px, 70vw, 480px); max-width: 600px; width: 100%; margin-inline: auto; }
  .wordmark { margin-top: 12px; }
  .wordmark-bird { --bw: clamp(84px, 19vw, 160px); }
  .product-grid, .cart-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery, .checkout { position: static; }
  .gallery { max-width: 560px; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .lang-switch { display: none; }
  .lang-menu { display: block; }
  .cart-label { display: none; }
  .cart-btn { padding: 8px 10px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cat-tile { min-height: 120px; padding: 16px 18px; border-radius: 24px; }
}
@media (max-width: 640px) {
  :root { --shadow: 4px 4px 0 var(--ink); --shadow-lg: 6px 6px 0 var(--ink); }
  body { font-size: 1rem; }
  .header-row { gap: 8px; min-height: 60px; }
  .logo-word { font-size: 1.1rem; }
  .logo-bird { width: 42px; height: 37px; }
  .main-nav { margin-left: 2px; }
  .main-nav a { padding: 6px 12px; }
  .header-tools { gap: 8px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-text { font-size: 1.05rem; margin: 16px 0 22px; }
  .sticker a { padding: 5px; border-radius: 16px; }
  .sticker img { border-radius: 11px; }
  .sticker-price { display: none; } /* на телефоне ценники перекрываются соседними наклейками */
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); }
  .chips::-webkit-scrollbar { display: none; }
  .chip { scroll-snap-align: start; padding: 8px 14px; }
  .chips.fade-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
  .chips.fade-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px); mask-image: linear-gradient(90deg, transparent, #000 48px); }
  .chips.fade-l.fade-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
  .collections { grid-template-columns: 1fr; }
  .collection { min-height: 0; padding: 22px; }
  .card-media { border-radius: 18px; }
  .card-name { font-size: .92rem; margin-top: 10px; }
  .card-price { font-size: .92rem; }
  .card-price small { font-size: .75rem; }
  .badges { top: 8px; left: 8px; gap: 4px; }
  .badge { font-size: .7rem; padding: 2px 8px; }
  .add-mini { width: 38px; height: 38px; }
  .product-price { margin: 14px 0; }
  .buy { gap: 10px; }
  .buy .btn { flex-basis: 180px; }
  .specs div { grid-template-columns: 110px 1fr; }
  .cart-item { grid-template-columns: 70px 1fr; }
  .cart-item img { width: 70px; }
  .cart-side { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; align-items: center; }
  .follow { box-shadow: 6px 6px 0 var(--teal); }
  .follow .btn { width: 100%; }
  .footer-grid { gap: 24px; }
}
@media (max-width: 400px) {
  .logo-word { display: none; }
  .logo-bird { width: 46px; height: 41px; }
  .cat-name { font-size: clamp(.95rem, 4.6vw, 1.15rem); }
  .cat-tile { min-height: 104px; padding: 14px; }
  .card .badges .badge:nth-child(n+3) { display: none; } /* на узких карточках не больше двух меток */
}
@media (max-width: 350px) {
  :root { --gutter: 12px; }
  .grid { gap: 12px 10px; }
  .card-foot { flex-wrap: wrap; gap: 6px; }
  .main-nav a { padding: 6px 10px; font-size: .95rem; }
  .qty button { width: 44px; height: 44px; }
}
/* на сенсорных экранах не «подпрыгиваем» от касания */
@media (hover: none) {
  .btn:hover, .cat-tile:hover, .collection:hover, .card-link:hover .card-media { transform: none; }
  .card-link:hover .card-media { box-shadow: none; }
  .cat-tile:hover, .collection:hover, .btn:hover { box-shadow: var(--shadow); }
  .btn--ink:hover { box-shadow: 5px 5px 0 var(--pink); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* шапка с поиском и избранным: слово «Каталог» прячем до 520 px (раньше — до 400, но на 401–519 px не помещалось) */
@media (max-width: 520px) { .main-nav { display: none; } .header-tools { gap: 8px; } }
@media (max-width: 440px) { .logo-word { display: none; } }
