﻿body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--text-main);
  background: #ffffff;
  line-height: 1.45;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.site-shell {
  min-height: 100vh;
  padding-bottom: 176px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #ffffff;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #dce4f2;
}

.header-inner {
  padding-top: var(--space-4);
  padding-bottom: var(--space-3);
}

.desktop-topline,
.desktop-header-main,
.desktop-category-bar {
  display: none;
}

.logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: var(--space-3);
  font-family: var(--font-body);
  font-size: clamp(2.2rem, 8vw, 3.4rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #0a0f1f;
}

.logo-image {
  width: clamp(182px, 56vw, 298px);
  height: auto;
  aspect-ratio: 110 / 25.16;
}

.search-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-2);
  position: relative;
  isolation: isolate;
}

.search-input-wrap {
  position: relative;
  display: block;
}

.search-input {
  width: 100%;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-main);
}

.search-input::placeholder {
  color: #95a4bd;
}

.search-input-wrap.is-search-open,
.desktop-search-form.is-search-open {
  position: relative;
  z-index: 80;
}

.search-autocomplete {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 81;
  max-height: min(60vh, 420px);
  overflow-y: auto;
  border: 1px solid #d7e2f2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(18, 43, 80, 0.16);
}

.search-autocomplete[hidden] {
  display: none;
}

.search-autocomplete__item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  color: #2f4c73;
  text-decoration: none;
  transition: background-color 0.18s ease;
}

.search-autocomplete__item + .search-autocomplete__item {
  border-top: 1px solid #edf2f8;
}

.search-autocomplete__item:hover,
.search-autocomplete__item.is-active {
  background: #f4f8ff;
}

.search-autocomplete__media {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  background: #f4f7fb;
  border: 1px solid #e7eef7;
}

.search-autocomplete__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-autocomplete__body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.search-autocomplete__title {
  color: #243c61;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.25;
}

.search-autocomplete__price {
  color: #1f58c5;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
}

.search-autocomplete__empty {
  padding: 14px 16px;
  color: #5f7394;
  font-size: 0.92rem;
  line-height: 1.3;
}

.icon-circle,
.search-submit {
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.05rem;
}

.search-submit {
  border-radius: var(--radius-sm);
  min-width: 96px;
  padding: 12px 18px;
  font-weight: 700;
}

.icon-circle:hover,
.search-submit:hover {
  background: var(--primary-dark);
}

.online-chat-widget {
  position: fixed;
  inset: 0;
  z-index: 95;
  pointer-events: none;
}

.online-chat-mobile-trigger {
  display: none;
}

.online-chat-widget__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(11, 24, 44, 0.32);
  opacity: 0;
  transition: opacity 0.2s ease;
  cursor: default;
  padding: 0;
}

.online-chat-widget__panel {
  position: absolute;
  top: 78px;
  right: 14px;
  width: min(360px, calc(100vw - 20px));
  border-radius: 20px;
  border: 1px solid #d3dff3;
  background: #f7f9fe;
  box-shadow: 0 20px 36px rgba(17, 39, 71, 0.28);
  transform: translateX(20px);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
  overflow: hidden;
}

.online-chat-widget.is-open {
  pointer-events: auto;
}

.online-chat-widget.is-open .online-chat-widget__backdrop {
  opacity: 1;
}

.online-chat-widget.is-open .online-chat-widget__panel {
  transform: translateX(0);
  opacity: 1;
}

.online-chat-widget__head {
  margin: 0;
  padding: 16px 16px 14px;
  background: linear-gradient(135deg, #1a2f57, #21477f);
  color: #fff;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.online-chat-widget__eyebrow {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.05;
  font-weight: 800;
}

.online-chat-widget__sub {
  margin: 8px 0 0;
  color: rgba(230, 240, 255, 0.9);
  font-size: 0.9rem;
  line-height: 1.3;
  max-width: 230px;
}

.online-chat-widget__close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.17);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.online-chat-widget__close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.online-chat-widget__section {
  padding: 16px;
}

.online-chat-widget__section + .online-chat-widget__section {
  border-top: 1px solid #dbe4f2;
}

.online-chat-widget__section h3 {
  margin: 0 0 10px;
  font-size: 1.85rem;
  line-height: 1;
  color: #1a2a45;
}

.online-chat-widget__link {
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid #d3dded;
  background: #edf2fb;
  padding: 7px 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2a4266;
  font-weight: 700;
}

.online-chat-widget__link + .online-chat-widget__link {
  margin-top: 10px;
}

.online-chat-widget__link:hover {
  background: #e4ebf8;
  border-color: #c6d5ea;
}

.online-chat-widget__icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.online-chat-widget__icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.online-chat-widget__name {
  min-width: 0;
  flex: 1;
}

.online-chat-widget__arrow {
  color: #7e8fa8;
  font-size: 1.35rem;
  line-height: 1;
  transform: translateY(-1px);
}

.online-chat-widget__link.is-telegram .online-chat-widget__icon {
  background: #2d96df;
}

.online-chat-widget__link.is-avito .online-chat-widget__icon {
  background: #fff;
  border: 1px solid #d8e5f8;
}

.online-chat-widget__link.is-yandex .online-chat-widget__icon {
  background: #fff;
  border: 1px solid #f1d6db;
}

.online-chat-widget__link.is-whatsapp .online-chat-widget__icon {
  background: #22ba5f;
}

.online-chat-widget__link.is-phone .online-chat-widget__icon {
  background: #1f3b67;
}

.online-chat-widget__hours {
  margin: 12px 0 0;
  color: #5b6f8e;
  font-size: 0.96rem;
  line-height: 1.3;
}

