:root {
  color-scheme: light;
  --ink: #18211e;
  --muted: #5e6e67;
  --green: #267b52;
  --green-dark: #0e4d35;
  --deep: #071c16;
  --cream: #f7f3e8;
  --paper: #fbfcfa;
  --white: #ffffff;
  --line: #dce4e0;
  --mint: #dff2e7;
  --sage: #9ccbad;
  --gold: #e5b95c;
  --danger: #b8433b;
  --shadow: 0 20px 60px rgba(7, 28, 22, 0.1);
  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 38px;
  --max: 1180px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a { color: var(--green-dark); text-underline-offset: 0.2em; }
a:hover { color: var(--green); }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
img, svg { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--deep);
  color: white;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(220, 228, 224, 0.8);
  background: rgba(251, 252, 250, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner,
.container {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--deep);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand img { width: 36px; height: 36px; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-support { display: none; color: var(--muted); font-size: .9rem; font-weight: 700; text-decoration: none; }
.desktop-nav { display: none; gap: 24px; font-size: 0.92rem; }
.desktop-nav a { color: var(--muted); text-decoration: none; }
.desktop-nav a:hover { color: var(--deep); }

.language-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
}
.language-switch button {
  min-width: 42px;
  min-height: 36px;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
}
.language-switch button[aria-pressed="true"] { background: var(--deep); color: white; }

[data-lang-panel="en"] { display: none; }
html[data-lang="en"] [data-lang-panel="ru"] { display: none; }
html[data-lang="en"] [data-lang-panel="en"] { display: block; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 64px 0 78px;
  background:
    radial-gradient(circle at 90% 10%, rgba(156, 203, 173, 0.32), transparent 32rem),
    linear-gradient(145deg, #fbfcfa 20%, #f4f0e2 100%);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -130px;
  bottom: -180px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(38, 123, 82, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(38, 123, 82, 0.04), 0 0 0 90px rgba(38, 123, 82, 0.025);
}

.choice-main { min-height: calc(100vh - 72px); }
.choice-hero {
  min-height: calc(100vh - 72px);
  padding: 58px 0 48px;
  background:
    radial-gradient(circle at 12% 25%, rgba(156, 203, 173, .27), transparent 30rem),
    radial-gradient(circle at 90% 82%, rgba(229, 185, 92, .16), transparent 28rem),
    var(--cream);
}
.choice-intro { max-width: 920px; text-align: center; }
.choice-intro .eyebrow { justify-content: center; }
.choice-intro h1 { max-width: 900px; margin-inline: auto; font-size: clamp(2.65rem, 8vw, 5rem); }
.choice-intro .lede { max-width: 700px; margin-inline: auto; }
.choice-grid { display: grid; gap: 16px; margin-top: 42px; }
.choice-card {
  position: relative;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid rgba(7, 28, 22, .12);
  border-radius: var(--radius-lg);
  color: var(--deep);
  box-shadow: 0 18px 48px rgba(7, 28, 22, .08);
  overflow: hidden;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.choice-card:hover { color: var(--deep); transform: translateY(-4px); box-shadow: 0 24px 60px rgba(7, 28, 22, .14); }
.choice-card::after { content: ""; position: absolute; right: -70px; bottom: -95px; width: 240px; height: 240px; border: 36px solid rgba(255,255,255,.26); border-radius: 50%; }
.client-choice { background: #dff2e7; }
.specialist-choice { background: var(--deep); color: white; }
.specialist-choice:hover { color: white; }
.choice-index { color: var(--green-dark); font-family: Georgia, serif; font-size: 1.5rem; }
.specialist-choice .choice-index { color: #9ed4b5; }
.choice-copy { position: relative; z-index: 1; max-width: 520px; display: grid; gap: 10px; }
.choice-copy strong { font-family: Georgia, serif; font-size: clamp(1.75rem, 5vw, 2.65rem); font-weight: 500; line-height: 1.07; letter-spacing: -.035em; }
.choice-copy > span:last-child { color: #476056; }
.specialist-choice .choice-copy > span:last-child { color: #b8cbc2; }
.choice-label { color: var(--green-dark); font-size: .78rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.specialist-choice .choice-label { color: #9ed4b5; }
.choice-arrow { position: absolute; top: 25px; right: 28px; font-size: 1.65rem; }
.choice-footnote { text-align: center; }
.choice-footnote p { max-width: 700px; margin: 26px auto 0; color: var(--muted); font-size: .93rem; }

.role-page-nav { display: none; gap: 22px; align-items: center; }
.role-page-nav a { color: var(--muted); font-size: .9rem; text-decoration: none; }
.role-page-nav a[aria-current="page"] { color: var(--green-dark); font-weight: 850; }
.role-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--green-dark); font-size: .78rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.feature-strip { display: grid; gap: 1px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); overflow: hidden; }
.feature-strip article { padding: 24px; background: white; }
.feature-strip p { margin-bottom: 0; color: var(--muted); }
.hero-grid { display: grid; gap: 46px; align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--green); }
h1, h2, h3 { margin-top: 0; color: var(--deep); line-height: 1.08; letter-spacing: -0.035em; }
h1 { max-width: 780px; margin-bottom: 22px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.65rem, 10vw, 5.6rem); font-weight: 500; }
h2 { margin-bottom: 18px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 6vw, 3.65rem); font-weight: 500; }
h3 { margin-bottom: 10px; font-size: 1.16rem; }
.lede { max-width: 690px; margin: 0 0 28px; color: #405049; font-size: clamp(1.05rem, 2.4vw, 1.3rem); }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border: 1px solid var(--green);
  border-radius: 999px;
  background: var(--green);
  color: white;
  font-weight: 800;
  text-decoration: none;
}
.button:hover { background: var(--green-dark); color: white; }
.button.secondary { border-color: var(--line); background: white; color: var(--deep); }
.button.secondary:hover { border-color: var(--sage); color: var(--green-dark); }
.button.disabled, .button[aria-disabled="true"] { border-color: #cbd4cf; background: #e9eeeb; color: #69766f; cursor: not-allowed; }

.hero-visual {
  position: relative;
  min-height: 390px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: var(--radius-lg);
  background: var(--deep);
  box-shadow: var(--shadow);
  color: white;
  overflow: hidden;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0, rgba(116, 198, 157, .42), transparent 45%), linear-gradient(170deg, transparent 54%, rgba(229,185,92,.12));
}
.thread-line { position: absolute; top: 70px; bottom: 60px; left: 50%; width: 1px; background: linear-gradient(transparent, rgba(255,255,255,.35), transparent); }
.message-card {
  position: absolute;
  width: min(74%, 290px);
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  background: rgba(255,255,255,.09);
  backdrop-filter: blur(14px);
}
.message-card strong { display: block; margin-bottom: 5px; color: #e7f8ee; font-size: .77rem; letter-spacing: .08em; text-transform: uppercase; }
.message-card p { margin: 0; color: #edf4f0; line-height: 1.45; }
.message-card.one { top: 44px; left: 25px; }
.message-card.two { top: 165px; right: 25px; background: rgba(38,123,82,.42); }
.message-card.three { bottom: 38px; left: 40px; }
.lock-seal {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 7px solid var(--deep);
  border-radius: 50%;
  background: var(--gold);
  color: var(--deep);
  font-size: 1.45rem;
  transform: translate(-50%, -50%);
}

.context-preview {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: linear-gradient(155deg, #0d3428 0%, var(--deep) 72%);
}
.context-preview::before { background: radial-gradient(circle at 15% 0, rgba(116, 198, 157, .22), transparent 42%); }
.context-preview > * { position: relative; z-index: 1; }
.context-preview-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 4px; }
.context-preview-header > div { display: grid; gap: 4px; }
.context-preview-header strong { color: white; font-size: 1.3rem; }
.preview-kicker { color: #9ed4b5; font-size: .7rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.context-count { flex: 0 0 auto; padding: 7px 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: #dbe9e2; font-size: .75rem; font-weight: 800; }
.context-list { display: grid; gap: 9px; }
.context-entry { padding: 14px 15px; border: 1px solid rgba(255,255,255,.13); border-left: 3px solid #74c69d; border-radius: 14px; background: rgba(255,255,255,.07); }
.context-entry-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.context-entry time { color: #a9bdb4; font-size: .72rem; font-weight: 750; }
.entry-tag { color: #bde5ce; font-size: .68rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.context-entry p { margin: 7px 0 0; color: #f2f7f4; font-size: .92rem; line-height: 1.42; }
.context-preview-footer { display: grid; grid-template-columns: 10px 1fr; gap: 10px; align-items: start; padding-top: 2px; }
.status-dot { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(229,185,92,.12); }
.context-preview-footer div { display: grid; gap: 2px; }
.context-preview-footer strong { color: white; font-size: .84rem; }
.context-preview-footer span:last-child { color: #a9bdb4; font-size: .76rem; }

.section { padding: 76px 0; }
.section.dark { background: var(--deep); color: #dbe9e2; }
.section.dark h2, .section.dark h3 { color: white; }
.section.dark .eyebrow { color: #9ed4b5; }
.section.tinted { background: var(--cream); }
.section-heading { max-width: 720px; margin-bottom: 36px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.dark .section-heading p { color: #a9bdb4; }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; }
.card {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}
.card p:last-child { margin-bottom: 0; }
.card-number { margin-bottom: 28px; color: var(--green); font-family: Georgia, serif; font-size: 2rem; }
.role-card { position: relative; min-height: 265px; overflow: hidden; }
.role-card::after { content: ""; position: absolute; right: -50px; bottom: -70px; width: 170px; height: 170px; border: 24px solid var(--mint); border-radius: 50%; }
.role-label { display: inline-block; margin-bottom: 55px; padding: 5px 10px; border-radius: 99px; background: var(--mint); color: var(--green-dark); font-size: .78rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }

.security-layout { display: grid; gap: 34px; align-items: start; }
.security-list { display: grid; gap: 14px; }
.security-item { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.security-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: rgba(116,198,157,.12); color: #93ddb4; font-weight: 900; }
.security-item p { margin: 4px 0 0; color: #a9bdb4; }

.plan-grid { display: grid; gap: 14px; }
.plan { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.plan.featured { border-color: var(--green); box-shadow: 0 14px 40px rgba(38,123,82,.12); }
.plan-name { margin: 0 0 8px; color: var(--green-dark); font-size: .82rem; font-weight: 900; letter-spacing: .1em; }
.plan-limit { margin: 0 0 20px; color: var(--deep); font-family: Georgia, serif; font-size: 2rem; line-height: 1; }
.plan ul { margin: 0; padding-left: 19px; color: var(--muted); }
.plan li + li { margin-top: 7px; }
.plan-note { margin-top: 24px; color: var(--muted); font-size: .9rem; }

.faq { display: grid; gap: 10px; }
details { border: 1px solid var(--line); border-radius: 18px; background: white; }
summary { padding: 18px 52px 18px 20px; cursor: pointer; color: var(--deep); font-weight: 800; }
details p { margin: 0; padding: 0 20px 20px; color: var(--muted); }

.cta-band {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--green);
  color: white;
}
.cta-band h2 { margin: 0; color: white; font-size: clamp(2rem, 5vw, 3rem); }
.cta-band p { margin: 10px 0 0; color: #dceee4; }

.site-footer { padding: 44px 0; border-top: 1px solid var(--line); background: white; }
.footer-grid { display: grid; gap: 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.site-footer p { margin: 7px 0; color: var(--muted); font-size: .9rem; }

.page-hero { padding: 54px 0 36px; background: var(--cream); }
.page-hero h1 { max-width: 900px; font-size: clamp(2.5rem, 8vw, 4.8rem); }
.content-layout { display: grid; gap: 28px; padding-block: 48px 80px; }
.side-nav { align-self: start; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.side-nav strong { display: block; margin-bottom: 8px; }
.side-nav a { display: block; padding: 7px 0; color: var(--muted); text-decoration: none; }
.prose { min-width: 0; }
.prose section { padding: 28px 0; border-bottom: 1px solid var(--line); }
.prose section:first-child { padding-top: 0; }
.prose h2 { font-family: inherit; font-size: clamp(1.55rem, 4vw, 2.15rem); font-weight: 800; letter-spacing: -.025em; }
.prose h3 { margin-top: 24px; }
.prose p, .prose li { color: #415049; }
.prose li + li { margin-top: 8px; }
.notice { padding: 18px 20px; border-left: 4px solid var(--gold); border-radius: 0 14px 14px 0; background: #fff8e7; color: #59471c; }
.notice.danger { border-color: var(--danger); background: #fff1ef; color: #672a25; }
.meta-list { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 18px 0 0; color: var(--muted); font-size: .9rem; }

.support-role { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.support-role ul { padding-left: 20px; }
.contact-card { padding: 24px; border-radius: var(--radius); background: var(--deep); color: #dbe9e2; }
.contact-card h2, .contact-card a { color: white; }

.join-view { display: none; min-height: calc(100vh - 72px); align-items: center; padding: 48px 0; background: radial-gradient(circle at 50% 0, var(--mint), transparent 38rem), var(--cream); }
body.join-mode .site-header .desktop-nav, body.join-mode .landing-view { display: none; }
body.join-mode .join-view { display: flex; }
.join-card { max-width: 620px; margin-inline: auto; padding: clamp(26px, 6vw, 48px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow); text-align: center; }
.join-card img { width: 78px; height: 78px; margin: 0 auto 24px; }
.join-card h1 { margin-bottom: 16px; font-size: clamp(2.2rem, 8vw, 4rem); }
.join-status { min-height: 3.4em; color: var(--muted); }
.join-card .button-row { justify-content: center; }

.legal-placeholder { display: inline-flex; padding: 5px 9px; border: 1px dashed var(--danger); border-radius: 8px; color: var(--danger); font-weight: 750; }

@media (min-width: 700px) {
  .header-inner, .container { width: min(calc(100% - 64px), var(--max)); }
  .hero { padding: 92px 0 104px; }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band { grid-template-columns: 1fr auto; padding: 44px; }
  .footer-grid { grid-template-columns: 1.3fr 1fr; }
  .header-support { display: inline; }
  .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 980px) {
  .desktop-nav { display: flex; }
  .hero-grid { grid-template-columns: minmax(0, 1.14fr) minmax(360px, .86fr); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .security-layout { grid-template-columns: 1fr 1fr; gap: 80px; }
  .plan-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .content-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 60px; }
  .side-nav { position: sticky; top: 104px; }
  .role-page-nav { display: flex; }
  .choice-card { min-height: 390px; padding: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .side-nav, .button-row, .site-footer { display: none !important; }
  body { background: white; color: black; font-size: 11pt; }
  .page-hero, .section { padding: 20px 0; background: white; }
  .content-layout { display: block; padding: 20px 0; }
  .prose section { break-inside: avoid; }
  a { color: black; text-decoration: none; }
}
