/* Partner Landing v2
   - чистый финтех-стиль
   - адаптив + интерактивные состояния
*/

:root{
  --bg:#0B1220;
  --bg2:#0E1730;
  --surface:#0F1B31;
  --surface2:#0C1528;
  --card:#0F1A2E;
  --text:#EAF0FF;
  --muted:rgba(234,240,255,.72);
  --muted2:rgba(234,240,255,.55);
  --border:rgba(234,240,255,.12);
  --accent:#4F9CFB;
  --accent2:#26E0B4;
  --danger:#FF5D5D;
  --ok:#36D399;
  --shadow: 0 22px 60px rgba(0,0,0,.38);
  --shadow2: 0 16px 40px rgba(8,12,20,.28);
  --radius: 18px;
  --radius2: 14px;
  --max: 1160px;
  --ring: 0 0 0 4px rgba(79,156,251,.22);
}

body[data-theme="light"]{
  --bg:#F7F9FC;
  --bg2:#FFFFFF;
  --surface:#FFFFFF;
  --surface2:#F2F5FB;
  --card:#FFFFFF;
  --text:#0B1220;
  --muted:rgba(11,18,32,.72);
  --muted2:rgba(11,18,32,.56);
  --border:rgba(11,18,32,.12);
  --shadow: 0 18px 50px rgba(11,18,32,.10);
  --shadow2: 0 10px 30px rgba(11,18,32,.10);
  --ring: 0 0 0 4px rgba(79,156,251,.18);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}

/*
  Важно:
  Элементы с атрибутом [hidden] должны быть скрыты.
  UA-стили можно случайно перебить правилом display (например, у модалок).
*/
[hidden]{display:none !important}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color:var(--text);
  background: radial-gradient(1200px 500px at 20% -10%, rgba(79,156,251,.25), transparent 55%),
              radial-gradient(900px 450px at 90% 0%, rgba(38,224,180,.18), transparent 55%),
              linear-gradient(180deg, var(--bg), var(--bg2));
  line-height:1.45;
}

a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}
button,input,select,textarea{font:inherit}
.no-scroll{overflow:hidden}

.container{max-width:var(--max); margin:0 auto; padding:0 18px}

