:root {
  --paper: #f5f5ef;
  --white: #fff;
  --ink: #000;
  --muted: #333;
  --line: #ddd;
  --accent: #00C140;
  --soft: #eee;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body { margin: 0; font-size: 16px; line-height: 1.5; }
body.modal-open { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
svg { display: block; flex: none; }
button:focus-visible, a:focus-visible, summary:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--ink); }
.container { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.icon { width: 22px; height: 22px; }
.skip-link { position: fixed; top: -80px; left: 20px; padding: 16px; z-index: 200; background: var(--accent); color: var(--ink); }
.skip-link:focus { top: 12px; }
.site-header { height: 88px; position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 40px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand-logo { width: 224px; height: auto; }
.desktop-nav { display: flex; gap: 30px; margin-left: auto; font-size: 16px; }
.desktop-nav a { padding-block: 12px; }
.header-phone { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; font-weight: 600; white-space: nowrap; }
.header-phone .icon { width: 18px; height: 18px; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px; padding-top: 48px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(40px, 4.15vw, 60px); line-height: 1.08; letter-spacing: -.045em; font-weight: 600; text-wrap: balance; }
.hero-description { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 390px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 54px; padding: 14px 24px; border-radius: 12px; font-size: 16px; font-weight: 600; line-height: 1.4; }
.primary { background: var(--accent); color: var(--white); box-shadow: 0 6px 16px #00c14026; }
.button .icon { width: 20px; height: 20px; }
.hero .button { margin-top: 32px; }
.hero-visual { border-radius: 24px; overflow: hidden; height: 500px; min-width: 0; background: var(--soft); display: flex; flex-direction: column; }
.hero-slides { display: flex; flex: 1; min-height: 0; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.hero-slides::-webkit-scrollbar { display: none; }
.hero-slides:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.hero-slide { flex: 0 0 100%; min-width: 0; height: 100%; overflow: hidden; scroll-snap-align: start; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 53%; }
.hero-gallery-photo { width: 100%; height: 100%; object-fit: contain; }
/* Without JavaScript the photos remain swipeable. */
.gallery-ready .hero-slides { display: block; position: relative; overflow: hidden; touch-action: pan-y pinch-zoom; }
.gallery-ready .hero-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; background: var(--soft); }
.gallery-ready .hero-slide.is-active { opacity: 1; z-index: 1; pointer-events: auto; }

.section-space { padding-block: 64px; border-top: 1px solid var(--line); }
h2 { font-size: 40px; font-weight: 500; letter-spacing: -.035em; line-height: 1.15; }
.route-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 4px 10px; margin: 28px -4px 0; scrollbar-width: thin; scrollbar-color: #c5c5c5 transparent; }
.route-tab { min-height: 46px; padding: 10px 22px; border-radius: 30px; white-space: nowrap; background: transparent; border: 1px solid var(--line); font-size: 16px; }
.route-tab:hover { background: var(--soft); }
.route-tab.is-active { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.route-note { margin-top: 6px; font-size: 14px; color: var(--muted); }
.route-note:empty { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.rate-table { width: 100%; border-collapse: collapse; margin-top: 28px; text-align: left; }
.rate-table thead th { color: var(--muted); font-size: 14px; font-weight: 400; padding: 0 0 16px; border-bottom: 1px solid var(--ink); }
.rate-table th:last-child, .rate-table td { text-align: right; }
.rate-table tbody th, .rate-table td { padding: 18px 0; border-bottom: 1px solid var(--line); }
.rate-table tbody th { font-size: 18px; font-weight: 400; padding-right: 24px; }
.rate-price { font-size: 20px; font-weight: 500; line-height: 1.4; font-variant-numeric: tabular-nums; white-space: nowrap; }
.origin-control { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 24px; margin-top: 20px; }
.origin-option { min-height: 44px; padding: 8px 0; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font-size: 16px; }
.origin-option[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.origin-option:hover { color: var(--ink); }

.rate-context { color: var(--muted); margin-top: 16px; font-size: 16px; }
.rate-extras { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 20px; font-size: 16px; }
.rate-extras:empty, .route-note:empty { display: none; }
.tariff-origin-title { margin-top: 32px; font-size: 22px; }
.advantages-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; margin-top: 36px; }
.advantage { display: grid; grid-template-columns: 80px 1fr; align-items: start; gap: 18px; }
.advantage-photo { width: 80px; height: 80px; object-fit: cover; border-radius: 16px; background: var(--soft); }
.advantages-grid h3 { font-size: 21px; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; }
.advantages-grid p { font-size: 16px; color: var(--muted); margin-top: 10px; line-height: 1.6; }
.section-intro { margin-top: 20px; max-width: 720px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.route-links { display: flex; flex-wrap: wrap; gap: 16px 28px; padding-bottom: 24px; }
.route-links a, .text-link { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.route-links a:hover, .text-link:hover { text-decoration-color: var(--accent); }
.route-details summary::after, .route-page .faq-item summary::after { content: '+'; font-size: 24px; font-weight: 400; }
.route-details[open] summary::after, .route-page .faq-item[open] summary::after { content: '−'; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 14px; padding-top: 32px; }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 4px; }
.route-intro { padding-block: 48px 64px; max-width: 900px; }
.route-origin { font-size: 17px; color: var(--muted); margin-bottom: 20px; }
.route-intro h1 { font-size: clamp(36px, 4.5vw, 60px); font-weight: 600; line-height: 1.08; letter-spacing: -.035em; }
.route-lead { font-size: 21px; line-height: 1.6; max-width: 760px; margin-block: 24px 32px; }
.route-information { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; }
.route-information h2 { font-size: 32px; }
.route-information h3 { font-size: 22px; font-weight: 500; }
.route-information p, .route-information ul { margin-top: 20px; color: var(--muted); line-height: 1.7; }
.route-information ul { padding-left: 20px; }
.route-information li + li { margin-top: 10px; }
.route-fleet { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; list-style: none; padding: 0; margin-block: 32px; }
.route-fleet strong, .route-fleet span { display: block; }
.route-fleet strong { font-size: 19px; font-weight: 500; }
.route-fleet span { color: var(--muted); font-size: 15px; margin-top: 6px; }
.related-routes { padding-bottom: 48px; }
.tariff-note { max-width: 820px; font-size: 14px; line-height: 1.6; color: var(--muted); margin-top: 20px; }
.tariff-details { margin-top: 28px; }
details { border-top: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 20px; font-size: 16px; line-height: 1.5; }
summary::-webkit-details-marker { display: none; }
summary .icon { width: 18px; height: 18px; transition: transform .15s ease; }
details[open] > summary .icon { transform: rotate(45deg); }
.class-details-body { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-bottom: 24px; }
.class-details-body, .extra-route { color: var(--muted); font-size: 15px; line-height: 1.65; }
.class-details-body strong, .extra-route strong { color: var(--ink); font-weight: 600; }
.extra-route { padding-bottom: 24px; }
.extra-route p + p { margin-top: 10px; }
.no-js-prices { margin-top: 24px; font-size: 16px; line-height: 1.7; }
.no-js-prices h3 { margin-top: 20px; }
.no-js-prices a { text-decoration: underline; }
.fleet-note { margin-top: 16px; max-width: 620px; color: var(--muted); font-size: 16px; }
.fleet-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.fleet-photo { width: 100%; padding: 0; position: relative; overflow: hidden; border-radius: 16px; background: #d4d4d4; aspect-ratio: 1.2; }
.fleet-photo > img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.photo-count { position: absolute; left: 12px; bottom: 12px; background: #ffffffed; border-radius: 20px; padding: 5px 10px; font-size: 13px; }
.fleet-copy { margin-top: 16px; }
.fleet-kind { color: var(--muted); font-size: 14px; margin-bottom: 5px; }
.fleet-copy h3 { font-size: 18px; line-height: 1.4; font-weight: 400; }
.reviews-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 32px; align-items: start; }
.review-card { min-width: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--white); overflow: hidden; padding: 12px; }
.review-card img { width: 100%; height: auto; }
.reviews-more { margin-top: 24px; }
.reviews-more summary { justify-content: flex-start; gap: 12px; font-weight: 600; }
.reviews-more .reviews-grid { margin-top: 12px; }
.reviews-collapse, .reviews-more[open] .reviews-expand { display: none; }
.reviews-more[open] .reviews-collapse { display: inline; }
.reviews-toggle-icon { color: var(--ink); font-size: 24px; font-weight: 400; }
.reviews-more[open] .reviews-toggle-icon { transform: rotate(45deg); }
.faq-section { display: grid; grid-template-columns: 1fr 1.7fr; gap: 80px; }
.faq-section h2 { font-size: 32px; }
.faq-item:first-child { border-top: 0; }
.faq-item:first-child summary { padding-top: 0; }
.faq-item p { color: var(--muted); line-height: 1.7; padding: 0 32px 24px 0; font-size: 16px; }
.booking-section { padding-bottom: 64px; }
.booking-card { background: var(--accent); color: var(--white); border-radius: 24px; padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.booking-card h2 { font-size: 36px; }
.booking-card p { font-size: 16px; color: var(--white); margin-top: 16px; line-height: 1.65; }
.booking-card .button { flex: none; white-space: nowrap; background: var(--white); color: var(--ink); }
.booking-card :focus-visible { outline-color: var(--ink); }
.messenger-links { flex-basis: 100%; display: flex; gap: 20px; }
.messenger-links a { text-decoration: underline; }
.site-footer { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-block: 28px; font-size: 14px; color: var(--muted); }
/* Short feedback only: no looping effects, layout animation or hidden content. */
.site-header { box-shadow: 0 3px 18px #00000004; }
.desktop-nav a { position: relative; }
.desktop-nav a::after { content: ''; position: absolute; bottom: 7px; left: 0; right: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.desktop-nav a:focus-visible::after { transform: scaleX(1); }
/* Native scroll progress; unsupported browsers retain the ordinary header border. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .site-header::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; background: var(--accent); transform-origin: left; pointer-events: none; animation: reading-progress linear both; animation-timeline: scroll(root block); }
    @keyframes reading-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
}
@media (prefers-reduced-motion: no-preference) {
  .button { transition: background .18s ease, transform .18s ease, box-shadow .18s ease; }
  .button .icon { transition: transform .18s ease; }
  .desktop-nav a::after { transition: transform .2s ease; }
  .route-tab, summary, .header-phone { transition: color .18s ease, background .18s ease, border-color .18s ease; }
  .button:active { transform: translateY(1px); }
  .fleet-photo > img { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
}
@media (hover: hover) and (pointer: fine) {
  .desktop-nav a:hover::after { transform: scaleX(1); }
  summary:hover, .header-phone:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; }
  .rate-table tbody tr:hover { background: #eeeeee80; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .primary:hover { transform: translateY(-2px) scale(1.035); box-shadow: 0 10px 24px #00c14038; }
  .button:hover .icon { transform: translateX(3px); }
  .fleet-photo:hover > img { transform: scale(1.025); }
}
/* Native gallery dialog preserves keyboard navigation. */
dialog { border: 0; border-radius: 20px; padding: 0; background: var(--paper); color: var(--ink); max-height: calc(100dvh - 32px); box-shadow: 0 24px 100px #0004; }
dialog::backdrop { background: #000000b3; }
.gallery-dialog { width: min(1000px, calc(100% - 32px)); padding: 24px; overflow: auto; }
.gallery-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.gallery-header h2 { font-size: 24px; letter-spacing: -.02em; }
.icon-button { width: 44px; height: 44px; display: grid; place-items: center; flex: none; border-radius: 50%; background: transparent; }
.icon-button:hover { background: var(--soft); }
.gallery-stage { position: relative; background: #e3e3e3; border-radius: 12px; height: min(58dvh, 580px); display: grid; place-items: center; overflow: hidden; }
.gallery-stage > img { width: 100%; height: 100%; object-fit: contain; }
.gallery-arrow { position: absolute; top: calc(50% - 22px); width: 44px; height: 44px; border-radius: 50%; background: #fffffff0; display: grid; place-items: center; z-index: 1; }
.gallery-arrow.prev { left: 12px; }
.gallery-arrow.next { right: 12px; }
.gallery-caption { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; font-size: 14px; line-height: 1.5; }
.gallery-caption > span { white-space: nowrap; color: var(--muted); }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 16px; overflow: auto; padding: 4px; }
.gallery-thumbs button { width: 66px; height: 50px; flex: none; padding: 0; overflow: hidden; border-radius: 6px; border: 2px solid transparent; background: #ddd; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1050px) {
  .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .advantages-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .container { width: calc(100% - 56px); }
  .header-inner { gap: 28px; }
  .desktop-nav { gap: 20px; }
  .hero { gap: 28px; }
  .hero-visual { height: 460px; }
  .hero h1 { font-size: 44px; }
  .hero-description { font-size: 18px; }
  .fleet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .fleet-photo { aspect-ratio: 1.5; }
  .faq-section { gap: 40px; }
}
@media (max-width: 800px) {
  .desktop-nav { display: none; }
  .hero h1 { font-size: 40px; }
  .hero-visual { height: 420px; }
  .booking-card { padding: 36px; }
}
@media (max-width: 700px) {
  .reviews-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
  .review-card { border-radius: 12px; padding: 8px; }
  .origin-control { column-gap: 12px; }
  .rate-table tbody th { font-size: 16px; padding-right: 16px; }
  .rate-table tbody th, .rate-table td { padding-block: 16px; }
  .rate-price { font-size: 18px; }
  .advantages-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 24px; }
  .advantages-grid h3 { font-size: 20px; }
  .advantages-grid p { margin-top: 6px; max-width: none; }
  .advantage { grid-template-columns: 76px 1fr; gap: 16px; }
  .advantage-photo { width: 76px; height: 76px; border-radius: 14px; }
  .route-information, .route-fleet { grid-template-columns: 1fr; gap: 28px; }
  .route-intro { padding-block: 32px 40px; }
  .route-lead { font-size: 18px; }
  .route-origin { font-size: 15px; }
  .route-information h2 { font-size: 28px; }
  html { scroll-padding-top: 92px; }
  .container { width: calc(100% - 40px); }
  .site-header { height: 72px; }
  .header-inner { gap: 16px; }
  .brand-logo { width: 180px; }
  .header-phone { font-size: 14px; gap: 8px; }
  .header-phone .icon { width: 16px; height: 16px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 32px; padding-top: 32px; padding-bottom: 40px; }
  .hero h1 { font-size: clamp(34px, 8.8vw, 54px); }
  .hero-description { font-size: 17px; max-width: 320px; margin-top: 24px; }
  .hero .button { margin-top: 24px; }
  .hero-visual { height: 340px; border-radius: 18px; }
  .section-space { padding-block: 40px; }
  h2 { font-size: 32px; }
  .route-tabs { margin-top: 24px; }
  .route-tab { font-size: 15px; padding-inline: 18px; }
  .tariff-note { font-size: 14px; }
  .tariff-details { margin-top: 24px; }
  summary { gap: 20px; padding-block: 18px; }
  .class-details-body { grid-template-columns: 1fr; gap: 16px; }
  .fleet-note { font-size: 15px; }
  .fleet-grid { margin-top: 24px; gap: 24px 14px; }
  .fleet-photo { aspect-ratio: 4 / 3; border-radius: 12px; }
  .photo-count { bottom: 8px; left: 8px; font-size: 12px; padding: 4px 8px; }
  .fleet-copy { margin-top: 12px; }
  .fleet-kind { font-size: 13px; }
  .fleet-copy h3 { font-size: 16px; }
  .faq-section { display: block; }
  .faq-section h2 { font-size: 30px; margin-bottom: 24px; }
  .faq-item p { font-size: 15px; padding-right: 16px; }
  .booking-section { padding-bottom: 40px; }
  .booking-card { display: block; padding: 28px 24px; border-radius: 18px; }
  .booking-card h2 { font-size: 30px; }
  .booking-card p { font-size: 16px; }
  .booking-card p br { display: none; }
  .booking-card .button { margin-top: 24px; padding-inline: 16px; gap: 12px; }
  .messenger-links { margin-top: 20px; }
  .site-footer { flex-direction: column; gap: 8px; padding-block: 24px; font-size: 13px; }
  .gallery-dialog { width: calc(100% - 20px); padding: 16px; }
  .gallery-header { gap: 12px; }
  .gallery-header h2 { font-size: 20px; }
  .gallery-stage { height: 50dvh; }
  .gallery-arrow.prev { left: 6px; }
  .gallery-arrow.next { right: 6px; }
  .gallery-thumbs button { width: 56px; height: 44px; }
}
@media (max-width: 374px) {
  .container { width: calc(100% - 32px); }
  .brand-logo { width: 146px; }
  .header-inner { gap: 8px; }
  .header-phone .icon { display: none; }
  .header-phone { font-size: 13px; gap: 5px; }
  .hero-visual { height: 300px; }
  .booking-card { padding-inline: 20px; }
  .booking-card .button { font-size: 15px; padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  *, *::before, *::after { animation: none !important; }
  .site-header { position: static; }
  .desktop-nav, .hero .button, .booking-section, dialog { display: none !important; }
  .hero-slide:not(:first-child) { display: none !important; }
  .gallery-ready .hero-slide:first-child { opacity: 1; }
  .hero-slides { overflow: hidden; }
  .container { width: 100%; }
  .hero { display: grid; grid-template-columns: 1fr 1fr; padding-block: 20px; }
  .hero h1 { font-size: 34px; }
  .hero-visual { height: 280px; }
  .section-space { padding-block: 24px; }
  .rate-table tr, .fleet-card, details { break-inside: avoid; }
  .fleet-grid { grid-template-columns: repeat(4, 1fr); }
  .faq-section { display: block; }
  details > p, details > div { display: block !important; }
  .route-tab:not(.is-active) { display: none; }
}
