:root {
  --blue: #2b1260;
  --blue-dark: #1a0a3a;
  --red: #c6f432;
  --red-hover: #d9ff63;
  --light: #d3c6f2;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--blue);
  color: #fff;
  font-family: Montserrat, Arial, sans-serif;
  line-height: 1.5;
}

h2 {
  margin: 0 0 48px;
  text-align: center;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
}

/* Кнопки */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--red);
  color: #1a0a3a;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s;
}
.btn:hover { background: var(--red-hover); }
.btn--big { padding: 15px 40px; font-size: 17px; }

/* Шапка */
.header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px clamp(16px, 4vw, 48px);
}
.header__logo { display: block; height: 44px; width: auto; }

/* Первый экран */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px 20px 64px;
  text-align: center;
  background:
    linear-gradient(rgba(26, 10, 58, .5), rgba(26, 10, 58, .85)),
    url("images/hero.jpg") center / cover no-repeat var(--blue-dark);
}
.hero__logo { width: min(300px, 62vw); height: auto; margin-bottom: 28px; }
.hero h1 {
  max-width: 900px;
  margin: 0 0 18px;
  font-size: clamp(30px, 5.4vw, 56px);
  font-weight: 800;
  line-height: 1.12;
}
.hero p {
  max-width: 560px;
  margin: 0 0 32px;
  color: var(--light);
  font-size: clamp(16px, 2vw, 19px);
}

/* Тарифы */
.tariffs { padding: clamp(56px, 9vw, 104px) clamp(16px, 4vw, 48px); }
.tariffs__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
  max-width: 1160px;
  margin: 0 auto;
}
.card { display: flex; flex-direction: column; align-items: flex-start; }
.card__photo {
  width: 100%;
  aspect-ratio: 1 / 1.1;
  margin-bottom: 18px;
  border-radius: 16px;
  object-fit: cover;
}
.card__photo--adult   { object-position: 50% 52%; }
.card__photo--kids    { object-position: 50% 30%; }
.card__photo--weekday { object-position: 50% 40%; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { flex: 1; margin: 0 0 22px; color: var(--light); font-size: 14.5px; }

/* Фотографии */
.gallery { padding: 0 clamp(16px, 4vw, 48px) clamp(56px, 9vw, 104px); }
.gallery__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  max-width: 1160px;
  margin: 0 auto;
}
.gallery__list img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  object-fit: cover;
}
.gallery__list img:nth-child(1) { object-position: 50% 35%; }
.gallery__list img:nth-child(2) { object-position: 60% 55%; }
.gallery__list img:nth-child(3) { object-position: 50% 25%; }
.gallery__list img:nth-child(4) { object-position: 51% 50%; }
.gallery__list img:nth-child(5) { object-position: 50% 38%; }
.gallery__list img:nth-child(6) { object-position: 50% 25%; }
.gallery__list img:nth-child(7) { object-position: 50% 55%; }
.gallery__list img:nth-child(8) { object-position: 50% 60%; }

/* Контакты */
.footer { padding: 56px clamp(16px, 4vw, 48px) 40px; background: var(--blue-dark); text-align: center; }
.footer h2 { margin-bottom: 28px; font-size: clamp(24px, 3.4vw, 32px); }
.footer__contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 44px;
  margin-bottom: 32px;
}
.footer__contacts a { color: #fff; font-weight: 600; text-decoration: none; }
.footer__contacts a:hover { color: var(--red-hover); }
.footer__contacts span { color: var(--light); }
.footer__copy { margin: 28px 0 0; color: var(--light); font-size: 13px; }
