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

/* ── Страница доставки: HTML-блоки ─────────────────────────────────────── */
.bsb-delivery-block { display: flex; flex-direction: column; gap: 20px; }
.bsb-delivery-block h2 { font-size: 28px; font-weight: 500; color: #202020; line-height: 1.2; }
.bsb-delivery-block h3 { font-size: 16px; font-weight: 500; color: #202020; margin-top: 10px; }
.bsb-delivery-block p  { font-size: 14px; color: #999; line-height: 1.6; }
.bsb-delivery-block ul,
.bsb-delivery-block ol { font-size: 14px; color: #999; line-height: 1.6; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
@media (min-width: 1024px) {
  .bsb-delivery-block h2 { font-size: 40px; line-height: 60px; }
  .bsb-delivery-block h3 { font-size: 20px; }
}
html, body { overflow-x: hidden; }
body { font-family: 'Onest', sans-serif; font-weight: 300; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

/* ── Toast (глобальный) ─────────────────────────────────────────────────── */
#bsb-toast { position:fixed; bottom:30px; left:50%; transform:translateX(-50%) translateY(20px); background:#16627d; color:#fff; padding:14px 24px; border-radius:8px; font-size:14px; font-weight:500; white-space:nowrap; z-index:9999; opacity:0; pointer-events:none; transition:opacity 0.3s ease, transform 0.3s ease; display:flex; align-items:center; gap:10px; box-shadow:0 4px 20px rgba(0,0,0,0.18); }
#bsb-toast.show { opacity:1; transform:translateX(-50%) translateY(0); pointer-events:auto; }
#bsb-toast svg { flex-shrink:0; }
#bsb-toast a { color:#fff; text-decoration:underline; font-size:13px; opacity:0.85; }
#bsb-toast.error { background:#c00; }

/* ── Scroll offset for fixed header ─────────────────────────── */
[id] { scroll-margin-top: 120px; }

/* ── Header theme ──────────────────────────────────────────
   По умолчанию — тёмный (поверх hero с тёмным фоном).
   Класс .light переключается JS-ом при выходе за пределы hero.
───────────────────────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  --hdr-text:       #ffffff;
  --hdr-text-muted: rgba(255,255,255,0.75);
  --hdr-border:     rgba(255,255,255,0.4);
  --hdr-bg:         transparent;
  --hdr-burger:     #ffffff;
  --hdr-logo:       #ffffff;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
#site-header.light {
  --hdr-text:       #202020;
  --hdr-text-muted: #202020;
  --hdr-border:     #e3e1e1;
  --hdr-bg:         #ffffff;
  --hdr-burger:     #202020;
  --hdr-logo:       #16627d;
}

#site-header { background: var(--hdr-bg); border-bottom-color: var(--hdr-border); }
#site-header .hdr-text  { color: var(--hdr-text); }
#site-header .hdr-muted { color: var(--hdr-text-muted); }
#site-header .hdr-icon  { color: var(--hdr-text); }
#site-header .hdr-logo-svg { color: var(--hdr-logo); }
#site-header #burger span { background-color: var(--hdr-burger); }
#site-header .bsb-cart-badge { color: var(--hdr-text); border-color: var(--hdr-text); background: transparent; }
#site-header.light .bsb-cart-badge { background: #ffffff; }
#bsb-mob-cart-count { color: #ea7a3f; border-color: #ea7a3f; background: #ffffff; font-size: 8px; }


/* ── Fixed side nav ─────────────────────────────────────────────
   Два режима: light (светлые секции) и dark (тёмная секция).
   Класс .dark переключается JS-ом через data-nav-theme.
   Нет точек — каждый item имеет свой сегмент вертикальной линии.
──────────────────────────────────────────────────────────── */
#side-nav {
  --snav-seg:         #cccccc;
  --snav-seg-active:  #16627d;
  --snav-text:        #999999;
  --snav-text-active: #16627d;
  opacity: 0;
  transition: opacity 0.25s;
}
#side-nav.dark {
  --snav-seg:         rgba(255,255,255,0.3);
  --snav-seg-active:  #ea7a3f;
  --snav-text:        rgba(255,255,255,0.7);
  --snav-text-active: #ea7a3f;
}

#side-nav .side-nav-seg   { background-color: var(--snav-seg); transition: background-color 0.25s; }
#side-nav .side-nav-label { color: var(--snav-text); transition: color 0.25s, font-weight 0s; }

#side-nav .side-nav-item.active .side-nav-seg  { background-color: var(--snav-seg-active); }
#side-nav .side-nav-item.active .side-nav-label {
  color: var(--snav-text-active);
  font-weight: 500;
}

/* Scrollbar hide */
.no-scroll::-webkit-scrollbar { display: none; }
.no-scroll { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-none::-webkit-scrollbar { display: none; }
.scrollbar-none { -ms-overflow-style: none; scrollbar-width: none; }

/* Mobile menu */
#mobile-menu { z-index: 60; transition: opacity 0.3s ease, visibility 0.3s ease; }

/* ── Catalogue cards ─────────────────────────────────────────── */
.cat-card {
  flex-shrink: 0;
  width: calc((100% - 40px) / 3);
}
@media (max-width: 1023px) {
  .cat-card { width: 70vw; }
}

/* ── Card photo slider ───────────────────────────────────────── */
.card-slider {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  aspect-ratio: 1/1;
  background: #f8f8f8;
  user-select: none;
}
.card-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}
.card-slider-track.no-transition { transition: none; }
.card-slider-track img {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}
.card-slider-dots {
  position: absolute;
  bottom: 12px;
  left: 10px;
  right: 10px;
  display: flex;
  gap: 4px;
}
.card-slider-dot {
  flex: 1;
  height: 2px;
  border-radius: 1px;
  background: rgba(255,255,255,0.4);
  transition: background 0.2s;
}
.card-slider-dot.active { background: #ffffff; }

/* ── CF7 форма (bsb-cf7) ─────────────────────────────────────────────────── */
.bsb-cf7 .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

@media (min-width: 1024px) {
  .bsb-cf7 .wpcf7-form {
    width: 437px;
  }
}

/* Поля */
.bsb-cf7 .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(153,153,153,0.6);
}

.bsb-cf7 input[type="text"],
.bsb-cf7 input[type="tel"],
.bsb-cf7 input[type="email"],
.bsb-cf7 textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 12px;
  color: #202020;
  font-family: inherit;
  resize: none;
}

.bsb-cf7 input::placeholder,
.bsb-cf7 textarea::placeholder {
  color: #999999;
}

.bsb-cf7 textarea {
  min-height: 24px;
}

/* Кнопка отправки */
.bsb-cf7 input[type="submit"] {
  background: #16627d;
  color: #fff;
  border: none;
  height: 50px;
  padding: 0 20px;
  border-radius: 5px;
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  align-self: flex-start;
}

.bsb-cf7 input[type="submit"]:hover {
  background: rgba(22,98,125,0.85);
}

/* Инлайн-сообщения CF7 скрыты — используем тосты */
.bsb-cf7 .wpcf7-response-output {
  display: none !important;
}

/* Подсветка невалидных полей оставляем */
.bsb-cf7 .wpcf7-not-valid-tip {
  font-size: 11px;
  color: #e53e3e;
  margin-top: 4px;
  display: block;
}

.bsb-cf7 .wpcf7-response-output {
  font-size: 12px;
  padding: 10px 14px;
  border-radius: 5px;
  border: none !important;
  margin: 0 !important;
}

.bsb-cf7 .wpcf7-mail-sent-ok {
  background: #e6f4ea;
  color: #276749;
}

.bsb-cf7 .wpcf7-mail-sent-ng,
.bsb-cf7 .wpcf7-spam-blocked,
.bsb-cf7 .wpcf7-validation-errors {
  background: #fff5f5;
  color: #c53030;
}

/* Спиннер отправки */
.bsb-cf7 .wpcf7-spinner {
  display: none;
}

/* Прикрепить файл */
.bsb-cf7 .wpcf7-form-control-wrap.bsb_file {
  border-bottom: 1px solid rgba(153,153,153,0.6);
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 16px;
}

.bsb-cf7 input[type="file"] {
  display: none;
}

.bsb-cf7 .wpcf7-form-control.wpcf7-file + .bsb-file-label,
.bsb-cf7 .bsb-file-label {
  font-size: 12px;
  color: #999999;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-bottom: 1px solid rgba(153,153,153,0.6);
  padding-bottom: 12px;
  padding-right: 16px;
}

.bsb-cf7 .bsb-file-label span.bsb-file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 300px;
}

/* ── Лайтбокс кейсов ──────────────────────────────────────────────────────── */
/* Текст согласия */
#bsb-consent-text a { color: #16627d; }

#bsb-lightbox { display: none; }
#bsb-lightbox img { transition: opacity 0.2s ease; }
.case-slider { cursor: zoom-in; }
