:root {
--bg: #0b0f14;
--card: rgba(255,255,255,0.07);
--blur: 12px;
--text: #e8eef6;
--muted: #a8b0bb;
--accent: #7dd3fc;
--accent-2: #22d3ee;
--stroke: rgba(255,255,255,0.12);
--shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06);
--radius-xl: 20px;
--radius-2xl: 28px;
--glass-grad: linear-gradient( to bottom right, rgba(255,255,255,.12), rgba(255,255,255,.04) );
  --meta-drop-text: #fff;
    --route-fade-color: #0b0f14;
}
[data-theme="light"] {
--bg: #f6f8fb;
--card: rgba(255,255,255,0.6);
--text: #0e1521;
--muted: #455066;
--stroke: rgba(17,25,40,.12);
--shadow: 0 8px 26px rgba(17,25,40,.08), inset 0 1px 0 rgba(255,255,255,.5);
--glass-grad: linear-gradient( to bottom right, rgba(255,255,255,.85), rgba(255,255,255,.6) );
--meta-drop-text: #fff;
  --route-fade-color: #f6f8fb;
}


* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";

  background:
    radial-gradient(1200px 1200px at 80% -10%, rgba(34,211,238,.18), transparent 60%),
    radial-gradient(900px 900px at -10% 20%, rgba(125,211,252,.18), transparent 50%),
    var(--bg);

  background-repeat: no-repeat;      /* ← отключает повторение */
  background-attachment: fixed;      /* ← фон остаётся фиксированным */
  background-size: 100% 100%;        /* ← растянуть фон на всю страницу */

  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


.container { width: min(1280px, 92vw); margin: 0 auto; padding-bottom:5px; }


/* Header */
header {
  min-width: 0;
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(var(--blur));
  background: linear-gradient(to bottom, rgba(11, 15, 20, 0.06), rgba(11, 15, 20, 0));
  border-bottom: 1px solid rgba(17, 25, 40, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo-badge { width: 65px; height: 65px; border-radius: 50%; background: var(--glass-grad); border: 1px solid var(--stroke); box-shadow: var(--shadow); display: grid; place-items: center; position: relative; overflow: hidden; }
.logo-badge:before { content: ""; position: absolute; inset: 0;  background: radial-gradient(60% 40% at 60% 10%, rgba(255, 255, 255, 0.29), #0000 70%); }
.logo svg { width: 22px; height: 22px; }
.brand { font-weight: 700; letter-spacing: .2px; font-size: 18px; }
.nav-cta { display: flex; gap: 10px; align-items: center; justify-content: flex-end; flex-wrap: wrap; position: relative; }
.btn { padding: 10px 14px;
	border-radius: 12px; 
	border: 1px solid var(--stroke); 
	background: var(--glass-grad); 
	color: var(--text); text-decoration: none; font-weight: 400; 
	
	box-shadow: var(--shadow); transition: transform .15s ease, border-color .2s ease; display: inline-flex; align-items: center; gap: 8px; text-align: center; }
	
.btn:hover { transform: translateY(-1px); border-color: rgba(125,211,252,.5); }
.btn.primary { background: linear-gradient(135deg, rgba(125,211,252,.35), rgba(34,211,238,.28)); border-color: rgba(125,211,252,.55); }

.btn.mission-link {
  border-color: rgba(125,211,252,.34);
  background: linear-gradient(135deg, rgba(125,211,252,.16), rgba(255,255,255,.055));
}

.mission-page {
  min-height: 100%;
}

.mission-page header {
  position: absolute;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, rgba(11,15,20,.18), rgba(11,15,20,.03));
  border-bottom-color: rgba(255,255,255,.05);
  box-shadow: none;
}

.mission-hero {
  position: relative;
  min-height: clamp(560px, 74vh, 820px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 0;
  background: #080d12;
}

.mission-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(120px, 17vh, 220px);
  background: linear-gradient(0deg, #080d12 0%, rgba(8,13,18,.72) 36%, rgba(8,13,18,0) 100%);
  pointer-events: none;
}

.mission-hero-photo {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(.95) contrast(1.03);
  transform: translateX(-50%);
}

.mission-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6,10,15,.68) 0%, rgba(6,10,15,.34) 42%, rgba(6,10,15,.04) 76%),
    linear-gradient(0deg, rgba(11,15,20,.74) 0%, rgba(11,15,20,.16) 48%, rgba(11,15,20,.18) 100%);
}

@media (min-width: 1440px) {
  .mission-hero {
    min-height: clamp(680px, 82vh, 930px);
  }

  .mission-hero-photo {
    width: min(100vw, 1680px);
    max-width: none;
    object-position: center 22%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
  }
}

.mission-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 110px;
  padding-bottom: clamp(28px, 5vh, 56px);
}

.mission-hero-content h1 {
  max-width: 760px;
  margin: 18px 0 18px;
  font-size: clamp(46px, 7vw, 92px);
  line-height: .95;
  letter-spacing: 0;
}

.mission-hero-content p {
  max-width: 720px;
  margin: 0;
  color: rgba(232,238,246,.9);
  font-size: clamp(17px, 1.65vw, 22px);
  line-height: 1.5;
  font-weight: 560;
}

.mission-wrap {
  padding-top: clamp(34px, 6vw, 72px);
  padding-bottom: clamp(54px, 8vw, 96px);
}

.mission-article {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 54px);
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035)),
    rgba(8,13,18,.46);
  box-shadow: var(--shadow);
}

.mission-article p {
  margin: 0 0 22px;
  color: rgba(232,238,246,.82);
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.7;
  font-weight: 430;
}

.mission-article .mission-lead {
  color: var(--text);
  font-size: clamp(18px, 1.35vw, 22px);
  line-height: 1.6;
  font-weight: 620;
}

.mission-accent {
  margin: 34px 0;
  padding: 22px 24px;
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(125,211,252,.16), rgba(34,211,238,.06));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}

.mission-accent b {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: clamp(20px, 1.6vw, 25px);
}

.mission-accent span {
  display: block;
  color: rgba(232,238,246,.86);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.6;
}

.mission-final {
  color: var(--text) !important;
  font-weight: 650;
}

.mission-signature {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.mission-signature span {
  color: var(--muted);
  font-size: 14px;
}

.mission-signature strong {
  color: var(--text);
  font-size: clamp(20px, 1.6vw, 26px);
}

.policy-page {
  min-height: 100vh;
}

.policy-wrap {
  padding-top: 34px;
  padding-bottom: 64px;
}

.policy-article {
  max-width: 920px;
  margin: 0 auto;
  padding: 34px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: rgba(255,255,255,.045);
  box-shadow: var(--shadow);
}

.policy-article h1 {
  margin: 0 0 22px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
}

.policy-article h2 {
  margin: 28px 0 12px;
  font-size: 24px;
}

.policy-article p,
.policy-article li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.policy-article ul {
  margin: 0;
  padding-left: 22px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 30px;
}

.footer-policy-note {
  max-width: 980px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.footer-policy-note a {
  color: var(--text);
  font-weight: 700;
}

.footer-copy {
  display: block;
  margin-top: 12px;
  color: var(--text);
  font-size: 15px;
}

@media (max-width: 720px) {
  .mission-page .nav {
    align-items: flex-start;
    gap: 10px;
  }

  .mission-page .nav-cta {
    justify-content: flex-start;
  }

  .mission-hero {
    min-height: 620px;
  }

  .mission-hero-photo {
    object-position: 43% 30%;
  }

  .mission-hero-shade {
    background:
      linear-gradient(0deg, rgba(11,15,20,.96) 0%, rgba(11,15,20,.6) 43%, rgba(11,15,20,.12) 100%),
      linear-gradient(90deg, rgba(6,10,15,.48), rgba(6,10,15,.08));
  }

  .mission-hero-content {
    padding-bottom: 36px;
  }

  .mission-article {
    padding: 20px;
  }

  .mission-article p {
    line-height: 1.62;
    margin-bottom: 18px;
  }

  .mission-accent {
    margin: 26px 0;
    padding: 18px;
  }

  .mission-signature {
    display: block;
    text-align: right;
  }

  .mission-signature span {
    display: block;
    margin-bottom: 5px;
  }
}

.version-wrap{
  flex: 1 0 100%;
  display: flex;
  justify-content: flex-end;
  min-width: 280px;
  position: relative;
  z-index: 50;
}

.version-details{
  position: relative;
  width: min(560px, 100%);
  text-align: right;
}

.version-details summary{
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 28px;
  padding: 0 2px;
  color: rgba(229, 239, 247, 0.72);
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
}

.version-details summary::-webkit-details-marker{
  display: none;
}

.version-details summary:hover{
  color: var(--text);
}

.version-panel{
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(560px, 92vw);
  max-height: min(68vh, 720px);
  overflow: auto;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(16, 24, 31, 0.96);
  backdrop-filter: blur(var(--blur));
  box-shadow: 0 18px 44px rgba(0,0,0,.42);
  text-align: left;
}

.version-entry{
  padding: 10px 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.035);
}

.version-entry + .version-entry{
  margin-top: 8px;
}

.version-entry h3{
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--text);
}

.version-entry p{
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

[data-theme="light"] .version-panel{
  background: rgba(242, 247, 250, 0.96);
}

/* переопределяем глобальный header для карточек сделок */
.card.deal > header,
.deal header {
  position: relative;
  top: auto;
  z-index: 1;
  backdrop-filter: none;
  background: none;
  border-bottom: none;
}
/* Hero */
.hero { position: relative; padding: 72px 0 42px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; }
.title { font-size: clamp(34px, 4vw, 56px); line-height: 1.05; letter-spacing: -0.02em; margin: 8px 0 14px; }
.subtitle { color: var(--muted); font-size: clamp(15px, 1.6vw, 18px); line-height: 1.6; }
.hero-cta { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.super-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--accent);
  margin-bottom: 12px;
text-align:center;
  text-shadow: 0 0 10px rgba(125, 211, 252, 0.4);
}

.hero-card {
  position: relative;
  border-radius: var(--radius-2xl);
  padding: 22px;
  border: 1px solid var(--stroke);
  background: var(--card);
  backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow);
  width: 100%;        /* занимает всю колонку грида */
  max-width: 560px;   /* но не шире «нормальной» карты */
  margin: 0 auto;     /* центрируем внутри правой колонки */
}

.hero-card .grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 999px; border: 1px solid var(--stroke); background: var(--glass-grad); font-weight: 600; color: var(--text); font-size: 12px; letter-spacing:.2px; }
.chip .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2); }

.hero-right {
  position: relative;
}


/* Section titles */
.section { padding: 36px 0 10px; }
.section h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 14px; letter-spacing: -0.02em; }
.section p.lead { color: var(--muted); margin: 0 0 14px; }



/* Stats */
.stats-card{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.stats-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 520px;
}

.stat{
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: var(--glass-grad);
  padding: 12px 14px;
  box-shadow: var(--shadow);
}



