:root {
  --bg: #efeee9;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: #f9f9f7;
  --line: rgba(18, 20, 22, 0.94);
  --line-soft: rgba(18, 20, 22, 0.13);
  --line-faint: rgba(18, 20, 22, 0.07);
  --text: #12171a;
  --muted: #585f67;
  --shadow: rgba(15, 17, 20, 0.07);
  --accent: #d4d8db;
  --accent-strong: #aab2ba;
  --ink: #0f1418;
  --steel: #dfe4e7;
  --iron: #b7bdc3;
  --graphite: #171d22;
  --graphite-soft: #2a3138;
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(83, 95, 106, 0.06), transparent 20%),
    radial-gradient(circle at 90% 20%, rgba(155, 166, 175, 0.04), transparent 25%),
    linear-gradient(180deg, #f6f8fb 0%, #eef2f6 60%, #e9ecef 100%);
  color: var(--text);
  line-height: 1.6;
  padding-top: 96px;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

main p:not(.eyebrow),
main li,
main td {
  text-align: justify;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

button {
  font: inherit;
}

.page-shell {
  position: relative;
  overflow: hidden;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-shell::before {
  /* soft white->transparent gradient at the image's left edge so the
     photo remains sharp while transitioning smoothly into the page background */
  content: "";
  position: absolute;
  top: 0;
  left: calc(100% - 45%);
  width: 12%;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(to right, #ffffff 0%, rgba(255,255,255,0) 100%);
}

.hero-shell::after {
  /* right-side image slice */
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 45%;
  background-image: url('./Баннер 1.png');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%; /* fit image height so buildings are visible */
  opacity: 0.7;
  pointer-events: none;
  z-index: 1;
}

@keyframes bgShift {
  0% { transform: translateY(0) scale(1); filter: hue-rotate(0deg) saturate(1); }
  50% { transform: translateY(-3%) scale(1.02); filter: hue-rotate(6deg) saturate(1.04); }
  100% { transform: translateY(0) scale(1); filter: hue-rotate(0deg) saturate(1); }
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(255,255,255,0.5);
  border-bottom: 1px solid rgba(17,17,17,0.06);
  box-shadow: 0 6px 24px rgba(12,15,18,0.06);
  overflow: hidden; /* ensure header background image is clipped */
}

/* header background image moved to hero banner */

.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  gap: 28px;
}

@media (max-width: 760px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 30;
  }

  .header-inner {
    min-height: 72px;
    padding: 10px 0;
    gap: 12px;
  }

  .brand-logo {
    width: 150px;
  }

  .main-nav {
    gap: 10px 14px;
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}

.brand-text {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--text);
}

.brand-logo {
  width: clamp(180px, 16vw, 280px);
  height: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 1;
  background: transparent;
  filter: contrast(1.42) brightness(1.1) saturate(1.05);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.9vw, 32px);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(17,17,17,0.8);
  font-weight: 600;
}

.main-nav a {
  position: relative;
  padding-bottom: 8px;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  letter-spacing: 0.14em;
}

.nav-account {
  border: 1px solid rgba(17,17,17,0.12);
  padding: 10px 14px 9px;
  background: rgba(255,255,255,0.52);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  padding: 0 0 10px;
}

.hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  width: min(100%, 1160px);
  margin: 0 auto;
  height: 330px;
  align-items: stretch;
  border: 0;
  background: #ffffff;
  overflow: hidden;
  box-shadow: none;
  z-index: 2; /* bring hero above page overlays so banner image is visible */
}

/* NOTE: the left-edge white->transparent fade is defined earlier for ::before.
   Removed duplicate full-image background here to keep only the right-side
   slice (::after). */

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 3; /* ensure text and visuals sit above the banner background */
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* place text closer to bottom of banner */
  height: 100%;
  padding: 20px 46px 28px; /* reduce top padding so text sits nearer bottom */
}

/* Ensure hero/banner text is solid black for contrast over the background image */
.hero-copy,
.hero-copy h1,
.hero-copy .lead,
.hero-copy p,
.hero-copy a {
  color: #000000;
}

.hero-visual {
  position: relative;
  height: 100%;
  padding: 18px 0 18px 0;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

.hero-photo {
  position: relative;
  width: 100%;
  height: 100%;
  display: none; /* hide decorative banner image so only page background shows */
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  display: none;
}

.dashboard-window {
  display: none;
}


.dashboard-topbar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(17,17,17,0.08);
}

