:root{--dio-primary:#0d1b2a;--dio-accent:#0d6b7a;--dio-gold:#e2a916;--dio-font-body:"Onest", sans-serif;--dio-font-size:16px;--dio-font-heading:"Golos Text", sans-serif;--dio-header-bg:var(--dio-primary,#0d1b2a);--dio-header-text:#ffffff;--dio-header-sub:#94a3b8;--dio-header-link:#cbd5e1;--dio-header-link-hover:#ffffff;--dio-header-border:rgba(255,255,255,.18);--dio-header-hover-bg:rgba(255,255,255,.08);--bg:#f8fafc;--surface:#f1f5f9;--card:#ffffff;--text:#1e293b;--muted:#64748b;--border:#e2e8f0;--line:#f1f5f9;--accent:#0d6b7a;--accent-h:#0d6b7a;--accent-soft:#e6f7fa;--on-accent:#ffffff;--link:#0d6b7a;--focus:#e2a916;--success:#166534;--danger:#b91c1c;}
/* CSS темы (настройки сайта) */
/* priemka-public-theme-v1 */
:root{--dio-primary:#0d6b7a;--dio-accent:#0d6b7a;--dio-accent-h:#085564;--dio-header-bg:#fff;--dio-header-text:#18323a;--dio-header-link:#0d6b7a;--dio-header-link-hover:#085564;--dio-header-sub:#64748b;--dio-header-hover-bg:#eef6f7;--dio-header-border:#d7e6e8;--dio-gold:#e2a916;--accent:#0d6b7a;--link:#0d6b7a}
.header{position:relative;background:#fff;color:#18323a;border-bottom:1px solid #d7e6e8;box-shadow:0 2px 12px rgba(13,107,122,.06);padding-top:48px!important;padding-bottom:14px!important}
.header__inner{max-width:none!important;width:auto!important;margin:0!important;padding:0 4.86vw!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:18px!important}
.header__brand{flex:0 0 auto}.header__logo-img{max-width:180px!important;max-height:56px!important;object-fit:contain}
.header__title{color:#0d6b7a}.header__tagline{color:#64748b}.header__menu{display:flex!important;flex-direction:row!important;gap:16px!important;align-items:center!important;flex-wrap:nowrap!important;width:auto!important;margin:0!important}.header__menu>a{font-size:14px;white-space:nowrap}.header__menu:after{content:"Позвонить";display:inline-block;padding:9px 16px;background:#e2a916;color:#fff;border-radius:7px;font-size:14px;font-weight:700;white-space:nowrap}
.header__search,.header__auth{display:none!important}
.header:before{content:"ВКонтакте     +7 (952) 240-30-14     +7 (812) 320-99-21     +7 (995) 607-87-89     abiturent@nevskyinstitute.ru";position:absolute;top:0;left:0;right:0;height:30px;display:flex;align-items:center;background:#0d6b7a;color:#fff;padding:0 max(calc((100vw - 1200px)/2),24px);font-size:12px;white-space:pre;z-index:5}
.header:after{content:"Приёмная комиссия Невского института языка и культуры";display:block;margin:12px calc((100% - 100vw)/2) -14px;padding:16px 20px;text-align:center;color:#fff;background:linear-gradient(110deg,#0d6b7a,#1996a2);border-bottom:4px solid #e2a916;font-size:20px;font-weight:500}
.footer{background:#f2f6f7;color:#334155;border-top:2px solid #e2a916}
.priemka-side-nav{background:#f4f8f9;border:1px solid #d7e6e8;border-radius:12px;padding:16px;margin:0 0 22px}
.priemka-side-nav h2{font-size:1rem;color:#0d6b7a;margin:0 0 10px}.priemka-side-nav ul{list-style:none;padding:0;margin:0}.priemka-side-nav li{margin:0;border-top:1px solid #e2ecee}.priemka-side-nav a{display:block;padding:9px 7px;color:#164b56;text-decoration:none}.priemka-side-nav a:hover,.priemka-side-nav a[aria-current=page]{color:#0d6b7a;font-weight:700;background:#eaf4f5}
.content-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin:1.25rem 0}.content-grid--1{grid-template-columns:1fr}.content-card{background:#fff;border:1px solid #d7e6e8;border-radius:12px;padding:18px;box-shadow:0 5px 16px rgba(13,107,122,.07);min-width:0}.content-card__title{font-size:1.1rem;color:#0d6b7a;margin:0 0 10px}.content-card__body>:first-child{margin-top:0}.content-card__body>:last-child{margin-bottom:0}
.content-notice{margin:1.25rem 0;padding:18px 20px;border-radius:12px;border:1px solid #d7e6e8;border-left:5px solid #0d6b7a;background:#f1f8f9}.content-notice--success{border-left-color:#16864b;background:#f0faf4}.content-notice--warning{border-left-color:#d18b00;background:#fff9eb}.content-notice--danger{border-left-color:#b42318;background:#fff3f2}.content-notice__title{font-size:1.1rem;margin:0 0 8px;color:#164b56}.content-notice__body>:first-child{margin-top:0}.content-notice__body>:last-child{margin-bottom:0}
.content-toggle{margin:1rem 0;border:1px solid #d7e6e8;border-radius:12px;background:#fff;overflow:hidden;box-shadow:0 5px 16px rgba(13,107,122,.06)}.content-toggle__summary{padding:14px 18px;background:#f4f8f9;color:#0d6b7a;font-weight:700;cursor:pointer}.content-toggle__body{padding:18px;border-top:1px solid #d7e6e8}
.pdf-card{margin:1.25rem 0;padding:18px;background:#fff;border:1px solid #d7e6e8;border-radius:12px}.pdf-card__title{margin:0 0 8px;color:#18323a}.pdf-card__category,.pdf-card__date{font-size:.9rem;color:#64748b;margin-bottom:6px}.pdf-card__actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.pdf-card__actions a{display:inline-block;padding:8px 14px;border-radius:8px;text-decoration:none;background:#0d6b7a;color:#fff;font-weight:600}.pdf-card__actions a.secondary{background:#f4f8f9;color:#0d6b7a;border:1px solid #d7e6e8}.pdf-embed{margin-top:14px}.pdf-embed iframe{width:100%;height:680px;border:1px solid #d7e6e8;border-radius:8px}
.main blockquote:has(a[href^="/documents/"]){margin:14px 0;padding:18px 20px;background:#fff;border:1px solid #d7e6e8;border-radius:12px;box-shadow:0 4px 12px rgba(15,23,42,.06)}
.main blockquote:has(a[href^="/documents/"]) p{margin:0 0 7px}
.main blockquote:has(a[href^="/documents/"]) p:last-child{margin-bottom:0}
.main blockquote:has(a[href^="/documents/"]) a[href*="/preview/"]{display:inline-block;margin:4px 8px 2px 0;padding:8px 14px;border-radius:8px;background:#0d6b7a;color:#fff;text-decoration:none;font-weight:700}
.main blockquote:has(a[href^="/documents/"]) a[href$="/download/"]{display:inline-block;margin:4px 0 2px;padding:7px 12px;border:1px solid #d7e6e8;border-radius:8px;background:#f4f8f9;color:#0d6b7a;text-decoration:none;font-weight:600}

.main .dio-block p:has(+ p + p a[href^="/documents/"]){margin:14px 0 0!important;padding:16px 16px 4px!important;background:#fff;border:1px solid #d7e6e8;border-bottom:0;border-radius:12px 12px 0 0;font-weight:800;color:#0d6b7a}
.main .dio-block p:has(+ p a[href^="/documents/"]){margin:0!important;padding:0 16px 7px!important;background:#fff;border-left:1px solid #d7e6e8;border-right:1px solid #d7e6e8;color:#64748b;font-size:13px}
.main .dio-block p:has(> a[href^="/documents/"]){margin:0 0 14px!important;padding:4px 16px 16px!important;background:#fff;border:1px solid #d7e6e8;border-top:0;border-radius:0 0 12px 12px}
.main a[href^="/documents/"][href*="/preview/"]{display:inline-block;padding:8px 14px;border-radius:8px;background:#0d6b7a;color:#fff!important;text-decoration:none!important;font-weight:700}
.main a[href^="/documents/"][href*="/download/"]{display:inline-block;margin-left:6px;padding:7px 12px;border:1px solid #d7e6e8;border-radius:8px;background:#f4f8f9;color:#0d6b7a!important;text-decoration:none!important;font-weight:600}

.priemka-contacts{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin:1.25rem 0}.priemka-contact-card{padding:18px;border:1px solid #d7e6e8;border-radius:12px;background:#fff}.priemka-contact-card h3{color:#0d6b7a;margin:0 0 10px}.priemka-contact-card ul{margin:0;padding-left:20px}.priemka-map{margin:1.25rem 0;border:1px solid #d7e6e8;border-radius:14px;overflow:hidden}.priemka-map iframe{display:block;width:100%;height:440px;border:0}.priemka-map a{display:block;padding:12px;background:#f4f8f9;color:#0d6b7a;text-align:center}.main iframe[src^="/dio_forms/form/general/"]{display:block;width:min(100%,520px);height:410px;margin:16px auto;border:0;border-radius:12px}.main iframe[src^="https://yandex.ru/map-widget/v1/"]{display:block;width:100%;height:480px;margin:12px 0;border:0;border-radius:12px;background:#eef5f6}@media(max-width:575.98px){.main iframe[src^="https://yandex.ru/map-widget/v1/"]{height:340px}.main iframe[src^="/dio_forms/form/general/"]{height:410px}}
body{background:#fff!important}.footer a{color:#0d6b7a}.main{max-width:none!important;width:auto!important;margin:0!important;padding:12px 4.86vw!important}.main>.hero{display:none!important}.main h1{font-size:2rem;font-weight:500;color:#0d6b7a;margin:0 0 1rem}.main .dio-block[id^="dio-block-priem-page-text-"] p:has(>strong) strong{color:#0d6b7a;font-size:1.08rem;font-weight:600}.main h2{font-size:1.55rem;font-weight:500;color:#0d6b7a;margin:1.5rem 0 .75rem}.main h3{font-size:1.05rem;font-weight:700;color:#0d6b7a;margin:.15rem 0 .65rem}.main p{line-height:1.58}.main blockquote{margin:1rem 0;padding:16px 20px;border:1px solid #d7e6e8;border-left:5px solid #0d6b7a;border-radius:10px;background:#f4f8f9;color:#18323a}.main details{margin:1rem 0;padding:12px 16px;border:1px solid #d7e6e8;border-radius:10px;background:#fff}.main details>summary{cursor:pointer;color:#0d6b7a;font-weight:700}.main img{max-width:100%;height:auto}.main a{color:#0d6b7a}.main ul,.main ol{padding-left:1.4rem}
@media(max-width:767px){.header:before{content:"+7 (952) 240-30-14  ·  abiturent@nevskyinstitute.ru";padding:0 12px;font-size:10px}.header:after{font-size:14px;padding:10px 12px}.header{padding-top:44px!important}.header__inner{padding:0 14px!important;justify-content:space-between!important;flex-wrap:wrap!important}.header__brand{max-width:170px}.header__logo-img{max-width:155px!important;max-height:46px!important}.header__menu{display:none!important}.header__burger{display:block!important}.header__search,.header__auth{display:none!important}.main{padding:12px 14px!important}.content-grid{grid-template-columns:1fr}.priemka-map iframe{height:340px}.pdf-embed iframe{height:520px}}
@media(max-width:767px){.content-grid{grid-template-columns:1fr}.priemka-map iframe{height:340px}.pdf-embed iframe{height:520px}}

/* visual-fidelity refinement: match the source typography and responsive admission navigation */
:root{--dio-font-body:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;--dio-font-heading:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
html,body,button,input,select,textarea{font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif!important}
.header__inner{padding-left:max(calc((100vw - 1320px)/2),14px)!important;padding-right:max(calc((100vw - 1320px)/2),14px)!important}
.header:before{padding-left:max(calc((100vw - 1320px)/2),14px)!important;padding-right:max(calc((100vw - 1320px)/2),14px)!important}
.main{padding-left:max(calc((100vw - 1320px)/2),14px)!important;padding-right:max(calc((100vw - 1320px)/2),14px)!important}
.main h1,.main h2,.main h3,.main h4{font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif!important;letter-spacing:0!important}
/* Original-style pale intro and warning panels, with compact heading rhythm. */
.main .priem-intro-panel{margin:0 0 14px;padding:12px 16px;background:#edf8fa;border:1px solid #d8edf0;border-left:4px solid #0d6b7a;border-radius:10px;color:#34495a}
.main .priem-intro-panel>p{margin:0 0 7px;padding:0!important;background:transparent!important;border:0!important;color:#34495a!important}
.main .priem-intro-panel>p:first-child strong{font-size:1.08rem!important;font-weight:800!important;color:#0d6b7a!important}
.main .priem-intro-panel>p:last-child{margin-bottom:0}
.main.priem-home #dio-block-priem-page-text-01 p:nth-of-type(2),.main.priem-home #dio-block-priem-page-text-01 p:nth-of-type(3),.main.priem-home #dio-block-priem-page-text-01 p:nth-of-type(4){background:#edf8fa;padding:0 16px;margin:0;color:#34495a}
.main.priem-home #dio-block-priem-page-text-01 p:nth-of-type(2){border-left:4px solid #0d6b7a;border-radius:10px 10px 0 0;padding-top:13px}
.main.priem-home #dio-block-priem-page-text-01 p:nth-of-type(4){border-left:4px solid #0d6b7a;border-radius:0 0 10px 10px;padding-bottom:13px}
.main.priem-home #dio-block-priem-page-text-01 p:nth-of-type(3){border-left:4px solid #0d6b7a}
.main .priem-warning-panel{margin:12px 0 14px;padding:14px 16px;background:#fff8e6;border:1px solid #f2dfaa;border-left:4px solid #e2a916;border-radius:10px;color:#34495a}
.main .priem-warning-panel>p:first-child{margin-bottom:7px;color:#0d6b7a;font-weight:700}
.main .priem-warning-panel>p,.main .priem-warning-panel>ul{line-height:1.45}
.main .priem-housing-panel{margin:8px 0 12px;padding:15px 17px;background:#edf8fa;border:1px solid #d8edf0;border-left:4px solid #0d6b7a;border-radius:10px}
.main .priem-housing-panel>p:first-child{color:#0d6b7a;font-weight:700}
.main .priem-contact-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:12px 0 18px}
.main .priem-contact-card{min-width:0;padding:14px 16px;background:#fff;border:1px solid #dbe8eb;border-left:3px solid #0d6b7a;border-radius:10px;box-shadow:0 4px 14px rgba(13,107,122,.06)}
.main .priem-contact-card>p:first-child{color:#0d6b7a;font-weight:700}
.main .priem-nav-mobile-trigger{display:none}
.main .priem-nav-group-title{display:none!important}
@media(max-width:767px){
 .header{position:relative!important;padding-top:46px!important}
 .header:before{height:46px!important}
 .header:after{display:flex!important;min-height:111px!important;align-items:center;justify-content:center;line-height:1.3}
 .header .header__menu{display:flex!important;flex-direction:column!important;align-items:stretch!important;visibility:hidden!important;opacity:0!important;max-height:0!important;overflow:hidden!important;transform:translateY(-10px)!important;pointer-events:none!important;transition:max-height .38s cubic-bezier(.2,.7,.2,1),opacity .22s ease,transform .28s ease,visibility .22s!important;order:6!important;flex:0 0 100%!important;width:100%!important;margin:0!important;padding:0!important}
 .header .header__menu.open{visibility:visible!important;opacity:1!important;max-height:min(72vh,520px)!important;overflow:auto!important;transform:translateY(0)!important;pointer-events:auto!important}
 .header .header__menu a{flex:0 0 auto!important;white-space:normal!important;padding:11px 14px!important;border-top:1px solid rgba(13,107,122,.1)!important}
 .header .header__burger{display:block!important;transition:transform .25s ease,background .2s ease!important}
 .header:has(.header__menu.open){box-shadow:0 12px 26px rgba(15,23,42,.12)!important}
 .main .priem-nav-mobile-trigger{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:13px 16px;border:0;border-radius:11px;background:#0d6b7a;color:#fff;font:700 15px/1.3 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;box-shadow:0 5px 14px rgba(13,107,122,.18);cursor:pointer}
 .main .priem-nav-mobile-trigger .priem-nav-icon{font-size:18px;line-height:1}
 .main .priem-nav-mobile-trigger .priem-nav-chevron{transition:transform .3s ease}
 .main .priem-nav-shell.is-open>.priem-nav-mobile-trigger .priem-nav-chevron{transform:rotate(180deg)}
 .main .priem-contact-cards{grid-template-columns:1fr}
}
.main .dio-ym__frame{height:520px!important}
.main [id*="map-heading"] h3{font-size:11px!important;font-weight:800!important;letter-spacing:.08em!important;text-transform:uppercase;margin:0 0 6px!important}
.main .dio-ym__addr,.main .dio-ym__title{display:none}
.main [id*="map-routes"] .dio-button-group{gap:6px;margin:0 0 10px}
.main [id*="map-routes"] .dio-button-group__btn{padding:4px 8px;background:#fff;color:#495057;border:1px solid #adb5bd;border-radius:5px;font-size:12px;font-weight:600;box-shadow:none}
.main [id*="map-routes"] .dio-button-group__btn:nth-child(2){background:#0d6b7a;color:#fff;border-color:#0d6b7a}
.main [id*="map-routes"] .dio-button-group__btn:hover{filter:brightness(.96)}
.main .dio-fb{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:row;row-gap:0;column-gap:14px;max-width:660px!important;width:100%!important;margin:18px auto!important;padding:18px 20px!important}
.main .dio-fb .dio-fc__title{grid-area:1/1/2/3}
.main .dio-fb label[for^="ff0-"]{grid-area:2/1/3/3}
.main .dio-fb input[name="f0"]{grid-area:3/1/4/3}
.main .dio-fb label[for^="ff1-"]{grid-area:4/1/5/2}
.main .dio-fb label[for^="ff2-"]{grid-area:4/2/5/3}
.main .dio-fb input[name="f1"]{grid-area:5/1/6/2}
.main .dio-fb input[name="f2"]{grid-area:5/2/6/3}
.main .dio-fb label[for^="ff3-"]{grid-area:6/1/7/3}
.main .dio-fb textarea[name="f3"]{grid-area:7/1/8/3}
.main .dio-fb .dio-fc__consent{grid-area:8/1/9/3}
.main .dio-fb .dio-fc__btn{grid-area:9/1/10/3;justify-self:start;width:auto!important;min-width:172px}
.main .dio-fb .dio-fc__note{grid-area:10/1/11/3}
.main .dio-fb .dio-fc__title{color:#0d6b7a;font-size:17px;font-weight:800;margin-bottom:8px;border-bottom:2px solid #0d6b7a;padding-bottom:10px}
.main .dio-dt__scroll,.main .dio-table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.main .dio-table{min-width:520px;background:#fff;color:#253746;font-size:15px}
.main .dio-table th{background:#edf5f6;color:#164b56;border-color:#d8e5e8}
.main .dio-table td{border-color:#d8e5e8}
.main .dio-table tbody tr:nth-child(even){background:#f7fafb}
@media(min-width:768px){
 .main .dio-table{width:100%;min-width:100%;font-size:14px}
 /* Шесть колонок: закрепить понятные доли для планов обучения. Не применять 3-колоночный раскрой ко всем таблицам с тремя и более ячейками. */
 .main .dio-table:has(>thead>tr:first-child>th:nth-child(6):last-child){table-layout:fixed}
 .main .dio-table:has(>thead>tr:first-child>th:nth-child(6):last-child) th:nth-child(1),.main .dio-table:has(>thead>tr:first-child>th:nth-child(6):last-child) td:nth-child(1){width:28%}
 .main .dio-table:has(>thead>tr:first-child>th:nth-child(6):last-child) th:nth-child(2),.main .dio-table:has(>thead>tr:first-child>th:nth-child(6):last-child) td:nth-child(2){width:24%}
 .main .dio-table:has(>thead>tr:first-child>th:nth-child(6):last-child) th:nth-child(3),.main .dio-table:has(>thead>tr:first-child>th:nth-child(6):last-child) td:nth-child(3){width:14%}
 .main .dio-table:has(>thead>tr:first-child>th:nth-child(6):last-child) th:nth-child(4),.main .dio-table:has(>thead>tr:first-child>th:nth-child(6):last-child) td:nth-child(4){width:11%}
 .main .dio-table:has(>thead>tr:first-child>th:nth-child(6):last-child) th:nth-child(5),.main .dio-table:has(>thead>tr:first-child>th:nth-child(6):last-child) td:nth-child(5){width:14%}
 .main .dio-table:has(>thead>tr:first-child>th:nth-child(6):last-child) th:nth-child(6),.main .dio-table:has(>thead>tr:first-child>th:nth-child(6):last-child) td:nth-child(6){width:9%}
 /* Узкие триколоночные таблицы сохраняют прежний раскрой 26/49/25. */
 .main .dio-table:has(>thead>tr:first-child>th:nth-child(3):last-child){table-layout:fixed}
 .main .dio-table:has(>thead>tr:first-child>th:nth-child(3):last-child) th:nth-child(1),.main .dio-table:has(>thead>tr:first-child>th:nth-child(3):last-child) td:nth-child(1){width:26%}
 .main .dio-table:has(>thead>tr:first-child>th:nth-child(3):last-child) th:nth-child(2),.main .dio-table:has(>thead>tr:first-child>th:nth-child(3):last-child) td:nth-child(2){width:49%}
 .main .dio-table:has(>thead>tr:first-child>th:nth-child(3):last-child) th:nth-child(3),.main .dio-table:has(>thead>tr:first-child>th:nth-child(3):last-child) td:nth-child(3){width:25%}
 .main .dio-table:not(:has(th:nth-child(3))) th:first-child,.main .dio-table:not(:has(th:nth-child(3))) td:first-child{width:68%}
 .main .dio-table:not(:has(th:nth-child(3))) th:nth-child(2),.main .dio-table:not(:has(th:nth-child(3))) td:nth-child(2){width:32%}
}
@media(max-width:767px){.main .dio-ym__frame{height:340px!important}.main .dio-fb{display:flex!important;flex-direction:column;row-gap:0;padding:14px!important}.main .dio-fb .dio-fc__title,.main .dio-fb label[for^="ff0-"],.main .dio-fb input[name="f0"],.main .dio-fb label[for^="ff1-"],.main .dio-fb input[name="f1"],.main .dio-fb label[for^="ff2-"],.main .dio-fb input[name="f2"],.main .dio-fb label[for^="ff3-"],.main .dio-fb textarea[name="f3"],.main .dio-fb .dio-fc__consent,.main .dio-fb .dio-fc__btn,.main .dio-fb .dio-fc__note{grid-area:auto!important}}
@media(prefers-reduced-motion:reduce){.header .header__menu,.priem-nav-panel,.priem-nav-group-panel,.priem-nav-mobile-trigger *{transition:none!important}}

/* ===== ВАСЯ · ремонт футера · 04.12.2026 =====
   Эталон: NIAK/priem/base.html — container + row g-4 + три равные col-md-4,
   фон var(--niyak-light) #f4f7f8, сверху 3px var(--niyak-gold) #e2a916.
   Правим только через theme_custom_css, файл шаблона не трогаем. */

/* 1. Три равные колонки в рамках 1280px — как container в эталоне */
.priem-footer{min-height:0!important;background:#f4f7f8!important;border-top:3px solid #e2a916!important;}
.priem-footer .priem-footer-grid{
  display:grid!important;
  grid-template-columns:1fr 1fr 1fr!important;
  gap:28px 40px!important;
  max-width:1280px!important;margin:0 auto!important;
  padding-bottom:22px!important;
  border-bottom:1px solid #d7e6e8!important;
  box-sizing:border-box!important;
}
/* 2. Колонки прижаты к верху, текст переносится, ничего не разъезжается */
.priem-footer .priem-footer-grid section{
  display:flex!important;flex-direction:column!important;
  align-items:flex-start!important;justify-content:flex-start!important;
  gap:4px!important;min-width:0!important;
}
.priem-footer .priem-footer-grid section>a,
.priem-footer .priem-footer-grid section>div{
  white-space:normal!important;overflow-wrap:anywhere!important;
}
/* 3. Нижняя строка в ту же сетку */
.priem-footer .priem-footer-bottom{
  max-width:1280px!important;margin:0 auto!important;
  display:flex!important;flex-wrap:wrap!important;
  align-items:center!important;justify-content:space-between!important;
  gap:10px 24px!important;
}
/* 4. Мобильная: одна колонка, без искусственной высоты 562px */
@media (max-width:767px){
  .priem-footer{padding:22px 16px 16px!important;min-height:0!important;}
  .priem-footer .priem-footer-grid{grid-template-columns:1fr!important;gap:18px!important;}
  .priem-footer .priem-footer-bottom{flex-direction:column!important;align-items:flex-start!important;gap:8px!important;}
}



/* ===== ВАСЯ · сетка «меню | контент» для всех страниц =====
   Причина прежних наездов: у контентной колонки стояла жёсткая ширина 978px,
   и 330 + 16 + 978 было больше контейнера 1320 → заголовок падал под меню.
   Теперь ширина контента не задаётся, а вычисляется (flex:1 1 0). */

