:root{
  --bg:#0f0f10;
  --card:#1a1b1e;
  --muted:#9aa1a9;
  --accent:#d00000;
  --accent-2:#00bfa6;
  --text:#f2f3f5;
  --shadow:0 10px 30px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: "Segoe UI",system-ui,-apple-system,Arial,Helvetica,sans-serif;
  background: radial-gradient(1200px 600px at 20% -10%, #1d1e22 10%, transparent 60%),
              radial-gradient(1200px 600px at 120% 10%, #17181b 10%, transparent 50%),
              var(--bg);
  color:var(--text);
  line-height:1.5;
}

/* ── HERO: tekstas centre, logo dešinėje ─────────────────────────────── */
.hero{
  background: linear-gradient(135deg, var(--accent), #8b0000);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.hero-inner{
  max-width:1100px;
  margin:0 auto;
  display:grid;
  grid-template-columns: 1fr auto auto;
  align-items:center;
  column-gap:24px;
  min-height:72px;
}
.spacer{height:1px;}
.hero-text{text-align:center}
.hero-text h1{margin:0;font-size:28px;line-height:1.15}
.hero-text p{margin:2px 0 6px;font-size:14px;opacity:.95}
.logo{width:88px;height:auto;justify-self:end;filter:drop-shadow(0 4px 10px rgba(0,0,0,.35))}

/* ── Mygtukai ─────────────────────────────────────────────────────────── */
.btn{
  display:inline-block;
  padding:10px 16px;
  border-radius:10px;
  font-weight:600; font-size:14px;
  text-decoration:none;
  transition:.2s transform,.2s filter,.2s background-color,.2s border-color;
}
.btn.full{width:100%;text-align:center}
.btn-primary{ background:var(--accent-2); color:#fff; border:1px solid transparent; }
.btn-primary:hover{ transform:translateY(-1px); filter:brightness(.95); }
.btn-outline{ background:transparent; color:#fff; border:1px solid #3a3f48; }
.btn-outline:hover{ background:#22252b; }

/* ── Kortelės ir bendras turinys ─────────────────────────────────────── */
main{max-width:1100px;margin:18px auto 40px;padding:0 16px}
.card{
  background:var(--card);
  padding:18px;
  border-radius:12px;
  box-shadow: var(--shadow);
  margin:14px 0;
}
h2{margin:0 0 12px;color:#ff4c4c;font-weight:700}

/* viršutinė eilė: statistika + šoninė kortelė */
.top-row{
  display:grid;
  grid-template-columns: 1.9fr 1fr;   /* statistikos plotis : nuorodų plotis */
  gap:18px;
}

/* statistikos blokas */
.stats-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap:12px;
}
.stat{
  background:#121316;
  border:1px solid #24262b;
  border-radius:10px;
  padding:14px;
}
.stat-label{display:block;color:var(--muted);font-size:12px;margin-bottom:6px}
.stat-value{font-size:24px;font-weight:700}

/* nuorodų kortelė */
.actions-card .btn + .btn{ margin-top:10px }

/* Top 10 – tvarkingos eilutės */
.top-list{display:flex;flex-direction:column;gap:8px}
.top-item{
  display:grid;
  grid-template-columns: 40px 1fr auto;
  align-items:center;
  gap:10px;
  background:#121316;
  border:1px solid #24262b;
  border-radius:10px;
  padding:8px 12px;
}
.top-item .rank{
  width:30px;height:30px;display:grid;place-items:center;
  border-radius:8px;background:#272a31;border:1px solid #3a3f48;
  font-weight:700;font-size:14px;
}
.top-item .name{font-weight:600}
.top-item .hours{opacity:.9}
.top-item.muted{opacity:.7;text-align:center;justify-content:center}

.gallery img{
  max-width:100%;
  border-radius:10px;
  border:1px solid #2a2d33;
  box-shadow: var(--shadow);
}

button{
  background:var(--accent-2);
  color:#fff;border:none;border-radius:10px;
  padding:10px 16px;font-size:15px;font-weight:600;
  cursor:pointer;transition:.2s transform,.2s filter;
}
button:hover{transform:translateY(-1px);filter:brightness(.95)}

footer{
  text-align:center;color:var(--muted);
  padding:20px 16px 28px;
}

/* Mažiems ekranams – viskas stulpeliu */
@media (max-width:900px){
  .top-row{ grid-template-columns: 1fr; }
}
@media (max-width:640px){
  .hero-inner{ grid-template-columns: 1fr auto; }
  .spacer{ display:none; }
  .logo{ width:72px; }
  .hero-text h1{ font-size:24px; }
}

.gallery-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap:10px;
}
.gallery-grid img{
  width:100%; height:160px;
  object-fit:cover;
  border-radius:10px;
  border:1px solid #2a2d33;
  box-shadow: var(--shadow);
  transition: transform .15s ease;
}
.gallery-grid img:hover{ transform: scale(1.02); }