.dashboard-topbar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(17,17,17,0.18);
}

.dashboard-body {
  display: grid;
  grid-template-columns: 92px 1fr;
  height: calc(100% - 48px);
}

.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 14px;
  border-right: 1px solid rgba(17,17,17,0.08);
  background: rgba(17,17,17,0.01);
}

.sidebar-line {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(17,17,17,0.2);
}

.sidebar-line.short { width: 42%; }
.sidebar-line.medium { width: 72%; }

.dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
}

.chart-panel {
  position: relative;
  height: 180px;
  border: 1px solid rgba(17,17,17,0.08);
  background: rgba(255,255,255,0.7);
  overflow: hidden;
}

.chart-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(17,17,17,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17,17,17,0.04) 1px, transparent 1px);
  background-size: 18px 18px;
}

.chart-line {
  position: absolute;
  left: 12%;
  right: 8%;
  bottom: 20%;
  height: 2px;
  background: linear-gradient(90deg, rgba(17,17,17,0.8), rgba(17,17,17,0.3));
  transform: skewY(-18deg);
}

.info-row,
.module-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}

.mini-card,
.module-block {
  border: 1px solid rgba(17,17,17,0.08);
  background: rgba(255,255,255,0.7);
}

.mini-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 80px;
  padding: 12px 14px;
}

.mini-card span {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.mini-card strong {
  margin-top: 8px;
  font-size: 1.6rem;
  letter-spacing: -0.06em;
}

.module-block {
  min-height: 110px;
}

.module-block.large {
  grid-column: span 1;
}

.module-block.small {
  background: linear-gradient(180deg, rgba(17,17,17,0.04), rgba(17,17,17,0.02));
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.mini-icon {
  display: block;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  color: #526d61;
}

.hero-copy h1,
.section-headline h2,
.section-heading h2,
.cta-wrap h2 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.98;
  color: var(--text);
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: 2.35rem;
  line-height: 1.08;
  letter-spacing: -0.065em;
}

.section-headline h2,
.section-heading h2,
.cta-wrap h2 {
  font-size: clamp(1.8rem, 2.6vw, 2.8rem);
}

.lead {
  max-width: 580px;
  margin-top: 16px;
  font-size: 1.08rem;
  color: var(--muted);
  text-align: justify;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 0.25s ease, background 0.25s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--graphite) 0%, #1f2a31 32%, #49555d 100%);
  color: #f4f5f5;
  border-color: rgba(17, 21, 25, 0.9);
  box-shadow: 0 12px 28px rgba(19, 23, 26, 0.12);
}

.button-secondary {
  background: rgba(255,255,255,0.20);
  color: var(--text);
  border-color: rgba(19,22,25,0.14);
}

.hero-meta {
  display: grid;
  gap: 18px;
  align-self: end;
  justify-self: end;
  width: min(100%, 360px);
  padding-top: 20px;
  border-top: 1px solid var(--line-faint);
}

.hero-meta div {
  display: grid;
  gap: 10px;
}

