/* ---------------------------------------------------------------------------
 * fixes.css — the one stylesheet allowed to override style.css.
 *
 * Why it exists. css/style.css and js/main.js are the customer's files and ship
 * byte-for-byte from the reference copy: they hold the fares and the purchase
 * path, and the customer edits them on production himself. Patching them in a
 * build step would be overwritten by his next edit, or would overwrite it.
 *
 * Every other sheet of ours (menu.css, blog.css, locations.css, tours.css,
 * rent.css ...) keeps the rule "no selector shared with style.css", which is
 * what proves those files cannot restyle an existing page. A correction to the
 * customer's own rule cannot obey that rule, so it lives here and nowhere else:
 * tools/fidelity_check.py exempts exactly this file, and everything in it is an
 * intentional override.
 *
 * It loads last on every page: after style.css and menu.css on the static pages
 * (tools/gen_menu.py) and after the section sheets on the PHP ones (layout.php).
 * Values come from the design tokens in CLAUDE.md §5.
 * ------------------------------------------------------------------------- */

/* The header is fixed and comes back on the way up, so whatever focus or an anchor
   scrolled to the very top of the window ended up under it: three Shift+Tab stops
   on routes.html were covered whole. 90 px of header and a margin. */
html {
  scroll-padding-top: 6rem;
}

/* ТЗ §3.1: the header slides away on the way down (.header--hidden, assets/menu.css).
   His two transitions are restated verbatim, or naming transform would drop them. */
.header {
  transition:
    background-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s ease;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .header {
    transition: none;
  }
}

/* The home header has no background until the page scrolls, and white on the
   photo's sky came out at about 2:1. Dark from the panel's own colour behind the
   menu, gone below it, so the picture still reads as the top of the page. */
.page--home .header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
  height: 10rem;
  background-image: linear-gradient(
    to bottom,
    rgba(43, 49, 65, 0.75),
    rgba(43, 49, 65, 0.55) 45%,
    rgba(43, 49, 65, 0)
  );
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.page--home .header.header--scrolled::before,
.page--home .header.header--menu-open::before {
  opacity: 0;
}

/* ------------------------------------------------- the header on a phone */
@media (max-width: 63.75rem) {
  /* The burger panel must be reachable to the last item.
     style.css positions it `absolute; top: 100%` with no height limit, and
     .page--menu-open locks the body scroll — so anything taller than the
     viewport was simply unreachable: no page scroll behind it, no panel scroll
     inside it. On a 320x568 phone with a branch open that was roughly 370px of
     menu, including Контакты and the buy button.

     This is the one place a scrollbar earns its keep, so it is made quiet
     rather than removed: reaching the last item beats not seeing a scrollbar.

     flex-start: style.css centres this column, which is harmless until it
     overflows. Then the top half sticks out above scrollTop 0, where no swipe
     reaches: on a 360×640 phone or any phone on its side the first row, its arrow
     and in landscape whole links were out of reach for good.

     100dvh: on a real phone 100vh is the height with the browser's bars hidden,
     so the end of the panel stayed under the address bar. 100vh remains for a
     browser that does not know the unit. */
  .header__panel {
    justify-content: flex-start;
    max-height: calc(100vh - 5.625rem);
    max-height: calc(100dvh - 5.625rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
  }

  .header__panel::-webkit-scrollbar {
    width: 0.25rem;
  }

  .header__panel::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 0.125rem;
  }

  /* Logo, button and burger share the row, and with nothing said the button took
     its width from the other two: the burger came out an oval 26 px wide, 6 px off
     the screen at 320. The gap keeps the button off the logo. */
  .header__logo,
  .header__burger {
    flex-shrink: 0;
  }

  .header__actions {
    min-width: 0;
    padding-left: 0.25rem;
  }

  /* 44px rows, touching, for the 20px links they were with 32px of air: a tap
     between two items now lands on one of them. */
  .header__nav .nav__list {
    gap: 0;
  }

  .nav__link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
  }

  /* The language list opened outside the panel: absolutely placed, so the panel
     cut it off and the flag seemed to do nothing, and even closed it held 160 px of
     empty scroll. main.js moves the switcher into the panel here, which is what
     these selectors match, so without JavaScript nothing changes. In the flow it
     takes its own place, in a row, because five rows would not fit a short phone. */
  .header__panel .lang-switcher {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .header__panel .lang-switcher__button {
    min-height: 2.75rem;
  }

  .header__panel .lang-switcher__menu {
    position: static;
    display: none;
    padding: 0;
    transform: none;
    transition: none;
  }

  .header__panel .lang-switcher--open .lang-switcher__menu {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: 0 0.75rem;
    padding: 0;
    background-color: transparent;
  }

  .header__panel .lang-switcher__item a,
  .header__panel .lang-switcher__item button {
    min-height: 2.75rem;
  }

  /* A dimmed page says the menu is on top, and the layer takes the tap: main.js
     closes on any click outside the panel but lets it through, so a tap beside the
     menu also pressed the card underneath and left the page. The colour is the one
     of .modal__overlay, lighter. Under the header, which has z-index 100.
     cursor: iOS sends no click for a tap on a plain body otherwise. */
  .page--menu-open {
    cursor: pointer;
  }

  .page--menu-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(26, 29, 42, 0.5);
  }
}

