/* ===================================================================
   HAZINIY — TASHQI SAYT USLUBI

   Ichki tizimdan ATAYLAB farq qiladi: u ish quroli (zich, tez), bu esa
   maktabning yuzi (keng, havodor, katta suratlar). Lekin rang sxemasi
   bir xil — brend yaxlit ko'rinishi uchun.

   Telefon uchun birinchi navbatda: ota-onalar asosan telefondan kiradi.
   =================================================================== */

:root {
  --w-primary: #14504A;        /* to'q yashil — asosiy */
  --w-primary-dark: #0D3833;
  --w-accent: #C9A227;         /* oltin — urg'u */
  --w-accent-light: #F5DFA8;
  --w-text: #1D2B2A;
  --w-text-muted: #5A6B69;
  --w-bg: #FFFFFF;
  --w-bg-soft: #F4F7F6;
  --w-border: #E2E8E7;
  --w-shadow: 0 4px 24px rgba(20, 80, 74, .08);
  --w-shadow-lg: 0 12px 40px rgba(20, 80, 74, .14);
  --w-radius: 16px;
}

* { box-sizing: border-box; }

body.w-body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--w-text);
  background: var(--w-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.w-container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Sarlavha (header) ---------- */
.w-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--w-border);
}
.w-header-inner {
  display: flex; align-items: center; gap: 20px;
  height: 72px;
}
.w-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--w-primary);
  font-weight: 800; font-size: 17px; letter-spacing: -.2px;
  flex-shrink: 0;
}
.w-logo img { height: 40px; width: auto; }
.w-logo-mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--w-primary); color: var(--w-accent-light);
  display: grid; place-items: center; font-size: 19px; font-weight: 800;
}

.w-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.w-nav a {
  padding: 9px 14px; border-radius: 10px; text-decoration: none;
  color: var(--w-text); font-size: 14.5px; font-weight: 500;
  transition: background .15s, color .15s; white-space: nowrap;
}
.w-nav a:hover { background: var(--w-bg-soft); color: var(--w-primary); }
.w-nav a.active { color: var(--w-primary); font-weight: 700; }

.w-btn {
  display: inline-block; padding: 11px 22px; border-radius: 11px;
  background: var(--w-primary); color: #fff !important; text-decoration: none;
  font-weight: 700; font-size: 14.5px; border: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
  text-align: center;
}
.w-btn:hover { background: var(--w-primary-dark); transform: translateY(-1px);
               box-shadow: var(--w-shadow); }
