@font-face {
  font-family: "Onest Digital";
  src: url("../fonts/onest-cyrillic-variable.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0400-052F, U+2DE0-2DFF, U+A640-A69F;
}

@font-face {
  font-family: "Onest Digital";
  src: url("../fonts/onest-latin-variable.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-024F, U+1E00-1EFF;
}

:root {
  color-scheme: light dark;
  --surface: #f3f5f8;
  --surface-deep: #e7ebf1;
  --card: #fbfcfe;
  --ink: #111827;
  --muted: #526075;
  --placeholder: #667085;
  --line: #d7dde7;
  --line-strong: #bcc6d5;
  --accent: #155eef;
  --accent-hover: #004ee8;
  --accent-soft: #e8efff;
  --signal: #6ce9a6;
  --tech-ink: #071226;
  --on-accent: #ffffff;
  --error: #b42318;
  --success: #027a48;
  --focus-ring: #004ee8;
  --shadow-muted: 0 18px 44px rgb(33 48 79 / .12);
  --radius-card: 22px;
  --radius-field: 12px;
  --header-height: 72px;
  --header: var(--header-height);
  --max: 1480px;
  --gutter: clamp(18px, 3vw, 44px);
  --font: "Onest Digital", "Segoe UI", Arial, sans-serif;
  --display: "Onest Digital", "Segoe UI", Arial, sans-serif;
  --glass-shell: rgb(251 252 254 / .86);
  --glass-panel: rgb(251 252 254 / .94);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--surface);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 350;
  letter-spacing: .002em;
  line-height: 1.5;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand strong,
.brand b {
  font-feature-settings: "ss01" 1, "cv02" 1;
  font-weight: 400;
}

.brand span,
.market-kicker,
.offer-card-body p,
.market-promo p,
.trust-strip span {
  font-variant-numeric: tabular-nums;
}

strong,
b {
  font-weight: 520;
}

img {
  max-width: 100%;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

input::placeholder,
textarea::placeholder {
  color: var(--placeholder);
  opacity: 1;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--surface);
  text-decoration: none;
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  height: var(--header-height);
  overflow: visible;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  background: var(--glass-shell);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .58);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  transform: translateY(0);
  transition: transform .34s cubic-bezier(.16, 1, .3, 1);
  will-change: transform;
}

.site-header.header-scroll-hidden {
  transform: translateY(-100%);
}

body.navigation-open .site-header {
  transform: translateY(0);
}

.header-shell {
  width: min(100%, var(--max));
  height: var(--header-height);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(14px, 1.5vw, 24px);
  align-items: center;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  min-width: 180px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 0;
  color: var(--accent);
  line-height: 1;
  text-decoration: none;
}

.brand-picture {
  width: 180px;
  height: 36px;
  display: block;
}

.brand-logo {
  width: 180px;
  height: 36px;
  display: block;
  object-fit: contain;
}

.brand > span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.brand strong,
.brand b {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -.045em;
}

.brand b {
  color: var(--ink);
}

.brand > span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.header-menu {
  min-width: 0;
  display: flex;
  gap: clamp(10px, 1.05vw, 18px);
  align-items: center;
}

.catalog-link,
.nav-cta,
.header-project-link,
.menu-button {
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 15px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.catalog-link {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 9px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  background: var(--accent-soft);
  color: color-mix(in srgb, var(--accent) 88%, var(--ink));
  cursor: pointer;
}

.catalog-link:hover {
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
}

.catalog-link-arrow {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s cubic-bezier(.16, 1, .3, 1);
}

.catalog-link[aria-expanded="true"] .catalog-link-arrow {
  transform: translateY(2px) rotate(225deg);
}

.site-nav {
  min-width: 0;
  display: flex;
  flex: 0 1 auto;
  gap: clamp(10px, .95vw, 18px);
  align-items: center;
}

.site-nav a {
  position: relative;
  color: var(--muted);
  font-size: 13px;
  font-weight: 420;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.market-search {
  width: clamp(168px, 17vw, 260px);
  min-width: 168px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  flex: 1 1 220px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-field);
  padding: 3px;
  background: var(--card);
  transition: border-color .18s ease;
}

.market-search:focus-within {
  border-color: var(--accent);
}

.market-search input {
  min-width: 0;
  height: 34px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}

.market-search button {
  min-width: 56px;
  border: 0;
  border-radius: 8px;
  padding: 0 11px;
  background: var(--ink);
  color: var(--surface);
  font-size: 12px;
  font-weight: 520;
  cursor: pointer;
}

.market-search button:hover {
  opacity: .9;
}

.header-project-link {
  display: none;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  flex: 0 0 auto;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.nav-cta:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.menu-button {
  display: none;
  gap: 9px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}

.menu-button-icon {
  width: 21px;
  height: 16px;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  flex: 0 0 auto;
}

.menu-button-line {
  height: 2px;
  display: block;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: transform .22s cubic-bezier(.16, 1, .3, 1), opacity .16s ease;
}

.menu-button-line:nth-child(1) {
  width: 21px;
}

.menu-button-line:nth-child(2) {
  width: 13px;
}

.menu-button-line:nth-child(3) {
  width: 17px;
}

.menu-button[aria-expanded="true"] .menu-button-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-button[aria-expanded="true"] .menu-button-line:nth-child(2) {
  opacity: 0;
}

.menu-button[aria-expanded="true"] .menu-button-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-scrim {
  position: fixed;
  z-index: 40;
  inset: var(--header-height) 0 0;
  background: rgb(7 15 32 / .54);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

body.navigation-open .site-scrim {
  opacity: 1;
  pointer-events: auto;
}

.mega-menu {
  position: fixed;
  z-index: 60;
  top: var(--header-height);
  right: 0;
  left: 0;
  max-height: calc(100dvh - var(--header-height));
  overflow-y: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--glass-panel);
  box-shadow: var(--shadow-muted), inset 0 1px 0 rgb(255 255 255 / .5);
  backdrop-filter: blur(22px) saturate(125%);
  -webkit-backdrop-filter: blur(22px) saturate(125%);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .18s cubic-bezier(.16, 1, .3, 1), transform .18s cubic-bezier(.16, 1, .3, 1);
}

.mega-menu[hidden] {
  display: none;
}

.mega-menu[data-state="open"] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.mega-menu-inner {
  width: min(100%, var(--max));
  display: grid;
  grid-template-columns: minmax(190px, .72fr) repeat(2, minmax(190px, 1fr)) minmax(240px, 1.04fr);
  gap: clamp(24px, 3vw, 52px);
  margin-inline: auto;
  padding: 34px var(--gutter) 24px;
}

.mega-menu-intro p,
.mega-menu-group > p {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 550;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mega-menu-intro h2 {
  max-width: 250px;
  margin: 0;
  font-size: clamp(28px, 2.4vw, 38px);
  font-weight: 420;
  letter-spacing: -.045em;
  line-height: 1;
}

.mega-menu-intro > span {
  max-width: 240px;
  display: block;
  margin-top: 15px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.mega-menu-group {
  display: grid;
  align-content: start;
}

.mega-menu-group a {
  display: grid;
  gap: 3px;
  border-radius: var(--radius-field);
  margin: 0 -10px;
  padding: 9px 10px;
  text-decoration: none;
  transition: background-color .18s ease, transform .18s ease;
}

.mega-menu-group a:hover,
.mega-menu-group a:focus-visible {
  background: var(--accent-soft);
  transform: translateX(2px);
}

.mega-menu-group strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 520;
}

.mega-menu-group span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.mega-menu-feature {
  min-height: 208px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-card);
  padding: 20px;
  color: #f7f9ff;
  text-decoration: none;
}

.mega-menu-feature::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, transparent 24%, rgb(6 16 39 / .88) 100%);
}

.mega-menu-feature img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .32s cubic-bezier(.16, 1, .3, 1);
}

