/* ===== ОБЩИЕ СТИЛИ ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  background: linear-gradient(145deg, #1a0f0a 0%, #9a5d70 100%);
  color: #f0e6d2;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Японский волновой фон */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(
      circle at 20% 30%,
      rgba(255, 215, 0, 0.03) 0%,
      transparent 20%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(180, 60, 40, 0.03) 0%,
      transparent 25%
    ),
    repeating-linear-gradient(
      45deg,
      rgba(200, 160, 120, 0.02) 0px,
      rgba(200, 160, 120, 0.02) 2px,
      transparent 2px,
      transparent 6px
    );
  pointer-events: none;
  z-index: -1;
}

/* ===== ШАПКА ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background: rgba(20, 12, 8, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid #c79a6e;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo h1 {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 3px;
  color: #f5e6d3;
  text-shadow: 2px 2px 4px #00000050;
}

.logo span {
  color: #e6b422;
  font-weight: 700;
  margin-left: 5px;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav a {
  color: #f0d5b0;
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.5rem 0;
  position: relative;
  transition: 0.3s;
  font-weight: 400;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #e6b422;
  transition: 0.3s;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

nav a.active {
  color: #ffd966;
  text-shadow: 0 0 8px #ffb347;
}

/* ===== ГЛАВНАЯ: 3D-ГЕРОЙ ===== */
.hero-3d {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 5%;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 30px;
  margin: 2rem 5%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  transform: perspective(1200px) rotateX(2deg);
  backdrop-filter: blur(5px);
  border: 1px solid #c79a6e30;
}

.hero-content h2 {
  font-size: 3.2rem;
  line-height: 1.2;
  color: #ffecb3;
  text-shadow:
    4px 4px 10px #b33c2c,
    0 0 20px #ffaa33;
  animation: glow 3s infinite alternate;
}

@keyframes glow {
  from {
    text-shadow:
      0 0 10px #e6b422,
      0 0 20px #b33c2c;
  }
  to {
    text-shadow:
      0 0 20px #ffd966,
      0 0 40px #ff8c42;
  }
}

.hero-content p {
  font-size: 1.3rem;
  margin: 1.5rem 0;
  color: #e0cbb8;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(45deg, #b2452a, #a8321c);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.2rem;
  box-shadow: 0 5px 20px #b33c2c;
  transition: 0.3s;
  border: 1px solid #ffb347;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px #ff8c42;
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 #b33c2c;
  }
  70% {
    box-shadow: 0 0 0 15px #b33c2c00;
  }
  100% {
    box-shadow: 0 0 0 0 #b33c2c00;
  }
}

.hero-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.7);
  transform: perspective(800px) rotateY(-5deg) rotateX(2deg);
  transition: 0.5s;
  border: 2px solid #c79a6e;
}

.hero-image img:hover {
  transform: perspective(800px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

/* ===== 3D-КАРТОЧКИ (grid) ===== */
.dream-cards {
  padding: 3rem 5%;
  text-align: center;
}

.dream-cards h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #f5d7b3;
  position: relative;
}

.dream-cards h2::after {
  content: "🌸";
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.2rem;
  filter: drop-shadow(0 5px 5px #b33c2c);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  perspective: 1200px;
}

.card-3d {
  background: transparent;
  width: 100%;
  height: 350px;
  cursor: pointer;
  transition: 0.3s;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

.card-3d:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid #b87333;
}

.card-front {
  background: #2e1b12;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
}

.card-front img {
  width: 100%;
  height: 70%;
  object-fit: cover;
}

.card-front h3 {
  padding: 1rem;
  background: linear-gradient(transparent, #000000aa);
  margin: 0;
  font-size: 1.8rem;
}

.card-back {
  background: #1f2a36;
  color: #f0e6d2;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  font-size: 1.2rem;
  background-image: radial-gradient(circle at 30% 30%, #ffd96620, #1f2a36);
}

/* ===== НОВАЯ СЕКЦИЯ: ИНТЕРЕСНЫЕ ФАКТЫ ===== */
.facts-section {
  padding: 4rem 5%;
  text-align: center;
}

.facts-section h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #ffd699;
  text-shadow: 0 0 15px #b33c2c;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.fact-card {
  background: rgba(40, 25, 20, 0.7);
  backdrop-filter: blur(5px);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid #c79a6e;
  position: relative;
  overflow: hidden;
  transition: 0.3s;
}

.fact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px #b33c2c80;
}

.fact-number {
  font-size: 4rem;
  font-weight: bold;
  color: #c79a6e20;
  position: absolute;
  top: -10px;
  right: 10px;
  z-index: 0;
}

.fact-card h3 {
  color: #ffd966;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  position: relative;
  z-index: 1;
}

.fact-card p {
  position: relative;
  z-index: 1;
  color: #ecd9c2;
}

/* ===== СЕКЦИЯ СЕЗОНОВ ===== */
.seasons-section {
  padding: 3rem 5%;
  text-align: center;
}

.seasons-section h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #ffd699;
}

.seasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.season-card {
  padding: 2rem;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid #c79a6e;
  transition: 0.3s;
  backdrop-filter: blur(5px);
}

.season-card:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px #b33c2c80;
}

.spring {
  background: rgba(255, 188, 217, 0.1);
}
.summer {
  background: rgba(255, 215, 0, 0.1);
}
.autumn {
  background: rgba(255, 140, 0, 0.1);
}
.winter {
  background: rgba(173, 216, 230, 0.1);
}

.season-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #ffd966;
}

