/* ============================================
   Снаб Регион — Corporate Styles
   Colors: #0A4D8C / #1565C0 / #4FC3F7 / #29B6F6 / #F0F7FC / #0D2B4A
   ============================================ */

:root {
  --blue-dark: #0A4D8C;
  --blue-main: #1565C0;
  --blue-accent: #4FC3F7;
  --blue-hover: #29B6F6;
  --bg-light: #F0F7FC;
  --text: #0D2B4A;
  --text-muted: #5A7A9A;
  --white: #ffffff;
  --border: #D0E4F5;
  --shadow: 0 4px 20px rgba(10, 77, 140, 0.08);
  --shadow-hover: 0 8px 30px rgba(10, 77, 140, 0.15);
  --radius: 12px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--blue-main);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--blue-hover);
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--blue-main);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background: transparent;
  color: var(--blue-main);
  border: 2px solid var(--blue-main);
}
.btn-outline:hover {
  background: var(--blue-main);
  color: var(--white);
}

.btn-accent {
  background: var(--blue-accent);
  color: var(--text);
}
.btn-accent:hover {
  background: var(--blue-hover);
  color: var(--white);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 17px;
}

/* ─── Header ─── */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(10, 77, 140, 0.05);
}

.header-top {
  background: var(--blue-dark);
  color: var(--white);
  font-size: 13px;
  padding: 8px 0;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.header-top a {
  color: rgba(255,255,255,0.9);
}
.header-top a:hover {
  color: var(--blue-accent);
}

.header-main {
  padding: 14px 0;
}

.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 22px;
  color: var(--blue-dark);
  text-decoration: none;
}
.logo:hover {
  color: var(--blue-main);
}
.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--blue-main), var(--blue-accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  position: relative;
}
.nav a:hover,
.nav a.active {
  color: var(--blue-main);
}
.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue-accent);
  border-radius: 1px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-phone a {
  font-weight: 700;
  font-size: 17px;
  color: var(--blue-dark);
}
.header-phone .btn {
  padding: 10px 18px;
  font-size: 13px;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  width: 24px;
  height: 2.5px;
  background: var(--blue-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ─── Hero ─── */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-main) 60%, #1E88E5 100%);
  color: var(--white);
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(79,195,247,0.25) 0%, transparent 70%);
  border-radius: 50%;
}
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-content h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-content p {
  font-size: 18px;
  opacity: 0.92;
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-actions .btn-primary {
  background: var(--blue-accent);
  color: var(--text);
}
.hero-actions .btn-primary:hover {
  background: var(--white);
  color: var(--blue-dark);
}
.hero-actions .btn-outline {
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
}
.hero-actions .btn-outline:hover {
  background: var(--white);
  color: var(--blue-dark);
  border-color: var(--white);
}
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  max-width: 320px;
}
.hero-card .stat {
  font-size: 36px;
  font-weight: 800;
  color: var(--blue-accent);
}
.hero-card .stat-label {
  font-size: 14px;
  opacity: 0.85;
  margin-top: 4px;
}
.hero-card .divider {
  height: 1px;
  background: rgba(255,255,255,0.2);
  margin: 20px 0;
}

/* ─── Sections ─── */
.section {
  padding: 70px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 12px;
}
.section-title p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto;
}

