/* AUTO-TOKYO — оригинальная вёрстка, не avto-redesign */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

.wrap {
  width: min(1140px, calc(100% - 32px));
  margin-inline: auto;
}

.page-noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

main { position: relative; z-index: 1; }

/* —— Шапка —— */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--primary);
}

.masthead__surface {
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(12px);
}

.masthead__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.masthead__desktop {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.brand__text {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand__text em {
  font-style: normal;
  color: var(--primary);
}

.brand__img { height: 40px; width: auto; }

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.brand__sub {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.masthead__desktop .contact-compact {
  flex: 1;
  min-width: 0;
  font-size: 0.82rem;
}

.hours-block__title {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
}

.hours-block__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hours-block__list li span {
  color: var(--primary);
  font-weight: 700;
  margin-right: 4px;
}

.masthead__phone {
  font-weight: 800;
  font-size: 1.05rem;
  white-space: nowrap;
}

.masthead__addr { margin: 0; color: var(--muted); }
.masthead__addr small { color: var(--muted); }

.masthead__nav {
  display: flex;
  gap: 18px;
  font-weight: 600;
  font-size: 0.9rem;
}

.masthead__nav a { color: var(--ink); }
.masthead__nav a:hover { color: var(--primary); }

.masthead__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 12px;
}

.masthead__burger i {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.masthead.is-open .masthead__burger i:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.masthead.is-open .masthead__burger i:nth-child(2) {
  opacity: 0;
}
.masthead.is-open .masthead__burger i:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.masthead__tools {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
}

/* —— Выезжающее меню (вне шапки — без бага fixed) —— */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
}

.nav-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.nav-drawer__overlay {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(14, 14, 14, 0.55);
  backdrop-filter: blur(3px);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.nav-drawer.is-open .nav-drawer__overlay {
  opacity: 1;
}

.nav-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100%;
  overflow: hidden;
  border-left: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  box-shadow: -20px 0 56px rgba(0, 0, 0, 0.22);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

.nav-drawer.is-open .nav-drawer__panel {
  transform: translateX(0);
}

.nav-drawer__pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-color: color-mix(in srgb, var(--bg) 40%, transparent);
  background-image:
    radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--primary) 22%, transparent) 0%, transparent 42%),
    radial-gradient(circle at 88% 82%, color-mix(in srgb, var(--primary) 16%, transparent) 0%, transparent 38%),
    repeating-linear-gradient(
      -14deg,
      transparent 0,
      transparent 22px,
      color-mix(in srgb, var(--primary) 7%, transparent) 22px,
      color-mix(in srgb, var(--primary) 7%, transparent) 23px
    ),
    repeating-linear-gradient(
      76deg,
      transparent 0,
      transparent 34px,
      color-mix(in srgb, var(--ink) 4%, transparent) 34px,
      color-mix(in srgb, var(--ink) 4%, transparent) 35px
    );
}

.nav-drawer__pattern::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: 12%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--primary) 12%, transparent);
  opacity: 0.7;
}

.nav-drawer__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  padding: max(18px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
}

.nav-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}

.nav-drawer__brand {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.nav-drawer__brand em {
  font-style: normal;
  color: var(--primary);
}

.nav-drawer__close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-drawer__close:hover {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--primary) 35%, transparent);
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
}

.nav-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.nav-drawer__nav a {
  position: relative;
  padding: 14px 16px 14px 18px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  border: 1px solid color-mix(in srgb, var(--ink) 7%, transparent);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nav-drawer__nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: transparent;
  transition: background 0.2s ease;
}

.nav-drawer__nav a:hover {
  transform: translateX(2px);
  background: color-mix(in srgb, var(--primary) 10%, var(--surface));
  border-color: color-mix(in srgb, var(--primary) 28%, transparent);
  color: var(--primary);
}

.nav-drawer__nav a:hover::before {
  background: var(--primary);
}

.nav-drawer__note {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}

.nav-drawer__cta {
  width: 100%;
  margin-top: 0;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--primary) 35%, transparent);
}

/* —— Компактные контакты —— */
.contact-compact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.35;
}

.contact-compact__row {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.contact-compact__lbl {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.contact-compact__hours {
  font-size: 0.8rem;
  color: var(--ink);
}

.contact-compact__hours b {
  color: var(--primary);
  font-weight: 700;
}

.contact-compact__sep {
  color: var(--muted);
  opacity: 0.5;
}

.contact-compact__phone-line {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.contact-compact__phone {
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary);
}

.contact-compact__addr-text {
  min-width: 0;
  font-size: 0.85rem;
  color: var(--ink);
  line-height: 1.35;
}

.contact-compact__metro {
  color: var(--muted);
  font-size: 0.8rem;
}

.btn--yandex {
  background: #fc3f1d;
  color: #fff;
  border: none;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(252, 63, 29, 0.28);
}

.btn--yandex:hover {
  background: #e63618;
  color: #fff;
  filter: none;
}

/* —— Полоса под шапкой (мобильные контакты + статус на главной) —— */
.site-strip {
  position: relative;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 6%, transparent);
}

.site-strip__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px 0 12px;
}

.status-slot {
  width: 100%;
  display: none;
  justify-content: center;
}

.status-slot__center {
  display: flex;
  justify-content: center;
  width: 100%;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px 10px;
  margin: 0;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  max-width: min(100%, 520px);
  width: auto;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.status-pill--online {
  background: rgba(22, 38, 30, 0.72);
  border: 1px solid rgba(74, 222, 128, 0.18);
}

.status-pill--offline {
  background: rgba(38, 40, 44, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.status-pill__dot {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  position: relative;
}

.status-pill--online .status-pill__dot {
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.35);
  animation: status-pulse 3s ease-in-out infinite;
}

.status-pill--online .status-pill__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.18);
}

.status-pill--offline .status-pill__dot {
  background: #9ca3af;
}

@keyframes status-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.45);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(74, 222, 128, 0);
  }
}

.status-pill__title {
  font-weight: 700;
  font-size: 0.86rem;
  color: #fff;
  white-space: nowrap;
}

.status-pill__hint {
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(167, 210, 180, 0.92);
  white-space: nowrap;
}

.status-pill--offline .status-pill__hint {
  color: rgba(200, 200, 200, 0.85);
}

.site-strip__mobile {
  width: 100%;
  display: none;
}

/* Статус между шапкой и карточкой на главной */
.status-slot--home-panel {
  display: flex;
  justify-content: center;
  margin: 0;
}

/* Статус: контакты — только ПК, внутри страницы */
.status-slot--contacts-inpage {
  display: none;
  justify-content: center;
  margin-bottom: 20px;
}

.page-contacts .status-slot--contacts-inpage {
  display: flex;
}

/* —— Кнопки —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn--fill {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 35%, transparent);
}

.btn--fill:hover { background: var(--primary-dark); color: #fff; }

.btn--outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn--lg { padding: 14px 28px; font-size: 1rem; }

/* —— Промо —— */
.promo {
  position: relative;
  min-height: min(72vh, 560px);
  overflow: hidden;
}