/* Utility */
.muted{color:var(--muted)}
.small{font-size:.95rem}
.tiny{font-size:.85rem}
.h1{font-size: clamp(2rem, 3.3vw, 3.2rem); line-height:1.08; margin:0 0 14px}
.h2{font-size: clamp(1.55rem, 2.2vw, 2.2rem); line-height:1.15; margin:0 0 10px}
.lead{font-size: clamp(1.05rem, 1.2vw, 1.15rem); margin:0 0 18px; color:var(--muted)}
.skip{
  position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip:focus{left:18px; top:18px; width:auto; height:auto; padding:10px 12px; border-radius:12px; background:var(--surface); box-shadow:var(--shadow); border:1px solid var(--border)}

/* Header */
.header{
  position:sticky; top:0; z-index:50;
  background: rgba(10,16,28,.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
body[data-theme="light"] .header{
  background: rgba(255,255,255,.72);
  border-bottom: 1px solid rgba(11,18,32,.08);
}
.header.is-scrolled{box-shadow: 0 10px 30px rgba(0,0,0,.18)}
.header__inner{display:flex; align-items:center; gap:14px; padding:12px 0}
.brand{display:flex; align-items:center; gap:10px}
.brand__mark{
  width:34px; height:34px; display:grid; place-items:center;
  border:1px solid var(--border);
  border-radius:12px;
  background: linear-gradient(135deg, rgba(79,156,251,.22), rgba(38,224,180,.16));
}
.brand__name{font-weight:700; letter-spacing:.2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width: 260px}

.nav{display:flex; gap:16px; margin-left:10px}
.nav__link{color:var(--muted); font-size:.96rem; padding:8px 10px; border-radius:12px; white-space:nowrap}
.nav__link:hover{background: rgba(255,255,255,.06); color:var(--text)}
body[data-theme="light"] .nav__link:hover{background: rgba(11,18,32,.06)}
.header__actions{margin-left:auto; display:flex; align-items:center; gap:10px}

.burger{
  width:42px; height:40px; border-radius:14px; border:1px solid var(--border);
  background: transparent; display:none;
}
.burger span{display:block; height:2px; margin:6px 10px; background:var(--text); border-radius:2px; opacity:.85}

/* Mobile */
.mobile{
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(10,16,28,.90);
  backdrop-filter: blur(10px);
}
body[data-theme="light"] .mobile{background: rgba(255,255,255,.90); border-top:1px solid rgba(11,18,32,.08)}
.mobile__inner{padding:14px 0 18px}
.mobile__links{display:grid; gap:8px}
.mobile__links a{padding:10px 12px; border-radius:14px; border:1px solid var(--border); background:rgba(255,255,255,.04)}
body[data-theme="light"] .mobile__links a{background:rgba(11,18,32,.04)}
.mobile__cta{margin-top:12px; display:grid; gap:10px}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  color:var(--text);
  cursor:pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{transform: translateY(-1px); background: rgba(255,255,255,.10)}
body[data-theme="light"] .btn{background: rgba(11,18,32,.04)}
body[data-theme="light"] .btn:hover{background: rgba(11,18,32,.06)}
.btn:focus{outline:none; box-shadow: var(--ring)}

.btn--primary{
  background: linear-gradient(135deg, var(--accent), rgba(79,156,251,.72));
  border-color: rgba(79,156,251,.45);
}
.btn--primary:hover{background: linear-gradient(135deg, rgba(79,156,251,.95), rgba(79,156,251,.70))}
.btn--ghost{background: transparent}
.btn--sm{padding:10px 12px; border-radius:13px}

/* Header CTA text helpers */
.header__actions .btn{white-space:nowrap}
.btn__short{display:none}


.iconBtn{
  width:40px; height:40px; display:grid; place-items:center;
  border-radius:14px; border:1px solid var(--border); background:transparent; color:var(--text);
  cursor:pointer;
}
.iconBtn:hover{background: rgba(255,255,255,.08)}
body[data-theme="light"] .iconBtn:hover{background: rgba(11,18,32,.06)}

/* Badges */
.badges{display:flex; flex-wrap:wrap; gap:10px; margin-bottom:14px}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px; border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  color:var(--muted);
  font-size:.92rem;
}
.badge--accent{color:rgba(255,255,255,.92); border-color: rgba(38,224,180,.32); background: rgba(38,224,180,.10)}
body[data-theme="light"] .badge--accent{color: rgba(11,18,32,.88)}
.badge--soft{background: rgba(79,156,251,.10); border-color: rgba(79,156,251,.25); color: rgba(234,240,255,.86)}
body[data-theme="light"] .badge--soft{color: rgba(11,18,32,.82)}

/* Чуть компактнее бейджи внутри карточек проектов */
.card .badge{padding:6px 8px; font-size:.85rem}

/* Hero */
.hero{position:relative; padding:54px 0 22px}
.hero__bg{
  position:absolute; inset:0; pointer-events:none;
  background: radial-gradient(700px 320px at 10% 20%, rgba(79,156,251,.30), transparent 60%),
              radial-gradient(780px 360px at 85% 30%, rgba(38,224,180,.22), transparent 60%);
  opacity:.9;
}
.hero__inner{position:relative; display:grid; grid-template-columns: 1.15fr .85fr; gap:26px; align-items:start}
.hero__bullets{margin:0 0 18px; padding-left:18px; color:var(--muted)}
.hero__bullets li{margin:8px 0}
.hero__cta{display:flex; flex-wrap:wrap; gap:10px; margin:14px 0 10px}

.hero__right{display:grid; gap:14px}
.hero__image{
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid var(--border);
  box-shadow: var(--shadow2);
  background: var(--surface);
}
.hero__image img{width:100%; height: 220px; object-fit:cover}

/* LK mock */
.lk{
  border-radius: var(--radius);
  border:1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: var(--shadow2);
  padding:16px;
}
body[data-theme="light"] .lk{background: linear-gradient(180deg, rgba(11,18,32,.04), rgba(11,18,32,.02))}
.lk__top{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px}
.lk__title{font-weight:700}
.lk__pill{
  font-size:.85rem; color: rgba(234,240,255,.86);
  border:1px solid rgba(79,156,251,.30);
  background: rgba(79,156,251,.10);
  padding:6px 10px; border-radius:999px;
}
body[data-theme="light"] .lk__pill{color: rgba(11,18,32,.82)}
.lk__row{display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:12px}
.lk__metric{border:1px solid var(--border); border-radius:14px; padding:10px 12px; background: rgba(255,255,255,.04)}
body[data-theme="light"] .lk__metric{background: rgba(11,18,32,.03)}
.lk__label{color:var(--muted2); font-size:.85rem}
.lk__value{font-weight:800; font-size:1.15rem; margin-top:2px}
.lk__list{display:grid; gap:8px; margin-bottom:10px}
.lkItem{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  border:1px solid var(--border); border-radius:14px; padding:10px 12px;
  background: rgba(255,255,255,.03);
}
body[data-theme="light"] .lkItem{background: rgba(11,18,32,.03)}
.lkItem__name{font-weight:600; font-size:.95rem}
.lkItem__meta{font-size:.85rem; color:var(--muted2)}
.lk__note{color:var(--muted2); font-size:.9rem}

/* Trust */
.trust{padding: 14px 0 26px}
.trust__grid{display:grid; grid-template-columns: repeat(4, 1fr); gap:12px}
.trust__item{
  display:flex; gap:10px; align-items:center;
  border:1px solid var(--border);
  border-radius: var(--radius2);
  padding:12px 12px;
  background: rgba(255,255,255,.04);
}
body[data-theme="light"] .trust__item{background: rgba(11,18,32,.03)}
.trust__icon{
  width:34px; height:34px; border-radius:12px;
  display:grid; place-items:center;
  background: rgba(79,156,251,.12);
  border: 1px solid rgba(79,156,251,.22);
}
.trust__title{font-weight:700}
.trust__text{color:var(--muted2); font-size:.92rem}

/* Sections */
.section{padding: 46px 0}
.section--alt{background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.00))}
body[data-theme="light"] .section--alt{background: linear-gradient(180deg, rgba(11,18,32,.03), rgba(11,18,32,.00))}
.section__head{display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:16px}
.section__head p{max-width: 62ch}
.section__foot{margin-top:16px; display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap}

