/* Inter, Google Fonts web builds v20. SIL Open Font License in fonts/OFL-Inter.txt. */
@font-face {
  font-family: "Inter Site";
  src: url("fonts/inter-cyrillic-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Inter Site";
  src: url("fonts/inter-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter Site";
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter Site";
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --f-body: "Inter Site", system-ui, "Segoe UI", Arial, sans-serif;
  --f-display: var(--f-body);
  --section-gutter: clamp(52px, 7.5vw, 112px);
  --site-ease: cubic-bezier(.22, 1, .36, 1);
  --button-accent: #b74412;
  --button-accent-hover: #9c3710;
  --r: 8px;
}

html {
  scroll-padding-block-start: calc(var(--site-header-height, 72px) + 16px + env(safe-area-inset-top, 0px));
}

body {
  font-optical-sizing: auto;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.hero h1 {
  max-width: 22ch;
  font-size: clamp(2.4rem, 4.65vw, 4.5rem);
  font-weight: 630;
  letter-spacing: -.055em;
  line-height: 1.04;
  text-wrap: pretty;
}

.hero-lead {
  max-width: 46ch;
  line-height: 1.6;
}

.sec { padding-block: var(--section-gutter); }
.sec-head { gap: 12px clamp(24px, 5vw, 72px); }

.sec-head h2, .final h2 {
  font-size: clamp(1.95rem, 3.65vw, 3.55rem);
  font-weight: 620;
  letter-spacing: -.05em;
  line-height: 1.07;
}

.sec-head p { text-wrap: pretty; }

.btn {
  transition: background-color .24s var(--site-ease), box-shadow .24s var(--site-ease);
}

.btn-orange { background: var(--button-accent); color: #fff; }
.btn-orange:hover { background: var(--button-accent-hover); }
.top .tp-mobile-menu-toggle[aria-expanded="true"] { background: var(--stone); }

@media (min-width: 1280px) {
  .top .wrap { gap: 16px; padding-inline: clamp(24px, 2.5vw, 36px); }
  .top .logo img { width: auto; height: auto; max-width: clamp(182px, calc(33vw - 245px), 252px); max-height: 24px; }
  .top .nav { display: flex; gap: clamp(8px, .72vw, 14px); }
  .top .nav a { font-size: .8125rem; }
  .top .top-right { gap: 14px; margin-inline-start: 0; }
}

@media (601px <= width < 1280px) {
  .top .wrap { gap: 12px; }
  .top .logo { min-width: 0; }
  .top .logo img { height: auto; max-height: 24px; object-fit: contain; }
  .top .tp-mobile-menu-toggle:not([hidden]) {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: var(--paper);
    cursor: pointer;
  }
  .top .tp-mobile-menu-toggle svg { width: 22px; height: 22px; }
  .top .tp-mobile-menu:not([hidden]) {
    display: grid;
    gap: 0;
    position: absolute;
    inset: 100% 0 auto;
    max-height: calc(100dvh - var(--site-header-height, 72px));
    overflow: auto;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding-inline: var(--gutter);
  }
  .top .tp-mobile-menu a {
    display: flex;
    align-items: center;
    min-height: 44px;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
  }
}

.hero .tp-catalog-link {
  color: #fff;
  border-color: #b7b2a7;
  white-space: normal;
}

.hero .tp-catalog-link:hover,
.hero .tp-catalog-link:focus-visible {
  background-color: #fff;
  color: var(--ink);
}

#routes .tabs {
  width: fit-content;
  max-width: 100%;
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: var(--paper);
}

#routes .tab {
  min-height: 44px;
  padding: 8px clamp(14px, 2.8vw, 22px);
  background: transparent;
  font-size: .875rem;
  transition: background-color .24s var(--site-ease), color .24s var(--site-ease);
}

#routes .tab:hover { background: var(--stone); }
#routes .tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }

#routes .panel { margin-top: clamp(22px, 3.8vw, 42px); }
#routes .panel > * { min-width: 0; }
#routes .panel > :last-child { border-top: 1px solid var(--line); padding-top: 12px; }
#routes .bl { gap: 8px; }

#routes .bl > a {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  color: var(--ink);
  font-size: .875rem;
  font-weight: 570;
  line-height: 1.3;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: border-color .24s var(--site-ease), color .24s var(--site-ease);
}

#routes .bl > a::after {
  flex: none;
  content: "";
  width: .43em;
  height: .43em;
  margin-inline-end: .12em;
  border-block-start: 1px solid currentColor;
  border-inline-end: 1px solid currentColor;
  transform: rotate(45deg);
  color: var(--orange-text);
}

#routes .bl > a:hover, #routes .bl > a:focus-visible {
  color: var(--orange-text);
  border-color: var(--orange-text);
}

#routes .term {
  flex-wrap: wrap;
  column-gap: 12px;
  row-gap: 4px;
}

#routes .term b { letter-spacing: -.055em; }
#routes .kv { grid-template-columns: minmax(0, .66fr) minmax(0, 1.34fr); }
#routes .kv dd { overflow-wrap: anywhere; }

@media (max-width: 600px) {
  :root { --section-gutter: 48px; }
  html {
    scroll-padding-block-start: calc(var(--site-header-height, 54px) + 16px + env(safe-area-inset-top, 0px));
  }
  .hero h1 { font-size: clamp(2rem, 7.9vw, 3rem); }
  .hero-lead { font-size: 1rem; }
  .sec-head h2, .final h2 { font-size: clamp(1.75rem, 6.7vw, 2.25rem); }
  #routes .tabs { gap: 2px; padding: 3px; }
  #routes .tab { padding-inline: clamp(8px, 2.9vw, 17px); }
  #routes .panel { gap: 24px; }
}

@media (max-width: 340px) {
  #routes .tabs { border-radius: 15px; }
  #routes .kv { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  #routes .panel:not([hidden]) { animation: tp-country-entry .3s var(--site-ease) both; }
  @keyframes tp-country-entry { from { opacity: .76; } to { opacity: 1; } }

  @supports (animation-timeline: view()) {
    .sec-head {
      animation: tp-heading-entry 1s linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }

    @keyframes tp-heading-entry {
      from { transform: translateY(9px); opacity: .92; }
      to { transform: translateY(0); opacity: 1; }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
