
@media (min-width: 761px) and (max-width: 1000px) {
  .header { gap: 20px; }
  .header .brand-logo { width: 136px; }
  .desktop-nav { gap: 14px; font-size: 13px; }
  .desktop-nav a { display: flex; align-items: center; min-height: 44px; white-space: nowrap; }
  .header-cta { padding-inline: 16px; }
  .contacts-address { font-size: 21px; }
  .contacts-phone { font-size: 23px; }
  .trial-cta-inner { min-height: 500px; }
  .trial-cta-copy { width: 55%; }
  .trial-cta-copy h2 { font-size: 56px; }
  .trial-cta-button { min-width: 0; width: 100%; padding-inline: 18px; }
  .news-secondary .news-card { grid-template-columns: minmax(0, 1fr); }
  .news-secondary .news-card-photo { aspect-ratio: 3 / 2; }
  .news-card-copy { padding: 26px; }
  .footer-main { gap: 30px; }
}

@media (max-width: 760px) {
  :root {
    --page: clamp(16px, 5vw, 32px);
    --header-height: 72px;
  }
  html { scroll-padding-top: calc(var(--header-height) + env(safe-area-inset-top)); }
  body.menu-open { overflow: hidden; }
  .section, .contact-section { padding: 56px var(--page); scroll-margin-top: 0; }
  .section-heading{
    align-items: center;
    text-align: center;
    margin-bottom: 32px;
  }
  .section-heading h2, .faq-layout > h2 { font-size: clamp(40px, 10.6vw, 64px); line-height: 1.12; }
  .button { min-height: 52px; padding: 14px 20px; line-height: 1.45; white-space: normal; }
  .button:hover { transform: none; }
  /* Darker orange preserves contrast for compact white button labels. */
  .header-cta, .trial-cta-button {
    background: #edae3a;
    border-color: #edae3a;
  }
  .header-cta:hover, .trial-cta-button:hover {
    background: #f4c063;
    border-color: #f4c063;
  }

  /* Navigation remains reachable while the page or menu scrolls. */
  .header {
    position: sticky;
    top: 0;
    height: calc(var(--header-height) + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) var(--page) 0;
    gap: 12px;
  }
  .header .brand { min-height: 44px; }
  .header .brand-logo { width: clamp(110px, 30vw, 142px); }
  .header-cta { margin-left: auto; padding: 10px 14px; min-height: 44px; font-size: 12px; white-space: nowrap; }
  .menu-toggle { flex: 0 0 44px; width: 44px; height: 44px; gap: 7px; }
  .menu-toggle span { height: 2px; transition: transform .2s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .mobile-menu {
    position: fixed;
    top: calc(var(--header-height) + env(safe-area-inset-top));
    bottom: 0;
    padding: 12px var(--page) calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
  }
  .mobile-menu a { padding: 16px 0; font-size: 22px; line-height: 1.4; }
  .mobile-menu .button { flex-shrink: 0; margin-top: 28px; }
  .film-controls { right: 12px; bottom: 12px; gap: 10px; }
  .film-control { width: 44px; height: 44px; background: #09090970; }
  .film-fallback { bottom: 12px; right: 12px; padding: 12px 18px; font-size: 14px; }
  .contacts-label { margin-bottom: 8px; }
  .contacts-address, .contacts-phone { font-size: 21px; }
  .contacts-embed { height: 340px; }

  /* A vertical crop keeps the fighter visible above the conversion copy. */
  .trial-cta-panel { padding-inline: var(--page); }
  .trial-cta-photo { left: 0; width: 100%; height: 100%; object-position: 50% top; }
  .trial-cta-panel::before {
    background: linear-gradient(0deg, #181818 0%, #181818ea 25%, #18181845 60%, #1818181a 100%);
  }
  .trial-cta-inner { min-height: 520px; align-items: flex-end; }
  .trial-cta-copy { width: 100%; padding: 280px 0 32px; }
  .trial-cta-copy h2 { font-size: clamp(40px, 10.7vw, 64px); line-height: 1.1; }
  .trial-cta-action { margin-top: 24px; }
  .trial-cta-button { min-width: 0; width: 100%; min-height: 56px; padding: 15px 16px; font-size: 14px; }
  .gallery-dialog {
    width: 100%; max-width: none; height: 100dvh; max-height: none;
    border: 0; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  }
  .gallery-toolbar { height: 80px; gap: 12px; padding: 0 16px; }
  .gallery-toolbar p { flex: 1; min-width: 0; font-size: 13px; line-height: 1.4; }
  .gallery-counter { flex-shrink: 0; margin: 0; font-size: 11px; white-space: nowrap; }
  .gallery-control { flex-shrink: 0; }
  .gallery-stage { height: calc(100% - 148px); padding: 12px 0; }
  .gallery-prev, .gallery-next { top: auto; bottom: calc(12px + env(safe-area-inset-bottom)); transform: none; }
  .gallery-prev { left: calc(50% - 56px); }
  .gallery-next { left: calc(50% + 12px); right: auto; }

  .news-card, news-card[featured] .news-card { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .news-card-photo, news-card[featured] .news-card-photo { min-height: 0; aspect-ratio: 3 / 2; }
  .news-card-photo figcaption { bottom: 12px; left: 12px; max-width: calc(100% - 24px); padding: 6px 8px; font-size: 10px; }
  .news-card-copy, news-card[featured] .news-card-copy { padding: 24px; }
  .news-card-title, news-card[featured] .news-card-title { font-size: clamp(30px, 8.4vw, 44px); margin-top: 18px; line-height: 1.16; }
  .news-card-excerpt, news-card[featured] .news-card-excerpt { font-size: 15px; margin-top: 16px; }
  .news-card-link, news-card[featured] .news-card-link { min-height: 44px; padding: 10px 0; margin-top: 20px; }
  .news-secondary { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 20px; }
  .news-reader { width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 0 20px 28px; }
  .news-reader-close {
    position: sticky; top: 0; right: auto; z-index: 1; display: grid;
    width: 44px; height: 44px; margin: 8px -8px 8px auto; background: var(--bg);
  }
  .news-reader h2 { font-size: clamp(32px, 9vw, 48px); margin: 20px 0 24px; }
  .news-reader-body { margin: 24px 0; }
  .news-reader-body p { font-size: 15px; line-height: 1.75; }
  .news-reader-photos { flex-direction: column; margin: 24px 0; }
  .news-reader-photo { width: 100%; flex: auto; }
  .news-reader-source { padding-block: 12px; }

  .faq-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .faq-list summary { align-items: center; font-size: 15px; line-height: 1.5; padding: 22px 0; gap: 16px; }
  .faq-list summary span { flex: 0 0 24px; text-align: center; }
  .faq-list details p { padding-right: 0; font-size: 15px; }
  .faq-list p a { text-decoration: underline; text-underline-offset: 3px; }
  .footer { padding: 44px var(--page) calc(24px + env(safe-area-inset-bottom)); }
  .footer-main { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-bottom: 30px; }
  .footer-brand img { width: 168px; }
  .footer-identity .footer-contact { margin-top: 18px; }
  .footer-label { margin: 0 0 8px; }
  .footer-contact address, .footer-phone { font-size: 18px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 16px; padding-top: 22px; }
  .footer-docs a, .footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-docs ul, .footer-nav ul { gap: 0; }
  .booking-dialog { max-height: calc(100dvh - 24px); width: calc(100% - 24px); padding: 0 22px 24px; overflow-y: auto; overscroll-behavior: contain; }
  .dialog-close { position: sticky; top: 0; right: auto; display: block; z-index: 1; width: 44px; height: 44px; margin: 6px -8px 4px auto; background: var(--bg); }
  .booking-dialog h2 { font-size: clamp(36px, 11vw, 54px); margin: 18px 0; }
  .booking-dialog select { min-width: 0; font-size: 16px; }
}

/* Keep third-party embeds wide enough on the smallest phones. */
@media (max-width: 359px) {
  .header { gap: 6px; }
  .header-cta { padding-inline: 10px; font-size: 11px; }
  .contacts-embed { margin-inline: calc(0px - var(--page)); border-inline: 0; }
}

@media (max-width: 760px) and (max-height: 500px) {
  .mobile-menu a { padding-block: 12px; font-size: 20px; }
  .gallery-toolbar { height: 60px; }
  .gallery-stage { height: calc(100% - 128px); }
}

/* Phone landscape uses the tablet layout but still needs compact dialogs. */
@media (min-width: 761px) and (max-height: 600px) {
  .booking-dialog { max-height: calc(100dvh - 24px); padding: 0 30px 28px; overscroll-behavior: contain; }
  .dialog-close { position: sticky; top: 0; right: auto; display: block; width: 44px; height: 44px; margin: 6px -12px 4px auto; background: var(--bg); }
  .booking-dialog h2 { font-size: 46px; }
  .news-reader { max-height: calc(100dvh - 24px); padding: 0 32px 28px; }
  .news-reader-close { position: sticky; top: 0; right: auto; z-index: 1; width: 44px; height: 44px; margin: 8px -12px 8px auto; background: var(--bg); }
  .news-reader h2 { font-size: 42px; }
  .gallery-dialog { width: 100%; height: 100dvh; max-width: none; border: 0; }
  .gallery-toolbar { height: 60px; padding-inline: 16px; }
  .gallery-stage { height: calc(100% - 128px); padding: 8px 0; }
  .gallery-prev, .gallery-next { top: auto; bottom: 12px; transform: none; }
  .gallery-prev { left: calc(50% - 56px); }
  .gallery-next { left: calc(50% + 12px); right: auto; }
}