.promo--fallback {
  background:
    radial-gradient(ellipse 80% 60% at 80% 20%, color-mix(in srgb, var(--primary) 18%, transparent), transparent),
    linear-gradient(135deg, var(--surface), var(--bg));
}

.promo__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  background: var(--ink);
  background-image: var(--promo-img);
  background-size: cover;
  background-position: center;
}

.promo__slide.is-on { opacity: 1; position: relative; min-height: inherit; }

.promo__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(20, 20, 20, 0.85) 0%, rgba(20, 20, 20, 0.35) 55%, transparent);
}

.promo__content {
  position: relative;
  z-index: 2;
  padding: clamp(48px, 10vw, 100px) 0;
  max-width: 560px;
  color: #fff;
}

.promo__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  opacity: 0.85;
}

.promo__title {
  font-family: "Syne", sans-serif;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.05;
  margin: 12px 0;
}

.promo__sub { font-size: 1.1rem; opacity: 0.9; margin-bottom: 24px; }

.promo__dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.promo__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.promo__dot.is-on { background: var(--primary); transform: scale(1.2); }

/* —— Баннеры на главной —— */
.home-banners {
  padding: 4px 0 12px;
  background: var(--bg);
}

.home-banners__stage {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 2.15 / 1;
  background: var(--ink);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.home-banners__slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transition: opacity 0.65s ease;
  background: var(--ink);
}

.home-banners__slide.is-on {
  opacity: 1;
  z-index: 1;
}

.home-banners__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.home-banners__text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  height: 100%;
  min-height: 160px;
  padding: 20px;
  color: #fff;
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--primary) 35%, var(--ink)),
    var(--ink)
  );
}

.home-banners__text strong {
  font-family: "Syne", sans-serif;
  font-size: 1.25rem;
  line-height: 1.15;
}

.home-banners__text span {
  font-size: 0.88rem;
  opacity: 0.9;
}

.home-banners__dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.home-banners__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.home-banners__dot.is-on {
  background: var(--primary);
  transform: scale(1.15);
}

/* —— Главная: мобильная карточка контактов —— */
.home-panel {
  display: none;
  padding: 0 0 4px;
  background: var(--bg);
}

.home-panel__status-row {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  min-height: 52px;
  box-sizing: border-box;
}

.home-panel__wrap {
  display: flex;
  flex-direction: column;
}

.home-panel__card {
  background: var(--surface);
  border-radius: 28px;
  padding: 22px 20px 20px;
  border: 1px solid color-mix(in srgb, var(--ink) 7%, transparent);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.06),
    0 2px 0 color-mix(in srgb, var(--primary) 12%, transparent) inset;
  text-align: center;
}

.home-panel__body {
  width: 100%;
}

.home-panel__phone {
  display: block;
  font-weight: 800;
  font-size: clamp(1.35rem, 5.5vw, 1.55rem);
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.home-panel__phone:hover {
  color: var(--primary);
}

.home-panel__hours {
  list-style: none;
  margin: 0 auto 12px;
  padding: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}

.home-panel__hours li span {
  font-weight: 700;
  color: var(--ink);
}

.home-panel__addr {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.home-panel__metro {
  color: var(--muted);
  font-size: 0.84rem;
}

.home-panel__actions {
  width: 100%;
  margin-top: 18px;
}

.home-panel .contacts-actions--home-panel {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  gap: 10px;
}

.home-panel .contacts-actions__grid {
  gap: 10px;
}

/* —— Быстрые действия на главной (десктоп) —— */
.home-quick {
  padding: 20px 0 8px;
  background: var(--bg);
}

.home-quick__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.home-quick__card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 12px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  color: var(--ink);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-quick__card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--primary) 35%, transparent);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  color: var(--ink);
}

.home-quick__card--accent {
  border-color: color-mix(in srgb, var(--primary) 25%, transparent);
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--primary) 6%, var(--surface)),
    var(--surface)
  );
}

.home-quick__icon {
  font-size: 1.25rem;
  line-height: 1;
}

.home-quick__title {
  font-weight: 800;
  font-size: 0.88rem;
  line-height: 1.2;
}

.home-quick__sub {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.3;
}

.home-quick__card--accent .home-quick__title {
  color: var(--primary);
}

/* —— Отзывы (карусель) —— */
.reviews {
  padding: 40px 0 48px;
  background: var(--bg);
}

.reviews__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.reviews__title {
  margin: 0 0 4px;
}

.reviews__source {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.reviews__nav {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.reviews__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--primary) 25%, transparent);
  background: var(--surface);
  color: var(--primary);
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.reviews__arrow:hover {
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
  border-color: var(--primary);
  transform: translateY(-2px);
}

.reviews__arrow:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}

.reviews__viewport {
  overflow: hidden;
  border-radius: 24px;
  touch-action: pan-y;
}

.reviews__track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.review-card {
  flex: 0 0 100%;
  min-width: 100%;
  box-sizing: border-box;
  background: var(--surface);
  border-radius: 24px;
  padding: 20px 18px 22px;
  border: 1px solid color-mix(in srgb, var(--ink) 7%, transparent);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.07);
}

.review-card__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 12px;
  margin-bottom: 14px;
}

.review-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.review-card__meta {
  min-width: 0;
}

.review-card__name {
  display: block;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--ink);
}

.review-card__level {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.3;
}

.review-card__source-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.review-card__rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.review-card__stars {
  display: inline-flex;
  gap: 2px;
}

.review-card__star {
  color: #f5b301;
  font-size: 1.05rem;
  line-height: 1;
}

.review-card__star.is-dim {
  color: color-mix(in srgb, var(--muted) 35%, transparent);
}

.review-card__date {
  font-size: 0.82rem;
  color: var(--muted);
}

.review-card__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink);
}

.reviews__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.reviews__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: color-mix(in srgb, var(--ink) 18%, transparent);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.reviews__dot.is-on {
  background: var(--primary);
  transform: scale(1.2);
}

@media (min-width: 720px) {
  .review-card {
    padding: 24px 24px 26px;
  }

  .review-card__text {
    font-size: 1rem;
  }
}

/* —— Японские марки (bento) —— */
.brands-bento-section {
  padding: 48px 0 56px;
  background: color-mix(in srgb, var(--ink) 3%, var(--bg));
}

.brands-bento-section__head {
  margin-bottom: 24px;
  max-width: 640px;
}

.brands-bento-section__title {
  margin-bottom: 8px;
}

.brands-bento-section__lead {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}

.brands-bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 96px;
  grid-auto-flow: dense;
  gap: 12px;
}

.brand-tile {
  position: relative;
  border-radius: 18px;
  padding: 14px 14px 12px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

.brand-tile--highlight {
  background: linear-gradient(145deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-color: color-mix(in srgb, var(--primary) 45%, transparent);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--primary) 28%, transparent);
}

.brand-tile--highlight:hover {
  box-shadow: 0 16px 36px color-mix(in srgb, var(--primary) 36%, transparent);
}

.brand-tile--sm {
  grid-column: span 1;
  grid-row: span 1;
}

