:root{
  --bg:#0f1430;
  --panel:#ffffff;
  --ink:#141a2a;
  --muted:#6b7280;
  --accent:#b7f2c6;      /* светло-зелёные тона */
  --accent-weak:#e9f9ef; /* мягкая подложка */
  --radius:18px;
  --shadow:0 10px 40px rgba(0,0,0,.15);
  --gap:20px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font:16px/1.45 "Manrope","Avenir Next","Segoe UI",Arial,sans-serif;
  color:var(--ink);
  background:var(--bg);
}
.bg{position:fixed;inset:0; background:
 radial-gradient(1200px 600px at 50% -200px, rgba(183,242,198,.15), transparent 60%); z-index:-1;}

.container{max-width:1200px;margin:64px auto;padding:0 16px;}

.panel{
  background:var(--panel);
  border-radius:calc(var(--radius) + 6px);
  box-shadow:var(--shadow);
  padding:40px 28px;
}

.hero{display:flex;flex-direction:column;align-items:center;gap:24px;min-height:360px}
.hero-badge{
  padding:6px 12px;
  border-radius:999px;
  background:var(--accent-weak);
  color:#2d5a3b;
  font-size:13px;
  font-weight:700;
  letter-spacing:.4px;
  text-transform:uppercase;
}
.title{
  font-size:52px;
  letter-spacing:.4px;
  margin:0;
  color:#1b1f3b;
  text-align:center;
  line-height:1.08;
}
.hero-subtitle{
  max-width:680px;
  margin:-8px 0 0;
  color:#4d5568;
  font-size:18px;
  text-align:center;
}
.hint{color:var(--muted);margin:-4px 0 0;font-weight:600}

