:root {
  --bg: #f6efe9;
  --surface: rgba(255, 248, 243, 0.86);
  --text: #34251f;
  --muted: #7a5f52;
  --accent: #b65a3a;
  --accent-dark: #8f4028;
  --line: rgba(52, 37, 31, 0.12);
  --shadow: 0 20px 60px rgba(85, 42, 26, 0.14);
  --radius: 24px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(181, 131, 109, 0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(214, 177, 147, 0.22), transparent 28%),
    var(--bg);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(251, 247, 242, 0.72);
  border-bottom: 1px solid rgba(47, 42, 38, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 18px;
}

.brand {
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 14px;
  color: var(--muted);
}

.hero {
  padding: 72px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: stretch;
}

.hero-main {
  position: relative;
  overflow: hidden;
}

.hero-main::before {
  content: "";
  position: absolute;
  inset: 0;

 background:
  linear-gradient(
      90deg,
      rgba(246, 239, 233, 1) 0%,
      rgba(246, 239, 233, 1) 34%,
      rgba(246, 239, 233, 0.96) 42%,
      rgba(246, 239, 233, 0.78) 50%,
      rgba(246, 239, 233, 0.38) 58%,
      rgba(246, 239, 233, 0.08) 66%,
      rgba(246, 239, 233, 0) 74%
    ),
    radial-gradient(
      circle at 18% 82%,
      rgba(246, 239, 233, 1) 0%,
      rgba(246, 239, 233, 0.96) 28%,
      rgba(246, 239, 233, 0.72) 48%,
      rgba(246, 239, 233, 0.28) 68%,
      rgba(246, 239, 233, 0) 82%
    ),
    linear-gradient(
      115deg,
      rgba(246, 239, 233, 0.98) 18%,
      rgba(246, 239, 233, 0.88) 34%,
      rgba(246, 239, 233, 0.52) 52%,
      rgba(246, 239, 233, 0.16) 68%,
      rgba(246, 239, 233, 0) 80%
    );

  z-index: 1;
  pointer-events: none;
}

/* Фото */
.hero-main::after {
  content: "";
  position: absolute;
  inset: 0;

  background-image: url('images/hero-photo.jpg');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;

  /* ограничиваем правой частью */
  width: 60%;
  left: auto;
  right: 0;

  /* делаем мягче */
  opacity: 0.87;

  pointer-events: none;
  z-index: 0;
}

/* Контент поверх */
.hero-main > * {
  position: relative;
  z-index: 2;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-main {
  padding: 64px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(181, 131, 109, 0.12);
  color: var(--accent-dark);
  font-size: 13px;
  width: fit-content;
  margin-bottom: 18px;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
  margin: 0 0 20px;
  font-weight: 600;
}

.hero-subtitle {
  font-size: 19px;
  color: var(--muted);
  max-width: 700px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: var(--accent-dark); }

.btn-secondary {
  border-color: rgba(47, 42, 38, 0.12);
  background: rgba(255, 255, 255, 0.55);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.fact {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(47, 42, 38, 0.06);
}

.fact-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.fact-value {
  font-size: 18px;
  font-weight: 600;
}

.section h2,
.footer-title {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  margin: 0;
}

.section {
  padding: 0 0 28px;
}

.section-card {
  padding: 38px;
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.section-note {
  color: var(--muted);
  max-width: 620px;
  line-height: 1.65;
}

.timeline-slider {
  position: relative;
  display: grid;
  gap: 28px;
}

.timeline-top {
  position: relative;
  padding: 14px 0 6px;
}

.timeline-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 86px;
  height: 2px;
  background: rgba(52, 37, 31, 0.12);
}

.timeline-progress {
  position: absolute;
  left: 0;
  top: 86px;
  height: 2px;
  width: var(--timeline-progress, 0%);
  background: linear-gradient(90deg, rgba(182, 90, 58, 0.55), rgba(182, 90, 58, 1));
  transition: width 0.35s ease;
}

.timeline-steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.timeline-step-button {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.timeline-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 251, 248, 0.95);
  border: 1px solid rgba(52, 37, 31, 0.08);
  box-shadow: 0 12px 28px rgba(85, 42, 26, 0.08);
  color: var(--muted);
  transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.timeline-icon svg {
  width: 34px;
  height: 34px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(182, 90, 58, 0.3);
  background: #fff;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.82);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.timeline-step-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--muted);
  max-width: 16ch;
  transition: color 0.3s ease;
}

.timeline-step.is-active .timeline-icon,
.timeline-step-button:hover .timeline-icon {
  color: var(--accent-dark);
  border-color: rgba(182, 90, 58, 0.22);
  box-shadow: 0 18px 36px rgba(182, 90, 58, 0.18);
  transform: translateY(-4px);
}

.timeline-step.is-active .timeline-dot,
.timeline-step-button:hover .timeline-dot {
  background: var(--accent);
  border-color: rgba(182, 90, 58, 0.75);
  box-shadow: 0 0 0 8px rgba(182, 90, 58, 0.12);
  transform: scale(1.08);
}

.timeline-step.is-active .timeline-step-title,
.timeline-step-button:hover .timeline-step-title {
  color: var(--text);
}

.timeline-panels {
  position: relative;
    scroll-margin-top: 96px;

}

.timeline-panel {
  display: none;
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 251, 248, 0.96), rgba(255, 243, 236, 0.98));
  border: 1px solid rgba(52, 37, 31, 0.08);
  box-shadow: 0 24px 60px rgba(85, 42, 26, 0.12);
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.timeline-panel.is-active {
  display: grid;
  animation: timelineFade 0.3s ease;
}

.timeline-panel-side {
  display: grid;
  gap: 12px;
  align-content: start;
}

.timeline-chip {
  display: flex;
  justify-self: center;
  align-self: center;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(182, 90, 58, 0.12);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.timeline-panel-icon {
  width: 92px;
  height: 92px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(52, 37, 31, 0.08);
  color: var(--accent-dark);
  box-shadow: 0 16px 36px rgba(182, 90, 58, 0.12);
  justify-self: center;
  align-self: center;
}

.timeline-panel-icon svg {
  width: 42px;
  height: 42px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.timeline-panel-title {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.1;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
}

.timeline-panel-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 17px;
  max-width: 200ch;
}

.timeline-intro {
  margin-bottom: 22px;
  color: var(--muted);
  max-width: 760px;
  line-height: 1.7;
}

@keyframes timelineFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.details-header {
  align-items: center;
}

.details-note {
  max-width: 520px;
}

.details-accordion {
  display: grid;
  gap: 14px;
}

.accordion-group,
.accordion-subgroup {
  border-radius: 24px;
  border: 1px solid rgba(47, 42, 38, 0.07);
  background: rgba(255, 255, 255, 0.44);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.accordion-group:hover,
.accordion-subgroup:hover {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(182, 90, 58, 0.12);
}

.accordion-group.is-open,
.accordion-subgroup.is-open {
  background: rgba(255, 252, 249, 0.72);
  border-color: rgba(182, 90, 58, 0.14);
  box-shadow: 0 18px 40px rgba(85, 42, 26, 0.06);
}

.accordion-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) 18px;
  gap: 16px;
  align-items: start;
  padding: 22px 24px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.accordion-trigger--nested {
  padding: 18px 20px;
}

.accordion-marker {
  width: 8px;
  height: 8px;
  margin-top: 0.7em;
  border-radius: 50%;
  background: rgba(182, 90, 58, 0.78);
  box-shadow: 0 0 0 5px rgba(182, 90, 58, 0.08);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.accordion-title-wrap {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.accordion-title {
  font-size: 24px;
  line-height: 1.12;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
}

.accordion-trigger--nested .accordion-title {
  font-size: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
}

.accordion-subtitle {
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

.accordion-arrow {
  display: none;
  width: 10px;
  height: 10px;
  margin-top: 0.55em;
  border-right: 1.5px solid rgba(52, 37, 31, 0.5);
  border-bottom: 1.5px solid rgba(52, 37, 31, 0.5);
  transform: rotate(45deg);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.accordion-header {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.accordion-indicator {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accordion-indicator::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.accordion-item.open .accordion-indicator::before {
    content: "";
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid var(--accent-color);
    border-radius: 0;
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}

.accordion-inner {
  padding: 0 24px 24px 24px;
  display: grid;
  gap: 10px;
}

.accordion-panel--nested .accordion-inner--nested {
  padding: 0 20px 18px 20px;
}

.accordion-subgroup {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
}

.accordion-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.accordion-group.is-open > .accordion-trigger .accordion-arrow,
.accordion-subgroup.is-open > .accordion-trigger .accordion-arrow {
  overflow: visible;
  transform: rotate(-135deg);
  border-color: var(--accent-dark);
}

.accordion-group.is-open > .accordion-trigger .accordion-marker,
.accordion-subgroup.is-open > .accordion-trigger .accordion-marker {
  transform: scale(1.08);
  background: var(--accent-dark);
  box-shadow: 0 0 0 6px rgba(182, 90, 58, 0.12);
}

footer {
  padding: 12px 0 40px;
}

.footer-card {
  padding: 26px;
  text-align: center;
  color: var(--muted);
}

.footer-title {
  color: var(--text);
  margin-bottom: 10px;
}

.routes-links {
  margin-top: 32px;
}

.routes-links-title {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(60, 40, 30, 0.6);
  margin-bottom: 16px;
}

.routes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.route-card {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;

  padding: 14px 18px;
  border-radius: 14px;

  text-decoration: none;

  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);

  border: 1px solid rgba(181, 94, 58, 0.25);

  transition: all 0.25s ease;
}

.route-card:hover {
  background: rgba(181, 94, 58, 0.08);
  border-color: rgba(181, 94, 58, 0.45);
  transform: translateY(-2px);
}

.route-city {
  font-size: 16px;
  font-weight: 600;
  color: #3e2c23;
}

.route-desc {
  font-size: 13px;
  color: rgba(62, 44, 35, 0.6);
}

@media (max-width: 980px) {
	
.timeline-panel-flash {
    animation: timelinePanelFlash 0.9s ease;
  }

  @keyframes timelinePanelFlash {
    0% {
      box-shadow: 0 0 0 0 rgba(182, 90, 58, 0);
      transform: translateY(0);
    }
    30% {
      box-shadow: 0 0 0 10px rgba(182, 90, 58, 0.10);
      transform: translateY(-2px);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(182, 90, 58, 0);
      transform: translateY(0);
    }
  }
  .section-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .timeline-track,
  .timeline-progress {
    display: none;
  }

  .timeline-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-panel,
  .timeline-panel.is-active {
    grid-template-columns: 1fr;
  }

  .accordion-trigger {
    grid-template-columns: 12px minmax(0, 1fr) 16px;
    gap: 14px;
    padding: 18px 18px;
  }

  .accordion-inner {
    padding: 0 18px 18px 18px;
  }

  .accordion-panel--nested .accordion-inner--nested {
    padding: 0 16px 16px 16px;
  }

  .facts {
	width: 66%;
	max-width: 420px;
	grid-template-columns: 1fr;
	gap: 14px;
	margin-top: 26px;
  }
  
  .hero {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .hero-main {
    padding: 28px 22px 26px;
    min-height: 760px;
    justify-content: flex-start;
  }

  .hero-main::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    top: auto;
    left: auto;

    width: 78%;
    height: 62%;

    background-image: url('images/hero-photo-mid.jpg');
    background-repeat: no-repeat;
	background-position: 80.1% 37.2%;
    background-size: cover;

    opacity: 0.7;
    z-index: 0;
    pointer-events: none;
  }

 .hero-main::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;

  background-image:
    linear-gradient(
      180deg,
      rgba(246,239,233,0.9) 0%,
      rgba(246,239,233,0.7) 18%,
      rgba(246,239,233,0.34) 48%,
      rgba(246,239,233,0.15) 78%,
      rgba(246,239,233,0) 100%
    ),
    linear-gradient(
      105deg,
      rgba(246,239,233,1) 0%,
      rgba(246,239,233,1) 54%,
      rgba(246,239,233,0.96) 60%,
      rgba(246,239,233,0.78) 66%,
      rgba(246,239,233,0.42) 72%,
      rgba(246,239,233,0.12) 78%,
      rgba(246,239,233,0) 84%
    ),
    linear-gradient(
      160deg,
      rgba(246,239,233,0.98) 0%,
      rgba(246,239,233,0.98) 18%,
      rgba(246,239,233,0.82) 28%,
      rgba(246,239,233,0.42) 38%,
      rgba(246,239,233,0.08) 48%,
      rgba(246,239,233,0) 100%
    ),
    radial-gradient(
      ellipse at 78% 92%,
      rgba(246,239,233,0) 0%,
      rgba(246,239,233,0.08) 28%,
      rgba(246,239,233,0.24) 46%,
      rgba(246,239,233,0.52) 62%,
      rgba(246,239,233,0.82) 76%,
      rgba(246,239,233,1) 90%
    );

    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
     
    background-size:
  	48% 60%,
  	100% 100%,
  	100% 100%,
  	100% 100%;
     
    background-position:
  	top right,
  	top left,
  	top left,
  	top left;
  }

  .hero-main > * {
    position: relative;
    z-index: 2;
  }

  .hero-subtitle {
    max-width: 100%;
    font-size: 17px;
    line-height: 1.65;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .btn {
    width: auto;
    min-width: 0;
  }

  .fact {
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(4px);
  }
}

@media (max-width: 640px) {
  .nav-inner { align-items: flex-start; flex-direction: column; }

  .accordion-title {
    font-size: 20px;
  }

  .accordion-trigger--nested .accordion-title {
    font-size: 17px;
  }

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

  .timeline-step-button {
    grid-template-columns: 56px 1fr;
    gap: 14px;
    align-items: center;
    justify-items: start;
    text-align: left;
  }

  .timeline-icon {
    width: 56px;
    height: 56px;
  }

  .timeline-icon svg {
    width: 28px;
    height: 28px;
  }

  .timeline-dot {
    display: none;
  }

  .timeline-step-title {
    max-width: none;
  }

  .timeline-panel {
    padding: 24px;
	  scroll-margin-top: 96px;

  }
  
  
    .hero-main {
    min-height: 720px;
  }

  .hero-main::after {
    width: 76%;
    height: 54%;
    background-position: 72% bottom;
  }

  .hero-main::before {
    background:
      radial-gradient(
        circle at 82% 90%,
        rgba(246, 239, 233, 0) 0%,
        rgba(246, 239, 233, 0) 22%,
        rgba(246, 239, 233, 0.2) 36%,
        rgba(246, 239, 233, 0.56) 52%,
        rgba(246, 239, 233, 0.86) 68%,
        rgba(246, 239, 233, 1) 84%
      ),
      linear-gradient(
        90deg,
        rgba(246, 239, 233, 1) 0%,
        rgba(246, 239, 233, 1) 36%,
        rgba(246, 239, 233, 0.92) 54%,
        rgba(246, 239, 233, 0.54) 70%,
        rgba(246, 239, 233, 0.16) 82%,
        rgba(246, 239, 233, 0) 92%
      ),
      linear-gradient(
        180deg,
        rgba(246, 239, 233, 1) 0%,
        rgba(246, 239, 233, 1) 28%,
        rgba(246, 239, 233, 0.86) 36%,
        rgba(246, 239, 233, 0.42) 43%,
        rgba(246, 239, 233, 0) 50%
      );
  }
  
  .hero-main::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    top: auto;
    left: auto;

    width: 78%;
    height: 62%;

    background-image: url('images/hero-photo-min.jpg');
    background-repeat: no-repeat;
	background-position: 80.1% 37.2%;
    background-size: cover;

    opacity: 0.7;
    z-index: 0;
    pointer-events: none;
  }

  .fact-value {
    font-size: 16px;
  }

  .section-card { padding: 22px; }
  .hero { padding-top: 36px; }
  h1 { line-height: 1.02; }
}