.brand-tile--md {
  grid-column: span 2;
  grid-row: span 1;
}

.brand-tile--wide {
  grid-column: span 2;
  grid-row: span 1;
}

.brand-tile--tall {
  grid-column: span 1;
  grid-row: span 2;
}

.brand-tile--lg {
  grid-column: span 2;
  grid-row: span 2;
}

.brand-tile__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  flex: 1;
  min-height: 0;
  width: 100%;
}

.brand-tile__logo-wrap {
  display: inline-block;
  line-height: 0;
}

/*
 Белые плитки: маска выходит только там же где есть класс --tint.
 Обычный img уже задаёт размер обёртке маски так же, как на акцентных.
 По высоте даём белым большую нижнюю границу — после затухления кажется меньше красных,
 хотим одинаковый визуальный вес с акцентной карточкой.
*/

.brand-tile:not(.brand-tile--highlight) .brand-tile__logo-wrap {
  max-width: min(92%, 260px);
}

.brand-tile__logo {
  display: block;
  max-width: 100%;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.brand-tile:not(.brand-tile--highlight):not(.brand-tile--lg):not(.brand-tile--tall):not(.brand-tile--wide) .brand-tile__logo {
  max-height: clamp(44px, 5vw, 56px);
}

.brand-tile:not(.brand-tile--highlight).brand-tile--wide .brand-tile__logo {
  max-height: clamp(52px, 5vw, 64px);
}

/* Белая плитка: силуэт логотипа в фирменном красном */
.brand-tile__logo-wrap--tint {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  -webkit-mask-image: var(--brand-logo-mask);
  mask-image: var(--brand-logo-mask);
  mask-source-type: alpha;
  -webkit-mask-size: auto 128%;
  mask-size: auto 128%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transform: scale(1.18);
  transform-origin: center;
}

.brand-tile__logo-wrap--tint .brand-tile__logo {
  visibility: hidden;
  opacity: 0;
}

.brand-tile--lg .brand-tile__logo,
.brand-tile--tall .brand-tile__logo {
  max-height: 62px;
  max-width: 84%;
  object-position: center;
}

.brand-tile:not(.brand-tile--highlight).brand-tile--lg .brand-tile__logo,
.brand-tile:not(.brand-tile--highlight).brand-tile--tall .brand-tile__logo {
  max-height: clamp(72px, 13vmin, 90px);
}

.brand-tile--lg .brand-tile__logo-wrap,
.brand-tile--tall .brand-tile__logo-wrap {
  max-width: 94%;
}

.brand-tile--lg .brand-tile__logo-wrap--tint,
.brand-tile--tall .brand-tile__logo-wrap--tint {
  align-self: center;
  -webkit-mask-position: center;
  mask-position: center;
}

.brand-tile--wide:not(.brand-tile--highlight) .brand-tile__logo {
  max-height: clamp(52px, 6vmin, 68px);
}

/* Акцентные красные: белый силуэт */
.brand-tile--highlight .brand-tile__logo {
  filter: brightness(0) invert(1);
}

.brand-tile__logo-fallback {
  font-family: "Syne", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
  opacity: 0.88;
}

.brand-tile--highlight .brand-tile__logo-fallback {
  color: #fff;
  opacity: 0.9;
}

.brand-tile__name {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(0.92rem, 1.8vw, 1.12rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
}

.brand-tile--lg .brand-tile__name {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
}

.brand-tile--highlight .brand-tile__name {
  color: #fff;
}

.brand-tile__tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.5;
  color: var(--muted);
}

.brand-tile--highlight .brand-tile__tag {
  color: #fff;
  opacity: 0.8;
}

/* ПК: логотип и название — одна вертикальная колонка по центру плитки */
@media (min-width: 961px) {
  .brand-tile {
    justify-content: center;
  }

  .brand-tile__body {
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .brand-tile__name {
    width: 100%;
    text-align: center;
  }

  .brand-tile__logo {
    object-position: center;
    margin-inline: auto;
  }

  .brand-tile__logo-wrap,
  .brand-tile__logo-fallback {
    margin-inline: auto;
  }

  /* Текст не уезжает относительно визуального центра асимметричного маскированного лого */
  .brand-tile:not(.brand-tile--highlight) .brand-tile__logo-wrap {
    max-width: min(96%, 280px);
  }
}

@media (max-width: 960px) {
  .brands-bento-section {
    padding: 32px 0 40px;
  }

  .brands-bento-section__head {
    margin-bottom: 16px;
  }

  .brands-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 72px;
    grid-auto-flow: dense;
    gap: 8px;
  }

  .brand-tile--lg,
  .brand-tile--wide,
  .brand-tile--md {
    grid-column: span 2;
    grid-row: span 1;
  }

  .brand-tile--tall {
    grid-column: span 1;
    grid-row: span 2;
  }

  .brand-tile--sm {
    grid-column: span 1;
    grid-row: span 1;
  }

  .brand-tile {
    padding: 10px 12px;
    border-radius: 14px;
  }

  .brand-tile__body {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .brand-tile--lg .brand-tile__body {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }

  .brand-tile--tall .brand-tile__body {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
  }

  .brand-tile--tall .brand-tile__name {
    align-self: center;
    width: 100%;
    text-align: center;
  }

  /* Одной высоты блок название — аккуратнее дать логотипам почти ту же высоту, что у акцента */
  .brand-tile:not(.brand-tile--highlight):not(.brand-tile--tall) .brand-tile__logo {
    max-height: clamp(50px, 15vw, 64px);
    max-width: min(58%, 220px);
  }

  .brand-tile:not(.brand-tile--highlight):not(.brand-tile--tall) .brand-tile__logo-wrap {
    max-width: min(58%, 220px);
  }

  .brand-tile__logo {
    flex-shrink: 0;
  }

  .brand-tile__logo-wrap {
    flex-shrink: 0;
  }

  .brand-tile:not(.brand-tile--highlight).brand-tile--lg .brand-tile__logo {
    max-height: clamp(48px, 13vw, 58px);
    max-width: min(50%, 200px);
  }

  .brand-tile:not(.brand-tile--highlight).brand-tile--lg .brand-tile__logo-wrap {
    max-width: min(50%, 200px);
  }

  /* Высокие белые — столбец, как Mazda */
  .brand-tile:not(.brand-tile--highlight).brand-tile--tall .brand-tile__logo {
    max-height: clamp(64px, 20vw, 92px);
    max-width: 96%;
  }

  .brand-tile:not(.brand-tile--highlight).brand-tile--tall .brand-tile__logo-wrap {
    max-width: 96%;
  }

  .brand-tile__logo-fallback {
    font-size: 1.6rem;
    flex-shrink: 0;
  }

  .brand-tile__name {
    font-size: 0.84rem;
  }

  .brand-tile--lg .brand-tile__name {
    font-size: 1rem;
  }

  .brand-tile__tag {
    position: absolute;
    left: 12px;
    bottom: 8px;
    font-size: 0.58rem;
  }
}

/* —— Плитки —— */
.section-title {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 28px;
}

.tiles { padding: 64px 0; }

.tiles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tile-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 28px;
  border-left: 5px solid var(--primary);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
  transition: transform 0.35s ease;
}

.tile-card:hover { transform: translateY(-6px) rotate(-0.5deg); }

.tile-card__glyph {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 12px;
  font-size: 1.8rem;
  line-height: 1;
}

.tile-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.tile-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.cta-band { padding: 0 0 72px; }

.cta-band__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 40px;
  border-radius: 24px;
  background: var(--surface);
  outline: 2px dashed color-mix(in srgb, var(--primary) 40%, transparent);
  outline-offset: 6px;
}

