@import url("../information-podhod/style.css");

/* ==========================================================================
   Страница гарантий: двухколоночная вёрстка, читаемая ширина текста,
   нумерованные секции, карточки, чек-листы, шаги, сравнение.
   ========================================================================== */

.information-details .wrap {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 56px;
  max-width: 1240px;
  margin: 0 auto;
  padding-inline: 24px;
  align-items: start;
}

.information-toc {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow: auto;
  margin: 0;
  padding: 20px 22px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  font-size: 14px;
  line-height: 1.45;
}

.information-toc summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.information-toc summary::-webkit-details-marker {
  display: none;
}

.information-toc summary::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-right: 1.5px solid var(--brand);
  border-bottom: 1.5px solid var(--brand);
  transform: rotate(45deg) translateY(-2px);
}

.information-toc[open] summary::after {
  transform: rotate(-135deg) translateY(-2px);
}

.information-toc nav ol {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: block;
  columns: auto;
  column-count: auto;
  counter-reset: g-toc;
}

.information-toc nav li {
  counter-increment: g-toc;
  padding-left: 26px;
  position: relative;
  margin: 0 0 8px;
  break-inside: avoid;
}

.information-toc nav li::before {
  content: counter(g-toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.information-toc nav a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.information-toc nav a:hover {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.information-body {
  max-width: 760px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  counter-reset: g-sec;
}

.information-body > h2 {
  counter-increment: g-sec;
  position: relative;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.15;
  margin: 56px 0 18px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  color: var(--deep);
}

.information-body > h2::before {
  content: counter(g-sec, decimal-leading-zero);
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--brand);
  margin-bottom: 10px;
  font-weight: 600;
}

.information-body > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.information-body h3 {
  font-size: 20px;
  line-height: 1.3;
  margin: 34px 0 12px;
  color: var(--deep);
}

.information-body p {
  margin: 0 0 16px;
  max-width: 68ch;
}

.information-body > h2 + p {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
}

.information-body ul:not([class]),
.information-body ol:not([class]) {
  margin: 0 0 20px;
  padding-left: 22px;
  display: grid;
  gap: 8px;
  max-width: 68ch;
}

.information-body li {
  line-height: 1.55;
}

/* Карточки */

.g-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 24px;
}

.g-card {
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 24px;
  background: var(--bg);
}

.g-card--accent {
  background: var(--mist);
  border-color: var(--line-strong);
}

.g-card__label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.g-card__term {
  font-size: 26px;
  line-height: 1.15;
  font-weight: 600;
  color: var(--deep);
  margin: 10px 0 8px;
}

.g-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.g-card p + p {
  margin-top: 8px;
}

/* Callout */

.g-callout {
  border-left: 4px solid var(--brand);
  background: var(--mist);
  border-radius: var(--r-m);
  padding: 24px 28px;
  margin: 28px 0;
}

.g-callout p {
  max-width: none;
}

.g-callout p:last-child {
  margin-bottom: 0;
}

/* Чек-листы */

.g-check,
.g-no {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 12px;
  max-width: none;
}

.g-check li,
.g-no li {
  position: relative;
  padding-left: 36px;
  line-height: 1.55;
  list-style: none;
}

.g-check li::marker,
.g-no li::marker,
.g-steps li::marker {
  content: "";
}

.g-check li::before,
.g-no li::before {
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.g-check li::before {
  content: "✓";
  background: var(--brand);
}

.g-no li::before {
  content: "–";
  background: #b23b3b;
}

/* Шаги */

.g-steps {
  counter-reset: g-step;
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 18px;
  max-width: none;
}

.g-steps li {
  counter-increment: g-step;
  position: relative;
  padding-left: 60px;
  min-height: 42px;
  line-height: 1.55;
}

.g-steps li::before {
  content: counter(g-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--deep);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 18px;
}

/* Сравнение */

.g-compare {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 28px;
  font-size: 15px;
}

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

.g-compare thead th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.g-compare td:last-child {
  background: rgba(11, 95, 85, 0.06);
  font-weight: 500;
}

.g-compare td:first-child {
  color: var(--muted);
}

/* Цитата */

.g-quote {
  margin: 32px 0;
  padding: 28px 32px;
  border-radius: var(--r-m);
  background: var(--deep);
  color: #fff;
}

.g-quote p {
  margin: 0;
  max-width: none;
  font-size: 19px;
  line-height: 1.45;
}

.g-quote footer {
  margin-top: 14px;
  color: var(--on-deep-muted, #cfe3df);
  font-size: 13px;
}

.g-note {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin-top: 12px;
  padding-left: 16px;
  border-left: 2px solid var(--line);
  max-width: 68ch;
}

/* Документы */

.g-docs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.g-doc {
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 22px;
  background: var(--bg);
}

.g-doc__num {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--deep);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.g-doc b {
  display: block;
  font-size: 17px;
  line-height: 1.3;
  margin-bottom: 6px;
  color: var(--deep);
}

.g-doc p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  max-width: none;
}

/* FAQ-аккордеон */

.g-faq__item {
  border-bottom: 1px solid var(--line);
}

.g-faq__item summary {
  position: relative;
  padding: 18px 44px 18px 0;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--deep);
}

.g-faq__item summary::-webkit-details-marker {
  display: none;
}

.g-faq__item summary::after {
  content: "+";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  color: var(--brand);
  transition: transform 0.2s ease;
}

.g-faq__item[open] summary::after {
  content: "–";
}

.g-faq__item p {
  margin: 0 0 20px;
  padding-right: 44px;
  color: var(--muted);
  max-width: 68ch;
}

/* Финальный CTA */

.g-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin: 56px 0 8px;
  padding: 36px 40px;
  border-radius: var(--r-m);
  background: var(--deep);
  color: #fff;
}

.g-cta__label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8fd6c8;
  font-weight: 600;
}

.g-cta__title {
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.2;
  font-weight: 600;
  margin: 10px 0 12px;
}

.g-cta p {
  margin: 0;
  color: #cfe3df;
  max-width: 54ch;
}

.g-cta__actions {
  display: grid;
  gap: 12px;
}

.g-cta .btn {
  text-align: center;
  justify-content: center;
}

.g-cta .info-outline {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.45);
}

.g-cta .info-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Навигация: активный пункт и отступ при переходе по якорю */

.information-toc a.is-active {
  color: var(--brand);
  font-weight: 600;
}

.information-body > h2,
.information-body > h3 {
  scroll-margin-top: 120px;
}

/* Мобильная версия */

@media (max-width: 1024px) {
  .information-details .wrap {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-inline: 18px;
  }

  .information-toc {
    position: static;
  }

  .information-body {
    max-width: none;
    font-size: 16px;
  }

  .information-body > h2 {
    font-size: 26px;
    margin-top: 44px;
    padding-top: 28px;
  }

  .g-grid {
    grid-template-columns: 1fr;
  }

  .g-compare {
    display: block;
    overflow-x: auto;
  }

  .g-docs {
    grid-template-columns: 1fr;
  }

  .g-cta {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 22px;
    margin-top: 40px;
  }

  .g-quote {
    padding: 22px 20px;
  }
}
