/**
 * School 435 — foundations.
 *
 * Stable tokens, typography and layout primitives shared by every template.
 */

/* school435-metro-scale-start
   Fluid typographic grid (Utopia method).
   Anchors: viewport 360 -> 1340px (wideSize), base 16 -> 18px,
   modular ratio 1.2 (min) -> 1.25 (max), major third.
   Every font-size on the site MUST come from this ladder:
     step -2 11->11.5   fine print
     step -1 13.3->14.4 kickers, dates, meta, labels
     step  0 16->18     body
     step  1 19.2->22.5 leads, h3, tile titles
     step  2 23->28.1   h3-display, panel/aside heads
     step  3 27.6->35.2 h2, row titles, section heads
     step  4 33.2->43.9 h1 default, numbers
     step  5 39.8->54.9 story/hero titles
     step  6 47.8->68.7 page hero titles
     step  7 57.3->85.8 brand title
   Line-height pairs shrink as steps grow: 1.5 -> 1.05.
   Rules stay crisp px: --rule-fine 1px, --rule-strong 2px.
*/
:root{
  --school435-step--2:clamp(0.6944rem,0.6851rem + 0.0417vw,0.72rem);
  --school435-step--1:clamp(0.8333rem,0.8088rem + 0.1088vw,0.9rem);
  --school435-step-0:clamp(1rem,0.9541rem + 0.2041vw,1.125rem);
  --school435-step-1:clamp(1.2rem,1.1242rem + 0.3367vw,1.4063rem);
  --school435-step-2:clamp(1.44rem,1.3233rem + 0.5189vw,1.7578rem);
  --school435-step-3:clamp(1.728rem,1.5556rem + 0.7661vw,2.1973rem);
  --school435-step-4:clamp(2.0736rem,1.8264rem + 1.0987vw,2.7466rem);
  --school435-step-5:clamp(2.4883rem,2.1412rem + 1.5427vw,3.4332rem);
  --school435-step-6:clamp(2.986rem,2.5064rem + 2.1315vw,4.2915rem);
  --school435-step-7:clamp(3.5832rem,2.9288rem + 2.9081vw,5.3644rem);
  --school435-rule-fine:1px;
  --school435-rule-strong:2px;
  --school435-content-line:940px;
  --school435-gutter:32px;
  /* Legacy aliases. New components use the spatial contract below. */
  --school435-inset-wide:var(--school435-contract-inset-display-x);
  --school435-inset-narrow:var(--school435-contract-inset-reading-x);
  --school435-inset-panel:var(--school435-contract-inset-panel-x);
  --school435-header-inset-right:var(--wp--preset--spacing--50);
  --school435-header-copy-inset-x:var(--school435-contract-inset-cell-x);
  --school435-header-copy-inset-y:var(--school435-contract-inset-cell-y);
}
/* school435-metro-scale-end */