.hero-meta span {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-meta strong {
  font-size: clamp(1.2rem, 2vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.05em;
}

.trustband {
  border-top: 1px solid var(--line-faint);
  border-bottom: 1px solid var(--line-faint);
  background: rgba(255,255,255,0.12);
  padding: 16px 0;
}

.trust-inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  align-items: center;
  gap: 18px;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.section {
  padding: clamp(34px, 4vw, 56px) 0;
  background: rgba(255,255,255,0.06);
  transition: background-color 0.35s ease;
}

.section:nth-of-type(even) {
  background: rgba(213, 218, 222, 0.18);
}

.section-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  align-items: start;
}

.about-banner {
  display: block;
  min-height: 0;
  padding: 28px 0 32px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.about-banner-copy {
  display: grid;
  grid-template-columns: minmax(140px, 0.45fr) minmax(0, 1.55fr);
  gap: 10px 32px;
  align-content: start;
}

.about-banner-copy .eyebrow {
  grid-row: 1 / span 2;
  margin-top: 5px;
}

.about-banner-text {
  max-width: 860px;
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0;
  color: var(--text);
}

.about-banner-text.secondary {
  color: var(--muted);
}

.section-heading h2,
.section-headline h2,
.cta-wrap h2 {
  font-size: 1.85rem;
  max-width: 780px;
}

.section-copy {
  display: grid;
  gap: 20px;
  color: var(--muted);
  font-size: 1.06rem;
  text-align: justify;
}

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

.flow-step {
  position: relative;
  min-width: 0;
  padding: 17px 8px 0 0;
  border-top: 1px solid var(--line-soft);
}

.flow-step::before {
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #526d61;
  box-shadow: 0 0 0 1px #526d61;
  content: "";
}

.flow-index {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.flow-step h3 {
  margin: 13px 0 6px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
}

.flow-step p {
  max-width: 250px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.section-headline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
}

.narrow {
  max-width: 760px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.service-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid rgba(17,17,17,0.06);
  background: transparent;
}

.service-row:first-child {
  border-top: 0;
}

.service-index {
  display: flex;
  justify-content: center;
  padding-top: 3px;
}

.service-body {
  display: grid;
  gap: 8px;
}

.service-body h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.service-body p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  text-align: justify;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 18px;
}

.method-step {
  position: relative;
  padding: 26px 22px 20px;
  border-left: 1px solid var(--line-faint);
  background: rgba(255,255,255,0.22);
}

.method-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 1px;
  background: var(--line);
}

.method-step .method-icon,
.service-icon,
.competency-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 16px;
  color: #526d61;
}

.method-step .mini-icon,
.service-icon .mini-icon,
.competency-icon .mini-icon {
  width: 27px;
  height: 27px;
}

.method-step h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  letter-spacing: -0.04em;
}

.method-step p {
  margin: 0;
  color: var(--muted);
}

.project-list {
  display: grid;
  gap: 8px;
}

.project-item {
  perspective: none; /* disable 3D perspective */
}

.project-flip {
  position: relative;
  min-height: auto;
  transform: none !important; /* prevent flips */
  transform-style: none;
  transition: none;
}

.project-item:hover .project-flip {
  transform: none !important;
}

.project-face {
  position: relative;
  inset: auto;
  display: block; /* show front content as normal block */
  grid-template-columns: none;
  gap: 0;
  align-items: stretch;
  padding: 12px 0;
  min-height: auto;
  border-top: none;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  backface-visibility: visible;
  transition: none;
  box-sizing: border-box;
}

.project-item:hover .project-face {
  background: transparent;
  border-color: rgba(17,17,17,0.06);
}

.project-front {
  z-index: auto;
}

.project-back {
  display: none; /* hide flipped preview side */
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-item h3 {
  margin: 0;
  font-size: 0.98rem;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.project-item p {
  margin: 0;
  color: var(--muted);
  text-align: justify;
}

.project-preview-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  height: 100%;
}

.preview-card {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: flex-start;
  min-height: 120px;
  padding: 12px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.preview-card span {
  position: relative;
  z-index: 1;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.7);
}

.preview-solovki-1,
.preview-solovki-2,
.preview-solovki-3,
.preview-one,
.preview-two,
.preview-three,
.preview-four,
.preview-five,
.preview-six,
.preview-seven,
.preview-eight,
.preview-nine,
.preview-empty {
  background: linear-gradient(135deg, rgba(18,20,22,0.06), rgba(18,20,22,0.02));
  border: 1px solid rgba(17,17,17,0.08);
}

.preview-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  border-radius: 16px;
}

.preview-empty span {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(17,17,17,0.6);
}

.cta-banner {
  position: relative;
  overflow: hidden;
  padding: 42px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
}

.cta-banner::after {
  position: absolute;
  top: 50%;
  right: 12%;
  width: 150px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(63, 91, 76, 0.42);
  box-shadow: 0 0 0 20px transparent, 0 0 0 21px rgba(63, 91, 76, 0.22), 0 0 0 42px transparent, 0 0 0 43px rgba(63, 91, 76, 0.14);
  content: "";
  pointer-events: none;
  transform: translateY(-50%);
}

.cta-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border: 0;
  background: transparent;
  padding: 0;
}

.cta-content {
  max-width: 760px;
}

.cta-banner .eyebrow {
  margin-bottom: 12px;
  color: #526d61;
}

.cta-banner .cta-wrap h2 {
  color: var(--text);
}