/* Up to 396 px: «Xarid qilish» in Inter is wider than in the Arial the button had,
   and at 389–394 px (an iPhone is 390) it broke onto two lines, 72 px tall in a 90 px
   header. */
@media (max-width: 24.75rem) {
  .header__burger {
    margin-left: 0.5rem;
  }

  .header .header__button {
    padding-left: 0.625rem;
    padding-right: 0.625rem;
  }
}

/* At 360–376 px the Uzbek word still does not fit beside its icon, so there the icon
   goes, as it goes for every language under 360 px (below). */
@media (min-width: 22.5rem) and (max-width: 23.5rem) {
  .header .header__button:lang(uz) img {
    display: none;
  }
}

/* Under 360 px the ticket icon goes: 76 px are left for the button, and the word on
   it matters more. The logo gives up a little too, and keeps its proportions. */
@media (max-width: 22.4375rem) {
  .header__logo img {
    width: 9rem;
  }

  .header .header__button {
    min-height: 2.75rem;
    padding: 0.5rem;
  }

  .header .header__button img {
    display: none;
  }
}

/* ----------------------------------------------- the header on a desktop
   Six menu items and the city switch (assets/menu.css) share a row that the 1180 px
   of the container do not hold at style.css's margins and logo, even with the short
   labels of config/menu.json. A label and its caret never break, and the row takes
   the room back in steps: first the gap, then, below 1200 px, the size, then the
   logo. tools/navfit_check.py measures each step in the real font at 1021–1920 px. */
@media not all and (max-width: 63.75rem) {
  .header__panel {
    margin-left: 1rem;
  }

  .header__lang {
    margin-left: 0.75rem;
  }

  .header__nav .nav__list {
    gap: 0.875rem;
  }

  .header__nav .nav__list > .nav__item > .nav__link {
    white-space: nowrap;
  }
}

@media (min-width: 63.8125rem) and (max-width: 75rem) {
  .header__lang {
    margin-left: 0.5rem;
  }

  .header__nav .nav__list {
    gap: 0.5rem;
  }

  .header__nav .nav__list > .nav__item > .nav__link {
    font-size: 0.875rem;
  }
}

/* The logo goes last: style.css itself only narrows it on a phone. */
@media (min-width: 63.8125rem) and (max-width: 68.75rem) {
  .header__logo img {
    max-width: 11.25rem;
  }

  .header__nav .nav__list {
    gap: 0.625rem;
  }

  .header__nav .nav__list > .nav__item > .nav__link {
    font-size: 0.8125rem;
  }
}

/* Just above the breakpoint the header is narrowest: the logo and the gaps keep the
   menu clear of the buy button, the size stays 13 px. */
