/* ============================================================
   Chronic Travel — style.css
   Ranglar: To'q zumrad #032B2B, Oltin #D4AF37
   Light / Dark rejim qo'llab-quvvatlanadi
   ============================================================ */

:root {
    --green: #032B2B;
    --green-2: #064040;
    --green-3: #0a5555;
    --teal-deep: #04272B;
    --sand: #F7F5EC;
    --gold: #D4AF37;
    --gold-light: #e5c463;

    /* Light tema (default) */
    --bg: #f7f5ef;
    --surface: #ffffff;
    --surface-2: #f2efe6;
    --text: #14201f;
    --muted: #5c6b6a;
    --border: #dfe4e3;
    --section-alt: #ffffff;

    --shadow: 0 18px 45px rgba(3, 43, 43, 0.14);
    --radius: 18px;
    --container: 1180px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

[data-theme="dark"] {
    --bg: #021312;
    --surface: #062625;
    --surface-2: #0a3231;
    --text: #eef4f3;
    --muted: #9fbab8;
    --border: rgba(212, 175, 55, 0.14);
    --section-alt: #041c1b;
    --shadow: 0 22px 55px rgba(0, 0, 0, 0.6);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background .35s, color .35s;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(900px 520px at 88% -6%, rgba(212, 175, 55, 0.10), transparent 60%),
        radial-gradient(820px 620px at -12% 18%, rgba(10, 85, 85, 0.10), transparent 55%);
    transition: background .4s ease;
}
[data-theme="dark"] body::before {
    background:
        radial-gradient(1000px 620px at 88% -6%, rgba(212, 175, 55, 0.20), transparent 60%),
        radial-gradient(950px 720px at -12% 22%, rgba(15, 130, 130, 0.24), transparent 55%),
        radial-gradient(700px 500px at 50% 108%, rgba(212, 175, 55, 0.10), transparent 60%);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.15; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: 2px solid transparent;
    border-radius: 60px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
    white-space: nowrap;
}
.btn--gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--green);
    box-shadow: 0 12px 26px rgba(212, 175, 55, 0.35);
}
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(212, 175, 55, 0.5); }
.btn--outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}
.btn--outline:hover { background: #fff; color: var(--green); transform: translateY(-3px); }
.btn--ghost {
    background: transparent;
    color: var(--green);
    border-color: var(--gold);
}
[data-theme="dark"] .btn--ghost { color: var(--gold); }
.btn--ghost:hover { background: var(--gold); color: var(--green); }
.btn--sm { padding: 11px 18px; font-size: 0.85rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    padding: 16px 0;
    transition: background .3s, padding .3s, box-shadow .3s;
}
.header.scrolled {
    background: rgba(3, 43, 43, 0.82);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    padding: 10px 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}
[data-theme="dark"] .header.scrolled { background: rgba(2, 16, 16, 0.8); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; }
.logo__img { height: 52px; width: auto; display: block; transition: height .3s; }
.header.scrolled .logo__img { height: 44px; }
.logo__mark {
    display: grid; place-items: center;
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--green);
    border-radius: 12px;
    font-size: 1.2rem;
    transform: rotate(-8deg);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.45);
}
.logo__text { font-family: 'Playfair Display', serif; font-size: 1.35rem; letter-spacing: .3px; color: #fff; }
.logo__text span { color: var(--gold); }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 30px; }
.nav__link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.98rem;
    position: relative;
    padding: 4px 0;
}
.nav__link::after {
    content: ''; position: absolute; left: 0; bottom: -2px;
    width: 0; height: 2px; background: var(--gold); transition: width .3s var(--ease);
}
.nav__link:hover::after, .nav__link.active::after { width: 100%; }
.nav__link:hover { color: var(--gold); }

/* Language switch */
.lang { display: inline-flex; background: rgba(255, 255, 255, 0.12); border-radius: 30px; padding: 3px; }
.lang__btn {
    border: none; background: transparent; cursor: pointer;
    color: rgba(255, 255, 255, 0.85);
    font-family: inherit; font-weight: 700; font-size: 0.8rem;
    padding: 6px 12px; border-radius: 30px;
    transition: background .25s, color .25s;
}
.lang__btn.active { background: var(--gold); color: var(--green); }
.lang__btn:hover:not(.active) { color: #fff; }

/* Theme toggle */
.theme-toggle {
    width: 42px; height: 42px; flex: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%; cursor: pointer;
    display: grid; place-items: center;
    font-size: 1.1rem; line-height: 1;
    transition: background .25s, transform .25s;
}
.theme-toggle:hover { background: rgba(255, 255, 255, 0.2); transform: rotate(-15deg); }
[data-theme="dark"] .theme-toggle {
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.35);
}

