/* ============================================
   SHARQ SCHOOL — bitta uzun landing
   Premium burgundy + oq + oltin, mobile-first
   Qoida: matn alohida, rasm alohida — aralashmaydi
   ============================================ */

:root {
  --burgundy: #8B1E3F;
  --burgundy-deep: #5C1129;
  --burgundy-ink: #35081A;
  --burgundy-black: #1F040E;
  --gold: #D9A441;
  --gold-bright: #F0C36B;
  --gold-deep: #B8842A;
  --cream: #FAF4EC;
  --white: #FFFFFF;
  --text-dark: #2B121C;
  --text-body: #4A2A36;
  --text-muted: #8A6A74;

  --font: 'Montserrat', 'Segoe UI', system-ui, sans-serif;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 100px;

  --shadow-gold: 0 10px 30px -8px rgba(217, 164, 65, 0.55);
  --shadow-card: 0 14px 40px -18px rgba(53, 8, 26, 0.30);

  --dur: 600ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

[hidden] { display: none !important; }

.container { max-width: 640px; margin: 0 auto; padding: 0 20px; }

/* ---------- Reveal (JS ishlamasa ham koʻrinadi) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 80ms; }
.reveal-d2 { transition-delay: 160ms; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: var(--burgundy-ink);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.brand img { width: 36px; height: 36px; }
.brand-name {
  color: var(--white);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.07em;
  line-height: 1.1;
  white-space: nowrap;
}
.brand-name small {
  display: block;
  font-weight: 500;
  font-size: 0.52rem;
  letter-spacing: 0.2em;
  color: var(--gold-bright);
}
.header-call {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
  white-space: nowrap;
  padding: 8px 13px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.07);
  transition: border-color 200ms ease, background 200ms ease;
}
.header-call:hover { background: rgba(255,255,255,0.15); border-color: var(--gold); }

/* ============================================
   SAHIFA HERO — faqat matn, toza fon
   ============================================ */
.page-hero {
  background:
    radial-gradient(120% 100% at 50% -20%, #7A1A38 0%, transparent 60%),
    linear-gradient(180deg, var(--burgundy-deep) 0%, var(--burgundy-ink) 90%);
  color: var(--white);
  text-align: center;
  padding: 44px 22px 52px;
}

/* Hero tepa qatori: chapda manzil, o'ngda brend */
.hero-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
  text-align: left;
}
.loc-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(120deg, var(--gold-bright), var(--gold));
  color: var(--burgundy-ink);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-gold);
  white-space: nowrap;
}
.hero-brand-note {
  color: rgba(255,255,255,0.92);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: right;
  max-width: 120px;
}

.page-hero h1 {
  font-weight: 900;
  font-size: clamp(1.55rem, 4.6vw + 0.5rem, 2.8rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  text-wrap: balance;
  max-width: 560px;
  margin: 0 auto;
}
.page-hero h1 .gold {
  color: transparent;
  background: linear-gradient(100deg, var(--gold-bright) 10%, var(--gold) 55%, var(--gold-bright) 90%);
  -webkit-background-clip: text;
          background-clip: text;
}
.page-hero .hero-note {
  color: rgba(255,255,255,0.85);
  font-size: 0.86rem;
  font-weight: 600;
  margin-top: 14px;
}
.page-hero .cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  margin-top: 24px;
}

/* ---------- Tugmalar ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-pill);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), filter 180ms ease;
}
.btn:active { transform: scale(0.97); }

.btn-gold {
  background: linear-gradient(120deg, var(--gold-bright) 0%, var(--gold) 45%, var(--gold-deep) 100%);
  color: var(--burgundy-ink);
  font-size: 0.98rem;
  padding: 16px 30px;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { filter: brightness(1.06); box-shadow: 0 14px 38px -8px rgba(217,164,65,0.7); }

.btn-ghost {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.4);
  color: var(--white);
  font-size: 0.92rem;
  padding: 14px 26px;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }

/* ============================================
   BOʻLIMLAR
   ============================================ */
.section { padding: 52px 0; }

.section h2 {
  font-weight: 900;
  font-size: clamp(1.35rem, 3.8vw + 0.4rem, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--burgundy-ink);
  margin-bottom: 14px;
}
.section h2 .accent { color: var(--burgundy); }
.section .lead {
  font-size: 0.94rem;
  color: var(--text-body);
  margin-bottom: 24px;
  max-width: 560px;
}