@media (min-width: 63.8125rem) and (max-width: 65.625rem) {
  .header__logo img {
    max-width: 10.5rem;
  }

  .header__nav .nav__list {
    gap: 0.4375rem;
  }
}

/* Four things stood wider than a 320 px screen and pushed the whole page sideways:
   fixed widths of 330 and 312 px, a row of socials with no way to wrap, and the one
   long word of the policy title at 32 px. */
.review-card,
.contacts__info,
.contacts-card-row,
.contacts-card {
  max-width: 100%;
}

.contacts__info {
  min-width: 0;
}

.contacts-page__socials {
  flex-wrap: wrap;
}

.policy__title {
  overflow-wrap: anywhere;
}

@media (max-width: 22.4375rem) {
  .policy__title {
    font-size: 1.625rem;
  }
}

/* Numbers and addresses to press with a thumb, 20 px tall and 28 px apart: the wrong
   phone was one slip away. The contact card has a fixed height for its desktop grid,
   and two numbers at this size no longer fit in it. */
@media (max-width: 48rem) {
  .footer__link {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }

  .contacts-card {
    height: auto;
    min-height: 8.375rem;
  }
}

/* From 660 px the two rows of cards stand side by side as two columns, and each
   column grew on its own: the taller phone card pushed «Часы работы» down, and the
   other column stretched its two cards to match, so the 2×2 grid fell apart. One
   grid for the four cards keeps the pairs on one line. The rows themselves step
   aside (display: contents), so the order and the columns stay the customer's. */
@media (min-width: 41.25rem) and (max-width: 48rem) {
  .contacts:not(.city-contacts) .contacts__info {
    display: grid;
    grid-template-columns: repeat(2, 19.5rem);
    grid-template-rows: auto auto;
    grid-auto-flow: column;
    gap: 1.25rem 1rem;
    justify-content: center;
  }

  .contacts:not(.city-contacts) .contacts-card-row {
    display: contents;
  }
}

/* The two links in the policy text had no colour of their own, so they came out the
   browser's blue. Dark and underlined at rest: the brand red is 4.4:1 on this white
   card, under AA for running text, so it is kept for the hover. */
.policy__section a {
  color: #1c1c1c;
  transition: color 0.35s ease;
}

.policy__section a:hover,
.policy__section a:focus-visible {
  color: #ed1a20;
}

/* The banner of the home page is chosen in the admin («Баннеры»), so the picture
   comes from /blog/banner.php: the chosen one, or the customer's own while none is
   (/img/hero-bg-image-1.webp). The hero is a CSS background, which srcset cannot
   reach, so a phone asks for size=phone: the 1920 px variant of the customer's
   picture instead of the 2752 px file (tools/convert_media.php makes it). */
.hero--full {
  background-image: url("/blog/banner.php?key=home");
}

@media (max-width: 48rem) {
  .hero--full {
    background-image: url("/blog/banner.php?key=home&size=phone");
  }
}

/* The block takes the hero's width, or the city control (assets/home.css) would be
   sized by the title. On a phone the customer's hero centres its H1 but leaves the
   block's items at flex-start, so the control and the button have to be told. */
.hero--cities .hero__content--center {
  width: 100%;
}

@media (max-width: 63.75rem) {
  .hero--cities .hero__content--center {
    align-items: center;
    text-align: center;
  }
}

/* A language that has no page here yet. On a PHP page the entry really is
   disabled (tct_lang_menu()), and without this it looked like its neighbours
   down to the pointer and the underline on hover. */
.lang-switcher__item button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  text-decoration: none;
}

/* On the PHP pages the live languages are links, so that crawlers can follow
   them, and style.css only ever styled the buttons of the static pages: the same
   entry came out blue and underlined. These are the values of its button rule. */
.lang-switcher__item a {
  width: 100%;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  color: #ffffff;
  font-size: 0.95rem;
  text-decoration: none;
}

.lang-switcher__item a:hover,
.lang-switcher__item a:focus-visible {
  text-decoration: underline;
}

