/* Design tokens */
:root {
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --bg: #eef1f6;
  --bg-elevated: #ffffff;
  --text: #12151c;
  --text-muted: #5c6578;
  --line: rgba(18, 21, 28, 0.08);
  --accent: #c8102e;
  --accent-hover: #a30d25;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 40px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 72px;
  --topbar-h: 40px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  padding-bottom: 0;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

/* Top bar */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  min-height: var(--topbar-h);
  padding: 0.35rem 1.25rem;
  background: linear-gradient(90deg, #0f1419 0%, #1a2332 50%, #0f1419 100%);
  color: #c8d0e0;
  font-size: 0.875rem;
}

.top-bar__label {
  opacity: 0.85;
}

.top-bar__phone {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.top-bar__phone:hover {
  color: #f0f4ff;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding-block: 0.5rem;
}

.brand img {
  max-height: 40px;
  max-width: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.5rem;
}

.site-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
}

.site-nav a:not(.site-nav__cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.site-nav a:not(.site-nav__cta):hover::after {
  width: 100%;
}

.site-nav__cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.55rem 1.1rem !important;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.site-nav__cta:hover {
  background: var(--accent-hover);
  color: #fff !important;
}

.site-nav__cta::after {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin-inline: auto;
}

/* Hero */
.hero {
  position: relative;
}

.hero__carousel {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero__track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.33, 1, 0.68, 1);
  will-change: transform;
}

.hero__slide {
  margin: 0;
  flex: 0 0 100%;
  position: relative;
}

.hero__slide img {
  width: 100%;
  height: min(58vh, 520px);
  object-fit: cover;
  display: block;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 12, 20, 0.15) 0%,
    rgba(8, 12, 20, 0.55) 55%,
    rgba(8, 12, 20, 0.85) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 2rem 0 5rem;
  pointer-events: none;
}

.hero__content {
  pointer-events: auto;
  color: #fff;
}

.hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.9;
}

.hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  max-width: 18ch;
}

.hero__lead {
  margin: 0 0 1.5rem;
  max-width: 42ch;
  font-size: 1.05rem;
  opacity: 0.92;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(200, 16, 46, 0.35);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.hero__controls {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 5;
}

.hero__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: background 0.2s ease;
}

.hero__btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

.hero__btn--prev::before,
.hero__btn--next::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: auto;
  border: 2px solid #fff;
  border-bottom: none;
  border-right: none;
}

.hero__btn--prev::before {
  transform: rotate(-45deg) translate(2px, 0);
}

.hero__btn--next::before {
  transform: rotate(135deg) translate(-2px, 0);
}

.hero__dots {
  display: flex;
  gap: 8px;
}

.hero__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero__dots button[aria-current="true"] {
  background: #fff;
  transform: scale(1.25);
}

/* Main sections */
.main {
  padding-block: 3rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.section {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.section__head--left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.section__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 700;
}

.section__intro {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section__footnote {
  margin: 2rem 0 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Media row */
.media-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.media-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.media-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.media-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* Prose */
.prose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.prose-grid--single {
  grid-template-columns: 1fr;
  max-width: 820px;
  margin-inline: auto;
}

.prose-card {
  background: linear-gradient(145deg, #f8fafc 0%, #fff 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
}

.prose-card--accent {
  background: linear-gradient(160deg, #fff5f5 0%, #fff 55%);
  border-color: rgba(200, 16, 46, 0.12);
}

.prose-card h3 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
}

.prose-card__sub {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.prose-card p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
}

.prose-card p:last-child {
  margin-bottom: 0;
}

.prose-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.prose-list li {
  margin-bottom: 0.85rem;
}

.prose-list li:last-child {
  margin-bottom: 0;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.product-tile {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.product-tile:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.product-tile--wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: stretch;
}

.product-tile--wide .product-tile__media {
  flex: 0 0 42%;
  max-width: 420px;
}

.product-tile--wide .product-tile__media img {
  height: 100%;
  min-height: 200px;
}

.product-tile--wide .product-tile__body {
  flex: 1;
  align-self: center;
  padding: 1.5rem 2rem;
}

.product-tile__media {
  background: #0f1419;
  aspect-ratio: 16 / 10;
}

.product-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-tile__body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.product-tile__body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.product-tile__body p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.contact-block {
  font-style: normal;
  color: var(--text-muted);
}

.contact-block p {
  margin: 0 0 1rem;
}

.contact-block a {
  font-weight: 600;
}

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  min-height: 360px;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
}

/* Footer */
.site-footer {
  background: #0c0f14;
  color: #9aa3b2;
  padding: 1.5rem 0;
  margin-top: 0;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.9rem;
}

.site-footer__social {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.site-footer__social a {
  display: flex;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-footer__social a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.site-footer__social img {
  filter: brightness(1.1);
}

/* Mobile */
@media (max-width: 900px) {
  .prose-grid {
    grid-template-columns: 1fr;
  }

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

  .product-tile--wide {
    flex-direction: column;
  }

  .product-tile--wide .product-tile__media {
    flex: none;
    max-width: none;
  }

  .product-tile--wide .product-tile__media img {
    min-height: 200px;
    aspect-ratio: 16 / 10;
  }
}

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

  .media-card img {
    height: 200px;
  }

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

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: calc(var(--topbar-h) + var(--header-h)) 0 auto 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: none;
    margin-top: 0.5rem;
    text-align: center;
  }

  .hero__slide img {
    height: min(48vh, 400px);
  }

  .hero__overlay {
    padding-bottom: 4.5rem;
  }

  .hero__title {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__track {
    transition: none;
  }

  .media-card:hover,
  .product-tile:hover {
    transform: none;
  }
}
