/*
  Версия 2 сайта Skazka. Оформление построено по образцу cozyhome.ru:
  плотный белый магазин без скруглений и теней, воздух только за счёт
  отступов. Первая версия сайта лежит рядом и этот файл не использует.

  Токены сняты с референса: текст Roboto 15/21 #0F0F0F, заголовки
  геометрическим гротеском (у них Futura PT, у нас бесплатный Jost),
  акцент #C28257, цена со скидкой #D30B3B, серые секции #F9F7F9.
*/

:root {
  --text: #0F0F0F;
  --grey: #808080;
  --grey-2: #A6A6A6;
  --line: #D1CFD1;
  --line-soft: #E8E6E8;
  --accent: #D30B3B;
  --accent-dark: #A80A30;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --red: #D30B3B;
  --badge: #FF0000;
  --bg: #FFFFFF;
  --bg-grey: #F9F7F9;
  --beige: #EFEDEF;

  --pad: 60px;                 /* боковые поля контейнера, как у референса */
  --container: 1440px;
  --head-font: 'Jost', 'Futura PT', 'Trebuchet MS', sans-serif;
  --body-font: 'Roboto', 'Helvetica Neue', Arial, sans-serif;

  /* На сколько отступать при переходе по якорю, чтобы заголовок блока
     не уезжал под липкую шапку */
  --anchor-offset: 190px;
}

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: var(--anchor-offset); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 15px;
  line-height: 21px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--head-font);
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}

h1 { font-size: 36px; line-height: 39.6px; }
h2 { font-size: 32px; line-height: 35.2px; }
h3 { font-size: 18px; line-height: 25.2px; }

p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }

.cz-muted { color: var(--grey); }
.cz-small { font-size: 12px; line-height: 17px; }
.cz-accent { color: var(--accent); }
.cz-grey-bg { background: var(--bg-grey); }
.cz-hr { border: 0; border-top: 1px solid var(--line-soft); margin: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Контейнер. Внимание: если добавляете padding блоку с этим классом,
   пишите только padding-top и padding-bottom, иначе сотрёте боковые поля */
.cz-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ============================ КНОПКИ ============================ */

.cz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 23px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 0;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.cz-btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.cz-btn--xl { height: 56px; font-size: 16px; }
.cz-btn--outline { background: transparent; color: var(--text); border-color: var(--line); }
.cz-btn--outline:hover { background: transparent; border-color: var(--text); color: var(--text); }
.cz-btn--dark { background: var(--text); border-color: var(--text); }
.cz-btn--dark:hover { background: #2c2c2c; border-color: #2c2c2c; }
.cz-btn--block { display: flex; width: 100%; }
.cz-btn[disabled] { opacity: .5; cursor: default; }

.cz-link-accent {
  color: var(--accent);
  font-size: 18px;
  line-height: 25.2px;
}
.cz-link-accent:hover { text-decoration: underline; }

/* ============================ ШАПКА ============================ */

.cz-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
}

.cz-topline {
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
  line-height: 17px;
  color: var(--text);
}
.cz-topline .cz-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 7px;
  padding-bottom: 7px;
}
.cz-topline nav { display: flex; gap: 24px; }
.cz-topline a:hover { color: var(--accent); }
.cz-topline__place { display: inline-flex; align-items: center; gap: 6px; }
.cz-topline__place svg { flex: none; }

.cz-head .cz-container {
  display: grid;
  grid-template-columns: 190px 170px minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.cz-logo { display: block; }
.cz-logo img { width: 168px; height: auto; }
.cz-logo__word {
  display: block;
  font-family: var(--head-font);
  font-size: 28px;
  line-height: 30px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cz-logo__sub {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  line-height: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
}

.cz-headphone { line-height: 18px; }
.cz-headphone a { font-size: 16px; font-weight: 500; white-space: nowrap; }
.cz-headphone span { display: block; font-size: 11px; color: var(--grey); }

.cz-search { position: relative; }
.cz-search input {
  width: 100%;
  height: 40px;
  padding: 0 44px 0 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
}
.cz-search input:focus { outline: none; border-color: var(--accent); }
.cz-search button {
  position: absolute;
  top: 0; right: 0;
  width: 44px; height: 40px;
  display: grid; place-items: center;
  background: none; border: 0; cursor: pointer;
  color: var(--text);
}
.cz-search__results {
  display: none;
  position: absolute;
  top: calc(100% + 1px);
  left: 0; right: 0;
  max-height: 420px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line);
  z-index: 30;
}
.cz-search__results.open { display: block; }
.cz-search__item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.cz-search__item:last-child { border-bottom: 0; }
.cz-search__item:hover { background: var(--bg-grey); }
.cz-search__item img { width: 48px; height: 48px; object-fit: cover; flex: none; }
.cz-search__item b { display: block; font-weight: 400; }
.cz-search__item span { color: var(--grey); font-size: 12px; }
.cz-search__empty { padding: 14px; color: var(--grey); }

.cz-icons { display: flex; align-items: center; gap: 4px; }
.cz-icons button, .cz-icons a {
  position: relative;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: none; border: 0; cursor: pointer;
  color: var(--text);
}
.cz-icons button:hover, .cz-icons a:hover { color: var(--accent); }
.cz-counter {
  position: absolute;
  top: 4px; right: 2px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  opacity: 0;
  transition: opacity .15s;
}
.cz-counter.visible { opacity: 1; }

.cz-menu { border-top: 1px solid var(--line-soft); }
.cz-menu .cz-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 4px;
}
.cz-menu a {
  display: block;
  padding: 17px 14px 18px;
  font-size: 15px;
  line-height: 21px;
}
.cz-menu a:hover { color: var(--accent); }
.cz-menu a.is-accent { color: var(--accent); font-weight: 700; }
.cz-menu a.is-current { box-shadow: inset 0 -2px 0 var(--accent); }
.cz-menu a.cz-menu__btn {
  margin-left: 10px;
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
}
.cz-menu a.cz-menu__btn:hover { background: var(--accent-dark); color: #fff; }

.cz-promo {
  background: var(--beige);
  color: #3D2B1C;
  text-align: center;
  font-size: 14px;
  line-height: 20px;
  /* Специально не липкая: висящая перед глазами полоса раздражает */
}
.cz-promo .cz-container { padding-top: 8px; padding-bottom: 8px; }
.cz-promo__short { display: none; }
.cz-promo a { text-decoration: underline; }

.cz-burger, .cz-mobile-only { display: none; }
/* Значок поиска нужен только на телефоне, где поле спрятано.
   Селектор с .cz-icons — чтобы перебить общее правило .cz-icons button */
.cz-icons .cz-search-toggle { display: none; }

/* Выпадающее меню на телефоне */
.cz-mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  /* именно видимая часть экрана, а не окно браузера: внутри Telegram и
     Instagram это разные вещи */
  height: var(--vv-height, 100vh);
  z-index: 90;
  background: #fff;
  flex-direction: column;
}
.cz-mobile-menu.open { display: flex; }
.cz-mobile-menu__head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
}
/* Список прокручивается сам: у него data-scrollable, иначе страховка от
   протягивания фона на iOS съедает движение пальца и меню стоит колом */
.cz-mobile-menu__list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
}
.cz-mobile-menu__insta {
  display: flex !important;
  align-items: center;
  gap: 10px;
  color: var(--accent);
}
.cz-mobile-menu__head button {
  background: none; border: 0; cursor: pointer; padding: 6px;
}
.cz-mobile-menu a {
  display: block;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 16px;
}
.cz-mobile-menu a.is-accent { color: var(--accent); font-weight: 700; }

