/* Главная страница Oyla — светлая, «как у Apple»: крупная типографика, глубина, анимация при прокрутке. */
:root {
  --brand: #12b76a;
  --brand-dark: #0b8f52;
  --brand-soft: #e7f8ef;
  --ink: #1d1d1f;
  --ink2: #424245;
  --muted: #6e6e73;
  --bg: #fbfbfd;
  --bg2: #f5f5f7;
  --card: #ffffff;
  --line: #e8e8ed;
  --yellow: #fff4c2;
  --lavender: #ece6fb;
  --peach: #fde9d3;
  --mint: #dcf3ea;
  --sky: #e2efff;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); overflow-x: hidden;
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-dark); }
img { max-width: 100%; height: auto; display: block; }
html[data-lang="ru"] [lang="uz"], html[data-lang="uz"] [lang="ru"] { display: none !important; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ---------- Шапка (стекло) ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; background: rgba(251, 251, 253, .72);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 56px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.logo img { width: 30px; height: 30px; border-radius: 8px; }
.nav .links { display: flex; gap: 22px; margin-left: 12px; }
.nav .links a { color: var(--ink2); text-decoration: none; font-size: 14px; }
.nav .links a:hover { color: var(--ink); }
.spacer { flex: 1; }
.lang { display: flex; background: var(--bg2); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.pill { background: var(--brand); color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; padding: 7px 15px; border-radius: 999px; white-space: nowrap; }
.pill:hover { background: var(--brand-dark); }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--brand); color: #fff; text-decoration: none; font-weight: 600;
  font-size: 17px; padding: 15px 28px; border-radius: 999px; transition: transform .2s var(--ease), background .2s; }