.w-btn-accent { background: var(--w-accent); color: var(--w-primary-dark) !important; }
.w-btn-accent:hover { background: #B8931F; }
.w-btn-outline {
  background: transparent; color: var(--w-primary) !important;
  border: 1.5px solid var(--w-primary);
}
.w-btn-outline:hover { background: var(--w-primary); color: #fff !important; }
.w-btn-lg { padding: 15px 32px; font-size: 16px; }

/* Telefon menyusi */
.w-burger {
  display: none; background: none; border: none; cursor: pointer;
  font-size: 26px; color: var(--w-primary); padding: 4px 8px;
}

@media (max-width: 900px) {
  .w-burger { display: block; margin-left: auto; }
  .w-nav {
    position: fixed; inset: 72px 0 auto 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 12px 20px 24px; gap: 2px; margin: 0;
    border-bottom: 1px solid var(--w-border);
    box-shadow: var(--w-shadow-lg);
    display: none;
  }
  .w-nav.open { display: flex; }
  .w-nav a { padding: 13px 14px; font-size: 16px; }
  .w-nav .w-btn { margin-top: 8px; }
}

/* ---------- Hero ---------- */
.w-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--w-primary) 0%, var(--w-primary-dark) 100%);
  color: #fff; padding: 90px 0 100px;
}
.w-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(201,162,39,.18), transparent 55%);
  pointer-events: none;
}
.w-hero-inner { position: relative; z-index: 2; display: grid;
                grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.w-hero h1 {
  font-size: clamp(30px, 5vw, 50px); line-height: 1.15; margin: 0 0 18px;
  font-weight: 800; letter-spacing: -.8px;
}
.w-hero-slogan {
  display: inline-block; padding: 6px 16px; border-radius: 30px;
  background: rgba(255,255,255,.14); color: var(--w-accent-light);
  font-size: 13.5px; font-weight: 600; margin-bottom: 20px;
  border: 1px solid rgba(245,223,168,.25);
}
.w-hero p { font-size: 17.5px; opacity: .93; margin: 0 0 30px; max-width: 540px; }
.w-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.w-hero-media img, .w-hero-media iframe {
  width: 100%; border-radius: 20px; box-shadow: var(--w-shadow-lg);
  display: block; aspect-ratio: 4/3; object-fit: cover; border: 0;
}
.w-hero-media-placeholder {
  width: 100%; aspect-ratio: 4/3; border-radius: 20px;
  background: rgba(255,255,255,.08); border: 1px dashed rgba(255,255,255,.25);
  display: grid; place-items: center; font-size: 60px;
}

@media (max-width: 900px) {
  .w-hero { padding: 56px 0 64px; }
  .w-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .w-hero-media { order: -1; }
}

/* ---------- Bo'limlar ---------- */
.w-section { padding: 76px 0; }
.w-section.soft { background: var(--w-bg-soft); }
.w-section-head { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.w-section-head h2 {
  font-size: clamp(25px, 3.4vw, 35px); margin: 0 0 12px;
  font-weight: 800; letter-spacing: -.5px; color: var(--w-primary);
}
.w-section-head p { color: var(--w-text-muted); font-size: 16.5px; margin: 0; }
.w-eyebrow {
  display: inline-block; color: var(--w-accent); font-weight: 700;
  font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase;
  margin-bottom: 8px;
}

/* ---------- Raqamlar ---------- */
.w-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.w-stat {
  text-align: center; padding: 30px 16px; border-radius: var(--w-radius);
  background: #fff; border: 1px solid var(--w-border);
}
.w-stat-value {
  font-size: 40px; font-weight: 800; color: var(--w-primary);
  line-height: 1; margin-bottom: 8px;
}
.w-stat-label { color: var(--w-text-muted); font-size: 14.5px; }
@media (max-width: 700px) {
  .w-stats { grid-template-columns: repeat(2, 1fr); }
  .w-stat-value { font-size: 32px; }
}

/* ---------- Kartochkalar ---------- */
.w-grid { display: grid; gap: 24px; }
.w-grid-2 { grid-template-columns: repeat(2, 1fr); }
.w-grid-3 { grid-template-columns: repeat(3, 1fr); }
.w-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 950px) { .w-grid-3, .w-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .w-grid-2, .w-grid-3, .w-grid-4 { grid-template-columns: 1fr; }
}

.w-card {
  background: #fff; border: 1px solid var(--w-border);
  border-radius: var(--w-radius); overflow: hidden;
  transition: transform .18s, box-shadow .18s;
  display: flex; flex-direction: column;
}
.w-card:hover { transform: translateY(-3px); box-shadow: var(--w-shadow-lg); }
.w-card-img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block;
  background: var(--w-bg-soft);
}
.w-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.w-card-body h3 { margin: 0 0 8px; font-size: 17.5px; font-weight: 700;
                  color: var(--w-primary); line-height: 1.35; }
.w-card-body p { margin: 0 0 12px; color: var(--w-text-muted); font-size: 14.5px; flex: 1; }
.w-card-meta { font-size: 13px; color: var(--w-text-muted); }
.w-card a.w-card-link { text-decoration: none; color: inherit; display: contents; }

