@import url('/css/tokens.css');

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--background);
  font: var(--fw-regular) var(--fs-body)/var(--lh-normal) var(--font);
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--ring) 35%, transparent); outline-offset: 2px; }
::selection { color: var(--primary-foreground); background: var(--primary); }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 88px 0; }
.section--soft { background: var(--blue-050); }
.section--navy {
  color: var(--white);
  background-color: var(--navy-900);
  background-image:
    linear-gradient(145deg, rgba(7,47,58,.88), rgba(12,75,90,.92)),
    url('/assets/admin-sidebar-texture.jpg');
  background-position: center, center 42%;
  background-size: auto, 1200px 2142px;
  background-repeat: no-repeat, repeat;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--blue-600);
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow::before { width: 28px; height: 2px; content: ''; background: var(--gold-500); }
.section--navy .eyebrow { color: var(--gold-300); }
.section-title { max-width: 760px; margin: 0; font-size: var(--fs-head); line-height: var(--lh-tight); letter-spacing: -.025em; }
.section-lead { max-width: 670px; margin: 18px 0 0; color: var(--muted); }
.section--navy .section-lead { color: rgba(255,255,255,.7); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 38px; }
.section-head .section-lead { margin: 0; max-width: 470px; }
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--white);
  background: var(--blue-600);
  font-weight: var(--fw-medium);
  box-shadow: var(--shadow-sm);
  transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
}
.button:hover { background: var(--navy-700); box-shadow: var(--shadow); }
.button:active { box-shadow: none; }
.button--gold { color: var(--navy-900); background: var(--gold-400); }
.button--gold:hover { background: var(--gold-300); }
.button--ghost { border-color: var(--line); color: var(--navy-900); background: var(--white); }
.button--ghost:hover { background: var(--blue-050); }
.button--sm { min-height: 42px; padding: 8px 16px; font-size: var(--fs-caption); }

/* Header */
.topline {
  color: rgba(255,255,255,.88);
  background-color: var(--navy-900);
  background-image:
    linear-gradient(90deg, rgba(7,47,58,.9), rgba(7,47,58,.86)),
    url('/assets/admin-sidebar-texture.jpg');
  background-position: center, center 24%;
  background-size: auto, 1200px 2142px;
  background-repeat: no-repeat, repeat;
  font-size: var(--fs-caption);
}
.topline__inner { min-height: 39px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topline__items { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.topline a:hover { color: var(--white); }
.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); }
.nav { height: 86px; min-height: 86px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; min-width: 250px; align-items: center; gap: 12px; margin-right: auto; }
.brand__logo { width: 64px; height: 64px; object-fit: contain; }
.site-header .brand { align-self: stretch; }
.site-header .brand__logo { position: relative; z-index: 1; width: 110px; height: 110px; }
.site-header .brand > span { display: flex; min-height: 100%; flex-direction: column; justify-content: center; }
.site-header .brand__name { font-size: 30px; line-height: 1; }
.brand__name { color: var(--navy-900); font-size: var(--fs-subhead); font-weight: var(--fw-bold); line-height: 1.05; }
.brand__meta { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; font-weight: var(--fw-regular); line-height: 1.15; }
.nav__links { display: flex; flex-shrink: 0; align-items: center; gap: 4px; }
.nav__link { padding: 10px 12px; border-radius: var(--radius-sm); font-size: var(--fs-caption); font-weight: var(--fw-medium); white-space: nowrap; }
.nav__link:hover, .nav__link.is-active { color: var(--accent-foreground); background: var(--accent); }
.lang { display: flex; padding: 4px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--card); }
.lang button { min-width: 38px; padding: 6px 8px; border: 0; border-radius: 999px; color: var(--muted); background: transparent; font-size: var(--fs-caption); }
.lang button.is-active { color: var(--primary-foreground); background: var(--primary); }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { display: block; width: 22px; height: 2px; margin: 5px auto; content: ''; background: var(--navy-900); }

