@import url("../fonts/fonts.css");

/* ---------------------------------------------------------------- переменные */
:root {
  --orange: #ff9900;
  --blue: #1e6c93;
  --blue-dark: #17587a;
  --red: #ff0000;
  --ink: #212121;
  --muted: #5f6368;
  --line: #e2e2e2;
  --grid-bg: #f2f2f2;
  --header-h: 58px;
  --wrap: 1160px;
  --font-head: "Comfortaa", "Segoe UI", Arial, sans-serif;
  --font-body: "Comfortaa", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

/* Атрибут hidden обязан прятать элемент всегда. Без этой строки его
   перебивает любой класс со своим display: на значке состояния заказа
   так и вышло - скрипт ставил hidden, а .badge продолжал его показывать. */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  /* место под полосу прокрутки резервируется всегда,
     иначе на коротких страницах шапка съезжает на несколько пикселей */
  scrollbar-gutter: stable;
}

/* якоря разделов не должны уезжать под прилипшую шапку */
section[id] { scroll-margin-top: calc(var(--header-h) + 6px); }

body {
  margin: 0;
  /* подвал прижат к низу окна, даже когда содержимого мало */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------------- шапка */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  /* шапке нужно больше места, чем контенту: пунктов меню много */
  max-width: 1520px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__logo {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

.brand__name {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .25s ease;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav__item { position: relative; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  white-space: nowrap;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.nav__link:hover { color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--ink); border-bottom-color: var(--orange); }
.nav__chev { transition: transform .2s ease; flex: none; }

/* выпадающий список всех игрушек */
.nav__drop {
  position: absolute;
  top: calc(100% + 10px);
  left: -14px;
  min-width: 430px;
  max-height: min(70vh, 560px);
  overflow-y: auto;
  padding: 10px 6px;
  background: #2b2b2b;
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(0,0,0,.32);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.nav__item--drop:hover .nav__drop,
.nav__item--drop:focus-within .nav__drop { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__item--drop:hover .nav__chev { transform: rotate(180deg); }

.nav__drop::before {           /* мостик, чтобы список не закрывался при переводе мыши */
  content: "";
  position: absolute; left: 0; right: 0; top: -12px; height: 12px;
}

.nav__drop-list {
  list-style: none;
  margin: 0; padding: 0;
  columns: 2;
  column-gap: 6px;
}

.nav__drop-list a {
  display: block;
  padding: 7px 12px;
  font-size: 13.5px;
  line-height: 1.3;
  color: #e6e6e6;
  border-radius: 6px;
  break-inside: avoid;
  transition: background-color .15s ease, color .15s ease;
}
.nav__drop-list a:hover { background: #3c3c3c; color: #fff; }

/* кнопка поиска */
.search-toggle {
  flex: none;
  margin-left: 18px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: none; cursor: pointer;
  color: var(--muted);
  transition: background-color .2s ease, color .2s ease;
}
.search-toggle:hover { background: rgba(0,0,0,.07); color: var(--ink); }

/* панель поиска: карточка, всплывающая под иконкой, а не полоса во всю ширину */
.search {
  position: absolute;
  top: calc(100% + 12px);
  right: max(20px, calc((100vw - 1520px) / 2 + 20px));
  width: min(560px, calc(100vw - 28px));
  padding: 14px;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: 16px;
  box-shadow: 0 26px 60px rgba(28, 18, 8, .28), 0 4px 14px rgba(28, 18, 8, .12);
  animation: search-in .2s ease;
}
.search[hidden] { display: none; }

/* уголок, указывающий на кнопку поиска */
.search::before {
  content: "";
  position: absolute;
  top: -7px; right: 22px;
  width: 13px; height: 13px;
  background: inherit;
  border-left: 1px solid rgba(0, 0, 0, .07);
  border-top: 1px solid rgba(0, 0, 0, .07);
  transform: rotate(45deg);
  border-radius: 3px 0 0 0;
}

@keyframes search-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.search__inner { position: relative; }

.search__box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid #e6e6e6;
  border-radius: 26px;
  background: #f6f6f6;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.search__box:focus-within {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30, 108, 147, .12);
}
.search__icon { color: var(--muted); flex: none; }

.search__input {
  flex: 1;
  border: 0; outline: 0; background: none;
  font: inherit; font-size: 15px;
  color: var(--ink);
  min-width: 0;
}
.search__input::-webkit-search-cancel-button { display: none; }

.search__clear {
  flex: none;
  border: 0; background: none; cursor: pointer;
  font-size: 22px; line-height: 1;
  color: var(--muted);
  padding: 0 2px;
}
.search__clear:hover { color: var(--ink); }

.search__results {
  margin-top: 12px;
  padding-top: 4px;
  max-height: min(58vh, 440px);
  overflow-y: auto;
  border-top: 1px solid #ececec;
}
.search__results::-webkit-scrollbar { width: 8px; }
.search__results::-webkit-scrollbar-thumb {
  background: #d8d8d8; border-radius: 8px; border: 2px solid transparent; background-clip: content-box;
}
.search__results[hidden] { display: none; }

.search__hint {
  padding: 8px 10px 10px;
  margin: 0;
  font-size: 12px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #9a9a9a;
}

.search__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background-color .15s ease;
}
.search__row:hover, .search__row.is-active { background: #f3f7fa; }

.search__thumb {
  width: 46px; height: 46px;
  flex: none;
  border-radius: 8px;
  object-fit: cover;
  background: #eee;
}

.search__text { min-width: 0; }
.search__name, .search__meta { display: block; }
.search__name { font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.search__name mark { background: #ffe9c2; color: inherit; padding: 0 1px; border-radius: 3px; }
.search__meta { font-size: 12.5px; color: var(--muted); }
.search__price { margin-left: auto; flex: none; font-size: 14px; font-weight: 700; }

/* на главной шапка сливается с обложкой, пока страницу не прокрутили */
.site-header--over {
  background: transparent;
  border-bottom-color: transparent;
}
.site-header--over .brand__name,
.site-header--over .nav__link,
.site-header--over .search-toggle { color: #fff; }
.site-header--over .nav__link:hover { color: #fff; }
.site-header--over .search-toggle:hover { background: rgba(255,255,255,.16); color: #fff; }
.site-header--over .nav__link[aria-current="page"] { color: #fff; }
.site-header--over .burger span { background: #fff; }

/* тёмная шапка после прокрутки — как на текущем сайте */
.site-header.is-stuck {
  background: #2b2b2b;
  border-bottom-color: #2b2b2b;
}
.site-header.is-stuck .brand__name,
.site-header.is-stuck .nav__link,
.site-header.is-stuck .search-toggle { color: #f1f1f1; }
.site-header.is-stuck .nav__link:hover,
.site-header.is-stuck .search-toggle:hover { color: #fff; }
.site-header.is-stuck .search-toggle:hover { background: rgba(255,255,255,.12); }
.site-header.is-stuck .burger span { background: #f1f1f1; }

.burger {
  display: none;
  width: 40px; height: 40px;
  margin-left: auto;
  border: 0; background: none; cursor: pointer;
  padding: 10px 8px;
  flex-direction: column;
  justify-content: space-between;
}
.burger span {
  display: block; height: 2px; width: 100%;
  background: var(--muted);
  transition: background-color .25s ease, transform .25s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* --------------------------------------------------------------------- шапка-обложка */
.hero {
  position: relative;
  /* обложка начинается от самого верха, шапка лежит поверх неё */
  padding: calc(var(--header-h) + 18px) 0 34px;
  background-color: #6b4a22;
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(38,26,12,.30) 0%, rgba(38,26,12,.18) 45%, rgba(38,26,12,.34) 100%);
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero__logo {
  /* около 22% высоты экрана, как на текущем сайте. Свой размер, заданный
     при правке обложки, приходит переменной --hero-photo и здесь главнее.
     Долей ширины экрана он всё равно ограничен: круг на 400 px не должен
     вылезать за край телефона. */
  width: var(--hero-photo, clamp(190px, 22vh, 250px));
  max-width: 68vw;
  aspect-ratio: 1;
  height: auto;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
}

.hero__body { min-width: 0; }

.hero__tagline {
  font-family: var(--font-head);
  font-size: clamp(19px, 1.7vw, 26px);
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.15;
}
.hero__tagline small {
  font-size: .53em;
  font-weight: 600;
  letter-spacing: .01em;
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 500;
  line-height: 1.05;
  margin: 0;
}

.hero__subtitle {
  font-family: var(--font-head);
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--orange);
  margin: 0 0 18px;
}

.hero__text p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.65;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .22);
}
.hero__text p:last-child { margin-bottom: 0; }
.hero__text strong { font-weight: 700; }

.hero__call {
  display: inline-block;
  margin: 20px 0 0;
  padding: 12px 20px;
  color: var(--orange);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
  background: rgba(255, 255, 255, .10);
  backdrop-filter: blur(6px);
  border-left: 3px solid var(--orange);
  border-radius: 4px 12px 12px 4px;
}

.hero__call p { margin: 0; }
.hero__call p + p { margin-top: 6px; }

/* ------------------------------------------------------------------ разделы */
.section-head {
  background: #fff;
  padding: 34px 0 26px;
  text-align: center;
}

.section-head h2 {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: .01em;
  margin: 0;
  color: var(--ink);
}

/* у Comfortaa 700 - предел, дальше насыщенность добирается обводкой */
.section-head h2 b {
  font-weight: 700;
  -webkit-text-stroke: 0.7px currentColor;
  paint-order: stroke fill;
}
.section-head p b {
  font-weight: 700;
  -webkit-text-stroke: 0.55px currentColor;
  paint-order: stroke fill;
}

.section-head h2.is-red {
  color: var(--red);
  text-transform: none;
}

.section-head p {
  margin: 12px 0 0;
  font-size: 15.5px;
  font-weight: 400;
  color: var(--muted);
}

.section-head p.is-red {
  color: var(--red);
  font-style: italic;
}

.catalog {
  background: var(--grid-bg);
  padding: 34px 0 40px;
}

/* -------------------------------------------------------------------- сетка */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 46px 30px;
}

.card { display: flex; flex-direction: column; }

.card__media {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
  background: #e6e6e6;
}

.card__media img,
.card__media video {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.card__media:hover img { transform: scale(1.04); }

/* ролик в карточке кликается как ссылка, а не как плеер */
.card__media video { pointer-events: none; }

.card__title {
  flex: 1 0 auto;          /* длинные названия не сбивают ряд: цена и кнопка держат низ */
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  color: var(--ink);
}
.card__title b {
  font-weight: 700;
  /* Comfortaa заканчивается на 700, насыщенность добираем обводкой */
  -webkit-text-stroke: 0.5px currentColor;
  paint-order: stroke fill;
}
.card__title .size { font-weight: 400; -webkit-text-stroke: 0; }
.card__title .note { display: block; font-weight: 400; }

.card__price {
  margin: 8px 0 0;
  flex: none;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
}

.card__buy {
  margin-top: 12px;
  display: block;
  background: var(--blue);
  color: #fff;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  padding: 10px 14px;
  border-radius: 8px;
  transition: background-color .2s ease;
}
.card__buy:hover { background: var(--blue-dark); }

/* ------------------------------------------------------------ страница товара */
.toy {
  margin-top: var(--header-h);
  padding: 26px 0 60px;
}

.crumbs {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 22px;
}
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span { color: var(--ink); }

.toy__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.gallery button {
  border: 0; padding: 0; background: none; cursor: zoom-in;
  display: block;
}
.gallery img { width: 100%; height: auto; border-radius: 10px; }

.gallery__video {
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: #000;
  display: block;
}

.toy__info {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}

.toy__info h1 {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 6px;
}

.toy__meta { margin: 0 0 4px; color: var(--muted); font-size: 15px; }
.toy__note { margin: 10px 0 0; font-size: 15px; }

.toy__price {
  font-size: 28px;
  font-weight: 700;
  margin: 18px 0 4px;
}

.toy__status {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 18px;
}

/* ------------------------------------------------------------ поля форм

   Одна и та же разметка полей стоит и в оформлении заказа, и на странице
   проверки заказа. Стили лежат здесь, а не в файле одной страницы: иначе
   на второй странице те же классы оказывались без оформления. */

.field { display: block; margin-top: 16px; }
.order__block > .field:first-of-type { margin-top: 6px; }

.field__label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
}
.field__label b { color: var(--red); font-weight: 700; }

.field__input {
  width: 100%;
  font: inherit;
  font-size: 16px;               /* меньше 16px - и телефон приближает страницу */
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 13px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field__input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 108, 147, .12);
}
.field__input--area { resize: vertical; min-height: 84px; }

.field__input.is-bad { border-color: var(--red); }
.field__input.is-bad:focus { box-shadow: 0 0 0 3px rgba(255, 0, 0, .1); }

.field__hint {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 5px;
}
.field__hint--wide { margin: 10px 0 0; }

.field__error {
  display: none;
  font-size: 13px;
  color: var(--red);
  margin-top: 5px;
}
.field__error.is-on { display: block; }
.field__error--wide { margin: 10px 0 0; }

.btn {
  display: block;
  width: 100%;
  background: var(--blue);
  color: #fff;
  text-align: center;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .01em;
  border-radius: 10px;
  transition: background-color .2s ease;
}
.btn:hover { background: var(--blue-dark); }
/* знак MAX внутри кнопки: подпирается к тексту, не ломая центрирование */
.btn .icon-max { vertical-align: -4px; margin-right: 8px; }

/* --------------------------------------------------------------- оплата */
.payment { margin-top: var(--header-h); padding: 34px 0 60px; }
.payment h1 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 34px;
  text-align: center;
  margin: 0 0 26px;
}
.payment__cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  max-width: 780px;
  margin: 0 auto;
}
.payment__cards figure {
  margin: 0;
  width: 100%;
  border: 1px solid var(--line);
  padding: 16px;
}
/* height: auto обязателен: у картинок проставлены width и height,
   без него они растягиваются под высоту из атрибута */
.payment__cards img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* на настольном экране оба QR должны помещаться без прокрутки:
   высоту задаём долей экрана, поэтому пропорции сохраняются на любом мониторе */
@media (min-width: 900px) {
  .payment { padding: 24px 0 40px; }
  .payment h1 { font-size: 30px; margin-bottom: 18px; }
  .payment__cards { gap: 22px; }
  .payment__cards figure:nth-child(1) img { max-height: 28vh; }
  .payment__cards figure:nth-child(2) img { max-height: 38vh; }
}

/* ---------------------------------------------------------------- лайтбокс */
.lightbox {
  position: fixed; inset: 0;
  z-index: 100;
  background: rgba(0,0,0,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 92vh; width: auto; height: auto; }
.lightbox__close {
  position: absolute; top: 14px; right: 18px;
  background: none; border: 0; color: #fff;
  font-size: 34px; line-height: 1; cursor: pointer;
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: #fff;
  font-size: 46px; line-height: 1; cursor: pointer;
  padding: 10px 18px;
}
.lightbox__nav.prev { left: 4px; }
.lightbox__nav.next { right: 4px; }

/* ------------------------------------------------------------------ подвал */
.site-footer {
  margin-top: auto;
  background: #2b2b2b;
  color: #cfcfcf;
  padding: 30px 0;
  font-size: 15.5px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
  justify-content: space-between;
}
.site-footer a { color: #fff; }

/* ---------------------------------------------------------------- адаптив */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero .wrap { flex-direction: column; text-align: center; gap: 24px; }
  .hero__call {
    display: block;
    text-align: center;
    border-left: 0;
    border-top: 3px solid var(--orange);
    border-radius: 12px;
  }
  .hero__logo { width: var(--hero-photo, clamp(175px, 20vh, 210px)); }
  .hero__text p { margin-left: auto; margin-right: auto; }
  .toy__layout { grid-template-columns: minmax(0, 1fr); }
  .toy__info { position: static; }
}

/* узкая зона между бургером и широким экраном: поджимаем шапку */
@media (max-width: 1520px) and (min-width: 1371px) {
  .brand__name { font-size: 15px; }
  .brand__logo { width: 30px; height: 30px; }
  .nav { gap: 18px; }
  .nav__link { font-size: 12.5px; }
  .search-toggle { margin-left: 10px; }
}

/* Шапка уходит в бургер раньше сетки: пунктов меню восемь, и в строку они
   помещаются только на широком экране. Ниже 1370 меню наезжало на название
   сайта, и оно сжималось до «cotton ...». Порог замерен в браузере. */
@media (max-width: 1370px) {
  .burger { display: flex; margin-left: auto; }
  .search-toggle { margin-left: 6px; }

  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background: #2b2b2b;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 10px;
    margin: 0;
    transform: translateY(-130%);
    transition: transform .28s ease;
    box-shadow: 0 12px 24px rgba(0,0,0,.25);
  }
  .nav.is-open { transform: translateY(0); }

  .nav__link {
    color: #f1f1f1;
    font-size: 15px;
    padding: 13px 20px;
    border-bottom: 1px solid #3a3a3a;
  }
  .site-header.is-stuck .nav__link,
  .site-header--over .nav__link { color: #f1f1f1; }
  .nav__link[aria-current="page"] { border-bottom-color: var(--orange); }

  /* список игрушек на телефоне раскрывается прямо в меню, а не всплывает */
  .nav__item--drop .nav__chev { display: none; }
  .nav__drop {
    position: static;
    min-width: 0;
    max-height: 260px;
    opacity: 1; visibility: visible; transform: none;
    border-radius: 0;
    box-shadow: none;
    background: #232323;
    padding: 4px 0;
  }
  .nav__drop::before { display: none; }
  .nav__drop-list { columns: 1; }
  .nav__drop-list a { padding: 10px 28px; border-radius: 0; }
}

@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 18px; }
  .brand__name { font-size: 15px; }
  .search {
    right: 12px; left: 12px;
    width: auto;
    padding: 12px;
    border-radius: 14px;
  }
  .search::before { right: 16px; }
}

@media (max-width: 430px) {
  .brand__name { font-size: 13.5px; }
  .brand__logo { width: 28px; height: 28px; }
  .brand { gap: 9px; }
}

@media (max-width: 560px) {
  .hero { padding: calc(var(--header-h) + 18px) 0 32px; }
  .hero__logo { width: var(--hero-photo, 175px); }
  .hero__text p { font-size: 15px; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .card__title { font-size: 14px; }
  .card__price { font-size: 18px; }
  .card__buy { font-size: 12px; padding: 8px 10px; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .toy__info h1 { font-size: 26px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}

/* ------------------------------------------- ссылки оплаты под QR-кодами */
.payment__links {
  max-width: 780px;
  margin: 26px auto 0;
  text-align: center;
}
.payment__row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.payment__btn { width: 100%; }
.payment__btn--ghost {
  background: #fff;
  color: var(--blue);
  border: 1px solid var(--blue);
}
.payment__btn--ghost:hover { background: #f2f7fb; }

@media (min-width: 620px) {
  .payment__row { flex-direction: row; justify-content: center; }
  .payment__btn { width: auto; min-width: 220px; }
}

/* ------------------------------------------------------------ страница 404 */
.notfound {
  margin-top: var(--header-h);
  padding: 70px 0 90px;
  text-align: center;
  /* body это флекс-колонка с подвалом внизу: растягиваем блок на остаток
     высоты и ставим текст посередине, иначе на высоком экране он висит
     под шапкой, а ниже пустое поле до подвала */
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* крупная цифра фоном: она про настроение, читателю её озвучивать не надо */
.notfound__code {
  font-family: var(--font-head);
  font-size: clamp(76px, 16vw, 140px);
  line-height: 1;
  font-weight: 700;
  color: var(--blue);
  opacity: .16;
  letter-spacing: .02em;
  margin: 0 0 -6px;
}

.notfound h1 {
  font-family: var(--font-head);
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  margin: 0 0 14px;
}

.notfound__text {
  margin: 0 auto 30px;
  max-width: 44ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

/* .btn растянут на всю ширину: на странице ошибки это ни к чему */
.notfound__btn { display: inline-block; width: auto; min-width: 240px; }

@media (max-width: 480px) {
  .notfound { padding: 48px 0 64px; }
  .notfound__btn { width: 100%; min-width: 0; }
}
