/* Страницы справочника. Общая бумага и шапка — legal.css.
   Подвал — тот же, что на главной (site-footer). */

html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > .legal-wrap {
  flex: 1 0 auto;
}

.site-footer {
  margin-top: auto;
  background: var(--navy, #243c56);
  color: #f3ead2;
  font-family: system-ui, sans-serif;
}

.site-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 24px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px 48px;
}

.site-footer__brand-col {
  flex: 1 1 240px;
  max-width: 28rem;
  min-width: 0;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 28px 48px;
}

.site-footer__brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 0 0 12px;
  color: #f7f0d8;
  text-decoration: none;
}

.site-footer__brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.site-footer__brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-footer__brand-name {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: -0.035em;
  color: #f7f0d8;
  line-height: 1;
}

.site-footer__brand-tag {
  margin-top: 2px;
  font-family: Georgia, serif;
  font-size: 1.05rem;
  color: color-mix(in srgb, #f7f0d8 62%, #243c56);
  line-height: 1;
}

.site-footer__tagline,
.site-footer__note,
.site-footer__rekvizity,
.site-footer__copy {
  color: color-mix(in srgb, #f3ead2 65%, #4a5869);
}

.site-footer__tagline {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 22rem;
}

.site-footer__rekvizity {
  margin: 12px 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.site-footer__col-title {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b47b59;
}

.site-footer__list,
.site-footer__sublist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__list li,
.site-footer__sublist li {
  font-size: 0.92rem;
}

.site-footer__list a,
.site-footer__folder > summary {
  color: color-mix(in srgb, #f3ead2 78%, #4a5869);
  font-size: 0.92rem;
  text-decoration: none;
}

.site-footer__list a:hover,
.site-footer__folder > summary:hover {
  color: #f7f0d8;
}

.site-footer__list .is-muted {
  opacity: 0.45;
  color: color-mix(in srgb, #f3ead2 55%, #4a5869);
}

.site-footer__folder {
  margin: 0;
}

.site-footer__folder > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4em;
  width: fit-content;
}

.site-footer__folder > summary::-webkit-details-marker {
  display: none;
}

.site-footer__folder > summary::after {
  content: '';
  width: 0.38em;
  height: 0.38em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.7;
  margin-top: -0.12em;
}

.site-footer__folder[open] > summary::after {
  transform: rotate(-135deg);
  margin-top: 0.12em;
}

.site-footer__sublist {
  margin: 8px 0 0;
  padding: 0 0 0 0.9em;
  gap: 6px;
}

.site-footer__sublist a {
  font-size: 0.86rem;
}

.site-footer__note,
.site-footer__copy {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 24px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.site-footer__note {
  padding-bottom: 28px;
}

.site-footer__copy {
  font-size: 0.8rem;
  padding-bottom: 24px;
}

.site-footer__rekvizity a,
.site-footer__copy a {
  color: #f3ead2;
  text-underline-offset: 3px;
}

.site-footer__rekvizity a:hover,
.site-footer__copy a:hover {
  color: #b47b59;
}

@media (max-width: 760px) {
  .site-footer__inner {
    flex-direction: column;
    padding: 28px 16px 20px;
    gap: 22px;
  }

  .site-footer__nav {
    width: 100%;
    gap: 22px 40px;
  }

  .site-footer__note,
  .site-footer__copy {
    padding-left: 16px;
    padding-right: 16px;
  }
}

h3 {
  margin: 1.15em 0 0.35em;
  font-size: 1.05rem;
  color: var(--navy);
}

ol {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

.guide-article {
  max-width: 58rem;
}

.guide-hero {
  margin: 0 0 1.6em;
}

.guide-hero p {
  margin: 0 0 0.8em;
  font-size: 1.12rem;
  line-height: 1.45;
}

.guide-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.guide-note {
  margin: 1.2em 0;
  padding: 0.9em 1em;
  border-left: 3px solid var(--navy);
  background: rgba(36, 60, 86, 0.06);
}

.guide-note p:last-child {
  margin-bottom: 0;
}

.guide-check {
  margin: 2em 0 1.2em;
  padding: 1.35em 1.25em 1.2em;
  background: #fffaf4;
  border: 1px solid color-mix(in srgb, #813914 55%, var(--line));
  border-radius: 14px;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--navy) 12%, transparent);
}

.guide-check h2 {
  margin-top: 0;
}

.guide-check input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0.2em 0 0.75em;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fffdf8;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.guide-check input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--navy) 22%, transparent);
}

.guide-check button {
  display: inline-block;
  padding: 14px 22px;
  font-family: system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #fffdf8;
  -webkit-text-fill-color: #fffdf8;
  background: #813914;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  appearance: none;
  box-shadow:
    0 14px 36px color-mix(in srgb, #e6dcc8 55%, #813914),
    0 6px 16px color-mix(in srgb, #e4d9c8 40%, #813914),
    0 2px 0 color-mix(in srgb, #813914 18%, transparent);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.guide-check button:hover {
  background: #6a2e10;
  box-shadow:
    0 16px 40px color-mix(in srgb, #e6dcc8 45%, #813914),
    0 8px 18px color-mix(in srgb, #e4d9c8 35%, #813914),
    0 2px 0 color-mix(in srgb, #813914 22%, transparent);
}

.guide-check button:active {
  transform: translateY(1px);
  box-shadow:
    0 8px 20px color-mix(in srgb, #e6dcc8 50%, #813914),
    0 3px 10px color-mix(in srgb, #e4d9c8 40%, #813914);
}

@media (prefers-reduced-motion: reduce) {
  .guide-check button,
  .guide-check button:hover,
  .guide-check button:active {
    transition: none;
    transform: none;
  }
}

.guide-check__note {
  margin: 0.7em 0 0;
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
}

.guide-offers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0.4em 0 1.4em;
}

.guide-offer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--paper) 55%, #fffaf4);
  border: 1px solid color-mix(in srgb, #5a6574 20%, var(--line));
  border-radius: 12px;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--navy) 8%, transparent);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.guide-offer:hover {
  border-color: color-mix(in srgb, #813914 45%, var(--line));
  box-shadow: 0 10px 24px color-mix(in srgb, #813914 14%, transparent);
}

.guide-offer__eyebrow {
  margin: 0 0 4px;
  font-family: system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #813914;
}

.guide-offer__title {
  margin: 0 0 6px;
  font-family: Georgia, serif;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
}

.guide-offer__text {
  font-family: system-ui, sans-serif;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--muted, #6b6258);
}

@media (max-width: 640px) {
  .guide-offers {
    grid-template-columns: 1fr;
  }
}

.guide-faq h3 {
  margin-bottom: 0.25em;
}
