/* easyevents.uz — Easy Events Group sayti. Ranglar faqat brend tokenlaridan (rejimlar.css, reference/color.md);
   shrift — Source Serif 4 (sarlavha) va Inter (matn); soya, gradient va shaffoflik yo'q (brend 7, 16-band). */

@font-face { font-family: 'Source Serif 4 Display'; src: url('/assets/shrift/SourceSerif4Display-Semibold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Source Serif 4'; src: url('/assets/shrift/SourceSerif4-Semibold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/shrift/Inter-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/shrift/Inter-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }

/* Bosh ekran ranglari: kunduzi — kobalt fon (muqova namunasi), tunda — tun fon. Katta E — kobalt-yorqin (brend 20-band). */
:root {
  --sarlavha: 'Source Serif 4 Display', 'Source Serif 4', Georgia, serif;
  --sarlavha-kichik: 'Source Serif 4', Georgia, serif;
  --matn: Inter, 'Segoe UI', Arial, sans-serif;
  --hero-fon: #15389B;
  --hero-matn: #FFFFFF;
  --hero-lid: #A4B7EF;
  --hero-e: #3A5FD0;
  --hero-tugma: #FFFFFF;
  --hero-tugma-matn: #15389B;
  --hero-tugma-faol: #E7ECF9;
  --hero-fokus: #FFFFFF;
  --hero-chiziq: #15389B;
  --hero-hover: #102C7C;
  --forum-fon: #FFFFFF;
  --kenglik: 1200px;
  --chet: 40px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-rejim="kunduz"]) {
    --hero-fon: #0D1330;
    --hero-tugma: #A4B7EF;
    --hero-tugma-matn: #0D1330;
    --hero-tugma-faol: #B9C3E8;
    --hero-fokus: #6F89DC;
    --hero-chiziq: #232D5E;
    --hero-hover: #151D45;
    --forum-fon: #0D1330;
  }
  :root:not([data-rejim="kunduz"]) .rejim__oy { display: none; }
  :root:not([data-rejim="kunduz"]) .rejim__quyosh { display: block; }
}
:root[data-rejim="tun"] {
  --hero-fon: #0D1330;
  --hero-tugma: #A4B7EF;
  --hero-tugma-matn: #0D1330;
  --hero-tugma-faol: #B9C3E8;
  --hero-fokus: #6F89DC;
  --hero-chiziq: #232D5E;
  --hero-hover: #151D45;
  --forum-fon: #0D1330;
}
:root[data-rejim="tun"] .rejim__oy { display: none; }
:root[data-rejim="tun"] .rejim__quyosh { display: block; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--eeg-fon);
  color: var(--eeg-matn);
  font-family: var(--matn);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; }
h1, h2, h3, p, ul, address { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--eeg-havola); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--eeg-fokus); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 24px; }

.wrap { width: 100%; max-width: calc(var(--kenglik) + 2 * var(--chet)); margin: 0 auto; padding: 0 var(--chet); }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  padding: 12px 16px; border-radius: 8px;
  background: var(--eeg-tugma); color: var(--eeg-tugma-matn); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 16px; }

/* ---------- Bosh ekran ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--hero-fon);
  color: var(--hero-matn);
  border-bottom: 1px solid var(--hero-chiziq);
  min-height: min(760px, 100svh);
  display: flex;
  flex-direction: column;
}
.hero :focus-visible { outline-color: var(--hero-fokus); }
.hero__e {
  position: absolute;
  top: 128px;
  bottom: 64px;
  left: 75%;
  fill: var(--hero-e);
  pointer-events: none;
}
.hero__e svg { height: 100%; width: auto; }

.bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.bar__logo { flex: none; padding: 4px 0; border-radius: 8px; }
.bar__logo img { width: 240px; height: auto; }
.bar__nav { display: flex; gap: 28px; margin-left: auto; }
.bar__nav a, .bar .til a {
  color: var(--hero-matn);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 10px 0;
}
.bar__nav a:hover { text-decoration: underline; }
.bar__tools { display: flex; align-items: center; gap: 20px; }
.bar__nav + .bar__tools { margin-left: 8px; }

.til { display: flex; gap: 4px; }
.til a { padding: 10px 6px; }
.bar .til a { color: var(--hero-lid); padding: 10px 6px; }
.bar .til a[aria-current="page"] { color: var(--hero-matn); text-decoration: underline; text-decoration-thickness: 2px; }
.bar .til a:hover { color: var(--hero-matn); }

.rejim {
  display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--hero-lid); border-radius: 8px;
  background: var(--hero-fon); color: var(--hero-matn);
  cursor: pointer;
}
.rejim:hover { background: var(--hero-hover); }
.rejim__quyosh { display: none; }

.hero__body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 48px;
  padding-bottom: 120px;
}
.hero h1 {
  max-width: 820px;
  font-family: var(--sarlavha);
  font-weight: 600;
  font-size: clamp(44px, 2.4rem + 3.6vw, 88px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero__lead {
  max-width: 34ch;
  margin-top: 28px;
  color: var(--hero-lid);
  font-size: clamp(20px, 1rem + 0.7vw, 28px);
  line-height: 1.43;
}

.btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 12px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 8px;
  background: var(--eeg-tugma);
  color: var(--eeg-tugma-matn);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color 200ms cubic-bezier(0.2, 0, 0, 1);
}
.btn:hover, .btn:active { background: var(--eeg-tugma-faol); }
.btn--hero { margin-top: 44px; background: var(--hero-tugma); color: var(--hero-tugma-matn); }
.btn--hero:hover, .btn--hero:active { background: var(--hero-tugma-faol); }
.btn__manzil { font-weight: 400; padding-left: 12px; border-left: 1px solid currentColor; }

/* ---------- Bo'limlar ---------- */
.sec { padding: 112px 0; }
.sec + .sec { border-top: 1px solid var(--eeg-chegara); }
.sec--panel { background: var(--eeg-karta); border-top: 0; }
.sec--panel + .sec { border-top: 0; }
.sec h2 {
  font-family: var(--sarlavha);
  font-weight: 600;
  font-size: 48px;
  line-height: 1.15;
  color: var(--eeg-matn);
  text-wrap: balance;
}
.sec__lead { margin-top: 16px; max-width: 60ch; color: var(--eeg-matn-2); font-size: 20px; }