.cta-copy {
  max-width: 720px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.cta-banner .button-primary {
  position: relative;
  z-index: 1;
  border-color: rgba(63, 91, 76, 0.62);
  background: transparent;
  box-shadow: none;
  color: #365044;
}

.cta-banner .button-primary:hover,
.cta-banner .button-primary:focus-visible {
  background: #365044;
  color: #fff;
}

.site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line-faint);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}

.footer-meta,
.footer-contacts {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-contacts {
  justify-items: end;
}

.footer-legal {
  justify-self: end;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.inner-page {
  min-height: 60vh;
}

.page-intro {
  padding: 66px 0 54px;
  border-bottom: 1px solid var(--line-faint);
  background: linear-gradient(110deg, rgba(255,255,255,0.86), rgba(222,228,232,0.52));
}

.page-intro h1 {
  max-width: 900px;
  margin: 0;
  color: var(--text);
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
}

.page-lead {
  max-width: 800px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.12rem;
}

.detail-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--line-faint);
}

.section-tint {
  background: rgba(213, 218, 222, 0.18);
}

.detail-copy {
  display: grid;
  gap: 18px;
  max-width: 900px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.detail-copy h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0;
}

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

.detail-panel {
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.detail-panel h3,
.principle-list h3,
.sector-grid h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0;
}

.detail-panel p,
.principle-list p,
.sector-grid p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.check-list {
  display: grid;
  gap: 9px;
  margin: 14px 0 18px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 1px;
  background: var(--text);
}

.principle-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 36px;
}

.principle-list article,
.sector-grid article {
  padding: 20px 0;
  border-top: 1px solid var(--line-soft);
}

.service-detail-list {
  display: grid;
}

.service-detail {
  padding: 30px 0 34px;
  border-bottom: 1px solid var(--line-soft);
}

.service-detail:first-child {
  padding-top: 0;
}

.service-detail-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.service-detail-head .service-icon,
.competency-list article .competency-icon {
  margin: 0;
}

.service-detail h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

.service-detail h3 {
  margin: 18px 0 0;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service-detail > p {
  max-width: 900px;
  color: var(--muted);
  line-height: 1.7;
}

.service-subtitle {
  margin-top: 7px;
  color: var(--muted);
}

.service-result {
  max-width: 900px;
  padding: 14px 18px;
  border-left: 2px solid var(--graphite-soft);
  background: rgba(255,255,255,0.42);
  color: var(--text) !important;
}

.service-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.competency-list {
  border-top: 1px solid var(--line-soft);
}

.competency-list article {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}

.competency-list h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 600;
}

.competency-list p {
  max-width: 900px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.sector-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 36px;
}

.portfolio-projects {
  margin-top: 24px;
}

.portfolio-projects .project-face {
  display: grid;
  gap: 10px;
}

.portfolio-projects .project-meta {
  display: block;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 48px;
  align-items: start;
}

.contact-layout .detail-copy a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-panel {
  display: grid;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.6);
}

.contact-panel p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

.contact-panel .button {
  justify-self: start;
}

.document-table-wrap {
  overflow-x: auto;
}

.document-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.document-table th,
.document-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.document-table th {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.document-table td:first-child {
  width: 36%;
  color: var(--text);
  font-weight: 500;
}

.document-table td:last-child {
  color: var(--muted);
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.88rem;
}

.source-links span {
  flex-basis: 100%;
  color: var(--text);
  font-weight: 600;
}

.source-links a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.contact-strip h2 {
  max-width: 680px;
  margin: 0;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 600;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-contacts,
  .footer-legal {
    justify-items: start;
    justify-self: start;
  }

  .page-intro {
    padding: 42px 0 34px;
  }

  .page-intro h1 {
    font-size: 1.7rem;
  }

  .page-lead {
    font-size: 1rem;
  }

  .detail-section {
    padding: 34px 0;
  }

  .detail-grid,
  .principle-list,
  .sector-grid,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .service-detail-head,
  .competency-list article {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
  }

  .service-detail h2 {
    font-size: 1rem;
  }

  .document-table th,
  .document-table td {
    padding: 12px 10px;
  }

  .document-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .document-table,
  .document-table tbody,
  .document-table tr,
  .document-table td {
    display: block;
    width: 100%;
  }

  .document-table tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .document-table td {
    padding: 0;
    border: 0;
  }

  .document-table td:first-child {
    min-width: 0;
    padding-bottom: 4px;
    font-size: 0.86rem;
  }

  .document-table td:last-child {
    padding-top: 0;
  }

  .contact-strip {
    align-items: flex-start;
    flex-direction: column;
  }
}

@keyframes draw {
  from {
    stroke-dasharray: 0 1000;
    opacity: 0.1;
  }
  to {
    stroke-dasharray: 1000 0;
    opacity: 1;
  }
}

@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(0, -12px, 0) scale(1.03); }
}

