/* ===== TOPBAR (логотип + контакти) ===== */

.site-chrome {
  display: block;
}

.topbar {
  /* Верхній стан: прозоро, без матування */
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-top);
  z-index: 9999;
  background: transparent;
  color: var(--vtr-text);
  padding: 12px 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

/* При прокрутці: glass + компактніший хедер */
.topbar.is-compact {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  padding: 12px 0;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* CENTER NAV (Головна / Контакти) */
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar-nav a {
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.topbar-nav a:hover {
  background: linear-gradient(90deg, #00b894, #00cec9);
  color: #fff;
  box-shadow: 0 6px 14px rgba(31,168,150,.18);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

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

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffe066, #f59f00);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.35);
}

.logo-title {
  font-weight: 700;
  font-size: 20px;
}

.logo-subtitle {
  font-size: 12px;
  opacity: 0.9;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  padding: 0;
  border-radius: 999px;
  background: none;
  border: none;
}

.lang-switch a,
.lang-switch span {
  line-height: 1;
}

.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--vtr-text);
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.lang:hover {
  text-decoration: none !important;
  color: var(--vtr-heading);
  background: rgba(255, 255, 255, 0.22);
}

.lang.active {
  background: linear-gradient(90deg, #00b894, #00cec9);
  color: #fff;
  box-shadow: 0 4px 10px rgba(31,168,150,.16);
}

.lang-sep {
  color: var(--vtr-muted);
  opacity: 0.8;
  user-select: none;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  text-align: right;
}

.topbar-phones {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phone-row {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.phone {
  font-size: 16px;
  font-weight: 600;
  color: var(--vtr-text);
  text-decoration: none;
}

.phone:hover {
  color: #2fa195;
  text-decoration: none;
}

.phone-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.phone-icons .ms {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #3bb3a6;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.14);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.phone-icons .ms:hover {
  background: #2fa195;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
}

.phone-icons .ms svg {
  width: 15px;
  height: 15px;
  fill: #fff;
  display: block;
}

.contacts-line + .contacts-line {
  margin-top: 2px;
}

/* ===== BUTTONS ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn-call {
  text-decoration: none !important;
  /* Фірмова бірюза – той самий градієнт, що й у кнопок "Забронювати" */
  background: linear-gradient(90deg, #00b894, #00cec9);
  color: #fff;
  box-shadow: 0 6px 14px rgba(31,168,150,.18);
  transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

.btn-call:hover {
  text-decoration: none !important;
  background: linear-gradient(90deg, #00a188, #00b8c1);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(31,168,150,.25);
}

/* ===== MAIN NAV – капсульне меню ===== */

.main-nav-bar {
  margin-top: 12px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 16px;
  background: #3bb3a6;
  border-radius: 14px;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.25);
}

/* прибираємо точки */
.main-nav,
.main-nav li {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.main-nav > li > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #2fa195;
  color: #ffffff;

  padding: 10px 22px;
  border-radius: 999px;

  font-size: 14px;
  font-weight: 700;

  text-decoration: none;
  white-space: nowrap;

  transition:
    background 0.25s ease,
    transform 0.18s ease,
    box-shadow 0.25s ease;
}

/* hover */
.main-nav > li > a:hover {
  background: #3bb3a6;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.35);
}

/* активна сторінка */
.main-nav > li.current-menu-item > a {
  background: #155a4f;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.35);
}

.page-wrap {
  padding-top: 0;
}

.main-layout {
  display: grid;
  grid-template-columns: var(--vt-sidebar-w) minmax(0, 1fr);
  gap: var(--vt-layout-gap);
}


/* Mobile header stability */
@media (max-width: 768px){
  .topbar,
  .topbar.is-compact{
    padding: 10px 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }

  .topbar-inner{
    align-items: center;
  }

  .topbar-left{
    gap: 12px;
  }

  .logo-img{
    width: 120px;
    height: auto;
    display: block;
  }

  .lang-switch{
    font-size: 13px;
    gap: 4px;
  }

  .topbar-right{
    margin-left: auto;
    gap: 8px;
  }
}

.topbar-right {
  position: relative;
}

.topbar-callback-form[hidden] {
  display: none !important;
}

.topbar-callback-form {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: min(420px, calc(100vw - 32px));
  padding: 22px;
  border-radius: 26px;

  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(255,255,255,0.45);

  box-shadow:
    0 30px 80px rgba(15, 23, 42, 0.25),
    inset 0 1px 0 rgba(255,255,255,0.6);

  z-index: 10001;

  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}

/* відкритий стан */
.topbar-callback-form:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.topbar-callback-form__inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.topbar-callback-form .callback-input {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  border: 1px solid rgba(43, 67, 96, 0.14);
  border-radius: 14px;
  padding: 0 14px;
  background: #fff;
  color: var(--vtr-text);
}

.topbar-callback-form .callback-btn {
  width: 100%;
  min-height: 46px;
  border: none;
  border-radius: 14px;
}

.callback-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--vtr-heading);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(15,23,42,0.15);
  transition: all 0.2s ease;
}

.callback-close:hover {
  color: #16c4b2;
  transform: rotate(90deg);
}

.callback-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.callback-overlay:not([hidden]) {
  opacity: 1;
}

.callback-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--vtr-heading);
  text-align: center;
  margin-bottom: 14px;
  position: relative;
}

.callback-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  margin: 8px auto 0;
  background: linear-gradient(90deg, #00b894, #00cec9);
  border-radius: 2px;
}

body.callback-modal-open {
  overflow: hidden;
}

