:root {
  --bg: #081225;
  --bg-soft: #0f1d36;
  --card: #111f3a;
  --text: #eaf0ff;
  --muted: #aebbd8;
  --brand: #4db6ff;
  --brand-2: #8d9bff;
  --accent: #4af2b5;
  --accent-dark: #0d402f;
  --border: rgba(255, 255, 255, 0.12);
  --max: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 32%, rgba(74, 242, 181, 0.18), transparent 35%),
    radial-gradient(circle at 92% 18%, rgba(32, 96, 255, 0.2), transparent 38%),
    linear-gradient(120deg, #09182d 0%, #0a1731 45%, #132f5f 100%);
  color: var(--text);
  line-height: 1.6;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem max(1.25rem, calc((100vw - var(--max)) / 2));
  backdrop-filter: blur(8px);
  background: rgba(8, 18, 37, 0.8);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-logo {
  height: 1.9rem;
  width: auto;
  display: none;
}

.brand-fallback {
  display: inline;
  font-weight: 700;
}

.brand.has-fallback .brand-fallback {
  display: inline;
}

.brand.has-fallback .brand-logo {
  display: none;
}

.menu-toggle {
  display: none;
  position: absolute;
  right: max(1.25rem, calc((100vw - var(--max)) / 2));
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 0.5rem;
  padding: 0.45rem 0.7rem;
}

.nav {
  display: flex;
  gap: 1rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
}

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

.nav a.active {
  color: var(--accent);
  font-weight: 600;
}

.section {
  width: min(var(--max), 92vw);
  margin: 0 auto;
  padding: 4.8rem 0;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
  align-items: center;
  min-height: 72vh;
  padding-top: 3.5rem;
  padding-bottom: 2rem;
  text-align: left;
}

.hero-content {
  max-width: 540px;
  order: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-logo-wrap {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  padding: 4px;
  margin-bottom: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: radial-gradient(circle at 30% 30%, #ffffff, #d7e8ff 72%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
  display: grid;
  place-items: center;
  margin-left: 0 !important;
  margin-right: 0 !important;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.hero-logo-wrap.popped {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 22px rgba(74, 242, 181, 0.24);
}

.hero-chip {
  margin: 0 !important;
  width: fit-content;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(74, 242, 181, 0.13);
  border: 1px solid rgba(74, 242, 181, 0.3);
  font-size: 0.85rem;
  font-weight: 600;
}

.title-accent {
  display: block;
  color: var(--accent);
}

.hero-media {
  order: 2;
  border-radius: 1.6rem;
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 540px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 30px 80px rgba(4, 8, 20, 0.5);
}

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
  display: block;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.77rem;
  letter-spacing: 0.12em;
  font-weight: 600;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin-top: 0.7rem;
  margin-bottom: 0.7rem;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.9rem);
  max-width: 12ch;
  margin-top: 1rem;
  margin-left: 0;
  margin-right: 0;
}

h2 {
  font-size: clamp(1.65rem, 2.5vw, 2.5rem);
}

.subtitle {
  color: var(--muted);
  max-width: 50ch;
  margin-left: 0;
  margin-right: 0;
}

.subtitle.max {
  max-width: 62ch;
}

.cta-row {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.btn {
  text-decoration: none;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  display: inline-block;
  font-weight: 600;
}

.btn-primary {
  color: #032117;
  background: linear-gradient(120deg, #16d286, var(--accent));
}

.btn-secondary {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.hero-card,
.card,
.step {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border);
  border-radius: 1rem;
}

.hero-card {
  padding: 1.2rem 1.15rem;
}

.hero-card ul {
  margin: 1rem 0 0;
  padding-left: 1rem;
  color: var(--muted);
}

.panel {
  background: var(--bg-soft);
  border-radius: 1.2rem;
  padding: 2.4rem 1.2rem;
}

.panel > .eyebrow,
.panel > h2 {
  text-align: center;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

.card {
  padding: 1rem;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
}

.timeline {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.step {
  padding: 1rem;
}

.step-number {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  color: var(--brand);
}

.design-notes {
  margin-top: 1.4rem;
  display: grid;
  gap: 1rem;
}

.dp-block {
  margin-top: 1.4rem;
  padding: 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(9, 23, 49, 0.7), rgba(18, 40, 76, 0.42));
  box-shadow: 0 10px 28px rgba(5, 10, 28, 0.28);
}


.dp-block > h2 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.dp-block > p {
  color: var(--muted);
  margin-top: 0.2rem;
  margin-bottom: 0.8rem;
}

.hmw {
  margin-top: 0.8rem;
  padding: 0.95rem;
  border-left: 4px solid #58b8ff;
  border-radius: 0.7rem;
  background: linear-gradient(120deg, rgba(88, 184, 255, 0.2), rgba(255, 255, 255, 0.08));
  font-style: italic;
  font-weight: 600;
  color: #f2f7ff;
}

.dp-grid {
  display: grid;
  gap: 0.8rem;
}

.dp-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.dp-card {
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 0.9rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dp-card:hover {
  transform: translateY(-3px);
  border-color: rgba(74, 242, 181, 0.45);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

.dp-card h3 {
  margin-top: 0;
  margin-bottom: 0.45rem;
  font-size: 1.08rem;
}

.dp-card p {
  color: var(--muted);
  margin: 0.35rem 0;
}

.dp-card ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
}

.moscow.must {
  border-color: rgba(86, 222, 137, 0.6);
  background: linear-gradient(180deg, rgba(86, 222, 137, 0.14), rgba(255, 255, 255, 0.02));
}

.moscow.should {
  border-color: rgba(109, 170, 255, 0.6);
  background: linear-gradient(180deg, rgba(109, 170, 255, 0.14), rgba(255, 255, 255, 0.02));
}

.moscow.could {
  border-color: rgba(231, 205, 80, 0.6);
  background: linear-gradient(180deg, rgba(231, 205, 80, 0.14), rgba(255, 255, 255, 0.02));
}

.moscow.wont {
  border-color: rgba(198, 198, 198, 0.5);
  background: linear-gradient(180deg, rgba(198, 198, 198, 0.12), rgba(255, 255, 255, 0.02));
}

.proto-stage {
  border-left: 3px solid #2f7cf6;
  border-radius: 0.8rem;
  border: 1px solid rgba(47, 124, 246, 0.35);
  background: linear-gradient(135deg, rgba(47, 124, 246, 0.16), rgba(255, 255, 255, 0.02));
  padding: 0.8rem 0.9rem;
  margin-bottom: 0.7rem;
}

.proto-stage h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.proto-stage ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
}

.prototype-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 1rem;
  align-items: start;
}

.prototype-stages {
  display: grid;
  gap: 0.7rem;
}

.prototype-image {
  width: 320px;
  height: 320px;
  max-width: 100%;
  display: block;
  justify-self: start;
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  margin: 0;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}


.note-block {
  border: 1px solid var(--border);
  border-left: 4px solid rgba(74, 242, 181, 0.5);
  padding: 1rem 1rem 1.05rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border-radius: 0.8rem;
}

.note-block h3 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}

.note-block p {
  margin: 0;
  color: var(--muted);
}

.note-tags {
  margin-top: 0.6rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.note-tags span {
  font-size: 0.76rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.metric {
  text-align: center;
}

.metric-value {
  margin: 0.25rem 0;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--brand);
}

.metric-label {
  margin: 0;
  color: var(--muted);
}

.contact {
  text-align: center;
}

.mat-image {
  width: 100%;
  display: block;
  object-fit: cover;
}

.process-back {
  margin-top: 1rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.6rem 1rem 2.2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 940px) {
  .grid.three,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
    min-height: auto;
    padding-top: 2.2rem;
  }

  .hero-content {
    max-width: 100%;
    align-items: flex-start;
  }

  #home .hero-content {
    align-items: center;
  }

  .hero-chip {
    margin: 0 !important;
  }

  .hero-logo-wrap {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  #home .hero-logo-wrap {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #home .hero-chip {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  h1 {
    margin-left: auto;
    margin-right: auto;
  }

  .subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .cta-row {
    justify-content: center;
  }

  .hero-media,
  .hero-image {
    min-height: 360px;
  }

  .hero-logo-wrap {
    width: 190px;
    height: 190px;
    padding: 8px;
  }

  .section {
    padding: 3.9rem 0;
  }

  .dp-block {
    padding: 0.85rem;
  }

  .design-notes {
    gap: 0.7rem;
  }

  .dp-grid.two,
  .dp-grid.three {
    grid-template-columns: 1fr;
  }

  .prototype-layout {
    grid-template-columns: 1fr;
  }

  .note-block {
    padding: 0.75rem 0.75rem 0.8rem;
  }

  .note-block h3 {
    font-size: 1rem;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    padding: 0.9rem;
    border: 1px solid var(--border);
    border-radius: 0.8rem;
    background: rgba(8, 18, 37, 0.96);
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-header {
    justify-content: flex-end;
  }
}
