* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  background: #f4f0e9;
  color: #25221f;
  line-height: 1.6;
}

a {
  color: inherit;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 5vw;
  background: rgba(244, 240, 233, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(37, 34, 31, .08);
}

.logo {
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.04em;
}

.logo span {
  opacity: .5;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: .9rem;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  opacity: .6;
}

.nav-button {
  padding: 11px 17px;
  border-radius: 999px;
  background: #25221f;
  color: #fff;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.7rem;
  cursor: pointer;
}

.hero {
  min-height: 78vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(22,18,14,.72), rgba(22,18,14,.18)),
    url("images/photo-2.jpeg") center/cover no-repeat;
  color: #fff;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 90%);
  margin: 0 auto;
  padding: 90px 0;
}

.hero-kicker,
.eyebrow {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .7;
}

.hero h1 {
  margin: 18px 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(4rem, 10vw, 8.5rem);
  line-height: .88;
  letter-spacing: -.06em;
}

.hero h1 em,
h2 em {
  font-weight: 600;
}

.hero p {
  max-width: 590px;
  font-size: 1.08rem;
  opacity: .9;
  margin-bottom: 30px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  border: 0;
  border-radius: 999px;
  padding: 14px 21px;
  background: #25221f;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  transition: transform .2s ease, opacity .2s ease;
}

.hero .primary-button {
  background: #fff;
  color: #25221f;
}

.primary-button:hover {
  transform: translateY(-2px);
  opacity: .9;
}

.gallery-section,
.about,
.location,
.contacts,
.booking {
  width: min(1200px, 90%);
  margin: 0 auto;
}

.gallery-section {
  padding: 110px 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
  margin-bottom: 40px;
}

h2 {
  margin-top: 12px;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: .98;
  letter-spacing: -.045em;
}

.section-heading p {
  max-width: 330px;
  opacity: .65;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
}

.gallery-card {
  position: relative;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  background: #ddd;
}

.gallery-card--large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-card--wide {
  grid-column: span 2;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .45s ease;
}

.gallery-card:hover img {
  transform: scale(1.045);
}

.image-label {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  font-size: .78rem;
}

.about {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 60px;
  padding: 100px 0;
  border-top: 1px solid rgba(37,34,31,.12);
}

.about-number {
  font-family: "Playfair Display", serif;
  font-size: 4rem;
  opacity: .25;
}

.about-content {
  max-width: 850px;
}

.description {
  margin-top: 35px;
  max-width: 780px;
  font-size: 1.05rem;
}

.description p + p {
  margin-top: 13px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 20px;
  background: rgba(37,34,31,.12);
  border-top: 1px solid rgba(37,34,31,.12);
  border-bottom: 1px solid rgba(37,34,31,.12);
}

.feature {
  padding: 55px 7vw;
  background: #f4f0e9;
}

.feature span {
  font-size: .72rem;
  font-weight: 800;
  opacity: .45;
}

.feature h3 {
  margin: 12px 0;
  font-family: "Playfair Display", serif;
  font-size: 1.7rem;
}

.feature p {
  opacity: .7;
}

.location {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 60px;
  align-items: center;
  padding: 110px 0;
}

.location-card {
  padding: 35px;
  border-radius: 24px;
  background: #e8e1d7;
}

.location-icon {
  font-size: 2rem;
  margin-bottom: 15px;
}

.location-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
}

.muted {
  margin-top: 12px;
  opacity: .6;
}

.contacts {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 60px;
  align-items: center;
  padding: 110px 0;
  border-top: 1px solid rgba(37,34,31,.12);
}

.contacts-photo {
  overflow: hidden;
  border-radius: 26px;
  aspect-ratio: 4 / 3;
  box-shadow: 0 20px 55px rgba(37,34,31,.12);
}

.contacts-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contacts-content > p {
  margin: 20px 0 28px;
  opacity: .7;
}

.contact-links {
  display: grid;
  gap: 12px;
  max-width: 600px;
}

.contact-link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 18px 20px;
  border-radius: 16px;
  background: #e8e1d7;
  text-decoration: none;
  transition: transform .2s ease;
}

.contact-link:hover {
  transform: translateY(-2px);
}

.contact-label {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .55;
}

.booking {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 100px 0 120px;
  border-top: 1px solid rgba(37,34,31,.12);
}

.booking > div p {
  margin-top: 18px;
  max-width: 520px;
  opacity: .7;
}

#bookingForm {
  display: grid;
  gap: 12px;
}