/* school435-metro-type-start */
h1,h2,h3{font-family:"Bounded",Arial,sans-serif;font-weight:650;font-variant-numeric:lining-nums proportional-nums;font-feature-settings:"lnum" 1,"onum" 0;font-optical-sizing:auto;}
h1{letter-spacing:-.02em;}
h2,h3{letter-spacing:-.015em;}
h4,h5,h6{font-family:"Onest","Segoe UI",Arial,sans-serif;font-weight:600;}
body,p,li,button,input,select,textarea{font-family:"Onest","Segoe UI",Arial,sans-serif;}
h1,.wp-block-site-title,#glavnoe-seychas .wp-block-post-title,#novosti .school435-news-lead .wp-block-post-title,#infinity h2,#quick-links .school435-dark-head h2{font-family:"Bounded",Arial,sans-serif;font-weight:700;line-height:1.05;letter-spacing:-.02em;font-variant-numeric:lining-nums proportional-nums;font-feature-settings:"lnum" 1,"onum" 0;font-optical-sizing:auto;}
#novosti :is(.school435-brief-cell,.school435-important-cell) .wp-block-post-title,
#quick-links h3,
footer :is(h2,h3,h4,h5,h6){font-family:"Onest","Segoe UI",Arial,sans-serif;letter-spacing:-.01em;}
.wp-block-post-date,time{font-variant-numeric:lining-nums tabular-nums;font-feature-settings:"lnum" 1,"onum" 0,"tnum" 1;}
@media (max-width:781px){#glavnoe-seychas .wp-block-post-title{font-size:var(--school435-step-4);}}
/* school435-metro-type-end */

/* school435-spatial-contract-start
   Semantic spacing and alignment contracts. Components choose a role instead
   of inventing padding, gaps or text measures. Display compositions may use
   separate approved grid axes for headings, copy and actions. */
:root{
  --school435-contract-inset-compact-x:var(--wp--preset--spacing--30);
  --school435-contract-inset-compact-y:var(--wp--preset--spacing--20);
  --school435-contract-inset-cell-x:clamp(24px,2.2vw,36px);
  --school435-contract-inset-cell-y:clamp(22px,1.5vw,26px);
  --school435-contract-inset-reading-x:clamp(28px,3.5vw,44px);
  --school435-contract-inset-panel-x:clamp(2rem,4vw,3rem);
  --school435-contract-inset-panel-y:var(--wp--preset--spacing--40);
  --school435-contract-inset-display-x:clamp(32px,5vw,64px);
  --school435-contract-inset-display-y:var(--wp--preset--spacing--60);

  --school435-contract-stack-tight:var(--wp--preset--spacing--20);
  --school435-contract-stack-normal:var(--wp--preset--spacing--30);
  --school435-contract-stack-loose:var(--wp--preset--spacing--40);
  --school435-contract-stack-section:var(--wp--preset--spacing--50);

  --school435-contract-measure-reading:var(--wp--style--global--content-size);
  --school435-contract-measure-lead:58rem;
  --school435-contract-measure-display:74rem;
  --school435-contract-shift-subtle:var(--wp--preset--spacing--30);
  --school435-contract-shift-strong:var(--wp--preset--spacing--50);
}

:where(.school435-contract){
  box-sizing:border-box;
  padding-block:var(--school435-contract-inset-y,var(--school435-contract-inset-cell-y));
  padding-inline:var(--school435-contract-inset-x,var(--school435-contract-inset-cell-x));
}
:where(.school435-contract-compact){
  --school435-contract-inset-x:var(--school435-contract-inset-compact-x);
  --school435-contract-inset-y:var(--school435-contract-inset-compact-y);
}
:where(.school435-contract-cell){
  --school435-contract-inset-x:var(--school435-contract-inset-cell-x);
  --school435-contract-inset-y:var(--school435-contract-inset-cell-y);
}
:where(.school435-contract-panel){
  --school435-contract-inset-x:var(--school435-contract-inset-panel-x);
  --school435-contract-inset-y:var(--school435-contract-inset-panel-y);
}
:where(.school435-contract-display){
  --school435-contract-inset-x:var(--school435-contract-inset-display-x);
  --school435-contract-inset-y:var(--school435-contract-inset-display-y);
}

:where(.school435-contract-stack){
  display:flex;
  flex-direction:column;
  gap:var(--school435-contract-stack-gap,var(--school435-contract-stack-normal));
}
:where(.school435-contract-stack-tight){--school435-contract-stack-gap:var(--school435-contract-stack-tight)}
:where(.school435-contract-stack-loose){--school435-contract-stack-gap:var(--school435-contract-stack-loose)}
:where(.school435-contract-stack-section){--school435-contract-stack-gap:var(--school435-contract-stack-section)}

:where(.school435-measure-reading){max-width:var(--school435-contract-measure-reading)}
:where(.school435-measure-lead){max-width:var(--school435-contract-measure-lead)}
:where(.school435-measure-display){max-width:var(--school435-contract-measure-display)}

.school435-display-contract{
  --school435-display-heading-start:1;
  --school435-display-heading-end:-1;
  --school435-display-copy-start:1;
  --school435-display-copy-end:9;
  --school435-display-actions-start:1;
  --school435-display-actions-end:9;
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  column-gap:0;
  row-gap:var(--school435-contract-stack-loose);
}
.school435-display-contract>.school435-display-adapter,
.school435-display-adapter-query>.wp-block-post-template,
.school435-display-adapter-query>.wp-block-post-template>li,
.school435-display-query>.wp-block-post-template,
.school435-display-query>.wp-block-post-template>li{
  display:contents;
}
.school435-display-contract>.school435-display-heading,
.school435-display-contract>.school435-display-adapter>.school435-display-heading,
.school435-display-adapter-query>.wp-block-post-template>li>.school435-display-heading,
.school435-display-query>.wp-block-post-template>li>.school435-display-heading{
  grid-column:var(--school435-display-heading-start)/var(--school435-display-heading-end);
}
.school435-display-contract>.school435-display-copy,
.school435-display-contract>.school435-display-adapter>.school435-display-copy,
.school435-display-adapter-query>.wp-block-post-template>li>.school435-display-copy,
.school435-display-query>.wp-block-post-template>li>.school435-display-copy{
  grid-column:var(--school435-display-copy-start)/var(--school435-display-copy-end);
  max-width:var(--school435-contract-measure-lead);
}
.school435-display-contract>.school435-display-actions,
.school435-display-contract>.school435-display-adapter>.school435-display-actions,
.school435-display-adapter-query>.wp-block-post-template>li>.school435-display-actions,
.school435-display-query>.wp-block-post-template>li>.school435-display-actions{
  grid-column:var(--school435-display-actions-start)/var(--school435-display-actions-end);
}
.school435-display-mode-aligned{
  --school435-display-copy-start:1;
  --school435-display-copy-end:9;
  --school435-display-actions-start:1;
  --school435-display-actions-end:9;
}
.school435-display-mode-subtle,
.school435-display-tension-subtle{
  --school435-display-copy-start:2;
  --school435-display-copy-end:10;
  --school435-display-actions-start:2;
  --school435-display-actions-end:10;
}
.school435-display-mode-strong,
.school435-display-tension-strong{
  --school435-display-copy-start:3;
  --school435-display-copy-end:10;
  --school435-display-actions-start:3;
  --school435-display-actions-end:10;
}
@media (max-width:781px){
  .school435-display-contract{
    row-gap:var(--school435-contract-stack-normal);
  }
  .school435-display-contract>.school435-display-heading,
  .school435-display-contract>.school435-display-copy,
  .school435-display-contract>.school435-display-actions,
  .school435-display-contract>.school435-display-adapter>.school435-display-heading,
  .school435-display-contract>.school435-display-adapter>.school435-display-copy,
  .school435-display-contract>.school435-display-adapter>.school435-display-actions,
  .school435-display-adapter-query>.wp-block-post-template>li>.school435-display-heading,
  .school435-display-adapter-query>.wp-block-post-template>li>.school435-display-copy,
  .school435-display-adapter-query>.wp-block-post-template>li>.school435-display-actions,
  .school435-display-query>.wp-block-post-template>li>.school435-display-heading,
  .school435-display-query>.wp-block-post-template>li>.school435-display-copy,
  .school435-display-query>.wp-block-post-template>li>.school435-display-actions{
    grid-column:1/-1;
  }
}
/* school435-spatial-contract-end */


/* school435-layout-primitives-start
   Gutenberg remains the content editor; these theme-owned classes are the
   layout contract. Rows use a twelve-column grid and cells own their surface. */
:root{
  /* Surface system: turquoise carrier + four permitted tile surfaces. */
  --school435-surface-canvas:var(--wp--preset--color--accent-3);
  --school435-surface-tile-blue:var(--wp--preset--color--accent-2);
  --school435-surface-tile-beige:var(--wp--preset--color--base);
  --school435-surface-tile-navy:var(--wp--preset--color--contrast);
  --school435-surface-tile-orange:var(--wp--preset--color--accent-7);
  --school435-ink-on-light:var(--wp--preset--color--contrast);
  --school435-ink-on-turquoise:var(--wp--preset--color--base);
  --school435-ink-on-navy:var(--wp--preset--color--base);
  --school435-ink-on-orange:var(--wp--preset--color--contrast);
  --school435-edge:clamp(30px,5vw,50px);
  --school435-rule-light:var(--wp--preset--color--accent-1);
  --school435-rule-dark:rgba(220,231,229,.72);
  --school435-light-rule-color:var(--school435-rule-light);
  --school435-light-rule-width:var(--school435-rule-strong);
  --school435-dark-rule-color:var(--school435-rule-dark);
  --school435-dark-rule-width:var(--school435-rule-strong);
}

:where(.school435-table-row,.school435-grid){
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:0;
  box-sizing:border-box;
  width:min(calc(100% - 2 * var(--school435-edge)),var(--wp--style--global--wide-size));
  max-width:var(--wp--style--global--wide-size);
  margin-block:0;
  margin-inline:auto;
}

:where(.school435-table-cell,.school435-cell){
  box-sizing:border-box;
  min-width:0;
  margin:0;
}

:where(.school435-stack){
  display:flex;
  flex-direction:column;
  gap:var(--school435-stack-gap,var(--school435-contract-stack-normal));
}

:where(.school435-span-3){grid-column:span 3}
:where(.school435-span-4){grid-column:span 4}
:where(.school435-span-6){grid-column:span 6}
:where(.school435-span-8){grid-column:span 8}
:where(.school435-span-9){grid-column:span 9}
:where(.school435-span-12){grid-column:1/-1}

.wp-block-group.school435-brand-grid{
  display:grid;
  grid-template-columns:var(--school435-edge) repeat(12,minmax(0,1fr)) var(--school435-edge);
  grid-template-rows:repeat(2,minmax(0,1fr));
  gap:var(--school435-rule-strong);
  width:100%;
  max-width:none;
  margin-inline:0;
  background:var(--school435-surface-canvas);
}
@media (min-width:1440px){
  .wp-block-group.school435-brand-grid{
    grid-template-columns:minmax(0,1fr) repeat(12,minmax(0,calc(var(--wp--style--global--wide-size) * .0833333333))) minmax(0,1fr);
  }
}
.wp-block-group.school435-brand-grid>.school435-brand-cell{
  display:grid;
  grid-template-columns:subgrid;
  min-width:0;
  padding:0;
  border:0;
}
.school435-brand-grid>.school435-brand-mark{
  grid-column:5/-1;
  grid-row:1/3;
  overflow:hidden;
}
.school435-brand-grid>.school435-brand-official-cell{
  grid-column:1/5;
  grid-row:1;
}
.school435-brand-grid>.school435-brand-contact-cell{
  grid-column:1/5;
  grid-row:2;
}
.school435-brand-cell-inner-mark{
  grid-column:1/-1;
}
.wp-block-group.school435-brand-grid>.school435-brand-official-cell>.school435-brand-name,
.wp-block-group.school435-brand-grid .school435-brand-official,
.wp-block-group.school435-brand-grid .school435-contact-band{
  grid-column:1/-1;
}
.editor-styles-wrapper .wp-block-group.school435-brand-grid>.school435-brand-contact-cell>.wp-block-html{
  grid-column:1/-1;
  inline-size:100%;
  min-inline-size:0;
}
.editor-styles-wrapper .wp-block-group.school435-brand-grid>.school435-brand-contact-cell>.wp-block-html .school435-contact-band{
  inline-size:100%;
}

nav.school435-nav-box{
  box-sizing:border-box;
  width:min(calc(100% - 2 * var(--school435-edge)),var(--wp--style--global--wide-size));
  max-width:var(--wp--style--global--wide-size);
  margin-block:0;
  margin-inline:auto;
  padding:12px 16px;
  border:0;
}

#glavnoe-seychas{
  padding-inline:0;
  border-bottom:var(--school435-rule-strong) solid var(--school435-rule-light);
}
#glavnoe-seychas .school435-table-row{
  gap:var(--school435-rule-strong);
}
#glavnoe-seychas .school435-hero-grid{
  display:grid;
  grid-template-columns:var(--school435-edge) repeat(12,minmax(0,1fr)) var(--school435-edge);
  gap:var(--school435-rule-strong);
  box-sizing:border-box;
  width:100%;
  max-width:none;
  margin-inline:0;
  padding-inline:var(--school435-rule-strong);
}
#glavnoe-seychas .school435-table-actions{
  grid-column:10/-1;
  grid-row:1;
  display:flex;
  flex-direction:column;
  background:var(--wp--preset--color--base);
  border-right:0;
}
#glavnoe-seychas .school435-table-main{
  grid-column:1/10;
  grid-row:1;
}
@media (min-width:1440px){
  #glavnoe-seychas .school435-hero-grid{
    grid-template-columns:minmax(0,1fr) repeat(12,minmax(0,calc(var(--wp--style--global--wide-size) * .0833333333))) minmax(0,1fr);
  }
}
.school435-action-head{
  display:none;
  margin:0;
}
.school435-action-grid{
  display:grid;
  grid-template-rows:repeat(3,minmax(0,1fr));
  flex:1 1 auto;
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
  gap:0;
}
.school435-action-cell{
  position:relative;
  display:flex;
  align-items:center;
  box-sizing:border-box;
  width:100%;
  max-width:none;
  margin:0;
  padding:var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
  border-top:var(--school435-rule-strong) solid var(--school435-rule-light);
}
.school435-action-cell:first-child{
  border-top:0;
}

