/* ==========================================================================
   FLYNECT — design tokens
   ========================================================================== */
:root {
  --navy: #1B3A5C;
  --blue: #3A7BD5;
  --sky: #5CA0E5;
  --green: #2ECC71;
  --discount: #27AE60;
  --amber: #E6A817;

  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --surface-2: #F0F3F8;
  --border: #E1E6EF;
  --text: #1A2233;
  --text-2: #64748B;

  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(27, 58, 92, .06), 0 1px 1px rgba(27, 58, 92, .04);
  --shadow-md: 0 8px 24px rgba(27, 58, 92, .10);
  --shadow-lg: 0 20px 48px rgba(27, 58, 92, .16);
  --container: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1120;
    --surface: #121B2E;
    --surface-2: #1A2540;
    --border: #253352;
    --text: #F1F5F9;
    --text-2: #8899AA;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, .5);
  }
}

:root[data-theme="dark"] {
  --bg: #0B1120;
  --surface: #121B2E;
  --surface-2: #1A2540;
  --border: #253352;
  --text: #F1F5F9;
  --text-2: #8899AA;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, .5);
}

:root[data-theme="light"] {
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --surface-2: #F0F3F8;
  --border: #E1E6EF;
  --text: #1A2233;
  --text-2: #64748B;
  --shadow-sm: 0 1px 2px rgba(27, 58, 92, .06), 0 1px 1px rgba(27, 58, 92, .04);
  --shadow-md: 0 8px 24px rgba(27, 58, 92, .10);
  --shadow-lg: 0 20px 48px rgba(27, 58, 92, .16);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--discount);
  box-shadow: 0 0 0 3px rgba(46, 204, 113, .18);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: #fff;
  box-shadow: 0 6px 18px rgba(58, 123, 213, .35);
}

.btn-primary:hover {
  box-shadow: 0 10px 26px rgba(58, 123, 213, .45);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-dark {
  background: var(--navy);
  color: #fff;
}

.btn-dark:hover {
  background: #142d49;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 13.5px;
}

.btn-block {
  width: 100%;
}

/* ---------- nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--navy);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand {
    color: var(--text);
  }
}
:root[data-theme="dark"] .brand {
  color: var(--text);
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-2);
  transition: color .15s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a.active {
  color: var(--blue);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: all .2s ease;
}

.nav-toggle span::before {
  position: absolute;
  top: -6px;
}

.nav-toggle span::after {
  position: absolute;
  top: 6px;
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    height: calc(100vh - 76px);
    background: var(--bg);
    flex-direction: column;
    padding: 32px 28px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform .25s ease;
    border-top: 1px solid var(--border);
    z-index: 999;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 18px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta .btn-ghost {
    display: none;
  }
}

/* ---------- theme switcher ---------- */
.theme-switcher {
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.theme-switcher:hover {
  background: var(--surface-2);
  border-color: var(--text-2);
}

.theme-switcher .sun-icon {
  display: none;
}

.theme-switcher .moon-icon {
  display: block;
}

:root[data-theme="dark"] .theme-switcher .sun-icon {
  display: block;
}
:root[data-theme="dark"] .theme-switcher .moon-icon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-switcher .sun-icon {
    display: block;
  }
  :root:not([data-theme="light"]) .theme-switcher .moon-icon {
    display: none;
  }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 74px 0 40px;
  z-index: 10;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  line-height: 1.06;
  color: var(--navy);
  margin: 18px 0 20px;
  font-weight: 700;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero h1 {
    color: var(--text);
  }
}
:root[data-theme="dark"] .hero h1 {
  color: var(--text);
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--blue), var(--discount) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 17.5px;
  color: var(--text-2);
  max-width: 480px;
  margin-bottom: 30px;
}

.hero-visual {
  position: relative;
  height: 440px;
}

.hexnet-bg {
  position: absolute;
  inset: -60px -10% auto auto;
  top: -40px;
  right: -6%;
  width: 620px;
  opacity: .5;
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 860px) {
  .hexnet-bg {
    opacity: .3;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .hero-grid > div:first-child {
    order: 2;
  }

  .hero-visual {
    order: 1;
    height: auto;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
  }
}

/* ---------- search card ---------- */
.search-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 8px;
  position: relative;
  max-width: 560px;
}

