:root {
  --ink: #17231e;
  --forest: #203a2e;
  --forest-deep: #0c1712;
  --moss: #496858;
  --gold: #c69b45;
  --gold-soft: #e0c27b;
  --paper: #f3f0e7;
  --paper-deep: #e8e2d5;
  --white: #fffdf8;
  --line: rgba(23, 35, 30, 0.16);
  --line-light: rgba(255, 255, 255, 0.18);
  --shadow: 0 28px 72px rgba(12, 23, 18, 0.15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", Arial, sans-serif;
  line-height: 1.68;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: min(1180px, calc(100% - 80px)); margin: 0 auto; }
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 11px 15px;
  color: var(--forest-deep);
  background: var(--white);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 74px;
  padding: 0 3.5vw;
  border-bottom: 1px solid rgba(255,255,255,.13);
  color: var(--white);
  background: rgba(7, 13, 10, .43);
  backdrop-filter: blur(12px);
}
.site-logo {
  font-family: Georgia, serif;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: .36em;
  text-decoration: none;
  text-transform: uppercase;
}
.site-logo span { color: var(--gold); }
.desktop-nav { display: flex; justify-content: center; gap: clamp(16px, 2.5vw, 38px); }
.desktop-nav a {
  color: rgba(255,255,255,.72);
  font-size: .7rem;
  letter-spacing: .18em;
  text-decoration: none;
  text-transform: uppercase;
}
.desktop-nav a:hover,
.desktop-nav a:focus-visible { color: var(--gold-soft); }
.site-phone { font-size: .82rem; font-weight: 700; text-decoration: none; }
.mobile-menu { display: none; }

