/*
Theme Name: Damu School
Description: Собственная двухъязычная тема школы Даму 2022
Version: 1.1.0
Requires at least: 6.5
Requires PHP: 8.3
Text Domain: damu-school
*/
@import url("assets/fonts/fonts.css");
.entry-content .wp-block-gallery>figure.wp-block-image:last-of-type:nth-of-type(odd){grid-column:1/-1}
.entry-content .wp-block-gallery>figcaption.blocks-gallery-caption{grid-column:1/-1;width:100%}
:root{--ink:#143b44;--green:#0a6b59;--gold:#edbf54;--pale:#f4f8f5;--muted:#586b6e;--white:#fff;--line:#d9e4df;--body:"Noto Sans",Arial,sans-serif;--display:"Noto Serif",Georgia,serif;--container:1280px}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:120px}body{margin:0;color:var(--ink);background:var(--white);font-family:var(--body);font-size:17px;line-height:1.75;-webkit-font-smoothing:antialiased}body.viewer-open{overflow:hidden}img{max-width:100%;height:auto;vertical-align:middle}figure{margin:0}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}a{color:var(--green);text-underline-offset:.22em;text-decoration-thickness:1px}a:hover{text-decoration-thickness:2px}button{cursor:pointer}h1,h2,h3,h4,h5,h6{font-weight:600;line-height:1.2;text-wrap:balance;margin:0 0 .65em}h1,h2{font-family:var(--display)}h1{font-size:clamp(2.35rem,4.6vw,4.65rem);letter-spacing:-.04em}h2{font-size:clamp(1.9rem,3.25vw,3.1rem);letter-spacing:-.03em}h3{font-size:1.5rem;letter-spacing:-.025em}p{margin:0 0 1.2em}ul,ol{padding-left:1.4em}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--green);outline-offset:5px}button:disabled{cursor:default}[hidden]{display:none!important}.container{width:min(var(--container),calc(100% - 112px));margin-inline:auto}.screen-reader-text{position:absolute!important;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}.skip-link{position:fixed;z-index:1000;left:16px;top:-100px;padding:12px 20px;background:var(--ink);color:white}.skip-link:focus{top:12px}#main-content:focus{outline:0}.site-header{position:sticky;top:0;z-index:50;background:#fff;border-bottom:1px solid var(--line)}.header-inner{display:grid;grid-template-columns:auto 1fr auto;gap:28px;align-items:center;min-height:106px}.brand{display:flex;gap:12px;align-items:center;color:var(--ink);text-decoration:none;flex-shrink:0}.brand-mark{width:64px;height:64px;object-fit:contain}.brand-words{display:flex;flex-direction:column;gap:1px}.brand-name{font-size:27px;font-weight:750;letter-spacing:.015em;line-height:1.15;white-space:nowrap}.brand-name>span{font-size:14px;letter-spacing:.055em;vertical-align:baseline}.brand-caption{font-size:11px;font-weight:500;color:var(--muted);line-height:1.3;white-space:nowrap}.primary-navigation ul,.footer-navigation ul{list-style:none;margin:0;padding:0}.primary-navigation ul{display:flex;align-items:center;justify-content:flex-end;gap:21px}.primary-navigation a{display:inline-block;padding:13px 0;font-size:13px;line-height:1.45;font-weight:600;color:var(--ink);text-decoration:none;white-space:nowrap;border-bottom:2px solid transparent}.primary-navigation a:hover,.primary-navigation a[aria-current=page]{border-bottom-color:var(--green)}.header-tools{display:flex;gap:18px;align-items:center}.language-switch{display:flex;gap:10px;font-size:12px;font-weight:700;letter-spacing:.025em;white-space:nowrap}.language-switch a,.language-switch span{padding:8px 0;text-decoration:none;color:var(--muted)}.language-switch span[aria-current]{color:var(--ink);box-shadow:0 2px 0 var(--gold)}.language-switch a:hover{color:var(--green);box-shadow:0 2px 0 var(--green)}.menu-toggle{display:none;width:44px;height:44px;border:1px solid var(--line);background:#fff;align-items:center;justify-content:center;flex-direction:column;gap:5px;padding:11px}.menu-toggle span{height:2px;width:20px;background:var(--ink);display:block}.home-hero{padding:64px 0 74px;background:var(--pale)}.hero-layout{display:grid;grid-template-columns:1fr 1.05fr;gap:64px;align-items:center}.hero-copy{padding:22px 0}.eyebrow{display:flex;align-items:center;gap:12px;font-size:13px;font-weight:700;line-height:1.4;letter-spacing:.13em;margin-bottom:28px}.eyebrow>span{width:20px;height:7px;background:var(--gold);display:block;transform:skewY(-15deg)}.hero-copy h1{margin-bottom:25px;font-size:clamp(2.35rem,4vw,4.15rem);line-height:1.16}.hero-lead{font-size:19px;line-height:1.75;color:var(--muted);margin-bottom:30px;max-width:34em}.button{display:inline-flex;align-items:center;justify-content:space-between;gap:28px;padding:16px 24px;font-size:14px;font-weight:600;text-decoration:none;line-height:1.5;border:1px solid transparent}.button-primary{background:var(--green);color:#fff}.button-primary:hover{background:var(--ink);text-decoration:none}.button>span{font-size:24px;line-height:1}.hero-media{position:relative;align-self:stretch;min-height:420px}.hero-media>img{width:100%;height:100%;max-height:660px;min-height:420px;object-fit:cover}.hero-media figcaption{font-size:12px;line-height:1.5;margin-top:10px;color:var(--muted)}.hero-media:has(figcaption)>img{height:calc(100% - 30px)}.without-photo .hero-layout{grid-template-columns:1fr}.without-photo .hero-copy{max-width:900px}.home-introduction{padding:78px 0 82px;border-bottom:1px solid var(--line)}.introduction-layout{display:grid;grid-template-columns:1fr 2.3fr;gap:64px}.section-kicker{font-size:13px;line-height:1.4;font-weight:700;text-transform:uppercase;letter-spacing:.1em;margin:7px 0 0;color:var(--green)}.introduction-content{font-size:22px;line-height:1.65}.introduction-content>*:last-child{margin-bottom:0}.home-sections{padding:86px 0 108px}.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:45px;margin-bottom:48px}.section-heading h2{max-width:660px;margin:0}.section-heading>p{max-width:330px;margin:0;color:var(--muted);font-size:15px;line-height:1.75}.section-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:44px 36px}.section-card{display:block;min-width:0;text-decoration:none;color:var(--ink);border-bottom:1px solid var(--line);padding-bottom:28px}.section-card:last-child:nth-child(odd){grid-column:1/-1;display:grid;grid-template-columns:1.35fr 1fr;gap:44px;align-items:center}.section-card:last-child:nth-child(odd).without-image{display:block}.section-card-media{overflow:hidden;background:var(--pale);margin-bottom:25px}.section-card-media img{display:block;width:100%;height:auto;transition:filter .2s ease}.section-card:hover .section-card-media img{filter:brightness(.96)}.section-card:last-child:nth-child(odd) .section-card-media{margin-bottom:0}.section-card-copy h3{font-size:26px;margin:0 0 13px;line-height:1.3}.section-card-copy p{color:var(--muted);font-size:16px;line-height:1.75;margin:0 0 22px;max-width:48em}.section-card-more{display:inline-flex;align-items:center;gap:24px;font-size:13px;font-weight:700;color:var(--green)}.section-card-more>span{font-size:22px}.section-card:hover .section-card-more{text-decoration:underline;text-underline-offset:5px}.section-card.without-image{padding:32px;background:var(--pale);border-bottom:3px solid var(--gold)}.page-heading{padding:39px 0 54px;background:var(--pale);border-bottom:1px solid var(--line)}.breadcrumbs{display:flex;flex-wrap:wrap;align-items:center;gap:12px;font-size:12px;color:var(--muted);margin-bottom:35px}.breadcrumbs a{color:var(--muted)}.page-heading h1{max-width:1050px;margin-bottom:0}.page-lead{font-size:19px;max-width:860px;line-height:1.75;color:var(--muted);margin:24px 0 0}.page-body{padding-top:62px;padding-bottom:100px}.entry-content{overflow-wrap:anywhere}.entry-content>*{margin-top:0;margin-bottom:1.5em}.entry-content>p,.entry-content>ul,.entry-content>ol{max-width:940px}.entry-content p{line-height:1.8}.entry-content h2{margin-top:1.6em;margin-bottom:.75em;max-width:1050px}.entry-content h2:first-child,.entry-content h3:first-child{margin-top:0}.entry-content h3{margin-top:1.6em;margin-bottom:.7em}.entry-content>*:last-child{margin-bottom:0}.entry-content .wp-block-image{margin-bottom:32px;max-width:100%}.entry-content .wp-block-image img{width:auto;max-width:100%;height:auto;object-fit:contain;border-radius:0}.entry-content .wp-block-image.alignwide img,.entry-content .wp-block-image.size-full img{width:100%}.entry-content figcaption{font-size:14px;color:var(--muted);line-height:1.6;margin-top:12px;text-align:left}.entry-content .wp-block-gallery.has-nested-images,.entry-content .wp-block-gallery,.entry-content .blocks-gallery-grid,.entry-content .gallery{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:start;gap:36px!important;width:100%;margin:36px 0 48px;padding:0}.entry-content .wp-block-gallery>.wp-block-image,.entry-content .blocks-gallery-grid>.blocks-gallery-item,.entry-content .gallery>.gallery-item{display:block!important;width:100%!important;margin:0!important;min-width:0;flex:unset!important}.entry-content .wp-block-gallery>.wp-block-image:last-child:nth-child(odd),.entry-content .blocks-gallery-grid>.blocks-gallery-item:last-child:nth-child(odd),.entry-content .gallery>.gallery-item:last-child:nth-child(odd){grid-column:1/-1}.entry-content .wp-block-gallery img,.entry-content .gallery img{width:100%!important;height:auto!important;object-fit:contain!important;max-width:100%}.entry-content .wp-block-gallery figure figcaption{position:static!important;background:transparent!important;color:var(--muted)!important;padding:0!important;font-size:14px!important;max-height:none!important;overflow:visible!important;line-height:1.6!important;margin-top:12px!important;width:auto!important}.entry-content .wp-block-columns{gap:36px;align-items:start!important;margin:40px 0}.entry-content .wp-block-column{min-width:0}.entry-content .wp-block-column>:last-child{margin-bottom:0}.entry-content .wp-block-column img{object-fit:contain!important;height:auto!important}.entry-content .wp-block-file{display:flex;align-items:center;gap:24px;flex-wrap:wrap;padding:24px 28px;background:var(--pale);border-left:4px solid var(--gold);font-size:16px}.entry-content .wp-block-file object{width:100%;height:75vh;order:2}.entry-content .wp-block-file__button{padding:9px 18px;border-radius:0;background:var(--green);color:#fff;text-decoration:none;font-size:13px}.entry-content .wp-block-table{overflow-x:auto}.entry-content table{border-collapse:collapse;width:100%;font-size:15px}.entry-content th,.entry-content td{border:1px solid var(--line);padding:12px 16px;text-align:left;vertical-align:top}.entry-content th{background:var(--pale)}.entry-content blockquote{margin:32px 0;padding:8px 0 8px 28px;border-left:4px solid var(--gold);font-size:22px;max-width:940px}.entry-content .wp-block-separator{border:0;border-top:1px solid var(--line);margin:48px 0}.gallery-trigger{display:block;border:0;background:transparent;padding:0;width:100%;line-height:0;text-align:inherit;color:inherit;cursor:zoom-in}.image-viewer-trigger{cursor:zoom-in}.image-viewer-trigger:hover img{filter:brightness(.97)}.page-links{display:flex;gap:15px;margin-top:40px}.archive-page,.not-found{padding-block:90px 130px;min-height:55vh}.archive-page h1,.not-found h1{max-width:900px}.not-found>p:not(.eyebrow){max-width:660px;color:var(--muted)}.archive-list article{border-bottom:1px solid var(--line);padding:28px 0}.site-footer{background:var(--ink);color:#fff;padding-top:62px}.footer-main{display:grid;grid-template-columns:1.1fr 1fr;gap:100px;padding-bottom:54px}.footer-wordmark{font-size:34px;line-height:1.25;font-weight:700;letter-spacing:.025em;color:#fff;text-decoration:none}.footer-wordmark>span{font-size:17px}.footer-brand>p{font-size:15px;line-height:1.7;max-width:480px;margin:16px 0 0;color:#e0eae6}.footer-brand>p.footer-contact{margin-top:9px}.footer-brand a:not(.footer-wordmark){color:#e0eae6}.footer-navigation ul{display:grid;grid-template-columns:1fr 1fr;gap:12px 26px;padding-top:8px}.footer-navigation a{font-size:14px;line-height:1.6;color:#fff;text-decoration:none}.footer-navigation a:hover{text-decoration:underline}.footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-block:22px;border-top:1px solid #ffffff2e;font-size:12px;color:#e0eae6}.footer-bottom a{color:#e0eae6;text-decoration:none}.footer-bottom a>span{margin-left:10px}.image-viewer{width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:64px 78px 52px;border:0;background:#10252af2;color:#fff;overflow:hidden}.image-viewer[open]{display:grid;grid-template-columns:48px minmax(0,1fr) 48px;grid-template-rows:minmax(0,1fr) auto;gap:18px;align-items:center}.image-viewer::backdrop{background:#10252af2}.image-viewer figure{grid-column:2;grid-row:1;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:15px;height:100%;min-height:0;margin:0}.image-viewer figure img{max-width:100%;max-height:calc(100% - 70px);width:auto;height:auto;object-fit:contain}.image-viewer figcaption{max-width:900px;font-size:14px;line-height:1.6;text-align:center;color:#fff;max-height:65px;overflow:auto}.image-viewer button{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border:1px solid #ffffff60;background:transparent;color:#fff;border-radius:0;font-size:28px;line-height:1}.image-viewer button:hover{background:#ffffff20}.image-viewer button:focus-visible{outline-color:var(--gold)}.viewer-close{position:absolute;right:27px;top:20px}.viewer-previous{grid-column:1;grid-row:1}.viewer-next{grid-column:3;grid-row:1}.viewer-count{grid-column:2;grid-row:2;text-align:center;margin:0;color:#fff;font-size:13px}.entry-content .has-deep-teal-color{color:var(--ink)}.entry-content .has-green-color{color:var(--green)}.entry-content .has-gold-color{color:var(--gold)}.entry-content .has-pale-background-color{background:var(--pale)}
.section-card:last-child:nth-child(odd){display:block}.section-card:last-child:nth-child(odd) .section-card-media{margin-bottom:25px}.site-footer a:focus-visible{outline-color:var(--gold)}
@media(min-width:1101px){.admin-bar .site-header{top:32px}}
@media(max-width:1350px) and (min-width:1101px){.container{width:calc(100% - 72px)}.header-inner{gap:20px}.primary-navigation ul{gap:15px}.primary-navigation a{font-size:12px}.brand-mark{width:52px;height:52px}.brand-name{font-size:24px}.brand-caption{font-size:10px}.hero-layout{gap:48px}}
@media(max-width:1100px){.container{width:calc(100% - 64px)}.header-inner{grid-template-columns:1fr auto;min-height:91px;gap:0 20px}.header-tools{grid-column:2;grid-row:1}.primary-navigation{grid-column:1/-1;grid-row:2;width:100%;border-top:1px solid var(--line);padding:14px 0 20px}.primary-navigation ul{display:grid;grid-template-columns:1fr 1fr;gap:0 32px;justify-content:start}.primary-navigation a{font-size:15px;padding:13px 0;white-space:normal}.js .menu-toggle{display:inline-flex}.brand-mark{width:55px;height:55px}.brand-caption{font-size:10px}.brand-name{font-size:25px}.hero-layout{gap:36px;grid-template-columns:1fr 1fr}.hero-copy h1{font-size:clamp(2.3rem,4.3vw,3.5rem)}.hero-media,.hero-media>img{min-height:410px}.hero-lead{font-size:17px}.introduction-layout{gap:36px;grid-template-columns:1fr 2.8fr}.introduction-content{font-size:20px}.section-heading{align-items:flex-start;gap:30px}.section-heading h2{max-width:580px}.section-heading>p{max-width:280px}.section-grid{gap:36px 28px}.footer-main{gap:55px}.admin-bar .site-header{top:32px}}
@media(max-width:782px){.admin-bar .site-header{top:46px}.home-hero{padding:40px 0 48px}.hero-layout{grid-template-columns:1fr;gap:32px}.hero-copy{padding:0}.hero-copy h1{max-width:680px;font-size:clamp(2.35rem,6.2vw,3.75rem)}.eyebrow{margin-bottom:22px}.hero-lead{max-width:42em}.hero-media{min-height:0;aspect-ratio:auto}.hero-media>img,.hero-media:has(figcaption)>img{min-height:0;max-height:550px;aspect-ratio:auto;width:100%;height:auto;object-fit:contain}.home-introduction{padding:48px 0}.introduction-layout{grid-template-columns:1fr;gap:24px}.introduction-content{font-size:20px}.home-sections{padding:54px 0 70px}.section-heading{display:block;margin-bottom:32px}.section-heading>p{max-width:600px;margin-top:20px}.section-grid{grid-template-columns:1fr;gap:32px}.section-card:last-child:nth-child(odd){grid-column:auto;display:block}.section-card:last-child:nth-child(odd) .section-card-media{margin-bottom:22px}.section-card-copy h3{font-size:24px}.page-heading{padding-top:28px;padding-bottom:38px}.breadcrumbs{margin-bottom:26px}.page-heading h1{font-size:clamp(2.2rem,5.8vw,3.5rem)}.page-lead{font-size:18px;margin-top:20px}.page-body{padding-top:40px;padding-bottom:65px}.entry-content .wp-block-columns{display:flex;flex-direction:column;gap:32px}.entry-content .wp-block-column{flex-basis:100%!important;width:100%}.entry-content .wp-block-gallery.has-nested-images,.entry-content .wp-block-gallery,.entry-content .blocks-gallery-grid,.entry-content .gallery{grid-template-columns:1fr!important;gap:30px!important;margin:28px 0 36px}.entry-content .wp-block-gallery>.wp-block-image:last-child:nth-child(odd),.entry-content .blocks-gallery-grid>.blocks-gallery-item:last-child:nth-child(odd),.entry-content .gallery>.gallery-item:last-child:nth-child(odd){grid-column:auto}.footer-main{grid-template-columns:1fr;gap:32px;padding-bottom:36px}.footer-navigation ul{gap:14px 25px}.site-footer{padding-top:46px}.image-viewer{padding:74px 14px 24px}.image-viewer[open]{grid-template-columns:40px minmax(0,1fr) 40px;grid-template-rows:minmax(0,1fr) 44px;gap:10px}.image-viewer figure{grid-column:1/-1;grid-row:1}.image-viewer figure img{max-height:calc(100% - 80px)}.image-viewer button{width:40px;height:40px}.viewer-previous{grid-row:2;grid-column:1}.viewer-next{grid-row:2;grid-column:3}.viewer-count{grid-row:2;grid-column:2}.viewer-close{top:20px;right:17px}}
@media(max-width:480px){body{font-size:16px}.container{width:calc(100% - 36px)}.header-inner{min-height:82px;gap:0 13px}.brand{gap:8px}.brand-mark{width:43px;height:43px}.brand-name{font-size:22px}.brand-name>span{font-size:11px}.brand-caption{font-size:8px;letter-spacing:0}.language-switch{font-size:11px;gap:8px}.header-tools{gap:11px}.menu-toggle{width:38px;height:38px;padding:8px}.primary-navigation ul{grid-template-columns:1fr;gap:0}.primary-navigation a{display:block;padding-block:12px}.home-hero{padding-top:34px}.hero-copy h1{font-size:2.25rem;letter-spacing:-.035em}.hero-lead{font-size:17px}.button{padding:15px 19px;font-size:13px;gap:20px}.introduction-content{font-size:19px}.section-heading h2{font-size:2rem}.section-card-copy h3{font-size:23px}.section-card.without-image{padding:25px}.entry-content .wp-block-file{padding:21px 19px;gap:17px}.entry-content blockquote{font-size:20px;padding-left:20px}.footer-navigation ul{grid-template-columns:1fr}.footer-bottom{align-items:flex-start;font-size:11px}.footer-bottom a{max-width:160px;text-align:right}.archive-page,.not-found{padding-block:58px 85px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}

/* The restored school seal and a single family of labelled line icons. */
:root{--emblem-blue:#123eaa}
.damu-icon{display:inline-block;width:24px;height:24px;flex:0 0 auto;vertical-align:middle;color:inherit}
.brand-mark{width:72px;height:72px}
.nav-icon{display:none}
.menu-toggle>.menu-icon-close,.menu-toggle[aria-expanded=true]>.menu-icon-open{display:none}
.menu-toggle[aria-expanded=true]>.menu-icon-close{display:block}
.section-card-title{display:flex;align-items:flex-start;gap:16px;margin-bottom:15px}
.section-card-title h3{margin:4px 0 0}
.section-card-title .section-icon{width:40px;height:40px;color:var(--emblem-blue)}
.section-card-more>.damu-icon{width:22px;height:22px}
.page-title-line{display:flex;align-items:center;gap:22px}
.page-title-line h1{margin-bottom:0;min-width:0}
.page-section-icon{width:56px;height:56px;color:var(--emblem-blue)}
.contact-heading-icon{width:32px;height:32px;margin-right:14px;color:var(--emblem-blue);vertical-align:-3px}
.footer-wordmark{display:inline-flex;align-items:center;gap:15px}
.footer-wordmark img{width:64px;height:64px;flex:0 0 auto}
.footer-wordmark>.footer-wordmark-text{font-size:34px}
.footer-wordmark small{font-size:17px}
.footer-brand>p.footer-contact{display:flex;align-items:flex-start;gap:12px}
.footer-contact>.damu-icon{width:20px;height:20px;margin-top:4px;color:#fff}
.footer-contact>span,.footer-contact>a{min-width:0;overflow-wrap:anywhere}
.footer-bottom a{display:inline-flex;align-items:center;gap:10px}
.footer-bottom .damu-icon{width:18px;height:18px}
.reverse-icon>.damu-icon{transform:rotate(180deg)}
@media(max-width:1100px){.brand-mark{width:64px;height:64px}.primary-navigation a{display:flex;align-items:center;gap:13px}.nav-icon{display:inline-block;width:23px;height:23px;color:var(--emblem-blue)}}
@media(max-width:480px){.brand-mark{width:56px;height:56px}.brand-name{font-size:21px}.brand-caption{font-size:8px}.section-card-title{gap:12px}.section-card-title .section-icon{width:34px;height:34px}.section-card-title h3{margin-top:2px}.page-title-line{gap:14px;align-items:flex-start}.page-section-icon{width:38px;height:38px;margin-top:3px}.contact-heading-icon{width:26px;height:26px;margin-right:10px}.footer-wordmark img{width:58px;height:58px}}