@media (max-width: 767px) {
  .site-shell {
    padding-bottom: calc(var(--nav-height) + 20px);
  }

  .header-inner {
    display: grid;
    justify-items: center;
    gap: 10px;
  }

  .section-head {
    align-items: flex-start;
    gap: 8px;
  }

  .section-title {
    font-size: clamp(1.45rem, 7vw, 1.8rem);
    line-height: 1.02;
  }

  .section-subtitle {
    font-size: 0.88rem;
    line-height: 1.2;
  }

  .section-link {
    font-size: 0.84rem;
    line-height: 1.1;
  }

  .logo {
    margin-bottom: 0;
    justify-content: center;
  }

  .search-row {
    width: 100%;
    grid-template-columns: 44px 1fr;
    gap: 8px;
    z-index: 80;
  }

  .search-input {
    padding: 12px 100px 12px 14px;
  }

  .search-submit {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    z-index: 81;
    min-width: 82px;
    padding: 0 14px;
    font-size: 0.9rem;
  }

  .search-autocomplete {
    top: calc(100% + 4px);
    max-height: min(50vh, 360px);
    border-radius: 14px;
  }

  .search-autocomplete__item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 8px;
    padding: 9px 10px;
  }

  .search-autocomplete__media {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .search-autocomplete__title {
    font-size: 0.88rem;
  }

  .search-autocomplete__price {
    font-size: 0.8rem;
  }

  .icon-circle {
    font-size: 0;
    position: relative;
    display: grid;
    place-items: center;
  }

  .icon-circle:not(.icon-circle-chat)::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 -5px 0 #fff, 0 5px 0 #fff;
    transform: translate(-50%, -50%) translateY(1px);
  }

  .icon-circle-chat-svg {
    width: 20px;
    height: 20px;
    animation: chatIconPulse 1.6s ease-in-out infinite;
    transform-origin: center;
  }

  .icon-circle-chat {
    position: relative;
    overflow: visible;
  }

  .icon-circle-chat::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: inherit;
    border: 2px solid rgba(255, 255, 255, 0.55);
    opacity: 0;
    animation: chatRing 1.6s ease-out infinite;
    pointer-events: none;
  }

  .icon-circle-chat::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35);
    animation: chatGlow 1.6s ease-in-out infinite;
    pointer-events: none;
  }

  @keyframes chatIconPulse {
    0%,
    100% {
      transform: scale(1);
    }
    30% {
      transform: scale(1.12) rotate(-6deg);
    }
    60% {
      transform: scale(1.06) rotate(6deg);
    }
  }

  @keyframes chatRing {
    0% {
      opacity: 0.6;
      transform: scale(0.85);
    }
    60% {
      opacity: 0;
      transform: scale(1.45);
    }
    100% {
      opacity: 0;
      transform: scale(1.45);
    }
  }

  @keyframes chatGlow {
    0%,
    100% {
      box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35);
    }
    50% {
      box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
    }
  }

  .online-chat-widget__head {
    padding: 14px 14px 12px;
  }

  .online-chat-widget__eyebrow {
    font-size: 1.5rem;
  }

  .online-chat-widget__section h3 {
    font-size: 1.6rem;
  }

  .online-chat-mobile-trigger {
    position: fixed;
    right: 8px;
    top: 52%;
    transform: translateY(-50%);
    z-index: 40;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    box-shadow: 0 10px 24px rgba(14, 89, 157, 0.24);
    cursor: pointer;
    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      box-shadow 0.2s ease;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .online-chat-mobile-trigger {
    display: none;
  }

  .online-chat-mobile-trigger::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.55);
    opacity: 0;
    animation: chatRing 1.6s ease-out infinite;
    pointer-events: none;
  }

  .online-chat-mobile-trigger::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35);
    animation: chatGlow 1.6s ease-in-out infinite;
    pointer-events: none;
  }

  .online-chat-mobile-trigger__icon {
    width: 20px;
    height: 20px;
    animation: chatIconPulse 1.6s ease-in-out infinite;
    transform-origin: center;
  }

  .online-chat-mobile-trigger.is-compact {
    width: 44px;
    min-width: 44px;
  }

  .online-chat-mobile-trigger.is-dragging {
    cursor: grabbing;
    box-shadow: 0 12px 28px rgba(14, 89, 157, 0.3);
  }

  body.is-online-chat-open .online-chat-mobile-trigger {
    opacity: 0;
    pointer-events: none;
  }
}

.page-content {
  padding-top: var(--space-5);
}

.section {
  margin: 0;
}

body .page-content > .section {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-body);
  font-size: clamp(1.85rem, 8vw, 2.65rem);
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-transform: uppercase;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.12rem;
}

.section-link {
  color: var(--primary);
  font-weight: 700;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.media-strip {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
}

.media-strip > * {
  scroll-snap-align: start;
  flex: 0 0 82%;
}

.empty-state {
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  padding: var(--space-5);
  color: var(--text-muted);
  text-align: center;
}

.promo-banner-frame {
  position: relative;
  overflow: hidden;
}

.promo-banner-slot.is-banner-loaded .promo-banner-frame {
  background: #dfeaf8;
}

.promo-banner-link,
.promo-banner-media {
  display: block;
  width: 100%;
  height: 100%;
}

.promo-banner-link {
  color: inherit;
  text-decoration: none;
}

.promo-banner-link picture,
.promo-banner-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.promo-banner-link img,
.promo-banner-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-footer {
  margin-top: 24px;
  background: transparent;
  padding: 0;
  position: relative;
  z-index: 3;
}

.site-footer-body {
  border: 1px solid #b7c4d9;
  border-radius: 26px 26px 0 0;
  background: #edf1f7;
  padding: 20px 18px 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.site-footer-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px 22px;
}

.site-footer-col {
  display: grid;
  align-content: start;
  gap: 5px;
}

.site-footer-col-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  margin: 0;
  padding: 0;
  width: 100%;
  text-align: left;
  margin: 0 0 1px;
  color: #152f56;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.18;
  font-family: inherit;
}

.site-footer-col-content {
  display: grid;
  align-content: start;
  gap: 5px;
}

.site-footer-products-overflow {
  display: grid;
  align-content: start;
  gap: 5px;
}

.site-footer-products-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  color: #1f58c5;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.22;
  cursor: pointer;
}

.site-footer-products-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform 160ms ease;
}

.site-footer-products-overflow.is-open .site-footer-products-toggle-icon {
  transform: rotate(180deg);
}

