:root {
  --pri: #F5FBFF;
  --sec: #64B5D9;
  --acc: #1E90C0;
  --dark: #0D4F6E;
  --textDark: #062030;
  --textMid: #0D4F6E;
  --textLight: #2A7A9E;
  --white: #FFFFFF;
  --gradient: linear-gradient(150deg, var(--sec) 0%, var(--acc) 60%, var(--sec) 100%);
  --shadow: 0 20px 60px rgba(0,0,0,0.1);
  --font-head: 'Libre Baskerville', serif;
  --font-body: 'Source Sans Pro', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--textDark);
  background-color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--dark);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  color: var(--white);
}

/* Заголовки в контентных секциях (светлый фон) — тёмные (не белые) */
.har-section--content h1,
.har-section--content h2,
.har-section--content h3,
.har-section--content h4 {
  color: var(--dark);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Utilities */
.har-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.har-btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--gradient);
  color: var(--white);
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.har-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(30, 144, 192, 0.3);
}

.har-btn--outline {
  background: transparent;
  border: 2px solid var(--acc);
  color: var(--acc);
}

.har-btn--outline:hover {
  background: var(--acc);
  color: var(--white);
}

.har-section {
  padding: clamp(60px, 8vw, 100px) 0;
  position: relative;
}

.har-section--alt {
  background-color: var(--pri);
}

.har-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.har-wave svg {
  position: relative;
  display: block;
  width: calc(138% + 1.3px);
  height: 60px;
}

.har-wave path {
  fill: var(--white);
}

.har-section--alt .har-wave path {
  fill: var(--pri);
}

/* Header */
.har-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.3s ease;
}

.har-header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  padding: 15px 0;
}

.har-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.har-logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.har-menu {
  display: flex;
  gap: 30px;
}

.har-menu__link {
  font-weight: 600;
  color: var(--dark);
  position: relative;
}

.har-menu__link:hover,
.har-menu__link.active {
  color: var(--acc);
}

.har-dropdown {
  position: relative;
}

.har-dropdown__content {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 200px;
  box-shadow: var(--shadow);
  border-radius: 8px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.har-dropdown:hover .har-dropdown__content,
.har-dropdown:focus-within .har-dropdown__content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.har-dropdown__item {
  display: block;
  padding: 10px 20px;
  color: var(--textMid);
}

.har-dropdown__item:hover {
  background: var(--pri);
  color: var(--acc);
}

.har-hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1002;
}

.har-hamburger span {
  width: 30px;
  height: 3px;
  background: var(--dark);
  transition: 0.3s;
}

/* Mobile Menu */
@media (max-width: 1024px) {
  .har-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.4s ease;
    z-index: 1001;
  }

  .har-menu.open {
    right: 0;
  }

  .har-hamburger {
    display: flex;
  }

  /* Крестик при открытом меню */
  body.har-menu-open .har-hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  body.har-menu-open .har-hamburger span:nth-child(2) {
    opacity: 0;
  }
  body.har-menu-open .har-hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
}

/* Hero */
.har-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.har-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  z-index: -2;
}

.har-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 32, 48, 0.4);
  z-index: -1;
}

.har-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.har-hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.har-hero__title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.har-hero__subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  margin-bottom: 40px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* Cards */
.har-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.har-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.har-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .har-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .har-grid--2 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .har-grid--4 { grid-template-columns: 1fr; }
}

.har-card {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.har-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.15);
}

.har-card__img {
  height: 250px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.har-card:hover .har-card__img {
  transform: scale(1.05);
}

.har-card__body {
  padding: 30px;
}

.har-card__title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.har-card__text {
  color: var(--textMid);
  font-size: 1rem;
  margin-bottom: 20px;
}

/* Destinations */
.har-dest-card {
  position: relative;
  height: 400px;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.har-dest-card:hover {
  transform: scale(1.03);
}

.har-dest-card__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.har-dest-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
}

.har-dest-card__title {
  color: var(--white);
  font-size: 1.8rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Features */
.har-feature {
  text-align: center;
  padding: 40px 20px;
}

.har-feature__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}

/* Reviews */
.har-review {
  text-align: left;
  background: var(--white);
  padding: 30px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.har-review__header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.har-review__avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.har-review__stars {
  color: #FFD700;
}

/* Forms */
.har-form {
  background: var(--white);
  padding: 40px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.har-form__group {
  margin-bottom: 20px;
}

.har-form__label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark);
}

.har-form__input,
.har-form__select,
.har-form__textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}

.har-form__textarea {
  height: 120px;
  resize: vertical;
}

/* Footer */
.har-footer {
  background: var(--pri);
  padding: 60px 0 20px;
  border-top: 1px solid #eee;
}

.har-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.har-footer__col h4 {
  margin-bottom: 20px;
  color: var(--dark);
}

.har-footer__link {
  display: block;
  margin-bottom: 10px;
  color: var(--textMid);
}

.har-footer__link:hover {
  color: var(--acc);
}

.har-footer__bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  color: var(--textLight);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .har-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* Popups */
.har-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.har-popup.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.har-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.har-popup__box {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 48px 40px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  animation: popIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 24px 80px rgba(0,0,0,0.2);
}

.har-popup__icon {
  font-size: 56px;
  margin-bottom: 16px;
}

.har-popup__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.har-popup__msg {
  font-size: 1rem;
  color: var(--textMid);
  line-height: 1.6;
  margin-bottom: 24px;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.8) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Animation Classes */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.har-cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 9998;
  width: 90%;
  max-width: 600px;
}

@media (max-width: 600px) {
  .har-cookie-banner { flex-direction: column; text-align: center; }
}