.search-field {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
}

.search-field svg {
  flex-shrink: 0;
  color: var(--text-2);
}

.search-field input {
  border: none;
  outline: none;
  background: none;
  font-size: 15.5px;
  font-family: var(--font-body);
  color: var(--text);
  width: 100%;
}

.search-field input::placeholder {
  color: var(--text-2);
}

.search-card .btn {
  flex-shrink: 0;
}

.autocomplete {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 320px;
  overflow-y: auto;
  z-index: 50;
  display: none;
}

.autocomplete.show {
  display: block;
}

.autocomplete-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.active {
  background: var(--surface-2);
}

.ac-city {
  display: flex;
  flex-direction: column;
}

.ac-city b {
  font-size: 14.5px;
  font-weight: 600;
}

.ac-city span {
  font-size: 12.5px;
  color: var(--text-2);
}

.ac-code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--blue);
  background: var(--surface-2);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.search-hint {
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 12px;
  padding-left: 6px;
}

/* ---------- split-flap board (signature element) ---------- */
.board {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.board::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(92, 160, 229, .25), transparent 55%);
  pointer-events: none;
}

.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.board-head .eyebrow {
  color: var(--sky);
}

.board-head .eyebrow::before {
  box-shadow: 0 0 0 3px rgba(46, 204, 113, .28);
}

.board-live {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--sky);
  display: flex;
  align-items: center;
  gap: 6px;
}

.board-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: .25;
  }
}

.board-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr .9fr .8fr;
  gap: 10px;
  padding: 11px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  position: relative;
  z-index: 1;
}

.board-row:last-child {
  border-bottom: none;
}

.board-row .flap {
  font-family: var(--font-mono);
  color: #EAF1FB;
  font-size: 13.5px;
  letter-spacing: .03em;
}

.board-row .flap.route {
  font-weight: 600;
  color: #fff;
}

.board-row .flap.price {
  color: var(--green);
  font-weight: 700;
  text-align: right;
}

.board-row .flap.tag {
  color: var(--amber);
  font-size: 11px;
  text-align: right;
}

.flap-char {
  display: inline-block;
}

/* ---------- sections ---------- */
section {
  padding: 56px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 14px 0 12px;
  color: var(--navy);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .section-head h2 {
    color: var(--text);
  }
}
:root[data-theme="dark"] .section-head h2 {
  color: var(--text);
}

.section-head p {
  color: var(--text-2);
  font-size: 16.5px;
}

.section-head.left {
  text-align: left;
  margin: 0 0 44px;
}

/* how it works */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  counter-reset: step;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  position: relative;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--blue);
  border: 1px solid var(--border);
  background: var(--surface-2);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text);
}

.step p {
  font-size: 14px;
  color: var(--text-2);
}

.step-connector {
  position: absolute;
  top: 40px;
  right: -18px;
  width: 18px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--border) 0 4px, transparent 4px 8px);
  display: none;
}

@media (min-width: 1000px) {
  .step-connector {
    display: block;
  }
}

@media (max-width: 1000px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* why cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.card .icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--blue);
}

.card h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-2);
  font-size: 14.5px;
}

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

/* apps promo */
.promo {
  background: linear-gradient(135deg, var(--navy), #0e2740);
  border-radius: var(--radius-lg);
  padding: 60px;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.promo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 20%, rgba(92, 160, 229, .25), transparent 60%);
}

.promo-content {
  position: relative;
  z-index: 2;
}

.promo .eyebrow {
  color: var(--sky);
}

.promo h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: #fff;
  margin: 14px 0 16px;
}

.promo p {
  color: #C9D6E8;
  font-size: 15.5px;
  max-width: 460px;
  margin-bottom: 26px;
}

.promo-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .18);
  padding: 11px 18px;
  border-radius: 12px;
  color: #fff;
}

.store-badge small {
  display: block;
  font-size: 10.5px;
  color: #9FB2CC;
}

.store-badge b {
  font-size: 14.5px;
}

.promo-visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.phone {
  width: 200px;
  background: #0B1120;
  border-radius: 30px;
  padding: 8px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
  border: 1px solid rgba(255, 255, 255, .12);
}

