/* Общий стиль сайта taxi.byfly-travel.com: цвета, шрифты, шапка, подвал, язык, окно «язык + cookies».
   Подключают лендинг и страницы правил (station-tasks/2026-11-02_taxi-site/COMMON.md). */

@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bf-red-1: #FF0F2E;
  --bf-red: #E8061F;
  --bf-crimson: #D40720;
  --bf-red-deep: #A8051B;
  --bf-wine: #6E0414;
  --bf-wine-black: #33020A;
  --bf-lime: #A8F000;
  --bf-night: #0F1014;
  --bf-graphite: #1A1D23;
  --bf-grad: linear-gradient(135deg, #FF0F2E 0%, #E8061F 20%, #D40720 42%, #A8051B 66%, #6E0414 88%, #33020A 100%);
  --bf-grad-btn: linear-gradient(135deg, #FF0F2E 0%, #EB0722 14%, #D40720 55%, #A8051B 100%);
  --bf-bg: #F5F3F1;
  --bf-card: #FFFFFF;
  --bf-ink: #0E121B;
  --bf-muted: #545C6B;
  --bf-line: #E7E3DF;
  --bf-accent: #D40720;
  --bf-radius: 22px;
  --bf-shadow: 0 1px 2px rgba(51, 2, 10, .05), 0 10px 28px rgba(51, 2, 10, .07);
  --bf-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bf-head: "Montserrat", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bf-wrap: 1180px;
  --bf-top-h: 60px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bf-bg: #0F1014;
    --bf-card: #1A1D23;
    --bf-ink: #F2F3F5;
    --bf-muted: #A9B0BC;
    --bf-line: #2A2E36;
    --bf-accent: #FF3B4E;
    --bf-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .28);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--bf-top-h) + 12px); }
body { margin: 0; background: var(--bf-bg); color: var(--bf-ink); font: 400 16px/1.55 var(--bf-font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--bf-lime); outline-offset: 2px; border-radius: 8px; }
.bf-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.i18n-wait body { visibility: hidden; }

/* Шапка */
.bf-top {
  position: sticky; top: 0; z-index: 50; color: #fff;
  background: var(--bf-grad);
  box-shadow: 0 6px 24px rgba(110, 4, 20, .25);
}
.bf-top::after { /* «созвездие» поверх градиента */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .28;
  background: url("img/constellation.webp") center / 900px auto repeat-x;
}
.bf-top-in {
  position: relative; z-index: 1; max-width: var(--bf-wrap); margin: 0 auto; height: var(--bf-top-h);
  padding: 0 max(16px, env(safe-area-inset-left)) 0 max(16px, env(safe-area-inset-right));
  display: flex; align-items: center; gap: 12px;
}
.bf-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #fff; flex: none; }
.bf-brand img { height: 22px; width: auto; }
.bf-brand-word {
  font: 600 11px/1 var(--bf-head); letter-spacing: .42em; text-transform: uppercase; padding-left: 9px;
  border-left: 1px solid rgba(255, 255, 255, .45); margin-top: 1px;
}
.bf-nav { display: none; margin-left: auto; gap: 4px; }
.bf-nav a { text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 999px; opacity: .92; }
.bf-nav a:hover { background: rgba(255, 255, 255, .14); opacity: 1; }
.bf-top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.bf-nav + .bf-top-actions { margin-left: 8px; }
@media (min-width: 960px) { .bf-nav { display: flex; } }

