/* Общие стили для внутренних страниц ALTI (partners.html, ads.html) — повторяют главную */
html { background: #070C13; }
body {
  margin: 0;
  background: #070C13;
  color: #E9F1F7;
  font-family: Manrope, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
* { box-sizing: border-box; }
a { color: #E9F1F7; text-decoration: none; }
a:hover { color: #34D6D6; }
::selection { background: #34D6D6; color: #061019; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #070C13; }
::-webkit-scrollbar-thumb { background: #1B2A3A; border-radius: 6px; }
@keyframes al-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.container { max-width: 1320px; margin: 0 auto; padding: 0 26px; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 86;
  padding: 14px 0;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(7,12,19,.92), rgba(7,12,19,.55));
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { display: block; filter: drop-shadow(0 0 12px rgba(52,214,214,.5)); }
.brand span { font: 800 19px/1 Unbounded, sans-serif; letter-spacing: .02em; }
.mainnav {
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
}
.mainnav a {
  padding: 9px 15px;
  border-radius: 999px;
  font: 500 13px/1 Manrope, sans-serif;
  white-space: nowrap;
  color: #9DB0C2;
  transition: background .2s, color .2s;
}
.mainnav a:hover { background: rgba(52,214,214,.14); color: #EAF6F8; }
.mainnav a[aria-current="page"] { background: rgba(52,214,214,.18); color: #EAF6F8; }
.head-actions { display: flex; align-items: center; gap: 10px; }
.btn-grad {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 0;
  border-radius: 14px;
  padding: 16px 24px;
  font: 700 14px/1 Manrope, sans-serif;
  color: #04121A;
  background: linear-gradient(100deg, #34D6D6, #5BA8FF 55%, #A855F7);
  box-shadow: 0 16px 40px rgba(52,214,214,.22);
  transition: transform .2s, box-shadow .2s;
}
.btn-grad:hover { color: #04121A; transform: translateY(-2px); }
.btn-grad.pill { border-radius: 999px; padding: 12px 20px; font-size: 13px; box-shadow: 0 12px 34px rgba(52,214,214,.24); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 14px;
  padding: 16px 22px;
  font: 600 14px/1 Manrope, sans-serif;
  color: #E9F1F7;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover { color: #E9F1F7; border-color: rgba(52,214,214,.5); background: rgba(52,214,214,.08); }
.btn-light {
  display: inline-flex;
  align-items: center;
  border-radius: 14px;
  padding: 16px 24px;
  font: 700 14px/1 Manrope, sans-serif;
  color: #04121A;
  background: #E9F1F7;
  transition: background .2s, transform .2s;
}
.btn-light:hover { color: #04121A; background: #34D6D6; transform: translateY(-2px); }
.burger {
  display: none;
  cursor: pointer;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
}
.burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: #E9F1F7; transition: transform .25s, opacity .2s; }
body.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 85;
  padding: 96px 22px 32px;
  background: rgba(6,11,18,.97);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s;
}
body.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
.mobile-menu > a.item {
  display: block;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(255,255,255,.05), rgba(255,255,255,.01));
  font: 600 18px/1.2 Unbounded, sans-serif;
  letter-spacing: -.02em;
}
.mobile-menu > a.item[aria-current="page"] { border-color: rgba(52,214,214,.5); color: #34D6D6; }
.mobile-menu .btn-grad { margin-top: 12px; padding: 20px; border-radius: 16px; font-size: 15px; }
.mobile-menu .mail { margin-top: auto; padding: 16px; text-align: center; font: 400 13px/1.4 Manrope, sans-serif; color: #7E93A6; }

/* ---------- Заголовок страницы ---------- */
.page-hero { position: relative; overflow: hidden; padding: 90px 0 56px; }
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(800px 520px at 78% 0%, rgba(52,214,214,.15), transparent 62%),
    radial-gradient(700px 500px at 10% 90%, rgba(168,85,247,.12), transparent 64%);
}
.page-hero .container { position: relative; }
.crumbs { font: 400 13px/1 Manrope, sans-serif; color: #6C8195; }
.crumbs a { color: #8FA4B6; }
.eyebrow { display: block; margin-top: 28px; font: 500 13px/1 Manrope, sans-serif; color: #34D6D6; }
.page-hero h1 {
  margin: 14px 0 0;
  max-width: 15em;
  font: 800 clamp(34px, 5vw, 64px)/1.04 Unbounded, sans-serif;
  letter-spacing: -.035em;
  animation: al-rise .8s cubic-bezier(.2,.75,.2,1) both;
}
.page-hero .lead {
  margin: 22px 0 0;
  max-width: 36em;
  font: 400 clamp(16px, 1.4vw, 19px)/1.6 Manrope, sans-serif;
  color: #A8BCCD;
  animation: al-rise .8s ease .1s both;
}
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; animation: al-rise .8s ease .18s both; }

/* ---------- Секции ---------- */
.section { padding: 40px 0 60px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.section-head h2 { margin: 12px 0 0; font: 800 clamp(26px, 3.2vw, 42px)/1.06 Unbounded, sans-serif; letter-spacing: -.035em; }
.section-head .label { font: 500 13px/1 Manrope, sans-serif; color: #34D6D6; }
.section-head p { margin: 0; max-width: 28em; font: 400 15px/1.6 Manrope, sans-serif; color: #8FA4B6; }

.grid { display: grid; gap: 12px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  position: relative;
  display: block;
  padding: 26px 24px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  background: rgba(10,16,24,.55);
  transition: border-color .2s, transform .2s;
}
a.card:hover { color: #E9F1F7; border-color: rgba(52,214,214,.4); transform: translateY(-2px); }
.card .tag { display: inline-block; font: 500 12px/1 Manrope, sans-serif; color: #34D6D6; }
.card h3 { margin: 12px 0 8px; font: 600 18px/1.25 Manrope, sans-serif; }
.card p { margin: 0; font: 400 14px/1.6 Manrope, sans-serif; color: #8FA4B6; text-wrap: pretty; }
.card .icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(52,214,214,.14);
  color: #34D6D6;
  font: 700 16px/1 Manrope, sans-serif;
}
.card .icon + h3 { margin-top: 18px; }
.card .num { font: 700 30px/1 Unbounded, sans-serif; color: #34D6D6; }
.card .num + h3 { margin-top: 18px; }

/* Мини-схема страницы с отмеченным местом баннера */
.wire {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 150px;
  margin-bottom: 20px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.22);
}
.wire i { display: block; flex: 1; border-radius: 5px; background: rgba(255,255,255,.06); }
.wire i.top { flex: .35; background: rgba(255,255,255,.1); }
.wire i.ad {
  flex: .55;
  border: 1.5px dashed rgba(52,214,214,.9);
  background: rgba(52,214,214,.18);
  box-shadow: 0 0 18px rgba(52,214,214,.25);
}
.wire.custom { align-items: center; justify-content: center; }
.wire.custom b { font: 700 26px/1 Unbounded, sans-serif; color: #34D6D6; }

.panel {
  padding: 40px 36px;
  border: 1px solid rgba(52,214,214,.24);
  border-radius: 28px;
  background: linear-gradient(140deg, rgba(52,214,214,.12), rgba(168,85,247,.1) 65%, rgba(255,255,255,.03));
}
.panel h2 { margin: 0; font: 800 clamp(24px, 3vw, 38px)/1.1 Unbounded, sans-serif; letter-spacing: -.03em; }
.panel p { margin: 14px 0 0; max-width: 40em; font: 400 16px/1.6 Manrope, sans-serif; color: #C3D3E0; }
.panel .actions { animation: none; }
.mail-link { color: #34D6D6; }

/* ---------- Подвал ---------- */
.site-footer { margin-top: 40px; border-top: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.012); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 26px; }
.footer-grid .about { margin: 14px 0 0; max-width: 28em; font: 400 14px/1.6 Manrope, sans-serif; color: #7E93A6; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col .h { font: 500 12px/1 Manrope, sans-serif; color: #7E93A6; }
.footer-col a { font: 400 13px/1.4 Manrope, sans-serif; color: #A8BCCD; }
.footer-col a:hover { color: #34D6D6; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand span { font: 800 18px/1 Unbounded, sans-serif; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
  padding-bottom: 40px;
  border-top: 1px solid rgba(255,255,255,.07);
  font: 400 13px/1.6 Manrope, sans-serif;
  color: #5F7488;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 95;
  max-width: 330px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(52,214,214,.34);
  background: rgba(10,18,28,.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
  font: 400 13px/1.5 Manrope, sans-serif;
  color: #DCEAF3;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .24s, transform .24s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1140px) {
  .mainnav { display: none; }
  .burger { display: inline-flex; }
}
@media (max-width: 1000px) {
  .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.c3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .head-actions .btn-grad { display: none; }
  .page-hero { padding: 56px 0 40px; }
  .panel { padding: 32px 24px; }
}
@media (max-width: 620px) {
  .container { padding: 0 18px; }
  .grid.c2, .grid.c4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .actions > * { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