.search{width:100%;max-width:560px}
.search.small{max-width:520px}
.search-box{
  background:var(--accent-weak);
  border-radius:999px;
  padding:10px 18px;
  display:flex;align-items:center;gap:12px;
  border:1px solid rgba(0,0,0,.06);
}
.search-box input{
  border:0;outline:0;background:transparent;
  width:100%;font-size:18px;color:#1a2235;
}
.btn{
  border:0;
  border-radius:999px;
  background:#1d8f57;
  color:#fff;
  padding:11px 18px;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow:0 6px 18px rgba(29,143,87,.28);
  white-space:nowrap;
}
.btn:hover{background:#1a7f4d;transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.icon{width:20px;height:20px;fill:#465;opacity:.7}
.suggestions{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
  list-style:none;
  margin:0;
  padding:0;
}
.suggestions li{
  padding:8px 12px;
  border-radius:999px;
  background:#f4f7fd;
  color:#3d475e;
  font-size:14px;
}

.results-header{
  display:grid;
  grid-template-columns:1.35fr 1fr;
  gap:22px;
  align-items:start;
  background:
    radial-gradient(900px 260px at -8% -35%, rgba(99, 255, 174, .28), transparent 60%),
    linear-gradient(130deg, #1a2d58 0%, #0f1e3e 65%, #0e1734 100%);
  border:1px solid rgba(170, 255, 211, .2);
  padding:22px;
  border-radius:var(--radius);
  color:#fff;
  margin-bottom:16px;
}
.brand{
  font-weight:800;
  letter-spacing:1.2px;
  color:#ecfff1;
  font-size:24px;
}
.results-hero-copy{display:grid;gap:10px}
.results-title{
  margin:0;
  font-size:34px;
  line-height:1.18;
  color:#ffffff;
}
.results-subtitle{
  margin:0;
  color:#c5dfd5;
  max-width:680px;
}
.results-kpi{
  margin:4px 0 0;
  padding:0;
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.results-kpi li{
  min-width:180px;
  border:1px solid rgba(187, 255, 223, .24);
  background:rgba(6, 16, 35, .36);
  border-radius:12px;
  padding:10px 12px;
  display:grid;
  gap:4px;
}
.results-kpi strong{
  font-size:18px;
  color:#f4fff8;
}
.results-kpi span{
  font-size:12px;
  color:#b3d6c6;
  text-transform:uppercase;
  letter-spacing:.3px;
}
.results-search{align-self:stretch}
.results-status{
  margin:0 0 16px;
  padding:14px 18px;
  border-radius:14px;
  display:grid;
  gap:4px;
  border:1px solid rgba(19, 40, 66, .08);
  background:#f7fafc;
}
.results-status strong{
  color:#11233f;
  font-size:15px;
}
.results-status span{
  color:#516174;
  font-size:14px;
}
.results-status.is-loading{
  background:linear-gradient(180deg, #edf8f1 0%, #f7fcf9 100%);
  border-color:#bfe7cb;
}
.results-status.is-complete{
  background:linear-gradient(180deg, #eef7ff 0%, #f8fbff 100%);
  border-color:#cfe0f2;
}
.results-status.is-error{
  background:linear-gradient(180deg, #fff2f2 0%, #fff9f9 100%);
  border-color:#f1c5c5;
}

.grid{display:grid;grid-template-columns:1fr 1.4fr 1fr;gap:var(--gap)}
.col .card + .card{margin-top:var(--gap)}
.card{background:var(--panel);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px}
.card h3{margin:4px 0 12px;font-size:20px}
.card h2.center{text-align:center;margin:8px 0 16px}
.list{list-style:none;margin:0;padding:0}
.list li{padding:8px 4px;border-radius:12px}
.list li:hover{background:var(--accent-weak)}
.list-empty{
  color:#6b7280;
  background:#f8fbff;
  border:1px dashed #dbe6f2;
  padding:12px 14px !important;
}
.trend-open-form{margin:0}
.trend-link{
  display:block;
  width:100%;
  text-align:left;
  border:0;
  background:transparent;
  font:inherit;
  color:inherit;
  padding:2px 0;
  cursor:pointer;
  white-space:normal;
  word-break:break-word;
  line-height:1.35;
}
.trend-link:hover{color:#155f3e}

.trend-hero{
  background:
    radial-gradient(1200px 380px at 0% 0%, rgba(73, 221, 148, .18), transparent 60%),
    linear-gradient(155deg, #132146 0%, #0d1733 100%);
  color:#e8fff1;
  border:1px solid rgba(130, 255, 194, .2);
}
.trend-hero-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}
.trend-hero-tag{
  display:inline-flex;
  align-items:center;
  padding:6px 12px;
  border-radius:999px;
  border:1px solid rgba(187, 255, 218, .35);
  background:rgba(31, 90, 58, .45);
  color:#d5ffe8;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.6px;
  font-weight:700;
}
.trend-hero-back{
  color:#d8fbe6;
  text-decoration:none;
  font-weight:700;
  font-size:14px;
}
.trend-hero-back:hover{text-decoration:underline}
.trend-hero-title{
  margin:14px 0 8px;
  color:#ffffff;
  font-size:38px;
  line-height:1.15;
}
.trend-hero-subtitle{
  margin:0;
  color:#b9e7cf;
  max-width:760px;
}

.trend-layout{
  display:grid;
  grid-template-columns:1fr;
  gap:var(--gap);
}
.trend-section{
  padding:24px 24px 22px;
  border:1px solid rgba(15, 23, 42, .08);
}
.trend-section h2{
  margin:0 0 14px;
  font-size:24px;
  color:#10203c;
}
.trend-description-grid{
  display:grid;
  grid-template-columns:1.25fr 1fr;
  gap:20px;
  align-items:start;
}
.trend-description-lead{
  margin:0;
  color:#334155;
  font-size:17px;
  line-height:1.65;
}
.trend-points{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:10px;
}
.trend-points li{
  border:1px solid #e6edf5;
  border-radius:12px;
  background:#f8fbff;
  padding:10px 12px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
}
.trend-points span{
  color:#586476;
  font-size:14px;
}
.trend-points strong{
  color:#0f1f38;
  text-align:right;
  font-weight:700;
}

.users-bars{
  min-height:290px;
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(84px, 1fr));
  gap:12px;
  align-items:end;
  padding:18px 14px 8px;
  border:1px solid #e5edf7;
  border-radius:14px;
  background:
    linear-gradient(180deg, rgba(14, 97, 55, .05) 0%, rgba(14, 97, 55, 0) 42%),
    #fbfdff;
}
.users-bar-col{
  display:grid;
  gap:8px;
  justify-items:center;
}
.users-bar-value{
  font-size:12px;
  color:#41556f;
  font-weight:700;
}
.users-bar-track{
  width:100%;
  max-width:64px;
  height:180px;
  border-radius:12px;
  background:linear-gradient(180deg, #e8eef6 0%, #f3f7fb 100%);
  overflow:hidden;
  display:flex;
  align-items:flex-end;
  box-shadow:inset 0 0 0 1px rgba(19, 40, 66, .08);
}
.users-bar-fill{
  width:100%;
  border-radius:12px;
  background:linear-gradient(180deg, #21a866 0%, #137147 100%);
  box-shadow:0 8px 14px rgba(17, 112, 70, .26);
}
.users-bar-year{
  font-size:13px;
  color:#22354f;
  font-weight:700;
}
.users-bar-yoy{
  font-size:12px;
  color:#4c647f;
  font-weight:700;
}
.trend-empty{
  margin:0;
  color:#64748b;
}
.users-table-wrap{margin-top:16px}

.trend-table-wrap{
  overflow:auto;
  border:1px solid #dfe8f3;
  border-radius:14px;
}
.trend-table{
  width:100%;
  border-collapse:collapse;
  min-width:760px;
}
.users-data-table{min-width:860px}
.trend-table th{
  padding:12px 14px;
  text-align:left;
  background:#eef4fb;
  color:#1d304a;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.4px;
}
.trend-table td{
  padding:12px 14px;
  border-top:1px solid #ebf1f8;
  color:#24364f;
  vertical-align:top;
}
.trend-table tr:hover td{background:#fbfdff}
.trend-table a{color:#17643f;text-decoration:none;font-weight:700;word-break:break-all}
.trend-table a:hover{text-decoration:underline}
.trend-muted{color:#718096}

.trend-research-list{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:10px;
}
.trend-research-list li{
  border:1px solid #e5ebf3;
  border-radius:12px;
  padding:12px 14px;
  background:#fcfdff;
  display:grid;
  gap:6px;
  scroll-margin-top:90px;
}
.trend-research-list a{
  color:#0f5132;
  text-decoration:none;
  font-weight:700;
}
.trend-research-list a:hover{text-decoration:underline}
.trend-research-list span{color:#6b7280;font-size:13px}

.news-panel{padding:20px}
.news-panel-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}
.news-panel-head h2{margin:0;color:#11233f}
.news-panel-count{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:4px 10px;
  background:#eaf9f0;
  color:#17643f;
  font-size:12px;
  font-weight:700;
}
.news-panel-subtitle{
  margin:10px 0 0;
  color:#607087;
  font-size:14px;
}
.news-tabs{
  margin:14px 0 0;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.news-tab{
  border:1px solid #d7e3f0;
  background:#f8fbff;
  color:#37506d;
  border-radius:999px;
  padding:8px 14px;
  font:inherit;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  transition:all .18s ease;
}
.news-tab:hover{
  border-color:#bcd2e7;
  color:#17395c;
}
.news-tab.is-active{
  background:#0f5132;
  border-color:#0f5132;
  color:#ffffff;
}
.news-tab-panels{margin-top:2px}
.news-list{
  margin:14px 0 0;
  padding:0;
  list-style:none;
  display:grid;
  gap:12px;
}
.news-list.news-tab-panel{display:none}
.news-list.news-tab-panel.is-active{display:grid}
.news-list.news-tab-panel[hidden]{display:none}
.news-item{
  border:1px solid #e5edf7;
  border-radius:12px;
  padding:12px 14px;
  background:#fcfdff;
  display:grid;
  gap:8px;
}
.news-item-hot{
  border-color:#ffe3b3;
  background:linear-gradient(180deg, rgba(255, 241, 213, .7), #fff 55%);
}
.news-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
}
.news-date{
  color:#334155;
  font-size:12px;
  font-weight:700;
}
.news-hot{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:2px 7px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.2px;
  color:#7a2e00;
  background:#ffd9a0;
}
.news-source{
  color:#4b5c73;
  font-size:12px;
}
.news-title{
  font-weight:800;
  color:#122a49;
}
.news-desc{
  color:var(--muted);
  font-size:14px;
}
.news-link{
  color:#17643f;
  text-decoration:none;
  font-size:13px;
  word-break:break-all;
}
.news-link:hover{text-decoration:underline}
.news-item-placeholder{
  color:#6b7280;
  border-style:dashed;
}

.loader{
  position:fixed;inset:0;background:rgba(15,20,48,.35);
  display:flex;align-items:center;justify-content:center;
  backdrop-filter:blur(2px);
}
.hidden{display:none}
.spinner{
  width:50px;height:50px;border-radius:999px;border:5px solid #cfeeDB;border-top-color:#2ecc71;
  animation:spin 1s linear infinite;background:white;box-shadow:0 0 0 6px var(--accent-weak);margin-right:16px;
}
.loader-text{color:#ecfff1;font-weight:600}
@keyframes spin{to{transform:rotate(360deg)}}

/* Laptop */
@media (max-width: 1280px){
  .container{max-width:1080px;margin:48px auto}
  .panel{padding:32px 24px}
  .title{font-size:46px}
  .grid{grid-template-columns:1fr 1.2fr 1fr}
}

/* Tablet */
@media (max-width: 1024px){
  .container{max-width:960px;margin:36px auto;padding:0 14px}
  .hero{min-height:300px;gap:18px}
  .title{font-size:38px}
  .hero-subtitle{font-size:16px}
  .results-header{grid-template-columns:1fr;gap:14px}
  .results-title{font-size:30px}
  .results-kpi li{min-width:160px}
  .search,.search.small{max-width:100%}
  .search-box{padding:10px 12px}
  .btn{padding:10px 14px;font-size:14px}
  .grid{grid-template-columns:1fr 1fr;gap:16px}
  .main{grid-column:1 / -1}
  .trend-description-grid{grid-template-columns:1fr}
}

/* Mobile */
@media (max-width: 640px){
  .container{margin:20px auto;padding:0 10px}
  .panel{padding:20px 14px;border-radius:16px}
  .hero{min-height:auto;gap:14px}
  .hero-badge{font-size:11px;padding:5px 10px}
  .title{font-size:30px;line-height:1.15}
  .hero-subtitle{font-size:15px}
  .hint{font-size:14px}
  .suggestions{gap:8px}
  .suggestions li{font-size:13px;padding:7px 10px}
  .search-box{
    flex-wrap:wrap;
    border-radius:18px;
    gap:10px;
    padding:10px;
  }
  .search-box .icon{display:none}
  .search-box input{font-size:16px;min-width:100%}
  .search-box .btn{width:100%;white-space:normal}
  .results-header{margin-bottom:12px;padding:10px}
  .results-status{margin-bottom:12px;padding:12px}
  .brand{font-size:20px}
  .results-title{font-size:24px}
  .results-subtitle{font-size:14px}
  .results-kpi{display:grid;grid-template-columns:1fr}
  .results-kpi li{min-width:0}
  .grid{grid-template-columns:1fr;gap:12px}
  .main{grid-column:auto}
  .card{padding:14px}
  .card h3{font-size:18px}
  .news-panel{padding:14px}
  .news-title{font-size:15px}
  .trend-hero-title{font-size:30px}
  .trend-section{padding:16px 14px}
  .trend-section h2{font-size:20px}
  .users-bars{
    min-height:230px;
    grid-template-columns:repeat(auto-fit, minmax(68px, 1fr));
    gap:8px;
    padding:12px 8px 6px;
  }
  .users-bar-track{height:140px;max-width:54px}
  .trend-table{min-width:640px}
  .loader{padding:0 16px;text-align:center}
  .spinner{margin-right:10px}
}

/* Small mobile */
@media (max-width: 380px){
  .title{font-size:26px}
  .hero-subtitle{font-size:14px}
  .brand{font-size:20px}
}