.w-feature {
  padding: 28px 24px; border-radius: var(--w-radius);
  background: #fff; border: 1px solid var(--w-border);
}
.w-feature-icon { font-size: 34px; margin-bottom: 12px; display: block; }
.w-feature h3 { margin: 0 0 8px; font-size: 17px; color: var(--w-primary); }
.w-feature p { margin: 0; color: var(--w-text-muted); font-size: 14.5px; }

/* ---------- Galereya ---------- */
.w-gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.w-gallery-item {
  position: relative; border-radius: 12px; overflow: hidden;
  aspect-ratio: 1; background: var(--w-bg-soft); cursor: pointer;
}
.w-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block;
                      transition: transform .3s; }
.w-gallery-item:hover img { transform: scale(1.05); }
.w-gallery-caption {
  position: absolute; inset: auto 0 0 0; padding: 22px 12px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  color: #fff; font-size: 13px;
}
.w-play-badge {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0,0,0,.35); color: #fff; font-size: 44px;
}

/* ---------- Fikrlar ---------- */
.w-quote {
  background: #fff; border: 1px solid var(--w-border);
  border-radius: var(--w-radius); padding: 26px;
  display: flex; flex-direction: column; gap: 16px;
}
.w-quote-text { font-size: 15.5px; color: var(--w-text); font-style: italic;
                margin: 0; flex: 1; }
.w-quote-author { display: flex; align-items: center; gap: 12px; }
.w-quote-author img, .w-quote-avatar {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  background: var(--w-primary); color: var(--w-accent-light);
  display: grid; place-items: center; font-weight: 700; flex-shrink: 0;
}
.w-quote-name { font-weight: 700; font-size: 14.5px; }
.w-quote-role { font-size: 13px; color: var(--w-text-muted); }

/* ---------- Savol-javob ---------- */
.w-faq-item {
  border: 1px solid var(--w-border); border-radius: 13px;
  margin-bottom: 12px; background: #fff; overflow: hidden;
}
.w-faq-q {
  width: 100%; text-align: left; padding: 19px 22px; border: none;
  background: none; cursor: pointer; font-size: 16px; font-weight: 600;
  color: var(--w-primary); display: flex; justify-content: space-between;
  gap: 16px; align-items: center; font-family: inherit;
}
.w-faq-q::after { content: "+"; font-size: 22px; font-weight: 400;
                  transition: transform .2s; flex-shrink: 0; }
.w-faq-item.open .w-faq-q::after { transform: rotate(45deg); }
.w-faq-a { padding: 0 22px 20px; color: var(--w-text-muted); display: none;
           font-size: 15px; white-space: pre-line; }
.w-faq-item.open .w-faq-a { display: block; }

/* ---------- Forma ---------- */
.w-form { display: grid; gap: 18px; }
.w-field label {
  display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 7px;
  color: var(--w-text);
}
.w-field input, .w-field textarea, .w-field select {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--w-border);
  border-radius: 11px; font-size: 15.5px; font-family: inherit;
  background: #fff; color: var(--w-text); transition: border-color .15s;
}
.w-field input:focus, .w-field textarea:focus {
  outline: none; border-color: var(--w-primary);
}
.w-field-help { font-size: 13px; color: var(--w-text-muted); margin-top: 5px; }
.w-field-error { font-size: 13.5px; color: #C62828; margin-top: 5px; font-weight: 500; }
.w-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .w-form-row { grid-template-columns: 1fr; } }
/* Honeypot — inson ko'rmaydi, bot to'ldiradi */
.w-hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.w-alert {
  padding: 14px 18px; border-radius: 11px; margin-bottom: 20px;
  font-size: 14.5px; line-height: 1.5;
}
.w-alert-error { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
.w-alert-success { background: #F0FDF4; border: 1px solid #BBF7D0; color: #166534; }

/* ---------- CTA ---------- */
.w-cta {
  background: linear-gradient(135deg, var(--w-primary), var(--w-primary-dark));
  color: #fff; border-radius: 22px; padding: 54px 40px; text-align: center;
  position: relative; overflow: hidden;
}
.w-cta::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(201,162,39,.2), transparent 55%);
}
.w-cta > * { position: relative; z-index: 2; }
.w-cta h2 { font-size: clamp(24px, 3.4vw, 33px); margin: 0 0 12px; font-weight: 800; }
.w-cta p { font-size: 16.5px; opacity: .92; margin: 0 0 26px; }

