.search-hero{
  padding:58px 0 36px;
  background:linear-gradient(180deg,#ffffff 0%,#f6f9fd 100%);
  border-bottom:1px solid #dfe7f2;
}

.search-hero__inner{
  display:grid;
  grid-template-columns:minmax(0,.88fr) minmax(360px,.72fr);
  gap:28px;
  align-items:end;
}

.search-hero h1{
  max-width:820px;
  margin:14px 0 12px;
  color:#071225;
  font-size:54px;
  line-height:1.02;
  letter-spacing:0;
}

.search-hero p{
  max-width:780px;
  margin:0;
  color:#536174;
  font-size:18px;
  line-height:1.65;
}

.search-panel{
  display:grid;
  gap:12px;
  border:1px solid #dce6f2;
  border-radius:8px;
  background:#ffffff;
  padding:18px;
  box-shadow:0 18px 44px rgba(7,18,37,.08);
}

.search-panel label{
  color:#1b2738;
  font-weight:950;
}

.search-panel__row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
}

.search-panel input[type="search"]{
  width:100%;
  min-height:56px;
  border:1px solid #c9d7e8;
  border-radius:8px;
  background:#fff;
  color:#071225;
  padding:0 15px;
  outline:none;
  font-weight:800;
}

.search-panel input[type="search"]:focus{
  border-color:#0757d8;
  box-shadow:0 0 0 4px rgba(7,87,216,.12);
}

.search-panel button{
  min-height:56px;
  border:0;
  border-radius:8px;
  background:#0757d8;
  color:#ffffff;
  padding:0 20px;
  font-weight:1000;
  cursor:pointer;
}

.search-panel__hints,
.search-start div,
.search-empty div{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.search-panel__hints a,
.search-start a,
.search-empty a{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  border:1px solid #d7e5ff;
  border-radius:999px;
  background:#f3f7ff;
  color:#0757d8;
  padding:0 11px;
  font-size:13px;
  font-weight:900;
}

.search-results-section{
  padding:34px 0 78px;
  background:#f5f8fc;
}

.search-layout{
  display:grid;
  grid-template-columns:270px minmax(0,1fr);
  gap:22px;
  align-items:start;
}

.search-scope-panel{
  position:sticky;
  top:calc(var(--site-header-height,110px) + 18px);
  display:grid;
  gap:12px;
}

.search-scope-panel > span{
  color:#536174;
  font-size:12px;
  font-weight:1000;
  text-transform:uppercase;
}

.search-scope-panel nav{
  display:grid;
  gap:8px;
}

.search-scope-panel a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:50px;
  border:1px solid #dce6f2;
  border-radius:8px;
  background:#ffffff;
  color:#1b2738;
  padding:0 12px;
  box-shadow:0 10px 26px rgba(7,18,37,.04);
}

.search-scope-panel a.is-active{
  border-color:#0757d8;
  background:#0757d8;
  color:#ffffff;
}

.search-scope-panel strong{
  font-size:14px;
}

.search-scope-panel em{
  display:inline-grid;
  place-items:center;
  min-width:28px;
  height:28px;
  border-radius:999px;
  background:#eef5ff;
  color:#0757d8;
  font-style:normal;
  font-size:12px;
  font-weight:1000;
}

.search-scope-panel a.is-active em{
  background:#ffffff;
  color:#0757d8;
}

.search-results-main{
  min-width:0;
}

.search-results-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:20px;
}

.search-results-head h2,
.search-start h2,
.search-empty h2{
  margin:10px 0 0;
  color:#071225;
  font-size:36px;
  line-height:1.12;
  letter-spacing:0;
}

.search-results-head > a{
  flex:0 0 auto;
  border:1px solid #c9d7e8;
  border-radius:8px;
  background:#ffffff;
  color:#0757d8;
  padding:12px 14px;
  font-weight:950;
}

.search-group-stack{
  display:grid;
  gap:18px;
}

.search-group{
  display:grid;
  gap:12px;
}

.search-group > header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.search-group h3{
  margin:0;
  color:#071225;
  font-size:24px;
}

.search-group > header span{
  color:#536174;
  font-weight:900;
}

.search-result-list{
  display:grid;
  gap:12px;
}

.search-result-card{
  border:1px solid #dce6f2;
  border-radius:8px;
  background:#ffffff;
  padding:18px;
  box-shadow:0 12px 30px rgba(7,18,37,.05);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}

.search-result-card:hover{
  transform:translateY(-2px);
  border-color:#b9d0ef;
  box-shadow:0 18px 44px rgba(7,18,37,.09);
}

.search-result-card__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

.search-result-card__top span{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  border-radius:999px;
  background:#ecfbf7;
  color:#0f7d66;
  padding:0 10px;
  font-size:12px;
  font-weight:1000;
}

.search-result-card__top small{
  color:#66758a;
  font-weight:850;
  text-align:right;
}

.search-result-card h4{
  margin:0;
  color:#071225;
  font-size:23px;
  line-height:1.2;
}

.search-result-card h4 a:hover{
  color:#0757d8;
}

.search-result-card p{
  margin:10px 0 14px;
  color:#405068;
  line-height:1.65;
}

.search-result-card mark{
  border-radius:4px;
  background:#fff2c4;
  color:#5f3c00;
  padding:0 3px;
}

.search-result-card__link{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  border-radius:8px;
  background:#071225;
  color:#ffffff;
  padding:0 13px;
  font-weight:950;
}

.search-start,
.search-empty{
  border:1px solid #dce6f2;
  border-radius:8px;
  background:#ffffff;
  padding:28px;
  box-shadow:0 12px 30px rgba(7,18,37,.05);
}

.search-start p,
.search-empty p{
  max-width:760px;
  color:#536174;
  font-size:17px;
  line-height:1.65;
}

.search-empty > span{
  display:grid;
  place-items:center;
  width:54px;
  height:54px;
  border-radius:50%;
  background:#fff1f2;
  color:#be123c;
  font-weight:1000;
}

@media(max-width:980px){
  .search-hero__inner,
  .search-layout{
    grid-template-columns:1fr;
  }

  .search-hero h1{
    font-size:42px;
  }

  .search-scope-panel{
    position:relative;
    top:auto;
  }

  .search-scope-panel nav{
    display:flex;
    overflow-x:auto;
    padding-bottom:4px;
  }

  .search-scope-panel a{
    flex:0 0 auto;
    min-width:156px;
  }
}

@media(max-width:620px){
  .search-hero{
    padding:38px 0 26px;
  }

  .search-hero h1{
    font-size:34px;
  }

  .search-panel__row,
  .search-results-head{
    grid-template-columns:1fr;
    display:grid;
  }

  .search-panel button,
  .search-results-head > a{
    width:100%;
  }

  .search-results-head h2,
  .search-start h2,
  .search-empty h2{
    font-size:28px;
  }

  .search-result-card__top{
    align-items:flex-start;
    flex-direction:column;
  }

  .search-result-card__top small{
    text-align:left;
  }

  .search-start,
  .search-empty{
    padding:20px;
  }
}
