:root{
  --bg0:#06070b;
  --bg1:#0b0d12;
  --card:#0f1420;
  --card2:#0f1728;
  --text:#e8eefc;
  --muted:#9fb0c8;
  --border:rgba(255,255,255,.10);
  --border2:rgba(255,255,255,.16);
  --accent:#ff6600;
  --accent2:#5aa7ff;
  --shadow:0 18px 60px rgba(0,0,0,.45);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth; color-scheme:dark}
body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px circle at 20% 0%, rgba(255,102,0,.22), transparent 55%),
    radial-gradient(900px circle at 85% 15%, rgba(90,167,255,.18), transparent 50%),
    linear-gradient(180deg, #05060a 0%, #04050a 45%, #020308 100%);
  min-height:100vh;
  overflow-x:hidden; /* prevent rare mobile horizontal drift */
}

a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}

.container{
  width:100%;
  max-width:1120px;
  margin:0 auto;
  padding:22px 20px 90px;
}

.topnav{
  position:-webkit-sticky;
  position:sticky;
  top:0;
  z-index:50;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  /* iOS Safari safe areas */
  padding:12px 18px;
  padding-top:calc(12px + env(safe-area-inset-top));
  padding-left:calc(18px + env(safe-area-inset-left));
  padding-right:calc(18px + env(safe-area-inset-right));
  border-bottom:1px solid var(--border);
  background:rgba(5,6,10,.70);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* Keep anchors visible under sticky header */
section[id], details[id]{
  scroll-margin-top:88px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:220px;
}
.brand-logo{
  width:30px;
  height:30px;
  opacity:.95;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.55));
}
.brand-text{display:flex; flex-direction:column; line-height:1.1}
.brand-name{font-weight:800; letter-spacing:.12em; font-size:12px}
.brand-sub{font-family:"IBM Plex Mono", monospace; font-size:12px; color:var(--muted); margin-top:3px}

.navlinks{
  display:flex;
  gap:14px;
  align-items:center;
  flex:1;
  justify-content:center;
  min-width:0;
}
.navlinks a{
  font-size:14px;
  color:rgba(232,238,252,.86);
  padding:8px 10px;
  border-radius:999px;
  border:1px solid transparent;
}
.navlinks a:hover{
  border-color:var(--border);
  background:rgba(255,255,255,.03);
}

.nav-ctas{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:flex-end;
  min-width:240px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  color:var(--text);
  font-weight:700;
  font-size:14px;
  white-space:nowrap;
  cursor:pointer;
}
.btn:hover{border-color:var(--border2)}
.btn.primary{
  background:var(--accent);
  border-color:var(--accent);
  color:#111;
  box-shadow:0 14px 40px rgba(255,102,0,.22);
}
.btn.primary:hover{filter:brightness(1.03)}
.btn.ghost{
  background:rgba(255,255,255,.02);
}

.hero{
  padding-top:16px;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.02);
  color:var(--muted);
  font-family:"IBM Plex Mono", monospace;
  font-size:12px;
}
h1{
  margin:14px 0 10px;
  font-size:38px;
  line-height:1.1;
  letter-spacing:-.02em;
}
.hero-lead{
  margin:0 0 18px;
  font-size:16px;
  line-height:1.55;
  color:rgba(232,238,252,.86);
  max-width:78ch;
}


.askbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 16px;
  border:1px solid var(--border);
  border-radius:18px;
  background:linear-gradient(180deg, rgba(255,102,0,.14), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
  margin:14px 0 10px;
}
.askbar-main{min-width:0}
.askbar-title{
  font-family:"IBM Plex Mono", monospace;
  font-size:12px;
  color:rgba(232,238,252,.74);
  letter-spacing:.06em;
  text-transform:uppercase;
}
.askbar-amount{
  margin-top:6px;
  font-size:20px;
  font-weight:900;
  letter-spacing:-.01em;
}
.askbar-max{
  font-size:12px;
  font-weight:700;
  color:rgba(232,238,252,.72);
  margin-left:8px;
}
.askbar-sub{
  margin-top:6px;
  font-size:12px;
  color:rgba(232,238,252,.74);
  line-height:1.35;
}
.askbar-cta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}

.investor-facts{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
  margin:12px 0 16px;
}
.fact{
  border:1px solid var(--border);
  border-radius:16px;
  padding:12px 12px 10px;
  background:rgba(255,255,255,.02);
  box-shadow: var(--shadow);
}
.fact-title{
  font-family:"IBM Plex Mono", monospace;
  font-size:12px;
  color:var(--muted);
  letter-spacing:.06em;
  text-transform:uppercase;
}
.fact-text{
  margin-top:6px;
  font-size:13px;
  line-height:1.35;
  color:rgba(232,238,252,.84);
}



