:root {
  --bg: #fff;
  --bg-alt: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --dark: #1c1c1e;
  --accent: #c8102e;
  --radius: 12px;
  --max: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font: 16px/1.6 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.lead { font-size: 1.2rem; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-block;
  padding: .75em 1.75em;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn:hover { background: #a60d26; border-color: #a60d26; }
.btn--outline { background: transparent; color: var(--accent); }
.btn--outline:hover { background: var(--accent); color: #fff; }
.btn--small { padding: .4em 1.1em; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e5e7;
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; }
.nav a:not(.btn):hover { color: var(--accent); }

.nav-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  margin: auto;
  background: var(--text);
  transition: transform .2s;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid #e5e5e7;
    display: none;
  }
  .nav.is-open { display: flex; }
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 64px);
  min-height: calc(100svh - 64px);
  color: #fff;
  text-align: center;
  background: var(--dark);
  overflow: hidden;
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.hero__content { position: relative; z-index: 1; }
.hero p { font-size: 1.25rem; margin-bottom: 1.5em; }

/* Sections */
.section { padding: 72px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: #fff; }
.section--dark .lead { color: #d1d1d6; }
.prose { max-width: 820px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split__img { width: 100%; border-radius: var(--radius); }
@media (max-width: 720px) { .split { grid-template-columns: 1fr; gap: 24px; } }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 32px; margin-top: 32px; }
.card { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.card__link { text-decoration: none; }
.card__img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--bg-alt); transition: transform .3s; }
.card__link:hover .card__img { transform: scale(1.02); }
.card__title { margin: 16px 0 4px; }
.card__text { margin: 0; color: var(--muted); }
.card .btn { margin-top: auto; }

/* Contact form */
.contact { padding: 72px 0; background: var(--dark) center / cover no-repeat; }
.form {
  max-width: 480px;
  margin-inline: auto;
  padding: 32px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}
.field { display: block; margin-bottom: 16px; }
.field span { display: block; margin-bottom: 4px; font-size: .9rem; font-weight: 600; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  padding: .7em .9em;
  border: 1px solid #c7c7cc;
  border-radius: 8px;
  font: inherit;
  background: #fff;
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.field input[aria-invalid="true"] { border-color: var(--accent); }
.hp { position: absolute; left: -9999px; }
.form .btn { width: 100%; }
.form .btn:disabled { opacity: .6; cursor: wait; }
.form__status { min-height: 1.6em; margin: 12px 0 0; text-align: center; font-size: .95rem; }
.form__status.is-ok { color: #1a7f37; }
.form__status.is-error { color: var(--accent); }

/* Product page */
.product { padding: 48px 0; }
.product__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.product__img { width: 100%; border-radius: var(--radius); }
.breadcrumbs { font-size: .9rem; color: var(--muted); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
@media (max-width: 720px) { .product__inner { grid-template-columns: 1fr; gap: 24px; } }

.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.spec h2 { font-size: 1.4rem; }
.spec li { padding: 8px 0; border-bottom: 1px solid #dcdce0; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 24px; }
.gallery a { display: block; overflow: hidden; border-radius: var(--radius); }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox { width: 100%; max-width: none; height: 100%; max-height: none; padding: 0; border: 0; background: rgba(0, 0, 0, .92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox__img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.lightbox__btn {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .3); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; }
.lightbox__next { right: 16px; top: 50%; }

/* Footer */
.site-footer { padding: 32px 0; background: var(--dark); color: #aeaeb2; text-align: center; font-size: .9rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
