:root {
  --blue: #003380;
  --blue-dark: #002766;
  --yellow: #ffcc00;
  --yellow-bright: #ffd700;
  --red: #d32f2f;
  --gray-bg: #f4f6f9;
  --gray-border: #e2e8f0;
  --white: #ffffff;
  --text: #1a2b4a;
  --shadow: 0 4px 24px rgba(0, 51, 128, 0.08);
  --font: "Montserrat", "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(1280px, 100% - 32px);
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  min-height: 72px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.logo-mecsu {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.logo-mspro {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.main-nav a {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--blue);
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--yellow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 4px 16px rgba(0, 51, 128, 0.25);
}

.btn-cart svg {
  width: 16px;
  height: 16px;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue);
  margin: 5px 0;
}

/* Hero */
.hero {
  width: 100%;
  line-height: 0;
  background: var(--blue-dark);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Campaign info */
.campaign-section {
  padding: 40px 0 36px;
  background: var(--white);
  border-top: 1px solid var(--gray-border);
}

.campaign-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 28px;
}

.campaign-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}

.campaign-title {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 800;
  color: var(--blue);
  line-height: 1.35;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.campaign-lead {
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.55;
  max-width: 720px;
  margin-inline: auto;
}

.campaign-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.campaign-card {
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  border-radius: 10px;
  padding: 16px 14px;
  border-top: 3px solid var(--blue);
}

.campaign-card-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
  margin-bottom: 8px;
}

.campaign-card-value {
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.45;
  font-weight: 600;
}

.campaign-note {
  text-align: center;
  font-size: 0.78rem;
  color: #6b7280;
  font-style: italic;
  padding: 12px 16px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  max-width: 640px;
  margin: 0 auto;
}

/* Products */
.products-section {
  padding: 40px 0 48px;
  background: var(--gray-bg);
}

.products-header {
  text-align: center;
  margin-bottom: 28px;
}

.products-title {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 800;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.products-subtitle {
  font-size: 0.88rem;
  color: #5a6b85;
  font-weight: 600;
}

.products-loading,
.products-error {
  grid-column: 1 / -1;
  text-align: center;
  color: #5a6b85;
  padding: 24px;
}

.products-error {
  color: var(--red);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: box-shadow 0.2s, transform 0.2s;
}

.product-card:hover {
  box-shadow: 0 8px 32px rgba(0, 51, 128, 0.12);
  transform: translateY(-2px);
}

.product-header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 10px 6px;
}

.product-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: var(--blue);
  color: var(--white);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1;
}

.product-title {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--blue);
  text-transform: uppercase;
  line-height: 1.3;
  flex: 1;
}

.product-main {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4px 6px;
  align-items: center;
  padding: 4px 10px 10px;
  flex: 1;
  min-height: 132px;
}

.product-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 120px;
  padding: 4px 2px 4px 0;
}

.product-image img {
  width: 100%;
  max-width: 130px;
  height: auto;
  max-height: 128px;
  object-fit: contain;
  object-position: center;
}

.product-pricing {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  padding: 4px 0 4px 4px;
  min-height: 120px;
}

.price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
  line-height: 1.2;
}

.price-label {
  color: #4a5568;
  font-size: 0.68rem;
  font-weight: 500;
  white-space: nowrap;
}

.price-before {
  color: var(--red);
  text-decoration: line-through;
  text-decoration-color: var(--red);
  font-weight: 700;
  font-size: 0.82rem;
}

.price-after-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 4px;
}

.price-label-after {
  color: var(--blue);
  font-weight: 800;
  font-size: 0.72rem;
  line-height: 1.2;
}

.price-after {
  color: var(--red);
  font-size: clamp(1.65rem, 2.8vw, 2rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-top: 1px;
}

.price-vat {
  font-size: 0.6rem;
  color: #6b7280;
  line-height: 1.2;
  margin: 0;
}

.btn-buy {
  width: calc(100% - 20px);
  margin: 0 10px 10px;
  background: var(--blue);
  color: var(--white);
  padding: 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.btn-buy:hover {
  background: var(--blue-dark);
}

.btn-buy--disabled {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

/* Footer CTA */
.site-footer-cta {
  background: var(--blue);
  padding: 20px 0;
}

.footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-cta-text {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  font-weight: 700;
  text-transform: uppercase;
}

.footer-cta-text .highlight {
  color: var(--yellow);
}

.btn-yellow {
  background: var(--yellow);
  color: var(--blue);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.btn-yellow:hover {
  background: var(--yellow-bright);
  box-shadow: 0 4px 16px rgba(255, 204, 0, 0.4);
}

/* Responsive */
@media (max-width: 1100px) {
  .campaign-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--gray-border);
    box-shadow: var(--shadow);
  }

  .nav-toggle:checked ~ .main-nav {
    display: flex;
  }

  .header-cta-desktop {
    display: none;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .footer-cta-inner {
    justify-content: center;
    text-align: center;
  }

  .footer-cta-text {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .campaign-grid {
    grid-template-columns: 1fr;
  }

  .product-main {
    grid-template-columns: 1fr 1fr;
    min-height: 118px;
    padding: 4px 8px 8px;
  }

  .product-image img {
    max-height: 110px;
    max-width: 100%;
  }

  .product-pricing {
    min-height: auto;
    padding-left: 2px;
  }

  .price-after {
    font-size: 1.45rem;
  }
}