.season-icon {
  font-size: 3rem;
  margin-top: 1rem;
  animation: float 3s infinite;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

/* ===== СТРАНИЦА МАРШРУТА ===== */
.dream-itinerary {
  padding: 3rem 5%;
}

.section-title {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 3rem;
  color: #ffd699;
  text-shadow: 0 0 15px #b33c2c;
}

.route-map {
  display: grid;
  gap: 2rem;
  margin-bottom: 4rem;
}

.route-item {
  background: rgba(40, 25, 20, 0.7);
  backdrop-filter: blur(5px);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #b87333;
  transition: 0.3s;
}

.route-item:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 25px #b33c2c80;
}

.route-day {
  background: #b2452a;
  color: #ffecb3;
  font-size: 1.5rem;
  padding: 0.8rem;
  font-weight: bold;
  text-align: center;
  border-bottom: 2px solid #e6b422;
}

.route-content {
  padding: 2rem;
}

.route-content h3 {
  color: #ffd966;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.route-details {
  display: grid;
  grid-template-columns: 800px 1fr;
  gap: 2rem;
  align-items: start;
}

.route-details img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 15px;
  border: 2px solid #c79a6e;
  transition: 0.3s;
}

.route-details img:hover {
  transform: scale(1.02);
}

.route-text p {
  margin-bottom: 0.8rem;
  color: #ecd9c2;
}

.route-text strong {
  color: #ffd966;
}

/* ===== БЛОК СОВЕТОВ ===== */
.travel-tips {
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 30px;
  border: 2px solid #c79a6e;
}

.travel-tips h3 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #ffd966;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.tip {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  transition: 0.3s;
}

.tip:hover {
  background: rgba(180, 60, 40, 0.2);
}

.tip-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.tip h4 {
  color: #ffd966;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

/* ===== ГАЛЕРЕЯ (CSS GRID) ===== */
.gallery {
  padding: 2rem 5%;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-auto-rows: 250px;
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 20px;
  border: 2px solid #c79a6e;
  box-shadow: 0 10px 20px #00000080;
  transition: 0.5s;
  position: relative;
}

.gallery-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #ffd96630, #b33c2c30);
  opacity: 0;
  transition: 0.3s;
  z-index: 1;
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.1) rotate(1deg);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, #000000cc);
  color: white;
  padding: 1rem;
  transform: translateY(100%);
  transition: 0.3s;
  z-index: 2;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* ===== СТРАНИЦА КОНТАКТОВ ===== */
.contact-section {
  padding: 3rem 5%;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background: rgba(30, 20, 15, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 40px;
  padding: 3rem;
  border: 2px solid #c79a6e;
  box-shadow: 0 20px 40px #00000080;
}

.contact-title {
  font-size: 2.5rem;
  color: #ffd966;
  margin-bottom: 1rem;
}

.contact-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #ecd9c2;
}

.contact-reasons {
  list-style: none;
  margin-bottom: 2rem;
}

.contact-reasons li {
  padding: 0.8rem 0;
  padding-left: 2rem;
  position: relative;
  font-size: 1.1rem;
  color: #f0d5b0;
}

.contact-reasons li::before {
  content: "⛩️";
  position: absolute;
  left: 0;
  font-size: 1.2rem;
}

.contact-details {
  display: grid;
  gap: 1.5rem;
}

.contact-method {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  transition: 0.3s;
}

.contact-method:hover {
  background: rgba(180, 60, 40, 0.2);
  transform: translateX(5px);
}

.method-icon {
  font-size: 2rem;
  min-width: 50px;
  text-align: center;
}

.contact-method h4 {
  color: #ffd966;
  margin-bottom: 0.3rem;
}

/* ===== ФОРМА ОБРАТНОЙ СВЯЗИ ===== */
.contact-form-container {
  background: rgba(20, 12, 8, 0.7);
  border-radius: 30px;
  padding: 2rem;
  border: 1px solid #e6b422;
}

.form-title {
  font-size: 2rem;
  color: #ffd966;
  margin-bottom: 2rem;
  text-align: center;
}

.contact-form {
  display: grid;
  gap: 1.5rem;
}

.form-group {
  display: grid;
  gap: 0.5rem;
}

.form-group label {
  color: #ffd699;
  font-weight: 500;
  font-size: 1.1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #c79a6e;
  border-radius: 15px;
  color: #979461;
  font-size: 1rem;
  transition: 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ffd966;
  box-shadow: 0 0 15px #ffb347;
  background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #a28b78;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox input {
  width: 20px;
  height: 20px;
}

.submit-btn {
  background: linear-gradient(45deg, #b2452a, #a8321c);
  color: white;
  border: none;
  padding: 1.2rem;
  font-size: 1.3rem;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.3s;
  border: 2px solid #ffb347;
  margin-top: 1rem;
}

.submit-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 0 25px #ff8c42;
}

/* ===== ДЕКОРАТИВНАЯ ВОЛНА ===== */
.wave {
  height: 100px;
  background: repeating-linear-gradient(
    -45deg,
    #c79a6e20 0px,
    #c79a6e20 10px,
    transparent 10px,
    transparent 20px
  );
  margin-top: 3rem;
}

/* ===== ФУТЕР ===== */
footer {
  text-align: center;
  padding: 2rem;
  background: #1f120c;
  border-top: 2px solid #c79a6e;
  margin-top: auto;
  color: #bdaa95;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 900px) {
  .hero-3d {
    grid-template-columns: 1fr;
    transform: none;
  }

  .hero-content h2 {
    font-size: 2.5rem;
  }

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

  .route-details {
    grid-template-columns: 1fr;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

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

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

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

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

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

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