
:root{--blue:#0797d4;--blue2:#0877b7;--yellow:#f9dd00;--ink:#18242c;--muted:#65737d;--bg:#f5f7f8;--card:#fff;--green:#20a55a;--line:#e4eaed}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,Arial,sans-serif;color:var(--ink);background:var(--bg);line-height:1.55;padding-bottom:76px}a{color:inherit;text-decoration:none}.container{width:min(1160px,calc(100% - 32px));margin:auto}.top{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}.nav{height:72px;display:flex;align-items:center;gap:28px}.brand{font-weight:900;font-size:20px;color:#057eae;white-space:nowrap}.brand small{display:block;font-size:11px;font-weight:700;color:#80909a;letter-spacing:.05em;text-transform:uppercase}.navlinks{display:flex;gap:22px;margin-left:auto;font-size:14px;font-weight:700}.menu-toggle{display:none;margin-left:auto;border:0;background:#eef4f7;border-radius:10px;padding:10px 12px}.hero{background:linear-gradient(135deg,#0797d4,#056ca6);color:white;padding:58px 0}.hero-grid{display:grid;grid-template-columns:1.35fr .65fr;gap:40px;align-items:center}.hero h1{font-size:48px;line-height:1.05;margin:0 0 18px}.hero p{font-size:19px;color:#eaf8ff}.facts{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:24px 0}.fact{background:rgba(255,255,255,.13);padding:16px;border-radius:14px}.fact b{display:block;font-size:18px}.cta-row{display:flex;gap:12px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;padding:14px 20px;border-radius:12px;font-weight:900;border:0;cursor:pointer}.btn-yellow{background:var(--yellow);color:#1d2428}.btn-white{background:white;color:#057daf}.hero-card img{width:100%;height:300px;object-fit:cover;border-radius:22px;box-shadow:0 22px 50px rgba(0,0,0,.25)}section{padding:52px 0}.section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:24px}.section-head h2{font-size:32px;margin:0}.section-head p{margin:0;color:var(--muted)}.widget-box{background:#fff;border-radius:18px;padding:18px;box-shadow:0 8px 28px rgba(39,70,87,.08)}.route-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.route-card{background:white;border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 5px 18px rgba(25,55,70,.05);transition:.2s}.route-card:hover{transform:translateY(-3px);box-shadow:0 10px 28px rgba(25,55,70,.12)}.route-card img{width:100%;height:170px;object-fit:cover}.route-card .pad{padding:18px}.route-card h3{margin:0 0 8px;font-size:20px}.route-meta{display:flex;justify-content:space-between;color:var(--muted);font-size:14px}.route-card .btn{width:100%;margin-top:14px}.searchbox{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 16px;width:100%;font-size:16px}.chips{display:flex;flex-wrap:wrap;gap:9px}.chip{background:#fff;border:1px solid var(--line);border-radius:999px;padding:9px 13px;font-size:14px}.info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.info-card{background:#fff;padding:22px;border-radius:18px;border:1px solid var(--line)}.info-card h3{margin-top:0}.footer{background:#18242c;color:#dce8ed;padding:44px 0 28px}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:30px}.footer a{display:block;color:#c7d3d9;margin:7px 0}.copyright{border-top:1px solid #34434c;margin-top:28px;padding-top:20px;color:#90a2ab;font-size:13px}.sticky-buy{position:fixed;z-index:100;left:50%;bottom:14px;transform:translateX(-50%);background:var(--yellow);color:#111;padding:15px 26px;border-radius:999px;font-weight:1000;box-shadow:0 8px 30px rgba(0,0,0,.25);min-width:280px;text-align:center}.crumbs{font-size:14px;color:#6f8089;padding:18px 0}.route-hero{padding:24px 0 12px}.route-hero h1{font-size:42px;line-height:1.1;margin:6px 0 12px}.route-lead{font-size:18px;color:var(--muted);max-width:800px}.route-cover{width:100%;height:420px;object-fit:cover;border-radius:22px;margin:18px 0}.actual{display:inline-flex;align-items:center;gap:9px;background:#e9f8ef;color:#12743b;border:1px solid #c7ecd5;border-radius:999px;padding:9px 14px;font-weight:800;margin:4px 0 18px}.actual:before{content:'';width:9px;height:9px;background:#23af61;border-radius:50%}.schedule{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden}.schedule-row{display:grid;grid-template-columns:1fr .9fr 1.5fr 1.5fr .9fr;align-items:center;border-bottom:1px solid var(--line)}.schedule-row:last-child{border-bottom:0}.schedule-row>div{padding:16px}.schedule-head{background:#f2f5f6;color:#6a7b85;font-size:13px;font-weight:900;text-transform:uppercase}.time{font-weight:1000;font-size:22px}.buy-mini{background:var(--yellow);border-radius:10px;padding:10px 12px;font-weight:900;text-align:center;display:block}.note{background:#fff6cf;border:1px solid #f1df82;padding:16px;border-radius:14px;color:#6d5b13}.split{display:grid;grid-template-columns:1.5fr .7fr;gap:24px}.sidebar{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px;height:max-content;position:sticky;top:90px}.sidebar h3{margin-top:0}.sidebar a{display:block;padding:9px 0;border-bottom:1px solid #edf1f3}.article{background:#fff;border:1px solid var(--line);border-radius:18px;padding:28px}.article h2{font-size:28px;margin-top:32px}.article h2:first-child{margin-top:0}.catalog-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.catalog-link{background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px;font-weight:700}.small-muted{font-size:13px;color:#788993}.mobile-card{display:none}
@media(max-width:900px){.navlinks{display:none}.menu-toggle{display:block}.hero-grid,.split{grid-template-columns:1fr}.hero h1{font-size:38px}.route-grid{grid-template-columns:repeat(2,1fr)}.catalog-grid{grid-template-columns:repeat(2,1fr)}.info-grid{grid-template-columns:1fr}.facts{grid-template-columns:1fr}.route-cover{height:280px}.sidebar{position:static}.footer-grid{grid-template-columns:1fr}.schedule{background:transparent;border:0}.schedule-head,.schedule-row.desktop-row{display:none}.mobile-card{display:block;background:white;border:1px solid #dce3e6;border-radius:17px;margin-bottom:14px;padding:18px}.mobile-top{display:grid;grid-template-columns:1fr 1fr;margin-bottom:12px}.mobile-top>div{padding:4px 14px}.mobile-top>div:first-child{border-right:1px solid #dfe5e8;padding-left:0}.mobile-label{color:#7d8a92;font-size:13px;margin-bottom:5px}.mobile-value{font-size:20px;font-weight:900}.mobile-line{border-top:1px solid #e3e8eb;padding:12px 0}.mobile-card .buy-mini{font-size:16px;padding:14px}.route-hero h1{font-size:34px}}
@media(max-width:600px){.container{width:min(100% - 22px,1160px)}.hero{padding:38px 0}.hero h1{font-size:33px}.hero-card img{height:220px}.route-grid{grid-template-columns:1fr}.catalog-grid{grid-template-columns:1fr}.section-head{align-items:start;flex-direction:column}.section-head h2{font-size:28px}.route-cover{height:220px}.sticky-buy{bottom:10px;width:calc(100% - 28px);min-width:0}.route-hero h1{font-size:30px}}

/* Вологда: светлый первый экран по эталонным сайтам проекта МАРАФОН */
.top{background:#fff;border-bottom:1px solid #e2eaf3}
.nav{height:76px}
.brand{display:inline-flex;align-items:center;gap:12px;color:#102a4d;font-weight:900;line-height:1.08;white-space:nowrap}
.brand img{display:block;flex:0 0 40px;width:40px;height:40px;object-fit:contain;border-radius:0}
.brand-copy{display:flex;flex-direction:column;gap:4px}
.brand-title{font-size:19px;letter-spacing:-.018em}
.brand small{font-size:11px;letter-spacing:0;color:#7288a4;text-transform:none}
.navlinks{align-items:center;gap:24px;font-size:14px}
.navlinks>a:not(.nav-buy):hover{color:#086dc5}
.navlinks>.nav-buy{color:#091f3e;background:#ffcf29;padding:12px 18px;border-radius:12px;transition:background .2s,transform .2s;white-space:nowrap}
.navlinks>.nav-buy:hover{background:#ffde4a;transform:translateY(-1px)}
.brand-footer .brand-title{color:#fff}
.brand-footer small{color:#b2c4d7}
.hero.hero-vologda{background:#f2f6fb;color:#0b2445;padding:26px 0 30px}
.home-hero-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:stretch}
.home-hero-content{background:#fff;border:1px solid #dfebf5;border-radius:22px;padding:30px 30px 28px;display:flex;flex-direction:column;justify-content:center;min-width:0;box-shadow:0 8px 22px rgba(14,47,83,.035)}
.home-eyebrow{font-size:13px;line-height:1.45;font-weight:850;color:#1168bd;text-transform:uppercase;letter-spacing:.105em;margin-bottom:12px}
.hero-vologda h1{font-size:45px;line-height:1.12;letter-spacing:-.035em;font-weight:850;color:#081f40;margin:0 0 13px}
.hero-vologda .home-hero-lead{font-size:16px;line-height:1.5;color:#3a5473;margin:0 0 19px;max-width:550px}
.home-hero-facts{display:grid;grid-template-columns:1.07fr 1.05fr .95fr;gap:9px;margin:0 0 17px}
.home-hero-fact{background:#f2f6fb;border:1px solid #e1eaf5;border-radius:14px;padding:12px 12px 11px;min-width:0;overflow-wrap:anywhere}
.home-hero-fact>span:first-child{display:block;font-size:12px;font-weight:750;color:#203958;margin-bottom:5px}
.home-hero-fact strong,.home-hero-fact a{font-weight:750;font-size:14px;line-height:1.35;color:#13294a;display:block}
.home-hero-fact a:hover{color:#086bc9}
.home-hero-fact .home-hero-fact-note{display:block;font-size:12px;font-weight:500;color:#5c708a;margin-top:3px}
.home-hero-actions{display:flex;flex-wrap:wrap;gap:10px}
.hero-vologda .btn{padding:13px 16px;border-radius:12px;font-size:15px;line-height:1.5;box-shadow:none}
.hero-vologda .btn-yellow{background:#ffcf25;color:#071e3b}
.hero-vologda .btn-yellow:hover{background:#ffdb4a}
.home-btn-blue{background:#1479d0;color:#fff}
.home-btn-blue:hover{background:#0864b4}
.home-hero-visual{margin:0;min-width:0;position:relative;overflow:hidden;aspect-ratio:1.49;border-radius:22px;align-self:stretch;background:#e5edf6}
.home-hero-visual img{width:100%;height:100%;object-fit:cover;object-position:center center;display:block}
.home-hero-visual figcaption{position:absolute;bottom:17px;left:18px;background:rgba(7,28,57,.80);color:#fff;font-size:15px;font-weight:800;padding:9px 16px;border-radius:11px}
@media (max-width: 1060px){
 .hero-vologda h1{font-size:39px}
 .home-hero-content{padding:24px}
 .home-hero-facts{grid-template-columns:1fr 1fr}
 .home-hero-fact:last-child{grid-column:1/-1}
 .navlinks{gap:14px;font-size:13px}
}
@media (max-width: 900px){
 .home-hero-grid{grid-template-columns:1fr;gap:16px}
 .home-hero-content{padding:30px}
 .home-hero-facts{grid-template-columns:repeat(3,minmax(0,1fr))}
 .home-hero-fact:last-child{grid-column:auto}
 .home-hero-visual{aspect-ratio:1.7}
 .navlinks{display:none}
}
@media (max-width: 600px){
 .nav{height:70px}
 .brand{gap:9px}
 .brand img{width:36px;height:36px;flex-basis:36px}
 .brand-title{font-size:16px}
 .brand small{font-size:10px}
 .hero.hero-vologda{padding:16px 0 21px}
 .home-hero-content{padding:22px 18px;border-radius:18px}
 .home-eyebrow{font-size:11px;margin-bottom:9px}
 .hero-vologda h1{font-size:34px;margin-bottom:12px}
 .hero-vologda .home-hero-lead{font-size:15px;margin-bottom:17px}
 .home-hero-facts{grid-template-columns:1fr 1fr;gap:8px}
 .home-hero-fact:last-child{grid-column:1/-1}
 .home-hero-fact{padding:11px 10px}
 .home-hero-fact strong,.home-hero-fact a{font-size:13px}
 .home-hero-actions{display:grid;grid-template-columns:1fr;gap:9px}
 .home-hero-actions .btn{width:100%}
 .home-hero-visual{aspect-ratio:1.48;border-radius:18px}
 .home-hero-visual figcaption{bottom:12px;left:12px;padding:7px 12px}
}
@media (prefers-reduced-motion:reduce){.navlinks>.nav-buy{transition:none}}
/* Do not let the landscape image force the equal-width desktop grid wider. */
@media(min-width:901px){.home-hero-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.home-hero-visual{width:100%;aspect-ratio:auto;min-height:390px}.home-hero-visual img{position:absolute;inset:0}}


/* Mobile overflow and unified brand — 10.10.2026 */
/* Do not let embedded search widgets make the document wider than its viewport.
   overflow-x:clip avoids the scrolling-container side effect of overflow-x:hidden,
   preserving the sticky header on modern mobile browsers. */
html,body{max-width:100%;overflow-x:clip}
body{width:100%;min-width:0}
.container,.nav,.route-hero,.split,.article,.sidebar,.widget-box,
.route-grid,.info-grid,.catalog-grid,.route-card,.info-card,
.home-hero-grid,.home-hero-content,.home-hero-visual,
.schedule,.mobile-card{min-width:0;max-width:100%}
.container{min-width:0}
img,svg,video,canvas{max-width:100%;height:auto}
/* All pages share the same SVG-free logo built from the supplied favicon PNG. */
.top .brand,.footer .brand{display:inline-flex;align-items:center;gap:12px;max-width:100%;min-width:0;white-space:normal;color:#102a4d;font-weight:900;line-height:1.08}
.top .brand img,.footer .brand img{display:block;width:40px;height:40px;max-width:none;flex:0 0 40px;object-fit:contain;border-radius:0}
.top .brand-copy,.footer .brand-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.top .brand-title,.footer .brand-title{font-size:19px;letter-spacing:-.018em;line-height:1.1}
.top .brand small,.footer .brand small{display:block;font-size:11px;letter-spacing:0;text-transform:none;line-height:1.15;color:#7288a4}
.footer .brand-title{color:#fff}.footer .brand small{color:#b2c4d7}
/* Widgets are third-party embeds. Their interiors may use fixed-width elements. */
.widget-box{width:100%;overflow-x:clip;overflow-wrap:anywhere}
.widget-box iframe,.widget-box object,.widget-box embed{display:block;width:100%!important;max-width:100%!important;min-width:0!important}
.widget-box :is(table,form){max-width:100%}
.widget-box :is(div,section,article)[style*="width:"]{max-width:100%!important}
@media(max-width:900px){
 .nav{min-width:0}
 .navlinks{max-width:100%}
 .split{grid-template-columns:minmax(0,1fr)}
 .hero-grid,.home-hero-grid{grid-template-columns:minmax(0,1fr)}
 .route-grid,.info-grid,.catalog-grid,.footer-grid{min-width:0}
 .article,.sidebar,.widget-box{min-width:0;width:100%;max-width:100%;overflow-wrap:anywhere}
 .article{padding:20px}
 .schedule,.schedule-row,.mobile-card,.mobile-top{min-width:0;max-width:100%}
 .mobile-top{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .mobile-top>div,.mobile-line{min-width:0;overflow-wrap:anywhere}
 .route-hero h1,.route-lead,.section-head h2{overflow-wrap:break-word}
 .route-cover{display:block;width:100%;max-width:100%;object-fit:cover}
}
@media(max-width:600px){
 .container{width:calc(100% - 24px);max-width:1160px}
 .nav{gap:12px}
 .top .brand,.footer .brand{gap:9px}
 .top .brand img,.footer .brand img{width:36px;height:36px;flex-basis:36px}
 .top .brand-title,.footer .brand-title{font-size:16px}
 .top .brand small,.footer .brand small{font-size:10px}
 .menu-toggle{flex:0 0 auto;max-width:100%}
 .route-hero{max-width:100%}
 .route-hero h1{font-size:clamp(26px,8vw,32px);line-height:1.16}
 .route-lead{font-size:16px;line-height:1.55}
 .route-cover{height:auto;aspect-ratio:16/9}
 .article{padding:16px;border-radius:16px}
 .widget-box{padding:12px;border-radius:16px}
 .home-hero-content,.home-hero-visual{min-width:0}
 .sticky-buy{box-sizing:border-box;max-width:calc(100% - 24px)}
}
@media(max-width:359px){
 .top .brand-title{font-size:14px}
 .top .brand small{font-size:9px}
 .menu-toggle{font-size:12px;padding:8px 9px}
 .nav{gap:6px}
}


/* === Mobile viewport stability: revision 3, 2026-10-10 ===
   Third-party bus ticket / ad embeds may add wide nodes asynchronously.
   Keep those nodes within their allocated column and keep the page viewport fixed. */
html,body{width:100%;max-width:100%;min-width:0;margin-left:0;margin-right:0}
.container,.route-hero,.split,.widget-box,.article,.sidebar,.schedule,.route-grid,.catalog-grid,.info-grid,.footer-grid,
.route-card,.info-card,.home-hero-grid,.home-hero-content,.home-hero-visual{box-sizing:border-box;min-width:0;max-width:100%}
.widget-box{isolation:isolate;overflow-x:clip;overflow-wrap:anywhere}
.widget-box :is(iframe,embed,object){max-width:100%!important;min-width:0!important}
.widget-box :is(div,section,article,form,table)[style*="min-width"]{min-width:0!important;max-width:100%!important}
.widget-box :is(div,section,article,form,table)[style*="width:"]{max-width:100%!important}
@media (max-width:900px){
 html{width:100%!important;max-width:100%!important;overflow-x:hidden!important;overscroll-behavior-x:none}
 body{box-sizing:border-box;width:100%!important;max-width:100vw!important;min-width:0!important;overflow-x:hidden!important;padding-top:70px!important}
 .top{position:fixed!important;top:0;left:0;right:0;width:100%;max-width:100%;z-index:1000}
 .top .nav{height:70px;min-width:0;max-width:100%;width:calc(100% - 24px);gap:8px;display:flex}
 .top .brand{min-width:0;flex:0 1 auto;white-space:normal;max-width:calc(100% - 80px)}
 .top .brand-copy{min-width:0}
 .top .brand-title{overflow-wrap:break-word}
 .top .menu-toggle{flex:0 0 auto;margin-left:auto}
 .container{width:calc(100% - 24px)!important;max-width:1160px!important;margin-left:auto!important;margin-right:auto!important;min-width:0!important}
 .split,.hero-grid,.home-hero-grid{grid-template-columns:minmax(0,1fr)!important}
 main.route-hero{display:block;width:100%;max-width:100%;padding-left:0;padding-right:0;min-width:0}
 .route-hero h1{width:100%;max-width:100%;min-width:0;font-size:clamp(26px,7.7vw,34px);overflow-wrap:anywhere}
 .route-hero .route-lead{max-width:100%;min-width:0;overflow-wrap:anywhere}
 .route-hero .route-cover{display:block;width:100%;max-width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
 .article,.sidebar,.widget-box,.schedule,.mobile-card,.info-card,.route-card{max-width:100%;min-width:0}
 .widget-box :is(iframe,embed,object){display:block;width:100%!important;max-width:100%!important;min-width:0!important}
 .widget-box :is(div,section,article,form,table)[style*="min-width"]{min-width:0!important}
 .widget-box :is(div,section,article,form,table)[style*="width:"]{max-width:100%!important}
 .widget-box>*,.widget-box>div>*,.widget-box>section>*{max-width:100%}
 .route-grid,.catalog-grid,.info-grid,.footer-grid{min-width:0}
 .mobile-top{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .mobile-top>div,.mobile-line{min-width:0}
 .sticky-buy{max-width:calc(100vw - 24px)}
}
@media(max-width:359px){
 .top .brand-title{font-size:14px}
 .top .brand small{font-size:9px}
 .top .brand{max-width:calc(100% - 72px)}
}
