*{box-sizing:border-box}html,body{margin:0;font-family:Arial,sans-serif;color:#08234a;background:#f3f7fb}a{color:inherit;text-decoration:none}img{max-width:100%}.wrap{width:min(1180px,calc(100% - 32px));margin:auto}.top{background:#fff;border-bottom:1px solid #dbe6f1;position:sticky;top:0;z-index:20}.nav{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:74px}.brand{display:flex;align-items:center;gap:11px;font-weight:800}.brand img{width:42px;height:42px;border:2px solid #1599e5;border-radius:9px}.menu{display:flex;gap:18px;flex-wrap:wrap;font-weight:700}.hero{padding:34px 0}.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:24px}.card{background:#fff;border:1px solid #dbe6f1;border-radius:20px;padding:24px;box-shadow:0 8px 26px rgba(23,61,99,.06)}h1{font-size:38px;line-height:1.1;margin:0 0 14px}h2{font-size:28px}.muted{color:#5f7490;line-height:1.55}.facts{display:grid;gap:10px;margin:22px 0}.fact{padding:10px 0;border-bottom:1px solid #e5edf5}.btn{display:inline-flex;align-items:center;justify-content:center;background:#ffd42a;color:#061d3d;font-weight:800;border-radius:12px;padding:15px 22px}.btn.blue{background:#0aa9e8;color:#fff}.hero-art{min-height:330px;background:linear-gradient(135deg,#0aa9e8,#1356a3);position:relative;overflow:hidden;color:white}.hero-art:after{content:'СЫКТЫВКАР';position:absolute;right:-10px;bottom:24px;font-size:52px;font-weight:900;opacity:.18}.bus{position:absolute;left:8%;right:8%;bottom:44px;height:120px;background:#fff;border-radius:26px 36px 18px 18px;box-shadow:0 18px 25px #073f72}.bus:before{content:'СЫКТЫВКАР';position:absolute;left:28%;top:46px;color:#0a62a8;font-size:25px;font-weight:900}.bus:after{content:'';position:absolute;width:35px;height:35px;border-radius:50%;background:#123;left:12%;bottom:-16px;box-shadow:0 0 0 8px #596778,430px 0 0 0 #123,430px 0 0 8px #596778}.section{padding:20px 0 34px}.widget{overflow:hidden}.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.dir{min-height:160px;border-radius:16px;padding:18px;display:flex;align-items:flex-end;color:white;font-size:21px;font-weight:800;background:linear-gradient(135deg,#187fc0,#092e5b);position:relative;overflow:hidden}.dir:before{content:'';position:absolute;inset:0;background:radial-gradient(circle at 80% 20%,rgba(255,255,255,.35),transparent 35%)}.dir span{position:relative;text-shadow:0 2px 6px #0008}.allroutes{columns:4;column-gap:22px}.allroutes a{display:block;padding:7px 0;border-bottom:1px solid #e8eef5;color:#0a63b8}.schedule-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.fresh{display:inline-flex;background:#effff3;border:1px solid #72dfa1;color:#087b38;border-radius:999px;padding:8px 12px;font-size:13px;font-weight:800;white-space:nowrap}.schedule{border:1px solid #dbe6f1;border-radius:16px;overflow:hidden;margin:18px 0}.row{display:grid;grid-template-columns:1.1fr 1.4fr 1fr 1fr auto;align-items:center;gap:10px;padding:14px;border-bottom:1px solid #e4ebf3}.row.head{background:#eaf6ff;text-transform:uppercase;font-size:12px;font-weight:800}.route-main{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:24px}.aside .card{margin-bottom:16px}.sticky-buy{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);z-index:50;box-shadow:0 8px 25px #0004}.footer{background:#071f3c;color:#dce8f5;padding:35px 0 90px}.widget-box{min-height:120px}.faq details{background:#fff;border:1px solid #dbe6f1;border-radius:12px;padding:15px;margin:10px 0}.city-widgets{margin-top:24px}.notice{font-size:13px;color:#687b90}.mobile-card{display:none}@media(max-width:800px){.menu{display:none}.hero-grid,.route-main{grid-template-columns:1fr}.grid{grid-template-columns:repeat(2,1fr)}.allroutes{columns:2}h1{font-size:31px}.schedule{border:0}.row.head{display:none}.row{display:block;background:#fff;border:1px solid #dbe6f1;border-radius:16px;margin:12px 0;padding:16px}.row>span{display:block;margin:8px 0}.row .btn{width:100%;margin-top:10px}.schedule-head{display:block}.fresh{margin-top:10px}.sticky-buy{width:calc(100% - 40px);bottom:12px}.bus:after{box-shadow:0 0 0 8px #596778,260px 0 0 0 #123,260px 0 0 8px #596778}}@media(max-width:480px){.grid{grid-template-columns:1fr}.allroutes{columns:1}.wrap{width:min(100% - 20px,1180px)}.card{padding:18px}.hero-art{min-height:250px}.bus{right:15%;height:95px}.bus:before{font-size:18px;left:20%}.bus:after{box-shadow:0 0 0 8px #596778,190px 0 0 0 #123,190px 0 0 8px #596778}}body{overflow-x:hidden}
/* Фото популярных направлений */
.dir-photo{background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;transition:transform .2s ease,box-shadow .2s ease}.dir-photo:before{background:linear-gradient(to top,rgba(1,19,42,.38),transparent 60%)}.dir-photo:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(7,47,89,.18)}