.cta-band__copy h2 {
  margin: 0 0 10px;
  font-family: "Syne", sans-serif;
  font-size: 1.35rem;
  line-height: 1.2;
}

.cta-band__copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  max-width: 36rem;
}

.cta-band__btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* —— Каталог —— */
.page-head { padding: 40px 0 24px; }
.page-head h1 { font-family: "Syne", sans-serif; margin: 0 0 8px; }
.page-head p { color: var(--muted); margin: 0; }

/* —— Страница policy —— */
.page-policy__head {
  padding-bottom: 14px;
}

.page-policy__content {
  padding-bottom: 72px;
}

.policy-article {
  max-width: 920px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  border-radius: 16px;
  padding: 22px 20px;
  line-height: 1.62;
}

.policy-article p {
  margin: 0 0 14px;
}

.policy-article p:last-child {
  margin-bottom: 0;
}

.policy-article h2 {
  margin: 24px 0 10px;
  font-family: "Syne", sans-serif;
  font-size: 1.2rem;
  line-height: 1.3;
}

.policy-article h2:first-child {
  margin-top: 0;
}

.policy-article h3 {
  margin: 16px 0 8px;
  font-size: 1.02rem;
}

.policy-article ul {
  margin: 8px 0 14px 1.1rem;
  padding: 0;
}

.policy-article li {
  margin: 0 0 8px;
}

.policy-article a {
  color: var(--primary);
}

.policy-table {
  width: 100%;
  margin: 12px 0 20px;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.55;
}

.policy-table th,
.policy-table td {
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  padding: 12px 14px;
  vertical-align: top;
  text-align: left;
}

.policy-table th {
  width: 34%;
  min-width: 11rem;
  background: color-mix(in srgb, var(--ink) 5%, var(--surface));
  font-weight: 600;
}

.policy-table td {
  background: color-mix(in srgb, #fff8e1 55%, var(--surface));
}

.policy-table td ul {
  margin: 0;
  padding-left: 1.1rem;
  list-style: disc;
}

.policy-table td li {
  margin: 0 0 6px;
}

.policy-table td li:last-child {
  margin-bottom: 0;
}

.policy-table td > :last-child {
  margin-bottom: 0;
}

.catalog__layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding-bottom: 80px;
}

.catalog__results {
  min-width: 0;
}

.facet {
  position: sticky;
  top: 100px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  background: linear-gradient(
    180deg,
    var(--surface) 0%,
    color-mix(in srgb, var(--bg) 35%, var(--surface)) 100%
  );
  border: 1px solid color-mix(in srgb, var(--ink) 7%, transparent);
  border-top: 3px solid var(--primary);
  border-radius: 20px;
  padding: 18px 16px 20px;
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.07),
    0 1px 0 color-mix(in srgb, var(--surface) 80%, transparent) inset;
}

.facet::-webkit-scrollbar {
  width: 6px;
}

.facet::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--primary) 35%, transparent);
  border-radius: 999px;
}

.facet__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.facet__section {
  margin: 0;
  padding: 14px 12px;
  border: none;
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg) 55%, var(--surface));
  box-shadow: 0 1px 0 color-mix(in srgb, var(--surface) 90%, transparent);
}

.facet__section--search {
  padding-bottom: 12px;
}

.facet__legend {
  display: block;
  margin: 0 0 10px;
  font-family: "Syne", sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.facet__group .facet__legend {
  padding: 0;
  width: 100%;
}

.facet__hint {
  margin: -2px 0 10px;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--muted);
}

.facet__search-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.facet__search-btn {
  width: 100%;
  justify-content: center;
  padding: 10px 14px;
  font-size: 0.88rem;
}

.facet__input {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.facet__input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--primary) 45%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent);
}

@media (min-width: 961px) {
  /* Узкий сайдбар: плейсхолдер «Название, артикул, OEM…» помещался целиком */
  .facet__section--search .facet__input {
    font-size: 0.8125rem;
    line-height: 1.35;
  }
}

.facet__select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235c5c5c' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}

.facet__options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.facet__chip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 9px 11px;
  border-radius: 11px;
  border: 1px solid color-mix(in srgb, var(--ink) 9%, transparent);
  background: var(--surface);
  font-size: 0.86rem;
  line-height: 1.25;
  color: var(--ink);
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;
}

.facet__chip span {
  flex: 1;
  min-width: 0;
}

.facet__chip:hover {
  border-color: color-mix(in srgb, var(--primary) 28%, transparent);
  background: color-mix(in srgb, var(--primary) 4%, var(--surface));
}

.facet__chip:has(input:checked) {
  border-color: color-mix(in srgb, var(--primary) 45%, transparent);
  background: color-mix(in srgb, var(--primary) 10%, var(--surface));
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 14%, transparent);
}

.facet__chip:has(input:checked)::before {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: inset 0 0 0 3px var(--surface);
}

.facet__chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.facet__chip::before {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--ink) 22%, transparent);
  background: var(--surface);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.facet__chip--hidden {
  display: none;
}

.facet__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 8px 0 0;
  padding: 6px 0 2px;
  border: none;
  background: none;
  font: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--primary);
  cursor: pointer;
  text-align: left;
}

.facet__more[hidden] {
  display: none;
}

.facet__more::after {
  content: "↓";
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.facet__group.is-facet-expanded .facet__more::after {
  transform: rotate(180deg);
}

.facet__more:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.facet__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
}

.facet__field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
}

.facet__field--full {
  width: 100%;
}

.facet__field-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.field-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
  border-radius: 10px;
  font: inherit;
  background: var(--bg);
}

.field-input--area { min-height: 100px; resize: vertical; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* —— Популярные товары на главной (до 6 в ряд) —— */
.home-popular {
  padding: 28px 0 36px;
  background: color-mix(in srgb, var(--bg) 92%, var(--surface));
  border-top: 1px solid color-mix(in srgb, var(--ink) 6%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 6%, transparent);
}

.home-popular__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 20px;
}

.home-popular__title {
  margin: 0;
}

.home-popular__all {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.home-popular__all:hover {
  color: var(--primary-dark);
}

.product-grid--home {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.product-grid--home .pcard h3 {
  font-size: 0.88rem;
  margin: 4px 0 6px;
  line-height: 1.25;
}

.product-grid--home .pcard__body {
  padding: 12px;
  min-height: 108px;
}

.product-grid--home .pcard__price {
  font-size: 1rem;
}

.product-grid--home .pcard__visual {
  aspect-ratio: 1 / 1;
}

.product-grid--home .pcard__visual > img:not(.pcard__brand-logo) {
  padding: 8px;
}

.product-grid--home .pcard__brand-logo {
  right: 6px;
  bottom: 6px;
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.18));
}

