:root {
  --brand: #0066cc;
  --brand-dark: #004c99;
  --brand-light: #e8f2fc;
  --gray-50: #f0f4f8;
  --gray-100: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow: 0 4px 20px rgba(0, 76, 153, 0.08);
  --header-height: 3.75rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}

body.site-body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  padding-bottom: env(safe-area-inset-bottom, 0);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--gray-900);
  -webkit-font-smoothing: antialiased;
  background: var(--gray-50);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 102, 204, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(0, 76, 153, 0.06), transparent);
  background-attachment: fixed;
  line-height: 1.5;
}

body.menu-open { overflow: hidden; }

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

/* Тёмные шапки: inherit тянет color: gray-900 с body — ссылки чернеют */
.site-header a:hover,
.mobile-nav a:hover {
  text-decoration: none;
}

.site-header .logo:hover {
  color: #fff;
}

.site-header .logo:hover .logo-accent {
  color: #bfdbfe;
}

.site-header .nav-link:hover,
.site-header .nav-phone:hover,
.site-header .btn-glass:hover,
.site-header .header-call-btn:hover {
  color: #fff;
}

.mobile-nav-link:hover,
.mobile-nav-call:hover,
.mobile-nav-admin:hover {
  color: #fff;
}

.hero a.glass-card:hover { color: #fff; text-decoration: none; }
.site-footer .footer-links a:hover { color: #fff; text-decoration: underline; }

.content-link {
  color: var(--brand);
  font-weight: 500;
  text-decoration: none;
}
.content-link:hover { text-decoration: underline; }

.muted a.content-link,
.empty-state a.content-link,
.map-note a {
  color: var(--brand);
  font-weight: 500;
  text-decoration: none;
}
.muted a.content-link:hover,
.empty-state a.content-link:hover,
.map-note a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

main {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

.site-header,
.site-footer {
  width: 100%;
  max-width: 100%;
}

.container { max-width: 72rem; margin: 0 auto; padding: 0 1rem; width: 100%; }
.narrow { max-width: 40rem; }
.muted { color: var(--gray-500); }
.text-center { text-align: center; }
.error { color: #dc2626; }
.notice { color: #059669; background: #ecfdf5; padding: 0.75rem 1rem; border-radius: var(--radius); }

.safe-top { padding-top: env(safe-area-inset-top, 0); }
.safe-bottom { padding-bottom: env(safe-area-inset-bottom, 0); }
.touch-target { min-height: 44px; min-width: 44px; }

[id] { scroll-margin-top: calc(4.5rem + env(safe-area-inset-top, 0)); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 76, 153, 0.9);
  backdrop-filter: blur(12px);
  transition: background 0.3s, box-shadow 0.3s;
}

.site-header.is-scrolled {
  background: rgba(0, 76, 153, 0.98);
  box-shadow: 0 10px 30px rgba(0, 76, 153, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--header-height);
}

.logo {
  flex-shrink: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
}

.logo:hover {
  color: #fff;
  text-decoration: none;
}

.logo-accent {
  color: #93c5fd;
}

.site-footer .logo-accent {
  color: #bfdbfe;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
}

.nav-link {
  position: relative;
  padding: 0.5rem 0.75rem;
  color: #bfdbfe;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover { color: #fff; text-decoration: none; }

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #93c5fd, #ffffff);
  border-radius: 1px;
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
  width: 60%;
  left: 20%;
}

.nav-phone {
  padding: 0 0.5rem;
  font-weight: 500;
  color: #bfdbfe;
  text-decoration: none;
}

.nav-phone:hover { color: #fff; text-decoration: none; }

.btn-glass {
  margin-left: 0.25rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff !important;
  text-decoration: none;
}

.header-mobile-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.header-call-btn:hover {
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.4);
}

.header-menu-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
}

.menu-bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  border-radius: 1px;
  background: #fff;
  transition: transform 0.3s, opacity 0.3s;
}

.header-menu-btn.is-open .menu-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.header-menu-btn.is-open .menu-bar:nth-child(2) { opacity: 0; }
.header-menu-btn.is-open .menu-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.5);
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  display: none;
  flex-direction: column;
  width: min(100%, 320px);
  max-width: 100%;
  height: 100%;
  height: 100dvh;
  background: var(--brand-dark);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.25);
  transform: none;
}

.mobile-nav.is-open {
  display: flex;
}

@media (min-width: 768px) {
  .mobile-nav,
  .mobile-overlay {
    display: none !important;
  }
}

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-title { font-weight: 700; color: #fff; }

.mobile-nav-close {
  border: none;
  background: transparent;
  color: #bfdbfe;
  font-size: 1.25rem;
  cursor: pointer;
}

.mobile-nav-links {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
  padding: 1rem;
}

.mobile-nav-link {
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
}

.mobile-nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
}

.mobile-nav-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #0066cc, #004c99);
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.mobile-nav-admin {
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  color: #bfdbfe;
  font-size: 0.875rem;
  text-align: center;
  text-decoration: none;
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .header-mobile-actions { display: none; }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 0 4rem;
  color: #fff;
}

.hero-gradient {
  background: linear-gradient(135deg, #003d7a 0%, #004c99 25%, #0066cc 55%, #0080ff 100%);
  background-size: 200% 200%;
  animation: gradient-shift 12s ease infinite;
}

.hero-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black, transparent);
  pointer-events: none;
}

.hero-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.06) 50%, transparent 60%);
  background-size: 200% 100%;
  animation: shine 8s ease-in-out infinite;
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.4;
  animation: float 10s ease-in-out infinite;
  pointer-events: none;
}

.hero-blob-1 { width: 360px; height: 360px; background: #60a5fa; top: -100px; right: -80px; }
.hero-blob-2 { width: 280px; height: 280px; background: #93c5fd; bottom: -60px; left: 5%; animation-delay: -4s; }
.hero-blob-3 { width: 200px; height: 200px; background: #fff; top: 35%; right: 20%; opacity: 0.12; animation-delay: -6s; }

.hero-inner { position: relative; z-index: 1; min-width: 0; }

.hero-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.hero-main { min-width: 0; }

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-contact-card { width: 100%; }

@media (max-width: 899px) {
  .hero-layout {
    display: contents;
  }

  .hero-inner {
    display: grid;
    grid-template-areas:
      "copy"
      "search"
      "contacts";
    gap: 1.25rem;
  }

  .hero-main { grid-area: copy; }
  .hero-search-wrap { grid-area: search; margin-top: 0; max-width: none; }
  .hero-aside { grid-area: contacts; }
}

@media (min-width: 900px) {
  .hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    gap: 2.5rem;
    align-items: center;
  }

  .hero-aside {
    gap: 1rem;
    padding-top: 0.5rem;
  }
}

.hero-copy { max-width: 48rem; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.875rem;
  font-weight: 500;
  color: #bfdbfe;
  backdrop-filter: blur(4px);
}

.hero-badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}

.hero h1 {
  margin: 1.25rem 0 0;
  font-size: clamp(1.875rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
}

.hero-subtitle {
  display: block;
  margin-top: 0.75rem;
  font-size: clamp(1.125rem, 2.5vw, 1.875rem);
  font-weight: 600;
  color: #bfdbfe;
}

.gradient-text-light {
  background: linear-gradient(135deg, #ffffff 0%, #bfdbfe 50%, #93c5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  max-width: 36rem;
  margin-top: 1rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.6;
  color: rgba(191, 219, 254, 0.9);
}

.hero-tip {
  max-width: 36rem;
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.875rem;
  color: #eff6ff;
}

.hero-tip strong { color: #fff; }

.hero-search-wrap {
  position: relative;
  z-index: 5;
  max-width: 42rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .hero-search-wrap {
    max-width: 56rem;
  }
}

.search-form-hero .search-form-main {
  flex-wrap: wrap;
  align-items: center;
}

.search-form-hero input[type="search"] {
  flex: 1 1 12rem;
  min-width: 0;
}

.search-form-hero .btn-hero {
  flex: 0 0 auto;
  min-height: 48px;
  transition: background 0.2s, transform 0.15s;
}

.search-form-hero .btn-hero:hover {
  background: #eff6ff;
}

.search-form-hero .btn-hero:active {
  transform: scale(0.98);
}

@media (max-width: 639px) {
  .search-form-hero .search-form-main {
    flex-direction: column;
    align-items: stretch;
  }

  .search-form-hero input[type="search"] {
    flex: 0 0 auto;
    width: 100%;
    height: 3rem;
    min-height: 3rem;
    max-height: 3rem;
  }

  .search-form-hero .btn-hero {
    flex: 0 0 auto;
    width: 100%;
  }

  .search-form-hero .search-filters {
    width: 100%;
  }
}
.hero .glass-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  color: #fff;
  text-decoration: none;
}

.glass-card-hover { transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease; }
.glass-card-hover:hover {
  transform: translateY(-3px) scale(1.02);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: #fff;
}

.icon-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.3s;
}

.icon-ring-svg {
  width: 1.25rem;
  height: 1.25rem;
}

.glass-card-hover:hover .icon-ring { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.15); }

.glass-card-label { display: block; font-size: 0.75rem; color: #bfdbfe; }
.glass-card > span:last-child { min-width: 0; }
.glass-card-value { font-weight: 600; overflow-wrap: anywhere; }

.search-form {
  width: 100%;
}

.search-form-hint {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
}

.search-form-hero .search-form-hint {
  color: rgba(255, 255, 255, 0.88);
}

.search-form-error-page {
  margin: -0.5rem 0 1.25rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.875rem;
}

.search-form-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.search-form input[type="search"],
.search-form input[type="text"] {
  flex: 1 1 12rem;
  min-width: 0;
  box-sizing: border-box;
  height: 3rem;
  min-height: 3rem;
  max-height: 3rem;
  padding: 0 1rem;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  line-height: 1.25;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  -webkit-appearance: none;
  appearance: none;
}

.search-form .btn-primary,
.search-form .btn-hero {
  flex: 0 0 auto;
  min-height: 48px;
}

.search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 0 1 auto;
}

.search-filter {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 6.75rem;
  flex: 0 1 auto;
}

.search-filter-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.search-filter select {
  min-height: 48px;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--gray-100);
  background: #fff;
  font-size: 0.9375rem;
  color: var(--gray-900);
}

