:root{
  --bg:#f7f7f7;
  --card:#fff;
  --accent:#1f1f1f;
  --muted:#666;
  --radius:12px;
}

html, body {
  height: 100%;
  margin: 0;
}

.page-wrap {
  min-height: calc(100% - 180px); /* ارتفاع محتوا - ارتفاع فوتر */
  display: flex;
  flex-direction: column;
}

.footer {
  margin-top: auto;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background:var(--bg);
  color:var(--accent);
  direction:rtl;
  text-align:right;
}

/* HEADER */
/* ساختار کلی هدر */
.site-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px;
  background:#ffffffd9;
  backdrop-filter:blur(6px);
}

/* لوگو */
.logo-box {
  width:55px;
  height:55px;
  flex-shrink:0;
}

.logo-box img {
  width:100%;
  height:100%;
  object-fit:contain;
}

/* متن کنار لوگو */
.brand h1 {
  margin:0;
  font-size:20px;
}
.brand .tag {
  margin:4px 0 0;
  font-size:13px;
  color:#666;
}

/* ویدیو */
.anim-wrap{
  width:120px;
  height:70px;
  border-radius:10px;
  overflow:hidden;
}

.hero-video{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* ---------- ریسپانسیو موبایل ---------- */
@media(max-width:600px){

  .site-header{
    flex-direction:column;  /* مهم‌ترین بخش */
    align-items:center;
    text-align:center;
  }

  .logo-box{
    width:70px;
    height:70px;
  }

  .anim-wrap{
    width:100%;
    height:150px;
  }

  .brand h1{
    font-size:18px;
  }
}
/* TABS */
.tabs{
  display:flex;
  gap:8px;
  padding:12px;
  overflow:auto;
  justify-content:flex-start;
}

.tab-btn{
  background:var(--card);
  border:1px solid #e6e6e6;
  padding:10px 14px;
  border-radius:10px;
  cursor:pointer;
  font-size:14px;
  transition:all .18s;
}

.tab-btn.active{
  background:var(--accent);
  color:#fff;
  transform:translateY(-3px);
  box-shadow:0 6px 18px rgba(0,0,0,0.08);
}

/* ITEMS */
.content{padding:16px}

.items{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:14px;
}

.card{
  background:var(--card);
  border-radius:var(--radius);
  padding:12px;
  box-shadow:0 6px 18px rgba(18,18,18,0.04);
}

.card h3{margin:0 0 6px;font-size:16px}
.card p{margin:0;color:var(--muted);font-size:13px}

.footer{
  margin-top: 40px;
  background:#121212;
  color:#fff;
  padding: 30px 20px;
  text-align:center;
}

.footer h3{
  margin:0;
  font-size:20px;
  font-weight:600;
}

.footer p{
  margin:6px 0;
  font-size:14px;
  opacity:0.9;
}

.footer-bottom{
  margin-top:18px;
  font-size:12px;
  opacity:0.7;
}

/* MOBILE */
@media (max-width:600px){
  .site-header{flex-direction:column;align-items:flex-start}
  .anim-wrap{width:100%;height:140px}
  .brand h1{font-size:18px}
}