:root {
  color-scheme: dark;
  --bg: #0f1412;
  --panel: #171d1b;
  --panel-strong: #202724;
  --text: #f3f4ee;
  --muted: #aeb7ae;
  --line: rgba(243, 244, 238, 0.14);
  --teal: #45c0a5;
  --amber: #e0ae58;
  --red: #ce6b5d;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(15, 20, 18, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(69, 192, 165, 0.42);
  background: #13221f;
  color: var(--teal);
  font-size: 13px;
}

.nav {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  color: var(--muted);
  font-size: 14px;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
}

.lang-switch a {
  min-width: 38px;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.lang-switch a + a {
  border-left: 1px solid var(--line);
}

.lang-switch a.active {
  background: var(--teal);
  color: #07110f;
}

.nav a:hover,
.lang-switch a:hover,
.project-card:hover,
.industry-project-card:hover,
.contact-links a:hover {
  color: var(--teal);
}

.lang-switch a.active:hover {
  color: #07110f;
}

.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 20, 18, 0.95), rgba(15, 20, 18, 0.7) 48%, rgba(15, 20, 18, 0.22)),
    linear-gradient(0deg, rgba(15, 20, 18, 1), rgba(15, 20, 18, 0.04) 54%);
}

.hero-content {
  position: relative;
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 132px 24px 88px;
}

.eyebrow,
.section-label,
.project-meta {
  margin: 0;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  color: #e1e5dd;
  font-size: clamp(18px, 2.2vw, 24px);
}

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

.button,
.contact-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  padding: 10px 18px;
  font-weight: 750;
}

.button.primary {
  border-color: var(--teal);
  background: var(--teal);
  color: #07110f;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.05);
}

.section {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 76px 24px;
}

.intro,
.approach,
.contact {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(280px, 1.2fr);
  gap: 44px;
  border-bottom: 1px solid var(--line);
}

.intro p,
.approach-list p,
.contact p,
.focus-item p,
.project-card p,
.project-card li {
  color: var(--muted);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.workspace-map {
  border-bottom: 1px solid var(--line);
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.map-grid article {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
}

.map-grid strong {
  color: var(--amber);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
}

.map-grid span {
  color: var(--muted);
  font-weight: 700;
}

.focus-item {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.icon {
  display: inline-grid;
  min-width: 44px;
  height: 34px;
  margin-bottom: 30px;
  place-items: center;
  border: 1px solid rgba(224, 174, 88, 0.35);
  color: var(--amber);
  font-size: 11px;
  font-weight: 900;
}

.projects-section {
  width: min(1280px, 100%);
}

.industries-section {
  width: min(1280px, 100%);
  border-bottom: 1px solid var(--line);
}

.open-catalog-section {
  width: min(1280px, 100%);
  border-bottom: 1px solid var(--line);
}

.companies-section {
  width: min(1280px, 100%);
  border-bottom: 1px solid var(--line);
}

.companies-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1.4fr);
  gap: 14px;
}

.company-overview,
.company-card {
  border: 1px solid var(--line);
  background: var(--panel);
}

.company-overview {
  min-height: 100%;
  padding: 24px;
}

.company-overview h3 {
  margin-top: 16px;
}

.company-overview p,
.company-card p,
.company-card span {
  color: var(--muted);
}

.company-date {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-weight: 700;
}

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

.company-card {
  min-height: 164px;
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.company-card h3 {
  margin-bottom: 12px;
}

.company-card p {
  margin-bottom: auto;
}

.company-card span {
  display: block;
  padding-top: 16px;
  font-weight: 800;
}

.company-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.company-links a {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(224, 174, 88, 0.3);
  padding: 5px 9px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 850;
}

.company-links a:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.open-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.project-card,
.open-card {
  min-height: 306px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.open-card {
  min-height: 260px;
}

.project-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, #1e2925, #161c1a 62%, #211a16);
  border-color: rgba(69, 192, 165, 0.34);
}

.project-card h3 {
  margin-top: 16px;
}

.project-card ul {
  margin: auto 0 0;
  padding-left: 18px;
}

.project-card:hover,
.industry-project-card:hover,
.open-card:hover {
  border-color: rgba(69, 192, 165, 0.5);
  background: var(--panel-strong);
}

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

.card-link {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(224, 174, 88, 0.36);
  padding: 6px 10px;
  margin-top: auto;
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
}

.project-card:hover .card-link,
.open-card:hover .card-link {
  border-color: rgba(69, 192, 165, 0.62);
  color: var(--teal);
}

.industries-grid {
  display: grid;
  gap: 18px;
}

.industry-block {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(420px, 1.6fr);
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.industry-head {
  min-height: 100%;
  padding: 22px;
  background: var(--panel);
}

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

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

.industry-project-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.industry-project-card strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.25;
}

.industry-project-card span {
  color: var(--muted);
}

.industry-project-card em {
  margin-top: auto;
  color: var(--amber);
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
}

.approach-list {
  display: grid;
  gap: 16px;
}

.approach-list p {
  margin: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.approach-list strong {
  color: var(--text);
}

.contact {
  padding-bottom: 96px;
  border-bottom: 0;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
}

.project-detail-hero {
  width: min(1180px, 100%);
  padding-top: 92px;
  border-bottom: 1px solid var(--line);
}

.project-detail-hero h1 {
  max-width: 980px;
  font-size: clamp(42px, 6vw, 78px);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.detail-meta span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(224, 174, 88, 0.3);
  padding: 6px 10px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 850;
}

.project-detail-grid {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.project-detail-grid article {
  min-height: 270px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.project-detail-grid h2 {
  margin: 14px 0 16px;
  font-size: clamp(22px, 2.6vw, 32px);
}

.project-detail-grid p,
.project-detail-grid li {
  color: var(--muted);
}

.project-detail-grid ul {
  margin: 0;
  padding-left: 18px;
}

.project-detail-grid li + li {
  margin-top: 8px;
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .lang-switch {
    align-self: flex-start;
  }

  .hero {
    min-height: 760px;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(15, 20, 18, 1), rgba(15, 20, 18, 0.18)),
      linear-gradient(90deg, rgba(15, 20, 18, 0.94), rgba(15, 20, 18, 0.45));
  }

  .intro,
  .approach,
  .contact {
    grid-template-columns: 1fr;
  }

  .focus-grid,
  .map-grid,
  .companies-layout,
  .industry-block,
  .open-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .companies-grid,
  .industry-projects {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-column: auto;
  }

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

@media (max-width: 520px) {
  .section {
    padding: 54px 18px;
  }

  .hero-content {
    padding: 96px 18px 64px;
  }

  .button,
  .contact-links a {
    width: 100%;
  }
}
