/* ========== HEADER ========== */

.home-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14);
}

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

.home-header a,
.home-mobile-menu a {
  text-decoration: none;
}

.home-header-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 18px;
}

.home-header-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.home-header-logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
  flex: 0 0 auto;
}

.home-header-logo {
  width: 118px;
  height: auto;
  display: block;
}

.home-header-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.02;
}

.home-header-brand-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.home-header-brand-subtitle {
  margin-top: 2px;
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-header-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.home-header-nav a {
  color: #f9fafb;
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.home-header-nav a:hover,
.home-header-nav a:focus-visible {
  color: #ffffff;
  opacity: 0.82;
}

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

.home-header-call,
.home-header-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.home-header-call {
  background: transparent;
  color: #e5e7eb;
  border: 1px solid rgba(229, 231, 235, 0.42);
}

.home-header-call:hover,
.home-header-call:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

.home-header-book {
  background: #b91c1c;
  color: #f9fafb;
  border: 1px solid #b91c1c;
  box-shadow: 0 10px 24px rgba(185, 28, 28, 0.22);
}

.home-header-book:hover,
.home-header-book:focus-visible {
  background: #991b1b;
  border-color: #991b1b;
  color: #ffffff;
  transform: translateY(-1px);
}

/* ========== MOBILE TOGGLE ========== */

.home-header-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.home-header-toggle-line {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
  transform: translateX(-50%);
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.home-header-toggle-line:nth-child(1) {
  top: 13px;
}

.home-header-toggle-line:nth-child(2) {
  top: 20px;
}

.home-header-toggle-line:nth-child(3) {
  top: 27px;
}

.home-header-toggle-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-header.is-open .home-header-toggle-line:nth-child(1) {
  top: 20px;
  transform: translateX(-50%) rotate(45deg);
}

.home-header.is-open .home-header-toggle-line:nth-child(2) {
  opacity: 0;
}

.home-header.is-open .home-header-toggle-line:nth-child(3) {
  top: 20px;
  transform: translateX(-50%) rotate(-45deg);
}

/* ========== MOBILE MENU ========== */

.home-mobile-menu {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.home-header.is-open .home-mobile-menu {
  display: block;
}

.home-mobile-menu nav {
  display: grid;
  gap: 10px;
}

.home-mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 700;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.home-mobile-menu a:hover,
.home-mobile-menu a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* ========== TABLET ========== */

@media (max-width: 1080px) {
  .home-header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .home-header-nav {
    display: none;
  }

  .home-header-toggle {
    display: inline-block;
  }
}

/* ========== MOBILE ========== */

@media (max-width: 720px) {
  .home-header-inner {
    width: min(100%, calc(100% - 24px));
    min-height: 64px;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding: 8px 0;
  }

  .home-header-brand {
    gap: 0;
    max-width: 64px;
  }

  .home-header-brand-text {
    display: none;
  }

  .home-header-logo-box {
    padding: 2px 4px;
    border-radius: 6px;
  }

  .home-header-logo {
    width: 62px;
    max-width: 62px;
  }

  .home-header-actions {
    display: none;
  }

  .home-mobile-menu {
    width: min(100%, calc(100% - 24px));
    padding-bottom: 14px;
  }
}

@media (max-width: 480px) {
  .home-header-inner {
    width: min(100%, calc(100% - 20px));
    min-height: 58px;
    gap: 8px;
  }

  .home-header-brand {
    max-width: 56px;
  }

  .home-header-logo-box {
    padding: 1px 3px;
    border-radius: 5px;
  }

  .home-header-logo {
    width: 54px;
    max-width: 54px;
  }

  .home-header-toggle {
    width: 38px;
    height: 38px;
  }

  .home-header-toggle-line {
    width: 18px;
  }

  .home-header-toggle-line:nth-child(1) {
    top: 11px;
  }

  .home-header-toggle-line:nth-child(2) {
    top: 18px;
  }

  .home-header-toggle-line:nth-child(3) {
    top: 25px;
  }

  .home-mobile-menu {
    width: min(100%, calc(100% - 20px));
    padding-bottom: 12px;
  }

  .home-mobile-menu a {
    min-height: 46px;
    font-size: 0.92rem;
  }
}

/* ========== /HEADER ========== */
