:root{
  --bg: #ffffff;
  --soft: #f5f7fb;
  --text: #0f172a;
  --muted: rgba(15, 23, 42, .65);
  --border: rgba(15, 23, 42, .12);
  --shadow: 0 10px 30px rgba(15,23,42,.08);


  --primary:#1479a8;
  --primary-dark:#0f5f85;
  --primary-light:#e9f4fa;
}



  /* акцент (синьо като “официален” сайт) */
  --primary: #1d4ed8;
  --primary-2: #0b3aa6;

  --radius: 16px;
  --radius2: 22px;
  --container: 1120px;
}

*{ box-sizing: border-box; }
html, body{ margin: 0; padding: 0; }
body{
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
}

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

h1, h2, h3{
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.container{
  max-width: 1050px;
  margin: 0 auto;
  padding: 16px;
}

.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

.muted{ color: var(--muted); }
.tiny{ font-size: 12px; }

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 10;
  background:var(--primary);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  color:white;
}


.header-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}






.brand { display:flex; align-items:center; gap:12px; }
.brand img.logo{
  height:50px;          /* PC размер */
  width:auto;
  max-width:120px;      /* да не расте прекалено */
  object-fit:contain;
  display:block;
}
.brand img.logo{ width:auto !important; }
.brand-mark{
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--soft);
  border: 1px solid var(--border);
}



.brand-text{ display:flex; flex-direction:column; line-height:1.05;   text-transform:uppercase;  letter-spacing:1px;}
.brand-text strong{   font-size:35px;
  text-transform:uppercase;
  letter-spacing:1px;   text-shadow:0 1px 2px rgba(0,0,0,0.35); }
.brand-text small{ font-size:15px; opacity:.85; }