.mega-menu-feature:hover img {
  transform: scale(1.025);
}

.mega-menu-feature span {
  color: #dbe7ff;
  font-size: 12px;
}

.mega-menu-feature strong {
  margin-top: 3px;
  font-size: 20px;
  font-weight: 520;
}

.mega-menu-footer {
  grid-column: 1 / -1;
  display: flex;
  gap: 22px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.mega-menu-footer > a:not(.mega-max-button) {
  color: var(--accent);
  font-weight: 520;
  text-underline-offset: 4px;
}

.mega-menu-footer > span {
  color: var(--muted);
  font-size: 13px;
}

.mega-menu-footer .mega-max-button {
  min-height: 40px;
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin-left: auto;
  border-radius: 999px;
  padding: 8px 15px;
  background: #5b2dff;
  color: #ffffff;
  text-decoration: none;
}

.mega-menu-footer .mega-max-button:hover {
  background: #4920dc;
}

.mega-menu-footer .mega-max-button img {
  width: 54px;
  height: auto;
}

.mega-menu-footer .mega-max-button span {
  color: #ffffff;
  white-space: nowrap;
}

main {
  min-height: 60dvh;
}

.section,
.page-intro,
.content-list,
.inline-cta,
.empty-state,
.contact-layout {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 450;
  letter-spacing: .025em;
}

.button {
  --magnetic-x: 0px;
  --magnetic-y: 0px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

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

.button:active {
  transform: scale(.98);
}

[data-magnetic] {
  transform: translate3d(var(--magnetic-x), var(--magnetic-y), 0);
}

[data-magnetic]:hover {
  transform: translate3d(var(--magnetic-x), calc(var(--magnetic-y) - 1px), 0);
}

[data-magnetic]:active {
  transform: translate3d(var(--magnetic-x), var(--magnetic-y), 0) scale(.98);
}

.button-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.button-primary:hover {
  background: var(--accent-hover);
}

.button-secondary {
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--ink);
}

.button-light {
  background: #f7f9ff;
  color: #0846bd;
}

.plain-link,
.text-link {
  color: var(--accent);
  font-weight: 500;
  text-underline-offset: 4px;
}

.page-intro {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 64px;
  padding-bottom: 64px;
}

.page-intro h1,
.empty-state h1,
.contact-copy h1 {
  max-width: 1000px;
  margin: 16px 0 0;
  font-family: var(--display);
  font-size: clamp(44px, 6.6vw, 86px);
  font-weight: 380;
  letter-spacing: -.05em;
  line-height: .96;
}

.page-intro p,
.empty-state > p,
.contact-copy > p:last-child {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 21px);
}

