/**
 * «Я в путешествии» — Horizons visual language (Phase 5B)
 * Adapted from Horizons/index.html; source folder unchanged.
 */

* { margin: 0; padding: 0; box-sizing: border-box; }

body.travel-page {
  --bg-cream: #FEFCF8;
  --bg-warm-white: #FAF9F6;
  --text-dark: #1a1a1a;
  --text-secondary: #4a4a4a;
  --accent-graphite: #2C3E50;
  --accent-navy: #1a365d;
  --accent-emerald: #0F766E;
  --border-light: #E5E7EB;
  --sea-deep: #0c1929;
  --sea-mid: #0f3460;
  --sea-rich: #1a365d;
  --sea-bottom: #16213e;
  --sky-top: #FF6B35;
  --sky-middle: #FF8C42;
  --sky-bottom: #FFB347;
  --cloud-color: rgba(255, 200, 150, 0.8);

  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--sea-deep);
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.travel-page .site-header {
  position: fixed;
  z-index: 200;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.travel-page .site-nav-mobile {
  z-index: 210;
}

body.travel-page .site-footer {
  position: relative;
  z-index: 100;
  background: var(--bg-cream);
}

.horizon-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.sky {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 62%;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    var(--sky-top) 0%,
    var(--sky-middle) 42%,
    var(--sky-bottom) 78%,
    var(--sea-mid) 100%
  );
}

.cloud {
  position: absolute;
  background: var(--cloud-color);
  border-radius: 100px;
  opacity: 0.85;
  filter: blur(0.5px);
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

.cloud::before,
.cloud::after {
  content: '';
  position: absolute;
  background: var(--cloud-color);
  border-radius: 100px;
  filter: blur(0.5px);
}

.cloud1 { width: 150px; height: 50px; top: 10%; left: -180px; animation: travel-drift 28s infinite linear; }
.cloud1::before { width: 70px; height: 70px; top: -35px; left: 15px; }
.cloud1::after { width: 80px; height: 80px; top: -40px; right: 15px; }
.cloud2 { width: 130px; height: 45px; top: 20%; left: -150px; animation: travel-drift 32s infinite linear; animation-delay: -8s; }
.cloud2::before { width: 60px; height: 60px; top: -30px; left: 12px; }
.cloud2::after { width: 70px; height: 70px; top: -35px; right: 12px; }
.cloud3 { width: 110px; height: 40px; top: 30%; left: -130px; animation: travel-drift 36s infinite linear; animation-delay: -15s; }
.cloud3::before { width: 50px; height: 50px; top: -25px; left: 10px; }
.cloud3::after { width: 60px; height: 60px; top: -30px; right: 10px; }
.cloud4 { width: 160px; height: 55px; top: 15%; left: -200px; animation: travel-drift 30s infinite linear; animation-delay: -5s; }
.cloud4::before { width: 75px; height: 75px; top: -38px; left: 20px; }
.cloud4::after { width: 85px; height: 85px; top: -42px; right: 20px; }
.cloud5 { width: 140px; height: 48px; top: 25%; left: -170px; animation: travel-drift 34s infinite linear; animation-delay: -12s; }
.cloud5::before { width: 65px; height: 65px; top: -32px; left: 14px; }
.cloud5::after { width: 75px; height: 75px; top: -37px; right: 14px; }
.cloud6 { width: 100px; height: 35px; top: 35%; left: -120px; animation: travel-drift 38s infinite linear; animation-delay: -20s; }
.cloud6::before { width: 45px; height: 45px; top: -22px; left: 8px; }
.cloud6::after { width: 55px; height: 55px; top: -27px; right: 8px; }
.cloud7 { width: 170px; height: 60px; top: 12%; left: -210px; animation: travel-drift 26s infinite linear; animation-delay: -3s; }
.cloud7::before { width: 80px; height: 80px; top: -40px; left: 25px; }
.cloud7::after { width: 90px; height: 90px; top: -45px; right: 25px; }
.cloud8 { width: 125px; height: 42px; top: 22%; left: -155px; animation: travel-drift 33s infinite linear; animation-delay: -10s; }
.cloud8::before { width: 58px; height: 58px; top: -29px; left: 11px; }
.cloud8::after { width: 68px; height: 68px; top: -34px; right: 11px; }
.cloud9 { width: 95px; height: 32px; top: 32%; left: -115px; animation: travel-drift 40s infinite linear; animation-delay: -18s; }
.cloud9::before { width: 42px; height: 42px; top: -21px; left: 7px; }
.cloud9::after { width: 52px; height: 52px; top: -26px; right: 7px; }

@keyframes travel-drift {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(100vw + 250px)); }
}