.stat-label{
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

/* Stats tile alignment + responsive numbers */
.stat{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 0;
}

.stat-num{
  width: 100%;
  font-weight: 800;
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  letter-spacing: -0.03em;
  font-size: 22px;
  line-height: 1.1;
}

.stat-label{
  width: 100%;
  text-align: center;
}

@media (max-width: 520px){
  .stat{ padding: 10px 12px; }
  .stat-num{ font-size: clamp(20px, 5.2vw, 36px); }
}

@media (max-width: 380px){
  .stat-num{ font-size: clamp(18px, 6.2vw, 32px); }
}

.stats-card.stats-updated{
  animation: statsPulse 420ms ease;
}

@keyframes statsPulse{
  0%{ transform: scale(1); }
  50%{ transform: scale(1.01); box-shadow: 0 0 0 1px rgba(125,211,252,.35), var(--shadow); }
  100%{ transform: scale(1); }
}

@media (max-width: 768px){
  .stats-card{ flex-direction: column; }
  .stats-grid{ max-width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 769px) and (max-width: 1280px){
  .stats-card > div:first-child{ flex: 1 1 50%; max-width: 50%; }
  .stats-grid{ flex: 1 1 50%; max-width: 50%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 420px){
  .stats-grid{ grid-template-columns: 1fr; }
}

/* How it works */
.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card { border-radius: var(--radius-xl); border: 1px solid var(--stroke); background: var(--card); backdrop-filter: blur(var(--blur)); padding: 16px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.card h3 { margin: 6px 0 8px; font-size: 16px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.step { width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; color: #0b0f14; background: linear-gradient(135deg, var(--accent), var(--accent-2)); border: 1px solid rgba(255,255,255,.3); box-shadow: 0 6px 16px rgba(34,211,238,.35); }


/* Deals */
.deals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;  align-items: stretch;   grid-auto-rows: auto; grid-auto-flow: row dense;  }
.deals.deals-country-sorted { grid-auto-flow: row; }
.deal { overflow: visible !important; 
  height: auto; /* ← карточка тянется до высоты grid-ячейки */
  display: flex;
  flex-direction: column;

 }
 
 /* внутри сетки .deals каждая обёртка и карточка тянутся на всю ширину трека */
.deals .deal-wrap {
  width: 100%;
  min-width: 0;
}

.deals .deal-wrap .card.deal {
  width: 100%;
  min-width: 0;
    position: relative;       /* ← чтобы absolute-внутри цеплялся за карту */
  padding-bottom: 20px;     /* чуть места под индикатор */
}
.deal header { display:flex; align-items:center; justify-content: flex-start; gap:10px; margin-bottom: 8px; border: none; backdrop-filter: none; background: none; margin-right: 30px; }
.deal header .route-line {
  flex: 1 1 auto;  /* ← занимает всю доступную ширину */
  min-width: 0;    /* ← позволяет переполнение корректно измерять */
}

.tag { font-size: 12px; color: var(--muted); border: 1px solid var(--stroke); padding: 6px 8px; border-radius: 999px; }
.badge { position: absolute; top: 14px; right: 14px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #0b0f14; font-weight: 800; font-size: 12px; padding: 8px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); box-shadow: 0 8px 18px rgba(34,211,238,.35); }
.badge.hot {
  background: linear-gradient(135deg, #ffdfd5, #fe2400);
  color: #0b0f14;
  font-weight: 800;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(81, 9, 9, 0.42);
  box-shadow: 0 8px 18px rgba(238, 34, 34, 0.35);
}
.deal .meta { display:flex; align-items:normal; gap:9px; color: var(--muted); font-size: 13px; padding-left: 19px; }
.deal .price { font-size: 22px; font-weight: 800;  padding-left: 19px; }

.route-flags {
	display: block; 
  align-items: center;
  gap: 8px;
   white-space: nowrap;  
    flex-wrap: nowrap;
}

/* флаги ведут себя как символы в строке */
.route-flags .flag {
  display: inline-block;
  vertical-align: middle;
  margin-top: 0;
  margin-left: 4px;
  margin-right: 4px;
}
/* сам маршрут — обычный inline */
.route-flags .route {
  display: inline;
  white-space: normal;
}

.flag {
  width: 22px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 3px rgba(0,0,0,0.3);
  cursor: help;
  transition: transform .2s ease, box-shadow .2s ease;
  margin-top: 2px;
}

.flag:hover {
  transform: scale(1.15);
  box-shadow: 0 0 6px var(--accent);
}

.flag-hint {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: .25s;
}

.flag-hint.show {
  opacity: 1;
}





.tabs {
  display: flex;
  flex-wrap: nowrap;      /* Все вкладки в одну линию */
  gap: 6px;
  margin-bottom: 12px;
  overflow-x: auto;        /* Если много вкладок — скролл */
  padding-bottom: 2px;
}

.tabs::-webkit-scrollbar {
  height: 4px;
}

.tabs::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.2);
  border-radius: 4px;
}

.tab {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--stroke);

  background: var(--glass-grad);
  cursor: pointer;
  transition: .2s;

  color: var(--muted);
  white-space: nowrap; /* Не переносить дату */
}

/* активная вкладка + лёгкий glow */
.tab.active {
 border-color: #9d9d9d9e; 
  background: rgba(125, 211, 252, 0.18);
  color: var(--text);
  border-bottom: 0px;
}

/* 🔥 Аккуратный стиль «горячей» вкладки */
/* 🔥 Отключаем уникальный внешний вид hot-вкладок */
.tab.hot {
  background: var(--glass-grad);
  color: var(--muted) !important;
  border: 1px solid var(--stroke);
  box-shadow: none;
}

/* Если hot-вкладка активная — выглядит как обычная активная */
.tab.hot.active {
  background: rgba(125, 211, 252, 0.18);
  border-color: var(--accent);
  color: var(--text) !important;
  box-shadow: none;
}




.tab-date {
  font-weight: 600;
  font-size: 12px;
}

.tab-drop {
  font-size: 11px;
  opacity: .8;
  font-weight: bold;
}

.tab-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}
.tab-body-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.tabs-bottom {
  
  padding: 4px 10px 0;
  display: inline-flex;
  justify-content: center;
  position: relative;
  z-index: 3;
}

.tabs-bottom .month-tab {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  padding-top: 2px;
  padding-bottom: 6px;
  border-top: 0;
}

.tabs-months {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.month-tab {
	font-weight: 600; 
	 opacity: 0.55;
  transition: opacity 0.15s ease, color 0.15s ease;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: var(--glass-grad);
  cursor: pointer;
  transition: .2s;

  color: var(--muted);
  white-space: nowrap;
  font-size: 12px;
}

.month-tab.active {
  background: rgba(125, 211, 252, 0.18);
  color: var(--text);
  border-color: #989898ab;
  font-weight: 600;
    opacity: 1;
}

/* цифры для барабана */

.price-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.offer-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  position: relative;
  z-index: 4;
}

.deals-cards .offer-price-row:has(.price-history-point:hover),
.deals-cards .offer-price-row:has(.price-history-point:focus),
.deals-cards .offer-price-row:has(.price-history-point[data-active="1"]),
.deals-cards .offer-price-row:has(.price-history-bar:hover),
.deals-cards .offer-price-row:has(.price-history-bar:focus),
.deals-cards .offer-price-row:has(.price-history-bar[data-active="1"]) {
  z-index: 12050;
}

.price-history-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  width: 66px;
  min-width: 66px;
  height: 42px;
  gap: 0;
}

.price-history-wrap.is-empty {
  width: 0;
  min-width: 0;
  height: 0;
  overflow: hidden;
}

.price-history-wrap.is-single .price-history-chart {
  opacity: 0.3;
  transition: opacity 0.16s ease;
}

.price-history-wrap.is-single:hover .price-history-chart,
.price-history-wrap.is-single:focus-within .price-history-chart {
  opacity: 1;
}

.price-history-wrap:hover,
.price-history-wrap:focus-within {
  z-index: 10020;
}

.price-history-summary {
  appearance: none;
  width: 78px;
  min-width: 78px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 800 14px/1 Inter, system-ui, sans-serif;
  letter-spacing: 0;
  cursor: pointer;
  position: relative;
}

.price-history-summary-badge {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 4px 7px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  white-space: nowrap;
  line-height: 1;
  transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.price-history-summary.is-down {
  color: #4ade80;
}

.price-history-summary.is-down .price-history-summary-badge {
  background: rgba(74, 222, 128, 0.08);
}

.price-history-summary.is-down:hover .price-history-summary-badge,
.price-history-summary.is-down:focus-visible .price-history-summary-badge {
  color: #6dff9a;
  background: rgba(74, 222, 128, 0.16);
  box-shadow: 0 0 14px rgba(74, 222, 128, 0.28);
}

.price-history-summary.is-up {
  color: #f87171;
}

.price-history-summary.is-up .price-history-summary-badge {
  background: rgba(248, 113, 113, 0.08);
}

.price-history-summary.is-up:hover .price-history-summary-badge,
.price-history-summary.is-up:focus-visible .price-history-summary-badge {
  color: #ff8b8b;
  background: rgba(248, 113, 113, 0.16);
  box-shadow: 0 0 14px rgba(248, 113, 113, 0.3);
}

.price-history-summary.is-flat {
  color: var(--muted);
}

.price-history-summary-arrow {
  font-size: 18px;
  line-height: 1;
  transform: translateY(0px);
  flex: 0 0 auto;
}

.price-history-summary-value {
  min-width: 34px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.price-history-summary-percent {
  font-size: .72em;
  line-height: 1;
  margin-left: 1px;
}

.price-history-summary:hover,
.price-history-summary:focus-visible {
  outline: none;
  filter: brightness(1.12);
}

.price-history-chart {
  position: relative;
  display: block;
  width: 132px;
  height: 34px;
}

.price-history-wrap.is-bars {
  width: 66px;
  min-width: 66px;
  justify-content: flex-start;
}

.price-history-bars {
  position: relative;
  display: block;
  width: 66px;
  height: 38px;
  overflow: visible;
}

.price-history-bars::before {
  display: none;
}

.price-history-bar {
  position: absolute;
  left: var(--bar-x, 0px);
  top: var(--bar-y, 12px);
  z-index: 1;
  width: 9px;
  height: var(--bar-h, 14px);
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  outline: none;
  opacity: 0;
  transform: scaleY(.72);
  transform-origin: var(--bar-origin, 50% 50%);
  animation: priceHistoryBarIn .32s cubic-bezier(.2,.78,.2,1) forwards;
  animation-delay: var(--bar-delay, 0ms);
}

.price-history-bar.is-down {
  background: rgb(60,174,27);
  box-shadow: 0 0 12px rgba(60,174,27,.32);
}

.price-history-bar.is-up {
  background: rgb(185,28,28);
  box-shadow: 0 0 12px rgba(185,28,28,.32);
}

.price-history-bar.is-flat {
  border-radius: 999px;
  background: rgb(148,163,184);
  box-shadow: 0 0 10px rgba(148,163,184,.18);
}

.price-history-bar:hover,
.price-history-bar:focus-visible,
.price-history-bar[data-active="1"] {
  z-index: 10000;
  --bar-rest-opacity: 1;
  opacity: 1;
  transform: scaleY(1.08);
}

@keyframes priceHistoryBarIn {
  to {
    opacity: var(--bar-rest-opacity, .7);
    transform: scaleY(1);
  }
}

.price-history-svg {
  position: absolute;
  inset: 0;
  width: 132px;
  height: 34px;
  overflow: visible;
}

.price-history-line,
.price-history-flat {
  fill: none;
  stroke: #21f4ffa8;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 8px rgba(33, 244, 255, 0.34));
  animation: priceHistoryLineDraw 2s ease forwards;
}

.price-history-flat {
  opacity: 0.5;
}

.price-history-point {
  position: absolute;
  z-index: 1;
  width: 7px;
  height: 7px;
  padding: 0;
  border: 1px solid #21f4ff;
  border-radius: 50%;
  background: #081318;
  box-shadow: 0 0 9px rgb(33, 244, 255);
  transform: translate(-50%, -50%);
  cursor: pointer;
  outline: none;
  opacity: 0;
  animation: priceHistoryPointIn 0.22s ease forwards;
  animation-delay: var(--point-delay, calc(2s + (var(--point-index, 0) * 90ms)));
}

.price-history-wrap:not(:hover):not(:focus-within) .price-history-point {
  opacity: 0 !important;
  animation: none !important;
  box-shadow: none;
}

.price-history-wrap:hover .price-history-point,
.price-history-wrap:focus-within .price-history-point {
  opacity: 1;
}

@keyframes priceHistoryLineDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes priceHistoryPointIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.72);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.price-history-point-tip {
  position: absolute;
  z-index: 100000;
  left: 50%;
  bottom: calc(100% + 31px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: max-content;
  max-width: min(440px, calc(100vw - 32px));
  padding: 7px 10px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: rgba(12, 16, 22, 0.98);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.deals-cards .price-history-point-tip {
  bottom: calc(100% + 72px);
}

.price-history-point:hover .price-history-point-tip,
.price-history-point:focus .price-history-point-tip,
.price-history-point:focus-visible .price-history-point-tip,
.price-history-point[data-active="1"] .price-history-point-tip,
.price-history-bar:hover .price-history-point-tip,
.price-history-bar:focus .price-history-point-tip,
.price-history-bar:focus-visible .price-history-point-tip,
.price-history-bar[data-active="1"] .price-history-point-tip,
.price-history-summary:hover .price-history-point-tip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.price-history-point[data-suppressed="1"] .price-history-point-tip,
.price-history-bar[data-suppressed="1"] .price-history-point-tip {
  opacity: 0;
  transform: translate(-50%, 4px);
}

.price-history-delta.is-up {
  color: #fb7185;
}

.price-history-delta.is-down {
  color: #4ade80;
}

.price-history-point:hover,
.price-history-point:focus,
.price-history-point:focus-visible,
.price-history-point[data-active="1"] {
  z-index: 10000;
}

.price-history-point[data-active="1"] {
  background: #21f4ff;
  box-shadow: 0 0 0 3px rgba(33, 244, 255, 0.14), 0 0 12px rgba(33, 244, 255, 0.62);
}

.price-history-point.is-fresh-fast {
  animation: priceHistoryPointIn 0.22s ease forwards, priceHistoryFreshPulse 0.7s ease-in-out 2.25s infinite;
  animation-delay: var(--point-delay, 2s), var(--fresh-delay, 2.25s);
}

.price-history-point.is-fresh-slow {
  animation: priceHistoryPointIn 0.22s ease forwards, priceHistoryFreshPulse 1.8s ease-in-out 2.25s infinite;
  animation-delay: var(--point-delay, 2s), var(--fresh-delay, 2.25s);
}

@keyframes priceHistoryFreshPulse {
  0%, 100% {
    box-shadow: 0 0 9px rgb(33, 244, 255);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(33, 244, 255, 0.2), 0 0 17px rgba(33, 244, 255, 0.95);
  }
}

.price-history-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.price-history-overlay[hidden] {
  display: none;
}

.price-history-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.price-history-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(7px);
}

.price-history-panel {
  position: relative;
  width: min(820px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 18px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: rgba(25, 31, 37, 0.98);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.54);
  overflow: hidden;
}

.price-history-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.price-history-panel-head strong,
.price-history-panel-head span {
  display: block;
}

.price-history-panel-head strong {
  color: var(--text);
  font-size: 17px;
  line-height: 1.18;
}

.price-history-panel-head span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.price-history-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.price-history-large-chart {
  position: relative;
  width: 100%;
  aspect-ratio: 2.25 / 1;
  min-height: 220px;
  border: 1px solid rgba(125, 211, 252, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.06), rgba(255, 255, 255, 0.015));
}

.price-history-large-chart svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.price-history-large-line {
  fill: none;
  stroke: #21f4ff;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 12px rgba(33, 244, 255, 0.42));
}

.price-history-large-bar {
  position: absolute;
  min-width: 8px;
  min-height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  outline: none;
  opacity: 0;
  transform: scaleY(.78);
  transform-origin: var(--bar-origin, 50% 50%);
  animation: priceHistoryBarIn .34s cubic-bezier(.2,.78,.2,1) forwards;
  animation-delay: var(--bar-delay, 0ms);
}

.price-history-large-bar.is-down {
  background: rgb(60,174,27);
  box-shadow: 0 0 18px rgba(60,174,27,.3);
}

.price-history-large-bar.is-up {
  background: rgb(185,28,28);
  box-shadow: 0 0 18px rgba(185,28,28,.3);
}

.price-history-large-bar.is-flat {
  border-radius: 999px;
  background: rgb(148,163,184);
  box-shadow: 0 0 14px rgba(148,163,184,.24);
}

.price-history-large-bar:hover,
.price-history-large-bar:focus-visible,
.price-history-large-bar[data-active="1"] {
  z-index: 2;
  --bar-rest-opacity: 1;
  opacity: 1;
  transform: scaleY(1.04);
}

.price-history-large-bar[data-active="1"] {
  box-shadow: 0 0 0 5px rgba(125,211,252,.13), 0 0 22px rgba(125,211,252,.34);
}

.price-history-large-point {
  position: absolute;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 3px solid #21f4ff;
  border-radius: 50%;
  background: #081318;
  box-shadow: 0 0 14px rgba(33, 244, 255, 0.5);
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.price-history-large-point[data-active="1"] {
  background: #21f4ff;
  box-shadow: 0 0 0 5px rgba(33, 244, 255, 0.16), 0 0 18px rgba(33, 244, 255, 0.62);
}

.price-history-large-meta {
  min-height: 22px;
  margin-top: 12px;
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  white-space: pre-line;
  text-align: center;
}

.price-history-large-meta span {
  display: block;
}

.price-history-panel-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.price-history-panel-reset {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  cursor: pointer;
}

.price-history-panel-reset:hover,
.price-history-close:hover {
  border-color: rgba(125, 211, 252, 0.42);
  color: var(--text);
}

@media (max-width: 1024px), (pointer: coarse) {
  .price-history-wrap {
    cursor: default;
  }

  .price-history-point {
    pointer-events: none;
  }
}

@media (max-width: 560px) {
  .price-history-panel {
    padding: 14px;
  }

  .price-history-large-chart {
    min-height: 260px;
    aspect-ratio: 1.15 / 1;
  }
}

.offer-price-delta-wrap {
  display: inline-flex;
  align-items: center;
  min-height: 1.2em;
}

.offer-price-delta-wrap.is-stable {
  width: 100%;
  min-width: 64px;
}

.offer-price-delta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 4px 7px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: rgba(255,255,255,.025);
  white-space: nowrap;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  opacity: 0;
  transform: translateY(4px);
  animation: offerPriceDeltaIn 0.28s ease forwards;
}

.offer-price-delta.is-down {
  color: #24ff38;
  background: rgba(36, 255, 56, 0.08);
  text-shadow: 0 0 14px rgba(36, 255, 56, 0.35);
}

.offer-price-delta.is-up {
  color: #ff4c4c;
  background: rgba(255, 76, 76, 0.08);
  text-shadow: 0 0 14px rgba(255, 76, 76, 0.35);
}

.offer-price-delta.is-same {
  position: relative;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  color: rgba(229, 239, 247, 0.76);
  font-size: 12px;
  font-weight: 450;
  line-height: 1;
  text-shadow: none;
  outline: none;
}

.offer-stable-time {
  display: block;
  padding-right: 5px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.offer-stable-arrow {
  position: relative;
  display: block;
  width: var(--stable-pct, 100%);
  min-width: 18px;
  max-width: 100%;
  height: 7px;
}

.offer-stable-arrow::before {
  content: "";
  position: absolute;
  left: 0;
  right: 5px;
  top: 3px;
  height: 1px;
  background: linear-gradient(90deg, rgba(125, 211, 252, 0.12), rgba(229, 239, 247, 0.72));
}

.offer-stable-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 6px;
  height: 6px;
  border-top: 1px solid rgba(229, 239, 247, 0.72);
  border-right: 1px solid rgba(229, 239, 247, 0.72);
  transform: rotate(45deg);
}

.offer-price-delta.is-same::before {
  content: attr(data-stable-tooltip);
  position: absolute;
  z-index: 10090;
  right: 0;
  bottom: calc(100% + 8px);
  width: max-content;
  max-width: min(260px, calc(100vw - 32px));
  padding: 7px 10px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: rgba(12, 16, 22, 0.98);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
  color: var(--text);
  font-size: 12px;
  font-weight: 550;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.offer-price-delta.is-same:hover::before,
.offer-price-delta.is-same:focus::before,
.offer-price-delta.is-same:focus-visible::before {
  opacity: 1;
  transform: translateY(0);
}

.offer-price-delta-arrow {
  font-size: 24px;
  line-height: 0.8;
  order: 2;
}

@keyframes offerPriceDeltaIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.price {
  display: flex;
  align-items: center; 
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.price-static {
  justify-content: flex-start;
  white-space: nowrap;
  line-height: 1;
}

.price .digit-track span {
  letter-spacing: 0 !important;
}

.price-reset {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 180ms ease, transform 180ms ease;
}


.digit {
  width: 0.65em;              
  height: 1.2em;
  overflow: hidden;
  text-align: center;
}

.digit-track {
  will-change: auto;
}
.digit-track.digit-anim{
  will-change: transform;
}

.digit-track span {
  display: block;
  height: 1.2em;
  line-height: 1.2em;
  text-align: center;
  
}

.price {
  opacity: 1;
  transform: none;
}
.price-block.price-reset-out {
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 160ms ease, transform 160ms ease;
}

.price-block.price-reset-in {
  opacity: 1;
  transform: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.price-sep {
  width: 0.2em;
}



.deal-wrap {
  position: relative;
  margin-bottom: 29px;
}
.price-currency {
  margin-left: 0.25em;   /* сделай 0.35..0.7 по вкусу */
  white-space: nowrap;
}
.hero .deal-wrap {
  margin-bottom: 5px;
}
/* === CARD INSIDE HERO — уменьшенная тень === */
.hero-card .card {
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
	background:none;
}


/* Верхние вкладки выглядят как присоединённая панель */
.tabs-top {
  margin-bottom: -6px; /* подвинем внутрь карточки */
  padding: 0 10px 4px;
  display: inline-flex;
  margin-left: 7px;

  position: relative;
  z-index: 3;
}

/* Чтобы вкладки визуально были поверх карточки */
.tabs-top .tab {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  padding-bottom: 2px;
  padding-top: 4px;
  margin-bottom: 6px;
  border-bottom: 0px;
}



.tabs-arrow.left {
    left: 0;
}

.tabs-arrow.right {
    right: 5px;
}

.tabs-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  
  margin-bottom: -6px;
  position: relative;
  z-index: 3;
  margin-left: 11px;
      
    
    justify-content: center;
    
    padding: 2px 42px 0; /* reserve room for arrow counters and prevent top edge clipping */
    overflow: hidden; /* защита от вылета */
}

.tabs-window {
  overflow: hidden;
  flex: 1;
  padding-top: 1px;
}

/* ============================================
   DYNAMIC DROP HIGHLIGHT (TUNABLE)
   ============================================ */

/* 🔧 ТВОИ НАСТРОЙКИ — МОЖЕШЬ МЕНЯТЬ СМЕЛО */
:root {
  --drop-start: 30;   /* с какого % начинается эффект */
  --drop-end: 65;     /* на каком % исчезает эффект */
  --drop-color: 255, 60, 60; /* ярко-красный перелив */
}

/* Базовый стиль скидки */
.meta-drop {
  position: relative;
padding: 5px 7px 2px 7px;
  border-radius: 7px;
  font-weight: 400;
  font-size: 17px;
  color: var(--meta-drop-text);
  z-index: 1;
  letter-spacing: 0.04em;
  
  opacity: 0;
  transform: translateY(4px) scale(0.86);
  transition:
    opacity 220ms ease,
    transform 220ms cubic-bezier(.16,1,.3,1);
}

.meta-drop.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.meta-drop{--drop-color:60,174,27}

/* Только фон плашки */
.meta-drop::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 0, 0, 1); /* чистый красный */
  opacity: var(--drop-alpha, 0); /* управляем только фоном */
  border-radius: inherit;
  z-index: -1;
  transition: opacity 0.2s ease;
}





.tabs-track {
  display: flex;
  gap: 3px;
  transition: transform 0.3s ease;
}

.tabs-arrow {
  min-width: 32px;
  height: 26px;
  padding: 0 6px;
  border-radius: 6px;
  border: 1px solid var(--stroke);
  background: var(--glass-grad);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text);
  opacity: 0.8;
  transition: 0.2s;
  margin-bottom: 6px;
     position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}

.tabs-arrow:hover {
  opacity: 1;
}

.tabs-arrow-icon {
  line-height: 1;
}

.tabs-arrow-count {
  min-width: 8px;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  color: var(--muted);
}

.tabs-arrow[disabled] {
  opacity: 0.25;
  cursor: default;
}
.tabs-appear {
  opacity: 0;
  transform: translateY(0px) ;
  animation: tabsAppear .45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--appear-delay, 0ms);
  overflow: hidden; /* добавляем */
}

@keyframes tabsAppear {
  0% {
    opacity: 0;
    transform: translateY(0px) ;
  }
  60% {
    opacity: 0.1;
    transform: translateY(40px) scale(1.0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Карточка под вкладками */
.deal {
  position: relative;
  z-index: 2;
  margin-top: 0;
}







.super-deal-label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3px;
  color: #0b0f14;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 16px rgba(34, 211, 238, 0.35);
}


/* directions */
.tag {
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--stroke);
  padding: 6px 8px;
  border-radius: 999px;
  min-width: 30px;
  text-align: center;
}
.route {
 display: inline;
  flex-direction: column;
  line-height: 1.25;
    white-space: normal; 
}

.route strong {
  font-size: 16px;
  font-weight: 600;
    white-space: normal; 
}

.direction {
  font-size: 11px;
  color: var(--muted);
  margin-left: 2px;
    white-space: normal; 
}

.input {
  flex: 1;
  padding: 8px 16px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--glass-grad);
  color: var(--text);
  font-size: 15px;
  outline: none;
  backdrop-filter: blur(var(--blur));
  transition: all 0.25s ease;
}

.input::placeholder {
  color: var(--muted);
  opacity: 0.8;
}

.input:focus {
  border-color: rgba(125, 211, 252, 0.6);
  box-shadow: 0 0 20px rgba(125, 211, 252, 0.25), inset 0 1px 0 rgba(255,255,255,0.2);
  background: linear-gradient(to right, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
}

.input:hover {
  border-color: rgba(125, 211, 252, 0.4);
  transform: translateY(-1px);
}

.logo-badge svg {
  width: 65px;     /* можно 72px или 80px */
  height: 65px;
}


[data-theme="dark"] .logo-badge svg g:first-child {
  stroke: #38bdf8; /* голубой */
}
[data-theme="dark"] .logo-badge svg g:last-child {
  stroke: #0284c7; /* оранжевые узлы */
}

[data-theme="light"] .logo-badge svg g:first-child {
  stroke: #0284c7; /* более тёмный синий */
}
[data-theme="light"] .logo-badge svg g:last-child {
  stroke: #f97316; /* насыщенно-оранжевый */
}
/* === FUTURE-BAR (dark theme) === */
[data-theme="dark"] .bar-future {
  background: rgba(0, 0, 0, 0.85);
  opacity: 0.9;
  backdrop-filter: blur(1px);
}

/* === FUTURE-BAR (light theme) === */
[data-theme="light"] .bar-future {
  background: rgba(255, 255, 255, 0.85);
  opacity: 0.9;
  backdrop-filter: blur(2px);
  mix-blend-mode: lighten;
}


.hero-card #heroDeals {
  width: 100%;
}

/* контейнер карусели */
.hero-slider {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

/* окно просмотра */
.hero-window {
  width: 100%;
  overflow: hidden;
  
}

.hero-slide .tabs-bottom {
  padding-bottom: 6px;  /* было 0 — добавим чуть-чуть */
}

/* трек со слайдами */
.hero-track {
  display: flex;
  /* ВАЖНО: без width: 100%; пусть ширина будет по контенту, 
     а мы двигаем его transform-ом */
  transition: transform 0.45s cubic-bezier(.25, .8, .25, 1);
}

/* каждый слайд занимает ровно ширину окна */
.hero-slide {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
    min-width: 0;       /* 🔥 КРИТИЧЕСКИ ВАЖНО */
  overflow: hidden;   /* 🔥 не даём контенту растягивать */
  
}


/* сама карточка внутри слайда */
.hero-slide .deal-wrap {
  width: 100%;
  max-width: 560px;
    min-width: 0;        /* 🔥 важно */
  overflow: hidden;    /* 🔥 */
}

/* === MOBILE FIX FOR HERO CARD === */
@media (max-width: 576px) {

  /* Контейнер карточки */
  .hero-card {
    width: 100%;
    max-width: 100% !important;
    padding-left: 3px;
    padding-right: 3px;
    
  }

  /* Контейнер для карусели */
  .hero-slider {
    width: 100%;
    max-width: 100% !important;
    overflow: hidden;
  }

  /* Окно просмотра */
  .hero-window {
    width: 100%;
    max-width: 100% !important;
    overflow: hidden;
  }



  /* Каждый слайд ровно в ширину экрана */
  .hero-slide {
   
    width: 100% !important;
    min-width: 0;       /* 🔥 КРИТИЧЕСКИ ВАЖНО */
  }

  /* Карточка внутри */
  .hero-slide .deal-wrap,
  .hero-slide .deal {
    width: 100% !important;
 
  }
  .hero .deal-wrap {
  margin-bottom: 5px !important;
}
/* === CARD INSIDE HERO — уменьшенная тень === */
.hero-card .card {
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}
  
}






.hero-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px; /* ← увеличиваем расстояние */
    height: 22px; /* ← фиксированная высота, чтобы scale не давил */
    padding: 5px 0;
}

.hero-dot {
    appearance: none;
    -webkit-appearance: none;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0 !important;

    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 1px solid var(--stroke);
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: 0.25s;
}

[data-theme="light"] .hero-dot {
  background: rgba(0,0,0,0.15);
}

.hero-dot.active {
  background: var(--accent);
  border-color: var(--accent-2);
  transform: scale(1.25);
  box-shadow: 0 0 6px var(--accent);
   will-change: transform; /* Safari fix */
}

.hero-board-head {
  margin-bottom: 10px;
  text-align: center;
}

.hero-board-head .super-title {
  margin-bottom: 2px;
}

.hero-board-head .super-title span {
  display: inline-block;
}

.hero-region-title {
  color: var(--accent);
  font-size: 22px;
  line-height: 1.15;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(125, 211, 252, 0.35);
}

.hero-board {
  max-width: 660px;
  min-height: 0;
  padding: 18px;
  overflow: visible;
  z-index: 25;
  transition: min-height .28s ease, padding .28s ease;
}

.hero-region-nav {
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 22px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 660px;
  margin: 0 auto;
  padding: 0 24px;
  z-index: 30;
}

.hero-region-arrow {
  pointer-events: auto;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(190, 202, 211, 0.18);
  background: rgba(24, 31, 37, 0.34);
  color: rgba(214, 224, 232, 0.68);
  font-size: 0;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  transition: opacity .18s ease, transform .18s ease, background .18s ease, border-color .18s ease;
}

.hero-region-arrow::before {
  content: "";
  width: 11px;
  height: 11px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateX(-3px) rotate(45deg);
}

.hero-region-arrow-prev::before {
  transform: translateX(3px) rotate(225deg);
}

.hero-region-arrow:hover {
  transform: translateY(-1px);
  background: rgba(35, 43, 50, 0.58);
  border-color: rgba(210, 220, 228, 0.28);
  color: rgba(232, 239, 244, 0.82);
}

.hero-region-arrow:disabled {
  opacity: 0;
  pointer-events: none;
}

.hero-table {
  display: grid;
  gap: 2px;
  position: relative;
}

.hero-table.is-refreshing .hero-offer-row {
  animation: heroRowRiseIn 0.52s cubic-bezier(.2,.78,.2,1) both;
  animation-delay: var(--hero-row-delay, 0ms);
}

.hero-table.is-rotating-out {
  animation: heroTableFadeOut 0.32s ease both;
}

.hero-offer-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  border-radius: 8px;
  z-index: 1;
  transition: background .18s ease, transform .18s ease, opacity .18s ease;
}

