:root {
  --bg: #f6f4ee;
  --surface: #ffffff;
  --surface-soft: #f1eee6;
  --ink: #17221f;
  --muted: #65716c;
  --dark: #102820;
  --dark-2: #17362c;
  --accent: #a76539;
  --gold: #d7a74b;
  --green: #118c7c;
  --line: #ded8cd;
  --container: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

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

@media (prefers-reduced-motion: no-preference) {
  .anim-ready .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity .7s ease,
      transform .7s ease,
      border-color .25s ease,
      background-color .25s ease;
  }

  .anim-ready .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .anim-ready .reveal[data-reveal-delay="1"] {
    transition-delay: .08s;
  }

  .anim-ready .reveal[data-reveal-delay="2"] {
    transition-delay: .16s;
  }

  .anim-ready .reveal[data-reveal-delay="3"] {
    transition-delay: .24s;
  }
}

.service-shell {
  min-height: 100vh;
}

.service-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 72px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.service-header__inner {
  width: min(var(--container), calc(100% - 64px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 330px 1fr 260px;
  gap: 34px;
  align-items: center;
}

.service-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.service-brand__mark {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
}

.service-brand__text strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.08;
  font-weight: 800;
}

.service-brand__text small,
.service-phone small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.service-nav {
  display: flex;
  justify-content: center;
  gap: 38px;
  color: #5d6864;
  font-size: 14px;
  font-weight: 600;
}

.service-nav a {
  white-space: nowrap;
}

.service-nav a:hover,
.service-nav a[aria-current="page"] {
  color: var(--accent);
}

.service-phone {
  text-align: right;
}

.service-phone strong {
  display: block;
  color: #111916;
  font-size: 19px;
  line-height: 1;
  font-weight: 800;
}

.services-subnav {
  position: sticky;
  top: 72px;
  z-index: 9;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.services-subnav__inner {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  padding: 0;
}

.services-subnav a {
  flex: 1 1 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 13px;
  background: var(--surface-soft);
  border: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
}

.services-subnav a:hover {
  background: var(--dark);
  color: #fff;
}

.section {
  padding: 92px 0;
}

.section--white {
  background: var(--surface);
}

.section--soft {
  background: #f8f7f3;
}

.section--dark {
  background: var(--dark);
  color: #f7f4ea;
}

.hero + .section {
  padding-top: 42px;
}

.container {
  width: min(var(--container), calc(100% - 64px));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.section-title,
.page-hero h1 {
  margin: 0;
  color: inherit;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.16;
  letter-spacing: 0;
  font-weight: 700;
  text-transform: none;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  color: inherit;
  font-size: clamp(27px, 3.15vw, 44px);
  line-height: 1.22;
  letter-spacing: 0;
  font-weight: 700;
  text-transform: none;
}

.section-title {
  max-width: 920px;
  font-size: clamp(28px, 3vw, 40px);
}

.lead,
.copy p,
.service-card p,
.contact-list p,
.step p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.hero {
  min-height: 680px;
  position: relative;
  overflow: hidden;
  color: #f7f4ea;
  background:
    linear-gradient(90deg, rgba(12, 39, 32, .96), rgba(12, 39, 32, .76), rgba(12, 39, 32, .2)),
    url("assets/hero/gpa-engine-hero.png") center right / cover no-repeat;
}

.hero__inner {
  width: min(var(--container), calc(100% - 64px));
  min-height: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 540px;
  gap: 56px;
  align-items: start;
  padding: 92px 0 70px;
}

.hero .lead {
  max-width: 720px;
  color: #f4efe4;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: 14px;
  font-weight: 900;
}

.btn--primary {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.btn--ghost {
  background: rgba(255, 255, 255, .06);
  color: #fff;
}

.hero-facts {
  align-self: end;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(16, 40, 32, .82);
}

.hero-facts__item {
  padding: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.hero-facts__item:last-child {
  border-bottom: 0;
}

.hero-facts strong,
.number {
  display: block;
  color: var(--gold);
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}

.hero-facts span {
  display: block;
  margin-top: 10px;
  color: #fff;
  line-height: 1.45;
}

.benefits-grid,
.services-grid,
.metrics-grid,
.contacts-grid {
  display: grid;
  gap: 18px;
}

.benefits-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 42px;
}

.benefit-card {
  min-height: 178px;
  padding: 24px;
  background: var(--surface-soft);
  border-left: 4px solid var(--green);
}

.benefit-card,
.service-card,
.metric-card,
.step,
.hero-facts,
.request-form {
  transition:
    transform .25s ease,
    border-color .25s ease,
    background-color .25s ease;
}

.benefit-card:hover,
.service-card:hover,
.metric-card:hover,
.step:hover {
  transform: translateY(-3px);
}

.benefit-card h3 {
  margin: 12px 0 0;
  font-size: 18px;
  line-height: 1.22;
}

.split {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 76px;
  align-items: start;
}

.split--services-only {
  grid-template-columns: 1fr;
  gap: 0;
}

.media-tile {
  min-height: 420px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(16, 40, 32, .06), rgba(17, 140, 124, .12)),
    url("assets/hero/gpa-engine-hero.png") center / contain no-repeat,
    #e8e5dc;
}

.service-list {
  display: grid;
  gap: 0;
}

.service-row {
  display: grid;
  gap: 8px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.service-row h3,
.step h3,
.contact-list h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}

.service-row p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.service-row a {
  color: var(--accent);
  font-weight: 800;
}

.profile-grid {
  display: grid;
  grid-template-columns: 44% 1fr;
  gap: 68px;
  align-items: center;
}

.profile-grid .copy p {
  color: #dce4df;
}

.engine-visual {
  min-height: 360px;
  background: url("assets/hero/gpa-engine-hero.png") center / contain no-repeat;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
  margin-top: 42px;
}

.step {
  min-width: 0;
}

.step h3 {
  margin-top: 10px;
}

.request {
  display: grid;
  grid-template-columns: 44% 1fr;
  gap: 56px;
}

.section--dark .lead,
.section--dark .copy p {
  color: #dce4df;
}

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

.request-form input,
.request-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font: inherit;
}

.request-form textarea {
  min-height: 116px;
  resize: vertical;
}

.request-form label {
  color: #dce4df;
  font-size: 13px;
  line-height: 1.4;
}

.request-form button {
  justify-self: start;
  border: 0;
  background: var(--green);
  color: #fff;
  padding: 14px 24px;
  font-weight: 900;
  cursor: pointer;
}

.page-hero {
  padding: 88px 0 78px;
  background:
    linear-gradient(90deg, rgba(246, 244, 238, .98), rgba(246, 244, 238, .88), rgba(246, 244, 238, .56)),
    url("assets/hero/gpa-engine-hero.png") center right / contain no-repeat;
}

.page-hero .lead {
  max-width: 760px;
  font-size: 18px;
}

.copy {
  display: grid;
  gap: 18px;
}

.copy p {
  margin: 0;
}

.metrics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 40px;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, .12);
  background: var(--dark);
}