.content-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding-bottom: 96px;
}

.content-row {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 30px;
  background: var(--card);
  box-shadow: var(--shadow-muted);
}

.content-row:first-child {
  grid-column: 1 / -1;
  min-height: 300px;
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.content-row h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(30px, 3.4vw, 48px);
  letter-spacing: -.045em;
  line-height: 1;
}

.content-row p {
  max-width: 570px;
  margin: 28px 0 0;
  color: var(--muted);
}

.content-row:first-child p {
  color: color-mix(in srgb, var(--on-accent) 82%, transparent);
}

.inline-cta {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 96px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding-top: 44px;
  padding-bottom: 44px;
  background: var(--card);
  box-shadow: var(--shadow-muted);
}

.inline-cta h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  letter-spacing: -.05em;
  line-height: 1;
}

.empty-state {
  min-height: 62dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 72px;
  padding-bottom: 100px;
}

.empty-state .button {
  align-self: flex-start;
  margin-top: 32px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
  gap: clamp(34px, 6vw, 92px);
  align-items: start;
  padding-top: 72px;
  padding-bottom: 100px;
}

.contact-copy {
  position: sticky;
  top: calc(var(--header-height) + 32px);
}

.form-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(24px, 4vw, 48px);
  background: var(--card);
  box-shadow: var(--shadow-muted);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.field label,
.consent-field label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-field);
  padding: 13px 15px;
  background: var(--surface);
  color: var(--ink);
}

.field textarea {
  min-height: 124px;
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  border-color: var(--accent);
}

.field [aria-invalid="true"] {
  border-color: var(--error);
}

.field-error {
  color: var(--error);
  font-size: 13px;
  font-weight: 520;
}

.form-alert {
  margin-bottom: 24px;
  border: 1px solid color-mix(in srgb, var(--error) 28%, var(--line));
  border-radius: 14px;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--error) 9%, var(--card));
  color: var(--error);
  font-weight: 450;
}

.consent-field {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  margin: 4px 0 26px;
}

.consent-field input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--accent);
}

.consent-field .field-error {
  grid-column: 2;
}

.consent-field a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.submit-button {
  cursor: pointer;
}