/* Hero */
.hero { position: relative; overflow: hidden; color: var(--white); background: var(--navy-900); }
.hero::before { position: absolute; inset: 0; content: ''; opacity: .6; background: radial-gradient(circle at 18% 25%, rgba(5,128,163,.75) 0, transparent 35%), radial-gradient(circle at 78% 8%, rgba(229,176,47,.28) 0, transparent 28%); animation: heroGlowEnter 1.1s var(--ease) both; }
.hero::after { position: absolute; inset: 0; content: ''; background-image: linear-gradient(120deg, rgba(7,47,58,.96) 0%, rgba(5,100,127,.8) 48%, rgba(5,128,163,.18) 100%), url('/assets/hero1-enhanced.png'); background-position: center, right center; background-size: cover, auto 100%; background-repeat: no-repeat; transform-origin: 70% center; animation: heroBackdropEnter 1.25s var(--ease) both; }
.hero__inner { position: relative; z-index: 1; min-height: 590px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; }
.hero__content { max-width: 720px; padding: 70px 0 82px; }
.hero__badge { display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.1); font-size: var(--fs-caption); font-weight: var(--fw-medium); backdrop-filter: blur(10px); }
.hero__badge::before { width: 7px; height: 7px; content: ''; border-radius: 50%; background: var(--gold-400); box-shadow: 0 0 0 5px rgba(223,181,78,.18); animation: heroBadgePulse 2.8s ease-in-out 1.4s infinite; }
.hero h1 { max-width: 700px; margin: 25px 0 22px; font-size: 60px; line-height: 1.06; letter-spacing: -.045em; }
.hero-title__line { display: block; white-space: nowrap; }
.hero h1 .hero-title__accent { color: var(--gold-300); }
.hero p { max-width: 620px; margin: 0; color: rgba(255,255,255,.82); font-size: var(--fs-subhead); line-height: 1.45; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__badge,
.hero-title__line,
.hero__content > p,
.hero__actions { opacity: 0; animation: heroContentEnter .72s var(--ease) both; }
.hero__badge { animation-delay: .12s; }
.hero-title__line:first-child { animation-delay: .24s; }
.hero-title__line.hero-title__accent { animation-delay: .36s; }
.hero__content > p { animation-delay: .48s; }
.hero__actions { animation-delay: .6s; }
.hero .button--ghost { border-color: rgba(255,255,255,.28); color: var(--white); background: rgba(255,255,255,.08); }
.hero .button--ghost:hover { background: rgba(255,255,255,.16); }
.trust-strip { position: relative; z-index: 2; margin-top: -36px; }
.trust-strip__grid { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.trust-item { display: flex; min-height: 108px; align-items: center; gap: 16px; padding: 24px 28px; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item__icon, .card-icon { display: grid; flex: 0 0 auto; width: 48px; height: 48px; place-items: center; border-radius: 12px; color: var(--blue-600); background: var(--blue-100); }
.trust-item strong { display: block; color: var(--navy-900); font-size: var(--fs-subhead); line-height: 1.2; }
.trust-item span { color: var(--muted); font-size: var(--fs-caption); }

@keyframes heroBackdropEnter {
  from { opacity: 0; transform: scale(1.04); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes heroGlowEnter {
  from { opacity: 0; transform: translate3d(-12px, 0, 0); }
  to { opacity: .6; transform: translate3d(0, 0, 0); }
}
@keyframes heroContentEnter {
  from { opacity: 0; transform: translate3d(0, 16px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes heroBadgePulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(223,181,78,.18); }
  50% { box-shadow: 0 0 0 8px rgba(223,181,78,.08); }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after,
  .hero__badge,
  .hero__badge::before,
  .hero-title__line,
  .hero__content > p,
  .hero__actions { opacity: 1; transform: none; animation: none; }
}
.trust-item--contact .button { flex: 1; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.cards--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.leadership-cards { align-items: start; }
.feature-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); transition: box-shadow .2s var(--ease), border-color .2s var(--ease); }
.feature-card:hover { border-color: color-mix(in srgb, var(--primary) 42%, var(--border)); box-shadow: var(--shadow); }
.feature-card h3 { margin: 22px 0 10px; color: var(--navy-900); font-size: var(--fs-subhead); line-height: 1.25; }
.feature-card p { margin: 0; color: var(--muted); }
.feature-card__link { display: inline-flex; align-items: center; gap: 7px; margin-top: 20px; color: var(--blue-600); font-weight: var(--fw-medium); }
.feature-card__link:hover { gap: 11px; }
.leader-card { overflow: hidden; padding: 0; }
.leader-card__photo { width: 100%; aspect-ratio: 4 / 4; object-fit: cover; object-position: center top; background: var(--blue-050); }
.leader-card__content { padding: 26px 28px 30px; }
.leader-card__content h3 { margin-top: 0; }
.leader-card__position { min-height: 2.8em; }
.leader-card__accordion { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--blue-050); }
.leader-card__accordion summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; color: #000; font-weight: var(--fw-medium); cursor: pointer; list-style: none; }
.leader-card__accordion summary::-webkit-details-marker { display: none; }
.leader-card__accordion summary svg { flex: 0 0 auto; color: var(--blue-600); transition: transform .2s var(--ease); }
.leader-card__accordion[open] summary svg { transform: rotate(90deg); }
.leader-card__bio { margin-top: 24px; }
.leader-card__accordion .leader-card__bio { margin: 0; padding: 2px 18px 18px; border-top: 1px solid var(--line); }
.leader-card__bio .structured-copy h3 { margin: 26px 0 12px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 18px; }
.leader-card__bio .structured-copy h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.leader-card__bio .structured-copy p { margin-bottom: 12px; font-size: 15px; line-height: 1.65; }
.leader-card__bio .structured-copy ul { gap: 8px; margin: 12px 0 20px; padding: 18px 20px 18px 38px; background: var(--blue-050); }
.leader-card__bio .structured-copy li { font-size: 15px; line-height: 1.55; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); background: rgba(255,255,255,.06); }
.stat { padding: 38px; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.12); }
.stat strong { display: block; color: var(--gold-300); font-size: var(--fs-head); line-height: 1; }
.stat span { display: block; margin-top: 12px; color: rgba(255,255,255,.68); }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.news-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.news-card:hover { border-color: color-mix(in srgb, var(--primary) 42%, var(--border)); box-shadow: var(--shadow); }
.news-card__image { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--navy-800), var(--blue-400)); }
.news-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.news-card:hover .news-card__image img { transform: scale(1.04); }
.news-card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.72); }
.news-card__body { padding: 24px; }
.news-card__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: var(--fs-caption); }
.news-card h3 { margin: 13px 0 10px; color: var(--navy-900); font-size: var(--fs-subhead); line-height: 1.28; }
.news-card p { display: -webkit-box; overflow: hidden; margin: 0; color: var(--muted); -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.news-card__more { display: inline-flex; margin-top: 18px; color: var(--blue-600); font-weight: var(--fw-medium); }
.skeleton { min-height: 360px; border-radius: var(--radius); background: linear-gradient(90deg, var(--blue-050) 25%, var(--blue-100) 50%, var(--blue-050) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* About preview */
.about-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 70px; align-items: center; }
.about-visual { position: relative; min-height: 520px; border-radius: var(--radius-lg); background: url('https://optim.tildacdn.pro/tild3439-3732-4565-a232-333361393264/-/format/webp/zhakypov-768x512.jpg.webp') center/cover; box-shadow: var(--shadow-lg); }
.about-visual::after { position: absolute; inset: 0; content: ''; border-radius: inherit; background: linear-gradient(to top, rgba(7,47,58,.9), transparent 58%); }
.about-visual__caption { position: absolute; z-index: 1; right: 28px; bottom: 28px; left: 28px; color: var(--white); }
.about-visual__caption strong { display: block; font-size: var(--fs-subhead); }
.about-visual__caption span { color: rgba(255,255,255,.72); }
.check-list { display: grid; gap: 15px; margin: 28px 0 34px; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before { position: absolute; top: 3px; left: 0; display: grid; width: 22px; height: 22px; content: '✓'; place-items: center; border-radius: 50%; color: var(--blue-600); background: var(--blue-100); font-size: var(--fs-caption); font-weight: var(--fw-bold); }

/* Internal pages */
.page-hero { position: relative; overflow: hidden; padding: 76px 0; color: var(--white); background: linear-gradient(120deg, var(--navy-900), var(--primary)); }
.breadcrumbs { display: flex; gap: 8px; margin-bottom: 18px; color: rgba(255,255,255,.64); font-size: var(--fs-caption); }
.breadcrumbs a:hover { color: var(--white); }
.page-hero h1 { position: relative; z-index: 1; max-width: 800px; margin: 0; font-size: var(--fs-head); line-height: var(--lh-tight); }
.page-hero p { position: relative; z-index: 1; max-width: 680px; margin: 17px 0 0; color: rgba(255,255,255,.72); }
.article-page .page-hero h1 { max-width: 100%; }
.article-page .page-hero p { max-width: 100%; color: rgba(255,255,255,.82); font-size: var(--fs-caption); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; }
.prose h2 { margin: 0 0 16px; color: var(--navy-900); font-size: var(--fs-head); line-height: var(--lh-tight); }
.prose h3 { margin: 30px 0 10px; color: var(--navy-900); font-size: var(--fs-subhead); }
.prose p { margin: 0 0 18px; color: var(--muted); white-space: pre-line; }
.structured-copy h3 { margin: 42px 0 16px; padding-top: 34px; border-top: 1px solid var(--line); font-size: clamp(20px, 2.4vw, 26px); line-height: 1.3; }
.structured-copy h3:first-child { margin-top: 28px; padding-top: 0; border-top: 0; }
.structured-copy p { line-height: 1.72; text-align: justify; text-justify: inter-word; }
.structured-copy > h3:first-child + p { color: var(--foreground); font-size: var(--fs-lead); line-height: 1.65; }
.structured-copy ul { display: grid; gap: 10px; margin: 22px 0 28px; padding: 22px 28px 22px 48px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); background: var(--blue-050); }
.structured-copy li { padding-left: 4px; line-height: 1.62; }
.structured-copy li::marker { color: var(--blue-600); }
.content-grid--about .prose, .content-grid--about .prose h2, .content-grid--about .prose h3, .content-grid--about .prose p, .content-grid--about .prose li { color: #000; }
.side-card { position: sticky; top: 116px; padding: 26px; border-radius: var(--radius); color: var(--white); background: var(--navy-800); box-shadow: var(--shadow); }
.side-card h3 { margin: 0 0 10px; font-size: var(--fs-subhead); }
.side-card p { margin: 0 0 22px; color: rgba(255,255,255,.7); }
.section-anchor { scroll-margin-top: 116px; }
.section-menu { padding: 18px; }
.section-menu__links { display: grid; gap: 4px; }
.section-menu__links a { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 14px 13px; border-radius: var(--radius-sm); color: var(--white); font-weight: var(--fw-medium); transition: color .18s, background .18s; }
.section-menu__links a:hover { color: var(--gold-300); background: rgba(255,255,255,.08); }
.section-menu__links svg { flex: 0 0 auto; opacity: .7; }
.steps { display: grid; gap: 18px; margin-top: 34px; counter-reset: steps; }
.step-card { position: relative; padding: 27px 27px 27px 82px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); counter-increment: steps; }
.step-card::before { position: absolute; top: 24px; left: 24px; display: grid; width: 38px; height: 38px; content: counter(steps); place-items: center; border-radius: 50%; color: var(--white); background: var(--blue-600); font-weight: var(--fw-bold); }
.step-card h3 { margin: 0 0 7px; color: var(--navy-900); font-size: var(--fs-subhead); }
.step-card p { margin: 0; color: var(--muted); white-space: pre-line; }
.join-page { color: #000; }
.join-intro-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.join-info-card { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 22px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); }
.join-info-card .card-icon { width: 58px; height: 58px; }
.join-info-card h2, .join-section h2, .join-primary h2, .join-contact h2 { margin: 0; color: #000; font-size: clamp(28px, 3vw, 40px); line-height: var(--lh-tight); }
.join-check-list { display: grid; gap: 14px; margin: 25px 0 0; padding: 0; list-style: none; }
.join-check-list li { position: relative; padding-left: 30px; color: #000; line-height: 1.62; }
.join-check-list li::before { position: absolute; top: 8px; left: 2px; width: 10px; height: 10px; content: ''; border: 2px solid var(--blue-600); border-radius: 50%; background: var(--blue-100); }
.join-section { margin-top: 72px; }
.join-section__heading { max-width: 850px; margin-bottom: 30px; }
.join-scenarios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.join-scenario { position: relative; overflow: hidden; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); }
.join-scenario__number { display: block; margin-bottom: 24px; color: var(--blue-600); font-size: 34px; font-weight: var(--fw-bold); letter-spacing: -.04em; }
.join-scenario h3 { margin: 0 0 15px; color: #000; font-size: var(--fs-subhead); }
.join-scenario p { margin: 0 0 14px; color: #000; line-height: 1.68; text-align: justify; }
.join-scenario p:last-child { margin-bottom: 0; }
.join-scenario a, .join-creation-steps a { color: var(--blue-600); font-weight: var(--fw-medium); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--blue-600) 35%, transparent); text-underline-offset: 3px; }
.join-scenario a:hover, .join-creation-steps a:hover { color: var(--navy-800); }
.join-primary { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 28px; margin-top: 72px; padding: 42px; border-radius: var(--radius-lg); background: var(--blue-100); }
.join-primary__icon { display: grid; width: 72px; height: 72px; place-items: center; border-radius: 50%; color: var(--white); background: var(--blue-600); }
.join-primary p:not(.eyebrow) { margin: 18px 0 0; color: #000; line-height: 1.72; text-align: justify; }
.join-creation-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: join-steps; }
.join-creation-steps li { position: relative; padding: 29px 29px 29px 84px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); counter-increment: join-steps; }
.join-creation-steps li::before { position: absolute; top: 28px; left: 28px; display: grid; width: 40px; height: 40px; content: counter(join-steps); place-items: center; border-radius: 50%; color: var(--white); background: var(--blue-600); font-weight: var(--fw-bold); }
.join-creation-steps h3 { margin: 0 0 9px; color: #000; font-size: 20px; }
.join-creation-steps p { margin: 0 0 13px; color: #000; line-height: 1.6; }
.join-creation-steps a { display: inline-flex; align-items: center; gap: 8px; }
.join-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 45px; margin-top: 72px; padding: 42px; border-radius: var(--radius-lg); color: var(--white); background: linear-gradient(120deg, var(--navy-900), var(--primary)); box-shadow: var(--shadow); }
.join-contact h2 { color: var(--white); }
.join-contact > div:first-child > p:last-child { margin: 16px 0 0; color: rgba(255,255,255,.8); }
.join-contact__details { display: grid; align-content: center; gap: 15px; }
.join-contact__details p, .join-contact__details a { display: flex; align-items: flex-start; gap: 13px; margin: 0; color: var(--white); line-height: 1.5; }
.join-contact__details svg { flex: 0 0 auto; margin-top: 2px; color: var(--gold-300); }
.join-contact__details a:hover span:last-child { text-decoration: underline; text-underline-offset: 4px; }
.doc-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.filter-button { padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--radius-md); color: var(--muted); background: var(--card); transition: color .18s, border-color .18s, background .18s; }
.filter-button:hover { color: var(--foreground); background: var(--accent); }
.filter-button.is-active { border-color: var(--blue-600); color: var(--white); background: var(--blue-600); }
.documents { display: grid; gap: 14px; }
.document { display: flex; align-items: center; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.document__type { display: grid; flex: 0 0 auto; width: 50px; height: 58px; place-items: center; border-radius: 8px; color: var(--blue-600); background: var(--blue-100); font-size: var(--fs-caption); font-weight: var(--fw-bold); }
.document__content { min-width: 0; margin-right: auto; }
.document h3 { margin: 0 0 4px; color: var(--navy-900); font-size: var(--fs-body); }
.document p { margin: 0; color: var(--muted); font-size: var(--fs-caption); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; }
.contact-info, .form-card { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); }
.contact-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; }
.contact-item strong { display: block; color: var(--navy-900); }
.contact-item span, .contact-item a { color: var(--muted); }
.contact-map { grid-column: 1 / -1; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); }
.contact-map__heading { display: flex; align-items: center; gap: 16px; padding: 24px 28px; }
.contact-map__heading .eyebrow { margin-bottom: 5px; }
.contact-map__heading strong { color: var(--navy-900); }
.contact-map iframe { display: block; width: 100%; height: 430px; border: 0; border-top: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { color: var(--navy-900); font-size: var(--fs-caption); font-weight: var(--fw-medium); }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--input); border-radius: var(--radius-sm); outline: none; color: var(--foreground); background: var(--card); box-shadow: var(--shadow-sm); }
.field textarea { min-height: 142px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 18%, transparent); }
.form-status { min-height: 24px; margin-top: 14px; color: var(--ok); font-size: var(--fs-caption); }
/* Ловушка для ботов: поле не видно человеку, но остаётся в разметке формы. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.branches-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.branch-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.branch-card h3 { margin: 0 0 14px; color: var(--navy-900); font-size: var(--fs-subhead); }
.branch-card p { margin: 7px 0; color: var(--muted); }
.article { max-width: 820px; margin-inline: auto; }
.article__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.article__share { display: flex; flex-wrap: wrap; gap: 12px; margin-left: auto; }
.article__cover { width: 100%; max-height: 510px; margin: 0 0 32px; border-radius: var(--radius-lg); object-fit: cover; }
.article__body { color: #000; line-height: 1.72; text-align: justify; text-justify: inter-word; }
.article__body p { margin: 0 0 20px; color: #000; }
.article__body img { display: block; width: auto; max-width: 100%; height: auto; margin: 24px auto; border-radius: var(--radius-md); }
.article__body figure { margin: 28px 0; }
.article__body figcaption { margin-top: 8px; color: var(--muted); font-size: var(--fs-caption); text-align: center; }
.article__body iframe, .article__body video { display: block; width: 100%; max-width: 100%; min-height: 420px; margin: 28px 0; border: 0; }
.article__body table { display: block; width: 100%; margin: 24px 0; overflow-x: auto; border-collapse: collapse; }
.article__body th, .article__body td { padding: 10px 12px; border: 1px solid var(--line); }
.article__body ul, .article__body ol { margin: 0 0 20px; padding-left: 28px; }
.article__body blockquote { margin: 24px 0; padding: 14px 20px; border-left: 4px solid var(--gold-500); background: var(--surface-soft); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 36px; }
.pagination a, .pagination span { display: inline-flex; min-width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.empty { grid-column: 1 / -1; padding: 42px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }

/* Charter */
.charter-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.charter-language { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); box-shadow: var(--shadow-sm); }
.charter-language button { min-width: 108px; padding: 9px 16px; border: 0; border-radius: 999px; color: var(--muted); background: transparent; font-size: var(--fs-caption); font-weight: var(--fw-medium); }
.charter-language button.is-active { color: var(--primary-foreground); background: var(--primary); }
.charter-shell { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; }
.charter-toc { position: sticky; top: 116px; max-height: calc(100vh - 140px); overflow: auto; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.charter-toc > strong { display: block; margin-bottom: 14px; color: var(--navy-900); font-size: var(--fs-subhead); }
.charter-toc nav { display: grid; gap: 3px; }
.charter-toc a { display: grid; grid-template-columns: 26px 1fr; gap: 7px; padding: 8px 6px; border-radius: 7px; color: var(--muted); font-size: var(--fs-caption); line-height: 1.35; }
.charter-toc a:hover { color: var(--blue-600); background: var(--blue-050); }
.charter-toc a span { color: var(--blue-600); font-weight: var(--fw-bold); }
.charter-document { min-width: 0; padding: 54px clamp(28px, 6vw, 72px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); }
.charter-document__cover { max-width: 760px; margin: 0 auto 64px; padding-bottom: 54px; border-bottom: 1px solid var(--line); text-align: center; }
.charter-document__cover h2 { margin: 12px 0; color: var(--navy-900); font-size: clamp(22px, 3vw, 34px); line-height: 1.25; }
.charter-document__cover p { margin: 7px 0; color: var(--muted); }
.charter-document__section { scroll-margin-top: 126px; }
.charter-document__section + .charter-document__section { margin-top: 58px; padding-top: 48px; border-top: 1px solid var(--line); }
.charter-document__section > h2 { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 15px; align-items: start; margin: 0 0 30px; color: var(--navy-900); font-size: clamp(22px, 3vw, 30px); line-height: 1.25; }
.charter-document__section > h2 span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: var(--white); background: var(--blue-600); font-size: var(--fs-body); }
.charter-document__section h3 { margin: 34px 0 16px; color: var(--navy-900); font-size: var(--fs-subhead); line-height: 1.35; }
.charter-document__section p { margin: 0 0 16px; color: var(--foreground); line-height: 1.72; }
.charter-document__clause strong { color: var(--navy-900); }
.charter-loading { padding: 56px; border-radius: var(--radius); color: var(--muted); background: var(--white); text-align: center; }