.btn:hover { background: var(--brand-dark); transform: scale(1.03); }
.btn small { font-weight: 500; opacity: .8; font-size: 14px; }
.link-arrow { color: var(--brand-dark); text-decoration: none; font-size: 17px; font-weight: 500; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Первый экран ---------- */
.hero { position: relative; padding: 120px 0 0; text-align: center; overflow: hidden; }
.hero .glow { position: absolute; left: 50%; top: 360px; width: 1100px; height: 1100px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(18, 183, 106, .20), rgba(18, 183, 106, .06) 55%, transparent 72%); pointer-events: none; }
.eyebrow { font-size: 21px; font-weight: 600; color: var(--brand-dark); margin: 0 0 8px; letter-spacing: -.01em; }
.hero h1 { font-size: clamp(42px, 7vw, 84px); line-height: 1.03; letter-spacing: -.035em; font-weight: 800; margin: 0 auto 18px; max-width: 16ch; }
.grad { background: linear-gradient(100deg, #0b8f52 0%, #12b76a 45%, #6fd6a2 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(19px, 2.2vw, 24px); color: var(--muted); max-width: 30ch; margin: 0 auto 30px; line-height: 1.4; }
.hero .actions { display: flex; gap: 22px; justify-content: center; align-items: center; flex-wrap: wrap; }
.hero .note { font-size: 14px; color: var(--muted); margin: 16px 0 0; }

/* Сцена с телефоном: наклон и масштаб зависят от прокрутки (--p от 0 до 1) */
.stage { position: relative; height: 760px; margin-top: 56px; perspective: 1600px; --p: 0; }
.stage .device { position: absolute; left: 50%; top: 0; width: 330px;
  transform: translateX(-50%) rotateX(calc(26deg * (1 - var(--p)))) scale(calc(.86 + .14 * var(--p)));
  transform-origin: 50% 0; will-change: transform; }
.chip { position: absolute; background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .9); border-radius: 18px; padding: 12px 16px; text-align: left; font-size: 14px; color: var(--ink2);
  box-shadow: 0 18px 40px -18px rgba(29, 29, 31, .28); will-change: transform; white-space: nowrap; }
.chip b { display: block; font-size: 18px; color: var(--ink); letter-spacing: -.01em; }
.chip .ok { color: var(--brand-dark); }
.chip.c1 { left: calc(50% - 400px); top: 120px; transform: translateY(calc(var(--p) * -70px)); }
.chip.c2 { left: calc(50% + 200px); top: 70px; transform: translateY(calc(var(--p) * -130px)); }
.chip.c3 { left: calc(50% - 360px); top: 430px; transform: translateY(calc(var(--p) * -110px)); }
.chip.c4 { left: calc(50% + 215px); top: 380px; transform: translateY(calc(var(--p) * -50px)); }

/* Телефон (светлая рамка) */
.device { border-radius: 52px; padding: 11px; background: linear-gradient(145deg, #f4f4f6, #d9dade);
  box-shadow: 0 1px 0 1px rgba(255, 255, 255, .8) inset, 0 50px 90px -30px rgba(29, 29, 31, .35), 0 20px 40px -20px rgba(18, 183, 106, .25); }
.device .screen { position: relative; border-radius: 42px; overflow: hidden; background: #fff; aspect-ratio: 1170 / 2532; }
.device .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease), transform .8s var(--ease); }

/* ---------- Игра слов ---------- */
.manifest { padding: 140px 0 120px; }
.manifest p { font-size: clamp(30px, 5vw, 56px); line-height: 1.12; font-weight: 700; letter-spacing: -.03em; margin: 0; max-width: 20ch; }
.manifest .w { color: #d2d2d7; transition: color .35s; }
.manifest .w.on { color: var(--ink); }
.manifest .w.brand.on { color: var(--brand); }
.manifest .sub { margin-top: 28px; font-size: 21px; color: var(--muted); max-width: 46ch; font-weight: 400; letter-spacing: 0; line-height: 1.5; }

/* ---------- Рассказ с липким телефоном ---------- */
.story { background: var(--bg2); padding: 120px 0; }
.story .head { text-align: center; margin-bottom: 40px; }
h2 { font-size: clamp(34px, 5.4vw, 64px); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; margin: 0 0 14px; }
.kicker { font-size: 21px; color: var(--muted); margin: 0 auto; max-width: 40ch; }
.story .grid { display: grid; grid-template-columns: 1fr 360px; gap: 60px; }
.story .steps .step { min-height: 76vh; display: flex; flex-direction: column; justify-content: center; opacity: .25; transition: opacity .5s var(--ease); }
.story .steps .step.active { opacity: 1; }
.step .num { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; display: grid; place-items: center; margin-bottom: 18px; }
.step h3 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -.025em; margin: 0 0 12px; }
.step p { font-size: 19px; color: var(--ink2); margin: 0; max-width: 34ch; }
.story .sticky { position: sticky; top: calc(50vh - 340px); height: 680px; }
.story .sticky .device { width: 320px; margin: 0 auto; }
.story .screen img { opacity: 0; transform: scale(1.04); }
.story .screen img.on { opacity: 1; transform: scale(1); }
.story .mobile-shot { display: none; }
.story .mobile-shot .screen img { opacity: 1; transform: none; }

/* ---------- Плитки ---------- */
.bento { padding: 120px 0; }
.bento .head { text-align: center; margin-bottom: 48px; }
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { border-radius: 30px; padding: 30px; min-height: 230px; position: relative; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.tile:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(29, 29, 31, .3); }
.tile .ico { font-size: 40px; line-height: 1; }
.tile h3 { font-size: 24px; letter-spacing: -.02em; margin: 18px 0 8px; line-height: 1.15; }
.tile p { margin: 0; color: var(--ink2); font-size: 16px; }
.tile.wide { grid-column: span 4; } .tile.mid { grid-column: span 3; } .tile.small { grid-column: span 2; }
.t1 { background: var(--yellow); } .t2 { background: var(--mint); } .t3 { background: var(--lavender); }
.t4 { background: var(--peach); } .t5 { background: var(--card); border: 1px solid var(--line); } .t6 { background: var(--sky); }
.tile.big-num b { display: block; font-size: 64px; letter-spacing: -.04em; line-height: 1; color: var(--brand-dark); }

/* ---------- Цифры ---------- */
.numbers { padding: 40px 0 120px; }
.numbers .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: center; }
.numbers b { display: block; font-size: clamp(48px, 7vw, 80px); letter-spacing: -.045em; line-height: 1; font-weight: 800; }
.numbers span { color: var(--muted); font-size: 17px; display: block; margin-top: 10px; }