.site-footer-products-items {
  display: grid;
  align-content: start;
  gap: 5px;
}

.site-footer-subtitle {
  margin: 6px 0 1px;
  color: #1a385f;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
}

.site-footer-col a {
  color: #213f66;
  font-size: 0.8rem;
  line-height: 1.22;
}

.site-footer-col a:hover {
  color: #1f58c5;
}

.site-footer-socials {
  margin-top: 14px;
  display: grid;
}

.site-footer-social-group {
  display: grid;
  gap: 8px;
}

.site-footer-contact-list {
  display: grid;
  gap: 4px;
}

.site-footer-contact-link {
  color: #2e5d9f;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.site-footer-contact-link[href^="tel:"] {
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-footer-contact-link:hover {
  color: #1f58c5;
}

.site-footer-social-group p {
  margin: 0;
  color: #1b355b;
  font-size: 0.84rem;
  font-weight: 700;
}

.site-footer-social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer-social-link {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 3px 8px rgba(21, 44, 80, 0.12);
}

.site-footer-social-link svg {
  width: 15px;
  height: 15px;
}

.site-footer-social-link.is-whatsapp {
  background: #1fbf61;
}

.site-footer-social-link.is-telegram {
  background: #2d96df;
}

.site-footer-social-link.is-yandex {
  background: #fff;
  border: 1px solid #f1d6db;
  box-shadow: 0 3px 8px rgba(214, 30, 59, 0.14);
}

.site-footer-social-link.is-email,
.site-footer-social-link.is-avito {
  background: #fff;
  border: 1px solid #d8e5f8;
  box-shadow: 0 3px 8px rgba(72, 109, 177, 0.14);
}

.site-footer-legal {
  margin: 10px 0 0;
  color: #415976;
  font-size: 0.72rem;
  line-height: 1.35;
}

.site-footer-legal a {
  color: #2e5d9f;
  text-decoration: underline;
}

.site-footer-copy {
  margin: 6px 0 0;
  color: #526782;
  font-size: 0.72rem;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid #d4deed;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(29, 58, 109, 0.18);
}

.cookie-banner__text {
  color: #18232c;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-banner__link {
  color: #2a67d2;
  text-decoration: underline;
  margin-left: 6px;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-banner__actions .button {
  width: auto;
  min-width: 150px;
}

@media (max-width: 720px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__actions .button {
    width: 100%;
  }
}

.floating-cart {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--nav-height) + 12px);
  width: min(92vw, 328px);
  z-index: 41;
  background: #eaf1fb;
  border-radius: 999px;
  border: 1px solid #c4d5eb;
  box-shadow: 0 8px 18px rgba(31, 67, 122, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 50px;
  padding: 5px 7px 5px 12px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.floating-cart.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px);
}

.floating-cart-copy {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px 10px;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  color: #213554;
  font-size: 0.9rem;
  font-weight: 800;
}

.floating-cart-copy span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.floating-cart-copy strong {
  font-size: 1.1rem;
  line-height: 1;
  color: #1f4f93;
  flex-shrink: 0;
}

.floating-cart-cta {
  white-space: nowrap;
}

.floating-cart .button {
  width: auto;
  min-width: 92px;
  flex-shrink: 0;
  padding: 6px 14px;
  font-size: 0.84rem;
}

.floating-cart-close {
  width: 16px;
  height: 16px;
  border: 0;
  background: transparent;
  color: #7f93b1;
  font-size: 0.9rem;
  line-height: 1;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  cursor: pointer;
  padding: 0;
  margin-right: 8px;
  margin-left: -4px;
  transition: color 0.18s ease;
}

.floating-cart-close:hover {
  color: #5f7699;
}

.bottom-nav {
  position: fixed;
  inset: auto 0 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--border-soft);
  z-index: 40;
  box-shadow: 0 -8px 20px rgba(18, 35, 62, 0.06);
}

