:root {
  --navy: #0a1628;
  --navy-2: #0f2040;
  --navy-3: #1a3f6f;
  --ink: #07101c;
  --orange: #e84c1e;
  --orange-hot: #ff6b3d;
  --gold: #f5a623;
  --cream: #f4f2ed;
  --muted: #9aa3b5;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f7f4ee;
  --radius: 12px;
  --max: 1180px;
  --header: 72px;
  --shadow: 0 18px 40px rgba(7, 16, 28, 0.35);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "DM Sans", "Segoe UI", sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--gold);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 2000;
}
.skip-link:focus { top: 12px; }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.top-bar {
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  padding: 9px 18px;
  letter-spacing: 0.02em;
}
.top-bar a { color: var(--gold); }
.top-bar a:hover { color: #fff; }
.top-bar span { color: var(--muted); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header);
  background: rgba(10, 22, 40, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  height: 100%;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex: 0 0 42px;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-text strong {
  color: var(--gold);
  letter-spacing: 0.18em;
  font-size: 13px;
}
.logo-text span {
  font-size: 12px;
  color: #fff;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  margin: 4px auto;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  display: block;
  padding: 8px 12px;
  color: #d7dce6;
  font-weight: 600;
  font-size: 15px;
  border-radius: 8px;
}
.main-nav a:hover,
.main-nav .active > a { color: #fff; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  border: 0;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-hot); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
}
.btn-ghost:hover { border-color: #fff; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { filter: brightness(1.08); }
.btn-nav { min-height: 42px; padding: 0 16px; margin-left: 8px; }

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 40px 0 64px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(10,22,40,0.88) 0%, rgba(10,22,40,0.55) 42%, rgba(10,22,40,0.28) 100%),
    url("../images/hero.jpg") center / cover no-repeat;
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 12ch;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
  display: inline-block;
  padding-bottom: 4px;
}
.hero-lead {
  margin: 18px 0 26px;
  max-width: 48ch;
  color: #d5dbe6;
  font-size: 1.05rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin-top: 26px;
  color: #c9d0dc;
  font-size: 14px;
  font-weight: 600;
}
.trust-row b { color: var(--gold); margin-right: 6px; }

.quote-card {
  background: rgba(7, 16, 28, 0.78);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 22px 24px;
  box-shadow: var(--shadow);
}
.quote-badge {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.quote-card h2 {
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.quote-card h2 em { color: var(--gold); font-style: italic; }
.quote-card > p { color: var(--muted); margin-bottom: 16px; font-size: 14px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 12px;
  font-weight: 700;
  color: #d7dce6;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: #12233d;
  border: 1px solid #2a3f5e;
  border-radius: 8px;
  padding: 11px 12px;
  color: #fff;
}
.field input::placeholder,
.field textarea::placeholder { color: #7f8aa0; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
.field textarea { min-height: 88px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #f5a623 50%), linear-gradient(135deg, #f5a623 50%, transparent 50%); background-position: calc(100% - 16px) 18px, calc(100% - 11px) 18px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.form-message { display: none; margin-top: 10px; font-size: 14px; font-weight: 600; }
.form-message.success { display: block; color: #8ee0b0; }
.form-message.error { display: block; color: #ff9b8a; }
.quote-card .btn { width: 100%; margin-top: 12px; }

.section { padding: 88px 0; }
.section-tight { padding: 64px 0; }
.section h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
}
.section h2 em { color: var(--gold); font-style: italic; }
.section-lead {
  margin-top: 12px;
  max-width: 60ch;
  color: var(--muted);
}

.services-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  margin-top: 36px;
}
.service-card {
  position: relative;
  min-height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #fff;
}
.service-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(7,16,28,0.88) 100%);
}
.service-card > * { position: relative; z-index: 1; }
.service-card.wide { grid-row: 1 / 3; min-height: 580px; }
.service-card h3 { font-size: 1.4rem; margin-bottom: 6px; }
.service-card p { color: #d5dbe6; max-width: 42ch; }
.service-card a {
  margin-top: 12px;
  color: var(--gold);
  font-weight: 700;
  width: fit-content;
}

.why {
  background: var(--navy-2);
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.why-list {
  display: grid;
  gap: 0;
}
.why-item {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.why-item:last-child { border-bottom: 1px solid var(--line); }
.why-item h3 { font-size: 1.1rem; margin-bottom: 4px; }
.why-item p { color: var(--muted); margin: 0; }
.years-panel {
  background: var(--ink);
  border-radius: 16px;
  padding: 36px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-image:
    linear-gradient(180deg, rgba(10,22,40,0.25), rgba(7,16,28,0.88)),
    url("../images/about-team.jpg");
  background-size: cover;
  background-position: center;
}
.years-panel strong {
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--gold);
}
.years-panel span { font-size: 1.2rem; font-weight: 700; }

.coverage { background: var(--navy); }
.city-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.city {
  background: var(--navy-2);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.reviews { background: var(--cream); color: var(--ink); }
.reviews h2 { color: var(--ink); }
.reviews h2 em { color: var(--orange); }
.review-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 18px;
  margin-top: 32px;
}
.review {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 12px 28px rgba(10, 22, 40, 0.08);
}
.review.featured { background: var(--navy); color: #fff; }
.stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 12px; }
.review blockquote {
  font-size: 1.05rem;
  line-height: 1.55;
  margin-bottom: 18px;
}
.review cite { font-style: normal; font-weight: 700; display: block; }
.review cite span { display: block; font-weight: 500; color: var(--muted); font-size: 14px; }
.review.featured cite span { color: #b7c0d0; }

.cta-band {
  background:
    linear-gradient(90deg, rgba(10,22,40,0.88), rgba(10,22,40,0.7)),
    url("../images/service-residential.jpg") center / cover;
  padding: 88px 0;
  text-align: left;
}
.cta-band p { color: #d5dbe6; margin: 12px 0 24px; max-width: 50ch; }

.page-hero {
  padding: 72px 0 36px;
  background:
    linear-gradient(90deg, rgba(10,22,40,0.9), rgba(10,22,40,0.65)),
    url("../images/hero.jpg") center / cover;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.page-hero p { color: #d5dbe6; max-width: 58ch; margin-top: 12px; }

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.split img { width: 100%; height: 420px; object-fit: cover; border-radius: 16px; }
.split p { color: #d5dbe6; }

.license-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}
.license-box div {
  background: var(--navy-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
}
.license-box dt { color: var(--gold); font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.license-box dd { font-weight: 700; }

.service-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.service-block {
  background: var(--navy-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}
.service-block h3 { margin-bottom: 8px; }
.service-block p { color: var(--muted); margin: 0; }

.faq-list { display: grid; gap: 0; margin-top: 28px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq-item button span { color: var(--gold); font-size: 1.4rem; line-height: 1; }
.faq-item .answer {
  display: none;
  color: #c9d0dc;
  padding: 0 0 20px;
  max-width: 70ch;
}
.faq-item.open .answer { display: block; }

.site-footer {
  background: #07101c;
  padding: 56px 0 24px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1.1fr;
  gap: 36px;
}
.site-footer h3 { color: var(--gold); font-size: 12px; letter-spacing: 0.16em; margin-bottom: 14px; }
.site-footer p, .site-footer a { color: #c5ccda; }
.site-footer a:hover { color: #fff; }
.footer-links { display: grid; gap: 8px; }
.contact-list { display: grid; gap: 10px; }
.contact-list a { display: flex; gap: 10px; align-items: flex-start; }
.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--gold);
  margin-top: 2px;
}
.legal-line {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.footer-bottom {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .logo-text span { display: none; }
  .top-bar { font-size: 12px; gap: 10px; }
}

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header);
    background: var(--ink);
    padding: 16px 20px 24px;
    border-bottom: 1px solid var(--line);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .btn-nav { margin: 8px 0 0; width: 100%; }
  .hero-inner,
  .services-grid,
  .why-grid,
  .review-grid,
  .split,
  .footer-grid,
  .service-list,
  .license-box,
  .form-grid { grid-template-columns: 1fr; }
  .service-card.wide { grid-row: auto; min-height: 320px; }
  .hero { min-height: auto; padding-top: 28px; }
  .hero h1 { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
