/* RESAUD landing — taqdimot uslubidagi bir sahifa. Tashqi resurssiz (shrift va rasmlar shu serverdan), inline uslubsiz (CSP: style-src 'self'). */

@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/landing/fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/landing/fonts/inter-cyrillic-wght-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --brand: #0d9488; --brand-d: #0b7f75; --brand-dd: #0a6a62; --brand-soft: #e6f6f4; --brand-soft2: #cdeee9; --cyan: #22d3ee;
  --navy: #0b1d2e; --text: #17202c; --text2: #55606f; --text3: #8b95a4; --border: #e5e7eb;
  --bg: #ffffff; --alt: #f3f8f8;
  --shadow-md: 0 6px 18px -6px rgba(16, 24, 40, .16), 0 2px 6px -2px rgba(16, 24, 40, .06);
  --shadow-lg: 0 34px 64px -24px rgba(16, 24, 40, .32), 0 12px 24px -12px rgba(16, 24, 40, .14);
  --hdr: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--hdr); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 6px; }

.container { width: min(1360px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------ yuqori panel */
.top { position: fixed; z-index: 50; top: 0; left: 0; right: 0; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(1.5) blur(12px); backdrop-filter: saturate(1.5) blur(12px); border-bottom: 1px solid rgba(15, 23, 42, .07); }
.top-in { height: var(--hdr); display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.01em; color: var(--navy); text-decoration: none; }
.brand img { display: block; border-radius: 9px; }
.menu { display: flex; gap: 4px; margin-left: 10px; }
.menu a { padding: 8px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 600; color: var(--text2); text-decoration: none; transition: background .15s, color .15s; }
.menu a:hover { background: var(--brand-soft); color: var(--brand-d); }
.tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.seg { display: inline-flex; padding: 3px; background: #eef2f3; border-radius: 10px; }
.seg button { border: 0; background: transparent; padding: 7px 11px; border-radius: 7px; font: 700 13px/1 var(--font); color: var(--text2); cursor: pointer; }
.seg button[aria-pressed='true'] { background: #fff; color: var(--brand-d); box-shadow: 0 1px 2px rgba(16, 24, 40, .14); }
.progress { height: 3px; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--cyan)); transition: width .12s linear; }

/* ------------------------------------------------------------ tugmalar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; font: 600 14.5px/1 var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; }
.btn svg, .pager svg, .lb-close svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px rgba(13, 148, 136, .6); }
.btn.primary:hover { background: var(--brand-d); transform: translateY(-1px); }
.btn.ghost { background: #fff; border-color: var(--border); color: var(--text); }
.btn.ghost:hover { border-color: #c5d0d5; background: #f8fafb; }
.btn.light { background: #fff; color: var(--navy); }
.btn.light:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.btn.ghost-light { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn.ghost-light:hover { background: rgba(255, 255, 255, .12); }
.btn.lg { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 13px; }

/* ------------------------------------------------------------ slaydlar */
.slide { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--hdr) + 44px) 0 60px; }
.slide.alt { background: var(--alt); border-block: 1px solid rgba(15, 23, 42, .04); }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.1; letter-spacing: -.025em; font-weight: 800; margin-bottom: 16px; text-wrap: balance; }
.lead { font-size: clamp(16.5px, 1.35vw, 19px); line-height: 1.55; color: var(--text2); margin-bottom: 22px; }
.head.center { text-align: center; max-width: 780px; margin: 0 auto; }
.head.center .lead { margin-bottom: 0; }