.bottom-nav-list {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.bottom-nav-item {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  color: #6a7891;
  font-size: 0.86rem;
  font-weight: 600;
  position: relative;
}

.bottom-nav-item .icon {
  font-size: 1.12rem;
}

.bottom-nav-item.is-active {
  color: var(--primary);
}

.cart-badge {
  position: absolute;
  top: 8px;
  right: 20%;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  line-height: 1;
  background: var(--primary);
  color: #fff;
}

.desktop-icon-badge.is-hidden,
.cart-badge.is-hidden {
  display: none !important;
}

.mobile-bottom-links {
  display: none;
}

@media (max-width: 767px) {
  .header-inner {
    gap: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .search-row {
    margin-top: -2px;
  }

  .bottom-nav {
    --mobile-nav-extend-down: max(10px, env(safe-area-inset-bottom));
    height: calc(var(--nav-height) + var(--mobile-nav-extend-down));
    bottom: calc(-1 * var(--mobile-nav-extend-down));
  }

  .bottom-nav-list {
    height: var(--nav-height);
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .bottom-nav-item {
    gap: 0;
  }

  .bottom-nav-item[href$="/compare.html"] {
    display: none;
  }

  .bottom-nav-item > span:not(.icon):not(.cart-badge) {
    display: none;
  }

  .bottom-nav-item .icon {
    width: 22px;
    height: 22px;
    display: block;
    font-size: 0;
    line-height: 0;
    position: relative;
  }

  .bottom-nav-item .icon::before {
    content: "";
    position: absolute;
    inset: 0;
    background: currentColor;
    -webkit-mask: var(--bottom-nav-icon) center / contain no-repeat;
    mask: var(--bottom-nav-icon) center / contain no-repeat;
  }

  .bottom-nav-item.is-auth {
    gap: 4px;
  }

  .bottom-nav-item.is-auth > span:not(.icon):not(.cart-badge) {
    display: block;
    font-size: 10px;
  }

  .bottom-nav-item.is-auth .icon {
    font-size: 10px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f0ff;
    color: #1b4a8c;
    border-radius: 50%;
  }

  .bottom-nav-item.is-auth .icon::before {
    display: none;
  }

  .bottom-nav-item[href$="/index.html"] .icon {
    --bottom-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 10.5 12 3l9 7.5V21h-6v-6H9v6H3z'/%3E%3C/svg%3E");
  }

  .bottom-nav-item[href$="/catalog.html"] .icon {
    --bottom-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h7v7H4zm9 0h7v7h-7zM4 13h7v7H4zm9 0h7v7h-7z'/%3E%3C/svg%3E");
  }

  .bottom-nav-item[href$="/favorites.html"] .icon {
    --bottom-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-6.7-4.5-9.3-8.2C.8 10 1.5 6 4.8 4.9 7 4.1 9.2 5 10.5 6.6L12 8.4l1.5-1.8C14.8 5 17 4.1 19.2 4.9 22.5 6 23.2 10 21.3 12.8 18.7 16.5 12 21 12 21z'/%3E%3C/svg%3E");
  }

  .bottom-nav-item[href$="/compare.html"] .icon {
    --bottom-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 19V10M10 19V6M15 19V13M20 19V4' stroke='black' stroke-width='2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
  }

  .bottom-nav-item[href$="/cart.html"] .icon {
    --bottom-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4H4v2h1.4l1.7 8.4A2 2 0 0 0 9.1 16H19v-2H9.1l-.3-1.5H19a2 2 0 0 0 1.9-1.5L22 6H8.2L7.7 4zM9.8 17a1.8 1.8 0 1 0 0 3.6 1.8 1.8 0 0 0 0-3.6zm8 0a1.8 1.8 0 1 0 0 3.6 1.8 1.8 0 0 0 0-3.6z'/%3E%3C/svg%3E");
  }

  .bottom-nav-item[href="#"] .icon {
    --bottom-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a4.2 4.2 0 1 0 0-8.4 4.2 4.2 0 0 0 0 8.4zm0 2c-4.1 0-7.5 2.6-8.7 6.2-.2.6.3 1.3 1 1.3h15.4c.7 0 1.2-.7 1-1.3C19.5 16.6 16.1 14 12 14z'/%3E%3C/svg%3E");
  }

  .cart-badge {
    top: 9px;
    right: calc(50% - 18px);
  }

  .mobile-bottom-links {
    display: block;
    position: relative;
    z-index: 1;
    width: 100%;
    margin-top: 2px;
    max-height: 24px;
    opacity: 1;
    transform: translateY(0);
    overflow: hidden;
    transition:
      max-height 0.22s ease,
      opacity 0.22s ease,
      transform 0.22s ease,
      margin-top 0.22s ease;
  }

  body.is-mobile-links-hidden .mobile-bottom-links {
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    margin-top: 0;
    pointer-events: none;
  }

  .mobile-bottom-links-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 2px;
  }

  .mobile-bottom-links-phone,
  .mobile-bottom-links-info {
    color: #23456f;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
  }

  .mobile-bottom-links-phone {
    max-width: 58vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-bottom-links-info {
    color: #1f5cad;
  }

  .mobile-bottom-links-info:hover,
  .mobile-bottom-links-info:focus-visible {
    text-decoration: underline;
  }
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-5);
  }

  .site-shell {
    padding-bottom: 134px;
  }

  .search-row {
    grid-template-columns: 52px 1fr auto;
    gap: var(--space-3);
  }

  .icon-circle {
    width: 52px;
    height: 52px;
    font-size: 1.2rem;
  }

  .search-submit {
    min-width: 120px;
    padding: 14px 22px;
  }

  .media-strip > * {
    flex-basis: 46%;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bottom-nav {
    height: 76px;
  }

  .floating-cart {
    bottom: calc(var(--nav-height) + 14px);
  }

  .site-footer {
    margin-top: 24px;
    padding: 0;
  }
}

@media (min-width: 768px) and (max-width: 979px) {
  .container {
    padding: 0 clamp(20px, 3vw, 28px);
  }

  .site-shell {
    padding-bottom: 0;
  }

  .page-content {
    padding-top: 18px;
  }

  .section-head {
    margin-bottom: 12px;
    gap: 10px;
  }

  .section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.02;
  }

  .section-subtitle {
    font-size: 0.96rem;
  }

  .header-inner {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .header-inner > .logo,
  .search-row,
  .desktop-topline,
  .desktop-catalog-btn {
    display: none;
  }

  .desktop-header-main {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) auto auto auto auto;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 90;
  }

  .desktop-logo-link {
    display: inline-flex;
    align-items: center;
    min-width: 0;
  }

  .desktop-logo-image {
    width: clamp(158px, 24vw, 196px);
    height: auto;
    aspect-ratio: 110 / 25.16;
  }

  .desktop-search-form {
    position: relative;
    min-width: 0;
  }

  .desktop-search-input {
    width: 100%;
    min-height: 40px;
    padding: 10px 90px 10px 14px;
    border: 1px solid #bfd0e7;
    border-radius: var(--radius-sm);
    background: #fff;
    color: #2f4c73;
    font-size: 0.92rem;
  }

  .desktop-search-submit {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    padding: 0 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--primary);
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
  }

  .desktop-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
    border: 1px solid #d5e3f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--primary);
    box-shadow: 0 6px 14px rgba(20, 48, 86, 0.08);
  }

  .desktop-icon-svg {
    width: 17px;
    height: 17px;
    display: block;
  }

  .desktop-icon-badge {
    position: absolute;
    top: -5px;
    right: -3px;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #fff;
    color: #1b4d9b;
    font-size: 0.6rem;
    font-weight: 700;
    display: grid;
    place-items: center;
    padding: 0 4px;
    border: 1px solid rgba(13, 59, 126, 0.25);
  }

  .desktop-category-bar {
    display: block;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid #dce4f2;
    background: #ffffff;
    max-height: 42px;
    overflow: hidden;
  }

  .desktop-category-line {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .desktop-category-links {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    font-size: 0.8rem;
    font-weight: 600;
    color: #29466d;
  }

  .desktop-category-links::-webkit-scrollbar {
    display: none;
  }

  .desktop-category-links a {
    color: #4e698f;
  }

  .desktop-hot-links {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }

  .desktop-hot-link {
    white-space: nowrap;
    border-radius: 14px;
    border: 1px solid transparent;
    padding: 3px 9px;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1;
  }

  .desktop-hot-link-actions {
    color: #1f5cad;
    background: #edf4ff;
    border-color: #bdd4f4;
  }

  .desktop-hot-link-sale {
    color: #fff;
    background: linear-gradient(135deg, #3f86ed 0%, #1f58c5 100%);
    border-color: #2c69d2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .desktop-hot-sale-icon {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffe89e 0 38%, #ffb82e 52%, #f07e00 100%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28);
    flex-shrink: 0;
  }

  body.is-desktop-scrolled .desktop-category-bar {
    max-height: 42px;
    opacity: 1;
    transform: none;
    border-color: #dce4f2;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
  }

  .products-grid .product-card {
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
  }

  .media-strip {
    gap: 14px;
  }

  .media-strip > * {
    flex: 0 0 calc((100% - 28px) / 3);
    max-width: 320px;
  }

  .bottom-nav {
    display: none;
  }

  .floating-cart {
    bottom: 16px;
  }

  .online-chat-widget__panel {
    bottom: 16px;
  }
}

@media (max-width: 979px) {
  .online-chat-widget__panel {
    top: auto;
    right: 12px;
    bottom: calc(var(--nav-height) + 12px);
    left: 12px;
    width: auto;
    transform: translateY(18px);
  }

  .online-chat-widget.is-open .online-chat-widget__panel {
    transform: translateY(0);
  }
}

@media (min-width: 980px) {
  .container {
    padding: 0 var(--space-6);
  }

  .site-shell {
    padding-bottom: 0;
  }

  .desktop-topline {
    display: block;
    background: #ffffff;
    border-bottom: 1px solid #d9e3f2;
  }

  .desktop-topline-inner {
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #4e698f;
    font-size: 0.84rem;
    font-weight: 600;
  }

  .desktop-topline-primary {
    display: inline-flex;
    align-items: center;
    gap: 16px;
  }

  .desktop-topline-info {
    position: relative;
  }

  .desktop-topline-info-toggle {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4e698f;
    font-weight: 600;
  }

  .desktop-topline-info-toggle::-webkit-details-marker {
    display: none;
  }

  .desktop-topline-info-toggle::after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 1.5px solid #6f84a4;
    border-bottom: 1.5px solid #6f84a4;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.2s ease;
  }

  .desktop-topline-info[open] .desktop-topline-info-toggle::after {
    transform: rotate(225deg) translateY(-1px);
  }

  .desktop-topline-info-menu {
    position: absolute;
    z-index: 60;
    left: 0;
    top: calc(100% + 8px);
    min-width: 184px;
    display: grid;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #d7e2f2;
    background: #fff;
    box-shadow: 0 12px 24px rgba(22, 48, 88, 0.16);
  }

  .desktop-topline-info-menu a {
    color: #2f4c73;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
  }

  .desktop-topline-info-menu a:hover {
    color: #1f58c5;
  }

  .desktop-topline-chat {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid #bae5c7;
    background: #f2fbf5;
    color: #256e42;
    font-weight: 700;
    line-height: 1;
  }

  .desktop-topline-chat-icon {
    width: 16px;
    height: 16px;
  }

  .desktop-topline-chat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #25c05a;
    box-shadow: 0 0 0 3px rgba(37, 192, 90, 0.16);
  }

  .desktop-topline-phone {
    font-weight: 600;
    white-space: nowrap;
  }

  .desktop-topline-right {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 14px;
  }

  .desktop-topline-city {
    border: 0;
    background: transparent;
    color: #5f7394;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
    white-space: nowrap;
  }

  .desktop-topline-city:hover {
    color: #2b5fa8;
  }

  .desktop-topline-city-icon {
    width: 13px;
    height: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5f7394;
  }

  .desktop-topline-city-icon svg {
    width: 100%;
    height: 100%;
    display: block;
  }

  .header-inner {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .header-inner > .logo,
  .search-row {
    display: none;
  }

  .desktop-header-main {
    display: grid;
    grid-template-columns: auto auto minmax(240px, 1fr) auto auto auto auto auto;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 90;
    animation: menuReveal 280ms ease-out both;
  }

  .desktop-logo-link {
    display: inline-flex;
    align-items: center;
    margin-right: 4px;
    margin-top: 2px;
  }

  .desktop-logo-image {
    width: clamp(176px, 14vw, 236px);
    height: auto;
    aspect-ratio: 110 / 25.16;
    filter: drop-shadow(0 2px 6px rgba(14, 39, 74, 0.06));
  }

  .desktop-catalog-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    border-radius: 15px;
    padding: 0 18px;
    font-weight: 700;
    font-size: 0.95rem;
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
    white-space: nowrap;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
  }

  .desktop-catalog-svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }

  .desktop-search-form {
    position: relative;
    min-width: 240px;
  }

  .desktop-search-input {
    width: 100%;
    border: 1px solid #bfd0e7;
    border-radius: var(--radius-sm);
    background: #fff;
    color: #2f4c73;
    padding: 10px 96px 10px 16px;
    font-size: 0.95rem;
    min-height: 42px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .desktop-search-input::placeholder {
    color: #8ca0be;
  }

  .desktop-search-input:focus {
    border-color: #2a67d2;
    box-shadow: 0 0 0 3px rgba(42, 103, 210, 0.15);
    outline: none;
  }

  .desktop-search-submit {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    border-radius: var(--radius-sm);
    border: 1px solid var(--primary);
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0 18px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
  }

  .desktop-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
    border: 1px solid #d5e3f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--primary);
    box-shadow: 0 8px 18px rgba(20, 48, 86, 0.08);
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease,
      background-color 0.2s ease,
      border-color 0.2s ease,
      color 0.2s ease;
  }

  .desktop-icon-svg {
    width: 18px;
    height: 18px;
    display: block;
  }

  .desktop-icon-badge {
    position: absolute;
    top: -6px;
    right: -4px;
    min-width: 17px;
    height: 17px;
    border-radius: 999px;
    background: #fff;
    color: #1b4d9b;
    font-size: 0.62rem;
    font-weight: 700;
    display: grid;
    place-items: center;
    padding: 0 4px;
    border: 1px solid rgba(13, 59, 126, 0.25);
  }

  .desktop-icon-btn:focus-visible {
    outline: none;
    border-color: #9fbde7;
    box-shadow:
      0 8px 18px rgba(20, 48, 86, 0.1),
      0 0 0 4px rgba(14, 89, 157, 0.12);
  }

  .desktop-category-bar {
    display: block;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid #dce4f2;
    background: #ffffff;
    animation: menuReveal 360ms ease-out both;
    max-height: 44px;
    opacity: 1;
    transform: translateY(0);
    overflow: hidden;
    transition: max-height 0.28s ease, opacity 0.28s ease, transform 0.28s ease, border-color 0.28s ease;
  }

  .desktop-category-line {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .desktop-category-links {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: hidden;
    white-space: nowrap;
    font-size: 0.84rem;
    font-weight: 600;
    color: #29466d;
    scrollbar-width: none;
  }

  .desktop-category-links::-webkit-scrollbar {
    display: none;
  }

  .desktop-category-links a {
    position: relative;
    padding: 1px 0;
    color: #4e698f;
    transition: color 0.2s ease;
  }

  .desktop-category-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    background: #2a67d2;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease;
  }

  .desktop-category-links a.is-menu-open {
    color: #2a5389;
  }

  .desktop-category-links a.is-menu-open::after {
    transform: scaleX(1);
  }

  .desktop-category-dropdown {
    position: absolute;
    z-index: 48;
    min-width: 420px;
    max-width: min(720px, calc(100vw - 24px));
    display: grid;
    grid-template-columns: repeat(2, minmax(170px, 1fr));
    gap: 12px 16px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid #d8e3f2;
    background: #fff;
    box-shadow: 0 16px 32px rgba(20, 48, 88, 0.2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  }

  .desktop-category-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .desktop-category-dropdown-group {
    min-width: 0;
  }

  .desktop-category-dropdown-subgroup {
    margin: 0 0 6px;
    font-size: 0.84rem;
    font-weight: 800;
    color: #1b3b67;
    line-height: 1.25;
  }

  .desktop-category-dropdown-subsubgroups {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 4px;
  }

  .desktop-category-dropdown-subsubgroups li {
    position: relative;
    padding-left: 10px;
    font-size: 0.8rem;
    color: #4f678a;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .desktop-category-dropdown-subsubgroups li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.52em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #9fb2cf;
  }

  .desktop-catalog-btn.is-catalog-open {
    background: linear-gradient(135deg, #275fae 0%, #1c4d95 100%);
    border-color: #25549a;
    box-shadow: 0 8px 18px rgba(20, 52, 100, 0.3);
  }

  .desktop-catalog-mega {
    position: fixed;
    inset: 0;
    z-index: 64;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .desktop-catalog-mega.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .desktop-catalog-mega__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    width: 100%;
    background: rgba(8, 21, 40, 0.24);
    backdrop-filter: blur(2px);
    cursor: default;
  }

  .desktop-catalog-mega__panel {
    position: absolute;
    top: var(--desktop-catalog-mega-top, 126px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: min(1240px, calc(100vw - 24px));
    height: min(74vh, 640px);
    display: grid;
    grid-template-columns: 262px minmax(0, 1fr);
    border-radius: 20px;
    border: 1px solid #c8d9ef;
    background: #f3f8ff;
    box-shadow: 0 20px 42px rgba(13, 35, 67, 0.26);
    overflow: hidden;
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  .desktop-catalog-mega.is-open .desktop-catalog-mega__panel {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }

  .desktop-catalog-mega__sidebar {
    background: linear-gradient(180deg, #eff5ff 0%, #e8f0fd 100%);
    border-right: 1px solid #d3e0f1;
    padding: 12px 8px 12px 10px;
    display: grid;
    align-content: start;
    gap: 4px;
    overflow-y: auto;
  }

  .desktop-catalog-mega__root {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 0;
    border-radius: 13px;
    background: transparent;
    padding: 7px 8px;
    text-align: left;
    color: #2e4f79;
    cursor: pointer;
    transition: background-color 0.18s ease, transform 0.18s ease, color 0.18s ease;
  }

  .desktop-catalog-mega__root.is-active {
    background: #ffffff;
    color: #1e4070;
    box-shadow: 0 6px 12px rgba(28, 57, 99, 0.12);
  }

  .desktop-catalog-mega__root-media {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #d1dded;
    display: grid;
    place-items: center;
    overflow: hidden;
  }

  .desktop-catalog-mega__root-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .desktop-catalog-mega__root-name {
    font-size: 0.93rem;
    font-weight: 700;
    line-height: 1.24;
    overflow-wrap: anywhere;
  }

  .desktop-catalog-mega__root-arrow {
    text-align: center;
    color: #7f95b8;
    font-size: 1.3rem;
    line-height: 1;
  }

  .desktop-catalog-mega__content {
    background: #fff;
    padding: 18px 18px 16px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
    overflow: hidden;
  }

  .desktop-catalog-mega__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid #e3ebf7;
    padding-bottom: 12px;
  }

  .desktop-catalog-mega__title {
    margin: 0;
    font-size: 1.95rem;
    line-height: 1.05;
    font-weight: 800;
    color: #132f54;
  }

  .desktop-catalog-mega__subtitle {
    margin-top: 4px;
    color: #577193;
    font-size: 0.88rem;
    font-weight: 600;
  }

  .desktop-catalog-mega__all-link {
    flex-shrink: 0;
    border-radius: 999px;
    border: 1px solid #b6ccef;
    background: #eef5ff;
    color: #1f5dba;
    font-size: 0.86rem;
    font-weight: 700;
    padding: 8px 13px;
  }

  .desktop-catalog-mega__layout {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
    gap: 16px;
  }

  .desktop-catalog-mega__groups {
    min-height: 0;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
    padding-right: 4px;
    align-content: start;
  }

  .desktop-catalog-mega__group {
    border-radius: 14px;
    border: 1px solid #e1eaf7;
    background: #f9fbff;
    padding: 10px 11px;
    display: grid;
    align-content: start;
    gap: 6px;
  }

  .desktop-catalog-mega__group-title {
    color: #193b67;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.2;
  }

  .desktop-catalog-mega__group-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 4px;
  }

  .desktop-catalog-mega__group-list a {
    color: #4d698f;
    font-size: 0.9rem;
    line-height: 1.28;
  }

  .desktop-catalog-mega__group-more {
    margin-top: 2px;
    color: #2a67d2;
    font-size: 0.86rem;
    font-weight: 700;
  }

  .desktop-catalog-mega__products {
    min-height: 0;
    overflow-y: auto;
    align-content: start;
    display: grid;
    gap: 12px;
    padding-right: 4px;
  }

  .desktop-catalog-mega__product {
    border-radius: 16px;
    border: 1px solid #d7e4f5;
    background: linear-gradient(180deg, #fbfdff 0%, #f6faff 100%);
    padding: 10px;
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  }

  .desktop-catalog-mega__product:hover {
    transform: translateY(-2px);
    border-color: #aac4e7;
    box-shadow: 0 12px 18px rgba(27, 58, 101, 0.15);
  }

  .desktop-catalog-mega__product-image-link {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #d6e0ef;
    background: #fff;
  }

  .desktop-catalog-mega__product-image {
    width: 100%;
    height: 110px;
    object-fit: contain;
    background: #e8eef7;
  }

  .desktop-catalog-mega__product-main {
    min-width: 0;
    display: grid;
    gap: 8px;
  }

  .desktop-catalog-mega__product-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
  }

  .desktop-catalog-mega__product-name {
    color: #1f3f6c;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.26;
    max-height: 2.7em;
    overflow: hidden;
  }

  .desktop-catalog-mega__product-price {
    white-space: nowrap;
    color: #173968;
    font-size: 1.02rem;
    font-weight: 800;
  }

  .desktop-catalog-mega__product-specs {
    margin: 0;
    display: grid;
    gap: 4px;
  }

  .desktop-catalog-mega__product-spec-row {
    margin: 0;
    display: grid;
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 8px;
    align-items: baseline;
  }

  .desktop-catalog-mega__product-spec-row dt {
    margin: 0;
    color: #6d84a5;
    font-size: 0.78rem;
    font-weight: 600;
  }

  .desktop-catalog-mega__product-spec-row dd {
    margin: 0;
    color: #2a4871;
    font-size: 0.8rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .desktop-catalog-mega__product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 2px;
  }

  .desktop-catalog-mega__stock {
    font-size: 0.81rem;
    font-weight: 800;
    line-height: 1;
  }

  .desktop-catalog-mega__stock.is-in-stock {
    color: #0f9e58;
  }

  .desktop-catalog-mega__stock.is-backorder {
    color: #c36a1d;
  }

  .desktop-catalog-mega__buy {
    border-radius: 11px;
    padding: 8px 14px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .desktop-catalog-mega__empty {
    color: #6f84a2;
    font-size: 0.9rem;
    line-height: 1.3;
  }

  .desktop-hot-links {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
  }

  .desktop-hot-link {
    white-space: nowrap;
    border-radius: 15px;
    border: 1px solid transparent;
    padding: 3px 10px;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1;
  }

  .desktop-hot-link-actions {
    color: #1f5cad;
    background: #edf4ff;
    border-color: #bdd4f4;
  }

  .desktop-hot-link-sale {
    color: #fff;
    background: linear-gradient(135deg, #3f86ed 0%, #1f58c5 100%);
    border-color: #2c69d2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .desktop-hot-sale-icon {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffe89e 0 38%, #ffb82e 52%, #f07e00 100%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28);
    flex-shrink: 0;
  }

  .desktop-category-links a:hover,
  .desktop-hot-link:hover {
    color: #2a5389;
  }

  .desktop-hot-link-actions:hover {
    color: #1e4f93;
    background: #e4efff;
    border-color: #aac7f0;
  }

  .desktop-hot-link-sale:hover {
    color: #fff;
    background: linear-gradient(135deg, #3578de 0%, #1847a8 100%);
    border-color: #245fc5;
  }

  body.is-desktop-scrolled .desktop-category-bar {
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    border-top-color: transparent;
    border-bottom-color: transparent;
    pointer-events: none;
  }

  .desktop-category-links a:hover::after {
    transform: scaleX(1);
  }

  .section-title {
    font-size: clamp(1.55rem, 2.1vw, 2.15rem);
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .media-strip > * {
    flex-basis: 24%;
  }

  .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .floating-cart {
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    bottom: 14px;
    width: min(320px, calc(100vw - 42px));
    padding: 5px 7px 5px 12px;
    gap: 7px;
  }

  .floating-cart-copy {
    font-size: 0.88rem;
    gap: 4px 8px;
  }

  .floating-cart-copy strong {
    font-size: 1.05rem;
  }

  .floating-cart .button {
    padding: 6px 14px;
    min-width: 92px;
    font-size: 0.86rem;
  }

  .bottom-nav {
    display: none;
  }

  .site-footer {
    padding-bottom: 0;
  }
}

@media (max-width: 979px) {
  .site-footer-body {
    border-radius: 22px 22px 0 0;
    padding: 18px 16px 12px;
  }

  .site-footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 16px;
  }
}

@media (max-width: 640px) {
  .site-footer {
    margin-top: 18px;
    padding: 0;
  }

  .site-footer-body {
    border-radius: 18px 18px 0 0;
    padding: 14px 12px 10px;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-footer-col {
    gap: 0;
    border-bottom: 1px solid #d5deec;
    padding-bottom: 8px;
  }

  .site-footer-col:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .site-footer-col-toggle {
    margin: 0;
    padding: 3px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
  }

  .site-footer-col-toggle::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid #1b3d68;
    border-bottom: 2px solid #1b3d68;
    transform: rotate(45deg);
    transform-origin: center;
    transition: transform 0.22s ease;
  }

  .site-footer-col.is-open .site-footer-col-toggle::after {
    transform: rotate(-135deg);
  }

  .site-footer-col-content {
    padding-top: 8px;
    gap: 8px;
  }

  .site-footer-col:not(.is-open) .site-footer-col-content {
    display: none;
  }

  .site-footer-col-toggle {
    font-size: 1rem;
  }

  .site-footer-col a {
    font-size: 0.92rem;
  }

  .site-footer-products-toggle {
    font-size: 0.92rem;
  }

  .site-footer-socials {
    margin-top: 16px;
  }

  .site-footer-social-links {
    gap: 12px;
  }

  .site-footer-social-link {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .site-footer-social-link svg {
    width: 17px;
    height: 17px;
  }

  .site-footer-contact-link[href^="tel:"] {
    font-size: 1.23rem;
    font-weight: 700;
    line-height: 1.2;
  }

  .site-footer-legal {
    margin-top: 16px;
    font-size: 0.86rem;
  }

  .site-footer-copy {
    font-size: 0.84rem;
  }
}

body.city-selector-open {
  overflow: hidden;
}

.city-selector-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 56px 26px 26px;
  background: rgba(10, 25, 52, 0.46);
}

.city-selector-overlay[hidden] {
  display: none !important;
}

.city-selector-modal {
  width: min(1240px, calc(100vw - 52px));
  border-radius: 16px;
  background: #2a3e64;
  color: #f2f6ff;
  border: 1px solid #3d5380;
  box-shadow: 0 26px 54px rgba(8, 22, 45, 0.44);
  padding: 30px 32px 28px;
  position: relative;
}

.city-selector-close {
  position: absolute;
  right: 12px;
  top: 10px;
  border: 0;
  background: transparent;
  color: #b8c8e6;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.city-selector-title {
  margin: 0 0 18px;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
}

.city-selector-layout {
  display: block;
}

.city-selector-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 12px 18px;
}

.city-selector-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f0f5ff;
  font-size: 1.02rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
}

.city-selector-radio {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #5e8fee;
  cursor: pointer;
}

.city-selector-map {
  border-radius: 14px;
  background:
    radial-gradient(circle at 74% 68%, rgba(156, 173, 204, 0.45) 0 3px, transparent 4px),
    radial-gradient(circle at 68% 55%, rgba(156, 173, 204, 0.5) 0 3px, transparent 4px),
    radial-gradient(circle at 62% 60%, rgba(156, 173, 204, 0.5) 0 3px, transparent 4px),
    radial-gradient(circle at 44% 58%, rgba(156, 173, 204, 0.5) 0 3px, transparent 4px),
    radial-gradient(circle at 35% 46%, rgba(156, 173, 204, 0.45) 0 3px, transparent 4px),
    radial-gradient(circle at 27% 56%, rgba(156, 173, 204, 0.42) 0 3px, transparent 4px),
    linear-gradient(160deg, #4a5f88 0%, #3c527d 56%, #3a4f79 100%);
  min-height: 300px;
  position: relative;
  overflow: hidden;
}

.city-selector-map::before {
  content: "";
  position: absolute;
  inset: 18% 8% 16%;
  border-radius: 40% 48% 38% 44% / 48% 42% 52% 46%;
  background: rgba(189, 205, 231, 0.18);
}

.city-selector-map-dot {
  position: absolute;
  border-radius: 50%;
  display: block;
  background: #b4c4de;
}

.city-selector-map-dot-main {
  width: 18px;
  height: 18px;
  left: 17%;
  top: 56%;
  background: #6892e7;
  box-shadow: 0 0 0 7px rgba(104, 146, 231, 0.18);
}

.city-selector-map-dot-a {
  width: 7px;
  height: 7px;
  left: 23%;
  top: 52%;
}

.city-selector-map-dot-b {
  width: 6px;
  height: 6px;
  left: 30%;
  top: 60%;
}

.city-selector-map-dot-c {
  width: 6px;
  height: 6px;
  left: 36%;
  top: 57%;
}

@media (max-width: 979px) {
  .city-selector-overlay {
    padding: 18px 12px;
    align-items: flex-start;
  }

  .city-selector-modal {
    width: min(980px, calc(100vw - 24px));
    padding: 20px 16px 16px;
  }

  .city-selector-title {
    font-size: 1.34rem;
    margin-bottom: 12px;
  }

  .city-selector-layout {
    display: block;
  }

  .city-selector-options {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 10px 12px;
  }

  .city-selector-option {
    font-size: 0.95rem;
  }

}

@media (min-width: 980px) and (prefers-reduced-motion: no-preference) {
  .desktop-catalog-btn:hover,
  .desktop-search-submit:hover,
  .desktop-icon-btn:hover {
    transform: translateY(-1px);
  }

  .desktop-catalog-btn:hover {
    background: var(--primary);
    box-shadow: 0 6px 14px rgba(26, 61, 117, 0.25);
  }

  .desktop-search-submit:hover {
    background: var(--primary);
  }

  .desktop-icon-btn:hover {
    background: linear-gradient(180deg, #ffffff 0%, #eaf3ff 100%);
    border-color: #a9c5eb;
    box-shadow:
      0 10px 22px rgba(26, 61, 117, 0.14),
      0 0 0 6px rgba(14, 89, 157, 0.08);
  }
}

@keyframes menuReveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Keep labeled mobile navigation */
@media (max-width: 767px) {
  .bottom-nav {
    --mobile-nav-extend-down: max(6px, env(safe-area-inset-bottom));
  }

  .bottom-nav-item {
    gap: 2px;
    align-content: center;
    padding-top: 4px;
    font-size: 0.68rem;
    line-height: 1.15;
  }

  .bottom-nav-item > span:not(.icon):not(.cart-badge) {
    display: block;
    font-size: 0.66rem;
    font-weight: 600;
    line-height: 1.1;
  }

  .bottom-nav-item .icon {
    width: 22px;
    height: 22px;
  }

  .cart-badge {
    top: 7px;
    right: calc(50% - 17px);
  }
}

