.main-nav a.is-active {
  color: var(--red);
  font-weight: 800;
}

.page-hero {
  padding: 28px 0 38px;
  background: var(--soft);
}

.page-hero__mobile-eyebrow {
  display: none;
}

.page-hero__grid {
  width: min(1360px, calc(100% - 40px));
  min-height: 643px;
  display: flex;
  align-items: flex-start;
  margin: 0 auto;
  padding: 64px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.88) 38%, rgba(255, 255, 255, 0.36) 66%, rgba(255, 255, 255, 0) 100%),
    url("./assets/hero-family-bright.webp") center right / cover no-repeat;
}

.page-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 610px;
  min-height: 515px;
  display: flex;
  flex-direction: column;
}

.page-hero h1 {
  width: 100%;
  max-width: 610px;
  min-height: 0;
  line-height: 1.06;
}

.page-hero__place {
  color: inherit;
}

.page-hero .hero__lead {
  max-width: 580px;
  min-height: 0;
}

.page-hero .hero__actions {
  position: absolute;
  right: 0;
  bottom: 68px;
  left: 0;
  margin-bottom: 0;
}

.page-hero .hero__badges {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
}

.page-band {
  background: var(--soft);
}

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

.content-card {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 34px rgba(19, 42, 76, 0.06);
}

.content-card h3 {
  font-size: 23px;
}

.content-card p {
  color: var(--muted);
}

.content-card ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.content-card li {
  position: relative;
  padding-left: 22px;
}

.content-card li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--red);
}

.content-card a,
.content-card--accent p:first-of-type {
  color: var(--blue-dark);
  font-size: 24px;
  font-weight: 900;
}

.content-card .content-card__value,
.content-card .content-card__value a {
  color: var(--red);
  font-size: 24px;
  font-weight: 900;
}

.content-card .content-card__value--compact {
  font-size: 16px;
  font-weight: 800;
}

.content-card--link {
  display: block;
}

.content-card--link:hover {
  border-color: rgba(227, 31, 38, 0.46);
  transform: translateY(-1px);
}

.content-card--accent {
  border-color: rgba(227, 31, 38, 0.5);
}

.content-grid--rich .content-card {
  min-height: 250px;
}

.content-card--rich {
  position: relative;
}

.text-panel {
  max-width: 1180px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 34px rgba(19, 42, 76, 0.06);
}

.text-panel p:not(.eyebrow) {
  max-width: 980px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.72;
}

.text-panel__list {
  margin-top: 24px;
}

.problem-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 34px rgba(19, 42, 76, 0.06);
}

.problem-row {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr 1.2fr;
  gap: 24px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}

.problem-row:last-child {
  border-bottom: 0;
}

.problem-row strong {
  display: block;
  color: var(--blue-dark);
  font-size: 20px;
}

.problem-row span {
  display: block;
  margin-top: 6px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.problem-row p {
  margin: 0;
  color: var(--muted);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.step-card {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 26px rgba(19, 42, 76, 0.05);
}

.step-card span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
}

.step-card h3 {
  margin-top: 18px;
  font-size: 20px;
}

.step-card p {
  color: var(--muted);
}

.page-check-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.page-service-card {
  min-height: 360px;
}

.page-price-options {
  max-width: 460px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 26px rgba(19, 42, 76, 0.05);
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--blue-dark);
  font-weight: 900;
}

.faq-list p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.content-grid--contacts {
  width: min(100%, 900px);
  margin-right: auto;
  margin-left: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .content-grid,
  .content-grid--contacts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .problem-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

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

  .page-check-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-hero {
    padding: 28px 0 32px;
  }

  .page-hero__mobile-eyebrow {
    display: block;
    width: min(100% - 24px, 1180px);
    margin: 0 auto 10px;
    color: var(--red);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .page-hero__grid {
    width: min(100% - 24px, 1180px);
    min-height: 530px;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    padding: 28px 22px;
    text-align: center;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.96) 45%, rgba(255, 255, 255, 0.36) 100%),
      url("./assets/hero-family-bright.webp") 68% center / cover no-repeat;
  }

  .page-hero__content {
    position: relative;
    min-height: 474px;
    display: flex;
    flex-direction: column;
    max-width: 100%;
  }

  .page-hero .eyebrow {
    display: none;
  }

  .page-hero h1 {
    min-height: 0;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .page-hero .hero__lead {
    min-height: 0;
    margin-bottom: 0;
  }

  .page-hero__place {
    display: block;
    color: var(--red);
  }

  .page-hero-offer {
    position: absolute;
    top: 214px;
    right: -22px;
    left: -22px;
    width: auto;
    margin: 0;
  }

  .page-hero .hero__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    margin-top: 0;
    margin-bottom: 0;
  }

  .page-hero .hero__actions .button {
    min-height: 46px;
    padding: 11px 10px;
    font-size: 14px;
  }

  .content-grid,
  .content-grid--contacts {
    grid-template-columns: 1fr;
  }

  .content-card {
    min-height: 0;
    text-align: center;
  }

  .content-card li {
    padding-left: 0;
  }

  .content-card li::before {
    position: static;
    display: block;
    margin: 0 auto 7px;
  }

  .text-panel {
    padding: 24px 20px;
    text-align: center;
  }

  .text-panel p:not(.eyebrow) {
    font-size: 16px;
  }

  .problem-table {
    text-align: center;
  }

  .problem-row {
    padding: 22px 18px;
  }

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

  .step-card {
    min-height: 0;
    text-align: center;
  }

  .step-card span {
    margin: 0 auto;
  }

  .page-check-list {
    padding: 22px;
    text-align: left;
  }

  .faq-list summary,
  .faq-list p {
    text-align: left;
  }
}

@media (max-width: 460px) {
  .page-hero__grid {
    min-height: 520px;
    padding: 24px 20px;
  }

  .page-hero__content {
    min-height: 472px;
  }

  .page-hero h1 {
    min-height: 0;
  }

  .page-hero .hero__lead {
    min-height: 0;
  }

  .page-hero-offer {
    top: 214px;
    right: -20px;
    left: -20px;
    margin-right: 0;
    margin-left: 0;
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (max-width: 340px) {
  .page-hero__grid {
    min-height: 520px;
  }

  .page-hero__content {
    min-height: 472px;
  }

  .page-hero .hero__lead {
    min-height: 0;
  }

  .page-hero-offer {
    top: 238px;
  }
}
