/* app_section.css — ana səhifədəki "Tətbiqi yüklə" bölməsi.
   Rəngləri dəyişmək üçün yalnız aşağıdakı dəyişənləri redaktə edin. */
.app-promo {
  --ap-bg-1: #0a1f33;      /* tünd lacivərd (hero ilə eyni) */
  --ap-bg-2: #0b3b8c;      /* brend mavisinin tünd tonu */
  --ap-accent: #0d6efd;    /* saytın əsas mavisi */
  --ap-text: #ffffff;
  --ap-text-soft: rgba(255, 255, 255, 0.78);

  /* Tam enli zolaq, footer-in birbaşa üstündə (altında boşluq YOXDUR) */
  position: relative;
  overflow: hidden;
  margin: 48px 0 0;
  color: var(--ap-text);
  background:
    radial-gradient(620px 320px at 80% 100%, rgba(13, 110, 253, 0.5), transparent 70%),
    linear-gradient(120deg, var(--ap-bg-1) 0%, var(--ap-bg-2) 100%);
}

.app-promo-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 40px;
  min-height: 340px;
  box-sizing: border-box;
}

/* ---------- Mətn ---------- */
.app-promo-text {
  padding: 44px 0;
  max-width: 480px;
}

.app-promo-title {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ap-text);
  text-align: left;
}

.app-promo-desc {
  margin: 0 0 26px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ap-text-soft);
}

.app-promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Mağaza düymələri ---------- */
.app-store-btn,
.app-store-soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 20px 0 16px;
  border-radius: 10px;
  box-sizing: border-box;
  text-decoration: none;
}

.app-store-btn {
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.app-store-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  border-color: #fff;
}

.app-store-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.app-store-soon {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
  border: 1px dashed rgba(255, 255, 255, 0.35);
  cursor: default;
}

.app-store-ico {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.app-store-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.app-store-txt small {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.app-store-txt strong {
  font-size: 18px;
  font-weight: 600;
}

/* ---------- QR ---------- */
.app-promo-qr {
  background: #fff;
  color: #0a1f33;
  border-radius: 14px;
  padding: 14px 14px 12px;
  text-align: center;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}

.app-promo-qr img {
  display: block;
  width: 132px;
  height: 132px;
  margin: 0 auto 8px;
}

.app-promo-qr p {
  margin: 0;
  max-width: 132px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

/* ---------- Telefonlar (vahid şəkil, aşağısı kəsik) ---------- */
.app-promo-phone {
  align-self: end;
  width: 430px;
  margin-top: 36px;
  line-height: 0;       /* şəklin altında boşluq qalmasın: footer-ə tam oturur */
}

.app-promo-phone img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Planşet və mobil ---------- */
@media (max-width: 960px) {
  .app-promo-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
  }

  .app-promo-phone { width: 340px; }

  /* QR yalnız kompüterdə: telefonda özünü skan etmək mənasızdır */
  .app-promo-qr { display: none; }
}

@media (max-width: 640px) {
  .app-promo { margin-top: 32px; }

  .app-promo-inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 20px;
    min-height: 0;
  }

  .app-promo-text {
    max-width: none;
    padding: 30px 0 24px;
  }

  .app-promo-actions { gap: 10px; }

  .app-store-btn,
  .app-store-soon {
    flex: 1 1 0;
    justify-content: center;
    gap: 8px;
    padding: 0 10px;
  }

  .app-store-ico { width: 22px; height: 22px; }
  .app-store-txt strong { font-size: 15.5px; white-space: nowrap; }
  .app-store-txt small { white-space: nowrap; }

  .app-promo-phone {
    justify-self: center;
    width: min(360px, 100%);
    margin-top: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-store-btn { transition: none; }
}