/* Главный экран Сыктывкара */
.brand img{border:0!important;border-radius:0!important;width:42px;height:42px;object-fit:contain}
.hero-grid{grid-template-columns:1fr 1fr;align-items:stretch}
.hero-grid>.card{height:100%}
.hero-info{display:flex;flex-direction:column;justify-content:center;min-height:360px;padding:30px}
.eyebrow{margin:0 0 10px;color:#0b67b6;font-size:13px;line-height:1.2;font-weight:900;letter-spacing:.14em}
.hero-lead{margin:0 0 18px;font-size:17px}
.hero-facts{display:grid;grid-template-columns:1.35fr .9fr 1fr;gap:10px;margin:0 0 20px}
.hero-fact{background:#f4f7fb;border-radius:13px;padding:13px 14px;min-width:0;line-height:1.32}
.hero-fact b,.hero-fact span{display:block}
.hero-fact b{margin-bottom:3px}
.hero-fact span{overflow-wrap:anywhere}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:auto}
.hero-secondary{background:#1177ce;color:#fff}
.hero-art{padding:0!important;min-height:360px;background:#dbeaf6!important;overflow:hidden}
.hero-art:after{content:none!important}
.hero-art img{display:block;width:100%;height:100%;min-height:360px;object-fit:cover;object-position:center;border-radius:19px}
.bus{display:none!important}
@media(max-width:800px){.hero-info{min-height:auto;padding:24px}.hero-facts{grid-template-columns:1fr}.hero-art{min-height:280px}.hero-art img{min-height:280px}.hero-actions .btn{flex:1 1 220px}}
@media(max-width:480px){.hero-info{padding:20px}.hero-art{min-height:235px}.hero-art img{min-height:235px}.hero-actions{display:grid;grid-template-columns:1fr}.hero-actions .btn{width:100%}}

/* Mobile layout hardening — 03.10.2026 */
html,body{width:100%;max-width:100%;overflow-x:hidden}
main,.wrap,.route-main,.route-main>div,.route-main>aside,.card,.section,.widget,.widget-box,.schedule{min-width:0;max-width:100%}
h1,h2,h3,p,span,a{overflow-wrap:anywhere}
.widget{width:100%;overflow:hidden}
.widget iframe,.widget-box iframe{display:block;width:100%!important;max-width:100%!important;border:0}
.widget>div,.widget-box>div{max-width:100%!important}
.schedule .row{min-width:0}
.schedule .btn{max-width:100%}

@media(max-width:800px){
  .wrap{width:calc(100% - 24px);max-width:100%}
  .nav{min-width:0}
  .brand{min-width:0}
  .brand span{font-size:14px;line-height:1.2}
  .brand img{flex:0 0 36px;width:36px;height:36px}

  /* Главная: блоки идут вертикально, без узких колонок */
  .hero{padding:18px 0}
  .hero-grid{grid-template-columns:minmax(0,1fr)!important;gap:14px}
  .hero-grid>.card{width:100%;min-width:0;height:auto}
  .hero-info{padding:20px;min-height:auto}
  .hero-art{min-height:0!important;aspect-ratio:16/10;height:auto}
  .hero-art img{width:100%;height:100%;min-height:0!important;object-fit:cover;object-position:center}
  .hero-facts{grid-template-columns:1fr}
  .hero-actions{display:grid;grid-template-columns:1fr;gap:10px}
  .hero-actions .btn{width:100%;min-width:0;white-space:normal;text-align:center}

  /* Страницы направлений */
  .route-main{display:block;width:100%}
  .route-main>div,.route-main>.aside{width:100%;min-width:0}
  .route-main>.aside{margin-top:16px}
  .card{padding:18px;width:100%}
  h1{font-size:28px;line-height:1.15}
  h2{font-size:24px;line-height:1.2}
  .schedule-head{width:100%}
  .schedule{width:100%;overflow:visible}
  .row{width:100%;max-width:100%;overflow:hidden}
  .row .btn{display:flex;width:100%;max-width:100%;box-sizing:border-box;white-space:normal;text-align:center}
  .fresh{max-width:100%;white-space:normal;line-height:1.25}
  .sticky-buy{left:12px;right:12px;transform:none;width:auto;max-width:none;text-align:center;white-space:normal}

  /* Защита от фиксированной ширины сторонних виджетов */
  .widget,.widget-box{overflow:hidden;width:100%}
  .widget iframe,.widget-box iframe,
  .widget embed,.widget-box embed,
  .widget object,.widget-box object{width:100%!important;max-width:100%!important}
}

@media(max-width:480px){
  .wrap{width:calc(100% - 20px)}
  .hero-info{padding:18px}
  .hero-art{aspect-ratio:4/3}
  .card{padding:16px}
  h1{font-size:27px}
  h2{font-size:23px}
  .section{padding:14px 0 26px}
}

/* Mobile breathing room — 03.10.2026 */
@media (max-width:800px){
  /* Единый безопасный отступ от краёв экрана */
  .wrap{
    width:calc(100% - 32px)!important;
    max-width:1180px;
    margin-left:auto!important;
    margin-right:auto!important;
  }
  main.section{padding-top:18px;padding-bottom:30px}

  /* Белые карточки и текст не прижимаются к границам */
  .card{padding:20px!important}
  .route-main>div>section.section{padding-left:2px;padding-right:2px}
  .schedule .row{padding:18px 16px!important}
  .notice{padding-left:4px;padding-right:4px;line-height:1.5}
  .faq details{padding:16px}

  /* Виджеты остаются строго внутри карточек */
  .card.widget,.widget-box{max-width:100%;overflow:hidden}
  .widget iframe,.widget-box iframe{max-width:100%!important}
}
@media (max-width:480px){
  .wrap{width:calc(100% - 32px)!important}
  .card{padding:18px!important}
  .hero-info{padding:20px!important}
  .schedule .row{padding:17px 14px!important}
  .section{padding-top:16px;padding-bottom:28px}
}

/* Расписание с временем прибытия */
.row.six{grid-template-columns:1fr 1.15fr 1fr 1fr 1fr auto}
@media(max-width:800px){.row.six{display:block}}

.schedule-status{padding:20px;border:1px solid #dbe5ef;border-radius:16px;background:#fff;line-height:1.5}.schedule-status p{margin:8px 0 0;color:#52677f}@media(max-width:800px){.schedule-status{padding:16px}}

/* Route schedule cards on mobile — compact layout like approved reference */
@media (max-width:800px){
  .schedule{
    display:grid;
    gap:14px;
    margin:16px 0;
    border:0!important;
    border-radius:0;
    overflow:visible!important;
    background:transparent;
  }
  .schedule .row.head{display:none!important}
  .schedule .row:not(.head),
  .schedule .row.six:not(.head){
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:0!important;
    width:100%;
    margin:0!important;
    padding:16px!important;
    background:#fff;
    border:1px solid #dbe6f1!important;
    border-radius:18px!important;
    box-shadow:0 1px 2px rgba(21,54,87,.03);
    overflow:hidden;
  }

  .schedule .row:not(.head)>span{
    display:block!important;
    min-width:0;
    margin:0!important;
    color:#08234a;
    line-height:1.25;
  }
  .schedule .row:not(.head)>span::before{
    display:block;
    margin-bottom:5px;
    color:#71839b;
    font-size:11px;
    line-height:1.1;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
  }

  /* 5-column schedules: departure / days / from / to / ticket */
  .schedule .row:not(.head):not(.six)>span:nth-child(1){
    grid-column:1;
    padding:0 14px 14px 0!important;
    border-right:1px solid #e5edf5;
    border-bottom:1px solid #e5edf5;
  }
  .schedule .row:not(.head):not(.six)>span:nth-child(2){
    grid-column:2;
    padding:0 0 14px 14px!important;
    border-bottom:1px solid #e5edf5;
  }
  .schedule .row:not(.head):not(.six)>span:nth-child(3){
    grid-column:1/-1;
    padding:14px 0!important;
    border-bottom:1px solid #e5edf5;
  }
  .schedule .row:not(.head):not(.six)>span:nth-child(4){
    grid-column:1/-1;
    padding:14px 0!important;
    border-bottom:1px solid #e5edf5;
  }
  .schedule .row:not(.head):not(.six)>span:nth-child(1)::before{content:'Отправление'}
  .schedule .row:not(.head):not(.six)>span:nth-child(2)::before{content:'Дни'}
  .schedule .row:not(.head):not(.six)>span:nth-child(3)::before{content:'Откуда'}
  .schedule .row:not(.head):not(.six)>span:nth-child(4)::before{content:'Куда'}

  /* 6-column schedules also include arrival time */
  .schedule .row.six:not(.head)>span:nth-child(1){
    grid-column:1;
    padding:0 14px 14px 0!important;
    border-right:1px solid #e5edf5;
    border-bottom:1px solid #e5edf5;
  }
  .schedule .row.six:not(.head)>span:nth-child(2){
    grid-column:2;
    padding:0 0 14px 14px!important;
    border-bottom:1px solid #e5edf5;
  }
  .schedule .row.six:not(.head)>span:nth-child(3){
    grid-column:1/-1;
    padding:14px 0!important;
    border-bottom:1px solid #e5edf5;
  }
  .schedule .row.six:not(.head)>span:nth-child(4){
    grid-column:1/-1;
    padding:14px 0!important;
    border-bottom:1px solid #e5edf5;
  }
  .schedule .row.six:not(.head)>span:nth-child(5){
    grid-column:1/-1;
    padding:14px 0!important;
    border-bottom:1px solid #e5edf5;
  }
  .schedule .row.six:not(.head)>span:nth-child(1)::before{content:'Отправление'}
  .schedule .row.six:not(.head)>span:nth-child(2)::before{content:'Дни'}
  .schedule .row.six:not(.head)>span:nth-child(3)::before{content:'Прибытие'}
  .schedule .row.six:not(.head)>span:nth-child(4)::before{content:'Откуда'}
  .schedule .row.six:not(.head)>span:nth-child(5)::before{content:'Куда'}

  .schedule .row:not(.head)>span:nth-child(1) b{
    font-size:20px;
    line-height:1;
  }
  .schedule .row.six:not(.head)>span:nth-child(3) b{
    font-size:18px;
  }
  .schedule .row:not(.head)>span:nth-child(2),
  .schedule .row:not(.head)>span:nth-child(3),
  .schedule .row:not(.head)>span:nth-child(4),
  .schedule .row.six:not(.head)>span:nth-child(5){
    font-weight:700;
  }

  .schedule .row:not(.head)>.btn{
    grid-column:1/-1;
    display:flex!important;
    width:100%!important;
    max-width:100%!important;
    margin:14px 0 0!important;
    padding:14px 16px!important;
    border-radius:14px!important;
    font-size:17px;
    line-height:1.15;
  }
}
