/* Header */
header {
    background: var(--bg-white);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
}

.inner-inner-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo{
  font-weight:700;
  color:var(--accent);
  text-decoration:none;
  font-size:1.1rem;
  margin: 15px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text);
    cursor: pointer;
    z-index: 1001;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: 0.3s;
    padding: 5px 0;
    position: relative;
}

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

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-links li a:hover::after {
    width: 100%;
}


/* Базовые стили — для мобильных */
.btn-book-mobile {
  display: block;
  width: calc(100% - 40px);
  text-align: center;
  background: var(--accent);
  color: white;
  padding: 10px 25px;
  text-decoration: none;
  border-radius: 50px;
  transition: 0.3s;
  font-weight: 500;
  white-space: nowrap;
}

.btn-book-pc {
  display: none;
}

/* Стили для планшетов и десктопов */
@media (min-width: 868px) {
  .btn-book-mobile {
    display: none;
  }
  .btn-book-pc {
    display: block;
    background: var(--accent);
    color: white;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 50px;
    transition: 0.3s;
    font-weight: 500;
    white-space: nowrap;
    margin: 15px;
  }
}

.btn-book-pc:hover {
    background: #a88568;
    transform: translateY(-2px);
}

.menu-toggle {
  display: none; / по умолчанию скрыт на десктопе */
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  z-index: 1001;
}
.menu-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  transition: transform 0.7s, opacity 0.3s;
}


@media (max-width: 868px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    flex-direction: column; /* Только один раз! */
    gap: 12px;
    padding: 16px 20px;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.7s ease;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
  }

  .main-nav.open {
    max-height: 500px; /* Уберите height: auto */
  }

  header nav {
    justify-content: center;
  }

  @media (max-width: 868px) {
  /* Общие стили для мобильных */
  .nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;}
  }

  /* Дополнительно для экранов < 470px */
  @media (max-width: 470px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
  }
}
