:root {
  --bg: #0e1013;
  --bg-2: #14171c;
  --surface: #1a1e24;
  --surface-2: #222730;
  --line: #2a303a;
  --text: #eceef1;
  --muted: #a3abb8;
  --accent: #e0312f;
  --accent-2: #ff5a4f;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --maxw: 1180px;
  --head-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--muted); }
ul { margin: 0; padding: 0; list-style: none; }
.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.alt { background: var(--bg-2); }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px;
}
.lead { font-size: 1.12rem; max-width: 62ch; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.center { text-align: center; margin-inline: auto; }
.center .lead { margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s, background .2s, border-color .2s, box-shadow .2s;
  font-family: inherit;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 28px rgba(224, 49, 47, .35); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--head-h); z-index: 50;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.scrolled, .site-header.solid {
  background: rgba(14, 16, 19, .86); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .02em; }
.logo img { height: 40px; width: auto; border-radius: 8px; background: #fff; padding: 2px 4px; }
.logo span { font-size: .95rem; line-height: 1.1; }
.logo small { display: block; color: var(--muted); font-weight: 600; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: .94rem; color: #d3d7de; transition: color .2s, background .2s; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nav a[aria-current="page"] { color: #fff; background: var(--accent); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: rgba(255, 255, 255, .08); border-radius: 12px; cursor: pointer; color: #fff; }
.nav-toggle svg { width: 24px; height: 24px; margin: auto; }

@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: var(--head-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(14, 16, 19, .98); padding: 16px 20px 24px; border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 16px; font-size: 1.05rem; }
}

/* Hero */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--head-h) + 40px) 0 80px; isolation: isolate; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10, 11, 14, .94) 0%, rgba(10, 11, 14, .78) 45%, rgba(10, 11, 14, .35) 100%),
              linear-gradient(0deg, var(--bg) 0%, transparent 28%);
}
.hero h1 { max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--accent-2); }
.hero .lead { color: #c5cad3; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 28px; color: #d3d7de; font-weight: 600; font-size: .92rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--accent-2); }

.page-hero {
  position: relative; padding: calc(var(--head-h) + 70px) 0 70px;
  background: radial-gradient(900px 340px at 85% 0%, rgba(224, 49, 47, .22), transparent 70%), var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-bottom: 14px; }
.page-hero p { max-width: 60ch; font-size: 1.1rem; margin: 0; }

/* Features */
.grid { display: grid; gap: 22px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g3, .g2 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(224, 49, 47, .55); box-shadow: var(--shadow); }
.icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: rgba(224, 49, 47, .13); color: var(--accent-2);
}
.icon svg { width: 26px; height: 26px; }
.card p { margin: 0; font-size: .97rem; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--surface); padding: 36px 20px; text-align: center; }
.stat b { display: block; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: #fff; line-height: 1; margin-bottom: 8px; }
.stat b::after { content: "+"; color: var(--accent-2); }
.stat span { color: var(--muted); font-weight: 600; font-size: .92rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Services split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split + .split { margin-top: clamp(56px, 8vw, 100px); }
.split.rev .split-media { order: 2; }
.split-media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.split-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.split:hover .split-media img { transform: scale(1.04); }
.split-media .tag {
  position: absolute; left: 16px; top: 16px; background: var(--accent); color: #fff; font-weight: 800;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px;
}
.split-body .btn { margin-top: 10px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split.rev .split-media { order: 0; } }

.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip {
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: #d3d7de; font: 700 .9rem/1 inherit; font-family: inherit; cursor: pointer; transition: .2s;
}
.chip:hover { border-color: var(--accent-2); color: #fff; }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Product cards */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.product {
  position: relative; display: flex; flex-direction: column; text-align: left; padding: 0; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  color: inherit; font-family: inherit; transition: transform .25s, border-color .25s, box-shadow .25s;
}
.product:hover { transform: translateY(-5px); border-color: rgba(224, 49, 47, .6); box-shadow: var(--shadow); }
.product[hidden] { display: none; }
.product-img { aspect-ratio: 3 / 4; background: #fff; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s; }
.product:hover .product-img img { transform: scale(1.05); }
.product-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-cat { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.product h3 { font-size: 1.05rem; margin: 0; }
.product-more { margin-top: auto; padding-top: 10px; font-weight: 700; font-size: .88rem; color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.product-more svg { width: 16px; height: 16px; transition: transform .2s; }
.product:hover .product-more svg { transform: translateX(4px); }
.badge-photos {
  position: absolute; right: 12px; top: 12px; background: rgba(14, 16, 19, .8); backdrop-filter: blur(6px);
  border-radius: 999px; padding: 5px 11px; font-size: .75rem; font-weight: 700; display: flex; align-items: center; gap: 6px;
}
.badge-photos svg { width: 14px; height: 14px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 6, 8, .82); backdrop-filter: blur(6px); }
.modal-box {
  position: relative; width: min(100%, 1040px); max-height: calc(100svh - 40px); overflow: auto;
  display: grid; grid-template-columns: 1.05fr 1fr; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow); animation: pop .25s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal-gallery { background: #fff; display: flex; flex-direction: column; min-height: 320px; }
.modal-main { flex: 1; display: grid; place-items: center; padding: 16px; min-height: 360px; }
.modal-main img { max-height: 62svh; width: auto; max-width: 100%; object-fit: contain; }
.modal-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; background: #eef0f3; }
.modal-thumbs button { flex: 0 0 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #fff; cursor: pointer; opacity: .65; }
.modal-thumbs button.active { border-color: var(--accent); opacity: 1; }
.modal-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.modal-info { padding: 34px 32px; }
.modal-info h2 { font-size: 1.6rem; margin-bottom: 14px; }
.modal-info .price { display: inline-block; margin: 6px 0 18px; padding: 6px 14px; border-radius: 999px; background: rgba(224, 49, 47, .14); color: #ffb3ae; font-weight: 700; font-size: .85rem; }
.specs { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 10px; margin: 0 0 24px; }
.specs li { counter-increment: s; position: relative; padding-left: 34px; font-size: .92rem; color: #c3c9d3; line-height: 1.5; }
.specs li::before {
  content: counter(s); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface-2); color: var(--accent-2); font-size: .72rem; font-weight: 800; display: grid; place-items: center;
}
.modal-close {
  position: absolute; right: 12px; top: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: rgba(14, 16, 19, .85); color: #fff; cursor: pointer; display: grid; place-items: center;
}
.modal-close svg { width: 20px; height: 20px; }
.modal-nav { position: absolute; top: 40%; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(14, 16, 19, .75); color: #fff; cursor: pointer; display: grid; place-items: center; }
.modal-nav svg { width: 20px; height: 20px; }
.modal-nav.prev { left: 10px; } .modal-nav.next { right: 10px; }
.modal-gallery { position: sticky; top: 0; align-self: start; }
@media (max-width: 820px) { .modal-gallery { position: relative; } .modal-box { grid-template-columns: 1fr; } .modal-info { padding: 24px 22px 28px; } }
body.no-scroll { overflow: hidden; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; align-items: stretch; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { display: grid; gap: 16px; }
.contact-item { display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, transform .2s; }
a.contact-item:hover { border-color: var(--accent); transform: translateX(4px); }
.contact-item .icon { margin: 0; flex: none; }
.contact-item h3 { margin: 0 0 4px; font-size: 1rem; }
.contact-item p, .contact-item a { margin: 0; color: var(--muted); display: block; font-weight: 600; }
.contact-item a:hover { color: #fff; }
.map { min-height: 460px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); z-index: 1; }
.leaflet-container { font-family: inherit; }
.map-pin {
  width: 38px; height: 38px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--accent);
  border: 3px solid #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .45);
}

/* CTA band */
.cta {
  border-radius: 22px; padding: clamp(36px, 6vw, 70px); text-align: center;
  background: radial-gradient(600px 260px at 50% 0%, rgba(255, 90, 79, .32), transparent 70%), linear-gradient(135deg, #7d1614, #2a0d0d 80%);
  border: 1px solid rgba(255, 90, 79, .3);
}
.cta p { color: #f0d0cd; max-width: 56ch; margin-inline: auto; }
.cta .hero-cta { justify-content: center; margin: 24px 0 0; }

/* Footer */
.site-footer { background: #090a0c; border-top: 1px solid var(--line); padding: 64px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }
.site-footer h4 { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--muted); transition: color .2s; }
.site-footer a:hover { color: #fff; }
.site-footer p { font-size: .94rem; }
.foot-bottom { border-top: 1px solid var(--line); padding: 22px 0; font-size: .85rem; color: #7b8391; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}