.phone-screen {
  background: var(--bg);
  border-radius: 22px;
  overflow: hidden;
}

.phone-bar {
  background: var(--navy);
  padding: 14px 12px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-bar .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sky);
}

.phone-bar span {
  color: #fff;
  font-size: 11px;
  font-family: var(--font-mono);
}

.phone-body {
  padding: 12px;
}

.phone-deal {
  background: var(--surface);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border);
}

.phone-deal .route {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
}

.phone-deal .discount {
  background: rgba(39, 174, 96, 0.1);
  color: var(--discount);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: auto;
  margin-right: 12px;
}

.phone-deal .price {
  color: var(--discount);
  font-weight: 700;
  font-size: 12.5px;
}

.tg-mock {
  width: 200px;
  background: #0B1120;
  border-radius: 30px;
  padding: 8px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
  border: 1px solid rgba(255, 255, 255, .12);
  align-self: flex-end;
}

.tg-screen {
  background: #17212B;
  border-radius: 22px;
  overflow: hidden;
  min-height: 280px;
}

.tg-head {
  background: #232E3C;
  padding: 14px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tg-head .avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--sky));
  flex-shrink: 0;
}

.tg-head span {
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
}

.tg-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tg-bubble {
  background: #2B5278;
  color: #fff;
  font-size: 11.5px;
  padding: 9px 11px;
  border-radius: 10px 10px 10px 2px;
  max-width: 88%;
  line-height: 1.4;
}

.tg-bubble b {
  color: var(--sky);
}

@media (max-width: 900px) {
  .promo {
    grid-template-columns: 1fr;
    padding: 36px 24px;
  }
  .promo-visual {
    display: none;
  }
}

/* faq */
.faq {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.faq-q svg {
  transition: transform .2s ease;
  flex-shrink: 0;
  color: var(--text-2);
}

.faq-item.open .faq-q svg {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  color: var(--text-2);
  font-size: 14.5px;
  padding: 0 4px;
}

.faq-item.open .faq-a {
  padding-bottom: 20px;
}

/* footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 30px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.footer-grid ul li {
  margin-bottom: 10px;
}

.footer-grid ul a {
  font-size: 14px;
  color: var(--text-2);
}

.footer-grid ul a:hover {
  color: var(--blue);
}

.footer-brand p {
  color: var(--text-2);
  font-size: 14px;
  margin: 14px 0 18px;
  max-width: 300px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-2);
  flex-wrap: wrap;
  gap: 10px;
}

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

/* generic page hero (city/blog) */
.page-hero {
  padding: 56px 0 40px;
  position: relative;
}

.page-hero .eyebrow {
  margin-bottom: 14px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  color: var(--navy);
  margin-bottom: 14px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .page-hero h1 {
    color: var(--text);
  }
}
:root[data-theme="dark"] .page-hero h1 {
  color: var(--text);
}

.page-hero p {
  color: var(--text-2);
  font-size: 16px;
  max-width: 600px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 18px;
}

.breadcrumb a:hover {
  color: var(--blue);
}

/* deals table (city page) */
.deals-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.pill-group {
  display: flex;
  gap: 8px;
  background: var(--surface-2);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.pill {
  border: none;
  background: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
}

.pill.active {
  background: var(--surface);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pill.active {
    color: var(--text);
  }
}
:root[data-theme="dark"] .pill.active {
  color: var(--text);
}

.deals-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.deal-row {
  display: grid;
  grid-template-columns: 2fr 1.3fr 1fr 1fr auto;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  transition: box-shadow .15s ease, transform .15s ease, border-radius .15s ease;
  cursor: pointer;
}

.deal-row:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.deal-row.open {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: none;
  transform: none !important;
}

.deal-details {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  margin-top: -14px;
  margin-bottom: 4px;
  padding: 0 22px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1), padding 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease-out;
}

.deal-details.show {
  max-height: 120px;
  padding: 18px 22px;
  opacity: 1;
}

.deal-dest {
  display: flex;
  align-items: center;
  gap: 12px;
}

.deal-dest .flag {
  font-size: 22px;
}

.deal-dest b {
  font-size: 15.5px;
  display: block;
}

.deal-dest span {
  font-size: 12.5px;
  color: var(--text-2);
}

.deal-route {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-2);
}

