:root {
  --bg-color: #050505;
  --text-color: #ffffff;
  --muted-text: #9ca0ad;
  --accent: #d4af4f;
  --accent-dark: #b89437;
  --border-color: rgba(255, 255, 255, 0.08);
  --container-width: 106rem;
}

.reveal {
  opacity: 0;
  transform: translateY(2.5rem);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 7.5rem;
}

.nav__link {
  position: relative;
  transition: color 0.3s ease;
}

.nav__link::after {
  transition: all 0.3s ease;
}

.nav__link.active {
  color: #fff;
}

.nav__link.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;

  background: linear-gradient(90deg, #c5a47e, #f5d7b2, #c5a47e);
  border-radius: 2px;

  box-shadow: 0 0 6px rgba(197, 164, 126, 0.6);
}

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

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  padding-top: 6.25rem; /* висота хедера */
}

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

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

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

.container {
  width: 100%;
  max-width: calc(var(--container-width) + 4rem);
  margin: 0 auto;
  padding: 0 2rem;
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  background-color: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* контейнер */
.header__container {
  max-width: calc(var(--container-width) + 4rem); /* вирівнює з hero */
  margin: 0 auto;
  padding: 0 2rem;
  min-height: 6.25rem;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

/* ЛОГО */
.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  justify-self: start;
  margin-left: 4rem;
}

.logo__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 1.85rem;
  height: 1.85rem;

  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
}

.logo__icon svg {
  width: 100%;
  height: 100%;

  stroke: currentColor;
  fill: none;

  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo__text {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
}

/* NAV */
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: 2;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 700;
  color: #d7d9df;
  transition: color 0.3s ease;
}

.nav__link:hover,
.nav__link:focus {
  color: var(--accent);
}

/* КНОПКА */
.header__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  justify-self: start; /* більше не прилипає вправо */
  margin-left: 5rem;   /* регулює відстань від меню */

  padding: 0.7rem 1.3rem;

  background-color: var(--accent);
  color: #111111;

  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;

  transition: background-color 0.3s ease, transform 0.3s ease;
}

.header__btn:hover,
.header__btn:focus {
  background-color: var(--accent-dark);
  transform: translateY(-0.1rem);
}

.footer {
  padding: 3.8rem 0 0; /* було більше */
  background: radial-gradient(
      circle at 20% 30%,
      rgba(212, 175, 79, 0.06),
      transparent 40%
    ),
    #07090d;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ВАЖЛИВО: центруємо і звужуємо */
.footer .container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer .logo {
  margin-left: 0;
}

/* GRID */
.footer__container {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 2.2rem; /* було 3rem */
}

/* трохи стримуємо перший блок */
.footer__col--brand {
  max-width: 18rem;
}

/* LOGO */
.footer__desc {
  margin-top: 1.2rem;
  color: #9aa4b7;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* TITLES */
.footer__title {
  margin: 0 0 1.1rem;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
}

/* LINKS */
.footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer__list a {
  color: #9aa4b7;
  font-size: 0.93rem;
  transition: color 0.3s;
}

.footer__list a:hover {
  color: var(--accent);
}

/* CONTACTS */
.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__contacts li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #9aa4b7;
  font-size: 0.93rem;
}

.footer__contacts svg {
  width: 0.95rem;
  height: 0.95rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

/* SOCIALS */
.footer__socials {
  display: flex;
  gap: 0.7rem;
}

.footer__social {
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;

  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.05);

  transition: all 0.3s ease;
}

.footer__social svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke: #9aa4b7;
  fill: none;
  stroke-width: 1.8;
}

.footer__social:hover {
  border-color: rgba(212, 175, 79, 0.5);
  background: #161616;
}

.footer__social:hover svg {
  stroke: var(--accent);
}

/* BOTTOM */
.footer__bottom {
  margin-top: 2.2rem; /* було 3.5rem */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.2rem 0; /* компактніше */
}

.footer__bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__bottom p {
  margin: 0;
  color: #6f7888;
  font-size: 0.88rem;
}

.footer__links {
  display: flex;
  gap: 1.2rem;
}

.footer__links a {
  color: #6f7888;
  font-size: 0.88rem;
  transition: color 0.3s;
}

.footer__links a:hover {
  color: var(--accent);
}

/* HAMBURGER */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.35rem;
  flex-shrink: 0;
  z-index: 1001;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-active .nav-toggle__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.is-active .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* MOBILE NAV BOOKING BUTTON (hidden on desktop) */
.nav__book-btn {
  display: none;
}

/* RESPONSIVE FOOTER */
@media (max-width: 75rem) {
  .footer__container {
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
  }

  .footer__bottom-container {
    flex-direction: column;
    gap: 0.9rem;
  }

  .nav__list {
    gap: 1.75rem;
  }

  .nav__link {
    font-size: 0.875rem;
  }

  .header__btn {
    min-width: 9rem;
    min-height: 3.5rem;
  }
}

@media (max-width: 48rem) {
  .footer {
    padding: 3rem 0 0;
  }

  .footer__container {
    grid-template-columns: 1fr;
  }
}

/* MOBILE HEADER */
@media (max-width: 62rem) {
  body {
    padding-top: 5rem;
  }

  section[id] {
    scroll-margin-top: 5.5rem;
  }

  .header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    min-height: 5rem;
  }

  .logo {
    margin-left: 0;
  }

  .header__btn {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Overlay */
  .nav {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 5, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
  }

  .nav__link {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #d7d9df;
  }

  .nav__book-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2.25rem;
    padding: 0.9rem 2.75rem;
    background: var(--accent);
    color: #111111;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: background-color 0.3s ease;
  }

  .nav__book-btn:hover {
    background-color: var(--accent-dark);
  }
}

@media (max-width: 36rem) {
  .container {
    padding: 0 1rem;
  }

  .header__container {
    padding: 0 1rem;
    min-height: 4.5rem;
  }

  body {
    padding-top: 4.5rem;
  }

  section[id] {
    scroll-margin-top: 5rem;
  }
}