:root {
  color-scheme: light;
  --bg: #f7fafc;
  --surface: #ffffff;
  --surface-soft: #eef5f8;
  --surface-strong: #ffffff;
  --panel: rgba(255,255,255,0.92);
  --panel-strong: rgba(255,255,255,0.98);
  --line: rgba(17,34,46,0.12);
  --line-strong: rgba(17,34,46,0.20);
  --text: #111b22;
  --muted: #5d6b75;
  --muted-strong: #34444f;
  --accent: #df8b1d;
  --accent-strong: #9c5f0f;
  --accent-soft: rgba(223,139,29,0.12);
  --accent-2: #087f95;
  --accent-2-strong: #075d70;
  --accent-2-soft: rgba(8,127,149,0.10);
  --ok: #2d8b72;
  --shadow: 0 18px 48px rgba(18,37,50,0.10);
  --shadow-soft: 0 10px 28px rgba(18,37,50,0.08);
  --radius: 8px;
  --header-bg: rgba(255,255,255,0.86);
  --footer-bg: #eef5f8;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07111a;
  --surface: #0d1822;
  --surface-soft: #111f2a;
  --surface-strong: #0a141d;
  --panel: rgba(12,24,34,0.82);
  --panel-strong: rgba(8,17,25,0.92);
  --line: rgba(226,238,247,0.12);
  --line-strong: rgba(226,238,247,0.22);
  --text: #e8edf2;
  --muted: #9aa9b6;
  --muted-strong: #c4d0da;
  --accent: #f8b54c;
  --accent-strong: #ffd89a;
  --accent-soft: rgba(248,181,76,0.13);
  --accent-2: #96ecff;
  --accent-2-strong: #c5f6ff;
  --accent-2-soft: rgba(150,236,255,0.10);
  --ok: #72d7bd;
  --shadow: 0 22px 62px rgba(0,0,0,0.34);
  --shadow-soft: 0 12px 34px rgba(0,0,0,0.24);
  --header-bg: rgba(7,17,26,0.86);
  --footer-bg: rgba(0,0,0,0.18);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 42%, var(--surface-soft) 100%);
  color: var(--text);
  overflow-x: hidden;
  word-break: normal;
  hyphens: none;
}

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

.hero > *,
.grid-2 > *,
.grid-3 > *,
.section-head,
.card,
.panel,
.panel-inner,
.nav-link,
.subnav-link {
  min-width: 0;
}

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