.hero-offer-row:hover {
  background: rgba(255,255,255,0.055);
}

.hero-row-main {
  display: grid;
  grid-template-columns: 24px 54px 50px minmax(130px, 1fr) 82px 56px;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 5px 4px 5px 6px;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
  font-size: 14px;
}

.hero-row-main > span {
  min-width: 0;
}

.hero-row-status {
  display: flex;
  justify-content: center;
}

.hero-row-status .time-indicator {
  position: relative;
  width: 12px;
  height: 12px;
  overflow: visible;
}

.hero-row-status .time-dot {
  width: 9px;
  height: 9px;
}

.hero-row-date,
.hero-row-time,
.hero-row-price,
.hero-row-drop {
  white-space: nowrap;
}

.hero-row-date,
.hero-row-time {
  color: var(--muted);
  font-weight: 500;
}

.hero-row-route {
  overflow: hidden;
  white-space: nowrap;
  font-weight: 500;
  display: block;
  position: relative;
}

.hero-route-track {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: none;
  white-space: nowrap;
  transition: transform 1.35s ease;
}

.hero-row-route.is-overflow {
  -webkit-mask-image: linear-gradient(to left, transparent 0%, black 12%);
  mask-image: linear-gradient(to left, transparent 0%, black 12%);
}

.hero-row-route.is-overflow:hover {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.hero-row-route.is-overflow .hero-route-track {
  animation: heroRouteAutoScroll 7.5s ease-in-out infinite;
}

.hero-route-track span {
  color: var(--muted);
}

.hero-row-price {
  text-align: right;
  font-weight: 750;
}

.hero-row-drop {
  justify-self: end;
  min-width: 42px;
  text-align: right;
  color: rgba(238, 247, 255, 0.88);
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.hero-more {
  position: relative;
  justify-self: center;
  align-self: center;
  right: auto;
  top: auto;
  width: 36px;
  height: 32px;
}

.hero-more .offer-more-btn {
  position: static;
  width: 34px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  line-height: 1;
}

.hero-row-status .time-tooltip {
  bottom: auto;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.hero-row-status .time-indicator:hover .time-tooltip {
  transform: translateY(-50%) translateX(4px);
}

.hero-empty {
  min-height: 96px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
}

@keyframes heroRowIn {
  from {
    opacity: 0;
    transform: rotateX(-18deg) translateY(8px);
  }
  to {
    opacity: 1;
    transform: rotateX(0) translateY(0);
  }
}

@keyframes heroRowRiseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroTableFadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
  to {
    opacity: 0;
    transform: translateY(-8px);
    filter: blur(2px);
  }
}

@keyframes heroRouteAutoScroll {
  0%, 18% {
    transform: translateX(0);
  }
  48%, 68% {
    transform: translateX(calc(-1 * var(--hero-route-shift, 0px)));
  }
  100% {
    transform: translateX(0);
  }
}

@media (max-width: 1180px) {
  .hero-row-main {
    grid-template-columns: 22px 50px 48px minmax(96px, 1fr) 76px 52px;
    gap: 6px;
    font-size: 13px;
  }
}

@media (max-width: 1380px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-right {
    order: 99;
  }

  .hero-card,
  .hero-board {
    max-width: 720px;
  }

  .hero-row-main {
    grid-template-columns: 24px 54px 50px minmax(180px, 1fr) 88px 48px;
  }
}

@media (max-width: 680px) {
  .hero-board {
    min-height: 0;
    padding: 12px 10px;
  }

  .hero-region-nav {
    top: calc(100% + 12px);
    padding: 0 6px;
  }

  .hero-region-arrow {
    width: 34px;
    height: 34px;
  }

  .hero-region-arrow::before {
    width: 9px;
    height: 9px;
  }

  .hero-region-title {
    font-size: 18px;
  }

  .hero-row-main {
    grid-template-columns: 18px 44px minmax(0, 1fr) 68px 48px;
    gap: 5px;
    min-height: 36px;
    font-size: 12px;
  }

  .hero-row-time {
    display: none;
  }

  .hero-offer-row {
    grid-template-columns: minmax(0, 1fr) 36px;
  }

  .hero-more,
  .hero-more .offer-more-btn {
    width: 32px;
    height: 30px;
  }

  .hero-offer-row .hero-more,
  .hero-offer-row .hero-more .offer-more-btn {
    width: 32px;
    height: 30px;
  }
}



/* ================================
   АНИМАЦИИ ПОЯВЛЕНИЯ КАРТОЧЕК
   ================================ */

/* Вариант 1 — мягкий fade+scale */
.deal-anim-enter-1 {
  animation: dealFadeIn 0.35s ease forwards;
}
@keyframes dealFadeIn {
  0% { opacity: 0; transform: scale(0.92); }
  100% { opacity: 1; transform: scale(1); }
}

/* Вариант 2 — как teleport (из центра, blur) */
.deal-anim-enter-2 {
  animation: dealTeleport 0.35s ease forwards;
}
@keyframes dealTeleport {
  0% {
    opacity: 0;
    transform: scale(0.7) translateY(20px);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0px);
    filter: blur(0px);
  }
}

/* Вариант 3 — вылет снизу */
.deal-anim-enter-3 {
  animation: dealSlideUp 0.45s cubic-bezier(.25,.8,.25,1) forwards;
}
@keyframes dealSlideUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}



/* ================================
   АНИМАЦИИ УДАЛЕНИЯ КАРТОЧЕК
   ================================ */

/* Exit 1 — растворение */
.deal-anim-exit-1 {
  animation: dealFadeOut 0.35s ease forwards;
}
@keyframes dealFadeOut {
  to { opacity: 0; transform: scale(0.8); }
}

/* Exit 2 — "молекулы" */
.deal-anim-exit-2 {
  animation: dealMolecule 0.55s ease forwards;
}
@keyframes dealMolecule {
  0% { opacity: 1; transform: scale(1) rotate(0deg); filter: blur(0px); }
  100% {
    opacity: 0;
    transform: scale(0.5) rotate(25deg) translateY(-40px);
    filter: blur(10px);
  }
}

/* Exit 3 — "взрыв" */
.deal-anim-exit-3 {
  animation: dealExplode 0.45s ease forwards;
}
@keyframes dealExplode {
  0% { opacity: 1; transform: scale(1); filter: blur(0); }
  80% { transform: scale(1.4); opacity:0.4; }
  100% { transform: scale(1.7) rotate(15deg); opacity: 0; filter: blur(8px); }
}
/* ===========================================
      TEST PANEL (only for local development)
   =========================================== */

#testPanel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;

  display: none;
  flex-direction: column;
  gap: 8px;

  padding: 12px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

#testPanel button {
  cursor: pointer;
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 600;

  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;

  transition: 0.2s;
}

#testPanel button:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}


/* ===========================================
   SMOOTH 180° FLIP (NO MIRROR, NO BLINK)
   =========================================== */

/* --- 3D перспектива для карточки --- */
.deals {
  perspective: 1600px;
}

/* карточка — 3D объект */
.deal {
  transform-style: preserve-3d;
}

/* анимация применяется к самой карточке */
.deal.flip {
  animation: flipDeal 1.8s cubic-bezier(.33,.55,.22,1) forwards;
}

@keyframes flipDeal {
  0%   { transform: rotateX(0deg); opacity: 1; filter: blur(0); }
  100% {
    transform: rotateX(360deg);
    opacity: 1;          /* ✅ ВАЖНО */
    filter: blur(3);     /* ✅ */
  }
}
/* скрываем зеркальную сторону */
.deal-content {
  backface-visibility: hidden;
  min-width: 0;
}

/* ====================================================================================
   AEROHUNT — СТРОКА МАРШРУТА С ПРОКРУТКОЙ ДЛИННЫХ ГОРОДОВ, ИНДИКАТОРОМ ВРЕМЕНИ И ФЕЙДОМ
   ==================================================================================== */


/* =============================================================================
   1) ИНДИКАТОР ВРЕМЕНИ (ШАРИК + ТУЛТИП)
   ============================================================================= */

.time-indicator {
  display: flex;
  align-items: center;
  gap: 6px;

  font-size: 13px;
  opacity: 0.9;

  position: relative;
  flex-shrink: 1;
  z-index: 5;                 /* всегда сверху */

  pointer-events: auto;       /* важно — hover нужен для тултипа */
}

.time-dot {
	 position: relative;   /* ← ВАЖНО */
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: hsl(120, 90%, 45%);
  transition: background 0.4s linear;
  color: inherit; 
}
.time-dot::after {
	 position: absolute;
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: currentColor;
  filter: blur(6px);
  opacity: 0.75;
  pointer-events: none;
}



/* Мерцания */
@keyframes dotBlinkFast {
  0% { opacity: 1; }
  50% { opacity: 0.15; }
  100% { opacity: 1; }
}
.time-dot.blink-fast {
  animation: dotBlinkFast 0.8s infinite;
}

@keyframes dotBlinkSlow {
  0% { opacity: 1; }
  50% { opacity: 0.45; }
  100% { opacity: 1; }
}
.time-dot.blink-slow {
  animation: dotBlinkSlow 2.2s infinite;
}

.time-dot.is-status-pulsing {
  transform-origin: 50% 50%;
  animation: dotStatusPulse 1.35s cubic-bezier(.22,.72,.22,1) both;
}

@keyframes dotStatusPulse {
  0% { transform: scale(1); }
  45% { transform: scale(1.5); }
  100% { transform: scale(1); }
}

/* Тултип */
.time-tooltip {
  position: absolute;
  bottom: -26px;
  left: 7px;

  padding: 6px 9px;
  font-size: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.14);

  background: rgba(12,16,22,0.98);
  color: var(--text-tooltip);
  box-shadow: 0 12px 30px rgba(0,0,0,0.42);
  backdrop-filter: blur(10px);

  white-space: nowrap;
  opacity: 0;
	
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 30050;
}

[data-theme="light"] .time-tooltip {
  background: rgba(0,0,0,0.75);
}

.time-indicator:hover .time-tooltip {
  opacity: 1;
  transform: translateY(-4px);
  pointer-events: auto;
}

/* HERO: свечение всегда того же цвета, что и точка (не зависит от inherited color) */
.hero-card .time-dot::after,
.hero-slide .time-dot::after {
  background: inherit !important;
}
/* =============================================================================
   2) заставка для релоад страницы
   ============================================================================= */


#offers-reload-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 10, 0.75);
  backdrop-filter: blur(6px);
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;
}

#offers-reload-overlay[hidden] {
  display: none;
}

.offers-reload-box {
  background: #0d0f13;
  border-radius: 16px;
  padding: 32px 36px;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}

.offers-reload-box h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.offers-reload-box p {
  margin: 0 0 24px;
  opacity: .85;
}

.offers-reload-box button {
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 15px;
}




/* =============================================================================
   2) ГЛАВНЫЙ КОНТЕЙНЕР route-line (слой + fade + overflow)
   ============================================================================= */

/* Fade теперь работает через mask-image, а не затемнение сверху */
/* Fading справа — через mask-image */

/* Левая + правая шторка ВМЕСТЕ — только при hover */
/* БЕЗ hover — правая шторка всегда видна */
.route-line.is-overflow .route-mask {
  -webkit-mask-image: linear-gradient(
    to left,
    transparent 0%,
    black 12%
  );
  mask-image: linear-gradient(
    to left,
    transparent 0%,
    black 12%
  );

  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

/* С hover — включается и левая, и правая шторка */
.route-line.is-overflow:hover .route-mask {
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 4%,
    black 96%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 4%,
    black 96%,
    transparent 100%
  );
}

.route-line {
  display: flex;
  align-items: center;
  gap: 9px;

  flex: 1 1 auto;
  min-width: 0;

 overflow: visible; /* важно! */
}

.route-line::after { display: none; }



/* =============================================================================
   3) route-mask — скрывает трек, чтобы он не лез под индикатор
   ============================================================================= */

.route-mask {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;   /* <-- добавляем */
  height: 100%;          /* <-- добавляем */
  position: relative;
  overflow: hidden;
  pointer-events: auto;  /* <-- добавляем */
}



/* =============================================================================
   4) route-track — движущаяся линия (внутри маски)
   ============================================================================= */

.route-track {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;

  transform: translateX(0);
  transition: transform 1.2s ease; /* плавный уход и возврат */
}



/* движение туда–обратно */
@keyframes route-marquee-bounce {
  0%   { transform: translateX(0); }
  50%  { transform: translateX(calc(-1 * ((var(--scroll-distance) * 1px) + var(--extra-scroll)))); }
  100% { transform: translateX(0); }
}



/* =============================================================================
   5) ГОРОДА И ФЛАГИ
   ============================================================================= */

.route-city {
  display: inline;
  white-space: nowrap;
}

.route-arrow {
  display: inline;
}

.flag {
  width: 22px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;

  margin-left: 4px;
  margin-right: 4px;

  cursor: help;
  box-shadow: 0 0 3px rgba(0,0,0,0.3);
  transition: 0.2s ease;
}

.flag:hover {
  transform: scale(1.15);
  box-shadow: 0 0 6px var(--accent);
}


/* ====================================================================================
   КОНЕЦ — БЛОК ROUTE-LINE (индикатор, флаги, города, fade, анимация переполнения)
   ==================================================================================== */





.hero-slide .deal-inner {
    padding-bottom: 32px !important;
}
/* --- EXTRA SPACE FOR NORMAL DEAL CARDS (NOT HERO) --- */
.deal-wrap:not(.hero-slide .deal-wrap) .deal-inner {
    padding-bottom: 2px; /* было 24px — теперь больше места */
}

.deal-inner {
  min-width: 0;
}

.card.deal .found-time {
  position: absolute;
  right: 20px;
  bottom: 14px;

  display: flex;
  align-items: center;
  gap: 6px;

  font-size: 13px;
  opacity: 0.9;

  pointer-events: auto;
  z-index: 2;
}










/* ================================
   АДАПТИВ
   ================================ */

/* --- Контейнеры на маленьких экранах --- */
@media (max-width: 1024px) {
  .container {
    width: min(95vw, 100%);
  }

  header .nav {
    padding: 10px 10px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 40px;
    padding-bottom: 30px;
  
  }

  .hero-right {
    order: 99; /* текст сверху, карточка снизу */
  }

  .hero-cta {
    justify-content: center;
  }

  .super-title {
    margin-top: 10px;
  }

  .hero-card {
    margin: 0 auto;
    width: 100%;
    max-width: 503px;
}
  .hero-board {
    max-width: 660px;
  }
}