#novosti,#infinity,#quick-links,#contacts{
  margin-block-start:0;
  padding-block:0;
  padding-inline:0;
}
#novosti{
  background:var(--school435-surface-canvas);
  color:var(--school435-ink-on-light);
}
#novosti .school435-news-grid{
  display:grid;
  grid-template-columns:var(--school435-edge) repeat(12,minmax(0,1fr)) var(--school435-edge);
  gap:var(--school435-rule-strong);
  box-sizing:border-box;
  width:100%;
  max-width:none;
  margin-top:0;
  margin-inline:0;
  padding-inline:var(--school435-rule-strong);
}
#novosti .school435-news-main{
  grid-column:1/10;
  display:flex;
  flex-direction:column;
  gap:var(--school435-rule-strong);
  background:var(--school435-surface-canvas);
  color:var(--school435-ink-on-light);
  border:0;
}
#novosti .school435-news-lead{
  padding:0;
}
#novosti .school435-news-lead>.wp-block-group{
  margin-block-start:0;
}
#novosti .school435-news-aside{
  grid-column:10/-1;
  display:flex;
  flex-direction:column;
  gap:var(--school435-rule-strong);
  background:var(--school435-surface-canvas);
  color:var(--school435-ink-on-navy);
  border:0;
}
#novosti .school435-news-main :is(h2,h3,h4,p,a,li){
  color:var(--school435-ink-on-light);
}
#novosti .school435-news-aside :is(h2,h3,h4,p,a,li){
  color:var(--school435-ink-on-navy);
}
#novosti .school435-news-main .wp-block-post-date{
  color:var(--wp--preset--color--accent-4);
}
#novosti .school435-news-aside .wp-block-post-date{
  color:var(--wp--preset--color--accent-2);
}
@media (min-width:1440px){
  #novosti .school435-news-grid{
    grid-template-columns:minmax(0,1fr) repeat(12,minmax(0,calc(var(--wp--style--global--wide-size) * .0833333333))) minmax(0,1fr);
  }
}
#novosti>.school435-section-head{
  display:none;
}
#novosti .school435-news-main::before{
  content:"Школьная жизнь";
  display:block;
  padding:var(--school435-gutter) var(--school435-inset-wide) 0;
  color:var(--wp--preset--color--base);
  font-size:var(--school435-step--1);
  font-weight:700;
  letter-spacing:.08em;
  line-height:1.2;
  text-transform:uppercase;
}
#novosti .school435-news-lead .has-accent-3-color{
  font-size:0;
  line-height:0;
}
#novosti .school435-news-lead .has-accent-3-color::after{
  content:"Последняя новость";
  font-size:var(--school435-step--1);
  line-height:1.2;
}

