/* Keep logo and desktop navigation on a single row at wide viewports.
   The theme's generic .flex wraps, and its 1200px inside container is too narrow. */
@media (min-width: 1101px) {
  .header > .inside {
    width: 100%;
    max-width: 1540px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 16px;
  }
  .header > .inside > .logo {
    flex: 0 0 auto;
  }
  .header > .inside > .logo img {
    display: block;
    max-width: min(250px, 19vw);
    height: auto;
  }
  .header > .inside > .nav {
    flex: 0 1 auto;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
  }
  .header > .inside > .nav > ul.flex,
  .header > .inside > .nav .languages-wrapper ul {
    flex-wrap: nowrap;
  }
  .header > .inside > .nav > ul.flex li,
  .header > .inside > .nav .hours {
    white-space: nowrap;
  }
  .header > .inside > .nav .site-search-disclosure,
  .header > .inside > .nav .languages-wrapper,
  .header > .inside > .nav .toggler {
    flex-shrink: 0;
  }
}
@media (min-width: 1101px) and (max-width: 1450px) {
  .header > .inside > .nav > ul.flex li {
    margin-left: 18px;
  }
  .header > .inside > .nav .hours {
    margin-left: 20px;
  }
  .header > .inside > .nav .languages-wrapper {
    margin-left: 18px;
  }
  .header > .inside > .nav .toggler {
    margin-left: 16px;
  }
  .header > .inside > .nav .site-search-disclosure {
    margin-left: 14px;
  }
}

/* Search drawer opens below the complete desktop header, not above navigation. */
.header .inside {
  position: relative;
}

.header .site-search-disclosure {
  position: static;
  z-index: auto;
  flex: 0 0 auto;
  margin-left: 24px;
  font-weight: 400;
  text-transform: none;
}

.header .site-search-disclosure > summary {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #4d748c;
  border: 1px solid #cbd9e0;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  list-style: none;
  transition: background .2s, border-color .2s;
}

.header .site-search-disclosure > summary::-webkit-details-marker {
  display: none;
}
.header .site-search-disclosure > summary::marker {
  content: "";
}

.header .site-search-disclosure > summary:hover,
.header .site-search-disclosure[open] > summary {
  color: #fff;
  background: #4d748c;
  border-color: #4d748c;
}

.header .site-search-disclosure > summary:focus-visible,
.header .site-search-panel input:focus-visible,
.header .site-search-panel button:focus-visible {
  outline: 3px solid #96bfd3;
  outline-offset: 2px;
}

.header .site-search-disclosure svg {
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
}

.header .site-search-disclosure:not([open]) .site-search-panel {
  display: none;
}

.header .site-search-panel {
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  z-index: 20;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(610px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  margin: 0;
  padding: 16px;
  background: #fff;
  border: 1px solid #d7e2e7;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 18px 32px rgba(16, 35, 45, .15);
}

@keyframes pivdennyi-search-drop {
  from { transform: translateY(-12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.header .site-search-disclosure[open] .site-search-panel {
  animation: pivdennyi-search-drop .25s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  .header .site-search-disclosure[open] .site-search-panel {
    animation: none;
  }
}

.header .site-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.header .site-search-panel input {
  flex: 1 1 auto;
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border: 1px solid #c9d9e1;
  border-radius: 9px;
  background: #fff;
  color: #1a1a18;
  font: 400 17px 'DIN Pro', sans-serif;
  text-transform: none;
}

.header .site-search-panel button {
  box-sizing: border-box;
  flex: 0 0 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 9px;
  background: #4d748c;
  color: #fff;
  cursor: pointer;
}

.header .site-search-panel button:hover {
  background: #365a71;
}

@media (max-width: 1200px) {
  .header .site-search-disclosure {
    margin-left: 14px;
  }
}

@media (max-width: 700px) {
  .header .site-search-disclosure {
    margin-left: 12px;
  }
  .header .site-search-disclosure > summary {
    width: 42px;
    height: 42px;
  }
  .header .site-search-panel {
    position: fixed;
    top: 75px;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    gap: 8px;
    padding: 12px;
    border: 1px solid #d7e2e7;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(16, 35, 45, .18);
  }
  .header.fixed .site-search-panel {
    top: 67px;
  }
}

/* Results are intentionally scoped to the search results page. */
.site-search-results {
  padding: 38px 0 70px;
  background: #f7f9fa;
  min-height: 48vh;
}

.site-search-results .inside {
  max-width: 1160px;
}

.site-search-results h1 {
  margin: 0 0 12px;
  color: #1a1a18;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.2;
  font-weight: 700;
}

.site-search-results__summary {
  color: #526571;
  margin: 0 0 28px;
  font-size: 18px;
}

.site-search-results__items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.site-search-results__item {
  background: #fff;
  border: 1px solid #e0e8ec;
  padding: 24px;
  border-radius: 8px;
  overflow-wrap: anywhere;
}

.site-search-results__type {
  color: #4d748c;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 9px;
}

.site-search-results__item h2 {
  font-size: 23px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 12px;
}

.site-search-results__item h2 a:hover {
  color: #4d748c;
}

.site-search-results__item p {
  font-size: 17px;
  line-height: 1.5;
  color: #414c52;
}

.site-search-results__pagination {
  margin-top: 34px;
  font-size: 18px;
}

.site-search-results__pagination .page-numbers {
  display: inline-block;
  padding: 8px 13px;
  margin: 0 3px 8px 0;
  background: #fff;
  border-radius: 5px;
}

.site-search-results__pagination .page-numbers.current {
  background: #4d748c;
  color: #fff;
}

@media (max-width: 700px) {
  .site-search-results {
    padding: 28px 0 48px;
  }
  .site-search-results__items {
    grid-template-columns: 1fr;
  }
  .site-search-results__item {
    padding: 20px;
  }
}
