/* Public discovery page — reference layout */

body:has(.discovery-hero) {
  background: #fff;
}

body:has(.discovery-hero) .page-wrap {
  max-width: none;
  margin: 0;
  padding: 0 0 64px;
}

body:has(.discovery-hero) .site-header {
  background: rgba(255,255,255,.96);
  box-shadow: 0 1px 10px rgba(15,23,42,.08);
  backdrop-filter: blur(14px);
}

body:has(.discovery-hero) .header-inner {
  max-width: 1400px;
  height: 78px;
  padding: 0 24px;
}

body:has(.discovery-hero) .logo-text { color:#101828; }
body:has(.discovery-hero) .logo-text span { color:#667085; opacity:1; }
body:has(.discovery-hero) .nav-link { color:#101828; }
body:has(.discovery-hero) .nav-link:hover { color:#155eef; background:#f5f7fb; }
body:has(.discovery-hero) .nav-link.active,
body:has(.discovery-hero) .nav-link--accent { color:#155eef; background:transparent; }
body:has(.discovery-hero) .btn-header { color:#344054; background:#fff; border-color:#d0d5dd; }
body:has(.discovery-hero) .btn-header:hover { color:#155eef; background:#f8faff; border-color:#b8c8eb; }
body:has(.discovery-hero) .btn-header.primary { color:#fff; background:#2563eb; border-color:#2563eb; }

/* HERO */
.discovery-hero {
  position:relative;
  min-height:470px;
  display:grid;
  grid-template-columns:minmax(470px,36%) minmax(0,64%);
  overflow:hidden;
  background:#fff;
}

.discovery-hero__content {
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:52px max(32px, calc((100vw - 1372px) / 2));
  padding-right:36px;
  background:linear-gradient(90deg,#fff 0%,#fff 72%,rgba(255,255,255,.96) 100%);
}

.discovery-hero__eyebrow {
  margin-bottom:14px;
  color:#155eef;
  font-size:13px;
  font-weight:800;
  letter-spacing:.05em;
  text-transform:uppercase;
}

.discovery-hero h1 {
  max-width:560px;
  margin:0;
  color:#101828;
  font-size:clamp(38px,3.1vw,44px);
  line-height:1.08;
  letter-spacing:-1.7px;
}

.discovery-hero h1 span { color:#2f64df; }

.discovery-hero p {
  max-width:500px;
  margin:18px 0 25px;
  color:#475467;
  font-size:17px;
  line-height:1.5;
}

.discovery-hero__actions {
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
}

.discovery-hero__actions .btn-primary {
  min-height:48px;
  padding:0 26px;
  border-radius:9px;
  box-shadow:0 8px 20px rgba(21,94,239,.22);
}

.discovery-hero__visual {
  position:relative;
  min-height:470px;
  overflow:hidden;
}

.hero-visual-card {
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
}

.hero-photo-overlay {
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(255,255,255,.99) 0%,rgba(255,255,255,.76) 5%,rgba(255,255,255,.2) 20%,rgba(255,255,255,0) 39%);
}

/* Все три преимущества в одну строку на desktop. */
.hero-benefits {
  display:flex;
  align-items:center;
  gap:26px;
  margin-top:34px;
  flex-wrap:nowrap;
  white-space:nowrap;
}

.hero-benefit {
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  flex:1 1 0;
}

.hero-benefit-icon {
  display:grid;
  place-items:center;
  flex:0 0 38px;
  width:38px;
  height:38px;
  border-radius:10px;
  background:#fff;
  color:#155eef;
  border:1px solid #edf0f5;
  box-shadow:0 6px 18px rgba(16,24,40,.07);
  font-size:19px;
}

.hero-benefits strong,
.hero-benefits small { display:block; }
.hero-benefits strong { color:#101828; font-size:12.5px; line-height:1.25; }
.hero-benefits small { margin-top:3px; color:#667085; font-size:11.5px; line-height:1.2; }

/* STATIONS */
.discovery-stations {
  max-width:1400px;
  margin:0 auto;
  padding:38px 14px 72px;
  box-sizing:border-box;
}

.discovery-section-head {
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:20px;
  margin-bottom:18px;
}

.discovery-section-head .page-title {
  margin:0;
  font-size:28px;
  line-height:1.1;
  letter-spacing:-1px;
}

/* На desktop карта и три карточки станции имеют одинаковую высоту. */
.station-discovery-layout {
  display:grid;
  grid-template-columns:minmax(430px,500px) minmax(0,1fr);
  gap:18px;
  align-items:stretch;
}

.station-map-panel {
  overflow:hidden;
  height:270px;
  border:1px solid #e4e7ec;
  border-radius:16px;
  background:#fff;
  box-shadow:0 5px 22px rgba(16,24,40,.05);
}

.station-map-panel__head {
  display:none;
}

body:has(.station-grid) .map-container {
  position:relative;
  min-height:270px;
  height:270px;
  margin:0;
  border:0;
  border-radius:0;
  box-shadow:none;
}

body:has(.station-grid) .map-container::after { content:none; }

.station-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  min-width:0;
  height:270px;
}

.station-card {
  min-width:0;
  height:270px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  position:relative;
  overflow:hidden;
  padding:20px;
  box-sizing:border-box;
  border:1px solid #e4e7ec;
  border-radius:16px;
  background:#fff;
  color:inherit;
  text-decoration:none;
  box-shadow:0 5px 20px rgba(16,24,40,.04);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}

.station-card[hidden] { display:none !important; }
.station-card:hover { transform:translateY(-2px); border-color:#c7d7fe; box-shadow:0 12px 30px rgba(16,24,40,.09); }

.station-card-top { display:flex; align-items:center; justify-content:space-between; }
.station-status { display:inline-flex; align-items:center; gap:6px; padding:5px 9px; border-radius:7px; background:#ecfdf3; color:#039855; font-size:11px; font-weight:800; }
.station-status i { width:6px; height:6px; border-radius:50%; background:#12b76a; }
.station-card-icon { display:grid; place-items:center; width:40px; height:40px; border-radius:50%; background:#eff4ff; color:#155eef; font-size:19px; }
.station-name { margin-top:18px; color:#101828; font-size:18px; font-weight:800; letter-spacing:-.3px; }
.station-address { display:flex; gap:7px; margin-top:9px; color:#475467; font-size:13px; line-height:1.4; }
.station-hours { margin-top:10px; color:#667085; font-size:12px; }
.station-card-footer { display:flex; align-items:center; justify-content:space-between; margin-top:18px; padding-top:14px; border-top:1px solid #f0f2f5; color:#155eef; font-size:13px; font-weight:800; }
.station-card-arrow { font-size:18px; transition:transform .18s ease; }
.station-card:hover .station-card-arrow { transform:translateX(3px); }

.station-map-empty {
  height:100%;
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:24px;
  border:1px dashed #d0d5dd;
  border-radius:16px;
  background:#fff;
  color:#475467;
  text-align:center;
  box-sizing:border-box;
}

.station-map-empty[hidden] { display:none !important; }
.station-map-empty__icon { font-size:26px; color:#155eef; }
.station-map-empty strong { color:#101828; font-size:14px; }
.station-map-empty span { max-width:250px; color:#667085; font-size:12px; }

.station-show-more {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:350px;
  max-width:100%;
  margin:18px auto 0;
  min-height:40px;
  padding:0 18px;
  border:1px solid #e4e7ec;
  border-radius:10px;
  background:#fff;
  color:#344054;
  font:600 13px var(--font-body);
  cursor:pointer;
  transition:.18s ease;
}

.station-show-more[hidden] { display:none; }
.station-show-more:hover { color:#155eef; border-color:#c7d7fe; background:#f8faff; }
.station-show-more span { font-size:16px; line-height:1; }

@media (max-width:1250px) {
  .discovery-hero { grid-template-columns:minmax(470px,39%) minmax(0,61%); }
  .station-discovery-layout { grid-template-columns:minmax(380px,.95fr) minmax(0,1.65fr); }
  .station-grid { grid-template-columns:repeat(3,minmax(180px,1fr)); }
  .hero-benefits { gap:16px; }
  .hero-benefit { gap:8px; }
}

@media (max-width:1050px) {
  .discovery-hero { grid-template-columns:1fr; min-height:520px; }
  .discovery-hero__visual { position:absolute; inset:0; z-index:0; min-height:520px; }
  .discovery-hero__content {
    min-height:520px;
    padding:54px 7vw;
    background:linear-gradient(90deg,#fff 0%,rgba(255,255,255,.94) 54%,rgba(255,255,255,.55) 100%);
  }
  .station-discovery-layout { grid-template-columns:1fr; }
  .station-map-panel { height:330px; }
  body:has(.station-grid) .map-container { min-height:330px; height:330px; }
  .station-grid { height:auto; grid-template-columns:repeat(3,minmax(0,1fr)); }
  .station-card { height:270px; }
}

@media (max-width:720px) {
  body:has(.discovery-hero) .header-inner { height:68px; }
  .discovery-hero { min-height:620px; }
  .discovery-hero__content { min-height:620px; padding:46px 22px; background:linear-gradient(90deg,#fff 0%,rgba(255,255,255,.92) 72%,rgba(255,255,255,.7) 100%); }
  .discovery-hero h1 { font-size:39px; letter-spacing:-1.5px; }
  .discovery-hero p { font-size:15px; }
  .hero-benefits { flex-wrap:wrap; gap:14px; margin-top:28px; white-space:normal; }
  .hero-benefit { flex:0 0 calc(50% - 7px); }
  .hero-benefit:last-child { flex-basis:100%; }
  .discovery-stations { padding:34px 16px 55px; }
  .station-map-panel { height:330px; }
  body:has(.station-grid) .map-container { min-height:330px; height:330px; }
  .station-grid { grid-template-columns:1fr; height:auto; }
  .station-card { height:270px; }
  .station-show-more { width:100%; }
}