.school435-news-main>.wp-block-query,
.school435-news-main .wp-block-post-template,
.school435-news-aside>.wp-block-query,
.school435-news-aside .wp-block-post-template,
.school435-secondary-grid,
.school435-brief-list,
.school435-important-list{
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
  gap:0;
}
#novosti .school435-secondary-grid,
#novosti .school435-brief-list,
#novosti .school435-important-list{
  gap:var(--school435-rule-strong);
  background:var(--school435-surface-canvas);
}
#novosti .school435-important-list{
  display:grid;
  grid-template-columns:minmax(0,1fr);
}
.school435-secondary-grid>li,
.school435-brief-list>li,
.school435-important-list>li{
  display:flex;
  min-width:0;
  margin:0;
}
.school435-secondary-cell{
  box-sizing:border-box;
  width:100%;
  height:100%;
}
.school435-news-main .school435-secondary-grid>li:nth-child(odd) .school435-secondary-cell{
  border-right:0;
}
#novosti :is(.school435-aside-head,.school435-important-cell){
  background:var(--school435-surface-tile-navy);
  border:0;
}
#novosti .school435-important-cell{
  box-sizing:border-box;
  width:100%;
  max-width:none;
}
.school435-news-aside>p:last-child{
  margin:0;
  margin-top:auto;
  padding:var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
  border-top:var(--school435-rule-strong) solid var(--school435-rule-dark);
}

.school435-tail-row{
  grid-template-columns:repeat(12,minmax(0,1fr));
}
.school435-tail-row>.school435-tail-cell:nth-child(1){grid-column:span 3}
.school435-tail-row>.school435-tail-cell:nth-child(2){grid-column:span 6}
.school435-tail-row>.school435-tail-cell:nth-child(3){grid-column:span 3}
.school435-tail-row>.school435-tail-cell+.school435-tail-cell{
  border-left:var(--school435-rule-strong) solid var(--school435-rule-light);
}

