/* Ochiq sayt va o'quvchi kabineti: sarlavha, bosh sahifa bo'limlari, yangiliklar. Palitra — logotipdan. */

/* ===== Sarlavha ===== */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--navy); color: #e6efea;
               border-bottom: 1px solid rgba(213, 195, 137, .18); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 72px; }
.site-brand { display: inline-flex; align-items: center; gap: .75rem; min-width: 0; color: inherit; text-decoration: none !important; }
.site-brand .logo { width: 46px; height: 46px; }
.site-brand b { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.36rem; line-height: 1.05;
                letter-spacing: .015em; color: #fff; white-space: nowrap; }
.site-brand small { display: block; margin-top: .15rem; font-size: .66rem; font-weight: 700; letter-spacing: .32em;
                    text-transform: uppercase; color: var(--gold); }
.site-nav { display: flex; align-items: center; gap: .2rem; }
.site-nav > a { position: relative; padding: .55em .95em; border-radius: 10px; color: #cfe1dd; font-weight: 550;
                text-decoration: none; transition: color .15s, background .15s; }
.site-nav > a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.site-nav > a.active { color: #fff; }
.site-nav > a.active::after { content: ""; position: absolute; left: .95em; right: .95em; bottom: .15em; height: 2px;
                              border-radius: 2px; background: var(--gold); }
.site-actions { display: flex; align-items: center; gap: .5rem; margin-left: .8rem; padding-left: 1rem;
                border-left: 1px solid rgba(255, 255, 255, .12); }
.site-user { display: inline-flex; align-items: center; gap: .55rem; padding: .3em .85em .3em .3em; border-radius: 999px;
             background: rgba(255, 255, 255, .07); color: #fff; font-weight: 600; text-decoration: none !important; }
.site-user:hover, .site-user.active { background: rgba(201, 174, 106, .2); }
.site-user .avatar { width: 30px; height: 30px; font-size: .88rem; background: var(--gold); color: var(--navy); }
.site-balance { display: inline-flex; align-items: center; gap: .45rem; padding: .38em .85em; border-radius: 999px;
                border: 1px solid rgba(213, 195, 137, .45); background: rgba(201, 174, 106, .1); color: #f1e4bf;
                font-size: .88rem; font-weight: 650; white-space: nowrap; text-decoration: none !important; }
.site-balance:hover, .site-balance.active { background: rgba(201, 174, 106, .22); color: #fff; }
.site-balance .icon { color: var(--gold); }
.site-menu-btn { display: none; padding: .45rem; border: 0; border-radius: 10px; background: transparent; color: #fff; cursor: pointer; }
.site-menu-btn .icon { width: 24px; height: 24px; }

/* ===== Bosh sahifa: kirish qismi ===== */
.home-hero { position: relative; overflow: hidden; color: #e6efea;
        background:
          radial-gradient(760px 420px at 82% 45%, rgba(201, 174, 106, .17), transparent 62%),
          radial-gradient(600px 380px at 0% 100%, rgba(13, 92, 99, .45), transparent 70%),
          linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 46px 46px,
          linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 46px 46px,
          var(--navy); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 3rem; align-items: center;
             padding-top: 88px; padding-bottom: 100px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .7rem; color: var(--gold); font-size: .78rem;
                font-weight: 700; letter-spacing: .34em; text-transform: uppercase; }
.hero-eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--gold); }
.home-hero h1 { margin: 1.1rem 0 1.2rem; font-family: var(--serif); font-weight: 700; font-size: clamp(2.7rem, 5.4vw, 4.6rem);
           line-height: 1.02; letter-spacing: -.005em; color: #fff; }
.hero-lead { max-width: 34em; margin: 0; font-size: 1.13rem; line-height: 1.7; color: #c3d8d3; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.1rem; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: .7rem 1.5rem; margin: 2.4rem 0 0; padding: 0;
               font-size: .9rem; color: #adc7c1; }
.hero-points li { display: inline-flex; align-items: center; gap: .5rem; }
.hero-points .icon { color: var(--gold); }
.home-hero .staff-hint { color: var(--gold); }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 400px; }
.hero-logo { position: relative; z-index: 1; width: min(360px, 82%); height: auto; border-radius: 50%;
             box-shadow: 0 0 0 1px rgba(213, 195, 137, .55), 0 0 0 16px rgba(213, 195, 137, .06), 0 34px 90px rgba(0, 0, 0, .5); }
.hero-ring { position: absolute; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(213, 195, 137, .22); }
.hero-ring-1 { width: min(450px, 100%); }
.hero-ring-2 { width: min(540px, 118%); border-style: dashed; border-color: rgba(213, 195, 137, .16);
               animation: spin 140s linear infinite; }

/* ===== Afzalliklar ===== */
.features { background: var(--surface); border-bottom: 1px solid var(--border); }
.features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature { display: flex; gap: 1rem; padding: 30px 28px; border-left: 1px solid var(--border); }
.feature:first-child { padding-left: 0; border-left: 0; }
.feature-icon { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; flex: none;
                background: var(--gold-soft); color: var(--gold-strong); }
.feature-icon .icon { width: 24px; height: 24px; }
.feature h3 { margin-bottom: .3rem; font-size: 1.03rem; }
.feature p { margin: 0; font-size: .92rem; color: var(--muted); }

/* ===== Bo'limlar ===== */
.section { padding: 76px 0; }
.section-alt { background: #efebe1; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.section-head p { margin: 0; color: var(--muted); }
.section-eyebrow { display: inline-block; margin-bottom: .55rem; font-size: .74rem; font-weight: 700; letter-spacing: .28em;
                   text-transform: uppercase; color: var(--gold-strong); }
.section-head h2, .about-grid h2, .page-hero h1 { margin: 0 0 .35rem; font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.05rem, 3.5vw, 2.8rem); line-height: 1.06; color: var(--navy); }
.empty-block { padding: 48px 24px; text-align: center; border: 1px dashed var(--border-2); border-radius: 18px;
               background: var(--surface); color: var(--muted); }
.empty-block > .icon { width: 42px; height: 42px; margin-bottom: .6rem; stroke-width: 1.5; color: var(--gold); }
.empty-block h3 { color: var(--text); }
.empty-block p { margin: 0; }
.empty-left { text-align: left; }
.staff-hint { display: inline-flex; align-items: center; gap: .5rem; margin-top: .9rem; padding: .45em .85em;
              border: 1px dashed var(--gold); border-radius: 10px; background: rgba(201, 174, 106, .12);
              color: var(--gold-strong); font-size: .86rem; font-weight: 600; text-decoration: none !important; }
.staff-hint small { font-weight: 500; opacity: .75; }

/* ===== Test kartochkalari ===== */
.pub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.pub-card { position: relative; display: flex; flex-direction: column; gap: .75rem; padding: 24px 22px 22px;
            background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
            transition: transform .2s, box-shadow .2s, border-color .2s; }
.pub-card::before { content: ""; position: absolute; top: 0; left: 22px; right: 22px; height: 3px; border-radius: 0 0 3px 3px;
                    background: linear-gradient(90deg, var(--primary), var(--gold)); }
.pub-card:hover { transform: translateY(-3px); border-color: #c9ddd9; box-shadow: var(--shadow); }
.pub-card-top { display: flex; flex-wrap: wrap; gap: .4rem; }
.pub-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .28em .7em; border-radius: 999px;
            background: var(--primary-soft); color: var(--primary); font-size: .78rem; font-weight: 650; }
.pub-chip .icon { width: 1em; height: 1em; }
.pub-chip-gold { background: var(--gold-soft); color: var(--gold-strong); }
.pub-chip-price { background: var(--navy); color: #f1e4bf; }
.pub-chip-price .icon { color: var(--gold); }
.pub-chip-free { background: var(--success-soft); color: var(--success); }
.pub-card h3 { margin: .1rem 0 0; font-size: 1.16rem; line-height: 1.3; }
.pub-desc { margin: 0; font-size: .92rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3;
            -webkit-box-orient: vertical; overflow: hidden; }
.pub-meta { list-style: none; display: grid; gap: .4rem; margin: 0; padding: 0; font-size: .88rem; color: var(--text-2); }
.pub-meta li { display: flex; align-items: center; gap: .55rem; }
.pub-meta .icon { color: var(--gold-strong); }
.pub-groups { display: flex; align-items: center; gap: .45rem; margin: 0; font-size: .82rem; color: var(--muted); }
.pub-card-foot { display: grid; gap: .45rem; margin-top: auto; padding-top: .4rem; }
.pub-card-foot small { display: flex; justify-content: center; align-items: center; gap: .35rem; font-size: .78rem; color: var(--muted); }

/* ===== Yangiliklar ===== */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.news-card { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--border);
             border-radius: 18px; color: inherit; text-decoration: none !important; transition: transform .2s, box-shadow .2s; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-cover { aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy); }
.news-cover > img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.news-card:hover .news-cover > img { transform: scale(1.035); }
.news-cover-empty { display: grid; place-items: center; width: 100%; height: 100%;
  background: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 30px 30px,
              linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 30px 30px,
              radial-gradient(circle at 50% 50%, rgba(201, 174, 106, .18), transparent 60%), var(--navy); }
.news-cover-empty img { width: 86px; height: 86px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(213, 195, 137, .5); }
.news-body { display: flex; flex: 1; flex-direction: column; gap: .45rem; padding: 18px 20px 20px; }
.news-body time, .article time { font-size: .78rem; font-weight: 700; letter-spacing: .1em; color: var(--gold-strong); }
.news-body h3 { margin: 0; font-size: 1.1rem; line-height: 1.35; }
.news-body p { margin: 0; font-size: .92rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3;
               -webkit-box-orient: vertical; overflow: hidden; }
.news-more { display: inline-flex; align-items: center; gap: .35rem; margin-top: auto; padding-top: .45rem;
             color: var(--primary); font-size: .9rem; font-weight: 650; }

/* ===== Biz haqimizda va aloqa ===== */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: 3rem; align-items: start; }
.prose { font-size: 1.02rem; line-height: 1.78; color: var(--text-2); overflow-wrap: anywhere; }
.prose p { margin: 0 0 1em; }
.prose-lg { font-size: 1.08rem; }
.contact-card { position: relative; overflow: hidden; padding: 28px; border-radius: 20px; color: #e6efea;
  background: radial-gradient(circle at 100% 0%, rgba(201, 174, 106, .2), transparent 55%),
              linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 30px 30px,
              linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 30px 30px, var(--navy); }
.contact-card h3 { margin: 0; font-family: var(--serif); font-size: 1.6rem; color: #fff; }
.contacts { list-style: none; display: grid; gap: .85rem; margin: 1.1rem 0 0; padding: 0; }
.contacts li { display: flex; align-items: flex-start; gap: .7rem; }
.contacts .icon { margin-top: .2em; color: var(--gold); }
.contacts a { color: #fff; }
.contacts-compact { gap: .6rem; margin-top: 0; font-size: .92rem; }
.contacts-empty { margin: 1rem 0 0; color: #adc7c1; }
.site-footer .contacts-empty { margin-top: 0; }

/* ===== Sertifikatni tekshirish bloki ===== */
.verify-band { padding: 58px 0; color: #e6efea;
  background: radial-gradient(560px 300px at 0% 50%, rgba(201, 174, 106, .16), transparent 70%),
              linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 46px 46px,
              linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 46px 46px, #042a2f; }
.verify-band-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem; }
.verify-band h2 { margin: 0 0 .35rem; font-family: var(--serif); font-size: 2.1rem; color: #fff; }
.verify-band p { margin: 0; color: #adc7c1; }
.verify-band-form { display: flex; flex: 1; gap: .6rem; min-width: 280px; max-width: 540px; }
.verify-band-form input { background: rgba(255, 255, 255, .07); border-color: rgba(213, 195, 137, .4); color: #fff;
                          font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.verify-band-form input::placeholder { color: rgba(230, 239, 234, .4); }
.verify-band-form input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 174, 106, .22); }

/* ===== Ichki sahifalar ===== */
.page-hero { padding: 58px 0 50px; color: #c3d8d3;
  background: radial-gradient(620px 300px at 90% 0%, rgba(201, 174, 106, .14), transparent 65%),
              linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 46px 46px,
              linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 46px 46px, var(--navy); }
.page-hero .section-eyebrow { color: var(--gold); }
.page-hero h1 { color: #fff; }
.page-hero p { max-width: 42em; margin: .5rem 0 0; font-size: 1.05rem; }
.article { padding: 46px 0 70px; }
.article-inner { max-width: 800px; }
.article-back { display: flex; width: fit-content; align-items: center; gap: .4rem; margin-bottom: 1.6rem; color: var(--muted); font-weight: 600; }
.article time { display: block; }
.article h1 { margin: .45rem 0 1rem; font-family: var(--serif); font-weight: 700; font-size: clamp(2.1rem, 4.2vw, 3.1rem);
              line-height: 1.08; color: var(--navy); }
.article-lead { font-size: 1.16rem; line-height: 1.65; color: var(--text-2); }
.article-cover { width: 100%; margin: 1.6rem 0; border-radius: 18px; box-shadow: var(--shadow); }

/* ===== Pastki qism ===== */
.site-footer { padding-top: 58px; background: #021f23; color: #a6bfba; font-size: .94rem; }
.site-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer h4 { margin-bottom: 1rem; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: #fff; }
.site-footer ul:not(.contacts) { list-style: none; display: grid; gap: .55rem; margin: 0; padding: 0; }
.site-footer a { color: #cfe1dd; }
.site-footer a:hover { color: #fff; }
.site-footer-brand p { max-width: 30em; margin: 1.1rem 0 0; }
.site-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 44px;
                      padding-top: 18px; padding-bottom: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .84rem; }

/* ===== Moslashuvchanlik ===== */
@media (max-width: 960px) {
  .site-menu-btn { display: inline-flex; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch;
              padding: 10px 16px 18px; background: var(--navy); border-bottom: 1px solid rgba(213, 195, 137, .2);
              box-shadow: 0 20px 40px rgba(0, 0, 0, .3); }
  .site-nav.open { display: flex; }
  .site-nav > a.active { background: rgba(255, 255, 255, .06); }
  .site-nav > a.active::after { display: none; }
  .site-actions { justify-content: space-between; margin: .7rem 0 0; padding: .9rem 0 0; border-left: 0;
                  border-top: 1px solid rgba(255, 255, 255, .1); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-top: 48px; padding-bottom: 64px; }
  .hero-visual { order: -1; min-height: 0; }
  .hero-logo { width: 190px; }
  .hero-ring-1 { width: 238px; }
  .hero-ring-2 { width: 280px; }
  .features-grid { grid-template-columns: minmax(0, 1fr); }
  .feature, .feature:first-child { padding: 22px 0; border-left: 0; border-top: 1px solid var(--border); }
  .feature:first-child { border-top: 0; }
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .site-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
}
@media (max-width: 560px) {
  .site-header-inner { height: 64px; }
  .site-brand .logo { width: 40px; height: 40px; }
  .site-brand b { font-size: 1.12rem; white-space: normal; }
  .site-brand small { letter-spacing: .22em; }
  .section { padding: 54px 0; }
  .home-hero h1 { font-size: 2.45rem; }
  .verify-band-form { flex-direction: column; }
  .pub-grid, .news-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-ring-2 { animation: none; }
  .pub-card, .news-card, .news-cover > img { transition: none; }
}