/* Filters */
.filters{display:flex; align-items:flex-end; justify-content:space-between; gap:14px; flex-wrap:wrap; margin-bottom:14px}
.chips{display:flex; gap:8px; flex-wrap:wrap}
.chip{
  padding:9px 10px; border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.05);
  color:var(--muted);
  cursor:pointer;
  transition: background .15s ease, transform .15s ease, border-color .15s ease;
}
body[data-theme="light"] .chip{background: rgba(11,18,32,.03)}
.chip:hover{transform: translateY(-1px); background: rgba(255,255,255,.08)}
body[data-theme="light"] .chip:hover{background: rgba(11,18,32,.06)}
.chip.is-active{
  color: var(--text);
  border-color: rgba(79,156,251,.38);
  background: rgba(79,156,251,.12);
}
.chip__count{opacity:.7; margin-left:6px}

.filters__right{display:flex; gap:10px; flex-wrap:wrap; align-items:flex-end}
.field{display:grid; gap:6px; min-width: 220px}
.field--sm{min-width: 200px}
.field__label{font-size:.85rem; color:var(--muted2)}
.input,.select,.textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
}
body[data-theme="light"] .input,
body[data-theme="light"] .select,
body[data-theme="light"] .textarea{background: rgba(11,18,32,.03)}
.input:focus,.select:focus,.textarea:focus{outline:none; box-shadow: var(--ring)}
.select{appearance:none}
.range{width:100%}

/* Grid cards */
.grid{display:grid; grid-template-columns: repeat(3, 1fr); gap:12px}
.card{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow2);
  padding:14px;
  display:grid; gap:10px;
  min-height: 320px;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
body[data-theme="light"] .card{background: rgba(11,18,32,.02)}
.card:hover{transform: translateY(-2px); background: rgba(255,255,255,.07); border-color: rgba(234,240,255,.18)}
body[data-theme="light"] .card:hover{background: rgba(11,18,32,.04); border-color: rgba(11,18,32,.16)}

