/* Стилі трьох правових сторінок toreqavulx.com */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --tq-paper: #f8f6f1;
  --tq-card: #fffdf8;
  --tq-ink: #221b12;
  --tq-accent: #8a5a1f;
  --tq-accent-soft: rgba(138, 90, 31, 0.1);
  --tq-line: #e3ddd0;
  --tq-muted: #6b6052;
  --tq-sans: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tq-rad: 14px;
  --tq-shade: 0 8px 22px rgba(34, 27, 18, 0.08);
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--tq-paper);
  color: var(--tq-ink);
  font-family: var(--tq-sans);
  font-size: 15px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

/* ── шапка ─────────────────────────────────────────────── */
.tq-topbar {
  padding: 18px 16px;
  text-align: center;
  background: var(--tq-card);
  border-bottom: 2px solid var(--tq-accent);
}
.tq-topbar__logo {
  display: inline-block;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  color: var(--tq-ink);
  text-decoration: none;
}

/* ── обкладинка документа ──────────────────────────────── */
.tq-cover {
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 16px 10px;
  text-align: center;
}
.tq-cover__title {
  font-size: clamp(25px, 5vw, 40px);
  font-weight: 800;
  line-height: 1.22;
  overflow-wrap: break-word;
  color: var(--tq-ink);
}
.tq-cover__sub {
  display: block;
  max-width: 660px;
  margin: 14px auto 0;
  font-size: 15px;
  color: var(--tq-muted);
}
.tq-cover__date {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 15px;
  border: 1px solid rgba(138, 90, 31, 0.4);
  border-radius: 999px;
  background: var(--tq-accent-soft);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--tq-accent);
}

/* ── сітка розділів ────────────────────────────────────── */
.tq-sheet {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 16px 42px;
}
.tq-sheet__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}
@media (min-width: 880px) {
  .tq-sheet__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .tq-part--wide {
    grid-column: 1 / -1;
  }
}

.tq-part {
  position: relative;
  background: var(--tq-card);
  border: 1px solid var(--tq-line);
  border-left: 4px solid var(--tq-accent);
  border-radius: var(--tq-rad);
  padding: 20px 18px 18px;
  box-shadow: var(--tq-shade);
}
.tq-part__num {
  display: inline-block;
  min-width: 30px;
  margin-bottom: 9px;
  padding: 2px 9px;
  border-radius: 8px;
  background: var(--tq-accent);
  color: #fff6e9;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
}
.tq-part__title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.32;
  margin-bottom: 9px;
  overflow-wrap: break-word;
  color: var(--tq-ink);
}
.tq-part__body > * + * {
  margin-top: 11px;
}
.tq-part__body ul,
.tq-part__body ol {
  padding-left: 19px;
}
.tq-part__body li + li {
  margin-top: 6px;
}
.tq-part__body li::marker {
  color: var(--tq-accent);
  font-weight: 700;
}
.tq-part__body strong {
  color: var(--tq-ink);
}

/* ── виноска ───────────────────────────────────────────── */
.tq-note {
  border: 1px dashed rgba(138, 90, 31, 0.55);
  border-radius: 10px;
  background: var(--tq-accent-soft);
  padding: 13px 14px;
  font-size: 14.5px;
}

/* ── рядки «ключ — значення» ───────────────────────────── */
.tq-rows {
  display: grid;
  gap: 1px;
  background: var(--tq-line);
  border: 1px solid var(--tq-line);
  border-radius: 10px;
  overflow: hidden;
}
.tq-rows__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  background: var(--tq-card);
  padding: 11px 13px;
}
@media (min-width: 520px) {
  .tq-rows__item {
    grid-template-columns: minmax(130px, 38%) 1fr;
    gap: 12px;
    align-items: baseline;
  }
}
.tq-rows__key {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--tq-accent);
}
.tq-rows__val {
  font-size: 14.5px;
  color: var(--tq-ink);
}

/* ── теги ──────────────────────────────────────────────── */
.tq-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.tq-tags__item {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid rgba(138, 90, 31, 0.35);
  border-radius: 999px;
  background: rgba(138, 90, 31, 0.07);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--tq-ink);
}

/* ── таблиця ───────────────────────────────────────────── */
.tq-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.tq-table th,
.tq-table td {
  border: 1px solid var(--tq-line);
  padding: 9px 11px;
  text-align: left;
  vertical-align: top;
}
.tq-table th {
  background: var(--tq-accent-soft);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--tq-accent);
}

/* ── підсумковий рядок ─────────────────────────────────── */
.tq-epilogue {
  max-width: 1080px;
  margin: 0 auto 36px;
  padding: 0 16px;
}
.tq-epilogue__inner {
  border-top: 2px solid var(--tq-accent);
  padding-top: 14px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--tq-muted);
  text-align: center;
}

/* ── підвал ────────────────────────────────────────────── */
.tq-base {
  margin-top: auto;
  flex-shrink: 0;
  background: #2b2217;
  color: #ded5c6;
  padding: 24px 16px 22px;
  text-align: center;
  border-top: 3px solid var(--tq-accent);
}
.tq-base__inner {
  max-width: 860px;
  margin: 0 auto;
}
.tq-base__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-bottom: 13px;
}
.tq-base__nav a {
  color: #ded5c6;
  font-size: 12px;
  text-decoration: none;
  border-bottom: 1px solid rgba(190, 140, 70, 0.6);
  padding-bottom: 2px;
}
.tq-base__nav a:hover {
  color: #e7b878;
}
.tq-base__copy {
  font-size: 12px;
  margin-bottom: 9px;
}
.tq-base__legal {
  font-size: 11px;
  line-height: 1.7;
  color: #b3a894;
  max-width: 740px;
  margin: 0 auto;
}