@media (min-width: 640px) {
  .hero { padding: 4rem 0 5rem; }
}

@media (max-width: 639px) {
  .search-form-main {
    flex-direction: column;
    align-items: stretch;
  }

  .search-form input[type="search"],
  .search-form input[type="text"] {
    flex: 0 0 auto;
    width: 100%;
    height: 3rem;
    min-height: 3rem;
    max-height: 3rem;
  }

  .search-form .btn-primary,
  .search-form .btn-hero {
    flex: 0 0 auto;
    width: 100%;
  }

  .search-filters {
    width: 100%;
  }

  .search-filter {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 0;
  }

  .search-filter select {
    height: 2.75rem;
    min-height: 2.75rem;
  }
}

.search-form-hero .search-filter-label {
  color: #bfdbfe;
}

.search-form-hero .search-filter select {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.search-form-hero input {
  background: rgba(255, 255, 255, 0.95);
  color: var(--gray-900);
}

.search-form:not(.search-form-hero) input {
  border: 1px solid var(--gray-100);
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1.25rem;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
}

.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover,
a.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
}
.btn-secondary { background: #fff; color: var(--brand-dark); border: 1px solid var(--gray-100); }
.btn-hero {
  min-height: 48px;
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 600;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}
.btn-white { background: #fff; color: var(--brand-dark); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15); }
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}
.btn-outline-white:hover { background: rgba(255, 255, 255, 0.1); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.875rem; min-height: 36px; }

/* Sections */
.section { padding: 3rem 0; }
.section-alt { background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(4px); }

.section-head { margin-bottom: 2rem; }

.section-head-search {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.section-head-search .section-title::after {
  left: 0;
  transform: none;
}

.search-query-label {
  margin: 0;
  color: var(--gray-600);
  font-size: 1rem;
  text-align: right;
}

.search-query-filters {
  white-space: nowrap;
}

.section-title {
  position: relative;
  display: inline-block;
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--brand-dark);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #0066cc, #0080ff);
  border-radius: 2px;
}

.section-lead {
  max-width: 36rem;
  margin: 1.25rem auto 0;
  color: var(--gray-600);
  font-size: 1rem;
}

.search-results { scroll-margin-top: 5rem; padding-top: 2rem; padding-bottom: 3rem; }

@media (max-width: 640px) {
  .search-query-label {
    width: 100%;
    text-align: left;
  }

  .search-query-filters {
    white-space: normal;
  }
}

.search-results .search-form {
  max-width: none;
  margin: 1rem 0 1.5rem;
}

.search-count { margin-bottom: 0.5rem; }

/* Promo strip */
.promo-strip {
  position: relative;
  padding: 2rem 0 2.5rem;
  background: #fff;
  border-top: 1px solid rgba(0, 102, 204, 0.1);
  border-bottom: 1px solid rgba(0, 102, 204, 0.1);
}

.section-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image: radial-gradient(circle, rgba(0, 102, 204, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
}

.promo-grid {
  position: relative;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.promo-card {
  padding: 1.25rem;
  border-radius: 1rem;
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border: 1px solid rgba(0, 102, 204, 0.08);
  box-shadow: 0 4px 20px rgba(0, 76, 153, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s;
}

.promo-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 102, 204, 0.25);
  box-shadow: 0 16px 40px rgba(0, 76, 153, 0.12);
}

.promo-card h3 { margin: 0.75rem 0 0; font-size: 1rem; font-weight: 600; color: var(--brand-dark); }
.promo-card p { margin: 0.375rem 0 0; font-size: 0.875rem; line-height: 1.6; color: var(--gray-600); }
.promo-icon { font-size: 1.5rem; }

.icon-glow {
  filter: drop-shadow(0 0 8px rgba(0, 102, 204, 0.2));
  transition: transform 0.3s;
}

.promo-card:hover .icon-glow { transform: scale(1.15); }

/* Stats */
.stats-gradient {
  position: relative;
  overflow: hidden;
  padding: 3rem 0;
  background: linear-gradient(135deg, #004c99 0%, #0066cc 50%, #0077e6 100%);
}

.stats-gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
  position: relative;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.stat-card {
  padding: 1.5rem;
  border-radius: 1rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.3s, background 0.3s;
}

.stat-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
}

.stat-value {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 20px rgba(255, 255, 255, 0.3);
}

.stat-label {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #bfdbfe;
}

/* Tips */
.tips-section { padding: 3rem 0 4rem; }

.tips-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.tip-card {
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(0, 102, 204, 0.15);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tip-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 76, 153, 0.1);
}

.tip-card-inner { display: flex; gap: 1rem; align-items: flex-start; }

.tip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
  background: var(--brand-light);
  font-size: 1.5rem;
}

.tip-card h3 { margin: 0; font-size: 1.125rem; font-weight: 700; color: var(--brand-dark); }
.tip-highlight {
  margin: 0.5rem 0 0;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: #fffbeb;
  border: 1px solid rgba(251, 191, 36, 0.3);
  font-size: 0.875rem;
  font-weight: 600;
  color: #92400e;
}
.tip-text { margin: 0.75rem 0 0; font-size: 0.9375rem; line-height: 1.6; color: var(--gray-600); }
.tip-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}

.tip-link:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

/* Featured / catalog */
.section-catalog { position: relative; padding: 3rem 0 5rem; }

.section-catalog-first {
  padding-top: 2rem;
  padding-bottom: 3.5rem;
  background: #fff;
  border-bottom: 1px solid rgba(0, 102, 204, 0.08);
}

.section-catalog-first::before { display: none; }

.section-catalog-first .featured-grid {
  margin-top: 2rem;
}

.product-page .product-card-full {
  margin-top: 0.5rem;
}

.product-page-cta .cta {
  margin-left: 0;
  margin-right: 0;
}

.section-catalog::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 102, 204, 0.3), transparent);
}

.featured-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  margin-top: 3rem;
}

/* Главная: вкладки «Картриджи» / «Другие товары» */
.catalog-tabs-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  max-width: 52rem;
  margin: 0 auto 2rem;
}

.catalog-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 1rem 1.15rem;
  border-radius: 1rem;
  border: 2px solid rgba(229, 231, 235, 0.95);
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 76, 153, 0.06);
  cursor: pointer;
  text-align: left;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  color: inherit;
  font: inherit;
}

.catalog-tab:hover {
  border-color: rgba(0, 102, 204, 0.35);
}

.catalog-tab.is-active {
  border-color: var(--brand);
  background: linear-gradient(135deg, #eff6ff, #fff);
  box-shadow: 0 8px 24px rgba(0, 76, 153, 0.12);
}

.catalog-tab-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.catalog-tab-sub {
  font-size: 0.85rem;
  color: var(--gray-600);
}

.catalog-tab-panel {
  margin-top: 0;
}

.catalog-tab-panel:not(.is-active) {
  display: none;
}

.catalog-tab-panel.is-active .featured-grid,
.catalog-tab-panel.is-active .extra-sale-grid {
  margin-top: 0;
}

.extra-sale-card .extra-sale-price {
  margin: 0.15rem 0 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.extra-detail-desc {
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray-700);
}

.extra-detail-desc p {
  margin: 0 0 0.75rem;
}

.extra-detail-price {
  font-size: 1.25rem;
  font-weight: 700;
}

.extra-used-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2;
  padding: 0.2rem 0.55rem;
  border-radius: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #ea580c, #c2410c);
  box-shadow: 0 2px 8px rgba(194, 65, 12, 0.35);
  pointer-events: none;
}

.extra-used-badge--detail {
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
}

.extra-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0 0.5rem 0.5rem;
}