.cz-inline-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cz-inline-icon svg { flex: none; }

/* ============================ СЕКЦИИ ============================ */

.cz-section { padding: 40px 0; }
.cz-section--tight { padding: 28px 0; }
.cz-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.cz-section__title { font-size: 32px; line-height: 35.2px; }

/* Карусель: горизонтальная лента со стрелками, без библиотек */
.cz-carousel { position: relative; }
.cz-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 0px) / 4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.cz-track::-webkit-scrollbar { display: none; }
.cz-track > * { scroll-snap-align: start; }
.cz-arrow {
  position: absolute;
  top: 40%;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  cursor: pointer;
  z-index: 5;
  transition: opacity .15s;
}
.cz-arrow:hover { border-color: var(--text); }
.cz-arrow--prev { left: -20px; }
.cz-arrow--next { right: -20px; }
.cz-arrow[hidden] { display: none; }

/* ======================= КАРТОЧКА ТОВАРА ======================== */

.cz-card {
  position: relative;
  padding: 16px 12px;
  background: #fff;
}
.cz-card__top { position: relative; }
.cz-card__media {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-grey);
}
.cz-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.cz-card:hover .cz-card__media img { transform: scale(1.03); }
.cz-card__badge {
  position: absolute;
  left: 0; bottom: 0;
  padding: 4px 8px;
  background: var(--badge);
  color: #fff;
  font-size: 12px;
  line-height: 17px;
}
.cz-card__badge--soft { background: var(--accent); }
.cz-card__like {
  position: absolute;
  top: 6px; right: 6px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: none; border: 0; cursor: pointer;
  color: var(--text);
}
.cz-card__like .on { display: none; }
.cz-card__like.active .on { display: block; color: var(--accent); }
.cz-card__like.active .off { display: none; }

.cz-card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
}
.cz-price {
  font-family: var(--head-font);
  font-size: 20px;
  font-weight: 500;
  line-height: 22px;
}
.cz-price--red { color: var(--red); }
.cz-price--old {
  font-size: 16px;
  line-height: 17.6px;
  color: var(--grey);
  text-decoration: line-through;
}
.cz-cur { font-size: .8em; }

.cz-card__title {
  margin: 8px 0 12px;
  font-size: 15px;
  line-height: 21px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}
.cz-card__sizes { display: flex; flex-wrap: wrap; gap: 4px; }
.cz-card__sizes a {
  padding: 3px 8px;
  border: 1px solid var(--line-soft);
  font-size: 12px;
  line-height: 17px;
  color: var(--grey);
  white-space: nowrap;
}
.cz-card__sizes a:hover { border-color: var(--text); color: var(--text); }
.cz-card__sizes a.is-current { border-color: var(--text); color: var(--text); }
.cz-card__add {
  margin-top: 12px;
  width: 100%;
  height: 40px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  cursor: pointer;
}
.cz-card:hover .cz-card__add { display: flex; }
.cz-card__add:hover { border-color: var(--accent); color: var(--accent); }
.cz-card__add.added { border-color: var(--accent); color: var(--accent); }

.cz-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

/* ====================== ГЛАВНАЯ: ВЕРХНИЙ БЛОК =================== */

.cz-hero { padding-top: 2px; }
.cz-hero__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 2px;
}
.cz-hero__main { position: relative; overflow: hidden; }
.cz-hero__slides {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.cz-hero__slides::-webkit-scrollbar { display: none; }
.cz-slide {
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 490px;
  background: var(--beige);
  color: #3D2B1C;
}
.cz-slide--dark { background: #2E2A27; color: #F6F1EA; }
.cz-slide--accent { background: var(--accent); color: #fff; }
.cz-slide__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 56px;
}
.cz-slide__kicker {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: .75;
  margin-bottom: 14px;
}
.cz-slide__title {
  font-family: var(--head-font);
  font-size: 44px;
  line-height: 48px;
  font-weight: 500;
  margin-bottom: 16px;
}
.cz-slide__text p { font-size: 16px; line-height: 24px; max-width: 420px; }
.cz-slide__cta { margin-top: 26px; }
.cz-slide__cta .cz-btn { background: #fff; border-color: #fff; color: var(--text); }
.cz-slide__cta .cz-btn:hover { background: var(--text); border-color: var(--text); color: #fff; }
.cz-slide__photo { overflow: hidden; }
.cz-slide__photo img { width: 100%; height: 100%; object-fit: cover; }

.cz-hero__dots {
  position: absolute;
  left: 0; right: 0; bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.cz-hero__dots button {
  width: 22px; height: 3px;
  border: 0; padding: 0;
  background: rgba(255,255,255,.5);
  cursor: pointer;
}
.cz-hero__dots button.active { background: #fff; }

.cz-hero__aside {
  border: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
}
.cz-hero__aside-title {
  padding: 12px 12px 0;
  font-family: var(--head-font);
  font-size: 18px;
  font-weight: 500;
}

/* Полоса доверия */
.cz-trust .cz-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.cz-trust__item { display: flex; gap: 12px; align-items: flex-start; }
.cz-trust__item svg { flex: none; color: var(--text); }
.cz-trust__item b { display: block; font-weight: 500; }
.cz-trust__item span { color: var(--grey); font-size: 13px; line-height: 18px; }

/* Плитки категорий */
.cz-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
}
.cz-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fff;
}
.cz-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cz-tile:hover img { transform: scale(1.04); }
.cz-tile__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  /* Плашка должна читаться и на светлых фото: подушки и полотенца почти белые */
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,0) 100%);
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.35);
  padding-top: 34px;
}
.cz-tile__cap b { font-family: var(--head-font); font-size: 18px; font-weight: 500; }
.cz-tile__cap span { display: block; font-size: 12px; opacity: .85; }

/* Отзывы */
.cz-review { padding-right: 24px; }
.cz-review__product {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.cz-review__product img { width: 72px; height: 72px; object-fit: cover; flex: none; }
.cz-review__product b { display: block; font-weight: 400; font-size: 14px; line-height: 19px; }
.cz-review__stars { color: var(--accent); font-size: 13px; letter-spacing: 2px; }
.cz-review__text { font-size: 14px; line-height: 20px; }
.cz-review__name { margin-top: 10px; color: var(--grey); font-size: 13px; }

/* Коллекции */
.cz-collection { padding-right: 24px; }
.cz-collection__photo { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-grey); }
.cz-collection__photo img { width: 100%; height: 100%; object-fit: cover; }
.cz-collection h3 { margin: 14px 0 8px; }
.cz-collection p {
  color: var(--grey);
  font-size: 14px;
  line-height: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cz-collection a.cz-more { display: inline-block; margin-top: 10px; color: var(--accent); }

/* Полезное о тканях */
.cz-article { padding-right: 24px; }
.cz-article__photo { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-grey); }
.cz-article__photo img { width: 100%; height: 100%; object-fit: cover; }
.cz-article h3 { margin: 14px 0 8px; font-size: 18px; }
.cz-article p { color: var(--grey); font-size: 14px; line-height: 20px; }

/* Вопросы и ответы вместо блока отзывов, пока их не прислал клиент */
.cz-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.cz-faq details { border-bottom: 1px solid var(--line-soft); }
.cz-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 30px 16px 0;
  position: relative;
  font-size: 16px;
}
.cz-faq summary::-webkit-details-marker { display: none; }
.cz-faq summary::after {
  content: '+';
  position: absolute;
  right: 4px; top: 14px;
  font-size: 20px;
  color: var(--accent);
}
.cz-faq details[open] summary::after { content: '−'; }
.cz-faq__answer { padding: 0 30px 16px 0; color: var(--grey); }