h1,
h2,
h3,
p,
.lead,
.section-text,
.brand-sub,
.nav-link,
.subnav-link,
.chip,
.tag,
.btn,
.theme-toggle {
  word-break: normal;
  hyphens: none;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

[id] { scroll-margin-top: 112px; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 0 1 306px;
}

.brand svg {
  flex: 0 0 48px;
  filter: drop-shadow(0 10px 20px rgba(8,127,149,0.12));
}

.brand-text { min-width: 0; }

.brand-title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.brand-sub {
  max-width: 246px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.header-actions {
  order: 2;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 144px;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.nav {
  width: 100%;
  display: grid;
  grid-template-columns: .72fr .82fr minmax(230px, 1.55fr) minmax(230px, 1.55fr) 1fr;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 850;
  min-width: 0;
}

.nav a:hover,
.nav a:focus-visible { color: var(--text); }

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.58);
  border-radius: var(--radius);
  padding: 10px 13px;
  line-height: 1.15;
  white-space: normal;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

:root[data-theme="dark"] .nav-link {
  background: rgba(255,255,255,0.055);
}

.nav-item-wide,
.nav-contact { min-width: 0; }

.nav-link:hover,
.nav-link:focus-visible {
  background: var(--accent-2-soft);
  border-color: rgba(8,127,149,0.28);
  outline: none;
  transform: translateY(-1px);
}

.nav-contact {
  border-color: rgba(223,139,29,0.34);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.nav-contact:hover,
.nav-contact:focus-visible {
  background: rgba(223,139,29,0.18);
  border-color: rgba(223,139,29,0.52);
  color: var(--text);
}

.theme-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  flex: 0 0 144px;
  min-height: 42px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: var(--radius);
  padding: 3px;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.theme-toggle::before {
  content: "";
  position: absolute;
  inset: 3px auto 3px 3px;
  width: calc(50% - 3px);
  border-radius: 6px;
  background: var(--accent);
  transition: transform .22s ease;
}

:root[data-theme="dark"] .theme-toggle::before {
  transform: translateX(100%);
}

.theme-toggle span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 7px;
}

:root:not([data-theme="dark"]) .theme-light,
:root[data-theme="dark"] .theme-dark {
  color: #fff;
}

:root[data-theme="dark"] .theme-light,
:root:not([data-theme="dark"]) .theme-dark {
  color: var(--muted);
}

.subnav-wrap {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(12px);
}

.subnav-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}

.subnav-label {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.subnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.subnav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(8,127,149,0.20);
  background: var(--accent-2-soft);
  border-radius: var(--radius);
  padding: 9px 12px;
  color: var(--accent-2-strong);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  transition: .2s ease;
}

.subnav-link:hover,
.subnav-link:focus-visible {
  background: rgba(8,127,149,0.15);
  border-color: rgba(8,127,149,0.36);
  color: var(--text);
  outline: none;
}

.subnav-link.is-active {
  background: var(--accent);
  border-color: rgba(223,139,29,0.70);
  color: #fff;
  box-shadow: 0 10px 26px rgba(223,139,29,0.16);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius);
  padding: 13px 20px;
  font-weight: 850;
  border: 1px solid transparent;
  transition: .2s ease;
  cursor: pointer;
  max-width: 100%;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 26px rgba(223,139,29,0.18);
}

.btn-primary:hover { filter: brightness(1.04); transform: translateY(-1px); }

.btn-secondary {
  border-color: rgba(8,127,149,0.32);
  color: var(--accent-2-strong);
  background: var(--surface);
}

.btn-secondary:hover {
  background: var(--accent-2-soft);
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 0.92fr);
  gap: 42px;
  align-items: center;
  padding: 66px 0 88px;
}

.hero > *,
.grid-2 > *,
.grid-3 > * { min-width: 0; }

.pill,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(223,139,29,0.24);
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-radius: var(--radius);
  padding: 9px 13px;
  max-width: 100%;
  overflow-wrap: break-word;
}

.pill { font-size: 14px; }

h1 {
  margin: 22px 0 0;
  font-size: 76px;
  line-height: .94;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--accent);
  max-width: 900px;
  overflow-wrap: break-word;
}

.h1-functional {
  font-size: clamp(34px, 3.8vw, 46px);
  line-height: 1.02;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.h1-process {
  font-size: clamp(38px, 4vw, 56px);
  line-height: 1.04;
}

.h1-platforms {
  font-size: clamp(15px, 4vw, 48px);
  line-height: 1.06;
  white-space: nowrap;
  max-width: none;
}

.hero-platforms {
  grid-template-columns: 1fr;
  align-items: start;
}

.hero-platforms .panel {
  max-width: 760px;
}

.no-word-break {
  white-space: nowrap;
}

.hero p.lead {
  margin: 26px 0 0;
  max-width: 780px;
  font-size: 21px;
  line-height: 1.68;
  color: var(--muted-strong);
  overflow-wrap: break-word;
}

.inline-link {
  color: var(--accent-2-strong);
  border-bottom: 1px solid rgba(8,127,149,0.34);
  transition: .2s ease;
}

.inline-link:hover {
  color: var(--accent-strong);
  border-bottom-color: rgba(223,139,29,0.75);
}

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

.chip,
.tag {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  color: var(--muted-strong);
  max-width: 100%;
  overflow-wrap: break-word;
}

.chip {
  padding: 9px 12px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

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

.panel {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.panel-inner {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--accent-2-soft), transparent 45%, var(--accent-soft));
  padding: 24px;
}

.eyebrow-mini {
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent-2-strong);
}

