/*
 * Курортные страницы (mu-plugins/network-resorts.php). Палитра и шрифты — из темы Жирафа:
 * фон #171717, карточки #262626, бордовый --brand-accent, золото #E6C878, заголовки Cormorant Garamond.
 */

.resort {
  --resort-head: "Cormorant Garamond", serif;
  --resort-body: "Onest", sans-serif;
  --resort-gold: #e6c878;
  --resort-red: var(--brand-accent, #a33123);
  --resort-card: #1f1f1f;
  --resort-line: rgba(255, 255, 255, .1);
  --resort-text: var(--content-primary, #e0e0e0);
  --resort-muted: var(--content-secondary, #a8a8a8);
  color: var(--resort-muted);
  font-size: 18px;
  line-height: 1.65;
}

.resort p { margin: 0 0 16px; }
.resort p:last-child { margin-bottom: 0; }
.resort a:not(.btn) { color: var(--resort-gold); }

/* ---------- первый экран ---------- */
.resort-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: 150px 0 70px;
  overflow: hidden;
  isolation: isolate;
}

.resort-hero__bg,
.resort-hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.resort-hero__bg img { object-fit: cover; object-position: center 60%; }

.resort-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(23, 23, 23, .82) 0%, rgba(23, 23, 23, .45) 45%, rgba(23, 23, 23, .1) 75%),
    linear-gradient(180deg, rgba(23, 23, 23, .55) 0%, rgba(23, 23, 23, 0) 30%, rgba(23, 23, 23, 0) 55%, #171717 100%);
}

.resort-hero__container { position: relative; }

.resort-crumbs {
  display: flex;
  gap: 10px;
  margin-bottom: 26px;
  font-size: 14px;
  color: rgba(255, 255, 255, .6);
}

.resort-crumbs a { color: rgba(255, 255, 255, .8) !important; text-decoration: none; }
.resort-crumbs a:hover { color: var(--resort-gold) !important; }

.resort-hero__season {
  display: inline-block;
  margin: 0 0 22px !important;
  padding: 7px 16px;
  border: 1px solid rgba(230, 200, 120, .55);
  border-radius: 999px;
  color: var(--resort-gold);
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  background: rgba(23, 23, 23, .25);
}

.resort-hero__title {
  max-width: 900px;
  margin-bottom: 22px !important;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}

.resort-hero__lead {
  max-width: 640px;
  margin-bottom: 34px !important;
  color: rgba(255, 255, 255, .88);
  font-size: 21px;
  line-height: 1.55;
}

.resort-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.resort-buttons .btn { align-items: center; }

.resort-hero__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 980px;
  margin: 56px 0 0;
  padding: 26px 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.resort-hero__facts li { padding-right: 24px; }
.resort-hero__facts li + li { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .14); }

.resort-hero__facts strong {
  display: block;
  font-family: var(--resort-head);
  font-size: 34px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--resort-gold);
}

.resort-hero__facts span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, .72); }

/* ---------- общие ---------- */
.resort-section { padding: 70px 0; }

.resort-h2 {
  margin: 0 0 22px !important;
  font-family: var(--resort-head);
  font-size: 58px;
  line-height: 1.05;
  font-weight: 700;
  color: var(--base-light-gray, #f0f0f0);
}

.resort-lead { max-width: 760px; margin-bottom: 40px !important; font-size: 19px; }

/* ---------- вступление ---------- */
.resort-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}

.resort-intro__text p { color: var(--resort-text); opacity: .9; }

.resort-intro__numbers {
  margin: 0;
  padding: 34px 36px;
  list-style: none;
  background: var(--resort-card);
  border: 1px solid var(--resort-line);
  border-radius: 20px;
}

.resort-intro__numbers li { padding: 16px 0; }
.resort-intro__numbers li + li { border-top: 1px solid var(--resort-line); }

.resort-intro__numbers strong {
  display: block;
  font-family: var(--resort-head);
  font-size: 46px;
  line-height: 1;
  color: var(--resort-gold);
}

.resort-intro__numbers span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.45; }

/* ---------- как это устроено ---------- */
.resort-steps__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: resort-step;
}

.resort-steps__list li {
  position: relative;
  padding: 30px 26px 28px;
  background: var(--resort-card);
  border: 1px solid var(--resort-line);
  border-radius: 20px;
  counter-increment: resort-step;
}

.resort-steps__list li::before {
  content: '0' counter(resort-step);
  display: block;
  margin-bottom: 18px;
  font-family: var(--resort-head);
  font-size: 50px;
  line-height: 1;
  font-weight: 700;
  color: var(--resort-red);
}

.resort-steps__list h3,
.resort-road__item h3,
.resort-stay__list h3,
.resort-card h3 {
  margin: 0 0 10px;
  font-family: var(--resort-body);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--resort-text);
}

.resort-steps__list p,
.resort-road__item p,
.resort-stay__list p,
.resort-card p { font-size: 16px; line-height: 1.6; }

