/*
Theme Name: ДШИ Северск
Theme URI: https://xn----dtbefbos1cfe3e.xn--p1ai/
Author: Роман
Description: Тема для сайта МАУДО «Детская школа искусств» ЗАТО Северск. Крупная типографика, бенто-сетка, тёмная палитра с цветами четырёх отделений. Шрифты Unbounded и Manrope подключены локально. Главная собирается из записей и настроек в «Внешний вид → Настроить → ДШИ: главная».
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dshi
*/

/* ---------- fonts (local, OFL) ---------- */
@font-face{font-family:"Unbounded";font-style:normal;font-display:swap;font-weight:200 900;src:url("assets/fonts/unbounded-cyrillic-wght-normal.woff2") format("woff2-variations");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Unbounded";font-style:normal;font-display:swap;font-weight:200 900;src:url("assets/fonts/unbounded-latin-wght-normal.woff2") format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Manrope";font-style:normal;font-display:swap;font-weight:200 800;src:url("assets/fonts/manrope-cyrillic-wght-normal.woff2") format("woff2-variations");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Manrope";font-style:normal;font-display:swap;font-weight:200 800;src:url("assets/fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ---------- tokens ---------- */
:root{
  --ink:#0E0D14; --ink-2:#17151F; --line:#2E2B3A;
  --cream:#F3EEE4; --muted:#A8A3B8; --muted-dark:#5A5566;
  --lime:#C6F432; --violet:#A98BFF; --orange:#FF6A2B; --blue:#4C8DFF;
  --dshi-display:"Unbounded",system-ui,sans-serif;
  --dshi-body:"Manrope",system-ui,sans-serif;
  --dshi-pad:clamp(20px,2.8vw,40px);
  --dshi-radius:32px;
  --dshi-section-gap:clamp(72px,9.7vw,140px);
}

/* ---------- base ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:var(--ink);color:var(--cream);font-family:var(--dshi-body);font-size:17px;line-height:1.55;-webkit-font-smoothing:antialiased;overflow-x:hidden}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
a:hover{opacity:.85}
:focus-visible{outline:3px solid var(--lime);outline-offset:3px;border-radius:6px}
button{font:inherit;color:inherit;cursor:pointer}
h1,h2,h3,h4{margin:0}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip-link:focus{position:fixed;left:16px;top:16px;z-index:1000;width:auto;height:auto;clip:auto;padding:14px 20px;background:var(--lime);color:var(--ink);font-weight:800;border-radius:12px}
.wrap{padding-left:var(--dshi-pad);padding-right:var(--dshi-pad)}
.display{font-family:var(--dshi-display);font-weight:900;text-transform:uppercase;letter-spacing:-.04em;line-height:.92}
.eyebrow{font-size:13px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.arrow-ico{width:1em;height:1em;flex-shrink:0}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:60px;padding:0 30px;border-radius:30px;font-weight:800;font-size:16px;border:1px solid transparent;white-space:nowrap;transition:transform .2s ease,background .2s ease}
.btn:hover{opacity:1;transform:translateY(-2px)}
.btn--light{background:var(--cream);color:var(--ink)}
.btn--ghost{border-color:var(--cream)}
.btn--lime{background:var(--lime);color:var(--ink)}
.btn--dark{background:var(--ink);color:var(--cream)}
.icon-btn{width:52px;height:52px;border-radius:50%;border:1px solid var(--line);background:transparent;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.icon-btn svg{width:22px;height:22px}

/* ---------- ticker ---------- */
.ticker{height:52px;background:var(--lime);color:var(--ink);overflow:hidden;display:flex;align-items:center}
.ticker__track{display:flex;gap:40px;white-space:nowrap;font-family:var(--dshi-display);font-weight:800;font-size:18px;text-transform:uppercase;animation:dshi-marq 30s linear infinite;padding-left:40px}
@keyframes dshi-marq{to{transform:translateX(-50%)}}

/* ---------- header ---------- */
.site-header{position:relative;z-index:50;height:100px;display:flex;align-items:center;gap:20px}
.logo{display:flex;align-items:center;gap:14px;flex-shrink:0}
.logo__mark{width:46px;height:46px;display:grid;grid-template-columns:1fr 1fr;gap:4px}
.logo__mark i{display:block;border-radius:6px}
.logo__mark i:nth-child(1){background:var(--lime);border-radius:50%}
.logo__mark i:nth-child(2){background:var(--violet)}
.logo__mark i:nth-child(3){background:var(--orange)}
.logo__mark i:nth-child(4){background:var(--blue);border-radius:50%}
.logo__text{font-family:var(--dshi-display);font-size:15px;font-weight:800;line-height:1.1;text-transform:uppercase}
.logo__text span{display:block;font-weight:400;color:var(--muted)}
.logo img{max-height:56px;width:auto}

.main-nav{margin:0 auto}
.main-nav>ul{list-style:none;margin:0;padding:5px;display:flex;gap:2px;border:1px solid var(--line);border-radius:30px;font-size:15px;font-weight:600;white-space:nowrap}
.main-nav li{position:relative}
.main-nav a{display:flex;align-items:center;gap:4px;height:40px;padding:0 14px;border-radius:20px}
.main-nav>ul>li.current-menu-item>a,.main-nav>ul>li.current_page_item>a{background:var(--cream);color:var(--ink)}
.main-nav .menu-item-has-children>a::after,.main-nav .page_item_has_children>a::after{content:"";width:6px;height:6px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px);margin-left:4px}
.main-nav .sub-menu,.main-nav .children{list-style:none;margin:0;padding:8px;position:absolute;left:0;top:calc(100% + 8px);min-width:280px;background:var(--ink-2);border:1px solid var(--line);border-radius:20px;white-space:normal;opacity:0;visibility:hidden;transform:translateY(6px);transition:.18s ease;box-shadow:0 20px 50px rgba(0,0,0,.4)}
.main-nav .sub-menu a,.main-nav .children a{height:auto;min-height:44px;padding:10px 14px;border-radius:12px;line-height:1.3}
.main-nav .sub-menu a:hover,.main-nav .children a:hover{background:var(--line);opacity:1}
.main-nav li:hover>.sub-menu,.main-nav li:focus-within>.sub-menu,.main-nav li:hover>.children,.main-nav li:focus-within>.children{opacity:1;visibility:visible;transform:none}
.main-nav .sub-menu .sub-menu{left:100%;top:0}
.header-actions{display:flex;align-items:center;gap:10px}
.site-header.is-collapsed .main-nav{display:none}
.site-header.is-collapsed .menu-toggle{display:inline-flex;align-items:center}
.site-header.is-collapsed .header-actions{margin-left:auto}
.menu-toggle{display:none;height:52px;padding:0 20px;border-radius:26px;border:0;background:var(--cream);color:var(--ink);font-weight:800}

