/*
Theme Name: БКС — БизнесКомплектСнаб
Theme URI: https://bks-electro.ru/
Author: ООО «БКС»
Description: Тема сайта комплексных поставок электротехнической продукции. Каталог направлений и инженерные расчёты редактируются из админки, тексты первого экрана — в Настройщике. Без внешних зависимостей.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bks
Tags: business, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ============================================================
   1. ТОКЕНЫ
   ============================================================ */
:root {
  /* фирменный градиент снят с логотипа */
  --bks-gold:        #EFB320;
  --bks-gold-deep:   #C6790F;
  --bks-gold-dark:   #8A5D04;
  --bks-gold-text:   #A97406;
  --bks-gold-pale:   #F5DC53;

  --bks-ink:         #17140E;
  --bks-ink-deep:    #0E0C08;
  --bks-ink-card:    #211D15;
  --bks-ink-line:    #262218;

  --bks-paper:       #FBF9F5;
  --bks-white:       #FFFFFF;
  --bks-line:        #EAE3D3;
  --bks-line-soft:   #EDE5D3;
  --bks-field:       #FBFAF7;
  --bks-field-line:  #E0D8C6;

  --bks-text:        #17140E;
  --bks-muted:       #6E6759;   /* AA на светлом */
  --bks-muted-dark:  #A8A093;   /* AA на тёмном  */
  --bks-faint-dark:  #8B8375;

  --bks-radius:      16px;
  --bks-radius-sm:   10px;
  --bks-pill:        999px;
  --bks-pad:         80px;
  --bks-max:         1440px;

  --bks-font-display: 'Unbounded', 'Trebuchet MS', system-ui, sans-serif;
  --bks-font-body:    'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ============================================================
   2. БАЗА
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bks-paper);
  color: var(--bks-text);
  font-family: var(--bks-font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--bks-gold-text); text-decoration: none; }
a:hover, a:focus-visible { color: var(--bks-gold-dark); text-decoration: underline; }

h1, h2, h3, h4 { margin: 0; font-family: var(--bks-font-display); font-weight: 600; letter-spacing: -0.035em; line-height: 1.15; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--bks-gold); outline-offset: 2px; border-radius: 4px; }

.bks-skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  padding: 12px 20px; background: var(--bks-ink); color: var(--bks-paper); font-weight: 600;
}
.bks-skip:focus { left: 8px; top: 8px; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.bks-shell { max-width: var(--bks-max); margin: 0 auto; padding-left: var(--bks-pad); padding-right: var(--bks-pad); }

/* ============================================================
   3. КНОПКИ
   ============================================================ */
.bks-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px; border: 1px solid transparent; border-radius: var(--bks-pill);
  font-family: var(--bks-font-body); font-size: 15px; font-weight: 700; line-height: 1;
  cursor: pointer; text-decoration: none; transition: background-color .18s ease, color .18s ease, border-color .18s ease;
  /* Подпись кнопки не переносим никогда: «Прайс-лист» ломался на две
     строки, когда рядом в шапке стояло поле поиска. */
  white-space: nowrap;
}
.bks-btn:hover, .bks-btn:focus-visible { text-decoration: none; }
.bks-btn svg { flex: 0 0 auto; }

