/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--header);
  background: rgb(243 242 239 / 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.site-header__bar {
  height: var(--header);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 15px;
}

.logo svg {
  width: 28px;
  height: 28px;
}

.nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
}

.nav > a,
.nav__toggle {
  padding: 8px 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  background: none;
  border: 0;
  color: var(--ink);
}

.nav__item {
  position: relative;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-phone {
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.header-cta .btn {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  padding: 0;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}

.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-btn span::before {
  top: -6px;
}

.menu-btn span::after {
  top: 6px;
}

.mega {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  translate: -50% 0;
  width: min(920px, 80vw);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 28px;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  box-shadow: 0 18px 40px rgb(24 26 28 / 0.08);
}

.nav__item:hover .mega,
.nav__item:focus-within .mega,
.nav__item.is-open .mega {
  display: grid;
}

.mega h3 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.mega a {
  display: block;
  padding: 6px 0;
  text-decoration: none;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
}

@media (hover: hover) and (pointer: fine) {
  .mega a:hover {
    color: var(--accent);
  }
}

@media (max-width: 980px) {
  .nav,
  .header-phone {
    display: none;
  }

  .menu-btn {
    display: grid;
    place-items: center;
  }

  .site-header__bar {
    grid-template-columns: auto 1fr auto;
  }

  .header-cta {
    justify-self: end;
  }

  body.nav-open .nav {
    display: flex;
    position: fixed;
    inset: var(--header) 0 0 0;
    z-index: var(--z-overlay);
    background: var(--bg);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 16px var(--gutter) 40px;
    overflow: auto;
    gap: 0;
  }

  body.nav-open .nav > a,
  body.nav-open .nav__toggle {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
    font-size: 18px;
  }

  .mega {
    position: static;
    translate: 0;
    width: auto;
    border: 0;
    padding: 8px 0 16px 12px;
    display: none;
    grid-template-columns: 1fr;
    box-shadow: none;
  }

  .nav__item.is-open .mega {
    display: grid;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100dvh - var(--header));
  overflow: hidden;
  color: var(--cream);
  background: #1a1816;
}

.hero__copy {
  position: relative;
  z-index: 2;
  min-height: calc(100dvh - var(--header));
  padding: clamp(28px, 5vh, 56px) 0 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.7vw, 2.65rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
  max-width: 18ch;
}

.hero__text {
  margin-top: 18px;
  max-width: 46ch;
  color: rgb(243 242 239 / 0.78);
  font-size: 16px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--bg-2);
}

.hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgb(26 24 22 / 0.88) 0%, rgb(26 24 22 / 0.52) 48%, rgb(26 24 22 / 0.18) 100%),
    linear-gradient(180deg, rgb(26 24 22 / 0.12), transparent 36%, rgb(26 24 22 / 0.4));
}

.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  position: absolute;
  inset: 0;
}

.hero__map {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero__legend {
  position: relative;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  max-width: 16rem;
}

.hero__legend span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
}

.hero__legend span::before {
  content: "";
  width: 8px;
  height: 8px;
}

.hero__legend span:nth-child(1)::before {
  background: var(--accent);
}

.hero__legend span:not(:first-child)::before {
  background: rgb(243 242 239 / 0.7);
}

.hero__legend span:not(:last-child) {
  border-bottom: 1px solid rgb(243 242 239 / 0.25);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.stats article {
  padding: 28px var(--gutter);
}

.stats article:not(:last-child) {
  border-right: 1px solid var(--line);
}

.stats h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.stats p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  max-width: 36ch;
}

/* Scenarios */
.scenarios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.scenario {
  background: var(--bg);
  padding: 32px 28px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  transition: background-color var(--dur) ease;
}

.scenario h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.scenario p {
  margin-top: 12px;
  color: var(--muted);
  flex: 1;
}

.scenario .more {
  margin-top: 24px;
}

@media (hover: hover) and (pointer: fine) {
  .scenario:hover {
    background: #fff;
  }
}

/* Timeline */
.timeline-wrap {
  overflow: auto hidden;
  width: 100%;
  padding-inline: var(--gutter);
  scrollbar-width: thin;
}