.plane {
  position: absolute;
  top: 40%;
  left: -300px;
  width: 240px;
  height: 240px;
  z-index: 10;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  animation: travel-fly 20s linear infinite;
  animation-delay: -8s;
}

.plane path { fill: rgba(255, 220, 180, 0.95); }

@keyframes travel-fly {
  0% { left: -100px; transform: translateY(0); }
  25% { transform: translateY(-8px); }
  50% { transform: translateY(-10px); }
  75% { transform: translateY(-6px); }
  100% { left: 110%; transform: translateY(0); }
}

.field {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 38%;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    var(--sea-mid) 0%,
    var(--sea-deep) 35%,
    var(--sea-rich) 70%,
    var(--sea-bottom) 100%
  );
}

.travel-page .content-overlay {
  position: relative;
  z-index: 50;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  padding-top: calc(var(--header-height, 4.25rem) + 2rem);
  padding-bottom: 1px;
  margin: 0 0 -1px 0;
}

.travel-page .hero-content {
  text-align: center;
  max-width: 800px;
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border-radius: 8px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.travel-page .hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.travel-page .hero-content .subtitle {
  display: block;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.travel-page .hero-content .lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 2rem;
  line-height: 1.8;
  max-width: 36rem;
  margin-inline: auto;
}

.travel-page .btn-primary {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--accent-navy);
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 2px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.travel-page .btn-primary:hover {
  background-color: var(--accent-graphite);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: white;
}

.travel-page .main-content {
  position: relative;
  z-index: 50;
  background: linear-gradient(180deg, var(--sea-deep) 0%, var(--sea-mid) 30%, var(--sea-rich) 60%, var(--sea-bottom) 100%);
  overflow: hidden;
}

.travel-page .main-content::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 400' preserveAspectRatio='none'%3E%3Cpath fill='none' stroke='rgba(255,255,255,0.35)' stroke-width='1.5' d='M0,200 Q300,120 600,200 T1200,200'/%3E%3Cpath fill='none' stroke='rgba(255,255,255,0.25)' stroke-width='1' d='M0,240 Q300,160 600,240 T1200,240'/%3E%3Cpath fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='1.2' d='M0,280 Q300,200 600,280 T1200,280'/%3E%3Cpath fill='none' stroke='rgba(255,255,255,0.2)' stroke-width='0.8' d='M0,320 Q300,260 600,320 T1200,320'/%3E%3C/svg%3E");
  background-size: 1200px 400px;
  background-repeat: repeat;
  animation: travel-wave-move 18s linear infinite;
}

.travel-page .main-content::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 120' preserveAspectRatio='none'%3E%3Cpath fill='rgba(255,255,255,0.06)' d='M0,80 Q100,40 200,80 T400,80 T600,80 T800,80 L800,120 L0,120 Z'/%3E%3Cpath fill='none' stroke='rgba(255,255,255,0.12)' stroke-width='2' d='M0,85 Q200,50 400,85 T800,85'/%3E%3C/svg%3E");
  background-size: 800px 120px;
  background-repeat: repeat;
  animation: travel-foam-move 12s ease-in-out infinite;
}

@keyframes travel-wave-move {
  0% { background-position: 0 0; }
  100% { background-position: 1200px 0; }
}

