/* Critical above-the-fold styles — keep small */
:root {
  --primary: #1f1f1f;
  --primary-dark: #141414;
  --secondary: #b91c1c;
  --accent: #dc2626;
  --accent-hover: #b91c1c;
  --text: #1f1f1f;
  --muted: #6b6b6b;
  --background: #ffffff;
  --surface: #ffffff;
  --border: #e5e5e5;
  --light: #f5f5f5;
  --danger: #991b1b;
  --focus: #dc2626;
  --radius: 10px;
  --shadow: 0 8px 28px rgba(20, 20, 20, 0.1);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 68px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--secondary); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--primary); }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 0; }
.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.container.narrow { --max: 760px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--primary);
  text-decoration: none;
}
.logo-mark { color: var(--primary); display: flex; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-top { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; }
.logo-bottom { font-size: 0.95rem; font-weight: 800; letter-spacing: 0.04em; }

.nav-desktop { display: none; }
.nav-desktop ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-desktop a {
  display: block;
  padding: 0.45rem 0.7rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 6px;
}
.nav-desktop a:hover,
.nav-desktop a.is-active {
  background: var(--light);
  color: var(--primary);
}

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.header-phone {
  display: none;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-sm { padding: 0.45rem 0.8rem; font-size: 0.85rem; }
.btn-lg { padding: 0.9rem 1.35rem; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); color: #fff; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-light { background: rgba(255,255,255,0.92); color: var(--primary); }
.btn-light:hover { background: #fff; color: var(--primary-dark); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--primary); }
.btn-outline:hover { border-color: var(--primary); }
.btn-ghost { background: transparent; color: var(--primary); }

.hero {
  position: relative;
  min-height: min(92vh, 760px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media picture,
.hero-media img {
  width: 100%;
  height: 100%;
  display: block;
}
.hero-media img {
  object-fit: cover;
  transform: scale(1.04);
  animation: hero- ken 18s ease-out forwards;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.78) 42%, rgba(10,10,10,0.35) 72%, rgba(10,10,10,0.55) 100%),
    linear-gradient(180deg, rgba(10,10,10,0.2) 0%, rgba(10,10,10,0.75) 100%);
}
.hero-glow {
  position: absolute;
  left: -10%;
  bottom: -20%;
  width: min(70vw, 560px);
  height: min(70vw, 560px);
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle, rgba(220,38,38,0.28) 0%, rgba(220,38,38,0) 68%);
  animation: hero-pulse 7s ease-in-out infinite;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 0 3.25rem;
  max-width: 38rem;
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin-left: 0;
}
.hero-brand {
  margin: 0 0 0.9rem;
  font-size: clamp(1.55rem, 5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
  animation: hero-rise 0.7s ease-out both;
}
.hero-brand::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 3px;
  margin-top: 0.85rem;
  background: var(--accent);
  animation: hero-line 0.8s 0.25s ease-out both;
}
.hero h1 {
  margin: 0 0 0.95rem;
  font-size: clamp(2rem, 6vw, 3.35rem);
  line-height: 1.08;
  font-weight: 800;
  max-width: 12ch;
  letter-spacing: -0.02em;
  animation: hero-rise 0.75s 0.12s ease-out both;
}
.hero-lead {
  margin: 0 0 1.75rem;
  font-size: clamp(1.05rem, 2.4vw, 1.22rem);
  line-height: 1.55;
  max-width: 34ch;
  color: rgba(255,255,255,0.88);
  animation: hero-rise 0.75s 0.22s ease-out both;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: hero-rise 0.75s 0.32s ease-out both;
}
.hero-cta .btn-lg {
  min-height: 3.1rem;
  padding-inline: 1.45rem;
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
}
.hero-cta .btn-accent {
  border: 1px solid transparent;
}
.hero-cta .btn-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.55);
}
.hero-cta .btn-light:hover {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes hero-line {
  from {
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;
  }
  to {
    opacity: 1;
    transform: scaleX(1);
    transform-origin: left center;
  }
}
@keyframes hero-ken {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}
@keyframes hero-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img,
  .hero-glow,
  .hero-brand,
  .hero-brand::after,
  .hero h1,
  .hero-lead,
  .hero-cta {
    animation: none !important;
  }
  .hero-media img { transform: none; }
}

@media (min-width: 860px) {
  .nav-desktop { display: block; }
  .menu-toggle { display: none; }
  .header-phone { display: inline-flex; }
  .hero { align-items: center; }
  .hero-content {
    padding: 5.5rem 0 5.5rem 1.5rem;
    max-width: 42rem;
  }
  .hero-brand { font-size: clamp(1.9rem, 3.2vw, 2.55rem); }
}
