
:root{--blue:#079ed7;--dark:#17324d;--yellow:#f9dd00;--bg:#f4f7f9;--green:#208f5d;--muted:#64748b;--border:#e5e7eb}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;background:var(--bg);color:#172033;line-height:1.55;padding-bottom:74px}a{color:inherit;text-decoration:none}.container{max-width:1160px;margin:auto;padding:0 20px}.top{background:#fff;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:50}.head{height:74px;display:flex;align-items:center;gap:18px}.brand{display:flex;align-items:center;gap:12px;font-weight:800}.brand img{width:46px;height:46px;padding:0;border:0;border-radius:0;display:block;flex:0 0 auto}.brand small{display:block;color:var(--muted);font-weight:500}.nav{margin-left:auto;display:flex;gap:20px;font-size:14px;font-weight:600}.nav a:hover{color:var(--blue)}.hero{position:relative;min-height:390px;display:flex;align-items:center;background:linear-gradient(90deg,rgba(11,41,67,.92),rgba(11,41,67,.5)),url('../../city-image.php?slug=ulyanovsk') center/cover no-repeat;color:white}.hero h1{font-size:46px;line-height:1.08;margin:0 0 16px}.hero p{max-width:720px;font-size:19px}.hero-meta{display:flex;gap:12px;flex-wrap:wrap;margin:24px 0}.pill{background:rgba(255,255,255,.15);backdrop-filter:blur(8px);padding:10px 14px;border-radius:12px}.btn{display:inline-flex;align-items:center;justify-content:center;padding:13px 20px;border-radius:10px;font-weight:800;border:0;cursor:pointer}.btn-yellow{background:var(--yellow);color:#111}.btn-blue{background:var(--blue);color:#fff}.btn-outline{border:1px solid #cad5df;background:#fff}.section{padding:48px 0}.section.white{background:#fff}.section h2{font-size:30px;margin:0 0 10px}.lead{color:var(--muted);max-width:800px}.widget-wrap{background:#fff;border-radius:16px;box-shadow:0 12px 35px rgba(21,46,70,.08);padding:16px;overflow:hidden}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.city-card{height:220px;border-radius:16px;overflow:hidden;position:relative;background:#d8e6ee}.city-card img{width:100%;height:100%;object-fit:cover;display:block;transition:.25s}.city-card:hover img{transform:scale(1.035)}.city-card:after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 35%,rgba(0,0,0,.76))}.city-card .label{position:absolute;left:18px;right:18px;bottom:16px;color:#fff;z-index:2}.city-card strong{font-size:22px;display:block}.city-card span{font-size:14px;opacity:.9}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.card{background:#fff;border:1px solid var(--border);border-radius:16px;padding:22px;box-shadow:0 5px 18px rgba(23,50,77,.04)}.card h3{margin:0 0 8px}.route-list{columns:3;column-gap:30px}.route-list a{display:block;padding:8px 0;border-bottom:1px solid #edf1f4;color:#31445a}.route-list a:hover{color:var(--blue)}.breadcrumbs{font-size:14px;color:var(--muted);padding:8px 0 12px}.page-head{background:#fff;padding:10px 0 22px;border-bottom:1px solid var(--border)}.page-head h1{font-size:36px;margin:5px 0}.schedule-head{display:flex;align-items:center;gap:15px;justify-content:space-between;flex-wrap:wrap;margin-bottom:18px}.fresh{background:#dff6e9;color:#17613f;border:1px solid #a9e2c1;padding:9px 14px;border-radius:10px;font-weight:700}.schedule{background:#fff;border:1px solid var(--border);border-radius:14px;overflow:hidden}.schedule-row{display:grid;grid-template-columns:1.3fr .9fr 1fr .7fr;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid var(--border)}.schedule-row:last-child{border-bottom:0}.schedule-row.head{background:#f8fafc;font-size:13px;color:var(--muted);font-weight:700}.schedule .buy{background:var(--yellow);padding:9px 12px;border-radius:8px;text-align:center;font-weight:800}.notice{background:#fff8d7;border:1px solid #f4df7e;padding:15px;border-radius:12px;margin:16px 0}.info-grid{display:grid;grid-template-columns:2fr 1fr;gap:20px}.faq details{background:#fff;border:1px solid var(--border);border-radius:12px;padding:16px 18px;margin:10px 0}.faq summary{font-weight:700;cursor:pointer}.sticky-buy-bar{position:fixed;left:0;right:0;bottom:0;z-index:60;min-height:76px;display:flex;align-items:center;justify-content:center;padding:11px 20px;background:rgba(255,255,255,.96);border-top:1px solid rgba(203,213,225,.72);box-shadow:0 -6px 24px rgba(23,50,77,.08);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}.sticky-buy{width:min(420px,100%);min-height:52px;display:flex;align-items:center;justify-content:center;background:var(--yellow);color:#111;text-align:center;font-weight:900;padding:14px 24px;border-radius:14px;box-shadow:0 6px 18px rgba(23,50,77,.18);transition:transform .18s ease,box-shadow .18s ease}.sticky-buy:hover{transform:translateY(-1px);box-shadow:0 8px 24px rgba(23,50,77,.22)}.sticky-buy:focus-visible{outline:3px solid rgba(3,169,244,.4);outline-offset:3px}footer{background:#17324d;color:#d7e2eb;padding:40px 0 90px}footer a{color:#fff}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:30px}.searchbox{width:100%;padding:14px 16px;border:1px solid #cfd8e3;border-radius:10px;font-size:16px;margin:18px 0}.tag{display:inline-block;background:#eaf5fb;color:#086f9d;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:700}.hotel,.tour{margin-top:30px}.small{font-size:13px;color:var(--muted)}@media(max-width:800px){.breadcrumbs{padding:6px 0 10px}.page-head{padding:8px 0 18px}.nav{display:none}.hero{min-height:360px}.hero h1{font-size:34px}.grid,.cards,.info-grid{grid-template-columns:1fr}.route-list{columns:1}.page-head h1{font-size:29px}.schedule-row.head{display:none}.schedule-row{grid-template-columns:1fr 1fr}.schedule-row .routecell{grid-column:1/-1;font-weight:800}.schedule-row .buy{grid-column:1/-1}.footer-grid{grid-template-columns:1fr}.section{padding:34px 0}.city-card{height:190px}.sticky-buy-bar{min-height:70px;padding:10px 16px}.sticky-buy{width:100%;min-height:50px;padding:13px 18px;border-radius:13px}}

/* Homepage hero — layout aligned with the project reference sites */
.header-buy{display:inline-flex;align-items:center;justify-content:center;margin-left:8px;padding:13px 20px;border-radius:14px;background:var(--yellow);color:#111;font-weight:850;white-space:nowrap}.home-hero{min-height:0;padding:26px 0 30px;background:linear-gradient(180deg,#eef7fc 0%,#e8f3f9 100%);color:#172033}.home-hero .hero-card{display:grid;grid-template-columns:minmax(0,.93fr) minmax(0,1.17fr);gap:26px;align-items:center;background:#fff;border:1px solid #dfeaf2;border-radius:28px;padding:24px 28px;box-shadow:0 16px 38px rgba(23,50,77,.08)}.home-hero .hero-content{display:flex;flex-direction:column;justify-content:center;padding:0}.home-hero .tag{align-self:flex-start;background:#e7f5fb;color:#0874a3;padding:6px 12px;font-size:12px;letter-spacing:.04em}.home-hero h1{color:#142f4c;font-size:38px;line-height:1.08;margin:13px 0 10px;letter-spacing:-.025em;white-space:nowrap}.home-hero p{max-width:610px;color:#60758b;font-size:16px;line-height:1.48;margin:0}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0 16px}.hero-actions .btn{min-height:46px;border-radius:13px;padding:11px 20px;font-size:15px}.btn-soft{background:#dff1fb;color:#0874a3}.contact-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:0}.contact-card{min-height:82px;background:#f7fafc;border:1px solid #dbe6ee;border-radius:14px;padding:10px 12px;display:flex;flex-direction:column;justify-content:center;box-shadow:0 4px 12px rgba(23,50,77,.025)}.contact-label{display:block;color:#718399;font-size:12px;font-weight:750;margin-bottom:4px}.contact-card strong{font-size:14px;line-height:1.28;color:#142f4c}.hero-photo{width:100%;aspect-ratio:16/9;min-height:0;border-radius:22px;overflow:hidden;background:#dceaf2;position:relative}.hero-photo img{width:100%;height:100%;object-fit:cover;object-position:center 58%;display:block}.ticket-section{padding-top:36px}.ticket-section h2{font-size:34px;color:#142f4c}.ticket-section .lead{margin-top:0;margin-bottom:18px}.ticket-section .widget-wrap{padding:18px;border-radius:20px}.home-hero+.ticket-section{background:#f4f7f9}
@media(max-width:1050px){.head{gap:12px}.nav{gap:14px}.header-buy{padding:11px 15px}.home-hero h1{font-size:34px}.home-hero .hero-card{grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:18px;padding:20px}.contact-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.contact-card{padding:9px 10px}.contact-card:last-child{grid-column:auto}.hero-photo{aspect-ratio:16/9}}
@media(max-width:800px){.header-buy{margin-left:auto;padding:10px 13px;font-size:14px}.home-hero{padding:16px 0 22px}.home-hero .hero-card{grid-template-columns:1fr;padding:18px;border-radius:22px}.home-hero h1{font-size:34px;white-space:normal}.home-hero p{font-size:16px}.hero-photo{order:-1;aspect-ratio:16/9;min-height:0;border-radius:18px}.contact-cards{grid-template-columns:1fr}.contact-card:last-child{grid-column:auto}.contact-card{min-height:auto}.hero-actions .btn{flex:1 1 180px}.ticket-section h2{font-size:29px}}
@media(max-width:520px){.brand span{font-size:15px}.brand small{font-size:11px}.brand img{width:40px;height:40px;padding:0;border:0}.header-buy{font-size:13px;padding:9px 11px}.head{height:68px}.home-hero .hero-card{padding:14px}.hero-photo{min-height:210px}.home-hero h1{font-size:31px}.hero-actions{margin:18px 0}.hero-actions .btn{width:100%;flex-basis:100%}}

/* Schedule cards: reference layout for direction pages */
.route-mobile,.schedule-label{display:none}
.fresh{border-radius:999px;padding:6px 12px;font-size:13px;line-height:1.25;white-space:nowrap}

@media(max-width:800px){
  .schedule-head{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;align-items:start;margin-bottom:14px}
  .schedule-head h2{margin:0}
  .schedule-head .fresh{justify-self:end;margin:0}

  .schedule{background:transparent;border:0;border-radius:0;overflow:visible}
  .schedule-row.head{display:none}
  .schedule-row:not(.head){
    display:grid;
    grid-template-columns:1fr 1fr;
    grid-template-rows:auto auto auto;
    gap:0;
    padding:0 16px 16px;
    margin-bottom:16px;
    background:#fff;
    border:1px solid #dce5ed;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 3px 12px rgba(23,50,77,.035);
  }
  .schedule-row:not(.head):last-child{border-bottom:1px solid #dce5ed;margin-bottom:0}

  .route-desktop{display:none}
  .route-mobile{display:block}
  .schedule-label{display:block;color:#718399;font-size:12px;line-height:1.2;font-weight:800;letter-spacing:.08em;margin-bottom:7px}
  .schedule-value{display:block;color:#0e2c4b;font-size:16px;line-height:1.25;font-weight:700}

  .schedule-row .schedule-time{
    grid-column:1;
    grid-row:1;
    padding:16px 16px 14px 0;
    border-right:1px solid #e2e9ef;
    border-bottom:1px solid #e2e9ef;
  }
  .schedule-row .schedule-time .schedule-value{font-size:22px;font-weight:900}
  .schedule-row .schedule-time .schedule-value b{font-weight:900}

  .schedule-row .schedule-days{
    grid-column:2;
    grid-row:1;
    padding:16px 0 14px 16px;
    border-bottom:1px solid #e2e9ef;
  }

  .schedule-row .routecell{
    grid-column:1/-1;
    grid-row:2;
    padding:0;
    font-weight:400;
  }
  .route-point{padding:13px 0;border-bottom:1px solid #e2e9ef}
  .route-point:last-child{padding-bottom:13px}
  .route-label{display:block;color:#718399;font-size:12px;line-height:1.2;font-weight:800;letter-spacing:.08em;margin-bottom:5px}
  .route-point strong{display:block;color:#0e2c4b;font-size:16px;line-height:1.3;font-weight:800}

  .schedule-row .buy{
    grid-column:1/-1;
    grid-row:3;
    min-height:54px;
    margin-top:14px;
    padding:13px 16px;
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:18px;
    line-height:1.2;
  }
}