.extra-gallery-thumb {
  flex: 0 0 auto;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 0.5rem;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.extra-gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.extra-gallery-thumb:hover,
.extra-gallery-thumb.is-active {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px rgba(0, 76, 153, 0.15);
}

.product-photo-wrap .extra-gallery-thumbs {
  position: relative;
  z-index: 1;
}

@media (max-width: 640px) {
  .catalog-tabs-head {
    grid-template-columns: 1fr;
  }

  .catalog-tab {
    align-items: center;
    text-align: center;
  }
}

.featured-card,
.product-card-hover {
  position: relative;
  overflow: hidden;
  text-decoration: none !important;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.featured-card {
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: 0 4px 16px rgba(0, 76, 153, 0.08);
  color: inherit;
}

.featured-card::before,
.product-card-hover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 65%
  );
  background-size: 200% 100%;
  background-position: -200% center;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.featured-card:hover,
.product-card-hover:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 102, 204, 0.45);
  box-shadow:
    0 20px 40px rgba(0, 76, 153, 0.14),
    0 0 0 1px rgba(0, 102, 204, 0.08);
  text-decoration: none;
  color: inherit;
}

.featured-card:hover::before,
.product-card-hover:hover::before {
  opacity: 1;
  animation: shine 0.85s ease-in-out;
}

.featured-photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: 1rem;
  background: linear-gradient(135deg, var(--brand-light), #fff, #eff6ff);
  overflow: hidden;
}

.featured-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.55), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.featured-card:hover .featured-photo::after {
  opacity: 1;
}

.featured-photo > .product-img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 0.75rem;
  transition: transform 0.5s;
}

.featured-card:hover .featured-photo > .product-img {
  transform: scale(1.1) rotate(1deg);
}

.featured-qty {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(to right, #22c55e, #059669);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.featured-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0.875rem 1rem 1rem;
  background: #fff;
}

.featured-body h3 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--gray-900);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s ease;
}

.featured-card:hover .featured-body h3 {
  color: var(--brand);
}

.featured-body .muted { margin: 0.25rem 0 0; font-size: 0.75rem; }

.featured-more {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand);
  transition: gap 0.2s, opacity 0.2s;
}

.featured-card:hover .featured-more {
  opacity: 1;
}

.featured-card:hover .featured-more span {
  display: inline-block;
  transform: translateX(3px);
  transition: transform 0.2s;
}

.stock-badge-glow {
  animation: pulse-stock 2s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

/* About */
.about-section { background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(4px); padding: 4rem 0; }

.about-glow { position: relative; }

.about-glow::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 1.75rem;
  background: linear-gradient(135deg, rgba(147, 197, 253, 0.5), rgba(0, 102, 204, 0.2), rgba(96, 165, 250, 0.4));
  z-index: -1;
  filter: blur(1px);
}

.about-hero {
  display: grid;
  gap: 2.5rem;
  padding: 2rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand), #3b82f6);
  color: #fff;
  box-shadow: 0 25px 50px rgba(0, 76, 153, 0.2);
}

@media (min-width: 768px) {
  .about-hero { grid-template-columns: 1fr 1fr; align-items: center; padding: 3rem; }
}

.about-title { margin: 0; font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
.about-lead { margin: 1rem 0 0; font-size: 1.125rem; line-height: 1.6; color: #bfdbfe; }
.about-lead strong { color: #fff; }

.about-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: #bfdbfe;
}

.about-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.2);
  color: #86efac;
  font-size: 0.75rem;
}

.about-contacts {
  display: block;
  padding: 1.5rem 1.75rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.about-contacts h3 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.about-contacts-list {
  margin: 0;
}

.about-contacts-list > div {
  margin-bottom: 1.25rem;
}

.about-contacts-list > div:last-child {
  margin-bottom: 0;
}

.about-contacts dt {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #bfdbfe;
}

.about-contacts dd {
  display: block;
  margin: 0;
  line-height: 1.45;
}

.about-contact-link {
  display: inline-block;
  color: #fff !important;
  font-size: 1.375rem;
  font-weight: 700;
  text-decoration: none !important;
  line-height: 1.3;
}

.about-contact-link:hover {
  color: #dbeafe !important;
}

.about-contact-address {
  font-size: 1.0625rem;
  font-weight: 600;
}

.about-address-note {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: #bfdbfe;
  line-height: 1.4;
}

.services-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.service-card {
  padding: 1.5rem;
  border-radius: 1rem;
  background: linear-gradient(to bottom, #fff, #f5f7fa);
  border: 1px solid var(--gray-100);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 76, 153, 0.1);
}

.service-card h3 { margin: 0.75rem 0 0; font-size: 1rem; font-weight: 600; color: var(--brand-dark); }
.service-card p { margin: 0.5rem 0 0; font-size: 0.875rem; line-height: 1.6; color: var(--gray-600); }
.service-icon { font-size: 1.875rem; }

/* Map */
.map-section {
  padding-bottom: 4rem;
  background: linear-gradient(180deg, #fff 0%, var(--brand-light) 55%, #fff 100%);
}

.map-frame {
  position: relative;
  margin-top: 2rem;
  border-radius: 1rem;
  overflow: hidden;
  border: 2px solid rgba(0, 102, 204, 0.22);
  box-shadow:
    0 4px 0 var(--brand-dark),
    0 25px 50px rgba(0, 76, 153, 0.18);
  background: #fff;
}

.map-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 2;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand), #3b82f6);
  pointer-events: none;
}

.map-org-plaque {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
  max-width: min(100% - 2rem, 22rem);
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 102, 204, 0.2);
  box-shadow: 0 8px 24px rgba(0, 76, 153, 0.15);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.map-org-plaque:hover {
  border-color: rgba(0, 102, 204, 0.45);
  box-shadow: 0 12px 28px rgba(0, 76, 153, 0.2);
  transform: translateY(-1px);
  text-decoration: none;
  color: inherit;
}

.map-org-plaque-name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.3;
}

.map-org-plaque-address {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--gray-600);
  line-height: 1.4;
}

.map-org-plaque-link {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand);
}

.map-org-plaque:hover .map-org-plaque-link {
  color: var(--brand-dark);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: min(50vh, 400px);
  border: none;
  filter: saturate(1.05);
}

@media (min-width: 768px) {
  .map-frame iframe { height: 450px; }
}

.map-note {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.5;
}

.map-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
}