.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; align-items: start; }
.split h2 { grid-column: 1 / span 4; }
.split__text { grid-column: 6 / span 7; }
.lid { font-size: 22px; line-height: 1.5; max-width: 62ch; }
.ikkinchi { margin-top: 20px; max-width: 62ch; color: var(--eeg-matn-2); font-size: 20px; }

.yonalish { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 48px; margin-top: 64px; }
.yonalish li { border-top: 1px solid var(--eeg-chegara); padding-top: 28px; }
.ikon { width: 32px; height: 32px; color: var(--eeg-urgu); }
.yonalish h3, .forum h3 {
  font-family: var(--sarlavha-kichik);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.25;
  color: var(--eeg-matn);
}
.yonalish h3 { margin-top: 20px; max-width: 22ch; }
.yonalish p { margin-top: 10px; max-width: 46ch; color: var(--eeg-matn-2); }

.forumlar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.forum {
  display: flex;
  flex-direction: column;
  padding: 40px;
  background: var(--forum-fon);
  border: 1px solid var(--eeg-chegara);
  border-radius: 16px;
}
.forum__qisqa { color: var(--eeg-urgu); font-weight: 600; font-size: 16px; letter-spacing: 0.01em; }
.forum h3 { margin-top: 12px; }
.forum h3 + p { margin-top: 8px; color: var(--eeg-matn-2); }
.forum .btn { margin-top: 36px; }

.manzil { display: flex; gap: 16px; align-items: flex-start; }
.manzil .ikon { flex: none; margin-top: 2px; }
.manzil__yorliq { color: var(--eeg-matn-3); font-weight: 600; font-size: 16px; }
address { margin-top: 6px; font-style: normal; font-size: 22px; line-height: 1.45; }
.yuridik { margin-top: 32px; padding-left: 48px; color: var(--eeg-matn-3); font-size: 16px; }

.pas { border-top: 1px solid var(--eeg-chegara); }
.pas__ichi { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; color: var(--eeg-matn-3); font-size: 16px; }
.pas .til a { color: var(--eeg-matn-2); font-weight: 600; font-size: 16px; text-decoration: none; }
.pas .til a[aria-current="page"] { color: var(--eeg-matn); text-decoration: underline; text-decoration-thickness: 2px; }

/* 404 */
.yoq { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.yoq h1 { font-family: var(--sarlavha); font-weight: 600; font-size: 48px; line-height: 1.15; }
.yoq__til { display: grid; gap: 28px; }
.yoq__til p { color: var(--eeg-matn-2); }

/* ---------- Kichik ekran ---------- */
@media (max-width: 1080px) {
  .bar__nav { display: none; }
  .bar__tools { margin-left: auto; }
}
@media (max-width: 860px) {
  :root { --chet: 24px; }
  .split h2, .split__text { grid-column: 1 / -1; }
  .yonalish, .forumlar { grid-template-columns: minmax(0, 1fr); }
  .sec { padding: 80px 0; }
}
@media (max-width: 720px) {
  :root { --chet: 20px; }
  .hero { min-height: 0; }
  .bar { flex-wrap: wrap; gap: 8px 16px; padding-top: 20px; padding-bottom: 12px; }
  .hero__body { padding-top: 40px; padding-bottom: 236px; justify-content: flex-start; }
  .hero__e { top: auto; bottom: 0; left: 58%; height: 200px; }
  .hero__lead { margin-top: 20px; }
  .btn--hero { margin-top: 32px; }
  .sec { padding: 64px 0; }
  .sec h2 { font-family: var(--sarlavha-kichik); font-size: 34px; line-height: 1.2; }
  .yonalish { margin-top: 40px; gap: 40px; }
  .yonalish h3, .forum h3 { font-size: 24px; }
  .lid, address { font-size: 20px; }
  .ikkinchi, .sec__lead { font-size: 18px; }
  .forumlar { margin-top: 40px; }
  .forum { padding: 28px 24px; }
  .btn { flex-wrap: wrap; }
  .yuridik { padding-left: 0; }
}
@media (max-width: 400px) {
  .bar__tools { width: 100%; justify-content: space-between; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