.kpi-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:12px;
  margin:18px 0 16px;
}
.kpi{
  border:1px solid var(--border);
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border-radius:16px;
  padding:14px 14px 12px;
  box-shadow: var(--shadow);
}
.kpi-title{
  font-size:12px;
  color:var(--muted);
  font-family:"IBM Plex Mono", monospace;
}
.kpi-value{
  font-size:26px;
  font-weight:800;
  margin-top:6px;
  letter-spacing:-.01em;
}
.kpi-sub{
  margin-top:6px;
  font-size:12px;
  color:rgba(232,238,252,.72);
}

.hero-split{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:14px;
  margin-top:10px;
}

.section{
  margin-top:34px;
}
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}
h2{
  margin:0;
  font-size:26px;
  letter-spacing:-.01em;
}
.section-sub{
  margin:0;
  color:var(--muted);
  font-size:13px;
  max-width:64ch;
  line-height:1.35;
}

.card{
  border:1px solid var(--border);
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border-radius:18px;
  padding:16px;
  box-shadow: var(--shadow);
}
.card-title{
  font-weight:800;
  font-size:14px;
  letter-spacing:.01em;
}
.muted{
  color:rgba(232,238,252,.78);
  line-height:1.55;
  margin:10px 0 0;
}

.divider{
  height:1px;
  background:rgba(255,255,255,.08);
  margin:14px 0;
}

.note{
  margin-top:12px;
  font-size:12px;
  color:rgba(232,238,252,.70);
  line-height:1.45;
}

.error{
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(255,90,90,.25);
  background:rgba(255,90,90,.08);
  color:rgba(232,238,252,.92);
  font-size:13px;
  line-height:1.4;
}

.bullets{
  list-style:none;
  padding:0;
  margin:10px 0 0;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.bullets li{
  position:relative;
  padding-left:18px;
  color:rgba(232,238,252,.85);
  line-height:1.45;
  font-size:13px;
}
.bullets li::before{
  content:"";
  position:absolute;
  left:0;
  top:.55em;
  width:6px;
  height:6px;
  border-radius:999px;
  background:rgba(255,102,0,.95);
  box-shadow:0 0 0 3px rgba(255,102,0,.12);
}

.products-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:12px;
  margin-top:12px;
}

.product-mini{
  display:grid;
  grid-template-columns:110px 1fr;
  gap:12px;
  align-items:center;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  background:rgba(0,0,0,.10);
  padding:10px;
}
.product-mini img{
  width:110px;
  height:110px;
  object-fit:contain;
  background:#fff;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.10);
}
.product-mini-body{min-width:0}
.product-mini-name{font-weight:850; font-size:14px; margin-bottom:2px}
.product-mini-sub{font-size:12px; color:rgba(232,238,252,.74); line-height:1.35}

.pillrow{display:flex; gap:8px; flex-wrap:wrap; margin-top:8px}
.chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:5px 9px;
  border-radius:999px;
  font-size:12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
  color:rgba(232,238,252,.88);
}
.chip.ozon{border-color:rgba(90,167,255,.35)}
.chip.wb{border-color:rgba(177,90,255,.35)}

.cards-2{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:14px;
  align-items:stretch;
}
.cards-3{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:12px;
  align-items:stretch;
}

.chart{
  width:100%;
  height:auto;
  margin-top:12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(0,0,0,.12);
}

.review-kpi{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
  margin-top:12px;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(0,0,0,.10);
}
.review-score{
  font-size:34px;
  font-weight:900;
  letter-spacing:-.03em;
}
.review-outof{
  font-size:14px;
  color:rgba(232,238,252,.70);
  margin-left:6px;
}
.review-meta{
  font-size:12px;
  color:rgba(232,238,252,.72);
  font-family:"IBM Plex Mono", monospace;
  text-align:right;
}

.sku-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:14px;
}
.sku-top{
  display:grid;
  grid-template-columns:120px 1fr;
  gap:14px;
  align-items:center;
}
.sku-top img{
  width:120px;
  height:120px;
  object-fit:contain;
  background:#fff;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.12);
}
.sku-tag{
  font-family:"IBM Plex Mono", monospace;
  color:rgba(255,102,0,.95);
  font-size:12px;
  letter-spacing:.08em;
}
.sku-name{
  font-weight:900;
  font-size:14px;
  margin-top:4px;
}
.sku-sub{
  font-size:12px;
  color:rgba(232,238,252,.74);
  margin-top:4px;
}

.mini-metrics{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:10px;
  margin-top:14px;
}
.mini{
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  background:rgba(0,0,0,.10);
  padding:10px 12px;
}
.mini-label{
  font-size:12px;
  color:rgba(232,238,252,.70);
}
.mini-value{
  margin-top:6px;
  font-weight:900;
  font-size:16px;
}

