/**
 * Travel Custom v1.1.1 — multilingual header layout repair.
 * The original fixed 1168px container and 76/38/8% inner columns cannot
 * accommodate the Blog item, especially in DE/RU.  Adjust only the header;
 * content containers, drop-down styling and the existing mobile drawer remain.
 */
@media (min-width: 993px) {
  main > header > .cont {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 1500px !important;
    padding-inline: clamp(20px, 2.8vw, 42px) !important;
    margin-inline: auto !important;
    gap: clamp(10px, 1.5vw, 22px);
  }
  main > header .logo {
    flex: 0 0 clamp(116px, 10.6vw, 152px);
    width: auto;
    min-width: 0;
    justify-content: flex-start;
  }
  main > header .logo img {
    display: block;
    width: 100%;
    max-width: 152px;
    height: auto;
  }
  main > header .rg-top-header {
    display: flex;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    gap: clamp(8px, 1vw, 16px);
    justify-content: flex-end;
    align-items: center;
  }
  main > header .rg-top-header > .bl-phone {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    white-space: nowrap;
    gap: 5px;
  }
  main > header .rg-top-header > .bl-phone .phone {
    white-space: nowrap;
    margin-left: 0;
    font-size: clamp(12px, .88vw, 14px);
  }
  main > header .rg-top-header > .bl-phone .bl-soc {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  main > header .rg-top-header > .bl-phone .bl-soc a {
    margin-right: 4px;
  }
  main > header .menu-top {
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    margin: 0;
  }
  main > header .menu-top .menu-top_menu-container > ul,
  main > header .menu-top > div > ul {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    column-gap: clamp(8px, .85vw, 16px);
    padding: 0;
    margin: 0;
  }
  main > header .menu-top .menu-top_menu-container > ul > li,
  main > header .menu-top > div > ul > li {
    flex: 0 0 auto;
    margin: 0;
    min-width: 0;
    text-align: center;
  }
  main > header .menu-top .menu-top_menu-container > ul > li > a,
  main > header .menu-top > div > ul > li > a {
    display: inline-block;
    white-space: nowrap;
    line-height: 1.35;
    font-size: clamp(11px, .89vw, 14px);
    text-align: center;
    vertical-align: middle;
  }
  main > header .menu-top .menu-top_menu-container > ul > li.menu-item-has-children,
  main > header .menu-top > div > ul > li.menu-item-has-children {
    padding-right: 12px;
  }
  main > header .menu-top .menu-top_menu-container > ul > li.menu-item-has-children::after,
  main > header .menu-top > div > ul > li.menu-item-has-children::after {
    right: 0;
  }
  main > header .menu-top .menu-top_menu-container > ul > li.menu-item-has-children:hover,
  main > header .menu-top > div > ul > li.menu-item-has-children:hover {
    padding-right: 12px;
    padding-left: 0;
  }
  main > header .rg-top-header > .tm-search-trigger {
    flex: 0 0 34px;
    width: 34px;
    min-width: 34px;
    margin: 0;
  }
  main > header .rg-top-header > .lang {
    flex: 0 0 59px;
    width: 59px;
    min-width: 59px;
  }
}

/* Preserve the full navigation whenever it fits.  Hide only the duplicate
   desktop contact block as soon as the menu needs its space; the contact
   links remain available in the mobile drawer and website footer. */
@media (min-width: 993px) and (max-width: 1240px) {
  main > header .rg-top-header > .bl-phone { display: none; }
  main > header .rg-top-header { gap: 8px; }
  main > header .menu-top > div > ul { column-gap: 9px; }
  main > header .menu-top > div > ul > li > a { font-size: 12px; }
}

/* Do not change the original mobile menu, but keep the logo, search and
   toggle on one row and prevent translated header items from clipping. */
@media (max-width: 992px) {
  main > header > .cont {
    box-sizing: border-box !important;
    min-width: 0;
    width: 100% !important;
    padding-inline: clamp(16px, 4vw, 26px) !important;
    gap: 12px;
  }
  main > header .logo { flex: 0 1 auto; min-width: 0; }
  main > header .rg-top-header {
    display: flex;
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    align-items: center;
    gap: 10px;
  }
  main > header .rg-top-header > .tm-search-trigger {
    margin: 0;
  }
  nav.nav .top-nav ul li a { overflow-wrap: normal; word-break: normal; }
}
