:root {
  --bg: #07140d;
  --bg-deep: #030906;
  --surface: #0d2015;
  --surface-2: #12301f;
  --line: rgba(255, 255, 255, 0.12);
  --line-dark: rgba(7, 20, 13, 0.14);
  --text: #f5f7f5;
  --muted: #a8b4ac;
  --green: #50c878;
  --green-strong: #50c878;
  --green-soft: #50c878;
  --max: 1240px;
  --page-pad: clamp(20px, 4vw, 64px);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
button,
input,
textarea {
  font: inherit;
}
:focus-visible {
  outline: 2px solid var(--green-soft);
  outline-offset: 3px;
}

.shell {
  width: min(calc(100% - (var(--page-pad) * 2)), var(--max));
  margin-inline: auto;
}
.eyebrow {
  color: var(--green-soft);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 700;
}
.section-light .eyebrow {
  color: #030906;
}
.muted {
  color: var(--muted);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 9, 6, 0.72);
  backdrop-filter: blur(18px);
}
.header-inner {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #dce6df;
  font-size: 0.94rem;
}
.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
  color: var(--green-soft);
}
.nav-cta {
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--green);
  color: #041008 !important;
  font-weight: 800;
}
.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
  border-radius: 12px;
  padding: 9px 12px;
}

.hero {
  min-height: 100svh;
  display: grid;
  align-items: end;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 124px 0 56px;
  background: var(--bg-deep);
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(7, 20, 13, 0.32);
  color: var(--green-soft);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}
.scroll-cue:hover,
.scroll-cue:focus-visible {
  transform: translateX(-50%) translateY(2px);
  border-color: rgba(80, 200, 120, 0.7);
  background: rgba(80, 200, 120, 0.12);
}
.scroll-cue span {
  display: inline-block;
  font-size: 1.25rem;
  line-height: 1;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  background-image: url("../../../gazel/assets/images/hero-gazelle.webp");
  background-size: cover;
  background-position: center 48%;
  transform: scale(1.01);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      90deg,
      rgba(3, 9, 6, 0.96) 0%,
      rgba(3, 9, 6, 0.8) 40%,
      rgba(3, 9, 6, 0.28) 70%,
      rgba(3, 9, 6, 0.44) 100%
    ),
    linear-gradient(
      180deg,
      rgba(3, 9, 6, 0.15),
      rgba(3, 9, 6, 0.05) 60%,
      rgba(3, 9, 6, 0.7)
    );
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 70%, var(--bg-deep));
}
.hero-grid {
  display: block;
}
.hero-copy {
  max-width: 780px;
}
.hero h1 {
  margin: 14px 0 20px;
  font-size: clamp(3.1rem, 6vw, 7.2rem);
  line-height: 0.91;
  letter-spacing: -0.033em;
  max-width: 10ch;
}
.hero p {
  max-width: 650px;
  margin: 0;
  color: #d1dbd4;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 800;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}
.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(134, 239, 172, 0.55);
}
.btn-primary {
  background: var(--green);
  color: #041008;
  border-color: transparent;
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}
.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 38px;
  max-width: 760px;
}
.hero-fact {
  padding: 18px 14px 0 0;
}
.hero-fact strong {
  display: block;
  font-size: 1.3rem;
}
.hero-fact span {
  color: #b7c4bb;
  font-size: 0.86rem;
}

.section {
  padding: clamp(28px, 4vw, 72px) 0;
}
.section-dark {
  background: var(--bg);
}
.section-light {
  background: #edf3ef;
  color: #07140d;
}
.section-head {
  display: grid;
  grid-template-columns: 0.3fr 1.3fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 42px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(2.5rem, 5.3vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 660px;
}
.section-light .section-head p {
  color: #4b5b51;
}
.section-action {
  margin-top: 28px;
}
.section-light .btn {
  border-color: var(--line-dark);
}

.service-list {
  border-top: 1px solid var(--line);
}
.service-row {
  display: grid;
  grid-template-columns: 84px 1fr 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.service-row .num {
  color: var(--green-soft);
  font-variant-numeric: tabular-nums;
}
.service-row h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2.2rem);
}
.service-row p {
  margin: 0;
  color: var(--muted);
}
.arrow {
  color: var(--green-soft);
  font-size: 1.4rem;
}
.section-light .service-list {
  border-color: var(--line-dark);
}
.section-light .service-row {
  border-color: var(--line-dark);
}
.section-light .service-row .num,
.section-light .arrow {
  color: #030906;
}
.section-light .service-row p {
  color: #4b5b51;
}