.mini-card{
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  background:rgba(0,0,0,.10);
  padding:12px 14px;
}
.mini-card-title{font-weight:850; font-size:14px}
.mini-card-sub{margin-top:6px; color:rgba(232,238,252,.78); font-size:13px; line-height:1.45}

.gallery{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:12px;
  margin-top:12px;
}
.gallery img{
  width:100%;
  height:220px;
  object-fit:cover;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(0,0,0,.10);
}

.imgbtn{
  all:unset;
  cursor:zoom-in;
  display:block;
}
.imgbtn:focus-visible{
  outline:2px solid rgba(90,167,255,.7);
  outline-offset:3px;
  border-radius:14px;
}

.contact-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}

/* Modal */
.modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  z-index:200;
}
.modal[aria-hidden="false"]{display:flex}
.modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
}
.modal-body{
  position:relative;
  z-index:2;
  width:min(1000px, calc(100vw - 28px));
  max-height:calc(100vh - 28px);
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(180deg, rgba(15,20,32,.98), rgba(15,18,26,.98));
  box-shadow: 0 30px 110px rgba(0,0,0,.60);
  padding:14px;
  overflow:auto;
}
.modal-body img{
  width:100%;
  height:auto;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:#fff;
}
.modal-close{
  position:sticky;
  top:0;
  float:right;
  margin-left:auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.20);
  color:var(--text);
  cursor:pointer;
}

/* Responsive */
@media (max-width: 980px){
  .navlinks{display:none}
  .brand{min-width:unset}
  .nav-ctas{min-width:unset}
  h1{font-size:32px}
  .hero-split{grid-template-columns:1fr}
  .askbar{flex-direction:column; align-items:flex-start}
  .askbar-cta{justify-content:flex-start}
  .investor-facts{grid-template-columns:1fr}
  .kpi-grid{grid-template-columns:repeat(2, minmax(0,1fr))}
  .cards-3{grid-template-columns:1fr}
  .sku-grid{grid-template-columns:1fr}
}

@media (max-width: 520px){
  .container{padding:18px 14px 70px}
  .topnav{
    gap:10px;
    flex-wrap:wrap;
    padding:10px 12px;
    padding-top:calc(10px + env(safe-area-inset-top));
    padding-left:calc(12px + env(safe-area-inset-left));
    padding-right:calc(12px + env(safe-area-inset-right));
  }
  .brand-logo{width:28px; height:28px}
  .brand-name{font-size:11px}
  .brand-sub{display:none}
  .nav-ctas{width:100%; justify-content:flex-start; flex-wrap:wrap}
  .btn{padding:9px 12px; font-size:13px}

  h1{font-size:28px}
  .kpi-grid{grid-template-columns:1fr}
  .products-grid{grid-template-columns:1fr}
  .cards-2{grid-template-columns:1fr}
  .gallery{grid-template-columns:1fr}
  .gallery img{height:auto}
}

/* Small “nudge” text link (used to point to calculator) */
.calc-nudge{
  margin-top:10px;
  color:rgba(232,238,252,.78);
  font-size:13px;
}
.calc-nudge a{
  color:rgba(232,238,252,.92);
  text-decoration:underline;
  text-underline-offset:3px;
}
.calc-nudge a:hover{opacity:.9}


/* --- Investor packaging --- */
.section-head.mini{
  margin-top:18px;
  margin-bottom:12px;
}
.section-head.mini h3{
  margin:0;
  font-size:20px;
  letter-spacing:-.01em;
}

.term-grid{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:12px;
}
.term-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:14px;
  background:rgba(255,255,255,.02);
}
.term-key{
  font-family:"IBM Plex Mono", monospace;
  font-size:12px;
  color:rgba(232,238,252,.72);
  min-width:140px;
  padding-top:1px;
}
.term-val{
  font-size:13px;
  font-weight:800;
  text-align:right;
  flex:1;
  line-height:1.35;
}

