/* АвтоСтарт — оформление поверх стандартной темы OpenCart 4 (Bootstrap 5) */
:root {
  --as-blue: #0f4373;
  --as-blue-dark: #0a2f52;
  --as-blue-deep: #08243f;
  --as-blue-tint: #e9f0f7;
  --as-blue-line: #cfdcea;
  --as-accent: #ffc928;
  --as-accent-hover: #ffd75c;
  --as-text: #1d2733;
  --as-muted: #5b6b7d;
  --as-radius: 14px;
  --as-shadow: 0 6px 24px rgba(15, 67, 115, .10);
  --bs-primary: #0f4373;
  --bs-primary-rgb: 15, 67, 115;
  --bs-link-color: #0f4373;
  --bs-link-color-rgb: 15, 67, 115;
  --bs-link-hover-color: #0a2f52;
  --bs-link-hover-color-rgb: 10, 47, 82;
  --bs-body-color: #1d2733;
}

body.as-theme {
  color: var(--as-text);
  background: #f5f7fa;
  font-size: 16px;
  line-height: 1.6;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.as-theme h1, .as-theme h2, .as-theme h3, .as-theme h4 { color: var(--as-blue-deep); font-weight: 700; line-height: 1.25; }
.as-theme h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.as-theme h2 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.85rem); }
.as-theme h3 { font-size: 1.3rem; }
.as-theme a { color: var(--as-blue); }
.as-theme a:hover { color: var(--as-blue-dark); }
.as-theme :focus-visible { outline: 3px solid var(--as-accent); outline-offset: 2px; }