.school435-dark-head{
  box-sizing:border-box;
  width:min(calc(100% - 2 * var(--school435-edge)),var(--wp--style--global--wide-size));
  max-width:var(--wp--style--global--wide-size);
  margin:0 auto;
}
.school435-dark-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.school435-dark-grid>.school435-dark-cell{
  border-top:var(--school435-rule-fine) solid var(--school435-rule-dark);
}
.school435-dark-grid>.school435-dark-cell+.school435-dark-cell{
  border-left:var(--school435-rule-fine) solid var(--school435-rule-dark);
}
#quick-links .school435-dark-cell :where(p,a){
  color:var(--wp--preset--color--base);
}

.school435-footer-grid{
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:0;
  border-inline:var(--school435-rule-fine) solid var(--school435-rule-dark);
}
.school435-footer-grid>.school435-footer-cell:nth-child(1){grid-column:span 5}
.school435-footer-grid>.school435-footer-cell:nth-child(2){grid-column:span 4}
.school435-footer-grid>.school435-footer-cell:nth-child(3){grid-column:span 3}
.school435-footer-grid>.school435-footer-cell{
  min-width:0;
  border:0;
}
.school435-footer-grid>.school435-footer-cell+.school435-footer-cell{
  border-left:var(--school435-rule-fine) solid var(--school435-rule-dark);
}
.school435-footer-brand{
  justify-content:space-between;
}
.school435-footer-title{
  max-width:9ch;
  margin:0;
  font-size:clamp(2.4rem,4vw,4.5rem);
  line-height:.95;
  letter-spacing:-.035em;
}
.school435-footer-title a,
#contacts a{
  color:inherit;
  text-decoration-line:none;
}
.school435-footer-official,
.school435-footer-heading{
  margin:0;
}
.school435-footer-official{
  max-width:32rem;
  line-height:1.45;
}
.school435-footer-heading{
  font-weight:650;
  line-height:1.2;
}
.school435-footer-contact-list{
  display:block;
  margin:0;
  border-top:var(--school435-rule-fine) solid var(--school435-rule-dark);
}
.school435-footer-contact-list>*{
  margin-block:0;
}
.school435-footer-contact-row{
  box-sizing:border-box;
  display:grid;
  grid-template-columns:4.5rem minmax(0,1fr);
  align-items:start;
  column-gap:var(--school435-contract-stack-normal);
  min-height:4rem;
  margin:0;
  padding-block:var(--school435-contract-stack-tight);
  border-bottom:var(--school435-rule-fine) solid var(--school435-rule-dark);
}
.school435-footer-contact-label{
  color:var(--wp--preset--color--accent-2);
  font-size:var(--school435-step--1);
  font-weight:650;
}
.school435-footer-contact-value{
  min-width:0;
  overflow-wrap:anywhere;
  line-height:1.4;
}
.school435-footer-links{
  padding:0;
}
.school435-footer-links>.school435-footer-heading{
  box-sizing:border-box;
  padding-block:var(--school435-contract-inset-cell-y);
  padding-inline:var(--school435-contract-inset-cell-x);
}
.school435-footer-link-list{
  display:block;
  box-sizing:border-box;
  width:100%;
  margin:0;
  padding:0;
  list-style:none;
  border-top:var(--school435-rule-fine) solid var(--school435-rule-dark);
}
.school435-footer-link-list>li{
  display:block;
  margin:0;
  padding:0;
  list-style:none;
  border-top:var(--school435-rule-fine) solid var(--school435-rule-dark);
}
.school435-footer-link-list>li:first-child{
  border-top:0;
}
.school435-footer-link-list>li>a{
  display:flex;
  align-items:center;
  box-sizing:border-box;
  min-height:4.5rem;
  padding-block:var(--school435-contract-stack-tight);
  padding-inline:var(--school435-contract-inset-cell-x);
  color:var(--wp--preset--color--base);
  font-weight:600;
  background-color:var(--wp--preset--color--contrast);
  transition:background-color .28s cubic-bezier(.2,.7,.2,1);
}
.school435-footer-link-list>li>a:after{
  content:"";
  flex:0 0 auto;
  width:1.35em;
  height:.62em;
  margin-left:1em;
  background-color:var(--wp--preset--color--accent-7);
  -webkit-mask:
    linear-gradient(#000 0 0) left 50% / calc(100% - .12em) 2px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 12'%3E%3Cpath d='M1 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E") right 50% / .36em .62em no-repeat;
  mask:
    linear-gradient(#000 0 0) left 50% / calc(100% - .12em) 2px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 12'%3E%3Cpath d='M1 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E") right 50% / .36em .62em no-repeat;
  transition:width .28s cubic-bezier(.2,.7,.2,1);
}
.school435-footer-meta{
  --school435-contract-inset-x:var(--school435-contract-inset-cell-x);
  box-sizing:border-box;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  column-gap:var(--school435-contract-stack-normal);
  width:min(calc(100% - 2 * var(--school435-edge)),var(--wp--style--global--wide-size));
  max-width:var(--wp--style--global--wide-size);
  margin:0 auto;
  border-top:var(--school435-rule-fine) solid var(--school435-rule-dark);
  border-inline:var(--school435-rule-fine) solid var(--school435-rule-dark);
  border-bottom:var(--school435-rule-fine) solid var(--school435-rule-dark);
}
footer .school435-footer-meta.school435-footer-meta{
  display:grid;
}
.school435-footer-meta p{
  margin:0;
}
.school435-footer-status{
  text-align:right;
}
footer.wp-block-template-part{
  margin-block:0;
  border-top:var(--school435-rule-fine) solid var(--wp--preset--color--accent-2);
}
header .school435-utility-grid a,
header .school435-utility-grid a:hover{
  text-decoration-line:none;
}
@media (hover:hover){
  #contacts a:hover{
    color:var(--wp--preset--color--accent-7);
  }
  .school435-footer-link-list>li>a:hover{
    color:var(--wp--preset--color--base);
    background-color:#102940;
  }
  .school435-footer-link-list>li>a:hover:after{
    width:2.65em;
  }
}
@media (prefers-reduced-motion:reduce){
  .school435-footer-link-list>li>a,
  .school435-footer-link-list>li>a:after{
    transition:none;
  }
}

@media (max-width:781px){
  :where(.school435-table-row,.school435-grid){
    grid-template-columns:minmax(0,1fr);
    width:100%;
    max-width:none;
  }
  :where(.school435-table-row,.school435-grid)>.school435-table-cell{
    grid-column:1;
    grid-row:auto;
    min-width:0;
    width:100%;
  }
  .school435-utility-grid{
    display:none;
  }
  .wp-block-group.school435-brand-grid{
    grid-template-columns:var(--school435-edge) minmax(0,1fr) var(--school435-edge);
    grid-template-rows:auto;
  }
  .school435-front-page{
    --school435-header-inset-right:var(--wp--preset--spacing--40);
  }
  .school435-brand-grid>.school435-brand-mark,
  .school435-brand-grid>.school435-brand-official-cell,
  .school435-brand-grid>.school435-brand-contact-cell{
    grid-column:1/-1;
  }
  .school435-brand-grid>.school435-brand-mark{grid-row:1}
  .school435-brand-grid>.school435-brand-official-cell{grid-row:2}
  .school435-brand-grid>.school435-brand-contact-cell{grid-row:3}
  .wp-block-group.school435-brand-grid .school435-brand-cell-inner-mark,
  .wp-block-group.school435-brand-grid .school435-brand-official,
  .wp-block-group.school435-brand-grid .school435-contact-band{
    grid-column:2;
  }
  nav.school435-nav-box{
    width:100%;
    max-width:none;
  }
  #glavnoe-seychas .school435-table-actions{
    grid-column:1/-1;
    border-right:0;
    border-bottom:0;
  }
  #glavnoe-seychas .school435-table-main{
    grid-column:1/-1;
    grid-row:2;
  }
  #novosti .school435-news-aside{
    grid-column:1/-1;
    border-left:0;
  }
  #novosti .school435-news-main{
    grid-column:1/-1;
  }
  #novosti .school435-news-grid{
    grid-template-columns:minmax(0,1fr);
  }
  .school435-news-main .school435-secondary-grid>li:nth-child(odd) .school435-secondary-cell{
    border-right:0;
  }
  .school435-tail-row>.school435-tail-cell+.school435-tail-cell,
  .school435-dark-grid>.school435-dark-cell+.school435-dark-cell,
  .school435-footer-grid>.school435-footer-cell+.school435-footer-cell{
    border-left:0;
    border-top:var(--school435-rule-fine) solid var(--school435-rule-dark);
  }
  .school435-tail-row>.school435-tail-cell+.school435-tail-cell{
    border-top-width:var(--school435-rule-strong);
    border-top-color:var(--school435-rule-light);
  }
  .school435-dark-grid{
    grid-template-columns:minmax(0,1fr);
  }
  .school435-footer-meta{
    grid-template-columns:minmax(0,1fr);
    row-gap:var(--school435-contract-stack-tight);
    width:100%;
    max-width:none;
    border-inline:0;
  }
  .school435-footer-grid{
    border-inline:0;
  }
  .school435-footer-brand{
    justify-content:flex-start;
  }
  .school435-footer-status{
    text-align:left;
  }
}
/* school435-layout-primitives-end */