@media (max-width: 1280px) {
  .product-grid--home {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .product-grid--home {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home-popular {
    padding: 20px 0 28px;
  }

  .product-grid--home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

.pcard {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  color: inherit;
  transition: transform 0.25s, box-shadow 0.25s;
}

.pcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  color: inherit;
}

.pcard__visual {
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(145deg, var(--bg), color-mix(in srgb, var(--primary) 12%, var(--bg)));
  display: grid;
  place-items: center;
  overflow: hidden;
}

.pcard__visual > img:not(.pcard__brand-logo) {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  box-sizing: border-box;
}

.pcard__placeholder {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.pcard__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
  min-height: 132px;
}

.pcard h2,
.pcard h3 {
  flex: 1;
  font-size: 1rem;
  margin: 4px 0 8px;
  line-height: 1.3;
}
.pcard__sku {
  display: block;
  margin-bottom: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.3;
}
.pcard__price {
  margin: auto 0 0;
  align-self: flex-start;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.1;
  color: var(--primary);
}

.pcard__price--order {
  color: var(--muted);
  font-size: 1rem;
}

.pcard__brand-logo {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 48px;
  height: 48px;
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2));
}

.spec-dl__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.spec-dl__brand-logo {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.pcard__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* —— Каталог: список товаров —— */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plist__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 10px 12px;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--ink) 7%, transparent);
  padding: 10px 12px 10px 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.plist__row:hover {
  border-color: color-mix(in srgb, var(--primary) 28%, transparent);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--ink) 8%, transparent);
}

.plist__link {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 14px;
  color: inherit;
  min-width: 0;
}

.plist__link:hover {
  color: inherit;
}

.plist__thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: color-mix(in srgb, var(--bg) 88%, var(--ink));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.plist__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.plist__placeholder {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
}

.plist__info {
  min-width: 0;
}

.plist__name {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.plist__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.plist__codes {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.plist__sku {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.plist__sep {
  flex-shrink: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 55%, var(--muted));
}

.plist__brand {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 10rem;
}

.plist__stock {
  font-size: 0.68rem;
  padding: 3px 8px;
}

.plist__price-col {
  text-align: right;
  padding-right: 4px;
  align-self: center;
}

.plist__price {
  font-size: 1.05rem;
  font-weight: 800;
  white-space: nowrap;
  color: var(--ink);
}

.plist__price--order {
  font-size: 0.88rem;
  color: var(--muted);
}

.plist__cart-btn {
  align-self: center;
  white-space: nowrap;
}

.btn--sm {
  padding: 8px 14px;
  font-size: 0.82rem;
}

.btn--sm.is-added {
  background: color-mix(in srgb, var(--ink) 78%, var(--primary));
}

/* —— Корзина в шапке —— */
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 5%, var(--surface));
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.cart-link:hover {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, var(--surface));
  transform: translateY(-1px);
}

.cart-link__badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

.cart-link__badge.is-empty {
  display: none;
}

/* —— Страница корзины —— */
.page-cart .cart-page {
  padding: 24px 0 64px;
}

.cart-page__lead {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 42rem;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 24px 28px;
  align-items: start;
}

.cart-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 20px;
  padding: 14px 16px;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--ink) 7%, transparent);
}

.cart-item__name {
  display: block;
  font-weight: 700;
  color: inherit;
  margin-bottom: 4px;
  line-height: 1.3;
}

.cart-item__name:hover {
  color: var(--primary);
}

.cart-item__sku {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.cart-item__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg);
}

.cart-qty__btn {
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
}

.cart-qty__btn:hover {
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}

.cart-qty__input {
  width: 42px;
  border: none;
  background: transparent;
  text-align: center;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  -moz-appearance: textfield;
}

