:root {
  --blue: #11377b;
  --blue-strong: #0b2a65;
  --yellow: #ffd000;
  --ink: #202533;
  --muted: #7886a1;
  --line: #dce5f6;
  --soft: #f3f6fc;
  --radius: 14px;
}
body { font-family: Montserrat, ui-sans-serif, system-ui, sans-serif; font-size: 15px; line-height: 1.65; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.035em; }
.icon { display: inline-block; flex: 0 0 auto; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; vertical-align: middle; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.site-header { background: #fff; backdrop-filter: none; border-color: #edf1f8; }
.site-header__inner { width: min(1680px, calc(100% - 64px)); min-height: 82px; gap: 28px; }
.brand img { width: 188px; }
.main-nav a { min-height: 40px; padding: 9px 12px; font-size: 13px; font-weight: 700; border-radius: 6px; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--blue); background: transparent; }
.header-ticket { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 17px; border-radius: 8px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; }
.header-ticket .icon { width: 16px; height: 16px; }
.header-ticket:hover { background: var(--blue-strong); }
.section { width: min(1140px, calc(100% - 48px)); padding-top: 68px; padding-bottom: 68px; }
.reference-hero { position: relative; isolation: isolate; padding: 66px 24px 44px; color: #fff; background: #20282d url('../img/hero-coach-road.png') center 52% / cover no-repeat; }
.reference-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 17, 25, .45), rgba(7, 17, 20, .7)); }
.reference-hero__intro { max-width: 1140px; margin: 0 auto 30px; text-align: center; }
.reference-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 18px; border-radius: 100px; background: var(--blue); color: #fff; font-size: 10px; font-weight: 800; line-height: 1.4; letter-spacing: .13em; text-transform: uppercase; box-shadow: 0 5px 14px rgba(17, 55, 123, .16); }
.reference-hero .reference-pill { background: rgba(33, 35, 25, .66); color: var(--yellow); box-shadow: none; }
.reference-hero h1 { max-width: 1140px; margin: 20px auto 0; color: #fff; font-size: clamp(32px, 3.4vw, 50px); line-height: 1.1; }
.reference-hero h1 span { display: block; color: var(--yellow); }
.reference-booking { max-width: 1440px; min-height: 236px; margin: 0 auto; padding: 36px 38px; background: #fff; border: 1px solid #e9edf4; border-radius: 18px; box-shadow: 0 24px 55px rgba(0, 0, 0, .2); }
.reference-booking .ticket-widget { padding: 0; }
.reference-booking .ticket-widget__frame { height: 200px; }
.reference-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.hero-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 10px; color: #fff; font-size: 13px; font-weight: 600; background: rgba(8, 18, 25, .18); transition: background .2s, border-color .2s; }
.hero-link .icon { width: 16px; height: 16px; }
.hero-link:hover { background: rgba(255,255,255,.13); border-color: #fff; }
.reference-heading { max-width: 650px; margin: 0 auto 36px; text-align: center; }
.reference-heading h2 { margin: 18px 0 14px; color: var(--ink); font-size: clamp(30px, 3vw, 40px); line-height: 1.15; }
.reference-heading p { max-width: 580px; margin: 0 auto; color: var(--muted); font-size: 14px; line-height: 1.8; }
.reference-routes { padding-top: 62px; padding-bottom: 64px; }
.route-filters { justify-content: flex-start; gap: 9px; margin: 0 0 24px; }
.chip { min-height: 38px; padding: 8px 18px; border: 1px solid #d7e1f5; border-radius: 100px; color: #7282a2; font-size: 12px; font-weight: 600; }
.chip.is-active { color: #fff; background: var(--blue); border-color: var(--blue); }
.routes-grid { gap: 16px; }
.route-note { margin: 24px 0 0; color: #65728b; font-size: 12px; line-height: 1.8; text-align: center; }
.route-card { display: block; padding: 22px 24px 20px; border: 2px solid var(--blue); border-left-width: 5px; border-radius: 14px; background: linear-gradient(110deg, #fff 75%, #fffdf1); box-shadow: 0 8px 18px rgba(21, 52, 102, .055); }
.route-card__heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-bottom: 14px; border-bottom: 1px solid #edf1fa; }
.route-card__direction { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.route-card__days { flex-shrink: 0; padding: 3px 12px; border: 1px solid #f6d255; border-radius: 100px; color: var(--blue); background: #fff6cb; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.route-card__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, .8fr) 162px; align-items: center; gap: 24px; padding-top: 20px; }
.route-card__cities { display: block; font-size: 21px; font-weight: 800; line-height: 1.3; letter-spacing: -.035em; }
.route-card__arrow { color: var(--blue); font-weight: 500; }
.route-card__stops { margin-top: 7px; font-size: 11px; line-height: 1.6; }
.route-card__times { gap: 10px; text-align: center; }
.time-block span { margin-bottom: 2px; color: #7e8dac; font-size: 9px; letter-spacing: .12em; }
.time-block strong { color: var(--blue); font-size: 25px; font-weight: 800; letter-spacing: -.045em; }
.duration-pill { padding: 5px 9px; border: 1px solid #e0e9fd; border-radius: 100px; background: #f0f5ff; color: var(--blue); font-size: 9px; font-weight: 800; }
.route-card__side { gap: 9px; justify-items: end; }
.price-block { text-align: right; }
.price-block span { color: #7e8dac; font-size: 10px; font-weight: 500; text-transform: none; }
.price-block strong { color: var(--blue); font-size: 28px; font-weight: 800; letter-spacing: -.04em; }
.route-card__action { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 40px; padding: 10px 16px; border: 0; border-radius: 9px; color: var(--blue-strong); background: var(--yellow); font-size: 11px; font-weight: 800; }
.route-card__action:hover { background: #f5c600; }
.route-card__action .icon { width: 14px; height: 14px; }
.reference-benefits { padding: 56px 24px 62px; background: linear-gradient(180deg, #f1f6ff, #eaf1fb); }
.reference-benefits .reference-heading { margin-bottom: 28px; }
.benefits-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; width: min(1040px, 100%); margin: 0 auto; }
.benefit-card { position: relative; overflow: hidden; padding: 27px 24px 26px; border: 1px solid #dce7fa; border-top: 3px solid var(--blue); border-radius: 12px; background: #fff; box-shadow: 0 12px 24px rgba(28, 65, 125, .07); }
.benefit-card__number { position: absolute; top: 17px; right: 20px; color: #c4d7f9; font-size: 12px; font-weight: 800; }
.benefit-card__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 28px; border-radius: 12px; color: #4e8aee; background: #eef4ff; }
.benefit-card__icon .icon { width: 22px; height: 22px; }
.benefit-card h3 { margin-bottom: 10px; font-size: 14px; line-height: 1.4; }
.benefit-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.85; }
.reference-contacts { padding-top: 60px; padding-bottom: 60px; }
.reference-contacts .reference-heading { margin-bottom: 32px; }
.reference-contacts__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 48px; }
.reference-contact-details { padding: 8px 0; }
.reference-contact-details p { display: flex; gap: 13px; align-items: center; margin: 0 0 16px; color: #46536c; font-size: 14px; }
.reference-contact-details .icon { width: 18px; height: 18px; color: var(--blue); }
.reference-contact-details a { color: var(--blue); font-weight: 700; }
.reference-map-link { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 104px; margin-top: 24px; border: 1px solid #dce5f6; border-radius: 12px; color: var(--muted) !important; background: #f3f6fc; font-size: 12px; font-weight: 500 !important; }
.reference-callback { display: grid; gap: 12px; padding: 30px; border-radius: 16px; border: 0; background: #f3f5fb; box-shadow: none; }
.reference-callback h3 { margin: 0; text-align: center; font-size: 20px; }
.reference-callback > p { margin: 0 0 3px; color: var(--muted); text-align: center; font-size: 12px; line-height: 1.7; }
.reference-callback input, .reference-callback textarea { min-height: 42px; padding: 10px 13px; border-radius: 6px; border-color: #d4dce9; font-size: 13px; font-weight: 400; }
.reference-callback textarea { min-height: 68px; }
.reference-callback .btn { width: 100%; min-height: 44px; border: 0; border-radius: 8px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 700; }
.reference-callback [data-form-status] { margin: 0; font-size: 12px; }
.site-footer { display: block; width: 100%; margin: 0; padding: 58px 24px 24px; border-top: 0; color: #9da8bb; background: #091526; }
.site-footer__inner { width: min(1140px, 100%); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.6fr .8fr 1fr 1fr; gap: 44px; }
.footer-brand img { width: 175px; margin: 0 0 15px; }
.footer-brand p { max-width: 280px; margin: 0 0 18px; color: #9da8bb; font-size: 12px; line-height: 1.9; }
.footer-brand__phone { display: inline-flex; align-items: center; gap: 8px; color: #c0c9d6; font-size: 12px; font-weight: 700; }
.footer-brand__phone .icon { width: 15px; height: 15px; }
.footer-title { margin: 4px 0 18px; color: #8290a5; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.footer-payment img { width: 140px; height: auto; margin: 0; }
.footer-links { display: grid; align-content: start; gap: 9px; }
.footer-links a { color: #aeb9ca; font-size: 12px; line-height: 1.6; }
.footer-links a:hover, .footer-brand__phone:hover { color: #fff; }
.footer-socials { margin-top: 42px; padding: 24px 0 20px; border-top: 1px solid #17253a; text-align: center; }
.footer-socials .footer-title { margin: 0 0 16px; }
.social-links { display: flex; justify-content: center; gap: 12px; }
.social-link { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; color: #fff; }
.social-link .icon { width: 24px; height: 24px; }
.social-link--facebook { background: #1877f2; }
.social-link--instagram { background: linear-gradient(135deg, #7b3aab, #e1306c, #ffb449); }
.social-link--viber { background: #7360f2; }
.social-link--mail { background: #7562e9; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 21px; border-top: 1px solid #17253a; }
.footer-bottom p { margin: 0; color: #8695ab; font-size: 11px; }
.back-to-top { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 5px; color: #fff; background: var(--blue); }
.back-to-top .icon { width: 22px; height: 22px; }
.page-intro .eyebrow { color: var(--blue); }
.contact-links a, .feature-band h2 { color: var(--blue); }
.cookie-banner { bottom: 18px; right: 66px; border-radius: 12px; }
.cookie-banner .btn { border-radius: 7px; }
@media (max-width: 1100px) {
  .site-header__inner { width: calc(100% - 40px); gap: 16px; }
  .main-nav a { padding-inline: 8px; font-size: 12px; }
  .brand img { width: 164px; }
  .route-card__body { grid-template-columns: minmax(0, 1fr) 280px 145px; gap: 18px; }
  .route-card__cities { font-size: 19px; }
  .price-block strong { font-size: 25px; }
}
@media (max-width: 980px) {
  .site-header__inner { grid-template-columns: auto 1fr auto; min-height: 76px; }
  .brand { grid-column: 1; grid-row: 1; }
  .header-ticket { grid-column: 2; grid-row: 1; justify-self: end; }
  .nav-toggle { grid-column: 3; grid-row: 1; }
  .main-nav.is-open { grid-column: 1 / -1; grid-row: 2; }
  .main-nav.is-open .main-nav__list a { padding: 13px 16px; }
  .reference-hero { padding-top: 48px; }
  .reference-booking { padding: 26px; }
  .route-card__body { grid-template-columns: 1fr 1fr; }
  .route-card__side { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
  .price-block { text-align: left; }
  .route-card__times { grid-template-columns: 1fr auto 1fr; }
  .benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .site-header__inner { width: calc(100% - 28px); min-height: 70px; gap: 10px; }
  .brand img { width: 132px; }
  .header-ticket { gap: 5px; min-height: 38px; padding: 9px 10px; font-size: 11px; }
  .header-ticket .icon { width: 14px; height: 14px; }
  .nav-toggle { width: 38px; height: 38px; }
  .section { width: calc(100% - 32px); padding-block: 46px; }
  .reference-hero { padding: 36px 16px 28px; background-position: 61% center; }
  .reference-hero__intro { margin-bottom: 24px; }
  .reference-pill { padding: 7px 13px; font-size: 8px; letter-spacing: .11em; }
  .reference-hero h1 { margin-top: 18px; font-size: clamp(28px, 7vw, 34px); line-height: 1.12; }
  .reference-booking { min-height: 260px; padding: 20px 12px; border-radius: 13px; }
  .reference-hero__actions { gap: 8px; margin-top: 20px; }
  .hero-link { min-height: 40px; gap: 5px; padding: 9px 10px; font-size: 10px; border-radius: 8px; }
  .hero-link .icon { width: 13px; height: 13px; }
  .reference-heading { margin-bottom: 26px; }
  .reference-heading h2 { margin-top: 15px; font-size: 29px; }
  .reference-heading p { font-size: 12px; }
  .route-filters { gap: 7px; margin-bottom: 18px; }
  .chip { min-height: 34px; padding: 7px 12px; font-size: 10px; }
  .route-card { padding: 16px 15px; border-left-width: 4px; border-radius: 12px; }
  .route-card__heading { padding-bottom: 12px; gap: 8px; }
  .route-card__direction { font-size: 8px; letter-spacing: .07em; }
  .route-card__days { padding: 3px 9px; font-size: 8px; }
  .route-card__body { grid-template-columns: 1fr; gap: 18px; padding-top: 16px; }
  .route-card__cities { font-size: 20px; }
  .route-card__times { grid-template-columns: 1fr auto 1fr; text-align: left; }
  .time-block:last-child { text-align: right; }
  .time-block strong { font-size: 25px; }
  .route-card__side { grid-column: auto; }
  .price-block strong { font-size: 27px; }
  .route-card__action { min-height: 42px; padding: 11px 14px; font-size: 11px; }
  .reference-benefits { padding: 44px 16px; }
  .benefits-grid { gap: 12px; }
  .benefit-card { padding: 21px 16px; }
  .benefit-card__number { top: 13px; right: 13px; font-size: 10px; }
  .benefit-card__icon { width: 40px; height: 40px; margin-bottom: 22px; }
  .benefit-card h3 { font-size: 12px; }
  .benefit-card p { font-size: 11px; }
  .reference-contacts__grid { grid-template-columns: 1fr; gap: 28px; }
  .reference-contact-details p { font-size: 13px; }
  .reference-callback { padding: 24px 20px; }
  .site-footer { padding: 40px 20px 24px; }
  .footer-grid { gap: 28px 18px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-payment { grid-column: 1 / -1; }
  .footer-payment img { width: 130px; }
  .footer-title { font-size: 10px; }
  .footer-links a { font-size: 11px; }
  .footer-bottom { flex-direction: column; gap: 10px; }
  .cookie-banner { right: 16px; bottom: 62px; }
}
@media (max-width: 360px) {
  .brand img { width: 112px; }
  .header-ticket { padding-inline: 8px; font-size: 10px; }
  .header-ticket .icon { display: none; }
  .benefits-grid { grid-template-columns: 1fr; }
}