/* search overlay */
.search-panel{position:fixed;inset:0;z-index:200;background:rgba(14,13,20,.96);display:flex;align-items:flex-start;justify-content:center;padding:18vh var(--dshi-pad) 0;opacity:0;visibility:hidden;transition:.2s}
.search-panel.is-open{opacity:1;visibility:visible}
.search-panel form{width:min(900px,100%)}
.search-panel__close{position:absolute;right:var(--dshi-pad);top:24px}
.search-form{display:flex;align-items:center;gap:10px;height:72px;padding:0 10px 0 28px;border:1px solid var(--cream);border-radius:36px}
.search-form input[type=search]{flex:1;min-width:0;border:0;outline:0;background:transparent;color:inherit;font:inherit;font-size:20px}
.search-form input::placeholder{color:var(--muted)}
.search-form button{width:52px;height:52px;border-radius:50%;border:0;background:var(--lime);color:var(--ink);display:flex;align-items:center;justify-content:center}
.search-form button svg{width:22px;height:22px}

/* mobile drawer */
.drawer{position:fixed;inset:0;z-index:150;background:var(--ink);padding:24px var(--dshi-pad) 40px;overflow-y:auto;opacity:0;visibility:hidden;transition:.2s}
.drawer.is-open{opacity:1;visibility:visible}
.drawer__top{display:flex;justify-content:space-between;align-items:center;margin-bottom:32px}
.drawer ul{list-style:none;margin:0;padding:0}
.drawer>nav>ul>li{border-top:1px solid var(--line)}
.drawer>nav>ul>li>a{display:block;padding:18px 0;font-family:var(--dshi-display);font-weight:800;font-size:22px;text-transform:uppercase}
.drawer .sub-menu,.drawer .children{padding:0 0 16px 4px}
.drawer .sub-menu a,.drawer .children a{display:block;padding:9px 0;color:var(--muted);font-weight:600}