.cart-qty__input::-webkit-outer-spin-button,
.cart-qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-item__remove {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cart-item__remove:hover {
  color: var(--primary);
}

.cart-item__price {
  text-align: right;
  align-self: center;
}

.cart-item__price-val {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  white-space: nowrap;
}

.cart-item__unit {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}

.cart-clear-btn {
  margin-top: 12px;
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cart-clear-btn:hover {
  color: var(--primary);
}

.cart-checkout {
  position: sticky;
  top: 96px;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  padding: 20px;
  box-shadow: 0 16px 40px color-mix(in srgb, var(--ink) 6%, transparent);
}

.cart-summary {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.cart-summary__row strong {
  color: var(--ink);
  font-size: 1rem;
}

.cart-summary__row--total strong {
  font-size: 1.35rem;
}

.cart-summary__note {
  margin: 10px 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
}

.cart-checkout__title {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.cart-checkout__form .field {
  margin-bottom: 12px;
}

.cart-checkout__submit {
  width: 100%;
  margin-top: 14px;
}

.field-req {
  color: var(--primary);
}

.cart-empty,
.cart-success {
  text-align: center;
  padding: 48px 20px;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--ink) 7%, transparent);
}

.cart-success__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: color-mix(in srgb, #22a06b 18%, var(--surface));
  color: #1a7a52;
  font-size: 1.6rem;
  line-height: 56px;
  font-weight: 800;
}

.cart-success__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.cart-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 300;
  max-width: min(420px, calc(100% - 32px));
  padding: 12px 18px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  transition: transform 0.3s ease;
  pointer-events: none;
}

.cart-toast.is-visible {
  transform: translateX(-50%) translateY(0);
}

.product-delivery-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 14px 0 4px;
  padding: 14px 16px;
  border-radius: 14px;
  background: color-mix(in srgb, #22a06b 10%, var(--surface));
  border: 1px solid color-mix(in srgb, #22a06b 22%, transparent);
}

.product-delivery-banner__icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.product-delivery-banner strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.product-delivery-banner span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 16px;
}

.catalog-toolbar__count {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.catalog-toolbar__count strong {
  color: var(--ink);
}

.catalog-toolbar__reset {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.catalog-toolbar__reset:hover {
  color: var(--primary-dark);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-basis: 100%;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--primary) 28%, transparent);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.filter-chip:hover {
  background: color-mix(in srgb, var(--primary) 16%, var(--surface));
  border-color: var(--primary);
  color: var(--primary);
}

.filter-chip__x {
  font-size: 1.1rem;
  line-height: 1;
  color: var(--primary);
}

.facet__clear {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed color-mix(in srgb, var(--primary) 45%, transparent);
  background: color-mix(in srgb, var(--primary) 6%, var(--surface));
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.facet__clear:hover {
  background: color-mix(in srgb, var(--primary) 12%, var(--surface));
  color: var(--primary-dark);
}

.catalog__results[aria-busy="true"] {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.pager { display: flex; gap: 16px; align-items: center; justify-content: center; margin-top: 32px; }
.empty { color: var(--muted); padding: 40px 0; }

/* —— Товар —— */
.product-page { padding-bottom: 64px; }
.back-link { display: inline-block; margin: 16px 0 12px; font-weight: 600; }

.product-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px 40px;
  align-items: start;
}

.product-page__gallery {
  position: sticky;
  top: 100px;
}

.product-page__media {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: color-mix(in srgb, var(--bg) 70%, var(--surface));
}

.product-page__media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-page__empty {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 360px;
  aspect-ratio: 1;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
  background: linear-gradient(
    145deg,
    var(--bg),
    color-mix(in srgb, var(--primary) 10%, var(--bg))
  );
}

.product-page__head h1 {
  margin: 8px 0 8px;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.2;
}

.product-page__article {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: var(--muted);
}

.product-page__note {
  margin: 0 0 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

.product-page__article-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0 0 10px;
}

.product-page__article {
  margin: 0;
}

.copy-sku {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  border-radius: 10px;
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.copy-sku:hover {
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 35%, transparent);
}

.copy-sku.is-copied {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.stock-badge {
  display: inline-block;
  margin: 0 0 10px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.stock--in {
  background: color-mix(in srgb, #2d9f5f 14%, var(--surface));
  color: #1f7a47;
}

.stock--order {
  background: color-mix(in srgb, #d97706 14%, var(--surface));
  color: #b45309;
}

.stock--ask {
  background: color-mix(in srgb, var(--ink) 8%, var(--surface));
  color: var(--muted);
}

.product-page__price {
  margin: 4px 0 0;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.product-page__price--order {
  font-size: 1.35rem;
  color: var(--muted);
}

.compat-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compat-list li {
  padding: 10px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg) 80%, var(--surface));
  border-left: 3px solid color-mix(in srgb, var(--primary) 40%, transparent);
  font-weight: 600;
}

.product-tabs__note {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.product-page__hint {
  margin: 0 0 18px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

.product-page__prose p {
  margin: 0 0 10px;
  line-height: 1.55;
}

.product-page__prose p:last-child {
  margin-bottom: 0;
}
.tag {
  display: inline-block;
  padding: 4px 10px;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}
.spec-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
}
.spec-dl dt { color: var(--muted); font-weight: 600; }
.product-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 14px;
}

.product-page__actions .btn {
  flex: 1 1 140px;
}

/* Вкладки товара */
.product-tabs {
  margin-top: 4px;
}

.product-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.product-tabs__btn {
  padding: 9px 14px;
  border: none;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 6%, var(--bg));
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.product-tabs__btn:hover {
  background: color-mix(in srgb, var(--ink) 10%, var(--bg));
}

.product-tabs__btn.is-active {
  background: var(--ink);
  color: #fff;
}

.product-tabs__panel {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink);
}

.product-tabs__empty {
  margin: 0;
  color: var(--muted);
}

.product-oem {
  margin-bottom: 16px;
}

.product-oem__title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.product-oem__title--sub {
  margin-top: 20px;
  font-size: 0.95rem;
}

.product-oem__list {
  margin: 0;
  line-height: 1.6;
  color: var(--ink-soft);
  word-break: break-word;
}

.product-tabs__note--delivery {
  margin-top: 14px;
}

.product-delivery {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-delivery li {
  padding-left: 14px;
  border-left: 2px solid color-mix(in srgb, var(--primary) 35%, transparent);
}

.product-delivery strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* —— Подбор —— */
.request-page { padding-bottom: 80px; }
.request-form {
  background: var(--surface);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.07);
}
.request-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field label { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 6px; }
.field--full { grid-column: 1 / -1; }

.field__label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.field__label-row label {
  margin-bottom: 0;
}

.field-hint {
  position: relative;
  flex-shrink: 0;
}

.field-hint__btn {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  cursor: help;
}

.field-hint__btn:hover,
.field-hint__btn:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
  outline: none;
}

.field-hint__tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 20;
  width: min(280px, 72vw);
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
}

.field-hint__tip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 10px;
  height: 10px;
  background: var(--ink);
  transform: translateX(-50%) rotate(45deg);
}

.field-hint__tip code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

.field-hint:hover .field-hint__tip,
.field-hint:focus-within .field-hint__tip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.request-form .errorlist,
.contacts-form .errorlist {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.request-form .errorlist li,
.contacts-form .errorlist li {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}

.request-form .errorlist li::before,
.contacts-form .errorlist li::before {
  content: "• ";
}

.request-form__submit {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}

.request-form__submit .consent {
  margin: 0 0 14px;
}

.request-form__submit .errorlist {
  margin: -6px 0 20px;
  padding-left: 28px;
}

.request-form__submit .btn {
  margin: 0;
  align-self: flex-start;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 20px 0;
  font-size: 0.9rem;
}
.ok-banner {
  background: color-mix(in srgb, var(--primary) 12%, var(--surface));
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
}

/* —— О нас —— */
.about-hero {
  padding: 56px 0 32px;
  background: linear-gradient(180deg, var(--surface), var(--bg));
}

.about-hero__kicker {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
}

.about-hero h1 {
  font-family: "Syne", sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 8px 0;
}

.about-hero__lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.55;
}

.rings {
  padding: 24px 0 48px;
}

.rings__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ring {
  position: relative;
  text-align: center;
  padding: 20px 16px 18px;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--ink) 6%, transparent);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.ring.is-visible {
  animation: about-card-rise 0.65s ease both;
}

.ring:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.ring__visual {
  position: relative;
  width: 112px;
  margin: 0 auto;
  flex-shrink: 0;
}

.ring__visual svg {
  width: 100%;
  display: block;
}

.ring__bg {
  fill: none;
  stroke: var(--bg);
  stroke-width: 8;
}

.ring__fg {
  fill: none;
  stroke: var(--primary);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 1.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.ring.is-animated .ring__fg {
  stroke-dashoffset: calc(100 - (100 * var(--pct, 0) / 100));
}

.ring__num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  line-height: 1;
  pointer-events: none;
}

.ring__label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.about-timeline {
  padding: 16px 0 56px;
  overflow: hidden;
}

.about-timeline__lead {
  max-width: 40rem;
  margin: 0 0 28px;
  color: var(--muted);
  line-height: 1.55;
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    var(--primary),
    color-mix(in srgb, var(--primary) 25%, var(--bg))
  );
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline.is-visible::before {
  transform: scaleY(1);
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding-bottom: 28px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__marker {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.timeline__year {
  font-family: "Syne", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--primary);
}

.timeline__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid color-mix(in srgb, var(--primary) 35%, transparent);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  font-size: 1.1rem;
}

.timeline__card {
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--ink) 7%, transparent);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.timeline__item.is-visible .timeline__card {
  animation: timeline-card-in 0.55s ease both;
}

.timeline__item:hover .timeline__card {
  transform: translateX(4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.09);
}

.timeline__card h3 {
  margin: 0 0 6px;
  font-family: "Syne", sans-serif;
  font-size: 1.05rem;
}

.timeline__card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}

@keyframes timeline-card-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.about-values {
  padding: 8px 0 48px;
}

.about-values__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.about-values__item {
  padding: 20px 16px;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--ink) 7%, transparent);
}

