/*
 * Тема «Jara» — оформление jara.net.kg поверх разметки шаблона «Магазин».
 *
 * Заголовки, цены, кнопки и меню — Oswald, текст — Roboto Condensed (оба шрифта лежат в архиве,
 * к сторонним службам витрина не ходит). Фиолетовый акцент #6b59dc, тёмно-серая полоса меню,
 * прямые углы, карточки с тонкой рамкой и тенью, синий подвал. Тема только светлая.
 */

/* Шрифты лежат в архиве темы: Oswald и Roboto Condensed (SIL OFL / Apache 2.0), кириллица и латиница. */
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/oswald-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/oswald-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(fonts/roboto-condensed-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(fonts/roboto-condensed-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Каталог открывается панелью слева по кнопке меню, как на jara.net.kg (drawer.js). */
  --nav-drawer: 1;
  --font: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  --font-head: "Oswald", "Arial Narrow", Arial, sans-serif;
  --jr-head: "Oswald", "Arial Narrow", Arial, sans-serif;

  --bg-light: #ffffff;
  --surface-light: #ffffff;
  --surface-2-light: #f9faf8;
  --border-light: #e5e5e5;
  --text-light: #2a313f;
  --muted-light: #8a8a8a;
  --danger-light: #ff0030;

  --accent-light: #6b59dc;
  --accent-contrast-light: #ffffff;

  --shadow-light: 0 5px 13px rgba(0, 0, 0, .05);
  --shadow-soft-light: 0 5px 13px rgba(0, 0, 0, .05);
  /* Карточки списков. Фон витрины белый, и тень .05 у jara.net.kg на многих экранах не видна —
     карточка сливалась с фоном. Тонкая рамка держит край, тень отрывает карточку от страницы. */
  --jr-card-line: #e3e3e3;
  --jr-card-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 6px 18px rgba(0, 0, 0, .07);
  --jr-card-shadow-hover: 0 2px 6px rgba(0, 0, 0, .08), 0 14px 32px rgba(0, 0, 0, .13);

  --radius: 0px;
  --radius-sm: 0px;
  --radius-lg: 0px;

  --container: 1280px;
  --grid-min: 240px;
  --gap: 20px;
  /* Логотип jara.net.kg — 210×80 на любой ширине, и на телефоне тоже. */
  --logo-h: 80px;

  --h1: 44px;
  --h2: 36px;
  --title-weight: 700;
  --head-spacing: 0;

  --menu-bg: #333333;
  --menu-text: #b5b5b5;
  --jr-grey: #afaeb0;
  --jr-footer: #346699;
}

body { font-weight: 300; font-size: 17px; color: var(--muted); }
h1, h2, h3, .footer-title, .panel-title, .sh-head h2 { color: var(--text); font-family: var(--jr-head); }
h1 { font-weight: 700; line-height: 1.2; }
b, strong { font-weight: 700; }

/* ---------- Кнопки и поля ---------- */

.btn, .card .btn-wide, .buy .btn, .sh-hero .btn {
  border-radius: 0; font-family: var(--jr-head); font-weight: 500; font-size: 17px; letter-spacing: .01em;
}
.btn:hover { filter: none; background: #5a48c9; }
.btn-ghost, .sh-hero .sh-btn-light { background: var(--jr-grey); border-color: var(--jr-grey); color: var(--text); }
.btn-ghost:hover, .sh-hero .sh-btn-light:hover { background: #9d9c9e; color: var(--text); }
input, select, textarea { border-radius: 0 !important; font-family: var(--font); }
.toolbar select { border-radius: 0; height: 50px; padding: 0 40px 0 20px; font-size: 16px; color: var(--muted); }

/* ---------- Шапка ---------- */

/* Как на jara.net.kg: логотип с подписью слева, телефоны правее, поиск у правого края. */
.header-row { min-height: 200px; gap: 40px; align-items: center; }
.brand { order: 1; }
.header-actions { order: 2; margin-left: auto; gap: 12px; align-items: flex-start; }
.search { order: 3; flex: 0 0 300px; align-self: center; }
.search input {
  height: 50px; border: 1px solid #e0e1df; border-right: 0; background: #fff;
  font-size: 16px; padding: 0 20px; color: var(--text);
}
.search input::placeholder { color: var(--muted); }
.search button { height: 50px; padding: 0 18px; border-radius: 0; font-size: 16px; }
.brand-text { font-family: var(--jr-head); font-weight: 700; }

.header-phones { gap: 0; }
.header-phone { font-family: var(--jr-head); font-weight: 700; font-size: 20px; line-height: 30px; color: var(--text); letter-spacing: .01em; }
.header-phone .phone-icon { display: none; }
.header-phone:hover { color: var(--accent); }

/* Мессенджеры — маленькие цветные квадраты, как у телефонов на jara.net.kg. */
.header .socials { gap: 6px; margin: 4px 8px 0 0; }
.header .social { --social-size: 24px; border: 0; border-radius: 0; background: var(--social-brand); color: #fff; }
.header .social svg { width: 14px; height: 14px; }
.header .social:hover { filter: brightness(1.1); }

.cart-link {
  border-radius: 0; border: 0; background: #f2f2f2; color: var(--text);
  font-family: var(--jr-head); font-weight: 600; font-size: 18px; padding: 10px 18px;
}
.cart-link:hover { background: #e7e7e7; color: var(--text); }
.cart-link .cart-count { background: var(--accent); color: #fff; }
.cart-link[data-fav-link] { width: 44px; height: 44px; border-radius: 0; }

/* Надписи под логотипом: девиз Oswald и фиолетовое пояснение, как на jara.net.kg. */
.brand.has-tagline { gap: 14px; }
.brand-tagline { gap: 4px; }
.brand-tagline .brand-slogan { font-family: var(--jr-head); font-size: 20px; font-weight: 600; color: var(--text); }
.brand-tagline .brand-note { font-family: var(--font); font-size: 16px; font-weight: 400; color: var(--accent); }

/* ---------- Полоса меню ---------- */

/* Полоса закреплена при прокрутке (это делает шаблон), а корзина живёт в ней — серым
   блоком у правого края, как на jara.net.kg: она под рукой на любой высоте страницы. */
.nav-cart {
  position: absolute; top: 0; right: 0; height: 60px; z-index: 1;
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  width: calc(max(0px, (100% - var(--container)) / 2) + 320px);
  padding: 0 calc(max(0px, (100% - var(--container)) / 2) + 20px) 0 20px;
  background: #f2f2f2; color: var(--text);
  font-family: var(--jr-head); font-weight: 600; font-size: 20px;
}
.nav-cart:hover { color: var(--accent); }
.nav-cart svg { order: 2; }
.nav-cart .cart-count {
  order: 3; align-self: flex-start; margin: 10px 0 0 -14px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
  font-family: var(--font); font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; color: var(--text);
}
/* На компьютере корзина — только в полосе, как у Jara; на телефоне полоса свёрнута в «Меню»,
   и корзина остаётся в шапке. */
@media (min-width: 761px) {
  .nav-bar .nav { padding-right: 340px; }
  .header-actions > .cart-link:last-child { display: none; }
}

.nav-bar { background: var(--menu-bg); }
.nav-bar .nav { padding: 0 20px; }
.nav-bar .chip {
  padding: 0 18px; height: 60px; display: inline-flex; align-items: center;
  font-family: var(--font); font-weight: 300; font-size: 16px; color: var(--menu-text);
}
.nav-bar .chip:hover, .nav-bar .chip[aria-current="page"] { background: transparent; color: #fff; }
/* «Все товары» — квадратная кнопка меню с тремя полосками, как бургер jara.net.kg: открывает
   каталог панелью слева. Надпись остаётся для чтения с экрана, глазу она не видна. */
.nav-bar .nav-all > .chip, .nav-bar .nav-all[data-has-current] > .chip {
  width: 60px; padding: 0; justify-content: center; margin-right: 10px; font-size: 0;
  background: var(--jr-grey); color: #fff;
}
.nav-bar .nav-all > .chip::before {
  content: ""; width: 22px; height: 14px;
  background: linear-gradient(#fff 0 0) top / 100% 2px no-repeat, linear-gradient(#fff 0 0) center / 100% 2px no-repeat,
    linear-gradient(#fff 0 0) bottom / 100% 2px no-repeat;
}
.nav-bar .nav-all > .chip:hover { background: #9d9c9e; }
.nav-bar .nav-all > .chip .chip-more { display: none; }
.nav-bar .nav-all > .submenu { display: none !important; }
/* В полосе — меню сайта, как на jara.net.kg: «Главная», «О нас», свои страницы, «Контакты».
   Разделы каталога — в панели за кнопкой меню. [hidden] ставит nav.js тому, что не влезло. */
.nav-bar .nav > :not(.nav-all):not(.site-link):not(.site-item) { display: none; }
.nav-bar .nav > .site-link:not([hidden]) { display: inline-flex; }
.nav-bar .nav > .site-item:not([hidden]) { display: flex; }
.nav-bar .submenu { border-radius: 0; border: 0; box-shadow: 0 10px 25px rgba(0, 0, 0, .12); }
.nav-all .nav-fly, .sh-fly, .nav-fly { border-radius: 0; }
.submenu a, .sh-fly-list a, .nav-fly .sh-fly-list a { border-radius: 0; font-size: 16px; }
.submenu a:hover, .sh-fly-list a:hover { background: #f9faf8; color: var(--accent); }

/* ---------- Панель каталога ---------- */

.cat-drawer-head, .cat-drawer-subtitle { font-family: var(--jr-head); font-size: 22px; font-weight: 600; color: var(--text); }
.cat-drawer-list a { font-family: var(--font); font-weight: 400; font-size: 18px; color: var(--text); }
.cat-drawer-list ul a { font-weight: 300; }
.cat-drawer-list a:hover, .cat-drawer-list li.has.open > a { background: var(--accent); color: #fff; }

/* ---------- Свои страницы, новости, контакты ---------- */

/* Как на jara.net.kg: заголовки и подписи — Oswald, углы прямые, карточки на светлом фоне с мягкой тенью. */
.page-title { font-family: var(--jr-head); }
.article-meta, .news-date { font-family: var(--jr-head); font-weight: 500; letter-spacing: .02em; }
.article-body { font-weight: 300; color: var(--text); }
.article-back, .news-more, .contact-link { font-family: var(--jr-head); font-weight: 500; }
.article-more h2 { font-family: var(--jr-head); font-size: 36px; color: var(--accent); }

.news-card { border: 1px solid var(--jr-card-line); border-radius: 0; background: #fff; box-shadow: var(--jr-card-shadow); }
.news-card:hover { box-shadow: var(--jr-card-shadow-hover); }
.news-title { font-family: var(--jr-head); font-weight: 600; font-size: 24px; color: var(--text); }
.news-excerpt { font-weight: 300; }

/* Раздел «О нас»: вкладки и карточки — Oswald, прямые углы, как остальные карточки темы. */
.info-nav a { font-family: var(--jr-head); font-weight: 500; font-size: 18px; letter-spacing: .02em; }
.info-nav a[aria-current="page"] { color: var(--accent); border-bottom: 2px solid var(--accent); }
@media (max-width: 640px) {
  .info-nav { gap: 18px; }
  .info-nav a { font-size: 16px; letter-spacing: 0; }
}
.info-more-title { font-size: 36px; color: var(--accent); }
.info-card { border: 1px solid var(--jr-card-line); border-radius: 0; background: #fff; box-shadow: var(--jr-card-shadow); }
.info-card-link:hover { border-color: var(--jr-card-line); box-shadow: var(--jr-card-shadow-hover); }
.info-card .contact-icon { border-radius: 0; background: #f2f0fc; }
.info-card-title { font-family: var(--jr-head); font-weight: 600; font-size: 24px; }
.info-card-price { font-family: var(--jr-head); font-weight: 700; font-size: 30px; }
.info-card-label { font-family: var(--jr-head); font-weight: 500; font-size: 13px; }
.info-card-text { font-weight: 300; font-size: 17px; }
.info-card-more { font-family: var(--jr-head); font-weight: 500; font-size: 16px; text-transform: uppercase; letter-spacing: .04em; }
.info-note { border-radius: 0; background: #f9faf8; font-weight: 300; font-size: 17px; }
.info-lead { font-weight: 300; }

/* Прайс: шапка фиолетовая, как кнопки, цены — Oswald, группы — светлой полосой. */
.article-body h2 { font-family: var(--jr-head); font-weight: 600; font-size: 30px; color: var(--text); }
.article-table { border: 1px solid var(--jr-card-line); border-radius: 0; background: #fff; box-shadow: var(--jr-card-shadow); }
.article-table table { font-size: 17px; }
.article-table th { background: var(--accent); color: #fff; border-bottom: 0; font-family: var(--jr-head); font-weight: 500; font-size: 16px; letter-spacing: .04em; }
.article-table td { border-bottom-color: #ececec; font-weight: 300; }
.article-table tbody tr:nth-child(even):not(.group) td { background: #fafafa; }
.article-table tbody tr:not(.group):hover td { background: #f2f0fc; }
.article-table td.num { font-family: var(--jr-head); font-weight: 600; font-size: 18px; color: var(--text); }
.article-table .group td { background: #f2f0fc; color: var(--accent); font-family: var(--jr-head); font-weight: 600; font-size: 18px; text-transform: uppercase; letter-spacing: .03em; }

.cta-box { border: 1px solid var(--jr-card-line); border-left: 4px solid var(--accent); border-radius: 0; background: #f9faf8; box-shadow: var(--jr-card-shadow); }
.cta-title, .cta-phone { font-family: var(--jr-head); font-weight: 600; }

.contact-icon { border-radius: 0; background: #f2f0fc; }
.contact-label { font-family: var(--jr-head); font-weight: 600; font-size: 18px; letter-spacing: 0; text-transform: none; color: var(--text); }
.contact-value { font-weight: 300; color: var(--muted); }
.contact-phone { font-family: var(--jr-head); font-weight: 700; font-size: 22px; color: var(--text); }
.contacts-map { border-radius: 0; box-shadow: none; }

/* ---------- Слайдер ---------- */

.slider, .sh-slider { border-radius: 0; }
.slide-caption { left: 0; bottom: 30px; max-width: min(620px, calc(100% - 40px)); padding: 22px 50px 24px; border-radius: 0; background: rgba(0, 0, 0, .55); gap: 2px; }
.slide-text { font-family: var(--font); font-weight: 300; font-size: 22px; }
.slide-title { font-family: var(--jr-head); font-weight: 600; font-size: 45px; line-height: 50px; }
.slider-dots { right: 24px; bottom: 20px; gap: 12px; }
.slider-dots button { width: 8px; height: 8px; background: rgba(42, 49, 63, .25); box-shadow: 0 0 0 2px rgba(255, 255, 255, .6); }
.slider-dots button[aria-current="true"] { width: 12px; height: 12px; margin-top: -2px; background: var(--accent); }

/* ---------- Каталог: карточки ---------- */

.card, .card:hover { border: 1px solid var(--jr-card-line); border-radius: 0; background: #fff; box-shadow: var(--jr-card-shadow); }
.card:hover { box-shadow: var(--jr-card-shadow-hover); }
.card-photo { padding: 0; background: #fff; }
.card-body { padding: 18px 20px 25px; gap: 10px; }
.card-brand { color: var(--muted); font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 14px; }
.card-name, .card:hover .card-name { font-size: 17px; font-weight: 300; line-height: 1.3; color: var(--accent); }
.card:hover .card-name { text-decoration: underline; }
.price-row { padding-bottom: 14px; border-bottom: 1px solid #e5e5e5; }
.price { font-family: var(--jr-head); font-weight: 700; font-size: 25px; color: var(--text); }
.price-old { font-family: var(--jr-head); font-size: 16px; }
.stock { font-size: 15px; }
.stock.in { color: #3fb13f; }

/* Метки — красный флажок со срезанным хвостом, как «New!» на jara.net.kg. */
.badge, .badge.sale {
  border-radius: 3px 0 0 3px; padding: 4px 16px 4px 10px; font-weight: 400; font-size: 14px;
  background: #ff0030; color: #fff; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%);
}
.badge:not(.sale) { background: var(--accent); }

/* ---------- Главная ---------- */

/* Первый экран: фиолетовая плитка акции слева и баннер — без списка каталога: разделы
   на jara.net.kg стоят плитками сразу под баннером. */
.sh-top { grid-template-columns: 300px minmax(0, 1fr); gap: 0; margin-bottom: 30px; }
.sh-cats { display: none; }
.sh-promos { order: -1; gap: 0; grid-auto-rows: 1fr; }
.sh-promo, .sh-promo:hover {
  border-radius: 0; transform: none; box-shadow: none; padding: 30px 20px; justify-content: center;
  background: var(--accent);
}
.sh-promo + .sh-promo { background: #5a48c9; }
.sh-promo::after { display: none; }
.sh-promo-kicker { font-family: var(--font); font-weight: 300; font-size: 16px; text-transform: none; letter-spacing: 0; opacity: .85; }
.sh-promo-title { font-family: var(--jr-head); font-weight: 400; font-size: 25px; line-height: 1.3; }
.sh-promo-text { font-size: 19px; font-weight: 300; line-height: 1.3; opacity: 1; }
.sh-promo-go { font-family: var(--jr-head); font-weight: 500; }

.sh-hero { min-height: 350px; border-radius: 0; background: linear-gradient(135deg, #3c4a63, #2a313f); }
.sh-hero.has-image::after { background: none; }
.sh-hero-body { max-width: 520px; margin: 0 0 30px; padding: 22px 50px 24px; background: rgba(0, 0, 0, .55); }
.sh-hero h1 { font-family: var(--jr-head); font-weight: 600; font-size: 45px; line-height: 50px; margin-bottom: 8px; }
.sh-hero p { font-size: 22px; color: #fff; margin-bottom: 18px; }
.sh-hero-facts { border-top-color: rgba(255, 255, 255, .25); }
.sh-hero-facts b { font-family: var(--jr-head); }

/* Условия покупки — пунктирные плитки с фиолетовыми значками, как на странице товара jara.net.kg. */
.sh-benefits { gap: 20px; border: 0; border-radius: 0; background: transparent; overflow: visible; }
.sh-benefit { border: 1px dashed #c9c9c9; }
.sh-benefit svg { border-radius: 0; background: transparent; stroke: var(--accent); }
.sh-benefit b { font-family: var(--jr-head); font-weight: 500; font-size: 18px; color: var(--muted); }
.sh-benefit span { font-size: 16px; }

.sh-section { margin-bottom: 70px; }
.sh-head { margin-bottom: 35px; }
.sh-head h2 { font-size: 50px; font-weight: 700; line-height: 1.1; color: var(--accent); }
.sh-head-count { display: none; }
.sh-all { font-family: var(--font); font-weight: 300; font-size: 16px; padding-bottom: 6px; border-bottom: 2px solid var(--accent); }
.sh-all:hover { text-decoration: none; color: var(--text); border-color: var(--text); }
.sh-rail-nav button, .sh-rail-nav button:hover:not(:disabled) {
  width: 44px; height: 44px; border: 0; border-radius: 0; background: transparent; color: #7e7e7e;
}
.sh-rail-nav button:hover:not(:disabled) { color: var(--accent); }
.sh-rail-nav svg { width: 30px; height: 30px; stroke-width: 1.4; }
.sh-rail .grid { padding: 5px 0 20px; }

/* Разделы — серые плитки «Кондиционеры (26)», как под баннером jara.net.kg. */
.sh-sections { gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.sh-section-card, .sh-section-card:hover { border: 1px solid var(--jr-card-line); border-radius: 0; background: #f9faf8; box-shadow: none; padding: 22px 20px; }
.sh-section-card:hover { background: #f2f2f2; }
.sh-section-title { font-family: var(--jr-head); font-weight: 600; font-size: 19px; color: var(--text); }
.sh-section-count { font-size: 16px; }
.sh-section-photo { border-radius: 0; background: transparent; }
.sh-section-links a { border-radius: 0; background: #fff; font-size: 15px; }
.sh-section-links a:hover { background: var(--accent); }

.sh-brand, .sh-brand:hover { border-radius: 0; border: 1px solid var(--jr-card-line); background: #f9faf8; box-shadow: none; }
.sh-brand:hover { background: #f2f2f2; }
.sh-brand-name { font-family: var(--jr-head); font-weight: 600; letter-spacing: .02em; color: var(--text); }

/* ---------- Раздел ---------- */

.main { padding-top: 30px; }
.crumbs { font-size: 16px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--accent); text-decoration: underline; }
.crumbs a:hover { color: var(--text); }
.main > h1, .catalog-title, .detail h1 { font-size: 44px; margin-bottom: 22px; }
.subcats .tile {
  border: 1px solid var(--jr-card-line); border-radius: 0; background: #f9faf8; padding: 10px 18px;
  font-family: var(--jr-head); font-weight: 500; font-size: 16px; color: var(--text);
}
.subcats .tile:hover { background: var(--accent); color: #fff; }
.toolbar { justify-content: flex-start; }

/* ---------- Товар ---------- */

.gallery-main, .gallery-thumbs button { border: 0; border-radius: 0; padding: 0; }
.detail h1 { line-height: 1.15; }
.detail-brand { border-bottom: 0; color: var(--accent); text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 16px; }
.detail .price { font-family: var(--jr-head); font-size: 28px; font-weight: 700; }
.panel { border: 1px solid var(--jr-card-line); border-radius: 0; background: #fff; box-shadow: var(--jr-card-shadow); padding: 24px; color: var(--text); }
.panel-title { font-weight: 600; font-size: 20px; }
.buy .btn { height: 50px; padding: 0 30px; font-family: var(--font); font-weight: 700; font-size: 18px; }
.qty { border-radius: 0; border-color: #e0e1df; }
.qty button { background: var(--text); color: #fff; width: 30px; }
.qty button:hover { background: var(--accent); }
.specs div { border-bottom-color: #e5e5e5; }
.specs dt, .specs .key { color: var(--muted); font-weight: 300; }
.specs dd, .specs div > :last-child { color: var(--text); font-weight: 700; }
.detail h2, .section-head h2 { font-size: 25px; }
.description { color: var(--muted); }

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

/* Белые блоки на белом фоне держатся рамкой и тенью, как карточки товаров; текст — основным
   цветом: серым у темы набран только второстепенный. */
.row { border: 1px solid var(--jr-card-line); border-radius: 0; background: #fff; box-shadow: var(--jr-card-shadow); padding: 16px 20px; color: var(--text); }
.row img { border-radius: 0; }
.row a { color: var(--text); font-weight: 400; }
.row a:hover { color: var(--accent); }
.row-remove { border-radius: 0; }
.row-remove:hover { background: #f2f0fc; }
.panel-title { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #ececec; font-family: var(--jr-head); font-weight: 500; font-size: 21px; color: var(--text); }
.panel .muted, .totals .muted { color: var(--muted); }
.totals div { font-size: 17px; }
.totals .total { padding-top: 14px; border-top-color: #e3e3e3; font-family: var(--jr-head); font-weight: 600; font-size: 24px; color: var(--text); }
.panel .btn { height: 52px; padding: 0 32px; font-size: 18px; }
.field label { font-weight: 500; font-size: 15px; color: var(--text); }
.field input, .field textarea, .field select { border: 1px solid #d9d9d9; border-radius: 0; background: #fff; font-weight: 400; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: #bdbdbd; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 3px rgba(107, 89, 220, .15); }
.choice { border: 1px solid #d9d9d9; border-radius: 0; background: #fff; color: var(--text); transition: border-color .15s, background .15s; }
.choice:hover { border-color: #bdbdbd; }
.choice:has(input:checked) { border-color: var(--accent); background: #f7f5ff; box-shadow: inset 3px 0 0 var(--accent); }
.choice input { accent-color: var(--accent); }
.choice strong, .choice b { font-family: var(--jr-head); font-weight: 500; font-size: 18px; }
.notice { border-radius: 0; background: #f9faf8; box-shadow: var(--jr-card-shadow); }

/* ---------- Подвал ---------- */

/* Синий подвал jara.net.kg, собранный как у крупных магазинов: логотип с описанием, колонки
   ссылок под заголовками с акцентной чертой, контакты с иконками и крупными телефонами,
   тёмная полоса копирайта на всю ширину. */
.footer { background: var(--jr-footer); color: rgba(255, 255, 255, .78); border-top: 0; margin-top: 90px; padding: 64px 0 0; font-size: 16px; font-weight: 300; }
.footer-grid { gap: 40px 48px; }
.footer a { color: rgba(255, 255, 255, .85); transition: color .15s; }
.footer a:hover { color: #fff; text-decoration: none; }
.footer p { margin: 0 0 12px; }
.footer-title {
  position: relative; margin-bottom: 26px; padding-bottom: 14px; color: #fff;
  font-family: var(--jr-head); font-weight: 500; font-size: 19px; letter-spacing: .06em; text-transform: uppercase;
}
.footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; background: var(--accent); }
.footer-logo { margin-bottom: 18px; color: #fff; font-family: var(--jr-head); font-size: 30px; }
.footer-logo img { height: 56px; max-width: 240px; }
.footer-slogan { margin-bottom: 8px; color: #fff; font-family: var(--jr-head); font-weight: 500; font-size: 19px; letter-spacing: .02em; }
.footer-about { max-width: 380px; color: rgba(255, 255, 255, .72); font-size: 15px; line-height: 1.7; }
.footer-brand .socials { margin-top: 20px; }
.footer .social { width: 40px; height: 40px; background: rgba(255, 255, 255, .12); border-color: transparent; border-radius: 0; color: #fff; }
.footer .social:hover { background: var(--social-brand); color: #fff; }
.footer-links { gap: 12px; }
.footer-links a { display: inline-flex; align-items: flex-start; gap: 8px; }
.footer-links a::before { content: ""; flex: none; margin-top: .6em; width: 6px; height: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .55; transition: transform .15s, opacity .15s; }
.footer-links a:hover::before { opacity: 1; transform: translateX(3px) rotate(45deg); }
.footer-more, .footer .footer-more { color: #fff; font-family: var(--jr-head); font-weight: 500; letter-spacing: .03em; }
.footer-contacts { gap: 16px; }
.footer-contacts .footer-title { margin-bottom: 10px; }
.footer-contact { grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: center; }
.footer-contact svg { box-sizing: content-box; width: 18px; height: 18px; margin: 0; padding: 9px; background: rgba(255, 255, 255, .12); color: #fff; }
.footer-phone, .footer .footer-phone { color: #fff; font-family: var(--jr-head); font-weight: 600; font-size: 21px; line-height: 1.35; letter-spacing: .01em; }
.footer-bottom {
  margin-top: 56px; padding: 22px 0; border-top: 0; color: rgba(255, 255, 255, .6); font-size: 15px;
  background: #2b5884; box-shadow: 0 0 0 100vmax #2b5884; clip-path: inset(0 -100vmax);
}
.footer-bottom a { color: rgba(255, 255, 255, .8); text-decoration: underline; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Телефон ---------- */

@media (max-width: 1179px) {
  .header-row { min-height: 0; padding-top: 24px; padding-bottom: 24px; gap: 16px 30px; }
  .search { flex: 1 1 100%; }
}
@media (max-width: 1023px) {
  .sh-top { grid-template-columns: minmax(0, 1fr); }
  .sh-promos { order: 1; grid-auto-flow: column; grid-auto-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --h1: 30px; --logo-h-max: 80px; }
  .header-row { padding-top: 12px; padding-bottom: 16px; }
  .header-phone { font-size: 18px; line-height: 26px; }
  /* Разделы на телефоне — в той же панели слева, поэтому в полосе только кнопка меню и корзина. */
  .nav-bar { padding: 0; height: 60px; }
  .nav-toggle, .nav-open { display: none !important; }
  .nav-bar .nav { display: flex; flex-direction: row; padding: 0; margin: 0; max-height: none; overflow: visible; }
  .nav-bar .nav > :not(.nav-all) { display: none !important; }
  /* Меню сайта на телефоне — в той же панели, под «Категориями». */
  .cat-drawer-site { display: block; }
  .nav-bar .nav-all { display: block !important; }
  .nav-bar .nav-all > .chip, .nav-bar .nav-all[data-has-current] > .chip { height: 60px; margin: 0; border-top: 0; }
  .cat-drawer-panel { width: min(300px, 85vw); }
  .card-body { padding: 12px 12px 16px; }
  .card-name { font-size: 15px; }
  .price { font-size: 20px; }
  .sh-promos { grid-auto-flow: row; }
  .sh-hero-body { margin: 0; padding: 18px 20px; }
  .sh-hero h1 { font-size: 30px; line-height: 1.2; }
  .sh-slider { min-height: 0; }
  /* Преимущества на телефоне — столбиком во всю ширину. Шаблон прокручивает их вбок внутри
     полосы, но рамки Jara требуют overflow: visible, и полоса растягивала страницу за экран. */
  .sh-benefits { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 32px; background: transparent; }
  .sh-benefit { max-width: none; padding: 12px 16px; }
  .sh-benefit + .sh-benefit { border-left: 1px dashed #c9c9c9; }
  .slide-caption { bottom: 26px; padding: 12px 18px; }
  .slide-text { font-size: 15px; }
  .slide-title { font-size: 26px; line-height: 1.15; }
  .brand-tagline .brand-slogan { font-size: 17px; }
  .brand-tagline .brand-note { font-size: 14px; }
  .sh-hero p { font-size: 17px; }
  .sh-head h2 { font-size: 34px; }
  .sh-section { margin-bottom: 44px; }
  .main > h1, .catalog-title, .detail h1 { font-size: 30px; }
  .footer { padding-top: 48px; }
}

@media (max-width: 560px) {
  .footer { margin-top: 60px; padding-top: 40px; }
  .footer-grid { gap: 36px 20px; }
  .footer-title { margin-bottom: 18px; font-size: 17px; }
  .footer-links { gap: 10px; font-size: 15px; }
  .footer-bottom { margin-top: 40px; flex-direction: column; gap: 6px; font-size: 14px; }
}

/* ---------- Телефон: полоса, поиск и шапка как у jara.net.kg ---------- */

@media (max-width: 760px) {
  /* Полоса намертво вверху экрана, над логотипом: кнопка меню, лупа, избранное, корзина. */
  body { padding-top: 60px; }
  .nav-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: stretch; }
  .nav-bar .nav { flex: none; width: auto; }
  .nav-search, .nav-fav {
    display: grid; place-items: center; position: relative; flex: none; width: 60px; height: 60px; padding: 0;
    border: 0; background: none; color: #a5a5a5; cursor: pointer;
  }
  .nav-search { order: 2; margin-left: auto; }
  .nav-fav { order: 3; }
  .nav-search:hover, .nav-fav:hover { color: #fff; }
  .nav-cart {
    order: 4; position: relative; flex: none; width: 83px; padding: 0; justify-content: center; gap: 0;
    background: #f4f4f4; color: var(--text);
  }
  .nav-cart .nav-cart-label { display: none; }
  .nav-cart .cart-count, .nav-fav .cart-count {
    position: absolute; top: 8px; left: 50%; margin: 0 0 0 4px; min-width: 25px; height: 25px; line-height: 25px;
    border-radius: 13px; font-size: 12px;
  }
  .nav-fav .cart-count { background: #fff; color: var(--text); text-align: center; padding: 0 5px; font-weight: 700; }

  /* В шапке остаются логотип, девиз и телефоны: поиск, избранное и корзина — в полосе. */
  /* Телефоны и мессенджеры — по центру, рядами под логотипом, как в шаблоне. */
  .header-row { padding-top: 22px; }
  .header .social { --social-size: 30px; }
  .header-actions > .cart-link, .header-actions > .theme-switch { display: none !important; }

  /* Поиск — панель справа за лупой: серая шапка с полем, рядом квадрат с крестиком. Панель
     всегда на месте, но задвинута за правый край вместе с крестиком — открытие выдвигает её
     так же плавно, как панель каталога слева. */
  /* Шаблон тянет фон шапки на всю ширину тенью с clip-path, а clip-path привязывает к шапке
     и обрезает всё внутри неё, даже панель с position: fixed. На телефоне шапка и так во всю
     ширину, поэтому приём не нужен. */
  .header-row { clip-path: none; box-shadow: none; }
  .search {
    display: flex; position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; order: 0;
    width: 260px; max-width: calc(100vw - 45px); margin: 0; padding: 20px; align-items: flex-start;
    /* Поле поиска в шапке выровнено по центру строки, а браузеры применяют выравнивание
       и к фиксированным блокам: без stretch панель сжималась до поля посреди экрана. */
    align-self: stretch; justify-self: stretch;
    background: linear-gradient(#f4f4f4 0 90px, #fff 90px);
    box-shadow: 0 0 8px rgba(0, 0, 0, .15);
    transform: translateX(calc(100% + 45px)); visibility: hidden;
    transition: transform .3s, visibility 0s .3s;
  }
  .search-open .search { transform: none; visibility: visible; transition: transform .3s; }
  .search input {
    flex: 1; min-width: 0; height: 50px; padding: 0 50px 0 20px; border: 0; background: #fff; font-size: 16px;
  }
  .search input:focus { outline: none; }
  .search button[type="submit"] {
    position: absolute; top: 20px; right: 20px; width: 50px; height: 50px; padding: 0; font-size: 0;
    background: center / 26px no-repeat url(images/search.svg);
  }
  .search button[type="submit"]:hover { background-color: transparent; }
  .search .search-close {
    display: grid; place-items: center; position: absolute; top: 0; left: -45px; width: 45px; height: 45px; padding: 0;
    border: 0; background: #d9d9d9; color: var(--text); cursor: pointer;
  }
}
