/* =========================================================
   STYLE.CSS — to'q jigarrang + oltin
   ========================================================= */
:root {
  --bg: #0f0a06;
  --bg-2: #18110a;
  --bg-3: #221810;
  --card: rgba(58, 40, 22, 0.42);
  --line: rgba(214, 176, 110, 0.22);
  --line-strong: rgba(214, 176, 110, 0.45);
  --cream: #f6ecd8;
  --text: #e9dcc3;
  --muted: #b5a283;
  --gold-1: #f7e3b1;
  --gold-2: #dcb978;
  --gold-3: #b48a48;
  --gold-4: #8a6330;
  --gold: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 45%, var(--gold-3) 100%);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 28px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

/* Fon: islomiy yulduz naqshi + iliq nur */
.bg-pattern {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1100px 700px at 30% 0%, rgba(150, 100, 45, 0.28), transparent 60%),
    radial-gradient(900px 600px at 90% 40%, rgba(120, 80, 35, 0.16), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23d6b06e' stroke-opacity='0.055' stroke-width='1'%3E%3Cpath d='M60 18 L72 48 L102 60 L72 72 L60 102 L48 72 L18 60 L48 48 Z'/%3E%3Cpath d='M30 30 L90 30 L90 90 L30 90 Z' transform='rotate(45 60 60)'/%3E%3Ccircle cx='60' cy='60' r='12'/%3E%3C/g%3E%3C/svg%3E"),
    var(--bg);
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.section { padding: 72px 0; position: relative; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }

/* Oltin matn */
.gold-text {
  background: var(--gold);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Tugma ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 64px; padding: 0 44px;
  border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--sans); font-weight: 800; font-size: 18px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #2a1a08; text-decoration: none;
  background: linear-gradient(180deg, #fbebc4 0%, #e6c587 48%, #c49a57 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -3px 0 rgba(120, 80, 30, 0.35),
    0 10px 40px rgba(220, 175, 100, 0.28),
    0 2px 0 rgba(0, 0, 0, 0.4);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.04); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -3px 0 rgba(120,80,30,.35), 0 16px 50px rgba(220,175,100,.38), 0 2px 0 rgba(0,0,0,.4); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--gold-1); outline-offset: 4px; }
.btn--wide { width: 100%; }
.btn::after { /* yaltirash */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 45%, transparent 60%);
  background-size: 250% 100%; background-position: 150% 0;
  animation: shine 4.5s ease-in-out infinite;
}
@keyframes shine { 0%, 65% { background-position: 150% 0; } 100% { background-position: -60% 0; } }
.btn.is-loading { pointer-events: none; color: transparent; }
.btn.is-loading::before {
  content: ""; position: absolute; width: 24px; height: 24px; border-radius: 50%;
  border: 3px solid rgba(42, 26, 8, .25); border-top-color: #2a1a08;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.cta { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cta__note { font-size: 16px; color: var(--text); display: inline-flex; align-items: center; gap: 8px; }
.cta__note svg { width: 18px; height: 18px; color: var(--gold-2); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__mark { width: 52px; height: 60px; }
.logo__name { font-family: var(--serif); font-size: 30px; font-weight: 600; letter-spacing: .06em; line-height: 1; }
.logo__sub { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .12em; color: var(--gold-3); text-align: center; margin-top: 3px; }

/* ---------- HERO ---------- */
.hero { padding: 40px 0 30px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 40px; align-items: center; }
.hero__media { position: relative; display: flex; justify-content: center; }
.hero__text { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 26px 0 8px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(40, 28, 15, .6);
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-1);
}
.hero__badge i { width: 8px; height: 8px; border-radius: 50%; background: #e7c27e; box-shadow: 0 0 0 4px rgba(231,194,126,.18); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(231,194,126,0); } }
.hero__title { margin: 6px 0 0; font-family: var(--serif); font-weight: 700; line-height: .95; }
.hero__title .l1 { display: block; font-size: clamp(40px, 5.4vw, 80px); color: var(--cream); letter-spacing: .01em; text-transform: uppercase; }
.hero__title .l2 { display: block; font-size: clamp(50px, 6.6vw, 104px); font-style: italic; font-weight: 600; padding-bottom: .12em; }
.hero__lead { margin: 18px 0 30px; max-width: 560px; font-size: clamp(17px, 1.6vw, 21px); color: var(--text); }
.hero__lead b { color: var(--cream); }

/* Spiker ramkasi (arka) */
.arch {
  position: relative; width: min(440px, 100%); aspect-ratio: 4 / 5;
}
.arch__glow { position: absolute; inset: 8% 5% 10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(214,160,80,.45), transparent); filter: blur(10px); }
.arch__frame {
  position: absolute; inset: 0;
  border-radius: 50% 50% 18px 18px / 34% 34% 18px 18px;
  border: 1.5px solid rgba(220, 185, 120, .55);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(120, 82, 40, .35), rgba(30, 20, 10, .2));
}
.arch__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.arch__frame::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28%; background: linear-gradient(transparent, var(--bg)); }
.arch__inner { position: absolute; inset: 14px; border-radius: 50% 50% 12px 12px / 34% 34% 12px 12px; border: 1px solid rgba(220,185,120,.18); pointer-events: none; z-index: 2; }
.placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.placeholder svg { width: 78%; }
.placeholder span { position: absolute; top: 42%; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(246,236,216,.4); }

