/* Wspolna oprawa telefonu. Film zachowuje pelny kadr 16:9. */
@media (max-width: 800px) {
  :root { --mobile-gutter: 22px; }
  html { scroll-padding-top: 18px; }
  .preview-note, .home-page .preview-note {
    font-size: 8px; line-height: 1.6; letter-spacing: .8px;
    padding: 7px 18px; min-height: 0;
  }
  .preview-note span, .home-page .preview-note span { padding: 0 7px; }
  :root body .site-header, .home-page .site-header {
    min-height: 96px; padding: 12px var(--mobile-gutter);
    gap: 14px; flex-wrap: nowrap; background: #091b2d; align-items: center;
  }
  .site-header .brand { gap: 10px; min-width: 0; }
  body:not(.home-page) .site-header .brand { gap: 8px; }
  body:not(.home-page) .site-header .brand img { width: 32px; height: 40px; }
  .site-header .brand > span { font-size: 23px; letter-spacing: 2px; }
  .site-header .brand small { font-size: 7px; letter-spacing: 1.8px; margin-top: 6px; }
  .home-page .brand { width: 66px; height: 66px; flex-basis: 66px; }
  .home-page .brand img { width: 39px; height: 48px; }
  .site-header .menu-toggle, .home-page .menu-toggle {
    min-height: 44px; padding: 10px 14px; font-size: 13px;
    color: #f4ead7; background: #102738; border-color: #b29a66;
  }
  .site-header #navigation, .home-page .site-header #navigation {
    right: var(--mobile-gutter); width: calc(100% - 44px);
    max-height: calc(100svh - 145px); overflow-y: auto;
    padding: 10px 20px 14px; background: #091b2dfa;
    box-shadow: 0 14px 26px #06142040;
  }
  .site-header #navigation a, .home-page .site-header #navigation a {
    font-size: 14px; min-height: 46px; padding: 10px 0;
  }
  .eyebrow { font-size: 10px; line-height: 1.7; letter-spacing: 1.5px; }
  .home-page .hero-content { padding: 27px var(--mobile-gutter) 24px; }
  .home-page .hero-content .eyebrow { font-size: 9px; letter-spacing: 1.35px; margin-bottom: 18px; }
  .home-page .hero-content h1 { font-size: clamp(34px, 9.3vw, 51px); line-height: 1.1; letter-spacing: -1.1px; }
  .home-page .hero-description { font-size: 14px; line-height: 1.85; margin-top: 20px; }
  .home-page .hero-content .actions { display: grid; gap: 8px; margin-top: 24px; }
  .home-page .hero-content .actions > a { width: 100%; min-height: 48px; }
  .home-page .hero-content .actions .button { padding: 14px 18px; font-size: 13px; }
  .home-page .hero-content .actions .text-link { display: flex; justify-content: center; align-items: center; font-size: 12px; border-bottom: 0; }
  .home-page .jubilee {
    position: relative; inset: auto; display: flex; flex-direction: row;
    justify-content: flex-start; gap: 12px; width: fit-content;
    margin: 0 var(--mobile-gutter) 20px; padding-top: 15px;
    border-top: 1px solid #c6a86a55;
  }
  .home-page .jubilee::before, .home-page .jubilee .ornament { display: none; }
  .home-page .jubilee strong { font-size: 33px; letter-spacing: -1px; }
  .home-page .jubilee > span:not(.ornament) { margin: 0; font-size: 9px; letter-spacing: 1.6px; }
  .home-page .jubilee small { margin: 0; font-size: 9px; letter-spacing: 1px; }
  .home-page .hero-bottom { margin: 0 var(--mobile-gutter); min-height: 66px; padding: 0 0 22px; }
  .home-page .hero-bottom button { min-height: 44px; font-size: 11px; padding: 10px 15px; }
  .home-page .hero-bottom .scroll-cue { left: 0; transform: none; top: -3px; width: 44px; height: 44px; }
  .home-page .scroll-cue svg { width: 28px; height: 39px; }
  .home-page .intro { padding: 44px var(--mobile-gutter); }
  .home-page .intro-text h2 { font-size: 35px; }
  .home-page .intro-text .eyebrow { font-size: 9px; letter-spacing: 1.4px; }
  .home-page .intro-text p:not(.eyebrow) { font-size: 15px; line-height: 1.85; }
  .home-page .community { padding: 10px var(--mobile-gutter) 54px; gap: 26px; }
  .home-page .community h2 { font-size: 34px; }
  .home-page .community p { font-size: 14px; line-height: 1.9; }
  .home-page .offer-card { padding: 32px 27px; min-height: 280px; }
  .home-page .offer-card h3 { font-size: 28px; line-height: 1.2; }
  .home-page .offer-card .card-number { font-size: 10px; letter-spacing: 1.6px; }
  .home-page .offer-card .card-link { min-height: 44px; padding-top: 18px; font-size: 13px; }
  .home-page .academy, .home-page .heritage { padding: 48px var(--mobile-gutter); gap: 28px; }
  .home-page .academy h2, .home-page .heritage h2 { font-size: 35px; }
  .home-page .course-list > a { padding: 22px 0; gap: 14px; }
  .home-page .course-list h3 { font-size: 24px; line-height: 1.2; }
  .home-page .course-list .course-price { font-size: 19px; }
  .home-page .chronicle { padding: 48px var(--mobile-gutter); }
  .site-footer { padding: 34px var(--mobile-gutter) 24px; gap: 24px; }
  .footer-link-grid { gap: 4px 14px; }
  .footer-link-grid a { white-space: normal; font-size: 13px; line-height: 1.6; }
  .footer-bottom { line-height: 1.7; }
  .contact-royal .contact-width { width: calc(100% - 44px); }
  .contact-royal .contact-form-card, .contact-royal .contact-visit-copy { padding: 24px 20px; }
  .contact-royal .contact-phone-card { padding: 22px; }
  .contact-royal .contact-heading h2 { font-size: 35px; }
  .contact-royal .contact-form-card h3 { font-size: 30px; }
  .contact-royal .contact-email-block a { font-size: 14px; }
  body input, body select, body textarea { font-size: 16px; min-width: 0; }
  .history-page .history-hero-photo { min-height: 0; height: clamp(245px, 68vw, 360px); }
  .history-page .history-anniversary { --medal-size: clamp(125px, 35vw, 170px); top: 14px; right: 14px; }
  .history-page .history-hero-photo figcaption { font-size: 9px; line-height: 1.6; padding: 8px 10px; }
  .history-page .history-hero-copy { padding: 32px var(--mobile-gutter) 36px; }
  .history-page .history-hero h1 { font-size: clamp(35px, 9.3vw, 49px); line-height: 1.13; }
  .history-page .history-hero-actions { gap: 12px; }
  .history-page .history-hero-actions .button { min-height: 50px; font-size: 12px; }
  .history-tabs { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 14px var(--mobile-gutter); }
  .history-tabs a { display: flex; align-items: center; min-height: 44px; font-size: 12px; }
  .school-page .school-hero, .events-page .events-hero, .water-page .water-hero { min-height: 590px; }
  .school-page .school-hero-copy, .events-page .events-hero-copy, .water-page .water-hero-content { width: calc(100% - 44px); padding-top: 24px; padding-bottom: 75px; }
  .school-page .school-hero .breadcrumb, .events-page .events-hero .breadcrumb, .water-page .water-hero .breadcrumb { font-size: 11px; margin-bottom: 100px; }
  .school-page .school-hero h1, .events-page .events-hero h1, .water-page .water-hero h1 { font-size: clamp(37px, 10vw, 52px); line-height: 1.13; letter-spacing: -1px; }
  .school-page .school-hero .eyebrow, .events-page .events-hero .eyebrow, .water-page .water-hero .eyebrow { font-size: 9px; letter-spacing: 1.5px; }
  .school-page .school-hero-actions, .events-page .events-hero-actions, .water-page .water-hero-actions { display: grid; gap: 8px; }
  .school-page .school-hero-actions > a, .events-page .events-hero-actions > a, .water-page .water-hero-actions > a { min-height: 48px; display: flex; align-items: center; font-size: 12px; }
  .school-page .school-hero-actions > a:not(.button), .events-page .events-hero-actions > a:not(.button), .water-page .water-hero-actions > a:not(.button) { justify-content: center; border: 0; }
  .school-page .school-width, .events-page .events-width, .water-page .water-width, .house-page .house-width { width: calc(100% - 44px); }
  .school-page .school-page-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 16px var(--mobile-gutter); }
  .school-page .school-page-nav a { min-height: 44px; padding: 10px 12px; display: flex; align-items: center; justify-content: center; font-size: 12px; border: 1px solid #c6a86a55; }
  .school-page .school-product-body { padding: 24px 20px; }
  .school-page .school-product h3 { font-size: 30px; line-height: 1.18; }
  .school-page .school-product-actions .button { width: 100%; min-height: 50px; }
  .school-page .school-product-actions > .school-text-link { min-height: 44px; display: flex; align-items: center; }
  .school-page .school-booking input, .school-page .school-booking select, .school-page .school-booking textarea { font-size: 16px; }
  .school-page .school-month-toolbar h3 { font-size: clamp(20px, 5.8vw, 26px); }
  .school-page .school-preview-badge { white-space: normal; line-height: 1.7; }
  .house-page .house-hero h1, .royal-hero h1 { font-size: clamp(37px, 10vw, 52px); }
  .house-page .house-hero-copy, .royal-hero-copy { padding-left: var(--mobile-gutter); padding-right: var(--mobile-gutter); }
  .journal-hero h1 { font-size: clamp(34px, 9vw, 48px); line-height: 1.15; }
  .journal-layout { padding-left: var(--mobile-gutter); padding-right: var(--mobile-gutter); }
}
@media (max-width: 360px) {
  :root { --mobile-gutter: 18px; }
  .site-header .brand > span { font-size: 21px; }
  :root body .site-header { gap: 10px; }
  body:not(.home-page) .site-header .brand img { width: 30px; height: 38px; }
  .site-header .menu-toggle { padding-inline: 11px; }
  .home-page .hero-content h1 { font-size: 33px; }
  .home-page .jubilee { gap: 9px; }
  .home-page .jubilee > span:not(.ornament) { font-size: 8px; }
  .home-page .jubilee small { font-size: 8px; }
  .school-page .school-how-grid { grid-template-columns: 1fr; }
  .school-page .school-booking-header, .school-page .school-booking-summary, .school-page .school-booking form { padding: 22px 18px; }
}