.card__media{
  height: 140px;
  border-radius: 16px;
  overflow:hidden;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
}
body[data-theme="light"] .card__media{background: rgba(11,18,32,.03)}
.card__media img{width:100%; height:100%; object-fit:cover}

.card__top{display:flex; align-items:flex-start; justify-content:space-between; gap:10px}
.card__topRight{display:flex; gap:8px; align-items:center; flex-wrap:wrap; justify-content:flex-end}
.tag{
  font-size:.82rem;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(38,224,180,.28);
  background: rgba(38,224,180,.10);
  color: rgba(234,240,255,.88);
}
body[data-theme="light"] .tag{color: rgba(11,18,32,.84)}
.tag--re{border-color: rgba(79,156,251,.32); background: rgba(79,156,251,.10)}
.tag--it{border-color: rgba(38,224,180,.28); background: rgba(38,224,180,.10)}
.tag--stocks{border-color: rgba(255, 214, 102, .36); background: rgba(255,214,102,.10)}
.tag--other{border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.06)}

.card__title{font-weight:800; letter-spacing:.2px}
.card__desc{color:var(--muted); margin:0}
.kv{display:grid; grid-template-columns: 1fr 1fr; gap:8px}
.kv__item{border:1px solid var(--border); border-radius:14px; padding:10px 12px; background: rgba(255,255,255,.03)}
body[data-theme="light"] .kv__item{background: rgba(11,18,32,.03)}
.kv__k{color:var(--muted2); font-size:.82rem}
.kv__v{font-weight:700; margin-top:2px}

.card__actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:auto}
.card__actions .btn{flex:1; min-width: 160px}

.empty{
  margin-top:14px;
  border:1px dashed var(--border);
  border-radius: var(--radius);
  padding:22px;
  text-align:center;
  background: rgba(255,255,255,.03);
}
.empty__title{font-weight:800; margin-bottom:6px}
.empty__text{color:var(--muted)}

/* Compare */
.compare{display:grid; grid-template-columns: .95fr 1.05fr; gap:12px; align-items:start}
.compare__panel{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow2);
  padding:14px;
  display:grid; gap:10px;
}
body[data-theme="light"] .compare__panel{background: rgba(11,18,32,.02)}
.compare__cta{display:flex; gap:10px; flex-wrap:wrap}
.compare__result{display:grid; gap:12px}
.result__card{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow2);
  padding:14px;
}
body[data-theme="light"] .result__card{background: rgba(11,18,32,.02)}
.result__card--accent{
  border-color: rgba(79,156,251,.35);
  background: rgba(79,156,251,.10);
}
.result__label{color:var(--muted2); font-size:.9rem}
.result__value{font-weight:900; font-size:1.55rem; margin:6px 0 2px}
.result__hint{color:var(--muted2); font-size:.9rem}
.compare__note{color:var(--muted); padding:14px; border-radius: var(--radius); border:1px solid var(--border); background: rgba(255,255,255,.03)}

/* Steps */
.steps{display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap:12px}
.step{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow2);
  padding:14px;
  display:flex; gap:10px; align-items:flex-start;
}
body[data-theme="light"] .step{background: rgba(11,18,32,.02)}
.step__n{
  width:28px; height:28px; border-radius:999px;
  display:grid; place-items:center;
  background: transparent;
  border:1px solid rgba(234,240,255,.18);
  color: rgba(234,240,255,.85);
  font-weight:900;
  flex:0 0 auto;
}
body[data-theme="light"] .step__n{border-color: rgba(11,18,32,.18); color: rgba(11,18,32,.78)}
.step__title{font-weight:800}
.step__text{color:var(--muted); margin-top:4px; font-size:.95rem}