.timeline{
  margin:8px 0 0;
  padding-left:18px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.timeline li{
  color:rgba(232,238,252,.85);
  font-size:13px;
  line-height:1.45;
}
.timeline b{
  color:var(--text);
}

@media (max-width: 720px){
  .term-row{
    flex-direction:column;
  }
  .term-key{
    min-width:0;
  }
  .term-val{
    text-align:left;
  }
}


/* --- Data room additions --- */
.table{
  width:100%;
  border-collapse:collapse;
  margin-top:10px;
  font-size:13px;
}
.table th,
.table td{
  padding:10px 8px;
  border-bottom:1px solid var(--stroke);
  vertical-align:top;
}
.table th{
  color:rgba(232,238,252,.80);
  font-weight:800;
}
.table td{
  color:rgba(232,238,252,.92);
}
.table .num{
  text-align:right;
  font-variant-numeric: tabular-nums;
}
.table tfoot th,
.table tfoot td{
  border-top:1px solid var(--stroke);
  border-bottom:none;
  padding-top:12px;
  font-weight:900;
}

.btn.small{
  padding:9px 12px;
  font-size:12px;
}

.doc-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:10px;
}
.doc-item{
  display:flex;
  gap:12px;
  align-items:flex-start;
  justify-content:space-between;
  padding:12px 12px;
  border:1px solid var(--stroke);
  border-radius:14px;
  background:rgba(255,255,255,.03);
}
.doc-left{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}
.doc-title{
  font-weight:900;
  color:var(--text);
  font-size:13px;
}
.doc-desc{
  font-size:12px;
  color:rgba(232,238,252,.75);
  line-height:1.35;
}
.doc-right{
  display:flex;
  align-items:center;
  flex-shrink:0;
}

@media (max-width: 720px){
  .doc-item{
    flex-direction:column;
    align-items:stretch;
  }
  .doc-right{
    justify-content:flex-start;
  }
}


/* --- Deal calculator --- */

.calc-details{
  margin-top:18px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  background:rgba(255,255,255,.04);
  overflow:hidden;
}
.calc-details > summary{
  list-style:none;
  cursor:pointer;
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-weight:600;
}
.calc-details > summary::-webkit-details-marker{display:none;}
.calc-details > summary::after{
  content:'+';
  font-weight:700;
  color:rgba(232,238,252,.72);
}
.calc-details[open] > summary::after{
  content:'–';
}

.calc-summary-hint{
  font-weight:500;
  font-size:12px;
  color:rgba(232,238,252,.62);
}
.calc-details[open] > summary{
  border-bottom:1px solid rgba(255,255,255,.08);
}
.calc-inner{
  padding:14px 16px 16px;
}

.calc-schedule{
  margin-top:10px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  background:rgba(0,0,0,.12);
  padding:10px 12px;
}
.calc-schedule > summary{
  list-style:none;
  cursor:pointer;
  font-weight:600;
  font-size:13px;
}
.calc-schedule > summary::-webkit-details-marker{display:none;}
.calc-schedule > summary::after{
  content:'▸';
  float:right;
  color:rgba(232,238,252,.62);
}
.calc-schedule[open] > summary::after{
  content:'▾';
}

.calc-schedule-inner{
  margin-top:10px;
}

.calc-wrap{
  margin-top:12px;
}
.calc-form{
  display:flex;
  flex-direction:column;
  gap:0;
  margin-top:10px;
}
.calc-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.calc-row:last-child{border-bottom:none}
.calc-label{
  flex:1;
  font-size:13px;
  color:rgba(232,238,252,.90);
  line-height:1.35;
}
.calc-hint{
  margin-top:4px;
  font-size:12px;
  color:rgba(232,238,252,.62);
}
.calc-control{
  width:min(340px, 100%);
  display:flex;
  justify-content:flex-end;
  gap:10px;
}
.calc-control.col{
  flex-direction:column;
  align-items:stretch;
}
.calc-control input[type="number"],
.calc-control select{
  width:100%;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.18);
  color:var(--text);
  border-radius:12px;
  padding:10px 12px;
  font-size:13px;
  outline:none;
}

/* Windows/Chrome: у <select> выпадающий список часто рисуется светлым.
   Если текст тоже светлый — он «пропадает». Делаем dropdown читаемым везде. */
.calc-control select{color:var(--text); background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08);}
/* dropdown options */
.calc-control select option{background:#ffffff; color:#0b0d12;}
.calc-control select option:disabled{color:rgba(11,13,18,.55);}

.calc-control input[type="number"]::-webkit-outer-spin-button,
.calc-control input[type="number"]::-webkit-inner-spin-button{
  -webkit-appearance: none;
  margin: 0;
}
.calc-control input[type="range"]{
  width:100%;
}
.calc-kpi-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:10px;
  margin-top:12px;
}

.calc-presets{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
}

.preset-btn{
  appearance:none;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.18);
  color:var(--text);
  border-radius:999px;
  padding:7px 10px;
  font-size:12px;
  line-height:1;
  cursor:pointer;
  user-select:none;
  transition:transform .08s ease, border-color .2s ease, background .2s ease;
}

.preset-btn:hover{transform:translateY(-1px);}

.preset-btn.active{
  border-color:rgba(255,102,0,.55);
  background:rgba(255,102,0,.14);
}

@media (max-width: 720px){
  .calc-row{flex-direction:column; align-items:stretch}
  .calc-control{width:100%; justify-content:flex-start}
  .calc-presets{justify-content:flex-start}
}
