/* THEIA — патч сайту 07.09.2026.
   1) шапка не ріжеться на ноутбуках 1024–1400 px;
   2) бургер-меню працює до 1200 px, а не лише до 640;
   3) посилання в підвалі мають вигляд посилань;
   4) на статичних сторінках (тарифи/безпека/404) меню не зникає на телефоні. */

/* ------------------------------------------------ 1. підвал: живі посилання */
footer .thx-flink,
footer a[data-thx-foot] {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(242, 178, 51, .45);
  transition: color .2s, border-color .2s;
}
footer .thx-flink:hover,
footer a[data-thx-foot]:hover {
  color: #f2b233;
  border-bottom-color: #f2b233;
}

/* ------------------------------------------------ 2. шапка на вузьких екранах */
@media (min-width: 1201px) and (max-width: 1400px) {
  header nav { margin-left: 1rem !important; margin-right: 1rem !important; gap: 1.5rem !important; font-size: 14.5px !important; }
}
@media (min-width: 1201px) and (max-width: 1320px) {
  header nav { gap: 1.05rem !important; font-size: 13.5px !important; }
  header .container-x > div > div:last-child > a { padding-left: 1.05rem !important; padding-right: 1.05rem !important; font-size: 13.5px !important; }
}

/* ------------------------------------------------ 3. бургер до 1200 px */
.thx-burger { display: none; }

@media (max-width: 1200px) {
  [data-thx-hide] { display: none !important; }

  .thx-burger {
    display: inline-flex !important; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-left: auto; border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .18); background: rgba(10, 20, 23, .55);
    color: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .thx-burger svg { width: 22px; height: 22px; }

  .thx-menu {
    position: fixed; left: 8px; right: 8px; top: var(--thx-header, 100px);
    z-index: 2147483100; display: none; flex-direction: column; gap: 2px;
    padding: 8px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(6, 20, 23, .97); backdrop-filter: blur(12px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45); max-height: 70vh; overflow-y: auto;
  }
  .thx-menu.open { display: flex; }
  .thx-menu a { display: block; padding: 13px 14px; border-radius: 10px; color: #e9eef0; font-size: 16px; line-height: 1.2; text-decoration: none; }
  .thx-menu a:active { background: rgba(242, 178, 51, .16); }
  .thx-menu .thx-sep { height: 1px; margin: 6px 4px; background: rgba(255, 255, 255, .12); }
  .thx-menu a.thx-accent { color: #f2b233; font-weight: 600; }

  .thx-scrollhint { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 12px; color: #f2b233; opacity: .9; }
  .thx-scrollwrap { position: relative; }
  .thx-scrollwrap::after {
    content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 34px;
    pointer-events: none; background: linear-gradient(90deg, rgba(6, 20, 23, 0), rgba(6, 20, 23, .85));
  }
}

/* максимум 640 px — бургер трохи ближче до краю, як і було */
@media (max-width: 640px) {
  .thx-burger { width: 42px; height: 42px; }
}

/* ------------------------------------------------ 4. статичні сторінки на телефоні */
@media (max-width: 640px) {
  .top { flex-wrap: wrap; }
  .top nav {
    display: flex !important; flex-wrap: wrap; gap: 8px 14px;
    margin: 10px 0 0 !important; font-size: 13.5px; width: 100%;
  }
}