/* ---------- Footer ---------- */
.w-footer {
  background: var(--w-primary-dark); color: rgba(255,255,255,.85);
  padding: 56px 0 26px; margin-top: 0;
}
.w-footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px;
  margin-bottom: 36px;
}
@media (max-width: 800px) { .w-footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.w-footer h4 { color: #fff; font-size: 15px; margin: 0 0 14px; font-weight: 700; }
.w-footer a { color: rgba(255,255,255,.85); text-decoration: none; font-size: 14.5px; }
.w-footer a:hover { color: var(--w-accent-light); }
.w-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.w-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13.5px; color: rgba(255,255,255,.6);
}
.w-social { display: flex; gap: 10px; margin-top: 14px; }
.w-social a {
  width: 40px; height: 40px; border-radius: 11px; display: grid;
  place-items: center; background: rgba(255,255,255,.1); font-size: 18px;
  transition: background .15s;
}
.w-social a:hover { background: var(--w-accent); }

/* ---------- Sahifa sarlavhasi ---------- */
.w-page-head {
  background: var(--w-bg-soft); padding: 52px 0 44px;
  border-bottom: 1px solid var(--w-border);
}
.w-page-head h1 {
  font-size: clamp(26px, 4vw, 40px); margin: 0 0 10px;
  color: var(--w-primary); font-weight: 800; letter-spacing: -.5px;
}
.w-page-head p { color: var(--w-text-muted); margin: 0; font-size: 16.5px; }
.w-breadcrumb { font-size: 13.5px; color: var(--w-text-muted); margin-bottom: 12px; }
.w-breadcrumb a { color: var(--w-primary); text-decoration: none; }

/* ---------- Maqola ---------- */
.w-article { max-width: 760px; margin: 0 auto; }
.w-article img { max-width: 100%; height: auto; border-radius: var(--w-radius); }
.w-article-body { font-size: 16.5px; line-height: 1.8; white-space: pre-line; }
.w-article-body p { margin: 0 0 18px; }

.w-video-wrap {
  position: relative; padding-bottom: 56.25%; height: 0;
  border-radius: var(--w-radius); overflow: hidden; margin: 22px 0;
}
.w-video-wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

.w-empty {
  text-align: center; padding: 60px 20px; color: var(--w-text-muted);
  background: var(--w-bg-soft); border-radius: var(--w-radius);
}

.w-badge {
  display: inline-block; padding: 4px 11px; border-radius: 20px;
  background: var(--w-accent-light); color: var(--w-primary-dark);
  font-size: 12.5px; font-weight: 700;
}

.w-chips { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 28px; }
.w-chip {
  padding: 8px 16px; border-radius: 20px; border: 1.5px solid var(--w-border);
  background: #fff; color: var(--w-text); text-decoration: none;
  font-size: 14px; font-weight: 500;
}
.w-chip.active { background: var(--w-primary); color: #fff; border-color: var(--w-primary); }

/* ===================================================================
   YAXSHILANGAN DIZAYN — ikkinchi bosqich
   =================================================================== */

/* Logotip — rasm yuklangan bo'lsa uni, aks holda standart logoni */
.w-logo img {
  height: 46px; width: 46px; border-radius: 11px;
  object-fit: cover; flex-shrink: 0;
}
.w-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.w-logo-name { font-size: 16.5px; font-weight: 800; color: var(--w-primary); }
.w-logo-slogan {
  font-size: 11px; font-weight: 500; color: var(--w-text-muted);
  letter-spacing: .3px; text-transform: none;
}
@media (max-width: 500px) {
  .w-logo-name { font-size: 14px; }
  .w-logo-slogan { display: none; }
  .w-logo img { height: 38px; width: 38px; }
}

/* Qabul e'loni — sarlavha ustidagi tasma */
.w-announce {
  background: var(--w-accent); color: var(--w-primary-dark);
  text-align: center; padding: 9px 20px; font-size: 14px; font-weight: 600;
}
.w-announce a { color: var(--w-primary-dark); text-decoration: underline; }

/* Hero — yumshoqroq va zamonaviyroq */
.w-hero { padding: 100px 0 110px; }
.w-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(255,255,255,.06) 0, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(201,162,39,.12) 0, transparent 50%);
  pointer-events: none;
}
.w-hero-media img, .w-hero-media iframe {
  aspect-ratio: 4/3; border: 4px solid rgba(255,255,255,.12);
}
.w-hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.w-hero-badge {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: 30px; font-size: 13.5px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
}