/* Suzib yuruvchi arab harflari */
.glyph {
  position: absolute; z-index: 3; font-family: "Amiri", "Noto Naskh Arabic", serif; font-weight: 700; line-height: 1;
  background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.6)) drop-shadow(0 0 1px rgba(255,230,170,.6));
  animation: float 6s ease-in-out infinite;
  user-select: none; pointer-events: none;
}
.glyph--1 { font-size: 96px; left: -4%; top: 16%; }
.glyph--2 { font-size: 110px; right: -6%; top: 10%; animation-delay: -2s; }
.glyph--3 { font-size: 92px; left: -8%; bottom: 14%; animation-delay: -4s; }
.glyph--4 { font-size: 84px; right: -2%; bottom: 8%; animation-delay: -1s; }
@keyframes float { 50% { transform: translateY(-12px) rotate(-3deg); } }

.hero__tagline {
  margin: 34px 0 0; text-align: center;
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: clamp(32px, 5vw, 66px); line-height: 1.1;
}

/* ---------- Bonus kartochkalari ---------- */
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-bottom: 52px; }
.card {
  flex: 0 1 calc(33.333% - 16px); min-width: 260px;
  padding: 18px 18px 30px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  text-align: center;
  transition: transform .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.card--accent { background: linear-gradient(180deg, rgba(110, 76, 38, .55), rgba(58, 40, 22, .45)); border-color: var(--line-strong); }
.card__img {
  height: 210px; border-radius: 20px; display: grid; place-items: center;
  background: radial-gradient(closest-side, rgba(150, 105, 50, .35), rgba(40, 28, 16, .5));
  margin-bottom: 22px;
}
.card__img svg { width: 150px; height: 150px; filter: drop-shadow(0 14px 18px rgba(0,0,0,.55)); }
.card p { margin: 0; font-size: 19px; color: var(--text); line-height: 1.45; }
.card b { color: var(--cream); font-weight: 800; }

/* ---------- Kimlar uchun ---------- */
.h2 { margin: 0 0 40px; text-align: center; font-family: var(--serif); font-weight: 700; font-size: clamp(36px, 5vw, 64px); color: var(--cream); line-height: 1.05; }
.h2 em { font-style: italic; }
.for-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 980px; margin: 0 auto 52px; padding: 0; list-style: none; }
.for-list li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px 24px; border-radius: 22px; border: 1px solid var(--line); background: rgba(30, 21, 12, .6);
  font-size: 18px;
}
.check { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #2a1a08; }
.check svg { width: 16px; height: 16px; }

/* ---------- Spiker ---------- */
.speaker {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
  padding: 44px; border-radius: 40px; border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(55, 37, 20, .55), rgba(25, 17, 10, .55));
  margin-bottom: 52px; position: relative;
}
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.facts li {
  display: flex; gap: 18px; align-items: center;
  padding: 20px 26px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 18px; color: var(--cream);
}
.facts li::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--gold-1); box-shadow: 0 0 12px rgba(247, 227, 177, .5); }
.speaker__photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: 30px; overflow: hidden;
  background: linear-gradient(180deg, #7b5a35, #3b2814);
}
.speaker__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.speaker__seal { position: absolute; right: 18px; bottom: -26px; width: 110px; z-index: 3; filter: drop-shadow(0 10px 20px rgba(0,0,0,.6)); }