/* Two column section */
.two{display:grid; grid-template-columns: 1fr 1fr; gap:18px; align-items:start}
.check{margin:14px 0 18px; padding-left:18px; color:var(--muted)}
.check li{margin:8px 0}
.figure{
  border:1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow2);
}
.figure img{
  display:block;
  width:100%;
  height: 420px;
  object-fit:cover;
}
.callout{
  border:1px solid rgba(38,224,180,.30);
  background: rgba(38,224,180,.10);
  border-radius: var(--radius);
  padding:14px;
  margin: 12px 0 14px;
}
.callout__title{font-weight:900; margin-bottom:4px}
.callout__text{color:rgba(234,240,255,.88)}
body[data-theme="light"] .callout__text{color: rgba(11,18,32,.82)}
.two__cta{display:flex; gap:10px; flex-wrap:wrap}

/* Partner */
.partner__card{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow);
  overflow:hidden;
  display:grid;
  grid-template-columns: .55fr .45fr;
}
body[data-theme="light"] .partner__card{background: rgba(11,18,32,.02)}
.partner__photo{background: rgba(255,255,255,.02)}
.partner__photo img{width:100%; height:100%; min-height: 520px; object-fit:cover}
.partner__info{padding:18px}
.partner__bio{color:var(--muted); margin: 12px 0 12px}
.partner__points{padding-left:18px; color:var(--muted); margin: 0 0 12px}
.partner__points li{margin: 8px 0}
.partner__contacts{display:grid; gap:8px; margin: 10px 0 12px}
.link{color: rgba(234,240,255,.92); text-decoration:underline; text-underline-offset:4px}
body[data-theme="light"] .link{color: rgba(11,18,32,.92)}
.partner__cta{display:flex; gap:10px; flex-wrap:wrap}

/* Referral */
.ref{display:grid; grid-template-columns: repeat(3, 1fr); gap:12px}
.ref__item{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow2);
  padding:14px;
  display:flex; gap:10px; align-items:flex-start;
}
body[data-theme="light"] .ref__item{background: rgba(11,18,32,.02)}
.ref__icon{
  width:28px; height:28px; border-radius:999px;
  display:grid; place-items:center;
  background: transparent;
  border:1px solid rgba(38,224,180,.35);
  color: rgba(234,240,255,.85);
  font-weight:900;
  flex:0 0 auto;
}
body[data-theme="light"] .ref__icon{color: rgba(11,18,32,.78); border-color: rgba(38,224,180,.28)}
.ref__title{font-weight:800}
.ref__text{color:var(--muted); margin-top:4px; font-size:.95rem}

