/* Страницы с текстом: документы, заглушка личного кабинета, 404, список заявок. Подключается после styles.css. */

.doc-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 0;
}

.doc-page main {
  flex: 1;
}

.doc-page .header-inner {
  justify-content: space-between;
}

.doc-page .header-phone {
  display: inline;
}

.doc {
  max-width: 820px;
  padding: 48px 0 88px;
}

.doc--wide {
  max-width: 1200px;
}

.doc__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.doc__meta {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--muted);
}

.doc__note {
  margin-top: 24px;
  padding: 18px 22px;
  border-radius: 16px;
  background: var(--cream);
  box-shadow: inset 0 0 0 1.5px rgba(242, 169, 59, 0.55);
  font-size: 16px;
  color: var(--ink);
}

.doc h2 {
  margin-top: 40px;
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--navy);
}

.doc h2 + p,
.doc h2 + ul,
.doc h2 + ol {
  margin-top: 14px;
}

.doc p,
.doc li {
  margin-top: 12px;
  font-size: 16.5px;
  line-height: 1.65;
}

.doc ul,
.doc ol {
  padding-left: 24px;
}

.doc ul {
  list-style: disc;
}

.doc ol {
  list-style: decimal;
}

.doc li::marker {
  color: var(--amber);
  font-weight: 800;
}

.doc a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.doc a:hover {
  color: var(--sky);
}

.doc dl.doc__facts {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.doc__facts > div {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.5;
}

.doc__facts dt {
  color: var(--muted);
}

.doc__facts dd {
  font-weight: 700;
}

/* Заглушки: личный кабинет и 404 */

.stub {
  max-width: 640px;
  padding: 72px 0 96px;
  text-align: center;
}

.stub__mark {
  width: 72px;
  margin: 0 auto 24px;
  mix-blend-mode: multiply;
}

.stub .doc__title {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
}

.stub p {
  margin-top: 16px;
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--muted);
}

.stub__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

/* Таблица заявок */

.table-wrap {
  margin-top: 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.table-wrap th,
.table-wrap td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table-wrap th {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  white-space: nowrap;
}

.table-wrap tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 720px) {
  .doc {
    padding: 28px 0 56px;
  }

  .doc h2 {
    margin-top: 32px;
  }

  .doc__facts > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .stub {
    padding: 44px 0 64px;
  }

  .stub__actions .btn {
    flex: 1 1 100%;
  }
}
