:root {
  --bg: #f8f4eb;
  --surface: #fffef9;
  --surface-soft: #f1eadc;
  --text: #2d261b;
  --muted: #665b49;
  --accent: #caa56a;
  --accent-strong: #ab8342;
  --border: rgba(97, 75, 39, 0.2);
  --shadow: 0 18px 40px rgba(55, 42, 21, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: #f7f2e7;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("assets/hero-bg.jpg") center 24% / cover no-repeat;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(250, 246, 238, 0.16);
  z-index: -1;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.section {
  padding: 84px 0;
  position: relative;
}

.section__label {
  margin: 0 0 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

h1,
h2,
h3 {
  font-family: "Marcellus", serif;
}

h2 {
  font-size: clamp(30px, 4vw, 46px);
  margin: 0 0 26px;
}

.section h2 {
  color: transparent;
  background: linear-gradient(135deg, var(--accent) 0%, #ebcf9f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow:
    -8px 0 14px rgba(255, 255, 255, 0.2),
    8px 0 14px rgba(255, 255, 255, 0.2);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 5;
  backdrop-filter: blur(10px);
  background: rgba(255, 252, 246, 0.35);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand img {
  width: 84px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: clamp(20px, 2vw, 28px);
  font-family: "Marcellus", serif;
  line-height: 1;
}

.header__contacts {
  display: flex;
  align-items: center;
  gap: 10px;
}

.messenger {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.75);
}

.messenger img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.phone {
  color: #322611;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
}

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: visible;
  padding-top: 92px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: transparent;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero__logo {
  width: min(240px, 42vw);
  margin: 0 auto 20px;
}

.hero h1 {
  font-size: clamp(38px, 7vw, 86px);
  margin: 0;
  color: transparent;
  background: linear-gradient(135deg, var(--accent) 0%, #ebcf9f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow:
    -16px 0 24px rgba(255, 255, 255, 0.42),
    16px 0 24px rgba(255, 255, 255, 0.42),
    0 0 18px rgba(255, 255, 255, 0.36);
}

.hero__subtitle {
  color: #ffffff;
  margin: 0;
  font-size: clamp(28px, 3.2vw, 44px);
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.85),
    0 0 18px rgba(255, 255, 255, 0.55);
  font-weight: 600;
}

.hero__text {
  max-width: 760px;
  margin: 18px auto 0;
  line-height: 1.7;
  color: #2e261b;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 0 22px rgba(255, 255, 255, 0.45),
    0 16px 35px rgba(74, 56, 30, 0.18);
  padding: 14px 18px;
  border-radius: 14px;
  backdrop-filter: blur(5px);
}

.hero__actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.booking-slot {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.booking-section {
  margin-top: -150px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 14px 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, #ebcf9f 100%);
  color: #241b0f;
  box-shadow: 0 10px 24px rgba(171, 131, 66, 0.22);
}

.btn--primary:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(171, 131, 66, 0.28);
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #2f2f2f;
  background: linear-gradient(180deg, rgba(242, 242, 242, 0.98), rgba(227, 227, 227, 0.96));
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.btn--ghost:hover {
  background: linear-gradient(180deg, rgba(248, 248, 248, 0.98), rgba(236, 236, 236, 0.98));
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(200px, 1fr));
  gap: 18px;
}

.features article {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 254, 249, 0.92), rgba(241, 234, 220, 0.9));
  padding: 20px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.features h3 {
  margin: 0 0 8px;
  font-size: 26px;
}

.features p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.features.is-visible article {
  opacity: 1;
  transform: translateY(0);
}

.features__grid article:nth-child(5) {
  grid-column: 2 / 3;
}

.features__grid article:nth-child(6) {
  grid-column: 3 / 4;
}

.video__wrap {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.video__wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery__hint {
  color: var(--muted);
  margin-bottom: 18px;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.gallery__card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: var(--shadow);
  padding: 0;
}

.gallery__card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.infinite-carousel {
  margin-top: 18px;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 6px 4vw 10px;
  cursor: grab;
  user-select: none;
  scroll-behavior: smooth;
}

.infinite-carousel::-webkit-scrollbar {
  display: none;
}

.infinite-carousel:active {
  cursor: grabbing;
}

.carousel__item {
  min-width: min(680px, 86vw);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  padding: 0;
}

.carousel__item img {
  width: 100%;
  height: clamp(340px, 45vw, 520px);
  object-fit: cover;
  display: block;
}

.carousel-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-arrow {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
  color: #4b3a20;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  flex: 0 0 auto;
}

.nearby__cards {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(90px, auto);
  gap: 16px;
  min-height: 680px;
}

.nearby__card {
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(26px) scale(0.98);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.nearby.is-visible .nearby__card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.nearby__card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.nearby__card h3 {
  margin: 10px 14px 6px;
  font-size: 23px;
}

.nearby__card p {
  margin: 0 14px 14px;
  color: var(--muted);
  line-height: 1.5;
}

.nearby__card:nth-child(1) { grid-column: 1 / 5; grid-row: 1 / 3; }
.nearby__card:nth-child(2) { grid-column: 5 / 9; grid-row: 2 / 4; }
.nearby__card:nth-child(3) { grid-column: 9 / 13; grid-row: 1 / 3; }
.nearby__card:nth-child(4) { grid-column: 2 / 6; grid-row: 4 / 6; }
.nearby__card:nth-child(5) { grid-column: 7 / 12; grid-row: 4 / 6; }

.map__frame {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.map__2gis {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  text-decoration: none;
  color: #3f311b;
  background: rgba(255, 255, 255, 0.9);
  margin: 0 0 16px;
}

.footer {
  border-top: 1px solid var(--border);
  background: rgba(239, 231, 215, 0.95);
  padding-top: 32px;
}

.footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.footer__brand img {
  width: 86px;
  margin-bottom: 12px;
}

.footer__links,
.footer__contacts {
  display: grid;
  gap: 8px;
}

.footer a {
  color: #584a32;
  text-decoration: none;
}

.footer__bottom {
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 22px;
  padding: 16px 0 18px;
}

.footer__bottom p {
  margin: 0;
  color: #584a32;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__image {
  width: min(92vw, 1100px);
  height: min(82vh, 760px);
  object-fit: contain;
}

.lightbox button {
  position: absolute;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 28px;
}

.lightbox__close {
  top: 20px;
  right: 20px;
}

.lightbox__prev {
  left: 18px;
}

.lightbox__next {
  right: 18px;
}

@media (max-width: 980px) {
  .features__grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .features__grid article:nth-child(5),
  .features__grid article:nth-child(6) {
    grid-column: auto;
  }

  .nearby__cards {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .nearby__card:nth-child(1),
  .nearby__card:nth-child(2),
  .nearby__card:nth-child(3),
  .nearby__card:nth-child(4),
  .nearby__card:nth-child(5) {
    grid-column: auto;
    grid-row: auto;
  }

  .nav {
    display: none;
  }

  .carousel-arrow {
    width: 46px;
    height: 46px;
    font-size: 30px;
  }
}

@media (max-width: 680px) {
  .header__inner {
    min-height: 74px;
  }

  .phone {
    display: none;
  }

  .section {
    padding: 64px 0;
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .carousel-shell {
    position: relative;
    gap: 0;
    width: 100%;
    overflow: hidden;
  }

  .infinite-carousel {
    padding: 0;
    gap: 0;
    width: 100%;
  }

  .carousel__item {
    min-width: 100vw;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 42px;
    height: 42px;
    font-size: 28px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(2px);
  }

  .carousel-arrow--prev {
    left: 10px;
  }

  .carousel-arrow--next {
    right: 10px;
  }
}
