/* Дополнения к вёрстке 2024 для нового сайта */
html, body { background: #fff; color-scheme: light; }
.in-stock { color: #2e9e4f; }
.filter-cards__form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 16px 0; }
.checkbox-inline { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.add-to-cart { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 24px 0; }
.pagination__link { padding: 8px 14px; border: 1px solid #d9d9d9; border-radius: 6px; }
.root-categories { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 24px; margin: 12px 0 28px; }
.product-properties { display: grid; grid-template-columns: minmax(140px, 240px) 1fr; gap: 6px 16px; margin: 12px 0 24px; }
.product-properties dt { color: #6b7280; }
.product-description { line-height: 1.55; margin-bottom: 24px; }
.product-description img { max-width: 100%; height: auto; }
.messages__container { max-width: 1200px; margin: 12px auto; padding: 0 16px; }
.messages__item { padding: 10px 14px; border-radius: 6px; background: #eef7f0; margin-bottom: 8px; }
.messages__item_error { background: #fdecec; color: #b71c1c; }
.footer__container.footer__legal { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(127,127,127,.3); font-size: 13px; opacity: .85; }
.footer__legal-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer__legal a { color: inherit; text-decoration: underline; }
/* Корзина и оформление */
.cart-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.cart-table th, .cart-table td { padding: 10px 8px; border-bottom: 1px solid #eee; text-align: left; vertical-align: middle; }
.cart-table__sku { font-size: 12px; color: #6b7280; }
.cart-table__qty { width: 70px; padding: 6px; border: 1px solid #d9d9d9; border-radius: 6px; }
.cart-table__remove { border: 0; background: none; color: #b71c1c; cursor: pointer; font-size: 16px; }
.cart-summary { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 20px 0; }
.cart-summary__total { font-size: 20px; font-weight: 700; }
.cart-summary__hint { color: #2e7d32; }
.checkout__form { max-width: 720px; display: flex; flex-direction: column; gap: 16px; }
.checkout fieldset { border: 1px solid #eee; border-radius: 8px; padding: 12px 16px; }
.checkout legend { font-weight: 700; padding: 0 6px; }
.form-row { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.form-row input, .form-row textarea { padding: 8px 10px; border: 1px solid #d9d9d9; border-radius: 6px; font: inherit; }
.form-row_error input, .form-row_error textarea { border-color: #c62828; }
.form-error { color: #c62828; font-size: 14px; }
.choice { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; cursor: pointer; }
.choice input { margin-top: 4px; }
.choice a { text-decoration: underline; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Кабинет и вход */
.auth-form { max-width: 420px; }
.auth-form__hint { font-size: 13px; color: #6b7280; }
.cabinet__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 12px 0 24px; }
.cabinet__nav a { text-decoration: underline; }
.link-button { border: 0; background: none; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
.notice { padding: 10px 14px; border-radius: 6px; background: #fff8e1; }
.notice a { text-decoration: underline; }
/* Прайс-лист */
.price-form { display: flex; flex-direction: column; gap: 18px; max-width: 900px; }
.price-form__row { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.price-tree__row { display: flex; align-items: center; gap: 8px; }
.price-tree__toggle { flex: none; width: 24px; height: 24px; padding: 0; border: 1px solid #cfcfcf; border-radius: 4px; background: #fff; font-weight: 700; cursor: pointer; }
.price-tree__toggle_empty { border-color: transparent; background: none; cursor: default; }
.price-tree__children { margin: 4px 0 4px 32px; }
.price-tree__children[hidden] { display: none; }
/* Выбор города (вместо geoip Битрикса) */
.region-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 20px 0; }
.region-list__item { width: 100%; padding: 12px 16px; border: 1px solid #e0e0e0; border-radius: 8px; background: #fff; font: inherit; text-align: left; cursor: pointer; }
.region-list__item.active, .region-list__item:hover { border-color: #3fb449; color: #3fb449; }
.region-list__hint { font-size: 14px; color: #6b7280; }
/* Витрина: дополнения к разметке старого сайта */
.actions-product__form { display: contents; }
.filter-catalog__buttons { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.filter-catalog__buttons .button { padding: 8px 16px; }
.filter-cards__items a.filter-cards__button { display: inline-flex; align-items: center; }
.body-accordion[hidden] { display: none; }
.page-section__body_wide { width: 100%; max-width: none; flex: 1 1 100%; }
.listing-page .filter-cards__form { margin: 0 0 16px; }
.listing-page__container { padding-top: 8px; padding-bottom: 24px; }
.modern-page-navigation { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.filter-cards__button.active { color: var(--mainWhite); background-color: var(--mainGreen); border: 0.0625rem solid var(--mainWhite); }
@media (max-width: 767px) { .catalog-cards { align-content: start; } }
.kombox-range .noUi-tooltip { display: none; }
/* /brands/ — размеры как у старого сайта (там шрифт 14px, картинки 40×27) */
.catalog-section-list { font-size: 14px; line-height: 1; }
.catalog-section-list .models_list li .pic img { max-width: 40px; max-height: 27px; width: auto; height: auto; }
.news-list { font-size: 14px; line-height: 1.4; }

/* подсказки под строкой поиска (static/site/js/suggest.js) */
.search-suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 60; background: #fff; border: 1px solid #ddd;
  border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 8px; max-height: 70vh; overflow-y: auto; }
.search-suggest__title { font-size: 14px; color: #666; margin: 4px 8px 6px; }
.search-suggest__model { display: flex; align-items: center; gap: 12px; padding: 7px 8px; color: #222;
  text-decoration: none; border-top: 1px solid #f0f0f0; }
.search-suggest__model img, .search-suggest__model i { width: 24px; height: 32px; object-fit: contain; flex: none; }
.search-suggest__model span { font-size: 15px; }
.search-suggest__model:hover, .search-suggest__product:hover { background: #f3fbef; }
.search-suggest__product { display: block; padding: 6px 8px; color: #222; text-decoration: none; font-size: 14px; }
.search-suggest__product small { color: #888; }
/* Телефон (10.10): главная в одну колонку — меню разделов и поступления сверху во всю ширину, под ними товары
   (было 130px + остаток — карточка товара обрезалась); разделы — иконка с названием, а не одна иконка */
@media (max-width: 47.99875em) {
  .main-catalog__wrapper { grid-template-columns: minmax(0, 1fr); }
  .main-catalog .catalog_hidden-pc { width: 100% !important; grid-template-columns: minmax(0, 1fr) !important; gap: 8px; }
  .main-catalog .catalog_hidden-pc .catalog__item,
  .main-catalog .catalog_hidden-pc .catalog__title { width: 100% !important; max-width: none !important; }
  .main-catalog .catalog_hidden-pc .catalog__title { height: auto; min-height: 48px; display: flex; align-items: center;
    justify-content: flex-start; gap: 12px; padding: 8px 14px; }
  .main-catalog .catalog_hidden-pc .catalog__title span { display: inline; white-space: normal; font-size: 15px;
    font-weight: 600; text-align: left; color: #222; }
}
/* Страница модели (10.10): карточка «о телефоне» + «ремонт» — свои стили, без наследия шаблона (у него line-height: 1) */
.mcard { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; margin-bottom: 28px;
  font-family: inherit; line-height: 1.45; color: #1f2328; }
.mcard__box { background: #fff; border: 1px solid #eceef1; border-radius: 16px; padding: 22px 24px;
  box-shadow: 0 4px 18px rgba(16, 24, 40, .05); }
.mcard__about { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 22px; align-items: start; }
.mcard__photo { width: 148px; height: 188px; border-radius: 12px; background: #f5f6f8; display: flex;
  align-items: center; justify-content: center; padding: 12px; box-sizing: border-box; }
.mcard__photo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.mcard__title { font-size: 24px; line-height: 1.25; font-weight: 700; margin: 2px 0 14px; letter-spacing: -.01em; }
.mcard__subtitle { font-size: 18px; line-height: 1.3; font-weight: 700; margin: 0; }
.mcard__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.mcard__specs { margin: 0; display: grid; gap: 0; }
.mcard__spec { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 12px; padding: 7px 0;
  border-bottom: 1px solid #f1f2f4; font-size: 14px; }
.mcard__spec:last-child { border-bottom: 0; }
.mcard__spec dt { color: #6b7280; margin: 0; }
.mcard__spec dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.mcard__text { font-size: 15px; color: #4b5563; margin: 0; }
.mcard__services { list-style: none; margin: 0; padding: 0; }
.mcard__services li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 8px 0; border-bottom: 1px dashed #e8eaee; font-size: 14px; }
.mcard__services li:last-child { border-bottom: 0; }
.mcard__services b { font-weight: 600; white-space: nowrap; color: #1f2328; }
.mcard__services b.is-free { color: #2e9e4f; }
.mcard__hint { font-size: 12.5px; color: #8a919c; margin: 10px 0 16px; }
.mcard__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mcard__btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 46px;
  padding: 0 16px; border-radius: 12px; font-size: 15px; font-weight: 600; text-decoration: none; text-align: center;
  transition: background .15s, color .15s, border-color .15s; box-sizing: border-box; }
.mcard__btn_primary { background: var(--mainGreen, #4fd11b); color: #fff; border: 1px solid var(--mainGreen, #4fd11b); }
.mcard__btn_primary:hover { filter: brightness(.95); }
.mcard__btn_ghost { background: #fff; color: #1f2328; border: 1px solid #d5d9df; }
.mcard__btn_ghost:hover { border-color: var(--mainGreen, #4fd11b); color: #2e9e4f; }
.mcard__services_seller li { align-items: center; }
.mcard__services_seller li span { flex: 1; }
.mcard__services_seller form { margin: 0; }
.mcard__cart { width: 34px; height: 34px; border-radius: 10px; border: 1px solid #e3e6ea; background: #fff;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.mcard__cart:hover { border-color: var(--mainGreen, #4fd11b); }
.mcard__cart svg { width: 18px; height: 18px; }
.mcard__actions_one { grid-template-columns: minmax(0, 1fr); margin-top: 14px; }
@media (max-width: 61.99875em) { .mcard { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 47.99875em) {
  .mcard__box { padding: 16px; border-radius: 14px; }
  .mcard__about { grid-template-columns: 84px minmax(0, 1fr); grid-template-areas: "photo title" "specs specs";
    gap: 12px 14px; align-items: center; }
  .mcard__info { display: contents; }
  .mcard__photo { grid-area: photo; width: 84px; height: 104px; padding: 8px; }
  .mcard__title { grid-area: title; font-size: 20px; margin: 0; }
  .mcard__specs, .mcard__text { grid-area: specs; }
  .mcard__spec { grid-template-columns: 112px minmax(0, 1fr); gap: 10px; font-size: 13.5px; padding: 6px 0; }
  .mcard__actions { grid-template-columns: minmax(0, 1fr); }
}
/* «Ремонт <модели>» */
.repair-page { line-height: 1.45; color: #1f2328; }
.repair-page__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.repair-page__head { background: #fff; border: 1px solid #eceef1; border-radius: 16px; padding: 22px 24px;
  box-shadow: 0 4px 18px rgba(16, 24, 40, .05); }
.repair-page__title { font-size: 28px; line-height: 1.2; margin: 0; }
.repair-page__item { border-radius: 12px !important; border-color: #eceef1 !important; }
.footer__credits { font-size: 12px; opacity: .7; }
.footer__credits a { color: inherit; text-decoration: underline; }
.repair-page__head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 24px; }
.repair-page__head p { line-height: 1.55; margin: 8px 0 16px; max-width: 760px; }
.repair-page__image { flex: none; object-fit: contain; }
.repair-page__group { margin-bottom: 20px; }
.repair-page__subtitle { font-size: 20px; font-weight: 700; margin: 0 0 10px; }
.repair-page__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px; }
.repair-page__item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid #eee; border-radius: 8px; background: #fff; }
.repair-page__item b { display: block; font-weight: 600; }
.repair-page__item span { display: block; font-size: 14px; color: #6b7280; margin-top: 2px; }
.repair-page__ask { flex: none; font-size: 14px; color: var(--mainGreen, #3cb914); text-decoration: underline; }
.repair-page__note p { line-height: 1.55; margin: 0 0 10px; max-width: 760px; }
.repair-page__note a { color: var(--mainGreen, #3cb914); text-decoration: underline; }
@media (max-width: 47.99875em) {
  .repair-page__head { flex-direction: column; gap: 12px; padding: 16px; border-radius: 14px; }
  .repair-page__image { width: 64px; height: auto; }
  .repair-page__title { font-size: 24px; }
  .repair-page__actions .mcard__btn { flex: 1 1 100%; }
  .repair-page__list { grid-template-columns: minmax(0, 1fr); }
}
/* Подборка «Новинка / Хит / Распродажа» (11.10): колонка — список, телефон — горизонтальная лента */
.promo { background: #fff; border: 1px solid #eceef1; border-radius: 16px; padding: 16px; margin-top: 16px;
  box-shadow: 0 4px 18px rgba(16, 24, 40, .05); line-height: 1.35; color: #1f2328; }
.promo__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.promo__title { font-size: 17px; font-weight: 700; margin: 0; }
.promo__all { font-size: 13px; color: #2e9e4f; text-decoration: none; white-space: nowrap; }
.promo__all:hover { text-decoration: underline; }
.promo__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.promo__card { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center;
  padding: 8px; border-radius: 12px; text-decoration: none; color: inherit; transition: background .15s; }
.promo__card:hover { background: #f6f8f7; }
.promo__photo { width: 64px; height: 64px; border-radius: 10px; background: #f5f6f8; display: flex;
  align-items: center; justify-content: center; overflow: hidden; }
.promo__photo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.promo__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.promo__badge { align-self: flex-start; font-size: 11px; font-weight: 700; line-height: 1; padding: 4px 7px;
  border-radius: 6px; text-transform: uppercase; letter-spacing: .02em; }
.promo__badge_new { background: #e8f8e2; color: #2e8a12; }
.promo__badge_hit { background: #fff1e0; color: #c25e00; }
.promo__badge_sale { background: #fde8e8; color: #c62828; }
.promo__name { font-size: 13.5px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; }
.promo__price { font-size: 14px; font-weight: 700; }
.promo__price s { font-weight: 400; color: #9ca3af; margin-right: 4px; }
@media (max-width: 47.99875em) {
  .sidebar, .main-catalog .sidebar { min-width: 0; max-width: 100%; }
  .promo { margin: 0 0 16px; padding: 14px 0 10px; border-radius: 14px; min-width: 0; max-width: 100%;
    overflow: hidden; box-sizing: border-box; }
  .promo__head { padding: 0 14px; }
  .promo__list { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 14px 6px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .promo__list::-webkit-scrollbar { display: none; }
  .promo__item { flex: 0 0 148px; scroll-snap-align: start; }
  .promo__card { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 8px; border: 1px solid #f0f1f3; height: 100%;
    box-sizing: border-box; align-items: start; }
  .promo__photo { width: 100%; height: 110px; }
}
/* «Новинки, хиты и распродажа» (11.10) — стиль подборки «Стоит посмотреть» */
.novinki__container { max-width: 1290px; margin: 0 auto; padding: 0 15px 40px; color: #1f2328; line-height: 1.4; }
.novinki__head { margin: 8px 0 18px; }
.novinki__title { font-size: 30px; line-height: 1.2; font-weight: 700; margin: 0 0 6px; letter-spacing: -.01em; }
.novinki__lead { font-size: 15px; color: #5b636e; margin: 0; }
.novinki__tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.novinki__tab { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid #e1e4e8; background: #fff; color: #1f2328; font-size: 15px; font-weight: 600; text-decoration: none; }
.novinki__tab span { font-size: 12px; font-weight: 600; color: #6b7280; background: #f1f3f5; border-radius: 999px; padding: 2px 8px; }
.novinki__tab:hover { border-color: var(--mainGreen, #4fd11b); }
.novinki__tab.is-active { background: #1f2328; border-color: #1f2328; color: #fff; }
.novinki__tab.is-active span { background: rgba(255, 255, 255, .18); color: #fff; }
.novinki__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.ncard { display: flex; flex-direction: column; background: #fff; border: 1px solid #eceef1; border-radius: 16px;
  padding: 12px; box-shadow: 0 4px 18px rgba(16, 24, 40, .04); transition: box-shadow .15s, transform .15s; }
.ncard:hover { box-shadow: 0 10px 28px rgba(16, 24, 40, .09); transform: translateY(-1px); }
.ncard__link { display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; flex: 1; }
.ncard__photo { aspect-ratio: 1 / 1; border-radius: 12px; background: #f5f6f8; display: flex; align-items: center;
  justify-content: center; overflow: hidden; }
.ncard__photo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.ncard__badge { margin-top: 2px; }
.ncard__name { font-size: 14px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 3.9em; }
.ncard__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 10px; }
.ncard__price { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ncard__price b { font-size: 17px; font-weight: 700; }
.ncard__price s { font-size: 13px; color: #9ca3af; }
.ncard__price small { font-size: 12px; color: #8a919c; }
.ncard__form { margin: 0; flex: none; }
.ncard__buy { height: 38px; padding: 0 14px; border-radius: 10px; border: 0; background: var(--mainGreen, #4fd11b);
  color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }
.ncard__buy:hover { filter: brightness(.95); }
.novinki__pages { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 28px 0 0; }
.novinki__page { height: 42px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 12px;
  border: 1px solid #d5d9df; color: #1f2328; text-decoration: none; font-weight: 600; }
.novinki__page:hover { border-color: var(--mainGreen, #4fd11b); }
.novinki__page-now { color: #6b7280; font-size: 14px; }
.novinki__empty a { color: #2e9e4f; text-decoration: underline; }
@media (max-width: 47.99875em) {
  .novinki__title { font-size: 24px; }
  .novinki__tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -15px 16px; padding: 0 15px; }
  .novinki__tabs::-webkit-scrollbar { display: none; }
  .novinki__tab { flex: none; height: 38px; font-size: 14px; }
  .novinki__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ncard { padding: 10px; border-radius: 14px; }
  .ncard__name { font-size: 13px; }
  .ncard__foot { flex-direction: column; align-items: stretch; }
  .ncard__buy { width: 100%; }
}
