/* ===========================
   RESET & BASE
   =========================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #2c2c2c;
  background-color: #fafaf8;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ===========================
   CONTAINER
   =========================== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background-color: #2a6f5a;
  color: #fff;
  border-color: #2a6f5a;
}

.btn--primary:hover {
  background-color: #1f5544;
  border-color: #1f5544;
}

.btn--outline {
  background-color: transparent;
  color: #fff;
  border-color: #fff;
}

.btn--outline:hover {
  background-color: #fff;
  color: #2a6f5a;
}

.btn--small {
  padding: 8px 20px;
  font-size: 0.875rem;
  background-color: #2a6f5a;
  color: #fff;
  border-color: #2a6f5a;
}

.btn--small:hover {
  background-color: #1f5544;
}

.btn--full {
  width: 100%;
}

/* ===========================
   SECTION COMMON
   =========================== */
.section {
  padding: 80px 0;
}

.section__title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 10px;
  color: #1a1a1a;
}

.section__subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 50px;
  font-size: 1.1rem;
}

/* ===========================
   HEADER
   =========================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #2a6f5a;
}

.logo__icon {
  font-size: 1.5rem;
}

/* Navigation */
.nav__list {
  display: flex;
  gap: 30px;
}

.nav__link {
  font-weight: 500;
  color: #444;
  transition: color 0.3s;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #2a6f5a;
  transition: width 0.3s;
}

.nav__link:hover {
  color: #2a6f5a;
}

.nav__link:hover::after {
  width: 100%;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.burger span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: #2c2c2c;
  border-radius: 3px;
  transition: transform 0.3s, opacity 0.3s;
}

.burger--active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger--active span:nth-child(2) {
  opacity: 0;
}

.burger--active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===========================
   HERO
   =========================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #1a3c34 0%, #2a6f5a 50%, #3d8b70 100%);
  padding: 120px 20px 80px;
}

.hero__title {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 800;
}

.hero__subtitle {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 40px;
  opacity: 0.9;
  line-height: 1.7;
}

.hero .btn + .btn {
  margin-left: 15px;
}

/* ===========================
   ABOUT
   =========================== */
.about__grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 50px;
  align-items: center;
}

.about__photo-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background-color: #d6e5de;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6a9b87;
  font-size: 1.2rem;
  font-weight: 600;
}

.about__text p {
  margin-bottom: 16px;
  color: #444;
}

.about__facts {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.about__facts li {
  background: #f0f7f4;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
}

/* ===========================
   TOURS
   =========================== */
.tours {
  background-color: #f4f1ec;
}

.tours__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 30px;
}

.tour-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.tour-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.tour-card__img {
  height: 200px;
  position: relative;
}

.tour-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #e85d4a;
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.tour-card__body {
  padding: 24px;
}

.tour-card__title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #1a1a1a;
}

.tour-card__desc {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 16px;
  line-height: 1.5;
}

.tour-card__meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tour-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tour-card__price {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2a6f5a;
}

/* ===========================
   REVIEWS
   =========================== */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.review-card {
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border-left: 4px solid #2a6f5a;
}

.review-card__text {
  font-style: italic;
  color: #444;
  margin-bottom: 20px;
  line-height: 1.7;
}

.review-card__author {
  font-size: 0.9rem;
  color: #888;
}

.review-card__author strong {
  color: #2c2c2c;
}

/* ===========================
   GALLERY
   =========================== */
.gallery {
  background-color: #f4f1ec;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery__item {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  transition: transform 0.3s;
}

.gallery__item:hover {
  transform: scale(1.03);
}

/* ===========================
   CONTACT
   =========================== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact__form {
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
  background: #fafaf8;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2a6f5a;
}

.form-group textarea {
  resize: vertical;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 20px;
}

.contact__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact__icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.contact__item a {
  color: #2a6f5a;
  font-weight: 500;
}

.contact__item a:hover {
  text-decoration: underline;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background-color: #1a1a1a;
  color: #aaa;
  padding: 30px 0;
  text-align: center;
  font-size: 0.9rem;
}

.footer__note {
  margin-top: 6px;
  font-size: 0.8rem;
  color: #666;
}

/* ===========================
   MEDIA QUERIES
   =========================== */

/* Планшеты */
@media (max-width: 992px) {
  .about__grid {
    grid-template-columns: 250px 1fr;
    gap: 30px;
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }

  .hero__title {
    font-size: 2.4rem;
  }
}

/* Мобильные устройства */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .section__title {
    font-size: 1.6rem;
  }

  /* Header mobile */
  .burger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    padding: 90px 30px 30px;
    z-index: 999;
  }

  .nav--open {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    gap: 20px;
  }

  .nav__link {
    font-size: 1.1rem;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 130px 20px 80px;
  }

  .hero__title {
    font-size: 1.8rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .hero .btn + .btn {
    margin-left: 0;
    margin-top: 12px;
  }

  .hero .btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  /* About */
  .about__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about__photo-placeholder {
    max-width: 250px;
    margin: 0 auto;
  }

  .about__facts {
    grid-template-columns: 1fr;
  }

  /* Tours */
  .tours__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  /* Reviews */
  .reviews__grid {
    grid-template-columns: 1fr;
  }

  /* Gallery */
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contact */
  .contact__form {
    padding: 24px;
  }
}

/* Маленькие мобильные */
@media (max-width: 400px) {
  .container {
    padding: 0 14px;
  }

  .hero__title {
    font-size: 1.5rem;
  }

  .tour-card__meta {
    flex-direction: column;
    gap: 6px;
  }

  .gallery__grid {
    grid-template-columns: 1fr;
  }
}