:root {
  --bg: #f3f4f1;
  --paper: #ffffff;
  --ink: #17201d;
  --muted: #5e6864;
  --line: #d8ddd9;
  --green: #235744;
  --green-deep: #153a2d;
  --orange: #e36f2d;
  --soft-green: #e4ebe6;
  --shadow: 0 16px 40px rgba(16, 27, 22, 0.14);
  --shell: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 102px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

body.menu-open { overflow: hidden; }

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

a { color: inherit; }

button, input, select, textarea { font: inherit; }

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 94px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(23, 32, 29, 0.12);
  backdrop-filter: blur(12px);
}

.admin-bar .site-header { top: 32px; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  color: #fff;
  background: var(--green);
  border-left: 6px solid var(--orange);
  font-weight: 900;
  font-size: 13px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.12;
}

.brand-copy strong {
  font-size: 19px;
  letter-spacing: 0;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: grid;
  gap: 7px;
}

.site-nav a,
.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.header-contacts,
.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.header-contacts { gap: 16px; }
.header-contacts a { color: var(--muted); font-size: 12px; font-weight: 700; }
.header-contacts a:not(.header-email) { color: var(--green); }
.nav-links { gap: 24px; }

.site-nav a:hover { color: var(--green); }

.site-nav .nav-phone {
  color: var(--green-deep);
  white-space: nowrap;
}

.site-nav .nav-cta {
  padding: 11px 16px;
  color: #fff;
  background: var(--green);
}

.site-nav .nav-cta:hover { color: #fff; background: var(--green-deep); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 120px);
  max-height: 760px;
  overflow: hidden;
  color: #fff;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background: url("../images/office-posle-vhod.png") center 44% / cover no-repeat;
  transform: scale(1.01);
}

.hero-shade {
  background: rgba(10, 20, 16, 0.62);
}

.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: inherit;
  height: 100%;
  padding-top: 32px;
  padding-bottom: 32px;
}

.hero-copy { width: min(820px, 78%); }

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