.map-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  border-radius: 0.75rem;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.map-action:hover { text-decoration: none; transform: scale(0.98); }
.map-action-primary { background: linear-gradient(to right, var(--brand), var(--brand-dark)); color: #fff; box-shadow: 0 10px 24px rgba(0, 102, 204, 0.2); }
.map-action-secondary { background: #2e4068; color: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
.map-action-secondary:hover { background: #243352; }
.map-action-outline { background: #fff; color: var(--brand); border: 2px solid var(--brand); }
.map-action-outline:hover { background: var(--brand-light); }
.map-action-icon { font-size: 1.5rem; }
.map-action-label { margin-top: 0.5rem; font-size: 0.875rem; font-weight: 600; line-height: 1.3; }
.map-action-sub { margin-top: 0.25rem; font-size: 0.75rem; opacity: 0.8; }
.map-action-outline .map-action-sub { color: rgba(0, 102, 204, 0.7); }

/* CTA */
.cta-section { padding: 0 1rem 3rem; }

.cta {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand), #2563eb);
  color: #fff;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0, 76, 153, 0.25);
}

.cta h2 { margin: 0; font-size: clamp(1.25rem, 3vw, 1.875rem); font-weight: 700; }
.cta p { max-width: 42rem; margin: 1rem auto 0; font-size: 1rem; line-height: 1.6; color: #bfdbfe; }
.cta-actions { display: flex; flex-direction: column; gap: 0.75rem; justify-content: center; margin-top: 2rem; }
@media (min-width: 640px) {
  .cta { padding: 3rem 2rem; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
}

.seo-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.seo-blocks h3 { margin: 0 0 0.5rem; font-size: 1.125rem; color: var(--brand-dark); line-height: 1.35; }
.seo-blocks p { margin: 0; color: var(--gray-600); line-height: 1.65; }
.seo-blocks article {
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid var(--gray-100);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Product cards */
.product-list { display: flex; flex-direction: column; gap: 1rem; }

.product-card {
  display: block;
  background: #fff;
  border-radius: 1rem;
  border: 1px solid var(--gray-100);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  color: inherit;
}

.product-card-compact {
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 1rem;
  min-width: 0;
  max-width: 100%;
}

.product-card-compact .product-card-main {
  display: flex;
  gap: 1rem;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.product-card-compact .product-card-main:hover {
  color: inherit;
  text-decoration: none;
}

.product-card-cart-btn {
  flex: 0 0 auto;
  min-height: 2.5rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
  white-space: nowrap;
}

.cart-control {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}

.cart-control--card {
  flex: 0 0 auto;
}

.cart-control--card .cart-qty-stepper {
  min-height: 2.5rem;
}

.cart-control--card .cart-qty-stepper-btn {
  width: 2.5rem;
  min-height: 2.5rem;
}

.js-add-to-cart[hidden],
.cart-qty-stepper[hidden] {
  display: none !important;
}

.cart-qty-stepper {
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  min-height: 44px;
  border: 1px solid rgba(0, 102, 204, 0.28);
  border-radius: var(--radius);
  background: #fff;
}

.cart-qty-stepper-btn {
  width: 2.75rem;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: none;
  background: var(--brand);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.cart-qty-stepper-btn:hover {
  background: var(--brand-dark);
}

.cart-qty-stepper-value {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  padding: 0 0.45rem;
  background: var(--brand-light);
  font-weight: 700;
  color: var(--brand-dark);
  font-variant-numeric: tabular-nums;
}

.product-detail-actions .cart-control {
  min-height: 44px;
}

.product-detail-actions .cart-qty-stepper {
  min-height: 44px;
}

.product-card-compact.is-in-cart {
  border-color: rgba(0, 102, 204, 0.28);
}

.product-card-cart-btn.is-in-cart,
.btn.js-add-to-cart.is-in-cart {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.product-card-cart-btn.is-in-cart:hover,
.btn.js-add-to-cart.is-in-cart:hover,
a.btn.js-add-to-cart.is-in-cart:hover {
  background: var(--brand-dark);
  color: #fff;
}

@media (max-width: 640px) {
  .product-card-compact {
    flex-wrap: wrap;
  }

  .product-card-compact .product-card-main {
    flex: 1 1 100%;
  }

  .product-card-cart-btn,
  .cart-control--card {
    width: 100%;
  }

  .cart-control--card .js-add-to-cart,
  .cart-control--card .cart-qty-stepper {
    width: 100%;
  }

  .cart-control--card .cart-qty-stepper {
    justify-content: space-between;
  }
}

.product-card-body {
  min-width: 0;
  flex: 1 1 auto;
}

.product-card-compact h3,
.product-card-meta {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.product-card-compact .product-photo-wrap {
  transition: box-shadow 0.35s ease;
}

.product-card-compact .product-img {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card-compact:hover .product-img {
  transform: scale(1.06);
}

.product-card-compact:hover h3 {
  color: var(--brand);
}

.product-card-compact h3 {
  transition: color 0.25s ease;
}

.product-card-compact .product-card-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin-top: 0.35rem;
}

.product-card-compact .product-card-status .product-price-wrap,
.product-card-compact .product-card-status .product-price {
  margin: 0;
}

.product-card-compact:hover {
  transform: translateY(-4px);
}
.product-card-full { padding: 1.5rem; box-shadow: var(--shadow); }

.product-card-grid { display: grid; gap: 2rem; }

@media (min-width: 768px) {
  .product-card-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .product-card-full { padding: 2rem; }
}

.product-detail h1,
.product-detail-title {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--gray-900);
}

.product-detail-body { min-width: 0; }
.product-detail h1 {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--gray-900);
}

.section-name {
  margin: 0.5rem 0 0;
  color: var(--brand);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
}

.product-detail-pricing {
  margin-top: 1rem;
}

.product-detail-status,
.product-detail-stock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
}

.product-detail-pricing .product-price-wrap,
.product-detail-status .product-price-wrap,
.product-detail-stock .product-price-wrap {
  margin: 0;
}

.product-detail-pricing .product-price-note {
  margin: 0.5rem 0 0;
}

.product-price {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--brand-dark);
  white-space: nowrap;
}

.product-price-from {
  font-weight: 600;
  color: var(--gray-500);
}

.product-price-amount {
  display: inline-block;
  min-width: 4.5ch;
}

.product-price-wrap.is-price-refreshing .product-price {
  position: relative;
  overflow: hidden;
  border-radius: 0.35rem;
}

.product-price-wrap.is-price-refreshing .product-price-from,
.product-price-wrap.is-price-refreshing .product-price-amount {
  color: transparent;
}

.product-price-wrap.is-price-refreshing .product-price-amount {
  min-width: 6.5rem;
  min-height: 1.1em;
}

.product-price-wrap.is-price-refreshing .product-price::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0.35rem;
  background: linear-gradient(90deg, #e5e7eb 0%, #f8fafc 45%, #e5e7eb 90%);
  background-size: 200% 100%;
  animation: price-shimmer 1.1s ease-in-out infinite;
}

@keyframes price-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.product-price-note {
  margin: 0.35rem 0 0;
  max-width: 36rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--gray-500);
}

.product-card-compact .product-price {
  font-size: 0.9375rem;
}

.product-card-compact .product-price-from {
  font-size: 0.8125rem;
}

.featured-body .product-price {
  font-size: 1rem;
  margin-top: 0.25rem;
}

/* Главная: каталог «Картриджи на складе» — на телефоне 2 в ряд, не больше 6 карточек.
   Лимит не распространяется на вкладку «Другие товары» (.extra-sale-grid). */
@media (max-width: 767px) {
  .section-catalog-first .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.625rem;
    margin-top: 1.25rem;
  }

  .section-catalog-first .featured-grid:not(.extra-sale-grid) > .featured-card:nth-child(n + 7) {
    display: none;
  }

  .section-catalog-first .featured-card {
    border-radius: 0.75rem;
    box-shadow: 0 2px 10px rgba(0, 76, 153, 0.08);
  }

  .section-catalog-first .featured-photo {
    padding: 0.5rem;
  }

  .section-catalog-first .featured-photo > .product-img {
    padding: 0.35rem;
  }

  .section-catalog-first .featured-qty {
    top: 0.35rem;
    right: 0.35rem;
    padding: 0.125rem 0.4rem;
    font-size: 0.625rem;
  }

  .section-catalog-first .featured-body {
    padding: 0.45rem 0.5rem 0.55rem;
  }

  .section-catalog-first .featured-body h3 {
    font-size: 0.6875rem;
    line-height: 1.35;
  }

  .section-catalog-first .featured-body .muted {
    margin-top: 0.125rem;
    font-size: 0.625rem;
  }

  .section-catalog-first .featured-body .product-price {
    font-size: 0.75rem;
    margin-top: 0.125rem;
  }

  .section-catalog-first .featured-body .product-price-from {
    font-size: 0.625rem;
  }

  .section-catalog-first .featured-more {
    padding-top: 0.35rem;
    font-size: 0.625rem;
  }

  .section-catalog-first .featured-card:hover {
    transform: translateY(-4px);
  }
}

.product-card-meta { margin: 0.25rem 0 0.5rem; font-size: 0.875rem; color: var(--gray-500); }

.product-meta,
.product-props {
  font-size: 0.9375rem;
  margin: 1.25rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gray-100);
}

.product-meta div,
.product-props div {
  display: grid;
  grid-template-columns: minmax(6.5rem, 8rem) 1fr;
  gap: 0.75rem 1rem;
  align-items: baseline;
  margin-bottom: 0.65rem;
}

.product-meta dt,
.product-props dt {
  color: var(--gray-500);
  font-weight: 400;
}

.product-meta dd,
.product-props dd {
  margin: 0;
  font-weight: 500;
  color: var(--gray-900);
  word-break: break-word;
}

.product-detail-actions { margin-top: 1.5rem; }

.product-compatible {
  margin: 1.25rem 0 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  background: var(--gray-50);
}

.product-compatible summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--brand-dark);
  list-style: none;
}

.product-compatible summary::-webkit-details-marker { display: none; }

.product-compatible-list {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  max-height: 14rem;
  overflow-y: auto;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--gray-800);
}

.product-compatible-list li { margin-bottom: 0.35rem; }

.product-page-cta { margin-top: 2rem; padding: 0; }

/* Product modal (search results) */
button.product-card-modal-trigger {
  width: 100%;
  margin: 0;
  border: none;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.product-card-compact > .product-card-main.product-card-modal-trigger {
  width: auto;
}

button.featured-card.product-card-modal-trigger,
button.featured-card.extra-sale-modal-trigger,
a.featured-card.product-card-modal-trigger,
a.featured-card.extra-sale-modal-trigger {
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  color: inherit;
}

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

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.product-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.product-modal[hidden] {
  display: none;
}

.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.product-modal-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 60rem);
  max-height: min(90vh, 880px);
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid rgba(0, 102, 204, 0.12);
  box-shadow:
    0 4px 6px rgba(0, 76, 153, 0.06),
    0 24px 48px rgba(0, 76, 153, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  overflow: hidden;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: default;
}

.product-modal.is-open .product-modal-dialog {
  transform: translateY(0) scale(1);
}

.product-modal-top {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1rem 0.875rem 1.25rem;
  background: linear-gradient(135deg, var(--brand-light), #f8fbff 55%, #fff);
  border-bottom: 1px solid rgba(0, 102, 204, 0.1);
}

.product-modal-eyebrow {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-dark);
}

.product-modal-close {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(0, 102, 204, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--gray-700);
  font-size: 1.375rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.product-modal-close:hover {
  background: #fff;
  color: var(--brand-dark);
  border-color: rgba(0, 102, 204, 0.35);
  transform: scale(1.05);
}

.product-modal-body {
  overflow-y: auto;
  padding: 1.25rem 1.25rem 0.75rem;
  background: linear-gradient(180deg, #fff 0%, #fafcff 100%);
}

.product-modal-body .product-detail-inner {
  padding-top: 0.25rem;
}

.product-modal-body .product-card-grid {
  gap: 1.5rem;
}

.product-modal-body .product-photo-wrap {
  border-radius: 1rem;
  border: 1px solid var(--gray-100);
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 76, 153, 0.08);
  overflow: hidden;
}

.product-modal-body .product-detail-title {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
}

.product-modal-body .product-detail-pricing {
  margin-top: 0.75rem;
}

.product-modal-body .product-meta,
.product-modal-body .product-props {
  margin-top: 1rem;
}

.product-modal-body .product-compatible {
  margin-top: 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--gray-100);
  background: #fff;
  padding: 0.75rem 1rem;
}

