/* Система взята у Instrument: белый лист, почти чёрный текст, серые «таблетки» навигации,
   служебные подписи моноширинным капслоком, один тёплый красный акцент — он совпадает
   с красными настилами на фотографиях курорта. Названия набраны Vetrino — шрифтом,
   который курорт уже использует на своём сайте. */
@font-face {
  font-family: "Vetrino";
  src: url("fonts/vetrino.woff2") format("woff2");
  font-display: swap;
}

:root {
  --ink: #070708;
  --ink-2: #3a3a3e;
  --muted: #6b6b70;
  --paper: #ffffff;
  --mist: #f1f1f1;
  --mist-2: #e4e4e6;
  --accent: #d7330f;
  --sans: "Onest", "Helvetica Neue", Arial, sans-serif;
  --display: "Unbounded", "Arial Black", sans-serif;
  --name: "Vetrino", "Onest", sans-serif;
  --pad: clamp(16px, 4.2vw, 60px);
  --radius: 20px;
  --gap-section: clamp(88px, 10vw, 160px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }

/* Капслок с разрядкой — для служебной информации: навигация, метки, условия. */
.pill, .meta, .booking__field > span, .restaurant__facts dt, .foot h3, .lead__form label > span, .lead__form .range__label {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* ——— Навигация-«таблетки» ——— */
.pill {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: var(--mist);
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.pill:hover { background: var(--mist-2); }
.pill--dark { background: var(--ink); color: var(--paper); }
.pill--dark:hover { background: var(--accent); }
.pill--light { background: var(--paper); color: var(--ink); }
.pill--light:hover { background: var(--accent); color: var(--paper); }
.pill--big { height: 52px; padding: 0 26px; font-size: 14px; }
.pill:focus-visible, .card__go:focus-visible, .booking__go:focus-visible, .ask a:focus-visible, .intro__text a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--pad);
  background: var(--paper);
}
.top__group { display: flex; gap: 8px; }
.top { transition: background-color 0.2s ease; }
.top:not(.is-scrolled) { background: transparent; }
.top__brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--display);
  font-weight: 900;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0;
}
.top:not(.is-scrolled) .top__brand { pointer-events: none; }


/* ——— Первый экран ——— */
.hero { padding: 0 var(--pad); }
.wordmark {
  margin-top: 6px;
  font-family: var(--display);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  white-space: nowrap;
}
.wordmark span { display: inline-block; font-size: 10.6vw; transform-origin: 50% 50%; will-change: transform; }
.hero__line { display: flex; justify-content: space-between; gap: 24px; margin: 18px 0; font-size: 18px; }
.hero__rating { color: var(--muted); }
.hero__rating b { color: var(--ink); font-weight: 600; }

.hero__media {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 7.6;
  background: var(--mist);
}
.hero__media > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }

