:root {
  --paper: #f5f3ed;
  --paper-soft: #ebe7dc;
  --ink: #1c221d;
  --muted: #626a61;
  --line: #d7d0c0;
  --green: #244638;
  --green-dark: #13291f;
  --clay: #9b6846;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  min-width: 320px;
}

a {
  color: inherit;
}

main {
  width: 100%;
  margin: 0;
}

.gp-contacts-page .gp-header {
  background: rgba(245, 243, 237, 0.94);
}

.gp-contacts-page .gp-nav a[aria-current="page"],
.gp-contacts-page .gp-mobile-menu__panel a[aria-current="page"] {
  color: var(--gp-copper);
}

.hero,
.route-panel,
.details-grid,
.arrival,
.map-section,
.requisites {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.72fr);
  gap: clamp(28px, 3.2vw, 42px);
  align-items: center;
  min-height: min(680px, calc(100svh - 58px));
  padding: clamp(34px, 5vw, 68px) 0 clamp(38px, 6vw, 74px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 620px;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5.2vw, 62px);
  font-weight: 400;
  line-height: 1.02;
}

h2 {
  max-width: 640px;
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 400;
  line-height: 1.08;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(18px, 1.7vw, 23px);
  font-weight: 560;
  line-height: 1.24;
}

.lead,
.route-panel p,
.arrival p {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.55;
}

.hero-actions,
.route-actions,
.time-strip {
  display: grid;
  gap: 14px;
}

.hero-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 720px;
  margin-top: 28px;
}

.action,
.route-button,
.copy-card {
  border-radius: 8px;
  text-decoration: none;
}

.action {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  min-height: 78px;
  align-items: center;
  padding: 15px 18px;
  text-align: left;
}

.action-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.action-copy span {
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.78;
}

.action-copy strong {
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.1;
}

.action-copy small {
  color: currentColor;
  font-size: 13px;
  font-weight: 650;
  opacity: 0.78;
}

.action-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  align-self: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(28, 34, 29, 0.08);
}

.action-icon img {
  width: 24px;
  height: 24px;
}

.phone-icon {
  color: var(--green);
  font-size: 18px;
  font-weight: 700;
}

.action.primary {
  background: var(--green);
  color: var(--paper) !important;
}

.action.primary strong {
  font-size: clamp(15px, 1.25vw, 16px);
  white-space: nowrap;
}

.action.telegram {
  background: #dce8ec;
  color: #163d4b !important;
}

.action.max {
  background: #efe3d2;
  color: #47301f !important;
}

.hero-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper-soft);
  box-shadow: 0 18px 42px rgba(28, 34, 29, 0.16);
}

.hero-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
}

.hero-photo figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  border-radius: 8px;
  background: rgba(19, 41, 31, 0.76);
  color: var(--paper);
  padding: 10px 12px;
  font-size: 13px;
  backdrop-filter: blur(10px);
}

.route-panel,
.arrival {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.54fr);
  gap: 28px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: clamp(36px, 5vw, 62px) 0;
}

.route-button {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  padding: 15px 18px;
  text-align: center;
  font-weight: 680;
}

.yandex {
  background: var(--green);
  color: var(--paper) !important;
  box-shadow: 0 14px 30px rgba(36, 70, 56, 0.18);
}

.maps {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink) !important;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0 0 clamp(36px, 5vw, 62px);
}

.detail-card {
  min-height: 172px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 19px;
}

.detail-card.wide {
  grid-column: span 2;
}

.detail-card span,
.time-strip span {
  display: block;
  margin-bottom: 12px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-card p {
  color: var(--muted);
  line-height: 1.5;
}

.copy-card {
  margin-top: 10px;
  border: 1px solid var(--green);
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  padding: 9px 13px;
}

.time-strip {
  border-radius: 8px;
  background: var(--green-dark);
  color: var(--paper);
  padding: 19px;
}

.time-strip div {
  border-bottom: 1px solid rgba(245, 243, 237, 0.15);
  padding-bottom: 16px;
}

.time-strip div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.time-strip strong,
.time-strip a {
  color: var(--paper);
  font-size: 20px;
  text-decoration: none;
}

.map-section,
.requisites {
  border-top: 1px solid var(--line);
  padding: clamp(36px, 5vw, 62px) 0;
}

.map-heading {
  margin-bottom: 24px;
}

.map-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
}

.map-shell iframe {
  display: block;
  height: 380px;
  pointer-events: none;
}

.map-shell.is-active iframe {
  pointer-events: auto;
}

.map-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  background: rgba(19, 41, 31, 0.72);
  color: var(--paper);
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 650;
}

.map-shell.is-active .map-cover {
  display: none;
}

.requisites details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.requisites summary {
  cursor: pointer;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 650;
}

.requisites dl {
  margin: 0;
  padding: 0 20px 20px;
}

.requisites dl div {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 13px 0;
}

.requisites dt {
  color: var(--muted);
}

.requisites dd {
  margin: 0;
  font-weight: 560;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: min(340px, calc(100vw - 36px));
  border-radius: 8px;
  background: var(--green-dark);
  color: var(--paper);
  opacity: 0;
  padding: 14px 16px;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .hero,
  .route-panel,
  .arrival {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 28px;
  }

  .hero-actions,
  .details-grid {
    grid-template-columns: 1fr;
  }

  .detail-card.wide {
    grid-column: auto;
  }

  .requisites dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 520px) {
  .hero,
  .route-panel,
  .details-grid,
  .arrival,
  .map-section,
  .requisites {
    width: min(100% - 24px, 1080px);
  }

  h1 {
    font-size: clamp(34px, 10vw, 42px);
  }

  h2 {
    font-size: clamp(26px, 8vw, 34px);
  }

  .lead,
  .route-panel p,
  .arrival p {
    font-size: 15.5px;
  }

  .hero-photo figcaption {
    position: static;
    border-radius: 0;
  }

  .detail-card,
  .route-button,
  .action {
    min-height: auto;
  }
}