@media (max-width: 1100px) {
  .hero-grid,
  .section-grid,
  .footer-grid,
  .project-item {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .method-grid,
  .trust-inner {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .footer-contacts {
    justify-items: start;
  }
}

/* Additional mobile / tablet optimizations */
@media (max-width: 1100px) {
  .hero-shell {
    height: 320px;
    grid-template-columns: 1fr 1fr;
  }
  .hero-shell::after { width: 50%; background-size: auto 100%; }
}

@media (max-width: 760px) {
  /* switch to stacked layout for phones */
  .hero-shell {
    grid-template-columns: 1fr;
    height: auto;
  }
  .hero-shell::after { display: none; }
  .hero-shell::before { display: none; }
  .hero-copy { padding: 18px 16px 22px; }
  .hero-copy h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .lead { font-size: 0.95rem; }
  .container { width: calc(100% - 24px); }
  .brand-text { font-size: 1.05rem; }
  .main-nav { gap: 8px; font-size: 0.62rem; }
  .button { min-height: 44px; padding: 0 16px; }
}

@media (max-width: 480px) {
  body { padding-top: 80px; }
  .hero-copy h1 { font-size: 1.4rem; }
  .lead { font-size: 0.9rem; }
  .brand-text { font-size: 0.98rem; }
  .main-nav { font-size: 0.5rem; gap: 6px; }
}

@media (max-width: 760px) {
  body {
    padding-top: 88px;
  }

  .container {
    width: min(var(--max), calc(100% - 24px));
  }

  .header-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    min-height: 68px;
  }

  .brand-logo {
    width: 120px;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px 10px;
    max-width: 52%;
    font-size: 0.52rem;
    letter-spacing: 0.1em;
  }

  .nav-account {
    padding: 8px 10px 7px;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    min-height: 0;
    height: auto;
  }

  .hero-copy {
    padding: 28px 20px 18px;
  }

  .hero-copy h1 {
    font-size: 1.65rem;
    line-height: 1.08;
  }

  .lead {
    margin-top: 12px;
    font-size: 0.95rem;
    text-align: left;
  }

  .hero-photo {
    transform: none;
    background-position: center;
  }

  .hero-visual {
    min-height: 220px;
    padding: 0 16px 16px;
  }

  .project-preview-grid {
    grid-template-columns: 1fr;
  }

  .project-face {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 14px;
  }

  .about-banner {
    min-height: 0;
    padding: 20px 0 26px;
  }

  .about-banner-copy {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .about-banner-copy .eyebrow {
    grid-row: auto;
    margin: 0;
  }

  .about-banner-text {
    font-size: 0.96rem;
    line-height: 1.5;
  }

  .services-grid,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .project-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 16px;
    margin-top: 26px;
  }

  .flow-step {
    padding-top: 14px;
  }

  .flow-index {
    font-size: 0.52rem;
  }

  .flow-step h3 {
    margin-top: 10px;
    font-size: 0.94rem;
  }

  .flow-step p {
    font-size: 0.78rem;
  }

  .service-row {
    grid-template-columns: 48px 1fr;
    gap: 12px;
    padding: 14px 0;
  }

  .service-body h3 {
    font-size: 1.05rem;
  }

  .service-body p {
    font-size: 0.9rem;
    text-align: left;
  }

  .project-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px 14px;
  }

  .project-meta {
    flex-direction: row;
    gap: 12px;
    font-size: 0.58rem;
  }

  .project-item h3 {
    font-size: 0.95rem;
  }

  .project-item p {
    text-align: left;
    font-size: 0.9rem;
  }

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

  .cta-banner {
    padding: 30px 0;
  }

  .cta-banner::after {
    top: 32%;
    right: -66px;
    width: 116px;
    opacity: 0.55;
  }

  .cta-banner .button {
    justify-self: start;
  }

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

  .footer-contacts {
    justify-items: start;
  }
}