/* Footer */
.footer {
  padding: 64px 0 22px;
  color: rgba(255,255,255,.8);
  background-color: var(--navy-900);
  background-image:
    linear-gradient(180deg, rgba(7,47,58,.88), rgba(7,47,58,.95)),
    url('/assets/admin-sidebar-texture.jpg');
  background-position: center, center 74%;
  background-size: auto, 1200px 2142px;
  background-repeat: no-repeat, repeat;
}
.footer__grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr 1fr; gap: 45px; }
.footer .brand__name { color: var(--white); }
.footer .brand__meta { color: rgba(255,255,255,.55); }
.footer__title { margin: 7px 0 17px; color: var(--white); font-size: var(--fs-body); }
.footer__links { display: grid; gap: 10px; }
.footer__links a:hover { color: var(--gold-300); }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: var(--fs-caption); }
.back-to-top { position: fixed; z-index: 90; right: 28px; bottom: 94px; display: grid; width: 52px; height: 52px; padding: 0; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: var(--white); background: var(--blue-600); box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transform: translateY(14px) scale(.9); transition: opacity .22s var(--ease), transform .22s var(--ease), background .18s var(--ease); }
.back-to-top svg { transform: rotate(-90deg); }
.back-to-top:hover { background: var(--navy-800); }
.back-to-top:focus-visible { outline: 3px solid var(--gold-300); outline-offset: 3px; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; max-width: 390px; padding: 14px 18px; border-radius: var(--radius-sm); color: var(--white); background: var(--navy-900); box-shadow: var(--shadow-lg); transform: translateY(30px); opacity: 0; pointer-events: none; transition: .25s var(--ease); }
.toast.is-visible { transform: translateY(0); opacity: 1; }