/* --- MOBILE < 768px --- */
@media (max-width: 768px) {
  .container {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
    margin: 0 auto;
  }


  /* лого + кнопки */
  .nav {
	  
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
  }

  .nav-cta {
    gap: 8px;
  }

  .btn {
    padding: 9px 12px;
    font-size: 14px;
  }
  .ticket-btn {
  text-align: center;        /* центрируем строки */
  justify-content: center;   /* центрируем содержимое flex-а */
  white-space: normal;       /* разрешаем перенос */
}

  /* HERO */
  .title {
    font-size: 28px;
  }

  .subtitle {
    font-size: 15px;
  }

  /* how → в 2 колонки */
  .how {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

/* --- MOBILE < 576px --- */
@media (max-width: 576px) {


  /* Хэдер */
  .nav {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
  }

  /* HERO: текст по центру, отступы меньше */
  .hero {
    padding-top: 28px;
    padding-bottom: 24px;
    gap: 22px;
  }

  .title {
    font-size: 26px;
    line-height: 1.15;
  }

  .hero-cta {
    flex-direction: column;
    gap: 8px;
  }


  /* HOW → одна колонка */
  .how {
    grid-template-columns: 1fr;
  }

  /* DEALS → 1 колонка */
  .deals {
    grid-template-columns: 1fr;
  }

  /* карточки */
  .deal .price {
    font-size: 20px;
  }

  .deal header {
    display:flex;
  align-items:center;
  gap:10px;
  }

  /* подписи к timebar */
  .timebar-labels {
    font-size: 9px;
    padding: 0 2px;
  }

  /* subscribe */
  .subscribe {
    flex-direction: column;
    gap: 18px;
  }

  .subscribe form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .input {
    width: 100%;
  }

  footer .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
  }
}

/* === FIX HERO CARD MOBILE WIDTH === */
@media (max-width: 576px) {
  .hero-card {
    width: 100% !important;
    max-width: 100% !important;
 

    
  }
  
  .hero .deal-wrap {
  margin-bottom: 5px;
}
  /* === CARD INSIDE HERO — уменьшенная тень === */
.hero-card .card {
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}
  .hero-slider,
  .hero-window,
  
  .hero-slide,
  .hero-slide .deal-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
}

/* --- ULTRA SMALL (iPhone SE) < 380px --- */
@media (max-width: 380px) {
  .title {
    font-size: 23px;
  }
  .btn {
    font-size: 13px;
    padding: 8px 10px;
  }
  .chip {
    font-size: 11px;
  }
}
/* === DEALS RESPONSIVE GRID === */

/* Desktop large (≥1280px) — 3 колонки */
.deals-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

/* Medium screens (900px–1279px) — 2 колонки */
@media (max-width: 1279px) {
  .deals {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small desktop / tablets (650px–899px) — 2 колонки */
@media (max-width: 899px) {
  .deals {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Phones (<576px) — 1 колонка */
@media (max-width: 576px) {
  .deals {
    grid-template-columns: 1fr;
	  grid-auto-rows: auto;     /* <-- ключевое */
    align-items: start;       /* на всякий */
    align-content: start;     /* на всякий */
  }
  
}
@media (max-width: 576px) {
  .container {
    width: 100%;
    padding-left: 3px;
    padding-right: 4px;
    margin: 0 auto;
    box-sizing: border-box;
  }
	
  .hero {
    display: block !important; /* отключает сетку полностью */
  }
}

/* === DEAL UPDATE: HIDE TABS BEFORE FLIP === */

/* базовое плавное появление */
.tabs,
.tabs-slider,
.tabs-months,
.tabs-bottom {
  transition: opacity 160ms ease, transform 160ms ease;
}

/* скрытие ВСЕХ табов во время обновления */
.deal-wrap.tabs-hiding .tabs-top,
.deal-wrap.tabs-hiding .tabs-bottom,
.deal-wrap.tabs-hiding .tabs-wrapper {
  opacity: 0;
  transform: translateY(0);
  pointer-events: none;
  transition: opacity 120ms linear;
}

/* отключаем любые animations у табов во время апдейта */
.deal-wrap.tabs-hiding .tabs-wrapper,
.deal-wrap.tabs-hiding .tabs-wrapper * {
  animation: none !important;
  animation-delay: 0ms !important;
}

/* скрытие табов при удалении */
.deal-wrap.removing .tabs-top,
.deal-wrap.removing .tabs-bottom {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 120ms linear, transform 120ms linear;
}





/* ================================
   ROUNDTRIP PAIR (2 cards plate)
   ================================ */

.deals .roundtrip-pair{
  grid-column: span 2;
  position: relative;
  border-radius: 18px;
  margin-bottom: 18px;

  padding: 0;            /* ✅ убрали — теперь карточки внутри в линию с одиночными */
}

.deals .roundtrip-pair::before{
  content:"";
  position:absolute;

  /* ✅ “визуальный padding”, но без смещения контента */
  inset: -10px;
  border-radius: 28px;   /* 18 + 10 (чтобы углы совпали) */

  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.22);

  opacity: 0;
  transition: opacity 180ms ease;
}

[data-theme="light"] .deals .roundtrip-pair::before{
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 12px 26px rgba(0,0,0,0.10);
}

.deals .roundtrip-pair.is-active::before{
  opacity: 1;                       /* включаем подсветку если валидно */
}

.deals .roundtrip-inner{
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;                        /* как у .deals */
  z-index: 1;
}

.deals .roundtrip-pair .deal-wrap{
  margin-bottom: 0;                 /* внутри пары отступ убираем */
}

.deals .roundtrip-caption{
  position: relative;
  z-index: 1;
  margin-top: 13px;
  text-align: center;
  font-size: 13px;
  opacity: 0.9;
  color: var(--muted);
}

.deals .roundtrip-pair:not(.is-active) .roundtrip-caption{
  display: none;                    /* нет подсветки => нет подписи */
}

/* Мобилка — в колонку */
@media (max-width: 576px){
  .deals .roundtrip-pair{
    grid-column: span 1;
    padding: 0;
  }
.deals .roundtrip-pair::before{
    inset: -8px 0;     /* ✅ top/bottom -8px, left/right 0 */
    border-radius: 18px;
  }
  
  .deals .roundtrip-inner{
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
/* ================================
   ROUNDTRIP DIVIDER (grid-track)
   - no overlap with tabs on mobile
   - full height on desktop
   - adds 3px air above/below line on mobile
   ================================ */

:root{
   --rt-divider-air-top: 14px;   /* ✅ было 8, добавили +2 сверху */
  --rt-divider-air-bot: 8px;    /* ✅ низ оставили как есть */
  --rt-divider-line: 1px;     /* толщина линии */
  --rt-divider-gap: 22px;     /* твой gap между карточками в roundtrip */
}

/* 2 карточки рядом: делаем 3 колонки (card | divider | card) */
.deals .roundtrip-inner{
  display: grid;
  grid-template-columns: 1fr calc(var(--rt-divider-gap)) 1fr;
  gap: 0; /* gap теперь задан средней колонкой */
  position: relative;
  z-index: 1;
}



/* раскладываем карточки по 1 и 3 колонке */
.deals .roundtrip-inner > .deal-wrap:nth-child(1){ grid-column: 1; }
.deals .roundtrip-inner > .deal-wrap:nth-child(2){ grid-column: 3; }

/* сама линия как grid-item (псевдоэлемент в средней колонке) */
.deals .roundtrip-inner::after{
  content:"";
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  align-self: stretch;

  width: var(--rt-divider-line);
  background: rgba(255,255,255,0.10);
  pointer-events: none;
}

[data-theme="light"] .deals .roundtrip-inner::after{
  background: rgba(0,0,0,0.10);
}

/* --- dotted / dashed варианты для десктопа (закомментировано) --- */
/*
.deals .roundtrip-inner::after{
  width: 0;
  background: none;
  border-left: 1px dotted rgba(255,255,255,0.20);
}
[data-theme="light"] .deals .roundtrip-inner::after{
  border-left-color: rgba(0,0,0,0.20);
}
*/

.deals .roundtrip-inner::after{
  width: 0;
  background: none;
  border-left: 1px dashed rgba(255,255,255,0.25);
}
:root{
  --rt-divider-extend-top: 8px;
  --rt-divider-extend-bot: 21px;
}

.deals .roundtrip-inner::after{
  margin-top: calc(-1 * var(--rt-divider-extend-top));
  margin-bottom: calc(-1 * var(--rt-divider-extend-bot));
}
[data-theme="light"] .deals .roundtrip-inner::after{
  border-left-color: rgba(0,0,0,0.30);
}
/* если кругорейс невалидный (плашка скрыта) — скрываем и линию */
.deals .roundtrip-pair:not(.is-active) .roundtrip-inner::after{
  display: none;
}

/* Мобилка: 1 колонка + “divider-row” строго между карточками */
@media (max-width: 576px){
  .deals .roundtrip-inner{
    grid-template-columns: 1fr;
    
	grid-template-rows: auto calc(var(--rt-divider-air-top) + var(--rt-divider-air-bot) + var(--rt-divider-line)) auto;
  }

  .deals .roundtrip-inner > .deal-wrap:nth-child(1){ grid-column: 1; grid-row: 1; }
  .deals .roundtrip-inner > .deal-wrap:nth-child(2){ grid-column: 1; grid-row: 3; }

  .deals .roundtrip-inner::after{
    grid-column: 1;
    grid-row: 2;
    justify-self: stretch;

    /* линия по центру divider-row */
    align-self: start;
    height: var(--rt-divider-line);
	 margin-top: var(--rt-divider-air-top);
    width: auto;

    background: rgba(255,255,255,0.10);
  }

  [data-theme="light"] .deals .roundtrip-inner::after{
    background: rgba(0,0,0,0.10);
  }

  /* dotted / dashed для мобилки (закомментировано) */
  /*
  .deals .roundtrip-inner::after{
    background: none;
    height: 0;
    border-top: 1px dotted rgba(255,255,255,0.20);
  }
  [data-theme="light"] .deals .roundtrip-inner::after{
    border-top-color: rgba(0,0,0,0.20);
  }
  */
 
  .deals .roundtrip-inner::after{
    background: none;
    height: 0;
    border-top: 1px dashed rgba(255,255,255,0.30);
  }
  [data-theme="light"] .deals .roundtrip-inner::after{
    border-top-color: rgba(0,0,0,0.30);
  }
 
}






/* ================================
   ROUNDTRIP CAPTION AS SINGLE TAB
   (чтобы бордер “обтекал” подпись как вкладка)
   ================================ */

.deals .roundtrip-pair{
  padding-bottom: 13px; /* место под вкладку */
}

/* Вкладка по центру снизу */
.deals .roundtrip-caption{
  position: absolute;
  left: 50%;
  bottom: -1px;             /* ровно на бордере пластины */
  transform: translate(-50%, 50%);
  z-index: 5;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 6px 12px 7px;
  border-radius: 12px;
  border: 1px solid var(--stroke);

  /* как у нижних month-tab (tabs-bottom) */
  border-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;

  background: var(--glass-grad);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.22);

  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;

  max-width: calc(100% - 28px);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Маска, чтобы бордер под вкладкой не просвечивал через “стекло” */
.deals .roundtrip-caption::before{
  content: "";
  position: absolute;
  inset: -3px -10px 0;      /* чуть шире вкладки */
  border-radius: 14px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  background: var(--bg);
  z-index: -1;
}

/* Если ранее добавлялись линии (before/after) — выключаем after */
.deals .roundtrip-caption::after{
  display: none !important;
}

/* Если есть .rt-text из прошлой версии — сбрасываем подчёркивание */
.deals .roundtrip-caption .rt-text{
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
  max-width: none !important;
}

/* =========================================================
   ROUNDTRIP caption as a single "tab" (like month tabs)
   - hangs below the merged 2-card plate (bottom: -24px)
   - no border seam between plate and caption (overlap -1px + border-top:0)
   - background matches the plate (::before) for a unified look
   Put this block at the VERY END of style.css
   ========================================================= */

/* ensure the plate can show the tab outside */
.deals .roundtrip-pair{
  position: relative;
  overflow: visible;
}

/* give space so the next row doesn't crash into the hanging tab */
.deals .roundtrip-pair.is-active{
  margin-bottom: 42px; /* 24px hang + a bit of breathing room */
}

/* kill previous "3-line" experiments if any */
.deals .roundtrip-caption::before,
.deals .roundtrip-caption::after{
  content: none !important;
}

/* the tab itself */
.deals .roundtrip-caption{
  position: absolute;
  left: 50%;
  bottom: -41px;                 /* requested */
  transform: translate(-50%, -1px); /* overlap the plate border by 1px to remove seam */
  z-index: 5;

  /* keep it as ONE line */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(760px, calc(100vw - 48px));

  /* tab look */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0px;

  padding: 6px 16px 8px;
  font-size: 13px;
  line-height: 1.2;
  color: var(--muted);
  opacity: 1;

  /* SAME glass as merged plate */
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-top: 0;                 /* key for "one piece" */
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.22);

  /* like your month tabs: no top radius, rounded bottom */
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;

  pointer-events: none;
}

/* light theme parity */
[data-theme="light"] .deals .roundtrip-caption{
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.10);
  box-shadow: 0 12px 20px rgba(0,0,0,0.10);
}


@media (max-width: 576px){
  .deals .roundtrip-pair{ padding-bottom: 26px; }
  .deals .roundtrip-caption{
    font-size: 12px;
    padding: 6px 10px 7px;
    max-width: calc(100% - 18px);
	bottom: -29px;
  }
}
/* =========================================================
   ROUNDTRIP warning styling + tooltip
   Append to the END of style.css
   ========================================================= */

/* allow hover/tap interactions on the hanging caption */
.deals .roundtrip-caption{
  pointer-events: auto;
}

/* underline + red emphasis for "на X дней" when out of RU range */
.deals .roundtrip-caption .rt-days{
  display: inline-block;
  font-weight: 400;
}

.deals .roundtrip-caption .rt-days.is-warn{
 /* color: rgba(255, 90, 90, 0.95); 
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px; */
  cursor: help;
}


.deals .roundtrip-caption .rt-warn{
  margin-left: 2px;
  cursor: help;
  margin-bottom: 3px;
}


/* warning icon (optional) */
.deals .roundtrip-caption .rt-warn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  color: rgba(255, 170, 60, 0.95);
  cursor: help;
  user-select: none;
  opacity:0.85;
}

/* tooltip bubble */
[data-rt-tip]{
  position: relative;
}

[data-rt-tip]::after{
  content: attr(data-rt-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(6px);
  opacity: 0;
  pointer-events: none;

  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;

  background: rgba(10,10,12,0.92);
  color: rgba(255,255,255,0.96);
  box-shadow: 0 14px 28px rgba(0,0,0,0.35);
  z-index: 1000;
}

[data-rt-tip]::before{
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;

  border: 6px solid transparent;
  border-top-color: rgba(10,10,12,0.92);
  z-index: 1000;
}

/* show tooltip on hover/focus + on mobile toggle class */
[data-rt-tip]:hover::after,
[data-rt-tip]:hover::before,
[data-rt-tip]:focus::after,
[data-rt-tip]:focus::before,
.rt-tip-open::after,
.rt-tip-open::before{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* light theme tooltip tweak */
[data-theme="light"] [data-rt-tip]::after{
  background: rgba(255,255,255,0.96);
  color: rgba(0,0,0,0.88);
  box-shadow: 0 14px 28px rgba(0,0,0,0.15);
}

[data-theme="light"] [data-rt-tip]::before{
  border-top-color: rgba(255,255,255,0.96);
}


/* =========================================================
   ROUNDTRIP: swap animation helper
   ========================================================= */
.deals .roundtrip-inner.rt-swapping{
  pointer-events: none;
}
.deals .roundtrip-inner.rt-swapping > .deal-wrap{
  will-change: transform;
}

/* =========================================================
   ROUNDTRIP: warning emphasis (if not already present)
   ========================================================= */



/* === FILTERS SECTION === */
.filters-card { padding: 18px; }
.filters-form { display: grid; gap: 14px; }

.filters-grid{
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.8fr;
  gap: 14px;
  align-items: end;
}
@media (max-width: 880px){
  .filters-grid{ grid-template-columns: 1fr; }
}

.label{
  display:block;
  font-size: 13px;
  opacity: .9;
  margin: 0 0 6px 2px;
}
.req{ opacity: .9; }

.hint{
  margin-top: 8px;
  font-size: 12.5px;
  opacity: .75;
  margin-left: 2px;
}
.error{
  margin-top: 8px;
  font-size: 13px;
  color: rgba(239, 68, 68, .95);
  margin-left: 2px;
}

.filters-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px;
  justify-content: center;
  align-items: stretch;

  width: 100%;
  /*max-width: 403px;    визуальный центр */
  
}
.filters-actions .btn {
  width: 100%;
  justify-content: center;
  cursor: pointer;
}

.price-filter{
  display:flex;
  align-items:center;
  gap: 10px;
}
.price-prefix, .price-suffix{
  font-size: 14px;
  opacity: .8;
  user-select: none;
}

.filters-group-title {
  font-size: 13px;
 
  opacity: 0.85;
  margin-bottom: 6px;
}

/* ===============================
   EXTRA FILTERS (collapsible)
   =============================== */

/* header line inside the card */
.filters-extra-head{
  display: flex;
  align-items: center;
  gap: 0px;
  margin: 0 0 0px;
}

/* title stays as plain text */
.filters-extra-title{
  margin: 0;
  cursor: pointer;
  user-select: none;
}

.filters-extra-title:hover{
  opacity: 1;
}


/* only the caret is clickable */
.filters-extra-caret-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  margin-bottom:1px;

  /* subtle hover without making it look like a big button */
  transition: background 160ms ease, opacity 160ms ease;
  opacity: 0.85;
}

.filters-extra-caret-btn:hover{
  background: rgba(255,255,255,0.06);
  opacity: 1;
}

.filters-extra-caret-btn:active{
  background: rgba(255,255,255,0.09);
}

.filters-extra-caret-btn:focus-visible{
  outline: 2px solid rgba(125, 211, 252, 0.55);
  outline-offset: 3px;
}

.filters-extra-caret{
  font-size: 21px;
  line-height: 1;
  opacity: 0.75;
  transition: opacity 180ms ease;
  user-select: none;
}

.filters-extra.is-open .filters-extra-caret{ opacity: 1; }

.filters-extra-content[hidden]{
  display: none !important;
}

/* gap works only on flex/grid, so make the content a flex-column */
.filters-extra-content{
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 2px;
  align-items: stretch;
}

/* inner "glass" subcard inside extra (no height:100% stretch like .filters-field) */
.filters-subcard{
  display: flex;
  flex-direction: column;
  gap: 8px;

  width: 100%;
  min-width: 0;

  padding: 5px 12px;
  border-radius: 16px;

  background: var(--glass-grad);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--blur));
}

/* Multi-select */
.multi-select{
  position: relative;
  border: 1px solid var(--stroke);
  background: var(--glass-grad);
  box-shadow: var(--shadow);
  border-radius: 14px;
  padding: 10px 10px;
  backdrop-filter: blur(var(--blur));
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-height: 48px;
}
.multi-select:focus-within{
  border-color: rgba(125, 211, 252, 0.6);
  box-shadow: 0 0 20px rgba(125, 211, 252, 0.18), inset 0 1px 0 rgba(255,255,255,0.12);
  background: linear-gradient(to right, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
}

.multi-select.is-initial-loading{
  cursor: wait;
}

.multi-select.is-initial-loading .origin-input{
  display: none;
}

.filter-input-loading{
  flex: 1 1 100%;
  min-width: 0;
  padding: 2px 6px;
  color: var(--muted);
}

.filter-input-loading__text{
  font-size: 13px;
  line-height: 1.2;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-input-loading__bar{
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.12);
}

.filter-input-loading__bar > i{
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: rgba(125, 211, 252, 0.82);
  box-shadow: 0 0 14px rgba(125, 211, 252, 0.35);
  transition: width 160ms ease;
}

.chips{ display:flex; gap: 8px; flex-wrap: wrap; align-items:center; }
.chip-item{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 10px 6px 16px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.06);
  font-size: 13px;
  
}
[data-theme="light"] .chip-item{
  background: rgba(0,0,0,0.04);
}
.chip-item button{
  border: none;
  background: transparent;
  color: inherit;
  opacity: .8;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0 2px;
}
.chip-item button:hover{ opacity: 1; }

.origin-input{
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 8px 12px !important;
  min-width: 180px;
  flex: 1 1 180px;
}
.origin-input:focus{ outline: none; }

.suggestions{
  position:absolute;
  left: 0px;
  right: 0px;
  top: calc(100% + 6px);
  z-index: 30;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--bg);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  overflow: hidden;
  max-height: 260px;
}
.suggest-item{
  padding: 10px 12px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}
