/* INKERI CMS | Author: Albert | Date: 2026-01-20
 * FILE: /public_html/furnitura/embed/furnitura.css
 * UI: 1 строка контролов + инфо-блок + 2 графика сверху + аккордеон годов
 * + модалка "Kaip skaityti" (кнопка, не синяя ссылка)
 */

.fu-wrap{ max-width:1100px; margin:16px auto; padding:0 14px; box-sizing:border-box; }
.fu-title{ font-size:22px; font-weight:900; margin:10px 0 10px; color:#1f2a1f; }

/* ===== controls (ONE ROW) ===== */
.fu-controls{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:8px 0 12px;
  padding:12px 12px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:16px;
  background:#fff;
  box-shadow:0 12px 26px rgba(0,0,0,.08);
  align-items:center;
}
.fu-btn{
  border:0;
  cursor:pointer;
  padding:10px 12px;
  border-radius:14px;
  font-weight:800; /* FIX: не болд */
  background:#eef2f6;
  color:#1f2a1f;
  box-shadow:0 6px 14px rgba(0,0,0,.08);
  transition:transform .12s ease, box-shadow .12s ease, background .12s ease;
  white-space:nowrap;
}
.fu-btn:hover{ transform:translateY(-1px); box-shadow:0 10px 20px rgba(0,0,0,.10); }
.fu-btn--green{
  background:#eaffea;
  border:1px solid rgba(140,193,82,.35);
  box-shadow:0 10px 22px rgba(140,193,82,.18);
}
.fu-ico{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:22px; height:22px;
  border-radius:999px;
  background:#111;
  color:#fff;
  font-size:13px;
  font-weight:800; /* FIX */
  margin-right:8px;
}
.fu-sep{ flex:1 1 40px; }
.fu-sep--sm{ flex:0 0 10px; }

/* ===== intro ===== */
.fu-intro{
  margin:10px 0 12px;
  padding:14px 14px;
  border-radius:16px;
  border:1px solid rgba(0,0,0,.08);
  background:linear-gradient(180deg, #ffffff, #f7fbf2);
  box-shadow:0 10px 22px rgba(0,0,0,.06);
  color:#1f2a1f;
}
.fu-intro-title{ font-weight:900; font-size:16px; margin:0 0 6px; }
.fu-intro-text{ font-weight:800; opacity:.88; font-size:14.5px; line-height:1.45; }

/* ===== info block (Rinkos vidurkis) ===== */
.fu-info{
  margin:10px 0 14px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
  box-shadow:0 10px 22px rgba(0,0,0,.06);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.fu-info-title{ font-weight:900; font-size:14px; margin-bottom:2px; }
.fu-info-text{ font-weight:800; opacity:.82; font-size:13px; line-height:1.35; }

/* ===== charts ===== */
.fu-charts{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  margin:0 0 14px;
}
.fu-chart-card{
  border:1px solid rgba(0,0,0,.08);
  border-radius:18px;
  background:#fff;
  box-shadow:0 14px 34px rgba(0,0,0,.08);
  padding:12px 12px;
}
.fu-chart-head{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:4px; }
.fu-chart-title{ font-size:15px; font-weight:900; color:#1f2a1f; }
.fu-chart-sub{ font-size:12.5px; font-weight:800; opacity:.72; margin-bottom:10px; }
.fu-chart-wrap{ width:100%; overflow:hidden; border-radius:14px; background:#fbfcfe; border:1px solid rgba(0,0,0,.06); }
.fu-svg{ width:100%; height:auto; display:block; }

.fu-legend{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
}
.fu-leg{ display:flex; align-items:center; gap:8px; font-weight:900; font-size:12px; opacity:.82; }
.fu-leg-dot{ width:12px; height:12px; border-radius:999px; box-shadow:0 6px 12px rgba(0,0,0,.12); }

/* ===== years (accordion) ===== */
.fu-year{ margin:14px 0; border-radius:18px; overflow:hidden; box-shadow:0 10px 26px rgba(0,0,0,.10); border:1px solid rgba(0,0,0,.08); }
.fu-year-h{
  background:#8cc152; color:#fff;
  padding:12px 14px;
  font-weight:900;
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  line-height:1.2;
  cursor:pointer;
  position:relative;
}
.fu-year-meta{ opacity:.95; font-weight:800; font-size:14px; text-align:right; }
.fu-etal{
  display:inline-block;
  margin-left:6px;
  padding:2px 8px;
  border-radius:999px;
  background:rgba(255,210,0,.95);
  color:#1f2a1f;
  font-weight:900;
  white-space:nowrap;
}
.fu-year-toggle{
  border:0;
  background:rgba(255,255,255,.22);
  width:34px; height:28px;
  border-radius:12px;
  cursor:pointer;
  position:relative;
  flex:0 0 auto;
}
.fu-year-toggle:before{
  content:'';
  position:absolute;
  left:50%; top:50%;
  width:10px; height:10px;
  border-right:3px solid rgba(255,255,255,.95);
  border-bottom:3px solid rgba(255,255,255,.95);
  transform:translate(-50%,-60%) rotate(45deg);
}
.fu-year.is-open .fu-year-toggle:before{
  transform:translate(-50%,-40%) rotate(-135deg);
}
.fu-year-b{ background:#fff; padding:12px 14px; }

.fu-table{ width:100%; border-collapse:collapse; table-layout:fixed; }
.fu-table th,.fu-table td{ border-top:1px solid rgba(0,0,0,.08); padding:10px 10px; vertical-align:top; word-break:break-word; }
.fu-table th{ font-weight:900; background:#eef2f6; color:#2b2b2b; }
.fu-table td{ color:#1f2a1f; }

.fu-table th:nth-child(2), .fu-table td:nth-child(2){
  width:140px;
  text-align:center;
  vertical-align:middle;
}

.fu-row{ display:flex; gap:10px; align-items:flex-start; }
.fu-logo{
  width:46px; height:46px;
  border-radius:12px;
  background:#fff;
  object-fit:contain;
  flex:0 0 auto;
  border:1px solid rgba(0,0,0,.10);
  box-shadow:0 6px 14px rgba(0,0,0,.08);
}

/* clickable brand */
.fu-name{ font-weight:900; font-size:16px; line-height:1.15; }
.fu-brand{
  cursor:pointer;
  display:inline-block;
  padding:2px 6px;
  margin-left:-6px;
  border-radius:10px;
}
.fu-brand:hover{ background:rgba(0,0,0,.06); }

.fu-badge{
  display:inline-block;
  margin-left:8px;
  padding:3px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  vertical-align:middle;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
}
.fu-badge-good{ background:#eaffea; color:#1f6b22; }
.fu-badge-bad{ background:#ffe9e9; color:#b01010; }

.fu-comment{ margin-top:6px; font-size:15px; line-height:1.45; color:#223122; }

/* ===== mini graph (brand row) ===== */
.fu-mini{
  margin-top:6px;
  border:1px solid rgba(0,0,0,.10);
  border-radius:14px;
  padding:10px 10px;
  background:#fff;
  box-shadow:0 10px 22px rgba(0,0,0,.06);
}
.fu-mini-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}
.fu-mini-title{ font-weight:900; font-size:13px; opacity:.9; }
.fu-mini-close{
  border:0;
  cursor:pointer;
  padding:6px 10px;
  border-radius:999px;
  font-weight:900;
  background:#111;
  color:#fff;
}
.fu-mini-graph{
  height:56px;
  display:flex;
  gap:6px;
  align-items:flex-end;
}
.fu-mini-bar{
  flex:1;
  background:#eef2f6;
  border-radius:10px;
  position:relative;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.08);
}
.fu-mini-bar span{
  position:absolute;
  left:0; right:0; bottom:0;
  height:10%;
  background:#8cc152;
}
.fu-mini-year{
  text-align:center;
  font-size:11px;
  font-weight:900;
  opacity:.7;
  margin-top:6px;
  display:flex;
  gap:6px;
}
.fu-mini-year div{ flex:1; }

/* ===== mobile comment toggle ===== */
.fu-cmt-btn{
  display:none;
  border:0;
  cursor:pointer;
  padding:8px 10px;
  border-radius:12px;
  font-weight:900;
  background:#111;
  color:#fff;
}
.fu-cmt-box{ margin-top:8px; }

@media (max-width:720px){
  .fu-title{ font-size:18px; }
  .fu-controls{ margin-bottom:10px; padding:10px; }
  .fu-btn{ padding:9px 10px; border-radius:13px; font-weight:800; }
  .fu-intro{ padding:12px 12px; }
  .fu-info{ padding:10px 12px; }
  .fu-year-b{ padding:10px 10px; }
  .fu-year-h{ padding:11px 12px; font-size:15px; }
  .fu-year-meta{ font-size:13px; }

  .fu-table th,.fu-table td{ padding:10px 10px; }
  .fu-table th:nth-child(2), .fu-table td:nth-child(2){ width:96px; }

  .fu-logo{ width:36px; height:36px; border-radius:10px; }
  .fu-name{ font-size:15px; }

  .fu-cmt-btn{ display:inline-block; }
  .fu-cmt-box{ display:none; }
  .fu-comment.is-open .fu-cmt-box{ display:block; }

  .fu-mini-graph{ height:46px; gap:5px; }
}

/* ===== PI ===== */
.fu-pi-wrap{ display:flex; flex-direction:column; align-items:center; gap:6px; }
.fu-pi-sub{ font-weight:900; font-size:12px; opacity:.88; }

.fu-pi{
  --size:64px;
  --stroke:9;
  --track:rgba(0,0,0,.14);
  width:var(--size);
  height:var(--size);
  display:inline-block;
  position:relative;
  border-radius:999px;
  background:rgba(255,255,255,.65);
  box-shadow:0 10px 22px rgba(0,0,0,.10);
  transform:translateZ(0);
}
.fu-pi svg{ width:100%; height:100%; display:block; transform:rotate(-90deg); }
.fu-pi .fu-pi-track{ stroke:var(--track); stroke-width:var(--stroke); fill:none; }
.fu-pi .fu-pi-prog{
  stroke:#10c418;
  stroke-width:var(--stroke);
  fill:none;
  stroke-linecap:round;
  stroke-dasharray:0 999;
  stroke-dashoffset:0;
  filter:drop-shadow(0 0 6px rgba(0,0,0,.12));
}
.fu-pi .fu-pi-text{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  font-weight:900; font-size:16px;
}
.fu-pi .fu-pi-text span{
  display:inline-block;
  padding:2px 7px;
  border-radius:999px;
  background:rgba(0,0,0,.82);
  color:#fff;
  box-shadow:0 10px 18px rgba(0,0,0,.18);
}
.fu-pi.is-ready{ animation:fuPiPop .35s ease both; }
@keyframes fuPiPop{ from{ transform:scale(.92); opacity:.75; } to{ transform:scale(1); opacity:1; } }

@media (max-width:720px){
  .fu-pi{ --size:54px; --stroke:8; }
  .fu-pi .fu-pi-text{ font-size:14px; }
  .fu-pi-sub{ font-size:11px; }
}
@media (max-width:420px){
  .fu-pi{ --size:48px; --stroke:7; }
  .fu-pi .fu-pi-text{ font-size:13px; }
}

/* tooltip */
.fu-tip{
  position:fixed;
  z-index:99999;
  width:280px;
  max-width:calc(100vw - 20px);
  padding:10px 12px;
  border-radius:14px;
  background:rgba(0,0,0,.86);
  color:#fff;
  font-weight:800;
  font-size:13px;
  line-height:1.35;
  box-shadow:0 18px 40px rgba(0,0,0,.30);
}

/* how modal */
#fu-how-modal{ display:none; }
#fu-how-modal.is-open{ display:block; }
.fu-how-backdrop{
  position:fixed; inset:0;
  background:rgba(0,0,0,.55);
  z-index:99998;
}
.fu-how-box{
  position:fixed;
  z-index:99999;
  top:50%; left:50%;
  transform:translate(-50%,-50%);
  width:min(460px, 92vw);
  background:#fff;
  border-radius:18px;
  padding:18px 18px 14px;
  box-shadow:0 30px 80px rgba(0,0,0,.35);
}
.fu-how-box h3{ margin:0 0 10px; font-size:18px; font-weight:600; } /* ТОНКИЙ */
.fu-how-box p{ margin:8px 0; font-size:14px; line-height:1.35; font-weight:400; opacity:.95; } /* ТОНКИЙ */
.fu-how-box b, .fu-how-box strong{ font-weight:400 !important; } /* УБРАТЬ BOLD ВНУТРИ */
.fu-how-h{ margin:10px 0 6px; font-size:14px; font-weight:600; opacity:.92; }
.fu-how-dots{ display:flex; flex-wrap:wrap; gap:10px; margin:6px 0 10px; }
.fu-dot{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:13.5px;
  font-weight:500;
  opacity:.95;
}
.fu-dot i{
  width:12px; height:12px;
  border-radius:999px;
  box-shadow:0 6px 12px rgba(0,0,0,.18);
  border:1px solid rgba(0,0,0,.12);
  display:inline-block;
}

.fu-how-close{
  border:0;
  cursor:pointer;
  margin-top:12px;
  width:100%;
  padding:10px 12px;
  border-radius:14px;
  font-weight:600; /* ТОНКИЙ */
  background:#111;
  color:#fff;
}
/* SEO text */
.fu-seo{
  margin:18px 0 8px;
  padding:14px 14px;
  border-radius:16px;
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
  box-shadow:0 10px 22px rgba(0,0,0,.06);
  color:#1f2a1f;
}
.fu-seo h2{ margin:0 0 8px; font-size:18px; font-weight:900; }
.fu-seo p{ margin:6px 0; font-size:15px; line-height:1.5; opacity:.92; }
@media (max-width:720px){
  .fu-seo h2{ font-size:16px; }
  .fu-seo p{ font-size:14px; }
}