/* SEO-текст */
.cz-seo { padding: 32px 0 44px; }
.cz-seo h2 { margin-bottom: 16px; font-size: 30px; line-height: 33px; }
.cz-seo p { color: var(--grey); max-width: 1080px; }

/* ============================ ПОДВАЛ ============================ */

.cz-footer { background: #fff; border-top: 1px solid var(--line-soft); }
.cz-footer__promo { background: var(--bg-grey); }
.cz-footer__promo .cz-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 40px;
}
.cz-footer__promo h2 { margin-bottom: 10px; }
.cz-footer__promo p { color: var(--grey); max-width: 620px; }

.cz-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  padding-top: 40px;
  padding-bottom: 36px;
}
.cz-footer__cols h4 {
  font-family: var(--head-font);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 14px;
}
.cz-footer__cols ul { list-style: none; margin: 0; padding: 0; }
.cz-footer__cols li { margin-bottom: 9px; }
.cz-footer__cols a:hover { color: var(--accent); }
.cz-footer__social { display: flex; gap: 10px; margin-top: 14px; }
.cz-footer__social a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
}
.cz-footer__social a:hover { border-color: var(--accent); color: var(--accent); }

.cz-footer__legal .cz-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 12px;
  line-height: 17px;
  color: var(--grey);
}
.cz-footer__legal a:hover { color: var(--accent); }
.cz-footer__company .cz-container {
  padding-top: 18px;
  padding-bottom: 30px;
  font-size: 12px;
  line-height: 17px;
  color: var(--grey);
}

/* ============================ КАТАЛОГ =========================== */

.cz-crumbs {
  padding-top: 16px;
  padding-bottom: 8px;
  font-size: 15px;
  color: var(--grey);
}
.cz-crumbs a:hover { color: var(--accent); }
.cz-crumbs span { color: var(--grey-2); margin: 0 6px; }
.cz-crumbs b { font-weight: 400; color: var(--text); }

.cz-title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 8px;
  padding-bottom: 16px;
}
.cz-title-row .cz-count { color: var(--grey); }
.cz-title-row .cz-title-note { margin-left: auto; color: var(--accent); }

.cz-chips-row { padding-bottom: 16px; }
.cz-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.cz-chips::-webkit-scrollbar { display: none; }
.cz-chip {
  display: inline-flex;
  flex: 0 0 auto;          /* иначе в горизонтальной полосе чипсы сжимаются и текст вылезает */
  align-items: center;
  height: 40px;
  padding: 0 23px;
  border: 1px solid var(--line);
  border-radius: 32px;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
  background: #fff;
  transition: border-color .15s, background .15s;
}
.cz-chip:hover { border-color: var(--text); }
.cz-chip.is-active { border-color: var(--text); background: var(--text); color: #fff; }
.cz-chip__count { color: var(--grey); margin-left: 6px; font-size: 13px; }
.cz-chip.is-active .cz-chip__count { color: rgba(255,255,255,.7); }

.cz-filterbar {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 24px;
}
.cz-filterbar .cz-container {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.cz-dropdown { position: relative; }
.cz-dropdown__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 15px;
}
.cz-dropdown__btn:hover { border-color: var(--text); }
.cz-dropdown.open .cz-dropdown__btn { border-color: var(--text); }
.cz-dropdown__list {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 260px;
  max-height: 320px;
  overflow-y: auto;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  z-index: 40;
}
.cz-dropdown.open .cz-dropdown__list { display: block; }
.cz-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  cursor: pointer;
}
.cz-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.cz-check .cz-check__count { margin-left: auto; color: var(--grey); font-size: 13px; }
.cz-sort { margin-left: auto; }
.cz-sort select {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  border-radius: 0;
  cursor: pointer;
}
.cz-reset { color: var(--accent); cursor: pointer; background: none; border: 0; font-size: 15px; }

.cz-empty { padding: 60px 0 80px; text-align: center; color: var(--grey); }

/* ======================== КАРТОЧКА ТОВАРА ======================= */

.cz-product__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}
.cz-product {
  display: grid;
  grid-template-columns: minmax(0, 756px) minmax(0, 500px);
  justify-content: space-between;
  gap: 40px 64px;
  padding-bottom: 40px;
}
.cz-gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
.cz-gallery__thumbs { display: flex; flex-direction: column; gap: 8px; max-height: 640px; overflow-y: auto; scrollbar-width: none; }
.cz-gallery__thumbs::-webkit-scrollbar { display: none; }
.cz-gallery__thumbs button {
  padding: 0; border: 1px solid transparent; background: none; cursor: pointer;
  aspect-ratio: 1 / 1;
}
.cz-gallery__thumbs button.active { border-color: var(--text); }
.cz-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.cz-gallery__main { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-grey); }
.cz-gallery__main img { width: 100%; height: 100%; object-fit: cover; }

.cz-aside { align-self: start; }
.cz-aside__sku { font-size: 12px; color: var(--grey); margin-bottom: 10px; }
.cz-aside h1 { margin-bottom: 16px; font-size: 32px; line-height: 35.2px; }
.cz-aside__price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.cz-aside__price .cz-price { font-size: 28px; line-height: 30px; }
.cz-variants { margin-bottom: 22px; }
.cz-variants__label { font-size: 13px; color: var(--grey); margin-bottom: 8px; }
.cz-variants__list { display: flex; flex-wrap: wrap; gap: 8px; }
.cz-variants__list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  font-size: 15px;
}
.cz-variants__list a:hover { border-color: var(--text); }
.cz-variants__list a.is-current { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.cz-swatch { width: 18px; height: 18px; border: 1px solid var(--line); background-size: cover; background-position: center; }

.cz-buy { display: grid; gap: 10px; margin-bottom: 20px; }
.cz-buy__row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; }
.cz-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  height: 56px;
  padding: 0 8px;
}
.cz-qty button { width: 34px; height: 100%; background: none; border: 0; cursor: pointer; font-size: 20px; }
.cz-qty span { min-width: 24px; text-align: center; }

.cz-mp { display: grid; gap: 8px; margin-bottom: 20px; }
.cz-mp a {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  font-size: 14px;
}
.cz-mp a:hover { border-color: var(--text); }
.cz-mp__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.cz-mp__note { font-size: 12px; line-height: 17px; color: var(--grey); }

.cz-delivery-list { border-top: 1px solid var(--line-soft); }
.cz-delivery-list div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}
.cz-delivery-list svg { flex: none; color: var(--accent); }