.header__book { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.header__cta { padding: 11px 22px; }
.header__phone {
    color: var(--gold);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: .3px;
    white-space: nowrap;
    transition: color .2s;
}
.header__phone:hover { color: var(--gold-light); text-decoration: underline; }

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none; border: none; cursor: pointer; padding: 6px;
}
.nav__toggle span {
    width: 26px; height: 3px; background: #fff; border-radius: 3px;
    transition: transform .3s, opacity .3s;
}
.nav__toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    color: #fff;
    background-color: var(--teal-deep);
    padding: 140px 0 90px;
    overflow: hidden;
}
/* Orqa fon rasmi — kursor bilan parallaks harakatlanadi */
.hero__bg {
    position: absolute;
    inset: -6%;
    z-index: 0;
    background: url('images/hero-day.jpg') center/cover no-repeat;
    transition: transform .4s ease-out;
    will-change: transform;
}
[data-theme="dark"] .hero__bg {
    background-image: url('images/hero-night.jpg');
    /* Kunduzgi plajni quyosh botishi ohangiga aylantiradi */
    filter: brightness(0.72) saturate(1.42) sepia(0.34) hue-rotate(-14deg) contrast(1.05);
}
/* Desktop fon video (ovozsiz, loop) */
.hero__video {
    position: absolute; inset: 0; z-index: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    pointer-events: none;
}
[data-theme="dark"] .hero__video { filter: brightness(0.58) saturate(1.05) contrast(1.02); }
@media (min-width: 761px) { .hero__bg { display: none; } }  /* desktopda video ko'rinadi */

/* Mobil fon slayd-shou (crossfade + yumshoq zoom) — desktopda yashirin */
.hero__slides { position: absolute; inset: 0; z-index: 0; display: none; overflow: hidden; }
.hero__slide {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.4s ease;
}
.hero__slide.is-active { opacity: 1; animation: heroKen 7s ease-out forwards; }
@keyframes heroKen { from { transform: scale(1.03); } to { transform: scale(1.13); } }
/* Matn o'qilishi uchun gradient qatlam (kunduzi — dengiz-yashil, tunda — quyosh botishi ohangi) */
.hero__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(4, 39, 43, 0.82) 0%, rgba(4, 39, 43, 0.44) 42%, rgba(4, 39, 43, 0.06) 70%, transparent 100%),
        linear-gradient(to top, #04272B 0%, rgba(4, 39, 43, 0.72) 16%, transparent 52%);
    pointer-events: none;
}
[data-theme="dark"] .hero__scrim {
    background:
        linear-gradient(90deg, rgba(24, 10, 4, 0.82) 0%, rgba(40, 16, 6, 0.46) 42%, rgba(60, 26, 10, 0.12) 72%, transparent 100%),
        linear-gradient(to top, #0b0503 0%, rgba(16, 7, 3, 0.72) 16%, transparent 52%);
}
.hero__content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    transition: transform .4s ease-out;
    will-change: transform;
}
.hero__eyebrow {
    display: inline-block;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 18px;
    padding: 7px 16px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 40px;
}
.hero__title { font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 800; margin-bottom: 22px; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35); }
.hero__title span { color: var(--gold); text-shadow: 0 0 30px rgba(212, 175, 55, 0.45); }
.hero__text { font-size: 1.12rem; max-width: 600px; color: rgba(255, 255, 255, 0.88); margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 56px; }

.hero__stats { display: flex; gap: 46px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat__num { font-family: 'Playfair Display', serif; font-size: 2.4rem; font-weight: 800; color: var(--gold); }
.stat__label { font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); }

/* ---------- Section base ---------- */
.section { padding: 96px 0; }
.section__head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section__eyebrow {
    color: var(--gold); font-weight: 700; letter-spacing: 2.5px;
    text-transform: uppercase; font-size: 0.8rem; margin-bottom: 12px;
}
.section__title { font-size: clamp(1.9rem, 4vw, 2.9rem); color: var(--text); margin-bottom: 16px; }
[data-theme="dark"] .section__title { color: #fff; }
.section__title::after {
    content: '';
    display: block;
    width: 60px; height: 3px;
    margin-top: 16px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 3px;
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.5);
}
.section__head .section__title::after { margin-left: auto; margin-right: auto; }
.section__lead { color: var(--muted); font-size: 1.05rem; }