.booking {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: grid;
  grid-template-columns: 1.3fr 1.1fr 0.7fr auto;
  align-items: end;
  gap: 10px;
  width: min(780px, calc(100% - 48px));
  padding: 14px;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(7, 7, 8, 0.18);
}
.booking__field { display: grid; gap: 6px; }
.booking__field > span { font-size: 11px; color: var(--muted); }
.booking select, .booking input, .booking .range__field {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: var(--mist);
  color: var(--ink);
  font: 500 16px var(--sans);
}
.booking__go {
  height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--paper);
  font: 600 15px var(--sans);
  cursor: pointer;
}
.booking__go:hover { background: #b92a0b; }

/* ——— Поле «заезд — выезд» и календарь ——— */
.range__field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}
.range__value { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.range__field.is-empty .range__value { color: var(--muted); }
.range__icon { flex: none; color: var(--ink); }
.range__field:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.range__field[aria-expanded="true"] { box-shadow: inset 0 0 0 2px var(--ink); }

.range__pop {
  position: absolute;
  z-index: 60;
  width: max-content;
  padding: 18px 20px 16px;
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 64px rgba(7, 7, 8, 0.24);
}
.range__pop[hidden] { display: none; }
.range__nav { position: relative; z-index: 1; display: flex; justify-content: space-between; height: 0; }
.range__arrow {
  width: 34px;
  height: 34px;
  margin-top: -6px;
  border: 0;
  border-radius: 999px;
  background: var(--mist);
  color: var(--ink);
  font: 500 16px var(--sans);
  cursor: pointer;
}
.range__arrow:hover { background: var(--mist-2); }
.range__arrow:disabled { opacity: 0.35; cursor: default; }
.range__months { display: grid; grid-template-columns: repeat(2, auto); gap: 32px; }
.range__title { margin-bottom: 12px; text-align: center; font-size: 16px; font-weight: 600; }
.range__grid { display: grid; grid-template-columns: repeat(7, 40px); row-gap: 2px; }
.range__wd {
  padding-bottom: 6px;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.range__day {
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: 500 15px var(--sans);
  cursor: pointer;
}
.range__day span { display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto; border-radius: 999px; }
.range__day:hover:not(:disabled):not(.is-start):not(.is-end) span { background: var(--mist-2); }
.range__day:disabled { color: #c3c3c7; cursor: default; }
.range__day.is-today span { box-shadow: inset 0 0 0 1.5px var(--accent); }
.range__day.is-in { background: var(--mist); }
.range__day.band-right { background: linear-gradient(90deg, transparent 50%, var(--mist) 50%); }
.range__day.band-left { background: linear-gradient(90deg, var(--mist) 50%, transparent 50%); }
.range__day.is-start span, .range__day.is-end span { background: var(--ink); color: var(--paper); box-shadow: none; }
.range__day:focus-visible { outline: none; }
.range__day:focus-visible span { outline: 2px solid var(--accent); outline-offset: 1px; }
.range__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--mist-2);
}
.range__hint { font-size: 15px; color: var(--ink-2); }
.range__actions { display: flex; align-items: center; gap: 14px; }
.range__reset {
  border: 0;
  background: none;
  color: var(--ink);
  font: 600 14px var(--sans);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
  cursor: pointer;
}
.range__done {
  height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: 600 14px var(--sans);
  cursor: pointer;
}

/* ——— Вступление: части курорта — ссылки на свои разделы ——— */
.intro { padding: clamp(64px, 8vw, 128px) var(--pad) 0; }
.intro__text {
  max-width: 1200px;
  font-size: clamp(28px, 3.5vw, 52px);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.intro__text a, .ask a {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.14em;
}
.intro__text a:hover, .ask a:hover { color: var(--accent); }

/* ——— Разделы ——— */
.block { padding: var(--gap-section) var(--pad) 0; }
.block__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}
.block h2, .programs h2 {
  font-size: clamp(48px, 6.4vw, 104px);
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 20px;
}
.card { display: grid; align-content: start; gap: 10px; }
.card[hidden], .ask[hidden] { display: none; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; margin-bottom: 6px; }
.card--wide { grid-column: span 2; }
.card--wide img { aspect-ratio: 8 / 3; }
.card h3 {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(30px, 2.5vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.card p { color: var(--ink-2); font-size: 16.5px; max-width: 58ch; }
.card .meta { color: var(--muted); font-size: 12px; }
.card__go {
  justify-self: start;
  margin-top: 4px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.card__go:hover { color: var(--accent); }
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
a.program { color: inherit; text-decoration: none; }
a.program:hover h3 { color: var(--accent); }
a.program:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }

/* Просьба написать — просто текст, «Telegram» подчёркнут и нажимается. */
.ask {
  margin-top: 56px;
  max-width: 820px;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.ask--cell { align-self: end; margin-top: 0; padding-bottom: 6px; }

/* ——— Ресторан ——— */
.restaurant { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.restaurant__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.restaurant .name { font-weight: 300; letter-spacing: -0.05em; }
.restaurant__facts { display: grid; gap: 0; margin: 32px 0; }
.restaurant__facts div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--mist-2);
}
.restaurant__facts div:last-child { border-bottom: 1px solid var(--mist-2); }
.restaurant__facts dt { font-size: 12px; color: var(--muted); }
.restaurant__facts dd { font-size: 18px; }

/* ——— Программы (тёмный блок): название, состав, цена ——— */
.programs {
  margin: var(--gap-section) var(--pad) 0;
  padding: clamp(32px, 5vw, 72px);
  border-radius: 28px;
  background: var(--ink);
  color: var(--paper);
}
.programs__body {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  margin-top: 44px;
}
.programs__photo { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: 16px; }
.program {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 24px;
  align-items: baseline;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.program:first-child { padding-top: 0; border-top: 0; }
.program__what { grid-column: 1 / -1; grid-row: 2; }
.program__price { grid-column: 2; grid-row: 1; }
.program h3 {
  font-family: var(--name);
  font-weight: 400;
  font-size: clamp(30px, 2.5vw, 38px);
  line-height: 1.1;
  letter-spacing: 0.035em;
}
.program .meta { margin-top: 8px; color: #a9a9ae; font-size: 12px; }
.program__what { color: #d8d8dc; font-size: 16.5px; max-width: 60ch; }
.program__price { justify-self: end; text-align: right; font-size: clamp(24px, 2.2vw, 30px); font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.program__price small { font-size: 14px; font-weight: 400; color: #a9a9ae; }
.programs__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.meta--light { color: #a9a9ae; font-size: 12px; }

/* ——— Сертификат ——— */
.cert { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.cert__photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(7, 7, 8, 0.18); }
.cert h2 { font-size: clamp(40px, 5vw, 80px); }
.cert__facts { display: grid; gap: 22px; margin: 32px 0 36px; }
.cert__facts p { max-width: 34ch; font-size: clamp(20px, 1.7vw, 24px); line-height: 1.35; letter-spacing: -0.01em; }
.cert__facts span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ——— Заявка: последний блок перед подвалом ——— */
.lead {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
  margin: var(--gap-section) var(--pad) clamp(72px, 9vw, 140px);
  padding: clamp(32px, 5vw, 72px);
  border-radius: 28px;
  background: var(--accent);
  color: var(--paper);
}
.lead h2 { font-size: clamp(40px, 5vw, 80px); line-height: 0.98; font-weight: 600; letter-spacing: -0.045em; }
.lead__form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead__form .lead__wide { grid-column: 1 / -1; }
.lead__form label { display: grid; gap: 6px; }
.lead__form label > span, .lead__form .range__label { font-size: 11.5px; color: rgba(255, 255, 255, 0.8); }
.lead__form .range { display: grid; gap: 6px; }
.lead__form input, .lead__form select, .lead__form .range__field {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: 500 16px var(--sans);
}
.lead__go {
  grid-column: 1 / -1;
  height: 56px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: 600 16px var(--sans);
  cursor: pointer;
}
.lead__go:hover { background: #2a2a2e; }
.lead__call { grid-column: 1 / -1; font-size: 15px; color: rgba(255, 255, 255, 0.85); }
.lead__call a { color: var(--paper); text-underline-offset: 4px; }

/* ——— Подвал: контакты и гуси, взлетающие с имени ——— */
.foot {
  position: relative;
  overflow: hidden;
  padding: 56px var(--pad) 28px;
  background: var(--ink);
  color: #c9c9ce;
  font-size: 15.5px;
}
.foot__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.foot h3 { margin-bottom: 14px; color: var(--paper); font-size: 11.5px; }
.foot p + p { margin-top: 8px; }
.foot .foot__gap { margin-top: 20px; }
.foot a { color: var(--paper); text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 4px; }
.foot a:hover { text-decoration-color: var(--accent); }
.foot__mark { position: relative; margin-top: clamp(56px, 8vw, 120px); }
.foot__word {
  display: inline-block;
  font-family: var(--display);
  font-weight: 900;
  font-size: 10.6vw;
  line-height: 0.82;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #1d1d20;
}
.foot__geese {
  position: absolute;
  right: 0;
  top: 0;
  width: clamp(110px, 15vw, 230px);
  transform: translateY(-62%);
}
/* Подпись разработчика — знак Flowbuilt в левом нижнем углу. */
.foot__credit {
  display: inline-block;
  margin-top: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--paper);
  text-decoration: none;
}
.foot__credit span { color: #8fa2ff; }
.foot__credit:hover { color: #c9c9ce; }



/* ——— Узкий ноутбук и планшет ——— */
@media (max-width: 1180px) {
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .programs__body { grid-template-columns: 1fr; }
  .programs__photo { aspect-ratio: 16 / 9; }
}
@media (max-width: 1024px) {
  .hero__media { aspect-ratio: auto; overflow: visible; background: none; }
  .hero__media > img { aspect-ratio: 16 / 9; border-radius: 16px; }
  .booking { position: static; width: 100%; margin-top: 10px; box-shadow: none; background: var(--mist); }
  .booking select, .booking input, .booking .range__field { background: var(--paper); }
  .grid { grid-template-columns: 1fr 1fr; }
  .card--wide { grid-column: span 2; }
  .restaurant, .cert, .lead { grid-template-columns: 1fr; }
  .block__head { flex-direction: column; align-items: start; }
}

/* ——— Телефон ——— */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .pill { font-size: 13px; }
  .booking__field > span, .lead__form label > span, .lead__form .range__label { font-size: 12.5px; }
  .intro__text { font-size: 30px; }
  .block h2, .programs h2 { font-size: 50px; }
  .card h3, .program h3 { font-size: 32px; }
  .card p, .program__what { font-size: 17.5px; }
  .card .meta, .program .meta, .meta--light { font-size: 13px; }
  .card__go { font-size: 17px; }
  .ask { font-size: 25px; }
  .restaurant__facts dt { font-size: 13px; }
  .cert__facts p { font-size: 21px; }
  .cert__facts span { font-size: 13px; }
  .lead h2 { font-size: 42px; }
  .foot { font-size: 16.5px; }
  .foot h3 { font-size: 12.5px; }
  .top { padding: 10px var(--pad); }
  .top { justify-content: flex-end; background: var(--paper); }
  .top:not(.is-scrolled) { background: var(--paper); }
  .top nav.top__group, .top__brand { display: none; }
  .hero__line { flex-direction: column; gap: 6px; margin: 12px 0 14px; font-size: 17.5px; }
  .hero__rating { font-size: 15px; }
  .hero__media > img { aspect-ratio: 4 / 4.4; object-position: 38% 60%; }
  .booking { grid-template-columns: 1fr 1fr; padding: 12px; }
  .booking__field:first-child { grid-column: 1 / -1; }
  .booking__go { grid-column: 1 / -1; height: 48px; }
  .block__head { margin-bottom: 28px; }
  .grid { grid-template-columns: 1fr; gap: 44px; }
  .card--wide { grid-column: auto; }
  .card--wide img { aspect-ratio: 4 / 3; }
  .ask { margin-top: 44px; }
  .restaurant__facts div { grid-template-columns: 90px 1fr; }
  .restaurant__facts dd { font-size: 18px; }
  .programs, .lead { margin-left: 0; margin-right: 0; border-radius: 0; }
  .lead__form { grid-template-columns: 1fr; }
  .programs__foot { flex-direction: column; align-items: start; }
  .foot__cols { grid-template-columns: 1fr; gap: 28px; }
  .range__pop {
    position: fixed;
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: auto;
    padding: 20px 16px 28px;
    border-radius: 20px 20px 0 0;
  }
  .range__months { grid-template-columns: 1fr; }
  .range__grid { grid-template-columns: repeat(7, 1fr); }
  .range__day, .range__day span { height: 42px; }
  .range__day span { width: 42px; }
  .range__foot { flex-direction: column; align-items: stretch; }
  .range__actions { justify-content: space-between; }
}

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