:root {
  color-scheme: dark;
  --page: #080f1c;
  --surface: #0e192a;
  --text: #f4f8ff;
  --muted: #b2bfd2;
  --blue: #61b8ff;
  --line: #22344d;
  --brand-background: #051f36;
  --content: 1180px;
  --gutter: clamp(18px, 5vw, 72px);
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  background: var(--page);
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 {
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
}

:focus-visible { outline: 2px solid #b8e5ff; outline-offset: 5px; }

.shell { width: min(var(--content), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip-link {
  position: absolute;
  inset: 8px auto auto 8px;
  z-index: 2;
  padding: 12px;
  background: var(--surface);
  transform: translateY(calc(-100% - 12px));
}
.skip-link:focus { transform: none; }

.site-header {
  border-bottom: 1px solid #1b2b42;
  background: var(--brand-background);
}
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header-inner { min-height: 106px; }
.brand {
  display: block;
  flex: none;
  width: clamp(118px, 11vw, 144px);
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.24);
}
nav { display: flex; align-items: center; gap: clamp(10px, 2.2vw, 28px); margin-left: auto; }
nav a, .back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
nav a:hover, .back-link:hover { color: var(--text); }
.nav-contact { padding-inline: 13px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); }
.nav-contact:hover { border-color: var(--blue); }
.nav-vin { color: var(--blue); }
.nav-vin[aria-current="page"] { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.social-links { display: flex; gap: 6px; }
.social-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
}
.social-icon svg { display: block; width: 21px; height: 21px; }
a.social-icon:hover { border-color: var(--blue); color: var(--blue); }

.hero { position: relative; isolation: isolate; background: #030a17; border-bottom: 1px solid var(--line); }
.hero-inner { display: flex; align-items: center; min-height: clamp(490px, 42vw, 660px); padding-block: 60px; }
.hero-copy { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(3rem, 4.8vw, 4.875rem);
  line-height: 1.03;
  letter-spacing: -.055em;
  font-weight: 800;
}
.hero h1 span { display: block; color: var(--blue); }
.hero p { max-width: 36ch; margin-block: 22px 28px; color: #c2cede; font-size: 1.125rem; line-height: 1.6; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, #030a17 0%, rgb(3 10 23 / 94%) 21%, rgb(3 10 23 / 68%) 38%, transparent 65%);
}

.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: 7px;
  background: #3ea7ff;
  color: #041327;
  text-decoration: none;
  font-weight: 750;
  line-height: 1.3;
}
.button span { font-size: 1.15em; line-height: 1; }
.button:hover { background: #8accff; }
.button-phone {
  border: 1px solid #4a6888;
  background: #0e192a;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.button-phone:hover { border-color: var(--blue); background: #172941; }

.services { padding-block: clamp(46px, 6vw, 86px) 0; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 750; line-height: 1.1; letter-spacing: -.045em; }
.service-intro { margin-top: 12px; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
  margin: 25px 0 0;
  padding: 0;
}
.service {
  padding: clamp(20px, 2.4vw, 30px);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}
.icon {
  display: block;
  width: 24px;
  height: 24px;
  stroke: var(--blue);
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.service .icon { margin-bottom: 22px; }
.service h3 { font-size: 1.13rem; font-weight: 700; line-height: 1.3; }
.service-intro, .service p, .project p, .contact p { color: var(--muted); line-height: 1.6; }
.service p { margin-top: 9px; }

.work, .reviews, .faq, .contact { margin-top: clamp(46px, 6vw, 82px); }
.project { margin-top: 24px; }
.project h3 { font-size: 1.25rem; }
.project p { margin-top: 6px; }
.project-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
:is(.project, .gallery-grid) figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}
:is(.project, .gallery-grid) img { display: block; width: 100%; height: auto; }
:is(.project, .gallery-grid) figcaption { padding: 12px 16px; color: var(--muted); line-height: 1.5; }
.gallery-links { display: flex; flex-wrap: wrap; column-gap: 24px; }
.project-source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 6px;
  color: var(--blue);
  font-weight: 600;
  text-underline-offset: 3px;
}
.gallery-button { margin-top: 18px; }
.inner-page { padding-block: clamp(40px, 7vw, 88px); }
.inner-page h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.vin-panel {
  max-width: 720px;
  margin-top: 24px;
  padding: clamp(18px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}
.vin-panel p { max-width: 60ch; color: var(--muted); line-height: 1.6; }
.vin-panel p + p { margin-top: 12px; }
.vin-panel .button { margin-top: 20px; }
.gallery-section { margin-block: clamp(32px, 5vw, 62px); }
.gallery-section h2 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(245px, 100%), 1fr));
  gap: 14px;
  margin-top: 18px;
}
.gallery-image { display: block; }
.gallery-image:focus-visible { outline-offset: -4px; }
.gallery-grid img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #050b15;
}
.gallery-viewer {
  width: min(1000px, 100% - 24px);
  max-height: calc(100dvh - 24px);
  padding: clamp(10px, 2vw, 20px);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
}
.gallery-viewer::backdrop { background: rgb(0 0 0 / 82%); }
.viewer-controls { display: flex; gap: 8px; margin-bottom: 10px; }
.viewer-controls form { margin-left: auto; }
.viewer-controls button {
  min-width: 44px;
  min-height: 44px;
  padding-inline: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--page);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.viewer-controls button:hover { border-color: var(--blue); }