/* ---------- hero ---------- */
.hero{position:relative;padding-top:clamp(24px,3.3vw,48px);padding-bottom:clamp(64px,6.7vw,96px);overflow:hidden}
.hero__grain{position:absolute;inset:0;pointer-events:none;opacity:.12;width:100%;height:100%}
.hero__line{position:relative;display:flex;align-items:center;gap:clamp(10px,2vw,28px);margin-bottom:8px}
.hero__line--end{justify-content:flex-end}
.hero__word{font-size:clamp(46px,9.7vw,140px)}
.hero__word--accent{color:var(--lime)}
.hero__pill{width:clamp(150px,19.5vw,280px);height:clamp(54px,8.6vw,124px);object-fit:cover;object-position:50% 30%;border-radius:999px}
.hero__round{width:clamp(54px,8.6vw,124px);height:clamp(54px,8.6vw,124px);object-fit:cover;border-radius:50%}
.hero__sticker{padding:14px 22px;background:var(--violet);color:var(--ink);border-radius:14px;transform:rotate(-7deg);font-family:var(--dshi-display);font-size:clamp(11px,1.4vw,20px);font-weight:800;text-transform:uppercase;line-height:1.1}
.hero__squiggle{width:clamp(60px,8.3vw,120px);height:auto}
.hero__star{width:clamp(40px,5.8vw,84px);height:auto}
.badge{position:relative;width:170px;height:170px;margin-left:auto;flex-shrink:0}
.badge__ring{width:170px;height:170px;animation:dshi-spin 18s linear infinite}
.badge__ring text{font-family:var(--dshi-display);font-size:13px;font-weight:700;fill:var(--cream)}
.badge__btn{position:absolute;left:45px;top:45px;width:80px;height:80px;border-radius:50%;background:var(--orange);color:var(--ink);display:flex;align-items:center;justify-content:center}
.badge__btn svg{width:34px;height:34px}
@keyframes dshi-spin{to{transform:rotate(360deg)}}
.hero__bottom{position:relative;margin-top:48px;padding-top:32px;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr auto 1fr;gap:40px;align-items:start}
.hero__lead{margin:0;font-size:19px;color:var(--muted);max-width:420px}
.hero__ctas{display:flex;gap:12px;flex-wrap:wrap}
.event-card{display:flex;gap:16px;align-items:center;padding:18px 20px;border:1px solid var(--line);border-radius:20px}
.event-card img{width:72px;height:72px;object-fit:cover;border-radius:12px;flex-shrink:0}
.event-card__label{color:var(--lime);font-size:12px}
.event-card__title{font-weight:800;line-height:1.3}
.event-card__meta{font-size:14px;color:var(--muted)}

/* ---------- bento ---------- */
.bento{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-template-rows:280px 280px;gap:16px;padding-bottom:var(--dshi-section-gap)}
.bento__photo{grid-column:1/7;grid-row:1/3;position:relative;border-radius:var(--dshi-radius);overflow:hidden}
.bento__photo img{width:100%;height:100%;object-fit:cover}
.bento__caption{position:absolute;left:24px;bottom:24px;padding:12px 18px;border-radius:999px;background:var(--cream);color:var(--ink);font-weight:800;font-size:15px}
.bento__stamp{position:absolute;right:24px;top:24px;width:116px;height:116px;border-radius:50%;background:var(--orange);color:var(--ink);display:flex;align-items:center;justify-content:center;text-align:center;transform:rotate(12deg);font-family:var(--dshi-display);font-size:11px;font-weight:800;line-height:1.15}
.tile{padding:28px;border-radius:var(--dshi-radius);color:var(--ink);display:flex;flex-direction:column;justify-content:space-between;transition:transform .25s ease}
.tile:hover{opacity:1;transform:translateY(-4px) rotate(-.5deg)}
.tile__top{display:flex;justify-content:space-between;align-items:flex-start;font-size:13px;font-weight:800;letter-spacing:.1em}
.tile__arrow{width:56px;height:56px;border-radius:50%;background:var(--ink);display:flex;align-items:center;justify-content:center}
.tile__arrow svg{width:24px;height:24px}
.tile__title{display:block;font-family:var(--dshi-display);font-size:clamp(18px,1.8vw,26px);font-weight:800;text-transform:uppercase;line-height:1.02;hyphens:auto;-webkit-hyphens:auto;overflow-wrap:anywhere}
.tile__sub{display:block;margin-top:10px;font-size:15px;font-weight:600}
.tile--1{grid-column:7/10;grid-row:1;background:var(--lime)} .tile--1 .tile__arrow{color:var(--lime)}
.tile--2{grid-column:10/13;grid-row:1;background:var(--violet)} .tile--2 .tile__arrow{color:var(--violet)}
.tile--3{grid-column:7/10;grid-row:2;background:var(--orange)} .tile--3 .tile__arrow{color:var(--orange)}
.tile--4{grid-column:10/13;grid-row:2;border:1px solid var(--cream);color:var(--cream)} .tile--4 .tile__arrow{background:var(--cream);color:var(--ink)} .tile--4 .tile__sub,.tile--4 .tile__top{color:var(--muted)}

