.header {
  width: 280px;
  display: flex;
  flex-direction: column;
  z-index: 99;
  background-color: #fff;
  height: 100vh;
  height: calc(calc(var(--vh, 1vh) * 100));
  overflow-y: auto;
  overflow-x: hidden;
}

.title-area {
  border-bottom: 1px solid #B8BDBF;
  display: grid;
  grid-template-columns: 182px 98px;
  grid-template-rows: 60px 70px;
  font-weight: 700;
}

.wrap-update {
  background-image: url("../public/img/pattern.png");
  padding: 0 15px;
  display: flex;
  align-items: center;
  grid-row: 1 / 2;
  grid-column: 1 / 3;
}

.update {
  padding: 4px;
  background-color: #FFE32D;
  border-radius: 4px;
  display: flex;
  gap: 4px;
}

.update-text {
  color: #fff;
  background-color: #262F34;
  display: inline-block;
  padding: 1px 7px 2px;
}

.update-title {
  font-weight: 900;
  padding: 1px 2px 2px 0;
}

.title {
  font-size: 2rem;
  border-right: 1px solid #B8BDBF;
  padding: 0 15px;
  display: flex;
  align-items: center;
  grid-row: 2 / 3;
  grid-column: 1 / 2;
}

.number {
  padding: 12px 14px 11px;
  grid-row: 2 / 3;
  grid-column: 2 / 3;
}

.number .no {
  font-size: 3.2rem;
}

.nav-hamburger {
  display: none;
}


.nav-area {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pagination-block {
  padding: 24px 15px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detailed-search-block {
  flex: 1;
  padding: 18px 15px;
  background-color: #F0F0EB;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.subtitle {
  padding-bottom: 5px;
  position: relative;
  margin-bottom: 15px;
  width: 100%;
}

.subtitle::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #C8373C;
}

.inputs {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

.detailed-search-form + .detailed-search-form {
  margin-top: 12px;
}

input {
  border: 1px solid #B8BDBF;
  border-radius: 4px;
  padding: 8.5px 8px;
  max-width: calc(100% - 66px);
  width: 100%;
  background-color: #fff;
}

input::placeholder {
  color: #B8BDBF;
}

.btn {
  min-width: 56px;
  width: 56px;
  height: 40px;
  border-radius: 4px;
  background-color: #C8373C;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

select:disabled,
input:disabled,
.btn:disabled,
.btn.disabled {
  background-color: #ccc !important;
  pointer-events: none;
}

.btns {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.back-page-btn,
.next-page-btn {
  max-width: 120px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.back-page-btn::before,
.next-page-btn::after {
  content: "";
  width: 7px;
  height: 7px;
  border-bottom: 2px solid #fff;
}

.back-page-btn::before {
  transform: rotate(45deg);
  border-left: 2px solid #fff;
}

.next-page-btn::after {
  transform: rotate(-45deg);
  border-right: 2px solid #fff;
}

.search-btn {
  position: relative;
}

.search-btn::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 15px;
  height: 21px;
  width: 21px;
  border: 4px solid #fff;
  border-radius: 50%;
}

.search-btn::after {
  content: "";
  position: absolute;
  top: 23px;
  left: 33px;
  height: 10px;
  width: 4px;
  background-color: #fff;
  transform: rotate(-45deg);
}

.wrap-index-select {
  position: relative;
  display: flex;
  align-items: center;
}

.wrap-index-select::after {
  position: absolute;
  right: 15px;
  width: 10px;
  height: 7px;
  background-color: #262F34;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  content: '';
  pointer-events: none;
}

#index_select {
  border: 1px solid #B8BDBF;
  border-radius: 4px;
  padding: 10px 35px 10px 8px;
  cursor: pointer;
  width: 100%;
  background-color: #fff;
}

#index_select:invalid {
  color: #bbb;
}
#index_select option {
  color: #000;
}

#index_select .placeholder {
  display: none;
}

#index_select optgroup {
  color: #000 !important;
}

.default-select {
  display: none;
}

.nav-footer {
  padding: 24px 15px;
}

.usage-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
}

.usage-btn::after {
  content: "";
  width: 7px;
  height: 7px;
  transform: rotate(-45deg);
  border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
}


@media screen and (max-width: 768px) {
  button {
    border: none;
  }

  .header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    height: auto;
    overflow: visible;
  }
  
  .title-area {
    border-bottom: none;
    display: flex;
    height: 60px;
    background-color: #C8373C;
  }

  .wrap-update {
    padding: 0 8px;
    flex-shrink: 0;
    min-width: 90px;
  }

  .update {
    padding: 4px;
    flex-direction: column;
    font-size: 1.2rem;
    gap: 0;
  }
  
  .update-text {
    border-radius: 2px;
    padding-left: 3px;
    padding-right: 3px;
  }
  
  .update-title {
    line-height: 1.2;
  }

  .title {
    font-size: 1.4rem;
    color: #fff;
    border-right: none;
    padding: 10px 8px;
    line-height: 1.2;
  }

  .title::after {
    content: "";
    height: 110%;
    width: 1px;
    background-color: #fff;
    margin-left: 8px;
  }
  

  .number {
    flex: 1;
    color: #fff;
    padding: 10px 8px 10px 0;
    display: flex;
    align-items: flex-end;
    height: 60px;
    margin-top: 0;
  }

  .number .vol {
    font-size: 1.2rem;
  }

  .number .no {
    font-size: 2.4rem;
    line-height: 1.18;
  }

  #hamburger_btn {
    background-color: #951B1E;
    width: 62px;
    height: 100%;
    position: relative;
  }

  #hamburger_btn::after {
    content: "MENU";
    color: #fff;
    font-size: 1.2rem;
    position: absolute;
    top: 34px;
    left: 50%;
    transform: translateX(-50%);
  }

  .wrap-hamburger-bar {
    position: absolute;
    top: 13px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 18px;
  }

  .hamburger-bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: all .2s;
  }

  .hamburger-bar:nth-child(1) {
    top: 0;
  }

  .hamburger-bar:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
  }

  .hamburger-bar:nth-child(3) {
    bottom: 0;
  }

  .header.is-open #hamburger_btn::after {
    content: "CLOSE";
  }

  .header.is-open .wrap-hamburger-bar {
    width: 18px;
  }

  .header.is-open .hamburger-bar:nth-child(1) {
    transform: rotate(-45deg);
    top: calc(50% - 1px);
  }

  .header.is-open .hamburger-bar:nth-child(2) {
    display: none;
  }

  .header.is-open .hamburger-bar:nth-child(3) {
    transform: rotate(45deg);
    bottom: calc(50% - 1px);
  }

  .nav-area {
    position: absolute;
    right: 0;
    top: 60px;
    transform: translateX(100%);
    width: 100%;
    height:100vh;
    height: calc(calc(var(--vh, 1vh) * 100) - 60px);
    background-color: #fff;
    transition: transform .5s;
    z-index: 1;
    overflow-y: scroll;
  }

  .header.is-open .nav-area {
    transform: translateX(0);
  }
  
  .pagination-block {
    gap: 0;
  }

  .pagination-block > .btns {
    margin-top: 14px;
  }

  .detailed-search-block {
    flex: auto;
    gap: 0;
  }

  .detailed-search-block > fieldset + fieldset {
    margin-top: 30px;
  }

  input {
    width: auto;
    flex: 1;
  }

  .back-page-btn,
  .next-page-btn {
    max-width: none;
    width: 47%;
    justify-content: space-around;
  }

  .wrap-index-select::after {
    display: none;
  }
}