#bookingForm input {
  width: 100%;
  padding: 16px 17px;
  border: 1px solid rgba(37,34,31,.15);
  border-radius: 13px;
  background: rgba(255,255,255,.5);
  font: inherit;
  outline: none;
}

#bookingForm input:focus {
  border-color: #25221f;
}

.form-message {
  min-height: 25px;
  font-size: .9rem;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 5vw;
  background: #25221f;
  color: #fff;
}

.footer a {
  text-decoration: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 55px;
  background: rgba(15,13,11,.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(92vw, 1200px);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 10px;
}

.lightbox button {
  position: absolute;
  border: 0;
  background: rgba(255,255,255,.12);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
}

.lightbox-close {
  top: 20px;
  right: 24px;
  width: 48px;
  height: 48px;
  font-size: 2rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  width: 50px;
  height: 50px;
  font-size: 2.2rem;
  transform: translateY(-50%);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  color: #fff;
  opacity: .8;
}

@media (max-width: 850px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 15px 5vw 22px;
    background: #f4f0e9;
    border-bottom: 1px solid rgba(37,34,31,.1);
  }

  .nav.is-open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: 70vh;
  }

  .section-heading,
  .location,
  .contacts,
  .booking {
    grid-template-columns: 1fr;
    display: grid;
  }

  .section-heading {
    align-items: start;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 190px;
  }

  .gallery-card--large,
  .gallery-card--wide {
    grid-column: span 2;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .feature {
    padding: 40px 7vw;
  }
}

@media (max-width: 520px) {
  .header {
    padding: 15px 5vw;
  }

  .hero-content {
    padding: 65px 0;
  }

  .hero h1 {
    font-size: 4.2rem;
  }

  .gallery-section,
  .about,
  .location,
  .contacts,
  .booking {
    padding: 70px 0;
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 230px;
  }

  .gallery-card--large,
  .gallery-card--wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .lightbox {
    padding: 25px;
  }

  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Видео квартиры */
.video-section {
  width: min(1200px, 90%);
  margin: 0 auto;
  padding: 0 0 110px;
}

.video-card {
  overflow: hidden;
  border-radius: 24px;
  background: #25221f;
  box-shadow: 0 20px 55px rgba(37, 34, 31, .12);
}

.video-card video {
  width: 100%;
  display: block;
  max-height: 720px;
  object-fit: cover;
}

@media (max-width: 850px) {
  .video-section {
    padding-bottom: 80px;
  }
}

@media (max-width: 520px) {
  .video-section {
    padding-bottom: 70px;
  }

  .video-card {
    border-radius: 18px;
  }
}


/* Диапазон дат в бронировании */
.date-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}
.date-range label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  font-size: 14px;
}
.date-range input {
  min-width: 0;
  flex: 1;
}
@media (max-width: 560px) {
  .date-range { grid-template-columns: 1fr; gap: 8px; }
}

.reviews {
  width: min(1200px, 90%);
  margin: 0 auto;
  padding: 40px 0 110px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  align-items: start;
}

.reviews-list {
  display: grid;
  gap: 14px;
}

.review-card,
.review-form {
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(37,34,31,.08);
  border-radius: 22px;
  padding: 24px;
}

.review-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 10px;
}

.review-card p { opacity: .7; }
.stars { letter-spacing: .08em; }

.review-form {
  display: grid;
  gap: 13px;
}

.review-form input,
.review-form select,
.review-form textarea {
  width: 100%;
  border: 1px solid rgba(37,34,31,.12);
  border-radius: 14px;
  padding: 14px 15px;
  background: rgba(255,255,255,.75);
  color: inherit;
  font: inherit;
  outline: none;
}

.review-form textarea { resize: vertical; min-height: 130px; }
.rating-label { display: grid; gap: 7px; font-size: .88rem; font-weight: 700; }
.review-form .form-message { margin-top: -2px; }

@media (max-width: 760px) {
  .reviews { padding-bottom: 80px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .review-top { align-items: flex-start; flex-direction: column; gap: 6px; }
}
/* Исправление формы заявки на мобильных устройствах */
@media (max-width: 600px) {
  .booking-form .date-row,
  .booking-form .dates,
  .booking-form .date-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .booking-form .date-row > *,
  .booking-form .dates > *,
  .booking-form .date-fields > * {
    width: 100%;
    min-width: 0;
  }

  .booking-form label {
    display: block;
    width: 100%;
    white-space: normal;
  }

  .booking-form input,
  .booking-form select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}