/* Главная uletapp.com: каждая секция — своя идея в одном языке (Kinlo: стекло, мягкие подложки, бирюза; билеты с вырезами, наклейки лиса, крупные цифры, маршрут с самолётиком, bento). */

/* ───────── hero ───────── */
.hero { padding: clamp(26px, 4.5vw, 64px) 0 clamp(40px, 6vw, 90px); }
.hero__in { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; }
.hero h1 { font-size: clamp(38px, 5.6vw, 72px); line-height: 1; letter-spacing: -0.04em; }
.hero__art { position: relative; min-height: 0; display: grid; place-items: center; }
.hero__art .phones { position: relative; z-index: 1; }
.hero__art .pair { width: min(540px, 100%); }
.stk { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; }
.sticker { width: 92px; height: 92px; border-radius: 50%; border: 5px solid #fff; object-fit: cover; background: #fff; box-shadow: 0 14px 26px -10px rgba(10, 30, 50, 0.5); }
.stk--fox { left: 0; top: 4%; transform: rotate(-9deg); animation: stk-bob 5s ease-in-out infinite; }
.stk__t { padding: 8px 14px; border-radius: 16px 16px 16px 4px; background: #fff; color: #14245c; font-weight: 800; font-size: 14px; box-shadow: 0 10px 20px -10px rgba(10, 30, 50, 0.5); transform: rotate(4deg); white-space: nowrap; }
@keyframes stk-bob { 0%, 100% { transform: rotate(-9deg) translateY(0); } 50% { transform: rotate(-6deg) translateY(-8px); } }
.hero__tk { position: absolute; z-index: 2; left: -4%; bottom: 2%; width: min(300px, 60%); transform: rotate(-6deg); pointer-events: none; opacity: 0; transition: opacity 0.6s; }
.hero__tk.is-on { opacity: 1; }
.hero__tk .tkw { pointer-events: none; }

/* ───────── бегущая лента находок ───────── */
.ribbon { position: relative; z-index: 4; margin: 10px 0 0; transform: rotate(-1.2deg) scale(1.03); overflow: hidden; background: linear-gradient(100deg, #0e6c84, #17498f 60%, #4a3aa8); color: #fff; box-shadow: 0 18px 30px -18px rgba(8, 40, 70, 0.7); }
.ribbon__in { display: flex; width: max-content; gap: 0; animation: ribbon 60s linear infinite; padding: 13px 0; }
.ribbon__i { display: inline-flex; align-items: center; gap: 10px; padding: 0 26px; font-weight: 800; font-size: 16px; white-space: nowrap; }
.ribbon__i i { font-style: normal; }
.ribbon__i b { color: #ffd84a; }
.ribbon__i::after { content: "✦"; margin-left: 26px; opacity: 0.55; }
@keyframes ribbon { to { transform: translateX(-50%); } }
.ribbon:hover .ribbon__in { animation-play-state: paused; }

/* ───────── билеты: наклон и перекрытие ───────── */
.deals { gap: 34px 26px; }
.deal:nth-child(odd) { transform: rotate(-0.9deg); }
.deal:nth-child(even) { transform: rotate(0.8deg) translateY(10px); }
.deal { transition: transform 0.3s var(--ease, ease); }
@media (hover: hover) { .deal:hover { transform: rotate(0) translateY(-4px); z-index: 2; } }
#live { padding-top: clamp(54px, 8vw, 100px); }

/* ───────── цифры-герои ───────── */
.nums { position: relative; padding: clamp(70px, 9vw, 130px) 0; margin: clamp(30px, 5vw, 70px) 0; color: #fff; background: linear-gradient(135deg, #0b3a52 0%, #12456b 55%, #2a2f86 100%); clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%); overflow: hidden; }
.nums::before { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 60% at 85% 20%, rgba(76, 192, 214, 0.35), transparent 70%), radial-gradient(30% 50% at 10% 90%, rgba(255, 140, 0, 0.18), transparent 70%); }
.nums .wrap { position: relative; }
.nums__h { font-size: clamp(18px, 2vw, 24px); font-weight: 700; opacity: 0.85; margin-bottom: 18px; letter-spacing: -0.01em; }
.nums__g { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: clamp(20px, 4vw, 60px); align-items: end; }
.num b { display: block; font-size: clamp(64px, 12vw, 170px); line-height: 0.9; letter-spacing: -0.06em; font-weight: 900; background: linear-gradient(180deg, #fff 30%, #8fd9ea); -webkit-background-clip: text; background-clip: text; color: transparent; }
.num--a b { font-size: clamp(84px, 16vw, 230px); background: linear-gradient(180deg, #ffe27a 10%, #ff9a3c); -webkit-background-clip: text; background-clip: text; }
.num--c b { background: linear-gradient(180deg, #fff 30%, #c9bdf6); -webkit-background-clip: text; background-clip: text; }
.num span { display: block; margin-top: 10px; max-width: 16em; font-weight: 600; font-size: clamp(14px, 1.4vw, 18px); opacity: 0.88; }

/* ───────── маршрут: шаги и самолётик ───────── */
.route { position: relative; padding-top: 70px; }
.route__line { position: absolute; left: 4%; right: 4%; top: 34px; height: 0; border-top: 3px dashed color-mix(in srgb, var(--accent) 55%, transparent); }
.route__plane { position: absolute; top: 14px; left: 4%; width: 44px; height: 44px; color: var(--accent); transform: rotate(45deg); animation: fly 9s ease-in-out infinite; filter: drop-shadow(0 6px 8px rgba(14, 108, 132, 0.4)); }
.route__plane svg { width: 100%; height: 100%; }
@keyframes fly { 0% { left: 3%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: 93%; opacity: 0; } }
.route__s { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rstep { position: relative; padding: 28px 26px 26px; color: #fff; border-radius: 26px;
  -webkit-mask: radial-gradient(circle 14px at 0 56%, #0000 97%, #000), radial-gradient(circle 14px at 100% 56%, #0000 97%, #000); -webkit-mask-composite: source-in; mask: radial-gradient(circle 14px at 0 56%, #0000 97%, #000), radial-gradient(circle 14px at 100% 56%, #0000 97%, #000); mask-composite: intersect; }
.rstep--1 { background: linear-gradient(140deg, #0e6c84, #0a4a66); transform: rotate(-1.6deg); }
.rstep--2 { background: linear-gradient(140deg, var(--red-a), var(--red-b)); transform: rotate(1.2deg) translateY(18px); }
.rstep--3 { background: linear-gradient(140deg, #5a46d0, #2d2185); transform: rotate(-0.8deg); }
.rstep__n { display: block; font-size: 76px; line-height: 0.9; font-weight: 900; letter-spacing: -0.05em; opacity: 0.28; margin-bottom: 6px; }
.rstep h3 { font-size: 22px; letter-spacing: -0.02em; }
.rstep p { margin-top: 8px; font-size: 15px; opacity: 0.92; }

/* ───────── bento ───────── */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-areas: "cal cal cal map map map" "cal cal cal chat chat chat" "pass pass bell bell bell bell"; grid-auto-rows: minmax(190px, auto); gap: 16px; }
.bt { position: relative; overflow: hidden; padding: 20px 22px 22px; display: flex; flex-direction: column; border-radius: 28px; background: var(--glass); color: var(--ink); box-shadow: inset 0 1px 0 var(--glass-rim), inset 0 0 0 1px var(--glass-edge), var(--shadow); }
.bt > h3, .bt > p { flex: none; }
.bt h3 { font-size: 19px; letter-spacing: -0.02em; margin-top: 14px; }
.bt p { margin-top: 4px; font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.bt--cal { grid-area: cal; border-radius: 34px 34px 34px 90px; }
.bt--map { grid-area: map; background: linear-gradient(135deg, #0e6c84, #0a3d5c); color: #fff; }
.bt--pass { grid-area: pass; background: linear-gradient(160deg, #1b2a8f, #0a0f45); color: #fff; border-radius: 28px 70px 28px 28px; }
.bt--bell { grid-area: bell; }
.bt--chat { grid-area: chat; background: linear-gradient(135deg, #efeafe, #d6cdf8); color: #1a1250; border-radius: 28px 28px 70px 28px; }
.bt--map h3, .bt--pass h3 { color: #fff; }
.bt--map p, .bt--pass p { color: rgba(255, 255, 255, 0.88); }
.bt--chat h3 { color: #1a1250; }
.bt--chat p { color: #3b3470; }
/* картинка плитки занимает всё свободное место: пустот нет */
.hmg { flex: 1 1 auto; min-height: 110px; display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(3, 1fr); gap: 6px; }
.hm { display: block; border-radius: 8px; min-height: 28px; }
.hm--0 { background: #34d27a; } .hm--1 { background: #8fe0a8; } .hm--2 { background: #7fb6ff; } .hm--3 { background: #b9a2f5; } .hm--4 { background: #d9dfe6; }
:root[data-theme="dark"] .hm--4 { background: #2c363b; }
.hm:nth-child(11) { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px #34d27a; }
.mapd { position: relative; flex: 1 1 auto; min-height: 84px; }
.mapd i { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #ff8f7e; box-shadow: 0 0 0 6px rgba(255, 143, 126, 0.25); animation: ping 3s ease-in-out infinite; }
.mapd i:nth-child(1) { left: 8%; top: 16%; } .mapd i:nth-child(2) { left: 34%; top: 52%; background: #ffd84a; box-shadow: 0 0 0 6px rgba(255, 216, 74, 0.25); animation-delay: 0.5s; } .mapd i:nth-child(3) { left: 58%; top: 14%; animation-delay: 1s; }
.mapd i:nth-child(4) { left: 78%; top: 56%; background: #8df0bb; box-shadow: 0 0 0 6px rgba(141, 240, 187, 0.25); animation-delay: 1.5s; } .mapd i:nth-child(5) { left: 22%; top: 80%; animation-delay: 2s; } .mapd i:nth-child(6) { left: 90%; top: 16%; animation-delay: 2.5s; }
.mapd b { display: none; }
@keyframes ping { 0%, 100% { transform: scale(0.85); opacity: 0.7; } 50% { transform: scale(1.15); opacity: 1; } }
.stamps { flex: 1 1 auto; min-height: 70px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; align-content: center; justify-content: flex-start; }
.stamps span { display: grid; place-items: center; width: 52px; height: 52px; font-size: 26px; border: 3px solid rgba(255, 255, 255, 0.5); border-radius: 50%; }
.stamps span:nth-child(1) { transform: rotate(-12deg); border-color: #ffd84a; } .stamps span:nth-child(2) { transform: rotate(8deg); border-radius: 16px; } .stamps span:nth-child(3) { transform: rotate(14deg); border-color: #8df0bb; } .stamps span:nth-child(4) { transform: rotate(-7deg); border-radius: 50% / 40%; border-color: #ff8f7e; }
.bellv { flex: 1 1 auto; min-height: 56px; display: flex; align-items: center; gap: 12px; }
.bellv__i { font-size: 30px; animation: ring 3.6s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes ring { 0%, 70%, 100% { transform: rotate(0); } 74% { transform: rotate(14deg); } 80% { transform: rotate(-12deg); } 86% { transform: rotate(8deg); } 92% { transform: rotate(-4deg); } }
.bellv__bar { flex: 1; height: 10px; border-radius: 5px; background: var(--card-3); overflow: hidden; }
.bellv__bar i { display: block; height: 100%; width: 70%; border-radius: inherit; background: linear-gradient(90deg, #34d27a, #0e6c84); animation: grow 4s ease-in-out infinite alternate; }
@keyframes grow { from { width: 30%; } to { width: 88%; } }
.chat { flex: 1 1 auto; min-height: 60px; display: flex; align-items: center; gap: 10px; }
.chat__a .sticker { width: 44px; height: 44px; border-width: 3px; box-shadow: none; }
.chat__b { flex: 1; padding: 10px 14px; border-radius: 4px 18px 18px 18px; background: #fff; color: #14245c; font-size: 14px; font-weight: 700; line-height: 1.3; box-shadow: 0 6px 14px -8px rgba(10, 30, 50, 0.5); }

/* ───────── FAQ ───────── */
.faqw .sec__head { position: relative; }
.faq details { counter-increment: q; }
.faq summary { align-items: center; gap: 14px; justify-content: flex-start; }
.faq summary::after { margin-left: auto; }
.q__n { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); font-weight: 900; font-size: 15px; }
.faq details[open] .q__n { background: var(--accent); color: var(--accent-ink); }

/* ───────── финальный блок ───────── */
.bandw { margin-top: clamp(40px, 6vw, 90px); padding-bottom: 20px; }
.band2 { position: relative; padding: clamp(46px, 7vw, 96px) clamp(22px, 5vw, 72px); border-radius: 40px; color: #fff; text-align: center; overflow: hidden;
  background: radial-gradient(60% 90% at 100% 0%, rgba(76, 192, 214, 0.4), transparent 65%), linear-gradient(140deg, #0b3a52, #17316f 60%, #2f2a88); box-shadow: 0 40px 70px -40px rgba(8, 28, 60, 0.9); }
.band2::before { content: ""; position: absolute; left: -10%; right: -10%; top: -1px; height: 38px; background: var(--bg); clip-path: polygon(0 0, 100% 0, 100% 30%, 82% 70%, 64% 25%, 46% 75%, 28% 30%, 10% 70%, 0 40%); }
.band2 h2 { font-size: clamp(30px, 5vw, 62px); line-height: 1.02; letter-spacing: -0.04em; max-width: 14em; margin: 0 auto; }
.band2 p { margin: 16px auto 0; max-width: 34em; opacity: 0.9; font-size: clamp(16px, 1.8vw, 20px); }
.band2 .cta { justify-content: center; }
.band2 .btn:not(.btn--primary) { background: rgba(255, 255, 255, 0.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
.band2 .btn--primary { background: #fff; color: #0a2c39; }
.stk--band { position: relative; justify-content: center; margin: 0 auto 14px; transform: rotate(-8deg); }
.stk--band .sticker { width: 104px; height: 104px; }

/* ───────── адаптив ───────── */
@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__art { margin-top: 8px; }
  .stk--fox { left: 2%; top: -2%; }
  .sticker { width: 70px; height: 70px; }
  .hero__tk { display: none; }
  .nums__g { grid-template-columns: 1fr 1fr; }
  .num--a { grid-column: 1 / -1; }
  .route__s { grid-template-columns: 1fr; }
  .route { padding-top: 0; padding-left: 36px; }
  .route__line { left: 14px; right: auto; top: 0; bottom: 0; width: 0; height: auto; border-top: 0; border-left: 3px dashed color-mix(in srgb, var(--accent) 55%, transparent); }
  .route__plane { top: 0; left: 0 !important; animation: fly-y 8s ease-in-out infinite; transform: rotate(135deg); }
  @keyframes fly-y { 0% { top: 0; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { top: calc(100% - 40px); opacity: 0; } }
  .rstep--2 { transform: rotate(1deg); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "cal cal" "map pass" "chat chat" "bell bell"; grid-auto-rows: auto; gap: 12px; }
  .bt { padding: 16px; }
  .bt h3 { font-size: 16px; margin-top: 10px; }
  .bt p { font-size: 13px; }
  .bt--cal { border-radius: 28px 28px 28px 70px; }
  .hmg { min-height: 96px; }
  .hmg .hm:nth-child(n+15) { display: none; }
  .hmg { grid-template-rows: repeat(2, 1fr); }
  .mapd { min-height: 90px; }
  .stamps span { width: 44px; height: 44px; font-size: 22px; }
  .stamps span:nth-child(4) { display: none; }
  .deal:nth-child(even) { transform: rotate(0.6deg); }
}
@media (prefers-reduced-motion: reduce) { .stk--fox, .ribbon__in, .route__plane, .mapd i, .bellv__i, .bellv__bar i { animation: none !important; } .ribbon__in { flex-wrap: wrap; width: auto; } }
main { overflow-x: clip; }
.num b { white-space: nowrap; }
.nums__g { grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.9fr) minmax(0, 1fr); }
.num--a b { font-size: clamp(70px, 13vw, 190px); }
.num--b b, .num--c b { font-size: clamp(54px, 9vw, 130px); }
.band2::before { display: none; }
.hero__sub { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--muted); }
.route__s { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rstep--4 { background: linear-gradient(140deg, #f2a31f, #c26a0b); transform: rotate(1deg) translateY(10px); }
.rstep { padding: 24px 20px 22px; }
.rstep h3 { font-size: 19px; }
.rstep p { font-size: 14px; }
@media (max-width: 900px) { .route__s { grid-template-columns: 1fr; } .rstep--4 { transform: rotate(-0.8deg); } }
.bento { grid-auto-rows: minmax(168px, auto); }
.bt--cal { border-radius: 34px 34px 34px 46px; }
.bt--chat { border-radius: 28px 28px 46px 28px; }
.bt--pass { border-radius: 28px 46px 28px 28px; }
@media (max-width: 900px) { .bt--cal { border-radius: 28px 28px 28px 38px; } .bt--chat { border-radius: 28px 28px 38px 28px; } .bt--pass { border-radius: 28px 38px 28px 28px; } }

.nums__line { margin-top: clamp(20px, 3vw, 38px); font-weight: 700; font-size: clamp(15px, 1.6vw, 19px); opacity: 0.9; }
.num span { text-wrap: balance; max-width: 15em; min-height: 2.6em; }
.nums__g { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.num--a b { font-size: clamp(64px, 11vw, 170px); }
.num--b b, .num--c b { font-size: clamp(54px, 8vw, 120px); }
@media (max-width: 900px) { .nums__g { grid-template-columns: 1fr 1fr; } .num--a { grid-column: 1 / -1; } .num span { min-height: 0; } }
/* поиск города вылета */
.csearch { position: relative; max-width: 420px; margin: -10px 0 24px; }
.csearch__f input { width: 100%; height: 46px; padding: 0 16px 0 42px; border-radius: 16px; border: 0; font: 600 15px var(--font); color: var(--ink); background: var(--glass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355616a' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.500-3.500'/%3E%3C/svg%3E") 14px 50% / 20px no-repeat; box-shadow: inset 0 0 0 1px var(--line-2); outline: none; }
.csearch__f input:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.csearch__res { position: absolute; z-index: 20; left: 0; right: 0; top: 52px; margin: 0; padding: 6px; list-style: none; border-radius: 16px; background: var(--card); box-shadow: 0 18px 40px -16px rgba(10, 30, 50, 0.45), inset 0 0 0 1px var(--line-2); max-height: 280px; overflow: auto; }
.csearch__res li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; cursor: pointer; font-weight: 600; color: var(--ink); }
.csearch__res li:hover, .csearch__res li[aria-selected="true"] { background: var(--accent-soft); }
.csearch__res li small { margin-left: auto; color: var(--muted); font-weight: 500; }
.csearch__res .none { color: var(--muted); cursor: default; }
.cty--more { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }

/* слабые устройства и reduce-motion: без бесконечных анимаций и размытия; safe-area для вырезов и жестовой панели Android/iOS */
html.lite .stk--fox, html.lite .ribbon__in, html.lite .route__plane, html.lite .mapd i, html.lite .bellv__i, html.lite .bellv__bar i, html.lite .dest__row { animation: none !important; }
html.lite .ribbon__in { flex-wrap: wrap; width: auto; }
html.lite .top, html.lite .bt, html.lite .step, html.lite .tkw { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.lite .deal { transform: none !important; }
.top { padding-top: env(safe-area-inset-top, 0px); }
.foot { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.wrap { width: min(1120px, calc(100% - 40px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px))); }
.logo { white-space: nowrap; }
body { min-height: 100vh; min-height: 100dvh; }

/* живые цифры: градиентный текст не режется справа (отступ под выступы глифов при отрицательном letter-spacing), размер подбирает fitNums() в site.js по ширине колонки */
.num b { display: inline-block; max-width: 100%; padding: 0 0.1em 0.06em 0; margin-right: -0.1em; white-space: nowrap; overflow: visible; }
.num { min-width: 0; }