/* ---------- Punkt kartochkalari ---------- */
.points-grid { display: grid; gap: 12px; }
.point-card {
  background: var(--white);
  border: 1px solid rgba(139,30,63,0.1);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  gap: 13px;
  align-items: flex-start;
  box-shadow: var(--shadow-card);
}
.point-card .check {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  margin-top: 1px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: var(--burgundy-ink);
  font-size: 0.8rem;
  font-weight: 900;
  display: grid;
  place-items: center;
}
.point-card p { font-size: 0.92rem; font-weight: 600; line-height: 1.5; color: var(--text-dark); }

/* ---------- Rasm bloklari ---------- */
.photo-block { padding: 8px 0 52px; }
.photo-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 22px 50px -20px rgba(53,8,26,0.45);
  border: 1px solid rgba(139,30,63,0.12);
}
.photo-card img { width: 100%; height: auto; }
.photo-caption {
  text-align: center;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 12px;
}

.gallery { display: grid; gap: 14px; }
.gallery-2 { grid-template-columns: repeat(2, 1fr); }
.gallery .photo-card img { aspect-ratio: 3 / 4; object-fit: cover; }

/* ---------- Diagnostika bosqichlari ---------- */
.diag-steps { display: grid; gap: 12px; margin-bottom: 22px; }
.diag-step {
  background: var(--white);
  border: 1px solid rgba(139,30,63,0.1);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--shadow-card);
}
.diag-step-num {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  background: linear-gradient(135deg, rgba(139,30,63,0.12), rgba(217,164,65,0.18));
}
.diag-step p { font-size: 0.9rem; line-height: 1.55; color: var(--text-body); }
.diag-step strong { color: var(--burgundy); font-weight: 800; }

.diag-result {
  background: linear-gradient(120deg, var(--burgundy) 0%, var(--burgundy-deep) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.55;
  margin-bottom: 18px;
  box-shadow: var(--shadow-card);
}
.diag-result strong { color: var(--gold-bright); font-weight: 900; }

.urgency {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--burgundy);
}
.pulse-dot {
  flex: 0 0 auto;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--burgundy);
  position: relative;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(139,30,63,0.5);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ---------- CTA strip (forma boʻlimi) ---------- */
.cta-strip {
  background:
    radial-gradient(110% 90% at 50% -20%, #7A1A38 0%, transparent 60%),
    linear-gradient(180deg, var(--burgundy-deep) 0%, var(--burgundy-ink) 100%);
  color: var(--white);
  text-align: center;
  padding: 44px 22px 52px;
}
.cta-strip .form-title {
  color: var(--white);
  font-weight: 900;
  font-size: clamp(1.4rem, 4vw + 0.4rem, 2.2rem);
  line-height: 1.2;
  text-wrap: balance;
  margin-bottom: 10px;
}
.cta-strip .form-title .gold { color: var(--gold-bright); }
.cta-strip .form-sub {
  color: rgba(255,255,255,0.82);
  font-size: 0.88rem;
  font-weight: 600;
  max-width: 420px;
  margin: 0 auto 26px;
}
.cta-strip .lead-form { text-align: left; }

/* ============================================
   FORMA
   ============================================ */
.form-wrap { max-width: 460px; margin: 0 auto; }
.lead-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: grid;
  gap: 14px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(139,30,63,0.1);
}
.field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.field input,
.field select {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  background: #F6EFE7;
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  outline: none;
  transition: border-color 180ms ease, background 180ms ease;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%238B1E3F' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.field input:focus,
.field select:focus { border-color: var(--burgundy); background: var(--white); }
.field input::placeholder { color: #B39AA3; font-weight: 500; }
.lead-form .btn-gold { width: 100%; font-size: 1rem; }

/* ---------- Telefon xatosi ---------- */
.field-error {
  color: #C21E4B;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 7px;
}
.field input.input-error {
  border-color: #C21E4B;
  background: #FDEEF2;
}

/* ---------- Tasdiqlash bosqichi ---------- */
.confirm-box {
  display: grid;
  gap: 12px;
  background: #F6EFE7;
  border: 1.5px solid rgba(139,30,63,0.25);
  border-radius: var(--radius-md);
  padding: 18px 16px;
}
.confirm-title {
  font-size: 1rem;
  font-weight: 900;
  color: var(--burgundy-ink);
  text-align: center;
}
.confirm-data {
  display: grid;
  gap: 6px;
  justify-items: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
}
.confirm-box .btn-edit {
  background: transparent;
  border: 1.5px solid rgba(139,30,63,0.35);
  color: var(--burgundy);
  font-size: 0.9rem;
  padding: 13px 20px;
}

/* ---------- Kontaktlar ---------- */
.form-contacts {
  margin-top: 26px;
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}
.form-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 180ms ease;
}
.form-contacts.form-contacts-dark a {
  color: var(--white);
  background: rgba(255,255,255,0.14);
  border: 1.5px solid rgba(255,255,255,0.55);
  border-radius: var(--radius-pill);
  padding: 12px 22px;
  font-size: 0.92rem;
  font-weight: 700;
}
.form-contacts.form-contacts-dark a:hover { color: var(--gold-bright); border-color: var(--gold); }
.form-contacts.form-contacts-dark .phone-big {
  color: var(--burgundy-ink);
  background: linear-gradient(120deg, var(--gold-bright), var(--gold));
  border: none;
  font-size: 1.1rem;
  font-weight: 900;
  box-shadow: var(--shadow-gold);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--burgundy-black);
  color: rgba(255,255,255,0.5);
  text-align: center;
  font-size: 0.75rem;
  padding: 26px 20px calc(96px + env(safe-area-inset-bottom, 0px));
}
.site-footer img { width: 42px; margin: 0 auto 10px; opacity: 0.85; }