/* school435-link-system-start */
.entry-content a:not(.wp-element-button){
  text-decoration-skip-ink:auto;
  text-decoration-thickness:1px;
  text-underline-offset:.16em;
  text-decoration-color:currentColor;
  text-decoration-color:color-mix(in srgb,currentColor 45%,transparent);
}
.entry-content .wp-block-post-title a{
  text-decoration-line:none;
}
.entry-content :is(
  #glavnoe-seychas .wp-block-post-excerpt__more-link,
  #novosti .wp-block-post-excerpt__more-link,
  #novosti .school435-all-news-link a,
  #novosti .school435-news-aside>p:last-child a,
  #quick-links h3 a,
  #glavnoe-seychas .school435-action-cell a,
  #infinity .school435-tail-cell:last-child a
){
  display:inline-block;
  font-weight:650;
  text-decoration-line:none;
}
#glavnoe-seychas .wp-block-post-excerpt__more-link:after,
#novosti :is(
  .wp-block-post-excerpt__more-link,
  .school435-all-news-link a,
  .school435-news-aside>p:last-child a
):after,
#quick-links h3 a:after,
#glavnoe-seychas .school435-action-cell a strong:after{
  content:"";
  display:inline-block;
  width:1.35em;
  height:.62em;
  margin-left:1em;
  vertical-align:-.02em;
  background-color:currentColor;
  -webkit-mask:
    linear-gradient(#000 0 0) left 50% / calc(100% - .12em) 2px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 12'%3E%3Cpath d='M1 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E") right 50% / .36em .62em no-repeat;
  mask:
    linear-gradient(#000 0 0) left 50% / calc(100% - .12em) 2px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 12'%3E%3Cpath d='M1 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E") right 50% / .36em .62em no-repeat;
  text-decoration:none;
  transition:width .28s cubic-bezier(.2,.7,.2,1);
}
#novosti :is(
  .school435-all-news-link,
  .school435-news-aside>p:last-child
) a{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  width:100%;
  gap:.38em;
}
#novosti :is(
  .school435-all-news-link,
  .school435-news-aside>p:last-child
) a:after{
  flex:none;
  width:calc(100% - .8rem);
  min-width:0;
  margin:0;
  opacity:.7;
  transition:width .28s cubic-bezier(.2,.7,.2,1);
}
#glavnoe-seychas .school435-action-cell a strong{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  width:100%;
  gap:.35em;
  padding-right:0;
  text-decoration-line:none;
}
#glavnoe-seychas .school435-action-cell a{
  display:block;
  width:100%;
}
#quick-links h3 a{
  white-space:nowrap;
}
#glavnoe-seychas .school435-action-cell a strong:after{
  position:static;
  flex:none;
  width:calc(100% - .8rem);
  min-width:0;
  margin:0;
  opacity:.7;
}
a:focus-visible{
  outline:2px solid currentColor;
  outline-offset:4px;
  text-decoration-line:none;
}
.wp-block-post-featured-image a:focus-visible{
  outline-offset:-4px;
}
@media (hover:hover){
  #glavnoe-seychas .wp-block-post-excerpt__more-link:hover:after,
  #novosti .wp-block-post-excerpt__more-link:hover:after,
  #quick-links h3 a:hover:after{
    width:2.65em;
  }
  #glavnoe-seychas .school435-action-cell:is(:hover,:focus-within) a strong:after{
    width:100%;
  }
  #novosti :is(
    .school435-all-news-link,
    .school435-news-aside>p:last-child
  ) a:hover:after{
    width:100%;
  }
}
@media (prefers-reduced-motion:reduce){
  .entry-content a,
  .entry-content a:after,
  #glavnoe-seychas .school435-action-cell a strong{
    transition:none;
  }
  .entry-content a:hover{
    transform:none;
  }
}
/* school435-link-system-end */

