/* Тверская природа: стили сайта. Без внешних шрифтов и картинок. */

:root {
  --bg: #eef0ea;
  --ink: #17251f;
  --pine: #234a3a;
  --pine-deep: #162f26;
  --pine-night: #10231c;
  --lake: #4e7c8a;
  --honey: #d9a441;
  --honey-hover: #e4b356;
  --muted: #5e6e64;
  --line: #cfd6cc;
  --on-dark: #d7e2da;
  --on-dark-muted: #a9bab0;
  --serif: Georgia, "Times New Roman", "Noto Serif", serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--pine); }

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: clamp(22px, 2.4vw, 28px); }

p { margin: 0; }

.wrap {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

/* Шапка поверх фото */

.top {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
}

.brand {
  font-family: var(--serif);
  font-size: 22px;
  color: #fff;
  text-decoration: none;
}

.menu { display: flex; gap: 26px; }

.menu a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  opacity: 0.92;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.menu a:hover { border-bottom-color: #fff; }

/* Первый экран */

.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: end;
  color: #fff;
  background: var(--pine-deep);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(22, 47, 38, 0.35) 0%,
    rgba(22, 47, 38, 0) 35%,
    rgba(22, 47, 38, 0.82) 100%
  );
}

.hero-text {
  position: relative;
  z-index: 1;
  width: min(1120px, 100% - 40px);
  margin: 0 auto;
  padding: 150px 0 64px;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 92px);
  max-width: 14ch;
  text-wrap: balance;
}

.hero p {
  margin-top: 22px;
  max-width: 46ch;
  font-size: clamp(17px, 1.6vw, 21px);
  color: #e4ece6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

/* Кнопки */

.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid transparent;
  line-height: 1.3;
}

.btn-primary {
  background: var(--honey);
  color: #22190a;
  border-color: var(--honey);
}

.btn-primary:hover { background: var(--honey-hover); border-color: var(--honey-hover); }

.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* Об отдыхе */

.about { padding: 96px 0 0; }

.intro { max-width: 60ch; }

.lead {
  margin-top: 18px;
  font-size: 19px;
  color: var(--muted);
}

.features {
  width: min(1120px, 100% - 40px);
  margin: 64px auto 0;
  display: grid;
  gap: 64px;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}

.feature figure { margin: 0; }

.feature:nth-child(even) figure { order: 2; }

.feature img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 4px;
}

.feature-text p {
  margin-top: 14px;
  color: var(--muted);
}

.feature-text .detail {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink);
}

/* Полоса с фото и цитатой */

.band {
  position: relative;
  margin-top: 96px;
  min-height: 520px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  background: var(--pine-deep);
  overflow: hidden;
}

.band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.band blockquote {
  position: relative;
  margin: 0;
  padding: 80px 20px;
  max-width: 30ch;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
  text-wrap: balance;
}

.band blockquote span {
  display: block;
  margin: 22px auto 0;
  max-width: 46ch;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--on-dark);
}

/* Варианты и цены */

.places { padding: 96px 0; }

.offers {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}

.offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.offer p {
  margin-top: 8px;
  color: var(--muted);
  max-width: 56ch;
}

.price {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--pine);
  white-space: nowrap;
  text-align: right;
}

.price small {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
}

.note {
  margin-top: 22px;
  font-size: 15px;
  color: var(--muted);
  max-width: 60ch;
}

/* Контакты */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--pine-deep);
  color: #fff;
}

.contact-text {
  align-self: center;
  padding: clamp(48px, 7vw, 110px) clamp(20px, 6vw, 96px);
}

.contact h2 { color: #fff; }

.contact p {
  margin-top: 18px;
  max-width: 44ch;
  color: var(--on-dark);
}

.contact .btn { margin-top: 32px; }

.contact .alt {
  margin-top: 16px;
  font-size: 15px;
  color: var(--on-dark-muted);
}

.contact figure { margin: 0; min-height: 360px; }

.contact img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Подвал */

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 26px 24px;
  background: var(--pine-night);
  color: var(--on-dark-muted);
  font-size: 14px;
}

footer a { color: var(--on-dark); }

/* Адаптив */

@media (max-width: 820px) {
  .feature,
  .feature:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .feature:nth-child(even) figure { order: 0; }
  .contact { grid-template-columns: 1fr; }
  .contact figure { min-height: 260px; }
}

@media (max-width: 600px) {
  .top { padding: 16px 20px; }
  .brand { font-size: 18px; }
  .menu { gap: 16px; }
  .menu a { font-size: 14px; }
  .menu a:not(:last-child) { display: none; }
  .hero-text { padding-top: 120px; }
  .about { padding-top: 72px; }
  .features { margin-top: 48px; gap: 48px; }
  .band { margin-top: 72px; min-height: 420px; }
  .places { padding: 72px 0; }
  .offer { grid-template-columns: 1fr; gap: 6px; }
  .price { text-align: left; }
}