/* ============================================
   YOPISHQOQ MOBIL PANEL
   ============================================ */
.sticky-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: flex;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(31, 4, 14, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(217,164,65,0.3);
}
.sticky-bar .btn { flex: 1; padding: 14px 8px; font-size: 0.86rem; white-space: nowrap; }
.sticky-bar .btn-call {
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.35);
  color: var(--white);
}

/* ============================================
   RAHMAT SAHIFASI
   ============================================ */
.thanks-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 22px;
  background:
    radial-gradient(120% 80% at 50% -15%, #7A1A38 0%, transparent 60%),
    linear-gradient(180deg, var(--burgundy-deep) 0%, var(--burgundy-ink) 75%);
}
.thanks-check {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: var(--burgundy-ink);
  font-size: 2rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  box-shadow: var(--shadow-gold);
  animation: pop 600ms var(--ease) both;
}
@keyframes pop {
  0% { transform: scale(0.3); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.thanks-page h1 {
  color: var(--white);
  font-weight: 900;
  font-size: clamp(1.7rem, 5.5vw + 0.5rem, 2.7rem);
  line-height: 1.22;
  text-wrap: balance;
  margin-bottom: 18px;
  max-width: 600px;
}
.thanks-text {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.6;
  max-width: 500px;
  margin-bottom: 14px;
}
.thanks-call {
  font-size: 1.25rem;
  padding: 18px 40px;
  margin-top: 6px;
}
.thanks-tg-card {
  margin-top: 38px;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(217,164,65,0.5);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  max-width: 500px;
}
.thanks-tg-card .tg-eyebrow {
  color: var(--gold-bright);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.thanks-tg-card p {
  color: var(--white);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 14px;
}
.thanks-tg-card strong { color: var(--gold-bright); }
.thanks-tg-card .btn-gold { width: 100%; font-size: 1.05rem; padding: 18px 20px; margin-top: 6px; }

/* ============================================
   KICHIK EKRANLAR (<= 360px)
   ============================================ */
@media (max-width: 360px) {
  .brand-name { font-size: 0.8rem; }
  .brand-name small { font-size: 0.46rem; letter-spacing: 0.15em; }
  .header-call { font-size: 0.72rem; padding: 7px 10px; }
  .sticky-bar .btn { font-size: 0.76rem; }
}

/* ============================================
   DESKTOP (>= 900px)
   ============================================ */
@media (min-width: 900px) {
  .container { max-width: 960px; }

  .site-header { padding: 16px 48px; }

  .page-hero { padding: 84px 48px 92px; }
  .page-hero h1 { max-width: 760px; }
  .page-hero .cta-row { flex-direction: row; justify-content: center; }
  .loc-chip { font-size: 0.85rem; padding: 10px 18px; }
  .hero-brand-note { font-size: 0.85rem; max-width: none; }

  .section { padding: 80px 0; }
  .points-grid { grid-template-columns: repeat(2, 1fr); }
  .diag-steps { grid-template-columns: repeat(3, 1fr); }
  .diag-step { flex-direction: column; gap: 12px; }
  .gallery-2 { grid-template-columns: repeat(4, 1fr); }

  .photo-block .photo-card { max-width: 880px; margin: 0 auto; }

  .cta-strip { padding: 72px 48px 80px; }

  .sticky-bar { display: none; }
  .site-footer { padding-bottom: 28px; }
}
