
:root{--blue:#0874d1;--dark:#071d3b;--sky:#eaf4fb;--yellow:#ffd52a;--green:#eafbf0;--line:#dce7f2;--muted:#61758d;--card:#fff;--bg:#f3f7fb}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:#081b34;line-height:1.55;padding-bottom:86px}a{color:inherit}img{max-width:100%;height:auto}.container{width:min(1240px,calc(100% - 32px));margin:auto}.header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}.nav{display:flex;align-items:center;gap:22px;min-height:88px}.brand{display:flex;align-items:center;gap:14px;color:var(--dark);text-decoration:none;white-space:nowrap;min-width:0}.brand-logo{width:40px;height:40px;display:block;flex:0 0 40px}.brand-text{display:flex;flex-direction:column;min-width:0}.brand-text strong{display:block;font-size:20px;line-height:1.1;font-weight:800;color:var(--dark)}.brand-text small{display:block;font-size:12px;color:var(--muted);font-weight:500;margin-top:4px}.menu{display:flex;gap:20px;margin-left:auto;align-items:center}.menu a{text-decoration:none;font-weight:700;font-size:14px}.cta{display:inline-flex;align-items:center;justify-content:center;background:var(--yellow);color:#061b36!important;border-radius:16px;padding:15px 24px;font-weight:800;text-decoration:none;border:0}.cta.secondary{background:#eaf4fd;color:var(--blue)!important;border:1px solid #cfe2f6}.hero{padding:24px 0 22px;background:#eff5fa}.hero-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:stretch}.hero-copy,.hero-photo,.card,.widgetbox{background:#fff;border:1px solid var(--line);border-radius:24px;overflow:hidden}.hero-copy{padding:32px 36px}.eyebrow{font-size:13px;text-transform:uppercase;letter-spacing:.12em;color:var(--blue);font-weight:800}.hero h1{font-size:42px;line-height:1.04;margin:8px 0 14px}.hero p{color:var(--muted);font-size:17px;margin:0}.hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin:22px 0 20px}.facts{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:0}.fact{background:#f5f9fd;border-radius:14px;padding:12px 14px;min-width:0;font-size:14px}.fact b{display:block}.hero-photo{min-height:0}.hero-photo img{width:100%;height:100%;min-height:0;object-fit:cover;display:block}.hero-grid>.hero-copy,.hero-grid>.hero-photo{min-height:410px;max-height:410px}.hero-copy{display:flex;flex-direction:column;justify-content:center}.section{padding:26px 0}.section h2{font-size:32px;line-height:1.2;margin:0 0 10px}.lead{color:var(--muted);margin:0 0 22px}.widgetbox{padding:22px}.directions{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.dir-card{position:relative;height:220px;border-radius:20px;overflow:hidden;background:#0c3157;color:#fff;text-decoration:none;box-shadow:0 10px 30px rgba(18,56,91,.12)}.dir-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:.35s;filter:saturate(1.06) contrast(1.02)}.dir-card:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.02) 38%,rgba(0,0,0,.76) 100%)}.dir-card:hover img{transform:scale(1.04)}.dir-card .txt{position:absolute;z-index:2;left:18px;right:18px;bottom:17px}.dir-card strong{font-size:23px;display:block}.dir-card small{opacity:.9}.route-list{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.route-link{background:#fff;border:1px solid var(--line);border-radius:15px;padding:16px;text-decoration:none;font-weight:800;display:flex;justify-content:space-between}.route-link span{color:var(--blue)}.split{display:grid;grid-template-columns:2fr 1fr;gap:22px}.card{padding:24px}.notice{background:#fff7db;border:1px solid #f0d777;border-radius:16px;padding:16px}.current-badge{display:inline-flex;align-items:center;background:var(--green);border:1px solid #79dda0;color:#08733b;border-radius:999px;padding:8px 13px;font-size:13px;font-weight:800}.schedule{width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff}.schedule th{background:#eaf5fd;font-size:12px;text-transform:uppercase;letter-spacing:.06em;text-align:left;padding:13px}.schedule td{padding:13px;border-top:1px solid var(--line);vertical-align:middle}.schedule .buy{background:var(--yellow);border-radius:12px;text-decoration:none;font-weight:800;padding:11px 14px;display:inline-block}.route-head{padding:34px 0 14px}.route-head h1{font-size:42px;margin:6px 0 8px}.route-head p{color:var(--muted)}.info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.info-grid .mini{background:#f5f9fd;border-radius:14px;padding:16px}.mini b{display:block;font-size:20px}.fixed-buy{position:fixed;left:50%;bottom:16px;transform:translateX(-50%);z-index:50;background:var(--yellow);border:1px solid #f0c100;box-shadow:0 12px 34px rgba(0,0,0,.22);padding:16px 34px;border-radius:16px;text-decoration:none;font-weight:900;font-size:18px;min-width:260px;text-align:center}.footer{background:#071d3b;color:#d9e6f2;margin-top:38px;padding:38px 0}.footer a{color:#fff}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:30px}.footer .brand{display:block;font-size:20px;font-weight:800}.legal{font-size:13px;color:#9fb3c8}.mobile-toggle{display:none;background:none;border:0;font-size:26px}.breadcrumbs{font-size:13px;color:var(--muted);margin-bottom:8px}.breadcrumbs a{color:var(--blue)}.passenger-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.passenger-grid .card h3{margin-top:0}.source-note{font-size:12px;color:#71859a;margin-top:8px}.avia-wrap{background:linear-gradient(135deg,#071d3b,#0c73fe);color:white;border-radius:24px;padding:26px}.avia-wrap h2{color:white}.photo-source{font-size:11px;color:#71859a}.route-photo-section{padding-top:10px}.route-photo{margin:0;background:#fff;border:1px solid var(--line);border-radius:22px;overflow:hidden;box-shadow:0 10px 30px rgba(18,56,91,.08)}.route-photo img{display:block;width:100%;height:320px;object-fit:cover;object-position:center}.mapbox iframe{width:100%;height:380px;border:0;border-radius:18px}.warning{background:#fff3cd;border:1px solid #ffe69c;padding:14px;border-radius:12px}
@media(max-width:850px){.container{width:min(100% - 20px,720px)}.menu{display:none;position:absolute;top:88px;left:10px;right:10px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;box-shadow:0 14px 35px rgba(0,0,0,.12);flex-direction:column;align-items:stretch}.menu.open{display:flex}.mobile-toggle{display:block;margin-left:auto}.nav>.cta{display:none}.hero-grid,.split,.footer-grid{grid-template-columns:1fr}.hero-grid>.hero-copy,.hero-grid>.hero-photo{min-height:0;max-height:none}.hero-copy{padding:26px}.hero h1,.route-head h1{font-size:34px}.hero-actions{margin:22px 0}.hero-photo{order:2}.hero-photo img{min-height:260px;max-height:330px}.directions{grid-template-columns:1fr 1fr}.route-list,.passenger-grid{grid-template-columns:1fr 1fr}.schedule thead{display:none}.schedule,.schedule tbody,.schedule tr,.schedule td{display:block;width:100%}.schedule{border:0;background:transparent}.schedule tr{border:1px solid var(--line);border-radius:18px;background:#fff;padding:14px;margin-bottom:14px}.schedule td{border:0;border-bottom:1px solid var(--line);padding:9px 0}.schedule td:last-child{border:0;padding-top:14px}.schedule td:before{content:attr(data-label);display:block;text-transform:uppercase;font-size:11px;letter-spacing:.08em;color:#6b7f96;font-weight:800}.schedule .buy{display:block;text-align:center;font-size:17px;padding:14px}.info-grid{grid-template-columns:1fr}.widgetbox{padding:14px;overflow:hidden}.route-photo img{height:220px}.fixed-buy{left:12px;right:12px;transform:none;bottom:12px;min-width:0}}
@media(max-width:540px){.directions,.route-list,.passenger-grid{grid-template-columns:1fr}.dir-card{height:190px}.hero h1,.route-head h1{font-size:30px}.section h2{font-size:26px}.brand-logo{width:36px;height:36px}.brand-text strong{font-size:16px}.brand-text small{font-size:11px}.facts{grid-template-columns:1fr;gap:12px}.fact{width:100%}}


/* v7: unified header + mobile overflow protection */
html,body{width:100%;max-width:100%;overflow-x:hidden}
body{min-width:0}
.container{max-width:1240px;width:calc(100% - 32px);min-width:0}
.nav{position:relative;min-width:0}
.brand{min-width:0;max-width:100%;flex:0 1 auto}
.brand-text{min-width:0}
.brand-text strong,.brand-text small{overflow:hidden;text-overflow:ellipsis}
.menu{min-width:0}
.split,.split>*,.widgetbox,.card,.avia-wrap,.route-head,.section{min-width:0;max-width:100%}
.widgetbox,.avia-wrap{overflow:hidden}
.widgetbox iframe,.avia-wrap iframe{display:block;max-width:100%!important;width:100%!important}
.widgetbox>div,.avia-wrap>div{max-width:100%!important}
.breadcrumbs,.route-head h1,.route-head p{overflow-wrap:anywhere;word-break:normal}
.route-photo{width:100%;max-width:100%}
.route-photo img{width:100%;max-width:100%;height:320px;object-fit:cover;display:block}

@media(max-width:850px){
  .container{width:calc(100% - 20px);max-width:720px}
  .header{position:sticky;top:0}
  .nav{min-height:72px;gap:10px}
  .brand{gap:10px;max-width:calc(100% - 48px);white-space:normal}
  .brand-logo{width:34px;height:34px;flex:0 0 34px}
  .brand-text strong{font-size:16px;white-space:nowrap}
  .brand-text small{font-size:11px;white-space:nowrap}
  .mobile-toggle{display:block;flex:0 0 38px;margin-left:auto;padding:4px;line-height:1}
  .menu{display:none;position:absolute;top:68px;left:0;right:0;width:auto;max-width:100%;margin:0;background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px;box-shadow:0 14px 35px rgba(0,0,0,.12);z-index:100;overflow:hidden}
  .menu.open{display:flex}
  .menu a{display:block;width:100%;padding:8px 6px}
  .header-buy{display:none!important}
  .route-head{padding:22px 0 8px}
  .route-head h1{font-size:30px;line-height:1.12}
  .section{padding:18px 0}
  .split{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
  .widgetbox{padding:14px;width:100%}
  .route-photo img{height:220px}
}

@media(max-width:480px){
  .container{width:calc(100% - 16px)}
  .brand{max-width:calc(100% - 44px)}
  .brand-text strong{font-size:15px}
  .brand-text small{font-size:10px}
  .route-head h1{font-size:27px}
  .widgetbox{border-radius:18px;padding:12px}
}


/* v8: route purchase layout and hard widget containment */
.route-buy-section{overflow:hidden}
.route-buy-grid{display:block!important;min-width:0}
.route-buy-grid>div{width:100%;min-width:0;max-width:100%}
.route-ticket-box{width:100%;max-width:100%;min-width:0;overflow:hidden}
.ticket-widget-shell{display:block;width:100%;max-width:100%;min-width:0;overflow:hidden}
.ticket-widget-shell>iframe,.ticket-widget-shell>div,.ticket-widget-shell>ins,.ticket-widget-shell>span{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
.ticket-widget-shell iframe{border:0!important;overflow:hidden!important}


@media(max-width:850px){.route-buy-section{padding-top:16px}.route-ticket-box{padding:12px}.ticket-widget-shell{overflow:hidden}}
.route-buy-grid .widgetbox{width:100%;max-width:100%;min-width:0}.route-buy-grid .ticket-widget-shell{width:100%;max-width:100%;min-width:0}.route-buy-grid .ticket-widget-shell *{max-width:100%!important;box-sizing:border-box!important}
/* v10: keep route ticket block aligned with the global site container */
.route-buy-grid.container{
  width:calc(100% - 32px)!important;
  max-width:1240px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
@media(max-width:850px){
  .route-buy-grid.container{
    width:calc(100% - 20px)!important;
    max-width:720px!important;
  }
}
@media(max-width:480px){
  .route-buy-grid.container{
    width:calc(100% - 16px)!important;
  }
}

@media(max-width:850px){.schedule td:last-child:before{display:none}}

/* v12: neat alignment for the "Актуально" badge above schedules */
.schedule-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}
.schedule-header>div{min-width:0}
.schedule-header .lead{margin-bottom:0}
.schedule-header .current-badge{
  flex:0 0 auto;
  margin-left:auto;
  margin-bottom:2px;
}
@media(max-width:850px){
  .schedule-header{
    flex-direction:column;
    align-items:stretch;
    gap:12px;
    margin-bottom:16px;
  }
  .schedule-header .current-badge{
    align-self:flex-end;
    margin-left:0;
    margin-right:0;
    margin-bottom:0;
  }
}