/* Bo'lim sarlavhalari — chiziq bilan ajratish */
.w-section-head h2::after {
  content: ""; display: block; width: 54px; height: 3px;
  background: var(--w-accent); border-radius: 2px;
  margin: 16px auto 0;
}

/* Statistika — chiroyliroq */
.w-stat {
  position: relative; overflow: hidden;
  transition: transform .18s, box-shadow .18s;
}
.w-stat:hover { transform: translateY(-3px); box-shadow: var(--w-shadow); }
.w-stat::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--w-primary), var(--w-accent));
}

/* Ustunlik kartochkasi */
.w-feature {
  transition: transform .18s, box-shadow .18s, border-color .18s;
  position: relative;
}
.w-feature:hover {
  transform: translateY(-3px); box-shadow: var(--w-shadow-lg);
  border-color: var(--w-accent);
}
.w-feature-icon {
  width: 54px; height: 54px; border-radius: 14px;
  background: linear-gradient(135deg, var(--w-primary), var(--w-primary-dark));
  color: var(--w-accent-light); display: grid; place-items: center;
  font-size: 24px; font-weight: 800; margin-bottom: 16px;
}

/* Manzil bo'limi */
.w-map-section { display: grid; grid-template-columns: 380px 1fr; gap: 0;
                 border-radius: var(--w-radius); overflow: hidden;
                 border: 1px solid var(--w-border); background: #fff; }
@media (max-width: 900px) { .w-map-section { grid-template-columns: 1fr; } }
.w-map-info { padding: 32px; }
.w-map-frame { min-height: 420px; background: var(--w-bg-soft); }
.w-map-frame iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.w-map-row { display: flex; gap: 13px; margin-bottom: 20px; align-items: flex-start; }
.w-map-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: var(--w-bg-soft); color: var(--w-primary);
  display: grid; place-items: center; font-size: 17px;
}
.w-map-label { font-size: 12.5px; color: var(--w-text-muted); margin-bottom: 2px; }
.w-map-value { font-size: 15.5px; font-weight: 600; line-height: 1.45; }
.w-map-value a { color: var(--w-primary); text-decoration: none; }