.metric-card {
  min-height: 210px;
  padding: 42px 34px;
  background: var(--dark);
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, .18);
}

.metric-card:last-child {
  border-right: 0;
}

.metric-card .number {
  font-size: 40px;
}

.metric-card span:last-child {
  display: block;
  margin-top: 18px;
  color: #dce4df;
  font-size: 20px;
  line-height: 1.45;
}

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

.service-card {
  min-height: 260px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.service-card h2 {
  margin: 10px 0 12px;
  font-size: 21px;
  line-height: 1.18;
}

.service-card p {
  margin: 0 0 18px;
  font-size: 16px;
}

.service-card a {
  color: var(--accent);
  font-weight: 900;
}

.service-detail {
  scroll-margin-top: 150px;
  padding: 78px 0;
  border-bottom: 1px solid var(--line);
}

.service-detail:nth-child(even) {
  background: var(--surface);
}

.service-detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 54px;
  align-items: start;
}

.service-detail__media {
  position: sticky;
  top: 150px;
}

.service-detail__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
}

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

.service-detail__copy p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
}

.service-detail__copy h3 {
  margin: 18px 0 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
}

.service-detail__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-detail__list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.service-detail__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .66em;
  width: 6px;
  height: 6px;
  background: var(--accent);
}

.catalog-note {
  margin-top: 42px;
  padding: 28px;
  background: #ebe7dc;
  border-left: 4px solid var(--accent);
}

.contacts-grid {
  grid-template-columns: 38% 1fr;
  align-items: start;
  gap: 70px;
}

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

.contact-list p {
  margin: 6px 0 0;
}

.map-placeholder {
  min-height: 390px;
  background: #e7e2d6;
  border: 1px solid var(--line);
  overflow: hidden;
}

.map-placeholder iframe {
  display: block;
  width: 100%;
  min-height: 390px;
  border: 0;
}

.footer {
  padding: 42px 0;
  background: #0f211b;
  color: #eef3ef;
}

.footer__inner {
  width: min(var(--container), calc(100% - 64px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
}

.footer nav {
  display: flex;
  gap: 24px;
  color: #cdd8d2;
}

@media (max-width: 980px) {
  .service-header {
    height: auto;
  }

  .service-header__inner {
    width: min(100% - 32px, var(--container));
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px 0;
  }

  .service-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 18px;
    overflow-x: visible;
  }

  .service-phone {
    text-align: left;
  }

  .services-subnav {
    position: static;
  }

  .services-subnav__inner {
    width: 100%;
  }

  .hero,
  .hero__inner {
    min-height: auto;
  }

  .hero__inner,
  .split,
  .profile-grid,
  .request,
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .hero__inner,
  .container,
  .footer__inner {
    width: min(100% - 32px, var(--container));
  }

  .hero__inner {
    padding: 36px 0 56px;
  }

  .hero h1 {
    font-size: clamp(26px, 6vw, 36px);
  }

  .service-detail {
    scroll-margin-top: 20px;
    padding: 56px 0;
  }

  .service-detail__grid {
    grid-template-columns: 1fr;
  }

  .service-detail__media {
    position: static;
  }

  .service-detail__list {
    grid-template-columns: 1fr;
  }

  .benefits-grid,
  .steps-grid,
  .metrics-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 62px 0;
  }

  .footer__inner,
  .footer nav {
    display: grid;
  }
}