/* school435-metro-tiles-start */
#novosti :is(.school435-news-lead,.school435-brief-cell){
  --school435-tile-base:var(--school435-surface-tile-blue);
  --school435-tile-hover:#cadbd7;
  --school435-tile-active:#bdd1cc;
}
#novosti .school435-secondary-cell{
  --school435-tile-base:var(--school435-surface-tile-beige);
  --school435-tile-hover:#fffaf1;
  --school435-tile-active:#fffdf8;
}
#novosti .school435-important-cell,
#quick-links .school435-dark-cell{
  --school435-tile-base:var(--school435-surface-tile-navy);
  --school435-tile-hover:#102940;
  --school435-tile-active:#0b2134;
}
#glavnoe-seychas .school435-action-cell{
  position:relative;
  isolation:isolate;
  cursor:pointer;
  background-color:var(--school435-surface-tile-beige);
  transition:background-color .28s cubic-bezier(.2,.7,.2,1);
}
#glavnoe-seychas .school435-action-cell a{
  position:static;
}
#glavnoe-seychas .school435-action-cell a:before{
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
}
#novosti :is(.school435-news-lead,.school435-secondary-cell,.school435-brief-cell,.school435-important-cell),
#quick-links .school435-dark-cell{
  position:relative;
  isolation:isolate;
  cursor:pointer;
  background-color:var(--school435-tile-base);
  transition:background-color .28s cubic-bezier(.2,.7,.2,1);
}
#novosti :is(.school435-news-lead,.school435-secondary-cell,.school435-brief-cell,.school435-important-cell) .wp-block-post-title,
#novosti :is(.school435-news-lead,.school435-secondary-cell,.school435-brief-cell,.school435-important-cell) .wp-block-post-title a,
#quick-links .school435-dark-cell h3,
#quick-links .school435-dark-cell h3 a{
  position:static;
}
#novosti :is(.school435-news-lead,.school435-secondary-cell,.school435-brief-cell,.school435-important-cell) .wp-block-post-title a:before,
#quick-links .school435-dark-cell h3 a:before{
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
}
#novosti :is(.school435-news-lead,.school435-secondary-cell) .wp-block-post-featured-image{
  position:relative;
  z-index:3;
  overflow:hidden;
}
#novosti :is(.school435-news-lead,.school435-secondary-cell) .wp-block-post-featured-image img{
  transition:transform .28s cubic-bezier(.2,.7,.2,1),filter .28s cubic-bezier(.2,.7,.2,1);
}
#novosti :is(.school435-news-lead,.school435-secondary-cell,.school435-brief-cell,.school435-important-cell) .wp-block-post-date{
  position:relative;
  z-index:1;
  pointer-events:none;
}
#novosti :is(.school435-news-lead,.school435-secondary-cell,.school435-brief-cell,.school435-important-cell) .wp-block-post-excerpt,
#quick-links .school435-dark-cell p{
  position:relative;
  pointer-events:none;
}
#novosti .wp-block-post-excerpt__more-text{
  display:none;
}
@media (hover:hover){
  #novosti :is(.school435-news-lead,.school435-secondary-cell,.school435-brief-cell,.school435-important-cell):is(:hover,:focus-within),
  #quick-links .school435-dark-cell:is(:hover,:focus-within){
    background-color:var(--school435-tile-hover);
  }
  #glavnoe-seychas .school435-action-cell:is(:hover,:focus-within){
    background-color:#fffaf1;
  }
  #novosti :is(.school435-news-lead,.school435-secondary-cell):is(:hover,:focus-within) .wp-block-post-featured-image img{
    transform:scale(1.018);
    filter:saturate(1.04) contrast(1.02);
  }
  #quick-links .school435-dark-cell:is(:hover,:focus-within) h3 a:after{
    width:2.65em;
  }
  #novosti :is(.school435-news-lead,.school435-secondary-cell,.school435-brief-cell,.school435-important-cell):active,
  #quick-links .school435-dark-cell:active{
    background-color:var(--school435-tile-active);
  }
  #glavnoe-seychas .school435-action-cell:active{
    background-color:#fffdf8;
  }
}
@media (prefers-reduced-motion:reduce){
  #novosti :is(.school435-news-lead,.school435-secondary-cell,.school435-brief-cell,.school435-important-cell),
  #quick-links .school435-dark-cell,
  #glavnoe-seychas .school435-action-cell,
  #novosti :is(.school435-news-lead,.school435-secondary-cell) .wp-block-post-featured-image img{
    transition:none;
  }
  #novosti :is(.school435-news-lead,.school435-secondary-cell):is(:hover,:focus-within) .wp-block-post-featured-image img{
    transform:none;
  }
}
/* school435-metro-tiles-end */