.product-modal-body .product-detail-actions {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
}

@media (min-width: 768px) {
  .product-modal {
    padding: 1.5rem;
  }

  .product-modal-body {
    padding: 1.5rem 1.75rem 1rem;
  }

  .product-modal-body .product-card-grid {
    grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
    align-items: start;
  }
}

.product-modal-foot {
  flex-shrink: 0;
  padding: 0.875rem 1.25rem 1rem;
  border-top: 1px solid var(--gray-100);
  background: #fff;
  text-align: center;
}

.product-modal-full-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}

.product-modal-full-link:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

.product-modal-extra-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}

.product-modal-extra-cta:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

.product-modal-extra-cta[hidden],
.product-modal-full-link[hidden] {
  display: none !important;
}

.product-modal-full-link-icon {
  font-size: 0.9375rem;
  line-height: 1;
}

.product-modal-loading,
.product-modal-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 12rem;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--gray-600);
}

.product-modal-spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid var(--brand-light);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: product-modal-spin 0.75s linear infinite;
}

@keyframes product-modal-spin {
  to { transform: rotate(360deg); }
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  color: var(--gray-500);
}

.breadcrumb a {
  color: var(--gray-500);
  font-weight: 500;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--brand);
  text-decoration: none;
}

.breadcrumb-sep { color: #9ca3af; user-select: none; }
.breadcrumb-current { color: var(--gray-800); font-weight: 500; }

.product-photo-wrap {
  background: linear-gradient(135deg, var(--brand-light), #fff);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-photo-wrap > .product-img {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  padding: 0.5rem;
}

/* Заглушка рядом с фото: скрыта, пока картинка загрузилась */
.product-photo-wrap > .photo-fallback,
.featured-photo > .photo-fallback {
  display: none !important;
}

.product-photo-wrap.photo-failed > .product-img,
.featured-photo.photo-failed > .product-img {
  display: none !important;
}

.product-photo-wrap.photo-failed > .photo-fallback,
.featured-photo.photo-failed > .photo-fallback {
  display: flex !important;
  position: absolute;
  inset: 0;
}

.product-photo-sm { width: 5rem; height: 5rem; flex-shrink: 0; border-radius: 0.75rem; border: 1px solid var(--gray-100); }
.product-photo-lg { aspect-ratio: 1; border: 1px solid rgba(0, 102, 204, 0.1); }

.product-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(0, 76, 153, 0.28);
  min-height: 80px;
  text-align: center;
}

.product-photo-placeholder svg { width: 55%; max-width: 4rem; }
.product-photo-placeholder span {
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin-top: 0.35rem;
  color: var(--brand-dark);
  opacity: 0.72;
}

.product-photo-sm .product-photo-placeholder svg { display: none; }
.product-photo-sm .product-photo-placeholder span {
  font-size: 0.5625rem;
  margin-top: 0;
  padding: 0 0.2rem;
}

.product-card h3 { margin: 0 0 0.25rem; font-size: 1rem; font-weight: 600; }

.stock-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.stock-badge.in-stock { background: #dcfce7; color: #166534; border: 1px solid rgba(34, 197, 94, 0.2); }
.stock-badge.out-stock { background: #fef2f2; color: #b91c1c; border: 1px solid rgba(239, 68, 68, 0.2); }

.stock-badge-wrap {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}

.stock-badge-wrap .featured-qty {
  position: relative;
  z-index: 1;
  cursor: help;
}

.stock-badge.in-stock {
  cursor: help;
}

.stock-badge-tooltip {
  position: absolute;
  z-index: 30;
  bottom: calc(100% + 0.4rem);
  left: 50%;
  min-width: 10.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: var(--gray-900);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.stock-badge-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: var(--gray-900);
}

.stock-badge-tooltip-line {
  display: block;
}

.stock-badge-tooltip-line + .stock-badge-tooltip-line {
  margin-top: 0.2rem;
}

.stock-badge-wrap:hover .stock-badge-tooltip,
.stock-badge-wrap:focus-within .stock-badge-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.featured-photo > .stock-badge-wrap,
.featured-photo > .featured-qty.stock-badge-glow {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
}

.stock-badge-wrap--plain .featured-qty,
.stock-badge-wrap--plain .stock-badge.in-stock {
  cursor: default;
}

.featured-card:hover,
.product-card-hover:hover {
  z-index: 4;
}

.featured-card:hover .featured-photo,
.product-card-hover:hover .product-card-status {
  overflow: visible;
  z-index: 2;
}

.product-modal-body .stock-badge-tooltip {
  z-index: 40;
}

@keyframes search-hit-sun {
  0%, 100% {
    text-shadow:
      0 0 6px rgba(253, 224, 71, 0.55),
      0 0 14px rgba(251, 191, 36, 0.35),
      0 0 22px rgba(250, 204, 21, 0.2);
  }
  50% {
    text-shadow:
      0 0 8px rgba(254, 240, 138, 0.95),
      0 0 18px rgba(251, 191, 36, 0.7),
      0 0 30px rgba(250, 204, 21, 0.45),
      0 0 42px rgba(253, 186, 46, 0.25);
  }
}

.product-modal-body mark.search-hit {
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  box-shadow: none;
  animation: search-hit-sun 2.8s ease-in-out infinite;
}

.empty-state {
  text-align: center;
  padding: 3rem;
  border: 2px dashed rgba(0, 102, 204, 0.25);
  border-radius: 1rem;
  background: #fff;
}

.featured-empty {
  margin-top: 3rem;
  background: linear-gradient(135deg, rgba(232, 242, 252, 0.8), #fff);
}

.empty-icon { font-size: 2.5rem; }

.page-404 {
  max-width: 32rem;
  margin: 2rem auto;
}

.page-404 h1 {
  margin: 0.75rem 0 0;
  font-size: 1.5rem;
  color: var(--brand-dark);
}

.page-404-search {
  max-width: 28rem;
  margin: 1.5rem auto 0;
  justify-content: center;
}

.page-404-actions {
  margin: 1.25rem 0 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.search-form-hero input:focus-visible {
  outline-color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35);
}

/* Footer */
.site-footer {
  position: relative;
  margin-top: 0;
  background: var(--brand-dark);
  color: #fff;
}

.footer-wave svg { display: block; width: 100%; height: 48px; }

.footer-grid {
  display: grid;
  gap: 2rem;
  padding: 1rem 1rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer-brand { margin: 0; font-size: 1.25rem; font-weight: 700; }
.footer-desc { margin: 0.75rem 0 0; font-size: 0.875rem; line-height: 1.6; color: #bfdbfe; }
.footer-heading { margin: 0; font-weight: 600; }
.footer-links { margin: 0.75rem 0 0; padding: 0; list-style: none; }
.footer-links li { margin-bottom: 0.5rem; font-size: 0.875rem; color: #bfdbfe; }
.footer-links a { color: #bfdbfe; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-muted { color: #93c5fd; }

.footer-copy {
  margin: 0;
  padding: 1.5rem 1rem 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.75rem;
  color: #93c5fd;
}

.footer-seo-link {
  color: #93c5fd;
  text-decoration: none;
}

.footer-seo-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* Floating actions */
.floating-actions {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  font-size: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fab:hover { transform: scale(1.1); text-decoration: none; }
.fab-call,
.fab-map {
  background: linear-gradient(135deg, #0066cc, #004c99);
  color: #fff;
}

.fab-call { animation: fab-pulse 3s ease-in-out infinite; }

.fab-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.site-icon {
  display: block;
  flex-shrink: 0;
}

.header-call-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.mobile-nav-call-icon {
  width: 1.125rem;
  height: 1.125rem;
}

.btn-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon {
  width: 1.125rem;
  height: 1.125rem;
}

@media (min-width: 640px) {
  .fab { width: 4rem; height: 4rem; font-size: 1.5rem; }
  .fab-map-mobile { display: none; }
}

/* Animations */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -24px) scale(1.06); }
}

@keyframes shine {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.1); }
  50% { box-shadow: 0 0 20px 2px rgba(255, 255, 255, 0.15); }
}

@keyframes pulse-stock {
  0%, 100% { box-shadow: 0 0 8px rgba(34, 197, 94, 0.35); }
  50% { box-shadow: 0 0 16px rgba(34, 197, 94, 0.55); }
}

@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(0, 102, 204, 0.35); }
  50% { box-shadow: 0 4px 28px rgba(0, 102, 204, 0.55); }
}

.animate-fade-up { animation: fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) both; }
.animation-delay-200 { animation-delay: 0.2s; }
.animation-delay-400 { animation-delay: 0.4s; }
.badge-pulse { animation: badge-glow 3s ease-in-out infinite; }

@media (max-width: 640px) {
  body.site-body {
    background-attachment: scroll;
  }

  .hero-blob-1 { width: 220px; height: 220px; right: -40px; }
  .hero-blob-2 { width: 160px; height: 160px; }
  .stat-value { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .animate-fade-up, .hero-blob, .hero-shine, .hero-gradient, .badge-pulse, .stock-badge-glow, .fab-call,
  .contacts-snowflake, .contacts-hero-badge-dot, .contacts-status-dot,
  .contacts-notice-card::before,
  .product-modal-body mark.search-hit {
    animation: none;
    text-shadow:
      0 0 8px rgba(254, 240, 138, 0.85),
      0 0 16px rgba(251, 191, 36, 0.5);
  }
  .promo-card:hover, .service-card:hover, .glass-card-hover:hover, .stat-card:hover, .fab:hover, .tip-card:hover, .featured-card:hover, .product-card-hover:hover,
  .contacts-card:hover, .contacts-map-wrap .map-frame:hover, .contacts-hero-cta:hover {
    transform: none;
  }
  .featured-card:hover::before,
  .product-card-hover:hover::before {
    animation: none;
    opacity: 0;
  }
  .featured-card:hover .featured-photo > .product-img,
  .product-card-compact:hover .product-img {
    transform: none;
  }
}

/* Admin */
.admin-body {
  margin: 0;
  min-height: 100vh;
  background: #f5f7fa;
  color: var(--gray-900);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.admin-top-header {
  background: var(--admin-header-bg, var(--brand-dark));
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 76, 153, 0.25);
}

.admin-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
}

.admin-top-logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.admin-top-logo:hover {
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
}
.admin-top-user { font-size: 0.875rem; color: #bfdbfe; }

.admin-main {
  max-width: 56rem;
  padding: 1.5rem 1rem 3rem;
}

.admin-page { display: flex; flex-direction: column; gap: 1.25rem; }

.admin-page > h1 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.admin-lead {
  margin: 0.5rem 0 0;
  color: var(--gray-600);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.admin-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--gray-100);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.admin-card-narrow { max-width: 24rem; margin: 2rem auto; }
.admin-welcome h1 { margin: 0; font-size: 1.25rem; }

.admin-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
}

.admin-stat {
  flex: 1;
  min-width: 140px;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.admin-stat span {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.2;
}

.admin-tiles {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.admin-tile {
  display: block;
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--gray-100);
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.admin-tile:hover {
  border-color: rgba(0, 102, 204, 0.35);
  box-shadow: 0 8px 24px rgba(0, 76, 153, 0.1);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--gray-900);
}

.admin-tile h2 { margin: 0; font-size: 1.125rem; font-weight: 600; }
.admin-tile p { margin: 0.5rem 0 0; font-size: 0.875rem; line-height: 1.5; color: var(--gray-500); }

.admin-tile-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-color: transparent;
  color: #fff;
}

.admin-tile-primary p { color: rgba(191, 219, 254, 0.95); }
.admin-tile-primary:hover { border-color: transparent; color: #fff; }

.admin-tile-wide { grid-column: 1 / -1; }

.admin-sync-card h2 { margin: 0; font-size: 1.125rem; font-weight: 600; }

.admin-alert {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  word-break: break-word;
}

.admin-alert-ok {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.admin-alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.admin-hint {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.admin-footer-link { margin: 0; font-size: 0.875rem; }
.admin-footer-link a { font-weight: 500; }

.admin-form label { display: block; margin-bottom: 1rem; font-weight: 500; font-size: 0.9rem; }
.admin-form input,
.admin-form select {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  background: #fff;
}

.admin-form input:focus,
.admin-form select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.inline-form { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; }
.inline-form label { flex: 1; min-width: 180px; margin-bottom: 0; }

.admin-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1rem 0; }

.table-wrap {
  overflow-x: auto;
  background: #fff;
  border-radius: 0.75rem;
  border: 1px solid var(--gray-100);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
}
.data-table th { background: var(--gray-50); font-weight: 600; color: var(--gray-800); }
.data-table tbody tr:hover { background: #fafbfc; }
.data-table .col-actions { width: 1%; white-space: nowrap; }
.data-table .col-qty { width: 5rem; text-align: center; }
.data-table .col-code { width: 8rem; font-variant-numeric: tabular-nums; color: var(--gray-600); }

.admin-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.admin-page-head h1 { margin: 0; }

.admin-search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.admin-search-bar input[type="search"] {
  flex: 1;
  min-width: 12rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  background: #fff;
}

.admin-search-bar input[type="search"]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.admin-form-grid {
  display: grid;
  gap: 0 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
}

.admin-form-grid label { margin-bottom: 0; }
.admin-form-actions { display: flex; align-items: flex-end; padding-bottom: 0.15rem; }

.admin-field-inline {
  width: 100%;
  min-width: 0;
  padding: 0.5rem 0.625rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  background: #fff;
  font-family: inherit;
}

.admin-field-inline:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.admin-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
}

.admin-check input {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  accent-color: var(--brand);
}

.admin-row-form { margin: 0; }

.data-table-users .col-login {
  font-weight: 600;
  white-space: nowrap;
}

.col-product { min-width: 12rem; }

.stock-product-name {
  display: block;
  font-weight: 500;
  line-height: 1.35;
}

.stock-product-meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--gray-500);
}

.stock-qty-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stock-controls {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
}

.data-table-stock .col-qty-edit {
  min-width: 7.5rem;
  vertical-align: middle;
}

.data-table-stock .col-qty {
  vertical-align: middle;
}

.stock-controls .btn-qty,
.stock-controls .stock-qty-input,
.stock-controls .stock-ok-btn {
  flex-shrink: 0;
}

.stock-delta-form,
.stock-set-form {
  display: contents;
}

.stock-ok-btn {
  min-width: 2.75rem;
  padding-left: 0.65rem;
  padding-right: 0.65rem;
}

.btn-qty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--gray-100);
  border-radius: 0.5rem;
  background: #fff;
  color: var(--brand-dark);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

.btn-qty:hover {
  border-color: rgba(0, 102, 204, 0.35);
  background: var(--brand-light);
}

.btn-qty-plus {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn-qty-plus:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.stock-qty-input {
  width: 4rem;
  padding: 0.45rem 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-family: inherit;
}

.stock-qty-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

@media (max-width: 640px) {
  .data-table-users thead { display: none; }

  .data-table-users tbody tr {
    display: grid;
    gap: 0.5rem;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-100);
  }

  .data-table-users tbody td {
    display: block;
    padding: 0;
    border: none;
  }

  .data-table-users tbody td::before {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .data-table-users tbody td:nth-child(1)::before { content: "Логин"; }
  .data-table-users tbody td:nth-child(2)::before { content: "Роль"; }
  .data-table-users tbody td:nth-child(3)::before { content: "Активен"; }
  .data-table-users tbody td:nth-child(4)::before { content: "Новый пароль"; }
  .data-table-users tbody td:nth-child(5)::before { content: ""; }
}

.admin-sync-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 0.5rem;
}

.admin-check-inline {
  font-size: 0.8125rem;
  color: var(--gray-600);
}

.admin-sync-form .btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Scanner */
.scanner-root { max-width: none; }
.qr-reader { max-width: 100%; margin: 1rem 0; min-height: 200px; }
.scanner-controls { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.search-result-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  cursor: pointer;
}
.search-result-item:hover { border-color: var(--brand); }

.search-form-main {
  position: relative;
  z-index: 1;
}

.search-load-more-wrap {
  margin-top: 1.25rem;
  text-align: center;
}

/* ——— Contacts page (fancy) ——— */
.contacts-page-body {
  overflow-x: hidden;
  width: 100%;
}

.contacts-page-body .contacts-main {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

.contacts-hero {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 0 2.75rem;
  margin-bottom: 0;
}

.contacts-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  min-width: 0;
}

.contacts-hero-cta {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.contacts-hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  color: var(--brand-dark);
  text-decoration: none;
}

.contacts-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.contacts-hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.8);
  animation: contacts-dot-pulse 2s ease-in-out infinite;
}