.about-values__item h3 {
  margin: 10px 0 6px;
  font-size: 1rem;
  font-family: "Syne", sans-serif;
}

.about-values__item p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

.about-values__icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--primary) 10%, var(--bg));
  color: var(--primary);
  font-size: 1.1rem;
}

.zigzag {
  padding: 48px 0 56px;
}

.zigzag__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.zigzag__item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  transition: transform 0.3s ease, background 0.3s ease;
}

.zigzag__item:hover {
  transform: translateX(6px);
}

.zigzag__tag {
  font-family: "Syne", sans-serif;
  font-size: 1.5rem;
  color: var(--primary);
}

.about-extra {
  padding-bottom: 40px;
}

.about-cta {
  padding: 0 0 72px;
}

.about-cta__box {
  padding: 32px 28px;
  border-radius: 22px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--primary) 92%, var(--ink)),
    var(--ink)
  );
  color: #fff;
  text-align: center;
}

.about-cta__box h2 {
  margin: 0 0 10px;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
}

.about-cta__box p {
  margin: 0 auto 20px;
  max-width: 520px;
  opacity: 0.92;
  line-height: 1.5;
}

.about-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.about-cta .btn--outline {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: transparent;
}

.about-cta .btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.prose {
  padding-bottom: 64px;
  max-width: 720px;
  line-height: 1.65;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes about-card-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  .ring,
  .zigzag__item {
    transition: none;
    animation: none;
    transform: none;
    opacity: 1;
  }
}

/* —— Контакты —— */
.contacts-page {
  padding: 8px 0 64px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contacts-card,
.contacts-office,
.contacts-form-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 22px 20px;
  border: 1px solid color-mix(in srgb, var(--ink) 7%, transparent);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.contacts-block + .contacts-block {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}

.contacts-block__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.contacts-block__title {
  margin: 0 0 8px;
  font-family: "Syne", sans-serif;
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--ink);
}

.contacts-block__value {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}

.contacts-block__value--link {
  display: inline-block;
  color: var(--primary);
}

.contacts-block__value--link:hover {
  color: var(--primary-dark);
}

.contacts-block__note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.contacts-block__note a {
  color: var(--primary);
  font-weight: 600;
}

.contacts-hours {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contacts-hours li {
  font-size: 0.95rem;
  color: var(--ink);
}

.contacts-hours li span {
  display: inline-block;
  min-width: 3.4rem;
  font-weight: 800;
  color: var(--primary);
}

.contacts-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}

.contacts-actions__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.contacts-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 11px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.2;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.contacts-btn--call {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary-dark);
}

.contacts-btn--call:hover {
  background: var(--primary-dark);
  color: #fff;
}

.contacts-btn--secondary {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
}

.contacts-btn--secondary:hover {
  background: var(--surface);
  color: var(--ink);
  border-color: color-mix(in srgb, var(--ink) 22%, transparent);
}

.contacts-btn--route::before,
.contacts-btn--wa::before,
.contacts-btn--tg::before,
.contacts-btn--max::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--ink) 28%, transparent);
}

.contacts-btn--route::before {
  background: #c9a227;
}

.contacts-btn--wa::before {
  background: #3d9b62;
}

.contacts-btn--tg::before {
  background: #4a8fb8;
}

.contacts-btn--max::before {
  background: #6b7cb8;
}

.contacts-btn--submit {
  margin-top: 8px;
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary-dark);
  cursor: pointer;
}

.contacts-btn--submit:hover {
  background: var(--primary-dark);
  color: #fff;
}

.contacts-btn--yandex {
  background: #fc3f1d;
  color: #fff;
  border: 1px solid #e63618;
  font-weight: 700;
  font-size: 0.82rem;
  padding-inline: 10px;
}

.contacts-btn--yandex:hover {
  background: #e63618;
  color: #fff;
}

.contacts-office__title {
  margin: 0 0 6px;
  font-family: "Syne", sans-serif;
  font-size: 1.35rem;
  color: var(--ink);
}

.contacts-office__subtitle {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
}

.contacts-office__text {
  margin: 0 0 12px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

.contacts-office__text strong {
  color: var(--ink);
}

.contacts-office__list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contacts-office__list li {
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.45;
}

.contacts-office__list li span {
  display: inline-block;
  min-width: 4.5rem;
  font-weight: 700;
  color: var(--muted);
}

.contacts-office__list a {
  font-weight: 700;
}

.contacts-form-card__title {
  margin: 0 0 6px;
  font-family: "Syne", sans-serif;
  font-size: 1.35rem;
  color: var(--ink);
}

.contacts-form-card__lead {
  margin: 0 0 20px;
  font-size: 0.9rem;
  color: var(--muted);
}

.contacts-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contacts-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contacts-form .field label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.contacts-form .consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

.contacts-form .consent a {
  color: var(--primary);
  font-weight: 600;
}

.map-frame {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--surface);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

.map-frame--contacts {
  margin: 0;
}

/* —— Подвал и dock —— */
.foot {
  background: var(--ink);
  color: #eee;
  padding: 40px 0 48px;
  margin-top: 48px;
}
.foot a { color: #fff; }
.foot__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
}
.foot__brand {
  margin: 0 0 8px;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.1;
}
.foot__brand em {
  font-style: normal;
  color: var(--primary);
}
.foot__links { display: flex; flex-direction: column; gap: 8px; }

.flash {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* —— Модальное окно (заявка на подбор) —— */
.app-modal:not(.is-open),
.app-modal[hidden] {
  display: none;
}

.app-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  box-sizing: border-box;
}

.app-modal__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  background: rgba(20, 20, 20, 0.52);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.app-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  padding: 28px 24px 24px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
  text-align: center;
  animation: app-modal-in 0.35s ease;
}

.app-modal__dialog--success {
  border-top: 4px solid var(--primary);
}

.app-modal__dialog--error {
  border-top: 4px solid #c45c1a;
}

.app-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.app-modal__close:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 8%, var(--bg));
}

.app-modal__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 800;
}

.app-modal__icon--success {
  background: color-mix(in srgb, var(--primary) 14%, var(--surface));
  color: var(--primary);
}

.app-modal__icon--error {
  background: #fff3eb;
  color: #c45c1a;
}

.app-modal__title {
  margin: 0 0 10px;
  font-family: "Syne", sans-serif;
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--ink);
}

.app-modal__text {
  margin: 0 0 22px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
}

.app-modal__action {
  width: 100%;
  max-width: 280px;
}

body.is-modal-open {
  overflow: hidden;
}

@keyframes app-modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.page-part-request .request-page {
  padding-bottom: 48px;
}

.page-part-request .request-page__head p {
  max-width: 36rem;
  line-height: 1.55;
}

