/*
Theme Name: ОРСД Наследие
Theme URI: https://serbia.siteindev.ru/
Author: АНО ОРСД
Description: Тема по объединённому макету «сайт + Наследие».
Version: 1.0.13
Text Domain: orsd
*/

.page-shell{padding:56px 6% 80px;max-width:1600px;margin:0 auto}
.page-shell .eyebrow{color:#8a5551;margin-bottom:14px}
.page-shell h1{font-size:clamp(36px,4.5vw,58px);margin:0 0 18px}
.page-shell .lead{max-width:62ch;font-size:16px}
.page-kicker{font-size:13px;color:#64645f;margin-bottom:28px;max-width:70ch}
.card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:36px}
.card{display:block;background:#fff;border:1px solid #cbc4b7;padding:28px 24px;min-height:180px}
.card small{color:#843d46;letter-spacing:.12em;font-size:11px}
.card h2,.card h3{font-family:Prata,Georgia,serif;font-size:26px;font-weight:400;margin:16px 0 12px}
.card p,.card ul{font-size:14px;color:#64645f;margin:0}
.card ul{padding-left:18px}
.news-list,.item-list{display:grid;gap:0;margin-top:28px}
.news-item{display:flex;gap:24px;align-items:flex-start;padding:24px 0;border-bottom:1px solid #c9c7be}
.news-item small{display:block;font-size:10px;letter-spacing:.08em;color:#76776f}
.news-item h2{font-size:24px;margin:8px 0 6px}
.news-item p{margin:0;font-size:14px}
.badge{color:#843d46;font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
.years{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 10px}
.years a{border:1px solid #cbc4b7;background:#fff;min-width:72px;height:40px;display:inline-flex;align-items:center;justify-content:center;padding:0 14px;font-size:14px}
.years a.is-on,.years a:hover{background:#304e59;color:#fff;border-color:#304e59}
.support-page{display:grid;grid-template-columns:220px 1fr;gap:40px;margin-top:36px;align-items:start}
.support-page .qr{width:220px;height:220px;background:#fff;border:1px solid #304e59;padding:12px}
.requisites{display:grid;grid-template-columns:1fr 1fr;gap:12px 28px;margin:0}
.requisites div{border-top:1px solid #dcd6c9;padding-top:10px}
.requisites dt{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#8a5551}
.requisites dd{margin:4px 0 0;font-size:16px}
.merged header .current-menu-item a,.merged header nav a.current{border-bottom:1px solid #fff}
body.merged,body.merged p,body.merged a,body.merged li,body.merged small,body.merged button,body.merged input{
  font-family:Manrope,Arial,sans-serif!important;
}
body.merged h1,body.merged h2,body.merged h3,body.merged h4,
.directions h3,.article h3,.card h2,.card h3,.news-item h2,.page-shell h1{
  font-family:Prata,Georgia,serif!important;
  font-weight:400!important;
  letter-spacing:-.04em;
  color:#263c3e;
}
body.merged p,.directions p,.article p,.card p,.entry p,.news-item p,.page-shell .lead{
  font-size:15px!important;
  line-height:1.8;
  color:#5d6564;
}
.directions h3,.article h3,.card h3{font-size:22px!important;line-height:1.4;margin-top:18px}
.merged header nav a,.merged footer a,.merged .text-link,.merged .button,.merged .support{
  font-family:Manrope,Arial,sans-serif!important;
}
.button,.merged .button,.merged header .support,.support-page .button{
  font-size:16px;
  letter-spacing:.01em;
}
.merged header .support{padding:14px 20px}
.arrow,.article>span:last-child:not(.article-no),
.fa-external-link,.fa-external-link-alt,.fa-arrow-up-right-from-square,
.dashicons-external,.uncode-info-box,i[class*="external"],
a i.fa,a i.fas,a i.far,a .fa,a svg,
main a::after,main a::before,header a::after,header a::before,footer a::after,footer a::before,
.button span,.support i,.button i,.support svg,.button svg{
  display:none!important;
  content:none!important;
  background:none!important;
  width:0!important;
  height:0!important;
  overflow:hidden!important;
}
.landscape-hero h1,
.landscape-hero h1 em,
.landscape-hero p,
.landscape-hero .eyebrow,
.landscape-hero .text-link,
.landscape-bottom,
.landscape-bottom span{
  color:#fff!important;
}
.landscape-hero h1 em{color:#fff8ee!important}
.landscape-hero p{color:rgba(255,255,255,.94)!important}
.landscape-hero h1,
.landscape-hero p,
.landscape-hero .eyebrow,
.landscape-bottom{
  text-shadow:0 2px 16px rgba(8,18,22,.6);
}
.landscape-hero .text-link{border-color:rgba(255,255,255,.75)}
.join h2,.join h2 em,.join .eyebrow,.join p,
.merged footer,.merged footer p,.merged footer a{
  color:#fff!important;
}
.join p,.merged footer p{color:rgba(255,255,255,.88)!important}
.join .eyebrow{color:#e4d7bc!important}
.article-shell{max-width:820px}
.article-shell h1{font-size:clamp(28px,4vw,46px);line-height:1.28;max-width:22em}
.article-figure{position:relative!important;display:block!important;margin:8px 0 36px!important;padding:0!important;width:100%!important}
.article-figure img{display:block!important;width:100%!important;height:auto!important;position:static!important}
.article-figure figcaption{
  position:static!important;
  display:block!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  bottom:auto!important;
  width:auto!important;
  max-width:62ch;
  margin:10px 0 0!important;
  padding:0!important;
  background:none!important;
  color:#76776f!important;
  font-size:13px!important;
}
.article-byline{display:grid;gap:4px;margin:0 0 32px;font-size:14px;color:#5d6564}
.article-byline strong{display:block;font-family:Manrope,Arial,sans-serif;font-weight:600;color:#263c3e}
.article-shell .entry{max-width:none}
.article-shell .entry p{margin:0 0 1.15em}
.article-shell .entry a{color:#843d46;border-bottom:1px solid rgba(132,61,70,.35)}
.article-shell .entry sup a{border:0;font-size:12px}
.article-author{font-size:14px!important;color:#5d6564!important;margin-bottom:28px!important}
.epigraph{margin:0 0 36px;padding:22px 0 22px 22px;border-left:2px solid #843d46}
.epigraph p{font-family:Prata,Georgia,serif!important;font-size:20px!important;line-height:1.45!important;color:#263c3e!important;margin:0 0 .4em!important}
.epigraph cite{display:block;font-style:normal;font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#8a5551}
.article-shell blockquote{margin:28px 0;padding:4px 0 4px 22px;border-left:2px solid #c9c7be}
.article-shell blockquote p{color:#263c3e!important;margin:0 0 .7em}
.article-shell blockquote p:last-child{margin-bottom:0}
.love-list{margin:28px 0;padding:24px 26px;background:#fff;border:1px solid #d8d2c6}
.love-list p{margin:0 0 12px!important;color:#263c3e!important}
.love-list ul{margin:0;padding-left:18px;color:#5d6564}
.love-list li{margin:0 0 6px}
.article-notes,.article-footnotes{margin-top:48px;padding-top:24px;border-top:1px solid #d8d2c6}
.article-notes h2,.article-footnotes h2{font-size:22px!important;margin:0 0 16px}
.article-footnotes ol{margin:0;padding-left:22px;color:#5d6564}
.article-footnotes li{margin:0 0 8px;font-size:13px;line-height:1.6}
.article-footnotes a{word-break:break-word}
.article-legal{font-size:13px!important;color:#76776f!important}
.article-pdf{margin-top:28px}
.page-shell .entry{max-width:none}
.card h3 a{color:inherit;border:0}
.place-meta{margin-top:14px!important;font-size:13px!important;color:#263c3e!important;line-height:1.55}
.page-shell .entry .text-link,.page-shell .entry a.text-link{color:#843d46;border-bottom:1px solid rgba(132,61,70,.35)}
.footer-contacts{display:grid;gap:8px;justify-items:end}
.footer-contacts p{margin:8px 0 0}
.join a{color:inherit;border-bottom:1px solid rgba(255,255,255,.45)}
@media(max-width:900px){
  .card-grid,.support-page,.requisites{grid-template-columns:1fr}
  .news-item{flex-direction:column;gap:8px}
  .footer-contacts{justify-items:start}
}

/* Hierarchical header navigation */
.merged header{height:auto;min-height:116px;flex-wrap:nowrap;padding-top:18px;padding-bottom:18px;gap:32px;box-sizing:border-box}
.merged header .brand{flex:0 0 auto}
.merged header nav{width:auto;flex:1 1 auto;min-width:0;order:0;display:block;position:static;padding:0;background:transparent;box-shadow:none}
.primary-menu,.primary-menu .sub-menu{list-style:none;margin:0;padding:0}
.primary-menu{display:flex;align-items:stretch;justify-content:space-between;gap:10px}
.primary-menu li{position:relative}
.merged header .primary-menu a{display:block;color:#fff;border:0;padding:16px 0;text-decoration:none}
.primary-menu>li>a{font-size:11px;font-weight:700;text-transform:uppercase;white-space:nowrap}
.primary-menu .sub-menu{display:none;position:absolute;top:100%;left:0;min-width:190px;width:max-content;max-width:300px;background:#12181b;padding:8px 0;box-shadow:0 8px 20px #0003;z-index:30}
.merged header .primary-menu .sub-menu a{font-size:13px;line-height:1.5;padding:9px 18px;white-space:normal}
.primary-menu .sub-menu .sub-menu{left:100%;top:0;min-width:130px}
.primary-menu li.is-open>.sub-menu{display:block}
.merged header .primary-menu a:hover,.merged header .primary-menu a:focus-visible,.merged header .primary-menu .current-menu-item>a{color:#81c5df;background:#ffffff09}
.submenu-toggle{position:absolute;right:2px;top:8px;width:28px;height:32px;border:0;background:transparent;color:#fff;cursor:pointer;font-size:15px}
.merged header .primary-menu .menu-item-has-children>a{padding-right:30px}
.primary-menu .sub-menu .submenu-toggle{top:4px}
@media(hover:hover) and (min-width:1451px){.primary-menu li:hover>.sub-menu{display:block}}
@media(min-width:1451px){.merged header .menu{display:none}}
@media(min-width:1451px) and (max-width:1650px){.merged header{gap:24px}.merged header .brand img{width:240px}}
@media(max-width:1450px){
.merged header{min-height:94px;padding-top:18px;padding-bottom:18px}
.merged header .menu{display:block;background:transparent;border:1px solid #ffffff70;color:#fff;width:40px;height:40px;border-radius:50%}
.merged header nav{display:none;position:absolute;top:100%;left:0;right:0;width:100%;background:#304e59;padding:12px 6% 24px;max-height:calc(100dvh - 94px);overflow-y:auto;box-sizing:border-box}
.merged header nav.open{display:block}
.primary-menu{display:block}
.primary-menu>li{border-bottom:1px solid #ffffff20}
.primary-menu>li>a{font-size:13px;white-space:normal}
.primary-menu .sub-menu,.primary-menu .sub-menu .sub-menu{position:static;width:auto;max-width:none;min-width:0;box-shadow:none;margin:0 0 6px 14px;padding:4px 0}
.primary-menu .sub-menu .sub-menu{background:#ffffff08}
.submenu-toggle{width:40px;height:40px;top:4px}
.merged header .primary-menu .menu-item-has-children>a{padding-right:44px}
}

/* Refined header: deep teal, warm metal accents and quiet motion. */
.merged header{
  background:radial-gradient(ellipse at 10% 0%,#41636c80,transparent 55%),linear-gradient(115deg,#2d4b55 0%,#233d47 70%,#203640 100%);
  border-bottom:1px solid #d9c49b66;
  box-shadow:0 4px 22px #142a3026;
  min-height:124px;
}
.merged header .brand{padding-right:28px;border-right:1px solid #e1d2b52b;transition:opacity .2s ease}
.merged header .brand:hover{opacity:.85}
.merged header .brand img{width:270px;filter:drop-shadow(0 2px 4px #10282e33)}
.primary-menu{gap:6px;align-items:center}
.merged header .primary-menu>li>a{
  padding:15px 8px;
  border-radius:5px;
  color:#f3f0e9;
  font-size:11px;
  letter-spacing:.025em;
  line-height:1.5;
  transition:color .18s ease,background .18s ease,box-shadow .18s ease;
}
.merged header .primary-menu>.menu-item-has-children>a{padding-right:26px}
.merged header .primary-menu>li>a:hover,
.merged header .primary-menu>li.is-open>a,
.merged header .primary-menu>li.current-menu-item>a,
.merged header .primary-menu>li.current-menu-ancestor>a{
  color:#ead6ae;background:#ffffff07;box-shadow:inset 0 -2px #d6bd8d;
}
.submenu-toggle{right:1px;top:7px;width:24px;height:32px;color:#d6bd8d;border-radius:4px;transition:background .18s ease,transform .18s ease}
.submenu-toggle:hover{background:#ffffff12}
.submenu-toggle[aria-expanded="true"]{transform:rotate(180deg)}
.merged header .primary-menu a:focus-visible,.merged header button:focus-visible{outline:2px solid #ead6ae;outline-offset:3px}
.primary-menu .sub-menu{
  background:#1e333b;
  border:1px solid #d9c49b33;
  border-top:2px solid #d6bd8d;
  border-radius:0 0 8px 8px;
  padding:9px 6px;
  box-shadow:0 14px 32px #0d20284d;
}
.merged header .primary-menu .sub-menu a{padding:10px 14px;border-radius:4px;color:#ecebe5;font-size:13px;transition:background .18s ease,color .18s ease}
.merged header .primary-menu .sub-menu a:hover,
.merged header .primary-menu .sub-menu .current-menu-item>a{background:#ffffff0d;color:#ead6ae}
.primary-menu .sub-menu .submenu-toggle{top:5px;right:3px}
.primary-menu .sub-menu .sub-menu{border-radius:0 7px 7px 7px}
.merged header .primary-menu>#menu-item-86583>a{
  border:1px solid #d8bf9266;
  background:#d8bf9210;
  color:#f0dfbf;
  padding:13px 14px;
  border-radius:5px;
  box-shadow:none;
}
.merged header .primary-menu>#menu-item-86583>a:hover{background:#e3cda4;color:#233d47;border-color:#e3cda4}
@media(min-width:1451px) and (max-width:1700px){
  .merged header{padding-left:4%;padding-right:4%;gap:20px}
  .merged header .brand{padding-right:20px}
  .merged header .brand img{width:225px}
  .merged header .primary-menu>li>a{font-size:10px;padding-left:6px;padding-right:6px;letter-spacing:0}
  .merged header .primary-menu>.menu-item-has-children>a{padding-right:24px}
  .merged header .primary-menu>#menu-item-86583>a{padding:12px 10px}
}
@media(max-width:1450px){
  .merged header{min-height:98px}
  .merged header .brand{border:0;padding-right:0}
  .merged header .brand img{width:250px;max-width:68vw}
  .merged header .menu{border-radius:8px;border-color:#d9c49b66;background:#ffffff06;color:#ead6ae;transition:background .18s ease}
  .merged header .menu:hover,.merged header .menu[aria-expanded="true"]{background:#ffffff13}
  .merged header nav{background:#253f49;border-top:1px solid #d9c49b33;max-height:calc(100dvh - 98px)}
  .merged header .primary-menu>li>a{font-size:12px;padding:16px 8px}
  .merged header .primary-menu>.menu-item-has-children>a{padding-right:46px}
  .primary-menu .sub-menu{border:0;border-left:1px solid #d9c49b55;border-radius:0;box-shadow:none;background:#1e333b;margin-left:8px}
  .primary-menu .sub-menu .sub-menu{border-radius:0}
  .submenu-toggle{width:40px;height:40px;top:5px}
  .primary-menu .sub-menu .submenu-toggle{top:1px}
  .primary-menu>#menu-item-86583{padding:12px 0;border-bottom:0}
  .merged header .primary-menu>#menu-item-86583>a{text-align:center;padding:14px}
}
@media(prefers-reduced-motion:reduce){.merged header .brand,.merged header .primary-menu a,.merged header button{transition:none}}

/* Wide gold chevrons matching the header reference. */
.merged header .submenu-toggle{display:grid;place-items:center;color:#d6b574;padding:0}
.merged header .submenu-chevron{display:block;width:18px;height:10px;overflow:visible;pointer-events:none}

/* Add 5px of breathing room before desktop chevrons. */
@media(min-width:1451px){
 .merged header .primary-menu>.menu-item-has-children>a{padding-right:31px}
 .merged header .primary-menu .sub-menu .menu-item-has-children>a{padding-right:35px}
}
@media(min-width:1451px) and (max-width:1700px){
 .merged header .primary-menu>.menu-item-has-children>a{padding-right:29px}
}
