:root{
  --bg1:#ffd4e0; --bg2:#ffe8d4; --bg-base:#fff6f2; --bg-base2:#ffeae0;
  --accent1:#ff3d77; --accent2:#ff7a4d;
  --dark:#1a0f14; --dark2:#3a1d2a;
  --text:#1a0f14; --muted:#7a5a62; --sub:#4a3a40;
  --ok:#1aa26b; --warn:#e08a2b; --alert:#e03a5c;
  --card-bg:rgba(255,255,255,0.72); --card-border:rgba(255,255,255,0.9);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  color:var(--text); min-height:100vh;
  background:
    radial-gradient(1000px 600px at 10% -10%, var(--bg1) 0%, transparent 60%),
    radial-gradient(900px 600px at 110% 10%, var(--bg2) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-base), var(--bg-base2));
  background-attachment:fixed;
}
em{font-family:'Playfair Display',serif; font-style:italic; font-weight:700;
   background:linear-gradient(90deg,var(--accent1),var(--accent2));
   -webkit-background-clip:text; background-clip:text; color:transparent;}
a{color:inherit}

.topbar{display:flex;justify-content:space-between;align-items:center;padding:22px 40px;}
.brand{font-weight:800;font-size:18px;display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit}
.brand-dot{width:10px;height:10px;border-radius:50%;background:linear-gradient(135deg,var(--accent1),var(--accent2));flex-shrink:0}
.brand-text{display:flex;flex-direction:column;line-height:1.15}
.brand-title{display:inline-flex;align-items:center;gap:10px}
.brand-beta{font-size:11px;font-weight:700;letter-spacing:.04em;color:#fff;background:linear-gradient(135deg,var(--accent1),var(--accent2));padding:2px 8px;border-radius:999px;text-transform:uppercase}
.brand-sub{font-size:11px;font-weight:500;color:var(--muted);letter-spacing:.01em;margin-top:2px}
.topbar nav a{margin-left:22px;color:var(--sub);text-decoration:none;font-weight:500;font-size:14px}
.topbar nav a:hover{color:var(--accent1)}

main{max-width:1080px;margin:0 auto;padding:12px 24px 80px;display:flex;flex-direction:column;gap:22px}
.screen{display:flex;flex-direction:column;gap:22px}
.card{background:var(--card-bg);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);
      border:1px solid var(--card-border); border-radius:28px; padding:34px 40px;
      box-shadow:0 10px 40px rgba(26,15,20,0.06)}

.hero{display:grid;grid-template-columns:1.25fr 1fr;gap:40px;align-items:center}
.hero h1{font-size:44px;line-height:1.05;letter-spacing:-0.02em;font-weight:800;margin:14px 0 12px}
.lead{font-size:17px;color:var(--sub);line-height:1.55;margin:0 0 18px;max-width:58ch}
.summary .lead{max-width:none}
.badge{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:600;
       padding:8px 14px;border-radius:999px;background:rgba(255,61,119,0.08);color:#b8235a;letter-spacing:.04em;text-transform:uppercase}
.badge .dot{width:6px;height:6px;border-radius:50%;background:var(--accent1)}
.trust{list-style:none;padding:0;margin:16px 0 0;display:flex;gap:28px;flex-wrap:wrap}
.trust li{display:flex;flex-direction:column}
.trust b{font-size:22px;font-weight:800;background:linear-gradient(90deg,var(--accent1),var(--accent2));
         -webkit-background-clip:text;background-clip:text;color:transparent}
.trust span{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}

.hero-visual{position:relative;aspect-ratio:1/1;border-radius:28px;overflow:hidden;
  background:linear-gradient(135deg,var(--dark),var(--dark2));
  color:#ffb3c7;font-family:'Cormorant',serif;font-size:18px;
  box-shadow:inset 0 0 120px rgba(255,61,119,0.25);}
.hero-visual::before{content:"";position:absolute;inset:-20%;
  background:radial-gradient(circle at 80% 20%, rgba(255,61,119,0.5), transparent 45%),
             radial-gradient(circle at 20% 80%, rgba(255,122,77,0.45), transparent 50%);}
.hero-visual > div{position:absolute;padding:8px 14px;background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,179,199,0.25);border-radius:14px;backdrop-filter:blur(8px)}
.drop-a{top:12%;left:10%}.drop-b{top:20%;right:8%}.drop-c{bottom:22%;left:10%}.drop-d{bottom:10%;right:10%}

