/* Nunito лежит на сайте (fonts/), лицензия OFL — fonts/OFL.txt */
@font-face { font-family: Nunito; font-style: normal; font-weight: 200 1000; font-display: swap; src: url(fonts/nunito-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Nunito; font-style: normal; font-weight: 200 1000; font-display: swap; src: url(fonts/nunito-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #FEF5EC;
  --bg-tint: #FBEADD;
  --card: #FFFBF6;
  --ink: #43342F;
  --ink-soft: #7A6A63;
  --nectar: #D7897F;
  --nectar-deep: #B5564B;
  --peach: #F9B95C;
  --mint: #96C7B3;
  --mint-soft: #DDEFE6;
  --blue: #6398A9;
  --blue-deep: #3E7587;
  --line: #EFDCCB;
  --r: 28px;
  --shadow: 0 10px 30px rgba(120, 80, 60, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 17px/1.5 Nunito, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 900; text-wrap: balance; }
h1 { font-size: clamp(34px, 5.2vw, 60px); letter-spacing: -.02em; }
h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -.01em; }
h3 { font-size: 21px; font-weight: 800; }
p { margin: 0; }
svg { width: 1.15em; height: 1.15em; flex: none; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; margin-top: 36px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 12px 26px; border-radius: 999px; border: 2px solid transparent;
  font: 800 17px/1.1 inherit; font-family: inherit; text-decoration: none; white-space: nowrap;
  transition: background .15s;
}
.btn:focus-visible, a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 3px; }
.btn--sm { min-height: 44px; padding: 8px 18px; font-size: 16px; }
.btn--call { background: var(--nectar-deep); color: #fff; box-shadow: 0 8px 20px rgba(181, 86, 75, .28); }
.btn--call:hover { background: #A2493F; }
.btn--blue { background: var(--blue-deep); color: #fff; }
.btn--ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn--outline { width: 100%; background: transparent; border-color: var(--blue); color: var(--blue-deep); min-height: 48px; font-size: 16px; padding-inline: 14px; }
.btn--outline:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.link-call { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--nectar-deep); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }

/* Шапка */
.header { position: sticky; top: 0; z-index: 50; background: rgba(254, 245, 236, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header__row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 52px; height: auto; }
.logo__text { font-weight: 800; font-size: 28px; line-height: 1; color: var(--nectar); }
.logo__text small { display: block; margin-top: 4px; font-size: 10.5px; font-weight: 800; color: var(--blue-deep); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.nav { display: flex; gap: 22px; margin-inline: auto; }
.nav a { text-decoration: none; font-weight: 700; padding: 8px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover { border-color: var(--nectar); }
.header__call { display: flex; align-items: center; gap: 14px; }
.header__phone { font-weight: 900; font-size: 18px; text-decoration: none; white-space: nowrap; }
.burger { display: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: var(--mint-soft); cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; margin: 4px auto; border-radius: 2px; background: var(--ink); }

/* Первый экран */
.hero { position: relative; overflow: hidden; padding: 38px 0 40px; }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 36px; align-items: center; }
.hero__text { min-width: 0; }
/* H1 первого экрана: строка «Детский магазин · станица Ленинградская» и название входят в один заголовок */
.hero__title { font-size: inherit; font-weight: inherit; line-height: inherit; letter-spacing: normal; text-wrap: wrap; }
.hero__title .eyebrow { display: block; }
.hero__brand { display: block; font-size: clamp(58px, 6vw, 82px); font-weight: 900; line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.hero__slogan { max-width: 14em; margin-top: 12px; color: var(--nectar-deep); font-size: clamp(28px, 3.1vw, 39px); font-weight: 900; line-height: 1.12; text-wrap: balance; }
.eyebrow { margin-bottom: 14px; font-weight: 800; font-size: 15px; color: var(--blue-deep); }
.lead { margin-top: 18px; font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-soft); max-width: 30em; }
.hero__text .lead { max-width: 28em; font-size: clamp(18px, 1.5vw, 20px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero__address { margin-top: 16px; color: var(--ink-soft); font-size: 14px; font-weight: 700; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 26px 0 0; padding: 0; list-style: none; font-weight: 700; }
.hero__facts li { display: flex; align-items: center; gap: 8px; }
.hero__facts svg { color: var(--blue-deep); }
.hero__video { margin-right: -24px; }
.hero__video video { display: block; width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%), linear-gradient(to bottom, transparent, #000 7%, #000 90%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 9%), linear-gradient(to bottom, transparent, #000 7%, #000 90%, transparent);
  mask-composite: intersect; }
.hero__cards { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.photo-card { position: relative; display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; box-shadow: var(--shadow); text-decoration: none; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.photo-card:hover img { transform: scale(1.05); }
.photo-card__label { position: absolute; left: 22px; top: 22px; gap: 14px; display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; border-radius: 999px; background: rgba(255, 251, 246, .94); font-weight: 900; font-size: 24px; }

/* Секции */
.section { position: relative; padding: 72px 0; }
.section--tint { background: var(--bg-tint); border-radius: 56px; }
.section__head { position: relative; max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section__head p { margin-top: 12px; font-size: 19px; color: var(--ink-soft); }
.note { margin-top: 26px; text-align: center; font-size: 15px; color: var(--ink-soft); }

/* Карточки */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { display: flex; flex-direction: column; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.card__img img { width: 100%; aspect-ratio: 506 / 430; object-fit: cover; }
.card--blog .card__img img { aspect-ratio: 16 / 10; }
.card--arch { background: transparent; box-shadow: none; overflow: visible; width: 100%; max-width: 330px; margin-inline: auto; }
.card--arch .card__img img { aspect-ratio: 370 / 420; }
.card--arch .card__body { margin-top: -4px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); position: relative; }
.card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; flex: 1; padding: 22px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #FDE6BF; color: #7A4E0B; font-weight: 800; font-size: 14px; }
.props { margin: 0 0 6px; padding: 0; list-style: none; color: var(--ink-soft); font-size: 16px; }
.props li { position: relative; padding-left: 18px; margin-top: 4px; }
.props li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.card__body .btn { margin-top: auto; }

/* Как выбрать */
.guide__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.guide__photos { position: relative; padding-bottom: 40px; }
.guide__main { width: 92%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 46% 54% 50% 50% / 42% 44% 56% 58%; }
.guide__small { position: absolute; right: 0; bottom: 0; width: 36%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 8px solid var(--bg-tint); }
.guide__text > p { margin-top: 12px; font-size: 19px; color: var(--ink-soft); }
.tips { margin: 24px 0 30px; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 16px; }
.tips li { counter-increment: s; position: relative; padding-left: 52px; }
.tips li::before { content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--peach); font-weight: 900; }
.tips li:nth-child(2)::before { background: var(--mint); }
.tips li:nth-child(3)::before { background: #A9CAD5; }

/* Игрушки и одежда */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.duo__item { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.duo__item p { color: var(--ink-soft); }
.duo__pics { display: grid; gap: 10px; width: 100%; margin-bottom: 8px; }
.duo__pics img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.duo__pics--toys { grid-template-columns: 2.4fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 2.35; }
.duo__pics--toys img:first-child { grid-row: span 2; }
.duo__pics--cloth { grid-template-columns: repeat(4, 1fr); aspect-ratio: 2.35; }

/* Как заказать */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.step { position: relative; padding: 28px 24px 26px; border-radius: var(--r); }
.step--peach { background: #FDE6BF; }
.step--mint { background: var(--mint-soft); }
.step--blue { background: #D5E6EC; }
.step__n { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 50%; background: #fff; font-weight: 900; font-size: 20px; }
.step p { margin-top: 8px; color: #5E4E47; }

/* Вопросы */
.faq { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start; }
.faq__head p { margin: 12px 0 18px; font-size: 19px; color: var(--ink-soft); }
.faq__list { display: grid; gap: 12px; }
details { border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 800; font-size: 18px; cursor: pointer; list-style: none; border-radius: 22px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--mint-soft); font-size: 22px; line-height: 1; transition: rotate .2s; }
details[open] summary::after { rotate: 45deg; }
details p { padding: 0 22px 20px; color: var(--ink-soft); }

/* Контакты */
.contacts { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; }
.contacts__info { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding: 30px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.contacts__row { display: flex; gap: 16px; align-items: center; font-size: 18px; }
.contacts__phone { display: block; font-weight: 900; font-size: 24px; text-decoration: none; line-height: 1.35; }
.ico { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; font-size: 20px; }
.ico--call { background: #F6D5CF; color: var(--nectar-deep); }
.ico--mint { background: var(--mint-soft); color: #3F7B63; }
.ico--peach { background: #FDE6BF; color: #8A5A10; }
.contacts__info .btn { margin-top: auto; }
.contacts__map { min-height: 380px; border-radius: var(--r); overflow: hidden; background: var(--mint-soft); box-shadow: var(--shadow); }
.contacts__map iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; }

/* Подвал и нижняя панель */
.footer { padding: 28px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-soft); }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer a { font-weight: 800; text-decoration: none; white-space: nowrap; }
.callbar { display: none; }


@media (max-width: 1100px) {
  .header__phone { display: none; }
  .nav { gap: 16px; font-size: 16px; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 70px; }
  body { padding-bottom: 78px; }
  .header__row { min-height: 60px; gap: 10px; }
  .logo__mark { width: 42px; }
  .logo__text { font-size: 22px; }
  .logo__text small { font-size: 8px; letter-spacing: .08em; }
  .logo { gap: 8px; }
  .header__call { margin-left: auto; }
  .burger { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; gap: 0; margin: 0; padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(120, 80, 60, .12); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; font-size: 18px; border-bottom: 1px solid var(--line); }
  .hero { padding: 24px 0 28px; }
  .hero__grid, .guide__grid, .faq, .contacts, .duo { grid-template-columns: 1fr; gap: 24px; }
  .hero__brand { font-size: clamp(52px, 9vw, 74px); }
  .hero__slogan { font-size: clamp(27px, 5.2vw, 37px); }
  .hero__actions .btn { flex: 1 1 100%; }
  .photo-card { border-radius: 22px; }
  .hero__cards { grid-template-columns: 1fr; }
  .hero__video { order: 1; margin: 0 -16px; }
  .hero__video video { aspect-ratio: 740 / 540; object-fit: cover; object-position: 50% 60%; }
  .hero__cards { gap: 12px; margin-top: 20px; }
  .photo-card__label { left: 12px; top: 12px; padding: 8px 16px; font-size: 17px; }
  .section { padding: 52px 0; }
  .section--tint { border-radius: 36px; }
  .section__head { margin-bottom: 28px; }
  .cards, .steps { grid-template-columns: 1fr; gap: 20px; }
  .guide__photos { order: 2; }
  .duo__pics--cloth { grid-template-columns: repeat(2, 1fr); aspect-ratio: auto; }
  .duo__pics--cloth img { aspect-ratio: 1; }
  .contacts__info { padding: 22px; }
  .contacts__phone { font-size: 22px; }
  .contacts__info .btn { width: 100%; }
  .contacts__map, .contacts__map iframe { min-height: 320px; }
  .callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(254, 245, 236, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .callbar .btn { min-height: 52px; padding-inline: 10px; font-size: 16px; }
}

@media (max-width: 380px) {
  .btn { white-space: normal; text-align: center; padding-inline: 16px; font-size: 16px; }
  .callbar .btn { font-size: 15px; }
  .header__call .btn span { display: none; }
  .header__call .btn { width: 44px; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .photo-card img { transition: none; }
}

/* Каталог */
.catalog { padding: 40px 0 72px; }
.catalog__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-bottom: 24px; }
.catalog__head h1 { font-size: clamp(32px, 4.4vw, 48px); }
.catalog__notice { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-radius: 22px; background: #FDE6BF; color: #5C3B08; font-weight: 800; }
.catalog__notice svg { color: var(--nectar-deep); }
.catalog__notice a { white-space: nowrap; }
.search { display: flex; align-items: center; gap: 12px; padding: 0 20px; border-radius: 999px; background: #fff; border: 2px solid var(--line); color: var(--ink-soft); }
.search:focus-within { border-color: var(--blue); }
.search input { flex: 1; min-width: 0; height: 54px; border: 0; outline: 0; background: none; font: 700 17px/1 Nunito, system-ui, sans-serif; color: var(--ink); }
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.cat { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--ink); font: 800 16px/1.1 Nunito, system-ui, sans-serif; white-space: nowrap; cursor: pointer; }
.cat span { font-size: 13px; color: var(--ink-soft); }
.cat[aria-selected="true"] { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.cat[aria-selected="true"] span { color: #D5E6EC; }
.catalog__count { margin: 14px 0; font-weight: 700; color: var(--ink-soft); }
.catalog__empty { padding: 40px 0; text-align: center; font-size: 19px; color: var(--ink-soft); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.item { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); }
.item__pic { display: grid; place-items: center; aspect-ratio: 1; padding: 10px; border: 0; border-radius: 16px; background: #fff; cursor: zoom-in; }
.item__pic:disabled { cursor: default; }
.item__pic img { width: 100%; height: 100%; object-fit: contain; }
.item__nopic { font-weight: 700; font-size: 14px; color: var(--ink-soft); }
.item__name { font-size: 16px; font-weight: 800; line-height: 1.3; text-wrap: auto; overflow-wrap: anywhere; }
.item__art { font-size: 14px; color: var(--ink-soft); overflow-wrap: anywhere; }
.item__note { margin-top: auto; padding-top: 4px; font-size: 14px; font-weight: 700; color: #7A4E0B; }
.item .btn { min-height: 44px; }
.nav a[aria-current="page"] { border-color: var(--nectar); }

.zoom { width: min(560px, 100% - 24px); padding: 20px; border: 0; border-radius: 28px; background: var(--card); color: var(--ink); box-shadow: 0 30px 80px rgba(60, 40, 30, .35); }
.zoom::backdrop { background: rgba(67, 52, 47, .55); }
.zoom img { width: 100%; max-height: 52vh; object-fit: contain; border-radius: 18px; background: #fff; }
.zoom h2 { margin-top: 14px; font-size: 20px; line-height: 1.3; overflow-wrap: anywhere; }
.zoom p { margin-top: 6px; color: var(--ink-soft); }
.zoom .zoom__note { font-weight: 800; color: #7A4E0B; }
.zoom__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.zoom__actions .btn { flex: 1 1 200px; }
.zoom__close { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--mint-soft); font-size: 26px; line-height: 1; cursor: pointer; }

/* Ссылки на каталог с главной */
.to-catalog { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 68px; padding: 14px 20px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); font-weight: 800; text-decoration: none; }

@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) {
  .catalog { padding-top: 24px; }
  .catalog__notice { align-items: flex-start; font-size: 16px; }
  .cats { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .cats::-webkit-scrollbar { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .item { padding: 10px; border-radius: 18px; }
  .item__name { font-size: 15px; }
  .item .btn { font-size: 15px; padding-inline: 8px; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tile { min-height: 60px; padding: 12px 14px; font-size: 16px; }
}

/* Посадочные страницы разделов */
.crumbs { margin-bottom: 18px; font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.crumbs a { color: var(--blue-deep); }
.landing__head { max-width: 760px; margin-bottom: 28px; }
.landing__head h1 { font-size: clamp(30px, 4.2vw, 46px); }
.landing__head p { margin-top: 12px; font-size: 18px; color: var(--ink-soft); }
.landing__head .catalog__notice { display: inline-flex; margin-top: 18px; font-size: 17px; color: #5C3B08; }
.catalog__count a { color: var(--blue-deep); font-weight: 800; }
div.item__pic { cursor: default; }
