/* Tensor Energy — tensornrg.com
   Палитра и шрифты — из логобука: кобальт, сине-зелёный, янтарь, графит; Exo 2 в логотипе, Manrope в тексте.
   Ритм: тёмный первый экран с крупным фрагментом куба, светлые секции, кобальтовый блок проекта, тёмная карта. */
:root {
  --cobalt: #2949A3;
  --teal: #087F98;
  --amber: #FFAD25;
  --graphite: #17232B;
  --graphite-2: #1F2E38;
  --white: #FFFFFF;
  --mist: #EEF2F5;
  --ink: #17232B;
  --muted: #5B6B78;
  --line: #D9E1E7;
  --grad: linear-gradient(180deg, var(--cobalt), var(--teal));
  --font: "Manrope", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --font-logo: "Exo 2", "Manrope", system-ui, sans-serif;
  --wrap: 1200px;
  --header: 72px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.65 var(--font); }
img, svg { max-width: 100%; }
a { color: var(--cobalt); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--amber); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.015em; text-wrap: balance; }
h2 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.12; margin-bottom: 28px; }
h3 { font-size: 21px; line-height: 1.3; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
@media (min-width: 760px) { .wrap { padding-inline: 40px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--amber); color: var(--graphite);
  padding: 10px 14px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------------- логотип */
.logo { display: inline-flex; align-items: center; gap: .55em; font-size: 16px; line-height: 1; }
.logo__mark { width: 2.4em; height: auto; flex: none; }
.logo__word { display: flex; flex-direction: column; font-family: var(--font-logo); }
.logo__tensor { font-weight: 700; font-size: 1.32em; letter-spacing: .01em; line-height: .95; }
.logo__energy { font-weight: 400; font-size: .79em; letter-spacing: .015em; margin-top: .12em; }
.logo--white { color: var(--white); }
.logo--color { color: var(--graphite); }

/* ---------------- шапка */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(23, 35, 43, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.header-in { height: var(--header); display: flex; align-items: center; gap: 28px; }
.header-logo { text-decoration: none; margin-right: auto; }
.main-nav { display: none; align-items: center; gap: 24px; }
.main-nav a { color: #C9D3DA; text-decoration: none; font-size: 15px; font-weight: 500; }
.main-nav a:hover { color: var(--white); }
.main-nav .nav-cta { color: var(--graphite); background: var(--amber); padding: 9px 16px; border-radius: 8px; font-weight: 600; }
.main-nav .nav-cta:hover { color: var(--graphite); filter: brightness(1.05); }
.langs { display: flex; gap: 2px; font-size: 14px; font-weight: 600; }
.langs a { color: #9DAAB4; text-decoration: none; min-width: 40px; min-height: 40px; padding: 0 8px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center; }
.langs a:hover { color: var(--white); }
.langs a[aria-current] { color: var(--white); background: rgba(255, 255, 255, .1); }
.menu-btn { width: 42px; height: 42px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .08); cursor: pointer;
  display: grid; place-items: center; }
.menu-btn i, .menu-btn i::before, .menu-btn i::after { display: block; width: 18px; height: 2px; background: var(--white); border-radius: 2px; content: ""; position: relative; }
.menu-btn i::before { position: absolute; top: -6px; } .menu-btn i::after { position: absolute; top: 6px; }
.menu-btn i, .menu-btn i::before, .menu-btn i::after { transition: transform .2s, background .2s, top .2s; }
.menu-btn[aria-expanded="true"] i { background: transparent; }
.menu-btn[aria-expanded="true"] i::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 1079px) {
  .main-nav.is-open { display: flex; position: absolute; top: var(--header); left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px 20px 20px; background: var(--graphite); border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .main-nav.is-open a { padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: 17px; }
  .main-nav.is-open .nav-cta { margin-top: 14px; text-align: center; border: 0; }
}
@media (min-width: 1080px) { .main-nav { display: flex; } .menu-btn { display: none; } }
@media (max-width: 420px) { .header-in { gap: 8px; } .langs a { min-width: 36px; padding: 0 4px; } .logo { font-size: 14px; } }

/* ---------------- кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 24px; border-radius: 10px;
  font: 600 16px/1.2 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: filter .15s, background .15s; }
.btn--amber { background: var(--amber); color: var(--graphite); }
.btn--amber:hover { filter: brightness(1.06); }
.btn--ghost { color: var(--white); border-color: rgba(255, 255, 255, .35); }
.btn--ghost:hover { border-color: var(--white); }
.btn--cobalt { background: var(--cobalt); color: var(--white); }
.btn--cobalt:hover { filter: brightness(1.12); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------------- первый экран */
.hero { position: relative; overflow: hidden; background: var(--graphite); color: var(--white); }
.hero-cube { position: absolute; width: min(900px, 92vw); height: auto; right: max(-300px, -22vw); top: -90px; opacity: .95; pointer-events: none;
  animation: rise 1.2s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: .95; transform: none; } }
.hero-in { position: relative; padding-block: 96px 64px; }
.eyebrow { font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: #9DD8E4; font-weight: 600; margin-bottom: 22px; }
.hero h1 { font-size: clamp(38px, 6.2vw, 76px); line-height: 1.04; max-width: 13ch; letter-spacing: -.025em; }
.lang-zh .hero h1 { max-width: 14em; letter-spacing: 0; }
.hero .lead { font-size: clamp(18px, 2vw, 22px); line-height: 1.55; color: #D5DDE3; max-width: 560px; margin-top: 26px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.facts { list-style: none; padding: 0; margin: 72px 0 0; display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; overflow: hidden; max-width: 1040px; }
.facts li { background: rgba(23, 35, 43, .86); padding: 20px 22px; display: grid; gap: 2px; }
.facts b { font-family: var(--font-logo); font-size: 26px; font-weight: 700; }
.facts span { color: #9DAAB4; font-size: 15px; }
@media (max-width: 759px) {
  .hero-cube { width: 130vw; right: -86vw; top: -30px; opacity: .5; }
  .hero-in { padding-block: 64px 48px; }
}

/* ---------------- секции */
.section { padding-block: clamp(72px, 9vw, 120px); scroll-margin-top: var(--header); }
.section--mist { background: var(--mist); }
.section--dark { background: var(--graphite); color: var(--white); }
.section--cobalt { background: var(--cobalt); color: var(--white); position: relative; overflow: hidden; }
.label { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--teal); margin-bottom: 14px; }
.section--dark .label, .section--cobalt .label { color: #9DD8E4; }
.split { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } }
.prose p { color: #33434E; max-width: 62ch; }
.prose p + p { margin-top: 16px; }
.pillars { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); }
.pillars li { border-top: 3px solid; border-image: var(--grad) 1; padding-top: 16px; }
.pillars h3 { font-size: 19px; margin-bottom: 6px; }
.pillars p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }

/* направления */
.dir-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.dir-card { background: var(--white); border-radius: 16px; padding: 30px 28px 32px; display: grid; gap: 14px; align-content: start;
  box-shadow: 0 1px 0 var(--line); }
.dir-icon { width: 52px; height: 52px; color: var(--cobalt); }
.dir-icon .ic-amber { fill: var(--amber); stroke: none; }
.dir-card p { color: var(--muted); font-size: 16px; line-height: 1.6; }

/* проект */
.section--cobalt::before { content: ""; position: absolute; inset: 0; opacity: .1; pointer-events: none;
  background-image: url("../img/pattern.svg"); background-size: 220px auto; }
.project { position: relative; display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 960px) { .project { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; } }
.project-title { font-size: clamp(44px, 7vw, 88px); line-height: 1; letter-spacing: -.03em; margin-bottom: 24px; }
.project .lead { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.4; font-weight: 600; margin-bottom: 16px; }
.project-text > p:not(.label):not(.lead) { color: #DCE4F5; max-width: 56ch; }
.project-cube { width: min(420px, 70vw); height: auto; justify-self: center; }
.chips { list-style: none; padding: 0; margin: 28px 0 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { font-size: 14.5px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); }
.chips--light { margin: 22px 0 14px; }
.chips--light li { background: var(--mist); border-color: var(--line); color: var(--ink); }

/* как работаем */
.steps { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.steps li { padding: 28px 28px 8px 0; border-top: 1px solid var(--line); position: relative; }
.steps li::before { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 3px; background: var(--grad); }
.step-n { display: block; font-family: var(--font-logo); font-weight: 700; font-size: 15px; color: var(--teal); margin-bottom: 12px; letter-spacing: .06em; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 30ch; }

/* география */
.geo-head { display: grid; gap: 12px 64px; grid-template-columns: minmax(0, 1fr); align-items: end; margin-bottom: 36px; }
@media (min-width: 960px) { .geo-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.geo-head h2 { margin-bottom: 0; }
.geo-head > p { color: #B9C5CE; max-width: 46ch; }
.hexmap { position: relative; aspect-ratio: 1000 / 600; max-width: 100%; }
.hexmap-canvas, .hexmap-canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hexmap-fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #9DAAB4; padding: 20px; }
.pin { position: absolute; transform: translate(-7px, -7px); display: grid; grid-template-columns: 14px auto; column-gap: 10px; align-items: start; pointer-events: none; }  /* метка — ровно в точке, подпись рядом */
.pin i { width: 14px; height: 14px; border-radius: 3px; background: var(--amber); grid-row: span 2; position: relative; }
.pin--project i::after { content: ""; position: absolute; inset: -7px; border: 2px solid var(--amber); border-radius: 6px; animation: pulse 2.4s ease-out infinite; }
.pin--left { grid-template-columns: auto 14px; transform: translate(calc(-100% + 7px), -7px); }
.pin--left i { grid-column: 2; grid-row: 1 / span 2; }
.pin--left b, .pin--left span { grid-column: 1; justify-self: end; }
.pin--left b { border-radius: 4px 4px 0 4px; } .pin--left span { border-radius: 4px 0 4px 4px; }
.pin--top { display: flex; flex-direction: column; align-items: center; transform: translate(-50%, calc(-100% + 7px)); }
.pin--top i { order: 3; margin-top: 5px; }
.pin--top b { border-radius: 4px 4px 0 0; } .pin--top span { border-radius: 0 0 4px 4px; }
@keyframes pulse { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.8); } }
.pin b, .pin span { background: rgba(23, 35, 43, .82); padding: 1px 7px; justify-self: start; }
.pin b { font-size: clamp(12px, 1.5vw, 17px); line-height: 1.2; white-space: nowrap; border-radius: 4px 4px 4px 0; }
.pin span { font-size: clamp(10px, 1.1vw, 13px); color: #FFD796; line-height: 1.3; white-space: nowrap; border-radius: 0 0 4px 4px; }
/* дуги из Гонконга ко всем странам СНГ */
.hexmap .arc-base { fill: none; stroke: var(--amber); stroke-width: 1.2; stroke-opacity: .3; stroke-linecap: round; stroke-dasharray: var(--len); }
.hexmap .arc-flow { fill: none; stroke: var(--amber); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 3 9; opacity: .75;
  animation: arc-flow 1.5s linear infinite; }
.hexmap .arc-flow--main { stroke-width: 2.4; stroke-dasharray: 6 6; opacity: 1; }
.hexmap .map-node { fill: var(--amber); stroke: var(--graphite); stroke-width: 2.5; paint-order: stroke; transform-box: fill-box; transform-origin: center; }
.hexmap.is-live .arc-base { stroke-dashoffset: var(--len); animation: arc-draw 1.1s cubic-bezier(.3, .6, .2, 1) var(--d) forwards; }
.hexmap.is-live .arc-flow { opacity: 0; animation: arc-show .5s ease var(--d2) forwards, arc-flow 1.5s linear infinite; }
.hexmap.is-live .arc-flow--main { animation: arc-show-main .5s ease var(--d2) forwards, arc-flow 1.5s linear infinite; }
.hexmap.is-live .map-node { transform: scale(0); animation: node-in .45s cubic-bezier(.3, 1.6, .5, 1) var(--d2) forwards,
  node-glow 2.6s ease-in-out calc(var(--d2) + .45s) infinite; }
/* на телефоне карта ужата примерно втрое — линии толще, пунктир реже */
@media (max-width: 760px) {
  .hexmap .arc-base { stroke-width: 2.6; }
  .hexmap .arc-flow { stroke-width: 3.2; stroke-dasharray: 6 18; }
  .hexmap .arc-flow--main { stroke-width: 5; stroke-dasharray: 12 12; }
}
@keyframes arc-draw { to { stroke-dashoffset: 0; } }
@keyframes arc-show { to { opacity: .75; } }
@keyframes arc-show-main { to { opacity: 1; } }
@keyframes arc-flow { to { stroke-dashoffset: -24; } }
@keyframes node-in { to { transform: scale(1); } }
@keyframes node-glow { 50% { opacity: .55; } }
.legend { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: #C9D3DA; font-size: 15px; }
.legend li { display: flex; align-items: center; gap: 10px; }
.legend i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; flex: none; }
.lg-cis { background: linear-gradient(90deg, #2949A3, #4A70D4 35%, #2FB3C8 70%, #087F98); }
.lg-node { background: var(--amber); }
.lg-projects { background: linear-gradient(90deg, #FFAD25, #FFD46B 50%, #F28C28); box-shadow: 0 0 0 3px rgba(255, 173, 37, .3); }
@media (max-width: 640px) { .pin span { display: none; } }
/* на узком экране три соседних проекта не помещаются с подписями — остаются метки, названия есть в легенде */
@media (max-width: 700px) {
  .pin { grid-template-columns: 10px auto; transform: translate(-5px, -5px); }
  .pin i { width: 10px; height: 10px; border-radius: 2px; }
  .pin--project b { display: none; }
  .pin--project { display: block; transform: translate(-5px, -5px); }   /* без подписи метка стоит ровно в центре страны */
  .pin--project i { display: block; margin: 0; }
  .pin--project i::after { inset: -5px; border-width: 1.5px; }
}
@media (max-width: 400px) {
  .pin i { width: 8px; height: 8px; }
  .pin { grid-template-columns: 8px auto; transform: translate(-4px, -4px); }
  .pin--project { transform: translate(-4px, -4px); }
  .pin--project i::after { inset: -4px; }
}

/* партнёрам */
.partner-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.partner-card { background: var(--white); border-radius: 16px; padding: 34px 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.partner-card p { color: var(--muted); }
.partner-card .note { font-size: 14.5px; margin-bottom: 10px; }
.partner-card .btn { margin-top: auto; }
.partner-card--dark { background: var(--graphite); color: var(--white); position: relative; overflow: hidden; }
.partner-card--dark p { color: #C9D3DA; margin-bottom: 18px; }
.partner-card--dark::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 290px; opacity: .14;
  background: url("../img/symbol-outline.svg") no-repeat center / contain; pointer-events: none; }

/* контакты */
.contact { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .contact { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; } }
.contact-info > p { color: #33434E; max-width: 46ch; }
.contact-list { margin: 32px 0 0; display: grid; gap: 18px; }
.contact-list > div { display: grid; gap: 4px; }
.contact-list dt { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.contact-list dd { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.contact-value { font-size: 21px; font-weight: 600; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
a.contact-value:hover { color: var(--cobalt); }
.contact-value--muted { color: var(--muted); font-weight: 500; font-size: 17px; }
.copy-btn { font: 600 14px/1 var(--font); padding: 9px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--white); cursor: pointer; color: var(--ink); }
.copy-btn:hover { border-color: var(--cobalt); }
.qr { margin: 24px 0 0; display: flex; align-items: center; gap: 14px; }
.qr img { border: 1px solid var(--line); border-radius: 12px; }
.qr figcaption { color: var(--muted); font-size: 15px; max-width: 16ch; }
.contact-form { background: var(--mist); border-radius: 18px; padding: 30px; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .contact-form { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 36px; } }
.field { display: grid; gap: 7px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 14.5px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; font: 400 16px/1.4 var(--font); color: var(--ink); background: var(--white);
  border: 1px solid #C6D1D9; border-radius: 10px; padding: 13px 14px; }
.field textarea { resize: vertical; min-height: 130px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #C2410C; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.consent { font-size: 13.5px; color: var(--muted); max-width: 40ch; line-height: 1.45; }
.form-status { font-weight: 600; min-height: 1.4em; }
.form-status.is-ok { color: #0B7A55; } .form-status.is-err { color: #B42318; }

/* подвал */
.site-footer { background: var(--graphite); color: #9DAAB4; padding-block: 44px; font-size: 15px; }
.footer-in { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.footer-meta { margin-right: auto; display: grid; gap: 4px; }
.footer-meta a { color: #C9D3DA; text-decoration: none; display: inline-block; padding-block: 10px; }
.footer-meta a:hover { color: var(--white); }