.bf-lang { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(0, 0, 0, .18); border: 1px solid rgba(255, 255, 255, .22); }
.bf-lang button {
  border: 0; background: transparent; color: #fff; cursor: pointer; font: 600 12px/1 var(--bf-font); letter-spacing: .04em;
  padding: 7px 9px; border-radius: 999px; min-width: 40px; min-height: 30px;
}
.bf-lang button[aria-pressed="true"] { background: #fff; color: var(--bf-crimson); }

/* Кнопки */
.bf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; font: 700 15px/1.2 var(--bf-head);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.bf-btn:active { transform: scale(.98); }
.bf-btn-red { color: #fff; background: var(--bf-grad-btn); box-shadow: 0 8px 22px rgba(212, 7, 32, .32); }
.bf-btn-white { color: var(--bf-crimson); background: #fff; box-shadow: 0 8px 24px rgba(51, 2, 10, .22); }
.bf-btn-ghost { color: #fff; background: rgba(255, 255, 255, .08); border: 1.5px solid rgba(255, 255, 255, .55); }
.bf-btn-sm { min-height: 36px; padding: 8px 14px; font-size: 13px; }

/* Подвал */
.bf-foot { background: var(--bf-night); color: #C9CED8; padding: 40px 0 calc(28px + env(safe-area-inset-bottom)); margin-top: 0; }
.bf-foot-in { max-width: var(--bf-wrap); margin: 0 auto; padding: 0 20px; display: grid; gap: 18px; }
.bf-foot .bf-brand img { height: 20px; }
.bf-foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.bf-foot-links a, .bf-linkbtn {
  color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; opacity: .88;
  background: none; border: 0; padding: 4px 0; cursor: pointer; text-align: left;
}
.bf-foot-links a:hover, .bf-linkbtn:hover { opacity: 1; text-decoration: underline; }
.bf-foot-op, .bf-foot-copy { margin: 0; font-size: 13px; line-height: 1.6; color: #9AA1AE; }
.bf-foot-op b { color: #DADDE3; font-weight: 600; }

/* Окно «язык + cookies» и полоса согласия (рисует bf-site.js) */
.bf-wlc {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: end center;
  background: rgba(15, 16, 20, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 12px; animation: bf-fade .2s ease;
}
@media (min-width: 640px) { .bf-wlc { place-items: center; } }
.bf-wlc[hidden] { display: none; }
.bf-wlc-card {
  width: min(460px, 100%); background: var(--bf-card); color: var(--bf-ink); border-radius: 26px;
  padding: 22px 20px calc(20px + env(safe-area-inset-bottom)); box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  animation: bf-up .25s cubic-bezier(.2, .8, .2, 1);
}
.bf-wlc-card:focus { outline: none; }
.bf-wlc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.bf-wlc-mark { width: 44px; height: 44px; border-radius: 13px; flex: none; background: var(--bf-grad) center / cover; display: grid; place-items: center; }
.bf-wlc-mark img { width: 28px; height: auto; }
.bf-wlc h2 { margin: 0; font: 800 20px/1.2 var(--bf-head); }
.bf-wlc p { margin: 0; color: var(--bf-muted); font-size: 14px; }
.bf-wlc-langs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0 16px; }
.bf-wlc-langs button {
  display: grid; gap: 2px; justify-items: center; padding: 12px 6px; border-radius: 16px; cursor: pointer;
  border: 1.5px solid var(--bf-line); background: transparent; font-weight: 600; font-size: 14px;
}
.bf-wlc-langs button b { font: 800 12px/1 var(--bf-head); letter-spacing: .06em; color: var(--bf-muted); }
.bf-wlc-langs button[aria-pressed="true"] { border-color: var(--bf-red); background: rgba(232, 6, 31, .07); }
.bf-wlc-langs button[aria-pressed="true"] b { color: var(--bf-red); }
.bf-wlc-cookie { display: flex; gap: 10px; padding: 12px; border-radius: 16px; background: rgba(127, 127, 127, .08); }
.bf-wlc-cookie h3 { margin: 0 0 2px; font: 700 14px/1.3 var(--bf-head); }
.bf-wlc-cookie p { font-size: 13px; line-height: 1.5; }
.bf-wlc-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.bf-wlc-actions .bf-btn { min-height: 46px; padding: 10px 12px; font-size: 14px; }
.bf-btn-soft { background: rgba(127, 127, 127, .12); color: var(--bf-ink); }

@keyframes bf-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bf-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