/* Nav */
.nav{
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a{
  padding: 10px 12px;
  border-radius: 2px;
  font-weight: 600;
  color:white;
  text-transform: uppercase;
  letter-spacing: 0.5px;

}



.nav a:hover{ background:rgba(255,255,255,0.15); }

.nav-toggle{
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 2px;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
}
.burger{
  display:block;
  width: 18px;
  height: 2px;
  background: rgba(15,23,42,.8);
  margin: 0 auto;
  position: relative;
}
.burger::before,
.burger::after{
  content:"";
  position:absolute;
  left:0;
  width:18px;
  height:2px;
  background: rgba(15,23,42,.8);
}
.burger::before{ top: -6px; }
.burger::after{ top: 6px; }

/* Hero */
.hero{
  background:linear-gradient(180deg,#e9f4fa,#ffffff);
  border-bottom: 1px solid var(--border);
}



.hero-grid{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
  align-items: stretch;
  padding-top: 22px;
  padding-bottom: 26px;
}
.hero-copy h1{
  margin: 0 0 10px;
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.lead{
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px;
  max-width: 52ch;
}
.hero-badges{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}
.badge{
  display:flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.75);
  border-radius: 999px;
  padding: 10px 12px;
}
.badge-k{ color: var(--muted); font-size: 13px; }
.badge-v{ font-weight: 800; }

/* Panel / Search */
.panel{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-head{
  padding: 16px 16px 0;
}
.panel-head h2{
  margin: 0;
  font-size: 18px;
}
.panel-head p{
  margin: 6px 0 0;
  font-size: 13px;
}
.panel-foot{
  padding: 0 16px 14px;
}

.search{
  padding: 14px 16px;
  display: grid;
  gap: 12px;
}
.search label{
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}
.search input{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  outline: none;
}
.search input:focus{
  border-color: rgba(29,78,216,.45);
  box-shadow: 0 0 0 4px rgba(29,78,216,.12);
}

.search select{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  outline: none;
}

.search select:focus{
  border-color: rgba(29,78,216,.45);
  box-shadow: 0 0 0 4px rgba(29,78,216,.12);
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 2px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}
.btn-primary{
  background:var(--primary);
  color:white;
  border:none;
}
.btn-primary:hover{ background:var(--primary-dark); }
.btn-ghost{
  background: #fff;
}



.btn-ghost:hover{ background: var(--soft); }

.actions{
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Sections */
.section{
  padding: 28px 0;
}
.section-soft{
  background:#f2f8fc;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}



.section-head{
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}
.section-head h2{
  margin: 0;
  font-size: 22px;
}
.section-head p{ margin: 0; }

/* Cards grid */
.grid.cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card{
  background: #fff;
  /*border: 1px solid var(--border);*/
  border-top:4px solid var(--primary);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 10px 20px rgba(15,23,42,.04);
}

.card h3{
  margin: 0 0 6px;
  font-size: 16px;
}
.card p{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* News */
.news{
  display: grid;
  gap: 10px;
}
.news-item{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.news-meta{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-bottom: 6px;
}
.pill{
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(29,78,216,.10);
  border: 1px solid rgba(29,78,216,.18);
  color: #4f739b;
}
.news-title{
  margin: 0;
  font-size: 15px;
}

/* Notice */
.notice{
  border-radius: var(--radius2);
  border: 1px solid rgba(29,78,216,.18);
  background: linear-gradient(180deg, rgba(29,78,216,.07), rgba(255,255,255,1));
  padding: 16px;
}
.notice h2{
  margin: 0 0 8px;
  font-size: 20px;
}
.notice p{
  margin: 0 0 12px;
  color: rgba(15,23,42,.78);
}
.notice-phones{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Contacts */
.contact-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
}
.contact-card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 14px;
  box-shadow: var(--shadow);
}
.contact-card h3{
  margin: 0 0 8px;
  font-size: 18px;
}
.list{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.list a{ color: #4f739b; font-weight: 800; }

.map-placeholder{
  margin: 10px 0 12px;
  height: 220px;
  border-radius: 18px;
  border: 1px dashed rgba(15,23,42,.22);
  background: repeating-linear-gradient(
    45deg,
    rgba(15,23,42,.03),
    rgba(15,23,42,.03) 10px,
    rgba(15,23,42,.06) 10px,
    rgba(15,23,42,.06) 20px
  );
  display:grid;
  place-items:center;
  color: var(--muted);
  font-weight: 800;
}


.map iframe{
  width:100%;
  border:0;
}

/* Footer */
.site-footer{
  border-top: 1px solid var(--border);
  background: #fff;
}
.footer-row{
  display:flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-copy h1{ font-size: 34px; }
  .grid.cards{ grid-template-columns: repeat(2, 1fr); }
  .contact-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 720px){
  .nav-toggle{ display: inline-flex; align-items:center; justify-content:center; }
  .nav{
    display: none;
    position: absolute;
    top: 70px;
    right: 18px;
    left: 18px;
    background:#b3b8bd;
    border:0;
    border-radius: 2px;
    padding: 8px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }
  .nav.is-open{ display: flex; }
  .nav a{ padding:14px 16px;  color:#2f3439; 	border-top:1px solid rgba(255,255,255,0.15); }
  .nav a:first-child{
    border-top:none;
  }
.nav a:hover{
  background:rgba(255,255,255,0.15);
}
  .hero-copy h1{ font-size: 28px; }
  .container{ padding: 16px; }
  .grid.cards{ grid-template-columns: 1fr; }
}


.search select{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  outline: none;
}

.search select:focus{
  border-color: rgba(29,78,216,.45);
  box-shadow: 0 0 0 4px rgba(29,78,216,.12);
}

.trip-summary-grid{
  grid-template-columns: repeat(2, 1fr);
}

.table-wrap{
  width: 100%;
  overflow-x: auto;
}

.timetable{
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.timetable th,
.timetable td{
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.timetable thead th{
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  background: #f8fbfe;
}

.timetable tbody tr:hover{
  background: rgba(29,78,216,.04);
}

@media (max-width: 980px){
  .trip-summary-grid{
    grid-template-columns: 1fr;
  }
}

.hero-next{
  margin-top: 24px;
}

.hero-next-card{
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #fff;
  border-radius: 18px;
  padding: 20px;
}

.hero-next-card h3{
  margin: 8px 0 4px;
  font-size: 18px;
}

.hero-route{
  opacity: 0.9;
  margin-bottom: 8px;
}

.hero-time{
  font-size: 28px;
  font-weight: 700;
  margin: 6px 0;
}

.hero-lines{
  margin-top: 36px;
  max-width: 520px;
}

.hero-lines h4{
  margin-bottom: 14px;

  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;

  color: #1f2a37;

  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}





.line-list li{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;

  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.line-list{
  list-style: none;
  padding: 0;
  margin: 0;
}

.line-list li{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.line-time{
  font-weight: 600;
}

.small{
  font-size: 12px;
}
.search select{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  outline: none;
}

.search select:focus{
  border-color: rgba(29,78,216,.45);
  box-shadow: 0 0 0 4px rgba(29,78,216,.12);
}

.hero-grid{
  align-items: start;
}