.bks-btn--gold { background: var(--bks-gold); color: #17130A; }
.bks-btn--gold:hover, .bks-btn--gold:focus-visible { background: var(--bks-gold-pale); color: #17130A; }

.bks-btn--ink { background: var(--bks-ink); color: var(--bks-gold); }
.bks-btn--ink:hover, .bks-btn--ink:focus-visible { background: #2A251A; color: var(--bks-gold-pale); }

.bks-btn--ghost { border-color: rgba(251,249,245,.34); color: #F0EBE0; font-weight: 600; }
.bks-btn--ghost:hover, .bks-btn--ghost:focus-visible { border-color: var(--bks-gold); color: var(--bks-gold); }

.bks-btn--outline { border-color: #D9D0BC; color: #3E382C; font-weight: 600; }
.bks-btn--outline:hover, .bks-btn--outline:focus-visible { border-color: var(--bks-gold-text); color: var(--bks-gold-dark); }

.bks-btn--block { display: flex; width: 100%; justify-content: center; }

/* ============================================================
   4. ВЕРХНЯЯ СТРОКА + ШАПКА
   ============================================================ */
.bks-topbar { background: var(--bks-ink); color: var(--bks-muted-dark); font-size: 13px; }
.bks-topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 10px; padding-bottom: 10px; }
.bks-topbar__contacts { display: flex; align-items: center; gap: 24px; }
.bks-topbar a, .bks-topbar__phone { color: #DFD8C8; }
.bks-topbar a:hover, .bks-topbar a:focus-visible { color: var(--bks-gold); }
.bks-topbar__phone { font-weight: 600; }

.bks-header { background: var(--bks-paper); border-bottom: 1px solid var(--bks-line); }
.bks-header__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 18px; padding-bottom: 18px; }

.bks-brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.bks-brand:hover, .bks-brand:focus-visible { text-decoration: none; }
/* Пропорция знака 631:415 ≈ 1.52 — держим её, иначе вокруг
   логотипа появляются пустые поля от object-fit: contain. */
.bks-brand__mark { width: 52px; height: 34px; flex: 0 0 auto; }
.bks-brand__mark img, .bks-brand__mark svg { width: 100%; height: 100%; object-fit: contain; }
.bks-brand__text { display: flex; flex-direction: column; gap: 2px; }
.bks-brand__name { font-family: var(--bks-font-display); font-size: 15px; font-weight: 700; letter-spacing: -0.022em; color: var(--bks-ink); }
.bks-brand__tag { font-size: 11px; font-weight: 600; letter-spacing: .04em; color: #7E7768; text-transform: uppercase; }

.bks-nav ul { display: flex; align-items: center; gap: 27px; }
/* Пункты не переносим: «О компании» иначе ломается на две строки
   и перекашивает всю шапку. */
.bks-nav li { white-space: nowrap; }
.bks-nav a { font-size: 15px; font-weight: 500; color: #4F4A3E; }
.bks-nav a:hover, .bks-nav a:focus-visible { color: var(--bks-gold-dark); text-decoration: none; }
.bks-nav .current-menu-item > a,
.bks-nav .current_page_item > a { color: var(--bks-ink); font-weight: 600; }

.bks-header__tools { display: flex; align-items: center; gap: 10px; min-width: 0; }
/* Ужимается поиск, а не кнопка: обрезанный «Прайс-лист» хуже короткого поля. */
.bks-header__tools .bks-btn { flex: 0 0 auto; }

.bks-search { display: flex; align-items: center; gap: 9px; flex: 0 1 230px; min-width: 0; padding: 10px 14px; border: 1px solid #DFD6C2; border-radius: var(--bks-pill); background: var(--bks-white); }
.bks-search svg { flex: 0 0 auto; }
.bks-search input {
  width: 100%; border: 0; padding: 0; background: transparent;
  font-family: inherit; font-size: 14px; color: var(--bks-ink);
}
.bks-search input::placeholder { color: #857E70; opacity: 1; }
.bks-search input:focus { outline: none; }
.bks-search:focus-within { border-color: var(--bks-gold); }

.bks-burger { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid #DFD6C2; border-radius: var(--bks-radius-sm); background: var(--bks-white); cursor: pointer; }

/* ============================================================
   5. ПЕРВЫЙ ЭКРАН
   ============================================================ */
.bks-hero { position: relative; min-height: 480px; display: flex; align-items: center; overflow: hidden; background: var(--bks-ink); }
.bks-hero__media { position: absolute; inset: 0; }
.bks-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.bks-hero__scrim { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(15,12,7,.94) 0%, rgba(15,12,7,.84) 34%, rgba(15,12,7,.34) 62%, rgba(15,12,7,.06) 100%); }
.bks-hero__in { position: relative; width: 100%; padding-top: 74px; padding-bottom: 74px; }
.bks-hero__body { display: flex; flex-direction: column; gap: 24px; max-width: 700px; }

.bks-eyebrow {
  align-self: flex-start; padding: 8px 16px; border: 1px solid rgba(239,179,32,.45); border-radius: var(--bks-pill);
  background: rgba(239,179,32,.14); font-size: 12px; font-weight: 700; letter-spacing: .05em;
  color: #F3CE6B; text-transform: uppercase;
}
.bks-hero__title { font-size: clamp(28px, 3.1vw, 44px); color: var(--bks-paper); text-wrap: pretty; }
.bks-hero__lead { max-width: 550px; font-size: 17px; color: #CFC8BA; }
.bks-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 2px; }

/* ============================================================
   6. ПОЛОСА ЗАЯВКИ
   ============================================================ */
.bks-quote { position: relative; margin-top: -46px; z-index: 2; }
.bks-quote__card {
  display: grid; grid-template-columns: 250px minmax(0, 1fr) minmax(0, 1fr) 210px; gap: 16px; align-items: center;
  padding: 22px 26px; border: 1px solid var(--bks-line-soft); border-radius: 18px;
  background: var(--bks-white); box-shadow: 0 16px 44px rgba(23,20,14,.13);
}
.bks-quote__intro { display: flex; flex-direction: column; gap: 3px; }
.bks-quote__title { font-family: var(--bks-font-display); font-size: 16px; font-weight: 600; letter-spacing: -.025em; }
.bks-quote__note { font-size: 13px; color: var(--bks-muted); }

.bks-field { width: 100%; padding: 13px 15px; border: 1px solid var(--bks-field-line); border-radius: var(--bks-radius-sm); background: var(--bks-field); font-family: inherit; font-size: 14px; color: var(--bks-ink); }
.bks-field::placeholder { color: #847D6F; opacity: 1; }
.bks-field:focus { outline: none; border-color: var(--bks-gold); background: var(--bks-white); }

.bks-file { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 15px; border: 1px dashed #C3BAA4; border-radius: var(--bks-radius-sm); background: var(--bks-field); font-size: 14px; color: var(--bks-muted); cursor: pointer; }
.bks-file:hover, .bks-file:focus-within { border-color: var(--bks-gold); color: var(--bks-ink); }
.bks-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.bks-file__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.bks-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.bks-notice { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; padding: 15px 18px; border-radius: var(--bks-radius-sm); font-size: 15px; }
.bks-notice--ok   { background: #E8F3EC; border: 1px solid #B6D9C4; color: #22553A; }
.bks-notice--err  { background: #FBEDE9; border: 1px solid #E4BFB4; color: #7A3320; }

/* ============================================================
   7. СЕКЦИИ
   ============================================================ */
.bks-section { padding-top: 60px; padding-bottom: 74px; }
.bks-section--ink { background: var(--bks-ink); color: #F4F1E9; }
.bks-section--paper { background: var(--bks-paper); }

.bks-shead { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 34px; }
.bks-shead__left { display: flex; flex-direction: column; gap: 11px; }
.bks-shead__kicker { font-size: 12px; font-weight: 700; letter-spacing: .09em; color: var(--bks-gold-text); text-transform: uppercase; }
.bks-section--ink .bks-shead__kicker { color: var(--bks-gold); }
.bks-shead__title { font-size: clamp(24px, 2.5vw, 36px); }
.bks-section--ink .bks-shead__title { color: #F4F1E9; }
.bks-shead__aside { max-width: 340px; font-size: 15px; color: var(--bks-muted); text-align: right; }
.bks-section--ink .bks-shead__aside { color: var(--bks-muted-dark); }

/* ---- каталог: фотоплитка ---- */
.bks-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.bks-tile { position: relative; display: block; height: 236px; border-radius: var(--bks-radius); overflow: hidden; text-decoration: none; }
.bks-tile:hover, .bks-tile:focus-visible { text-decoration: none; }
.bks-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.bks-tile:hover img, .bks-tile:focus-visible img { transform: scale(1.045); }
.bks-tile__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,12,7,.06) 36%, rgba(15,12,7,.88) 100%); }
.bks-tile__label { position: absolute; left: 22px; right: 22px; bottom: 20px; font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--bks-paper); }

/* Плитка без фото. Держит ту же сетку, что и фотоплитка: подпись прижата
   к низу на той же линии, сверху — крупный знак вместо снимка. */
.bks-tile--accent {
  display: block;
  background:
    radial-gradient(122% 92% at 76% 26%, rgba(239,179,32,.34) 0%, rgba(239,179,32,0) 63%),
    linear-gradient(150deg, #2A2110 0%, #1A160E 56%, #100E09 100%);
}
.bks-tile__icon {
  position: absolute; top: 50%; right: -8px;
  transform: translateY(-64%);
  color: rgba(239,179,32,.44);
  pointer-events: none;
}
.bks-tile__accent-head {
  position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 20px;
  display: flex; flex-direction: column; gap: 6px;
}
.bks-tile--accent .bks-tile__label { position: static; left: auto; right: auto; bottom: auto; color: #FFFCF3; }
.bks-tile__accent-note { font-size: 13px; line-height: 1.5; color: rgba(255,251,240,.9); }

/* ---- расчёты ---- */
.bks-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bks-card { display: flex; flex-direction: column; gap: 14px; padding: 26px 24px 30px; border-radius: var(--bks-radius); background: var(--bks-ink-card); }
.bks-card__icon { color: var(--bks-gold); }
.bks-card__title { font-family: var(--bks-font-body); font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: #F4F1E9; }
.bks-card__text { font-size: 14px; color: var(--bks-muted-dark); }

.bks-card--gold { background: var(--bks-gold); }
.bks-card--gold .bks-card__icon { color: #17130A; }
.bks-card--gold .bks-card__title { color: #17130A; }
.bks-card--gold .bks-card__text { color: #5E4406; }

/* ============================================================
   8. ВНУТРЕННИЕ СТРАНИЦЫ
   ============================================================ */
.bks-page { padding-top: 56px; padding-bottom: 76px; }
.bks-page__head { margin-bottom: 30px; }
.bks-page__title { font-size: clamp(26px, 2.6vw, 38px); }
.bks-prose { max-width: 760px; font-size: 17px; color: #2E2A22; }
.bks-prose > * + * { margin-top: 1.1em; }
.bks-prose h2 { margin-top: 1.7em; font-size: 26px; }
.bks-prose h3 { margin-top: 1.5em; font-size: 21px; }
.bks-prose ul { padding-left: 1.2em; list-style: disc; }
.bks-prose li + li { margin-top: .45em; }
.bks-prose img { border-radius: var(--bks-radius); }

.bks-archive { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.bks-single__media { margin-bottom: 28px; border-radius: var(--bks-radius); overflow: hidden; }

.bks-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; font-size: 15px; font-weight: 600; }

/* ============================================================
   9. ПОДВАЛ
   ============================================================ */
.bks-footer { padding-top: 46px; padding-bottom: 40px; background: var(--bks-ink-deep); color: #A8A093; }
.bks-footer__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 56px; padding-bottom: 30px; border-bottom: 1px solid var(--bks-ink-line); }
.bks-footer__about { display: flex; flex-direction: column; gap: 13px; max-width: 300px; }
.bks-footer__mark { width: 48px; height: 32px; }
.bks-footer__mark img, .bks-footer__mark svg { width: 100%; height: 100%; object-fit: contain; }
.bks-footer__cols { display: flex; flex-wrap: wrap; gap: 54px; }
.bks-footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.bks-footer__ct { font-size: 12px; font-weight: 700; letter-spacing: .07em; color: #7C7466; text-transform: uppercase; }
.bks-footer a { color: #A8A093; }
.bks-footer a:hover, .bks-footer a:focus-visible { color: var(--bks-gold); }
.bks-footer__legal { display: block; padding-top: 22px; font-size: 13px; color: #7C7466; }

/* ============================================================
   10. АДАПТИВ
   ============================================================ */
@media (max-width: 1120px) {
  /* Места на всех троих не хватает. Поиск прячем: он есть на странице
     каталога, а меню и кнопка заявки нужны в шапке всегда. */
  .bks-search { display: none; }
}

@media (max-width: 1200px) {
  :root { --bks-pad: 48px; }
  .bks-quote__card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bks-quote__intro { grid-column: 1 / -1; }
  .bks-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bks-search { flex-basis: 180px; }
}

@media (max-width: 900px) {
  :root { --bks-pad: 24px; }
  .bks-header__in { flex-wrap: wrap; }
  .bks-burger { display: inline-flex; }
  .bks-nav { order: 3; width: 100%; }
  .bks-nav[hidden] { display: none; }
  .bks-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding-top: 8px; }
  .bks-nav li { border-top: 1px solid var(--bks-line); }
  .bks-nav a { display: block; padding: 14px 2px; font-size: 16px; }
  .bks-search { display: none; }
  .bks-topbar__in { flex-direction: column; align-items: flex-start; gap: 6px; }
  .bks-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bks-archive { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bks-shead { flex-direction: column; align-items: flex-start; gap: 14px; }
  .bks-shead__aside { text-align: left; }
  .bks-footer__top { flex-direction: column; gap: 32px; }
}

@media (max-width: 620px) {
  .bks-hero__in { padding-top: 48px; padding-bottom: 52px; }
  .bks-quote { margin-top: 0; padding-top: 28px; }
  .bks-quote__card { grid-template-columns: minmax(0, 1fr); }
  .bks-tiles { grid-template-columns: minmax(0, 1fr); }
  .bks-cards { grid-template-columns: minmax(0, 1fr); }
  .bks-archive { grid-template-columns: minmax(0, 1fr); }
  .bks-btn { width: 100%; justify-content: center; }
  .bks-footer__cols { gap: 28px; }

  /* Пальцем в строку высотой 21px не попасть. Ссылки, по которым реально
     нажимают с телефона, разводим до 44px — это телефон и почта в верхней
     полосе (для поставщика звонок — главное действие) и весь подвал. */
  .bks-topbar__in { gap: 2px; }
  .bks-topbar__contacts { gap: 4px; flex-direction: column; align-items: flex-start; width: 100%; }
  .bks-topbar__contacts a,
  .bks-topbar__contacts .bks-topbar__phone {
    display: inline-flex; align-items: center; min-height: 44px; font-size: 15px;
  }
  .bks-topbar__phone { font-size: 16px; }

  .bks-footer__col { gap: 2px; }
  .bks-footer__col a,
  .bks-footer__col > span:not(:first-child) {
    display: inline-flex; align-items: center; min-height: 40px;
  }

  /* Заголовки-ссылки внутри карточек и списков — цели 24-25px.
     Добиваем отступами до 44px, чтобы палец попадал по названию,
     а не между строк. */
  .bks-card__title a,
  .bks-catcard__title a {
    display: block; padding: 11px 0;
  }
  .bks-list__link {
    display: inline-flex; align-items: center; min-height: 44px;
  }

  /* Телефон и почта на странице «Контакты» — то, ради чего её и открывают
     с телефона. Цель должна быть крупной и заметной. */
  .bks-contact-row__value--link {
    display: inline-flex; align-items: center; min-height: 44px; font-size: 17px;
  }

  /* Ссылка «назад в каталог» на странице направления. */
  .bks-back { min-height: 44px; margin-bottom: 14px; }

  /* 11px под логотипом на телефоне уже неразборчиво. */
  .bks-brand__tag { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .bks-tile:hover img { transform: none; }
}

/* ============================================================
   11. ШАПКА ВНУТРЕННЕЙ СТРАНИЦЫ
   ============================================================ */
.bks-pagehero { padding-top: 52px; padding-bottom: 46px; background: var(--bks-ink); color: #F4F1E9; }
.bks-pagehero__in { display: flex; flex-direction: column; gap: 12px; }
.bks-pagehero__title { font-size: clamp(28px, 3vw, 42px); color: #F7F4EC; }
.bks-pagehero__lead { max-width: 620px; font-size: 17px; color: var(--bks-muted-dark); }

/* ============================================================
   12. О КОМПАНИИ
   ============================================================ */
.bks-about { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.bks-about__text { max-width: none; }

.bks-facts { display: flex; flex-direction: column; gap: 12px; }
.bks-fact {
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px 24px; border: 1px solid var(--bks-line); border-radius: var(--bks-radius); background: var(--bks-white);
}
.bks-fact__num { font-family: var(--bks-font-display); font-size: 32px; font-weight: 700; letter-spacing: -.035em; color: var(--bks-gold-text); }
.bks-fact__label { font-size: 14px; line-height: 1.5; color: var(--bks-muted); }

.bks-fact--gold {
  flex-direction: row; align-items: center; gap: 14px;
  border-color: transparent;
  background: linear-gradient(150deg, var(--bks-gold-dark) 0%, var(--bks-gold-deep) 44%, var(--bks-gold) 100%);
  color: #FFFCF3;
}
.bks-fact--gold .bks-fact__label { font-weight: 600; color: #FFFCF3; }
.bks-fact--gold svg { flex: 0 0 auto; }

/* Нумерованный список ассортимента */
.bks-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--bks-line); border: 1px solid var(--bks-line); border-radius: var(--bks-radius); overflow: hidden; }
.bks-list__item { display: flex; align-items: center; gap: 14px; padding: 20px 22px; background: var(--bks-white); }
.bks-list__num { font-family: var(--bks-font-display); font-size: 12px; font-weight: 600; color: var(--bks-gold-text); }
.bks-list__link { font-size: 15px; font-weight: 500; color: var(--bks-text); }
.bks-list__link:hover, .bks-list__link:focus-visible { color: var(--bks-gold-dark); text-decoration: none; }

/* Полоса призыва */
.bks-cta { background: var(--bks-gold); color: #17130A; }
.bks-cta__in { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding-top: 46px; padding-bottom: 46px; }
.bks-cta__text { display: flex; flex-direction: column; gap: 8px; }
.bks-cta__title { font-size: clamp(22px, 2.2vw, 30px); }
.bks-cta__note { font-size: 16px; color: #5E4406; }

/* ============================================================
   13. КОНТАКТЫ
   ============================================================ */
.bks-contacts { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 48px; align-items: start; }
.bks-contacts__side { display: flex; flex-direction: column; gap: 24px; }
.bks-contacts__prose { max-width: none; font-size: 16px; }

.bks-contact-card { display: flex; flex-direction: column; border: 1px solid var(--bks-line); border-radius: var(--bks-radius); background: var(--bks-white); overflow: hidden; }
.bks-contact-row { display: flex; flex-direction: column; gap: 5px; padding: 20px 24px; }
.bks-contact-row + .bks-contact-row { border-top: 1px solid var(--bks-line); }
.bks-contact-row__label { font-size: 12px; font-weight: 700; letter-spacing: .07em; color: #7E7768; text-transform: uppercase; }
.bks-contact-row__value { font-size: 19px; font-weight: 600; color: var(--bks-text); }
.bks-contact-row__value--link { color: var(--bks-gold-text); }
.bks-contact-row__value--link:hover, .bks-contact-row__value--link:focus-visible { color: var(--bks-gold-dark); }

.bks-contact-hint { padding: 18px 24px; border-top: 1px dashed var(--bks-field-line); font-size: 14px; line-height: 1.55; color: var(--bks-muted); }

.bks-req { padding: 24px; border: 1px solid var(--bks-line); border-radius: var(--bks-radius); background: #F6F3EC; }
.bks-req__title { display: block; margin-bottom: 14px; font-size: 12px; font-weight: 700; letter-spacing: .07em; color: #7E7768; text-transform: uppercase; }
.bks-req__list { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 10px 18px; margin: 0; font-size: 15px; }
.bks-req__list dt { color: var(--bks-muted); }
.bks-req__list dd { margin: 0; color: var(--bks-text); }

/* Развёрнутая форма */
.bks-form { display: flex; flex-direction: column; gap: 18px; padding: 30px 30px 34px; border: 1px solid var(--bks-line-soft); border-radius: 18px; background: var(--bks-white); box-shadow: 0 16px 44px rgba(23,20,14,.10); }
.bks-form__title { font-size: 24px; }
.bks-form__row { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.bks-form__hint { font-size: 13px; color: var(--bks-muted); }
.bks-label { font-size: 14px; font-weight: 600; color: #3E382C; }
.bks-req-mark { color: var(--bks-gold-text); }
.bks-field--area { resize: vertical; min-height: 118px; font-family: inherit; line-height: 1.55; }

/* ============================================================
   14. АДАПТИВ ВНУТРЕННИХ СТРАНИЦ
   ============================================================ */
@media (max-width: 1200px) {
  .bks-about { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
  .bks-contacts { grid-template-columns: minmax(0, 1fr) 440px; gap: 36px; }
  .bks-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .bks-about { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .bks-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bks-contacts { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .bks-cta__in { flex-direction: column; align-items: flex-start; gap: 22px; }
}

@media (max-width: 620px) {
  .bks-pagehero { padding-top: 34px; padding-bottom: 30px; }
  .bks-facts { grid-template-columns: minmax(0, 1fr); }
  .bks-list { grid-template-columns: minmax(0, 1fr); }
  .bks-req__list { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .bks-req__list dd + dt { margin-top: 12px; }
  .bks-form { padding: 24px 20px 28px; }
}

/* ---- страница «Каталог» ---- */
.bks-catalog__intro { max-width: 720px; margin-bottom: 34px; }

.bks-catgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

.bks-catcard {
  display: flex; flex-direction: column;
  border: 1px solid var(--bks-line); border-radius: var(--bks-radius);
  background: #FFFFFF; overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.bks-catcard:hover { border-color: #DBCDA6; box-shadow: 0 12px 30px rgba(23,20,14,.09); transform: translateY(-2px); }

.bks-catcard__media { position: relative; display: block; height: 186px; overflow: hidden; background: var(--bks-ink); }
.bks-catcard__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.bks-catcard:hover .bks-catcard__media img { transform: scale(1.045); }

.bks-catcard__media--accent {
  display: grid; place-items: center;
  background:
    radial-gradient(122% 92% at 74% 28%, rgba(239,179,32,.34) 0%, rgba(239,179,32,0) 63%),
    linear-gradient(150deg, #2A2110 0%, #1A160E 56%, #100E09 100%);
}
.bks-catcard__icon { color: rgba(239,179,32,.46); line-height: 0; }

.bks-catcard__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; flex: 1 1 auto; }
.bks-catcard__title { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.bks-catcard__title a { color: var(--bks-ink); }
.bks-catcard__title a:hover, .bks-catcard__title a:focus-visible { color: var(--bks-gold-text); text-decoration: none; }
.bks-catcard__text { margin: 0; font-size: 14px; line-height: 1.6; color: var(--bks-muted); }
.bks-catcard__more {
  display: inline-flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 6px;
  font-size: 14px; font-weight: 700; color: var(--bks-gold-text);
}
.bks-catcard:hover .bks-catcard__more { color: var(--bks-gold-dark); }

/* ---- полоса призыва ---- */
.bks-cta { padding: 54px 0 58px; background: var(--bks-gold); }
.bks-cta__in { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.bks-cta__text { display: flex; flex-direction: column; gap: 8px; }
.bks-cta__title {
  margin: 0; font-size: 30px; line-height: 1.16; color: #17130A;
}
.bks-cta__lead { margin: 0; max-width: 560px; font-size: 15px; line-height: 1.6; color: #6B4E07; }
.bks-btn--ink { background: var(--bks-ink); color: var(--bks-gold); }
.bks-btn--ink:hover, .bks-btn--ink:focus-visible { background: #000; color: var(--bks-gold-pale); text-decoration: none; }

@media (max-width: 1080px) {
  .bks-catgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bks-cta__in { flex-direction: column; align-items: flex-start; gap: 24px; }
}
@media (max-width: 720px) {
  .bks-catgrid { grid-template-columns: minmax(0, 1fr); }
  .bks-cta__title { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .bks-catcard, .bks-catcard__media img { transition: none; }
  .bks-catcard:hover { transform: none; }
  .bks-catcard:hover .bks-catcard__media img { transform: none; }
}
