html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff;
  color: #111827;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #f3f4f6;
  color: #111827;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.logo img {
  height: 52px;
  display: block;
}

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

.phone::before {
  content: "☎";
  margin-right: 8px;
  font-size: 14px;
  opacity: 0.7;
}

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

nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.menu {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.menu a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: #374151;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.menu a:hover {
  background: rgba(209, 213, 219, 0.8);
  border-color: rgba(156, 163, 175, 0.8);
  color: #111827;
}

main {
  padding: 32px 16px 48px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 24px;
  color: #111827;
}

.special-slider {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #f9fafb;
  padding: 16px 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
  max-width: 800px;
  margin: 0 auto;
}

.slider-track {
  display: flex;
  transition: transform 0.4s ease;
}

.product-card {
  min-width: 50%;
  box-sizing: border-box;
  padding: 0 6px;
}

.product-inner {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: #e5e7eb;
  flex-shrink: 0;
  cursor: pointer;
}

.product-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.product-prices {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.price-old {
  font-size: 14px;
  color: #9ca3af;
  text-decoration: line-through;
}

.price-new {
  font-size: 18px;
  font-weight: 700;
  color: #16a34a;
}

.stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
}

.stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.stock--many {
  color: #15803d;
}

.stock--many .stock-dot {
  background: #16a34a;
}

.stock--enough {
  color: #b45309;
}

.stock--enough .stock-dot {
  background: #f59e0b;
}

.stock--few {
  color: #b91c1c;
}

.stock--few .stock-dot {
  background: #ef4444;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: #111827;
  color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.9;
  transition: background 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
  z-index: 2;
}

.slider-btn:hover {
  background: #000000;
  opacity: 1;
  transform: translateY(-50%) scale(1.05);
}

.slider-btn:disabled {
  opacity: 0.3;
  cursor: default;
  transform: translateY(-50%) scale(1);
}

.slider-btn.prev {
  left: 12px;
}

.slider-btn.next {
  right: 12px;
}

/* Блоки преимуществ */
.features {
  padding: 32px 16px 48px;
}

.features-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.feature-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  color: #111827;
}

.feature-icon-svg {
  width: 100%;
  height: 100%;
}

.feature-text {
  min-width: 0;
}

.feature-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}

.feature-desc {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.45;
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* Секция каталога — Мототехника */
.catalog {
  padding: 0px 16px 56px;
}

.catalog-title {
  margin: 0 0 24px;
  font-size: 28px;
  font-weight: 400;
  color: #111827;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.catalog-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease;
}

.catalog-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.catalog-more-wrap {
  grid-column: 1 / -1;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.catalog-more-wrap.is-open {
  max-height: 520px;
}

.catalog-more-wrap--parts.is-open {
  max-height: 1600px;
}

.catalog-more-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  opacity: 0;
  transition: opacity 0.4s ease 0.08s;
}

.catalog-more-wrap.is-open .catalog-more-inner {
  opacity: 1;
}

@media (max-width: 1200px) {
  .catalog-more-inner {
    grid-template-columns: repeat(3, 1fr);
  }
  .catalog-more-wrap.is-open {
    max-height: 900px;
  }
  .catalog-more-wrap--parts.is-open {
    max-height: 1200px;
  }
}

@media (max-width: 768px) {
  .catalog-more-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .catalog-more-wrap.is-open {
    max-height: 1200px;
  }
  .catalog-more-wrap--parts.is-open {
    max-height: 2000px;
  }
}

@media (max-width: 480px) {
  .catalog-more-inner {
    grid-template-columns: 1fr;
  }
  .catalog-more-wrap.is-open {
    max-height: 2800px;
  }
  .catalog-more-wrap--parts.is-open {
    max-height: 3500px;
  }
}

.catalog-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #16a34a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 1;
}

.catalog-card-image {
  width: 100%;
  aspect-ratio: 4 / 2.8;
  border-radius: 8px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f3f4f6;
  margin-bottom: 12px;
  cursor: pointer;
}

.catalog-card-line {
  display: block;
  width: 32px;
  height: 3px;
  background: #eab308;
  border-radius: 2px;
  margin-bottom: 10px;
}

.catalog-card-name {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}

.catalog-card-specs {
  margin: 0 0 6px;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.35;
}

.catalog-card-price {
  margin: auto 0 0;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

/* Карточки экипировки: наличие, скидка */
.catalog-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 8px;
}