/* Кнопки */
.as-theme .btn { border-radius: 10px; font-weight: 600; padding: .65rem 1.25rem; }
.as-theme .btn-primary {
  --bs-btn-bg: var(--as-blue); --bs-btn-border-color: var(--as-blue);
  --bs-btn-hover-bg: var(--as-blue-dark); --bs-btn-hover-border-color: var(--as-blue-dark);
  --bs-btn-active-bg: var(--as-blue-deep); --bs-btn-active-border-color: var(--as-blue-deep);
  background-image: none;
}
.as-theme .btn-outline-primary {
  --bs-btn-color: var(--as-blue); --bs-btn-border-color: var(--as-blue);
  --bs-btn-hover-bg: var(--as-blue); --bs-btn-hover-border-color: var(--as-blue);
  --bs-btn-active-bg: var(--as-blue-dark);
}
.as-btn-accent, .as-theme .as-btn-accent {
  background: var(--as-accent); color: var(--as-blue-deep); border: 0;
  align-items: center; gap: .5rem;
}
.as-btn-accent:hover, .as-theme .as-btn-accent:hover { background: var(--as-accent-hover); color: var(--as-blue-deep); }
.as-btn-ghost, .as-theme .as-btn-ghost { color: #fff; border: 2px solid rgba(255,255,255,.55); background: transparent; }
.as-btn-ghost:hover, .as-theme .as-btn-ghost:hover { color: var(--as-blue-deep); background: #fff; border-color: #fff; }

/* Шапка */
.as-header { background: var(--as-blue); color: #fff; }
.as-header__row { display: flex; align-items: center; gap: 1.5rem; min-height: 96px; }
.as-logo { flex: 0 0 auto; display: block; line-height: 0; }
.as-logo img { height: 83px; width: auto; }
.as-logo span { font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1.2; }
.as-tagline { flex: 1 1 auto; padding-left: 1.5rem; border-left: 1px solid rgba(255,255,255,.2); }
.as-tagline strong { display: block; font-size: 1.05rem; font-weight: 600; }
.as-tagline span { display: block; color: rgba(255,255,255,.72); font-size: .9rem; }
.as-header__contacts { margin-left: auto; text-align: right; }
.as-theme .as-phone { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.45rem; white-space: nowrap; letter-spacing: .01em; }
.as-theme .as-phone:hover { color: var(--as-accent); }
.as-phone i { color: var(--as-accent); font-size: 1.1rem; margin-right: .35rem; }
.as-phone__note { color: rgba(255,255,255,.72); font-size: .85rem; }
.as-header__call { margin-left: .5rem; }

/* Меню */
.as-nav { background: #fff; border-bottom: 1px solid var(--as-blue-line); position: sticky; top: 0; z-index: 1020; box-shadow: 0 2px 10px rgba(15,67,115,.06); }
.as-theme #menu { background: transparent; border: 0; border-radius: 0; min-height: 0; padding: 0; margin: 0; background-image: none; }
.as-theme #menu .navbar-nav > li > a.nav-link {
  color: var(--as-blue-deep); font-weight: 600; font-size: 1rem; padding: 1rem 1.1rem; text-shadow: none;
  border-bottom: 3px solid transparent;
}
.as-theme #menu .navbar-nav > li > a.nav-link:hover { color: var(--as-blue); background: var(--as-blue-tint); }
.as-theme #menu .navbar-nav > li > a.nav-link.active { color: var(--as-blue); border-bottom-color: var(--as-accent); }
.as-theme #menu #category { color: var(--as-blue-deep); font-weight: 700; font-size: 1.05rem; padding: .8rem 0; float: none; text-shadow: none; }
.as-theme #menu .navbar-toggler { color: var(--as-blue); border: 1px solid var(--as-blue-line); background: #fff; padding: .45rem .75rem; }
.as-theme #menu .navbar-toggler i { color: var(--as-blue); }
@media (max-width: 991.98px) {
  .as-theme #menu { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; }
  .as-theme #menu .navbar-nav { padding-bottom: .5rem; }
  .as-theme #menu .navbar-nav > li > a.nav-link { padding: .75rem .25rem; border-bottom: 1px solid var(--as-blue-line); }
  .as-theme #menu .navbar-nav > li > a.nav-link.active { border-bottom-color: var(--as-blue-line); border-left: 4px solid var(--as-accent); padding-left: .75rem; }
}

/* Контент */
.as-theme main { padding-bottom: 2.5rem; }
.as-theme .breadcrumb { background: transparent; border: 0; padding: 1rem 0 .25rem; margin: 0; font-size: .9rem; }
.as-theme .breadcrumb a { color: var(--as-muted); }
.as-theme #content { padding-top: .5rem; }
#information-information #content {
  background: #fff; border-radius: var(--as-radius); box-shadow: var(--as-shadow);
  padding: clamp(1.25rem, 3vw, 2.5rem); margin: 1rem 0 0;
}
#information-information #content img { max-width: 100%; height: auto; border-radius: 10px; }
#information-information #content h1 { margin-bottom: 1.25rem; }
.as-theme .table { --bs-table-border-color: var(--as-blue-line); }
.as-theme .table thead th { background: var(--as-blue-tint); color: var(--as-blue-deep); }
.as-theme .table td, .as-theme .table th { padding: .75rem 1rem; }
.as-theme #content ul li::marker { color: var(--as-blue); }

/* Главная */
#common-home { padding-top: 1.5rem; }
#common-home #content > div > h2:first-child { display: none; }
.as-hero {
  position: relative; overflow: hidden; color: #fff; border-radius: var(--as-radius);
  background: linear-gradient(120deg, var(--as-blue) 0%, var(--as-blue-dark) 60%, var(--as-blue-deep) 100%);
  padding: clamp(1.75rem, 5vw, 3.5rem); margin-bottom: 2rem;
}
.as-hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,201,40,.22), rgba(255,201,40,0) 70%); pointer-events: none;
}
.as-hero h1 { color: #fff; margin-bottom: 1rem; max-width: 22ch; }
.as-hero p { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 60ch; }
.as-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.as-hero__actions .btn { padding: .85rem 1.5rem; font-size: 1.05rem; display: inline-flex; align-items: center; gap: .5rem; }
.as-hero__img { position: relative; z-index: 1; background: #fff; border-radius: 12px; padding: .5rem; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.as-hero__img img { width: 100%; height: auto; border-radius: 8px; display: block; }

.as-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2.5rem; }
.as-fact { background: #fff; border-radius: var(--as-radius); padding: 1.25rem; box-shadow: var(--as-shadow); border-top: 4px solid var(--as-accent); }
.as-fact b { display: block; font-size: 1.6rem; color: var(--as-blue); line-height: 1.1; margin-bottom: .35rem; }
.as-fact span { color: var(--as-muted); font-size: .95rem; }

.as-section-title { margin: 0 0 1.25rem; }
.as-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 2.5rem; }
.as-card {
  background: #fff; border-radius: var(--as-radius); box-shadow: var(--as-shadow); overflow: hidden;
  display: flex; flex-direction: column; text-decoration: none; color: var(--as-text); transition: transform .15s, box-shadow .15s;
}
a.as-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(15,67,115,.16); color: var(--as-text); }
.as-card__img { aspect-ratio: 16 / 10; background: #f2f4f7; display: flex; align-items: center; justify-content: center; }
.as-card__img img { width: 100%; height: 100%; object-fit: contain; }
.as-card__icon { aspect-ratio: 16 / 10; background: var(--as-blue-tint); display: flex; align-items: center; justify-content: center; font-size: 3.2rem; color: var(--as-blue); }
.as-card__body { padding: 1.25rem 1.25rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.as-card__body h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.as-card__body p { color: var(--as-muted); margin-bottom: 1rem; }
.as-card__more { margin-top: auto; color: var(--as-blue); font-weight: 600; }

.as-parts { background: #fff; border-radius: var(--as-radius); box-shadow: var(--as-shadow); padding: clamp(1.25rem, 3vw, 2rem); margin-bottom: 2.5rem; }
.as-parts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.as-parts h3 { font-size: 1.1rem; display: flex; align-items: center; gap: .5rem; }
.as-parts h3 i { color: var(--as-blue); }
.as-parts p { color: var(--as-muted); margin: 0; font-size: .95rem; }

.as-places { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 2.5rem; }
.as-place { background: #fff; border-radius: var(--as-radius); box-shadow: var(--as-shadow); padding: 1.25rem 1.25rem 1.4rem; border-left: 5px solid var(--as-blue); }
.as-place h3 { font-size: 1.1rem; margin-bottom: .6rem; }
.as-place p { margin: 0 0 .25rem; color: var(--as-muted); }
.as-place a { font-weight: 600; text-decoration: none; }

.as-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--as-blue); color: #fff; border-radius: var(--as-radius); padding: clamp(1.25rem, 3vw, 2rem);
}
.as-cta h2 { color: #fff; margin: 0 0 .25rem; font-size: 1.5rem; }
.as-cta p { margin: 0; color: rgba(255,255,255,.8); }

@media (max-width: 991.98px) {
  .as-facts { grid-template-columns: repeat(2, 1fr); }
  .as-services, .as-places, .as-parts__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575.98px) {
  .as-services, .as-places, .as-parts__grid { grid-template-columns: 1fr; }
  .as-hero__actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* Подвал */
.as-footer { background: var(--as-blue-deep); color: rgba(255,255,255,.78); padding: 3rem 0 1.5rem; margin-top: 0; border: 0; }
.as-footer h5 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 1rem; text-transform: none; }
.as-theme .as-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.as-theme .as-footer a:hover { color: var(--as-accent); }
.as-theme .as-footer__logo { color: #fff; font-size: 1.5rem; font-weight: 800; display: inline-block; margin-bottom: .5rem; }
.as-footer__about { max-width: 34ch; }
.as-footer__list li { display: flex; gap: .6rem; margin-bottom: .55rem; }
.as-footer__list i { color: var(--as-accent); margin-top: .3rem; width: 1rem; text-align: center; flex: 0 0 auto; }
.as-theme .as-footer__phone { font-weight: 700; font-size: 1.15rem; color: #fff; }
.as-footer__more { font-weight: 600; }
.as-footer__links { margin-top: 1rem; columns: 2; column-gap: 1rem; font-size: .92rem; }
.as-footer__links li { margin-bottom: .35rem; break-inside: avoid; }
.as-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.25rem; font-size: .88rem; color: rgba(255,255,255,.55); }

/* Мобильная панель «Позвонить / Адреса» */
.as-mobilebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: flex; gap: .5rem;
  padding: .5rem .5rem calc(.5rem + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -4px 18px rgba(0,0,0,.12);
}
.as-mobilebar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem; border-radius: 10px; font-weight: 700; text-decoration: none; }
.as-theme .as-mobilebar__call { background: var(--as-accent); color: var(--as-blue-deep); }
.as-theme .as-mobilebar__map { background: var(--as-blue); color: #fff; }
.as-theme .as-mobilebar__map:hover { color: #fff; }

@media (max-width: 767.98px) {
  body.as-theme { padding-bottom: 72px; }
  .as-header__row { min-height: 72px; gap: .75rem; }
  .as-logo img { height: 58px; }
  .as-theme .as-phone { font-size: 1.1rem; }
  .as-phone i { display: none; }
  .as-footer__links { columns: 1; }
}
@media (max-width: 380px) {
  .as-theme .as-phone { font-size: 1rem; }
  .as-logo img { height: 50px; }
}
@media (prefers-reduced-motion: reduce) { a.as-card { transition: none; } a.as-card:hover { transform: none; } }

/* Раскладка: подвал идёт после содержимого (в стандартной теме он absolute и наезжает на длинные страницы) */
.as-theme #container { position: relative; min-height: 100vh; margin: 0; display: flex; flex-direction: column; }
.as-theme #container > main { flex: 1 0 auto; }
.as-theme footer.as-footer { position: static; bottom: auto; border: 0; }
/* У JPEG-логотипа по краю светлая полоса в 1px — срезаем */
.as-logo img { clip-path: inset(2px); }
/* Карточки услуг: картинка не растягивает карточку */
.as-card__img { min-height: 0; overflow: hidden; }
.as-cta .btn { padding: .85rem 1.5rem; font-size: 1.05rem; display: inline-flex; align-items: center; gap: .5rem; }
/* Картинки в тексте страниц не шире колонки (у фото в «Контактах» inline max-width:640px) */
#information-information #content img { max-width: min(100%, 640px) !important; }
.as-theme #content a[href^="tel:"] { white-space: nowrap; }

/* Боковые ярлыки, как на старом сайте: «Заказать обратный звонок» и «Купон на скидку» */
.as-sidetabs { position: fixed; right: 0; top: 45%; transform: translateY(-50%); z-index: 1025; flex-direction: column; gap: .5rem; }
.as-sidetab {
  display: flex; align-items: center; gap: .6rem; border: 0; text-decoration: none; cursor: pointer;
  padding: .75rem .9rem; border-radius: 12px 0 0 12px; font-weight: 700; font-size: .92rem; line-height: 1.2;
  box-shadow: -4px 4px 16px rgba(0,0,0,.18); transform: translateX(calc(100% - 3.1rem)); transition: transform .2s ease;
  max-width: 15rem; text-align: left;
}
.as-sidetab i { font-size: 1.2rem; width: 1.4rem; text-align: center; flex: 0 0 auto; }
.as-sidetab:hover, .as-sidetab:focus-visible { transform: translateX(0); }
.as-theme .as-sidetab--call { background: var(--as-blue); color: var(--as-accent); }
.as-theme .as-sidetab--coupon { background: #c8102e; color: #fff; }
.as-theme .as-sidetab--coupon:hover { color: #fff; }
@media (hover: none) { .as-sidetab { transform: none; } .as-sidetab span { display: none; } }

/* Мобильная панель на три кнопки */
.as-mobilebar a, .as-mobilebar button { flex: 1; display: flex; align-items: center; justify-content: center; gap: .4rem; padding: .75rem .25rem; border-radius: 10px; font-weight: 700; text-decoration: none; border: 0; font-size: .9rem; }
.as-theme .as-mobilebar__back { background: var(--as-blue); color: #fff; }
.as-theme .as-mobilebar__coupon { background: #c8102e; color: #fff; flex: 0 0 auto !important; padding-left: .9rem !important; padding-right: .9rem !important; }
.as-theme .as-mobilebar__coupon:hover { color: #fff; }

/* Формы заявок */
.as-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.as-theme .modal-content { border: 0; border-radius: var(--as-radius); overflow: hidden; }
.as-theme .modal-header { background: var(--as-blue); color: #fff; border: 0; }
.as-theme .modal-header .modal-title { color: #fff; font-weight: 700; }
.as-theme .modal-header .btn-close { filter: invert(1) grayscale(1) brightness(2); }
.as-theme .form-control { border-radius: 10px; padding: .65rem .85rem; border-color: var(--as-blue-line); }
.as-theme .form-control:focus { border-color: var(--as-blue); box-shadow: 0 0 0 .2rem rgba(15,67,115,.15); }
.as-theme .form-check-input:checked { background-color: var(--as-blue); border-color: var(--as-blue); }
.as-theme .form-check .invalid-feedback { display: block; }
.as-form-done__icon { font-size: 3rem; color: #2e9d55; line-height: 1; margin-bottom: .75rem; }
.as-loading { opacity: .7; pointer-events: none; }

/* Страница «Купон на скидку»: форма */
.as-coupon-intro { display: flex; gap: 1.25rem; align-items: center; background: linear-gradient(120deg, #c8102e, #8f0b21); color: #fff; border-radius: var(--as-radius); padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; }
.as-coupon-intro i { font-size: 2.6rem; color: var(--as-accent); }
.as-coupon-intro p { margin: 0; color: rgba(255,255,255,.92); }
.as-coupon-intro b { color: #fff; font-size: 1.15rem; display: block; }
.as-coupon-form { max-width: 720px; }

/* Выданный купон */
#avtostart-coupon { padding: 1.5rem 0 1rem; }
.as-coupon-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.as-coupon { max-width: 760px; background: #fff; border: 2px dashed var(--as-blue); border-radius: var(--as-radius); overflow: hidden; box-shadow: var(--as-shadow); }
.as-coupon__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--as-blue); color: #fff; padding: 1.25rem 1.5rem; }
.as-coupon__brand { font-size: 1.9rem; font-weight: 800; line-height: 1; }
.as-coupon__sub { color: rgba(255,255,255,.8); font-size: .9rem; margin-top: .35rem; }
.as-coupon__deal { text-align: right; color: var(--as-accent); line-height: 1; }
.as-coupon__deal span { display: block; text-transform: uppercase; font-weight: 700; letter-spacing: .05em; color: #fff; font-size: .9rem; }
.as-coupon__deal b { font-size: 3.2rem; font-weight: 900; }
.as-coupon__deal--word { font-size: 2.2rem !important; text-transform: uppercase; }
.as-coupon__note { background: var(--as-accent); color: var(--as-blue-deep); font-weight: 700; padding: .6rem 1.5rem; }
.as-coupon__body { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding: 1.5rem; }
.as-coupon__body dl { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin: 0; }
.as-coupon__body dt { color: var(--as-muted); font-weight: 400; }
.as-coupon__body dd { margin: 0; font-weight: 600; }
.as-coupon__code { font-size: 1.25rem; color: var(--as-blue); letter-spacing: .03em; }
.as-coupon__where { border-left: 1px dashed var(--as-blue-line); padding-left: 1.5rem; }
.as-coupon__where ul { padding-left: 1.1rem; margin-bottom: .75rem; }
.as-coupon__phone { font-weight: 700; color: var(--as-blue); margin: 0; }
@media (max-width: 575.98px) {
  .as-coupon__body { grid-template-columns: 1fr; }
  .as-coupon__where { border-left: 0; padding-left: 0; border-top: 1px dashed var(--as-blue-line); padding-top: 1rem; }
  .as-coupon__deal b { font-size: 2.4rem; }
}
@media print {
  .as-header, .as-nav, .as-footer, .as-mobilebar, .as-sidetabs, .breadcrumb, #alert { display: none !important; }
  body.as-theme { background: #fff; padding: 0; }
  .as-coupon { box-shadow: none; max-width: none; }
  .as-coupon__head, .as-coupon__note { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.as-header__call { white-space: nowrap; display: inline-flex; align-items: center; gap: .45rem; }

/* Полоса меню: разделы слева, поиск / вход / корзина справа */
.as-nav__row { display: flex; align-items: center; gap: 1rem; }
.as-nav__row > #menu { flex: 1 1 auto; min-width: 0; }
.as-tools { display: flex; align-items: center; gap: .25rem; flex: 0 0 auto; }
.as-tools__search form { margin: 0 !important; width: 15rem; }
.as-tools__search .form-control { font-size: .95rem; padding: .45rem .75rem; border-radius: 10px 0 0 10px; height: auto; }
.as-tools__search .btn { padding: .45rem .75rem; border-radius: 0 10px 10px 0; border: 1px solid var(--as-blue-line); border-left: 0; background: var(--as-blue-tint); color: var(--as-blue); font-size: 1rem; }
.as-theme .as-tool { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .65rem; border-radius: 10px; color: var(--as-blue-deep); font-weight: 600; text-decoration: none; position: relative; white-space: nowrap; }
.as-theme .as-tool:hover { background: var(--as-blue-tint); color: var(--as-blue); }
.as-tool i { color: var(--as-blue); font-size: 1.05rem; }
.as-theme .as-tool--reg { color: var(--as-muted); font-weight: 500; }
.as-badge { position: absolute; top: .1rem; left: 1.45rem; min-width: 1.15rem; height: 1.15rem; padding: 0 .3rem; border-radius: 1rem; background: #c8102e; color: #fff; font-size: .72rem; font-weight: 700; line-height: 1.15rem; text-align: center; }
.as-theme #menu .dropdown-menu { border: 1px solid var(--as-blue-line); border-radius: 12px; box-shadow: var(--as-shadow); padding: .4rem; margin-top: 0; }
.as-theme #menu .dropdown-item, .as-tools .dropdown-item { border-radius: 8px; padding: .55rem .9rem; font-weight: 500; }
.as-theme #menu .dropdown-item:hover, .as-tools .dropdown-item:hover { background: var(--as-blue-tint); color: var(--as-blue); }
.as-theme #menu .as-nav__catalog > .nav-link { color: var(--as-blue); }
.as-theme #menu .dropdown-toggle::after { vertical-align: .15em; }
@media (max-width: 1199.98px) {
  .as-tools__search form { width: 11rem; }
  .as-theme #menu .navbar-nav > li > a.nav-link { padding-left: .7rem; padding-right: .7rem; font-size: .95rem; }
}
@media (max-width: 991.98px) {
  .as-nav__row { flex-wrap: wrap; gap: 0; }
  .as-nav__row > #menu { order: 1; flex: 1 1 auto; }
  .as-tools { order: 2; }
  .as-tools__search { order: 3; flex: 1 0 100%; padding-bottom: .6rem; }
  .as-tools { flex-wrap: wrap; }
  .as-tools__search form { width: 100%; }
  .as-tool__text { display: none; }
  .as-theme #menu .navbar-collapse { order: 4; flex-basis: 100%; }
}
@media (max-width: 991.98px) {
  /* на мобильном: строка «Меню ☰  [вход] [корзина]», под ней поиск на всю ширину */
  .as-nav__row { display: grid; grid-template-columns: 1fr auto; }
  .as-nav__row > #menu { grid-column: 1 / -1; grid-row: 1; }
  .as-tools { grid-column: 2; grid-row: 1; margin-right: 3.6rem; align-self: start; padding-top: .45rem; flex-wrap: nowrap; }
  .as-tools__search { display: none; }
  .as-mobile-search { display: block !important; }
}
.as-mobile-search { display: none; padding-bottom: .6rem; }
.as-mobile-search form { margin: 0 !important; }

/* Цена для гостей */
.as-theme .as-price-login { display: inline-flex; align-items: center; gap: .4rem; font-size: .95rem; font-weight: 600; color: var(--as-blue); background: var(--as-blue-tint); border-radius: 8px; padding: .35rem .7rem; text-decoration: none; }
.as-theme .as-price-login:hover { background: var(--as-blue); color: #fff; }
.as-theme .as-price-login i { font-size: .85em; }
#product-info h2 .as-price-login, #product-product h2 .as-price-login { font-size: 1.1rem; padding: .6rem 1rem; }
/* Гостю корзина не нужна — цены нет, оформление всё равно потребует входа */
body.as-guest .product-thumb .button button[formaction*="cart"],
body.as-guest #form-product #button-cart, body.as-guest #form-product #input-quantity,
body.as-guest #form-product label[for="input-quantity"] { display: none !important; }
/* Сравнение и «Список желаний» не используются */
.as-theme .product-thumb .button button[formaction*="wishlist"], .as-theme .product-thumb .button button[formaction*="compare"],
.as-theme #product-info button[formaction*="wishlist"], .as-theme #product-info button[formaction*="compare"],
.as-theme #compare-total, .as-theme a[href*="product/compare"] { display: none !important; }
.as-theme .product-thumb { border-color: var(--as-blue-line); border-radius: var(--as-radius); background: #fff; overflow: hidden; }
.as-theme .product-thumb h4 a { color: var(--as-blue-deep); }
.as-theme .product-thumb .price-new { color: var(--as-blue); font-weight: 700; }
.as-mobile-search { grid-column: 1 / -1; }

/* Поиск в синей шапке (вместо подписи) */
.as-header__search { flex: 1 1 auto; max-width: 30rem; margin: 0 auto; }
.as-header__search form { margin: 0 !important; }
.as-header__search .form-control { border: 0; border-radius: 10px 0 0 10px; padding: .6rem .9rem; font-size: 1rem; height: auto; }
.as-header__search .btn { border: 0; border-radius: 0 10px 10px 0; background: var(--as-accent); color: var(--as-blue-deep); padding: .6rem 1rem; font-size: 1rem; }
.as-header__search .btn:hover { background: var(--as-accent-hover); }
.as-header__hint { display: block; color: rgba(255,255,255,.7); font-size: .8rem; margin-top: .3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-header__contacts { margin-left: 0; }
@media (min-width: 992px) and (max-width: 1199.98px) {
  .as-header__hint { display: none; }
  .as-theme .as-phone { font-size: 1.2rem; }
  .as-header__call { padding-left: .8rem; padding-right: .8rem; }
  .as-theme #menu .navbar-nav > li > a.nav-link { padding-left: .55rem; padding-right: .55rem; font-size: .92rem; }
}
@media (max-width: 991.98px) { .as-header__contacts { margin-left: auto; } }

/* Левая колонка категорий */
.as-theme .list-group-item { border-color: var(--as-blue-line); }
.as-theme .list-group-item.active { background: var(--as-blue); border-color: var(--as-blue); }
.as-theme .list-group { border-radius: var(--as-radius); overflow: hidden; box-shadow: var(--as-shadow); }
.as-theme .product-thumb .image img { background: #f2f5f9; }
@media (min-width: 992px) {
  .as-theme #menu .navbar-nav { flex-wrap: nowrap; }
  .as-theme #menu .navbar-nav > li > a.nav-link { padding-left: .8rem; padding-right: .8rem; white-space: nowrap; }
  .as-header__search { max-width: 26rem; min-width: 0; }
  .as-header__row { gap: 1.25rem; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .as-theme #menu .navbar-nav > li > a.nav-link { padding-left: .5rem; padding-right: .5rem; font-size: .9rem; }
  .as-tool__text { display: none; }
  .as-header__call .as-call-text { display: none; }
}