.panel h3 {
  margin: 12px 0 0;
  font-size: 34px;
  line-height: 1.12;
  font-weight: 950;
  text-transform: uppercase;
  color: var(--text);
  overflow-wrap: break-word;
}

.list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.list-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  padding: 14px 15px;
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.55;
}

.check {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 50%;
  margin-top: 1px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
}

section.block { padding: 72px 0; }
.block-tight { padding-top: 20px; }

.section-head { max-width: 860px; }

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .20em;
}

h2 {
  margin: 16px 0 0;
  font-size: 50px;
  line-height: 1.03;
  font-weight: 950;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.section-text {
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--muted-strong);
  overflow-wrap: break-word;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 42px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.grid-spaced { margin-top: 22px; }
.portfolio-grid {
  margin-top: 42px;
  grid-template-columns: minmax(0, 1fr);
  max-width: 680px;
}

.card {
  height: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-soft);
}

.card:hover {
  transform: translateY(-2px);
  transition: .2s ease;
  border-color: var(--line-strong);
}

.card-accent,
.choice-card {
  background: linear-gradient(135deg, var(--surface), var(--surface-soft));
}

:root[data-theme="dark"] .card-accent,
:root[data-theme="dark"] .choice-card {
  background: linear-gradient(135deg, rgba(150,236,255,0.10), rgba(13,24,34,0.94), rgba(248,181,76,0.08));
}

.iconbox {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(8,127,149,0.20);
  background: var(--accent-2-soft);
  color: var(--accent-2-strong);
  font-size: 22px;
  font-weight: 850;
}

.card h3 {
  margin: 16px 0 0;
  font-size: 28px;
  line-height: 1.14;
  color: var(--text);
  overflow-wrap: break-word;
}

.card .sub {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-2-strong);
}

.card p {
  margin: 18px 0 0;
  color: var(--muted-strong);
  font-size: 15px;
  line-height: 1.72;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.tag {
  padding: 8px 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.direction-card,
.choice-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  transition: .2s ease;
}

.direction-card:hover,
.choice-card:hover {
  border-color: rgba(8,127,149,0.30);
}

.card-cta {
  display: inline-flex;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 22px;
  color: var(--accent-strong);
  font-weight: 850;
  border-bottom: 1px solid rgba(223,139,29,0.38);
}

.direction-card:hover .card-cta,
.choice-card:hover .card-cta {
  color: var(--accent-2-strong);
  border-bottom-color: rgba(8,127,149,0.56);
}

.card-cta:hover,
.card-cta:focus-visible {
  color: var(--accent);
  border-bottom-color: rgba(223,139,29,0.78);
  outline: none;
}

.soft-box,
.muted-box {
  border: 1px solid rgba(8,127,149,0.16);
  background: var(--accent-2-soft);
  border-radius: var(--radius);
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.6;
}

.soft-box { padding: 16px; }
.muted-box {
  margin-top: 16px;
  padding: 16px;
}

.format-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.format-option {
  border: 1px solid rgba(8,127,149,0.18);
  background: var(--accent-2-soft);
  border-radius: var(--radius);
  padding: 14px;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.55;
}

.format-option strong {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-strong);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.bullet-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.bullet-row {
  display: flex;
  gap: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 15px 16px;
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.65;
}

.bullet-row .arrow {
  color: var(--accent);
  font-weight: 900;
}

footer {
  border-top: 1px solid var(--line);
  background: var(--footer-bg);
  margin-top: 10px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 32px;
  color: var(--muted);
  font-size: 14px;
}

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.footer-contact-title {
  width: 100%;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-align: right;
}

.footer-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid rgba(8,127,149,0.22);
  background: var(--accent-2-soft);
  border-radius: var(--radius);
  padding: 8px 11px;
  color: var(--accent-2-strong);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  transition: .2s ease;
}

.footer-contact:hover,
.footer-contact:focus-visible {
  background: rgba(8,127,149,0.15);
  border-color: rgba(8,127,149,0.36);
  color: var(--text);
  outline: none;
}