/* ─── Advantages ─── */
.advantages {
  background: var(--bg-light);
}
.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.adv-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  text-align: center;
}
.adv-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.adv-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--blue-main), var(--blue-accent));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
}
.adv-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--blue-dark);
}
.adv-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ─── Categories Grid ─── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.cat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.cat-card:hover {
  border-color: var(--blue-accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  color: inherit;
}
.cat-card-img {
  height: 180px;
  min-height: 180px;
  max-height: 180px;
  background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--blue-main);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.cat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.cat-card-body {
  padding: 18px 20px 20px;
  background: #fff;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cat-card-body h3 {
  font-size: 17px;
  color: var(--blue-dark);
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
}
.cat-card-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
  white-space: pre-line;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ─── About brief ─── */
.about-brief {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-brief h2 {
  font-size: 28px;
  color: var(--blue-dark);
  margin-bottom: 16px;
}
.about-brief p {
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.65;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}
.about-stat {
  background: var(--bg-light);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
}
.about-stat .num {
  font-size: 28px;
  font-weight: 800;
  color: var(--blue-main);
}
.about-stat .label {
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── Reviews ─── */
.reviews {
  background: var(--bg-light);
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.review-stars {
  color: #FFB300;
  font-size: 18px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}
.review-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 18px;
  font-style: italic;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-main), var(--blue-accent));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}
.review-name {
  font-weight: 600;
  font-size: 14px;
}
.review-city {
  font-size: 12px;
  color: var(--text-muted);
}

/* ─── Callback form section ─── */
.callback-section {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-main));
  color: white;
  padding: 60px 0;
}
.callback-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.callback-inner h2 {
  font-size: 28px;
  margin-bottom: 12px;
}
.callback-inner p {
  opacity: 0.9;
  margin-bottom: 0;
}
.callback-form .form-group {
  margin-bottom: 14px;
}
.callback-form input,
.callback-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  background: rgba(255,255,255,0.12);
  color: white;
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition);
}
.callback-form input::placeholder,
.callback-form textarea::placeholder {
  color: rgba(255,255,255,0.6);
}
.callback-form input:focus,
.callback-form textarea:focus {
  border-color: var(--blue-accent);
  background: rgba(255,255,255,0.18);
}
.callback-form .btn {
  width: 100%;
  background: var(--blue-accent);
  color: var(--text);
  margin-top: 8px;
}
.callback-form .btn:hover {
  background: white;
}

/* ─── Products / Catalog ─── */
.page-header {
  background: var(--bg-light);
  padding: 40px 0 30px;
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-size: 32px;
  color: var(--blue-dark);
  margin-bottom: 8px;
}
.breadcrumb {
  font-size: 14px;
  color: var(--text-muted);
}
.breadcrumb a {
  color: var(--text-muted);
}
.breadcrumb a:hover {
  color: var(--blue-main);
}
.breadcrumb span {
  margin: 0 6px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 0 60px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--blue-accent);
  transform: translateY(-3px);
}
.product-img {
  height: 180px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-img .placeholder {
  font-size: 48px;
  color: var(--blue-main);
  opacity: 0.4;
}
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--blue-accent);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}
.product-badge.out {
  background: #EF5350;
  color: white;
}
.product-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-body h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 8px;
  line-height: 1.35;
}
.product-body h3 a {
  color: inherit;
}
.product-body h3 a:hover {
  color: var(--blue-main);
}
.product-price {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.price-current {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-main);
}
.price-old {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.product-body .btn {
  margin-top: 12px;
  width: 100%;
}

/* Product detail */
.product-detail {
  padding: 40px 0 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.product-gallery {
  background: var(--bg-light);
  border-radius: var(--radius);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-gallery .placeholder {
  font-size: 80px;
  color: var(--blue-main);
  opacity: 0.3;
}
.product-info h1 {
  font-size: 28px;
  color: var(--blue-dark);
  margin-bottom: 12px;
}
.product-info .price-block {
  margin: 20px 0;
}
.product-info .price-current {
  font-size: 32px;
}
.product-info .in-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #2E7D32;
  margin-bottom: 16px;
}
.product-info .out-stock {
  color: #C62828;
}
.product-info .desc {
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.65;
}
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}
.specs-table tr {
  border-bottom: 1px solid var(--border);
}
.specs-table td {
  padding: 10px 0;
}
.specs-table td:first-child {
  color: var(--text-muted);
  width: 45%;
}
.specs-table td:last-child {
  font-weight: 500;
}

/* ─── About page ─── */
.about-content {
  padding: 50px 0 70px;
  max-width: 800px;
}
.about-content h2 {
  color: var(--blue-dark);
  margin: 32px 0 14px;
  font-size: 24px;
}
.about-content p {
  margin-bottom: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}
.about-content ul {
  margin: 12px 0 20px 20px;
  color: var(--text-muted);
}
.about-content li {
  margin-bottom: 8px;
}

/* ─── Contacts ─── */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px 0 60px;
}
.contact-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-card h3 {
  color: var(--blue-dark);
  margin-bottom: 16px;
  font-size: 18px;
}
.contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 15px;
}
.contact-item .icon {
  color: var(--blue-main);
  font-size: 18px;
  min-width: 24px;
}
.requisites {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
}
.requisites strong {
  color: var(--text);
}

/* ─── Footer ─── */
.footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.85);
  padding: 50px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 36px;
  padding-bottom: 40px;
}
.footer h4 {
  color: white;
  font-size: 15px;
  margin-bottom: 16px;
  font-weight: 600;
}
.footer p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
}
.footer a {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  display: block;
  margin-bottom: 8px;
}
.footer a:hover {
  color: var(--blue-accent);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 0;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255,255,255,0.6);
}