/* FAQ */
.faq{display:grid; gap:10px}
.faq__item{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow2);
  overflow:hidden;
}
body[data-theme="light"] .faq__item{background: rgba(11,18,32,.02)}
.faq__q{
  width:100%;
  text-align:left;
  padding:14px 14px;
  background: transparent;
  border:none;
  color:var(--text);
  cursor:pointer;
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.faq__q::after{
  content:"+";
  opacity:.8;
  font-weight:900;
}
.faq__item.is-open .faq__q::after{content:"–"}
.faq__a{
  padding: 0 14px 14px;
  color:var(--muted);
  display:none;
}
.faq__item.is-open .faq__a{display:block}

/* CTA section */
.cta{
  padding: 26px 0 46px;
}
.cta__inner{
  border:1px solid rgba(79,156,251,.35);
  background: linear-gradient(135deg, rgba(79,156,251,.16), rgba(38,224,180,.12));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.cta__actions{display:flex; gap:10px; flex-wrap:wrap}

/* Footer */
.footer{
  border-top:1px solid rgba(255,255,255,.06);
  padding: 26px 0 18px;
}
body[data-theme="light"] .footer{border-top:1px solid rgba(11,18,32,.08)}
.footer__grid{display:grid; grid-template-columns: 1fr 1fr; gap:14px}
.footer__brand{display:flex; align-items:center; gap:10px; font-weight:800; margin-bottom:8px}
.footer__cols{display:grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap:14px}
.footer__title{font-weight:800; margin-bottom:8px}
.footer__link{display:block; color:var(--muted); padding:6px 0}
.footer__link:hover{color:var(--text)}
.footer__bottom{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:10px; padding-top:10px; border-top:1px solid rgba(255,255,255,.06)}
body[data-theme="light"] .footer__bottom{border-top:1px solid rgba(11,18,32,.08)}

/* Sticky bar + toTop */
.sticky{
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display:flex;
  gap:10px;
  padding: 10px;
  border-radius: 18px;
  border:1px solid var(--border);
  background: rgba(10,16,28,.80);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  z-index: 80;
}
body[data-theme="light"] .sticky{background: rgba(255,255,255,.80)}
.sticky__btn{
  flex:1;
  padding:12px 14px;
  border-radius: 14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor:pointer;
  text-align:center;
}
body[data-theme="light"] .sticky__btn{background: rgba(11,18,32,.04)}
.sticky__btn--primary{
  border-color: rgba(79,156,251,.45);
  background: rgba(79,156,251,.16);
}
.toTop{
  position: fixed;
  right: 12px;
  bottom: 80px;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border:1px solid var(--border);
  background: rgba(10,16,28,.80);
  backdrop-filter: blur(10px);
  color: var(--text);
  cursor:pointer;
  box-shadow: var(--shadow2);
  z-index: 80;
}
body[data-theme="light"] .toTop{background: rgba(255,255,255,.80)}

/* Modals */
.modal{
  position:fixed; inset:0; z-index:90;
  background: rgba(0,0,0,.55);
  display:grid; place-items:center;
  padding: 18px;
}
.modal__dialog{
  width: min(720px, 100%);
  border-radius: var(--radius);
  border:1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 14px;
}
.modal__dialog--wide{width: min(980px, 100%)}
.modal__head{display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:10px}
.modal__title{font-weight:900; font-size:1.2rem}
.modal__actions{display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap}

.textarea{min-height: 110px; resize: vertical}

/* Project modal layout */
.proj{display:grid; grid-template-columns: 1.1fr .9fr; gap:14px; align-items:start}
.proj__media{
  border:1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  background: rgba(255,255,255,.03);
  margin: 0 0 10px;
}
body[data-theme="light"] .proj__media{background: rgba(11,18,32,.03)}
.proj__media img{width:100%; height: 200px; object-fit:cover}
.proj__desc{color:var(--muted); margin:0 0 10px}
.proj__facts{display:grid; gap:10px}
.fact{
  border:1px solid var(--border);
  border-radius: var(--radius2);
  padding:10px 12px;
  background: rgba(255,255,255,.03);
}
body[data-theme="light"] .fact{background: rgba(11,18,32,.03)}
.fact__k{color:var(--muted2); font-size:.85rem}
.fact__v{font-weight:800; margin-top:2px}
.sideCard{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow2);
  padding:14px;
  display:grid; gap:10px;
}
body[data-theme="light"] .sideCard{background: rgba(11,18,32,.02)}
.sideCard__title{font-weight:900}
.sideCard__text{color:var(--muted)}
.sideNote{margin-top:10px}

/* Reveal animation */
.reveal{opacity:0; transform: translateY(10px); transition: opacity .55s ease, transform .55s ease}
.reveal.is-in{opacity:1; transform: translateY(0)}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .reveal{transition:none}
  .btn{transition:none}
}

/* Responsive */
@media (max-width: 980px){
  .nav{display:none}
  .burger{display:block}
  #btnCallTop{display:none}
  .btn--tg .btn__full{display:none}
  .btn--tg .btn__short{display:inline}
  .brand__name{max-width: 200px}

  .hero__inner{grid-template-columns: 1fr}
  .hero__image img{height: 220px}
  .trust__grid{grid-template-columns: repeat(2, 1fr)}
  .grid{grid-template-columns: repeat(2, 1fr)}
  .compare{grid-template-columns: 1fr}
  .proj{grid-template-columns: 1fr}
  .proj__media img{height: 180px}
  .steps{grid-template-columns: 1fr}
  .two{grid-template-columns: 1fr}
  .figure img{height: 320px}
  .partner__card{grid-template-columns: 1fr}
  .partner__photo img{min-height: 360px}
  .ref{grid-template-columns: 1fr}
  .footer__grid{grid-template-columns: 1fr}
}

@media (max-width: 760px){
  .nav{display:none}
  .burger{display:block}
  .header__actions a.btn{display:none}
  .header__actions #themeToggle{display:inline-flex}
  .filters__right{width:100%}
  .field{min-width: 100%}
  .grid{grid-template-columns: 1fr}
  .cta__inner{padding:14px}
}