/* style.css hides every animated block until main.js marks the body ready, so a
   main.js that was blocked or failed left the page empty, up to the H1 and the
   buy button of the home page. Scripting is on, so <noscript> does not help; this
   runs out only if nobody has claimed the body by then. 3 s leaves a slow
   connection time to load the script. */
@keyframes tct-reveal {
  to {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

body:not(.animations-ready) [data-animate-on-view] {
  animation: tct-reveal 0.2s ease 3s forwards;
}

/* The office map shared this row with the cards until it was removed from every
   page but «Контакты» (the customer, October 2026). The row stayed laid out for
   two: cards on the left half, nothing on the right, under a centred heading. */
@media (min-width: 48.01rem) {
  .contacts:not(.city-contacts) .contacts-card-row {
    flex: 1 1 100%;
  }
  .contacts:not(.city-contacts) .contacts-card {
    width: auto;
  }
}

/* The two icons are drawn in the brand red, and the customer's circle turned out
   red as well, so the glyph was lost in it. Same icons, in white. */
.contacts-page__socials img {
  filter: brightness(0) invert(1);
}

/* ---------------------------------------------- the ticket and request windows
   style.css gives the cross 14×28 px, and lays the window out for a screen taller
   than a laptop's: 1021 px of it at 900, the pay button under the edge with nothing
   to say there is more. */
.modal__window:focus {
  outline: none;
}

.modal__close {
  top: 0.25rem;
  right: 0.25rem;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.modal__subtitle {
  margin-bottom: 1rem;
}

.modal-option {
  padding: 0.625rem 1rem;
}

.modal-flow {
  gap: 0.875rem;
}

/* An empty node must not hold a line open. It stays in the tree, not display:none:
   a live region has to exist before its text does. */
.modal__error:empty {
  min-height: 0;
  margin: 0 0 -0.875rem;
}

.modal-request__form .modal__error:empty {
  margin-bottom: -1.25rem;
}

/* The 20 seconds notice (assets/fixes.js) is not a failure. */
.modal__error--note {
  color: #4a4e5c;
}

/* The fields' wrapper steps aside, so that the button is a child of the whole flow
   and stays in view from the ticket rows down, not only next to the two fields. */
.modal-contact {
  display: contents;
}

.modal__submit {
  position: relative;
}

/* The sticky edge is measured from inside .modal's 2rem padding, so the offset is
   negative to reach the bottom of the screen. The shadow is the backing: what
   scrolls under the button must not show around it. The second layer squares the
   rounded bottom of the first one against the screen edge. It ends 4 px short of
   the window's own bottom: any lower, and at the end of the scroll it stands out
   of the window's 24 px corners. */
.modal-contact > .modal__submit {
  position: sticky;
  bottom: -1.5rem;
  z-index: 1;
  box-shadow: 0 0 0 0.5rem #fff, 0 0.5rem 0 0.5rem #fff;
}

/* A field the keyboard moves to, or the error, must not land under that button. */
.modal {
  scroll-padding: 1rem 0 5.5rem;
}

/* While main.js waits for the server the button was disabled and looked the same.
   The label sits on the button as data-busy-label (assets/fixes.js). */
.modal__submit[aria-busy="true"],
.modal__submit[data-leaving],
[data-lead-submit][aria-busy="true"] {
  color: transparent;
  cursor: progress;
}

[data-lead-submit] {
  position: relative;
}

.modal__submit[data-leaving] {
  pointer-events: none;
}

.modal__submit[aria-busy="true"]::after,
.modal__submit[data-leaving]::after,
[data-lead-submit][aria-busy="true"]::after {
  content: attr(data-busy-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

/* The price comes from main.js itself. Two columns instead of space-between: at
   320 px «Пенсионеры» pushed its counter 17 px out of the card, «Взрослые» touched
   the minus, and no two rows had their counters under each other. */
.modal-ticket {
  padding: 0.625rem 0.875rem;
}

.modal-ticket__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 0.5rem;
  align-items: center;
  margin-bottom: 0;
}

.modal-ticket__title {
  grid-column: 1;
  overflow-wrap: anywhere;
}

.modal-ticket__controls {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.modal-ticket__price {
  grid-column: 1;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4a4e5c;
}

@media (max-width: 35rem) {
  .modal-ticket__controls {
    gap: 0.25rem;
  }

  .modal-ticket__count {
    width: 2rem;
  }
}

@media (max-width: 22.5rem) {
  .modal-ticket {
    padding: 0.625rem 0.75rem;
  }

  .modal-ticket__control,
  .modal-ticket__count {
    height: 2.25rem;
  }

  .modal-ticket__control {
    width: 2.25rem;
  }
}

/* The reason next to the field, from assets/leadform.js. Here because it is the one
   sheet on every page with such a form: contacts.html has no other in common with
   the PHP pages. The dark panels of the tour and the contact form, then the light
   window with the colour of .modal__error. */
.lead-error {
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.35;
  color: #ffb3b5;
  text-align: left;
}

.lead-error:empty {
  display: none;
}

.modal-field .lead-error {
  color: #d93a3a;
}

/* Four of each, and auto-fit made them 3+1 on a tablet: the videos of about.html up
   to 959 px, the cards of contacts.html up to 867 px. */
@media (min-width: 48.0625rem) and (max-width: 63.75rem) {
  .about-videos,
  .contacts-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ----------------------------------------- static pages: type, buttons, rhythm */

/* The customer's buttons are <button>s and <a>s with the same class. A link keeps
   the browser's underline, so half the buttons looked like links at rest and did
   nothing on hover, where .button:hover underlines. Off at rest, so that the
   hover underline of style.css is the one effect for both tags. */
a.button {
  text-decoration: none;
}

/* A <button> does not inherit the font, so the same red button was set in the
   system face (Arial, or MS Shell Dlg in Firefox) next to its Inter twin on a link. */
.button,
.lang-switcher button {
  font-family: inherit;
}

/* The one pill among the 10px buttons of the site (the request windows). */
.modal-request__submit {
  border-radius: 10px;
}

/* ТЗ §3.1, a hover for everything clickable. The values are the site's own: the
   red text of a nav link, the underline of a language entry, the tint of a ghost
   button; the logo dims as a whole picture. */
.header__logo {
  transition: opacity 0.35s ease;
}

.header__logo:hover,
.header__logo:focus-visible {
  opacity: 0.8;
}

.lang-switcher__button:hover span,
.lang-switcher__button:focus-visible span {
  text-decoration: underline;
}

.faq-item__trigger span {
  transition: color 0.35s ease;
}

.faq-item__trigger:hover span,
.faq-item__trigger:focus-visible span {
  color: #ed1a20;
}

.contacts__socials a {
  transition: color 0.35s ease;
}

.contacts__socials a:hover,
.contacts__socials a:focus-visible {
  color: #ed1a20;
}

.contacts-page__socials a {
  transition: background-color 0.35s ease;
}

.contacts-page__socials a:hover,
.contacts-page__socials a:focus-visible {
  background-color: rgba(237, 26, 32, 0.35);
}

/* The plus of a long question shrank as a flex item, from 20 down to 9 px. */
.faq-item__icon {
  flex-shrink: 0;
}

/* The red note on free travel had no padding: the text touched its rounded edges. */
.tickets__note {
  padding: 0.75rem 1.25rem;
}

/* Every other section title of the home page is 700; this one alone was 500. */
.comfort__title {
  font-weight: 700;
}

/* Long words of the route cards ran out of a 192 px column at 320 px
   («достопримечательностей», «Независимости»). */
.route-card__title,
.route-card__description {
  overflow-wrap: break-word;
  hyphens: auto;
}

/* The same in the policy cards: «(VISA/Mastercard/Uzcard/Humo)» is one 300 px token,
   and the grid widened the card to it under 320 px (a phone with a scrollbar). */
.policy__section {
  min-width: 0;
  overflow-wrap: break-word;
}

/* Japanese breaks between any two kana, and the home title left its last «ー»
   alone on the second line. Phrases stay whole where the browser knows how
   (auto-phrase), and the prolonged sound mark may never start a line (strict). */
:lang(ja) :is(h1, h2, h3) {
  line-break: strict;
  word-break: auto-phrase;
  text-wrap: balance;
}

/* Under 769 px the customer's section titles stayed at their desktop size while
   the page H1 went down to 24 px, so the H2 under it was larger: 36 on about.html,
   32 on prices.html, 28 on the home page. 1.5rem is the size style.css itself
   gives the other section titles on a phone; only the ones it forgot follow.
   The first group sits under the photo H1 of the inner pages, which keeps its
   desktop size at exactly 768 px (below), so it is left alone there. */
@media (max-width: 47.98rem) {
  .about-overview__title,
  .policy__title,
  .routes-brief__title,
  .about-cta__title {
    font-size: 1.5rem;
  }
}

@media (max-width: 48rem) {
  .hop__title,
  .about-partners__title,
  .support__title {
    font-size: 1.5rem;
  }
}

/* style.css switches to the phone layout at max-width 48rem, which takes in
   768 px itself: a portrait iPad got the 140 px photo band with a 24 px H1 and
   the partners in one column 1324 px tall, while 769 px gets the tablet page.
   At exactly 768 px those blocks keep the values they have one pixel wider. */
@media (min-width: 47.99rem) and (max-width: 48rem) {
  .routes-hero {
    min-height: 11.875rem;
  }

  .routes-hero__overlay {
    min-height: 22rem;
    padding: 4rem 1rem;
  }

  .routes-hero__title {
    font-size: 3rem;
  }

  .about-partners__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* The 2 + 2 of the tablet rule above starts at 769 px; at 768 auto-fit left 3 + 1. */
  .about-videos,
  .contacts-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* The home cards took each photo's own proportion once style.css set their height
   to auto on a tablet and a phone: 256 and 199 px tall in one column. 4:3, as the
   same cards of /samarkand/ (assets/locations.css). */
@media (max-width: 63.75rem) {
  .schedule-card__figure img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }
}

/* Six photos in one row, paired by two gaps: 30 px inside a pair, 16 between the
   pairs. One step, the gap of the row of pairs. Below 1021 px the pairs wrap into
   a grid and 30 px is the step of that grid, so it stays. */
@media not all and (max-width: 63.75rem) {
  .schedule__card-row {
    gap: 1rem;
  }
}

/* about.html laid the texture once at the width of the block (contain), and the
   block is twice as tall: the picture ended in a straight line across the text
   panel. The lower half now fades into the page colour, the way the blog post
   lays the same picture (blog/assets/blog.css, .post-body). 60.2vw is the
   picture's height at full width (722/1200). */
.about-overview {
  background-image:
    linear-gradient(rgba(58, 66, 87, 0) 50%, #3a4257),
    url("/img/bg-section.png");
  background-size: 100% 60.2vw, contain;
}

/* The text of the cooperation blocks runs two or three times the height of its
   photo, which stood at the top over an empty half of the row. On a desktop the
   photo stays in view while the text beside it is read (under the 90 px header). */
@media not all and (max-width: 63.75rem) {
  .cooperation-section__media {
    position: sticky;
    top: 6.5rem;
  }
}

/* Lines of 121-128 characters on about.html and up to 109 in the intro of
   routes.html: past 1100 px the eye loses the start of the next line. The width
   of a blog article (81-91 characters), centred in the same panel. */
.about-description > * {
  width: 100%;
  max-width: 50rem;
  margin-inline: auto;
}

.routes-brief__text {
  max-width: 50rem;
}

/* 04.11.2026, the user: «Купить» next to the language, on a phone too. On a desktop
   the city pair between them is gone (assets/menu.css), so the button stands right
   before the switcher. On a phone main.js moves the switcher into the burger panel,
   as its last row; the panel is a flex column, so it goes first instead — right
   under the header's «Купить», the two things a visitor sets before buying. */
@media (max-width: 63.75rem) {
  .header__panel .header__lang {
    order: -1;
    justify-content: center;
  }

  .header__burger {
    margin-left: 0.5rem;
  }
}