.hero {
  position: relative;
  display: flex;
  min-height: 790px;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--forest-deep) center / cover no-repeat;
}
.hero-from-petrozavodsk { background-image: url("assets/hero-from-petrozavodsk.webp"); }
.hero-combined { background-image: url("assets/hero-combined-routes.webp"); }
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 11, 8, .95) 0%, rgba(5, 11, 8, .77) 40%, rgba(5, 11, 8, .2) 74%, rgba(5, 11, 8, .32) 100%),
    linear-gradient(0deg, rgba(5, 11, 8, .58), transparent 48%);
}
.hero-content { position: relative; z-index: 2; padding-top: 112px; }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 84px;
  padding: 0;
  color: rgba(255,255,255,.62);
  font-size: .7rem;
  letter-spacing: .08em;
  list-style: none;
  text-transform: uppercase;
}
.breadcrumbs li + li::before { margin-right: 10px; color: var(--gold); content: "/"; }
.breadcrumbs a { text-decoration: none; }
.eyebrow {
  display: block;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
}
h1, h2, h3 {
  margin-top: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  line-height: 1.06;
}
.hero h1 {
  max-width: 900px;
  margin: 23px 0 28px;
  font-size: clamp(3.8rem, 7vw, 7rem);
  letter-spacing: -.045em;
}
.hero h1 em { display: block; color: var(--gold-soft); font-weight: 500; }
.hero-copy {
  max-width: 740px;
  margin: 0;
  color: rgba(255,255,255,.84);
  font-size: clamp(1.05rem, 1.55vw, 1.28rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  border: 1px solid transparent;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #16160f; background: var(--gold); }
.button-primary:hover,
.button-primary:focus-visible { background: var(--gold-soft); }
.button-ghost { border-color: rgba(255,255,255,.45); background: rgba(0,0,0,.1); }
.button-ghost:hover,
.button-ghost:focus-visible { border-color: var(--white); background: rgba(255,255,255,.08); }

section { padding: 112px 0; }
.opening { background: var(--white); }
.opening-grid,
.split-grid,
.contact-grid,
.conversion-grid {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: 88px;
  align-items: start;
}
.opening h2,
.section-heading h2,
.split-grid h2,
.contact-grid h2,
.conversion-grid h2 {
  margin: 17px 0 0;
  font-size: clamp(2.8rem, 5vw, 5rem);
  letter-spacing: -.035em;
}
.prose { max-width: 720px; font-size: 1.08rem; }
.prose p { margin: 0; }
.prose p + p { margin-top: 21px; }
.section-heading { max-width: 880px; margin-bottom: 52px; }
.section-heading > p { max-width: 740px; margin: 20px 0 0; color: rgba(23,35,30,.72); }

.choice-grid,
.scenario-grid,
.related-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.card {
  min-height: 100%;
  padding: 34px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 16px 42px rgba(12,23,18,.06);
}
.card.dark { color: var(--white); border-color: var(--forest); background: var(--forest); }
.card-number { color: var(--gold); font-family: Georgia, serif; font-size: 2rem; }
.card h3 { margin: 56px 0 18px; font-size: 2rem; }
.card p { color: rgba(23,35,30,.72); }
.card.dark p { color: rgba(255,255,255,.72); }
.card ul { margin: 20px 0 0; padding-left: 20px; }
.text-link {
  display: inline-flex;
  gap: 10px;
  margin-top: 22px;
  color: #8a6725;
  font-weight: 700;
  text-decoration: none;
}
.dark .text-link { color: var(--gold-soft); }

.journey { color: var(--white); background: var(--forest-deep); }
.journey .section-heading > p { color: rgba(255,255,255,.66); }
.flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
}
.flow article {
  min-height: 330px;
  padding: 30px 25px;
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}
.flow span { color: var(--gold-soft); font-family: Georgia, serif; font-size: 2.2rem; }
.flow h3 { margin: 70px 0 18px; font-size: 1.9rem; }
.flow p { margin: 0; color: rgba(255,255,255,.7); }

.rail,
.checklist,
.faq { background: var(--white); }
.rail-panel,
.road-panel {
  padding: 48px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.rail-panel h3,
.road-panel h3 { margin: 0 0 20px; font-size: 2.25rem; }
.rail-panel ul,
.road-panel ul,
.note-card ul { margin: 22px 0 0; padding-left: 22px; }
.link-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; }
.link-row a { color: #78591f; font-weight: 700; }

.transfer { background: var(--paper-deep); }
.service-list { display: grid; gap: 14px; }
.service-list article {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 22px;
  padding: 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.54);
}
.service-list span { color: var(--gold); font-family: Georgia, serif; font-size: 1.75rem; }
.service-list h3 { margin: 0 0 8px; font-size: 1.55rem; }
.service-list p { margin: 0; color: rgba(23,35,30,.72); }

.note-card {
  padding: 38px;
  color: var(--white);
  background:
    radial-gradient(circle at top right, rgba(198,155,69,.24), transparent 34%),
    var(--forest);
  box-shadow: var(--shadow);
}
.note-card h3 { margin: 18px 0 0; font-size: 2.25rem; }
.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.check-item {
  position: relative;
  padding: 28px 28px 28px 66px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.check-item::before {
  position: absolute;
  top: 29px;
  left: 28px;
  width: 22px;
  height: 22px;
  border: 1px solid var(--gold);
  content: "";
}
.check-item h3 { margin: 0 0 8px; font-size: 1.55rem; }
.check-item p { margin: 0; color: rgba(23,35,30,.7); }

.messengers { color: var(--white); background: var(--forest); }
.contact-grid p { color: rgba(255,255,255,.72); }
.messenger-links { display: grid; gap: 14px; }
.messenger {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 24px;
  border: 1px solid rgba(255,255,255,.24);
  text-decoration: none;
}
.messenger:hover,
.messenger:focus-visible { border-color: var(--gold-soft); background: rgba(255,255,255,.06); }
.messenger strong { font-family: Georgia, serif; font-size: 1.45rem; font-weight: 500; }
.messenger span { color: var(--gold-soft); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }

.faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.faq details {
  padding: 25px 0;
  border-top: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.65rem;
  font-weight: 600;
}
.faq details p { margin: 16px 0 0; color: rgba(23,35,30,.72); }

.conversion {
  color: var(--white);
  background:
    radial-gradient(circle at 70% 10%, rgba(198,155,69,.18), transparent 32%),
    var(--forest-deep);
}
.conversion p { max-width: 650px; color: rgba(255,255,255,.72); }
.conversion-actions { display: flex; flex-wrap: wrap; gap: 14px; align-self: end; }
.related { background: var(--paper); }
.related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.related a {
  min-height: 170px;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--white);
  text-decoration: none;
}
.related a:hover,
.related a:focus-visible { border-color: var(--gold); box-shadow: 0 16px 38px rgba(12,23,18,.08); }
.related strong { display: block; margin-bottom: 12px; font-family: Georgia, serif; font-size: 1.55rem; }
.related span { color: rgba(23,35,30,.68); font-size: .9rem; }

.site-footer { padding: 64px 0; color: rgba(255,255,255,.68); background: #08100c; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; }
.site-footer h2,
.site-footer h3 { color: var(--white); }
.site-footer h2 { font-size: 2rem; }
.site-footer h3 { font-size: 1.3rem; }
.site-footer a { display: block; margin-top: 8px; text-decoration: none; }
.footer-copy { max-width: 420px; }

:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 4px; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto auto; gap: 18px; }
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu summary { display: grid; width: 36px; gap: 5px; padding: 7px; cursor: pointer; list-style: none; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary span { height: 2px; background: var(--white); }
  .mobile-menu nav {
    position: absolute;
    top: 74px;
    right: 0;
    display: grid;
    width: min(320px, 92vw);
    padding: 24px;
    background: var(--forest-deep);
  }
  .mobile-menu nav a { padding: 10px 0; text-decoration: none; }
  .opening-grid,
  .split-grid,
  .contact-grid,
  .conversion-grid { grid-template-columns: 1fr; gap: 42px; }
  .choice-grid,
  .scenario-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: 720px; }
}

@media (max-width: 620px) {
  .wrap { width: min(100% - 34px, 1180px); }
  .site-header { padding: 0 17px; }
  .site-logo { font-size: .83rem; letter-spacing: .25em; }
  .site-phone { display: none; }
  .hero { min-height: 700px; }
  .hero-content { padding-top: 96px; }
  .breadcrumbs { margin-bottom: 58px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.3rem); }
  section { padding: 82px 0; }
  .card { padding: 27px; }
  .flow { grid-template-columns: 1fr; }
  .flow article { min-height: auto; }
  .flow h3 { margin-top: 34px; }
  .rail-panel,
  .road-panel,
  .note-card { padding: 29px; }
  .service-list article { grid-template-columns: 1fr; gap: 8px; }
  .check-grid,
  .faq-grid,
  .related-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .button { width: 100%; }
  .conversion-actions { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