/* ---------- Qadamlar ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 52px; counter-reset: s; }
.step { padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.step__n { font-family: var(--serif); font-size: 64px; font-weight: 700; line-height: 1; margin-bottom: 10px; }
.step h3 { margin: 0 0 8px; font-size: 20px; color: var(--cream); }
.step p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- Footer ---------- */
.footer { padding: 60px 0 48px; text-align: center; background: rgba(8, 5, 3, .7); border-top: 1px solid var(--line); }
.footer .logo { justify-content: center; }
.footer__name { margin: 22px 0 18px; font-family: var(--serif); font-size: 34px; color: var(--cream); }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; margin-bottom: 30px; }
.footer__links a { text-decoration: none; font-weight: 600; font-size: 17px; color: var(--text); }
.footer__links a:hover { color: var(--gold-1); }
.footer__legal { max-width: 820px; margin: 0 auto; font-size: 14px; color: rgba(181, 162, 131, .7); }
.footer__legal p { margin: 0 0 14px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 18px; visibility: hidden; opacity: 0; transition: opacity .25s ease, visibility .25s; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal__overlay { position: absolute; inset: 0; background: rgba(6, 4, 2, .7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.modal__box {
  position: relative; width: 100%; max-width: 520px; max-height: calc(100dvh - 36px); overflow-y: auto;
  padding: 36px 34px 28px; border-radius: 36px;
  background: linear-gradient(180deg, #2e2014 0%, #1a110a 100%);
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  transform: translateY(18px) scale(.98); transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.modal.is-open .modal__box { transform: none; }
.modal__close {
  position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(20, 14, 8, .6); color: var(--cream); cursor: pointer;
  display: grid; place-items: center;
}
.modal__close svg { width: 18px; height: 18px; }
.modal__gift { width: 108px; margin: 0 auto 10px; filter: drop-shadow(0 12px 18px rgba(0,0,0,.6)); }
.modal__title { margin: 0 0 24px; text-align: center; font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 4vw, 34px); line-height: 1.15; color: var(--cream); }

.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 15px; color: var(--text); }
.field input {
  width: 100%; height: 60px; padding: 0 22px; border-radius: 18px;
  border: 1px solid var(--line-strong); background: #0d0905; color: var(--cream);
  font-family: var(--sans); font-size: 18px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: rgba(181, 162, 131, .55); }
.field input:focus { border-color: var(--gold-2); box-shadow: 0 0 0 4px rgba(220, 185, 120, .16); }
.field__error { display: none; margin-top: 6px; font-size: 14px; font-weight: 600; color: #ff9d7a; }
.field.has-error input { border-color: #e27a55; }
.field.has-error .field__error { display: block; }
.modal .btn { margin-top: 6px; }
.modal__privacy { margin: 18px 0 0; text-align: center; font-size: 13.5px; color: var(--muted); }
.modal__privacy a { color: var(--text); }

/* ---------- Rahmat sahifasi ---------- */
.thanks { min-height: calc(100dvh - 260px); display: flex; align-items: center; padding: 60px 0; text-align: center; }
.thanks__gift { width: 190px; margin: 0 auto 26px; filter: drop-shadow(0 20px 30px rgba(0,0,0,.6)); animation: float 5s ease-in-out infinite; }
.thanks__title { margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(46px, 8vw, 104px); line-height: 1; color: var(--cream); }
.thanks__title em { font-style: italic; }
.thanks__hello { margin: 0 0 12px; font-size: 18px; font-weight: 700; color: var(--gold-2); letter-spacing: .04em; }
.thanks__text { max-width: 640px; margin: 22px auto 30px; font-size: clamp(17px, 1.7vw, 21px); }
.progress { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 0 auto 34px; padding: 0; list-style: none; }
.progress li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 15px; font-weight: 600; color: var(--muted); }
.progress li.done { color: var(--cream); }
.progress li.done .dot { background: var(--gold); color: #2a1a08; }
.progress li.now { color: var(--gold-1); border-color: var(--line-strong); background: rgba(80, 56, 28, .35); }
.progress .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); font-size: 12px; }
.progress .dot svg { width: 12px; height: 12px; }
.btn--tg svg { width: 26px; height: 26px; }
.thanks__hint { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* ---------- Kirish animatsiyasi ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   MOSLASHUV (planshet / telefon)
   ========================================================= */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hero__media { order: 2; }
  .hero__text { order: 1; }
  .arch { width: min(360px, 82%); }
  .card { flex-basis: calc(50% - 12px); }
  .speaker { grid-template-columns: 1fr; padding: 28px; }
  .speaker__photo { order: -1; max-width: 380px; width: 100%; margin: 0 auto 20px; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .section { padding: 52px 0; }
  .hero { padding-top: 26px; }
  .logo__mark { width: 42px; height: 48px; }
  .logo__name { font-size: 24px; }
  .hero__badge { font-size: 11px; margin-top: 18px; }
  .hero__lead { margin: 14px 0 24px; }
  .btn { width: 100%; min-height: 60px; font-size: 16px; padding: 0 24px; }
  .glyph--1 { font-size: 62px; } .glyph--2 { font-size: 70px; } .glyph--3 { font-size: 60px; } .glyph--4 { font-size: 56px; }
  .card { flex-basis: 100%; min-width: 0; }
  .card__img { height: 170px; }
  .card__img svg { width: 120px; height: 120px; }
  .card p { font-size: 17px; }
  .for-list { grid-template-columns: 1fr; }
  .for-list li { font-size: 16px; padding: 18px; }
  .speaker { padding: 18px; border-radius: 30px; }
  .facts li { font-size: 16px; padding: 16px 20px; border-radius: 22px; }
  .speaker__seal { width: 84px; bottom: -18px; }
  .footer__legal { font-size: 12.5px; }
  .modal { padding: 10px; align-items: end; }
  .modal__box { padding: 30px 20px 22px; border-radius: 30px; }
  .modal__gift { width: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