.catalog-card-prices {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.catalog-card-price-old {
  font-size: 14px;
  color: #9ca3af;
  text-decoration: line-through;
}

.catalog-card-price-new {
  font-size: 18px;
  font-weight: 700;
  color: #16a34a;
}

.catalog-card-discount {
  display: inline-block;
  font-size: 12px;
  padding: 4px 8px;
  background: #fef08a;
  color: #854d0e;
  border-radius: 2px;
}

.catalog-card--gear .catalog-card-price {
  margin-top: auto;
  margin-bottom: 0;
}

.catalog-actions {
  text-align: center;
}

.catalog-load-more {
  display: inline-block;
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #b45309;
  background: transparent;
  border: 1px solid #eab308;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.catalog-load-more:hover {
  background: #fef3c7;
  color: #b45309;
}

@media (max-width: 1200px) {
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

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

/* Блок «Остались вопросы?» */
.questions-block {
  padding: 0px 16px 56px;
}

.questions-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px 40px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
}

.questions-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  color: #111827;
}

.questions-icon svg {
  width: 100%;
  height: 100%;
}

.questions-text {
  flex: 1;
  min-width: 0;
}

.questions-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 400;
  color: #111827;
}

.questions-desc {
  margin: 0;
  font-size: 15px;
  color: #6b7280;
  line-height: 1.45;
}

.questions-phone-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  background: #eab308;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.questions-phone-btn:hover {
  background: #facc15;
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .questions-inner {
    flex-wrap: wrap;
    padding: 24px 20px;
    gap: 24px;
  }

  .questions-icon {
    width: 48px;
    height: 48px;
  }

  .questions-text {
    flex-basis: 100%;
    order: 2;
  }

  .questions-phone-btn {
    flex-basis: 100%;
    order: 3;
  }
}

/* Футер */
.site-footer {
  background: #1f2937;
  color: #f3f4f6;
  padding: 48px 16px 32px;
}

.site-footer a {
  color: #f3f4f6;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-menu {
  display: block;
}

.footer-menu-col {
  min-width: 140px;
}

.footer-company {
  flex-shrink: 0;
  text-align: right;
  max-width: 360px;
}

.footer-menu-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: #ffffff;
}

.footer-menu-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu-col li {
  margin-bottom: 6px;
}

.footer-menu-col a {
  font-size: 14px;
  color: #d1d5db;
}

.footer-legal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid #374151;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.footer-legal-links a {
  font-size: 14px;
  text-decoration: underline;
  color: #d1d5db;
}

.footer-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

.footer-payment-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.footer-payment-icon {
  height: 24px;
  width: auto;
  display: block;
}

.footer-top .footer-company {
  margin-bottom: 0;
  font-size: 14px;
  color: #d1d5db;
  line-height: 1.6;
}

.footer-company p {
  margin: 0 0 8px;
}

.footer-company p:last-child {
  margin-bottom: 0;
}

.footer-company-name {
  font-weight: 600;
  color: #ffffff;
}

.footer-company-contact a,
.footer-company-email a {
  color: #f3f4f6;
}

.footer-copy {
  font-size: 13px;
  color: #9ca3af;
  margin: 24px 0 0;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 32px 16px 24px;
  }

  .footer-top {
    flex-direction: column;
    gap: 28px;
  }

  .footer-company {
    text-align: left;
    max-width: none;
  }

  .footer-menu {
    gap: 20px 24px;
  }

  .footer-menu-col {
    min-width: 120px;
  }

  .footer-legal-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-legal-links {
    flex-direction: column;
    gap: 12px;
  }
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
  }

  .logo {
    flex-basis: 100%;
    justify-content: center;
  }

  nav {
    order: 3;
    flex-basis: 100%;
  }

  .phone {
    order: 2;
  }
}

/* Модальное окно изображения товара */
.product-image-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.product-image-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.product-image-modal-content {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.product-image-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: #f3f4f6;
  color: #374151;
  font-size: 24px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.product-image-modal-close:hover {
  background: #e5e7eb;
  color: #111827;
}

.product-image-modal-image-wrap {
  max-width: 100%;
  max-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image-modal-image-wrap img {
  max-width: 100%;
  max-height: 60vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.product-image-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  text-align: center;
  line-height: 1.3;
}

.product-image-modal-price {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #059669;
}

