@media (min-width: 992px) {
  .hero-media {
    top: var(--header-height);
    background-position: right top;
    background-size: auto 100%;
  }
}

@media (max-width: 1199px) {
  :root {
    --header-height: 78px;
  }

  .container {
    width: min(100% - 40px, 1080px);
  }

  .main-nav {
    gap: 14px;
  }

  .main-nav a {
    font-size: 0.6rem;
  }

  .header-urgent strong {
    display: none;
  }

  .hero,
  .hero-inner {
    min-height: 670px;
  }

  .hero h1 {
    font-size: 3.45rem;
  }

  .practice-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .custody-copy {
    padding-left: 45px;
  }

  .custody-grid {
    gap: 40px;
  }

  .differential-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .differential-card:nth-child(4),
  .differential-card:nth-child(5) {
    grid-column: span 1;
  }

  .about-grid {
    gap: 60px;
  }
}

@media (max-width: 991px) {
  .section {
    padding: 76px 0;
  }

  .site-header,
  .site-header.is-scrolled {
    height: 72px;
  }

  .header-inner {
    justify-content: space-between;
  }

  .brand-logo,
  .site-header.is-scrolled .brand-logo {
    width: 58px;
    height: 58px;
  }

  .menu-toggle {
    display: block;
    order: 3;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    max-height: 0;
    padding: 0 24px;
    overflow: hidden;
    background: rgba(3, 10, 17, 0.98);
    opacity: 0;
    transition: max-height 220ms ease, opacity 180ms ease, padding 220ms ease;
  }

  .main-nav.is-open {
    max-height: 520px;
    padding-top: 18px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--white-line);
    opacity: 1;
  }

  .main-nav a {
    padding: 11px 0;
    font-size: 0.7rem;
  }

  .header-urgent {
    margin-left: auto;
  }

  .hero,
  .hero-inner {
    min-height: 690px;
  }

  .hero-media {
    background-position: 61% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(3, 10, 17, 0.97), rgba(3, 10, 17, 0.83) 48%, rgba(3, 10, 17, 0.3) 78%),
      linear-gradient(0deg, rgba(3, 10, 17, 0.72), transparent 45%);
  }

  .hero-content {
    width: 64%;
  }

  .hero h1 {
    font-size: 3.15rem;
  }

  .hero-trust {
    gap: 22px;
  }

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

  .practice-card {
    min-height: 260px;
  }

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

  .custody-bg {
    inset: 0 0 42% 0;
  }

  .custody-copy {
    max-width: 760px;
    padding-left: 0;
  }

  .urgent-card {
    width: min(600px, 100%);
  }

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

  .differential-card:last-child {
    grid-column: 1 / -1;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 65px;
  }

  .about-media {
    width: min(620px, calc(100% - 28px));
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 48px;
  }

  .process-step:nth-child(2) .step-line i {
    display: none;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .faq-intro {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 30px;
    align-items: end;
  }

  .faq-help {
    margin-top: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .contact-media {
    inset: 0 0 55% 35%;
    opacity: 0.36;
  }

  .contact::before {
    background: rgba(3, 10, 17, 0.9);
  }

  .contact-copy {
    max-width: 690px;
  }

  .contact-form {
    width: min(700px, 100%);
  }

  .footer-grid {
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 42px;
  }

  .footer-grid > div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: 68px;
  }

  .container {
    width: min(100% - 30px, 680px);
  }

  .section {
    padding: 64px 0;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .section-heading h2,
  .about-copy h2,
  .contact-copy h2,
  .custody-copy h2 {
    font-size: 2.25rem;
  }

  .brand-logo,
  .site-header.is-scrolled .brand-logo {
    width: 54px;
    height: 54px;
  }

  .header-urgent {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: 720px;
    align-items: flex-end;
    padding-bottom: 62px;
  }

  .hero-media {
    background-position: 68% top;
    background-size: auto 65%;
    background-repeat: no-repeat;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(3, 10, 17, 1) 0%, rgba(3, 10, 17, 0.98) 40%, rgba(3, 10, 17, 0.5) 72%, rgba(3, 10, 17, 0.12) 100%),
      linear-gradient(90deg, rgba(3, 10, 17, 0.55), transparent 70%);
  }

  .hero-content {
    width: 100%;
    padding: 0;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 10.7vw, 3.3rem);
  }

  .hero-content > p {
    margin-top: 18px;
    font-size: 0.9rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .hero-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 28px;
  }

  .hero-trust > div {
    display: block;
    text-align: center;
  }

  .hero-trust span {
    display: block;
    font-size: 1.35rem;
  }

  .hero-trust strong {
    font-size: 0.51rem;
  }

  .hero-scroll {
    display: none;
  }

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

  .practice-card {
    min-height: auto;
    padding-bottom: 28px;
  }

  .practice-card a {
    position: static;
    display: block;
    margin-top: 17px;
    opacity: 1;
    transform: none;
  }

  .custody {
    padding: 64px 0;
  }

  .custody-points {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .urgent-card {
    padding: 28px 22px;
  }

  .urgent-phone {
    font-size: 1.45rem;
  }

  .number-item {
    min-height: 96px;
    border-right: 0;
    border-bottom: 0;
  }

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

  .differential-card:last-child {
    grid-column: auto;
  }

  .differential-card {
    min-height: auto;
  }

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

  .process-grid {
    grid-template-columns: 1fr;
    row-gap: 38px;
  }

  .step-line i {
    display: none;
  }

  .faq-intro {
    display: block;
  }

  .faq-help {
    margin-top: 28px;
  }

  .faq-item button {
    padding: 20px 2px;
  }

  .faq-answer p {
    margin-right: 10px;
  }

  .contact {
    padding: 64px 0;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form {
    padding: 24px 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 25px;
  }

  .footer-grid > div:first-child,
  .footer-grid > div:nth-child(3),
  .footer-grid > div:last-child {
    grid-column: 1 / -1;
  }

  .footer-bottom .container {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 12px 0;
    text-align: center;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    width: 55px;
    min-width: 55px;
    height: 55px;
    padding: 0;
  }

  .floating-whatsapp > span:last-child {
    display: none;
  }
}

@media (max-width: 420px) {
  .hero-inner {
    min-height: 740px;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-trust {
    gap: 4px;
  }

}