/* ---------- чем заняться ---------- */
.resort-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.resort-card {
  overflow: hidden;
  background: var(--resort-card);
  border: 1px solid var(--resort-line);
  border-radius: 20px;
  transition: border-color .3s ease, transform .3s ease;
}

.resort-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .6s ease;
}

.resort-card__body { padding: 22px 24px 26px; }

@media (hover: hover) {
  .resort-card:hover { border-color: rgba(230, 200, 120, .45); transform: translateY(-3px); }
  .resort-card:hover img { transform: scale(1.04); }
}

/* ---------- анкеты ---------- */
.resort-models .catalog-full { gap: 0; }
.resort-more { margin-top: 40px; text-align: center; }

/* ---------- где остановиться ---------- */
.resort-stay__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.resort-stay__img { margin: 0; overflow: hidden; border-radius: 22px; }
.resort-stay__img img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.resort-stay__text p { color: var(--resort-text); opacity: .9; }

.resort-stay__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.resort-stay__list li {
  padding: 24px 24px 22px;
  border: 1px solid var(--resort-line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0));
}

/* ---------- цены ---------- */
.resort-prices__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.resort-price {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 26px;
  background: var(--resort-card);
  border: 1px solid var(--resort-line);
  border-radius: 20px;
}

.resort-price span { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; }

.resort-price strong {
  font-family: var(--resort-head);
  font-size: 40px;
  line-height: 1.05;
  color: var(--resort-text);
}

.resort-price--accent { background: linear-gradient(135deg, #8f2a1e 0%, #5c1b14 100%); border-color: transparent; }
.resort-price--accent span { color: rgba(255, 255, 255, .8); }
.resort-price--accent strong { color: #fff; }

.resort-prices__note { max-width: 820px; margin-top: 26px !important; font-size: 16px; }

/* ---------- дорога ---------- */
.resort-road__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.resort-road__item {
  padding: 28px 26px;
  border-left: 2px solid var(--resort-red);
  background: var(--resort-card);
  border-radius: 0 18px 18px 0;
}

.resort-road__time {
  display: block;
  margin-bottom: 12px;
  font-family: var(--resort-head);
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  color: var(--resort-gold);
}

/* ---------- вопросы ---------- */
.resort-faq__list { max-width: 920px; }

.resort-faq__item { border-bottom: 1px solid var(--resort-line); }

.resort-faq__item summary {
  position: relative;
  padding: 22px 50px 22px 0;
  list-style: none;
  cursor: pointer;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--resort-text);
}

.resort-faq__item summary::-webkit-details-marker { display: none; }

.resort-faq__item summary::after {
  content: '+';
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  font-size: 30px;
  font-weight: 300;
  color: var(--resort-gold);
  transition: transform .25s ease;
}

.resort-faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.resort-faq__item p { padding: 0 50px 24px 0; font-size: 17px; }

/* ---------- ссылки ---------- */
.resort-links__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.resort-links__item {
  display: block;
  padding: 24px 26px;
  border: 1px solid var(--resort-line);
  border-radius: 18px;
  text-decoration: none;
  transition: border-color .25s ease, background .25s ease;
}

.resort-links__item strong { display: block; font-size: 19px; color: var(--resort-text); }
.resort-links__item span { display: block; margin-top: 6px; font-size: 15px; color: var(--resort-muted); }
.resort-links__item:hover { border-color: rgba(230, 200, 120, .5); background: rgba(255, 255, 255, .03); }

/* ---------- финал ---------- */
.resort-final { padding-bottom: 40px; }

.resort-final__box {
  padding: 60px 56px;
  text-align: center;
  border-radius: 26px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(163, 49, 35, .55) 0%, rgba(163, 49, 35, 0) 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(230, 200, 120, .18) 0%, rgba(230, 200, 120, 0) 50%),
    #222;
  border: 1px solid var(--resort-line);
}

.resort-final__box p { max-width: 640px; margin: 0 auto 30px !important; color: var(--resort-text); }
.resort-final__box .resort-buttons { justify-content: center; }

.resort-credits { margin-top: 30px !important; font-size: 12px; line-height: 1.5; color: #6f6f6f; }
.resort .resort-credits a { color: #8a8a8a; }

/* ---------- планшет ---------- */
@media (max-width: 1199px) {
  .resort-h2 { font-size: 48px; }
  .resort-steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resort-prices__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resort-intro__grid { gap: 48px; }
}

@media (max-width: 991px) {
  .resort-intro__grid,
  .resort-stay__grid { grid-template-columns: 1fr; gap: 36px; }
  .resort-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resort-stay__list,
  .resort-road__grid { grid-template-columns: 1fr; }
  .resort-hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .resort-hero__facts li:nth-child(3) { padding-left: 0; border-left: 0; }
}

/* ---------- телефон ---------- */
@media (max-width: 767px) {
  .resort { font-size: 16px; }
  .resort-hero { padding: 138px 0 40px; min-height: 92vh; min-height: 92svh; }
  .resort-crumbs { margin-bottom: 18px; font-size: 13px; }
  .resort-hero__season { margin-bottom: 16px !important; padding: 6px 12px; font-size: 11px; letter-spacing: .05em; }
  .resort-hero__facts strong { white-space: nowrap; }
  .resort-hero::after {
    background: linear-gradient(180deg, rgba(23, 23, 23, .6) 0%, rgba(23, 23, 23, .2) 30%, rgba(23, 23, 23, .55) 62%, #171717 100%);
  }
  .resort-hero__title.title.title--1 { font-size: 52px; line-height: 1; }
  .resort-hero__lead { font-size: 17px; }
  .resort-hero__facts { margin-top: 36px; }
  .resort-hero__facts strong { font-size: 24px; }
  .resort-hero__facts li { padding-right: 12px; }
  .resort-hero__facts li + li { padding-left: 14px; }
  .resort-section { padding: 46px 0; }
  .resort-h2 { font-size: 36px; }
  .resort-lead { font-size: 16px; margin-bottom: 26px !important; }
  .resort-cards { grid-template-columns: 1fr; gap: 18px; }
  .resort-steps__list { grid-template-columns: 1fr; gap: 14px; }
  .resort-steps__list li { padding: 22px 22px 20px; }
  .resort-steps__list li::before { font-size: 40px; margin-bottom: 10px; }
  .resort-prices__grid { gap: 12px; }
  .resort-price { padding: 20px 18px; }
  .resort-price strong { font-size: 28px; }
  .resort-intro__numbers { padding: 22px 24px; }
  .resort-intro__numbers strong { font-size: 38px; }
  .resort-faq__item summary { font-size: 17px; padding-right: 40px; }
  .resort-faq__item p { padding-right: 0; font-size: 15px; }
  .resort-final__box { padding: 38px 22px; }
  .resort-buttons { width: 100%; }
}

@media (max-width: 400px) {
  .resort-hero__title.title.title--1 { font-size: 44px; }
  .resort-prices__grid { grid-template-columns: 1fr; }
}

/* ---------- блок «Выезд на курорты» на главной ---------- */
.resort-home { padding: 30px 0 110px; }

.resort-home__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 44px;
}

.resort-home__head .title { color: var(--base-light-gray, #f0f0f0); }
.resort-home__head p { max-width: 520px; margin: 0; font-size: 18px; line-height: 1.6; }

.resort-home__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}

.resort-home__card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  text-decoration: none;
  isolation: isolate;
}

.resort-home__card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}

.resort-home__card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(23, 23, 23, 0) 35%, rgba(23, 23, 23, .92) 100%);
}

