/* =============================================
   STYLE.CSS — Основные стили
   Курорты Абхазии
   ============================================= */

/* ── CSS-переменные ── */
:root {
  --color-primary:      #0077b6;
  --color-primary-dark: #005f8e;
  --color-accent:       #f77f00;
  --color-accent-dark:  #d46400;
  --color-bg:           #f8fafc;
  --color-bg-alt:       #eef4fb;
  --color-text:         #1a2332;
  --color-text-muted:   #5a6a7e;
  --color-white:        #ffffff;
  --color-border:       #dde6ef;
  --color-hero-overlay: rgba(0, 30, 60, 0.52);
  --color-card-shadow:  rgba(0, 60, 120, 0.13);

  --font-main:    'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  28px;

  --shadow-card:   0 4px 24px var(--color-card-shadow);
  --shadow-card-hover: 0 20px 56px rgba(0, 60, 120, 0.22);
  --shadow-btn:    0 2px 12px rgba(0, 119, 182, 0.25);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container:  1200px;
  --container-narrow: 1100px;

  /* Оверлеи для параллакс-секций */
  --overlay-dark:   rgba(0, 15, 35, 0.62);
  --overlay-medium: rgba(0, 20, 45, 0.50);
  --overlay-light:  rgba(0, 15, 35, 0.38);
}

/* ── Базовые ── */
body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 1rem;
  line-height: 1.65;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 72px 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
  line-height: 1.25;
}

.section__subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 44px;
  max-width: 640px;
}

.section__header {
  margin-bottom: 48px;
}

.text-center { text-align: center; }
.text-center .section__subtitle { margin-left: auto; margin-right: auto; }

/* ── Кнопки ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  text-align: center;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-btn);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 119, 182, 0.38);
}

.btn--accent {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 2px 12px rgba(247, 127, 0, 0.28);
}
.btn--accent:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn--back {
  background: var(--color-bg-alt);
  color: var(--color-primary);
  border: 2px solid var(--color-border);
  font-size: 0.95rem;
  padding: 10px 24px;
}
.btn--back:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* ── HEADER / НАВИГАЦИЯ ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 60, 120, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo__main {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}

.logo__sub {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--color-text);
  transition: background var(--transition), color var(--transition);
}
.nav__link:hover,
.nav__link.active {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Бургер */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.burger__line {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.burger.open .burger__line:nth-child(1) { transform: translateY(8.75px) rotate(45deg); }
.burger.open .burger__line:nth-child(2) { opacity: 0; }
.burger.open .burger__line:nth-child(3) { transform: translateY(-8.75px) rotate(-45deg); }

/* Мобильное меню */
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 20px 24px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transform: translateY(-8px);
  opacity: 0;
  transition: transform var(--transition), opacity var(--transition);
}

.mobile-menu.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu .nav__link {
  padding: 12px 16px;
  font-size: 1rem;
  display: block;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #003d6b 0%, #0077b6 50%, #00b4d8 100%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 80%, rgba(0, 180, 216, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 60, 120, 0.4) 0%, transparent 50%);
}

.hero__waves {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  overflow: hidden;
}

.hero__waves svg {
  position: absolute;
  bottom: 0;
  width: 100%;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  padding: 120px 20px 160px;
  max-width: 860px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--color-white);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}

.hero__title {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero__title span {
  color: #ffd166;
}

.hero__description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  opacity: 0.92;
  margin-bottom: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero__stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__stat {
  text-align: center;
}

.hero__stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffd166;
  display: block;
  line-height: 1;
}

.hero__stat-label {
  font-size: 0.8rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── КАРТОЧКИ КУРОРТОВ ── */
.resorts-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.resorts-grid .resort-card {
  flex: 0 1 calc(33.333% - 19px);
  min-width: 260px;
}

.resort-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 60, 120, 0.06);
}

.resort-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

.resort-card__image {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, #0077b6, #00b4d8);
}

.resort-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.resort-card:hover .resort-card__img {
  transform: scale(1.06);
}

.resort-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  font-size: 3rem;
}

.resort-card__image-placeholder span {
  font-size: 0.9rem;
  margin-top: 8px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.resort-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.resort-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.resort-card__title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text);
}

.resort-card__desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}

.resort-card__meta {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.resort-card__meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.resort-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-primary);
  transition: background var(--transition), color var(--transition);
  align-self: flex-start;
}

