:root {
  --black: #06050a;
  --black-2: #101018;
  --panel: #171522;
  --panel-2: #201936;
  --purple: #7d22ff;
  --purple-2: #b657ff;
  --gold: #ffd21f;
  --white: #ffffff;
  --muted: #c8c4d4;
  --line: rgba(255, 255, 255, 0.13);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: rgba(6, 5, 10, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand img { width: 180px; }

.nav-toggle {
  justify-self: end;
  width: 46px;
  height: 46px;
  display: grid;
  place-content: center;
  gap: 5px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
}

.site-nav {
  display: none;
  grid-column: 1 / -1;
  gap: 8px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.site-nav.is-open { display: grid; }

.site-nav a,
.header-phone {
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.header-phone:hover,
.header-phone:focus-visible {
  color: var(--white);
  background: rgba(125, 34, 255, 0.22);
  outline: none;
}

.header-phone {
  display: none;
}

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 70px 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 8%, rgba(125, 34, 255, 0.5), transparent 28%),
    radial-gradient(circle at 82% 26%, rgba(255, 210, 31, 0.17), transparent 18%),
    linear-gradient(135deg, #06050a 0%, #151022 62%, #08060d 100%);
}

.hero-backdrop {
  position: absolute;
  inset: auto -18% 9% 22%;
  height: 210px;
  transform: skewY(-8deg);
  background: linear-gradient(90deg, transparent, rgba(125, 34, 255, 0.28), transparent);
  border-top: 1px solid rgba(255, 210, 31, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-content,
.hero-panel,
.section,
.site-footer {
  width: min(1160px, 100%);
  margin-inline: auto;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: min(520px, 100%);
  margin-bottom: 26px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p { overflow-wrap: anywhere; }

h1,
h2,
h3 {
  margin: 0;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-weight: 800;
  line-height: 0.98;
  text-transform: uppercase;
}

h1 {
  max-width: 860px;
  font-size: clamp(3rem, 14vw, 6.8rem);
}

h2 {
  max-width: 820px;
  font-size: clamp(2.2rem, 8vw, 4.2rem);
}

h3 {
  font-size: 1.55rem;
}

.hero-text {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  color: var(--white);
  box-shadow: 0 14px 30px rgba(125, 34, 255, 0.32);
}

.button.secondary,
.button.ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
  color: var(--white);
}

.hero-panel {
  position: relative;
  z-index: 1;
  padding: 22px;
  background: rgba(23, 21, 34, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel-line {
  display: block;
  width: 88px;
  height: 4px;
  margin-bottom: 18px;
  background: var(--gold);
}

.hero-panel h2 {
  font-size: clamp(1.8rem, 7vw, 3rem);
}

.hero-panel ul,
.expect-card ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.section {
  padding: 76px 20px;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading.split {
  display: grid;
  gap: 18px;
}

.service-grid,
.project-grid {
  display: grid;
  gap: 16px;
}

.service-grid article,
.project-card,
.expect-card,
.estimate-form,
.contact-info,
.success-panel {
  background: linear-gradient(180deg, rgba(32, 25, 54, 0.94), rgba(16, 16, 24, 0.98));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.service-grid article {
  padding: 22px;
  min-height: 210px;
}

.service-grid span {
  color: var(--gold);
  font-weight: 900;
}

.service-grid p,
.project-card p,
.about-copy p,
.contact-list,
.success-panel p {
  color: var(--muted);
}

.gallery-section {
  background:
    linear-gradient(180deg, rgba(125, 34, 255, 0.06), transparent),
    var(--black);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-button {
  min-height: 42px;
  padding: 9px 14px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.filter-button.is-active {
  color: var(--black);
  background: var(--gold);
}

.project-card {
  overflow: hidden;
}

.project-card button {
  width: 100%;
  padding: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.project-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--panel);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.project-card:hover .project-image img {
  transform: scale(1.04);
}

.project-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 9px;
  background: rgba(6, 5, 10, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 900;
}

.project-body {
  padding: 18px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.project-meta span {
  padding: 5px 8px;
  color: var(--gold);
  background: rgba(255, 210, 31, 0.1);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
}

.about-section,
.contact-section {
  display: grid;
  gap: 22px;
}

.expect-card,
.contact-info,
.estimate-form {
  padding: 24px;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.contact-list a {
  color: var(--white);
  font-weight: 900;
}

.estimate-form {
  display: grid;
  gap: 14px;
}

label {
  color: var(--white);
  font-weight: 900;
}

legend {
  padding: 0;
  color: var(--white);
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  margin-top: 7px;
  padding: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

input::placeholder,
textarea::placeholder {
  color: #888197;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--purple-2);
  outline: 3px solid rgba(125, 34, 255, 0.24);
}

.choice-field {
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 9px;
}

.choice-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-grid label {
  min-height: 48px;
  display: grid;
  place-items: center;
  position: relative;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.choice-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-grid span {
  width: 100%;
  padding: 11px 10px;
  text-align: center;
}

.choice-grid label:has(input:checked) {
  color: var(--black);
  background: var(--gold);
  border-color: var(--gold);
}

.choice-grid label:has(input:focus-visible) {
  outline: 3px solid rgba(125, 34, 255, 0.35);
}

.hidden-field {
  display: none;
}

.form-status {
  min-height: 28px;
  margin: 0;
  color: var(--gold);
  font-weight: 900;
}

.full {
  grid-column: 1 / -1;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 72px 18px 32px;
  background: rgba(0, 0, 0, 0.9);
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  max-height: 72vh;
  width: min(1060px, 100%);
  object-fit: contain;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  color: var(--white);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.lightbox-close {
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  font-size: 2rem;
}

.lightbox-nav {
  top: 50%;
  width: 46px;
  height: 64px;
  font-size: 2.5rem;
}

.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }

#lightbox-caption {
  margin: 14px 0 0;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  display: grid;
  gap: 24px;
  padding: 36px 20px;
  border-top: 1px solid var(--line);
}

.site-footer img {
  width: 220px;
}

.site-footer nav,
.footer-contact {
  display: grid;
  gap: 8px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
}

.success-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: radial-gradient(circle at 20% 20%, rgba(125, 34, 255, 0.42), transparent 30%), var(--black);
}

.success-panel {
  width: min(640px, 100%);
  padding: 30px;
  text-align: center;
}

.success-panel img {
  width: min(380px, 100%);
  margin: 0 auto 24px;
}

@media (min-width: 720px) {
  .hero,
  .section {
    padding-inline: 34px;
  }

  .hero {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .service-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-section,
  .contact-section {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }

  .estimate-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .choice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section-heading.split {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .site-footer {
    grid-template-columns: 1.1fr 0.7fr 1fr;
    align-items: start;
  }
}

@media (min-width: 1020px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    padding-inline: 28px;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    justify-content: center;
    grid-column: auto;
    padding: 0;
    background: transparent;
    border: 0;
  }

  .header-phone {
    display: inline-flex;
  }

  .service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  .brand img {
    width: 150px;
  }

  .button,
  .button-row {
    width: 100%;
  }

  .lightbox-nav {
    top: auto;
    bottom: 18px;
  }
}