@keyframes travel-foam-move {
  0%, 100% { opacity: 0.9; background-position: 0 0; }
  50% { opacity: 1; background-position: 400px 0; }
}

.travel-page .main-content .container,
.travel-page .main-content section { position: relative; z-index: 1; }

.travel-page .main-content .section-title { color: #f0f4f8; }
.travel-page .main-content .section-subtitle { color: rgba(255, 255, 255, 0.85); }
.travel-page .main-content .section-divider { background: rgba(255, 255, 255, 0.4); opacity: 1; }

.travel-page .container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; text-align: left; }

.travel-page section {
  padding: 8rem 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.travel-page section.visible { opacity: 1; transform: translateY(0); }

.travel-page .section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 500;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.travel-page .section-subtitle {
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  font-weight: 400;
  margin-bottom: 3rem;
  line-height: 1.7;
}

.travel-page .section-divider {
  width: 80px;
  height: 1px;
  opacity: 0.3;
  margin: 1rem 0 2rem 0;
}

.travel-page .horizon-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.15) 20%, rgba(255, 255, 255, 0.15) 80%, transparent 100%);
}

.travel-page .steps-section { padding: 8rem 0; }

.travel-page .step-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  padding: 2.5rem 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  max-width: 900px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s ease;
}

.travel-page .step-card + .step-card { margin-top: 1rem; }

.travel-page .step-card.visible { opacity: 1; transform: translateY(0); }
.travel-page .step-card:hover { background: rgba(255, 255, 255, 0.85); }

.travel-page .step-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 200px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: travel-horizon-light 12s infinite ease-in-out;
  pointer-events: none;
}

.travel-page .step-card:nth-child(3)::after { animation-delay: 0s; }
.travel-page .step-card:nth-child(4)::after { animation-delay: 4s; }
.travel-page .step-card:nth-child(5)::after { animation-delay: 8s; }

@keyframes travel-horizon-light {
  0% { left: -200px; opacity: 0; }
  15%, 85% { opacity: 1; }
  100% { left: calc(100% + 200px); opacity: 0; }
}

.travel-page .step-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
  color: #1E2A38;
  margin-bottom: 0.75rem;
}

.travel-page .step-card p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.8; }

.travel-page .route-announce {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.travel-page .route-skills {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  padding-left: 1rem;
  border-left: 3px solid var(--accent-emerald);
  margin-bottom: 0;
}

.travel-page .route-announce-note {
  margin-top: 1.25rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  font-style: italic;
}

.travel-page .program-card {
  background-color: rgba(255, 255, 255, 0.6);
  padding: 3rem 2.5rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 2px;
  max-width: 800px;
  margin: 0 auto;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}

.travel-page .program-card--announce:hover {
  transform: none;
  box-shadow: none;
}

.travel-page .program-card:not(.program-card--announce):hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.8);
}

.travel-page .program-card--shell {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.25);
  background-color: rgba(255, 255, 255, 0.45);
}

.travel-page .teacher-card {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem;
  background-color: white;
  border: 1px solid var(--border-light);
  border-radius: 2px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.travel-page .teacher-card__photo {
  width: 220px;
  height: 220px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  background: var(--bg-warm-white);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.travel-page .teacher-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}

.travel-page .teacher-card__name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.travel-page .teacher-card__role {
  font-size: 0.9rem;
  color: var(--accent-emerald);
  margin-bottom: 1rem;
}

.travel-page .teacher-card__text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.travel-page .teacher-card__text + .teacher-card__text { margin-top: 0.75rem; }

.travel-page .cta-section { text-align: center; padding-bottom: 6rem; }
.travel-page .cta-section p { color: rgba(255, 255, 255, 0.85); margin-bottom: 2rem; font-size: 1.1rem; }

@media (max-width: 768px) {
  .travel-page .hero-content { padding: 2rem 1.5rem; }
  .travel-page .sky { height: 58%; }
  .travel-page .field { height: 42%; }
  .travel-page .teacher-card { flex-direction: column; text-align: center; }
  .travel-page .teacher-card__photo {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }
}