.suggest-item:hover,
.suggest-item.is-key-active{
  background: rgba(125,211,252,0.10);
}
.suggest-main{ display:flex; flex-direction: column; gap: 2px; }
.suggest-code{
  font-size: 12px;
  opacity: .8;
  letter-spacing: .4px;
}
.suggest-city{
  font-size: 14px;
  font-weight: 500;
}

.filters-checkbox{
  padding-bottom: 6px;
}
.check{
  display:flex;
  gap: 10px;
  align-items:center;
  user-select:none;
  cursor:pointer;
  padding: 7px 10px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--glass-grad);
  box-shadow: var(--shadow);
  font-size: 14px;
  backdrop-filter: blur(var(--blur));
}
.check input{
  width: 18px;
  height: 18px;
  accent-color: #38bdf8;
}

/* Roundtrip range controls */
.rt-range-row{
  display:flex;
  align-items:center;
  gap: 3px;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0; /* allow flex children to shrink */
  padding: 6px 14px;
  margin: 0px 0 0px;
  border-radius: 14px;
  border: 1px dashed var(--stroke);
  background: var(--glass-grad);
  backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow);
  font-size: 13px;
  line-height: 1.2;
  
}
.rt-range-text{ white-space: nowrap; }
/* allow the first text to shrink instead of pushing "дней" outside */
.rt-range-row .rt-range-text:first-child{
/*  flex: 1 1 auto; */
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rt-range-row .rt-range-text:last-child{
  flex: 0 0 auto;
}
.rt-range-dash{ opacity: .7; }
.rt-range-input{
  width: 60px;
  max-width: 30vw;
  padding: 6px 8px 6px 4px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,0.18);
  color: var(--text);
  text-align: center;
  outline: none;
}

@media (max-width: 420px){
 /* .rt-range-row{ flex-wrap: wrap; } */
  .rt-range-row .rt-range-text:first-child{
   /*  flex: 1 1 100%; */
    overflow: visible;
    text-overflow: clip;
  }
}
.rt-range-input:focus{
  border-color: rgba(56,189,248,0.65);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.15);
}

.filters-message{
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.04);
  padding: 12px 14px;
  line-height: 1.45;
}

/* ===== FIX 1: suggestions must be above hint ===== */

.filters-origin {
  position: relative; /* якорь для absolute */
   z-index: 20;
}

#originSuggest.suggestions {
  z-index: 50; /* выше hint и карточки */
}

/* когда подсказки открыты — прячем hint */
#originSuggest:not([hidden]) ~ .hint {
  display: none;
}
#originSuggest {
  position: absolute;
  z-index: 100;
}
/* ===== FIX 2: allow dropdown to overflow card ===== */

.filters-card {
  overflow: visible;
  position: relative;
  z-index: 10;
  
}

#originSuggest.suggestions {
  max-height: 240px;
  overflow-y: auto;
}

/* скрываем hint, когда открыт список городов */
.filters-origin.suggest-open .hint {
  display: none;
}

[data-theme="light"] .filters-message{
  background: rgba(0,0,0,0.03);
}
.filters-message .msg-title{
  font-weight: 600;
  margin-bottom: 6px;
}
.filters-message .msg-actions{
  margin-top: 10px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ===============================
   FILTERS GRID — MAIN LAYOUT
   =============================== */

.filters-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 20px;
  align-items: stretch; /* ключевое */
}

.filters-field {
	  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;

  height: 100%;
  width: 100%;

  padding: 14px;
  border-radius: 18px;

  /* background: var(--glass-grad); */
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--blur));
}

.filters-field .input,
.filters-field .multi-select,
.filters-field .check {
  width: 100%;
}

.filters-grid,
.filters-card {
  overflow: visible;
}

.filters-field .price-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* tablets */
@media (max-width: 1100px) {
  .filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* mobile */
@media (max-width: 640px) {
  .filters-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px){
  .filters-card{ padding: 3px; }
  .filters-field{ padding: 12px; }

  .origin-input{
    min-width: 0 !important;
    flex: 1 1 120px;
  }

  .filters-field .price-row{ flex-wrap: wrap; }

  .filters-actions{
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}

@media (max-width: 380px){
  .filters-card{ padding: 3px; }
  .filters-field{ padding: 10px; }
  .suggest-item{ padding: 9px 10px; }
}

@media (max-width: 576px){
  /* в 1 колонке нельзя span 2 — иначе создаются лишние колонки и всё “режется” */
  .deals .roundtrip-pair{
    grid-column: 1 / -1 !important;
  }

  /* уменьшить “вылет” декоративной подложки (или поставь inset: 0) */
  .deals .roundtrip-pair::before{
    inset: 0px !important; /* было -10px */
  }
}


/* === FIX: tooltip should not go under соседние карточки (grid stacking) === */
.deals .deal-wrap{
  position: relative; /* grid item layer */
  z-index: 1;
}
.deals .deal-wrap:hover{
  z-index: 999;
}
.deals-cards .deal-wrap:has(.price-history-point:hover),
.deals-cards .deal-wrap:has(.price-history-point:focus),
.deals-cards .deal-wrap:has(.price-history-point[data-active="1"]),
.deals-cards .deal-wrap:has(.price-history-bar:hover),
.deals-cards .deal-wrap:has(.price-history-bar:focus),
.deals-cards .deal-wrap:has(.price-history-bar[data-active="1"]){
  z-index: 12060;
}



/* ===============================
   CARRIER (AIRLINE) LINE
   =============================== */
.carrier-row{
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.carrier-row .carrier-label{
  opacity: .8;
  padding-left: 19px; /* подравниваем под контент в табе */
}
.carrier-row .carrier-name{
  color: var(--text);
  opacity: .92;
  font-weight: 500;
}

.lowcost-hint{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: help;
}
.lowcost-hint .lowcost-text{
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}
.lowcost-hint .lowcost-icon{
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  font-size: 11px;
  line-height: 1;
  opacity: .85;
}
.lowcost-hint::after{
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  width: min(360px, 72vw);
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--stroke);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .12s ease, transform .12s ease;
  z-index: 200;
  white-space: normal;
}
.lowcost-hint:hover::after{
  opacity: 1;
  transform: translateY(0);
}

/* чтобы тултип всегда был поверх соседних карточек */
.deals .deal-wrap{
  position: relative;
  z-index: 1;
}
.deals .deal-wrap:hover{
  z-index: 120;
}
.deals .deal-wrap .card.deal{
  overflow: visible;
}
/* поднимаем текущий filters-field, пока фокус внутри */
.filters-field:focus-within{
  z-index: 9999;
}

/* extra safety для origin + списка */
.filters-origin{ position: relative; z-index: 10000; }
#originSuggest.suggestions{ z-index: 11000; }

@media (max-width: 768px){
  input, select, textarea{
    font-size: 16px !important;
  }
  /* если у тебя конкретно поле города */
  .origin-input, #originInput, #destInput{
    font-size: 16px !important;
  }
}

/* ============================================================
   ARRIVAL FILTER (country/city) — additions
   ============================================================ */
.label .opt{
  font-weight: 400;
  font-size: 13px;
  opacity: .7;
  margin-left: 0px;
}

.filters-arrival{
  position: relative;
  z-index: 20; /* same as origin so dropdown stays above соседних фильтров */
}

/* dropdown overlay */
#arrivalSuggest{
  position: absolute;
  z-index: 12000;
  max-height: 260px;
  overflow-y: auto;
}

/* subtle section rows */
.suggest-divider{
  padding: 8px 12px;
  font-size: 12px;
  opacity: .75;
  letter-spacing: .3px;
}

/* country rows */
.suggest-item.suggest-country .suggest-code{
  font-size: 11px;
  opacity: .7;
}
.suggest-badge{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  font-size: 11px;
  opacity: .85;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.05);
  color: var(--text);
}

/* country city-panel inside dropdown */
.arrival-panel{
  padding: 10px 12px;
}
.arrival-panel .panel-head{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-bottom: 10px;
}
.arrival-panel .panel-back{
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.06);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.arrival-panel .panel-title{
  font-weight: 600;
}
.arrival-panel .panel-sub{
  font-size: 12px;
  opacity: .75;
  margin-top: 2px;
}
.arrival-panel .panel-all{
  margin: 8px 0 10px;
}
.arrival-panel .panel-all label,
.arrival-panel .panel-city label{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.04);
  cursor:pointer;
  user-select:none;
}
.arrival-panel input[type="checkbox"]{
  width: 18px;
  height: 18px;
  accent-color: #38bdf8;
}
.arrival-panel .panel-city{
  display:flex;
  flex-direction:column;
  gap: 8px;
  max-height: 190px;
  overflow: auto;
  padding-right: 4px;
}
.arrival-panel .panel-actions{
  margin-top: 10px;
  display:flex;
  justify-content:flex-end;
}
.arrival-panel .btn.small{
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
}



/* ===== Arrival dropdown: быстрый выбор (+) / выбрано (✓) ===== */
.suggest-actions{
  display:flex;
  align-items:center;
  gap: 8px;
}
.suggest-toggle{
  width: 28px;
  height: 28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.04);
  box-shadow: var(--shadow);
  color: var(--text);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.suggest-toggle.on{
  background: rgba(125,211,252,0.14);
}
.suggest-item.is-selected .suggest-city{
  font-weight: 700;
}
.suggest-open-panel{
  cursor: pointer;
}



/* === Ticket button "viewed" state inside the button === */
.ticket-btn{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}

.ticket-btn-checked{
  font-weight: 400;
    opacity: .7;
}

.ticket-btn-meta{
  margin-top: -3px;
  font-size: 12px;
  opacity: .7;
  white-space: nowrap;
}

.ticket-btn--icon{
  width:38px;
  height:38px;
  min-height:38px;
  flex:0 0 38px;
  padding:0;
  gap:1px;
}
.ticket-btn--icon .result-row-ticket-icon{
  width:24px;
  height:24px;
}
.ticket-btn--icon .result-row-viewed-icon{
  width:17px;
  height:15px;
}
.ticket-btn--icon .result-row-viewed-time{
  font-size:10px;
  line-height:1;
}



/* ================================
   FILTER: Depart month multiselect
   ================================ */

.filters-depart-months .month-select{
  position: relative;
  width: 100%;
}

.filters-depart-months .month-select-btn{
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 18px 14px;
  border-radius: 14px;
  font-size: 15px;
}

.filters-depart-months .month-caret{
  opacity: 0.75;
  font-size: 14px;
}

.filters-depart-months .month-select-panel{
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;

  max-height: 260px;
  overflow: auto;

  /* тонкий скролл (чтобы не “съедал” место на узких экранах) */
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: rgba(255,255,255,0.28) transparent;

  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(11,15,20,0.96);
  backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow);

  /* чуть больше справа, чтобы скроллбар не налезал на контент */
  padding: 8px 10px 8px 8px;
  z-index: 1200;
}

/* WebKit scrollbars (Chrome/Safari/Edge) */
.filters-depart-months .month-select-panel::-webkit-scrollbar{
  width: 4px;
}
.filters-depart-months .month-select-panel::-webkit-scrollbar-track{
  background: transparent;
}
.filters-depart-months .month-select-panel::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,0.24);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
}
.filters-depart-months .month-select-panel::-webkit-scrollbar-thumb:hover{
  background: rgba(255,255,255,0.36);
}

[data-theme="light"] .filters-depart-months .month-select-panel{
  background: rgba(246,248,251,0.98);
  backdrop-filter: blur(var(--blur));

  /* light theme scrollbar */
  scrollbar-color: rgba(0,0,0,0.28) transparent;
}

[data-theme="light"] .filters-depart-months .month-select-panel::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,0.20);
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .filters-depart-months .month-select-panel::-webkit-scrollbar-thumb:hover{
  background: rgba(0,0,0,0.30);
}

.filters-depart-months .month-item{
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 5px 10px;
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
}

.filters-depart-months .month-item input{
  margin: 0;
}

.filters-depart-months .month-item:hover{
  background: rgba(255,255,255,0.06);
}

[data-theme="light"] .filters-depart-months .month-item:hover{
  background: rgba(0,0,0,0.05);
}

.filters-depart-months .month-all{
  font-weight: 600;
}

.filters-depart-months .month-sep{
  height: 1px;
  margin: 6px 2px;
  background: rgba(255,255,255,0.10);
}

[data-theme="light"] .filters-depart-months .month-sep{
  background: rgba(0,0,0,0.10);
}



/* ======================
   DEPART MONTH RANGE PICKER
   ====================== */

.filters-depart-months .month-item.is-disabled{
  opacity: 0.55;
}

.filters-depart-months .month-range{
  /*
    ✅ Make "Задать диапазон" always visible in the dropdown
    (no need to scroll to the bottom).

    We keep the whole panel scrollable, but pin the range block to the bottom.
  */
  position: sticky;
  bottom: 0;
  z-index: 5;

  padding: 10px 2px 8px;
  margin-top: 8px;

  /* visual separation from the month list */
  border-top: 1px solid rgba(255,255,255,0.10);

  /* match the panel background so the pinned block doesn't look "floating" */
  background: rgba(11,15,20,0.96);
  backdrop-filter: blur(var(--blur));
}

[data-theme="light"] .filters-depart-months .month-range{
  border-top-color: rgba(0,0,0,0.10);
  background: rgba(246,248,251,0.98);
}

.filters-depart-months .month-range-toggle{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 10px 12px;
  border-radius: 12px;

  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.05);
  color: var(--text);

  cursor: pointer;
  user-select: none;
}

.filters-depart-months .month-range-toggle:hover{
  background: rgba(255,255,255,0.08);
}

[data-theme="light"] .filters-depart-months .month-range-toggle{
  background: rgba(0,0,0,0.04);
}

[data-theme="light"] .filters-depart-months .month-range-toggle:hover{
  background: rgba(0,0,0,0.06);
}

.filters-depart-months .month-range-form{
  margin-top: 10px;
  padding: 10px 10px 8px;

  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.03);
}

[data-theme="light"] .filters-depart-months .month-range-form{
  background: rgba(0,0,0,0.02);
}

.filters-depart-months .month-range-row{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

/* allow inputs to shrink on narrow screens */
.filters-depart-months .month-range-field{ min-width: 0; }
.filters-depart-months .month-range-field input[type="date"]{ min-width: 0; }

.filters-depart-months .month-range-field{
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.filters-depart-months .month-range-field span{
	padding-left:5px;
  font-weight: 600;
  color: var(--muted);
}

.filters-depart-months .month-range-field input[type="date"]{
  width: 100%;
  min-width: 0;
  font-size: 11px;
  padding: 5px 3px 5px 2px; /* room for calendar icon */

  border-radius: 12px;
  border: 1px solid var(--stroke);

  background: rgba(11,15,20,0.55);
  color: var(--text);
}

/* make the calendar icon a bit smaller + keep it inside */
.filters-depart-months .month-range-field input[type="date"]::-webkit-calendar-picker-indicator{
  opacity: .85;
  cursor: pointer;
}

[data-theme="light"] .filters-depart-months .month-range-field input[type="date"]{
  background: rgba(255,255,255,0.85);
}

.filters-depart-months .month-range-actions{
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.filters-depart-months .month-range-actions .btn{
  flex: 1 1 0;
  padding: 10px 8px 10px 8px;
  border-radius: 12px;
}

.filters-depart-months .month-range-hint{
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
}

.filters-depart-months .month-range-hint b{
  color: var(--text);
}


/* ================================
   MOBILE: range dates fit
   ================================ */
@media (max-width: 420px){
  .filters-depart-months .month-range-row{
    /* на телефонах лучше в 1 колонку ("С" сверху, "По" ниже) */
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .filters-depart-months .month-range-field{
    font-size: 11px;
  }
  .filters-depart-months .month-range-field input[type="date"]{
    font-size: 13px;
    padding: 9px 32px 9px 10px;
  }
  .filters-depart-months .month-range-field input[type="date"]::-webkit-calendar-picker-indicator{
    transform: scale(0.88);
  }
}

/* (доп. страховка: если где-то переопределят грид) */
@media (max-width: 360px){
  .filters-depart-months .month-range-row{ grid-template-columns: 1fr; }
}


/* ===============================
   BIG DROP NOTIFY (filters)
   =============================== */

/* One pill, single line */
.notify-row{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap: nowrap;
  min-width: 0;

  /* make the whole row look like one "check" pill */
  padding: 13px 10px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--glass-grad);
  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--blur));
}

.notify-row .notify-check{
  /* remove inner pill visuals */
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;

  
  min-width: 0; /* allow ellipsis */
  gap: 8px;
  font-size: 14px;
}

.notify-row .notify-check span{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display:block;
}

.notify-row .notify-drop-input{
  width: 64px;
  min-width: 64px;
  text-align: center;
  padding: 4px 10px;
  border-radius: 12px;
}

.notify-row .notify-drop-suffix{
  color: var(--muted);
  font-weight: 700;
  font-size:15px;
}

.notify-row.is-disabled{
  opacity: .55;
}

.notify-row.is-perm-blocked{
  opacity: .75;
}

.notify-row .notify-drop-input:disabled{
  opacity: .55;
  cursor: not-allowed;
}

.notify-hint{
  /* inline hint (keeps row in one line) */
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
  flex: 0 1 auto;
  margin-left: 10px;
}

.notify-highlight{
  outline: 2px solid rgba(125,211,252,.55);
  box-shadow: 0 0 0 6px rgba(125,211,252,.12);
  border-radius: 20px;
  transition: box-shadow .25s ease, outline-color .25s ease;
}


/* Info icon + tooltip for big-drop notifications */
.notify-check > span{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-width: 0;
}

.notify-info{
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  padding: 0;
  border: 1px solid var(--stroke);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor: help;
  user-select: none;
}

.notify-info:hover{
  color: var(--text);
  border-color: var(--text);
}

.notify-info:focus{
  outline: 2px solid var(--stroke);
  outline-offset: 2px;
}

.notify-info-tooltip{
  position: fixed;
  z-index: 99999;
  max-width: 360px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(18, 22, 26, 0.88);
  color: var(--text);
  font-size: 12px;
  line-height: 1.25;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
}
.filters-subfield{
  display:flex;
  flex-direction:column;
  gap:8px;
  width:100%;
}
.filters-subfield .input{
  width:100%;
}


/* =========================================
   ARRIVAL SUGGEST (arrivalSuggest)
   - thin scrollbars inside list
   - "Готово" always visible (outside scroll)
   ========================================= */

/* The outer dropdown should NOT be the scrolling area */
#arrivalSuggest.suggestions{
  overflow: visible !important;
  max-height: none !important;
  display: flex;
  flex-direction: column;
  gap: 10px; /* spacing between blocks inside the panel */
}

