:root {
  --night: #061421;
  --deep: #09253a;
  --cyan: #3dd9f5;
  --signal: #ff365f;
  --paper: #f5f8fa;
  --ink: #0a1b28;
  --muted: #61727e;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}
a { color: inherit; }
h1, h2, p { margin-top: 0; }
h1, h2 { letter-spacing: -.045em; line-height: 1.02; }

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--night);
}
.hero__image {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4,16,27,.98) 5%, rgba(4,16,27,.78) 48%, rgba(4,16,27,.34)), url("assets/electrician.jpg") center / cover no-repeat;
  transform: scale(1.03);
}
.hero__grid {
  position: absolute;
  inset: 0;
  opacity: .11;
  background-image: linear-gradient(rgba(61,217,245,.28) 1px, transparent 1px), linear-gradient(90deg, rgba(61,217,245,.28) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, #000, transparent 74%);
}
.topbar {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  width: min(1180px, calc(100% - 3rem));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.brand { width: 176px; }
.brand img { display: block; width: 100%; height: auto; filter: brightness(0) invert(1); }
.topbar__contact { font-weight: 800; letter-spacing: .04em; text-decoration: none; }
.topbar__contact:hover, .topbar__contact:focus-visible { color: var(--cyan); }
.hero__content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 8rem 0 5rem;
}
.eyebrow, .section-label {
  margin-bottom: 1rem;
  color: var(--signal);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
h1 { max-width: 970px; margin-bottom: 1.6rem; font-size: clamp(3.5rem, 8vw, 7.7rem); }
h1 span { color: var(--cyan); }
.hero__lead { max-width: 660px; margin-bottom: 2rem; color: #d7e4ec; font-size: clamp(1.12rem, 2vw, 1.4rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.button { display: inline-block; padding: .9rem 1.25rem; border: 2px solid transparent; text-decoration: none; font-weight: 800; }
.button--primary { background: var(--signal); color: var(--white); }
.button--primary:hover, .button--primary:focus-visible { background: #ff5475; }
.button--ghost { border-color: rgba(255,255,255,.65); }
.button--ghost:hover, .button--ghost:focus-visible { border-color: var(--cyan); color: var(--cyan); }
.scroll { position: absolute; z-index: 2; right: max(1.5rem, calc((100vw - 1180px) / 2)); bottom: 2rem; color: #c9d8e1; font-size: .85rem; text-decoration: none; }
.scroll span { color: var(--cyan); margin-right: .4rem; }

.intro {
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 9rem) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 9vw, 9rem);
}
.intro h2, .authorization h2, .contact h2 { font-size: clamp(2.5rem, 5vw, 4.8rem); }
.intro__copy .lead { color: var(--ink); font-size: 1.35rem; font-weight: 800; line-height: 1.45; }
.intro__copy p { color: var(--muted); }

.authorization {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  align-items: center;
  gap: clamp(2rem, 8vw, 8rem);
  padding: clamp(4.5rem, 9vw, 8rem) max(1.5rem, calc((100vw - 1180px) / 2));
  color: var(--white);
  background: var(--deep);
}
.authorization::before { content: ""; position: absolute; inset: 0; opacity: .12; background: radial-gradient(circle at 18% 40%, var(--cyan), transparent 30%), radial-gradient(circle at 82% 70%, var(--signal), transparent 28%); }
.authorization__number, .authorization__content { position: relative; }
.authorization__number { color: rgba(255,255,255,.06); font-size: clamp(8rem, 18vw, 17rem); font-weight: 900; line-height: .8; letter-spacing: -.09em; }
.authorization__number span { color: rgba(61,217,245,.22); font-size: .35em; letter-spacing: 0; }
.section-label--cyan { color: var(--cyan); }
.authorization__content p:not(.section-label) { max-width: 690px; color: #d3e0e7; font-size: 1.15rem; }
.authorization__content strong { color: var(--white); }
.authorization__note { padding-left: 1rem; border-left: 3px solid var(--signal); }

.contact {
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 9rem) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 9vw, 9rem);
}
.contact__phone { display: inline-block; margin-top: 1.5rem; color: var(--signal); font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; text-decoration: none; }
.contact__people { border-top: 1px solid #bac6cd; }
.person { display: flex; justify-content: space-between; gap: 2rem; padding: 1.2rem 0; border-bottom: 1px solid #bac6cd; text-decoration: none; }
.person span { color: var(--muted); }
.person strong { text-align: right; }
.person:hover strong, .person:focus-visible strong { color: var(--signal); }

footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 3rem;
  padding: 3rem max(1.5rem, calc((100vw - 1180px) / 2));
  color: var(--white);
  background: var(--night);
}
.footer__brand img { display: block; width: 150px; height: auto; filter: brightness(0) invert(1); }
.group { text-align: right; font-size: .88rem; }
.group p { margin: 0 0 .45rem; color: #8da4b3; }
.group nav { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; }
.group a:hover, .group a:focus-visible { color: var(--cyan); }

@media (max-width: 760px) {
  .hero { min-height: 680px; }
  .hero__image { background-position: 62% center; }
  .topbar, .hero__content, .intro, .contact { width: min(100% - 2rem, 1180px); }
  .brand { width: 140px; }
  .hero__content { padding-top: 7rem; }
  h1 { font-size: clamp(3rem, 14vw, 5rem); }
  .scroll { display: none; }
  .intro, .authorization, .contact { grid-template-columns: 1fr; gap: 2.5rem; }
  .authorization__number { position: absolute; top: 2rem; right: 1rem; }
  .person { display: block; }
  .person strong { display: block; text-align: left; }
  footer { align-items: flex-start; flex-direction: column; }
  .group { text-align: left; }
  .group nav { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
