/* ============================================================
   Adelante · Solano — тема (override-слой поверх UIkit)
   Скомпилировано из css/theme.scss. Подключается ПОСЛЕ
   uikit.min.css и переопределяет оформление.
   Все цвета вынесены в переменные (см. :root и theme.scss).
   ============================================================ */

:root {
  --s-cream:    #FCFBF7; /* фон страницы */
  --s-paper:    #FFFFFF; /* карточки, поля */
  --s-sand:     #F1EBDF; /* блоки-подсказки */
  --s-ink:      #23221E; /* основной текст */
  --s-ink-soft: #5A554C; /* вторичный текст */
  --s-muted:    #9A8F7D; /* подписи */
  --s-ochre:    #E0912B; /* акцент №1 — охра */
  --s-terra:    #C25E2E; /* акцент №2 — терракота */
  --s-cart:     #F18902; /* акцент кнопки «Корзина» (по макету) */
  --s-line:     #ECE7DC; /* разделители */
  --s-line-2:   #E0D8C8; /* границы полей */

  --s-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --s-sans:    'Mulish', system-ui, sans-serif;

  --s-maxw:   1180px;
  --s-pad:    40px;
  --s-radius: 18px;
}

/* ---------- база ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--s-cream);
  color: var(--s-ink);
  font-family: var(--s-display);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a   { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

*:focus {
    border-color: var(--s-terra) !important;
}

main { flex: 1; }

.s-container {
  max-width: var(--s-maxw);
  margin: 0 auto;
  padding-left: var(--s-pad);
  padding-right: var(--s-pad);
}

/* ---------- шапка ---------- */
.s-header {
  position: sticky;
  top: 0;
  z-index: 980;
  background: rgba(252, 251, 247, .92);
  -webkit-backdrop-filter: saturate(1.1) blur(8px);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--s-line);
}
.s-header__row {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 74px;
}
.s-logo {
  font: 800 24px/1 var(--s-display);
  letter-spacing: -.02em;
  flex: none;
}
.s-logo span { color: var(--s-ochre); }
.s-logo img {
    position: relative;
    top: -5px;
    left: -5px;
    max-width: 30px;
    float: left;
    margin-right: 5px;
}

.s-nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 600;
  color: #4a473f;
  flex: 1;
}
.s-nav a:hover { color: var(--s-ink); }
.s-nav .is-sale { color: var(--s-terra); }

.s-navdrop { position: relative; display: flex; align-items: center; }
.s-navdrop__link {
  display: flex; align-items: center; gap: 5px;
  color: inherit; font: inherit; text-decoration: none;
  span { opacity: .6; transition: transform .15s ease; }
}
.s-navdrop__link:hover { text-decoration: none; }
.s-navdrop.uk-open .s-navdrop__link span,
.s-navdrop__link[aria-expanded="true"] span { transform: rotate(180deg); }

