.page-hero {
  padding: 3rem 0;
  background: linear-gradient(180deg, #f7f9fb 0%, #ffffff 100%);
  border-bottom: 1px solid #e8ebee;
}

.page-label {
  color: var(--brand-accent);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-title {
  color: var(--brand-blue) !important;
  font-size: clamp(2.4rem, 3.2vw, 3.6rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.04em;
  max-width: 820px;
}

.page-lead {
  max-width: 1000px;
  color: #555d63;
  font-size: 1.15rem;
  line-height: 1.65;
}

.page-section {
  padding: 3rem 0;
}

.page-section-light {
  background: #f6f8fa;
}

.page-section-title {
  color: var(--brand-blue) !important;
  font-size: clamp(1.9rem, 2.8vw, 2.75rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 780px;
}

.page-text {
  color: #62696f;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0.85rem;
}

.page-text + .page-text {
  margin-top: 0;
}

.page-section .row.mb-5 {
  margin-bottom: 1.5rem !important;
}

.page-image-wrapper {
  position: relative;
  isolation: isolate;
}

.page-image-wrapper::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: -8px;
  background: var(--brand-accent);
  border-radius: 1.25rem;
  z-index: -1;
}

.page-image-right::before {
  left: 8px;
  right: -8px;
}

.page-image-left::before {
  left: -8px;
  right: 8px;
}

.page-image {
  display: block;
  width: 100%;
  height: 620px;
  object-fit: cover;
  object-position: center;
  border-radius: 1.25rem;
}

.page-card {
  height: 100%;
  padding: 2rem;
  background: #ffffff;
  border: 1px solid rgba(2, 82, 156, 0.08);
  border-top: 4px solid var(--brand-accent);
  border-radius: 1rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.page-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.07);
}

.page-card-number {
  display: block;
  margin-bottom: 1.35rem;
  color: var(--brand-accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.page-card h2,
.page-card h3 {
  color: var(--brand-blue) !important;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.page-card .page-text:last-child {
  margin-bottom: 0;
}

.page-gallery {
  background: #f6f8fa;
}

.page-gallery-item {
  width: 100%;
  height: 330px;
  overflow: hidden;
  border-radius: 1rem;
  background: #eeeeee;
}

.page-gallery-large {
  height: 470px;
}

.page-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}

.page-gallery-item:hover img {
  transform: scale(1.025);
}

.page-btn-primary {
  padding: 0.8rem 1.5rem;
  background: var(--brand-accent) !important;
  border: 2px solid var(--brand-accent) !important;
  border-radius: 0.5rem;
  color: #ffffff !important;
  font-weight: 600;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.page-btn-primary:hover,
.page-btn-primary:focus {
  background: var(--brand-blue) !important;
  border-color: var(--brand-blue) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

.legal-wrap {
  max-width: 1050px;
}

.legal-card {
  padding: clamp(1.6rem, 4vw, 3rem);
  background: #ffffff;
  border: 1px solid #e5e8eb;
  border-top: 4px solid var(--brand-accent);
  border-radius: 1rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.045);
}

.legal-card h2 {
  color: var(--brand-blue) !important;
  font-size: 1.45rem;
  line-height: 1.25;
  font-weight: 700;
  margin-top: 2.25rem;
  margin-bottom: 0.8rem;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  color: #62696f;
  font-size: 1.02rem;
  line-height: 1.7;
}

.legal-card p {
  margin-bottom: 0.85rem;
}

.legal-card ul {
  margin-top: 0.4rem;
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

.legal-card a {
  font-weight: 600;
}

.page-cta {
  padding: 3rem 0;
  background: var(--brand-blue);
  border-top: 5px solid var(--brand-accent);
}

.page-cta .page-label {
  color: rgba(255, 255, 255, 0.82);
}

.page-cta h2 {
  color: #ffffff !important;
  font-size: clamp(2.1rem, 3.5vw, 3.45rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.page-cta p {
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.15rem;
  line-height: 1.65;
}

.page-cta .btn {
  padding: 0.85rem 1.6rem;
  background: #ffffff !important;
  border: 2px solid #ffffff !important;
  color: var(--brand-blue) !important;
  font-weight: 700;
  border-radius: 0.5rem;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.page-cta .btn:hover,
.page-cta .btn:focus {
  background: var(--brand-accent) !important;
  border-color: var(--brand-accent) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

@media (max-width: 991.98px) {
  .page-hero {
    padding: 2.5rem 0;
  }

  .page-title {
    font-size: clamp(2.4rem, 5.5vw, 3.3rem);
  }

  .page-section {
    padding: 2.5rem 0;
  }

  .page-image {
    height: 580px;
  }

  .page-image-wrapper {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
  }

  .page-cta {
    padding: 2.5rem 0;
  }
}

@media (max-width: 767.98px) {
  .page-hero {
    padding: 2.25rem 0;
  }

  .page-section {
    padding: 2.25rem 0;
  }

  .page-gallery-item,
  .page-gallery-large {
    height: 400px;
  }

  .page-cta {
    padding: 2.5rem 0;
  }
}

@media (max-width: 575.98px) {
  .page-hero {
    padding: 2rem 0;
  }

  .page-label {
    font-size: 0.88rem;
    letter-spacing: 0.1em;
  }

  .page-title {
    font-size: 2.2rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
  }

  .page-section-title {
    font-size: 1.9rem;
    line-height: 1.15;
  }

  .page-image {
    height: 470px;
    border-radius: 0.9rem;
  }

  @media (max-width: 575.98px) {
    .page-image-wrapper::before {
      top: 6px;
      bottom: -6px;
      border-radius: 0.9rem;
    }

    .page-image-right::before {
      left: 6px;
      right: -6px;
    }

    .page-image-left::before {
      left: -6px;
      right: 6px;
    }
  }

  .page-gallery-item,
  .page-gallery-large {
    height: 360px;
  }

  .page-cta {
    padding: 2.5rem 0;
  }
}
