/* Desktop layout and content remain in site.css. */
.menu-toggle,.hero-photo,.mobile-contact,.mobile-price{display:none}
#mobile-menu{border:0;padding:0;background:var(--paper);color:var(--dark)}
@media(max-width:760px){
  .home-page{font-size:16px;line-height:1.55;padding-bottom:84px}
  .home-page header{position:sticky;top:0;z-index:20;height:64px;padding:8px 20px;flex-wrap:nowrap;box-shadow:0 1px 0 #20261b22}
  .home-page header .wordmark{width:144px;max-height:44px;object-fit:contain}
  .home-page header>nav{display:none}
  .menu-toggle{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;width:48px;height:48px;border:1px solid #a89467;border-radius:6px;background:transparent;color:inherit;padding:10px;cursor:pointer}
  .menu-toggle span{width:23px;height:2px;background:currentColor}
  #mobile-menu{position:fixed;inset:0;width:100%;max-width:none;height:100%;height:100dvh;max-height:none;margin:0;padding:8px 20px 24px;overflow-y:auto}
  #mobile-menu::backdrop{background:#20261b99}
  .menu-bar{display:flex;justify-content:space-between;align-items:center;min-height:48px;font:600 24px/1 var(--serif)}
  .menu-close{width:48px;height:48px;font:32px/1 Arial;border:1px solid #a89467;background:transparent;color:inherit;border-radius:6px;cursor:pointer}
  #mobile-menu nav{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin-top:24px;font-size:17px}
  #mobile-menu nav a{display:flex;align-items:center;min-height:52px;padding:12px 14px;border-bottom:1px solid #a8946755;white-space:nowrap}
  #mobile-menu nav .language{align-self:flex-start;min-width:70px;justify-content:center}
  .menu-open{overflow:hidden}
  .home-page :is(.program,.about,.access){padding:52px 20px}
  .home-page :is(h2,.program h2,.access h2,.about h2){font-size:28px;line-height:1.12;text-wrap:balance}
  .home-page :is(.blocks h3,.practice-path h3){font-size:24px;line-height:1.15}
  .home-page .eyebrow{font-size:12px;letter-spacing:.1em;line-height:1.5;text-wrap:balance}
  .home-page :is(.status,.offer-note,.flow-bridge){font-size:14px}
  :is(.ru,.de).home-page .brand-hero{display:flex;flex-direction:column;padding:0;min-height:0;background:var(--dark)}
  :is(.ru,.de).home-page .brand-hero::after{display:none;content:none;background-image:none}
  .home-page .hero-photo{display:block;width:100%;height:35svh;max-height:310px;min-height:180px;object-fit:cover;object-position:center 37%}
  :is(.ru,.de).home-page .brand-hero .hero-copy{padding:24px 20px 40px;display:flex;flex-direction:column;gap:0}
  :is(.ru,.de).home-page .brand-hero h1{font-size:34px;line-height:1.05;letter-spacing:-.035em;margin:0 0 12px;text-wrap:balance;overflow-wrap:normal}
  .home-page .brand-hero .hero-lead{font-size:16px;line-height:1.5;max-width:none}
  .home-page .home-actions{order:1;margin-top:16px;gap:8px}
  .home-page .home-actions .button{display:flex;min-height:48px;padding:12px 16px;font-size:16px;letter-spacing:0}
  .home-page .hero-bio{order:3;margin-top:24px}
  .home-page .flow-bridge{order:2;margin-top:16px;padding:14px;border:1px solid #d5bb8666;border-radius:8px;line-height:1.5}
  .home-page .flow-bridge a{display:inline-flex;align-items:center;min-height:44px;margin-top:8px;padding:4px 12px;border:1px solid #d5bb8666;border-radius:4px}
  .home-page .button{min-height:48px;padding:12px 16px;letter-spacing:0;font-size:16px;line-height:1.5}
  .home-page .bodyflow-method .blocks{gap:12px}
  .home-page .bodyflow-method .blocks article{display:grid;grid-template-columns:72px minmax(0,1fr);column-gap:14px;padding:14px}
  .home-page .bodyflow-method .blocks img{width:72px;height:80px;aspect-ratio:auto;grid-row:1/3;margin:0;border-radius:6px;object-fit:cover}
  .home-page .bodyflow-method .blocks h3{font-size:23px;margin:0 0 8px}
  .home-page .bodyflow-method .blocks p{font-size:14px;line-height:1.5}
  .home-page .home-more .blocks article{padding:16px}
  .home-page .blocks article p+p{margin-top:16px}
  .home-page .desktop-price{display:none}
  .home-page .mobile-price{display:block;margin-top:12px;font-size:16px;line-height:1.5}
  .home-page .course-detail .course-cover{aspect-ratio:16/9;max-height:240px}
  /* Keep portraits for their own stories; avoid repeated photos in consecutive offers. */
  .home-page #catalog>.about>.course-cover,.home-page .featured-course>.course-cover{display:none}
  .home-page footer{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:32px 20px}
  .home-page footer a{display:flex;align-items:center;min-height:44px;font-size:16px;padding:8px 0}
  .home-page footer .legal-links{display:flex;flex-direction:column;gap:8px}
  .home-page .faq details{padding:0;margin:0;border-bottom:1px solid #aeb49b60}
  .home-page .faq summary{position:relative;display:flex;align-items:center;width:100%;min-height:56px;padding:14px 36px 14px 0;font-size:16px;line-height:1.5;list-style:none}
  .home-page .faq summary::-webkit-details-marker{display:none}
  .home-page .faq summary::after{content:"";position:absolute;right:6px;top:22px;width:11px;height:11px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg)}
  .home-page .faq details[open] summary::after{transform:rotate(225deg);top:26px}
  .home-page .faq details p{padding:0 0 20px;margin:0}
  .mobile-contact{display:flex;position:fixed;z-index:15;bottom:0;left:0;right:0;min-height:64px;align-items:center;justify-content:center;padding:12px 20px calc(12px + env(safe-area-inset-bottom));background:var(--paper);color:var(--dark);border-top:1px solid #a89467;font-size:16px;box-shadow:0 -4px 14px #20261b22}
  .home-page :is(main a:not(.button),footer a){min-height:44px}
  .home-page main :is(section,div)[id]{scroll-margin-top:80px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
@media(min-width:761px){
  :is(.ru,.de).home-page .brand-hero::after{display:none;content:none}
  .home-page .hero-photo{display:block;grid-column:2;grid-row:1;width:calc(100% - clamp(24px,5vw,78px));height:calc(100% - 42px);align-self:end;object-fit:cover;object-position:100% 37%;border-radius:50% 50% 0 0 / 27% 27% 0 0;outline:1px solid #d5bb864d;outline-offset:7px}
  .home-page .hero-copy{grid-column:1;grid-row:1}
}
@media(max-width:760px){.home-page{padding-bottom:calc(84px + env(safe-area-inset-bottom))}}
button:focus-visible{outline:2px solid currentColor;outline-offset:4px}