/* —— Адаптив —— */
@media (max-width: 960px) {
  .masthead__desktop {
    display: none;
  }

  .masthead__tools {
    display: flex;
  }

  .masthead__burger {
    display: flex;
  }

  .page-home .home-panel {
    display: block;
  }

  .page-home .home-quick {
    display: none;
  }

  .page-home .home-banners {
    padding: 0 0 10px;
  }

  .page-home .home-banners__stage {
    border-radius: 20px;
  }

  .page-contacts .status-slot--contacts-inpage {
    display: flex;
    margin-bottom: 12px;
  }

  body.is-menu-open {
    overflow: hidden;
  }

  .contact-compact__hours {
    flex-wrap: nowrap;
    white-space: nowrap;
    font-size: 0.72rem;
    gap: 4px 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .contact-compact__hours::-webkit-scrollbar {
    display: none;
  }

  .status-pill {
    padding: 6px 12px 6px 9px;
    gap: 7px 8px;
  }

  .status-pill__title {
    font-size: 0.82rem;
  }

  .status-pill__hint {
    font-size: 0.72rem;
  }

  .tiles__grid,
  .home-quick__grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .home-quick__card {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
  }

  .home-quick__icon {
    font-size: 1.4rem;
    flex-shrink: 0;
  }

  .home-quick__title {
    font-size: 0.92rem;
  }

  .home-quick__sub {
    font-size: 0.78rem;
  }
  .about-values__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline::before {
    left: 22px;
  }

  .timeline__item {
    grid-template-columns: 44px 1fr;
    gap: 12px;
    padding-bottom: 22px;
  }

  .timeline__icon {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .timeline__card {
    padding: 14px;
  }

  .timeline__item:hover .timeline__card {
    transform: none;
  }

  .filter-chips {
    gap: 6px;
  }

  .rings__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ring {
    display: grid;
    grid-template-columns: 80px 1fr;
    align-items: center;
    text-align: left;
    gap: 4px 14px;
    padding: 16px;
  }

  .ring__visual {
    width: 80px;
    margin: 0;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .ring__num {
    font-size: 1.35rem;
  }

  .ring__label {
    margin: 0;
    align-self: start;
  }

  .zigzag__item {
    grid-template-columns: 48px 1fr;
    gap: 14px;
    padding: 18px 0;
  }

  .zigzag__item:hover {
    transform: none;
  }

  .about-cta__box {
    padding: 26px 18px;
  }

  .about-cta__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .about-cta__actions .btn {
    width: 100%;
  }

  .catalog__layout,
  .foot__grid { grid-template-columns: 1fr; }

  .foot__grid > div:first-child,
  .foot__grid > div:nth-child(2) {
    text-align: center;
  }

  .foot__grid > div:nth-child(2) a {
    display: inline-block;
  }

  .product-page__layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-page__gallery {
    position: static;
  }

  .product-page__media {
    border-radius: 16px;
  }

  .product-page__empty {
    min-height: min(72vw, 340px);
  }

  .product-page__price {
    font-size: 1.75rem;
  }

  .product-page__actions {
    flex-direction: column;
    margin: 14px 0 12px;
  }

  .product-page__actions .btn {
    width: 100%;
    flex: none;
  }

  .product-tabs__nav {
    gap: 6px;
  }

  .product-tabs__btn {
    padding: 8px 12px;
    font-size: 0.78rem;
  }

  .foot__links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
  }

  .foot__links a + a::before {
    content: "·";
    margin: 0 10px;
    color: color-mix(in srgb, #fff 42%, transparent);
    font-weight: 700;
    pointer-events: none;
  }

  .cta-band__box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px;
    gap: 20px;
  }

  .cta-band__copy {
    width: 100%;
  }

  .cta-band__copy p {
    max-width: none;
  }

  .cta-band__btn {
    align-self: center;
  }

  .facet { position: static; }
  .request-form__grid { grid-template-columns: 1fr; }

  .page-part-request .request-page {
    padding-bottom: 32px;
  }

  .page-part-request .request-form {
    padding: 20px 16px 22px;
    border-radius: 20px;
  }

  .page-part-request .request-form__submit .btn {
    width: 100%;
    align-self: stretch;
    justify-content: center;
  }

  .page-part-request .field-hint__tip {
    left: 0;
    transform: translate(0, 6px);
  }

  .page-part-request .field-hint:hover .field-hint__tip,
  .page-part-request .field-hint:focus-within .field-hint__tip {
    transform: translate(0, 0);
  }

  .page-part-request .field-hint__tip::after {
    left: 18px;
    transform: rotate(45deg);
  }

  .app-modal {
    align-items: flex-end;
    padding: 0;
  }

  .app-modal__dialog {
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 22px 22px 0 0;
    padding: 24px 20px calc(20px + env(safe-area-inset-bottom, 0px));
    animation: app-modal-in-mobile 0.35s ease;
  }

  .app-modal__action {
    max-width: none;
  }

  @keyframes app-modal-in-mobile {
    from {
      opacity: 0;
      transform: translateY(100%);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

@media (min-width: 961px) {
  .brand__sub {
    display: none;
  }

  .home-banners {
    padding: 16px 0 24px;
  }

  .home-banners__stage {
    border-radius: 24px;
  }

  .masthead__desktop .contact-compact__hours {
    font-size: 0.78rem;
  }

  .masthead__desktop .contact-compact__phone-line {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 14px;
  }

  .masthead__desktop .contact-compact__phone {
    font-size: 1.05rem;
    white-space: nowrap;
  }

  .masthead__desktop .contact-compact__addr-text {
    font-size: 0.8rem;
    color: var(--muted);
  }

  .masthead__desktop .contact-compact__lbl {
    margin-right: 2px;
  }

  .masthead__desktop .contact-compact__maps {
    display: none;
  }
}

@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-checkout {
    position: static;
  }

  .plist__link {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .plist__thumb {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 640px) {
  .product-list {
    gap: 8px;
  }

  .plist__row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 8px 10px 8px 8px;
    border-radius: 14px;
  }

  .plist__link {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 2px 8px;
    align-items: start;
  }

  .plist__thumb {
    grid-row: 1 / 3;
    align-self: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .plist__placeholder {
    font-size: 0.95rem;
  }

  .plist__info {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
  }

  .plist__name {
    margin: 0 0 2px;
    font-size: 0.84rem;
    line-height: 1.22;
    -webkit-line-clamp: 2;
  }

  .plist__meta {
    gap: 4px 6px;
  }

  .plist__codes {
    gap: 6px;
  }

  .plist__sku,
  .plist__brand {
    font-size: 0.7rem;
  }

  .plist__brand {
    max-width: 6.5rem;
  }

  .plist__stock {
    font-size: 0.6rem;
    padding: 2px 6px;
  }

  .plist__price-col {
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: center;
    text-align: right;
    padding: 0;
  }

  .plist__price {
    font-size: 0.92rem;
  }

  .plist__price--order {
    font-size: 0.78rem;
  }

  .plist__cart-btn {
    width: auto;
    padding: 7px 11px;
    font-size: 0.72rem;
    line-height: 1.2;
    border-radius: 999px;
    align-self: center;
    white-space: nowrap;
  }

  .cart-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cart-item__price {
    text-align: left;
    padding-top: 2px;
  }
}

.cart-qty.is-busy,
.cart-item__remove-form.is-busy {
  opacity: 0.55;
  pointer-events: none;
}