.submit-button:disabled {
  opacity: .62;
  cursor: wait;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.success-state {
  outline: none;
}

.success-state h2 {
  margin: 0;
  color: var(--success);
  font-size: clamp(42px, 5vw, 68px);
  letter-spacing: -.055em;
  line-height: .95;
}

.success-state p {
  margin: 24px 0;
  color: var(--muted);
}

.site-footer {
  width: min(calc(100% - 2 * var(--gutter)), calc(var(--max) - 2 * var(--gutter)));
  display: grid;
  grid-template-columns: 1.3fr .8fr 1fr;
  gap: 48px;
  margin: 40px auto 24px;
  border: 1px solid rgb(255 255 255 / .1);
  border-radius: 28px;
  padding: clamp(34px, 5vw, 64px);
  background: #111827;
  color: #f7f9ff;
}

.footer-logo {
  width: 180px;
  height: 36px;
  display: block;
  object-fit: contain;
}

.footer-brand p {
  max-width: 300px;
  margin: 14px 0 0;
  color: #c2ccdc;
}

.footer-brand > span {
  display: block;
  margin-top: 14px;
  color: #a6b3c8;
  font-size: 12px;
}

.site-footer nav {
  display: grid;
  gap: 10px;
  align-content: start;
}

.site-footer nav a {
  color: #e0e7f2;
  text-decoration: none;
}

.site-footer nav a:hover {
  color: #ffffff;
}

.footer-contact {
  text-align: right;
}

.footer-contact p {
  margin: 0 0 12px;
  color: #c2ccdc;
}

.footer-contact a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 500;
  text-decoration: none;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.footer-contact .max-button {
  gap: 9px;
  background: #5b2dff;
  color: #ffffff;
}

.footer-contact .max-button:hover {
  background: #4920dc;
}

.max-button img {
  width: 58px;
  height: auto;
}

.max-button span {
  color: #ffffff;
  white-space: nowrap;
}

.footer-legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  border-top: 1px solid rgb(255 255 255 / .16);
  padding-top: 24px;
}

.footer-legal a,
.footer-legal button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #bdc8da;
  font-size: 13px;
  text-decoration: underline;
  text-decoration-color: rgb(189 200 218 / .55);
  text-underline-offset: 4px;
  cursor: pointer;
}

.footer-legal a:hover,
.footer-legal button:hover {
  color: #ffffff;
}

.footer-meta {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgb(255 255 255 / .16);
  padding-top: 24px;
  color: #bdc8da;
  font-size: 13px;
}

.mobile-dock {
  display: none;
}

.legal-page {
  padding-top: clamp(54px, 7vw, 100px);
  padding-bottom: 110px;
}

.legal-hero {
  max-width: 1050px;
  padding-bottom: clamp(50px, 7vw, 86px);
}

.legal-hero h1 {
  max-width: 1000px;
  margin: 14px 0 0;
  font-size: clamp(44px, 6.8vw, 94px);
  font-weight: 380;
  letter-spacing: -.055em;
  line-height: .96;
}

.legal-hero > p:last-child {
  margin: 22px 0 0;
  color: var(--muted);
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(210px, .3fr) minmax(0, 1fr);
  gap: clamp(42px, 8vw, 120px);
  align-items: start;
}

.legal-index {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  display: grid;
  gap: 11px;
  border-left: 2px solid var(--line);
  padding-left: 20px;
}

.legal-index strong {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 520;
}

.legal-index a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

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

.legal-content {
  max-width: 820px;
}

.legal-content section {
  scroll-margin-top: calc(var(--header-height) + 32px);
  border-top: 1px solid var(--line);
  padding: 34px 0 44px;
}

.legal-content section:first-child {
  border-top: 0;
  padding-top: 0;
}

.legal-content h2 {
  margin: 0 0 20px;
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 420;
  letter-spacing: -.035em;
  line-height: 1.05;
}

.legal-content h3 {
  margin: 28px 0 10px;
  font-size: 18px;
  font-weight: 520;
}

.legal-content p {
  margin: 0 0 15px;
  color: var(--muted);
  line-height: 1.72;
}

.legal-content a {
  color: var(--accent);
  text-underline-offset: 4px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 22px;
}

.legal-details {
  margin: 0;
}