/* ---------- section heads ---------- */
.section{padding-bottom:var(--dshi-section-gap)}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:32px;padding-bottom:40px;flex-wrap:wrap}
.section-title{font-size:clamp(40px,7.2vw,104px)}
.section-title sup{font-size:.27em;font-weight:600;color:var(--muted);letter-spacing:0;vertical-align:top;margin-left:12px}
.section-head p{margin:0;max-width:360px;color:var(--muted)}
.link-pill{display:inline-flex;align-items:center;gap:8px;height:56px;padding:0 26px;border-radius:28px;border:1px solid currentColor;font-size:15px;font-weight:800}

/* ---------- departments ---------- */
.dept{display:grid;grid-template-columns:80px minmax(0,1fr) 340px 72px;gap:32px;align-items:center;min-height:140px;border-top:1px solid var(--line);transition:background .25s ease,color .25s ease,padding .25s ease,margin .25s ease,border-radius .25s ease}
.dept:last-child{border-bottom:1px solid var(--line)}
.dept__num{font-family:var(--dshi-display);font-size:16px;font-weight:600;color:var(--muted)}
.dept__name{font-family:var(--dshi-display);font-size:clamp(16px,3.75vw,54px);overflow-wrap:anywhere;font-weight:800;letter-spacing:-.03em;text-transform:uppercase;line-height:1.05}
.dept__desc{color:var(--muted);font-size:16px}
.dept__go{width:72px;height:72px;border-radius:50%;border:1px solid var(--c);color:var(--c);display:flex;align-items:center;justify-content:center;transition:.25s}
.dept__go svg{width:26px;height:26px}
.dept:hover,.dept:focus-visible{opacity:1;background:var(--c);color:var(--ink);padding:0 28px;margin:0 -28px;border-radius:28px;border-color:transparent}
.dept:hover+.dept{border-top-color:transparent}
.dept:hover .dept__num,.dept:hover .dept__desc{color:var(--ink)}
.dept:hover .dept__go{background:var(--ink);border-color:var(--ink)}

/* ---------- news ---------- */
.news-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.news-card{display:flex;flex-direction:column;gap:18px}
.news-card__media{position:relative;aspect-ratio:328/340;border-radius:24px;overflow:hidden;background:var(--ink-2)}
.news-card__media img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.news-card:hover .news-card__media img{transform:scale(1.05)}
.news-card:hover{opacity:1}
.news-card__ph{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-family:var(--dshi-display);font-weight:900;font-size:64px;color:var(--ink);background:var(--c)}
.news-card__date{position:absolute;left:16px;top:16px;padding:8px 14px;border-radius:10px;background:var(--c);color:var(--ink);font-size:13px;font-weight:800}
.news-card:nth-child(odd) .news-card__date{transform:rotate(-4deg)}
.news-card:nth-child(even) .news-card__date{transform:rotate(3deg)}
.news-card__title{font-size:18px;line-height:1.4;font-weight:700}

/* ---------- gosuslugi band ---------- */
.band{background:var(--orange);color:var(--ink);padding-top:88px;padding-bottom:88px;display:flex;justify-content:space-between;align-items:flex-end;gap:40px}
.band__title{font-size:clamp(32px,5.8vw,84px);max-width:1000px;margin:24px 0}
.band__text{margin:0;font-size:18px;font-weight:600;max-width:560px}
.band__btn{width:220px;height:220px;border-radius:50%;background:var(--ink);color:var(--cream);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;font-weight:800;font-size:17px;line-height:1.25;flex-shrink:0;transition:transform .3s ease}
.band__btn:hover{opacity:1;transform:rotate(-8deg) scale(1.04)}
.band__btn svg{width:28px;height:28px}