/* ─── Cookie banner ─── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--blue-dark);
  color: white;
  padding: 16px 20px;
  z-index: 9999;
  display: none;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.cookie-banner.show {
  display: block;
}
.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-inner p {
  font-size: 14px;
  margin: 0;
  flex: 1;
}
.cookie-inner a {
  color: var(--blue-accent);
  text-decoration: underline;
}
.cookie-inner .btn {
  flex-shrink: 0;
}

/* ─── Modal ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 43, 74, 0.55);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.show {
  display: flex;
}
.modal {
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.modal h3 {
  color: var(--blue-dark);
  margin-bottom: 8px;
  font-size: 22px;
}
.modal p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}
.modal .close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}
.modal .form-group {
  margin-bottom: 14px;
}
.modal input,
.modal textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition);
}
.modal input:focus,
.modal textarea:focus {
  border-color: var(--blue-main);
}
.modal .btn {
  width: 100%;
  margin-top: 8px;
}
.form-error {
  color: #C62828;
  font-size: 12px;
  margin-top: 4px;
}

/* ─── Alerts ─── */
.alert {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}
.alert-success {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #A5D6A7;
}
.alert-danger {
  background: #FFEBEE;
  color: #C62828;
  border: 1px solid #EF9A9A;
}
.alert-info {
  background: #E3F2FD;
  color: #1565C0;
  border: 1px solid #90CAF9;
}
.alert-warning {
  background: #FFF8E1;
  color: #F57F17;
  border: 1px solid #FFE082;
}

/* ─── Privacy ─── */
.privacy-content {
  padding: 40px 0 70px;
  max-width: 800px;
}
.privacy-content h2 {
  color: var(--blue-dark);
  margin: 28px 0 12px;
  font-size: 22px;
}
.privacy-content p, .privacy-content li {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 10px;
}
.privacy-content ul {
  margin-left: 20px;
  margin-bottom: 16px;
}

/* ─── Responsive ─── */
@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    display: none;
  }
  .hero-content h1 {
    font-size: 32px;
  }
  .adv-grid,
  .cat-grid,
  .reviews-grid {
    grid-template-columns: 1fr 1fr;
  }
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .about-brief,
  .callback-inner,
  .contacts-grid,
  .product-detail {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow);
    gap: 16px;
    border-top: 1px solid var(--border);
  }
  .nav.open {
    display: flex;
  }
  .burger {
    display: flex;
  }
  .header-phone .btn {
    display: none;
  }
  .adv-grid,
  .cat-grid,
  .reviews-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 50px 0 60px;
  }
  .section {
    padding: 50px 0;
  }
}

/* ─── Utility ─── */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* ─── Logo ─── */
.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
}
@media (max-width: 768px) {
  .logo-img { height: 40px; }
}

/* ─── Messenger options ─── */
.messenger-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}
.messenger-opt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 4px;
  margin: 0;
  border: 1px solid var(--border, #D0E4F5);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
  white-space: normal;
  background: #fff;
  color: #0D2B4A;
  box-sizing: border-box;
  min-width: 0;
  overflow: visible;
}
.messenger-opt input[type="radio"] {
  margin: 0;
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  accent-color: #1565C0;
}
.messenger-opt:has(input:checked) {
  border-color: #1565C0;
  background: #E3F2FD;
  color: #0A4D8C;
}

.callback-section .messenger-options .messenger-opt {
  background: rgba(255, 255, 255, 0.95);
  color: #0D2B4A;
  border-color: rgba(255, 255, 255, 0.5);
}
.callback-section .messenger-options .messenger-opt:has(input:checked) {
  background: #4FC3F7;
  color: #0A4D8C;
  border-color: #4FC3F7;
}

.modal .messenger-options,
.contact-card .messenger-options {
  grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
}

/* Tablet */
@media (max-width: 992px) {
  .messenger-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .messenger-opt {
    font-size: 13px;
    padding: 11px 6px;
  }
}

