
:root{--blue:#062a5a;--blue2:#0d4d8f;--cyan:#09a9e8;--yellow:#ffd52f;--bg:#f1f5f9;--card:#fff;--line:#dbe5ef;--muted:#64748b;--green:#e9fff0;--green-border:#79dea0;--max:1180px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Arial,"Helvetica Neue",sans-serif;color:#061c3b;background:var(--bg);line-height:1.55;padding-bottom:82px}a{color:#075fd8;text-decoration:none}a:hover{text-decoration:underline}img{max-width:100%;display:block}.container{width:min(var(--max),calc(100% - 32px));margin:auto}.topbar{background:#041f43;color:#dce9f8;font-size:13px}.topbar .container{display:flex;justify-content:space-between;gap:20px;padding:8px 0}.site-header{background:#fff;border-bottom:1px solid #e2e8f0;position:sticky;top:0;z-index:50}.header-inner{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:28px}.brand{display:flex;align-items:center;gap:12px;color:#061c3b;font-weight:800;font-size:20px;text-decoration:none}.brand img{width:42px;height:42px}.nav{display:flex;align-items:center;gap:24px;font-weight:700;font-size:14px}.nav a{color:#17365d}.nav-buy{background:var(--yellow);padding:11px 17px;border-radius:12px!important;color:#071c35!important}.menu-btn{display:none;border:0;background:#eef4fa;border-radius:10px;padding:9px 11px;font-size:22px}.hero{padding:36px 0 26px}.hero-grid{display:grid;grid-template-columns:1.12fr .88fr;gap:24px}.hero-copy,.hero-photo,.card,.widget-card,.schedule-panel,.sidebar-card{background:#fff;border:1px solid #dce6ef;border-radius:22px;box-shadow:0 8px 28px rgba(9,35,68,.04)}.hero-copy{padding:34px}.eyebrow{font-size:13px;font-weight:800;color:#0b66c3;text-transform:uppercase;letter-spacing:.08em}.hero h1{font-size:42px;line-height:1.12;margin:10px 0 14px;letter-spacing:-.02em}.hero p{font-size:18px;color:#53667d;max-width:670px}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:12px 20px;border-radius:13px;font-weight:800;text-decoration:none!important}.btn-primary{background:var(--yellow);color:#06182d}.btn-secondary{background:#e8f4ff;color:#0754a4}.hero-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:28px}.mini{background:#f7fafc;border:1px solid #e1e9f1;border-radius:14px;padding:12px}.mini b{display:block;font-size:13px;color:#60748a;margin-bottom:3px}.hero-photo{overflow:hidden;min-height:360px;position:relative}.hero-photo img{width:100%;height:100%;min-height:360px;object-fit:cover}.hero-photo:after{content:"Уфа";position:absolute;left:22px;bottom:18px;background:rgba(2,27,58,.84);color:#fff;padding:9px 14px;border-radius:10px;font-weight:800;font-size:22px}.section{padding:26px 0}.section h2{font-size:30px;line-height:1.2;margin:0 0 10px}.lead{color:#60728a;margin:0 0 20px}.widget-card{padding:22px;overflow:hidden}.route-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.route-card{position:relative;border-radius:18px;overflow:hidden;min-height:190px;background:#17375e;color:#fff;box-shadow:0 5px 22px rgba(0,0,0,.08)}.route-card img{width:100%;height:190px;object-fit:cover;transition:.25s}.route-card:hover img{transform:scale(1.03)}.route-card:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 35%,rgba(0,22,48,.86) 100%)}.route-card .route-label{position:absolute;z-index:2;left:17px;right:17px;bottom:14px}.route-card .route-label strong{display:block;font-size:21px;color:#fff}.route-card .route-label span{color:#e6eef8;font-size:14px}.quick-links{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.quick-links a{background:#fff;border:1px solid #dce6ef;border-radius:13px;padding:13px 14px;font-weight:700;color:#17365d}.info-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.card{padding:24px}.facts{display:grid;grid-template-columns:1fr 1fr;gap:12px}.fact{padding:15px;border-radius:14px;background:#f7fafc;border:1px solid #e3ebf3}.fact b{display:block;color:#60748a;font-size:12px;text-transform:uppercase;letter-spacing:.05em}.page-wrap{padding:22px 0 42px}.breadcrumbs{font-size:13px;color:#75879b;margin:4px 0 16px}.breadcrumbs a{color:#5d718a}.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 284px;gap:22px}.main-card{background:#fff;border:1px solid #dce6ef;border-radius:20px;padding:24px}.main-card h1{font-size:30px;line-height:1.2;margin:0 0 10px}.main-card .intro{color:#445b75;margin-bottom:18px}.route-widget{border:1px solid #dce6ef;border-radius:20px;padding:20px;overflow:hidden;background:#fff;box-shadow:0 10px 30px rgba(13,54,91,.05)}.route-widget h2{margin:0 0 8px;font-size:25px}.schedule-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:26px 0 12px}.schedule-head h2{font-size:26px;margin:0}.actual{display:inline-flex;align-items:center;white-space:nowrap;background:var(--green);border:1px solid var(--green-border);border-radius:999px;padding:7px 12px;color:#087b35;font-size:12px;font-weight:800}.schedule-note{color:#697d94;font-size:14px;margin:0 0 16px}.schedule-table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid #d9e4ee;border-radius:16px;overflow:hidden}.schedule-table th{background:#eaf6ff;text-align:left;text-transform:uppercase;letter-spacing:.04em;font-size:11px;color:#526b84;padding:12px}.schedule-table td{padding:13px 12px;border-top:1px solid #dfe8f1;vertical-align:middle}.schedule-table tbody tr:first-child td{border-top:0}.time{font-size:16px;font-weight:800}.buy-sm{display:inline-flex;background:var(--yellow);color:#071c35!important;padding:10px 13px;border-radius:11px;font-weight:800;text-decoration:none!important;white-space:nowrap}.sidebar{display:flex;flex-direction:column;gap:16px}.sidebar-card{padding:17px}.sidebar-card h3{margin:0 0 14px;font-size:17px}.side-row{font-size:14px;margin:10px 0}.side-row b{display:inline-block;min-width:60px}.full-btn{width:100%;margin-top:10px}.text-section{margin-top:26px}.text-section h2{font-size:24px;margin-bottom:9px}.text-section p{color:#384f69}.faq details{border:1px solid #dde7ef;border-radius:13px;padding:13px 15px;margin:9px 0;background:#fff}.faq summary{font-weight:800;cursor:pointer}.faq p{margin:10px 0 0}.related{display:flex;flex-wrap:wrap;gap:8px}.related a{background:#edf6ff;border-radius:999px;padding:8px 12px;font-size:13px;font-weight:700}.widget-extra{margin-top:22px;border-top:1px solid #e4ebf2;padding-top:20px}.widget-extra h2{font-size:23px}.all-routes{columns:3;column-gap:20px}.all-routes a{display:block;break-inside:avoid;background:#fff;border:1px solid #e0e8f0;border-radius:10px;padding:9px 11px;margin:0 0 8px;color:#17365d;font-weight:700}.footer{background:#071d39;color:#ccd9e8;margin-top:36px;padding:36px 0 22px}.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:30px}.footer h3{color:#fff;margin-top:0}.footer a{color:#e5effa}.footer small{color:#9fb2c8}.sticky-buy{position:fixed;z-index:100;left:50%;transform:translateX(-50%);bottom:14px;background:var(--yellow);color:#06182d!important;font-weight:900;font-size:17px;padding:14px 32px;border-radius:14px;box-shadow:0 10px 30px rgba(4,29,61,.25);text-decoration:none!important;border:2px solid rgba(255,255,255,.75)}.notice{background:#fff8d7;border:1px solid #f0d55f;border-radius:12px;padding:12px 14px;color:#634f00;font-size:14px}.route-count{font-weight:800;color:#0a62b8}.city-list-section{padding:18px 0}.source-note{font-size:12px;color:#70849a}.photo-credit{font-size:13px;padding:11px;border-bottom:1px solid #e2e8f0}.photo-credit:last-child{border:0}
@media(max-width:900px){.hero-grid,.content-grid,.info-grid{grid-template-columns:1fr}.route-grid{grid-template-columns:repeat(2,1fr)}.quick-links{grid-template-columns:repeat(2,1fr)}.sidebar{display:grid;grid-template-columns:1fr 1fr}.hero-photo{min-height:280px}.hero-photo img{min-height:280px}.nav{display:none;position:absolute;top:72px;left:0;right:0;background:#fff;padding:16px 20px;border-top:1px solid #e3eaf1;box-shadow:0 12px 24px rgba(0,0,0,.08);flex-direction:column;align-items:stretch}.nav.open{display:flex}.menu-btn{display:block}.all-routes{columns:2}}
@media(max-width:620px){body{padding-bottom:88px}.container{width:min(100% - 20px,var(--max))}.topbar .container{display:block}.topbar .container span:last-child{display:none}.header-inner{min-height:62px}.brand{font-size:17px}.brand img{width:36px;height:36px}.nav{top:62px}.hero{padding-top:18px}.hero-copy{padding:22px}.hero h1{font-size:31px}.hero p{font-size:16px}.hero-meta{grid-template-columns:1fr}.hero-photo{min-height:240px}.hero-photo img{min-height:240px}.section h2{font-size:25px}.route-grid{grid-template-columns:1fr 1fr;gap:10px}.route-card,.route-card img{min-height:138px;height:138px}.route-card .route-label strong{font-size:17px}.route-card .route-label span{font-size:12px}.widget-card,.main-card{padding:15px;border-radius:16px}.main-card h1{font-size:26px}.route-widget{padding:14px}.route-widget h2{font-size:23px}.schedule-head{display:block}.actual{margin-top:10px}.schedule-table,.schedule-table tbody,.schedule-table tr,.schedule-table td{display:block;width:100%}.schedule-table{border:0;background:transparent}.schedule-table thead{display:none}.schedule-table tr{background:#fff;border:1px solid #dce6ef;border-radius:18px;padding:14px 16px;margin:0 0 14px;box-shadow:0 4px 15px rgba(4,31,66,.03)}.schedule-table td{border:0!important;padding:7px 0;display:grid;grid-template-columns:126px 1fr;gap:8px}.schedule-table td::before{content:attr(data-label);font-size:11px;font-weight:800;color:#75889e;text-transform:uppercase;letter-spacing:.06em}.schedule-table td.time{font-size:20px}.schedule-table td:last-child{display:block;padding-top:12px;border-top:1px solid #e3eaf2!important;margin-top:6px}.schedule-table td:last-child::before{display:none}.buy-sm{width:100%;justify-content:center;font-size:18px;padding:13px}.sidebar{grid-template-columns:1fr}.quick-links{grid-template-columns:1fr 1fr}.all-routes{columns:1}.footer-grid{grid-template-columns:1fr}.sticky-buy{bottom:11px;width:calc(100% - 36px);text-align:center;padding:13px 16px}.facts{grid-template-columns:1fr}.route-grid{grid-template-columns:1fr}.route-card,.route-card img{height:175px}.schedule-head h2{font-size:24px}}


/* Mobile width hardening: keep every page and third-party widget inside viewport */
html,body{width:100%;max-width:100%;overflow-x:hidden}
.container,.content-grid,.main-card,.route-widget,.widget-card,.widget-extra,.sidebar,.sidebar-card,.card,.hero-copy,.hero-photo{min-width:0;max-width:100%}
.content-grid>*{min-width:0}
iframe{max-width:100%;border:0}
.route-widget iframe,.widget-card iframe,.widget-extra iframe{display:block;width:100%!important;max-width:100%!important;min-width:0!important}
.route-widget>div,.widget-card>div,.widget-extra>div{max-width:100%!important;min-width:0!important}
.main-card,.route-widget,.widget-card,.widget-extra{overflow:hidden}
h1,h2,h3,p,a,span,div,td,th{overflow-wrap:break-word}

@media(max-width:620px){
  .container{width:100%;max-width:100%;padding-left:10px;padding-right:10px}
  .page-wrap{padding-top:12px}
  .breadcrumbs{max-width:100%;white-space:normal;overflow-wrap:anywhere;margin-bottom:12px}
  .main-card{width:100%;max-width:100%;padding:12px;overflow:hidden}
  .main-card h1{font-size:23px;line-height:1.2;overflow-wrap:anywhere}
  .main-card .intro{font-size:14px;line-height:1.45;overflow-wrap:anywhere}
  .route-widget{width:100%;max-width:100%;padding:10px;overflow:hidden}
  .route-widget *{max-width:100%}
  .schedule-head{width:100%;max-width:100%}
  .schedule-head h2{font-size:22px;overflow-wrap:anywhere}
  .actual{max-width:100%;white-space:normal;text-align:center;line-height:1.25}
  .schedule-table,.schedule-table tbody{width:100%;max-width:100%}
  .schedule-table tr{width:100%;max-width:100%;overflow:hidden;padding:13px 12px}
  .schedule-table td{width:100%;max-width:100%;min-width:0;grid-template-columns:minmax(86px,106px) minmax(0,1fr);gap:8px}
  .schedule-table td>*{min-width:0;max-width:100%}
  .schedule-table td:last-child{width:100%;max-width:100%}
  .buy-sm{display:flex;width:100%;max-width:100%;box-sizing:border-box;justify-content:center;white-space:normal;text-align:center}
  .sidebar,.sidebar-card,.text-section,.related,.faq{width:100%;max-width:100%;min-width:0}
  .widget-extra{width:100%;max-width:100%;overflow:hidden}
  .sticky-buy{left:12px;right:12px;transform:none;width:auto;max-width:calc(100vw - 24px);box-sizing:border-box}
  .brand{min-width:0;max-width:calc(100% - 58px)}
  .brand span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}


/* Homepage hero refinement v4 */
.hero{padding:28px 0 20px}.hero-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;align-items:stretch}.hero-copy{padding:28px 30px}.hero h1{font-size:34px;line-height:1.08;margin:8px 0 12px}.hero p{font-size:16px;line-height:1.45;margin:0;color:#53667d;max-width:none}.hero-meta{margin-top:16px;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.mini{padding:14px 15px;background:#f3f7fb}.mini b{font-size:12px;text-transform:none;color:#41576f;margin-bottom:6px}.hero-actions{margin-top:18px}.hero-photo{min-height:0;padding:0;display:block;overflow:hidden}.hero-scene{position:relative;height:100%;min-height:320px;border-radius:22px;overflow:hidden;background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.02)), url('/assets/images/city-image.php?city=ufa') center/cover no-repeat}.hero-scene:before{content:'';position:absolute;inset:auto 0 0 0;height:36%;background:linear-gradient(180deg,rgba(9,34,63,0) 0%, rgba(9,34,63,.08) 36%, rgba(9,34,63,.20) 100%)}.hero-bus-visual{position:absolute;left:3%;right:2%;bottom:4%;width:95%;height:auto;filter:drop-shadow(0 20px 24px rgba(0,0,0,.16))}.hero-scene-badge{position:absolute;top:16px;left:16px;background:rgba(255,255,255,.9);backdrop-filter:blur(4px);color:#08284e;font-weight:800;font-size:13px;padding:9px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.7)}
@media(max-width:900px){.hero-grid{grid-template-columns:1fr}.hero-scene{min-height:300px}}
@media(max-width:620px){.hero{padding-top:12px;padding-bottom:16px}.hero-copy{padding:18px}.hero h1{font-size:28px}.hero p{font-size:15px}.hero-meta{grid-template-columns:1fr 1fr}.hero-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.hero-actions .btn{width:100%}.hero-scene{min-height:220px}.hero-scene-badge{font-size:12px;padding:7px 10px;top:12px;left:12px}.hero-bus-visual{left:1%;right:1%;width:99%;bottom:1%}.mini{padding:12px}.mini b{font-size:11px}}
@media(max-width:480px){.hero-meta,.hero-actions{grid-template-columns:1fr}.hero-scene{min-height:190px}}


/* Hero photo fix v5 */
.hero-photo{padding:0;overflow:hidden;display:block;min-height:0}
.hero-photo img{display:block;width:100%;height:100%;min-height:320px;object-fit:cover;border-radius:22px}
.hero-scene,.hero-bus-visual,.hero-scene-badge{display:none!important}
@media(max-width:900px){.hero-photo img{min-height:280px}}
@media(max-width:620px){.hero-photo img{min-height:220px}}
@media(max-width:480px){.hero-photo img{min-height:190px}}


/* Hero image optimization v6 */
.hero-photo:after{content:none!important;display:none!important}