.hero-author{background:#f9ecec;box-shadow:none;color:#1a0f14;display:flex;flex-direction:column;padding:0;overflow:hidden;aspect-ratio:auto}
.hero-author::before{display:none}
.hero-author .hero-photo{width:100%;aspect-ratio:1/1;object-fit:cover;display:block;order:1}
.hero-author .hero-caption{position:static;padding:18px 22px 22px;background:#fff;font-family:'Inter',sans-serif;border:none;border-radius:0;backdrop-filter:none;order:2}
.hero-author .hero-caption b{display:block;font-size:18px;font-weight:700;color:#1a0f14;margin-bottom:2px}
.hero-author .hero-caption span{display:block;font-size:13px;color:var(--muted);margin-bottom:10px}
.hero-author .hero-caption p{font-size:14px;color:var(--sub);line-height:1.5;margin:0}

h2{font-size:22px;font-weight:700;letter-spacing:-0.01em;margin:0 0 10px}
h4.cat-head{grid-column:1/-1;margin:18px 0 4px;color:var(--accent1);font-size:13px;letter-spacing:.08em;text-transform:uppercase}
.muted{color:var(--muted)}

.form{display:flex;flex-direction:column;gap:22px}

.age-sex{display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.age-input{display:inline-flex;align-items:center;gap:12px;padding:6px 10px 6px 18px;
  background:rgba(255,255,255,0.5);border:1px solid #ffd9cf;border-radius:14px;font-size:14px;color:var(--sub);font-weight:600}
.age-input input{width:110px;padding:10px 14px;border-radius:10px;border:1px solid #eccfc6;background:#fff;
  font:inherit;font-weight:600;color:var(--text);text-align:center}
.age-input input:focus{outline:none;border-color:var(--accent1);box-shadow:0 0 0 3px rgba(255,61,119,0.15)}
.age-input input::-webkit-outer-spin-button,.age-input input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.age-input input[type=number]{-moz-appearance:textfield}

.segmented{display:inline-flex;gap:6px;background:rgba(255,255,255,0.5);padding:6px;border-radius:14px;border:1px solid #ffd9cf}
.segmented label{cursor:pointer}
.segmented input{display:none}
.segmented span{display:inline-block;padding:10px 18px;border-radius:10px;font-weight:600;font-size:14px;color:var(--sub)}
.segmented input:checked + span{background:linear-gradient(135deg,var(--accent1),var(--accent2));color:#fff;box-shadow:0 4px 14px rgba(255,61,119,0.35)}

details{border:1px solid #ffd9cf;border-radius:16px;padding:14px 18px;margin:10px 0;background:rgba(255,255,255,0.45)}
details[open]{background:rgba(255,255,255,0.7)}
details summary{cursor:pointer;font-size:15px;padding:4px 0;list-style:none}
details summary::-webkit-details-marker{display:none}
details summary::before{content:"+";display:inline-block;width:22px;height:22px;line-height:22px;text-align:center;
  margin-right:10px;border-radius:50%;background:linear-gradient(135deg,var(--accent1),var(--accent2));color:#fff;font-weight:700}
details[open] summary::before{content:"−"}

textarea,input[type=text],input[type=file]{width:100%;padding:12px 14px;border-radius:12px;border:1px solid #eccfc6;
  font:inherit;background:#fff}
textarea:focus,input[type=text]:focus{outline:none;border-color:var(--accent1);box-shadow:0 0 0 3px rgba(255,61,119,0.15)}

.manual-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 22px;margin-top:12px}
.manual-row{display:grid;grid-template-columns:1.4fr 1fr 100px;gap:10px;align-items:center;font-size:14px}
.manual-row input{padding:8px 10px;font-size:14px}
.manual-name{font-weight:500}
.manual-ref{font-size:12px}

.cta-row{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.cta{display:inline-block;padding:16px 30px;border:none;border-radius:14px;
  background:linear-gradient(135deg,var(--accent1),var(--accent2));color:#fff;
  font-weight:700;font-size:15px;cursor:pointer;text-decoration:none;
  box-shadow:0 10px 28px rgba(255,61,119,0.35);transition:transform .15s}
.cta:hover{transform:translateY(-2px)}

.flashes{max-width:1080px;margin:0 auto;padding:0 24px}
.flash{background:#fff3e5;border:1px solid #ffc99a;color:#8a4a10;padding:12px 16px;border-radius:12px;margin-bottom:10px}

.summary h1{font-size:36px;margin:10px 0}
.summary-pills{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0 16px}
.pill{padding:8px 14px;border-radius:999px;font-weight:600;font-size:13px}
.pill.alert{background:#fde4ea;color:var(--alert)}
.pill.warn{background:#fdeed2;color:var(--warn)}
.pill.ok{background:#dff6ea;color:var(--ok)}

.projects-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:14px;margin-top:12px}
.project{display:flex;flex-direction:column;gap:8px;padding:20px;border-radius:20px;background:#fff;
  border:1px solid #ffd9cf;text-decoration:none;color:inherit;transition:transform .2s, box-shadow .2s;position:relative;overflow:hidden}
.project::before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,var(--accent1),var(--accent2))}
.project:hover{transform:translateY(-3px);box-shadow:0 16px 40px rgba(255,61,119,0.15)}
.project-title{font-weight:700;font-size:16px}
.project-descr{font-size:13px;color:var(--sub);line-height:1.5}
.project-because{font-size:12px;color:var(--muted);line-height:1.5}
.project-open{margin-top:6px;font-weight:700;color:var(--accent1);font-size:13px}

.rows{display:flex;flex-direction:column;gap:12px;margin-top:10px}
.row{padding:16px 18px;border-radius:16px;border:1px solid #eccfc6;background:#fff}
.row.sev-alert{border-color:#f6b5c2;background:#fff7f9}
.row.sev-warn{border-color:#f5d6a5;background:#fffaf2}
.row.sev-ok{border-color:#c7ebd7;background:#f6fcf9}
.row-head{display:grid;grid-template-columns:1.6fr 1fr 1.2fr;gap:12px;align-items:baseline}
.row-name{font-weight:600}
.row-val{font-size:18px}
.row-val b{font-size:22px;font-weight:800}
.row-status{text-align:right;font-weight:600;font-size:13px}
.sev-alert .row-status{color:var(--alert)}
.sev-warn .row-status{color:var(--warn)}
.sev-ok .row-status{color:var(--ok)}
.row-ranges{display:flex;gap:18px;font-size:12px;color:var(--muted);margin-top:6px}
.bar{position:relative;height:10px;border-radius:6px;background:#f1e3de;margin:10px 0 6px;overflow:visible}
.bar-ref{position:absolute;top:0;bottom:0;background:#ffe7dd;border-radius:6px}
.bar-opt{position:absolute;top:0;bottom:0;background:linear-gradient(90deg,#b6e8c8,#8ddbb1);border-radius:6px}
.bar-pin{position:absolute;top:-4px;width:18px;height:18px;border-radius:50%;
  background:linear-gradient(135deg,var(--accent1),var(--accent2));
  box-shadow:0 0 0 4px rgba(255,61,119,0.18);transform:translateX(-50%)}
.row-note{margin-top:8px;font-size:14px;line-height:1.5}
.row-extra{margin-top:4px;font-size:12px}

.footer{max-width:1080px;margin:0 auto;padding:24px;display:flex;justify-content:space-between;color:var(--muted);font-size:12px;flex-wrap:wrap;gap:10px}

@media (max-width: 900px){
  .hero{grid-template-columns:1fr}
  .hero-visual{min-height:260px}
  .hero h1{font-size:30px}
  .card{padding:26px 22px}
  .manual-grid{grid-template-columns:1fr}
  .row-head{grid-template-columns:1fr;gap:4px}
  .row-status{text-align:left}
}

/* ===== Мобильная версия ===== */
@media (max-width: 720px){
  /* Шапка */
  .topbar{padding:12px 16px;gap:10px;flex-wrap:wrap}
  .brand{font-size:15px;gap:8px;flex:1;min-width:0}
  .brand-title{font-size:15px;gap:6px;flex-wrap:wrap}
  .brand-beta{font-size:9px;padding:2px 6px}
  .brand-sub{font-size:10px}
  .topbar nav{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-end}
  .topbar nav a{margin-left:0;font-size:13px;padding:4px 0}
  .checks-badge{margin-right:0;padding:4px 10px;font-size:12px}

  /* Контент */
  main{padding:8px 14px 60px;gap:16px}
  .screen{gap:16px}
  .card{padding:20px 16px;border-radius:20px}

  /* Hero */
  .hero{gap:20px}
  .hero h1{font-size:26px;line-height:1.1}
  .lead{font-size:15px}
  .badge{font-size:11px;padding:6px 10px}
  .trust{gap:14px 20px;margin-top:12px}
  .trust b{font-size:18px}
  .trust span{font-size:11px}
  .hero-author .hero-caption{padding:14px 16px 18px}
  .hero-author .hero-caption b{font-size:16px}

  /* Заголовки секций */
  .summary h1{font-size:26px;margin:6px 0}
  h2{font-size:18px}

  /* Форма */
  .age-sex{flex-direction:column;align-items:stretch;gap:14px}
  .age-input{width:100%;justify-content:space-between}
  .age-input input{width:130px}
  .segmented{width:100%;justify-content:space-between}
  .segmented label{flex:1}
  .segmented span{padding:10px 8px;text-align:center;font-size:13px;display:block}

  details{padding:12px 14px}
  details summary{font-size:14px}
  details.nested{padding:10px 12px}

  .dropzone{padding:18px 14px}
  .dz-title{font-size:14px}
  .dz-hint{font-size:12px}

  .manual-grid{gap:8px}
  .manual-row{grid-template-columns:1fr;gap:4px;padding:10px 0;border-bottom:1px dashed #f1dfd6}
  .manual-row:last-child{border-bottom:none}
  .manual-ref{font-size:11px}
  .manual-row input,.manual-row select{font-size:15px;padding:10px 12px}

  /* Кнопки во всю ширину */
  .cta-row{flex-direction:column;align-items:stretch;gap:12px}
  .cta{display:block;text-align:center;padding:14px 20px;font-size:15px;width:100%}
  .cta-row .muted{font-size:12px;text-align:center}
  .cta-ghost{width:100%;text-align:center;padding:13px 18px}
  .tp-actions{flex-direction:column;align-items:stretch;gap:10px}
  .club-actions{flex-direction:column;align-items:stretch;gap:10px}
  .club-price{text-align:center}

  /* Плашки / pills */
  .summary-pills{gap:6px}
  .pill{font-size:12px;padding:6px 10px}

  /* Детальные ряды */
  .row{padding:14px 14px;border-radius:14px}
  .row-name{font-size:15px}
  .row-val{font-size:16px}
  .row-val b{font-size:19px}
  .row-status{font-size:12px}
  .row-ranges{flex-direction:column;gap:2px;font-size:11px}
  .row-note{font-size:13px}
  .bar{margin:12px 0 4px}

  /* Проекты (grid) */
  .projects-grid{grid-template-columns:1fr;gap:10px}
  .project{padding:16px 14px}

  /* Top project / club */
  .top-project h2{font-size:20px}
  .club-cta h2{font-size:22px}
  .club-lead{font-size:14px}
  .club-bullets{grid-template-columns:1fr;gap:6px;font-size:13px}

  /* Интерпретация */
  .summary .lead{font-size:15px;margin-bottom:14px}

  /* Модалки */
  .paywall-modal,.materials-modal{padding:24px 20px;border-radius:18px}
  .paywall-modal h2,.materials-modal h2{font-size:20px}
  .paywall-actions{flex-direction:column;align-items:stretch;gap:10px}
  .paywall-actions .cta,.paywall-actions .cta-ghost{width:100%;text-align:center}

  /* Футер */
  .footer{flex-direction:column;padding:18px 16px;text-align:left;gap:12px;font-size:11px}

  /* Дисклеймер */
  .disclaimer{font-size:13px;padding:12px 14px}

  /* Файл-список */
  .file-item{font-size:13px}

  /* Формы авторизации */
  .auth-card{padding:24px 20px}
  .tg-btn{padding:12px 16px;font-size:14px}
}

/* Скрыть hero-визуал на совсем узких если занимает лишнее */
@media (max-width: 480px){
  .hero-author{border-radius:18px}
  .hero h1{font-size:22px}
  .summary h1{font-size:22px}
  .card{padding:18px 14px;border-radius:18px}
}

/* ===== Счётчик проверок в шапке ===== */
.checks-badge{
  display:inline-block; margin-right:18px;
  padding:6px 12px; border-radius:999px;
  background:rgba(255,255,255,0.7); border:1px solid rgba(255,61,119,0.25);
  font-size:13px; color:var(--sub); font-weight:500;
}
.checks-badge b{color:var(--accent1); font-weight:700}
.checks-badge.empty{background:rgba(224,58,92,0.1); border-color:rgba(224,58,92,0.4)}
.checks-badge.empty b{color:var(--alert)}
.checks-badge.unlim{
  background:linear-gradient(90deg,var(--accent1),var(--accent2));
  color:#fff; border:none; font-weight:700;
}

/* ===== Формы логина/регистрации ===== */
.auth-card{max-width:440px; margin:40px auto}
.auth-card h1{margin:0 0 8px; font-size:30px}
.auth-form{display:flex; flex-direction:column; gap:14px; margin-top:20px}
.auth-form label{display:flex; flex-direction:column; gap:6px; font-weight:500; font-size:14px; color:var(--sub)}
.auth-form input{
  padding:12px 14px; border-radius:10px;
  border:1px solid rgba(0,0,0,0.1); background:#fff;
  font-size:15px; font-family:inherit;
}
.auth-form input:focus{outline:none; border-color:var(--accent1)}
.auth-form .cta{margin-top:8px; width:100%}

/* ===== Paywall модалка ===== */
.paywall-overlay{
  position:fixed; inset:0; z-index:1000;
  background:rgba(26,15,20,0.55);
  backdrop-filter:blur(6px);
  display:flex; align-items:center; justify-content:center;
  padding:24px; animation:fadeIn .3s ease;
}
.paywall-modal{
  max-width:520px; width:100%;
  background:#fff; border-radius:22px;
  padding:36px 34px;
  box-shadow:0 30px 80px rgba(0,0,0,0.3);
  animation:popIn .35s cubic-bezier(.2,.9,.3,1.2);
}
.paywall-badge{
  display:inline-block; padding:5px 12px; border-radius:999px;
  background:linear-gradient(90deg,var(--accent1),var(--accent2));
  color:#fff; font-size:12px; font-weight:700; letter-spacing:.5px;
  text-transform:uppercase; margin-bottom:14px;
}
.paywall-modal h2{margin:0 0 6px; font-size:26px; line-height:1.2}
.paywall-sub{margin:0 0 14px; font-size:17px; font-weight:600; color:var(--text)}
.paywall-modal p{color:var(--sub); font-size:15px; line-height:1.55}
.paywall-actions{display:flex; gap:12px; margin-top:22px; flex-wrap:wrap}
.cta-ghost{
  padding:12px 20px; border-radius:12px; cursor:pointer;
  background:transparent; border:1px solid rgba(0,0,0,0.15);
  color:var(--sub); font-weight:600; font-family:inherit; font-size:14px;
}
.cta-ghost:hover{border-color:var(--accent1); color:var(--accent1)}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes popIn{from{opacity:0;transform:scale(.92)}to{opacity:1;transform:scale(1)}}

/* ===== Glinkin Club CTA ===== */
.club-cta{
  background:linear-gradient(135deg,#fff3f5,#ffe6ec);
  border:1px solid rgba(255,61,119,0.18);
  position:relative; overflow:hidden;
}
.club-cta::before{
  content:""; position:absolute; inset:auto -60px -80px auto;
  width:260px; height:260px; border-radius:50%;
  background:radial-gradient(circle, rgba(255,61,119,0.18), transparent 70%);
  pointer-events:none;
}
.club-badge{
  display:inline-block; padding:5px 12px; border-radius:999px;
  background:linear-gradient(90deg,var(--accent1),var(--accent2));
  color:#fff; font-size:11px; font-weight:700; letter-spacing:.6px;
  text-transform:uppercase; margin-bottom:14px;
}
.club-cta h2{font-family:'Playfair Display',serif; font-style:italic; font-size:28px; margin:0 0 10px}
.club-lead{color:var(--sub); font-size:15px; line-height:1.55; margin:0 0 14px; max-width:640px}
.club-bullets{list-style:none; padding:0; margin:0 0 18px; display:grid; grid-template-columns:1fr 1fr; gap:8px 20px; max-width:700px}
.club-bullets li{position:relative; padding-left:20px; font-size:14px; color:var(--text); line-height:1.45}
.club-bullets li::before{content:"✦"; position:absolute; left:0; color:var(--accent1); font-size:13px}
.club-actions{display:flex; gap:14px; align-items:center; flex-wrap:wrap; position:relative; z-index:1}
.club-price{font-size:13px; font-weight:500}
@media (max-width: 560px){
  .club-bullets{grid-template-columns:1fr}
  .club-cta h2{font-size:24px}
}

/* ===== Materials модалка ===== */
.tp-actions{display:flex; gap:12px; margin-top:14px; flex-wrap:wrap; align-items:center}
.materials-overlay{
  position:fixed; inset:0; z-index:1000;
  background:rgba(26,15,20,0.55);
  backdrop-filter:blur(6px);
  display:flex; align-items:center; justify-content:center;
  padding:24px; animation:fadeIn .3s ease;
}
.materials-modal{
  position:relative;
  max-width:640px; width:100%;
  background:#fff; border-radius:22px;
  padding:34px 32px;
  box-shadow:0 30px 80px rgba(0,0,0,0.3);
  animation:popIn .35s cubic-bezier(.2,.9,.3,1.2);
}
.materials-close{
  position:absolute; top:14px; right:16px;
  width:34px; height:34px; border-radius:50%;
  background:transparent; border:none; cursor:pointer;
  font-size:26px; line-height:1; color:var(--muted);
}
.materials-close:hover{background:rgba(0,0,0,0.05); color:var(--accent1)}
.materials-badge{
  display:inline-block; padding:5px 12px; border-radius:999px;
  background:linear-gradient(90deg,var(--accent1),var(--accent2));
  color:#fff; font-size:12px; font-weight:700; letter-spacing:.5px;
  text-transform:uppercase; margin-bottom:14px;
}
.materials-modal h2{margin:0 0 6px; font-size:24px; line-height:1.2}
.materials-modal p{color:var(--sub); font-size:14px; line-height:1.55; margin:0 0 18px}
.materials-list{list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px}
.materials-item{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:14px 16px; border:1px solid rgba(0,0,0,0.08); border-radius:14px;
  background:#fafafa;
}
.materials-title{font-weight:600; font-size:15px; color:var(--text); flex:1; min-width:0}
.materials-get{white-space:nowrap; font-size:13px; padding:10px 16px}
@media (max-width: 560px){
  .materials-item{flex-direction:column; align-items:stretch}
  .materials-get{text-align:center}
}

.auth-divider{display:flex; align-items:center; gap:12px; margin:22px 0 18px; color:var(--muted); font-size:13px}
.auth-divider::before,.auth-divider::after{content:""; flex:1; height:1px; background:rgba(0,0,0,0.1)}
.tg-btn{
  display:flex; align-items:center; justify-content:center; gap:10px;
  width:100%; padding:13px 20px; border-radius:12px;
  background:#229ED9; color:#fff !important; text-decoration:none;
  font-weight:700; font-size:15px; letter-spacing:.2px;
  transition:transform .15s ease, box-shadow .15s ease;
  box-shadow:0 6px 20px rgba(34,158,217,0.35);
}
.tg-btn:hover{transform:translateY(-1px); box-shadow:0 10px 28px rgba(34,158,217,0.45)}
.tg-status{display:flex; align-items:center; gap:10px; justify-content:center; margin-top:14px; font-size:14px}
.tg-spinner{
  width:16px; height:16px; border-radius:50%;
  border:2px solid rgba(34,158,217,0.3); border-top-color:#229ED9;
  animation:spin .8s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}

.dropzone{
  display:block; margin:14px 0 10px; padding:28px 20px;
  border:2px dashed rgba(255,61,119,0.35); border-radius:14px;
  background:rgba(255,255,255,0.5); cursor:pointer; text-align:center;
  transition:border-color .2s, background .2s, transform .1s;
}
.dropzone:hover{border-color:var(--accent1); background:rgba(255,255,255,0.75)}
.dropzone.drag{border-color:var(--accent1); background:rgba(255,61,119,0.08); transform:scale(1.01)}
.dz-icon{font-size:34px; margin-bottom:8px}
.dz-title{font-weight:600; font-size:15px; color:var(--text)}
.dz-title u{color:var(--accent1); text-decoration:underline}
.dz-hint{margin-top:6px; font-size:13px}

.file-list{list-style:none; padding:0; margin:10px 0 0; display:flex; flex-direction:column; gap:6px}
.file-item{
  display:flex; justify-content:space-between; align-items:center;
  padding:8px 14px; border-radius:10px;
  background:rgba(255,255,255,0.7); border:1px solid rgba(0,0,0,0.06);
  font-size:14px;
}
.fi-name{font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin-right:10px}
.fi-size{font-size:12px; white-space:nowrap}

/* ===== Табы экранов ===== */
.screen-tabs{
  display:flex; gap:8px; max-width:900px; margin:0 auto 14px; padding:0 20px;
}
.tab-btn{
  flex:1; padding:12px 16px; border-radius:12px 12px 0 0; border:none;
  background:rgba(255,255,255,0.55); color:var(--sub);
  font-family:inherit; font-weight:600; font-size:14px; cursor:pointer;
  border:1px solid rgba(0,0,0,0.06); border-bottom:none;
  transition:background .15s;
}
.tab-btn:hover{background:rgba(255,255,255,0.8)}
.tab-btn.active{
  background:#fff; color:var(--accent1);
  box-shadow:0 -4px 16px rgba(0,0,0,0.04);
}

.disclaimer{
  max-width:900px; margin:0 auto 18px; padding:12px 18px;
  background:rgba(224,138,43,0.08); border:1px solid rgba(224,138,43,0.3);
  border-radius:12px; font-size:13.5px; color:var(--sub); line-height:1.5;
}

/* ===== Кластеры интерпретации ===== */
.cluster-findings{list-style:none; padding:0; margin:10px 0 16px; display:flex; flex-direction:column; gap:8px}
.cluster-findings li{
  display:grid; grid-template-columns:1fr auto auto; gap:14px;
  padding:10px 14px; border-radius:10px;
  background:rgba(255,255,255,0.7); border:1px solid rgba(0,0,0,0.06);
  font-size:14px; align-items:center;
}
.ci-name{font-weight:600}
.ci-val{white-space:nowrap}
.ci-sev{font-size:12.5px; font-weight:600; white-space:nowrap}
.ci-sev.sev-alert{color:var(--alert)}
.ci-sev.sev-warn{color:var(--warn)}
.cluster-narrative{
  margin:6px 0 0; padding:14px 18px; border-left:3px solid var(--accent1);
  background:rgba(255,61,119,0.05); border-radius:0 10px 10px 0;
  font-size:14.5px; line-height:1.55; color:var(--text);
}

/* ===== Топ-проект ===== */
.top-project{
  background:linear-gradient(135deg, rgba(255,61,119,0.08), rgba(255,122,77,0.08));
  border:2px solid var(--accent1);
}
.top-project h2{font-size:24px; margin:6px 0 10px}
.tp-badge{
  display:inline-block; padding:4px 12px; border-radius:999px;
  background:linear-gradient(90deg,var(--accent1),var(--accent2));
  color:#fff; font-size:11px; font-weight:800; letter-spacing:.6px; text-transform:uppercase;
}
.top-project .cta{margin-top:10px; display:inline-block}

@media (max-width: 700px){
  .cluster-findings li{grid-template-columns:1fr; gap:4px}
  .screen-tabs{flex-direction:column}
  .tab-btn{border-radius:12px}
}
