:root{
  --ff-bg:#f4f6fb;
  --ff-card:#ffffff;
  --ff-text:#0e1a2b;
  --ff-muted:#667085;
  --ff-primary:#f2b400;
  --ff-primary-2:#ffd35a;
  --ff-blue:#2f6fed;
  --ff-radius:18px;
  --ff-shadow:0 12px 30px rgba(14,26,43,.10);
  --ff-border:1px solid rgba(14,26,43,.08);
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--ff-text);
  background:var(--ff-bg);
}
a{color:inherit; text-decoration:none}
img{max-width:100%; height:auto; display:block}
.ff-container{width:min(1200px, calc(100% - 32px)); margin:0 auto}

/* Header */
.ff-header{position:sticky; top:0; z-index:20; background:rgba(244,246,251,.78); backdrop-filter: blur(10px); border-bottom: var(--ff-border)}
.ff-topbar{display:flex; align-items:center; justify-content:space-between; padding:14px 0; gap:16px}
.ff-brand{display:flex; align-items:center; gap:16px; flex-wrap:wrap}
.ff-brand__link{display:flex; align-items:center}
.ff-logo{display:flex; align-items:center; gap:10px}
.ff-mark{font-size:20px}
.ff-name{font-weight:800; letter-spacing:.2px}
.custom-logo{height:34px; width:auto}
.ff-partner{display:flex; align-items:center; gap:6px; padding-left:12px; border-left:1px solid rgba(14,26,43,.10)}
.ff-partner__label{color:var(--ff-muted); font-size:13px}
.ff-partner__name{color:#e11d48; font-weight:800; font-size:13px}

.ff-topright{display:flex; align-items:center; gap:10px}
.ff-locale{display:flex; align-items:center; gap:8px; padding:8px 12px; background:rgba(255,255,255,.75); border: var(--ff-border); border-radius:999px; font-weight:700; font-size:13px}
.ff-phone{padding:8px 12px; background:#fff; border:var(--ff-border); border-radius:999px; font-weight:700; font-size:13px}

.ff-nav{padding:0 0 14px}
.ff-nav__inner{display:flex; justify-content:flex-start}
.ff-menu{list-style:none; display:flex; gap:18px; padding:0; margin:0; flex-wrap:wrap}
.ff-menu a{color:var(--ff-muted); font-weight:700; font-size:14px}
.ff-menu a:hover{color:var(--ff-text)}

/* Hero */
.ff-hero{position:relative; padding:34px 0 18px; overflow:hidden}
.ff-hero__bg{
  position:absolute; inset:0;
  background:
    radial-gradient(900px 300px at 20% 10%, rgba(255,255,255,.95), rgba(255,255,255,0)),
    radial-gradient(900px 260px at 80% 20%, rgba(255,255,255,.85), rgba(255,255,255,0)),
    linear-gradient(180deg, #dbeafe 0%, #f4f6fb 65%);
  z-index:0;
}
.ff-hero__inner{position:relative; z-index:1; display:grid; grid-template-columns: 1.2fr .8fr; gap:18px; align-items:center}
.ff-hero__title{margin:0 0 10px; font-size:44px; line-height:1.05; letter-spacing:-.6px}
.ff-hero__subtitle{margin:0 0 18px; color:var(--ff-muted); font-size:16px}
.ff-hero__plane{width:min(520px, 100%); filter: drop-shadow(0 18px 26px rgba(14,26,43,.18)); margin-left:auto}

/* Search box */
.ff-search{background:rgba(255,255,255,.72); border:var(--ff-border); border-radius:22px; padding:14px; box-shadow:var(--ff-shadow)}
.ff-search__row{display:flex; gap:10px; align-items:flex-end; flex-wrap:wrap}
.ff-search__row--bottom{margin-top:10px; align-items:center; justify-content:space-between}
.ff-field{display:flex; flex-direction:column; gap:6px; min-width:170px; flex:1}
.ff-field--small{min-width:120px; flex:0}
.ff-field__label{font-size:12px; color:var(--ff-muted); font-weight:700}
.ff-input{
  height:44px; border-radius:14px; border:var(--ff-border); padding:0 12px; background:#fff; font-weight:700;
  outline:none;
}
.ff-input:focus{box-shadow:0 0 0 4px rgba(47,111,237,.15); border-color:rgba(47,111,237,.35)}
.ff-btn{
  height:44px; border-radius:14px; border:0; padding:0 16px; font-weight:900; cursor:pointer;
  display:inline-flex; gap:10px; align-items:center; justify-content:center;
}
.ff-btn--primary{background:var(--ff-primary); color:#1b2432}
.ff-btn--primary:hover{filter:brightness(.98)}
.ff-btn--ghost{background:rgba(255,255,255,.65); border:var(--ff-border)}
.ff-chip{display:inline-flex; align-items:center; gap:8px; padding:8px 10px; border-radius:999px; border:var(--ff-border); background:rgba(255,255,255,.70); color:var(--ff-muted); font-weight:800; font-size:12px}

/* switch */
.ff-switch{display:flex; align-items:center; gap:10px; user-select:none; cursor:pointer}
.ff-switch input{position:absolute; opacity:0; pointer-events:none}
.ff-switch__ui{width:44px; height:26px; border-radius:999px; background:#e5e7eb; position:relative; border:var(--ff-border)}
.ff-switch__ui::after{content:""; width:20px; height:20px; border-radius:999px; background:#fff; position:absolute; top:50%; left:3px; transform:translateY(-50%); box-shadow:0 8px 14px rgba(0,0,0,.10)}
.ff-switch input:checked + .ff-switch__ui{background:rgba(47,111,237,.25)}
.ff-switch input:checked + .ff-switch__ui::after{left:21px}
.ff-switch__text{font-weight:800; color:var(--ff-muted); font-size:13px}

.ff-search__meta{display:flex; gap:10px; flex-wrap:wrap}

/* Promos */
.ff-promos{display:grid; grid-template-columns: 1fr 1fr; gap:14px; padding:14px 0 4px}
.ff-promo{position:relative; border-radius:22px; overflow:hidden; padding:18px; min-height:150px; border: var(--ff-border); box-shadow:var(--ff-shadow)}
.ff-promo__tag{font-weight:800; font-size:12px; opacity:.92; margin-bottom:8px}
.ff-promo__title{font-weight:900; font-size:24px; line-height:1.1; margin-bottom:12px}
.ff-promo__img{position:absolute; right:16px; bottom:-10px; width:190px; opacity:.95; pointer-events:none}
.ff-promo--gold{background:linear-gradient(135deg, #ffe8a3 0%, #ffc74d 100%)}
.ff-promo--blue{background:linear-gradient(135deg, #cfe2ff 0%, #7ab0ff 100%)}

/* Section */
.ff-section{padding:26px 0}
.ff-section__head{display:flex; align-items:flex-end; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:12px}
.ff-section__title{margin:0; font-size:22px}
.ff-section__sub{color:var(--ff-muted); font-weight:700}

/* Carousel */
.ff-carousel{position:relative}
.ff-carousel__track{
  display:flex; gap:12px; overflow:auto; padding:8px 2px 12px;
  scroll-snap-type:x mandatory;
  scrollbar-width: thin;
}
.ff-card{
  flex:0 0 280px;
  height:160px;
  border-radius:20px;
  position:relative;
  background:#dbeafe;
  background-size:cover;
  background-position:center;
  scroll-snap-align:start;
  overflow:hidden;
  border: var(--ff-border);
  box-shadow:var(--ff-shadow);
}
.ff-card__shade{position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 100%)}
.ff-card__body{position:absolute; inset:0; padding:14px; display:flex; flex-direction:column; justify-content:flex-end; gap:6px}
.ff-card__title{color:#fff; font-weight:900; font-size:18px}
.ff-card__price{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.ff-card__from{color:#e5e7eb; font-weight:800; font-size:12px}
.ff-card__amount{color:#fff; font-weight:900; font-size:13px}

.ff-carousel__btn{
  position:absolute; top:50%; transform:translateY(-50%);
  width:38px; height:38px; border-radius:999px; border:var(--ff-border); background:rgba(255,255,255,.80);
  display:flex; align-items:center; justify-content:center; cursor:pointer;
}
.ff-carousel__btn--prev{left:-10px}
.ff-carousel__btn--next{right:-10px}

/* Map section */
.ff-map__inner{display:grid; grid-template-columns: 1fr 1fr; gap:16px; align-items:center; border:var(--ff-border); background:rgba(255,255,255,.72); border-radius:22px; padding:18px; box-shadow:var(--ff-shadow)}
.ff-map__right img{max-height:180px; margin-left:auto; opacity:.95}
.ff-benefits{display:grid; grid-template-columns: repeat(3,1fr); gap:12px; margin-top:14px}
.ff-benefit{background:rgba(255,255,255,.72); border:var(--ff-border); border-radius:22px; padding:14px; box-shadow:var(--ff-shadow)}
.ff-benefit__icon{font-size:22px}
.ff-benefit__title{font-weight:900; margin-top:6px}
.ff-benefit__text{color:var(--ff-muted); font-weight:700; font-size:13px; margin-top:4px}

/* Pages */
.ff-page{padding:26px 0}
.ff-page__title{margin:0 0 14px; font-size:28px}
.ff-results__query{display:grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap:10px; background:rgba(255,255,255,.72); border:var(--ff-border); border-radius:18px; padding:12px; box-shadow:var(--ff-shadow)}
.ff-results__note{margin:12px 0; color:var(--ff-muted); font-weight:700}
.ff-results{display:flex; flex-direction:column; gap:10px; padding:10px 0}
.ff-result{display:flex; justify-content:space-between; gap:14px; align-items:center; background:rgba(255,255,255,.72); border:var(--ff-border); border-radius:18px; padding:14px; box-shadow:var(--ff-shadow)}
.ff-result__route{font-weight:900; font-size:16px}
.ff-result__code{background:rgba(255,255,255,.75); border:var(--ff-border); padding:6px 10px; border-radius:12px}
.ff-result__meta{color:var(--ff-muted); font-weight:700; font-size:13px; margin-top:6px}
.ff-result__price{font-weight:1000; font-size:22px}
.ff-result__cur{font-size:14px; font-weight:900; color:var(--ff-muted)}

.ff-mappage{display:grid; grid-template-columns: 1.3fr .7fr; gap:14px; align-items:start}
.ff-mappage__canvas{position:relative; background:rgba(255,255,255,.72); border:var(--ff-border); border-radius:22px; padding:18px; box-shadow:var(--ff-shadow); overflow:hidden}
.ff-mappage__canvas img{width:100%; height:auto; opacity:.95}
.ff-mappage__pin{position:absolute; width:30px; height:30px; border-radius:999px; background:var(--ff-primary); font-weight:900; display:flex; align-items:center; justify-content:center; box-shadow:0 12px 22px rgba(14,26,43,.18)}
.ff-mappage__panel{background:rgba(255,255,255,.72); border:var(--ff-border); border-radius:22px; padding:18px; box-shadow:var(--ff-shadow)}
.ff-ol{color:var(--ff-muted); font-weight:700}
.ff-ol li{margin:8px 0}

/* Footer */
.ff-footer{margin-top:40px; border-top:var(--ff-border); background:rgba(255,255,255,.60)}
.ff-footer__grid{padding:26px 0; display:grid; grid-template-columns: 1.2fr .6fr .6fr; gap:14px}
.ff-footer__brand{font-weight:1000}
.ff-footer__text{color:var(--ff-muted); font-weight:700}
.ff-footer__title{font-weight:900; margin-bottom:8px}
.ff-footer__links{list-style:none; padding:0; margin:0; display:grid; gap:8px}
.ff-footer__links a{color:var(--ff-muted); font-weight:800}
.ff-footer__links a:hover{color:var(--ff-text)}
.ff-footer__bottom{padding:12px 0; border-top:var(--ff-border); color:var(--ff-muted); font-weight:800; font-size:13px}

/* Responsive */
@media (max-width: 980px){
  .ff-hero__inner{grid-template-columns: 1fr}
  .ff-hero__right{display:none}
  .ff-promos{grid-template-columns: 1fr}
  .ff-map__inner{grid-template-columns: 1fr}
  .ff-benefits{grid-template-columns: 1fr}
  .ff-results__query{grid-template-columns: 1fr 1fr}
  .ff-mappage{grid-template-columns: 1fr}
  .ff-carousel__btn{display:none}
}
@media (max-width: 520px){
  .ff-hero__title{font-size:32px}
  .ff-field{min-width:100%}
  .ff-btn{width:100%}
  .ff-search__row--bottom{flex-direction:column; align-items:flex-start}
  .ff-footer__grid{grid-template-columns:1fr}
}


body{background:#f7f8fd}
.ff-header--clean{position:sticky;top:0;z-index:30;background:linear-gradient(180deg,#ffffff 0%,rgba(255,255,255,.95) 100%);backdrop-filter:blur(8px);border-bottom:1px solid rgba(20,35,68,.08)}
.ff-site-logo{height:40px;width:auto;display:block}
.ff-brand--singleline{flex-wrap:nowrap}
.ff-topbar{padding:18px 0}
.ff-partner{font-size:14px}
.ff-partner__label,.ff-partner__name{font-size:14px}
.ff-topright{gap:12px}
.ff-locale,.ff-phone{background:#fff; box-shadow:0 8px 20px rgba(19,35,66,.06)}
.ff-nav--header{padding:0 0 16px}
.ff-nav__inner{justify-content:flex-start}
.ff-menu{gap:28px}
.ff-menu a{font-size:15px;color:#334155}
.ff-menu a:hover{color:#111827}
.ff-home-shell{min-height:58vh;display:flex;align-items:center;padding:48px 0;background:linear-gradient(180deg,#eef4ff 0%,#f7f8fd 100%)}
.ff-home-shell__inner{display:flex;justify-content:center;align-items:center}
.ff-home-shell__card{width:min(720px,100%);text-align:center;background:rgba(255,255,255,.86);border:1px solid rgba(20,35,68,.08);border-radius:28px;padding:52px 32px;box-shadow:0 24px 60px rgba(19,35,66,.08)}
.ff-home-shell__card h1{margin:0 0 12px;font-size:40px;line-height:1.05;color:#111827}
.ff-home-shell__card p{margin:0;color:#667085;font-size:16px;font-weight:600}
.ff-footer--template{margin-top:0;border-top:1px solid rgba(20,35,68,.08);background:linear-gradient(180deg,rgba(255,255,255,.92) 0%,rgba(238,243,255,.92) 100%)}
.ff-footer__top{padding:20px 0 12px}
.ff-footer__topinner{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap}
.ff-footer__brandrow{display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.ff-site-logo--footer{height:34px}
.ff-footer__nav{display:flex;align-items:center;gap:24px;flex-wrap:wrap}
.ff-footer__nav a{font-size:14px;font-weight:700;color:#334155}
.ff-footer__nav a:hover{color:#111827}
.ff-footer__actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.ff-footer__locale,.ff-footer__phone{height:42px;display:inline-flex;align-items:center;justify-content:center;border-radius:14px;background:#fff;border:1px solid rgba(20,35,68,.08);padding:0 14px;box-shadow:0 8px 20px rgba(19,35,66,.06);font-weight:800;color:#1f2937}
.ff-footer__locale{gap:8px}
.ff-footer__middle{padding:8px 0 14px}
.ff-footer__middleinner{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap}
.ff-footer__payments,.ff-footer__socials{display:flex;align-items:center;gap:10px}
.ff-pay,.ff-social{display:inline-block;border-radius:999px}
.ff-pay{width:26px;height:14px;background:#dbe1ef;position:relative;overflow:hidden}
.ff-pay--visa{background:linear-gradient(90deg,#1a4fff 0%,#7aa2ff 100%)}
.ff-pay--mc{background:linear-gradient(90deg,#ef4444 0%,#f59e0b 100%)}
.ff-pay--mir{background:linear-gradient(90deg,#22c55e 0%,#0ea5e9 100%)}
.ff-social{width:28px;height:28px;background:#e8edf7;border:1px solid rgba(20,35,68,.08)}
.ff-footer__bottom{padding:12px 0 18px;border-top:1px solid rgba(20,35,68,.08);text-align:center;color:#667085;font-size:12px;font-weight:700}
@media (max-width:980px){.ff-topbar{padding:16px 0}.ff-brand--singleline{flex-wrap:wrap}.ff-nav__inner{justify-content:flex-start}.ff-menu{gap:16px}.ff-footer__topinner,.ff-footer__middleinner{flex-direction:column;align-items:flex-start}.ff-footer__nav{gap:14px}}
@media (max-width:520px){.ff-site-logo{height:34px}.ff-partner{padding-left:0;border-left:0}.ff-topright{width:100%;justify-content:space-between}.ff-locale,.ff-phone,.ff-footer__locale,.ff-footer__phone{font-size:12px;padding:0 10px}.ff-home-shell__card{padding:36px 20px}.ff-home-shell__card h1{font-size:30px}.ff-footer__nav{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px}}


/* ------------------------------------------------------------
   Header inline layout + language dropdown (added)
------------------------------------------------------------ */
.ff-header.ff-header--inline{
  background:#fff;
  backdrop-filter:none;
}
.ff-headerbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 0;
}
.ff-left{
  display:flex;
  align-items:center;
  gap:14px;
  min-width: 220px;
}
.ff-site-logo{
  height:34px;
  width:auto;
}
.ff-partner{
  display:flex;
  align-items:baseline;
  gap:6px;
  font-size:13px;
  color:var(--ff-muted);
  white-space:nowrap;
}
.ff-partner__name{ color:#d21f28; font-weight:800; }
.ff-nav--inline{ flex:1; display:flex; justify-content:center; }
.ff-nav--inline .ff-menu{
  justify-content:center;
  gap:22px;
}
.ff-right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  min-width: 220px;
}
.ff-localeDropdown{ position:relative; }
.ff-localeBtn{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  background:#fff;
  border:var(--ff-border);
  border-radius:999px;
  font-weight:700;
  font-size:13px;
  cursor:pointer;
}
.ff-localeMenu{
  position:absolute;
  right:0;
  top:calc(100% + 8px);
  min-width: 140px;
  background:#fff;
  border:var(--ff-border);
  border-radius:14px;
  box-shadow: var(--ff-shadow);
  padding:8px;
  display:none;
}
.ff-localeDropdown.is-open .ff-localeMenu{ display:block; }
.ff-localeItem{
  width:100%;
  text-align:left;
  padding:10px 10px;
  border-radius:10px;
  border:0;
  background:transparent;
  cursor:pointer;
  font-weight:700;
  color:var(--ff-text);
}
.ff-localeItem:hover{ background:rgba(14,26,43,.06); }
.ff-caret{ font-size:12px; opacity:.75; }

/* keep header usable on small screens */
@media (max-width: 900px){
  .ff-headerbar{ flex-wrap:wrap; }
  .ff-nav--inline{ order:3; flex: 1 1 100%; justify-content:flex-start; }
  .ff-nav--inline .ff-menu{ justify-content:flex-start; }
  .ff-left{ min-width:auto; }
  .ff-right{ min-width:auto; margin-left:auto; }
}