/* Portable-theme fixes: explicit subtitle face and safe full-width sections. */
.school435-brand-official-cell p.school435-brand-subtitle {
	font-family: "Source Serif 4", Georgia, serif;
	font-weight: 400;
}
html, body {
	overflow-x: clip;
}
.school435-dark-head {
	box-sizing: border-box;
}
.school435-brand-official p{
  margin:0;
}
header .school435-brand-official p.school435-brand-name{
  max-width:none;
  margin:0;
  color:var(--wp--preset--color--base);
  font-family:"Onest","Segoe UI",Arial,sans-serif;
  font-size:var(--school435-step-2);
  font-weight:600;
  line-height:1.15;
  text-align:left;
}
.school435-contact-band{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-content:center;
  column-gap:var(--wp--preset--spacing--30);
  row-gap:var(--wp--preset--spacing--20);
  margin:0;
  border:0;
}
.school435-contact-band p.school435-contact-line{
  box-sizing:border-box;
  margin:0;
  font-variant-numeric:lining-nums tabular-nums;
}
/* Компонентный селектор фиксирует компактный кегль контактной ячейки. */
.school435-brand-contact-cell p.school435-contact-line{
  color:var(--wp--preset--color--base);
  font-size:var(--school435-step--1);
  line-height:1.4;
}
.school435-contact-band p.school435-contact-line:first-child{
  grid-column:1/-1;
}
.school435-contact-band p.school435-contact-line:nth-child(2){
  grid-column:1;
}
.school435-contact-band p.school435-contact-line:nth-child(3){
  grid-column:1;
  text-align:right;
}
.school435-contact-line a{
  color:inherit;
  text-decoration:none;
}
@media (hover:hover){
  .school435-contact-line a:hover{
    color:var(--wp--preset--color--accent-7);
  }
}
@media (prefers-reduced-motion:reduce){
  .school435-contact-line a{
    transition:none;
  }
}
@media (min-width:1580px){
  .school435-contact-band{
    grid-template-columns:minmax(0,1fr) auto;
  }
  .school435-contact-band p.school435-contact-line:nth-child(2){
    grid-column:1;
  }
  .school435-contact-band p.school435-contact-line:nth-child(3){
    grid-column:2;
  }
}
@media (max-width:781px){
  .school435-contact-band{
    grid-template-columns:minmax(0,1fr);
  }
  .school435-contact-band p.school435-contact-line:nth-child(n){
    grid-column:1;
    text-align:left;
  }
}
/* school435-header-contacts-end */

/* school435-page-content-flush-start
   Обёртки контента прижаты к соседям: flow-раскладка вешает block-gap
   на main (не первый ребёнок wp-site-blocks) и на post-content
   (не первый ребёнок main). */
main.wp-block-group,
main>.wp-block-post-content,
.wp-site-blocks>footer.wp-block-template-part{
  margin-top:0;
  margin-bottom:0;
}

/* The Site Editor wraps top-level template parts in editor-only block shells.
   Keep its root rhythm identical to .wp-site-blocks without special-casing
   the header, main content, or footer. */
.editor-styles-wrapper .block-editor-block-list__layout.is-root-container>
  :where(.wp-block-template-part,main.wp-block-group){
  margin-block:0;
}
/* school435-page-content-flush-end */

/* Surface contract: background and ink are one choice, including nested WP blocks. */
:root{--school435-ink-muted:var(--wp--preset--color--accent-4)}
.school435-surface--beige,.has-base-background-color{
  background-color:var(--school435-surface-tile-beige);
  color:var(--school435-ink-on-light);
  --school435-ink-muted:var(--wp--preset--color--accent-4);
}
.school435-surface--blue,.has-accent-2-background-color{
  background-color:var(--school435-surface-tile-blue);
  color:var(--school435-ink-on-light);
  --school435-ink-muted:var(--wp--preset--color--accent-4);
}
.school435-surface--navy,.has-contrast-background-color{
  background-color:var(--school435-surface-tile-navy);
  color:var(--school435-ink-on-navy);
  --school435-ink-muted:var(--wp--preset--color--accent-6);
}
.school435-surface--orange,.has-accent-7-background-color{
  background-color:var(--school435-surface-tile-orange);
  color:var(--school435-ink-on-orange);
  --school435-ink-muted:var(--school435-ink-on-orange);
}
.school435-text-muted{color:var(--school435-ink-muted)}
