:root {
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --text: #0a0a0a;
  --muted: #6b7280;
  --line: #eaecef;
  --primary: #111827;
  --accent: #0a84ff;
  --radius: 16px;
  --container: 1180px;
}

body.theme-dark {
  --bg: #0b0f19;
  --bg-soft: #0f1626;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --line: #1e293b;
  --primary: #f8fafc;
  --accent: #3b82f6;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 calc(24px + env(safe-area-inset-left));
  padding-right: calc(24px + env(safe-area-inset-right));
}

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

.nav {
  position: sticky;
  top: 0;
  backdrop-filter: saturate(180%) blur(10px);
  background: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}

body.theme-dark .nav {
  background: rgba(11, 15, 25, 0.6);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand .dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
}

.links a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  opacity: 0.9;
  margin: 0 10px;
}

.links a:hover { opacity: 1; }

.links a.active {
  opacity: 1;
  position: relative;
}

.links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.toggle, .hamburger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
  background: transparent;
  color: inherit;
}

.hamburger { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: #111;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  transition: background 0.2s ease;
}

.btn.primary:hover,
.btn.primary:focus { background-color: #0056b3; }

body.theme-dark .btn.primary { background: #3b82f6; color: #fff; }
body.theme-dark .btn.primary:hover { background: #2563eb; }

.hero {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  font-weight: 700;
  line-height: 1.15;
  font-size: clamp(32px, 5.2vw, 54px);
  margin: 6px 0 12px;
  color: var(--primary);
}

.lead {
  font-size: clamp(16px, 2.4vw, 19px);
  color: var(--muted);
  max-width: 56ch;
}

.hero-ctas {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-photo {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.hero-photo img { width: 100%; height: auto; object-fit: cover; display: block; }

section { padding: 80px 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 26px;
}

.section-head h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  margin: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.card {
  grid-column: span 4;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: var(--accent);
}

.card img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 6px;
}

.card h3 { margin: 14px 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }

.feature-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
  background: var(--bg-soft);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--line);
}

.feature img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--line);
}

.list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

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

.tile {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.map-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-actions { margin-top: 12px; }

footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  color: #6b7280;
}

@media (max-width: 980px) {
  .hero-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .card { grid-column: span 12; }
  .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .links {
    display: none;
    position: absolute;
    top: 64px;
    right: 12px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
    min-width: 180px;
  }

  .links a {
    display: block;
    padding: 8px 6px;
    margin: 2px 0;
  }

  .hamburger { display: inline-flex; align-items: center; gap: 6px; }
  .nav-inner { position: relative; }
  .links.open { display: block; }
}

@media (max-width: 600px) {
  .nav-inner { height: 56px; }
  .hero { padding: 72px 0; }
  .feature-grid { padding: 24px; }
  .btn { padding: 10px 14px; }
  .section-head { margin-bottom: 18px; }
}

@keyframes pageFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
body {
  animation: pageFade .5s ease both;
  will-change: opacity;
}

@keyframes navDrop {
  from { transform: translateY(-8px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.nav {
  animation: navDrop .5s cubic-bezier(.22,.61,.36,1) .05s both;
  will-change: transform, opacity;
}

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

.hero-grid > *:first-child {
  animation: rise .6s ease .10s both;
  will-change: transform, opacity;
}

.hero-photo {
  animation: fadeIn .6s ease .18s both;
  will-change: opacity;
}

.cards .card {
  animation: rise .5s ease both;
  will-change: transform, opacity;
}
.cards .card:nth-child(3n+1) { animation-delay: .12s; }
.cards .card:nth-child(3n+2) { animation-delay: .20s; }
.cards .card:nth-child(3n+3) { animation-delay: .28s; }

.feature-grid {
  animation: rise .6s ease .16s both;
  will-change: transform, opacity;
}

.contact-grid .tile { animation: fadeIn .5s ease .22s both; }
.map-container       { animation: fadeIn .5s ease .26s both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