.legal-details div {
  display: grid;
  grid-template-columns: minmax(150px, .34fr) 1fr;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.legal-details dt {
  color: var(--muted);
}

.legal-details dd {
  margin: 0;
  font-weight: 500;
}

.consent-panel {
  position: fixed;
  z-index: 80;
  right: 22px;
  bottom: 22px;
  left: 22px;
  width: min(calc(100% - 44px), 1120px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: end;
  margin-inline: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  padding: 24px;
  background: var(--glass-panel);
  box-shadow: var(--shadow-muted), inset 0 1px 0 rgb(255 255 255 / .5);
  backdrop-filter: blur(22px) saturate(125%);
  -webkit-backdrop-filter: blur(22px) saturate(125%);
}

.consent-panel[hidden] {
  display: none;
}

.consent-copy > p {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 520;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.consent-copy h2 {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 420;
  letter-spacing: -.035em;
  line-height: 1;
}

.consent-copy > span:not(.consent-status) {
  max-width: 720px;
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.consent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: 13px;
}

.consent-links a {
  color: var(--accent);
  font-size: 13px;
  text-underline-offset: 3px;
}

.consent-status {
  display: block;
  min-height: 18px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
}

.consent-actions {
  display: flex;
  gap: 10px;
}

.consent-actions .button {
  min-height: 44px;
  padding-inline: 18px;
  font-size: 14px;
}

.reveal {
  opacity: 1;
  transform: none;
}

.has-motion .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s cubic-bezier(.16, 1, .3, 1), transform .5s cubic-bezier(.16, 1, .3, 1);
}

.has-motion .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 1121px) and (max-width: 1260px) {
  .header-shell {
    gap: 14px;
  }

  .header-menu,
  .site-nav {
    gap: 10px;
  }

  .brand {
    min-width: 128px;
  }

  .market-search {
    width: 176px;
    min-width: 160px;
  }

  .catalog-link,
  .nav-cta {
    padding-inline: 12px;
  }
}

@media (max-width: 1120px) {
  :root {
    --header-height: 68px;
  }

  body.navigation-open {
    overflow: hidden;
  }

  .header-shell {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .menu-button {
    display: inline-flex;
  }

  .header-menu {
    position: fixed;
    z-index: 2;
    top: calc(var(--header-height) + 10px);
    right: var(--gutter);
    width: min(calc(100% - 2 * var(--gutter)), 560px);
    max-height: calc(100dvh - var(--header-height) - 20px);
    display: none;
    grid-template-columns: 1fr;
    gap: 10px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: 16px;
    background: var(--card);
    box-shadow: var(--shadow-muted);
  }

  .header-menu[data-open="true"] {
    display: grid;
  }

  .catalog-link {
    width: 100%;
    order: 1;
  }

  .site-nav {
    display: grid;
    order: 2;
    gap: 0;
  }

  .site-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
  }

  .site-nav a[aria-current="page"]::after {
    top: 10px;
    right: auto;
    bottom: 10px;
    left: -16px;
    width: 3px;
    height: auto;
  }

  .market-search {
    width: 100%;
    max-width: none;
    order: 3;
    margin-top: 2px;
  }

  .market-search input {
    height: 40px;
    font-size: 14px;
  }

  .market-search button {
    min-width: 72px;
    font-size: 13px;
  }

  .nav-cta,
  .header-project-link {
    width: 100%;
  }

  .nav-cta {
    order: 4;
  }

  .header-project-link {
    display: inline-flex;
    order: 5;
  }

  .mega-menu {
    top: calc(var(--header-height) + 10px);
    right: var(--gutter);
    left: var(--gutter);
    max-height: calc(100dvh - var(--header-height) - 20px);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
  }

  .mega-menu-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 26px;
  }

  .mega-menu-intro,
  .mega-menu-footer {
    grid-column: 1 / -1;
  }

  .mega-menu-feature {
    min-height: 210px;
  }

  .contact-copy {
    position: static;
  }
}