/* ---------- Галерея ---------- */
.gallery { background: var(--bg2); padding: 120px 0 100px; overflow: hidden; }
.gallery .head { text-align: center; margin-bottom: 44px; }
.rail { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 20px max(16px, calc(50vw - 150px)) 30px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail figure { margin: 0; flex: 0 0 300px; scroll-snap-align: center; transition: transform .5s var(--ease), opacity .5s; transform: scale(.88); opacity: .55; }
.rail figure.center { transform: scale(1); opacity: 1; }
.rail .device { padding: 8px; border-radius: 44px; }
.rail .device .screen { border-radius: 36px; }
.rail .device .screen img { position: static; }
.rail figcaption { text-align: center; margin-top: 18px; font-weight: 600; font-size: 17px; }
.rail-nav { display: flex; justify-content: center; gap: 12px; }
.rail-nav button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #e8e8ed; color: var(--ink); font-size: 20px; cursor: pointer; }
.rail-nav button:hover { background: #dcdce1; }

/* ---------- Тарифы ---------- */
.plans-sec { padding: 120px 0; }
.plans-sec .head { text-align: center; margin-bottom: 48px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 30px; padding: 32px; display: flex; flex-direction: column; }
.plan.best { border: 2px solid var(--brand); box-shadow: 0 30px 60px -36px rgba(18, 183, 106, .55); }
.plan .name { font-weight: 800; font-size: 24px; display: flex; align-items: center; gap: 8px; }
.plan .price { font-size: 40px; font-weight: 800; letter-spacing: -.03em; margin: 14px 0 0; }
.plan .price small { font-size: 18px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan .per { color: var(--muted); font-size: 15px; min-height: 22px; }
.plan ul { padding: 0; margin: 22px 0 0; list-style: none; }
.plan li { padding: 7px 0 7px 30px; position: relative; font-size: 16px; color: var(--ink2); }
.plan li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%230b8f52' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.badge { background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.trial { margin: 20px auto 0; text-align: center; color: var(--ink2); font-size: 17px; max-width: 60ch; }

/* ---------- Вопросы ---------- */
.faq { padding: 0 0 120px; }
.faq .head { text-align: center; margin-bottom: 36px; }
.faq .list { max-width: 760px; margin: 0 auto; }
details { border-bottom: 1px solid var(--line); padding: 22px 4px; }
summary { font-weight: 600; font-size: 19px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--muted); transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 12px 0 0; color: var(--ink2); }

/* ---------- Финал ---------- */
.cta { margin: 0 16px 80px; border-radius: 40px; padding: 100px 24px; text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 50% 0%, #e9fbf1 0%, #d3f4e3 45%, #bdeed4 100%); }
.cta h2 { max-width: 16ch; margin: 0 auto 16px; }
.cta p { color: var(--ink2); font-size: 21px; margin: 0 auto 32px; max-width: 40ch; }
.cta .icon { width: 84px; height: 84px; border-radius: 22px; margin: 0 auto 26px; box-shadow: 0 20px 40px -18px rgba(11, 143, 82, .55); }

footer { border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--muted); font-size: 13px; background: var(--bg2); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; }
footer a { color: var(--ink2); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .co { flex-basis: 100%; }

/* ---------- Появление при прокрутке ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
/* Первый экран появляется сам, без скриптов */
.js .hero .reveal { opacity: 1; transform: none; transition: none; animation: rise 1s var(--ease) both; }
.js .hero .reveal.d1 { animation-delay: .1s; } .js .hero .reveal.d2 { animation-delay: .2s; } .js .hero .reveal.d3 { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* ---------- Телефоны и планшеты ---------- */
@media (max-width: 900px) {
  .nav .links { display: none; }
  .hero { padding-top: 96px; }
  .stage { height: auto; margin-top: 40px; padding-bottom: 20px; }
  .stage .device { position: relative; left: auto; width: min(270px, 70vw); margin: 0 auto; transform: rotateX(calc(18deg * (1 - var(--p)))) scale(calc(.92 + .08 * var(--p))); }
  .chip { display: none; }
  .chip.c1, .chip.c2 { display: block; position: absolute; font-size: 12px; padding: 9px 12px; }
  .chip b { font-size: 15px; }
  .chip.c1 { left: 8px; top: 250px; } .chip.c2 { left: auto; right: 8px; top: 420px; }
  .hero .btn { font-size: 16px; padding: 14px 24px; }
  .hero .btn small { display: none; }
  .manifest { padding: 90px 0 70px; }
  .story { padding: 90px 0 40px; }
  .story .grid { grid-template-columns: 1fr; }
  .story .sticky { display: none; }
  .story .steps .step { min-height: 0; opacity: 1; padding: 30px 0 50px; }
  .story .mobile-shot { display: block; width: min(250px, 66vw); margin: 28px auto 0; }
  .tiles { grid-template-columns: 1fr; }
  .tile.wide, .tile.mid, .tile.small { grid-column: auto; }
  .tile { min-height: 0; }
  .numbers .row { grid-template-columns: 1fr; gap: 36px; }
  .rail figure { flex-basis: 240px; }
  .plans { grid-template-columns: 1fr; }
  .bento, .plans-sec, .gallery { padding: 90px 0; }
  .cta { padding: 70px 20px; border-radius: 30px; }
}
@media (max-width: 420px) {
  .pill { display: none; }
}

/* Кто не любит анимацию — без неё */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .hero .reveal { opacity: 1; transform: none; transition: none; animation: none; }
  .stage .device, .chip { transform: none !important; }
  .story .screen img, .rail figure { transition: none; }
}

/* Корзина недели */
.basket-sec { padding: 72px 0; }
.basket-list { max-width: 640px; margin: 28px auto 0; display: grid; gap: 12px; }
.basket-row { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 20px; padding: 16px 20px; box-shadow: 0 6px 24px rgba(17,24,39,.06); }
.basket-row .name { font-weight: 800; font-size: 18px; flex: 1; min-width: 0; }
.basket-row .sum { font-weight: 900; font-size: 20px; white-space: nowrap; }
.basket-row .diff { color: #d92d20; font-weight: 700; font-size: 14px; white-space: nowrap; }
.basket-row.best { outline: 2px solid #12b76a; }
.basket-row.best .diff { color: #12b76a; }
.basket-note { max-width: 640px; margin: 14px auto 0; color: #6b7280; font-size: 14px; text-align: center; }