/* ---------- info (cream) ---------- */
.light{background:var(--cream);color:var(--ink);padding-top:120px;padding-bottom:120px}
.light .section-title{font-size:clamp(32px,5vw,72px)}
.light .search-form{border-color:var(--ink);height:60px;width:min(440px,100%);padding-left:24px}
.light .search-form button{width:44px;height:44px;background:var(--ink);color:var(--cream)}
.light .search-form input::placeholder{color:var(--muted-dark)}
.info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:var(--ink);border:1px solid var(--ink);margin:0 0 48px;padding:0;list-style:none}
.info-grid a{min-height:124px;padding:24px 28px;background:var(--cream);display:flex;flex-direction:column;justify-content:space-between;gap:16px;transition:background .2s}
.info-grid a:hover{opacity:1;background:#fff}
.info-grid a.is-accent{background:var(--lime)}
.info-grid__num{display:flex;justify-content:space-between;font-size:13px;font-weight:800;color:var(--muted-dark)}
.info-grid a.is-accent .info-grid__num{color:var(--ink)}
.info-grid__title{font-size:20px;font-weight:800;line-height:1.3}
.chips{display:flex;gap:12px;flex-wrap:wrap}
.chips a{height:48px;padding:0 20px;border:1px solid var(--ink);border-radius:24px;display:inline-flex;align-items:center;font-size:15px;font-weight:800}

/* ---------- footer ---------- */
.site-footer{padding-top:88px;padding-bottom:32px}
.footer-cols{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:40px;font-size:16px;line-height:1.6;margin-bottom:64px}
.footer-cols .eyebrow{color:var(--muted);margin-bottom:12px}
.footer-cols a{display:block}
.footer-cols .strong{font-weight:800}
.socials{display:flex;gap:8px;flex-wrap:wrap}
.socials a{width:52px;height:52px;border-radius:50%;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:800}
.socials svg{width:20px;height:20px}
.footer-mark{display:flex;align-items:center;gap:28px;margin-bottom:24px}
.footer-mark .logo__mark{width:clamp(56px,9.7vw,140px);height:clamp(56px,9.7vw,140px);gap:8px}
.footer-mark .logo__mark i{border-radius:14px}
.footer-mark .display{font-size:clamp(34px,8.6vw,124px);line-height:.85;letter-spacing:-.05em;white-space:nowrap}
.footer-bottom{padding-top:20px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;font-size:14px;color:var(--muted)}
.footer-bottom nav{display:flex;gap:28px;flex-wrap:wrap}
.footer-bottom ul{list-style:none;margin:0;padding:0;display:flex;gap:28px;flex-wrap:wrap}
.footer-bottom a{text-decoration:underline;text-underline-offset:3px}

/* ---------- inner pages ---------- */
.page-hero{padding-top:40px;padding-bottom:56px}
.page-hero .display{font-size:clamp(34px,6vw,88px);line-height:.95;overflow-wrap:anywhere}
.breadcrumbs{font-size:14px;color:var(--muted);margin-bottom:20px}
.breadcrumbs a{text-decoration:underline;text-underline-offset:3px}
.page-meta{margin-top:20px;color:var(--muted);font-weight:700}
.content-panel{background:var(--cream);color:var(--ink);border-radius:var(--dshi-radius) var(--dshi-radius) 0 0;padding-top:clamp(40px,6vw,88px);padding-bottom:clamp(64px,8vw,120px)}
.entry-content{max-width:860px;margin:0 auto;font-size:18px;line-height:1.7}
.entry-content.is-wide{max-width:none}
.entry-content>*+*{margin-top:1.1em}
.entry-content h2,.entry-content h3,.entry-content h4{font-family:var(--dshi-display);font-weight:800;line-height:1.2;margin-top:1.8em;letter-spacing:-.02em}
.entry-content h2{font-size:32px}.entry-content h3{font-size:24px}.entry-content h4{font-size:19px}
.entry-content a{color:#2B55C9;text-decoration:underline;text-underline-offset:3px}
.entry-content img{border-radius:20px}
.entry-content figure{margin-left:0;margin-right:0}
.entry-content figcaption{font-size:14px;color:var(--muted-dark);margin-top:8px}
.entry-content blockquote{margin-left:0;padding:20px 28px;border-left:0;background:#fff;border-radius:20px;font-weight:600}
.entry-content table{width:100%;border-collapse:collapse;font-size:16px;background:#fff}
.entry-content .wp-block-table{overflow-x:auto}
.entry-content th,.entry-content td{padding:12px 16px;border:1px solid #E0D9CC;text-align:left;vertical-align:top}
.entry-content th{background:#EAE3D6;font-weight:800}
.entry-content ul,.entry-content ol{padding-left:1.3em}
.entry-content .wp-block-file,.entry-content a[href$=".pdf"],.entry-content a[href$=".doc"],.entry-content a[href$=".docx"]{font-weight:700}
.entry-content .wp-block-file{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:16px 20px;background:#fff;border-radius:16px}
.entry-content .wp-block-file__button{background:var(--ink)!important;color:var(--cream)!important;text-decoration:none!important;border-radius:20px!important;padding:8px 16px!important}
.entry-content .alignwide,.entry-content .alignfull{max-width:none}
.post-nav{max-width:860px;margin:64px auto 0;display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}
.post-nav a{font-weight:800;text-decoration:underline;text-underline-offset:3px}

/* archive list on cream */
.archive-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 16px}
.content-panel .news-card__title{color:var(--ink)}
.pagination{margin-top:56px;display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.pagination .page-numbers{min-width:52px;height:52px;padding:0 16px;border-radius:26px;border:1px solid var(--ink);display:inline-flex;align-items:center;justify-content:center;font-weight:800}
.pagination .page-numbers.current{background:var(--ink);color:var(--cream)}
.search-results-list{list-style:none;margin:0;padding:0;max-width:860px;margin:0 auto}
.search-results-list li{padding:24px 0;border-top:1px solid #D9D1C2}
.search-results-list h2{font-family:var(--dshi-display);font-size:22px;font-weight:800;line-height:1.3}
.search-results-list p{margin:8px 0 0;color:var(--muted-dark)}
.empty-note{max-width:860px;margin:0 auto;font-size:18px}

/* ---------- elementor full width template ---------- */
.elementor-full{background:var(--cream);color:var(--ink)}

/* ---------- a11y mode (версия для слабовидящих) ---------- */
html.a11y{font-size:125%}
html.a11y body{background:#fff;color:#000;font-size:21px}
html.a11y *,html.a11y *::before,html.a11y *::after{animation:none!important;transition:none!important}
html.a11y .ticker,html.a11y .hero__grain,html.a11y .hero__squiggle,html.a11y .hero__star,html.a11y .badge{display:none}
html.a11y .site-header,html.a11y .hero,html.a11y .bento,html.a11y .section,html.a11y .site-footer,html.a11y .band,html.a11y .light,html.a11y .content-panel,html.a11y .page-hero{background:#fff!important;color:#000!important}
html.a11y .tile,html.a11y .dept,html.a11y .info-grid a,html.a11y .news-card__date,html.a11y .event-card,html.a11y .bento__stamp,html.a11y .hero__sticker{background:#fff!important;color:#000!important;border:2px solid #000!important;transform:none!important}
html.a11y .hero__word--accent,html.a11y .event-card__label,html.a11y .dept__num,html.a11y .dept__desc,html.a11y .hero__lead,html.a11y .footer-cols .eyebrow,html.a11y .footer-bottom,html.a11y .section-head p,html.a11y .event-card__meta{color:#000!important}
html.a11y .btn,html.a11y .band__btn,html.a11y .tile__arrow,html.a11y .dept__go,html.a11y .badge__btn,html.a11y .menu-toggle{background:#000!important;color:#fff!important;border-color:#000!important}
html.a11y .main-nav>ul,html.a11y .icon-btn,html.a11y .socials a{border-color:#000;color:#000}
html.a11y .main-nav .sub-menu,html.a11y .main-nav .children{background:#fff;border:2px solid #000}
html.a11y .logo__text span{color:#000}
html.a11y .display{letter-spacing:0}
html.a11y a{text-decoration:underline}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
}

/* ---------- responsive ---------- */
@media (max-width:1240px){
  .main-nav{display:none}
  .menu-toggle{display:inline-flex;align-items:center}
  .site-header{justify-content:space-between}
  .header-actions{margin-left:auto}
  .dept{grid-template-columns:56px minmax(0,1fr) 260px 64px;gap:20px}
  .dept__go{width:64px;height:64px}
}
@media (max-width:1024px){
  .hero__bottom{grid-template-columns:1fr 1fr}
  .hero__bottom .event-card{grid-column:1/-1}
  .bento{grid-template-rows:auto;grid-template-columns:repeat(2,minmax(0,1fr))}
  .bento__photo{grid-column:1/-1;grid-row:auto;height:420px}
  .tile{grid-column:auto!important;grid-row:auto!important;min-height:220px}
  .news-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 16px}
  .info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .footer-cols{grid-template-columns:repeat(2,minmax(0,1fr))}
  .archive-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dept{grid-template-columns:48px minmax(0,1fr) 64px}
  .dept__desc{display:none}
}
@media (max-width:760px){
  body{font-size:16px}
  .ticker{height:40px}.ticker__track{font-size:14px;gap:24px}
  .site-header{height:72px}
  .header-actions .btn--lime,.header-actions .a11y-toggle{display:none}
  .icon-btn{width:46px;height:46px}
  .menu-toggle{height:46px}
  .logo__mark{width:38px;height:38px;gap:3px}
  .logo__text{font-size:13px}
  .hero__line{flex-wrap:wrap}
  .hero__line--end{justify-content:flex-start}
  .hero__squiggle,.hero__star{display:none}
  .badge{display:none}
  .hero__sticker{padding:8px 12px}
  .hero__bottom{grid-template-columns:1fr;gap:24px;margin-top:24px;padding-top:0;border-top:0}
  .hero__ctas .btn{flex:1;height:56px}
  .bento{gap:10px}
  .bento__photo{height:240px;border-radius:24px}
  .bento__stamp{width:88px;height:88px;font-size:8.5px;right:14px;top:14px}
  .bento__caption{display:none}
  .tile{min-height:160px;padding:18px;border-radius:24px}
  .tile__arrow{width:40px;height:40px}.tile__arrow svg{width:18px;height:18px}
  .tile__title{font-size:12px;line-height:1.15}
  .tile__sub{display:none}
  .section-head{padding-bottom:24px}
  .section-title{font-size:clamp(26px,7.8vw,40px)}
  .dept{min-height:84px;grid-template-columns:28px minmax(0,1fr) 44px;gap:12px}
  .dept__num{font-size:12px}
  .dept__name{font-size:4.2vw}
  .dept__go{width:44px;height:44px}.dept__go svg{width:18px;height:18px}
  .dept:hover{padding:0 14px;margin:0 -14px;border-radius:20px}
  .news-grid{grid-template-columns:1fr;gap:28px}
  .news-card__media{aspect-ratio:350/240}
  .band{flex-direction:column;align-items:stretch;padding-top:56px;padding-bottom:56px}
  .band__btn{width:auto;height:58px;border-radius:29px;flex-direction:row;font-size:16px}
  .band__btn br{display:none}
  .light{padding-top:64px;padding-bottom:64px}
  .info-grid{grid-template-columns:1fr}
  .info-grid a{min-height:0;padding:18px 16px;flex-direction:row-reverse;align-items:center}
  .info-grid__num span:first-child{display:none}
  .info-grid__title{font-size:15px}
  .footer-cols{grid-template-columns:1fr;gap:28px;margin-bottom:40px}
  .footer-mark{flex-direction:column;align-items:flex-start;gap:16px}
  .footer-mark .display{white-space:normal}
  .archive-grid{grid-template-columns:1fr}
  .entry-content{font-size:17px}
  .entry-content table{display:block;overflow-x:auto}
  .entry-content h2{font-size:26px}
}

/* news grid column variants (widget setting) */
.news-grid.dshi-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.news-grid.dshi-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:1024px){.news-grid.dshi-cols-3,.news-grid.dshi-cols-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){
  .news-grid[class*="dshi-cols-"]{grid-template-columns:1fr}
  .page-hero .display{font-size:clamp(21px,5.9vw,34px)!important;hyphens:auto;-webkit-hyphens:auto}
}