.contacts-hero-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}

.contacts-hero-lead {
  margin: 0;
  max-width: 36rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

.contacts-snow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.contacts-snowflake {
  position: absolute;
  color: rgba(255, 255, 255, 0.35);
  font-size: 1.25rem;
  animation: contacts-snow-drift 14s linear infinite;
}

.contacts-snowflake-1 { top: 18%; left: 12%; animation-duration: 16s; }
.contacts-snowflake-2 { top: 28%; right: 18%; font-size: 0.875rem; animation-duration: 20s; animation-delay: -4s; }
.contacts-snowflake-3 { top: 12%; right: 32%; font-size: 1rem; animation-duration: 12s; animation-delay: -2s; }

.contacts-body {
  position: relative;
  z-index: 1;
  padding-top: 2.5rem;
  padding-bottom: 1rem;
  background: var(--gray-50);
}

.contacts-showcase {
  max-width: 56rem;
  margin: 0 auto;
}

.contacts-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}

@media (min-width: 640px) {
  .contacts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.contacts-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 76, 153, 0.1);
  box-shadow:
    0 4px 24px rgba(0, 76, 153, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

a.contacts-card {
  color: inherit;
  text-decoration: none;
}

.contacts-card-glow {
  position: absolute;
  top: -40%;
  right: -20%;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 102, 204, 0.12) 0%, transparent 70%);
  transition: transform 0.5s ease, opacity 0.5s ease;
  pointer-events: none;
}