.s-navdrop__menu.uk-dropdown {
  min-width: 220px; /* 190px; */
  padding: 8px;
  background: $s-paper;
  border-radius: 14px;
  box-shadow: 0 20px 40px -16px rgba(35,34,30,.28);
}
.s-navdrop__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.s-navdrop__list a {
  display: block; padding: 7px 14px; border-radius: 9px;
  font: 600 14px $s-sans; color: #4a473f; text-decoration: none;
  transition: background .12s ease, color .12s ease;
}
.s-navdrop__list a:hover { background: #FBEFDB; color: $s-terra; text-decoration: none; }


.s-header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  color: #4a473f;
  flex: none;
}
.s-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background .12s ease, color .12s ease;
  flex: none;
}
.s-icon-btn svg { display: block; }
.s-icon-btn:hover { background: var(--s-sand); color: var(--s-ink); }
.s-icon-btn--search.is-active { background: var(--s-ochre); color: var(--s-ink); }
.s-cart {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--s-cart);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 24px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, background .12s ease;
}
.s-cart:hover, .s-cart:active, .s-cart:focus { transform: translateY(-1px); background: #d97e02; color: #fff; text-decoration: none; }
.s-cart__icon { display: none; }
.s-burger {
  display: none;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: none;
  border: 0;
  color: var(--s-ink);
  cursor: pointer;
}

/* ---------- выпадающее меню «Покупателям» ---------- */
.s-drop { position: relative; }
.s-drop__link { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.s-drop__chev { font-size: 9px; opacity: .6; }
.s-drop__chev { display: inline-flex; transition: transform .15s ease; opacity: .6; }

.s-drop__link[aria-expanded="true"] .s-drop__chev { transform: rotate(180deg); }

.s-drop__menu.uk-dropdown {
  min-width: 220px; padding: 8px;
  background: var(--s-paper); color: var(--s-ink);
  border: 1px solid var(--s-line);
  border-radius: 14px;
  box-shadow: 0 18px 44px -16px rgba(35,25,15,.35);
}
.s-drop__nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.s-drop__nav li + li { margin-top: 2px; }
.s-drop__nav a {
  display: flex; align-items: center; gap: 10px;
  color: var(--s-ink-soft); font: 600 13.5px var(--s-sans);
  padding: 9px 12px; border-radius: 8px;
}
.s-drop__nav a svg { flex: none; }
.s-drop__nav a:hover,
.s-drop__nav li.uk-active > a { background: #FBEFDB; color: var(--s-terra); }

/* ---------- поисковая панель шапки ---------- */
.s-headersearch { background: #F8F1E4; border-bottom: 1px solid #ECE0CE; padding: 24px 0; }
.s-headersearch__box {
  display: flex; height: 64px; max-width: 720px;
  border: 1.5px solid var(--s-line-2); border-radius: 34px;
  background: var(--s-paper); overflow: hidden;
}
.s-headersearch__scope {
    position: relative;
    display: flex; 
    align-items: center; 
    gap: 8px;
    min-width: 125px;
    padding: 0 36px;
    font-size: 15px;
    border-right: 1px solid var(--s-line);
    color: #8A7D72; 
    font-weight: 700; 
    font-size: 14px; 
    flex: none; 
    cursor: pointer;
}
.s-headersearch__scope span { 
    font-size: 13px;
    font-weight: 600;
    opacity: .7;
}
.s-headersearch__box input {
  flex: 1; border: 0; outline: 0; font: 400 15px var(--s-sans);
  padding: 0 22px; background: transparent; color: var(--s-ink);
}
.s-headersearch__submitwrap { display: flex; align-items: center; padding: 0 10px; }
.s-headersearch__submit {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--s-ochre); color: var(--s-ink);
  display: flex; align-items: center; justify-content: center;
  transition: background .12s ease;
}
.s-headersearch__submit:hover { background: #cc8021; }

.s-scopedrop__menu.uk-dropdown {
  min-width: 140px;
  padding: 8px;
  background: $s-paper;
  border-radius: 14px;
  box-shadow: 0 20px 40px -16px rgba(35,34,30,.28);
}

/* ---------- герой 404 ---------- */
.s-hero {
  display: flex;
  gap: 56px;
  align-items: center;
  padding: 80px 0 60px;
}
.s-hero__num {
  flex: none;
  font: 800 220px/.82 var(--s-display);
  letter-spacing: -.04em;
  color: var(--s-ink);
}
.s-hero__rule {
  height: 8px;
  width: 180px;
  background: var(--s-ochre);
  border-radius: 4px;
  margin-top: 8px;
}
.s-hero__body { flex: 1; }
.s-kicker {
  font: 700 12px var(--s-display);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--s-terra);
}
.s-hero__title {
  font: 800 clamp(28px, 4vw, 40px)/1.08 var(--s-display);
  letter-spacing: -.02em;
  margin: 14px 0;
  max-width: 520px;
}
.s-hero__text {
  font: 400 16px/1.65 var(--s-display);
  color: var(--s-ink-soft);
  max-width: 480px;
  margin: 0 0 28px;
}

/* ---------- поиск ---------- */
.s-search {
  display: flex;
  height: 56px;
  max-width: 520px;
  border: 1.5px solid var(--s-line-2);
  border-radius: 30px;
  background: var(--s-paper);
  overflow: hidden;
  margin-bottom: 24px;
}
.s-search input {
  flex: 1; border: 0; outline: 0;
  font: 400 15px var(--s-display);
  padding: 0 22px;
  background: transparent;
  color: var(--s-ink);
}
.s-search button {
  flex: none; border: 0; cursor: pointer;
  background: var(--s-ochre); color: #fff;
  font-weight: 700; font-size: 14px; padding: 0 26px;
  transition: background .12s ease;
}
.s-search button:hover { background: #cc8021; }

/* ---------- кнопки-действия ---------- */
.s-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.uk-button.s-btn {
  text-decoration: none;
  border-radius: 28px;
  font: 700 14px var(--s-display);
  text-transform: none;
  line-height: 46px;
  padding: 0 26px;
  transition: transform .12s ease;
}
.uk-button.s-btn:hover, .uk-button.s-btn:active, .uk-button.s-btn:focus { transform: translateY(-1px); text-decoration: none; }
.s-btn--ink { background: var(--s-ink); color: #fff; }
.s-btn--ink:hover, .s-btn--ink:active, .s-btn--ink:focus { background: #322f28; color: #fff; text-decoration: none; }
.s-link {
  font-weight: 700;
  font-size: 14px;
  color: var(--s-ink);
  border-bottom: 2px solid var(--s-ochre);
  padding-bottom: 2px;
}
.s-link:hover { color: var(--s-terra); border-color: var(--s-terra); }

/* ---------- секция подсказок ---------- */
.s-suggest { padding-bottom: 64px; }
.s-suggest__label {
  font: 700 12px var(--s-display);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--s-muted);
  margin-bottom: 16px;
}
.s-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.s-card {
  display: block;
  background: var(--s-sand);
  border-radius: var(--s-radius);
  padding: 26px 24px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.s-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -22px rgba(60,40,16,.5);
}
.s-card__title { font: 800 20px var(--s-display); letter-spacing: -.01em; }
.s-card__sub   { font-size: 13px; font-weight: 600; color: #8a8072; margin-top: 6px; }

/* ---------- подвал ---------- */
.s-footer {
  border-top: 1px solid var(--s-line);
  padding: 22px 0;
}
.s-footer .s-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: #8a8072;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- офф-канвас (мобайл) ---------- */
.s-offcanvas .uk-offcanvas-bar { background: var(--s-ink); }
.s-offcanvas .uk-nav > li > a { color: #EFE6D9; font-weight: 700; font-family: var(--s-display); }
.s-offcanvas .uk-nav > li > a:hover { color: #fff; }
.s-offcanvas .uk-nav-header { color: var(--s-ochre); }
.s-offcanvas .uk-nav svg, .s-offcanvas .uk-nav [uk-icon] { margin-right: 10px; vertical-align: -3px; }
.s-offnav .uk-nav-sub { margin: 4px 0 8px 14px; }
.s-offnav .uk-nav-sub a { color: #C9C1B2; font-weight: 600; font-family: var(--s-sans); font-size: 14px; }
.s-offnav .uk-nav-sub a:hover { color: #fff; }
.s-offnav .s-offnav__parent { display: flex; align-items: center; justify-content: space-between; }

/* ============================================================
   ГЛАВНАЯ (index.html)
   ============================================================ */

/* ---------- служебная строка ---------- */
.s-utility {
  border-bottom: 1px solid var(--s-line);
  font: 600 12.5px var(--s-sans);
  color: #6c675d;
}
.s-utility .s-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  gap: 12px;
}
.s-utility ul { display: flex; gap: 10px; align-items: center; list-style: none; margin: 0; padding: 0; }
.s-utility .s-sep { opacity: .4; }
.s-utility a:hover { color: var(--s-ink); }
.s-drop__link:hover, .s-drop__link:focus { text-decoration: none; }

/* ---------- герой главной ---------- */
.s-home-hero { padding: 60px 0 36px; }
.s-home-hero__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}
.s-home-hero__lead { max-width: 660px; }
.s-home-hero__kicker { font: 700 12px var(--s-sans); letter-spacing: .18em; color: var(--s-ochre); }
.s-home-hero__title { font: 700 clamp(34px, 5.2vw, 62px)/1.02 var(--s-display); letter-spacing: -.03em; margin: 18px 0; }
.s-home-hero__text  { font: 400 17px/1.6 var(--s-sans); color: #6c675d; max-width: 520px; margin: 0 0 26px; }
.s-home-hero__cta   { display: flex; flex-wrap: wrap; gap: 12px; }
.s-home-hero__stat  { flex: none; width: 250px; text-align: right; }
.s-home-hero__stat b { display: block; font: 700 58px var(--s-display); color: var(--s-terra); line-height: 1; }
.s-home-hero__stat span { font-size: 14px; color: #6c675d; font-weight: 600; }

.s-photoband {
  margin-top: 34px;
  height: 240px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
}
.s-photoband__main {
  flex: 1.25; position: relative;
  background: linear-gradient(90deg, rgba(22,16,10,.74), rgba(22,16,10,.12)) center/cover;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px 30px; color: #fff;
}
@media (min-width: 479px) {
    .s-photoband__main {background-size: cover !important;
    }
}
@media (max-width: 479px) {
    .s-photoband__main {background-size: auto !important;
    }
}

.s-photoband__kicker { font: 700 11px var(--s-sans); letter-spacing: .18em; color: #F0B24A; text-transform: uppercase; }
.s-photoband__title  { font: 700 30px/1.06 var(--s-display); letter-spacing: -.02em; margin: 8px 0; max-width: 440px; }
.s-photoband__meta   { font: 600 13px var(--s-sans); color: rgba(255,255,255,.85); }
.s-photoband__side   { flex: .85; background-position: center; background-size: cover; }

/* ----- слайдер ---- */
/* ---------- слайдер в фотобанде (UIkit Slideshow) ---------- */
.s-photoslider { position: relative; height: 100%; min-height: 240px; }
.s-photoslider .uk-slideshow-items { height: 100%; min-height: 240px; }
.s-photoslider .uk-slideshow-items > li { overflow: hidden; }
.s-photoslider img { object-fit: cover; }

.s-photoslider__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 40px 24px 20px;
  background: linear-gradient(to top, rgba(22,16,10,.86), rgba(22,16,10,0));
  color: #fff;
  pointer-events: none;
}
.s-photoslider__kicker {
  font: 700 10px var(--s-sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #F0B24A;
}

.s-photoslider__text {
  font: 700 16px/1.25 var(--s-display);
  letter-spacing: -.01em;
  max-width: 320px;
  text-wrap: pretty;
  color: #fff;
}
/* подпись-ссылка: кликабелен только текст */
a.s-photoslider__text {
  pointer-events: auto;
  align-self: flex-start;
  text-decoration: none;
  transition: color .16s ease;
}
a.s-photoslider__text:hover,
a.s-photoslider__text:focus-visible {
  color: var(--s-ochre);
  text-decoration: none;
}

.s-photoslider__nav {
  position: absolute;
  box-sizing: border-box;
  padding: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(252,251,247,.45);
  color: var(--s-ink);
  opacity: 0;
  transition: opacity .18s ease, background .18s ease;
}
.s-photoslider__nav--prev { left: 12px; }
.s-photoslider__nav--next { right: 12px; }
.s-photoslider:hover .s-photoslider__nav { opacity: 1; }
.s-photoslider__nav:hover { background: rgba(224,145,43,.75); color: var(--s-ink); }
.s-photoslider__nav svg { transform: scale(.75); }

.s-photoslider__dots {
  position: absolute;
  top: 14px; right: 14px;
  margin: 0;
  gap: 6px;
}
.s-photoslider__dots > * { padding-left: 0; }
.s-photoslider__dots > * > * {
  width: 14px; height: 14px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  transition: background .16s ease, transform .16s ease;
}
.s-photoslider__dots > .uk-active > * {
  background: var(--s-ochre);
  transform: scale(1.25);
}

/* ---------- секции ---------- */
.s-section { padding: 44px 0 8px; }
.s-section--tight { padding-top: 20px; }
.s-sechead {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 22px;
}
.s-h2 { font: 700 clamp(24px, 3vw, 30px) var(--s-display); letter-spacing: -.02em; margin: 0; }
.s-more { font-size: 14px; font-weight: 700; color: var(--s-ochre); white-space: nowrap; }

.s-btn--level { display: inline-flex; align-items: center; gap: 8px; }
.s-btn--level [uk-icon], .s-btn--level .uk-icon { opacity: .6; transition: transform .15s ease; }
.s-navdrop.uk-open .s-btn--level [uk-icon],
.s-btn--level[aria-expanded="true"] [uk-icon] { transform: rotate(180deg); }

/* ---------- Ближайшие события (UIkit Slider, slide sets) ---------- */
.s-events { position: relative; }
.s-events .uk-slider-items { margin-left: -20px; }
.s-events .uk-slider-items > * { padding-left: 20px; }

.s-event {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 300px;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  background: var(--s-ink);
}
.s-event::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(18,13,8,.82) 0%, rgba(18,13,8,.56) 42%, rgba(18,13,8,.14) 100%);
  transition: background .28s ease;        /* ← добавить */
}
/* ← добавить: светлее при наведении */
.s-event:hover::after {
  background: linear-gradient(to top, rgba(18,13,8,.58) 0%, rgba(18,13,8,.3) 42%, rgba(18,13,8,.04) 100%);
}
/* ← добавить: тень под текстом держит читаемость */
.s-event__body { text-shadow: 0 1px 12px rgba(18,13,8,.55); }

.s-event__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.s-event:hover .s-event__img { transform: scale(1.05); }
.s-event:hover { text-decoration: none; }

.s-event__body {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  gap: 6px;
  padding: 24px 22px 22px;
  color: #fff;
  width: 100%;
}
.s-event__date { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.s-event__day {
  font: 800 46px/1 var(--s-display);
  letter-spacing: -.03em;
  color: var(--s-ochre);
}
.s-event__month {
  font: 700 15px var(--s-display);
  letter-spacing: -.01em;
  color: #fff;
}
.s-event__time {
  font: 700 11px var(--s-sans);
  letter-spacing: .16em;
  color: rgba(255,255,255,.72);
}
.s-event__title {
  font: 700 17px/1.3 var(--s-display);
  letter-spacing: -.01em;
  text-wrap: pretty;
  color: #fff;
  transition: color .16s ease;
}
.s-event:hover .s-event__title { color: var(--s-ochre); }

.s-events__nav {
  position: absolute;
  box-sizing: border-box;
  padding: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(252,251,247,.9);
  color: var(--s-ink);
  box-shadow: 0 8px 20px -8px rgba(35,34,30,.45);
  transition: background .18s ease, color .18s ease;
  z-index: 2;
}
.s-events__nav--prev { left: 10px; }
.s-events__nav--next { right: 10px; }
.s-events__nav:hover { background: var(--s-ochre); color: var(--s-ink); }
.s-events__nav svg { transform: scale(.8); }

@media (max-width: 639px) {
  .s-event { height: 240px; }
  .s-event__day { font-size: 38px; }
  .s-event__title { font-size: 16px; }
  .s-events__nav { display: none; }
}

/* ---------- сетки ---------- */
.s-grid { display: grid; gap: 16px; }
.s-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.s-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.s-grid > * { min-width: 0; }
.s-grid--books { gap: 26px; }

/* ---------- страны ---------- */
.s-country {
  border: 1px solid var(--s-line); border-radius: 18px;
  padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 22px;
  background: var(--s-paper);
  transition: border-color .15s ease, transform .15s ease;
}
.s-country:hover { border-color: var(--s-ochre); transform: translateY(-2px); }
.s-country__flag { width: 44px; height: 44px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.s-country__body { display: flex; flex-direction: column; line-height: 1.25; }
.s-country__name  { font: 700 22px var(--s-display); letter-spacing: -.02em; }
.s-country__count { font-size: 13px; color: #948C7E; font-weight: 600; }

/* ---------- языки (плашки без иконок) ---------- */
.s-language { border: 1px solid var(--s-line); border-radius: 18px; padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 10px; background: var(--s-paper); text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease; }
.s-language:hover { border-color: var(--s-ochre); transform: translateY(-2px); color: inherit; text-decoration: none; }
.s-language__name { font: 700 22px var(--s-display); letter-spacing: -.02em; overflow-wrap: anywhere; hyphens: auto; }
.s-language__count { font-size: 13px; color: #948C7E; font-weight: 600; }

/* ---------- издательства ---------- */
.s-publishers { display: flex; gap: 16px; flex-wrap: wrap; }
.s-publisher { flex: 1; min-width: 220px;  border: 1px solid var(--s-line); border-radius: 16px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; background: var(--s-paper); text-decoration: none; color: inherit; transition: border-color .15s ease; }
.s-publisher:hover { border-color: var(--s-ochre); color: inherit; text-decoration: none; }
.s-publisher__avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; background: #F3EDE1; display: flex; align-items: center; justify-content: center; font: 800 15px var(--s-display); color: #B8A888; }
.s-publisher__name { font: 700 15px var(--s-display); letter-spacing: -.01em; }
.s-publisher__country { font-size: 12px; color: #948C7E; font-weight: 600; }

/* ---------- авторы ---------- */
.s-authors { display: flex; gap: 26px; flex-wrap: wrap; }
.s-author { text-align: center; width: 110px; text-decoration: none; color: inherit; }
/*.s-author:hover {text-decoration: none;}*/
.s-author__avatar { width: 88px; height: 88px; border-radius: 50%; display: block; margin: 0 auto 8px; background: repeating-linear-gradient(120deg, #efe2d0, #efe2d0 7px, #e7d7c1 7px, #e7d7c1 14px); border: 2px solid var(--s-line); }
.s-author__name { font: 700 13px var(--s-display); line-height: 1.2; }
.s-author__country { font-size: 11px; color: #948C7E; font-weight: 600; margin-top: 2px; }

/* ---------- баннер cookies ---------- */
.s-cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200; background: var(--s-ink); color: #EFE6D9; padding: 20px var(--s-pad); display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; box-shadow: 0 -8px 30px -10px rgba(0,0,0,.25); transform: translateY(0); transition: transform .3s ease, opacity .3s ease; opacity: 1; }
.s-cookie[hidden] { display: flex; transform: translateY(110%); opacity: 0; pointer-events: none; }
.s-cookie__text { font: 400 14px/1.55 var(--s-sans); max-width: 640px; flex: 1; min-width: 240px; }
.s-cookie__text a { color: var(--s-ochre); text-decoration: none; border-bottom: 1px solid rgba(224,145,43,.5); }
.s-cookie__text a:hover { color: #e6a24a; }
.s-cookie__actions { display: flex; gap: 12px; flex: none; }
.s-cookie__btn { border: 0; border-radius: 24px; font: 700 13.5px var(--s-sans); padding: 11px 22px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .12s ease, opacity .12s ease; }
.s-cookie__btn--accept { background: var(--s-ochre); color: var(--s-ink); }
.s-cookie__btn--accept:hover { background: #c97e1e; }
.s-cookie__btn--decline { background: transparent; color: #EFE6D9; box-shadow: inset 0 0 0 1.5px rgba(239,230,217,.4); }
.s-cookie__btn--decline:hover { box-shadow: inset 0 0 0 1.5px rgba(239,230,217,.8); }

/* ---------- кнопка «наверх» ---------- */
.s-totop { position: fixed; right: 28px; bottom: 28px; z-index: 900; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--s-ink); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 10px 24px -8px rgba(35,34,30,.4); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease, visibility .2s ease, background .12s ease; }
.s-totop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.s-totop:hover { background: #322f28; }
@media (max-width: 767px) {
  .s-cookie { padding: 16px 20px; gap: 14px; }
  .s-totop { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

/* ---------- карточка книги ---------- */
.s-book {position:relative; display: flex; flex-direction: column; gap: 10px; }
.s-book__cover {
  position: relative; aspect-ratio: 2/3; border-radius: 14px;
  background: #eadfce center/contain no-repeat;
  transition: transform .18s ease;
}
.s-book:hover .s-book__cover { transform: translateY(-3px); }
.s-book__badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--s-ink); color: #fff;
  font: 800 10px var(--s-sans); padding: 5px 10px; border-radius: 20px;
}
.s-book__author { font-size: 12px; color: var(--s-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }
.s-book__title  { font: 700 16px/1.2 var(--s-display); letter-spacing: -.01em; min-height: 40px; }
.s-book__foot   { display: flex; align-items: center; justify-content: space-between; }
.s-book__price  { font-weight: 800; font-size: 16px; }
.s-book__row { display: flex; align-items: center; justify-content: space-between; }
.s-book__add { font-weight: 800; font-size: 13px; color: var(--s-ochre); background: none; border: 0; cursor: pointer; text-decoration: none; padding: 0; }
.s-book__add:hover, .s-book__add:active, .s-book__add:focus { color: #b8791f; text-decoration: none; }
.s-book__cover { position: relative; aspect-ratio: 2/3; border-radius: 14px; background: var(--s-sand); overflow: hidden; }
.s-book__tag { position: absolute; top: 12px; left: 10px; z-index: 2; }
.s-book__tag span {
    color: #fff; font: 800 9px var(--s-sans); padding: 5px; border-radius: 20px;
    /* background: var(--s-ink); */
}

/* ---------- советуем прочитать ---------- */
.s-editorial { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: stretch; }
.s-bookmonth {
  background: var(--s-terra); border-radius: 20px; padding: 32px; color: var(--s-cream);
  display: flex; gap: 26px; align-items: center; min-height: 280px;
}
.s-bookmonth__body { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.s-bookmonth__kicker { font: 700 11px var(--s-sans); letter-spacing: .18em; opacity: .85; }
.s-bookmonth__title  { font: 700 29px/1.06 var(--s-display); letter-spacing: -.02em; margin: 12px 0 10px; }
.s-bookmonth__text   { font-size: 14px; opacity: .9; max-width: 300px; margin: 0; }
.s-bookmonth__buy    { display: flex; align-items: center; gap: 18px; }
.s-bookmonth__price  { font: 700 24px var(--s-display); }
.s-bookmonth__btn    { background: var(--s-cream); color: var(--s-terra); font-weight: 800; font-size: 14px; padding: 13px 24px; border-radius: 26px; text-decoration: none; transition: background .12s ease; }
.s-bookmonth__btn:hover, .s-bookmonth__btn:active, .s-bookmonth__btn:focus { background: #e8d8bd; color: var(--s-terra); text-decoration: none; }
.s-bookmonth__cover  { flex: none; width: 172px; aspect-ratio: 2/3; border-radius: 12px; background: #a84a30 center/contain no-repeat; box-shadow: 0 16px 30px -12px rgba(0,0,0,.45); }

.s-list { display: flex; flex-direction: column; gap: 12px; }
.s-listrow {
  display: flex; align-items: center; gap: 16px;
  border: 1px solid var(--s-line); border-radius: 14px; padding: 12px 14px;
  transition: border-color .15s ease;
}
.s-listrow:hover { border-color: var(--s-ochre); }
.s-listrow__cover { width: 46px; height: 62px; border-radius: 6px; flex: none; background: #eadfce center/contain no-repeat; }
.s-listrow__body  { flex: 1; }
.s-listrow__title { font: 700 15px var(--s-display); letter-spacing: -.01em; }
.s-listrow__author{ font-size: 12px; color: #948C7E; font-weight: 600; }
.s-listrow__price { font-weight: 800; font-size: 14px; }

/* ---------- подборки ---------- */
.s-collection {
  border: 1px solid var(--s-line); border-radius: 18px; padding: 24px; background: var(--s-paper);
  min-height: 150px; display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .15s ease;
}
.s-collection:hover { transform: translateY(-2px); }
.s-collection__dot  { width: 40px; height: 8px; border-radius: 8px; display: block; }
.s-collection__name { font: 400 21px/1.12 var(--s-display); letter-spacing: -.02em; }
.s-collection__count{ font-size: 13px; color: #948C7E; font-weight: 600; margin-top: 6px; display: block; }

/* ---------- распродажа ---------- */
.s-saleband { background: #FBEFDB; border-radius: 20px; padding: 32px 34px; }
.s-saleband__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.s-saleband__kicker { font: 700 12px var(--s-sans); letter-spacing: .18em; color: var(--s-terra); }
.s-saleband__title  { font: 700 28px var(--s-display); letter-spacing: -.02em; margin: 8px 0 0; }
.s-saleband__link   { background: var(--s-ochre); color: var(--s-ink); font-weight: 800; font-size: 14px; padding: 13px 24px; border-radius: 26px; text-decoration: none; transition: background .12s ease; }
.s-saleband__link:hover, .s-saleband__link:active, .s-saleband__link:focus { background: #d97e02; color: var(--s-ink); text-decoration: none; }
.s-saleitem { background: var(--s-paper); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.s-saleitem__cover { aspect-ratio: 2/3; border-radius: 9px; background: #eadfce center/contain no-repeat; position: relative; }
.s-saleitem__disc  { position: absolute; top: 8px; left: 8px; background: var(--s-terra); color: #fff; font: 800 10px var(--s-sans); padding: 4px 8px; border-radius: 16px; }
.s-saleitem__title { font: 700 14px/1.2 var(--s-display); letter-spacing: -.01em; min-height: 34px; }
.s-saleitem__prices{ display: flex; gap: 8px; align-items: baseline; }
.s-saleitem__now   { font-weight: 800; font-size: 15px; color: var(--s-terra); }
.s-saleitem__old   { font-size: 12px; text-decoration: line-through; color: #b3aa9a; }

/* ---------- доставка (нумерованная) ---------- */
.s-delivery { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--s-line); }
.s-delivery__item { padding: 24px; border-right: 1px solid var(--s-line); }
.s-delivery__item:first-child { padding-left: 0; }
.s-delivery__item:last-child { border-right: 0; padding-right: 0; padding-left: 24px; }
.s-delivery__num  { font: 700 34px var(--s-display); color: var(--s-ochre); }
.s-delivery__name { font-weight: 800; font-size: 16px; margin-top: 8px; }
.s-delivery__text { font-size: 13px; color: #948C7E; margin-top: 4px; }

/* ---------- заказ + рассылка ---------- */
.s-cta2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.s-request { border: 1.5px solid var(--s-ink); border-radius: 20px; padding: 30px; }
.s-request h3 { font: 700 24px var(--s-display); letter-spacing: -.02em; margin: 0 0 6px; }
.s-request p  { font-size: 14px; color: #6c675d; margin: 0 0 18px; }
.s-subscribe { background: var(--s-ink); border-radius: 20px; padding: 30px; color: var(--s-cream); }
.s-subscribe h3 {color: var(--s-cream); font: 700 24px var(--s-display); letter-spacing: -.02em; margin: 0 0 6px; }
.s-subscribe p  { font-size: 14px; opacity: .8; margin: 0 0 18px; }
.s-field { display: flex; gap: 10px; }
.s-field input {
  flex: 1; border-radius: 12px; padding: 14px; font: 400 14px var(--s-sans);
  border: 1px solid var(--s-line); background: var(--s-paper); color: var(--s-ink); outline: 0;
}
.s-subscribe .s-field input { border: 0; background: rgba(255,255,255,.12); color: #fff; }
.s-subscribe .s-field input::placeholder { color: rgba(255,255,255,.6); }
.s-field button { flex: none; border: 0; border-radius: 12px; font-weight: 800; font-size: 14px; padding: 0 24px; cursor: pointer; }
.s-field .s-field__ink   { background: var(--s-ink); color: #fff; }
.s-field .s-field__ochre { background: var(--s-ochre); color: var(--s-ink); }

/* ---------- подвал (главная, 4 колонки) ---------- */
.s-sitefooter { margin-top: 36px; border-top: 1px solid var(--s-line); }
.s-sitefooter .s-container {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px;
  padding-top: 34px; padding-bottom: 40px;
}
.s-sitefooter__name { font: 800 22px var(--s-display); }
.s-sitefooter__name span { color: var(--s-ochre); }
.s-sitefooter p { font-size: 13px; color: #6c675d; line-height: 1.6; margin: 12px 0 0; max-width: 230px; }
.s-sitefooter h4 { font-weight: 800; font-size: 13px; margin: 0 0 10px; }
.s-sitefooter ul { list-style: none; margin: 0; padding: 0; font-size: 13px; line-height: 2; color: #6c675d; }
.s-sitefooter a(not:.s-social__link):hover { color: var(--s-ink); }

/* ---------- хлебные крошки ---------- */
.s-breadcrumbs { font: 600 13px var(--s-sans); color: var(--s-muted); display: flex; gap: 9px; align-items: center; }
.s-breadcrumbs span { opacity: .75; }
.s-breadcrumbs span.is-sep { opacity: .4; }
.s-breadcrumbs span.is-current { opacity: 1; color: var(--s-terra); }

/* ---------- текстовая страница ---------- */
.s-page { max-width: 840px; padding: 16px 0 44px; }
.s-page__title { font: 700 48px/1.05 var(--s-display); letter-spacing: -.02em; color: var(--s-ink); margin: 10px 0 26px; }
.s-lede { font: 400 20px/1.6 var(--s-sans); color: #4a473f; border-left: 3px solid var(--s-ochre); padding-left: 22px; margin: 0 0 30px; }
.s-text { font: 400 16px/1.78 var(--s-sans); color: var(--s-ink-soft); margin: 0 0 16px; }
.s-text:last-of-type { margin-bottom: 28px; }
.s-text a {text-decoration: underline};

.s-text p + h2 {
    margin-top:0;
}
.s-text.m-compact p {
    margin-bottom: 12px;
}

.s-list__item { display: flex; gap: 14px; align-items: flex-start; }
.s-list__dot { width: 8px; height: 8px; border-radius: 2px; margin-top: 9px; flex: none; background: var(--s-ochre); }
.s-list__text { font: 400 16px/1.78 var(--s-sans); color: var(--s-ink-soft); }
.s-infobox { border: 1.5px solid var(--s-ink); border-radius: var(--s-radius); padding: 24px 28px; margin: 0 0 26px; }
.s-infobox__label { font: 800 12px var(--s-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--s-terra); margin-bottom: 16px; }
.s-infobox__grid { display: flex; flex-wrap: wrap; gap: 26px 48px; }
.s-infobox__k { font: 700 11px var(--s-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--s-muted); margin-bottom: 4px; }
.s-infobox__v { font: 700 15px var(--s-sans); color: var(--s-ink); }
.s-cta { background: var(--s-terra); color: var(--s-cream); border-radius: var(--s-radius); padding: 24px 28px; font: 600 18px/1.5 var(--s-sans); }

.lede p { margin: 0; }
.s-utility ul.s-drop__nav { align-items: unset; gap: 0; }
.s-drop__nav a:hover, .s-drop__nav li.uk-active > a { text-decoration: none; }

/* ---------- каталог «Все книги» ---------- */
.s-catalog-head { padding: 12px 0 0; }
.s-catalog-head__title { font: 700 46px/1 var(--s-display); letter-spacing: -.03em; margin: 12px 0 6px; }
.s-catalog-head__sub { font: 400 15px var(--s-sans); color: var(--s-ink-soft); margin: 0; }

.s-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; flex-wrap: wrap; gap: 12px; }
.s-toolbar__left, .s-toolbar__right { display: flex; align-items: center; gap: 16px; }
.s-pill-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--s-sand); border-radius: 12px; padding: 11px 16px;
  font: 700 13px var(--s-sans); color: #4a473f; border: 0; cursor: pointer;
  text-decoration: none; transition: background .12s ease;
}
.s-pill-btn:hover, .s-pill-btn:active, .s-pill-btn:focus { background: #e6ddc9; color: #4a473f; text-decoration: none; }

.s-pill-btn__ochre {color: var(--s-paper); background: var(--s-ochre);}
.s-pill-btn__ochre:hover {color: var(--s-paper); background: var(--s-terra);}

.s-pill-btn__ochre[disabled],
.s-pill-btn__ochre[aria-disabled="true"],
.s-pill-btn__ochre.is-disabled {
  color: var(--s-muted);
  background: var(--s-line);
  cursor: not-allowed;
  pointer-events: none;
}

.s-toolbar__count { font: 600 13.5px var(--s-sans); color: var(--s-muted); }
.s-viewtoggle { display: flex; background: var(--s-sand); border-radius: 12px; overflow: hidden; }
.s-viewtoggle button { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--s-muted); cursor: pointer; }
.s-viewtoggle button.is-active { background: var(--s-ink); color: #fff; }

.s-viewtoggle a {
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  color: var(--s-muted); text-decoration: none; cursor: pointer; transition: background .12s ease, color .12s ease;
}
.s-viewtoggle a:hover { background: #e6ddc9; color: #4a473f; text-decoration: none; }
.s-viewtoggle a.is-active { background: var(--s-ink); color: #fff; }
.s-viewtoggle a.is-active:hover { background: var(--s-ink); color: #fff; }

.s-select-wrap { position: relative; display: inline-flex; }
.s-select-wrap .s-select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background: var(--s-sand) !important; background-image: none !important;
  border: 0; border-radius: 12px;
  padding: 11px 40px 11px 16px; font: 700 13px var(--s-sans); color: #4a473f;
  cursor: pointer; transition: background .12s ease;
  min-width: 200px;
}
.s-select-wrap .s-select::-ms-expand { display: none; }
.s-select-wrap .s-select:hover, .s-select-wrap .s-select:focus { background: #e6ddc9; outline: 0; }
.s-select-wrap__chev { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #4a473f; pointer-events: none; }


.s-bookgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; row-gap: 48px; padding: 8px 0 32px; }

.s-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 0 0 40px; font: 800 14px var(--s-sans); }
.s-pagination a { width: 40px; height: 40px; border-radius: 12px; background: var(--s-sand); display: flex; align-items: center; justify-content: center; color: #4a473f; text-decoration: none; }
.s-pagination a:hover, .s-pagination a:active, .s-pagination a:focus { background: #e6ddc9; color: #4a473f; text-decoration: none; }
.s-pagination a.is-active, .s-pagination a.is-active:hover { background: var(--s-ink); color: #fff; }
.s-pagination span.is-ellipsis { color: var(--s-muted); width: auto; padding: 0 4px; }

/* ---------- офф-канвас фильтров ---------- */
.s-offcanvas--filters .uk-offcanvas-bar { background: var(--s-paper); color: var(--s-ink); width: 360px; max-width: 86vw; }
.s-offcanvas--filters .uk-offcanvas-close { color: var(--s-ink); opacity: .6; }
.s-offcanvas--filters .uk-offcanvas-close:hover { opacity: 1; color: var(--s-ink); }
.s-filters__title { font: 800 22px var(--s-display); margin: 0 0 22px; }
.s-offcanvas--filters .uk-offcanvas-bar .s-filters__title { color: var(--s-ink); }
.s-filter-group { margin-bottom: 26px; }
.s-filter-group__title { font: 700 12px var(--s-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--s-muted); }
.s-check { display: flex; align-items: center; gap: 10px; padding: 7px 0; font: 600 14px var(--s-sans); color: #4a473f; cursor: pointer; }
.s-check input { width: 18px; height: 18px; accent-color: var(--s-ink); flex: none; }
.s-filters__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.s-filters__reset { background: none; border: 0; font: 700 13px var(--s-sans); color: var(--s-muted); cursor: pointer; text-align: center; }
.s-filters__reset:hover { color: var(--s-ink); }

/* ---------- страница товара (книга) ---------- */
.s-product { display: flex; gap: 56px; padding: 30px 0 20px; align-items: flex-start; }
.s-product__cover {position:relative;  flex: none; width: 330px; }
.s-product__cover img, .s-product__cover image-slot { display: block; width: 100%; border-radius: 18px; overflow: hidden; background: var(--s-sand); box-shadow: 0 30px 60px -24px rgba(35, 34, 30, .35); aspect-ratio: 2/3; }
.s-product__info { flex: 1; min-width: 0; }
.s-product__eyebrow { font: 700 12px var(--s-display); letter-spacing: .16em; text-transform: uppercase; color: var(--s-terra); margin-bottom: 12px; }
.s-product__title { font: 800 50px/1.02 var(--s-display); letter-spacing: -.03em; margin: 0 0 8px; }
.s-product__subtitle { font: 400 20px/1.2 var(--s-display); color: #8a8072; margin-bottom: 18px; }
.s-product__author { font-size: 15px; font-weight: 600; color: #4a473f; margin-bottom: 26px; }
.s-product__author a { color: var(--s-terra); text-decoration: none; border-bottom: 2px solid var(--s-ochre); padding-bottom: 1px; }
.s-product__author a:hover { color: #a44f27; border-color: #a44f27; text-decoration: none;}
.s-product__price-row { display: flex; align-items: baseline; gap: 20px; margin-bottom: 22px; }
.s-product__price { font: 800 40px var(--s-display); letter-spacing: -.02em; }
.s-product__stock { font-size: 13.5px; font-weight: 700; color: #5a9e6a; }
.s-product__actions { display: flex; gap: 14px; margin-bottom: 30px; max-width: 520px; }
.s-product__buy { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--s-cart); color: #fff; font: 800 15px var(--s-display); padding: 16px 22px; border-radius: 30px; border: 0; cursor: pointer; text-decoration: none; transition: background .12s ease; }
.s-product__buy:hover, .s-product__buy:active, .s-product__buy:focus { background: #d97e02; color: #fff; text-decoration: none; }
.s-product__wish { flex: none; width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--s-line-2); background: var(--s-paper); color: var(--s-terra); border-radius: 50%; text-decoration: none; transition: background .12s ease; }
.s-product__wish:hover, .s-product__wish:active, .s-product__wish:focus, .s-product__wish.voted { background: var(--s-sand); color: var(--s-terra); text-decoration: none; }
.s-product__specs { display: flex; flex-direction: column; }
.s-product__spec { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--s-line); }
.s-product__spec-k { font-size: 14px; font-weight: 600; color: #9a8f7d; }
.s-product__spec-v { font-size: 14px; font-weight: 700; }
.s-product__spec-v a { color: var(--s-terra); text-decoration: none; border-bottom: 2px solid var(--s-ochre); padding-bottom: 1px; }
.s-product__spec-v a:hover { color: #a44f27; border-color: #a44f27; text-decoration: none; }

.s-about-book { padding: 26px 0 10px; max-width: 840px; }
.s-about-book__title { font: 800 26px var(--s-display); letter-spacing: -.02em; margin: 0 0 14px; }
.s-about-book p { font: 400 16px/1.72 var(--s-display); color: #4a473f; margin: 0 0 16px; }
.s-about-book__note { background: var(--s-sand); border-radius: 18px; padding: 20px 24px; font: 600 15px/1.55 var(--s-display); color: #7a6a4d; }

.s-related { padding: 36px 0 44px; }
.s-related__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.s-related__title { font: 800 26px var(--s-display); letter-spacing: -.02em; margin: 0; }
.s-related__all { font-size: 14px; font-weight: 700; color: var(--s-terra); text-decoration: none; border-bottom: 2px solid var(--s-ochre); padding-bottom: 1px; }
.s-related__all:hover { color: #a44f27; }
.s-related__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.s-related__book { display: flex; flex-direction: column; gap: 10px; }
.s-related__cover { aspect-ratio: 2/3; border-radius: 14px; overflow: hidden; background: var(--s-sand); }
.s-related__cover img, .s-related__cover image-slot { display: block; width: 100%; height: 100%; object-fit: cover; }
.s-related__title-txt { font: 800 15px/1.2 var(--s-display); letter-spacing: -.01em; }
.s-related__price { font: 800 15px var(--s-display); }

/* ---------- страница «Корзина» ---------- */
.s-cart-page__head { padding: 10px 0 0; }
.s-cart-page__title { font: 800 40px/1.05 var(--s-display); letter-spacing: -.03em; margin: 10px 0 4px; }
.s-cart-page__sub { font: 400 15px var(--s-sans); color: #6c675d; margin: 0; }
.s-cart-layout { display: flex; gap: 36px; align-items: flex-start; padding: 26px 0 44px; flex-wrap: wrap; }
.s-cart-items { flex: 1; min-width: 280px; display: flex; flex-direction: column; }
.s-cart-item { display: flex; gap: 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--s-line); }
.s-cart-item:last-child { border-bottom: 0; }
.s-cart-item__cover { flex: none; width: 76px; aspect-ratio: 2/3; border-radius: 10px; overflow: hidden; background: var(--s-sand); }
.s-cart-item__cover img, .s-cart-item__cover image-slot { display: block; width: 100%; height: 100%; object-fit: cover; }
.s-cart-item__info { flex: 1; min-width: 0; }
.s-cart-item__author { font-size: 11px; color: var(--s-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.s-cart-item__title { font: 700 18px/1.2 var(--s-display); letter-spacing: -.01em; margin-top: 2px; }
.s-cart-item__qty { flex: none; display: flex; align-items: center; gap: 10px;  width: 96px !important; background: var(--s-sand); border-radius: 10px; padding: 7px 10px; }
.s-cart-item__qty button { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #4a473f; background: none; border: 0; cursor: pointer; border-radius: 5px; transition: background .12s ease; }
.s-cart-item__qty button:hover { background: #e6ddc9; }
.s-cart-item__qty span { font-weight: 800; font-size: 14px; min-width: 14px; text-align: center; }
.s-cart-item__price { flex: none; width: 96px !important; text-align: right; }
.s-cart-item__remove { flex: none; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: #B7ACA0; background: none; border: 0; cursor: pointer; text-decoration: none; border-radius: 50%; transition: background .12s ease, color .12s ease; }
.s-cart-item__remove:hover { background: var(--s-sand); color: var(--s-terra); }
.s-cart-summary { flex: none; width:auto; max-width: 250px; background: var(--s-sand); border-radius: 20px; padding: 26px 26px 24px; }
.s-cart-summary__title { font: 800 20px var(--s-display); letter-spacing: -.01em; margin-bottom: 18px; }
.s-cart-summary__row { display: block; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #E4DBC8; font-size: 14px; font-weight: 600; color: #6c675d; }
.s-cart-summary__row span:last-child { color: var(--s-ink); font-weight: 700; }
.s-cart-summary__total { display: flex; justify-content: space-between; padding: 16px 0 22px; font: 800 22px var(--s-display); letter-spacing: -.01em; }
.s-cart-summary__checkout { display: flex; align-items: center; justify-content: center; background: var(--s-cart); color: #fff; font: 800 15px var(--s-display); padding: 16px 0; border-radius: 30px; border: 0; width: 100%; cursor: pointer; text-decoration: none; transition: background .12s ease; }
.s-cart-summary__checkout:hover, .s-cart-summary__checkout:active, .s-cart-summary__checkout:focus { background: #d97e02; color: #fff; text-decoration: none; }
.s-cart-summary__note { font-size: 12.5px; font-weight: 600; color: var(--s-muted); text-align: center; margin-top: 14px; }
.s-cart-empty { padding: 60px 0 80px; text-align: center; }
.s-cart-empty__title { font: 800 24px var(--s-display); margin: 18px 0 8px; }
.s-cart-empty__text { font: 400 15px var(--s-sans); color: #6c675d; margin: 0 0 24px; }

/* ---------- страница «Запрос на поиск нужной книги» ---------- */
.s-reqwrap { padding: 34px 0 56px; display: flex; justify-content: center; }
.s-reqcard { width: 100%; max-width: 760px; border-radius: 26px; background: var(--s-sand); padding: 44px 48px 40px; }
.s-reqcard__kicker { font: 700 12px var(--s-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--s-terra); }
.s-reqcard__title { font: 800 32px/1.2 var(--s-display); letter-spacing: -.02em; color: var(--s-ink); margin: 12px 0 30px; }
.s-reqcard__row { display: flex; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.s-reqfield { flex: 1; min-width: 200px; height: 54px; border-radius: 12px; background: var(--s-paper); border: 1.5px solid var(--s-line-2); padding: 0 18px; font: 600 14px var(--s-sans); color: var(--s-ink); outline: 0; transition: border-color .12s ease; }
.s-reqfield::placeholder { color: #B7ACA0; }
.s-reqfield:focus { border-color: var(--s-ochre); }
.s-reqmessage { width: 100%; min-height: 132px; border-radius: 12px; background: var(--s-paper); border: 1.5px solid var(--s-line-2); padding: 16px 18px; font: 600 14px var(--s-sans); color: var(--s-ink); margin-bottom: 26px; resize: vertical; outline: 0; transition: border-color .12s ease; }
.s-reqmessage::placeholder { color: #c7bda9; font-weight: 400; }
.s-reqmessage:focus { border-color: var(--s-ochre); }
.s-reqsubmit-row { display: flex; justify-content: center; margin-bottom: 20px; }
.s-reqsubmit { display: inline-flex; align-items: center; justify-content: center; background: var(--s-ink); color: #fff; font: 800 14px var(--s-display); letter-spacing: .04em; padding: 16px 52px; border-radius: 30px; border: 0; cursor: pointer; text-decoration: none; transition: background .12s ease; }
.s-reqsubmit:hover, .s-reqsubmit:active, .s-reqsubmit:focus { background: #322f28; color: #fff; text-decoration: none; }
.s-reqconsent { display: flex; gap: 12px; align-items: flex-start; max-width: 560px; margin: 0 auto; }
.s-reqconsent input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--s-ink); }
.s-reqconsent__text { font: 400 12.5px/1.55 var(--s-sans); color: #8a8072; }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 1179px) {
  .s-header__row { gap: 16px; }
  .s-nav { gap: 12px; font-size: 13px; }
  .s-header__actions { gap: 8px; }
}

@media (max-width: 959px) {
  .s-hero { gap: 32px; padding: 56px 0 44px; }
  .s-hero__num { font-size: 150px; }
  .s-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .s-bookgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .s-home-hero__top { flex-direction: column; align-items: flex-start; gap: 20px; }
  .s-home-hero__stat { text-align: left; width: auto; }
  .s-editorial { grid-template-columns: 1fr; }
  .s-sitefooter .s-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 939px) {
  .s-nav { display: none; }
  .s-utility { display: none; }
  .s-burger { display: inline-flex; }
  .s-cart__icon { display: block; }
  .s-cart__text { display: none; }
  .s-cart { width: 34px; height: 34px; padding: 0; justify-content: center; }
  .s-product { flex-direction: column; }
  .s-product__cover { width: 240px; }
  .s-related__grid { grid-template-columns: repeat(2, 1fr); }
  .s-cart-layout { flex-direction: column; }
  .s-cart-summary { width: 100%; }
  .s-publisher { min-width: 45%; }
}

@media (max-width: 767px) {
  :root { --s-pad: 20px; }
  .s-utility { display: none; }
  .s-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 40px 0 32px;
  }
  .s-hero__num { font-size: 120px; }
  .s-hero__title { font-size: 28px; }
  .s-cards { grid-template-columns: 1fr; }
  .s-footer .s-container { flex-direction: column; align-items: flex-start; gap: 6px; }
  .s-grid--4, .s-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-photoband { flex-direction: column; height: auto; }
  .s-photoband__main { min-height: 200px; }
  .s-photoband__side { min-height: 140px; }
  .s-bookmonth { flex-direction: column; align-items: flex-start; }
  .s-bookmonth__cover { width: 130px; }
  .s-delivery { grid-template-columns: 1fr; }
  .s-delivery__item { border-right: 0; border-bottom: 1px solid var(--s-line); padding: 20px 0 !important; }
  .s-cta2 { grid-template-columns: 1fr; }
  .s-sitefooter .s-container { grid-template-columns: 1fr 1fr; }
  .s-page__title { font-size: 32px; }
}

@media (max-width: 479px) {
  .s-logo { font-size: 20px; }
  .s-header__row { gap: 8px; }
  .s-header__actions { gap: 4px; }
  .s-icon-btn { width: 30px; height: 30px; }
  .s-icon-btn--search, .s-header__actions > .s-icon-btn:nth-of-type(2), .s-header__actions > .s-icon-btn:nth-of-type(3) { display: none; }
  .s-cart { gap: 0; }
  .s-hero__num { font-size: 96px; }
  .s-search { height: 50px; }
  .s-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-bookgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .s-language { padding: 18px 16px 16px; }
  .s-language__name { font-size: 19px; }
  .s-sitefooter .s-container { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .s-bookgrid { grid-template-columns: repeat(2, 1fr); }
  .s-publisher { max-width: 100%; }
  .s-authors { gap: 18px; }
  .s-author { width: 84px; }
  .s-author__avatar { width: 68px; height: 68px; }
  .s-reqcard { padding: 32px 24px 28px; }
  .s-reqcard__row { flex-direction: column; }
}


[uk-dropdown] { display: none; }

.uk-offcanvas-bar { transform: translateX(-100%); }

.uk-offcanvas-bar {
    transform: none; 
}

.s-cart .not_empty { display: none; }
.s-cart .empty { display: block; }
.s-cart.full .empty { display: none; }
.s-cart.full .not_empty { display: block; }

.uk-text-small * {
    font-size: .7rem;
    line-height: normal;
}

.uk-active > a, .uk-active:hover > a {
    color: var(--s-terra) !important;
    border-color: var(--s-terra) !important;
}

.uk-link-toggle:hover .uk-link, .uk-link:hover, a:hover {
    color: var(--s-cart);
    text-decoration: underline;
}


a.s-author:hover,
a.s-book:hover, 
a.s-listrow:hover,
a.s-collection:hover,
.ms-title a:hover {
    text-decoration: none !important;
}

.s-book > a:hover {
    text-decoration: none;
    color: var(--s-terra);
}

.uk-label-danger { background-color: #C0554A; color: #fff; }
.uk-label-warning { background-color: var(--s-ochre); color: var(--s-ink); }
.uk-label-success { background-color: #6E8F63; color: #fff;}
.uk-label-muted {background-color: lightgrey; color: var(--s-ink); font-weight:normal; }
.uk-label-default {color: grey; background-color: transparent; border: 1px solid grey; font-weight:normal;}
.uk-label-recommended {background-color: #103180; color: #fff;}

.uk-accordion-title {
                color: black !important;
            }
.uk-accordion-title::before {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2213%22%20height%3D%2213%22%20viewBox%3D%220%200%2013%2013%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%20%20%3Crect%20fill%3D%22%23666%22%20width%3D%2213%22%20height%3D%221%22%20x%3D%220%22%20y%3D%226%22%20%2F%3E%0A%20%20%20%20%3Crect%20fill%3D%22%23666%22%20width%3D%221%22%20height%3D%2213%22%20x%3D%226%22%20y%3D%220%22%20%2F%3E%0A%3C%2Fsvg%3E") !important;
}
/* ============================================================
   Модальное окно перехода во внешний сервис (Telegram и др.)
   Требует: UIkit 3.x + css/theme.css (переменные --s-*)
   ============================================================ */

.s-tgmodal .uk-modal-dialog {
  width: 520px;
  max-width: calc(100vw - 32px);
  background: var(--s-paper, #fff);
  border: 1px solid var(--s-line, #ECE7DC);
  border-radius: 22px;
  box-shadow: 0 40px 90px -30px rgba(35, 25, 15, .45);
  padding: 36px 36px 32px;
  font-family: var(--s-sans, 'Mulish', system-ui, sans-serif);
  color: var(--s-ink, #23221E);
}

.s-tgmodal .uk-modal-close-default {
  color: var(--s-muted, #9A8F7D);
  top: 18px;
  right: 18px;
}
.s-tgmodal .uk-modal-close-default:hover { color: var(--s-ink, #23221E); }

.s-tgmodal__kicker {
  font: 700 12px/1 var(--s-display, 'Bricolage Grotesque', system-ui, sans-serif);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--s-terra, #C25E2E);
  margin-bottom: 12px;
}

.s-tgmodal__title {
  font: 800 26px/1.15 var(--s-display, 'Bricolage Grotesque', system-ui, sans-serif);
  letter-spacing: -.02em;
  margin: 0 0 10px;
}

.s-tgmodal__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--s-ink-soft, #5A554C);
  margin: 0 0 22px;
}

/* ---------- согласие ---------- */
.s-tgmodal__consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--s-sand, #F1EBDF);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 22px;
}

.s-tgmodal__consent input[type="checkbox"] {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--s-ochre, #E0912B);
  cursor: pointer;
}

.s-tgmodal__consent label {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--s-ink-soft, #5A554C);
  cursor: pointer;
}

.s-tgmodal__consent a {
  color: var(--s-ink, #23221E);
  font-weight: 700;
  border-bottom: 1px solid var(--s-ochre, #E0912B);
}
.s-tgmodal__consent a:hover {
  color: var(--s-terra, #C25E2E);
  border-color: var(--s-terra, #C25E2E);
  text-decoration: none;
}

/* ---------- целевая кнопка ---------- */
.s-tgmodal__target {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 54px;
  border-radius: 28px;
  background: var(--s-ink, #23221E);
  color: #fff;
  font: 700 15px var(--s-display, 'Bricolage Grotesque', system-ui, sans-serif);
  text-decoration: none;
  transition: background .14s ease, transform .12s ease;
}
.s-tgmodal__target:hover { background: #322f28; color: #fff; text-decoration: none; transform: translateY(-1px); }
.s-tgmodal__target svg { flex: none; }

.s-tgmodal__target[disabled],
.s-tgmodal__target[aria-disabled="true"] {
  background: var(--s-line, #ECE7DC);
  color: var(--s-muted, #9A8F7D);
  pointer-events: none;
  cursor: not-allowed;
  transform: none;
}

/* ============================================================
   Соцсети в подвале — иконки-ссылки
   Требует переменные --s-ink / --s-ochre из css/theme.css
   ============================================================ */

.s-social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.s-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--s-ink, #23221E);
  transition: color .16s ease, transform .16s ease;
}

.s-social__link:hover,
.s-social__link:focus-visible {
  color: var(--s-ochre, #E0912B);
  transform: translateY(-2px);
}

.s-social__link svg {
  display: block;
  width: 26px;
  height: 26px;
  fill: currentColor;
}


.s-toolbar__markers span.uk-label.uk-label-default:hover {
    background-color: var(--s-ochre, #E0912B);
    border-color: var(--s-ochre, #E0912B);
    color: white;
}

.success-msg {
    color: var(--s-terra);
}

.uk-checkbox:checked, .uk-checkbox:indeterminate, .uk-radio:checked {
    background-color: var(--s-terra) !important;
    border-color: transparent;
}

.uk-alert-success {
    background: var(--s-ochre);
    color: var(--s-inc);
}

.uk-form-success, .uk-form-success:focus {
    color: var(--s-ochre);
    border-color: var(--s-ochre);
}

.uk-form-danger, .uk-form-danger:focus {
    color: brown !important;
    border-color: brown !important;
}

.uk-text-danger {
    color: brown !important;
}

#msCart th.count, #msCart th.weight, #msCart th.price, #msCart th.remove, .ms-count, .ms-weight, .ms-price, .ms-remove {
    width: 90px !important;
}

/* Меняем стандартный системный крестик в поле поиска */
input[type="search"]::-webkit-search-cancel-button {
  cursor: pointer;
  
  /* Точный пересчет серого цвета в ваш терракотовый #c25e2e */
  filter: invert(41%) sepia(87%) saturate(632%) hue-rotate(345deg) brightness(88%) contrast(90%);
}