.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 4.6vw, 72px); align-items: center; }
.flip .split { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.flip .text { order: 2; }
.flip .visual { order: 1; }

.checks { display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; font-size: 16.5px; line-height: 1.45; }
.checks li::before { content: ''; position: absolute; left: 0; top: 0; width: 23px; height: 23px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d9488' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }

.feat { display: grid; gap: 18px; }
.feat li { padding: 4px 0 4px 18px; border-left: 3px solid var(--brand-soft2); }
.feat h3 { font-size: 17px; margin-bottom: 4px; }
.feat p { color: var(--text2); font-size: 15.5px; line-height: 1.5; }

/* ------------------------------------------------------------ bosh slayd */
.hero { display: block; padding-bottom: 96px; overflow: hidden; background: radial-gradient(900px 460px at 88% -8%, #d3f4ee 0, transparent 62%), radial-gradient(760px 420px at 4% 6%, #e0f1ff 0, transparent 60%), #fff; }
.hero-text { max-width: 880px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(34px, 5.6vw, 70px); line-height: 1.04; letter-spacing: -.03em; font-weight: 800; margin: 6px 0 20px; text-wrap: balance; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--brand) 0%, #12b3c4 60%, var(--cyan) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { max-width: 720px; margin-inline: auto; }
.hero-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 30px 0 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chips li { padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; color: var(--text2); }
.chips.big li { padding: 10px 18px; font-size: 15px; }
.hero-visual { position: relative; width: min(1200px, 100%); margin: 48px auto 0; }
.hero-visual .hero-phone { position: absolute; right: -2.5%; bottom: -7%; width: 15%; z-index: 3; transform: rotate(3deg); }
.hero-visual .hero-paper { position: absolute; left: -2%; bottom: -9%; width: 14.5%; z-index: 3; transform: rotate(-4deg); }

/* ------------------------------------------------------------ kartochkalar, qadamlar */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 22px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-soft2); }
.card .ico { display: block; width: 46px; height: 46px; padding: 11px; border-radius: 13px; background: var(--brand-soft); fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }
.card h3 { font-size: 18px; margin-bottom: 6px; }
.card p { color: var(--text2); font-size: 15px; line-height: 1.5; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 44px 0 30px; counter-reset: s; }
.steps li { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 26px; }
.steps h3 { font-size: 19px; margin-bottom: 6px; }
.steps p { color: var(--text2); font-size: 15.5px; }
.num { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 16px; }

/* ------------------------------------------------------------ oyna / telefon / chek ramkalari */
.win { background: #fff; border: 1px solid #dde4e9; border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.win-bar { position: relative; display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; background: #f1f4f6; border-bottom: 1px solid #e3e8ec; }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cdd5db; }
.win-bar span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--text3); pointer-events: none; }
.win img { display: block; width: 100%; height: auto; cursor: zoom-in; }

.phone { position: relative; padding: 9px; border-radius: 38px; background: linear-gradient(160deg, #1a2736, #0b1420); box-shadow: var(--shadow-lg); }
.phone::before { content: ''; position: absolute; top: 14px; left: 50%; width: 30%; height: 5px; border-radius: 4px; background: rgba(255, 255, 255, .14); transform: translateX(-50%); z-index: 2; }
.phone img { display: block; width: 100%; height: auto; border-radius: 30px; cursor: zoom-in; background: #fff; }
.paper { padding: 6px; border-radius: 6px; background: #fff; border: 1px solid #e3e8ec; box-shadow: var(--shadow-lg); }
.paper img { display: block; width: 100%; height: auto; border-radius: 3px; cursor: zoom-in; }

.phones { display: flex; align-items: flex-end; justify-content: center; gap: clamp(10px, 2vw, 28px); padding: 12px 0 32px; }
.phones .phone { width: min(30%, 262px); flex: 0 0 auto; }
.phones .p1 { transform: translateY(28px) rotate(-2.5deg); }
.phones .p2 { transform: translateY(-10px); }
.phones .p3 { transform: translateY(28px) rotate(2.5deg); }
.phones.duo { gap: clamp(18px, 4vw, 56px); }
.phones.duo .phone { width: min(36%, 290px); }

/* ------------------------------------------------------------ galereya (tablar) */
.gtabs { display: flex; gap: 4px; padding: 4px; margin: 0 0 16px; background: #e8eef0; border-radius: 12px; width: max-content; max-width: 100%; overflow-x: auto; }
.gtabs button { border: 0; background: transparent; padding: 9px 15px; border-radius: 9px; font: 600 14px/1 var(--font); color: var(--text2); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.gtabs button:hover { color: var(--text); }
.gtabs button[aria-selected='true'] { background: #fff; color: var(--brand-d); box-shadow: 0 1px 3px rgba(16, 24, 40, .16); }
.receipt-area { aspect-ratio: 1800 / 1000; display: grid; place-items: center; padding: 16px; background: linear-gradient(180deg, #eef3f5, #e3ebee); }
.receipt-area img { width: auto; height: 100%; max-width: 100%; border-radius: 4px; background: #fff; box-shadow: 0 12px 30px -8px rgba(16, 24, 40, .28); }

/* ------------------------------------------------------------ bog'lanish */
.cta { min-height: 74svh; overflow: hidden; color: #fff; background: radial-gradient(800px 420px at 85% 0, rgba(34, 211, 238, .22), transparent 60%), linear-gradient(140deg, #0b1d2e 0%, #0d3846 55%, #0b7f75 130%); }
.cta::before { content: ''; position: absolute; right: 7%; top: 50%; width: 440px; height: 440px; transform: translateY(-50%) rotate(-8deg); background: url('/landing/img/logo-mark.png') center / contain no-repeat; opacity: .07; pointer-events: none; }
.cta-box { position: relative; max-width: 820px; margin: 0 auto; text-align: center; }
.cta h2 { color: #fff; }
.cta .lead { color: rgba(255, 255, 255, .82); }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.admin-line { margin-top: 40px; font-size: 14px; color: rgba(255, 255, 255, .7); }
.admin-line a { color: #fff; font-weight: 700; margin-left: 6px; }

.foot { background: #07131f; color: rgba(255, 255, 255, .7); padding: 22px 0; font-size: 14px; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand.small { color: #fff; font-size: 15px; gap: 8px; }

/* ------------------------------------------------------------ slayd navigatsiyasi */
.dots { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 40; display: none; flex-direction: column; gap: 11px; }
.dots button { position: relative; width: 11px; height: 11px; padding: 0; border-radius: 50%; border: 2px solid #aebcc3; background: transparent; cursor: pointer; transition: transform .15s, background .15s, border-color .15s; }
.dots button[aria-current='true'] { background: var(--brand); border-color: var(--brand); transform: scale(1.3); }
.dots button::after { content: attr(data-label); position: absolute; right: 22px; top: 50%; transform: translateY(-50%); background: var(--navy); color: #fff; font: 600 12px/1 var(--font); padding: 7px 10px; border-radius: 7px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.dots button:hover::after, .dots button:focus-visible::after { opacity: 1; }
.pager { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: none; align-items: center; gap: 6px; padding: 6px; background: rgba(255, 255, 255, .94); border: 1px solid var(--border); border-radius: 13px; box-shadow: var(--shadow-md); }
.pager button { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 9px; background: var(--brand-soft); color: var(--brand-d); cursor: pointer; }
.pager button:hover { background: var(--brand-soft2); }
.counter { min-width: 56px; padding: 0 6px; text-align: center; font: 700 13px/1 var(--font); color: var(--text2); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ rasmni kattalashtirish */
dialog#lightbox { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100vh; }
dialog#lightbox[open] { display: grid; place-items: center; }
#lightbox::backdrop { background: rgba(8, 16, 24, .84); }
#lb-img { max-width: 94vw; max-height: 90vh; border-radius: 10px; background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lb-close { position: fixed; top: 16px; right: 16px; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .96); color: var(--navy); cursor: pointer; }

/* ------------------------------------------------------------ paydo bo'lish animatsiyasi (faqat JS yoqiq bo'lsa) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .cards .reveal:nth-child(4n+2), .js .steps .reveal:nth-child(2) { transition-delay: .07s; }
.js .cards .reveal:nth-child(4n+3), .js .steps .reveal:nth-child(3) { transition-delay: .14s; }
.js .cards .reveal:nth-child(4n+4) { transition-delay: .21s; }

body.present .menu, body.present .present-btn span { display: none; }

/* ------------------------------------------------------------ moslashuvchanlik */
@media (min-width: 900px) { .pager { display: flex; } }
@media (min-width: 1100px) { .dots { display: flex; } }
@media (min-width: 960px) and (min-height: 680px) {
  html { scroll-snap-type: y proximity; }
  .slide, .foot { scroll-snap-align: start; }
}
@media (max-width: 1180px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .flip .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu a { padding: 8px 9px; }
}
@media (max-width: 960px) {
  .menu, .present-btn { display: none; }
  .split, .flip .split { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .flip .text, .flip .visual { order: 0; }
  .slide { min-height: 0; padding: calc(var(--hdr) + 38px) 0 52px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { margin-top: 36px; }
  .cta { min-height: 0; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 36px); }
  .top-in { gap: 10px; }
  .tools { gap: 8px; }
  .btn { padding: 0 13px; }
  .brand span { font-size: 17px; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .hero-visual .hero-phone { width: 20%; right: -1%; bottom: -5%; }
  .hero-visual .hero-paper { width: 19%; left: -1%; bottom: -6%; }
  .hero { padding-bottom: 60px; }
  .phones { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding: 8px 18px 28px; margin-inline: -18px; scrollbar-width: none; }
  .phones::-webkit-scrollbar { display: none; }
  .phones .phone, .phones.duo .phone { flex: 0 0 62%; width: 62%; scroll-snap-align: center; transform: none; }
}
@media (max-width: 400px) {
  .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
@media print {
  .top, .dots, .pager, dialog { display: none !important; }
  .slide { min-height: 0; page-break-inside: avoid; padding: 24px 0; }
}
