/* ========== BASE: o'zgaruvchilar, reset, tipografiya ========== */

@font-face {
  font-family: "Pretendard Variable";
  src: url("../fonts/PretendardVariable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Ranglar */
  --color-brand: #FFC400;
  --color-brand-dark: #E6B000;
  --color-text: #111111;
  --color-text-muted: #4A4A4A;
  --color-bg: #FFFFFF;
  --color-line: #E5E5E5;
  --color-blue: #002DFF;
  --color-red: #E51922;

  /* Shrift */
  --font-main: "Pretendard Variable", system-ui, -apple-system, "Segoe UI",
               "Noto Sans KR", "Malgun Gothic", sans-serif;

  /* Bo'sh joy */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 20px; /* CRM oynalari va bildirishnoma shundan foydalanadi (ilgari aniqlanmagan edi: ichki bo'sh joy yo'qolardi) */
  --space-6: 24px; --space-8: 32px; --space-12: 48px;
  --space-16: 64px; --space-24: 96px;

  /* Shakl */
  --radius-btn: 12px;
  --radius-card: 20px;
  --container: 1120px;
  --shadow-card: 0 6px 20px rgba(0, 0, 0, 0.06);

  /* Sarlavha o'lchamlari (mobildan kompyuterga silliq) */
  --fs-h1: clamp(2rem, 1.2rem + 3.6vw, 3.5rem);
  --fs-h2: clamp(1.625rem, 1.2rem + 1.8vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px; /* yopishqoq header ostida qolmasligi uchun */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-main);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1 { font-size: var(--fs-h1); line-height: 1.15; font-weight: 700; }
h2 { font-size: var(--fs-h2); line-height: 1.2;  font-weight: 700; }
h3 { font-size: var(--fs-h3); line-height: 1.3;  font-weight: 600; }

a { color: var(--color-blue); }

button, select { font: inherit; color: inherit; }

[hidden] { display: none !important; }

@media (min-width: 1024px) {
  body { font-size: 1.125rem; }
}

/* Koreys tili */
:lang(ko) { word-break: keep-all; line-height: 1.75; }

/* Klaviatura fokusi */
:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 3px;
}

/* ========== YORDAMCHI SINFLAR ========== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 200;
  padding: 12px 16px;
  background: var(--color-text);
  color: #fff;
  border-radius: var(--radius-btn);
}
.skip-link:focus { top: 16px; }

/* ========== TUGMALAR ========== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 var(--space-6);
  border: 2px solid transparent;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, transform .1s;
}
.btn:active { transform: translateY(1px); }

/* Oq fonda: sariq tugma, qora matn */
.btn--primary { background: var(--color-brand); color: var(--color-text); }
.btn--primary:hover { background: var(--color-brand-dark); }

/* Sariq fonda: qora tugma, oq matn */
.btn--dark { background: var(--color-text); color: #fff; }
.btn--dark:hover { background: #2b2b2b; }

.btn--outline { background: transparent; color: var(--color-text); border-color: var(--color-text); }
.btn--outline:hover { background: var(--color-text); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
