:root {
  --bg: #F7F6F2;
  --white: #ffffff;
  --ink: #111111;
  --muted: #5f5f66;
  --line: #e4e4e7;
  --gold: #D8B24A;
  --gold-dark: #9B761D;
  --dark: #09090b;
  --soft-gold: #F8F1D5;
  --radius: 28px;
  --shadow: 0 28px 80px rgba(24,24,27,.08);
  --max: 1360px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.ms-container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.ms-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247,246,242,.92);
  border-bottom: 1px solid rgba(228,228,231,.9);
  backdrop-filter: blur(16px);
}
.ms-header-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.ms-brand { display: flex; align-items: center; gap: 14px; }
.ms-brand img { width: 150px; }
.ms-brand-title { font-size: 13px; letter-spacing: .24em; font-weight: 800; }
.ms-brand-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.ms-nav { display: flex; align-items: center; gap: 24px; font-size: 14px; color: var(--muted); font-weight: 700; }
.ms-nav a:hover { color: var(--gold-dark); }
.ms-lang { display: flex; align-items: center; gap: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.ms-lang button { border: 0; background: transparent; cursor: pointer; border-radius: 999px; padding: 8px 12px; font-weight: 800; color: var(--muted); }
body[data-lang="de"] .ms-lang button[data-set-lang="de"],
body[data-lang="es"] .ms-lang button[data-set-lang="es"] { background: var(--dark); color: var(--white); }
.ms-menu-toggle { display: none; border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 9px 12px; font-weight: 800; }

.ms-lang-content { display: none; }
body[data-lang="de"] .ms-lang-content[data-lang="de"],
body[data-lang="es"] .ms-lang-content[data-lang="es"] { display: block; }

.ms-section { padding: 112px 0; }
.ms-section-white { background: var(--white); }
.ms-eyebrow { color: var(--gold-dark); font-size: 12px; text-transform: uppercase; letter-spacing: .24em; font-weight: 800; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.ms-eyebrow:before { content: ""; display: block; width: 42px; height: 1px; background: var(--gold-dark); }
.ms-dark .ms-eyebrow { color: var(--gold); }
.ms-dark .ms-eyebrow:before { background: var(--gold); }
.ms-title { font-size: clamp(38px, 5vw, 72px); letter-spacing: -.055em; line-height: .98; margin: 0; font-weight: 800; }
.ms-h2 { font-size: clamp(34px, 4vw, 52px); letter-spacing: -.04em; line-height: 1.05; margin: 0; font-weight: 800; }
.ms-text { font-size: 19px; line-height: 1.65; color: var(--muted); max-width: 760px; margin: 26px 0 0; }
.ms-dark .ms-text { color: #d4d4d8; }
.ms-button-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.ms-button { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 15px 24px; font-weight: 800; background: var(--dark); color: var(--white); }
.ms-button-secondary { background: var(--white); color: var(--dark); border: 1px solid var(--line); }
.ms-button:hover { transform: translateY(-1px); }

.ms-hero { position: relative; overflow: hidden; padding: 84px 0 112px; }
.ms-hero:before { content: ""; position: absolute; inset: 0 0 auto; height: 560px; background: radial-gradient(circle at top right, rgba(216,178,74,.22), transparent 34%), linear-gradient(180deg,#fff 0%, var(--bg) 80%); z-index: -1; }
.ms-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.ms-hero-logo { width: 320px; margin-bottom: 42px; }
.ms-engine { border-radius: 36px; overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: 0 35px 100px rgba(24,24,27,.12); }
.ms-engine-head { background: var(--dark); color: var(--white); padding: 28px; }
.ms-engine-kicker { color: var(--gold); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; }
.ms-engine-title { font-size: 30px; font-weight: 800; margin-top: 10px; }
.ms-engine-row { display: flex; gap: 18px; align-items: center; padding: 24px 28px; border-top: 1px solid var(--line); }
.ms-engine-icon, .ms-card-icon { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 18px; background: var(--soft-gold); color: var(--gold-dark); display: flex; align-items: center; justify-content: center; font-weight: 900; }
.ms-engine-row strong { display: block; font-size: 18px; margin-bottom: 4px; }
.ms-engine-row span { color: var(--muted); font-size: 14px; }

.ms-two-col { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.ms-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ms-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ms-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: 0 20px 60px rgba(24,24,27,.06); }
.ms-card-num { color: var(--gold-dark); font-weight: 900; letter-spacing: .22em; font-size: 13px; }
.ms-card h3 { font-size: 24px; margin: 34px 0 12px; letter-spacing: -.02em; }
.ms-card p { color: var(--muted); line-height: 1.65; margin: 0; }

.ms-dark-block { background: var(--dark); color: var(--white); }
.ms-step { display: grid; grid-template-columns: 80px 1fr; gap: 22px; padding: 22px; border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.04); border-radius: 24px; margin-bottom: 14px; }
.ms-step-num { color: var(--gold); letter-spacing: .22em; font-weight: 900; }
.ms-step h3 { margin: 0 0 8px; font-size: 22px; }
.ms-step p { color: #d4d4d8; line-height: 1.6; margin: 0; }

.ms-project-head { display: flex; justify-content: space-between; gap: 36px; align-items: end; }
.ms-proof-pill { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 14px 18px; color: var(--muted); font-weight: 800; white-space: nowrap; }

.ms-tv-box, .ms-invest-dark, .ms-contact-box { background: var(--dark); color: var(--white); border-radius: 40px; padding: 56px; box-shadow: 0 35px 100px rgba(24,24,27,.14); }
.ms-tv-box { display: grid; grid-template-columns: .95fr 1.05fr; gap: 44px; }
.ms-check { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05); margin-bottom: 12px; color: #e4e4e7; font-weight: 700; }
.ms-note { background: rgba(216,178,74,.11); border: 1px solid rgba(216,178,74,.4); color: #F8F1D5; border-radius: 22px; padding: 20px; font-weight: 800; line-height: 1.55; margin-top: 18px; }

.ms-founder { display: grid; grid-template-columns: .92fr 1.08fr; overflow: hidden; border-radius: 40px; border: 1px solid var(--line); background: var(--bg); box-shadow: var(--shadow); }
.ms-founder-image { min-height: 560px; background-image: linear-gradient(to top, rgba(9,9,11,.68), transparent), url('../assets/founder-maxsensus.png'); background-size: cover; background-position: center; position: relative; }
.ms-founder-caption { position: absolute; left: 34px; right: 34px; bottom: 34px; color: var(--white); }
.ms-founder-content { padding: 56px; }
.ms-black-note { background: var(--dark); color: var(--white); border-radius: 28px; padding: 28px; margin-top: 36px; }
.ms-black-note p { color: #d4d4d8; line-height: 1.7; }
.ms-rule { border-left: 3px solid var(--gold); padding-left: 20px; font-size: 22px; font-weight: 800; margin-top: 32px; }

.ms-invest-top, .ms-internal-top { display: grid; grid-template-columns: 1fr .9fr; gap: 48px; background: var(--white); border-radius: 40px; padding: 56px; box-shadow: var(--shadow); }
.ms-light-check { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: #FBFAF6; margin-bottom: 12px; color: #3f3f46; font-weight: 700; }
.ms-process { display: grid; grid-template-columns: .78fr 1.22fr; border-radius: 40px; overflow: hidden; background: var(--dark); color: var(--white); box-shadow: 0 35px 100px rgba(24,24,27,.14); margin-top: 32px; }
.ms-process-left { padding: 48px; border-right: 1px solid rgba(255,255,255,.1); }
.ms-process-row { display: grid; grid-template-columns: 80px 1fr; gap: 18px; padding: 24px; border-top: 1px solid rgba(255,255,255,.1); }
.ms-process-row:first-child { border-top: none; }
.ms-process-row strong { display: block; font-size: 21px; margin-bottom: 8px; }
.ms-process-row span { color: #d4d4d8; line-height: 1.55; }
.ms-gold-note { margin-top: 32px; background: var(--soft-gold); border: 1px solid rgba(216,178,74,.6); border-radius: 30px; padding: 28px; }
.ms-gold-note p { color: #3f3f46; line-height: 1.7; }

.ms-internal-top { background: var(--bg); border: 1px solid var(--line); }
.ms-access { margin-top: 32px; background: var(--dark); color: var(--white); border-radius: 30px; padding: 32px; display: grid; grid-template-columns: .75fr 1.25fr; gap: 28px; align-items: center; }
.ms-access p { color: #d4d4d8; line-height: 1.7; }

.ms-contact-box { text-align: center; padding: 72px 24px; }
.ms-contact-logo { width: 280px; margin: 0 auto 40px; filter: brightness(1.1); }
.ms-footer { background: var(--white); border-top: 1px solid var(--line); padding: 30px 0; color: var(--muted); font-size: 14px; }
.ms-footer-inner { display: flex; justify-content: space-between; gap: 24px; }

@media (max-width: 980px) {
  .ms-nav { display: none; }
  .ms-menu-toggle { display: block; }
  .ms-nav.ms-open { display: grid; position: absolute; left: 24px; right: 24px; top: 84px; background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 16px; box-shadow: var(--shadow); }
.ms-nav.ms-open ul {
  display: grid;
  gap: 12px;
}
  .ms-hero-grid, .ms-two-col, .ms-tv-box, .ms-founder, .ms-invest-top, .ms-process, .ms-internal-top, .ms-access { grid-template-columns: 1fr; }
  .ms-grid-3, .ms-grid-4 { grid-template-columns: 1fr 1fr; }
  .ms-project-head { align-items: start; flex-direction: column; }
  .ms-proof-pill { white-space: normal; }
}

@media (max-width: 640px) {
  .ms-container { padding: 0 18px; }
  .ms-section { padding: 80px 0; }
  .ms-hero { padding-top: 56px; }
  .ms-hero-logo { width: 240px; }
  .ms-grid-3, .ms-grid-4 { grid-template-columns: 1fr; }
  .ms-tv-box, .ms-founder-content, .ms-invest-top, .ms-process-left, .ms-internal-top, .ms-contact-box { padding: 30px; }
  .ms-founder-image { min-height: 420px; }
  .ms-brand img { width: 118px; }
  .ms-brand-title, .ms-brand-sub { display: none; }
  .ms-title { font-size: 44px; }
}

.ms-lang ul {
    display: flex;
    gap: 6px;
}

.ms-lang a {
    padding: 8px 12px;
    border-radius: 999px;
    text-decoration: none;
}

.ms-lang li.active a {
    background: #111;
    color: #fff;
}
.ms-internal-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
/* ✅ NAV FIX за UL/Li версия */

.ms-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  align-items: center;
  gap: 24px;
}

.ms-nav li {
  margin: 0;
  padding: 0;
}

/* линковете */
.ms-nav a {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
}

/* hover */
.ms-nav a:hover {
  color: var(--gold-dark);
}
.invest-button {
    display: inline-block;
    padding: 8px 8px;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    width: 80px;
    background: linear-gradient(
        to bottom,
        #d8aa35 0%,
        #c9961f 50%,
        #b8830d 100%
    );

    border: 1px solid #b17d09;
    border-radius: 12px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.35),
        0 1px 2px rgba(0,0,0,.2);

    transition: all .2s ease;
}

.invest-button:hover {
    background: linear-gradient(
        to bottom,
        #e2b845 0%,
        #d6a32c 50%,
        #c18c14 100%
    );

    color: #fff;
    text-decoration: none;
}

.invest-button::after {
    content: "›";
    margin-left: 8px;
    font-size: 20px;
    vertical-align: middle;
}
span.letters {
  text-transform: uppercase;
}
.ms-lang {border: 1px solid #9E7200;}
.ms-lang a.active span.letters {color:#9E7200;}
.ms-lang a:not(:last-child)::after {
    content: "|";
    margin: 0 ;
    color: #111111;
    position: relative;
    left: 10px;
}
.ms-lang a {
    text-wrap: nowrap;
}