.case-feature {
  min-height: 46svh;
  display: grid;
  align-items: end;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-image: url("../../../gazel/assets/images/project-workshop.webp");
  background-size: cover;
  background-position: center;
}
.case-feature.project-visual {
  background-image: url("../../../gazel/assets/images/project-engine.webp");
}
.case-feature.vq-visual {
  background-image: url("../../../gazel/assets/images/vq35de.webp");
  background-position: center 42%;
}
.case-feature.about-visual {
  background-image: url("../../../gazel/assets/images/project-service.webp");
}
.case-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(3, 9, 6, 0.92) 0%,
      rgba(3, 9, 6, 0.64) 46%,
      rgba(3, 9, 6, 0.16) 80%
    ),
    linear-gradient(180deg, rgba(3, 9, 6, 0.1), rgba(3, 9, 6, 0.78));
}
.case-copy {
  position: relative;
  z-index: 1;
  padding-block: 100px 60px;
  max-width: 780px;
}
.case-copy h2 {
  margin: 12px 0 20px;
  font-size: clamp(3rem, 6vw, 6.3rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}
.case-copy p {
  color: #d0dbd3;
  max-width: 650px;
}
.case-copy .stats {
  margin-top: 32px;
  max-width: 900px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}
.case-copy .stat {
  background: rgba(7, 20, 13, 0.62);
  min-height: 140px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: var(--surface);
  padding: 34px;
  min-height: 180px;
}
.stat strong {
  display: block;
  font-size: clamp(2.3rem, 5vw, 4.7rem);
  letter-spacing: -0.05em;
}
.stat span {
  color: var(--muted);
}

.steps {
  counter-reset: steps;
  border-top: 1px solid var(--line);
}
.step {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 86px 1fr 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.step::before {
  content: "0" counter(steps);
  color: var(--green-soft);
}
.step h3,
.step p {
  margin: 0;
}
.step p {
  color: var(--muted);
}

.cta-band {
  padding: clamp(72px, 10vw, 140px) 0;
  background: var(--green);
  color: #041008;
}
.cta-band .shell {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: end;
}
.cta-band h2 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 6.2rem);
  line-height: 0.93;
  letter-spacing: -0.05em;
}
.cta-band p {
  margin: 0 0 24px;
  max-width: 560px;
}
.cta-band .btn {
  border-color: rgba(4, 16, 8, 0.22);
}
.cta-band .form-note {
  color: rgba(4, 16, 8, 0.72);
}

.page-hero {
  min-height: 72svh;
  display: grid;
  align-items: end;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 120px 0 42px;
  border-bottom: 1px solid var(--line);
  background-size: cover;
  background-position: center;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(3, 9, 6, 0.95) 0%,
      rgba(3, 9, 6, 0.72) 48%,
      rgba(3, 9, 6, 0.2) 82%
    ),
    linear-gradient(180deg, rgba(3, 9, 6, 0.18), rgba(3, 9, 6, 0.72));
}
.page-hero > .shell {
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  margin: 12px 0 18px;
  font-size: clamp(3rem, 6vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  max-width: 12ch;
}
.page-hero p {
  max-width: 720px;
  color: #d0dbd3;
  font-size: 1.08rem;
}
.services-hero {
  background-image: url("../../../gazel/assets/images/project-workshop.webp");
}
.projects-hero {
  background-image: url("../../../gazel/assets/images/project-engine.webp");
}
.vq-page-hero {
  background-image: url("../../../gazel/assets/images/vq35de.webp");
  background-position: center 42%;
}
.registration-hero {
  background-image: url("../../../gazel/assets/images/project-service.webp");
}
.about-hero {
  background-image: url("../../../gazel/assets/images/hero-gazelle.webp");
}
.contact-hero {
  background-image: url("../../../gazel/assets/images/project-service.webp");
}

.page-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.page-item {
  background: var(--surface);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.page-item h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3.1rem);
}
.page-item p {
  margin: 0;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.contact-card strong {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.form-grid {
  display: grid;
  gap: 14px;
}
.field {
  display: grid;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 700;
}
.field input,
.field textarea,
.form-grid > input,
.form-grid > textarea {
  width: 100%;
  color: var(--text);
  background: #08130d;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 15px;
}
.field textarea,
.form-grid > textarea {
  min-height: 140px;
  resize: vertical;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  line-height: 1.4;
}
.consent input {
  margin-top: 3px;
}
.consent a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-note {
  color: var(--muted);
  font-size: 0.84rem;
}

.faq-list {
  border-top: 1px solid var(--line);
}
.faq-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.faq-item h2 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
}
.faq-item p {
  margin: 0;
  color: var(--muted);
  max-width: 760px;
}
.prose {
  max-width: 820px;
}
.prose h2 {
  margin-top: 42px;
}
.prose p,
.prose li {
  color: var(--muted);
}

.site-footer {
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  color: var(--muted);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--green-soft);
}

@media (max-width: 980px) {
  .nav {
    display: none;
    position: absolute;
    top: 74px;
    left: var(--page-pad);
    right: var(--page-pad);
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #07140df5;
    flex-direction: column;
    align-items: stretch;
  }
  .nav.is-open {
    display: flex;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .section-head,
  .cta-band .shell,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .service-row {
    grid-template-columns: 48px 1fr auto;
  }
  .service-row p {
    grid-column: 2 / -1;
  }
  .step {
    grid-template-columns: 54px 1fr;
  }
  .step p {
    grid-column: 2;
  }
  .page-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  :root {
    --page-pad: 18px;
    --radius: 16px;
  }
  .header-inner {
    height: 66px;
  }
  .nav {
    top: 66px;
  }
  .hero {
    padding: 104px 0 34px;
  }
  .hero-media {
    background-position: 66% center;
  }
  .hero h1 {
    max-width: 11ch;
  }
  .hero::before {
    background: linear-gradient(
      180deg,
      rgba(3, 9, 6, 0.5),
      rgba(3, 9, 6, 0.9) 72%
    );
  }
  .hero-facts,
  .stats {
    grid-template-columns: 1fr;
  }
  .hero-fact {
    padding-bottom: 14px;
  }
  .service-row {
    grid-template-columns: 38px 1fr;
    gap: 16px;
  }
  .service-row .arrow {
    display: none;
  }
  .page-hero {
    padding: 120px 0 36px;
    min-height: 82svh;
  }
  .page-hero::before {
    background: linear-gradient(
      180deg,
      rgba(3, 9, 6, 0.48),
      rgba(3, 9, 6, 0.92) 72%
    );
  }
  .page-hero h1 {
    max-width: 11ch;
  }
  .case-copy {
    padding-block: 72px 34px;
  }
  .case-feature::before {
    background: linear-gradient(
      180deg,
      rgba(3, 9, 6, 0.32),
      rgba(3, 9, 6, 0.92) 68%
    );
  }
  .footer-inner {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
