:root {
  color-scheme: light;
  --paper: #f3f4ed;
  --surface: #fafbf6;
  --ink: #171a13;
  --muted: #565c4d;
  --line: #d7dace;
  --lime: #d7ff43;
  --night: #0c0e0d;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #678700; outline-offset: 4px; }
.hero :focus-visible { outline-color: var(--lime); }

.frame { width: min(1512px, calc(100% - 104px)); margin-inline: auto; }
.site-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 84px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.28rem; font-weight: 760; letter-spacing: -.055em; justify-self: start; direction: ltr; }
.brand img { background: var(--night); border-radius: 8px; padding: 5px; }
.brand-domain { color: var(--muted); font-weight: 540; margin-left: 1px; }
.navigation { display: flex; gap: 32px; font-size: .94rem; font-weight: 620; }
.navigation a:hover, .backtop:hover, .catalog-back:hover { text-decoration: underline; text-underline-offset: .3em; }
.language-picker { position: relative; z-index: 4; justify-self: end; max-width: 100%; }
.language-picker summary { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); font-size: .9rem; font-weight: 680; cursor: pointer; list-style: none; }
.language-picker summary::-webkit-details-marker { display: none; }
#current-language { min-width: 0; overflow-wrap: anywhere; }
.language-picker summary > svg { width: 18px; height: 18px; flex: none; }
.language-picker summary > .language-chevron { width: 14px; height: 14px; }
.language-picker[open] .language-chevron { transform: rotate(180deg); }
.language-list { position: absolute; inset-block-start: calc(100% + 8px); inset-inline-end: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; width: min(415px, calc(100vw - 30px)); max-height: 71vh; overflow-y: auto; overscroll-behavior: contain; padding: 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 46px #1b221e29; }
.language-picker:not([open]) .language-list { display: none; }
.language-list a { display: flex; align-items: center; min-height: 40px; padding: 6px 9px; border-radius: 6px; font-size: .9rem; font-weight: 600; overflow-wrap: anywhere; }
.language-list a:hover { background: #e6e9dc; }
.language-list [aria-current="page"], .language-list [aria-current="page"]:hover { color: var(--lime); background: var(--ink); }

.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: 52% 48%; min-height: clamp(510px, 43vw, 660px); color: #f6f7ee; background: var(--night); border-radius: 26px; overflow: hidden; }
.hero-content { padding: clamp(37px, 5.2vw, 85px); padding-inline-end: 0; display: flex; align-items: flex-start; justify-content: center; flex-direction: column; min-width: 0; }
.status { display: flex; align-items: center; gap: 10px; font: 600 .875rem/1.35 "Segoe UI", sans-serif; letter-spacing: .045em; color: #dfe5ce; }
.status span { flex: 0 0 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 13px #d7ff4370; }
.status b { font-weight: inherit; }
.hero h1 { margin-top: 21px; font-size: clamp(3.55rem, 7.1vw, 7.4rem); line-height: .96; letter-spacing: -.067em; font-weight: 760; }
:lang(ru) .hero h1 { font-size: clamp(3.05rem, 5.85vw, 6.4rem); letter-spacing: -.056em; }
html:not(:lang(en)):not(:lang(ru)) .hero h1 { font-size: clamp(2.4rem, 5.2vw, 5.6rem); line-height: 1.08; letter-spacing: -.045em; overflow-wrap: anywhere; }
:is(:lang(zh), :lang(ja), :lang(ko), :lang(ar), :lang(fa), :lang(ur), :lang(hi), :lang(bn), :lang(ta), :lang(mr), :lang(te)) :is(h1, h2, h3, .status, .area-card strong) { letter-spacing: normal !important; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero-intro { max-width: 360px; margin-top: 25px; color: #bfc6b4; font-size: clamp(1.05rem, 1.55vw, 1.3rem); line-height: 1.48; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 13px 20px; min-height: 47px; font-size: .94rem; font-weight: 710; border-radius: 8px; line-height: 1.25; transition: background-color .18s, color .18s; }
.button-primary { margin-top: 29px; background: var(--lime); color: #202510; }
.button-primary:hover { background: #e6ff8c; }
.button-outline { border: 1px solid #b9bead; flex-shrink: 0; max-width: 100%; }
.button-outline:hover { background: var(--ink); color: var(--surface); }

.hero-art { position: relative; z-index: -1; display: grid; place-items: center; overflow: hidden; }
.orbit { position: absolute; width: 100%; height: 100%; object-fit: cover; mask-image: linear-gradient(to right, transparent, #000 18%); }
.orbit-mark { width: clamp(98px, 9.5vw, 155px); height: auto; position: relative; transform: translate(-2%, -5%); filter: drop-shadow(0 0 28px #d7ff4340); }

.directions { margin-top: clamp(42px, 5.5vw, 86px); scroll-margin-top: 24px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 25px; }
.section-head h2, .about h2 { font-size: clamp(2.2rem, 4.25vw, 4.25rem); letter-spacing: -.073em; line-height: 1.12; font-weight: 750; overflow-wrap: anywhere; }
.section-head p, .about p { color: var(--muted); line-height: 1.55; font-size: 1.03rem; margin-top: 11px; }
.area-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.area-card { display: flex; position: relative; text-align: start; min-width: 0; min-height: 141px; flex-direction: column; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--ink); transition: background-color .2s, border-color .2s; }
.area-card:hover { border-color: #9baa70; background: #f5fadf; }
.area-card[aria-pressed="true"] { border-color: #829446; background: #edf8c9; }
.area-card svg { width: 36px; height: 36px; padding: 7px; background: #edf0e3; border-radius: 8px; color: #283419; }
.area-card[data-area="tech"] svg, .area-card[data-area="future"] svg { background: #e4f4b4; }
.area-card[data-area="design"] svg, .area-card[data-area="media"] svg { background: #eee5fa; }
.area-card[data-area="trade"] svg, .area-card[data-area="life"] svg { background: #f8ebd9; }
.area-card[data-area="learn"] svg, .area-card[data-area="outdoors"] svg { background: #e3edf8; }
.area-card strong { display: block; font-size: 1rem; letter-spacing: -.025em; line-height: 1.13; }
.area-card small { display: block; margin-top: 4px; color: var(--muted); font-size: .82rem; }
.area-card span { overflow-wrap: anywhere; max-width: 100%; }

.catalog { margin-top: 34px; padding: clamp(16px, 3vw, 34px); border: 1px solid var(--line); border-radius: 17px; background: var(--surface); scroll-margin-top: 18px; }
.catalog-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; margin-bottom: 20px; overflow-wrap: anywhere; }
.catalog-head h3 { font-size: clamp(1.5rem, 3vw, 2.45rem); letter-spacing: -.055em; line-height: 1.04; }
.catalog-back { font-size: .875rem; color: var(--muted); }
.controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 28%); gap: 10px; }
.controls input, .controls select { min-width: 0; width: 100%; min-height: 46px; padding: 8px 12px; border: 1px solid #bbc1ae; border-radius: 8px; background: #fff; color: var(--ink); }
.search { position: relative; }
.search svg { position: absolute; inset-inline-start: 12px; top: 12px; width: 22px; pointer-events: none; color: var(--muted); }
.search input { padding-inline-start: 40px; }
.results-status { margin-top: 18px; color: var(--muted); font-size: .875rem; }
.results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; padding: 0; margin: 16px 0 0; list-style: none; }
.results button { display: flex; flex-direction: column; gap: 5px; text-align: start; overflow-wrap: anywhere; width: 100%; height: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--paper); }
.results button:hover { border-color: #9baa70; background: #edf8c9; }
.show-more { margin-top: 18px; color: var(--ink); background: transparent; }
.results small { color: var(--muted); font-size: .82rem; }

.about { display: flex; gap: clamp(18px, 4vw, 58px); align-items: center; margin: clamp(42px, 6vw, 82px) 0 0; padding: clamp(24px, 5vw, 72px); border-radius: 21px; color: #f6f7ee; background: #191d14; scroll-margin-top: 18px; }
.about img { width: clamp(55px, 8vw, 110px); height: auto; }
.about > div { min-width: 0; }
.about p { color: #c1c8b6; max-width: 590px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 97px; color: var(--muted); font-size: .9rem; }
.site-footer .brand { color: var(--ink); }

dialog { position: fixed; width: min(510px, calc(100% - 30px)); padding: clamp(22px, 5vw, 37px); border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: var(--surface); box-shadow: 0 22px 80px #10160e48; }
dialog::backdrop { background: #12160d9c; }
dialog h2 { margin: 12px 0 18px; font-size: clamp(1.8rem, 5vw, 2.6rem); letter-spacing: -.06em; line-height: 1.05; }
dialog form { position: absolute; top: 12px; inset-inline-end: 12px; }
.detail-close { width: 38px; height: 38px; border: 0; border-radius: 50%; color: var(--ink); background: #e8ebdf; font-size: 1.55rem; line-height: 1; }
.detail-close:hover { background: #e4f4b4; }
.detail-area { color: var(--muted); font-size: .875rem; padding-inline-end: 24px; }
.detail-audience, .detail-action { line-height: 1.5; }
.detail-action { margin-top: 12px; }
.skip { position: fixed; z-index: 3; left: 12px; top: 12px; transform: translateY(-160%); padding: 10px; background: var(--lime); }
.skip:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 1050px) {
  .frame { width: calc(100% - 56px); }
  .hero { min-height: 470px; }
  .hero-content { padding-inline-start: 37px; }
  .area-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 730px) {
  .frame { width: calc(100% - 30px); }
  .site-header { grid-template-columns: auto minmax(0, 1fr); min-height: 66px; gap: 12px; }
  .navigation { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; border-radius: 17px; }
  .hero-content { padding: 29px 21px 12px; }
  .hero h1 { font-size: clamp(2.95rem, 11vw, 5rem); margin-top: 17px; }
  :lang(ru) .hero h1 { font-size: clamp(2.45rem, 8.6vw, 4.5rem); }
  html:not(:lang(en)):not(:lang(ru)) .hero h1 { font-size: clamp(2rem, 7.4vw, 4rem); }
  .hero-intro { margin-top: 17px; }
  .button-primary { margin-top: 19px; }
  .hero-art { height: clamp(224px, 76vw, 390px); }
  .orbit { object-fit: contain; mask-image: linear-gradient(to bottom, transparent, #000 16%); }
  .orbit-mark { width: clamp(66px, 16vw, 104px); transform: translateY(-4%); }
  .section-head { align-items: start; flex-direction: column; }
  .area-grid, .results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .area-card { min-height: 125px; padding: 13px; gap: 11px; }
  .controls { grid-template-columns: 1fr; }
  .site-footer { flex-wrap: wrap; padding-block: 20px; min-height: 0; }
  .site-footer p { order: 1; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