@media (max-width: 767px) {
  :root {
    --gutter: 16px;
    --radius-card: 20px;
  }

  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .brand {
    min-width: 0;
  }

  .brand strong,
  .brand b {
    font-size: 20px;
  }

  .header-menu {
    right: 10px;
    width: min(calc(100% - 20px), 560px);
    max-height: calc(100dvh - var(--header-height) - 20px);
  }

  .mega-menu {
    right: 10px;
    left: 10px;
  }

  .mega-menu-inner {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 22px 18px;
  }

  .mega-menu-intro,
  .mega-menu-footer {
    grid-column: auto;
  }

  .mega-menu-intro h2 {
    max-width: 310px;
    font-size: 33px;
  }

  .mega-menu-group > p {
    margin-bottom: 7px;
  }

  .mega-menu-feature {
    min-height: 184px;
  }

  .mega-menu-footer {
    display: grid;
    gap: 8px;
  }

  .mega-menu-footer .mega-max-button {
    width: max-content;
    margin: 8px 0 0;
  }

  .page-intro {
    min-height: 350px;
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .page-intro h1,
  .empty-state h1,
  .contact-copy h1 {
    font-size: clamp(42px, 12vw, 60px);
  }

  .content-list {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-bottom: 72px;
  }

  .content-row,
  .content-row:first-child {
    grid-column: auto;
    min-height: 220px;
    padding: 24px;
  }

  .inline-cta {
    display: grid;
    margin: 0 var(--gutter) 72px;
    padding: 26px;
  }

  .inline-cta .button {
    width: 100%;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    padding-top: 46px;
    padding-bottom: 74px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-shell {
    padding: 22px 18px;
  }

  .site-footer {
    width: calc(100% - 2 * var(--gutter));
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 16px;
    padding: 30px 24px;
  }

  .footer-contact {
    text-align: left;
  }

  .footer-actions {
    justify-content: flex-start;
  }

  .footer-legal {
    display: grid;
    gap: 10px;
  }

  .footer-meta {
    display: grid;
    gap: 6px;
  }

  .legal-page {
    padding-top: 48px;
    padding-bottom: 76px;
  }

  .legal-hero h1 {
    font-size: clamp(40px, 11.5vw, 58px);
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .legal-index {
    position: static;
  }

  .legal-content section {
    scroll-margin-top: calc(var(--header-height) + 24px);
    padding: 30px 0 36px;
  }

  .legal-details div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .consent-panel {
    right: 10px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    left: 10px;
    width: auto;
    max-height: calc(100dvh - 108px);
    grid-template-columns: 1fr;
    gap: 18px;
    overflow-y: auto;
    padding: 20px 18px;
  }

  .consent-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .consent-actions .button {
    width: 100%;
  }

  .mobile-dock {
    position: fixed;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 70;
    min-height: 58px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 5px 6px calc(5px + env(safe-area-inset-bottom));
    background: var(--glass-shell);
    box-shadow: var(--shadow-muted), inset 0 1px 0 rgb(255 255 255 / .5);
    backdrop-filter: blur(18px) saturate(125%);
    -webkit-backdrop-filter: blur(18px) saturate(125%);
  }

  .mobile-dock a {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
  }

  .mobile-dock a[aria-current="page"] {
    background: var(--accent);
    color: var(--on-accent);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #0d1320;
    --surface-deep: #151d2d;
    --card: #172033;
    --ink: #f2f5fa;
    --muted: #aeb9cb;
    --placeholder: #98a5ba;
    --line: #2a3549;
    --line-strong: #46536a;
    --accent: #79a6ff;
    --accent-hover: #95b8ff;
    --accent-soft: #1b3159;
    --on-accent: #071226;
    --error: #ff9b9b;
    --success: #6ce9a6;
    --focus-ring: #a8c4ff;
    --shadow-muted: 0 18px 44px rgb(0 0 0 / .3);
    --glass-shell: rgb(19 28 45 / .88);
    --glass-panel: rgb(23 32 51 / .95);
  }

  .site-header,
  .mega-menu,
  .consent-panel,
  .mobile-dock {
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .08);
  }

  .header-menu {
    background: var(--card);
  }

  .market-search button {
    background: var(--ink);
    color: var(--surface);
  }

  .button-light {
    color: #0c398d;
  }

  .site-footer {
    background: #080d17;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal,
  .has-motion .reveal,
  [data-magnetic] {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .mega-menu,
  .consent-panel,
  .mobile-dock {
    background: var(--card);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header,
  .mega-menu,
  .consent-panel,
  .mobile-dock {
    background: var(--card);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Public content surfaces use square geometry at every responsive breakpoint. */
.mega-menu-feature,
.content-row,
.inline-cta,
.form-shell {
  border-radius: 0;
}