.contacts-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 102, 204, 0.25);
  box-shadow:
    0 20px 40px rgba(0, 76, 153, 0.14),
    0 0 0 1px rgba(0, 102, 204, 0.06);
}

.contacts-card:hover .contacts-card-glow {
  transform: scale(1.4);
  opacity: 1.2;
}

.contacts-card-phone:hover .contacts-card-icon-wrap {
  animation: contacts-icon-ring 0.6s ease;
}

.contacts-card-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.35rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-light) 0%, rgba(0, 102, 204, 0.12) 100%);
  color: var(--brand);
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contacts-card-icon-wrap .site-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.contacts-card:hover .contacts-card-icon-wrap {
  box-shadow: 0 0 0 6px rgba(0, 102, 204, 0.1);
}

.contacts-card-icon {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 0.25rem;
  transition: transform 0.3s ease;
}

.contacts-card-title {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-dark);
}

.contacts-card-value {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contacts-card-meta,
.contacts-card-hint,
.contacts-notice-text {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contacts-card-phone .contacts-card-value {
  font-size: 1.35rem;
}

.contacts-card-meta {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.45;
}

.contacts-card-hint {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.contacts-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  margin-bottom: 0.25rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contacts-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.contacts-card-status-open .contacts-status-pill {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}
.contacts-card-status-open .contacts-status-dot {
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.7);
  animation: contacts-dot-pulse 2s ease-in-out infinite;
}

.contacts-card-status-lunch .contacts-status-pill {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}
.contacts-card-status-lunch .contacts-status-dot {
  background: #f59e0b;
}

.contacts-card-status-closed .contacts-status-pill {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
}
.contacts-card-status-closed .contacts-status-dot {
  background: #94a3b8;
}

.contacts-notice-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 1.5rem;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(0, 76, 153, 0.06) 0%, rgba(0, 102, 204, 0.04) 100%);
  border: 1px solid rgba(0, 76, 153, 0.15);
  box-shadow: 0 8px 32px rgba(0, 76, 153, 0.06);
  position: relative;
  overflow: hidden;
}

.contacts-notice-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 102, 204, 0.06), transparent);
  background-size: 200% 100%;
  animation: shine 6s ease-in-out infinite;
  pointer-events: none;
}

.contacts-notice-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0, 76, 153, 0.2));
}

.contacts-notice-title {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.contacts-notice-text {
  margin: 0;
  line-height: 1.65;
  color: var(--gray-800);
}

.contacts-map-wrap {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

.contacts-map-wrap .map-section {
  position: relative;
  padding-top: 0;
}

.contacts-map-wrap .map-frame {
  margin-top: 1.5rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 20px 50px rgba(0, 76, 153, 0.12),
    0 0 0 1px rgba(0, 76, 153, 0.08);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.contacts-map-wrap .map-org-plaque {
  top: 1.35rem;
  left: 1rem;
}

.contacts-map-wrap .map-frame:hover {
  transform: translateY(-4px);
  box-shadow:
    0 28px 60px rgba(0, 76, 153, 0.16),
    0 0 0 1px rgba(0, 102, 204, 0.12);
}

@keyframes contacts-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.15); }
}

@keyframes contacts-snow-drift {
  0% { transform: translateY(0) rotate(0deg); opacity: 0.2; }
  50% { opacity: 0.5; }
  100% { transform: translateY(120px) rotate(180deg); opacity: 0.1; }
}

@keyframes contacts-icon-ring {
  0%, 100% { transform: scale(1) rotate(0); }
  25% { transform: scale(1.15) rotate(-8deg); }
  75% { transform: scale(1.1) rotate(8deg); }
}

/* Legacy compact contacts (about block) */
.contacts-page .contacts-region-card {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.75rem 2rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(0, 76, 153, 0.12);
  box-shadow: 0 8px 32px rgba(0, 76, 153, 0.08);
}

.contacts-region-lead {
  margin: 0 0 1.5rem;
  line-height: 1.65;
  color: #1e293b;
}

.contacts-page .about-contacts-list dt {
  color: #004c99;
}

.contacts-page .about-contact-link {
  color: #004c99 !important;
  font-size: 1.125rem;
}

.contacts-region-links {
  margin: 1.5rem 0 0;
}

.contacts-org-name {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #004c99;
}

.contacts-visit-notice,
.about-visit-notice {
  margin: 1.25rem 0 0;
  padding: 1rem 1.125rem;
  border-radius: 0.75rem;
  background: rgba(0, 76, 153, 0.08);
  border-left: 4px solid #004c99;
  line-height: 1.6;
  color: #1e293b;
}

.about-visit-notice {
  font-size: 0.9375rem;
  color: #bfdbfe;
  background: rgba(255, 255, 255, 0.08);
  border-left-color: #7dd3fc;
}

.contacts-coords {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #64748b;
}

.contacts-coords-label {
  font-weight: 500;
}

.header-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  color: #fff;
  text-decoration: none;
}

.header-cart-desktop {
  margin-left: 0.15rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.header-cart-desktop:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.header-cart-mobile {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.header-cart-icon {
  width: 1.35rem;
  height: 1.35rem;
}

.header-cart-count {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #f97316;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.1rem;
  text-align: center;
}

.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cart-toast {
  position: fixed;
  right: 1rem;
  bottom: 5.5rem;
  z-index: 80;
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: #0f172a;
  color: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
  font-size: 0.9rem;
}

.cart-toast.is-visible {
  display: flex;
}

.cart-toast a {
  color: #93c5fd;
  font-weight: 600;
}

.cart-empty[hidden],
.cart-layout[hidden] {
  display: none !important;
}

.cart-empty {
  max-width: 36rem;
  margin: 0 auto;
}

.cart-layout {
  display: none;
  gap: 1.25rem;
  align-items: start;
}

.cart-layout:not([hidden]) {
  display: grid;
}

@media (min-width: 900px) {
  .cart-layout:not([hidden]) {
    grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 20rem);
  }
}

.cart-panel,
.cart-checkout,
.order-sheet {
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0, 76, 153, 0.06);
}

.cart-panel,
.cart-checkout {
  padding: 1.15rem 1.15rem 1.25rem;
}

.cart-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.cart-panel-head h2,
.cart-checkout h2 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  color: var(--brand-dark);
}

.cart-lines {
  display: grid;
}

.cart-checkout > .muted {
  margin: 0 0 0.25rem;
  font-size: 0.85rem;
}

@media (min-width: 900px) {
  .cart-checkout {
    position: sticky;
    top: calc(var(--header-height) + 0.75rem);
  }
}

.cart-checkout label,
.order-admin-form label,
.admin-order-stack label {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
}

.cart-checkout input,
.cart-checkout textarea,
.order-admin-form input,
.order-admin-form textarea,
.order-admin-form select,
.admin-order-stack input,
.admin-order-stack textarea,
.admin-order-stack select {
  width: 100%;
  min-height: 2.6rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--gray-100);
  border-radius: 0.65rem;
  font: inherit;
  background: #fff;
}

.cart-checkout input::placeholder,
.cart-checkout textarea::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.cart-checkout-foot {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
}