/* Phone: 2 columns — full text visible */
@media (max-width: 768px) {
  .messenger-options {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px;
  }
  .messenger-opt {
    width: 100%;
    font-size: 13px !important;
    padding: 12px 8px !important;
    white-space: normal !important;
    overflow: visible !important;
    min-height: 44px;
  }
  .messenger-opt input[type="radio"] {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 360px) {
  .messenger-options {
    grid-template-columns: 1fr !important;
  }
}


/* ─── Map on contacts ─── */
.map-section {
  margin: 48px 0 70px;
}
.map-title {
  font-size: 24px;
  color: var(--blue-dark, #0A4D8C);
  margin-bottom: 8px;
  font-weight: 700;
}
.map-address {
  color: var(--text-muted, #5A7A9A);
  margin-bottom: 16px;
  font-size: 15px;
}
.map-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border, #D0E4F5);
  box-shadow: 0 4px 20px rgba(10, 77, 140, 0.08);
  background: #e8eef5;
  min-height: 320px;
}
.map-wrap iframe {
  width: 100%;
  height: 450px;
  display: block;
  border: 0;
}
.map-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
@media (max-width: 768px) {
  .map-wrap iframe {
    height: 300px;
  }
  .map-section {
    margin: 32px 0 50px;
  }
  .map-title {
    font-size: 20px;
  }
}

.footer-market {
  color: #4FC3F7 !important;
  font-weight: 600;
  font-size: 14px;
}
.footer-market:hover {
  color: #fff !important;
  text-decoration: underline;
}


/* Logo text next to image */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: #0A4D8C;
  letter-spacing: -0.02em;
  white-space: nowrap;
  line-height: 1.1;
}
@media (max-width: 768px) {
  .logo-text {
    font-size: 16px;
  }
}
@media (max-width: 400px) {
  .logo-text {
    font-size: 14px;
  }
}

/* ─── Product image slider ─── */
.product-slider {
  position: relative;
  background: #F5F9FC;
  border-radius: 12px;
  border: 1px solid var(--border, #D0E4F5);
  overflow: hidden;
  user-select: none;
}
.product-slider-viewport {
  overflow: hidden;
  width: 100%;
}
.product-slider-track {
  display: flex;
  transition: transform 0.35s ease;
  will-change: transform;
}
.product-slider-slide {
  min-width: 100%;
  flex-shrink: 0;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F5F9FC;
}
.product-slider-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.product-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: #0A4D8C;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.product-slider-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}
.product-slider-btn.prev { left: 12px; }
.product-slider-btn.next { right: 12px; }
.product-slider-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.product-slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(10, 77, 140, 0.3);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.product-slider-dot.active {
  background: #1565C0;
  transform: scale(1.2);
}
.product-slider-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(10, 77, 140, 0.85);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 2;
}
.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.gallery-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: #F5F9FC;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-thumb.active {
  border-color: #1565C0;
}
@media (max-width: 768px) {
  .product-slider-slide {
    height: 280px;
  }
  .product-slider-btn {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }
}

/* Header mobile — no overlap logo / phone */
@media (max-width: 768px) {
  .header-main .container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
  }
  .logo {
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
  }
  .logo-img {
    height: 34px;
    width: auto;
    flex-shrink: 0;
  }
  .logo-text {
    font-size: 15px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
  }
  .header-phone {
    display: none !important; /* phone is in header-top and burger area */
  }
  .burger {
    flex-shrink: 0;
    margin-left: auto;
  }
  .header-top {
    font-size: 12px;
  }
  .header-top .container {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
  }
  .header-top a {
    white-space: nowrap;
  }
}
@media (max-width: 400px) {
  .logo-text {
    max-width: 100px;
    font-size: 14px !important;
  }
}

.footer-markets {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}


/* ─── Catalog search ─── */
.catalog-search {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  max-width: 640px;
}
.catalog-search input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--border, #D0E4F5);
  border-radius: 10px;
  font-size: 15px;
  color: var(--text, #0D2B4A);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.catalog-search input[type="search"]:focus {
  border-color: #1565C0;
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.15);
}
.catalog-search .btn {
  flex-shrink: 0;
  padding: 12px 22px;
}
.search-meta {
  margin-bottom: 20px;
  color: var(--text-muted, #5A7A9A);
  font-size: 15px;
}
.search-empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--text-muted, #5A7A9A);
}
.product-cat-label {
  font-size: 12px;
  color: #5A7A9A;
  margin-bottom: 6px;
}
@media (max-width: 576px) {
  .catalog-search {
    flex-direction: column;
  }
  .catalog-search .btn {
    width: 100%;
  }
}