/* Footer — boyroq */
.w-footer { padding: 60px 0 24px; }
.w-footer-grid { grid-template-columns: 1.7fr 1fr 1fr 1.1fr; }
@media (max-width: 950px) { .w-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .w-footer-grid { grid-template-columns: 1fr; } }
.w-footer-logo { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.w-footer-logo img {
  height: 52px; width: 52px; border-radius: 12px; object-fit: cover;
  background: rgba(255,255,255,.08);
}
.w-footer-logo-text { color: #fff; font-weight: 800; font-size: 16.5px; line-height: 1.25; }
.w-footer-logo-slogan { font-size: 12px; opacity: .7; font-weight: 400; }
.w-footer-contact { display: flex; gap: 10px; margin-bottom: 11px; align-items: flex-start; }
.w-footer-contact .ic {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  background: rgba(255,255,255,.09); display: grid; place-items: center;
  font-size: 14px;
}
.w-footer-contact-label { font-size: 11.5px; opacity: .6; }
.w-footer-license {
  font-size: 12.5px; opacity: .65; margin-top: 16px; line-height: 1.6;
  padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1);
}

/* Yozuvlar chalkashmasligi uchun */
.w-card-body h3 { overflow-wrap: break-word; hyphens: auto; }
.w-card-body p {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.w-quote-text {
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical;
  overflow: hidden;
}
.w-gallery-caption b { display: block; overflow: hidden; text-overflow: ellipsis;
                       white-space: nowrap; }

/* Admin uchun tez tahrirlash tugmasi */
.w-edit-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-end;
}
.w-edit-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 30px; text-decoration: none;
  background: var(--w-primary); color: #fff !important;
  font-size: 14px; font-weight: 600; box-shadow: var(--w-shadow-lg);
  transition: background .15s, transform .15s;
}
.w-edit-btn:hover { background: var(--w-primary-dark); transform: translateY(-2px); }
.w-edit-btn.accent { background: var(--w-accent); color: var(--w-primary-dark) !important; }
@media (max-width: 640px) {
  .w-edit-fab { right: 12px; bottom: 12px; }
  .w-edit-btn { padding: 10px 14px; font-size: 13px; }
}

/* Bo'limlar orasidagi bo'sh joyni muvozanatlash */
.w-section:first-of-type { padding-top: 66px; }
.w-section + .w-section { padding-top: 66px; }

/* ===================================================================
   ADMIN UCHUN: SAYTNI JOYIDA TAHRIRLASH

   Admin sayt bo'ylab yurib, har bir bo'lim yonidagi tugma orqali
   darhol qo'shadi/tahrirlaydi/o'chiradi. Panelga o'tib, kerakli
   bo'limni qidirib topish shart emas.

   Mehmonlar bu elementlarni umuman ko'rmaydi.
   =================================================================== */

/* Admin rejimi yoqilganda bo'limlar ajralib turadi */
body.w-admin-mode .w-editable {
  position: relative;
  outline: 2px dashed transparent;
  outline-offset: 6px;
  transition: outline-color .15s;
  border-radius: 8px;
}
body.w-admin-mode .w-editable:hover { outline-color: rgba(201,162,39,.6); }

