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

html {
  scroll-behavior: smooth;
  --bg: #0A0A0A;
  --bg-card: #252528;
  --bg-panel: #1C1C1E;
  --red: #D72B2B;
  --red-dim: #9B1E1E;
  --grigiomedio: #1C1C1E;
  --red-lt: #e05555;
  --red-xs: #f0a0a0;
  --ink: #F0EDEA;
  --ink-mid: #C8C8CC;
  --ink-muted: #8A8A8E;
  --border: rgba(255, 255, 255, .07);
  --border-md: rgba(255, 255, 255, .12);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', sans-serif;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  min-height: 100vh;
}

.header {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  background: var(--bg);
}

.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(215, 43, 43, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 43, 43, .12) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, black 40%, transparent 100%);
}

.header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 110%, rgba(215, 43, 43, .35) 0%, transparent 70%);
  pointer-events: none;
}

.header-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 24px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 64px;
}

.header-tagline {
  font-size: clamp(.72rem, 1.5vw, .88rem);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  border-top: 1px solid rgba(240, 237, 234, .18);
  padding-top: 14px;
  width: 100%;
  max-width: 640px;
  text-align: center;
}

.header-tagline em {
  color: var(--red-xs);
  font-style: normal;
  font-weight: 600;
}

.header-line {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--red-xs), var(--red-lt), transparent);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: 0A0A0A;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-md);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 36px;
  height: 56px;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  border-right: 1px solid var(--border);
  position: relative;
  transition: color .2s;
}

.nav-link:first-child {
  border-left: 1px solid var(--border);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--red);
  transition: left .25s ease, right .25s ease;
}

.nav-link:hover {
  color: var(--red);
}

.nav-link:hover::after,
.nav-link.active::after {
  left: 0;
  right: 0;
}

.nav-link.active {
  color: var(--red);
}

.nav-icon {
  font-size: 1rem;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  display: none;
  padding: 72px 0 80px;
  animation: fadeIn .35s ease;
}

.section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-eyebrow {
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--red-lt);
  font-weight: 600;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: .03em;
  color: var(--ink);
  line-height: 1.05;
  margin-bottom: 24px;
}

.section-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-mid);
  max-width: 680px;
  margin-bottom: 52px;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, var(--red) 0%, transparent 60%);
  margin-bottom: 52px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 56px;
}

.hero-card {
  background: #1C1C1E;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.hero-card:hover {
  border-color: var(--border-md);
  box-shadow: 0 4px 20px rgba(215, 43, 43, .08);
}

.hero-card:hover::before {
  transform: scaleX(1);
}

.hero-card-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: rgba(215, 43, 43, .1);
  line-height: 1;
  margin-bottom: 10px;
}

.hero-card-title {
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 10px;
}

.hero-card-text {
  font-size: .88rem;
  line-height: 1.65;
  color: var(--ink-mid);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  background: #1C1C1E;
}

.stat {
  padding: 30px 28px;
  border-right: 1px solid var(--border);
}

.stat:last-child {
  border-right: none;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--red);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

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

.product-card {
  background: #1C1C1E;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(215, 43, 43, .12);
}

.product-thumb {
  /*height: 170px;*/
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  position: relative;
  overflow: hidden;
}

.product-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #1C1C1E, transparent 55%);
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--red);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 4px 10px;
  z-index: 2;
}

.product-body {
  padding: 20px 18px 22px;
}

.product-category {
  font-size: .63rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--red-lt);
  font-weight: 600;
  margin-bottom: 5px;
}

.product-name {
  font-size: .98rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.product-desc {
  font-size: .82rem;
  line-height: 1.6;
  color: var(--ink-mid);
  margin-bottom: 16px;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--red);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 230px 230px;
  gap: 12px;
}

.gallery-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item:first-child {
  grid-row: 1 / 3;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(215, 43, 43, 0);
  transition: background .25s;
}

.gallery-item:hover::after {
  background: rgba(215, 43, 43, .1);
}

.gallery-label {
  position: absolute;
  bottom: 12px;
  left: 14px;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mid);
  font-weight: 500;
  z-index: 2;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon-wrap {
  width: 42px;
  height: 42px;
  background: #1C1C1E;
  border: 1px solid var(--border-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.contact-item-label {
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red-lt);
  font-weight: 600;
  margin-bottom: 3px;
}

.contact-item-value {
  font-size: .92rem;
  color: var(--ink);
  font-weight: 500;
}

.contact-item-note {
  font-size: .78rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-label {
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}

.form-input,
.form-select,
.form-textarea {
  background: #1C1C1E;
  border: 1px solid var(--border-md);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .9rem;
  padding: 11px 13px;
  border-radius: 1px;
  outline: none;
  transition: border-color .2s;
  width: 100%;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--ink-muted);
  opacity: .6;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--red);
}

.form-select {
  cursor: pointer;
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  border: none;
  font-family: var(--font-body);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 14px 30px;
  cursor: pointer;
  transition: background .2s, transform .15s;
  align-self: flex-start;
}

.btn-primary:hover {
  background: var(--red-dim);
  transform: translateY(-1px);
}

footer {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 28px 24px;
}

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

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: .06em;
  color: var(--ink-muted);
}

.footer-brand span {
  color: var(--red);
}

.footer-copy {
  font-size: .72rem;
  color: var(--ink-muted);
  letter-spacing: .04em;
}

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

  .products-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .stats-strip {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .stat:last-child {
    border-bottom: none;
  }
}

@media (max-width: 620px) {
  .nav-link {
    padding: 0 18px;
    font-size: .68rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .gallery-item:first-child {
    grid-row: auto;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

.logo-img {
  width: auto;
  height: clamp(60px, 18vw, 180px);
  max-width: 90vw;
  object-fit: contain;
  display: block;
}

.gallery-item img {
  width: auto;
  height: clamp(60px, 18vw, 180px);
  max-width: 90vw;
  object-fit: contain;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .section {
    animation: none;
  }
}

/* Image Lightbox Popup Modal */
.popup-modal {
  display: flex;
  visibility: hidden;
  opacity: 0;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.popup-modal.show {
  visibility: visible;
  opacity: 1;
}

.popup-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 90%;
  max-height: 85%;
  margin: auto;
}

.popup-content {
  display: block;
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border: 1px solid var(--border-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  border-radius: 4px;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.popup-modal.show .popup-content {
  transform: scale(1);
}

.popup-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: var(--ink-mid);
  font-size: 40px;
  font-weight: 300;
  transition: color 0.2s, transform 0.2s;
  cursor: pointer;
  z-index: 1010;
  user-select: none;
}

.popup-close:hover,
.popup-close:focus {
  color: var(--red);
  transform: scale(1.1);
  outline: none;
}

#popup-caption {
  margin-top: 16px;
  color: var(--ink-mid);
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-align: center;
  width: 100%;
  text-transform: uppercase;
  font-weight: 500;
}