.resort-card__link:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Различные цвета фона карточек без фото */
.resort-card__image--gagra    { background: linear-gradient(135deg, #0a4f8c, #1e9be0); }
.resort-card__image--pitsunda { background: linear-gradient(135deg, #006d44, #00a86b); }
.resort-card__image--sukhum   { background: linear-gradient(135deg, #7b2d8b, #c45bc4); }
.resort-card__image--aphon    { background: linear-gradient(135deg, #8b4513, #d4883c); }
.resort-card__image--gudauta  { background: linear-gradient(135deg, #1a5276, #2e86c1); }

/* ── ПОЧЕМУ АБХАЗИЯ ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.feature-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition), border-top-color var(--transition);
  border-top: 4px solid transparent;
  border: 1px solid rgba(0, 60, 120, 0.06);
  border-top: 4px solid transparent;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-top-color: var(--color-primary);
}

.feature-card__icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  display: block;
}

.feature-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card__text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ── ЦЕНЫ ── */
.prices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.price-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  box-shadow: var(--shadow-card);
  text-align: center;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 2px solid transparent;
}

.price-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.price-card--featured {
  border-color: var(--color-primary);
}

.price-card--featured::before {
  content: "Популярно";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: white;
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.price-card__type {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.price-card__amount {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 4px;
  line-height: 1;
}

.price-card__period {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.price-card__list {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-card__item {
  font-size: 0.9rem;
  color: var(--color-text);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.price-card__item::before {
  content: "✓";
  color: var(--color-primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── FAQ ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq-item:hover {
  box-shadow: 0 4px 20px rgba(0,60,120,0.08);
}

.faq-item.open {
  box-shadow: 0 6px 28px rgba(0,60,120,0.11);
  border-color: var(--color-primary);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  gap: 16px;
  transition: color var(--transition);
}

.faq-item.open .faq-question {
  color: var(--color-primary);
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--color-primary);
  font-weight: 700;
  transition: transform var(--transition), background var(--transition);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--color-primary);
  color: white;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding var(--transition);
  padding: 0 24px;
}

.faq-answer p {
  padding-bottom: 20px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 600px;
}

/* ── ПОЛЕЗНЫЕ ССЫЛКИ ── */
.useful-links-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}

.useful-link-card {
  display: flex;
  gap: 16px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 60, 120, 0.08);
  box-shadow: var(--shadow-card);
  padding: 24px;
  flex: 0 1 calc(50% - 12px);
  min-width: 280px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.useful-link-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.useful-link-card__icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.useful-link-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.useful-link-card__tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-accent);
  background: rgba(0, 119, 182, 0.08);
  border-radius: 20px;
  padding: 2px 10px;
  align-self: flex-start;
}

.useful-link-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
}

.useful-link-card__text {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
}

.useful-link-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  transition: gap var(--transition), color var(--transition);
  align-self: flex-start;
}

.useful-link-card__link:hover {
  color: var(--color-primary);
  gap: 8px;
}

/* ── SEO-ТЕКСТ ── */
.seo-text {
  max-width: 900px;
  margin: 0 auto;
}

.seo-text h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--color-text);
}

.seo-text h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.seo-text p {
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

.seo-text ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 14px;
}

.seo-text li {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 6px;
  line-height: 1.65;
}

/* ── FOOTER ── */
.site-footer {
  background: #0d1f35;
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand__logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
}

.footer-brand__desc {
  font-size: 0.87rem;
  line-height: 1.65;
  max-width: 240px;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social__link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background var(--transition), transform var(--transition);
}

.footer-social__link:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
}

.footer-col__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: white;
}

.footer-links a::before {
  content: "→";
  font-size: 0.75rem;
  color: var(--color-primary);
}

.footer-contacts p {
  font-size: 0.87rem;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

.footer-bottom a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: white;
}

/* ── СТРАНИЦЫ КУРОРТОВ ── */
.resort-hero {
  min-height: 65vh;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  padding-bottom: 64px;
}

.resort-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.resort-hero--gagra    .resort-hero__bg { background: linear-gradient(160deg, #0a3d6e 0%, #1565a0 40%, #1e90c8 100%); }
.resort-hero--pitsunda .resort-hero__bg { background: linear-gradient(160deg, #003d25 0%, #006d44 40%, #00a86b 100%); }
.resort-hero--sukhum   .resort-hero__bg { background: linear-gradient(160deg, #3d0a5a 0%, #7b2d8b 40%, #b84bc1 100%); }
.resort-hero--aphon    .resort-hero__bg { background: linear-gradient(160deg, #4a1a00 0%, #8b4513 40%, #c87137 100%); }
.resort-hero--gudauta  .resort-hero__bg { background: linear-gradient(160deg, #0a2d4a 0%, #1a5276 40%, #2e86c1 100%); }

.resort-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,10,25,0.75) 0%, rgba(0,10,25,0.2) 60%, transparent 100%);
}

.resort-hero__content {
  position: relative;
  z-index: 2;
  color: white;
  width: 100%;
}

.resort-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}

.resort-hero__breadcrumb a {
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}

.resort-hero__breadcrumb a:hover {
  color: white;
}

.resort-hero__breadcrumb span {
  color: rgba(255,255,255,0.4);
}

.resort-hero__title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.resort-hero__subtitle {
  font-size: 1.1rem;
  opacity: 0.88;
  max-width: 580px;
  line-height: 1.65;
}

.resort-hero__meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.resort-hero__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
}

/* Контент страницы курорта */
.resort-content {
  padding: 72px 0;
}

.resort-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.resort-main h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
  margin-top: 40px;
  color: var(--color-text);
}

.resort-main h2:first-child {
  margin-top: 0;
}

.resort-main h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
  margin-top: 24px;
}

.resort-main p {
  font-size: 0.97rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}

/* Галерея */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 32px 0;
}

.gallery__item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #0077b6, #00b4d8);
  transition: transform var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  font-size: 2rem;
}

.gallery__item:hover {
  transform: scale(1.03);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Плюсы/минусы */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}

.pros-list, .cons-list {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.pros-list {
  border-top: 4px solid #22c55e;
}

.cons-list {
  border-top: 4px solid #ef4444;
}

.pros-cons__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pros-cons__title--pros { color: #15803d; }
.pros-cons__title--cons { color: #b91c1c; }

.pros-cons__items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pros-cons__item {
  font-size: 0.88rem;
  color: var(--color-text);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.pros-cons__item--pro::before  { content: "✓"; color: #22c55e; font-weight: 700; flex-shrink: 0; }
.pros-cons__item--con::before  { content: "✗"; color: #ef4444; font-weight: 700; flex-shrink: 0; }

/* Сезонность */
.season-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.season-card {
  background: var(--color-white);
  border-radius: var(--radius-sm);
  padding: 16px 12px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,60,120,0.08);
  border-top: 3px solid transparent;
}

.season-card--best { border-top-color: #22c55e; }
.season-card--good { border-top-color: var(--color-accent); }
.season-card--off  { border-top-color: #94a3b8; }

.season-card__emoji { font-size: 1.6rem; margin-bottom: 6px; }
.season-card__name  { font-size: 0.8rem; font-weight: 700; margin-bottom: 4px; }
.season-card__label { font-size: 0.72rem; color: var(--color-text-muted); }

/* Сайдбар */
.resort-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 88px;
}

.sidebar-widget {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.sidebar-widget__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-bg-alt);
  color: var(--color-text);
}

.price-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.price-row__label {
  color: var(--color-text-muted);
}

.price-row__value {
  font-weight: 700;
  color: var(--color-primary);
}

.tips-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tip-item {
  font-size: 0.87rem;
  color: var(--color-text);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.tip-item__icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.other-resorts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.other-resort-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-size: 0.87rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

.other-resort-link:hover {
  background: var(--color-primary);
  color: white;
}

.other-resort-link__emoji {
  font-size: 1.1rem;
}

/* ── ЛАЙТБОКС ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: rgba(255,255,255,0.1);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox__close:hover { background: rgba(255,255,255,0.25); }

.lightbox__content {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  padding: 40px;
  color: rgba(255,255,255,0.5);
  min-width: 300px;
  min-height: 200px;
}

/* ── SCROLL ANIMATIONS ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* =============================================
   ПАРАЛЛАКС / HIGHLIGHT-СЕКЦИИ С ОВЕРЛЕЕМ
   ============================================= */

/* Базовый класс для любой секции с фоном */
.parallax-section {
  position: relative;
  overflow: hidden;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

/* Универсальный оверлей через ::before */
.parallax-section::before,
.highlight-block::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.parallax-section > *,
.highlight-block > * {
  position: relative;
  z-index: 2;
}

/* Варианты затемнения */
.overlay--dark::before   { background: var(--overlay-dark); }
.overlay--medium::before { background: var(--overlay-medium); }
.overlay--light::before  { background: var(--overlay-light); }

/* Градиентный оверлей (снизу темнее) */
.overlay--gradient::before {
  background: linear-gradient(
    to bottom,
    rgba(0, 15, 40, 0.35) 0%,
    rgba(0, 15, 40, 0.65) 100%
  );
}

/* Диагональный брендовый оверлей */
.overlay--brand::before {
  background: linear-gradient(
    135deg,
    rgba(0, 60, 120, 0.72) 0%,
    rgba(0, 119, 182, 0.52) 100%
  );
}

/* ── HIGHLIGHT BLOCK (блок с фоновым цветом/изображением) ── */
.highlight-block {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

/* Синий брендовый блок */
.highlight-block--primary {
  background: linear-gradient(135deg, #003d6b 0%, #0077b6 60%, #00b4d8 100%);
  color: var(--color-white);
}

/* Тёплый оранжевый блок */
.highlight-block--warm {
  background: linear-gradient(135deg, #7b2d00 0%, #c45000 50%, #f77f00 100%);
  color: var(--color-white);
}

/* Тёмный блок */
.highlight-block--dark {
  background: linear-gradient(135deg, #0d1f35 0%, #1a3a5c 100%);
  color: var(--color-white);
}

/* Тексты внутри highlight */
.highlight-block .section__title { color: var(--color-white); }
.highlight-block .section__subtitle { color: rgba(255,255,255,0.82); }

/* Декоративные кружки-блобы внутри highlight */
.highlight-block__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.highlight-block__blob--1 {
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.3);
  top: -120px; right: -80px;
}

.highlight-block__blob--2 {
  width: 300px; height: 300px;
  background: rgba(255,209,70,0.4);
  bottom: -80px; left: -60px;
}

/* ── СЕКЦИЯ "ПОЧЕМУ" С ПАРАЛЛАКС-ФОНОМ ── */
.section--parallax-why {
  background:
    linear-gradient(var(--overlay-dark), var(--overlay-dark)),
    linear-gradient(135deg, #003d6b 0%, #005f8e 40%, #0077b6 70%, #00b4d8 100%);
  background-attachment: fixed, fixed;
  background-size: cover, cover;
  background-position: center, center;
  color: var(--color-white);
}

.section--parallax-why .section__title     { color: var(--color-white); }
.section--parallax-why .section__subtitle  { color: rgba(255,255,255,0.80); }

/* Карточки «Почему» на тёмном фоне */
.section--parallax-why .feature-card {
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.18);
  border-top: 4px solid rgba(255,255,255,0.3);
  color: var(--color-white);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

.section--parallax-why .feature-card:hover {
  background: rgba(255,255,255,0.18);
  border-top-color: #ffd166;
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}

.section--parallax-why .feature-card__title { color: var(--color-white); }
.section--parallax-why .feature-card__text  { color: rgba(255,255,255,0.78); }

/* ── BANNER-CTA (призыв к действию) ── */
.section--cta-banner {
  background: linear-gradient(135deg, #f77f00 0%, #e06000 50%, #c04500 100%);
  color: white;
  padding: 72px 0;
  text-align: center;
}

.section--cta-banner .section__title    { color: white; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.section--cta-banner .section__subtitle { color: rgba(255,255,255,0.88); margin-bottom: 32px; }

.cta-banner__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn--white {
  background: white;
  color: var(--color-accent);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.btn--white:hover {
  background: #fff8f0;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}

.btn--outline-white {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.7);
  font-weight: 600;
}

.btn--outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
  transform: translateY(-2px);
}

/* ── АДАПТИВНОСТЬ ── */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .resort-layout {
    grid-template-columns: 1fr;
  }

  .resort-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .resorts-grid .resort-card {
    flex: 0 1 calc(50% - 14px);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .prices-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .parallax-section {
    background-attachment: scroll;
  }

  .section--parallax-why {
    background-attachment: scroll, scroll;
  }
}

@media (max-width: 768px) {
  .section { padding: 52px 0; }

  .nav { display: none; }
  .header-cta .btn { display: none; }
  .burger { display: flex; }

  .hero__content { padding: 100px 20px 130px; }
  .hero__stats { gap: 24px; }

  .resorts-grid {
    max-width: 480px;
  }

  .resorts-grid .resort-card {
    flex: 0 1 100%;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .prices-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .pros-cons {
    grid-template-columns: 1fr;
  }

  .season-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .highlight-block { padding: 56px 0; }
  .section--cta-banner { padding: 52px 0; }

  .useful-link-card {
    flex: 0 1 100%;
  }
}

@media (max-width: 480px) {
  .section { padding: 44px 0; }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .resort-hero__meta {
    gap: 8px;
  }

  .resort-hero__meta-item {
    font-size: 0.78rem;
    padding: 5px 10px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .season-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-banner__actions {
    flex-direction: column;
    align-items: center;
  }

  .resort-card__image { height: 200px; }

  .hero__stat-number { font-size: 1.5rem; }
  .hero__stat-label  { font-size: 0.72rem; }
}