.cz-tabs__nav {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cz-tabs__nav::-webkit-scrollbar { display: none; }
.cz-tabs__nav button {
  background: none;
  border: 0;
  padding: 0 0 14px;
  cursor: pointer;
  font-size: 18px;
  font-family: var(--head-font);
  font-weight: 500;
  color: var(--grey);
  white-space: nowrap;
}
.cz-tabs__nav button.active { color: var(--text); box-shadow: inset 0 -2px 0 var(--text); }
.cz-tabs__panel { display: none; }
.cz-tabs__panel.active { display: block; }
.cz-props { display: grid; gap: 0; max-width: 620px; }
.cz-props div {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}
.cz-props dt, .cz-props span:first-child { color: var(--grey); }
.cz-list { list-style: none; margin: 0; padding: 0; }
.cz-list li {
  position: relative;
  padding: 0 0 8px 22px;
}
.cz-list li::before {
  content: '';
  position: absolute;
  left: 2px; top: 8px;
  width: 6px; height: 6px;
  background: var(--accent);
}

/* ============================ ФОРМЫ ============================= */

.cz-form { display: grid; gap: 16px; }
.cz-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--grey);
}
.cz-field input, .cz-field textarea, .cz-field select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
}
.cz-field textarea { height: 96px; padding: 12px 14px; resize: vertical; }
.cz-field input:focus, .cz-field textarea:focus { outline: none; border-color: var(--accent); }
.cz-field input.invalid, .cz-field textarea.invalid { border-color: var(--red); }
.cz-field .cz-error {
  display: none;
  margin-top: 6px;
  font-size: 12px;
  color: var(--red);
}
.cz-field .cz-error.visible { display: block; }
.cz-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cz-form-note { font-size: 12px; line-height: 17px; color: var(--grey); }
.cz-form-success { display: none; }
.cz-form-success.visible { display: block; }

.cz-panel { border: 1px solid var(--line-soft); padding: 22px; }

.cz-pay { display: grid; gap: 10px; }
.cz-pay label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--line);
  cursor: pointer;
}
.cz-pay label.selected { border-color: var(--text); }
.cz-pay input { margin-top: 3px; accent-color: var(--accent); }
.cz-pay b { display: block; font-weight: 500; }
.cz-pay span { color: var(--grey); font-size: 13px; }

.cz-card-fields { display: none; margin-top: 16px; }
.cz-card-fields.visible { display: grid; gap: 16px; }
.cz-secure { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--grey); }

.cz-checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 40px;
  padding-bottom: 60px;
}
.cz-sum-item, .cz-sum-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 14px;
}
.cz-sum-total {
  display: flex;
  justify-content: space-between;
  padding: 12px 0 0;
  margin-top: 8px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--head-font);
  font-size: 20px;
  font-weight: 500;
}
.cz-promo-box {
  margin-top: 16px;
  padding: 14px;
  background: rgba(222, 209, 196, .4);
  font-size: 13px;
  line-height: 19px;
}
.cz-processing { display: none; align-items: center; gap: 12px; margin-top: 14px; color: var(--grey); }
.cz-processing.visible { display: flex; }
.cz-spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: cz-spin .8s linear infinite;
}
@keyframes cz-spin { to { transform: rotate(360deg); } }
.cz-success { display: none; padding: 40px 0 80px; }
.cz-success.visible { display: block; }

/* Информационные страницы */
.cz-page-lead { max-width: 720px; color: var(--grey); font-size: 16px; line-height: 24px; }
.cz-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
}
.cz-info-card { padding: 26px; background: var(--bg-grey); }
.cz-info-card h3 { margin-bottom: 10px; }
.cz-info-card p { color: var(--grey); font-size: 14px; line-height: 20px; }
.cz-steps { counter-reset: step; display: grid; gap: 2px; }
.cz-steps div {
  counter-increment: step;
  position: relative;
  padding: 20px 24px 20px 64px;
  background: var(--bg-grey);
}
.cz-steps div::before {
  content: counter(step);
  position: absolute;
  left: 24px; top: 18px;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  background: var(--accent);
  color: #fff;
  font-family: var(--head-font);
  font-size: 14px;
}

/* ======================= КОРЗИНА И ЧАТ ========================== */

.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(15,15,15,.4);
  opacity: 0; visibility: hidden;
  transition: opacity .2s;
  z-index: 100;
}
.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 420px;
  max-width: 100%;
  height: 100%;
  background: #fff;
  transform: translateX(100%);
  transition: transform .25s ease;
  z-index: 101;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: none; }
.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-soft);
}
.cart-head h3 { font-size: 20px; }
.cart-close { background: none; border: 0; cursor: pointer; padding: 4px; }
.cart-items { flex: 1; overflow-y: auto; padding: 8px 20px; }
.cart-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.cart-item img { width: 64px; height: 64px; object-fit: cover; }
.cart-item-title { font-size: 14px; line-height: 19px; }
.cart-item-price { font-size: 12px; color: var(--grey); margin-top: 2px; }
.cart-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.cart-qty button { width: 28px; height: 28px; background: none; border: 0; cursor: pointer; }
.cart-qty span { min-width: 26px; text-align: center; font-size: 14px; }
.cart-empty { padding: 40px 0; text-align: center; color: var(--grey); }
.cart-foot { padding: 18px 20px 22px; border-top: 1px solid var(--line-soft); }
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.cart-total { font-family: var(--head-font); font-size: 22px; font-weight: 500; }

.toast {
  position: fixed;
  left: 50%; bottom: 28px;
  transform: translateX(-50%) translateY(16px);
  padding: 12px 20px;
  background: var(--text);
  color: #fff;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 200;
}
.toast.visible { opacity: 1; transform: translateX(-50%); }

.chat-fab {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  z-index: 95;
  box-shadow: 0 6px 20px rgba(15,15,15,.18);
}
.chat-fab:hover { background: var(--accent-dark); }
body.chat-open .chat-fab { display: none; }
/* Пока открыто меню, кружок чата не должен закрывать нижние пункты */
body.menu-open .chat-fab { display: none; }

