/* Мобильная главная Figma 290:1117; общие правила внутренних страниц. */
@media(max-width:800px){
  :root{--gutter:0.2rem}
  body{font-size:0.16rem}
  .section-pad{padding:0.36rem var(--gutter)}
  .site-header,.hero .site-header{flex-wrap:nowrap;gap:0.12rem;padding:0.2rem var(--gutter);min-height:1.1rem}
  .site-header .brand{gap:0.12rem;min-width:0}
  .site-header .brand-mark{width:0.69rem;height:0.69rem;flex-shrink:0}
  .site-header .brand-name{width:1.78rem;height:0.33rem}
  .primary-nav{width:auto;gap:0;margin-left:auto}
  .search-toggle,.menu-toggle{display:flex;align-items:center;justify-content:center;width:0.4rem;height:0.44rem;padding:0.1rem;border:0;background:none;flex-shrink:0}
  .menu-toggle span{display:block;width:0.2rem;height:0.2rem;background:url('../../images/mobile-menu.svg') right center/0.59521rem 0.19521rem no-repeat;filter:brightness(0)}
  .hero .menu-toggle span{filter:none}
  #primary-menu{display:none}
  .menu-open #primary-menu{display:block;position:absolute;left:0.2rem;right:0.2rem;top:100%;max-height:70vh;overflow-y:auto;overscroll-behavior:contain;background:white;color:var(--text);border-radius:0.12rem;padding:0.16rem;box-shadow:0 0.08rem 0.24rem #0002}
  .primary-nav #primary-menu>ul{display:flex;flex-direction:column;gap:0.16rem;align-items:stretch}
  .primary-nav #primary-menu a{display:block;white-space:normal;font-size:0.18rem;line-height:0.24rem;padding:0.08rem 0.04rem;color:var(--text)}
  .primary-nav #primary-menu a[aria-current]{color:var(--green)}
  #primary-menu .submenu{display:block;position:static;padding:0 0 0 0.12rem;min-width:0}
  #primary-menu .submenu>ul{padding:0;box-shadow:none}
  #primary-menu .submenu a{font-size:0.15rem;line-height:0.21rem}
  .header-search{top:100%;left:0.2rem;right:0.2rem;width:auto;padding:0.12rem;gap:0.1rem}
  .header-search input{width:0;padding:0.12rem;font-size:0.16rem}
  .header-search button{padding:0.12rem 0.18rem;font-size:0.16rem}
  .hero{--hero-shade:rgba(3,36,99,.4);height:auto;min-height:7.66rem;background-position:20% center}
  .hero-content{max-width:none;margin:0;padding:0.66rem var(--gutter) 0.6rem}
  .hero h1{font-size:0.32rem;line-height:0.37rem;letter-spacing:0}
  .hero-copy{font-size:0.16rem;line-height:0.22rem;font-weight:400;margin-top:0.08rem}
  .hero-author{gap:0.22rem;margin-top:0.5rem}
  .hero-author img{width:0.68rem;height:0.68rem;flex-shrink:0}
  .hero-author p{font-size:0.15rem;line-height:0.2rem;min-width:0}
  .home-news{margin-top:0.24rem;border-radius:0;padding-top:0.3rem;padding-bottom:0.4rem}
  .section-heading{gap:0.12rem;margin-bottom:0.27rem}
  .section-heading h2,.useful h2{font-size:0.32rem;line-height:0.4rem}
  .all-link{font-size:0.18rem;gap:0.1rem;white-space:nowrap}
  .home-news-grid{grid-template-columns:1fr;gap:0.32rem}
  .lead-news{padding-bottom:0.28rem;border-bottom:0.01rem solid #ccc}
  .lead-news h3{font-size:0.2rem;line-height:0.26rem;margin:0.2rem 0 0.27rem}
  .news-briefs h3{font-size:0.18rem;line-height:0.24rem;margin-bottom:0.27rem}
  .news-briefs article+article{margin-top:0.23rem;padding-top:0.23rem}
  .home-events{padding-top:0;padding-bottom:0.44rem}
  .home-events .section-heading{padding-top:0.3rem;margin-bottom:0.32rem}
  .event-grid{grid-template-columns:1fr;gap:0.4rem}
  .event-card h3{font-size:0.26rem;line-height:0.32rem;font-weight:500;margin:0.2rem 0 0.27rem}
  .useful{padding-top:0.6rem;padding-bottom:0.6rem;overflow:hidden}
  .useful h2{margin-bottom:0.48rem}
  .useful-grid{display:flex;gap:0.21rem;overflow-x:auto;scroll-snap-type:x mandatory;margin-right:-0.2rem;padding-right:0.2rem;padding-bottom:0.1rem;scrollbar-width:thin}
  .useful-grid .useful-card{flex:0 0 min(3.44rem,calc(100vw - 0.6rem));min-height:2.08rem;font-size:0.24rem;line-height:0.3rem;padding:0.32rem 0.2rem;scroll-snap-align:start}
  .site-footer{padding:0.4rem 0.2rem;border-radius:0.32rem 0.32rem 0 0}
  .footer-top{gap:0.7rem;flex-direction:column}
  .footer-contacts{width:100%;max-width:3.8rem}
  .site-footer .brand{gap:0.21rem}
  .site-footer .brand-mark{width:1rem;height:1rem;flex-shrink:0}
  .site-footer .brand-name{width:calc(100% - 1.21rem);max-width:2.49rem;height:auto}
  .footer-address{margin:0.5rem 0;font-size:0.18rem}
  .footer-address .phone{font-size:0.28rem}
  .footer-navigation{display:flex;flex-direction:column;gap:0.5rem}
  .footer-column:nth-child(2){order:0}
  .footer-column:nth-child(3){order:1}
  .footer-column:first-child{order:2}
  .footer-column:nth-child(4){order:3}
  .footer-heading{font-size:0.2rem;margin-bottom:0.3rem}
  .footer-column:has(>a:only-child) .footer-heading{margin:0}
  .footer-column:nth-child(2) ul{display:grid;grid-auto-flow:column;grid-template-rows:repeat(5,auto);grid-template-columns:repeat(2,minmax(0,1fr));column-gap:0.16rem;row-gap:0.24rem}
  .footer-column ul{gap:0.24rem}
  .footer-column li a{font-size:0.18rem;line-height:0.24rem;overflow-wrap:anywhere}
  .copyright{font-size:0.18rem;line-height:0.25rem;margin-top:0.7rem}
  .cookie-notice{gap:0.12rem;padding:0.14rem 0.16rem;max-width:calc(100% - 0.24rem);font-size:0.12rem;line-height:0.18rem;bottom:0.12rem}
  .cookie-notice p{min-width:0}
  .cookie-notice button{padding:0.12rem 0.14rem;font-size:0.13rem}
  .content-panel{border-radius:0.2rem;margin-bottom:0.2rem;min-height:3rem}
  .content-panel h1{font-size:0.3rem;line-height:0.37rem;margin-bottom:0.28rem;overflow-wrap:anywhere}
  .page-heading{margin-bottom:0.3rem}
  .page-heading h1{margin-bottom:0}
  .page-heading>p{font-size:0.18rem;line-height:0.26rem;margin:0.2rem 0}
  .page-heading .rich-text{margin-top:0.24rem}
  .breadcrumbs{font-size:0.14rem;line-height:0.2rem;gap:0.1rem;flex-wrap:wrap;margin-bottom:0.2rem}
  .rich-text,.staff-list p{font-size:0.16rem;line-height:0.24rem}
  .rich-text h2{font-size:0.25rem;line-height:0.32rem;margin:0.28rem 0 0.18rem}
  .rich-text h3{font-size:0.21rem;line-height:0.28rem}
  .rich-text table{display:block;overflow-x:auto;font-size:0.14rem}
  .rich-text th,.rich-text td{min-width:1.2rem;padding:0.12rem}
  .rich-text blockquote{padding:0.16rem 0.2rem;margin:0.24rem 0}
  .rich-text img{margin:0.24rem 0;border-radius:0.12rem}
  .link-grid{grid-template-columns:1fr;gap:0.16rem;margin:0.24rem 0}
  .link-grid .useful-card{min-height:1.5rem;font-size:0.21rem;line-height:0.28rem}
  .member-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0.3rem 0.16rem;margin-top:0.3rem}
  .member-card h2,.member-card h3{font-size:0.17rem;line-height:0.23rem;margin:0.16rem 0 0.1rem;overflow-wrap:anywhere}
  .member-card p{font-size:0.14rem;line-height:0.2rem}
  .member-photo{border-radius:0.12rem}
  .news-row{display:flex;flex-direction:column;gap:0.18rem;padding:0.28rem 0}
  .news-row-date{order:1}
  .news-row-body{order:2;min-width:0;width:100%}
  .news-row-image{width:100%;border-radius:0.12rem}
  .news-row h2,.news-row h3{font-size:0.21rem;line-height:0.28rem;margin-bottom:0.16rem}
  .news-row-body p,.news-row-body .rich-text{font-size:0.16rem;line-height:0.24rem}
  .article-columns{grid-template-columns:minmax(0,1fr);gap:0.3rem}
  .article-main,.article-sidebar{min-width:0}
  .article-sidebar{padding-top:0}
  .article-main>.news-image,.article-image{margin:0.24rem 0;border-radius:0.12rem}
  .gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:0.12rem;margin-top:0.24rem}
  .page-tabs,.subnav{display:flex;flex-wrap:wrap;gap:0.16rem;margin-bottom:0.28rem;font-size:0.15rem;line-height:0.22rem}
  .staff-list li{margin-bottom:0.24rem;line-height:0.26rem}
  .document-row,.document-item{display:flex;gap:0.16rem;align-items:flex-start;margin-bottom:0.24rem}
  .document-row>div,.document-item>div{min-width:0;overflow-wrap:anywhere}
  .document-row a,.document-item a{font-size:0.17rem;line-height:0.24rem}
  .contacts-panel{grid-template-columns:minmax(0,1fr);gap:0.36rem;padding-top:0.36rem}
  .contacts-copy,.contact-form-wrap{min-width:0}
  .contacts-copy h3{font-size:0.18rem;margin:0.28rem 0 0.2rem}
  .contact-form input:not([type=checkbox]),.contact-form textarea{font-size:0.16rem;padding:0.16rem}
  .contact-form .button{min-height:0.48rem}
  .form-page{max-width:100%}
  .search-form{gap:0.1rem}
  .search-form input{width:0;padding:0.12rem;font-size:0.16rem}
  .search-form .button{padding:0.12rem 0.18rem;font-size:0.16rem}
  .search-results h2{font-size:0.21rem;line-height:0.28rem}
  .pagination{gap:0.04rem;flex-wrap:wrap;margin-top:0.32rem}
  .pagination a,.pagination span{min-width:0.4rem;padding:0.08rem}
}