@media (max-width: 1060px) {
  .topline { display: none; }
  .nav { height: auto; min-height: 76px; }
  .brand__logo { width: 56px; height: 56px; }
  .site-header .brand__logo { width: 56px; height: 56px; }
  .nav__links { position: fixed; inset: 76px 0 auto; display: none; padding: 22px 20px 30px; border-top: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
  .nav__links.is-open { display: grid; }
  .nav__link { padding: 12px 16px; font-size: var(--fs-body); }
  .menu-toggle { display: block; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero::after { background-image: linear-gradient(90deg, rgba(7,47,58,.97), rgba(5,128,163,.58)), url('/assets/hero1-enhanced.png'); background-position: center; background-size: cover; }
  .cards, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 40px; }
  .footer__grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer__grid > :last-child { grid-column: 2 / -1; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 62px 0; }
  .brand { min-width: 0; }
  .brand__name { font-size: var(--fs-body); }
  .site-header .brand__name { font-size: var(--fs-body); }
  .brand__meta { display: none; }
  .lang { margin-left: auto; }
  .hero__inner { min-height: 570px; }
  .hero__content { padding: 56px 0 84px; }
  .hero p { font-size: var(--fs-body); }
  .trust-strip__grid { grid-template-columns: 1fr; }
  .trust-item { min-height: 94px; }
  .trust-item + .trust-item { border-top: 1px solid var(--line); border-left: 0; }
  .section-head { display: block; }
  .section-head .section-lead { margin-top: 15px; }
  .cards, .news-grid, .stats, .branches-grid { grid-template-columns: 1fr; }
  .stat + .stat { border-top: 1px solid rgba(255,255,255,.12); border-left: 0; }
  .about-grid, .content-grid, .contact-grid { grid-template-columns: 1fr; }
  .join-intro-grid, .join-scenarios, .join-creation-steps, .join-contact { grid-template-columns: 1fr; }
  .charter-shell { grid-template-columns: 1fr; }
  .charter-toc { position: static; max-height: none; }
  .charter-toc nav { grid-template-columns: 1fr 1fr; }
  .charter-document { padding: 38px 24px; }
  .about-visual { min-height: 400px; }
  .content-grid { gap: 30px; }
  .content-grid--about .about-page-menu { grid-row: 1; }
  .content-grid--about .prose { grid-row: 2; }
  .side-card { position: static; }
  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child, .footer__grid > :last-child { grid-column: 1 / -1; }
  .footer__bottom { display: block; }
  .back-to-top { right: 18px; bottom: 82px; width: 48px; height: 48px; }
}

@media (max-width: 520px) {
  .join-info-card { grid-template-columns: 1fr; padding: 26px; }
  .join-primary { grid-template-columns: 1fr; padding: 28px 24px; }
  .join-scenario p, .join-primary p:not(.eyebrow) { text-align: left; }
  .join-creation-steps li { padding: 26px 22px 26px 72px; }
  .join-creation-steps li::before { top: 25px; left: 20px; }
  .join-contact { padding: 30px 24px; }
  .charter-toolbar { align-items: stretch; flex-direction: column; }
  .charter-language { display: grid; grid-template-columns: 1fr 1fr; }
  .charter-language button { min-width: 0; }
  .charter-toc nav { grid-template-columns: 1fr; }
  .charter-document__section > h2 { grid-template-columns: 38px minmax(0, 1fr); gap: 11px; }
  .charter-document__section > h2 span { width: 36px; height: 36px; }
}

@media print {
  #header, #footer, .page-hero, .charter-toolbar, .charter-toc { display: none !important; }
  .section, .charter-page { padding: 0; background: #fff; }
  .container { width: 100%; }
  .charter-shell { display: block; }
  .charter-document { padding: 0; border: 0; box-shadow: none; }
  .charter-document__section { break-inside: auto; }
  .charter-document__section > h2, .charter-document__section h3 { break-after: avoid; }
}

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