/* Site-wide responsive safeguards loaded after page styles. */
html,
body {
  width: 100%;
  overflow-x: clip;
}

main,
section,
.container,
.card,
.home-hero__content,
.home-hero__media,
.home-section__grid > *,
.grid-2 > *,
.grid-3 > * {
  min-width: 0;
}

.btn {
  max-width: 100%;
  height: auto;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
.card-title,
.section-index,
.card-meta {
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) and (min-width: 961px) {
  .site-header__inner {
    gap: 20px;
  }

  .site-header__brand .rt-brand__tagline {
    display: none;
  }

  .site-nav__list {
    gap: 16px;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
  }
}

@media (max-width: 960px) {
  .container {
    width: 100%;
    max-width: 100%;
    padding-inline: clamp(18px, 5vw, 40px);
  }

  .site-header__inner {
    min-height: 68px;
  }

  .site-header__brand {
    min-width: 0;
  }

  .site-nav__list {
    top: 98px;
    bottom: auto;
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
    gap: 0;
  }

  .site-nav__item,
  .site-nav__link {
    width: 100%;
  }

  .site-nav__link {
    display: block;
    padding: 12px 0;
    line-height: 1.35;
  }

  .site-nav__item--cta {
    margin-top: 10px;
  }

  .site-nav__item--cta .site-nav__link--cta {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
  }

  .home-hero {
    padding: clamp(28px, 7vw, 48px) 0 clamp(48px, 10vw, 72px);
  }

  .home-hero__inner {
    display: flex;
    flex-direction: column;
    gap: clamp(28px, 7vw, 48px);
  }

  .home-hero__content {
    order: 1;
    width: 100%;
    max-width: 680px;
  }

  .home-hero__media {
    order: 2;
    width: 100%;
  }

  .home-hero__image-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .home-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .home-hero__title {
    font-size: clamp(2.45rem, 8vw, 4rem);
    line-height: 1.08;
  }

  .home-hero__lead {
    max-width: 42rem;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
  }

  .home-section {
    padding: clamp(48px, 9vw, 72px) 0;
  }

  .home-section__grid,
  .home-section__grid--reverse,
  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(20px, 5vw, 32px);
  }

  .home-section__header {
    max-width: 44rem;
    margin-bottom: clamp(24px, 5vw, 36px);
  }

  .home-section__header h2 {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .home-testimonials {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  body {
    font-size: 0.96rem;
  }

  .container {
    padding-inline: 20px;
  }

  main h1 {
    font-size: clamp(2.15rem, 10vw, 3rem);
    line-height: 1.08;
  }

  main h2 {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
    line-height: 1.14;
  }

  main [class*="__actions"] {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  main [class*="__actions"] .btn {
    width: 100%;
  }

  .input,
  .select,
  .textarea,
  input,
  select,
  textarea {
    min-width: 0;
    max-width: 100%;
  }

  .rt-ribbon {
    min-height: 34px;
    padding: 8px 16px;
    text-align: center;
    font-size: 0.6rem;
    letter-spacing: 0.11em;
  }

  .site-header__inner {
    min-height: 66px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .site-header__brand {
    padding: 0;
  }

  .site-header__brand .rt-brand__monogram {
    width: 38px;
    height: 38px;
  }

  .site-header__brand .rt-brand__name {
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    white-space: nowrap;
  }

  .nav-toggle {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
  }

  .site-nav__list {
    inset-inline: 12px;
    top: 108px;
    max-height: calc(100dvh - 120px);
    padding: 18px 20px;
  }

  .home-hero {
    padding-top: 32px;
  }

  .home-hero__content > .rt-brand {
    margin-bottom: 18px;
  }

  .home-hero__kicker {
    margin-bottom: 16px;
    font-size: 0.67rem;
    line-height: 1.6;
    letter-spacing: 0.14em;
  }

  .home-hero__title {
    margin-bottom: 22px;
    font-size: clamp(2.25rem, 11.5vw, 3.25rem);
    line-height: 1.06;
    letter-spacing: 0.01em;
  }

  .home-hero__lead {
    margin-bottom: 24px;
    font-size: 1rem;
    line-height: 1.75;
  }

  .home-hero__actions,
  .home-section__actions,
  .home-cta__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .home-hero__actions .btn,
  .home-section__actions .btn,
  .home-cta__actions .btn {
    width: 100%;
  }

  .btn {
    min-height: 48px;
    padding: 0.78rem 1rem;
    font-size: 0.72rem;
    line-height: 1.35;
    letter-spacing: 0.11em;
  }

  .home-hero__fineprint {
    max-width: none;
    font-size: 0.72rem;
    line-height: 1.65;
  }

  .home-facts {
    align-items: flex-start;
    gap: 10px;
    font-size: 0.68rem;
    line-height: 1.5;
  }

  .home-hero__image-wrap {
    aspect-ratio: 4 / 3;
    border-radius: 14px;
  }

  .home-hero__seal {
    right: 12px;
    bottom: 12px;
    width: 70px;
    height: 70px;
    transform: none;
    padding: 8px;
    font-size: 0.52rem;
    line-height: 1.35;
    letter-spacing: 0.1em;
  }

  .home-hero__caption {
    left: 12px;
    right: 92px;
    bottom: 12px;
    max-width: none;
    padding: 6px 9px;
    font-size: 0.54rem;
    line-height: 1.35;
    letter-spacing: 0.08em;
    text-align: center;
    white-space: normal;
  }

  .section-index {
    gap: 10px;
    margin-bottom: 18px;
    font-size: 0.62rem;
    line-height: 1.4;
    letter-spacing: 0.18em;
  }

  .section-index__divider {
    min-width: 28px;
  }

  .home-section__header h2 {
    margin-bottom: 16px;
    font-size: clamp(1.85rem, 9vw, 2.6rem);
    line-height: 1.12;
  }

  .home-section__header p,
  .card-body {
    font-size: 0.94rem;
    line-height: 1.72;
  }

  .card {
    padding: 20px;
    border-radius: 14px;
  }

  .home-feature--image {
    padding: 12px;
  }

  .home-feature__media {
    aspect-ratio: 4 / 3;
    margin-bottom: 18px;
  }

  .home-feature__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .card-meta {
    font-size: 0.66rem;
    line-height: 1.5;
    letter-spacing: 0.12em;
  }

  .card-title {
    font-size: 1.35rem;
    line-height: 1.25;
  }

  .home-facts--block {
    margin-top: 24px;
    padding: 18px;
  }

  .site-footer {
    margin-top: 32px;
  }

  .site-footer__top {
    gap: 32px;
    padding-top: 40px;
    padding-bottom: 32px;
  }

  .site-footer__grid {
    gap: 28px;
  }

  .cookie-banner__actions,
  .cookie-banner__actions .btn,
  .age-modal__actions,
  .age-modal__actions .btn {
    width: 100%;
  }

  .age-modal__panel {
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 24px 20px;
  }
}

@media (max-width: 380px) {
  .container {
    padding-inline: 16px;
  }

  .home-hero__title {
    font-size: 2.08rem;
  }

  .home-hero__caption {
    right: 80px;
    font-size: 0.49rem;
  }

  .home-hero__seal {
    width: 62px;
    height: 62px;
  }
}