@media (max-width: 1180px) {
  .header-actions { align-items: stretch; }
  .nav {
    align-items: stretch;
  }
  .nav-link {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
  }
  h1 { font-size: 64px; }
  h2 { font-size: 44px; }
  .panel h3 { font-size: 32px; }
  .hero p.lead { font-size: 20px; }
}

@media (max-width: 980px) {
  .hero,
  .grid-3,
  .grid-2 { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; }
  h1 { font-size: 56px; }
  h2 { font-size: 40px; }
  .panel h3 { font-size: 30px; }
  .hero p.lead { font-size: 19px; }
  .footer-inner { flex-direction: column; }
  .footer-contacts { justify-content: flex-start; }
  .footer-contact-title { text-align: left; }
}

@media (max-width: 760px) {
  .brand {
    flex: 1 1 100%;
  }
  .brand-sub {
    max-width: none;
    white-space: normal;
  }
  .header-actions {
    grid-template-columns: 1fr;
  }
  .theme-toggle {
    width: 100%;
    flex-basis: auto;
  }
}

@media (max-width: 620px) {
  .container { width: min(1180px, calc(100% - 20px)); }
  [id] { scroll-margin-top: 18px; }
  .header { position: static; }
  .header-inner {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
  }
  .brand {
    grid-column: 1;
    flex: 0 1 auto;
    min-width: 0;
    gap: 10px;
  }
  .brand svg {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }
  .brand-sub { display: none; }
  .header-actions { display: contents; }
  .card,
  .panel { padding: 18px; }
  .panel-inner { padding: 20px; }
  section.block { padding: 54px 0; }
  h1 { font-size: 38px; line-height: 1.04; }
  .h1-functional { font-size: clamp(28px, 7vw, 34px); }
  .h1-process { font-size: 30px; line-height: 1.08; }
  .h1-platforms { font-size: 20px; }
  h2 { font-size: 31px; line-height: 1.08; }
  .panel h3,
  .card h3 { font-size: 25px; }
  .hero p.lead,
  .section-text {
    font-size: 17px;
    line-height: 1.65;
  }
  .hero p.lead,
  .section-text,
  .card p,
  .list-item span,
  .muted-box {
    max-width: calc(100vw - 40px);
  }
  .chip,
  .tag,
  .eyebrow,
  .eyebrow-mini,
  .card .sub { letter-spacing: .10em; }
  .format-options { grid-template-columns: 1fr; }
  .nav {
    grid-column: 1 / -1;
    grid-row: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    font-size: 13px;
  }
  .nav-link {
    width: 100%;
    min-height: 40px;
    padding: 8px 8px;
    text-align: center;
    white-space: normal;
  }
  .theme-toggle {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    max-width: none;
    justify-self: stretch;
    min-height: 38px;
    font-size: 11px;
  }
  .nav-item-wide,
  .nav-contact {
    grid-column: 1 / -1;
    min-width: 0;
  }
  .subnav-inner {
    display: grid;
    gap: 9px;
    padding: 10px 0 12px;
  }
  .subnav-label {
    font-size: 10px;
    letter-spacing: .14em;
  }
  .subnav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .subnav-link {
    width: 100%;
    min-height: 42px;
    padding: 10px 6px;
    font-size: 11.5px;
  }
  .subnav-link-long {
    grid-column: 1 / -1;
    white-space: nowrap;
  }
  .btn { width: 100%; }
  .footer-contacts {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .footer-contact { width: 100%; }
  .footer-contact-title { text-align: left; }
  .hero-actions { flex-direction: column; }
}

@media (max-width: 420px) {
  .container { width: min(1180px, calc(100% - 24px)); }
  .header-inner { gap: 10px; }
  .brand-title { font-size: 18px; }
  .nav-link.nav-item-wide { font-size: 12.5px; }
  h1 { font-size: 34px; }
  .h1-functional { font-size: clamp(26px, 7vw, 30px); }
  .h1-process { font-size: 29px; }
  .h1-platforms { font-size: 15px; }
  .btn { padding: 13px 16px; }
}