.deal-dates {
  font-size: 13.5px;
  color: var(--text-2);
}

.deal-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(46, 204, 113, .14);
  color: var(--discount);
  width: fit-content;
}

.deal-price {
  text-align: right;
}

.deal-price b {
  font-size: 19px;
  color: var(--navy);
  font-family: var(--font-mono);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .deal-price b {
    color: var(--text);
  }
}
:root[data-theme="dark"] .deal-price b {
  color: var(--text);
}

.deal-price span {
  display: block;
  font-size: 11.5px;
  color: var(--text-2);
}

@media (max-width: 760px) {
  .deal-row {
    display: grid;
    grid-template-columns: auto auto auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 8px 12px;
    padding: 14px 18px;
    text-align: left;
  }

  .deal-dest {
    grid-column: 1 / span 4;
    grid-row: 1;
  }

  .deal-price {
    grid-column: 5;
    grid-row: 1 / span 2;
    text-align: right;
    align-self: center;
  }

  .deal-route {
    grid-column: 1;
    grid-row: 2;
    font-size: 12px;
  }

  .deal-dates {
    grid-column: 2;
    grid-row: 2;
    font-size: 12px;
  }

  .deal-badge {
    grid-column: 3;
    grid-row: 2;
    justify-self: start;
  }

  section {
    padding: 38px 0;
  }

  .section-head {
    margin-bottom: 24px;
  }
}

.city-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.city-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 500;
}

.city-chip:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* alert box */
.alert-box {
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 26px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.alert-box h3 {
  font-size: 16.5px;
  margin-bottom: 6px;
}

.alert-box p {
  color: var(--text-2);
  font-size: 14px;
}

/* blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.post-thumb {
  height: 160px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sky), var(--navy));
}

.post-thumb svg {
  position: absolute;
  opacity: .5;
}

.post-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, .92);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: .03em;
}

.post-body {
  padding: 20px 22px 24px;
}

.post-meta {
  font-size: 12px;
  color: var(--text-2);
  font-family: var(--font-mono);
  margin-bottom: 10px;
}

.post-body h3 {
  font-size: 16.5px;
  margin-bottom: 8px;
  line-height: 1.35;
}

.post-body p {
  font-size: 13.5px;
  color: var(--text-2);
}

.post-card.featured {
  grid-column: span 2;
}

.post-card.featured .post-thumb {
  height: 240px;
}

@media (max-width: 1000px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .post-card.featured {
    grid-column: span 2;
  }
}

@media (max-width: 680px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .post-card.featured {
    grid-column: span 1;
  }
}

/* article page */
.article {
  max-width: 720px;
  margin: 0 auto;
}

.article > p:first-of-type > img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin: 26px 0 40px;
}

.article p {
  margin-bottom: 20px;
  font-size: 16.5px;
  color: var(--text);
}

.article h2 {
  font-size: 24px;
  margin: 40px 0 16px;
  color: var(--navy);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .article h2 {
    color: var(--text);
  }
}
:root[data-theme="dark"] .article h2 {
  color: var(--text);
}

.article ul {
  margin-bottom: 20px;
}

.article ul li {
  margin-bottom: 10px;
  padding-left: 22px;
  position: relative;
}

.article ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.article blockquote {
  border-left: 3px solid var(--blue);
  padding: 4px 0 4px 20px;
  margin: 30px 0;
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--navy);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .article blockquote {
    color: var(--text);
  }
}
:root[data-theme="dark"] .article blockquote {
  color: var(--text);
}

/* utility */
.mt-lg {
  margin-top: 60px;
}

.text-center {
  text-align: center;
}

.fade-up {
  animation: fadeUp .6s ease both;
}

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

/* ---------- contact form ---------- */
.contact-form label {
  color: var(--text);
}
.contact-form input,
.contact-form textarea {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  outline: none;
}

/* ---------- line loader ---------- */
.line-loader-container {
  width: 180px;
  height: 3px;
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  margin: 16px auto;
}

.line-loader {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  position: absolute;
  top: 0;
  left: -100%;
  animation: loading-bar-ani 1.2s infinite linear;
}

@keyframes loading-bar-ani {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}