.hero .eyebrow { color: #ffc071; }

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

h1, h2, h3 {
  margin-top: 0;
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: 62px;
  font-weight: 800;
}

h2 {
  margin-bottom: 18px;
  font-size: 48px;
  font-weight: 800;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.hero-lead {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

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

.button-primary { color: #fff; background: var(--orange); }
.button-primary:hover { background: #c8571b; }
.button-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.56); background: rgba(0, 0, 0, 0.12); }
.button-ghost:hover { border-color: #fff; background: rgba(0, 0, 0, 0.26); }
.button-dark { color: #fff; background: var(--ink); }
.button-dark:hover { background: #000; }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 28px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.32);
}

.hero-facts div {
  padding: 18px 18px 0 0;
}

.hero-facts dt {
  font-size: 18px;
  font-weight: 800;
}

.hero-facts dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.service-band,
.project-band,
.process-band,
.faq-band,
.request-band {
  padding: 104px 0;
}

.service-band { padding-top: 20px; }

.section-heading { max-width: 780px; margin-bottom: 48px; }
.section-heading p:not(.eyebrow), .engineering-copy p:not(.eyebrow), .price-copy p:not(.eyebrow), .project-header > p, .request-copy > p { color: var(--muted); font-size: 18px; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-item {
  position: relative;
  min-height: 300px;
  padding: 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-item:hover {
  z-index: 2;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.service-item p { color: var(--muted); }
.service-number { display: block; margin-bottom: 54px; color: var(--orange); font-size: 13px; font-weight: 800; }
.text-link { position: absolute; left: 32px; right: 32px; bottom: 28px; color: var(--green); font-weight: 800; }
.service-item-accent { color: #fff; background: var(--green); }
.service-item-accent p, .service-item-accent .text-link { color: rgba(255, 255, 255, 0.78); }
.service-item-accent .service-number { color: #ffc071; }

.engineering-band { padding: 92px 0; color: #fff; background: var(--green-deep); }
.engineering-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 86px; }
.engineering-copy { align-self: start; position: sticky; top: 110px; }
.engineering-copy p:not(.eyebrow) { color: rgba(255, 255, 255, 0.7); }
.scope-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, 0.24); }
.scope-list li { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 28px; padding: 24px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.24); }
.scope-list span { color: rgba(255, 255, 255, 0.68); }

.project-band { background: var(--paper); }
.project-header { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: end; margin-bottom: 38px; }
.project-header > p { margin: 0 0 8px; }

.view-switch {
  display: inline-flex;
  padding: 4px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
}

.view-switch button {
  min-width: 120px;
  padding: 10px 15px;
  border: 0;
  border-radius: 4px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.view-switch button[aria-selected="true"] { color: #fff; background: var(--green); }

.comparison {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.comparison.is-active { display: grid; }
.comparison figure { position: relative; margin: 0; overflow: hidden; aspect-ratio: 4 / 3; background: #dfe3df; }
.comparison img { height: 100%; object-fit: cover; }
.comparison figcaption { position: absolute; left: 12px; bottom: 12px; padding: 7px 10px; color: #fff; background: rgba(15, 24, 21, 0.82); font-size: 13px; font-weight: 800; }

.project-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 30px 0 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.project-facts div { padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project-facts dt { font-size: 24px; font-weight: 800; }
.project-facts dd { margin: 4px 0 0; color: var(--muted); }

.process-band { background: #e7ebe7; }
.section-heading-row { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 64px; max-width: none; align-items: end; }
.section-heading-row p:last-child { margin-bottom: 10px; }
.process-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #bdc6c0; }
.process-list li { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid #bdc6c0; }
.process-list li > span { color: var(--orange); font-weight: 900; }
.process-list h3 { margin-bottom: 6px; }
.process-list p { max-width: 720px; margin: 0; color: var(--muted); }

.price-band { padding: 94px 0; color: var(--ink); background: var(--soft-green); border-top: 1px solid #c9d4cc; border-bottom: 1px solid #c9d4cc; }
.price-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 88px; align-items: start; }
.price-copy .eyebrow { color: var(--green-deep); }
.price-copy p:not(.eyebrow) { color: rgba(23, 32, 29, 0.72); }
.price-copy .button { margin-top: 16px; }
.price-table { border-top: 1px solid rgba(23, 32, 29, 0.38); }
.price-table > div { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid rgba(23, 32, 29, 0.38); }
.price-table span { color: rgba(23, 32, 29, 0.66); }

.faq-layout { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 80px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 24px 46px 24px 0; cursor: pointer; font-weight: 800; list-style: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 19px; color: var(--green); font-size: 28px; font-weight: 500; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin: -4px 0 24px; color: var(--muted); }

.request-band { color: #fff; background: var(--ink); }
.request-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.request-copy > p { color: rgba(255, 255, 255, 0.66); }
.request-copy ul { margin: 30px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.request-copy li { padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.contact-links { display: grid; gap: 10px; margin-top: 26px; }
.contact-links a { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.2); text-decoration: none; }
.contact-links a:hover strong { color: #ffc071; }
.contact-links span { color: rgba(255, 255, 255, 0.64); text-align: right; }
.request-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; width: 100%; max-width: 680px; justify-self: end; padding: 30px; color: var(--ink); background: var(--paper); border-radius: 6px; }
.request-form label { display: grid; gap: 7px; }
.request-form label span { font-size: 13px; font-weight: 800; }
.request-form input, .request-form select, .request-form textarea { width: 100%; min-height: 48px; padding: 12px 13px; border: 1px solid #bec7c1; border-radius: 4px; color: var(--ink); background: #fff; }
.request-form textarea { resize: vertical; }
.request-form input:focus, .request-form select:focus, .request-form textarea:focus { outline: 3px solid rgba(35, 87, 68, 0.16); border-color: var(--green); }
.field-wide { grid-column: 1 / -1; }
.form-status { min-height: 24px; margin: 0; color: var(--muted); font-size: 13px; }
.form-status.is-success { color: var(--green); }
.form-status.is-error { color: #a53721; }
.form-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.privacy-consent { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px !important; }
.privacy-consent input { width: 18px; min-height: 18px; margin: 2px 0 0; flex: 0 0 18px; accent-color: var(--green); }
.privacy-consent span { color: var(--muted); font-weight: 600 !important; line-height: 1.4; }
.privacy-consent a { color: var(--green); }
.request-form .button:disabled { opacity: 0.65; cursor: wait; }

.site-footer { padding: 30px 0; background: #0f1513; color: rgba(255, 255, 255, 0.7); }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 34px; align-items: center; }
.brand-footer { color: #fff; }
.brand-footer small { color: rgba(255, 255, 255, 0.58); }
.footer-inner p { margin: 0; }
.footer-links { display: flex; gap: 24px; justify-content: flex-end; }
.footer-links a { color: #fff; font-weight: 800; text-decoration: none; white-space: nowrap; }

@media (max-width: 920px) {
  h1 { font-size: 54px; }
  h2 { font-size: 42px; }
  .menu-toggle { display: block; }
  .site-nav {
    position: fixed;
    top: 94px;
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 18px 20px 26px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; flex-direction: column; align-items: stretch; }
  .admin-bar .site-nav { top: 126px; }
  .header-contacts, .nav-links { align-items: stretch; flex-direction: column; gap: 0; }
  .header-contacts { order: 2; margin-top: 10px; }
  .header-contacts a, .nav-links a { padding: 11px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
  .site-nav .nav-phone { color: var(--green-deep); }
  .site-nav .nav-cta { margin-top: 14px; padding: 13px 16px; text-align: center; border-bottom: 0; }
  .hero-copy { width: min(760px, 88%); }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .engineering-layout, .price-layout, .faq-layout, .request-layout { grid-template-columns: 1fr; gap: 48px; }
  .engineering-copy { position: static; }
  .project-header, .section-heading-row { grid-template-columns: 1fr; gap: 20px; }
  .project-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .site-nav { top: 140px; }
}

@media (max-width: 640px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .site-header { height: 68px; }
  .site-nav { top: 68px; }
  .admin-bar .site-nav { top: 114px; }
  .brand-copy strong { font-size: 17px; }
  .brand-copy small { display: none; }
  .brand-mark { width: 38px; height: 38px; flex-basis: 38px; }
  .hero { min-height: calc(100svh - 150px); max-height: none; }
  .hero-media { background-position: 62% center; }
  .hero-shade { background: rgba(10, 20, 16, 0.7); }
  .hero-inner { align-items: flex-end; padding-top: 56px; padding-bottom: 34px; }
  .hero-copy { width: 100%; }
  h1 { font-size: 43px; }
  h2 { font-size: 34px; }
  .hero-lead { font-size: 17px; }
  .hero-actions { display: grid; }
  .hero-facts { grid-template-columns: 1fr; margin-top: 28px; }
  .hero-facts div { display: grid; grid-template-columns: 118px 1fr; gap: 12px; padding-top: 11px; }
  .service-band, .project-band, .process-band, .faq-band, .request-band { padding: 72px 0; }
  .service-band { padding-top: 28px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-item { min-height: 260px; }
  .engineering-band, .price-band { padding: 70px 0; }
  .scope-list li { grid-template-columns: 1fr; gap: 8px; }
  .comparison { grid-template-columns: 1fr; }
  .comparison figure { aspect-ratio: 4 / 3; }
  .project-facts { grid-template-columns: 1fr 1fr; }
  .project-facts div { padding: 18px; }
  .project-facts dt { font-size: 21px; }
  .process-list li { grid-template-columns: 44px 1fr; gap: 10px; }
  .price-table > div { grid-template-columns: 1fr; gap: 4px; }
  .request-form { grid-template-columns: 1fr; padding: 20px; }
  .request-form label, .request-form .button, .form-status { grid-column: 1; }
  .footer-inner { grid-template-columns: 1fr; gap: 16px; }
  .footer-links { justify-content: flex-start; flex-wrap: wrap; }
}

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