/* ========== SAYT KONSTRUKTORI BLOKLARI (v1.42) ==========
   Nashr qilingan sahifalar (web/nashr/) uchun qo'shimcha uslublar. Bloklarning asosiy ko'rinishi avvalgidek
   style.css va sahifalar.css da; bu yerda faqat konstruktor bilan paydo bo'lgan narsalar. */

/* Menyu havolasi blokka olib borganda sarlavha yopishqoq header ostida qolmasin */
main > .section { scroll-margin-top: 72px; }

/* ---------- Matn bloki: rasm bilan ---------- */
.matn-blok { display: grid; gap: var(--space-8); align-items: center; }
.matn-blok__rasm img {
  width: 100%;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
@media (min-width: 900px) {
  .matn-blok { grid-template-columns: 1.1fr .9fr; gap: var(--space-12); }
  .matn-blok--chap .matn-blok__rasm { order: -1; }
}

/* ---------- Bosh blok: o'z rasmi (logotip o'rniga) ---------- */
.hero__visual img:not([width]) { border-radius: var(--radius-card); object-fit: cover; max-height: 440px; }

/* ---------- Bot formasi (assets/js/forma.js) ---------- */
.forma__nom { margin: 0; font-weight: 700; font-size: 1.125rem; }
.forma__tana { display: grid; gap: var(--space-4); }
.forma__kirish { margin: 0; color: var(--color-text-muted); }
.forma__qadam { margin: 0; color: var(--color-text-muted); font-size: .875rem; font-weight: 600; }
.forma__savol { margin: 0; font-weight: 700; font-size: 1.125rem; white-space: pre-line; }
.forma__kichik { margin: 0; color: var(--color-text-muted); font-size: .9375rem; }
.forma__variantlar { display: grid; gap: var(--space-2); }
.forma__variant { width: 100%; min-height: 48px; padding-block: var(--space-2); justify-content: flex-start; text-align: left; font-weight: 600; }
.forma__amallar { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.forma__amallar .btn { flex: 1 1 140px; }
.forma__havola {
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-text-muted);
  font: inherit;
  font-size: .9375rem;
  text-decoration: underline;
  cursor: pointer;
}
.forma__javoblar { display: grid; gap: var(--space-1); margin: 0; }
.forma__javoblar dt { margin-top: var(--space-3); color: var(--color-text-muted); font-size: .875rem; }
.forma__javoblar dd { margin: 0; font-weight: 600; white-space: pre-line; overflow-wrap: anywhere; }
.forma__maydon input[type="file"] { padding: var(--space-3); min-height: 0; }
.forma--telegram { justify-items: start; }

/* ---------- Faqat admin paneldagi ko'rinishda: blok saytda nima uchun ko'rinmasligi ---------- */
.blok-ogoh {
  margin: var(--space-4) 0 0;
  padding: var(--space-3) var(--space-4);
  border: 2px dashed #B45309;
  border-radius: var(--radius-btn);
  background: #FFF7E6;
  color: #7A3E00;
  font-size: .9375rem;
  font-weight: 600;
}