.chat-window {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(var(--vv-height, 100vh) - 48px);
  background: #fff;
  border: 1px solid var(--line);
  display: none;
  flex-direction: column;
  z-index: 96;
  box-shadow: 0 10px 40px rgba(15,15,15,.16);
}
.chat-window.open { display: flex; }
.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
}
.chat-head-avatar {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--accent);
  border-radius: 50%;
  flex: none;
}
.chat-head-title { font-weight: 500; }
.chat-head-sub { font-size: 12px; color: var(--grey); }
.chat-head button { margin-left: auto; background: none; border: 0; cursor: pointer; padding: 4px; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg {
  max-width: 86%;
  padding: 10px 13px;
  font-size: 14px;
  line-height: 20px;
  white-space: pre-wrap;
}
.chat-msg.bot { background: var(--bg-grey); align-self: flex-start; }
.chat-msg.user { background: var(--accent); color: #fff; align-self: flex-end; }
.chat-msg.typing { color: var(--grey); }
.chat-link { color: var(--accent); text-decoration: underline; }
.chat-msg.user .chat-link { color: #fff; }
.chat-suggests {
  display: flex;
  gap: 8px;
  padding: 0 16px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chat-suggests::-webkit-scrollbar { display: none; }
.chat-suggests button {
  white-space: nowrap;
  padding: 7px 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  cursor: pointer;
}
.chat-suggests button:hover { border-color: var(--accent); color: var(--accent); }
.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line-soft);
}
.chat-input-row input {
  flex: 1;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  font-family: inherit;
  font-size: 15px;
}
.chat-input-row input:focus { outline: none; border-color: var(--accent); }
.chat-send {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--accent);
  color: #fff;
  border: 0;
  cursor: pointer;
}
.chat-send:hover { background: var(--accent-dark); }

/* Блокировка фона под окном чата и корзины */
body.scroll-locked { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }
html.scroll-locked-desktop { overflow: hidden; }

/* ======================= АДАПТИВ ПОД ЭКРАНЫ =====================

   Ловушка из первой версии: у блока с классом контейнера нельзя писать
   padding сокращённо, иначе стираются боковые поля и текст упирается в
   край экрана. Ниже везде только padding-top и padding-bottom.        */

@media (max-width: 1360px) {
  :root { --pad: 32px; }
  .cz-head .cz-container { grid-template-columns: 170px 150px minmax(0, 1fr) auto; gap: 20px; }
  .cz-arrow--prev { left: 4px; }
  .cz-arrow--next { right: 4px; }
}

@media (max-width: 1180px) {
  .cz-menu .cz-container {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .cz-menu .cz-container::-webkit-scrollbar { display: none; }
  .cz-menu a { white-space: nowrap; }
  .cz-hero__row { grid-template-columns: minmax(0, 1fr) 300px; }
  .cz-slide__title { font-size: 36px; line-height: 40px; }
  .cz-slide__text { padding: 36px 36px; }
}

@media (max-width: 1024px) {
  .cz-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cz-track { grid-auto-columns: calc(100% / 3); }
  .cz-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cz-product { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .cz-gallery__main { aspect-ratio: 1 / 1; }
  .cz-checkout { grid-template-columns: minmax(0, 1fr); }
  .cz-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cz-footer__promo .cz-container { grid-template-columns: minmax(0, 1fr); }
  .cz-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --anchor-offset: 76px; }

  .cz-topline { display: none; }
  .cz-menu { display: none; }
  .cz-burger { display: grid; }
  .cz-icons .cz-search-toggle { display: grid; }

  /* На телефоне в шапке остаётся одна строка: верхняя полоса и меню
     разделов скрыты, поиск разворачивается по значку. Полоса про
     сертификат вынесена из шапки и уезжает вместе со страницей —
     висеть перед глазами она не должна. */

  .cz-head .cz-container {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .cz-headphone { display: none; }
  /* Поиск разворачивается по значку, чтобы шапка была в одну строку */
  .cz-search { display: none; grid-column: 1 / -1; grid-row: 2; margin-bottom: 8px; }
  html.search-open .cz-search { display: block; }
  .cz-logo img { width: 132px; }
  .cz-hero__row { grid-template-columns: minmax(0, 1fr); }
  .cz-hero__aside { display: none; }
  .cz-faq { grid-template-columns: minmax(0, 1fr); }
  .cz-trust .cz-container { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .cz-section { padding: 28px 0; }
  .cz-section__title, h2 { font-size: 26px; line-height: 29px; }
  h1 { font-size: 27px; line-height: 30px; }
  .cz-aside h1 { font-size: 24px; line-height: 27px; }
  .cz-seo h2 { font-size: 24px; line-height: 27px; }
}

@media (max-width: 700px) {
  :root { --pad: 16px; }
  .cz-promo { font-size: 13px; line-height: 18px; }
  .cz-promo__full { display: none; }
  .cz-promo__short { display: inline; }
  .cz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cz-track { grid-auto-columns: 55%; }
  .cz-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cz-info-grid { grid-template-columns: minmax(0, 1fr); }
  .cz-form-row { grid-template-columns: minmax(0, 1fr); }
  .cz-card { padding: 12px 8px; }
  .cz-card__add { display: flex; }
  .cz-slide { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .cz-slide__photo { aspect-ratio: 4 / 3; order: -1; }
  .cz-slide__text { padding: 24px 20px 30px; }
  .cz-slide__title { font-size: 28px; line-height: 32px; }
  .cz-gallery { grid-template-columns: minmax(0, 1fr); }
  .cz-gallery__thumbs {
    flex-direction: row;
    order: 2;
    max-height: none;
    overflow-x: auto;
  }
  .cz-gallery__thumbs button { width: 64px; flex: none; }
  .cz-props div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .cz-buy__row { grid-template-columns: 100px minmax(0, 1fr); }
  .cz-arrow { display: none; }
  .cz-footer__cols { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .cz-title-row .cz-title-note { margin-left: 0; width: 100%; }
  /* Полосу фильтров на телефоне переносим по строкам, а не прокручиваем:
     при прокрутке выпадающие списки обрезались краем полосы */
  .cz-filterbar .cz-container { flex-wrap: wrap; gap: 8px; }
  .cz-dropdown { flex: 1 1 auto; }
  .cz-dropdown__btn { width: 100%; justify-content: space-between; }
  .cz-dropdown__list { min-width: 0; width: 100%; }
  .cz-sort { margin-left: 0; flex: 1 1 100%; }
  .cz-sort select { width: 100%; }
  .cz-collection, .cz-article { padding-right: 12px; }

  /* Крошки в одну строку с боковой прокруткой: у длинных названий
     товара они занимали три строки и выдавливали кнопку «Поделиться» */
  .cz-crumbs { font-size: 13px; }
  .cz-crumbs > div,
  .cz-product__head > div:first-child {
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    min-width: 0;
  }
  .cz-crumbs > div::-webkit-scrollbar,
  .cz-product__head > div:first-child::-webkit-scrollbar { display: none; }
  .cz-product__head { align-items: center; gap: 10px; }
  .cz-product__head .cz-reset { flex: none; font-size: 13px; }

  /* Чат и корзина считаются от реально видимой части экрана: внутри
     Telegram и Instagram окно браузера и видимая область — разные вещи */
  .chat-window {
    right: 0; bottom: 0; left: 0;
    width: 100%;
    max-width: 100%;
    height: var(--vv-height, 100vh);
    max-height: var(--vv-height, 100vh);
    border: 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .chat-fab { right: 16px; bottom: 16px; }
  .cart-drawer { width: 100%; }
}

/* Клавиатура открыта: подсказки убираем, шапку чата ужимаем, нижний
   запас под «домашнюю полоску» снимаем */
html.kb-open .chat-suggests { display: none; }
html.kb-open .chat-head { padding-top: 8px; padding-bottom: 8px; }
html.kb-open .chat-head-sub { display: none; }
html.kb-open .chat-window { padding-bottom: 0; }

/* Поля ввода не меньше 16px: iPhone иначе приближает страницу при касании
   и обратно уже не отдаляет. Правило стоит последним, чтобы перебить
   более специфичные объявления выше. */
@media (max-width: 900px) {
  .cz-search input,
  .cz-field input,
  .cz-field textarea,
  .cz-field select,
  .cz-sort select,
  .chat-input-row input {
    font-size: 16px;
  }
}

/* Страховка боковых полей контейнера, в том числе под вырез экрана */
.cz-container {
  padding-left: max(var(--pad), env(safe-area-inset-left));
  padding-right: max(var(--pad), env(safe-area-inset-right));
}


/* ================================================================
   ПОЛОСА ПРО СЕРТИФИКАТ И МЕЛКИЕ ПОДПИСИ ШАПКИ
   Идёт последним и переопределяет базовые правила выше.
   ================================================================ */

.cz-promo .cz-container { padding-top: 0; padding-bottom: 0; }
.cz-promo__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
  font-family: var(--head-font);
  font-size: 12px;
  line-height: 17px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #43301F;
  text-align: center;
}
.cz-promo__inner svg { flex: none; color: var(--accent-dark); }
.cz-promo__inner a {
  flex: none;
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color .2s;
}
.cz-promo__inner a:hover { color: var(--text); }

/* Телефон в шапке: номер заголовочным шрифтом, подпись капителью */
.cz-headphone a {
  font-family: var(--head-font);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.cz-headphone span {
  margin-top: 3px;
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-2);
}

@media (max-width: 700px) {
  /* На телефоне полоса течёт одним предложением по центру: во flex-строке
     хвост «руб.» повисал на второй строке, а ссылка отрывалась вправо */
  .cz-promo__inner {
    display: block;
    font-size: 10px;
    line-height: 16px;
    letter-spacing: 0.08em;
    padding-top: 9px;
    padding-bottom: 9px;
  }
  .cz-promo__inner svg {
    width: 12px; height: 12px;
    display: inline-block;
    vertical-align: -2px;
    margin-right: 6px;
  }
  .cz-promo__inner a { margin-left: 6px; }
}


/* ================================================================
   ЦВЕТ И ПЛАВНОСТЬ (просьба Куксы: чуть-чуть цветов и анимаций).
   Слой идёт последним и переопределяет базовые правила выше.
   Взято выборочно из третьей версии: без тёмного подвала, бегущей
   строки и счётчиков — вторая остаётся второй, просто теплее и живее.
   ================================================================ */

::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Подпись-кикер охрой над заголовком секции */
.cz-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.cz-kicker::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
}

/* Ссылка «Посмотреть все» со стрелкой, стрелка отъезжает при наведении */
.cz-link-accent { display: inline-flex; align-items: baseline; gap: 8px; }
.cz-link-accent::after { content: '→'; transition: transform .25s var(--ease); }
.cz-link-accent:hover { text-decoration: none; }
.cz-link-accent:hover::after { transform: translateX(5px); }

/* Кнопки мягко приподнимаются */
.cz-btn { transition: background .25s, border-color .25s, color .25s, transform .2s var(--ease), box-shadow .25s; }
.cz-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(168, 10, 48, .22); }
.cz-btn--outline:hover { background: var(--text); border-color: var(--text); color: #fff; box-shadow: 0 10px 24px rgba(15, 15, 15, .16); }
.cz-btn--dark:hover { box-shadow: 0 10px 24px rgba(15, 15, 15, .2); }

/* Карточка товара: фото наезжает медленнее и мягче, сердечко с хлопком */
.cz-card__media img { transition: transform 1.1s var(--ease); }
.cz-card:hover .cz-card__media img { transform: scale(1.05); }
.cz-card__like {
  background: rgba(255, 255, 255, .85);
  border-radius: 50%;
  transition: transform .2s var(--ease);
}
.cz-card__like:active { transform: scale(.85); }
.cz-card__like.active .on { animation: cz-pop .35s var(--ease); }
@keyframes cz-pop {
  0% { transform: scale(.6); }
  60% { transform: scale(1.25); }
  100% { transform: scale(1); }
}
.cz-card__add { transition: border-color .2s, color .2s, background .2s; }

/* Плитки категорий: подпись приподнимается, появляется стрелка */
.cz-tile img { transition: transform 1.1s var(--ease); }
.cz-tile__cap { transition: transform .35s var(--ease); padding-bottom: 16px; }
.cz-tile__cap b::after {
  content: '→';
  margin-left: 8px;
  opacity: 0;
  display: inline-block;
  transform: translateX(-6px);
  transition: opacity .3s, transform .3s var(--ease);
}
.cz-tile:hover .cz-tile__cap { transform: translateY(-4px); }
.cz-tile:hover .cz-tile__cap b::after { opacity: 1; transform: none; }

/* Баннеры: текст всплывает построчно, фото медленно наезжает,
   точки — чёрточки, активная заполняется за время показа */
.cz-slide__photo img { transition: transform 12s linear; }
.cz-slide.is-active .cz-slide__photo img { transform: scale(1.07); }
.cz-slide.is-active .cz-slide__kicker { animation: cz-rise .6s var(--ease) both .05s; }
.cz-slide.is-active .cz-slide__title { animation: cz-rise .7s var(--ease) both .15s; }
.cz-slide.is-active .cz-slide__text p { animation: cz-rise .7s var(--ease) both .25s; }
.cz-slide.is-active .cz-slide__cta { animation: cz-rise .7s var(--ease) both .35s; }
@keyframes cz-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
.cz-hero__dots { gap: 8px; }
.cz-hero__dots button {
  width: 34px;
  height: 2px;
  background: rgba(15, 15, 15, .18);
  position: relative;
  overflow: hidden;
}
.cz-hero__dots button.active { background: rgba(15, 15, 15, .18); }
.cz-hero__dots button.active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--text);
  transform-origin: left;
  animation: cz-fill 7s linear both;
}
@keyframes cz-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Шапка: тень после начала прокрутки, подчёркивание пунктов меню */
.cz-header { transition: box-shadow .3s; }
.cz-header.is-scrolled { box-shadow: 0 8px 28px rgba(15, 15, 15, .08); }
.cz-menu a { position: relative; }
.cz-menu a:not(.cz-menu__btn)::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 12px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s var(--ease);
}
.cz-menu a:not(.cz-menu__btn):hover::after { transform: scaleX(1); }
.cz-menu a.is-current { box-shadow: none; }
.cz-menu a.is-current::after { transform: scaleX(1); }

/* Карусели: круглые стрелки с заливкой при наведении */
.cz-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.cz-arrow:hover { background: var(--text); border-color: var(--text); color: #fff; }
.cz-arrow--prev:hover { transform: translateX(-2px); }
.cz-arrow--next:hover { transform: translateX(2px); }

/* Появление блоков при прокрутке */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv-on { opacity: 1; transform: none; }

/* Кнопка «наверх» */
.cz-btt {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 94;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .3s, transform .3s var(--ease), border-color .2s, visibility .3s;
}
.cz-btt.show { opacity: 1; visibility: visible; transform: none; }
.cz-btt:hover { border-color: var(--text); }
body.chat-open .cz-btt, body.menu-open .cz-btt { display: none; }

/* Отзывы: белые карточки с кавычкой, мягкий подъём */
.cz-review {
  background: #fff;
  border: 1px solid var(--line-soft);
  padding: 24px;
  margin-right: 16px;
  position: relative;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.cz-review:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15, 15, 15, .07); }
.cz-review::before {
  content: '\201C';
  position: absolute;
  top: 6px; right: 18px;
  font-family: var(--head-font);
  font-size: 64px;
  line-height: 1;
  color: var(--beige);
}
.cz-review__stars { color: var(--accent); }

/* Мелочи: плюс в вопросах поворачивается, иконки доверия охрой,
   карточки-плитки приподнимаются, поля подсвечиваются */
.cz-faq summary::after { display: inline-block; transition: transform .3s var(--ease); }
.cz-faq details[open] summary::after { content: '+'; transform: rotate(45deg); }
.cz-faq summary { transition: color .2s; }
.cz-faq summary:hover { color: var(--accent-dark); }
.cz-trust__item svg { color: var(--accent); }
.cz-trust__item { transition: transform .3s var(--ease); }
.cz-trust__item:hover { transform: translateY(-3px); }
.cz-info-card { transition: transform .3s var(--ease), box-shadow .3s; }
.cz-info-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15, 15, 15, .06); }
.cz-field input, .cz-field textarea { transition: border-color .2s, box-shadow .2s; }
.cz-field input:focus, .cz-field textarea:focus { box-shadow: 0 0 0 3px rgba(211, 11, 59, .12); }
.cz-search input { transition: border-color .2s, box-shadow .2s; }
.cz-search input:focus { box-shadow: 0 0 0 3px rgba(211, 11, 59, .12); }
.cz-chip { transition: border-color .2s, background .2s, color .2s; }
.cz-gallery__thumbs button { opacity: .55; transition: opacity .2s, border-color .2s; }
.cz-gallery__thumbs button:hover, .cz-gallery__thumbs button.active { opacity: 1; }
.cz-mp a { transition: border-color .2s, transform .2s var(--ease); }
.cz-mp a:hover { transform: translateX(3px); }
.cart-overlay { backdrop-filter: blur(2px); }
.cart-drawer { transition: transform .45s var(--ease); }
.chat-fab { transition: transform .25s var(--ease), background .2s; }
.chat-fab:hover { transform: scale(1.07); }