/* Panel layout: header + list(scroll) + actions */
#arrivalSuggest.suggestions .arrival-panel{
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0; /* allow inner scroll area to shrink */
}

/* Make ONLY the city list scrollable */
#arrivalSuggest.suggestions .arrival-panel .panel-city{
  flex: 1 1 auto;
  min-height: 0;
  max-height: 240px; /* tune if needed */
  overflow: auto;
  padding-right: 6px; /* space for thin scrollbar */

  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.35) transparent;
}

/* WebKit scrollbars */
#arrivalSuggest.suggestions .arrival-panel .panel-city::-webkit-scrollbar{
  width: 6px;
}
#arrivalSuggest.suggestions .arrival-panel .panel-city::-webkit-scrollbar-track{
  background: transparent;
}
#arrivalSuggest.suggestions .arrival-panel .panel-city::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,0.28);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
}
#arrivalSuggest.suggestions .arrival-panel .panel-city::-webkit-scrollbar-thumb:hover{
  background: rgba(255,255,255,0.40);
}

/* "Готово" area is always visible below the scroll */
#arrivalSuggest.suggestions .arrival-panel .panel-actions{
  position: sticky;
  bottom: 0;
  margin-top: 0;          /* keep spacing controlled by gap */
  padding-top: 10px;

  /* subtle separator & glass so it reads as a fixed footer */
  border-top: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(to bottom, rgba(0,0,0,0.0), rgba(0,0,0,0.20));
  backdrop-filter: blur(var(--blur));
}

/* Light theme scrollbars + footer */
[data-theme="light"] #arrivalSuggest.suggestions .arrival-panel .panel-city{
  scrollbar-color: rgba(0,0,0,0.35) transparent;
}
[data-theme="light"] #arrivalSuggest.suggestions .arrival-panel .panel-city::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,0.22);
  border-color: rgba(0,0,0,0.10);
}
[data-theme="light"] #arrivalSuggest.suggestions .arrival-panel .panel-city::-webkit-scrollbar-thumb:hover{
  background: rgba(0,0,0,0.32);
}
[data-theme="light"] #arrivalSuggest.suggestions .arrival-panel .panel-actions{
  border-top-color: rgba(0,0,0,0.10);
  background: linear-gradient(to bottom, rgba(255,255,255,0.0), rgba(255,255,255,0.40));
}


/* === OFFER MORE MENU + LIGHTBOX === */
html.no-scroll, body.no-scroll {
  overflow: hidden !important;
}

.offer-more {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
}

.offer-more-btn {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.offer-more-btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.22);
}

.offer-more-menu {
  position: absolute;
  top: 40px;
  right: 0;
  min-width: 262px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(12, 16, 22, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

.offer-more-item {
  width: 100%;
  text-align: left;
  padding: 10px 10px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
}

.offer-more-item:hover {
  background: rgba(255,255,255,0.08);
}

/* Hero table overrides must stay after shared offer/time styles. */
.hero-offer-row .hero-more {
  position: relative;
  top: auto;
  right: auto;
  z-index: 200;
  display: grid;
  place-items: center;
  width: 36px;
  height: 32px;
  justify-self: center;
  align-self: center;
}

.hero-offer-row:has(.offer-more-menu:not([hidden])) {
  z-index: 10000;
}

.hero-offer-row .hero-more .offer-more-menu {
  z-index: 10050;
  pointer-events: auto;
  background: rgba(12, 16, 22, 0.98);
  box-shadow: 0 22px 52px rgba(0,0,0,0.55);
}

.hero-offer-row .hero-more .offer-more-btn {
  position: static;
  width: 34px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  line-height: 1;
  transform: none;
}

.hero-offer-row .hero-more .offer-more-btn:hover {
  transform: none;
}

.hero-row-status .time-indicator .time-tooltip {
  bottom: auto;
  left: 18px;
  top: -20px;
  transform: translateY(-100%);
  padding: 7px 10px;
  border-radius: 9px;
  background: rgba(10, 14, 20, 0.94);
  color: #eef7ff;
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
  z-index: 80;
}

.hero-row-status .time-indicator:hover .time-tooltip {
  transform: translateY(-100%) translateX(4px);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
}

.lightbox-panel {
  position: relative;
  max-width: 980px;
  width: min(980px, calc(100vw - 28px));
  margin: 64px auto;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(8, 10, 14, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 26px 80px rgba(0,0,0,0.5);
  padding: 16px;
}

.lightbox-body {
  position: relative;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 20px;
}

.lightbox .deal-wrap {
  margin-bottom: 0;
}



.deal-stale-msg {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,0.18);
  text-align: center;
  width: 100%;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}



/* === DEAL STALE (Lightbox / Card) === */
.deal-stale-title{
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
}

.deal-stale-date{
  opacity: 0.85;
  margin-bottom: 10px;
}

.deal-stale-close{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  margin-top: 6px;
  padding: 9px 12px;

  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: var(--text);

  font-size: 14px;
  font-weight: 400;
  line-height: 1;

  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, opacity 140ms ease;
}

.deal-stale-close:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.28);
}

.deal-stale-close:active{
  transform: translateY(0px);
  opacity: 0.92;
}

.deal-wrap.is-stale .ticket-btn,
.deal-wrap.is-stale .price-block,
.deal-wrap.is-stale .meta{
  display: none !important; /* safety: also hide via CSS */
}

.deal-wrap.is-stale .carrier-row{
  display: none !important;
}

[data-theme="light"] .deal-stale-msg{
  border-color: rgba(0,0,0,0.14);
  background: rgba(0,0,0,0.03);
}

[data-theme="light"] .deal-stale-close{
  border-color: rgba(0,0,0,0.14);
  background: rgba(0,0,0,0.04);
}

[data-theme="light"] .deal-stale-close:hover{
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.22);
}
.tab.stale .tab-drop {
  opacity: 0.7;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  z-index: 30000;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(12, 16, 22, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  color: var(--text);
  font-size: 14px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.is-error {
  border-color: rgba(248,113,113,0.42);
  background: rgb(127,29,29);
  box-shadow: 0 18px 44px rgba(127,29,29,0.34);
}

.global-banner {
  position: fixed;
  left: 50%;
  top: 14px;
  transform: translateX(-50%) translateY(-8px);
  opacity: 0;
  z-index: 10000;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(12, 16, 22, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  color: var(--text);
  font-size: 14px;
  transition: opacity 200ms ease, transform 200ms ease;
}

.global-banner.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 640px){
  .lightbox-panel {
    margin: 18px auto;
    padding: 12px;
  }
}
/* Мерцающий акцент в тексте "Оставайтесь на странице" */
.msg-stay-blink{
  font-weight: 700;
  display: inline-block;
  animation: msgStayBlink 1.8s ease-in-out infinite;
  text-shadow: 0 0 10px rgba(255,255,255,.15);
}

@keyframes msgStayBlink{
  0%, 100% { opacity: .35;  }
  50%      { opacity: 1;    }
}

/* Уважение системной настройки "уменьшить анимации" */
@media (prefers-reduced-motion: reduce){
  .msg-stay-blink{ animation: none; opacity: 1; transform: none; }
}
/* ============================================================
   LIGHTBOX CLOSE FIX (X button)
   - no blue focus/active highlight
   - always clickable above tabs arrows
   - slightly bigger hit area on touch
   ============================================================ */
.lightbox-close{
  z-index: 50;
  pointer-events: auto;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Remove default focus ring / active blue highlight (Firefox/Chrome) */
.lightbox-close:focus,
.lightbox-close:active,
.lightbox-close:focus-visible{
  outline: none !important;
  box-shadow: none;
}

/* Optional: subtle hover so user sees it's interactive */
.lightbox-close:hover{
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.22);
  transform: translateY(-1px);
}

/* In lightbox, keep tabs arrows under the close button area */
#offerLightbox .tabs-arrow{
  z-index: 6; /* below .lightbox-close (50) */
}

/* Reserve a bit of room on the right inside tabs so arrows don't sit under the close */
#offerLightbox .tabs-wrapper{
  padding-right: 64px;
}


/* ===== iPhone Safari hard fallback: depart months as fullscreen sheet ===== */
#departMonthPortalHost{
  position: fixed;
  inset: 0;
  z-index: 2147483000;
}
#departMonthPortalHost[hidden]{
  display: none !important;
}
#departMonthPortalHost .month-portal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(4,10,20,.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
#departMonthPortalHost .month-portal-sheet{
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
  max-height: min(72vh, 620px);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(20,24,33,.96);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  display: flex;
  flex-direction: column;
}
#departMonthPortalHost .month-portal-grabber{
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.25);
  margin: 10px auto 6px;
  flex: 0 0 auto;
}
#departMonthPortalHost .month-portal-content{
  min-height: 0;
  overflow: visible;
}

/* move existing panel styles into sheet context */
#departMonthPortalHost #departMonthPanel{
  position: static !important;
  margin: 0 !important;
  width: 100% !important;
  max-height: calc(min(72vh, 620px) - 24px) !important;
  border: 0 !important;
  border-radius: 0 0 18px 18px !important;
  box-shadow: none !important;
  background: transparent !important;
  overflow: auto !important;
  z-index: auto !important;
}

