:root{
  --top-bg: #f4f7f9;
  --adib-blue: #004b98;
  --adib-gold: #b4975a;
  --card-border: #e8edf2;
  --title-color: #004b98;
  --text-color: #5a6e82;
}

*{ box-sizing: border-box; }

html, body{ height: 100%; }

body{
  margin: 0;
  font-family: Tahoma, Arial, sans-serif;
  background: linear-gradient(170deg, #fffef8 0%, #f0f6fc 50%, #e8f0fa 100%);
  color: #111;
  display: flex;
  flex-direction: column;
  padding-bottom: 60px;
}

/** مقدمة الصفحة */
.page-head{
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px 12px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,75,152,0.06);
}

.page-head__icon{
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.page-head__copy{ min-width: 0; }

.page-head__title{
  margin: 0 0 6px;
  font-size: clamp(1.1rem, 3.5vw, 1.4rem);
  font-weight: 800;
  color: var(--adib-blue);
  line-height: 1.3;
}

.page-head__lead{
  margin: 0;
  font-size: clamp(0.78rem, 2.4vw, 0.92rem);
  line-height: 1.55;
  color: #6b7d8e;
}

.top-header{
  background: transparent;
  padding: 18px 0 10px;
}

.top-header__inner{
  display: flex;
  justify-content: center;
}

.top-logo{
  width: 150px;
  height: auto;
}

.top-header__separator{
  height: 3px;
  background: linear-gradient(to right, var(--adib-gold), #d4bc8d, #f9e1a8);
  margin-top: 10px;
  border-radius: 2px;
}

.page{
  flex: 1;
  width: 100%;
  padding: 18px 12px 10px;
}

.hero{
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.hero-banner{
  width: min(760px, 94vw);
  border: none;
  border-radius: 22px;
  padding: 22px 24px;
  background: linear-gradient(135deg, var(--adib-blue) 0%, #003a78 100%);
  box-shadow: 0 8px 28px rgba(0,75,152,0.15);
}

.hero-banner__text{
  text-align: center;
  color: #fff;
}

.hero-banner__line{
  font-size: clamp(16px, 2.6vw, 26px);
  font-weight: 700;
  line-height: 1.35;
}

.cards{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 0 8px 20px;
}

.card-link{
  width: min(700px, 94vw);
  text-decoration: none;
  color: inherit;
  display: block;
}

.card{
  width: 100%;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0,75,152,0.06);
  padding: 20px 18px 22px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: cardEnter 0.55s ease both;
}

.card-link:nth-child(2) .card{ animation-delay: 0.1s; }
.card-link:nth-child(3) .card{ animation-delay: 0.2s; }

.card-link:hover .card,
.card-link:focus-visible .card{
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 12px 32px rgba(0,75,152,0.12);
}

.card-link:focus-visible{ outline: none; }

.card-link:focus-visible .card{
  outline: 3px solid rgba(0,75,152,0.25);
  outline-offset: 3px;
}

.card__img{
  display: block;
  margin: 10px auto 8px;
  object-fit: contain;
}

.card__img--watch{ width: 150px; }
.card__img--card{ width: 260px; }
.card__img--devices{ width: 280px; }

.card__title{
  margin: 14px 0 10px;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 800;
  color: var(--title-color);
}

.card__desc{
  margin: 0 auto;
  font-size: clamp(14px, 2.2vw, 20px);
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.45;
}

.footer{
  background: linear-gradient(135deg, var(--adib-blue) 0%, #003a78 100%);
  padding: 18px 14px;
  text-align: center;
  position: relative;
}

.footer::before{
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--adib-gold), #d4bc8d);
}

.footer__text,
.footer-text{
  position: relative;
  color: #fff;
  font-size: clamp(13px, 2.2vw, 18px);
  line-height: 1.5;
  font-weight: 600;
}

@keyframes cardEnter{
  from{ opacity: 0; transform: translateY(20px); }
  to{ opacity: 1; transform: translateY(0); }
}

@media (max-width: 420px){
  .page-head{ padding: 12px 12px 8px; gap: 10px; }
  .page-head__icon{ width: 40px; height: 40px; }
  .top-logo{ width: 120px; }
  .card{ padding: 16px 14px 18px; }
  .card__img--card{ width: 220px; }
  .card__img--devices{ width: 240px; }
}
