.peregon-page {
  min-width: 320px;
}

.peregon-page [hidden] {
  display: none !important;
}

.peregon-page :focus-visible {
  outline: 3px solid var(--electric);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--asphalt);
  background: var(--amber);
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.noscript {
  padding: 12px 20px;
  color: #5d3d00;
  background: #fff3d6;
  text-align: center;
}

.page-hero--peregon {
  min-height: 620px;
  display: flex;
  align-items: center;
}

.page-hero--peregon::before {
  z-index: 1;
  background: linear-gradient(90deg, rgba(13, 20, 32, .97) 0%, rgba(13, 20, 32, .90) 46%, rgba(13, 20, 32, .48) 78%, rgba(13, 20, 32, .65) 100%);
  opacity: 1;
}

.page-hero--peregon .hero__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
}

.page-hero--peregon .container {
  z-index: 2;
}

.page-hero--peregon h1 {
  max-width: 790px;
}

.page-hero--peregon p {
  max-width: 720px;
}

.page-hero--peregon .hero__badges {
  margin-top: 24px;
}

.peregon-page .section-head h2,
.peregon-page .person-copy h2,
.peregon-page .final-cta h2 {
  color: var(--asphalt);
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 600;
  line-height: 1.18;
  margin-bottom: 14px;
  text-wrap: balance;
}

.peregon-page .section-head > p {
  max-width: 72ch;
  color: var(--muted);
  font-size: 18px;
  text-wrap: pretty;
}

.peregon-page .section--dark .section-head h2 {
  color: var(--white);
}

.peregon-page .section--dark .section-head > p {
  color: #b9c6d8;
}

.peregon-page .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--electric);
  font-size: 14px;
  font-weight: 700;
}

.peregon-page .eyebrow::before {
  content: "";
  width: 30px;
  height: 4px;
  border-radius: 999px;
  background: var(--amber);
}

.peregon-page .section--dark .eyebrow {
  color: #b9c6d8;
}

.peregon-page .btn--primary {
  color: #171007;
  background: var(--amber);
}

.peregon-page .btn--primary:hover {
  background: var(--amber-2);
}

.peregon-page .btn--secondary,
.peregon-page .btn--quiet {
  color: var(--asphalt);
  border: 1px solid var(--line);
  background: var(--white);
}

.peregon-page .btn--secondary:hover,
.peregon-page .btn--quiet:hover {
  border-color: var(--amber-2);
}

.page-hero--peregon .btn--secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, .38);
  background: rgba(255, 255, 255, .08);
}

.page-hero--peregon .btn--secondary:hover {
  color: var(--amber);
  border-color: var(--amber);
}

.peregon-page .btn--block {
  width: 100%;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.peregon-page .trust-grid .trust-item {
  position: relative;
  min-height: 164px;
  padding: 28px 32px 28px 52px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
}

.peregon-page .trust-grid .trust-item:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.peregon-page .trust-grid .trust-item::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 31px;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--amber);
  box-shadow: inset 0 0 0 7px var(--amber), inset 0 0 0 9px var(--asphalt);
}

.peregon-page .trust-grid .trust-item h3 {
  color: var(--asphalt);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.peregon-page .trust-grid .trust-item p {
  max-width: 58ch;
  color: var(--muted);
  font-size: 15.5px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.timeline-item {
  position: relative;
  min-height: 240px;
  padding: 24px 22px;
  border-right: 1px solid var(--line);
}

.timeline-item:last-child {
  border-right: 0;
}

.timeline-item__number {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
  border-radius: 10px;
  color: var(--asphalt);
  background: var(--amber);
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
}

.timeline-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 44px;
  right: -12px;
  z-index: 1;
  width: 22px;
  border-top: 2px dashed var(--amber-2);
}

.timeline-item h3 {
  color: var(--asphalt);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 9px;
}

.timeline-item p {
  color: var(--muted);
  font-size: 14.5px;
}

.quiz-shell {
  max-width: 980px;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .24);
}

.quiz-progress {
  padding: 22px 28px 0;
}

.quiz-progress__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.quiz-progress__meta span:last-child {
  color: var(--asphalt);
}

.quiz-progress__track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--road);
}

.quiz-progress__fill {
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: var(--amber);
  transition: width .2s ease;
}

.quiz-body {
  min-height: 390px;
  padding: 34px 28px 28px;
}

.quiz-step h3,
.quiz-result > div > h3 {
  color: var(--asphalt);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 10px;
}

