.main {
  padding-inline: clamp(1.25rem, 24vw, max(calc(50vw - 1040px / 2), 12px));
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-bottom: 80px;
}

.header-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media screen and (min-width: 768px) {
  .header-container {
    display: grid;
    grid-template-areas: 'list info';
    grid-template-columns: 520px 1fr;
    align-items: center;
  }
}

.header-info-container {
  grid-area: info;
}

@media screen and (min-width: 768px) {
  .header-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
}

.header-list-container {
  grid-area: list;
}

@media screen and (min-width: 768px) {
  .header-list-container {
    display: flex;
    flex-direction: column-reverse;
  }
}

.header-info-title,
.header-info-description {
  color: #000;
  font-family: 'Yu Mincho';
  font-size: 17px;
  font-style: normal;
  font-weight: 400;
  line-height: 160%; /* 27.2px */
}

@media screen and (min-width: 768px) {
  .header-info-title,
  .header-info-description {
    font-size: 22px;
  }
}

.header-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 180px;
  background-image: url('../img/bg_map.png');
  background-size: 100% auto;
  background-position: top center;
  background-repeat: no-repeat;
}

@media screen and (min-width: 768px) {
  .header-list {
    display: grid;
    grid-template-columns: repeat(2, 210px);
    gap: 12px;
    padding-top: 40px;
    padding-bottom: 40px;
    padding-left: 40px;
    padding-right: 40px;
    background-position: center;
  }
}

.header-list-click {
  color: var(--color-text-black, #333);
  font-family: 'Yu Gothic';
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 160%; /* 25.6px */
  padding-bottom: 12px;
}

@media screen and (min-width: 768px) {
  .header-list-click {
    padding-top: 12px;
    padding-bottom: 0;
    padding-left: 40px;
  }
}

.header-list-item {
  padding: 8px;
  border-radius: 8px;
  background: rgba(195, 0, 51, 0.9);
  box-shadow: 0px 2px 3px 0px rgba(4, 52, 16, 0.16);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.header-list-item-title-count,
.header-list-item-title {
  color: var(--color-white-ffffff, #fff);
  font-family: 'Yu Gothic';
  font-size: 22px;
  font-style: normal;
  font-weight: 700;
  line-height: 130%; /* 26px */
}
.header-list-item-title-count {
  font-size: 25px;
}
.header-list-item-count-unit {
  font-size: 18px;
}

.header-list-item-block {
  border-radius: 4px;
  background: #fff;
  display: flex;
  height: 32px;
  padding: 7px 32px 7px 8px;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  text-decoration: none;
  position: relative;
}

.header-list-item-block::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  margin-top: -5px;
  width: 6px;
  height: 6px;
  border-right: 2px solid #c90046;
  border-bottom: 2px solid #c90046;
  transform: rotate(45deg);
}

.header-list-item-label,
.header-list-item-count {
  color: var(--color-text-black, #333);
  font-family: 'Yu Gothic';
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 130%; /* 18.2px */
}
.header-list-item-block:hover .header-list-item-label,
.header-list-item-block:hover .header-list-item-count {
  color: #c90046;
}
.header-list-item-count {
  font-size: 17px;
}
.header-list-item-count-little-unit {
  font-size: 14px;
}

.header-list-item-count-container {
  display: flex;
  justify-content: space-between;
}

.container-item-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media screen and (min-width: 768px) {
  .container-item-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 1020px) {
  .container-item-list {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
}

.list-item {
  padding: 16px;
  display: grid;
  grid-template-columns: 92px 1fr;
  row-gap: 16px;
  border: 1px solid #d9d9d9;
  background: #fff;
}

@media screen and (min-width: 768px) {
  .list-item {
    padding: 24px;
  }
}

@media screen and (min-width: 1020px) {
  .list-item {
    display: grid;
    grid-template-columns: 200px 60px 210px 104px 150px 1fr 64px;
    padding: 16px 16px;
    align-items: center;
    border-top: none;
    border-bottom: none;
    border-bottom: 1px solid #d9d9d9;
  }
}

.list-item-outline {
  display: none;
}

@media screen and (min-width: 1020px) {
  .list-item-outline {
    display: grid;
    grid-template-columns: 200px 60px 210px 104px 150px 1fr 60px;
    padding: 24px 16px;
    align-items: center;
    border: 1px solid #d9d9d9;
    background-color: #f8f8f8;
  }
}

.list-item-outline-text {
  color: var(--color-text-black, #333);
  font-family: 'Yu Gothic';
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  line-height: 130%; /* 19.5px */
}

.list-item-label {
  color: var(--color-text-black, #333);
  font-family: 'Yu Gothic';
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  line-height: 130%;
}

@media screen and (min-width: 1020px) {
  .list-item-label {
    display: none;
  }
}

.list-item-value {
  color: var(--color-text-black, #333);
  font-family: 'Yu Gothic';
  font-size: 15px;
  font-style: normal;
  font-weight: 500;
  line-height: 130%;
}

@media screen and (min-width: 1020px) {
  .list-item-value {
    padding-right: 16px;
  }
}

.list-item-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 4px 6px;
  background-color: #c90046;
  color: #fff;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  grid-column: span 2;
  margin-top: 8px;
  transition: background-color 0.3s ease;
}
.list-item-button:hover {
  height: 36px;
  border: 2px solid #c90046;
  background: #fff;
  color: #c90046;
}

@media screen and (min-width: 1020px) {
  .list-item-button {
    color: var(--color-white-ffffff, #fff);
    text-align: center;
    font-family: 'Yu Gothic';
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px; /* 200% */
    grid-column: initial;
    height: 24px;
    margin-top: 0;
  }
  .list-item-button:hover {
    height: 20px;
  }
}

.list-item-empty {
  color: var(--color-text-black, #333);
  font-family: 'Yu Gothic';
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
  padding: 16px;
  background-color: #f8f8f8;
}

@media screen and (min-width: 768px) {
  .list-item-empty {
    grid-column: span 2;
  }
}

@media screen and (min-width: 1020px) {
  .list-item-empty {
    padding: 23px 16px;
    font-size: 16px;
  }
}

.title {
  color: var(--color-text-black, #333);
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  padding-bottom: 8px;
  border-bottom: 2px solid;
  border-image: linear-gradient(to right, #c90046 30px, #ccc 40px) 1;
}

@media screen and (min-width: 768px) {
  .title {
    font-size: 24px;
    border-image: linear-gradient(to right, #c90046 100px, #ccc 40px) 1;
  }
}

.container-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

@media screen and (min-width: 1020px) {
  .container-list {
    gap: 72px;
  }
}

.container-item-label {
  color: var(--color-text-black, #333);
  font-family: 'Yu Mincho';
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
}

@media screen and (min-width: 1020px) {
  .container-item-label {
    font-size: 20px;
  }
}

.container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media screen and (min-width: 1020px) {
  .container {
    gap: 40px;
  }
}

.container-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cv-link {
  display: block;
}

.cv-img {
  width: 100%;
  max-height: 100%;
  max-width: 100%;
  height: auto;
}