/* Bo'lim ustidagi boshqaruv paneli */
.w-edit-bar {
  display: none;
  gap: 8px; flex-wrap: wrap; align-items: center;
  background: rgba(20,80,74,.06); border: 1px solid rgba(20,80,74,.16);
  border-radius: 10px; padding: 8px 12px; margin-bottom: 16px;
  font-size: 13px;
}
body.w-admin-mode .w-edit-bar { display: flex; }
.w-edit-bar-label {
  font-weight: 700; color: var(--w-primary); margin-right: 4px;
}
.w-edit-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 8px; text-decoration: none;
  background: var(--w-primary); color: #fff !important;
  font-size: 12.5px; font-weight: 600;
}
.w-edit-link:hover { background: var(--w-primary-dark); }
.w-edit-link.ghost {
  background: transparent; color: var(--w-primary) !important;
  border: 1px solid var(--w-primary);
}
.w-edit-link.ghost:hover { background: var(--w-primary); color: #fff !important; }
.w-edit-link.danger { background: #C62828; }
.w-edit-link.danger:hover { background: #9B1C1C; }

/* Har bir element (yangilik, yutuq) ustidagi kichik tugmalar */
.w-item-edit {
  display: none;
  position: absolute; top: 8px; right: 8px; z-index: 5;
  gap: 5px;
}
body.w-admin-mode .w-card:hover .w-item-edit,
body.w-admin-mode .w-feature:hover .w-item-edit,
body.w-admin-mode .w-quote:hover .w-item-edit,
body.w-admin-mode .w-faq-item:hover .w-item-edit { display: flex; }
.w-item-edit a, .w-item-edit button {
  width: 30px; height: 30px; border-radius: 8px; border: none;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(20,80,74,.92); color: #fff; text-decoration: none;
  font-size: 13px; box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.w-item-edit a:hover { background: var(--w-primary-dark); }
.w-item-edit button.danger { background: rgba(198,40,40,.92); }
.w-item-edit button.danger:hover { background: #9B1C1C; }

.w-card, .w-feature, .w-quote, .w-faq-item { position: relative; }

/* Admin rejimi tugmasi (pastda) */
.w-admin-panel {
  position: fixed; right: 18px; bottom: 18px; z-index: 95;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-end;
}
.w-admin-toggle {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 30px; border: none; cursor: pointer;
  background: var(--w-primary); color: #fff; font-size: 13.5px;
  font-weight: 600; box-shadow: var(--w-shadow-lg); font-family: inherit;
}
.w-admin-toggle.active { background: var(--w-accent); color: var(--w-primary-dark); }
.w-admin-toggle:hover { transform: translateY(-2px); }

/* Admin rejimida yuqorida ogohlantirish tasmasi */
.w-admin-banner {
  display: none;
  background: var(--w-accent); color: var(--w-primary-dark);
  text-align: center; padding: 8px 20px; font-size: 13.5px; font-weight: 600;
}
body.w-admin-mode .w-admin-banner { display: block; }

/* Bo'sh bo'limlarni admin ko'rsin (mehmon ko'rmaydi) */
.w-admin-empty { display: none; }
body.w-admin-mode .w-admin-empty {
  display: block; text-align: center; padding: 30px 20px;
  border: 2px dashed rgba(20,80,74,.25); border-radius: 12px;
  color: var(--w-text-muted); font-size: 14px;
}

@media (max-width: 640px) {
  .w-admin-panel { right: 10px; bottom: 10px; }
  .w-admin-toggle { padding: 10px 14px; font-size: 12.5px; }
}

/* Footer — telefonda ham chiroyli */
@media (max-width: 600px) {
  .w-footer { padding: 40px 0 20px; text-align: left; }
  .w-footer-grid { gap: 26px; }
  .w-footer-logo img { height: 44px; width: 44px; }
  .w-footer-bottom { flex-direction: column; gap: 10px; align-items: flex-start; }
}
.w-footer-contact a {
  font-size: 14.5px; overflow-wrap: anywhere;
}
.w-footer h4 {
  position: relative; padding-bottom: 10px;
}
.w-footer h4::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 28px; height: 2px; background: var(--w-accent); border-radius: 2px;
}

/* ===================================================================
   ANIMATSIYALAR

   Kutubxona ishlatilmaydi — brauzerning o'z imkoniyati yetarli va
   sayt tezroq ochiladi.
   =================================================================== */

[data-anim] {
  opacity: 0;
  transition: opacity .6s cubic-bezier(.22,.61,.36,1),
              transform .6s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
[data-anim="up"]    { transform: translateY(26px); }
[data-anim="down"]  { transform: translateY(-26px); }
[data-anim="left"]  { transform: translateX(-30px); }
[data-anim="right"] { transform: translateX(30px); }
[data-anim="zoom"]  { transform: scale(.94); }
[data-anim].anim-in { opacity: 1; transform: none; }

/* Harakatni kamaytirish yoqilgan bo'lsa — animatsiya yo'q.
   Ba'zi odamlarda harakat bosh aylanishiga sabab bo'ladi. */
@media (prefers-reduced-motion: reduce) {
  [data-anim] { opacity: 1 !important; transform: none !important;
                transition: none !important; }
  html { scroll-behavior: auto !important; }
}

html { scroll-behavior: smooth; }

/* Sarlavha aylantirilganda soya oladi */
.w-header { transition: box-shadow .25s, background .25s; }
.w-header.scrolled {
  box-shadow: 0 2px 20px rgba(20,80,74,.1);
  background: rgba(255,255,255,.98);
}

/* Yuqoriga qaytish tugmasi */
.w-scroll-top {
  position: fixed; right: 20px; bottom: 88px; z-index: 88;
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: var(--w-primary); color: #fff; cursor: pointer;
  font-size: 19px; display: grid; place-items: center;
  box-shadow: var(--w-shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .25s, transform .25s, visibility .25s, background .2s;
}
.w-scroll-top.show { opacity: 1; visibility: visible; transform: none; }
.w-scroll-top:hover { background: var(--w-primary-dark); }
@media (max-width: 640px) {
  .w-scroll-top { right: 12px; bottom: 76px; width: 42px; height: 42px; }
}

/* Kartochka va tugmalarda silliqroq o'tish */
.w-card, .w-feature, .w-stat, .w-quote {
  transition: transform .25s cubic-bezier(.22,.61,.36,1),
              box-shadow .25s, border-color .25s;
}
.w-btn { transition: transform .18s, box-shadow .18s, background .18s; }
.w-btn:active { transform: translateY(1px); }

/* Rasm ustiga borilganda ozgina yaqinlashadi */
.w-card-img { transition: transform .45s cubic-bezier(.22,.61,.36,1); }
.w-card:hover .w-card-img { transform: scale(1.04); }
.w-card { overflow: hidden; }

/* Hero'dagi elementlar ketma-ket paydo bo'ladi */
.w-hero h1, .w-hero p, .w-hero-actions, .w-hero-slogan, .w-hero-badges {
  animation: hz-hero-in .7s cubic-bezier(.22,.61,.36,1) both;
}
.w-hero-slogan  { animation-delay: .05s; }
.w-hero h1      { animation-delay: .15s; }
.w-hero p       { animation-delay: .25s; }
.w-hero-actions { animation-delay: .35s; }
.w-hero-badges  { animation-delay: .45s; }
.w-hero-media   { animation: hz-hero-media-in .8s cubic-bezier(.22,.61,.36,1) .2s both; }

@keyframes hz-hero-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes hz-hero-media-in {
  from { opacity: 0; transform: scale(.96) translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .w-hero h1, .w-hero p, .w-hero-actions, .w-hero-slogan,
  .w-hero-badges, .w-hero-media { animation: none !important; }
}

/* Bo'lim sarlavhasi ostidagi chiziq cho'ziladi */
.w-section-head h2::after { transition: width .5s cubic-bezier(.22,.61,.36,1); }
.w-section-head[data-anim] h2::after { width: 0; }
.w-section-head[data-anim].anim-in h2::after { width: 54px; }

/* ---------- Video muqovasi (padloshka) ---------- */
.w-video-poster {
  position: relative; cursor: pointer; overflow: hidden;
  background: #000; border-radius: 20px;
}
.w-video-poster img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  position: absolute; inset: 0;
  transition: transform .4s, opacity .25s;
}
.w-video-poster:hover img { transform: scale(1.03); opacity: .85; }
.w-video-play {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 68px; height: 68px; border-radius: 50%; border: none;
  background: rgba(201, 162, 39, .95); color: var(--w-primary-dark);
  font-size: 26px; cursor: pointer; display: grid; place-items: center;
  padding-left: 5px; box-shadow: 0 6px 26px rgba(0,0,0,.35);
  transition: transform .2s, background .2s;
}
.w-video-poster:hover .w-video-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--w-accent);
}
.w-video-poster iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
@media (max-width: 640px) {
  .w-video-play { width: 56px; height: 56px; font-size: 22px; }
}

/* Video ochilmasa — YouTube'da ochish havolasi */
.w-video-fallback {
  position: absolute; left: 0; right: 0; bottom: -30px;
  text-align: center; font-size: 12.5px; color: var(--w-text-muted);
  text-decoration: none;
}
.w-video-fallback:hover { color: var(--w-primary); text-decoration: underline; }
