/**
 * FayzliBazar — base: design tokens, reset, typography, page shell.
 *
 * Token qiymatlari design_handoff_fayzlibazar/README.md dagi palitradan
 * (logotipdagi to'q ko'k #143c78 asosida). O'zgartirishdan oldin handoff bilan solishtiring.
 */

:root {
    /* Ranglar */
    --navy: #143c78;
    --navy-dark: #0d2b58;
    --navy-light: #1d54a5;
    --navy-tint: #e9effa;
    --gold: #f2b035;
    --gold-ink: #3a2703;
    --gold-text: #8a5a00;
    --gold-tint: #fdf3dd;
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-2: #f8fafd;
    --img-bg: #eef1f7;
    --border: #e3e8f1;
    --border-input: #d4dced;
    --border-chip: #dbe2ef;
    --text: #17233a;
    --text-2: #3c4a63;
    --text-muted: #68758d;
    --text-faint: #9aa6bd;
    --on-navy: #c6d5ec;
    --on-navy-2: #bcd0ea;
    --success: #1c7c4b;
    --danger: #c0392b;
    --link-hover: #b45309;

    /* Shakl */
    --radius-card: 16px;
    --radius-panel: 20px;
    --radius-control: 10px;
    --radius-pill: 999px;
    --shadow-card-hover: 0 10px 28px rgba(20, 60, 120, 0.14);

    /* Tipografika / o'lchamlar */
    --font: 'Manrope', sans-serif;
    --container: 1200px;
    --container-pad: 24px;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    font-family: var(--font);
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
}

a {
    color: var(--navy);
    text-decoration: none;
    transition: color 0.15s;
}

a:hover {
    color: var(--link-hover);
}

img {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-weight: 800;
    line-height: 1.2;
}

p {
    margin: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Sahifa skeleti: footer doim pastda turadi */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
}

.page__main {
    flex: 1;
}

.container {
    max-width: var(--container);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

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

@media (max-width: 480px) {
    :root {
        --container-pad: 16px;
    }
}

/* iOS Safari 16px dan kichik shriftli inputga fokusda sahifani zumlaydi */
@media (max-width: 760px) {
    input,
    select,
    textarea {
        font-size: 16px;
    }
}