.quiz-step__hint,
.result-note,
.result-duration {
  max-width: 65ch;
  color: var(--muted);
  font-size: 15.5px;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.option-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.option-card {
  min-height: 76px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--asphalt);
  background: var(--road);
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.option-card:hover {
  transform: translateY(-1px);
  border-color: var(--amber-2);
}

.option-card[aria-pressed="true"],
.option-check:has(input:checked) {
  border-color: var(--amber);
  background: #fff3d6;
  box-shadow: inset 0 0 0 1px var(--amber);
}

.option-check {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.option-check input,
.consent input {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  accent-color: var(--amber-2);
}

.route-grid,
.lead-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.route-extra {
  margin-top: 14px;
}

.field--full {
  grid-column: 1 / -1;
}

.quiz-controls,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.quiz-error {
  min-height: 24px;
  margin-top: 10px;
  color: var(--error);
  font-size: 14px;
  font-weight: 700;
}

.quiz-result {
  padding-bottom: 4px;
}

.result-price {
  margin: 12px 0 14px;
  color: var(--asphalt);
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  line-height: 1;
}

.result-duration {
  margin-top: 12px;
  color: var(--asphalt-3);
  font-weight: 700;
}

.result-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.result-list {
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--road);
}

.result-list h4 {
  color: var(--asphalt);
  font-size: 16px;
  margin-bottom: 10px;
}

.result-list ul {
  display: grid;
  gap: 7px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14.5px;
}

.lead-form {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.lead-form h4 {
  color: var(--asphalt);
  font-size: 21px;
  font-weight: 600;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13.5px;
  cursor: pointer;
}

.consent a {
  color: var(--asphalt);
  font-weight: 700;
}

.form-status {
  display: none;
}

.form-status.is-visible,
.form-status.is-success,
.form-status.is-error {
  display: block;
  margin-top: 14px;
}

.form-status.is-success {
  color: #0b5b31;
  background: #e5f7ed;
  border: 1px solid #afe3c6;
}

.form-status.is-error {
  color: #8b2424;
  background: #fdeaea;
  border: 1px solid #f1bebe;
}

.recalculate {
  margin-top: 18px;
  border: 0;
  color: var(--electric);
  background: transparent;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.person-layout {
  display: grid;
  grid-template-columns: minmax(320px, .85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 62px);
  align-items: start;
}

.verification-panel {
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--radius);
  color: var(--white);
  background: var(--asphalt);
}

.verification-panel h3 {
  color: var(--white);
  font-size: 22px;
  line-height: 1.25;
  margin-bottom: 18px;
}

.verification-panel ol {
  display: grid;
  gap: 16px;
  counter-reset: verify;
  list-style: none;
}

.verification-panel li {
  position: relative;
  padding-left: 38px;
  color: #c5d1e1;
  counter-increment: verify;
}

.verification-panel li::before {
  content: counter(verify);
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: var(--asphalt);
  background: var(--amber);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 700;
}

.verification-panel a {
  display: inline-block;
  margin-top: 22px;
  color: var(--amber);
  font-weight: 700;
}

.person-copy__status,
.person-quote,
.requisites {
  max-width: 70ch;
  color: var(--muted);
}

.person-copy__status {
  font-size: 18px;
}

.person-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 26px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.person-fact {
  padding: 20px;
  background: var(--white);
}

.person-fact span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
}

.person-fact strong {
  display: block;
  color: var(--asphalt);
  font-size: 16px;
  line-height: 1.35;
}

.person-quote {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--asphalt-3);
  font-weight: 600;
}

.requisites {
  margin-top: 18px;
  font-size: 14px;
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.document-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.document-card h3 {
  color: var(--asphalt);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.document-card p {
  color: var(--muted);
  font-size: 15px;
}

.document-card .document-status {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--asphalt);
  font-weight: 700;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.review-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.review-card blockquote {
  color: var(--asphalt);
}

.review-card footer {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.final-cta {
  background: var(--road);
}

.final-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(28px, 5vw, 52px);
  border-radius: var(--radius);
  color: var(--white);
  background: var(--asphalt);
}

.peregon-page .final-cta h2 {
  color: var(--white);
}

.final-cta p {
  max-width: 700px;
  color: #c5d1e1;
}

.final-cta__action {
  display: grid;
  min-width: 265px;
  gap: 10px;
}

.final-cta .btn--secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, .38);
  background: rgba(255, 255, 255, .08);
}

.peregon-page .footer {
  padding-bottom: 108px;
}

@media (max-width: 1080px) {
  .page-hero--peregon {
    min-height: 560px;
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-item {
    min-height: 190px;
    border-bottom: 1px solid var(--line);
  }

  .timeline-item:nth-child(2n) {
    border-right: 0;
  }

  .timeline-item:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .timeline-item::after {
    display: none;
  }
}

@media (max-width: 820px) {
  .page-hero--peregon {
    min-height: auto;
  }

  .page-hero--peregon .container {
    padding: 52px 0 78px;
  }

  .page-hero--peregon::before {
    background: linear-gradient(90deg, rgba(13, 20, 32, .96), rgba(13, 20, 32, .79));
  }

  .trust-grid,
  .person-layout,
  .documents-grid,
  .result-columns {
    grid-template-columns: 1fr;
  }

  .peregon-page .trust-grid .trust-item:nth-child(odd) {
    border-right: 0;
  }

  .person-facts {
    grid-template-columns: 1fr;
  }

  .final-cta__inner {
    display: block;
  }

  .final-cta__action {
    min-width: 0;
    margin-top: 22px;
  }
}

@media (max-width: 640px) {
  .page-hero--peregon .hero__image {
    object-position: 58% center;
  }

  .option-grid,
  .option-grid--three,
  .route-grid,
  .lead-form__grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .timeline-item,
  .timeline-item:nth-child(2n),
  .timeline-item:last-child {
    grid-column: auto;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .timeline-item:last-child {
    border-bottom: 0;
  }

  .timeline-item__number {
    margin-bottom: 18px;
  }

  .quiz-progress {
    padding: 20px 18px 0;
  }

  .quiz-body {
    min-height: 0;
    padding: 28px 18px 22px;
  }

  .quiz-controls,
  .form-actions {
    display: grid;
  }

  .quiz-controls .btn,
  .form-actions .btn {
    width: 100%;
  }

  .peregon-page .trust-grid .trust-item {
    min-height: 0;
    padding: 24px 10px 24px 48px;
  }

  .peregon-page .trust-grid .trust-item::before {
    left: 4px;
    top: 27px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quiz-progress__fill {
    transition: none;
  }
}