.cart-checkout-total {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.cart-checkout-error {
  margin: 0 0 0.75rem;
  color: #b91c1c;
  font-size: 0.875rem;
}

.cart-line {
  display: grid;
  gap: 0.45rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.cart-line:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cart-line-main {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 0.85rem;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

div.cart-line-main {
  cursor: default;
}

button.cart-line-main:hover .cart-line-title {
  color: var(--brand);
}

.cart-line-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.cart-line-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.cart-line-open-hint {
  font-size: 0.8rem;
  color: var(--brand);
}

.cart-line-photo img,
.order-line-photo img {
  display: block;
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 0.6rem;
}

.cart-line-body h3,
.order-line-title {
  margin: 0;
  font-size: 0.95rem;
  color: var(--brand-dark);
}

.cart-line-price {
  margin: 0.25rem 0 0;
  font-weight: 700;
  color: var(--gray-800);
}

@media (min-width: 480px) {
  .cart-line-body {
    padding-left: calc(4rem + 0.85rem);
  }
}

.cart-line-qty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.cart-qty-btn,
.cart-line-remove {
  min-height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  background: #fff;
  color: var(--brand-dark);
  font-weight: 700;
  cursor: pointer;
}

.cart-qty-btn:hover {
  border-color: rgba(0, 102, 204, 0.35);
  background: var(--brand-light);
}

.cart-line-qty input {
  width: 3.5rem;
  min-height: 2.5rem;
  text-align: center;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  color: var(--brand-dark);
  font-weight: 700;
}

.cart-line-remove {
  margin-left: auto;
  color: var(--brand-dark);
  font-weight: 600;
}

.cart-line-remove:hover {
  border-color: rgba(0, 102, 204, 0.35);
  background: var(--brand-light);
}

.order-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.order-sheet {
  padding: 1.5rem 1.25rem 2rem;
}

.order-doc-head {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 720px) {
  .order-doc-head {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.order-doc-brand {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-dark);
}

.order-doc-meta,
.order-doc-num p {
  margin: 0.15rem 0 0;
  color: var(--gray-600);
  font-size: 0.9rem;
}

.order-doc-num h1 {
  margin: 0;
  font-size: 1.35rem;
}

.order-doc-client {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: var(--gray-50);
}

.order-doc-client p {
  margin: 0.15rem 0;
}

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

.order-line {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--gray-100);
}

@media (min-width: 720px) {
  .order-line {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

.order-line.has-discount {
  background: linear-gradient(90deg, rgba(254, 243, 199, 0.55), transparent 70%);
  margin: 0 -0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  border-radius: 0.75rem;
}

.order-line-main {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 0.85rem;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

div.order-line-main {
  cursor: default;
}

.order-line-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.order-line-open {
  font-size: 0.8rem;
  color: var(--brand);
}

.order-line-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.order-price {
  text-align: right;
}

.order-price-retail {
  display: block;
  color: var(--gray-500);
  text-decoration: line-through;
  font-size: 0.85rem;
}

.order-price.is-discount .order-price-unit {
  color: #c2410c;
  font-weight: 800;
}

.order-price-badge {
  display: inline-block;
  margin-top: 0.15rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #ffedd5;
  color: #9a3412;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.order-totals {
  margin-top: 1.25rem;
  text-align: right;
}

.order-total-retail,
.order-total-save {
  margin: 0.15rem 0;
  color: var(--gray-600);
}

.order-total-save {
  color: #c2410c;
  font-weight: 600;
}

.order-total-sum {
  margin: 0.45rem 0 0;
  font-size: 1.25rem;
}

.order-comment {
  margin-top: 1.5rem;
}

.order-comment h2 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.order-doc-note {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--gray-500);
}

.order-line-photo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 0.6rem;
  background: var(--gray-50);
}

.order-request-head {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--brand-dark, #004c99);
}

.order-request-meta,
.order-request-mark p {
  margin: 0.15rem 0 0;
  color: var(--gray-600, #4b5563);
  font-size: 0.9rem;
}

.order-request-type {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brand-dark, #004c99);
}

.order-request-summary {
  margin: 0 0 1.1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.65rem;
  background: var(--gray-50, #f0f4f8);
}

.order-request-summary p {
  margin: 0.2rem 0;
}

@media (min-width: 640px) {
  .order-request-head {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

body.order-print-body {
  margin: 0;
  min-height: 0;
  background: #eceff3;
  color: #111827;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.45;
}

.kp-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.kp-toolbar-hint {
  margin: 0;
  width: 100%;
  font-size: 0.85rem;
  color: #6b7280;
}

.kp-sheet {
  max-width: 210mm;
  margin: 1rem auto 2rem;
  padding: 14mm 16mm;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.kp-head {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid #004c99;
}

@media (min-width: 640px) {
  .kp-head {
    grid-template-columns: 1fr auto;
  }
}

.kp-brand {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #004c99;
}

.kp-official-head {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #004c99;
}

.kp-brand-legal {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
}

.kp-doc-type {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kp-doc-mark p {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
}

.kp-parties {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

@media (min-width: 640px) {
  .kp-official-head,
  .kp-parties {
    grid-template-columns: 1fr 1fr;
  }
}

.kp-party {
  padding: 0.7rem 0.8rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #f8fafc;
}

.kp-party h2 {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b7280;
}

.kp-party p {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
}

.kp-sign {
  margin-top: 1.35rem;
  max-width: 16rem;
}

.kp-sign-name {
  margin: 0.35rem 0 0;
  font-weight: 700;
}

.kp-sign-line {
  margin-top: 1.6rem;
  padding-top: 0.3rem;
  border-top: 1px solid #111827;
  font-size: 0.78rem;
  color: #6b7280;
}

.kp-meta,
.kp-num p,
.kp-for p,
.kp-comment p {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
}

.kp-num h1,
.kp-for h2,
.kp-comment h2 {
  margin: 0;
  font-size: 1.15rem;
}

.kp-for {
  margin: 0 0 1rem;
}

.kp-for-org {
  font-weight: 700;
}

.kp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.kp-table th,
.kp-table td {
  padding: 0.4rem 0.45rem;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
  text-align: left;
}

.kp-table th {
  background: #f8fafc;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.kp-col-n,
.kp-col-qty,
.kp-col-price,
.kp-col-sum {
  white-space: nowrap;
  text-align: right;
}

.kp-col-n {
  width: 2.2rem;
  text-align: center;
}

.kp-code {
  margin-top: 0.15rem;
  color: #6b7280;
  font-size: 0.78rem;
}

.kp-retail {
  display: block;
  color: #6b7280;
  text-decoration: line-through;
  font-size: 0.8rem;
}

.kp-totals {
  margin-top: 1rem;
  text-align: right;
}

.kp-totals p {
  margin: 0.15rem 0;
}

.kp-total-sum {
  font-size: 1.2rem;
}

.kp-note {
  margin: 1.25rem 0 0;
  font-size: 0.78rem;
  color: #6b7280;
}

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  html,
  body,
  body.site-body,
  body.order-print-body {
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
    background: #fff !important;
    background-image: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .site-header,
  .site-footer,
  .floating-actions,
  .no-print,
  .order-toolbar,
  .product-modal,
  .cart-toast,
  .mobile-nav,
  .mobile-overlay,
  .kp-toolbar,
  .order-line-open {
    display: none !important;
  }

  .order-page,
  .section {
    padding: 0 !important;
  }

  .order-sheet,
  .kp-sheet {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
  }

  .order-line.has-discount {
    background: #fff7ed;
  }
}

/* Price outdated / B2B unavailable */
.site-price-alert {
  background: #fff7ed;
  border-bottom: 1px solid #fdba74;
  color: #9a3412;
  font-size: 0.875rem;
  line-height: 1.45;
}
.site-price-alert-inner {
  padding: 0.65rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
}
.site-price-alert strong {
  font-weight: 700;
}
.product-price-outdated {
  margin: 0.3rem 0 0;
  max-width: 36rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #c2410c;
  font-weight: 600;
}
.product-price-wrap.is-price-outdated .product-price-amount {
  color: #9a3412;
}
.product-card-compact .product-price-outdated {
  font-size: 0.6875rem;
  max-width: 14rem;
}

/* Inline stock edit — only search result rows */
.site-stock-edit {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0;
  min-width: 0;
}

.site-stock-edit-fields {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
}

.site-stock-edit .stock-cell-form {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.site-stock-edit .stock-cell-form[data-warehouse="office"]::before,
.site-stock-edit .stock-cell-form[data-warehouse="remote"]::before {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--gray-600, #4b5563);
  white-space: nowrap;
}

.site-stock-edit .stock-cell-form[data-warehouse="office"]::before { content: "Офис"; }
.site-stock-edit .stock-cell-form[data-warehouse="remote"]::before { content: "Удал."; }

.site-stock-edit .stock-qty-input {
  width: 2.75rem;
  min-width: 2.75rem;
  height: 1.875rem;
  box-sizing: border-box;
  padding: 0.15rem 0.25rem;
  border: 1px solid #d1d5db;
  border-radius: 0.35rem;
  font-size: 0.8125rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  background: #fff;
}

.site-stock-edit .stock-ok-btn {
  min-width: 2rem;
  height: 1.875rem;
  padding: 0 0.4rem;
  font-size: 0.75rem;
  line-height: 1;
  box-sizing: border-box;
}

.site-stock-edit .stock-ok-btn--idle,
.site-stock-edit .stock-ok-btn:disabled {
  background: #e5e7eb;
  border: 1px solid #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
}

.site-stock-edit .stock-ok-btn--dirty.btn-primary {
  background: var(--brand, #0066cc);
  border-color: var(--brand, #0066cc);
  color: #fff;
  cursor: pointer;
}

.site-stock-summary {
  cursor: default;
  flex: 0 0 auto;
}

.site-stock-edit--compact .site-stock-summary {
  display: none;
}

.product-card-compact.product-card--stock-edit {
  align-items: center;
  flex-wrap: nowrap;
}

.product-card-compact.product-card--stock-edit .product-card-main {
  flex: 1 1 auto;
  min-width: 0;
}

.product-card-stock-edit {
  flex: 0 1 auto;
  min-width: 11.5rem;
  max-width: 16rem;
  padding: 0;
  align-self: center;
}

.product-card-compact.product-card--stock-edit .product-card-cart-btn,
.product-card-compact.product-card--stock-edit .cart-control--card {
  align-self: center;
}

@media (max-width: 720px) {
  .product-card-compact.product-card--stock-edit {
    flex-wrap: wrap;
  }

  .product-card-stock-edit {
    flex: 1 1 100%;
    max-width: none;
    order: 3;
    min-width: 0;
  }

  .product-card-compact.product-card--stock-edit .product-card-cart-btn,
  .product-card-compact.product-card--stock-edit .cart-control--card {
    order: 2;
  }
}
