.doc-page {
  position: relative;
  background: #faf9f6;
  padding: 24px 0 80px;
  overflow-x: clip;
  overflow-y: visible;
}

.doc-page__bg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 411px;
  pointer-events: none;
}

.doc-page__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.05;
}

.doc-page .container {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 48px;
  font-size: 12px;
  line-height: 16px;
}

.breadcrumb a {
  font-weight: 500;
  color: #5a403d;
}

.breadcrumb span {
  font-weight: 700;
  color: #1a1c1c;
}

.breadcrumb img {
  width: 5px;
  height: 8px;
  flex-shrink: 0;
}

.doc-layout {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.doc-side {
  min-width: 0;
  width: 100%;
}

.doc-card {
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: visible;
}

.doc-card,
.doc-main {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.doc-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  color: #1a1c1c;
}

.doc-card__title i {
  width: 4px;
  height: 20px;
  border-radius: 9999px;
  background: #940a0a;
}

.doc-cats {
  display: flex;
  flex-direction: column;
}

.doc-cats__item {
  display: block;
}

.doc-cats button,
.doc-cats a {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 24px;
  color: #444;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  text-decoration: none;
}

.doc-cats__label {
  flex: 1;
  min-width: 0;
  white-space: normal;
  word-break: break-word;
}

.doc-cats__item + .doc-cats__item {
  margin-top: 8px;
}

.doc-cats__arrow {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  background: url('../images/9dad2fe6-9a07-45de-b84d-421a5c982eec.png') no-repeat center / contain;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.doc-cats button.is-active .doc-cats__arrow,
.doc-cats a.is-active .doc-cats__arrow {
  background-image: url('../images/0e79a9b1-d329-44f5-b8e5-74d280cd65fd.png');
  opacity: 1;
}

.doc-cats button.is-active,
.doc-cats a.is-active {
  background: #f6e9e9;
  color: #7a0808;
  font-weight: 600;
}

.doc-cats button:hover:not(.is-active),
.doc-cats a:hover:not(.is-active) {
  background: #faf7f7;
}

.doc-contact {
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 41px 25px 25px;
}

.doc-contact img {
  width: 30px;
  height: 24px;
}

.doc-contact h4 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  margin-top: 16px;
  color: #1a1c1c;
}

.doc-contact p {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 22px;
  color: #444;
  margin-top: 8px;
}

.doc-main {
  padding: 49px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.doc-main__head {
  border-bottom: 1px solid #e2e2e2;
  padding-bottom: 25px;
  text-align: center;
}

.doc-main__head h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 40px;
  line-height: 56px;
  color: #1a1c1c;
}

.doc-main__head p {
  display: block;
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 22px;
  color: #888;
}

.doc-main__head i,
.doc-file__meta i {
  width: 4px;
  height: 4px;
  border-radius: 9999px;
  background: #555;
  display: inline-block;
  flex-shrink: 0;
}

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

.doc-body section {
  margin: 0;
}

.doc-body p {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 28px;
  color: #5a403d;
  margin: 0 0 12px;
}

.doc-body p:last-child {
  margin-bottom: 0;
}

.doc-body h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  color: #1a1c1c;
  margin: 0 0 16px;
}

.doc-body h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  line-height: 26px;
  color: #1a1c1c;
  margin: 0 0 12px;
}

.doc-body ul,
.doc-body ol {
  display: block;
  margin: 0 0 16px;
  padding-left: 1.6em;
}

.doc-body ul {
  list-style: disc;
}

.doc-body ol {
  list-style: decimal;
}

.doc-body ul ul {
  list-style: circle;
  margin-top: 8px;
  margin-bottom: 0;
}

.doc-body li {
  display: list-item;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 26px;
  color: #5a403d;
  margin-bottom: 8px;
}

.doc-body li:last-child {
  margin-bottom: 0;
}

.doc-quote {
  padding: 16px 0;
}

.doc-quote p {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 26px;
  color: #5a403d;
}

.doc-notice {
  padding-top: 32px;
}

.doc-notice h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  color: #940a0a;
  margin-bottom: 8px;
}

.doc-notice p {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 22px;
  color: #5a403d;
}

.service-intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-intro > p {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 28px;
  color: #5a403d;
}

.service-figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #faf7f7;
  border: 1px solid #eee;
}

.service-figure img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
}

.service-figure img[width] {
  width: auto;
  max-height: none;
  margin: 24px auto;
  padding: 16px;
}

.doc-body > section > p {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 28px;
  color: #5a403d;
}

.doc-body > section > p + p {
  margin-top: 12px;
}

.contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 26px;
  color: #5a403d;
}

.contact-line__label {
  min-width: 96px;
  color: #1a1c1c;
  font-weight: 600;
}

.contact-line a {
  color: #940a0a;
}

.contact-line a:hover {
  text-decoration: underline;
}

.doc-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  padding: 25px;
}

.doc-file__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--serif);
  font-size: 12px;
  line-height: 16px;
  color: #1a1c1c;
}

.doc-file h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #555;
  margin-top: 8px;
}

.doc-download {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  background: #940a0a;
  color: #fff;
  border-radius: 8px;
  padding: 16px 32px;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 16px;
  line-height: 24px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.doc-download img {
  width: 16px;
  height: 16px;
}

@media (max-width: 1200px) {
  .doc-layout {
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  }
  .doc-main {
    padding: 32px;
  }
  .doc-main__head h1 {
    font-size: 32px;
    line-height: 44px;
  }
}

@media (max-width: 768px) {
  .doc-layout {
    grid-template-columns: 1fr;
  }
  .doc-main,
  .doc-card {
    padding: 20px;
  }
  .doc-main__head h1 {
    font-size: 24px;
    line-height: 34px;
  }
  .doc-file {
    flex-direction: column;
    align-items: flex-start;
  }
  .breadcrumb {
    margin-bottom: 24px;
    flex-wrap: wrap;
  }
}