/* Отключённая анимация уважается */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .rv { opacity: 1; transform: none; }
}

@media (max-width: 700px) {
  .cz-btt { right: 16px; bottom: 84px; width: 40px; height: 40px; }
  .cz-review { margin-right: 10px; padding: 18px; }
}

/* Страховка баннера: анимация не отработала — текст всё равно виден */
.cz-slide.anim-done .cz-slide__kicker,
.cz-slide.anim-done .cz-slide__title,
.cz-slide.anim-done .cz-slide__text p,
.cz-slide.anim-done .cz-slide__cta {
  animation: none;
  opacity: 1;
  transform: none;
}

/* ================================================================
   ЕЩЁ ЦВЕТА (Кукса: «побольше цветов») И НОВЫЕ ВОПРОСЫ-ОТВЕТЫ.
   Второй цвет — хвоя и янтарь из фирменной палитры «Чараўніцы»,
   ими выкрашен блок про подарочный сертификат.
   ================================================================ */

/* Кавычка на карточке отзыва наезжала на заголовок товара — убрана */
.cz-review::before { content: none; }

/* Цены — тёплой охрой (красный у скидок остаётся красным) */
.cz-price { color: var(--accent-dark); }
.cz-price--old { color: var(--grey); }
.cz-price--red { color: var(--red); }
.cart-total { color: var(--accent-dark); }
.cz-sum-total b { color: var(--accent-dark); }

