/* Лендинг ByFly Taxi (taxi.byfly-travel.com). Общие цвета и шапка — site/bf-site.css. */

.wrap { max-width: var(--bf-wrap); margin: 0 auto; padding: 0 20px; }
html { scroll-behavior: smooth; }
h1, h2, h3, p, figcaption, summary, .doc span, .stat span { overflow-wrap: break-word; }
.doc span, .svc h3 { hyphens: auto; -webkit-hyphens: auto; }
.doc span { min-width: 0; }
.feat > div, .drv > div, .ct > div { min-width: 0; }
.sec { padding: 64px 0; }
.sec-head { max-width: 720px; margin-bottom: 28px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--bf-accent);
  font: 700 12px/1 var(--bf-head); letter-spacing: .14em; text-transform: uppercase;
}
.kicker::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--bf-grad-btn); }
.h2 { margin: 0; font: 800 clamp(28px, 7.4vw, 44px)/1.08 var(--bf-head); letter-spacing: -.01em; }
.lead { margin: 12px 0 0; color: var(--bf-muted); font-size: 17px; }
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Появление при прокрутке */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }

/* Телефон */
.phone {
  position: relative; width: 100%; aspect-ratio: 1320 / 2868; border-radius: 15% / 7%; padding: 3.2%;
  background: linear-gradient(145deg, #2B2E35, #0B0C0F 60%); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), 0 30px 60px rgba(30, 0, 6, .38);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 12.5% / 5.8%; background: #F2EFEC; }
.phone::after { /* «островок» */
  content: ""; position: absolute; top: 4.6%; left: 50%; width: 28%; height: 3%; transform: translateX(-50%);
  border-radius: 999px; background: #0B0C0F; opacity: 0; /* на снимке уже есть строка статуса — островок не рисуем */
}

/* Приглашение */
.invite { padding: 16px 0 0; }
.invite[hidden] { display: none; }
.invite-card {
  display: grid; gap: 10px; padding: 18px; border-radius: var(--bf-radius); background: var(--bf-card); box-shadow: var(--bf-shadow);
  border: 1.5px solid rgba(232, 6, 31, .25);
}
.invite-card h2 { margin: 0; font: 800 20px/1.2 var(--bf-head); }
.invite-card p { margin: 0; color: var(--bf-muted); }
.invite-code { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.invite-code output {
  font: 800 24px/1 var(--bf-head); letter-spacing: .06em; padding: 12px 16px; border-radius: 14px; background: rgba(232, 6, 31, .07);
  color: var(--bf-accent); word-break: break-all;
}

/* Главный экран */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--bf-grad); border-radius: 0 0 36px 36px; margin-top: -1px; }
.hero::before { /* «созвездие» */
  content: ""; position: absolute; inset: 0; opacity: .45; pointer-events: none;
  background: url("img/constellation.webp") center top / 1100px auto repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 70%, transparent 100%);
}
.hero::after { /* свечение */
  content: ""; position: absolute; width: 720px; height: 720px; left: 50%; top: 52%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 64, 90, .55), rgba(224, 25, 58, 0) 70%); pointer-events: none;
}
.hero-in { position: relative; z-index: 1; display: grid; gap: 34px; padding-top: 34px; padding-bottom: 0; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 7px 12px 7px 10px; border-radius: 999px;
  background: rgba(0, 0, 0, .2); border: 1px solid rgba(255, 255, 255, .25); font: 600 13px/1 var(--bf-font);
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bf-lime); box-shadow: 0 0 0 4px rgba(168, 240, 0, .22); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(168, 240, 0, .08); } }
.hero h1 { margin: 16px 0 0; font: 800 clamp(34px, 10vw, 64px)/1.03 var(--bf-head); letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: #fff; background: linear-gradient(90deg, #FFFFFF, #FFD7DC); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-lead { margin: 16px 0 0; font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, .9); max-width: 560px; }
.hero-cta { display: grid; gap: 10px; margin-top: 24px; }
.hero-visual { position: relative; width: min(300px, 76vw); margin: 0 auto; padding-bottom: 0; }
.hero-visual .phone { transform: translateY(14%); margin-top: -2%; animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px 9px 9px; border-radius: 16px;
  background: rgba(255, 255, 255, .96); color: var(--bf-ink); box-shadow: 0 14px 30px rgba(51, 2, 10, .28);
  font: 700 13px/1.15 var(--bf-head); max-width: 210px; opacity: 0; animation: chipIn .6s cubic-bezier(.2, .8, .2, 1) forwards;
}
.chip .ci { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--bf-grad-btn); flex: none; }
.chip .ci .ic { width: 17px; height: 17px; }
.chip-1 { left: -14%; top: 18%; animation-delay: .5s; }
.chip-2 { right: -16%; top: 42%; animation-delay: .8s; }
.chip-3 { left: -10%; top: 66%; animation-delay: 1.1s; }
@keyframes chipIn { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@media (max-width: 380px) { .chip { font-size: 12px; max-width: 170px; } .chip-1 { left: -8%; } .chip-2 { right: -8%; } .chip-3 { left: -6%; } }

@media (min-width: 900px) {
  .hero { border-radius: 0 0 56px 56px; }
  .hero-in { grid-template-columns: 1.1fr .9fr; align-items: center; padding-top: 56px; }
  .hero-cta { grid-auto-flow: column; justify-content: start; }
  .hero-visual { width: 320px; }
  .hero-text { padding-bottom: 72px; }
}

/* Сервисы */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.svc {
  position: relative; display: grid; align-content: start; gap: 6px; padding: 16px; border-radius: var(--bf-radius);
  background: var(--bf-card); box-shadow: var(--bf-shadow); overflow: hidden;
}
.svc img { width: 84px; height: 84px; object-fit: contain; margin: -4px 0 4px -4px; filter: drop-shadow(0 8px 10px rgba(51, 2, 10, .15)); }
.svc h3 { margin: 0; font: 800 18px/1.2 var(--bf-head); }
.svc p { margin: 0; color: var(--bf-muted); font-size: 14px; line-height: 1.5; }
.svc-taxi { grid-column: 1 / -1; padding: 20px; min-height: 190px; background: linear-gradient(135deg, #FFF1F1, #FFE3E6); }
.svc-taxi::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: url("img/constellation.webp") center / 700px auto; filter: invert(18%) sepia(85%) saturate(4000%) hue-rotate(345deg) brightness(.9);
  mix-blend-mode: multiply;
}
.svc-taxi > * { position: relative; }
.svc-taxi img { position: absolute; right: -6px; bottom: -8px; width: 168px; height: 168px; margin: 0; }
.svc-taxi h3 { font-size: 26px; }
.svc-taxi p { max-width: 60%; color: #5B3940; }
@media (prefers-color-scheme: dark) {
  .svc-taxi { background: linear-gradient(135deg, #2A1216, #1A1D23); }
  .svc-taxi p { color: var(--bf-muted); }
  .svc-taxi::before { filter: none; mix-blend-mode: normal; opacity: .14; }
}
@media (min-width: 900px) {
  .svc-grid { grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto auto; }
  .svc-taxi { grid-column: 1; grid-row: 1 / 3; min-height: 100%; padding: 28px; }
  .svc-taxi img { width: 230px; height: 230px; right: 0; bottom: 0; }
  .svc-taxi p { max-width: 68%; }
}

/* Преимущества пассажиру */
.feat-grid { display: grid; gap: 10px; }
.feat {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 16px; border-radius: var(--bf-radius);
  background: var(--bf-card); box-shadow: var(--bf-shadow);
}
.feat-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--bf-grad-btn); box-shadow: 0 8px 18px rgba(212, 7, 32, .28); }
.feat h3 { margin: 2px 0 4px; font: 800 17px/1.25 var(--bf-head); }
.feat p { margin: 0; color: var(--bf-muted); font-size: 14.5px; line-height: 1.5; }
@media (min-width: 700px) { .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1100px) {
  .feat-grid { grid-template-columns: repeat(4, 1fr); }
  .feat { grid-template-columns: 1fr; padding: 20px; }
}

/* Водителям — тёмный блок */
.drivers { position: relative; overflow: hidden; color: #F2F3F5; background: #0F1014; border-radius: 36px; margin: 0 8px; }
.drivers::before {
  content: ""; position: absolute; width: 900px; height: 900px; right: -320px; top: -360px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(232, 6, 31, .45), rgba(110, 4, 20, .18) 55%, transparent 72%);
}
.drivers::after {
  content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background: url("img/constellation.webp") center / 1000px auto;
}
.drivers .wrap { position: relative; z-index: 1; }
.drivers .kicker { color: #FF3B4E; }
.drivers .lead { color: #A9B0BC; }
.drv-top { display: grid; gap: 28px; align-items: center; }
.drv-visual { width: min(230px, 62vw); margin: 0 auto; }
.stats { display: grid; gap: 10px; margin-top: 24px; }
.stat {
  display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09);
}
.stat b { font: 800 34px/1 var(--bf-head); letter-spacing: -.02em; color: #fff; }
.stat-hot { background: linear-gradient(135deg, rgba(255, 15, 46, .28), rgba(110, 4, 20, .32)); border-color: rgba(255, 59, 78, .45); }
.stat-hot b { color: var(--bf-lime); }
.stat span { color: #C9CED8; font-size: 14.5px; line-height: 1.45; }
.stats-note { margin: 10px 0 0; color: #8D94A1; font-size: 13.5px; }
.drv-grid { display: grid; gap: 10px; margin-top: 30px; }
.drv {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 16px; border-radius: 20px;
  background: #1A1D23; border: 1px solid rgba(255, 255, 255, .06);
}
.drv .feat-ic { box-shadow: none; }
.drv h3 { margin: 2px 0 4px; font: 800 17px/1.25 var(--bf-head); color: #fff; }
.drv p { margin: 0; color: #A9B0BC; font-size: 14.5px; line-height: 1.5; }
.drv-eva .feat-ic { background: linear-gradient(135deg, #A8F000, #6FB800); color: #0F1014; }
.drv-cta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 700px) { .drv-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) {
  .drivers { margin: 0 20px; border-radius: 48px; }
  .drv-top { grid-template-columns: 1.2fr .8fr; }
  .drv-visual { width: 300px; }
  .drv-grid { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat { grid-template-columns: 1fr; align-content: start; }
}

/* Шаги */
.tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bf-card); box-shadow: var(--bf-shadow); margin-bottom: 18px; }
.tabs button {
  border: 0; background: transparent; cursor: pointer; padding: 10px 18px; border-radius: 999px; font: 700 14px/1 var(--bf-head);
  color: var(--bf-muted); min-height: 40px;
}
.tabs button[aria-selected="true"] { color: #fff; background: var(--bf-grad-btn); box-shadow: 0 6px 16px rgba(212, 7, 32, .3); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.steps li { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 0 0 22px; counter-increment: s; }
.steps li::before {
  content: counter(s); width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; color: #fff;
  font: 800 19px/1 var(--bf-head); background: var(--bf-grad-btn); box-shadow: 0 8px 18px rgba(212, 7, 32, .28); z-index: 1;
}
.steps li::after { content: ""; position: absolute; left: 23px; top: 52px; bottom: 4px; border-left: 2px dashed rgba(212, 7, 32, .35); }
.steps li:last-child::after { display: none; }
.steps h3 { margin: 4px 0 2px; font: 800 18px/1.25 var(--bf-head); }
.steps p { margin: 0; color: var(--bf-muted); }
.steps[hidden] { display: none; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .steps li { grid-template-columns: 1fr; padding: 22px; border-radius: var(--bf-radius); background: var(--bf-card); box-shadow: var(--bf-shadow); }
  .steps li::after { display: none; }
}

/* Экраны */
.shots-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.shots-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 200px; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px 20px 22px; margin: 0 -20px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.shots-track::-webkit-scrollbar { display: none; }
.shots-track[hidden] { display: none; }
.shot { scroll-snap-align: center; margin: 0; }
.shot .phone { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), 0 18px 36px rgba(51, 2, 10, .22); }
.shot figcaption { margin-top: 12px; text-align: center; font: 700 14px/1.3 var(--bf-head); }
.shots-note { margin: 0; color: var(--bf-muted); font-size: 13px; }
.shots-nav { display: none; gap: 8px; }
.shots-nav button {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--bf-card); box-shadow: var(--bf-shadow); color: var(--bf-ink);
}
@media (min-width: 900px) { .shots-track { grid-auto-columns: 230px; } .shots-nav { display: flex; } }

/* Скачать */
.dl-grid { display: grid; gap: 14px; }
.app-card {
  display: grid; gap: 14px; padding: 20px; border-radius: 26px; background: var(--bf-card); box-shadow: var(--bf-shadow);
}
.app-head { display: flex; align-items: center; gap: 14px; }
.app-head img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 8px 18px rgba(51, 2, 10, .2); }
.app-head h3 { margin: 0; font: 800 20px/1.2 var(--bf-head); }
.app-head p { margin: 2px 0 0; color: var(--bf-muted); font-size: 14px; }
.stores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.store {
  display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 12px; border-radius: 14px; text-decoration: none;
  color: #fff; background: #0E121B; border: 1px solid #0E121B;
}
.store svg { width: 24px; height: 24px; flex: none; fill: currentColor; }
.store small { display: block; font-size: 10.5px; line-height: 1.1; opacity: .8; }
.store b { display: block; font: 700 15px/1.15 var(--bf-head); }
.store.soon { background: transparent; color: var(--bf-muted); border: 1.5px dashed var(--bf-line); pointer-events: none; }
@media (prefers-color-scheme: dark) { .store { background: #F2F3F5; color: #0E121B; border-color: #F2F3F5; } .store.soon { background: transparent; color: var(--bf-muted); border-color: var(--bf-line); } }
.tf { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--bf-accent); text-decoration: none; }
.tf[hidden] { display: none; }
.tf:hover { text-decoration: underline; }
.dl-note { margin: 14px 0 0; color: var(--bf-muted); font-size: 13.5px; }
@media (min-width: 800px) { .dl-grid { grid-template-columns: 1fr 1fr; } }

/* Вопросы */
.faq-list { display: grid; gap: 10px; max-width: 860px; }
.faq-list details { border-radius: 18px; background: var(--bf-card); box-shadow: var(--bf-shadow); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 18px; font: 700 16px/1.35 var(--bf-head);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; width: 26px; height: 26px; flex: none; border-radius: 50%; background: rgba(232, 6, 31, .08) no-repeat center / 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D40720' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  transition: transform .2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details > div { padding: 0 18px 16px; color: var(--bf-muted); }
.faq-list details > div p { margin: 0; }
.faq-list a { color: var(--bf-accent); font-weight: 600; }

/* Документы */
.docs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.doc {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 14px; border-radius: 18px; text-decoration: none;
  background: var(--bf-card); box-shadow: var(--bf-shadow); font: 700 14.5px/1.3 var(--bf-head);
}
.doc .ic { color: var(--bf-accent); width: 22px; height: 22px; }
.doc:hover { outline: 2px solid rgba(232, 6, 31, .25); }
@media (min-width: 900px) { .docs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Контакты */
.ct-grid { display: grid; gap: 10px; }
.ct {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 16px; border-radius: 20px;
  background: var(--bf-card); box-shadow: var(--bf-shadow);
}
.ct h3 { margin: 0 0 2px; font: 700 14px/1.3 var(--bf-head); color: var(--bf-muted); }
.ct p, .ct a { margin: 0; font-weight: 600; color: var(--bf-ink); text-decoration: none; }
.ct a:hover { color: var(--bf-accent); }
.ct .feat-ic { width: 42px; height: 42px; border-radius: 13px; }
.ct-venue { background: linear-gradient(135deg, #FFF1F1, #FFFFFF); }
@media (prefers-color-scheme: dark) { .ct-venue { background: linear-gradient(135deg, #2A1216, #1A1D23); } }
.ct-venue .bf-btn { margin-top: 10px; }
@media (min-width: 800px) { .ct-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ct-grid { grid-template-columns: repeat(3, 1fr); } }

/* Липкая кнопка «Скачать» на телефоне */
.dl-float {
  position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40; transform: translate(-50%, 140%);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 14px 30px rgba(212, 7, 32, .4);
}
.dl-float.show { transform: translate(-50%, 0); }
@media (min-width: 960px) { .dl-float { display: none; } }