/* while portal is open, avoid iOS Safari backdrop-filter layer glitches */
@media (max-width: 980px){
  body.depart-month-portal-open .filters-grid,
  body.depart-month-portal-open .filters-field,
  body.depart-month-portal-open .filters-subcard{
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

/* ============================================================
   RESULTS VIEW SWITCH + ROW MODE
   ============================================================ */
.deals-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
#deals:has(.result-calendar:not([hidden])){position:relative;z-index:200000}
.deals-head h2{margin:0}
.deals-head-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.deals-sort-toggle{display:flex;align-items:center;gap:8px;padding:8px;border:1px solid var(--stroke);border-radius:8px;background:rgba(255,255,255,.04)}
.deals-sort-btn{width:42px;height:34px;display:grid;place-items:center;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--muted);cursor:pointer}
.sort-icon{width:21px;height:21px;display:block;background:currentColor;-webkit-mask:center/contain no-repeat;mask:center/contain no-repeat}
.sort-icon-price{-webkit-mask-image:url("/src/sort-price.svg");mask-image:url("/src/sort-price.svg")}
.sort-icon-discount{-webkit-mask-image:url("/src/sort-discount.svg");mask-image:url("/src/sort-discount.svg")}
.sort-icon-date{-webkit-mask-image:url("/src/sort-date.svg");mask-image:url("/src/sort-date.svg")}
.sort-icon-country{-webkit-mask-image:url("/src/sort-country.svg");mask-image:url("/src/sort-country.svg")}
.deals-sort-btn.is-active{color:var(--text);border-color:rgba(125,211,252,.48);background:rgba(125,211,252,.12)}
.deals-sort-btn:hover,.deals-view-btn:hover{color:var(--text);background:rgba(255,255,255,.07)}
.deals-country-header{grid-column:1/-1;display:flex;align-items:center;gap:9px;margin:14px 0 5px;color:var(--text);font-size:22px;font-weight:850;letter-spacing:0;line-height:1.15}
.deals-country-header::after{content:"";width:19px;height:19px;display:block;background:var(--accent);transform:translateY(0px);-webkit-mask:url("/src/sort-country.svg") center/contain no-repeat;mask:url("/src/sort-country.svg") center/contain no-repeat}
.deals-country-header span{display:inline-flex;align-items:center;min-height:28px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.deals.deals-cards.deals-country-sorted .deals-country-header{position:relative;margin:18px 0 12px;padding-bottom:9px}
.deals.deals-cards.deals-country-sorted .deals-country-header::before{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:linear-gradient(90deg,rgba(125,211,252,.62),rgba(238,247,255,.22) 42%,rgba(238,247,255,.08));box-shadow:0 0 8px rgba(125,211,252,.18);pointer-events:none}
.deals-view-toggle{display:flex;align-items:center;gap:8px;padding:8px;border:1px solid var(--stroke);border-radius:8px;background:rgba(255,255,255,.04)}
.deals-view-btn{width:46px;height:34px;display:grid;place-items:center;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--muted);cursor:pointer}
.deals-view-btn.is-active{color:var(--text);border-color:rgba(125,211,252,.48);background:rgba(125,211,252,.12)}
.view-icon{display:block;width:28px;height:20px;position:relative}
.view-icon-cards{border:3px solid currentColor;border-radius:2px}
.view-icon-rows::before{content:"";position:absolute;left:0;right:0;top:0;height:3px;border-radius:999px;background:currentColor;box-shadow:0 8px 0 currentColor,0 16px 0 currentColor}
.deals-pagination[hidden]{display:none!important}
.deals-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:18px 0 0;padding:12px 14px;border:1px solid var(--stroke);border-radius:8px;background:rgba(255,255,255,.04)}
.deals-page-summary{color:var(--muted);font-size:14px}
.deals-page-controls,.deals-page-size{display:flex;align-items:center;gap:6px}
.deals-page-btn,.deals-size-btn{min-width:34px;height:32px;padding:0 10px;display:grid;place-items:center;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--muted);font:inherit;font-weight:650;cursor:pointer}
.deals-size-btn{min-width:44px}
.deals-page-btn:hover,.deals-size-btn:hover{color:var(--text);background:rgba(255,255,255,.07)}
.deals-page-btn.is-active,.deals-size-btn.is-active{color:var(--text);border-color:rgba(125,211,252,.48);background:rgba(125,211,252,.12)}
.deals-page-btn:disabled{opacity:.35;cursor:default}
.deals-page-gap{min-width:22px;text-align:center;color:var(--muted)}
.deals .is-layout-moving{z-index:5;animation:none!important}
.deals.deals-rows{display:flex;flex-direction:column;gap:6px;grid-template-columns:none;align-items:stretch;grid-auto-rows:auto}
.result-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:center;gap:8px;min-height:50px;padding:5px 8px;border:1px solid var(--stroke);border-radius:23px;background:rgba(255,255,255,.055);box-shadow:var(--shadow);overflow:visible}
.result-row:hover{background:rgba(255,255,255,.08)}
.result-row-main{display:grid;grid-template-columns:30px 76px minmax(180px,1.3fr) 66px 104px 64px minmax(120px,.8fr);align-items:center;gap:8px;min-width:0;width:100%;border:0;background:transparent;color:var(--text);text-align:left;cursor:pointer;padding:0;font:inherit}
.result-row-main>span{min-width:0}
.result-row-status{display:flex;justify-content:center}
.result-row-status .time-indicator{position:relative;width:12px;height:12px;overflow:visible}
.result-row-status .time-tooltip{bottom:auto;top:18px;left:0;transform:translate(0,4px)}
.result-row-status .time-indicator:hover .time-tooltip{transform:translate(0,0)}
.result-row-status .time-dot{width:9px;height:9px}
.result-row-date{position:relative;display:flex;flex-direction:column;gap:2px;color:var(--muted);white-space:nowrap}
.result-row-date b{color:var(--text);font-weight:750}
.result-row-date small{color:var(--muted);font-size:12px}
.result-row-route{overflow:hidden;white-space:nowrap;font-weight:650;position:relative;display:flex;flex-direction:column;gap:2px;line-height:1.16}
.result-row-route.is-overflow{-webkit-mask-image:linear-gradient(to left,transparent 0%,black 12%);mask-image:linear-gradient(to left,transparent 0%,black 12%)}
.result-row-route.is-overflow .hero-route-track{animation:heroRouteAutoScroll 7.5s ease-in-out infinite}
.result-row-transfers{position:relative;font-size:12px;font-weight:500;color:var(--muted);line-height:1.1}
.result-row-transfers.is-direct{color:#4ade80}
.result-row-flag{width:21px;height:15px}
.result-row-price{position:relative;text-align:right;font-size:20px;font-weight:850;white-space:nowrap}
.result-row-price.is-flashing > span:not(.row-price-flash){visibility:hidden}
.result-row-price.is-price-revealing > span:not(.row-price-flash){animation:rowPriceReveal .42s cubic-bezier(.2,.78,.2,1) both}
.result-row-drop{position:relative;justify-self:end;min-width:54px;text-align:center;border-radius:8px;padding:7px 8px;background:rgba(60,174,27,var(--drop-alpha,.1));color:#fff;white-space:nowrap;outline:none}
.result-row-drop::after{content:attr(data-drop-tooltip);position:absolute;z-index:10080;left:50%;bottom:calc(100% + 10px);width:max-content;max-width:min(320px,calc(100vw - 32px));padding:8px 11px;border:1px solid var(--stroke);border-radius:8px;background:rgba(12,16,22,.98);box-shadow:0 16px 38px rgba(0,0,0,.46);color:var(--text);font-size:12px;font-weight:650;line-height:1.25;white-space:normal;text-align:left;opacity:0;pointer-events:none;transform:translate(-50%,4px);transition:opacity .14s ease,transform .14s ease}
.result-row-drop:hover::after,.result-row-drop:focus::after{opacity:1;transform:translate(-50%,0)}
.result-row-avg{justify-self:start;min-width:66px;color:var(--muted);font-size:13px;line-height:1.15;white-space:nowrap}
.result-row-delta{position:relative;display:flex;justify-content:flex-end;align-items:center}
.row-price-flash{position:absolute;z-index:4;right:0;top:50%;transform:translateY(calc(-50% + 14px)) scale(.96);padding:0;border:0;background:transparent;box-shadow:none;font-size:21px;font-weight:900;line-height:1;letter-spacing:0;white-space:nowrap;text-align:right;pointer-events:none;opacity:0;animation:rowPriceFlash 1.34s ease both;animation-delay:2.45s}
.row-price-flash.is-down{color:#4ade80;text-shadow:0 0 18px rgba(74,222,128,.55)}
.row-price-flash.is-up{color:#f87171;text-shadow:0 0 18px rgba(248,113,113,.52)}
@keyframes rowPriceFlash{0%{opacity:0;transform:translateY(calc(-50% + 14px)) scale(.96);filter:blur(2px)}20%{opacity:1;transform:translateY(-50%) scale(1);filter:blur(0)}72%{opacity:1;transform:translateY(-50%) scale(1);filter:blur(0)}100%{opacity:0;transform:translateY(calc(-50% - 8px)) scale(.98);filter:blur(1px)}}
@keyframes rowPriceReveal{0%{opacity:0;transform:translateY(12px);filter:blur(2px)}100%{opacity:1;transform:translateY(0);filter:blur(0)}}
.result-row-delta .price-history-wrap{width:66px;min-width:66px}
.result-row-delta .price-history-wrap.is-empty{width:0;min-width:0}
.result-row-delta .offer-price-delta-wrap{justify-content:flex-end;min-width:0}
.result-row-delta .offer-price-delta-wrap.is-stable{min-width:64px}
.result-row-delta .offer-price-delta{font-size:10px}
.result-row-delta .offer-price-delta-arrow{font-size:20px}
.result-row-airline{position:relative;color:var(--muted);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.result-row-airline .lowcost-hint{margin-left:4px}
.result-row:has(.offer-more-menu:not([hidden])),
.result-row:has(.result-calendar:not([hidden])){z-index:10000}
#favoriteDeals:has(.offer-more-menu:not([hidden])){position:relative;z-index:220000}
#favoriteDeals:has(.result-calendar:not([hidden])){position:relative;z-index:220000}
#favoriteDeals.is-offer-menu-open{position:relative;z-index:220000}
#favoriteDeals .result-row:has(.offer-more-menu:not([hidden])),
#favoriteDeals .result-roundtrip-pair:has(.offer-more-menu:not([hidden])),
#favoriteDeals .result-row:has(.result-calendar:not([hidden])),
#favoriteDeals .result-roundtrip-pair:has(.result-calendar:not([hidden])),
#favoriteDeals .result-row.is-offer-menu-open,
#favoriteDeals .result-roundtrip-pair.is-offer-menu-open{z-index:220010}
#favoriteDeals .offer-more.is-offer-menu-open,
#favoriteDeals .result-row-more.is-offer-menu-open{z-index:220030}
#favoriteDeals .result-calendar{z-index:220020;background:rgba(35,39,45,.995);box-shadow:0 28px 76px rgba(0,0,0,.64)}
.result-row-calendar-btn{width:38px;height:38px;display:grid;place-items:center;border:1px solid var(--stroke);border-radius:8px;background:rgba(255,255,255,.06);color:var(--text);cursor:pointer;font-size:19px}
.result-calendar-icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.result-row-calendar-btn:hover{border-color:rgba(125,211,252,.42);background:rgba(125,211,252,.12)}
.result-price-history-btn{display:none;width:34px;height:34px;padding:0;border:1px solid var(--stroke);border-radius:8px;background:rgba(255,255,255,.06);color:var(--text);cursor:pointer}
.result-price-history-btn::before{content:"";display:block;width:20px;height:20px;margin:auto;background:currentColor;-webkit-mask:url("/src/price-history.svg") center/contain no-repeat;mask:url("/src/price-history.svg") center/contain no-repeat}
.result-price-history-btn:hover,.result-price-history-btn:focus-visible{border-color:rgba(125,211,252,.42);background:rgba(125,211,252,.12);outline:none}
.result-row-actions .result-price-history-btn--action{display:none}
.result-row-more{position:relative;justify-self:center;width:38px;height:38px;right:auto;top:auto}
.result-row-more .offer-more-btn{position:static;width:38px;height:38px;min-height:38px}
.result-row-more .offer-more-menu{z-index:220020;background:rgba(12,16,22,.98);box-shadow:0 22px 52px rgba(0,0,0,.55)}
.result-calendar{position:absolute;z-index:10060;top:calc(100% + 8px);left:82px;width:min(860px,calc(100vw - 40px));padding:18px;border:1px solid var(--stroke);border-radius:8px;background:rgba(35,39,45,.98);box-shadow:0 24px 70px rgba(0,0,0,.48)}
.result-calendar-head{display:grid;grid-template-columns:40px 1fr 40px;align-items:center;text-align:center;color:var(--muted);margin-bottom:14px}
.result-calendar-nav{width:34px;height:34px;border:1px solid var(--stroke);border-radius:50%;background:rgba(255,255,255,.06);color:var(--text);font-size:25px;line-height:1;cursor:pointer}
.result-calendar-nav:disabled{opacity:.28;cursor:default}
.result-calendar-months{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.result-calendar-title{text-align:center;font-size:18px;font-weight:800;margin-bottom:10px}
.result-calendar-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin-bottom:6px;color:var(--muted);font-size:12px;text-align:center}
.result-calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.result-calendar-cell{min-width:64px;min-height:48px;border:1px solid rgba(255,255,255,.06);border-radius:8px;background:rgba(255,255,255,.025);color:rgba(238,247,255,.46);display:flex;flex-direction:column;align-items:center;justify-content:center;font:inherit}
.result-calendar-cell.is-empty{visibility:hidden}
.result-calendar-day{border-color:var(--stroke);background:rgba(255,255,255,.055);color:var(--text);cursor:pointer}
.result-calendar-day span,.result-calendar-day b{display:block}
.result-calendar-day b{margin-top:3px;color:#4ade80;font-size:11px;line-height:1.05;white-space:nowrap}
.result-calendar-day.is-active{background:#1d7ff2;border-color:#62a8ff}
.result-calendar-day.is-active b{color:#fff}
.result-calendar-day.is-recommended{background:rgba(34,197,94,.22);border-color:rgba(74,222,128,.76)}
.result-calendar-day.is-recommended b{color:#7cffaa}
.result-calendar-cell.is-today{border-color:#62a8ff;box-shadow:inset 0 0 0 2px rgba(98,168,255,.72)}
.result-calendar-day.is-active.is-today{box-shadow:inset 0 0 0 2px rgba(219,239,255,.9),0 0 0 1px rgba(98,168,255,.32)}
.result-calendar-regular{border-color:rgba(99,164,196,.24);background:rgba(89,146,173,.08);color:rgba(238,247,255,.72)}
.result-calendar-regular b{display:block;margin-top:3px;color:#9bc4d7;font-size:11px;line-height:1.05;font-weight:800;white-space:nowrap}
.result-calendar-regular.is-clickable{cursor:pointer}
.result-calendar-regular.is-clickable:hover{border-color:rgba(125,211,252,.55);background:rgba(89,146,173,.16);color:var(--text)}
.result-calendar.is-loading-regular .result-calendar-head span::after{content:" ...";color:var(--muted)}
.result-roundtrip-pair{position:relative;padding:0;border:0;border-radius:0;background:transparent}
.result-roundtrip-inner{position:relative;display:flex;flex-direction:column;gap:0}
.result-roundtrip-inner::before{content:"";position:absolute;z-index:0;left:var(--row-rt-line-left,67px);top:42px;bottom:42px;width:1px;background:rgba(125,211,252,.72)}
.result-roundtrip-pair .result-row{box-shadow:none}
.result-roundtrip-pair .result-row[data-rt-role="out"]{border-bottom:0;border-bottom-left-radius:0;border-bottom-right-radius:0}
.result-roundtrip-pair .result-row[data-rt-role="back"]{border-top:0;border-top-left-radius:0;border-top-right-radius:0;margin-top:0}
.result-roundtrip-pair .result-row-calendar-btn{position:relative;z-index:1;border-color:rgba(125,211,252,.72);box-shadow:0 0 0 1px rgba(125,211,252,.18)}
.result-roundtrip-caption{position:absolute;left:50%;bottom:-1px;transform:translate(-50%,50%);max-width:calc(100% - 32px);padding:7px 18px;border:1px solid var(--stroke);border-radius:8px;background:rgba(24,28,34,.98);color:var(--muted);white-space:nowrap;box-shadow:var(--shadow)}
.ticket-confirm[hidden]{display:none}
.ticket-confirm{position:fixed;inset:0;z-index:2147483200;display:grid;place-items:center;opacity:0;pointer-events:none;transition:opacity .16s ease}
.ticket-confirm.is-open{opacity:1;pointer-events:auto}
.ticket-confirm-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.55);backdrop-filter:blur(6px)}
.ticket-confirm-panel{position:relative;width:min(480px,calc(100vw - 28px));padding:24px;border:1px solid var(--stroke);border-radius:8px;background:rgba(35,39,45,.98);box-shadow:0 24px 70px rgba(0,0,0,.5);transform:translateY(10px) scale(.98);transition:transform .16s ease;text-align:center}
.ticket-confirm.is-open .ticket-confirm-panel{transform:translateY(0) scale(1)}
.ticket-confirm-panel h3{margin:0 0 14px;font-size:26px;line-height:1.05;text-align:center}
.ticket-confirm-panel p{margin:0;color:var(--muted);line-height:1.45}
.ticket-confirm-route-main{display:block;color:var(--text);font-size:20px;font-weight:820;line-height:1.18;text-align:center}
.ticket-confirm-route-main span{color:var(--accent)}
.ticket-confirm-route-date{display:block;margin-top:5px;color:var(--muted);font-size:15px;font-weight:650;text-align:center}
.ticket-confirm-panel .ticket-confirm-policy{margin-top:16px;padding-top:16px;border-top:1px solid var(--stroke);font-size:12px;line-height:1.45;text-align:center}
.ticket-confirm-actions{display:flex;justify-content:center;gap:10px;margin-top:18px}
.ticket-confirm-open-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.ticket-confirm-open-icon{width:20px;height:20px;flex:0 0 auto;background:currentColor;-webkit-mask:url("/src/aviasales.svg") center/contain no-repeat;mask:url("/src/aviasales.svg") center/contain no-repeat}
@media (max-width:1180px){
  .result-row-main{grid-template-columns:20px 70px minmax(150px,1fr) 58px 92px 58px minmax(110px,.7fr);gap:8px}
  .result-row{grid-template-columns:minmax(0,1fr) 42px}
}
@media (max-width:860px){
  .deals-head{align-items:flex-start}
  .deals-head-tools{justify-content:flex-start}
  .result-row{grid-template-columns:minmax(0,1fr) 40px;gap:8px}
  .result-row-main{grid-template-columns:18px 64px minmax(0,1fr) 86px;grid-template-areas:"status date route price" "status date airline drop" "status date avg avg"}
  .result-row-status{grid-area:status}.result-row-date{grid-area:date}.result-row-route{grid-area:route}.result-row-price{grid-area:price}.result-row-drop{grid-area:drop}.result-row-avg{grid-area:avg}.result-row-airline{grid-area:airline}
  .result-calendar{left:0}
  .result-calendar-months{grid-template-columns:1fr}
}
@media (max-width:560px){
  .deals-head{flex-direction:column}
  .deals-head-tools{width:100%;justify-content:space-between}
  .deals-sort-toggle,.deals-view-toggle{padding:6px;gap:6px}
  .deals-sort-btn{width:38px;height:32px}
  .deals-view-btn{width:40px;height:32px}
  .deals-pagination{align-items:stretch;flex-direction:column}
  .deals-page-controls,.deals-page-size{justify-content:center}
  .result-row-main{grid-template-columns:18px minmax(0,1fr) 84px;grid-template-areas:"status route price" "status date drop" "status airline avg"}
  .result-row-date{flex-direction:row;gap:8px}
  .result-roundtrip-caption{font-size:12px;padding:7px 10px}
  .result-calendar{left:50%;transform:translateX(-50%);width:calc(100vw - 16px);max-width:520px;padding:12px}
  .result-calendar-head{grid-template-columns:38px minmax(0,1fr) 38px;margin-bottom:12px}
  .result-calendar-head span{font-size:15px;line-height:1.12}
  .result-calendar-months{gap:20px}
  .result-calendar-weekdays,.result-calendar-days{gap:3px}
  .result-calendar-cell{min-width:0;min-height:46px;border-radius:8px;padding:4px 2px;overflow:hidden}
  .result-calendar-day b,.result-calendar-regular b{max-width:100%;font-size:10px;line-height:1;letter-spacing:0;overflow:hidden;text-overflow:clip;white-space:nowrap}
}

/* Row mode refinements */
.result-row{grid-template-columns:minmax(0,1fr) 44px}
.result-row-main{grid-template-columns:30px 42px 76px minmax(180px,1.3fr) 66px 104px 64px minmax(120px,.8fr)}
.result-row-calendar-cell{display:flex;justify-content:center}
.result-row-calendar-btn{width:34px;height:34px;display:grid;place-items:center;border:1px solid var(--stroke);border-radius:8px;background:rgba(255,255,255,.06);color:var(--text);cursor:pointer;font-size:18px}
.result-roundtrip-pair{padding:0}
.result-roundtrip-caption{display:none}
@media (max-width:1180px){
  .result-row{grid-template-columns:minmax(0,1fr) 42px}
  .result-row-main{grid-template-columns:28px 40px 70px minmax(150px,1fr) 58px 92px 58px minmax(110px,.7fr)}
}
@media (max-width:860px){
  .result-row{grid-template-columns:minmax(0,1fr) 40px}
  .result-row-main{grid-template-columns:26px 38px 64px minmax(0,1fr) 86px;grid-template-areas:"status cal date route price" "status cal date airline drop" "status cal date avg avg"}
  .result-row-calendar-cell{grid-area:cal}
}
@media (max-width:560px){
  .result-row{grid-template-columns:minmax(0,1fr) 34px;gap:6px}
  .result-row-main{grid-template-columns:38px minmax(0,1fr) 136px;grid-template-rows:auto 38px auto;grid-template-areas:"status route route" "cal date avg" "cal airline airline";row-gap:3px;column-gap:8px}
  .result-row-status{align-self:center;justify-self:center}
  .result-row-calendar-cell{align-self:center;justify-self:center;transform:translateY(-9px)}
  .result-row-more,
  .result-row-more .offer-more-btn{width:34px;height:34px;min-height:34px}
  .result-row-drop{grid-area:avg;display:block;align-self:center;justify-self:end;min-width:38px;padding:4px 5px;border-radius:7px;font-size:13px;line-height:1}
  .result-row-price{grid-area:avg;display:flex;align-items:center;justify-self:start;gap:7px;font-size:19px;line-height:1.05}
  .result-price-history-btn{display:grid;place-items:center;flex:0 0 34px}
  .result-row-avg{display:none}
  .result-row-date{flex-direction:column;gap:2px}
  .result-row-route .result-row-transfers{display:none}
  .result-row-airline{white-space:nowrap;overflow:hidden;text-overflow:clip;-webkit-mask-image:linear-gradient(to left,transparent 0%,black 12%);mask-image:linear-gradient(to left,transparent 0%,black 12%)}
  .result-row-airline .hero-route-track::after{content:" · " attr(data-row-transfer-text);color:var(--muted)}
  .result-row-airline[data-row-direct="1"] .hero-route-track::after{content:""}
  .result-row-airline.is-overflow .hero-route-track{animation:heroRouteAutoScroll 7.5s ease-in-out infinite}
  .result-roundtrip-inner::before{display:none}
  .result-roundtrip-pair .result-row[data-rt-role="back"]{border-top:1px dashed rgba(238,247,255,.22)}
}

@media (min-width:561px) and (max-width:1280px){
  .result-row{grid-template-columns:minmax(0,1fr) 38px;gap:6px;padding:5px 7px}
  .result-roundtrip-inner{--row-rt-line-left:57px}
  .result-row-main{
    grid-template-columns:24px 38px 64px minmax(130px,1fr) 58px 128px 54px minmax(70px,.35fr);
    grid-template-areas:"status cal date route avg price drop airline";
    gap:7px;
  }
  .result-row-status{grid-area:status}
  .result-row-calendar-cell{grid-area:cal}
  .result-row-date{grid-area:date}
  .result-row-route{grid-area:route}
  .result-row-price{grid-area:price;display:flex;align-items:center;justify-content:flex-end;gap:7px;font-size:18px}
  .result-price-history-btn,
  .result-row-price > .result-price-history-btn,
  .result-row-actions .result-price-history-btn--action{display:none!important}
  .result-row-drop{grid-area:drop;min-width:44px;padding:5px 6px;font-size:14px;border-radius:7px}
  .result-row-airline{grid-area:airline;min-width:0;-webkit-mask-image:linear-gradient(to left,transparent 0%,black 14%);mask-image:linear-gradient(to left,transparent 0%,black 14%)}
  .result-row-airline.is-overflow .hero-route-track{animation:heroRouteAutoScroll 7.5s ease-in-out infinite}
  .result-row-avg{display:flex}
  .result-row-transfers{display:block;overflow:hidden;white-space:nowrap;-webkit-mask-image:linear-gradient(to left,transparent 0%,black 14%);mask-image:linear-gradient(to left,transparent 0%,black 14%)}
  .result-row-transfers.is-overflow .hero-route-track{animation:heroRouteAutoScroll 7.5s ease-in-out infinite}
  .result-row-more,
  .result-row-more .offer-more-btn{width:36px;height:36px;min-height:36px}
}

@media (min-width:561px) and (max-width:1024px){
  .result-row-main{
    grid-template-columns:24px 38px 64px minmax(130px,1fr) max-content 54px minmax(70px,.35fr);
    grid-template-areas:"status cal date route price drop airline";
  }
  .result-row-avg{display:none}
}

@media (min-width:561px) and (max-width:760px){
  .result-row-main{
    grid-template-columns:24px 38px 64px minmax(110px,1fr) max-content 50px;
    grid-template-areas:"status cal date route price drop";
  }
  .result-row-airline{display:none}
}

.deals.deals-rows > .result-row{
  width:auto;
  margin-left:0;
  margin-right:0;
}

.deals.deals-rows > .result-roundtrip-pair{
  width:100%;
}

.deals.deals-rows .result-row.is-row-entering,
.deals.deals-rows .result-roundtrip-pair.is-row-entering{
  overflow:hidden;
  transform-origin:50% 100%;
  animation: resultRowSlotEnter 1.34s cubic-bezier(.2,.78,.2,1) both;
  animation-delay: var(--hero-row-delay, 0ms);
}

.deals.deals-rows .result-row.is-row-entering{
  min-height:0;
  padding-top:0;
  padding-bottom:0;
}

.deals.deals-rows .result-row.is-row-updated{
  animation: resultRowFlipIn 4.00s cubic-bezier(.2,.78,.2,1) both;
}

.row-change-note{
  position:absolute;
  z-index:6;
  left:148px;
  top:-12px;
  max-width:min(820px,calc(100% - 96px));
  display:flex;
  align-items:center;
  gap:8px;
  padding:5px 7px 5px 9px;
  border:1px solid rgba(125,211,252,.32);
  border-radius:8px;
  background:rgba(18,24,31,.96);
  box-shadow:0 12px 28px rgba(0,0,0,.32);
  color:#d8efff;
  font-size:12px;
  font-weight:750;
  line-height:1.2;
  white-space:normal;
  pointer-events:auto;
  opacity:1;
  transform:translateY(0);
  animation:rowChangeNoteIn .28s ease both;
}

.row-change-note__text{
  min-width:0;
}

.row-change-note__close{
  appearance:none;
  width:18px;
  height:18px;
  flex:0 0 18px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.1);
  color:#d8efff;
  font:800 14px/1 Inter,system-ui,sans-serif;
  cursor:pointer;
}

.row-change-note__close:hover{
  background:rgba(255,255,255,.18);
  color:#fff;
}

.result-row-date.is-field-updated,
.result-row-route.is-field-updated,
.result-row-transfers.is-field-updated,
.result-row-airline.is-field-updated,
.result-row-drop.is-field-updated{
  animation:rowFieldUpdate 1.25s cubic-bezier(.2,.78,.2,1) both;
}

.deals.deals-rows .result-roundtrip-pair.is-row-entering .result-roundtrip-inner::before,
.deals.deals-rows .result-roundtrip-pair:has(.result-row.is-row-entering) .result-roundtrip-inner::before{
  opacity:0;
  animation: resultRoundtripLineAppear .36s ease both;
  animation-delay:calc(var(--hero-row-delay, 0ms) + 1.02s);
}

@keyframes resultRowFlipIn{
  from{
    opacity:.35;
    transform:perspective(900px) rotateX(-290deg) translateY(8px);
    filter:blur(2px);
  }
  to{
    opacity:1;
    transform:perspective(900px) rotateX(0) translateY(0);
    filter:blur(0);
  }
}

@keyframes rowChangeNote{
  0%{opacity:0;transform:translateY(8px);filter:blur(2px)}
  12%,78%{opacity:1;transform:translateY(0);filter:blur(0)}
  100%{opacity:0;transform:translateY(-6px);filter:blur(1px)}
}

@keyframes rowChangeNoteIn{
  from{opacity:0;transform:translateY(8px);filter:blur(2px)}
  to{opacity:1;transform:translateY(0);filter:blur(0)}
}

.result-row-status .time-dot.is-row-status-pulse{
  animation:rowStatusDotPulse .78s cubic-bezier(.2,.78,.2,1) both;
}

@keyframes rowStatusDotPulse{
  0%{transform:scale(1)}
  38%{transform:scale(1.5);box-shadow:0 0 0 6px rgba(125,211,252,.18),0 0 18px currentColor}
  100%{transform:scale(1);box-shadow:none}
}

@keyframes rowFieldUpdate{
  0%{opacity:.2;transform:translateY(7px);filter:blur(2px)}
  42%{opacity:1;transform:translateY(0);filter:blur(0);text-shadow:0 0 18px rgba(125,211,252,.34)}
  100%{opacity:1;transform:translateY(0);filter:blur(0);text-shadow:none}
}

@keyframes resultRoundtripLineAppear{
  from{opacity:0;transform:scaleY(.35)}
  to{opacity:1;transform:scaleY(1)}
}

@keyframes resultRowSlotEnter{
  0%{
    max-height:0;
    min-height:0;
    padding-top:0;
    padding-bottom:0;
    opacity:0;
    transform:translateY(18px) scale(.992);
    filter:blur(3px);
    margin-top:0;
    margin-bottom:0;
  }
  42%{
    max-height:120px;
    min-height:0;
    padding-top:0;
    padding-bottom:0;
    opacity:0;
    transform:translateY(18px) scale(.992);
    filter:blur(2px);
  }
  100%{
    max-height:260px;
    min-height:50px;
    padding-top:5px;
    padding-bottom:5px;
    opacity:1;
    transform:translateY(0) scale(1);
    filter:blur(0);
  }
}

.result-row-exit-slot{
  position:relative;
  overflow:hidden;
  border-radius:23px;
  background:rgba(0,0,0,.22);
  pointer-events:none;
  transition:height .58s cubic-bezier(.22,.61,.36,1),margin .58s cubic-bezier(.22,.61,.36,1),opacity .34s ease;
}
.result-row-exit-slot > .result-row,
.result-row-exit-slot > .result-roundtrip-pair{
  width:100%;
  transition:opacity .72s ease,transform .72s cubic-bezier(.22,.61,.36,1),filter .72s ease;
}
.result-row-exit-slot.is-exiting > .result-row,
.result-row-exit-slot.is-exiting > .result-roundtrip-pair{
  opacity:0;
  transform:translateY(-12px) scale(.985);
  filter:blur(2px);
}
.result-row-exit-slot.is-collapsing{
  height:0!important;
  margin-top:-6px;
  margin-bottom:-6px;
  opacity:.25;
}

@media (max-width:560px){
  .deals.deals-rows > .result-row{
    width:auto;
    margin-left:0;
    margin-right:0;
  }
}

.result-row{grid-template-columns:minmax(0,1fr) 128px}
.result-row-main{cursor:default}
.result-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;min-width:0}
.result-row-ticket-btn{width:38px;height:38px;min-height:38px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;border:1px solid var(--stroke);border-radius:8px;background:rgba(255,255,255,.06);color:var(--text);cursor:pointer;padding:0}
.result-row-ticket-icon{width:24px;height:24px;background:currentColor;-webkit-mask:url("/src/aviasales.svg") center/contain no-repeat;mask:url("/src/aviasales.svg") center/contain no-repeat}
.result-row-viewed-icon{width:17px;height:15px;background:currentColor;-webkit-mask:url("/src/viewed-eye.svg") center/contain no-repeat;mask:url("/src/viewed-eye.svg") center/contain no-repeat}
.result-row-viewed-time{font-size:10px;line-height:1;color:var(--muted);font-weight:700}
.result-row-ticket-btn.is-viewed{border-color:rgba(125,211,252,.42);background:rgba(125,211,252,.10)}
.result-row-ticket-btn:hover{border-color:rgba(125,211,252,.48);background:rgba(125,211,252,.12);color:#dff6ff}
.result-row-more{justify-self:auto}
.favorite-deals{margin:0 0 22px}
.favorite-deals[hidden]{display:none!important}
#deals.has-favorites{display:flex;flex-direction:column}
#deals.has-favorites .favorite-deals{order:1}
#deals.has-favorites .deals-head{order:2;margin-top:18px}
#deals.has-favorites .deals-min-prices-progress{order:3}
#deals.has-favorites #dealsGrid{order:4}
#deals.has-favorites #dealsPagination{order:5}
#deals.favorites-only .deals-head,
#deals.favorites-only .deals-min-prices-progress,
#deals.favorites-only #dealsGrid,
#deals.favorites-only #dealsPagination{display:none!important}
.favorite-deals-title{margin:0 0 12px;font-size:24px;line-height:1.15}
.favorite-deals-grid{margin-bottom:0}
.deal-ticket-actions{display:flex;align-items:stretch;gap:8px}
.favorite-btn{width:38px;height:38px;min-height:38px;display:grid;place-items:center;border:1px solid var(--stroke);border-radius:8px;background:rgba(255,255,255,.06);color:var(--text);cursor:pointer;padding:0;flex:0 0 38px}
.favorite-btn span{width:21px;height:21px;background:currentColor;-webkit-mask:url("/src/heart.svg") center/contain no-repeat;mask:url("/src/heart.svg") center/contain no-repeat}
.favorite-btn:hover,.favorite-btn:focus-visible{border-color:rgba(125,211,252,.48);background:rgba(125,211,252,.12);color:#dff6ff;outline:none}
.favorite-btn:hover span,.favorite-btn:focus-visible span,.favorite-btn.is-filled span{-webkit-mask-image:url("/src/heart-filled.svg");mask-image:url("/src/heart-filled.svg")}
.favorite-btn.is-filled{color:#f472b6;border-color:rgba(244,114,182,.42);background:rgba(244,114,182,.12)}
.favorite-result .result-row-calendar-btn,
.favorite-rt-pair .result-row-calendar-btn{opacity:1;pointer-events:auto;cursor:pointer}
.favorite-rt-pair .result-roundtrip-inner::before{opacity:.2}
.is-favorite-regular .time-dot{background:rgba(148,163,184,.72)!important;color:rgba(148,163,184,.72)!important;animation:none!important}
.is-favorite-regular .time-dot::after{opacity:.28}
.is-favorite-regular .time-tooltip{width:min(340px,calc(100vw - 32px));white-space:normal;line-height:1.25}
.is-min-price-fallback .time-dot{background:rgba(148,163,184,.72)!important;color:rgba(148,163,184,.72)!important;animation:none!important}
.is-min-price-fallback .time-dot::after{opacity:.28}
.is-min-price-fallback .time-tooltip{width:min(340px,calc(100vw - 32px));white-space:normal;line-height:1.25}
.is-min-price-fallback .result-row-airline{color:var(--muted)}
.min-prices-check.is-disabled{opacity:.55;cursor:not-allowed}
.min-prices-check.is-disabled input,.min-prices-check.is-disabled span{cursor:not-allowed}
.deals-min-prices-progress{margin:6px 0 12px}
.deals-min-prices-progress[hidden]{display:none}
.min-prices-progress{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  padding:5px 8px;
  min-height:22px;
  border:1px solid rgba(125,211,252,.16);
  border-radius:8px;
  background:rgba(13,26,34,.38);
  color:rgba(210,235,248,.72);
}
.min-prices-progress__bar{
  position:relative;
  display:block;
  height:5px;
  min-width:0;
  overflow:hidden;
  border-radius:999px;
  background:rgba(148,163,184,.18);
  box-shadow:inset 0 1px 2px rgba(0,0,0,.28);
}
.min-prices-progress__bar::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  transform:translateX(-100%);
  animation:minPricesProgressSheen 1.45s linear infinite;
}
.min-prices-progress__bar i{
  position:absolute;
  inset:0 auto 0 0;
  width:0;
  border-radius:inherit;
  background:linear-gradient(90deg, rgba(56,189,248,.62), rgba(34,211,238,.88));
  transition:width .35s ease;
}
.min-prices-progress__pct{
  min-width:38px;
  text-align:right;
  font-size:12px;
  font-weight:750;
  line-height:1;
  font-variant-numeric:tabular-nums;
}
@keyframes minPricesProgressSheen{
  to{transform:translateX(100%)}
}
.is-favorite-missing .result-row-date{justify-content:center}
.is-favorite-missing .result-row-actions{justify-content:flex-start}
.favorite-no-data{color:var(--muted);font-size:12px;font-weight:700;line-height:1.05;white-space:nowrap;text-align:right;justify-self:end;max-width:110px;overflow:hidden;text-overflow:ellipsis;text-transform:none}
.is-favorite-loading-data .favorite-no-data{opacity:.72}
.favorite-loading-row{opacity:.54;filter:saturate(.65);overflow:hidden;pointer-events:none}
.favorite-loading-row .result-row-main{position:relative;z-index:1}
.favorite-loading-row .result-row-date b{font-size:14px}
.favorite-loading-row .result-row-route{font-size:14px}
.favorite-loading-row .result-row-price{font-size:16px;font-weight:760}
.favorite-pending-row{opacity:.38;filter:saturate(.45);overflow:hidden;pointer-events:none}
.favorite-pending-row .result-row-main{position:relative;z-index:1}
.favorite-pending-card{min-height:220px;opacity:.38;filter:saturate(.45);pointer-events:none}
.favorite-pending-pair{opacity:.72}
.favorite-loading-bar{position:absolute;left:0;right:0;bottom:0;height:3px;background:rgba(255,255,255,.08);overflow:hidden}
.favorite-loading-bar i{display:block;width:38%;height:100%;border-radius:999px;background:linear-gradient(90deg,rgba(125,211,252,.08),rgba(125,211,252,.9),rgba(125,211,252,.08));animation:favoriteLoadingSlide 1.35s ease-in-out infinite}
@keyframes favoriteLoadingSlide{0%{transform:translateX(-110%)}100%{transform:translateX(280%)}}
.is-favorite-past{filter:saturate(.65)}
.is-favorite-past .result-row-main,
.is-favorite-past .deal-inner{opacity:.48}
.is-favorite-past .result-row-ticket-btn,
.is-favorite-past .result-row-more,
.is-favorite-past .result-price-history-btn--action,
.is-favorite-past .ticket-btn,
.is-favorite-past .ticket-btn--icon{display:none!important}
.is-favorite-past .result-row-actions{justify-content:flex-start}
.favorite-result,.favorite-card{position:relative}
.favorite-past-tip{position:absolute;z-index:20;left:50%;top:50%;transform:translate(-50%,-50%) scale(.96);max-width:calc(100% - 28px);padding:9px 13px;border:1px solid var(--stroke);border-radius:8px;background:rgba(12,16,22,.96);box-shadow:0 18px 42px rgba(0,0,0,.42);color:var(--text);font-size:13px;font-weight:750;line-height:1.2;opacity:0;pointer-events:none;transition:opacity .14s ease,transform .14s ease;text-align:center}
.is-favorite-past:hover .favorite-past-tip,.is-favorite-past:focus-within .favorite-past-tip{opacity:1;transform:translate(-50%,-50%) scale(1)}
.result-row-drop.is-up{background:rgba(185,28,28,var(--drop-alpha,.1));color:#fff}
.meta-drop.is-up{background:rgba(185,28,28,var(--drop-alpha,.1));color:#fff}
.meta-drop.is-down{background:rgba(60,174,27,var(--drop-alpha,.1))}
.meta-drop.is-up{--drop-color:185,28,28}
.meta-drop.is-down{--drop-color:60,174,27}
.meta-drop.is-up::before{background:rgba(185,28,28,1)}
.meta-drop.is-down::before{background:rgba(60,174,27,1)}
.is-favorite-arriving{opacity:0;transform:translateY(10px) scale(.985)}
.is-favorite-arriving.is-favorite-arrived{opacity:1;transform:translateY(0) scale(1);transition:opacity .46s ease .28s,transform .54s cubic-bezier(.2,.78,.2,1) .28s}
.favorite-fly-ghost{position:fixed;z-index:200000;pointer-events:none;margin:0;overflow:hidden;opacity:.88;transition:transform .78s cubic-bezier(.18,.82,.22,1),opacity .78s ease;box-shadow:0 24px 70px rgba(0,0,0,.42)}

@media (max-width:1180px){
  .result-row{grid-template-columns:minmax(0,1fr) 124px}
}

@media (min-width:561px) and (max-width:1280px){
  .result-row{grid-template-columns:minmax(0,1fr) 118px}
  .result-row-actions{gap:5px}
  .result-row-ticket-btn{width:36px;height:36px;min-height:36px}
}

@media (max-width:560px){
  .result-row{grid-template-columns:minmax(0,1fr) 72px}
  .result-row-actions{display:grid;grid-template-columns:repeat(2,34px);grid-auto-rows:34px;align-content:center;justify-content:end;gap:4px;width:72px}
  .result-row-ticket-btn,
  .result-row-more,
  .result-row-more .offer-more-btn,
  .favorite-btn,
  .ticket-btn--icon,
  .result-row-actions .result-price-history-btn--action{
    width:34px;
    height:34px;
    min-width:34px;
    min-height:34px;
    max-width:34px;
    max-height:34px;
    flex:0 0 34px;
    border-radius:8px;
    padding:0;
  }
  .result-row-price > .result-price-history-btn{display:none}
  .result-row-actions .result-price-history-btn--action{display:grid;place-items:center}
  .result-row-more{display:block}
  .favorite-btn span{width:19px;height:19px}
  .ticket-btn--icon .result-row-ticket-icon,
  .result-row-ticket-icon{width:21px;height:21px}
  .ticket-btn--icon .result-row-viewed-icon,
  .result-row-viewed-icon{width:15px;height:13px}
  .ticket-btn--icon .result-row-viewed-time,
  .result-row-viewed-time{font-size:9px}
}

/* Main navigation */
header .nav{
  position:relative;
  width:min(1280px,92vw);
  flex-direction:row;
  flex-wrap:nowrap;
  align-items:center;
}
.main-nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:24px;
  margin-left:auto;
}
.main-nav-link{
  color:var(--text);
  font-size:15px;
  font-weight:600;
  line-height:1.2;
  text-decoration:none;
  white-space:nowrap;
  transition:color .16s ease;
}
.main-nav-link:hover,
.main-nav-link:focus-visible{
  color:var(--accent);
  outline:none;
}
.main-nav-telegram{
  display:inline-flex;
  align-items:center;
  gap:7px;
}
.main-nav-link--telegram{
  color:#8de5ff;
}
.main-nav-help{
  position:relative;
  width:20px;
  height:20px;
  padding:0;
  border:1px solid rgba(125,211,252,.45);
  border-radius:50%;
  background:transparent;
  color:var(--muted);
  font:700 12px/18px Inter,sans-serif;
  text-align:center;
  cursor:help;
}
.main-nav-help:hover,
.main-nav-help:focus-visible{
  border-color:var(--accent);
  color:var(--text);
  outline:none;
}
.main-nav-tooltip{
  position:absolute;
  z-index:80;
  top:calc(100% + 10px);
  right:0;
  width:280px;
  padding:10px 12px;
  border:1px solid var(--stroke);
  border-radius:8px;
  background:rgba(12,16,22,.98);
  box-shadow:0 16px 38px rgba(0,0,0,.46);
  color:#eef7ff;
  font-size:12px;
  font-weight:500;
  line-height:1.4;
  text-align:left;
  white-space:normal;
  opacity:0;
  pointer-events:none;
  transform:translateY(4px);
  transition:opacity .14s ease,transform .14s ease;
}
.main-nav-help:hover .main-nav-tooltip,
.main-nav-help:focus-visible .main-nav-tooltip{
  opacity:1;
  transform:translateY(0);
}
.main-nav-theme{
  position:relative;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  flex:0 0 34px;
  padding:0;
  border:1px solid var(--stroke);
  border-radius:50%;
  background:rgba(255,255,255,.04);
  color:var(--text);
  cursor:pointer;
}
.theme-icon{
  width:20px;
  height:20px;
  display:block;
}
.theme-icon--moon{display:none}
[data-theme="light"] .theme-icon--sun{display:none}
[data-theme="light"] .theme-icon--moon{display:block}
.main-nav-theme-tooltip{
  position:absolute;
  z-index:80;
  top:calc(100% + 10px);
  right:0;
  width:max-content;
  max-width:240px;
  padding:8px 10px;
  border:1px solid var(--stroke);
  border-radius:8px;
  background:rgba(12,16,22,.98);
  box-shadow:0 14px 32px rgba(0,0,0,.42);
  color:#eef7ff;
  font-size:12px;
  font-weight:500;
  line-height:1.3;
  white-space:normal;
  opacity:0;
  pointer-events:none;
  transform:translateY(4px);
  transition:opacity .14s ease,transform .14s ease;
}
.main-nav-theme:hover .main-nav-theme-tooltip,
.main-nav-theme:focus-visible .main-nav-theme-tooltip{
  opacity:1;
  transform:translateY(0);
}
.main-nav-theme:hover,
.main-nav-theme:focus-visible{
  border-color:rgba(125,211,252,.55);
  background:rgba(125,211,252,.1);
  outline:none;
}
.nav-menu-toggle{
  display:none;
  width:40px;
  height:40px;
  padding:8px;
  border:1px solid var(--stroke);
  border-radius:8px;
  background:rgba(255,255,255,.05);
  color:var(--text);
  cursor:pointer;
}
.nav-menu-toggle span{
  display:block;
  width:22px;
  height:2px;
  margin:4px auto;
  border-radius:2px;
  background:currentColor;
  transition:transform .18s ease,opacity .18s ease;
}
.nav-menu-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.nav-menu-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.nav-menu-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
.footer-version{
  margin-top:12px;
  color:var(--muted);
  font-size:13px;
  text-decoration:none;
}
.footer-version:hover,
.footer-version:focus-visible{
  color:var(--text);
  text-decoration:underline;
  outline:none;
}

@media (max-width:1024px){
  header .nav{
    width:100%;
    min-height:64px;
    padding:10px 14px;
    flex-direction:row;
    flex-wrap:nowrap;
  }
  .nav-menu-toggle{
    display:block;
    margin-left:auto;
  }
  .main-nav{
    position:absolute;
    z-index:70;
    top:calc(100% + 6px);
    right:14px;
    width:min(340px,calc(100vw - 28px));
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    padding:8px;
    border:1px solid var(--stroke);
    border-radius:8px;
    background:rgba(12,16,22,.98);
    box-shadow:0 20px 46px rgba(0,0,0,.5);
  }
  .main-nav.is-open{display:flex}
  .main-nav-link{
    display:block;
    padding:12px 10px;
    border-radius:6px;
  }
  .main-nav-link:hover,
  .main-nav-link:focus-visible{
    background:rgba(125,211,252,.09);
  }
  .main-nav-telegram{
    display:flex;
    align-items:center;
    gap:4px;
  }
  .main-nav-telegram .main-nav-link{flex:1}
  .main-nav-help{margin-right:8px}
  .main-nav-theme{
    width:100%;
    height:40px;
    margin-top:4px;
    border-radius:6px;
  }
  .main-nav-theme-tooltip{
    top:auto;
    right:8px;
    bottom:calc(100% + 8px);
  }
}