/* Выбранный раздел и размер — охрой, а не чёрным */
.cz-chip:hover { border-color: var(--accent); color: var(--accent-dark); }
.cz-chip.is-active { border-color: var(--accent); background: var(--accent); color: #fff; }
.cz-chip.is-active:hover { color: #fff; }
.cz-chip.is-active .cz-chip__count { color: rgba(255, 255, 255, .75); }

/* Заполнение активной точки баннера — охрой */
.cz-hero__dots button.active::after { background: var(--accent); }

/* Плашки плиток категорий — тёплый коричневый вместо чёрного */
.cz-tile__cap {
  background: linear-gradient(to top, rgba(15, 15, 15, .62) 0%, rgba(15, 15, 15, .3) 45%, rgba(15, 15, 15, 0) 100%);
}

/* Сообщения-тосты и мелочи */
.toast { background: var(--accent-dark); }
.cz-btt:hover { border-color: var(--accent); color: var(--accent-dark); }
.cz-card__sizes a:hover { border-color: var(--accent); color: var(--accent-dark); }
.cz-variants__list a:hover { border-color: var(--accent); }
.cz-variants__list a.is-current { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.cz-tabs__nav button.active { color: var(--accent-dark); box-shadow: inset 0 -2px 0 var(--accent); }

/* ---------------- Вопросы и ответы: карточки ---------------- */

.cz-faq { gap: 10px 16px; align-items: start; }
.cz-faq details {
  background: var(--bg-grey);
  border: 1px solid var(--line-soft);
  padding: 0 18px;
  transition: border-color .25s, background .25s;
}
.cz-faq details:hover { border-color: var(--accent); }
.cz-faq details[open] { background: #fff; border-color: var(--accent); }
.cz-faq summary {
  padding: 15px 52px 15px 0;
  font-weight: 500;
}
.cz-faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  margin-top: -13px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: rgba(211, 11, 59, .1);
  color: var(--accent-dark);
  font-size: 17px;
  line-height: 1;
  transition: transform .3s var(--ease), background .2s, color .2s;
}
.cz-faq details[open] summary::after {
  background: var(--accent);
  color: #fff;
  transform: rotate(45deg);
}
.cz-faq .cz-faq__answer { padding: 0 52px 16px 0; }

/* ------- Подарочный блок в подвале — цвета «Чараўніцы» ------- */

.cz-footer__promo { background: #232D1D; }
.cz-footer__promo h2 { color: #F2EDE3; }
.cz-footer__promo p { color: rgba(242, 237, 227, .72); }
.cz-footer__promo .cz-btn {
  background: #E4A853;
  border-color: #E4A853;
  color: #1A150F;
}
.cz-footer__promo .cz-btn:hover {
  background: #D89A3E;
  border-color: #D89A3E;
  color: #1A150F;
  box-shadow: 0 10px 24px rgba(228, 168, 83, .3);
}

/* Подсказка про сертификаты в оформлении заказа — тёплый янтарный */
.cz-promo-box { background: #F4E5CB; }

/* Инстаграм в подвале: цветная иконка и подпись рядом */
.cz-footer__social { align-items: center; }
.cz-footer__social a:first-child { width: 40px; height: 40px; }
.cz-footer__social a:first-child:hover { border-color: #DD2A7B; }
.cz-footer__social-name {
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  font-weight: 500;
}
.cz-footer__social-name:hover { color: #DD2A7B !important; }


/* ================================================================
   КРАСНАЯ ТЕМА И ПРАВКИ ПО ВСТРЕЧЕ С КЛИЕНТОМ (25.08).
   Слой идёт последним и переопределяет всё выше.
   ================================================================ */

/* Логотип SKAЗKA: кириллическая З выделена фирменным цветом */
.cz-logo__word b { font-weight: inherit; font-style: normal; color: var(--accent); }

/* -------- Полоса про сертификат: шире и розово-красная -------- */

.cz-promo { background: var(--accent); }
.cz-promo__inner {
  padding-top: 13px;
  padding-bottom: 13px;
  font-size: 13px;
  color: #fff;
}
.cz-promo__inner svg { color: #fff; }
.cz-promo__inner a { color: #fff; }
.cz-promo__inner a:hover { color: rgba(255, 255, 255, .8); }

/* ------------- Баннер-акция и зелёный баннер ------------- */

.cz-slide--sale { background: var(--accent); color: #fff; }
.cz-slide--sale .cz-slide__kicker { color: rgba(255, 255, 255, .85); }
.cz-slide--sale .cz-slide__title { font-size: 48px; line-height: 52px; }
.cz-slide--sale .cz-slide__cta .cz-btn { background: #fff; border-color: #fff; color: var(--accent); }
.cz-slide--sale .cz-slide__cta .cz-btn:hover { background: var(--text); border-color: var(--text); color: #fff; }

.cz-slide--green { background: #232D1D; color: #F2EDE3; }
.cz-slide--green .cz-slide__kicker { color: #E4A853; }
.cz-slide--green .cz-slide__cta .cz-btn { background: #E4A853; border-color: #E4A853; color: #1A150F; }
.cz-slide--green .cz-slide__cta .cz-btn:hover { background: #D89A3E; border-color: #D89A3E; color: #1A150F; }

/* Стрелки листания баннеров */
/* Стрелки полупрозрачные: под ними должно читаться и то, что на баннере */
.cz-hero__arrow {
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .45);
  color: #fff;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .25));
  z-index: 6;
}
.cz-hero__arrow:hover {
  background: rgba(255, 255, 255, .92);
  border-color: #fff;
  color: var(--text);
}
.cz-hero__arrow.cz-arrow--prev { left: 14px; }
.cz-hero__arrow.cz-arrow--next { right: 14px; }
.cz-hero__arrow:hover { transform: translateY(-50%); }
.cz-hero__arrow[hidden] { display: none; }

/* Точки на цветных баннерах — белые */
.cz-hero__dots button { background: rgba(255, 255, 255, .38); }
.cz-hero__dots button.active { background: rgba(255, 255, 255, .38); }
.cz-hero__dots button.active::after { background: #fff; }

/* ------------------- Цены: красная тема ------------------- */

/* Текущие цены — красные, зачёркнутые старые — серые */
.cart-item > b { color: var(--red); font-family: var(--head-font); font-weight: 500; }
.cart-total { color: var(--red); }
.cz-sum-total b { color: var(--red); }
.cz-aside__price .cz-price--old { font-size: 18px; }

/* Размеры на карточке: просто текст без рамок, активный подчёркнут */
.cz-card__sizes { gap: 4px 12px; }
.cz-card__size {
  padding: 0;
  border: 0;
  background: none;
  font-size: 12px;
  line-height: 17px;
  color: var(--grey);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.cz-card__size:hover { color: var(--accent); }
.cz-card__size.is-on { color: var(--text); border-bottom-color: var(--text); }

/* ---------- Плитки категорий: название по центру фото ---------- */

.cz-tile { aspect-ratio: 1 / 1; }
.cz-tile__veil {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, .32);
  transition: background .35s;
}
.cz-tile:hover .cz-tile__veil { background: rgba(15, 15, 15, .48); }
.cz-tile__mid {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 16px;
  text-align: center;
  color: #fff;
}
.cz-tile__mid b {
  font-family: var(--head-font);
  font-size: clamp(19px, 1.7vw, 25px);
  line-height: 1.2;
  font-weight: 500;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .3);
}
.cz-tile__more {
  font-size: 11px;
  line-height: 16px;
  letter-spacing: .16em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, .55);
  padding-bottom: 3px;
  transition: border-color .2s;
}
.cz-tile:hover .cz-tile__more { border-color: #fff; }

/* ------------------- Полезные статьи ------------------- */

.cz-article-card { display: block; padding-right: 16px; }
.cz-article-card__photo {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bg-grey);
  margin-bottom: 14px;
}
.cz-article-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.cz-article-card:hover .cz-article-card__photo img { transform: scale(1.05); }
.cz-article-card b {
  display: block;
  font-family: var(--head-font);
  font-size: 18px;
  line-height: 23px;
  font-weight: 500;
  margin-bottom: 8px;
}
.cz-article-card:hover b { color: var(--accent-dark); }
.cz-article-card__lead {
  display: block;
  color: var(--grey);
  font-size: 14px;
  line-height: 20px;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cz-article-card__more { color: var(--accent); font-size: 14px; }
.cz-article-card__more::after { content: ' →'; }

.cz-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 24px;
  padding-bottom: 16px;
}
.cz-article-page { max-width: 860px; }
.cz-article-page__photo { aspect-ratio: 16 / 7; overflow: hidden; margin-bottom: 28px; background: var(--bg-grey); }
.cz-article-page__photo img { width: 100%; height: 100%; object-fit: cover; }
.cz-article-page__body h3 { margin: 28px 0 10px; font-size: 22px; }
.cz-article-page__body p { margin-bottom: 12px; font-size: 16px; line-height: 26px; }

/* --------------- Перелёт товара в корзину --------------- */

.fly-ghost {
  position: fixed;
  z-index: 210;
  object-fit: cover;
  pointer-events: none;
  transition: transform .62s cubic-bezier(.45, -.02, .72, .9), opacity .62s;
}

/* ------------------- Корзина ------------------- */

.cart-head { padding: 20px; }
.cart-head h3 { font-size: 22px; }
.cart-items { padding: 6px 20px; }
.cart-item { grid-template-columns: 72px minmax(0, 1fr) auto; padding: 16px 0; }
.cart-item img { width: 72px; height: 72px; }
.cart-promo {
  margin-bottom: 12px;
  padding: 12px 14px;
  background: #FBE9EC;
  font-size: 13px;
  line-height: 19px;
}
.cart-promo:empty { display: none; }
.cart-promo b { color: var(--accent-dark); }

/* ------------------- Оформление заказа ------------------- */

.cz-checkout form.cz-form {
  background: #fff;
  border: 1px solid var(--line-soft);
  padding: 26px;
}
.cz-checkout .cz-form h3 {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.cz-checkout .cz-panel { background: var(--bg-grey); border-color: var(--line-soft); }
.cz-pay label { background: #fff; }
.cz-pay label.selected { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.cz-promo-box { background: #FBE9EC; }
@media (min-width: 1025px) {
  .cz-checkout .cz-panel { position: sticky; top: 200px; }
}

/* ------------------- Мелкие доводки ------------------- */

.cz-hero__aside-title { font-size: 16px; }

@media (max-width: 1024px) {
  .cz-articles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .cz-slide--sale .cz-slide__title { font-size: 30px; line-height: 34px; }
  /* Стрелки баннера остаются и на телефоне: просили листать не только пальцем */
  .cz-hero__arrow { display: grid; width: 36px; height: 36px; }
  .cz-articles-grid { grid-template-columns: minmax(0, 1fr); }
  .cz-article-card { padding-right: 10px; }
  .cz-article-page__photo { aspect-ratio: 16 / 10; }
  .cz-promo__inner { font-size: 11px; }
  .cz-tile__mid b { font-size: 17px; }
}

/* Полоса-акция ещё заметнее (Кукса: «шире») */
.cz-promo__inner {
  padding-top: 15px;
  padding-bottom: 15px;
  font-size: 14px;
  line-height: 19px;
}

/* Строка скидки в корзине и в сводке заказа */
.cart-sale {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
  font-size: 14px;
}
.cart-sale:empty { display: none; }
.cart-sale b { color: var(--red); font-family: var(--head-font); font-weight: 500; font-size: 16px; }
.cz-sum-line--sale span:last-child { color: var(--red); font-weight: 500; }

@media (max-width: 700px) {
  .cz-promo__inner { font-size: 12px; line-height: 17px; }
}

/* Баннеры без кнопок: кликабелен весь баннер целиком */
a.cz-slide { cursor: pointer; }
a.cz-slide:focus-visible { outline-offset: -3px; }
/* Лёгкий намёк на клик: стрелка после последнего абзаца текста */
.cz-slide__text p:last-of-type::after {
  content: ' →';
  opacity: .7;
}
.cz-slide__text p { margin-bottom: 0; }

/* Фото на карточках без обрезки. Почти все фото, включая карточки с
   Wildberries с надписями, вертикальные 3:4. Окно фото делаем таким же,
   тогда информация на картинке видна целиком. У редких квадратных фото
   слегка подрежутся белые поля по бокам, это не страшно. */
.cz-card__media { aspect-ratio: 3 / 4; }
.cz-search__item img { object-fit: cover; }

/* Галерея товара на телефоне: тоже 3:4, а не квадрат */
@media (max-width: 1024px) {
  .cz-gallery__main { aspect-ratio: 3 / 4; }
}

/* Полоса сверху: розовая и ещё шире, просьба Куксы 25.08 */
.cz-promo { background: #E7517B; }
.cz-promo__inner {
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 15px;
  line-height: 20px;
}
@media (max-width: 700px) {
  .cz-promo__inner {
    padding-top: 14px;
    padding-bottom: 14px;
    font-size: 12px;
    line-height: 17px;
  }
}

/* Подпись разработчика: последняя, самая мелкая строка подвала */
.cz-footer__dev .cz-container {
  padding-top: 0;
  padding-bottom: 22px;
  font-size: 11px;
  line-height: 16px;
  color: var(--grey);
}
.cz-footer__dev a {
  color: var(--grey);
  text-decoration: none;
  transition: color .2s;
}
.cz-footer__dev a:hover { color: var(--grey-2); }