.gallery-viewer img {
  display: block;
  width: 100%;
  height: min(65dvh, 700px);
  object-fit: contain;
  background: #050b15;
}
.gallery-viewer p { margin-top: 10px; line-height: 1.5; }
.reviews-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 18px;
}
.reviews-heading .project-source { margin-top: 0; }
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.review-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}
.review-stars { color: #f9c968; letter-spacing: .12em; }
.review-card blockquote { margin: 0; line-height: 1.6; }
.review-card figcaption { margin-top: auto; color: var(--muted); font-size: .875rem; }
.faq-list {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}
.faq-list details + details { border-top: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 12px clamp(16px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--blue);
  background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
              linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
}
.faq-list details[open] summary::after { background-size: 14px 2px, 0 0; }
.faq-list summary:hover { color: var(--blue); }
.faq-list p {
  max-width: 75ch;
  padding: 0 clamp(16px, 3vw, 28px) 18px;
  color: var(--muted);
  line-height: 1.6;
}
.contact { margin-bottom: clamp(46px, 6vw, 82px); }
.contact-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: clamp(23px, 4vw, 48px);
  border: 1px solid #2b4668;
  border-radius: 10px;
  background: linear-gradient(120deg, #142b47, #0d192c 78%);
}
.contact p { max-width: 58ch; margin-top: 12px; }
.contact .contact-actions { flex: none; flex-direction: column; max-width: 100%; }
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--brand-background);
}
.footer-inner { min-height: 82px; }
.site-footer .brand { width: 110px; }
.back-link { gap: 8px; }

@media (max-width: 850px) {
  .hero-inner { min-height: 470px; }
  .hero-media::after {
    background: linear-gradient(90deg, #030a17 0%, rgb(3 10 23 / 90%) 30%, rgb(3 10 23 / 28%) 68%, transparent);
  }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 850px) {
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 12px;
    padding-block: 4px 8px;
  }
  .header-inner nav {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
  }
  .nav-contact { padding-inline: 10px; }
}

@media (max-width: 640px) {
  .hero-inner { min-height: auto; padding-block: 42px 14px; }
  .hero h1 { font-size: clamp(2.35rem, 8.5vw, 3.3rem); }
  .hero p { margin-block: 16px 22px; font-size: 1rem; }
  .hero-media { position: relative; height: clamp(200px, 65vw, 340px); }
  .hero-media::after {
    background: linear-gradient(180deg, #030a17, transparent 24%, transparent 88%, rgb(3 10 23 / 50%));
  }
  .project-photos { grid-template-columns: minmax(0, 1fr); }
  .review-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-panel { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
  .header-inner .nav-vin { flex-basis: 100%; }
  .button { gap: 10px; padding-inline: 14px; }
  .service-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .service .icon { margin-bottom: 14px; }
}