.resort-home__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px 26px 28px;
}

.resort-home__name {
  font-family: var(--resort-head);
  font-size: 44px;
  line-height: 1;
  font-weight: 700;
  color: #fff;
}

.resort-home__text { font-size: 15px; line-height: 1.4; color: rgba(255, 255, 255, .78); }
.resort-home__more { margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--resort-gold, #e6c878); }

@media (hover: hover) {
  .resort-home__card:hover img { transform: scale(1.05); }
}

@media (max-width: 991px) {
  .resort-home__head { flex-direction: column; align-items: flex-start; gap: 18px; }
}

@media (max-width: 767px) {
  .resort-home { padding: 10px 0 70px; }
  .resort-home__head p { font-size: 16px; }
  /* на телефоне — лента, листается пальцем */
  .resort-home__grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .resort-home__grid::-webkit-scrollbar { display: none; }
  .resort-home__card { flex: 0 0 74%; aspect-ratio: 3 / 4; scroll-snap-align: start; }
  .resort-home__name { font-size: 34px; }
  .resort-home__body { padding: 20px 20px 22px; }
}

/* ---------- Арчер: заголовки Victor Mono капсом (так у темы), текст Mulish, акцент красный ---------- */
.resort--archer {
  --resort-head: "Victor Mono", monospace;
  --resort-body: "Mulish", sans-serif;
  --resort-gold: #e8735f;
  --resort-card: #262626;
}

.resort--archer h3 { text-transform: none; }
.resort--archer .resort-hero__title.title { font-size: clamp(36px, 6vw, 84px); line-height: 1.08; }
.resort--archer .resort-h2 { font-size: 44px; line-height: 1.15; }
.resort--archer .resort-hero__facts strong { font-size: 28px; }
.resort--archer .resort-intro__numbers strong { font-size: 34px; }
.resort--archer .resort-price strong { font-size: 28px; }
.resort--archer .resort-road__time { font-size: 26px; }
.resort--archer .resort-steps__list li::before { font-size: 40px; }
.resort--archer .resort-home__name { font-size: 30px; text-transform: uppercase; }
.resort--archer .resort-hero__season { border-color: rgba(232, 115, 95, .55); }

@media (max-width: 767px) {
  .resort--archer .resort-hero__title.title { font-size: 32px; }
  .resort--archer .resort-h2 { font-size: 26px; }
  .resort--archer .resort-hero__facts strong { font-size: 20px; }
  .resort--archer .resort-intro__numbers strong { font-size: 28px; }
  .resort--archer .resort-price strong { font-size: 22px; }
  .resort--archer .resort-home__name { font-size: 26px; }
}