.timeline {
  display: flex;
  min-width: max-content;
  padding: 0 0 8px;
  list-style: none;
}

.timeline__step {
  flex: 0 0 220px;
  width: 220px;
  padding: 28px 28px 8px 0;
  border-top: 1px solid var(--ink);
  position: relative;
}

.timeline__step::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--accent);
}

.timeline__n {
  font-family: var(--font-num);
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}

.timeline__step h3 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.timeline__step p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

/* Services */
.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
}

.service {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  padding: 28px 0;
  text-decoration: none;
  border-top: 1px solid var(--line);
}

.service svg {
  margin-top: 4px;
}

.service h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.service p {
  margin-top: 8px;
  color: var(--muted);
}

@media (hover: hover) and (pointer: fine) {
  .service:hover h3 {
    color: var(--accent);
  }
}

/* Risks */
.risks {
  display: flex;
  flex-direction: column;
}

.risk {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.risk__label {
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 8px;
}

.risk h3,
.risk p {
  font-size: 1.05rem;
  line-height: 1.4;
}

.risk p {
  color: var(--muted);
}

/* Objects */
.objects {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.object {
  text-decoration: none;
}

.object__img {
  aspect-ratio: 4 / 3;
  background: var(--bg-2);
  overflow: hidden;
  position: relative;
}

.object__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.object__img--empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px solid var(--line);
}

.object h3 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.object p {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}

.objects .object:nth-child(5),
.objects .object:nth-child(6),
.objects .object:nth-child(7) {
  grid-column: span 1;
}

/* Projects */
.projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 20px;
}

.project {
  text-decoration: none;
}

.project img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--bg-2);
}

.project__meta {
  margin-top: 14px;
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--accent);
}

.project h3 {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.project p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.project__result {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
}

.projects-foot {
  margin-top: 36px;
}

/* Clients */
.clients {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.clients li {
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.clients {
  margin: 0;
  padding: 0;
}

.clients-note {
  margin-top: 28px;
  font-size: 13px;
  color: var(--muted);
  max-width: 52ch;
}

/* Advantages */
.advantages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 56px;
}

.advantage h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.advantage p {
  margin-top: 10px;
  color: var(--muted);
}

/* CTA */
.cta {
  background: var(--graphite);
  color: var(--cream);
}

.cta .section-head h2,
.cta .section-head p {
  color: var(--cream);
}

.cta .section-head p {
  opacity: 0.78;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 500;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgb(243 242 239 / 0.35);
  border-radius: 0;
  color: var(--cream);
  padding: 10px 0;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgb(243 242 239 / 0.45);
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.field--row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.choice {
  display: flex;
  gap: 8px;
}

.choice button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgb(243 242 239 / 0.35);
  background: transparent;
  color: var(--cream);
  border-radius: var(--radius);
}

.choice button.is-on {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

.form-error {
  color: #f0b4a4;
  font-size: 14px;
}

.form-ok {
  padding: 24px 0;
}

.form-ok h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.hidden {
  display: none !important;
}

/* Footer */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.site-footer h2 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.site-footer a,
.site-footer p {
  display: block;
  text-decoration: none;
  font-size: 14px;
  color: var(--muted);
  padding: 4px 0;
}

.site-footer .logo {
  margin-bottom: 12px;
}

.footer-copy {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* Inner page */
.inner-hero {
  padding: 72px 0 80px;
  border-bottom: 1px solid var(--line);
}

.inner-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.035em;
  max-width: 18ch;
}

.inner-hero p {
  margin-top: 16px;
  max-width: 46ch;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 980px) {
  .hero,
  .hero__copy {
    min-height: min(72dvh, 640px);
  }

  .hero__copy {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .hero h1 {
    max-width: none;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stats article:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .scenarios,
  .services,
  .risk,
  .cta-grid,
  .advantages,
  .projects {
    grid-template-columns: 1fr;
  }

  .objects {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .timeline__step {
    flex-basis: 180px;
    width: 180px;
  }
}

@media (max-width: 640px) {
  .objects {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .header-cta .btn {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .scenario,
  .service h3 {
    transition: none;
  }
}