/* ---------- Instagram (gorizontal, qum rangida) ---------- */
.insta { background: var(--sand); color: #16302f; }
.insta .section__title { color: var(--teal-deep); }
.insta__eyebrow { color: #b7902a; display: inline-flex; align-items: center; gap: 8px; justify-content: center; }
.insta__eyebrow svg { color: #C13584; }
.insta__row { display: flex; justify-content: center; }
.insta__card {
    background: #fff;
    border-radius: 22px;
    padding: 24px 28px;
    box-shadow: 0 20px 50px rgba(4, 39, 43, 0.12);
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    align-items: center;
    border: 1px solid rgba(4, 39, 43, 0.06);
    max-width: 860px;
    width: 100%;
    color: inherit;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.insta__card:hover { transform: translateY(-4px); box-shadow: 0 26px 60px rgba(4, 39, 43, 0.18); }
.insta__avatar {
    flex: none;
    width: 88px; height: 88px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
}
.insta__avatar-img {
    width: 100%; height: 100%;
    border-radius: 50%;
    background: url('images/insta-avatar.jpg') center/cover;
    border: 3px solid #fff;
}
.insta__info { flex: 1; min-width: 155px; display: flex; flex-direction: column; gap: 4px; }
.insta__handle { font-weight: 800; color: var(--teal-deep); font-size: 1.12rem; }
.insta__card:hover .insta__handle { color: #C13584; }
.insta__name { font-weight: 600; color: #24413f; font-size: 0.95rem; }
.insta__bio { color: #5c6b6a; font-size: 0.85rem; }
.insta__followers { font-size: 0.9rem; color: #24413f; margin-top: 2px; }
.insta__followers strong { color: var(--teal-deep); }
.insta__btn { margin: 0 0 0 auto; align-self: center; flex: none; padding: 12px 24px; white-space: nowrap; }
.insta__gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.insta__shot {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 18px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: 0 16px 40px rgba(4, 39, 43, 0.16);
    display: block;
    transition: transform .35s var(--ease);
}
.insta__shot::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(4, 39, 43, 0.65), transparent 55%);
}
.insta__shot span {
    position: absolute; left: 16px; bottom: 14px; z-index: 1;
    font-family: 'Playfair Display', serif; font-style: italic; font-weight: 700;
    color: #fff; font-size: 1.3rem; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}
.insta__shot:hover { transform: translateY(-6px); }

/* Mobil menyu ichidagi tema tugmasi (desktopda yashirin) */
.nav__theme { display: none; }
.nav__theme-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #fff; border-radius: 40px;
    padding: 11px 20px; cursor: pointer;
    font-family: inherit; font-weight: 600; font-size: 1rem;
    transition: background .25s;
}
.nav__theme-btn:hover { background: rgba(255, 255, 255, 0.18); }
.nav__theme-icon { font-size: 1.15rem; }

/* ---------- Tours ---------- */
.tours { background: var(--bg); }
.tours__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}
.tour-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex; flex-direction: column;
    border: 1px solid var(--border);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.tour-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(3, 43, 43, 0.22), 0 0 0 1px rgba(212, 175, 55, 0.35);
    border-color: rgba(212, 175, 55, 0.5);
}
[data-theme="dark"] .tour-card:hover {
    box-shadow: 0 26px 54px rgba(0, 0, 0, 0.65), 0 0 34px rgba(212, 175, 55, 0.18);
}
.tour-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.tour-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tour-card:hover .tour-card__media img { transform: scale(1.08); }
.tour-card__badge {
    position: absolute; top: 14px; left: 14px;
    background: var(--gold); color: var(--green);
    font-size: 0.75rem; font-weight: 700;
    padding: 6px 14px; border-radius: 30px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.tour-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.tour-card__meta {
    display: flex; justify-content: space-between;
    color: var(--muted); font-size: 0.85rem; font-weight: 600; margin-bottom: 8px;
}
.tour-card__title { font-size: 1.4rem; color: var(--text); margin-bottom: 10px; }
[data-theme="dark"] .tour-card__title { color: #fff; }
.tour-card__desc { color: var(--muted); font-size: 0.95rem; margin-bottom: 18px; flex: 1; }
.tour-card__price { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 800; color: var(--gold); display: block; margin-bottom: 16px; }
.tour-card__price small { font-family: 'Manrope', sans-serif; font-size: 0.75rem; font-weight: 500; color: var(--muted); }
.tour-card__actions { display: flex; gap: 10px; }
.tour-card__actions .btn { flex: 1; }

/* ---------- About & License ---------- */
.about { background: var(--section-alt); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about__text .section__title { text-align: left; }
.about__text .section__eyebrow { display: block; }
.about__text p { color: var(--muted); margin-bottom: 20px; }
.about__list { margin: 0 0 28px; display: grid; gap: 12px; }
.about__list li {
    position: relative; padding-left: 34px; color: var(--text); font-weight: 500;
}
.about__list li::before {
    content: '✔'; position: absolute; left: 0; top: 0;
    width: 22px; height: 22px; display: grid; place-items: center;
    background: rgba(212, 175, 55, 0.18); color: var(--gold);
    border-radius: 50%; font-size: 0.75rem;
}

.license { display: flex; justify-content: center; }
.license__figure {
    margin: 0;
    background: var(--surface);
    padding: 16px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    max-width: 420px;
    transition: transform .4s var(--ease);
}
.license__figure:hover { transform: translateY(-6px) rotate(-0.5deg); }
.license__figure img { border-radius: 12px; width: 100%; height: auto; }
.license__cap {
    display: flex; flex-direction: column; gap: 4px;
    text-align: center; margin-top: 14px;
}
.license__cap span { color: var(--gold); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; font-size: 0.75rem; }
.license__cap strong { color: var(--text); font-size: 0.92rem; }

/* ---------- Contact ---------- */
.contact { background: var(--bg); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact__info .section__title, .contact__info .section__eyebrow { text-align: left; display: block; }
.contact__lead { color: var(--muted); margin-bottom: 28px; }
.contact__list { display: grid; gap: 16px; }
.contact__list li { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.contact__list span:first-child { font-size: 1.2rem; }
.contact__list a:hover { color: var(--gold); }

.order-form {
    background: var(--surface);
    padding: 36px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--gold);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.92rem; color: var(--text); }
.field input, .field select {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.98rem;
    background: var(--surface-2);
    color: var(--text);
    transition: border-color .25s, box-shadow .25s;
}
.field input::placeholder { color: var(--muted); }
.field input:focus, .field select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.18);
}
.field.invalid input, .field.invalid select { border-color: #e5645f; }
.field__error { color: #e5645f; font-size: 0.8rem; min-height: 14px; display: block; margin-top: 5px; }
.order-form__success {
    background: rgba(212, 175, 55, 0.15);
    color: var(--text);
    font-weight: 600;
    padding: 14px;
    border-radius: 12px;
    text-align: center;
    margin-top: 16px;
}

/* ---------- Footer ---------- */
.footer { background: var(--green); color: rgba(255, 255, 255, 0.82); padding-top: 70px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer__about { margin-top: 16px; font-size: 0.95rem; max-width: 300px; }
.footer__col h4 { color: #fff; font-size: 1.15rem; margin-bottom: 18px; }
.footer__list { display: grid; gap: 10px; font-size: 0.94rem; }
.footer__list--links a:hover { color: var(--gold); padding-left: 4px; transition: padding .2s; }
.socials { display: flex; flex-direction: column; gap: 12px; }
.social {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 10px 16px; border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff; font-weight: 600; font-size: 0.92rem;
    transition: background .25s, transform .25s, color .25s;
    width: fit-content;
}
.social svg { flex: none; }
.social--ig:hover { background: linear-gradient(135deg, #feda75, #d62976, #962fbf); transform: translateY(-3px); }
.social--tg:hover { background: #229ED9; transform: translateY(-3px); }

.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 22px 0; }
.footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 0.9rem; }
.footer__offer { color: var(--gold); font-weight: 600; }
.footer__offer:hover { text-decoration: underline; }

/* ---------- Floating button ---------- */
.float-btn {
    position: fixed; right: 22px; bottom: 22px; z-index: 90;
    width: 58px; height: 58px; border-radius: 50%;
    display: grid; place-items: center; color: #fff;
    background: #229ED9;
    box-shadow: 0 12px 30px rgba(34, 158, 217, 0.5);
    animation: pulse 2.4s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 158, 217, 0.5); }
    70% { box-shadow: 0 0 0 16px rgba(34, 158, 217, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 158, 217, 0); }
}

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(3, 20, 20, 0.7); backdrop-filter: blur(4px); animation: fade .3s ease; }
.modal__box {
    position: relative; z-index: 1;
    background: var(--surface); color: var(--text);
    width: min(680px, 100%); max-height: 90vh; overflow-y: auto;
    border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    animation: pop .35s var(--ease);
}
.modal__media { aspect-ratio: 16/9; overflow: hidden; border-radius: 20px 20px 0 0; }
.modal__media img { width: 100%; height: 100%; object-fit: cover; }
.modal__close {
    position: absolute; top: 14px; right: 14px; z-index: 2;
    width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(0, 0, 0, 0.5); color: #fff; font-size: 1rem;
    transition: background .2s;
}
.modal__close:hover { background: rgba(0, 0, 0, 0.8); }
.modal__body { padding: 26px 28px 30px; }
.modal__badge { display: inline-block; background: var(--gold); color: var(--green); font-weight: 700; font-size: 0.75rem; padding: 5px 14px; border-radius: 30px; margin-bottom: 12px; }
.modal__title { font-size: 1.8rem; color: var(--text); margin-bottom: 6px; }
[data-theme="dark"] .modal__title { color: #fff; }
.modal__meta { color: var(--muted); font-weight: 600; margin-bottom: 16px; }
.modal__desc { color: var(--muted); margin-bottom: 18px; }
.modal__list { display: grid; gap: 10px; margin-bottom: 24px; }
.modal__list li { position: relative; padding-left: 28px; color: var(--text); }
.modal__list li::before { content: '✔'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.modal__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.modal__price { font-family: 'Playfair Display', serif; font-size: 1.7rem; font-weight: 800; color: var(--gold); }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(30px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .about__grid, .contact__grid { grid-template-columns: 1fr; gap: 40px; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .license__figure { max-width: 360px; }
    .hero__content { max-width: none; }
    .hero__bg { background-position: 60% center; }
    .insta__row { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 760px) {
    .nav {
        position: fixed; inset: 0 0 0 auto;
        width: min(80%, 330px);
        background: var(--green);
        flex-direction: column;
        padding: 100px 30px 40px;
        transform: translateX(100%);
        transition: transform .4s var(--ease);
        box-shadow: -20px 0 50px rgba(0, 0, 0, 0.35);
        margin-left: 0;
    }
    .nav.open { transform: translateX(0); }
    .nav__list { flex-direction: column; align-items: flex-start; gap: 22px; }
    .nav__link { font-size: 1.1rem; }
    .nav__lang { margin-top: 10px; }
    .nav__toggle { display: flex; z-index: 101; }
    .header__book { display: none; }
    /* Kun/tun tugmasi tepadan olib tashlanib, menyu (3 chiziq) ichiga o'tadi */
    .theme-toggle { display: none; }
    .nav__theme { display: block; margin-top: 6px; }
    .section { padding: 70px 0; }
    .hero__stats { gap: 28px; }
    .stat__num { font-size: 1.9rem; }
    /* Mobilda matn o'qilishi uchun vertikal qoraytiruvchi qatlam + pastda teal band */
    .hero__scrim {
        background:
            linear-gradient(to bottom, rgba(4, 39, 43, 0.62) 0%, rgba(4, 39, 43, 0.46) 42%, rgba(4, 39, 43, 0.82) 84%, #04272B 100%);
    }
    [data-theme="dark"] .hero__scrim {
        background:
            linear-gradient(to bottom, rgba(20, 9, 3, 0.55) 0%, rgba(30, 13, 5, 0.32) 30%, rgba(14, 6, 2, 0.88) 88%, #0b0503 100%);
    }
    /* Telefonda: video yashirin, kun rejimida slayd-shou, tun rejimida quyosh botishi manzarasi */
    .hero__video { display: none; }
    .hero__bg { background-image: url('images/hero-mobile.jpg'); background-position: center; }
    .hero__slides { display: block; }
    .hero__bg { display: none; }
    [data-theme="dark"] .hero__slides { display: none; }
    [data-theme="dark"] .hero__bg { display: block; }
    .insta__shot span { font-size: 1.05rem; left: 12px; bottom: 10px; }
}

@media (max-width: 600px) {
    .insta__btn { flex-basis: 100%; margin: 4px 0 0; }
    .insta__card { padding: 22px 20px; }
}

@media (max-width: 520px) {
    .footer__grid { grid-template-columns: 1fr; }
    .footer__bottom-inner { flex-direction: column; text-align: center; }
    .order-form { padding: 26px 20px; }
    .hero__actions .btn { width: 100%; }
    .theme-toggle { width: 38px; height: 38px; font-size: 1rem; }
}
