:root{--red:#c21d1d;--red-dark:#9f1515;--yellow:#ffe9a6;--ink:#1f2937;--muted:#667085;--line:#e5e7eb;--bg:#f6f7f9;--white:#fff;--shadow:0 20px 45px rgba(16,24,40,.08)}*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;color:var(--ink);background:var(--bg);font-size:16px;line-height:1.55}a{color:inherit;text-decoration:none}.topbar{height:76px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 56px;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10}.brand{font-size:26px;font-weight:900;color:var(--red)}.brand span{background:var(--red);color:#fff;border-radius:12px;padding:5px 8px;margin-right:6px}.topbar nav{display:flex;gap:28px;font-weight:800}.topbar nav a:hover{color:var(--red)}.flash-wrap{position:fixed;right:24px;top:90px;z-index:20;display:grid;gap:10px}.flash{background:#fff;border:1px solid var(--line);border-left:5px solid var(--red);box-shadow:var(--shadow);padding:12px 16px;border-radius:12px}.flash.success{border-left-color:#16a34a}.hero{display:grid;grid-template-columns:minmax(0,1.4fr) 460px;gap:70px;padding:92px 56px;background:linear-gradient(110deg,#fff8db 0%,#fff 50%,#f9fafb 100%);border-bottom:1px solid var(--line)}.eyebrow{color:var(--red);text-transform:uppercase;letter-spacing:.08em;font-weight:900;margin-bottom:16px}.hero h1{font-size:58px;line-height:1.06;margin:0 0 24px;letter-spacing:-.04em}.hero p{font-size:22px;color:var(--muted);max-width:820px}.search-row{display:grid;grid-template-columns:1fr 170px;gap:14px;margin-top:34px;max-width:860px}.search-row input,input,select,textarea{width:100%;border:1px solid #d9dde5;border-radius:16px;padding:16px 18px;font:inherit;background:#fff;outline:none}.search-row input:focus,input:focus,select:focus,textarea:focus{border-color:var(--red);box-shadow:0 0 0 4px rgba(194,29,29,.08)}button,.btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:16px;padding:15px 22px;font-weight:900;font-size:15px;background:var(--red);color:#fff;cursor:pointer}.btn:hover,button:hover{background:var(--red-dark)}.btn.full{width:100%}.btn-outline{border:1px solid var(--red);color:var(--red);background:#fff;border-radius:16px;padding:14px 18px;display:inline-flex;justify-content:center;font-weight:900}.chips{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.chips a{background:#fff;border:1px solid #f0d06c;color:var(--red);font-weight:800;padding:8px 13px;border-radius:999px}.stats-card{background:#fff;border:1px solid var(--line);border-radius:30px;padding:34px;box-shadow:var(--shadow);align-self:center}.stats-card div{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding:22px 0}.stats-card div:first-child{padding-top:0}.stats-card div:nth-child(3){border-bottom:0}.stats-card strong{font-size:42px;color:var(--red)}.stats-card span{font-weight:800;color:var(--muted)}.section{padding:64px 56px}.section-title{display:flex;align-items:flex-start;gap:22px;margin-bottom:26px}.section-title span{font-weight:900;color:var(--red);background:#fff;border:1px solid var(--line);border-radius:12px;padding:8px 10px}.section-title h2{font-size:34px;margin:0;letter-spacing:-.02em}.features{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.feature,.vacancy-card,.news-card,.form-card,.filters,.detail-main,.detail-side,.vacancy-list-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:24px;box-shadow:0 10px 25px rgba(16,24,40,.04)}.feature h3,.vacancy-card h3,.news-card h3{margin-top:0}.split{display:grid;grid-template-columns:1fr 1fr;gap:38px}.cards{display:grid;gap:16px}.cards.compact{grid-template-columns:1fr}.vacancy-card:hover,.news-card:hover{border-color:var(--red);transform:translateY(-2px)}.vacancy-card,.news-card{transition:.18s}.muted{color:var(--muted)}.page-head{padding:56px 56px 26px;background:#fff;border-bottom:1px solid var(--line)}.page-head h1{font-size:48px;line-height:1.1;margin:0 0 8px}.page-head p{font-size:20px;color:var(--muted);margin:0}.layout{display:grid;grid-template-columns:320px 1fr;gap:28px;padding:32px 56px 64px}.filters{height:max-content;position:sticky;top:98px}.filters form{display:grid;gap:12px}.filters label,.form-card label,.admin-form label{font-weight:850;margin-top:8px}.link-reset{text-align:center;color:var(--red);font-weight:800}.results{display:grid;gap:16px}.result-top{font-size:18px}.vacancy-list-card{display:grid;grid-template-columns:1fr 210px;gap:20px;align-items:center}.vacancy-list-card h2{margin:0 0 6px;font-size:25px}.vacancy-list-card h2 a:hover{color:var(--red)}.org{font-weight:850}.side{display:grid;gap:12px;justify-items:end}.side b{font-size:20px;color:var(--red)}.empty{background:#fff;border:1px dashed var(--line);border-radius:24px;padding:30px}.detail-head{display:flex;justify-content:space-between;gap:20px;align-items:center;background:#fff;padding:56px;border-bottom:1px solid var(--line)}.detail-head h1{font-size:44px;line-height:1.1;margin:12px 0}.back{color:var(--red);font-weight:900}.detail-grid{display:grid;grid-template-columns:1fr 360px;gap:28px;padding:32px 56px 64px}.detail-main h2{margin-top:8px}.detail-side{height:max-content;display:grid;gap:18px}.detail-side div{border-bottom:1px solid var(--line);padding-bottom:16px}.detail-side span{display:block;color:var(--muted);font-weight:800;margin-bottom:4px}.detail-side b{font-size:20px}.form-page{min-height:calc(100vh - 160px);display:grid;place-items:center;padding:56px}.form-card{width:min(720px,100%)}.form-card.narrow{width:min(420px,100%)}.form-card h1{font-size:36px;margin:0 0 10px}.form-card form,.admin-form{display:grid;gap:12px}.privacy{font-size:14px;color:var(--muted)}.news-grid{grid-template-columns:repeat(3,1fr)}.article{max-width:900px;background:#fff;border:1px solid var(--line);border-radius:28px;margin:40px auto;padding:42px;box-shadow:var(--shadow)}.article h1{font-size:42px;line-height:1.1}.article-body{font-size:18px}.footer{display:flex;justify-content:space-between;gap:20px;padding:34px 56px;background:#111827;color:#d1d5db}.admin-shell{display:grid;grid-template-columns:260px 1fr;min-height:calc(100vh - 76px)}.admin-menu{background:#111827;color:#fff;padding:24px;display:grid;align-content:start;gap:8px}.admin-menu a{padding:11px 12px;border-radius:12px;color:#e5e7eb}.admin-menu a:hover{background:#263244}.admin-content{padding:32px;overflow:auto}.admin-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:20px 0}.admin-stats div{background:#fff;border:1px solid var(--line);border-radius:20px;padding:22px}.admin-stats b{display:block;font-size:34px;color:var(--red)}table{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;margin:18px 0}th,td{text-align:left;border-bottom:1px solid var(--line);padding:13px;vertical-align:top}th{background:#f9fafb}.admin-title-row{display:flex;justify-content:space-between;align-items:center}.check{display:flex;gap:10px;align-items:center}.check input{width:auto}@media(max-width:900px){.topbar{padding:16px 20px;height:auto;align-items:flex-start;gap:15px;flex-direction:column}.topbar nav{gap:14px;flex-wrap:wrap}.hero,.split,.layout,.detail-grid,.vacancy-list-card,.admin-shell{grid-template-columns:1fr}.hero{padding:46px 20px}.hero h1{font-size:40px}.section,.page-head,.detail-head,.detail-grid,.layout{padding-left:20px;padding-right:20px}.features,.news-grid,.admin-stats{grid-template-columns:1fr}.search-row{grid-template-columns:1fr}.side{justify-items:start}.filters{position:static}.footer{flex-direction:column;padding:28px 20px}}

/* RKC visual identity imported from earlier Flask demo */
:root{--bg:#f7f2e8;--paper:#fffdf8;--card:#ffffff;--text:#281b17;--muted:#765f55;--red:#b32024;--red-dark:#741215;--gold:#d8a63b;--gold-soft:#fff1c7;--line:#ead8bb;--shadow:0 18px 42px rgba(70,35,25,.10);--soft-shadow:0 10px 28px rgba(70,35,25,.07)}
body{background:var(--bg);color:var(--text)}
a{color:inherit}.rkc-topbar{height:auto;min-height:82px;background:rgba(255,253,248,.94);border-bottom:1px solid var(--line);backdrop-filter:blur(16px);padding:14px 56px}.rkc-brand{display:flex;align-items:center;gap:12px;color:var(--red);font-size:20px;letter-spacing:-.03em}.rkc-brand img{width:54px;height:54px;border-radius:14px;object-fit:cover;border:1px solid var(--line)}.rkc-brand .brand-text{display:grid;line-height:1.05}.rkc-brand small{font-size:12px;font-weight:800;color:var(--muted);letter-spacing:0;margin-top:3px}.rkc-topbar nav a{color:#4b3128}.rkc-topbar nav a:hover{color:var(--red);background:var(--gold-soft)}.admin-link{border:1px solid #e1bd63;background:#fff5d6;color:var(--red)!important;border-radius:10px;padding:8px 10px}.rkc-hero{background:radial-gradient(circle at 78% 18%,rgba(255,212,99,.44),transparent 25%),linear-gradient(135deg,#bb2227 0%,#8c1519 48%,#5f1013 100%);color:#fff;position:relative;overflow:hidden;border-bottom:0}.rkc-hero:after{content:"";position:absolute;right:-160px;bottom:-260px;width:580px;height:580px;border-radius:50%;background:rgba(255,255,255,.07)}.rkc-hero>*{position:relative;z-index:1}.rkc-hero .eyebrow{color:#ffe3a3}.rkc-hero h1{color:#fff}.rkc-hero p{color:rgba(255,255,255,.92)}.rkc-search{grid-template-columns:1fr 150px;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.25);padding:12px;border-radius:22px;backdrop-filter:blur(10px)}.rkc-search input{border:0}.hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:18px}.btn.secondary,button.secondary{background:var(--gold);color:#261b12;box-shadow:0 10px 24px rgba(216,166,59,.25)}.btn.ghost{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.25);box-shadow:none}.rkc-chips a{border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.12);color:#fff}.rkc-panel{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.25);box-shadow:0 20px 60px rgba(0,0,0,.14);backdrop-filter:blur(14px)}.rkc-panel .panel-topline{font-weight:900;opacity:.9;margin-bottom:12px}.rkc-panel div{border-bottom:1px solid rgba(255,255,255,.22)}.rkc-panel div:last-of-type{border-bottom:0}.rkc-panel strong{color:#ffe3a3}.rkc-panel span{color:#fff;opacity:.9}.lift-section{margin-top:-44px;position:relative;z-index:3}.rkc-features .feature{border-color:var(--line);box-shadow:var(--soft-shadow)}.rkc-features .feature span{display:inline-grid;place-items:center;width:42px;height:42px;border-radius:14px;background:var(--gold-soft);color:var(--red);font-weight:900;margin-bottom:12px}.feature,.vacancy-card,.news-card,.form-card,.filters,.detail-main,.detail-side,.vacancy-list-card,.article{background:var(--card);border-color:var(--line);box-shadow:var(--soft-shadow)}.page-head{background:var(--paper);border-bottom-color:var(--line)}.vacancy-card:hover,.news-card:hover{border-color:var(--gold);box-shadow:var(--shadow)}.footer.rkc-footer{background:#281b17;color:#f2dfc9}.rkc-footer{display:flex;justify-content:space-between;gap:20px}.footer-brand{display:flex;align-items:center;gap:12px}.footer-brand img{width:42px;height:42px;border-radius:10px;object-fit:cover}.footer-links{display:grid;gap:8px}.footer-links a{color:#f2dfc9;font-weight:800}.about-page{max-width:1080px;padding:0;background:transparent;border:0;box-shadow:none}.about-hero{display:grid;grid-template-columns:1fr 220px;gap:28px;align-items:center;background:linear-gradient(135deg,#fffdf8,#fff5d9);border:1px solid var(--line);border-radius:28px;padding:34px;margin-bottom:24px;box-shadow:var(--soft-shadow)}.about-hero h1{font-size:42px;line-height:1.08;margin:0 0 16px;letter-spacing:-.04em}.about-hero p{color:var(--muted);font-size:18px}.about-logo{width:190px;border-radius:26px;border:1px solid var(--line);box-shadow:var(--soft-shadow)}.about-main-image{width:100%;border-radius:28px;border:1px solid var(--line);box-shadow:var(--soft-shadow);margin-bottom:24px;display:block}.content-card{background:var(--card);border:1px solid var(--line);border-radius:26px;padding:28px;margin:20px 0;box-shadow:var(--soft-shadow)}.content-card h2{font-size:30px;margin:0 0 14px;letter-spacing:-.03em}.rich-list{display:grid;gap:10px;padding-left:24px}.contacts-card{background:#fff8e5}.eyebrow{color:var(--red);text-transform:uppercase;letter-spacing:.1em;font-weight:900}
@media(max-width:900px){.rkc-topbar{padding:14px 20px}.rkc-brand{font-size:18px}.rkc-hero{padding:46px 20px}.about-hero{grid-template-columns:1fr}.about-logo{width:150px}.rkc-footer{flex-direction:column}.hero-actions{flex-direction:column;align-items:stretch}}

/* Portal expansion: RKC header and content sections */
.rkc-topbar{min-height:112px;padding:18px 56px;gap:28px}
.rkc-brand img{width:92px;height:92px;border-radius:22px;background:#fffdf8;padding:4px;box-shadow:0 10px 26px rgba(70,35,25,.12)}
.rkc-brand .brand-text{background:var(--red);color:#fff;border-radius:18px;padding:10px 18px 12px;box-shadow:0 12px 28px rgba(179,32,36,.18)}
.rkc-brand{gap:16px}
.rkc-brand .brand-text{font-size:31px;font-weight:950;letter-spacing:-.045em}
.rkc-brand small{font-size:17px;color:#ffe5a0;font-weight:900;letter-spacing:-.015em;margin-top:5px}
.rkc-topbar nav{gap:20px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.rkc-topbar nav a{font-size:18px;font-weight:950;padding:8px 10px;border-radius:12px;white-space:nowrap}
.admin-link{padding:12px 16px!important;border-radius:16px!important;font-size:19px!important}
.page-hero{display:flex;align-items:center;justify-content:space-between;gap:26px;padding:52px 56px;border-bottom:1px solid var(--line)}
.page-hero.soft{background:linear-gradient(135deg,#fffdf8,#fff4db)}
.page-hero.two-col{display:grid;grid-template-columns:minmax(0,1fr) 280px}
.page-hero h1{font-size:48px;line-height:1.08;margin:0 0 12px;letter-spacing:-.04em}
.page-hero p{font-size:19px;color:var(--muted);max-width:850px;margin:0}
.mini-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:24px;box-shadow:var(--soft-shadow);font-size:18px}
.directory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding:34px 56px 64px}
.directory-grid.compact{grid-template-columns:repeat(4,minmax(0,1fr))}
.directory-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:24px;box-shadow:var(--soft-shadow)}
.directory-card h3{margin:6px 0 12px;font-size:22px;line-height:1.2}
.directory-card p{color:var(--muted)}
.directory-card a{color:var(--red);font-weight:900}
.directory-meta,.badge{display:inline-flex;background:var(--gold-soft);color:var(--red);border:1px solid #ead084;border-radius:999px;padding:5px 10px;font-weight:900;font-size:13px}
.page-text{max-width:980px;margin:34px auto 64px;font-size:18px}.page-text p{margin:0 0 14px}
.form-section{padding:34px 56px 64px;display:grid;place-items:start center}.form-section .form-card{width:min(760px,100%)}
.doc-list{display:grid;gap:14px}.doc-item{display:flex;justify-content:space-between;gap:20px;align-items:center;border-bottom:1px solid var(--line);padding:18px 0}.doc-item:last-child{border-bottom:0}.doc-item h3{margin:8px 0 6px}
.admin-head{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:18px}.admin-table{margin-top:0}.checkbox{display:flex!important;align-items:center;gap:10px}.checkbox input{width:auto!important}
@media(max-width:1100px){.rkc-brand .brand-text{font-size:24px}.rkc-brand small{font-size:14px}.rkc-brand img{width:76px;height:76px}.directory-grid,.directory-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))}.page-hero.two-col{grid-template-columns:1fr}}
@media(max-width:760px){.rkc-topbar{padding:14px 18px}.rkc-brand .brand-text{font-size:20px}.rkc-brand small{font-size:12px}.rkc-brand img{width:64px;height:64px}.page-hero{padding:36px 20px;display:block}.page-hero h1{font-size:34px}.directory-grid,.directory-grid.compact{grid-template-columns:1fr;padding:24px 20px 44px}.form-section{padding:24px 20px 44px}.doc-item{display:block}}
/* Added portal improvements */
.active-filters{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.active-filters span{background:var(--gold-soft);border:1px solid #ead084;border-radius:999px;padding:5px 10px;font-weight:800;color:var(--red)}.vacancy-snippet{margin:10px 0 0;color:var(--muted)}.lead{font-size:20px;color:var(--muted);font-weight:700}.news-thumb{width:100%;height:180px;object-fit:cover;border-radius:18px;margin-bottom:16px;border:1px solid var(--line)}.article-image{width:100%;max-height:420px;object-fit:cover;border-radius:24px;margin-bottom:22px;border:1px solid var(--line)}.admin-thumb{width:86px;height:54px;object-fit:cover;border-radius:10px;border:1px solid var(--line)}.admin-preview{width:240px;max-height:150px;object-fit:cover;border-radius:14px;border:1px solid var(--line)}.image-current{display:grid;gap:8px;justify-items:start}.btn-danger{background:#7f1d1d;color:#fff;border-radius:10px;padding:8px 12px;font-weight:900;border:0;cursor:pointer}.btn-danger:hover{background:#991b1b}.filters select{max-height:54px}.result-top{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;flex-wrap:wrap}

/* V3 updates: logo image from RKC reference, information dropdown, cabinet wording */
.portal-topbar{
  min-height:118px;
  padding:18px 46px;
  background:#fff8ef;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
}
.logo-brand{flex:0 0 auto;display:block;max-width:560px}
.logo-brand img{
  width:520px!important;
  height:auto!important;
  max-height:110px;
  object-fit:contain!important;
  border-radius:0!important;
  border:0!important;
  padding:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.portal-nav{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex-wrap:wrap}
.portal-nav>a,.nav-dropdown>button{
  color:#4b3128;
  text-decoration:none;
  font-size:18px;
  font-weight:950;
  padding:11px 12px;
  border-radius:14px;
  border:0;
  background:transparent;
  cursor:pointer;
  font-family:inherit;
  white-space:nowrap;
}
.portal-nav>a:hover,.nav-dropdown:hover>button{background:#fff1c7;color:#b32024}
.nav-dropdown{position:relative;display:inline-flex;align-items:center}
.nav-dropdown>button::after{content:"▾";font-size:13px;margin-left:7px;color:#d8a63b}
.nav-dropdown-menu{
  position:absolute;
  top:100%;
  left:0;
  min-width:280px;
  background:#fffdf8;
  border:1px solid var(--line);
  border-radius:18px;
  padding:8px;
  box-shadow:0 18px 42px rgba(70,35,25,.14);
  display:none;
  z-index:50;
}
.nav-dropdown:hover .nav-dropdown-menu{display:grid;gap:4px}
.nav-dropdown-menu a{padding:12px 14px;border-radius:12px;text-decoration:none;color:#4b3128;font-weight:900}
.nav-dropdown-menu a:hover{background:#fff1c7;color:#b32024}
.admin-link{border:2px solid #e1bd63!important;background:#fff5d6!important;color:#b32024!important;padding:12px 18px!important;border-radius:18px!important}
.social-links{display:flex;gap:14px;flex-wrap:wrap}.social-links a{color:#ffe5a0;font-weight:900}.footer-brand img{width:170px!important;height:auto!important;border-radius:0!important;object-fit:contain!important;background:transparent!important}
.admin-search{display:grid;grid-template-columns:1fr auto;gap:12px;margin:16px 0 22px}.actions-cell{display:flex;gap:12px;align-items:center}.actions-cell form{margin:0}.link-danger{border:0;background:transparent;color:#b91c1c;font-weight:900;cursor:pointer;padding:0;font:inherit}.link-danger:hover{text-decoration:underline}.form-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:16px}.wide-form{max-width:920px}
@media(max-width:1180px){.portal-topbar{align-items:flex-start;flex-direction:column}.logo-brand img{width:min(520px,90vw)!important}.portal-nav{justify-content:flex-start}.nav-dropdown-menu{left:0}}
@media(max-width:760px){.portal-topbar{padding:14px 18px}.logo-brand img{width:min(420px,92vw)!important}.portal-nav{gap:8px}.portal-nav>a,.nav-dropdown>button{font-size:15px;padding:9px 9px}.nav-dropdown-menu{position:absolute;min-width:240px}.form-grid-2,.admin-search{grid-template-columns:1fr}}


/* V4 fixes: real text logo, safe dropdown, social links in header, about page logo */
.portal-topbar{
  min-height:108px;
  padding:18px 46px;
  background:#fff8ef;
  align-items:center;
  overflow:visible;
}
.text-logo-brand{
  display:flex!important;
  align-items:center!important;
  gap:18px!important;
  max-width:680px!important;
  flex:0 0 auto!important;
  text-decoration:none!important;
}
.text-logo-brand .brand-mark{
  width:96px!important;
  height:96px!important;
  object-fit:contain!important;
  border-radius:24px!important;
  border:1px solid #ead8bb!important;
  background:#fffdf8!important;
  padding:4px!important;
  box-shadow:0 12px 26px rgba(70,35,25,.08)!important;
}
.brand-copy{display:grid;line-height:1.05;min-width:0}
.brand-copy strong{
  color:#7d1028;
  font-size:32px;
  font-weight:950;
  letter-spacing:-.045em;
  white-space:normal;
}
.brand-copy small{
  color:#75635b;
  font-size:18px;
  font-weight:900;
  margin-top:8px;
  letter-spacing:-.02em;
}
.header-right{display:grid;justify-items:end;gap:12px;min-width:0}
.header-socials{display:flex;align-items:center;gap:10px;padding-right:10px}
.header-socials a{
  display:inline-grid;
  place-items:center;
  min-width:38px;
  height:34px;
  padding:0 9px;
  border-radius:12px;
  background:#fffdf8;
  border:1px solid #ead8bb;
  color:#7d1028;
  font-size:12px;
  font-weight:950;
  text-decoration:none;
  box-shadow:0 8px 18px rgba(70,35,25,.06);
}
.header-socials a:hover{background:#fff1c7;color:#b32024}
.portal-nav{gap:10px;max-width:100%;position:relative}.portal-nav>a,.nav-dropdown>button{font-size:17px;padding:10px 11px}
.nav-dropdown{position:relative}.nav-dropdown-menu{
  left:auto!important;
  right:0!important;
  width:min(360px, calc(100vw - 40px));
  min-width:0!important;
  max-width:360px;
  overflow:hidden;
  z-index:500;
}
.nav-dropdown-menu a{
  white-space:normal;
  overflow-wrap:anywhere;
  line-height:1.25;
  font-size:17px;
}
.footer-brand img{width:64px!important;height:64px!important;border-radius:16px!important;object-fit:contain!important;background:#fffdf8!important;border:1px solid #ead8bb!important;padding:4px!important}
.about-hero-v4{grid-template-columns:1fr 280px}.about-brand-card{
  background:#fffdf8;border:1px solid var(--line);border-radius:28px;padding:22px;text-align:center;box-shadow:var(--soft-shadow)
}
.about-logo-mark{width:155px;height:155px;object-fit:contain;border-radius:30px;background:#fffdf8;border:1px solid var(--line);padding:5px;margin-bottom:14px}
.about-brand-card strong{display:block;color:#7d1028;font-weight:950;font-size:22px;line-height:1.08;letter-spacing:-.03em}.about-brand-card span{display:block;color:#75635b;font-weight:850;margin-top:8px;line-height:1.18}
.compact-doc-list .doc-item small{color:var(--red);font-weight:900;text-transform:uppercase;letter-spacing:.06em}.compact-doc-list .doc-item p{margin:0;color:var(--muted)}
.admin-table .link-danger{color:#b91c1c}.admin-table .link-danger:hover{text-decoration:underline}
@media(max-width:1280px){.portal-topbar{align-items:flex-start;flex-direction:column}.header-right{justify-items:start}.text-logo-brand{max-width:100%!important}.portal-nav{justify-content:flex-start}.nav-dropdown-menu{left:0!important;right:auto!important}}
@media(max-width:760px){.text-logo-brand .brand-mark{width:76px!important;height:76px!important}.brand-copy strong{font-size:22px}.brand-copy small{font-size:13px}.header-socials{padding-right:0}.portal-nav>a,.nav-dropdown>button{font-size:14px}.about-hero-v4{grid-template-columns:1fr}.about-logo-mark{width:130px;height:130px}}

/* V5 fixes: calmer header identity, bigger mark, safe dropdown, mentorship page */
.portal-topbar{padding:16px 42px;gap:22px;background:#fffaf2}
.text-logo-brand{gap:22px!important;max-width:760px!important}
.text-logo-brand .brand-mark{
  width:118px!important;
  height:118px!important;
  border-radius:50%!important;
  padding:0!important;
  border:0!important;
  background:#fff!important;
  box-shadow:0 12px 28px rgba(74,38,30,.10)!important;
}
.brand-copy strong{
  color:#7b2030!important;
  font-size:34px!important;
  font-weight:950!important;
  letter-spacing:-.045em!important;
}
.brand-copy small{
  color:#6f625d!important;
  font-size:18px!important;
  font-weight:900!important;
}
.header-contacts{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
  font-size:14px;
}
.header-contacts a{
  display:inline-flex;
  align-items:center;
  height:34px;
  padding:0 10px;
  border-radius:12px;
  border:1px solid #ead8bb;
  background:#fffdf8;
  color:#4b3128;
  text-decoration:none;
  font-weight:900;
  box-shadow:0 8px 18px rgba(70,35,25,.05);
}
.header-contacts a:hover{background:#fff1c7;color:#7b2030}
.header-contacts .social-pill{color:#7b2030;min-width:42px;justify-content:center}
.portal-nav{gap:8px;flex-wrap:wrap;align-items:center;justify-content:flex-end}
.portal-nav>a,.nav-dropdown>button{font-size:16px;padding:10px 10px}
.nav-dropdown-menu{
  right:0!important;
  left:auto!important;
  width:min(310px, calc(100vw - 32px))!important;
  max-width:min(310px, calc(100vw - 32px))!important;
  overflow:hidden!important;
}
.nav-dropdown-menu a{font-size:16px!important;line-height:1.2!important;word-break:normal!important;overflow-wrap:break-word!important}
.mentorship-hero{background:linear-gradient(135deg,#fffaf1 0%,#fff 70%);align-items:center}
.mentorship-visual{display:flex;justify-content:center}.mentorship-visual img{max-width:360px;width:100%;height:auto;border-radius:28px;background:#fff;box-shadow:0 24px 56px rgba(76,40,30,.10)}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:24px}.mentorship-gallery-card{max-width:1180px}.wide-report-image{width:100%;border-radius:28px;border:1px solid var(--line);box-shadow:var(--soft-shadow);display:block;margin-top:20px}.report-link{margin-top:16px}.article-text{max-width:1040px;font-size:18px;line-height:1.72}.article-text blockquote{margin:24px 0;padding:22px 26px;border-left:6px solid var(--gold);background:#fff8e6;border-radius:18px;color:#3e2a24;font-weight:750}.article-text h2{margin-top:34px}
@media(max-width:1280px){.header-contacts{justify-content:flex-start}.portal-nav{justify-content:flex-start}.nav-dropdown-menu{left:0!important;right:auto!important}.text-logo-brand .brand-mark{width:104px!important;height:104px!important}.brand-copy strong{font-size:30px!important}}
@media(max-width:760px){.text-logo-brand{align-items:flex-start!important}.text-logo-brand .brand-mark{width:84px!important;height:84px!important}.brand-copy strong{font-size:22px!important}.brand-copy small{font-size:13px!important}.header-contacts{justify-content:flex-start}.header-contacts a{font-size:12px;height:30px}.mentorship-visual{margin-top:22px}.article-text{font-size:16px}}

/* V6 refinements: compact hiding header, home image, education page, real social icons */
body{padding-top:0}.portal-topbar.compact-hide-header{position:sticky;top:0;z-index:1000;transition:transform .28s ease, box-shadow .2s ease;min-height:86px!important;padding:10px 34px!important;background:rgba(255,250,242,.96)!important;backdrop-filter:blur(18px);box-shadow:0 8px 22px rgba(70,35,25,.06)}.portal-topbar.site-header-hidden{transform:translateY(-115%)}
.text-logo-brand .brand-mark{width:108px!important;height:108px!important;box-shadow:0 8px 20px rgba(74,38,30,.08)!important}.identity-card{background:#fffdf6;border:1px solid #ead8bb;border-radius:18px;padding:10px 18px 11px;box-shadow:0 10px 24px rgba(70,35,25,.06)}.brand-copy strong{color:#8a1d2d!important;font-size:30px!important;line-height:1!important}.brand-copy small{color:#6c5c55!important;font-size:16px!important;line-height:1.1!important}.header-right{gap:8px!important}.header-contacts{gap:8px!important}.header-contacts a{height:30px!important;font-size:13px!important;padding:0 9px!important}.social-icon-link{width:32px!important;min-width:32px!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}.social-icon-link img{width:24px;height:24px;object-fit:contain;display:block}.portal-nav>a,.nav-dropdown>button{font-size:15px!important;padding:8px 9px!important}.admin-link{padding:9px 13px!important;border-radius:14px!important}.nav-dropdown-menu{right:0!important;left:auto!important;width:260px!important;max-width:calc(100vw - 24px)!important}.nav-dropdown-menu a{font-size:15px!important;line-height:1.22!important}.home-hero-with-photo{grid-template-columns:minmax(0,1fr) minmax(360px,520px);gap:44px;align-items:center;background:linear-gradient(135deg,#fffaf1 0%,#fff7de 40%,#fff 100%)!important;color:var(--text)!important}.home-hero-with-photo:after{display:none}.home-hero-with-photo .eyebrow{color:var(--red)!important}.home-hero-with-photo h1{color:#2b1d18!important}.home-hero-with-photo p{color:var(--muted)!important}.home-hero-with-photo .btn.ghost{background:#fff!important;color:#8a1d2d!important;border:1px solid #ead8bb!important}.home-hero-with-photo .rkc-search{background:#fff!important;border:1px solid #ead8bb!important}.home-hero-with-photo .rkc-chips a{background:#fff8df!important;color:#8a1d2d!important;border-color:#e2bf65!important}.home-photo-card{position:relative;border-radius:34px;overflow:hidden;background:#fff;border:1px solid #ead8bb;box-shadow:0 28px 70px rgba(70,35,25,.12)}.home-photo-card img{display:block;width:100%;height:420px;object-fit:cover}.home-photo-caption{position:absolute;left:22px;right:22px;bottom:22px;background:rgba(255,253,248,.9);backdrop-filter:blur(12px);border:1px solid rgba(234,216,187,.8);border-radius:22px;padding:16px 18px;display:grid;gap:4px}.home-photo-caption strong{font-size:22px;color:#8a1d2d;font-weight:950}.home-photo-caption span{font-size:14px;color:#6c5c55;font-weight:800}.stats-inline{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:0 0 22px}.stats-inline div{background:#fff;border:1px solid var(--line);border-radius:24px;padding:22px;box-shadow:var(--soft-shadow)}.stats-inline strong{display:block;color:#8a1d2d;font-size:38px;font-weight:950;line-height:1}.stats-inline span{display:block;color:var(--muted);font-weight:850;margin-top:6px}.report-link .btn-primary,.report-link a.btn-primary{display:inline-flex;background:#8a1d2d;color:#fff;border-radius:16px;padding:14px 20px;font-weight:950;text-decoration:none}.consultation-cta{display:flex;align-items:center;justify-content:space-between;gap:22px;background:linear-gradient(135deg,#fff8df,#fffdf8)}.consultation-cta h2{margin-bottom:8px}.consultation-cta p{margin:0;color:var(--muted)}.consultation-btn{white-space:nowrap;background:#8a1d2d;color:#fff;border-radius:18px;padding:16px 22px;font-weight:950;text-decoration:none}.education-hero{align-items:center}.education-cta-card{background:#fffdf8;border:1px solid var(--line);border-radius:28px;padding:28px;box-shadow:var(--soft-shadow)}.education-cta-card h3{font-size:26px;margin:0 0 12px;color:#8a1d2d;letter-spacing:-.03em}.education-cta-card p{color:var(--muted);font-weight:700}.education-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.education-card{margin:0}.education-card>span{display:inline-grid;place-items:center;width:42px;height:42px;border-radius:14px;background:#fff1c7;color:#8a1d2d;font-weight:950;margin-bottom:12px}.education-card h2{font-size:26px}.btn-primary{display:inline-flex;align-items:center;justify-content:center;background:#8a1d2d;color:#fff;border:0;border-radius:16px;padding:15px 22px;font-weight:950;text-decoration:none}.btn-primary:hover{background:#651522}.page-hero.soft{background:linear-gradient(135deg,#fffaf1,#fff)}
@media(max-width:1180px){.home-hero-with-photo{grid-template-columns:1fr}.home-photo-card img{height:340px}.education-grid{grid-template-columns:1fr}.consultation-cta{display:grid}.portal-topbar.compact-hide-header{padding:10px 18px!important}.brand-copy strong{font-size:25px!important}.brand-copy small{font-size:14px!important}.text-logo-brand .brand-mark{width:88px!important;height:88px!important}}
@media(max-width:760px){.home-photo-card img{height:230px}.stats-inline{grid-template-columns:1fr}.identity-card{padding:8px 12px}.brand-copy strong{font-size:20px!important}.brand-copy small{font-size:12px!important}.text-logo-brand .brand-mark{width:72px!important;height:72px!important}.portal-topbar.compact-hide-header{min-height:74px!important}.header-contacts a:not(.social-icon-link){display:none}.portal-nav{gap:5px}.portal-nav>a,.nav-dropdown>button{font-size:13px!important;padding:7px!important}}

/* v7 refinements */
.portal-topbar.compact-hide-header{
  min-height:74px!important;
  padding:8px 30px!important;
  background:rgba(255,250,242,.97)!important;
}
.text-logo-brand .brand-mark{width:116px!important;height:116px!important;border-radius:24px!important;object-fit:contain!important;background:#fffdf8!important;padding:4px!important}
.identity-card{background:#fff8ef!important;border:1px solid #f0dfc4!important;border-radius:20px!important;padding:10px 18px!important;box-shadow:0 8px 20px rgba(74,38,30,.05)!important}
.brand-copy strong{color:#7f1928!important;font-size:29px!important;letter-spacing:-.035em!important}.brand-copy small{color:#76645d!important;font-size:15px!important;font-weight:900!important}
.header-contacts{align-items:center!important}.contact-chip{display:inline-flex!important;align-items:center!important;gap:6px!important}.contact-chip img{width:16px!important;height:16px!important;object-fit:contain!important;filter:none!important}.social-icon-link img{width:25px!important;height:25px!important;object-fit:contain!important}.header-contacts a{background:#fff!important;border:1px solid #f0dfc4!important;color:#4b3128!important}
.portal-nav>a,.nav-dropdown>button{font-size:14px!important;padding:8px 9px!important}.nav-dropdown-menu{width:285px!important;right:0!important;left:auto!important;overflow:hidden}.nav-dropdown-menu a{white-space:normal!important}

.home-cover-hero{position:relative;min-height:620px;display:grid;align-items:center;overflow:hidden;background:#1d2b38}.home-cover-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.home-cover-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(30,51,68,.72) 0%,rgba(30,51,68,.54) 37%,rgba(30,51,68,.14) 72%,rgba(30,51,68,.05) 100%)}.home-cover-content{position:relative;z-index:2;width:min(1120px,calc(100% - 72px));margin:0 auto;color:#fff}.cover-kicker{font-size:25px;letter-spacing:.03em;margin:0 0 12px;color:rgba(255,255,255,.92);font-weight:600}.home-cover-content h1{font-size:76px;line-height:.98;margin:0 0 22px;color:#fff;font-weight:950;letter-spacing:-.055em}.home-cover-content>p{font-size:32px;line-height:1.2;max-width:880px;margin:0 0 28px;color:#fff;font-weight:850}.home-cover-stats{display:grid;grid-template-columns:repeat(3,minmax(0,220px));gap:14px;margin:0 0 28px}.home-cover-stats a{display:block;background:rgba(255,255,255,.9);color:#2b1d18;border:1px solid rgba(255,255,255,.5);border-radius:22px;padding:18px 20px;box-shadow:0 18px 38px rgba(0,0,0,.14);backdrop-filter:blur(10px)}.home-cover-stats strong{display:block;font-size:40px;line-height:1;color:#8a1d2d;font-weight:950}.home-cover-stats span{display:block;margin-top:7px;font-weight:900;color:#5d514d}.cover-search{display:grid;grid-template-columns:1fr 180px;gap:12px;width:min(780px,100%);padding:10px;border-radius:24px;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.35);backdrop-filter:blur(10px)}.cover-search input{border:0;border-radius:17px}.cover-search button{background:#8a1d2d;color:#fff;border-radius:17px}.front-quick-section{margin-top:0!important;background:#fffaf2}.front-chips a{color:#8a1d2d!important;background:#fff8df!important;border-color:#e0bd65!important}.front-actions .btn.ghost.light{background:#fff!important;color:#8a1d2d!important;border:1px solid #ead8bb!important}

.footer-social-icons{display:flex;gap:12px;align-items:center}.footer-social-icons a{width:38px;height:38px;display:inline-grid;place-items:center;background:#fff8ef;border-radius:12px}.footer-social-icons img{width:25px;height:25px;object-fit:contain}.footer-policy-links a{color:#ffe3a3;font-weight:800;text-decoration:underline;text-decoration-color:rgba(255,227,163,.35);text-underline-offset:4px}
.consent-box{display:grid;gap:14px;margin:12px 0;padding:18px;border:1px solid #ead8bb;border-radius:18px;background:#fffaf2}.consent-box label{display:grid!important;grid-template-columns:24px 1fr!important;gap:10px!important;align-items:start!important;margin:0!important;color:#5d514d!important;font-weight:700!important}.consent-box input{width:18px!important;height:18px!important;margin-top:3px}.consent-box a{color:#c26b8b;text-decoration:none;border-bottom:1px solid rgba(194,107,139,.35)}
.report-link{margin-top:18px}.report-link .btn-primary,.mentorship-page .btn-primary{border-radius:18px!important;box-shadow:0 10px 24px rgba(138,29,45,.16)}
.consultation-cta{border:2px solid #f0dfc4}.consultation-btn{font-size:18px;box-shadow:0 12px 26px rgba(138,29,45,.18)}
.article.content-card{max-width:980px}.page-text h2{color:#2b1d18}

@media(max-width:900px){.home-cover-hero{min-height:560px}.home-cover-content{width:calc(100% - 36px)}.home-cover-content h1{font-size:52px}.home-cover-content>p{font-size:24px}.home-cover-stats{grid-template-columns:1fr}.cover-search{grid-template-columns:1fr}.text-logo-brand .brand-mark{width:84px!important;height:84px!important}}
@media(max-width:760px){.home-cover-content h1{font-size:42px}.home-cover-content>p{font-size:20px}.cover-kicker{font-size:17px}.header-contacts .contact-chip{display:none!important}.home-cover-hero{min-height:520px}.portal-topbar.compact-hide-header{padding:8px 16px!important}}

/* V8 refinements */
.rkc-topbar.portal-topbar{padding:10px 48px!important;min-height:76px!important}
.text-logo-brand{background:#fffdf8!important;border:1px solid #ead8bb!important;border-radius:24px!important;padding:8px 14px!important;box-shadow:0 12px 28px rgba(70,35,25,.06)!important;gap:14px!important}
.text-logo-brand .brand-mark{width:124px!important;height:124px!important;border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;border-radius:18px!important}
.identity-card{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
.brand-copy strong{color:#7b1524!important;font-size:27px!important;letter-spacing:-.03em!important}.brand-copy small{color:#6f625f!important;font-size:15px!important;font-weight:900!important}
.header-contacts{display:flex!important;align-items:center!important;gap:8px!important}.contact-chip{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;height:32px!important;line-height:1!important}.contact-chip img{display:block!important;width:16px!important;height:16px!important;object-fit:contain!important;flex:0 0 16px!important}.social-icon-link{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:32px!important;height:32px!important;min-width:32px!important;line-height:1!important;vertical-align:middle!important}.social-icon-link img{display:block!important;width:23px!important;height:23px!important;object-fit:contain!important;margin:0!important;position:static!important;transform:none!important}.footer-social-icons a{display:inline-flex!important;align-items:center!important;justify-content:center!important}.footer-social-icons img{display:block!important;margin:0!important;position:static!important}
.clean-home-hero{min-height:640px!important}.clean-home-hero .home-cover-overlay{background:linear-gradient(90deg,rgba(32,45,54,.62) 0%,rgba(32,45,54,.44) 34%,rgba(32,45,54,.10) 75%,rgba(32,45,54,.02) 100%)!important}.clean-home-hero .home-cover-content h1{font-size:62px!important;max-width:980px}.clean-home-hero .home-cover-content>p{max-width:980px}.home-stats-top{margin-top:24px!important}.front-actions,.front-chips{display:none!important}.front-quick-section{margin-top:0!important}.rkc-features .feature p{font-size:16px}.rkc-features .feature h3{font-size:25px}.news-card-with-image{overflow:hidden}.news-thumb{width:100%;height:190px;object-fit:cover;border-radius:18px;margin-bottom:14px}.article-image{width:100%;border-radius:22px;margin:18px 0;object-fit:cover}.news-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:22px 0}.news-gallery img{width:100%;height:210px;object-fit:cover;border-radius:18px}.admin-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin:8px 0 14px}.admin-gallery-item{display:grid!important;gap:8px!important;background:#fff;border:1px solid var(--line);border-radius:16px;padding:10px!important}.admin-gallery-item img{width:100%;height:110px;object-fit:cover;border-radius:12px}.admin-gallery-item span{font-size:13px;color:var(--muted)}
.only-logo-card{display:grid!important;place-items:center!important;padding:34px!important}.only-logo-card .about-logo-mark{width:310px!important;height:310px!important;max-width:100%!important;object-fit:contain!important}.only-logo-card strong,.only-logo-card span{display:none!important}
.wide-text-page{max-width:1180px!important}.mentorship-page .article-text{max-width:none!important}.mentorship-page p{font-size:18px;line-height:1.75}.mentorship-visual-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:28px}.mentorship-visual-grid img{width:100%;height:auto;border-radius:24px;border:1px solid var(--line);box-shadow:var(--soft-shadow)}.report-link .btn-primary{font-size:18px;padding:16px 24px;background:#8a1d2d;color:#fff!important;text-decoration:none!important}
.education-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.education-anchor{display:block;text-decoration:none}.education-anchor span{display:inline-grid;place-items:center;width:42px;height:42px;border-radius:14px;background:#fff1c7;color:#8a1d2d;font-weight:950;margin-bottom:12px}.education-card:target{border-color:#d8a63b;box-shadow:0 18px 42px rgba(216,166,59,.18)}
@media(max-width:1180px){.text-logo-brand .brand-mark{width:92px!important;height:92px!important}.brand-copy strong{font-size:23px!important}.brand-copy small{font-size:13px!important}.education-tabs{grid-template-columns:1fr}.mentorship-visual-grid{grid-template-columns:1fr}.only-logo-card .about-logo-mark{width:240px!important;height:240px!important}}
@media(max-width:760px){.text-logo-brand{padding:7px 10px!important}.text-logo-brand .brand-mark{width:72px!important;height:72px!important}.brand-copy strong{font-size:19px!important}.brand-copy small{font-size:11px!important}.clean-home-hero .home-cover-content h1{font-size:38px!important}.clean-home-hero .home-cover-content>p{font-size:19px!important}}

/* V9 fixes */
.clean-home-hero>img{content:url('/static/img/cheboksary_hero.jpg');}
.home-cover-content .cover-kicker{font-size:28px;font-weight:800;color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.25)}
.home-cover-content h1{max-width:860px;text-shadow:0 3px 18px rgba(0,0,0,.24)}
.mentorship-visual-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:start}.mentorship-visual-grid img{height:260px!important;object-fit:cover!important}.mentorship-visual-grid img:first-child{object-position:center}.mentorship-page.wide-text-page{max-width:1280px!important}.mentorship-page .article-text{max-width:1180px!important;margin:0 auto}.report-link .btn-primary{display:inline-flex;align-items:center;justify-content:center;border:2px solid #8a1d2d;background:#fff!important;color:#8a1d2d!important;border-radius:22px!important;padding:17px 28px!important;font-weight:950;text-decoration:none!important}.report-link .btn-primary:hover{background:#8a1d2d!important;color:#fff!important}
.admin-dev-note{font-size:13px;line-height:1.35;color:#ffe3a3;background:rgba(255,255,255,.08);border:1px solid rgba(255,227,163,.25);border-radius:14px;padding:10px 12px;margin:8px 0 18px}.admin-choice-box{background:#fffaf2;border:1px solid #ead8bb;border-radius:16px;padding:14px;margin:12px 0}.admin-choice-box h3{margin:0 0 5px}.doc-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.hospital-static-grid{grid-template-columns:repeat(auto-fill,minmax(320px,1fr))}.hospital-card h3{font-size:20px;line-height:1.25}.hospital-card a{word-break:break-word}.education-tabs-wide{grid-template-columns:repeat(3,minmax(0,1fr))!important}.education-detail{max-width:1180px!important}.education-images{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px;margin:10px 0 26px}.education-images img{width:100%;height:280px;object-fit:cover;border-radius:22px;border:1px solid var(--line);box-shadow:var(--soft-shadow)}.education-detail .article-text{max-width:1060px}.education-line{padding:9px 12px;border-left:4px solid #d8a63b;background:#fffaf2;border-radius:8px}.external-link{color:#8a1d2d;font-weight:900;text-decoration:underline;text-underline-offset:4px}.footer .doc-actions a{color:#fff}.front-quick-section .feature p{min-height:64px}
@media(max-width:980px){.mentorship-visual-grid{grid-template-columns:1fr!important}.mentorship-visual-grid img{height:auto!important}.education-tabs-wide{grid-template-columns:1fr!important}.education-images{grid-template-columns:1fr}.hospital-static-grid{grid-template-columns:1fr}.clean-home-hero{min-height:560px!important}}

/* V10: cabinet wording, hospitals directory, education subsections, mentorship layout */
.cabinet-login-card h1{font-size:56px;line-height:1.05;margin:0 0 22px}.dev-note,.admin-dev-banner{background:#fff8df;border:1px solid #e0bd65;border-radius:18px;padding:16px 18px;color:#4b3128;font-weight:850;margin:12px 0 22px}.admin-dev-banner{font-size:16px}.hospital-filter-section{padding-top:34px;padding-bottom:24px}.hospital-filter{background:#fff;border:1px solid var(--line);border-radius:26px;padding:24px;box-shadow:var(--soft-shadow);max-width:980px}.filter-row-inline{display:grid;grid-template-columns:1fr 160px;gap:14px;margin-top:10px}.hospital-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.hospital-detail-hero{grid-template-columns:1fr 320px}.hospital-contact-card{display:grid;gap:12px;background:#fff;border:1px solid #ead8bb;border-radius:24px;padding:22px;box-shadow:var(--soft-shadow);align-self:start}.hospital-card .directory-meta{font-size:14px;color:#8a1d2d;font-weight:900}.education-level-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.education-level-card h2{font-size:30px;margin:10px 0}.education-level-card p{min-height:78px;color:var(--muted);font-size:18px}.education-detail-list{display:grid;gap:24px}.education-institution-card{max-width:1180px;margin:0 auto;width:100%}.education-inst-layout{display:grid;grid-template-columns:360px 1fr;gap:28px;align-items:start}.education-inst-layout img{width:100%;height:270px;object-fit:cover;border-radius:22px;border:1px solid var(--line);box-shadow:var(--soft-shadow)}.education-inst-layout h2{margin-top:0;font-size:32px}.important-box{margin-top:18px;background:#fff8df;border:1px solid #e0bd65;border-radius:20px;padding:18px}.important-box h3{margin:0 0 8px;color:#7b1524}.important-box ul{margin:0;padding-left:20px}.important-box li{margin:6px 0;font-weight:800}.article-text.wide-article-text{max-width:1180px!important;width:100%;margin:0 auto}.fixed-page-hero{display:grid;grid-template-columns:minmax(0,1fr);padding-left:56px!important;padding-right:56px!important}.fixed-page-hero .eyebrow{margin:0 0 10px!important}.mentorship-page{margin:34px auto 64px!important}.mentorship-page .article-text h2{font-size:28px;line-height:1.25;margin:34px 0 12px;color:#2b1d18}.mentorship-page .article-text p{font-size:18px;line-height:1.75;margin:0 0 13px}.mentorship-visual-grid{max-width:1180px;margin-left:auto;margin-right:auto}.mentorship-visual-grid img{height:300px!important}.directory-card .btn-outline,.hospital-contact-card .btn-outline{border-color:#e0bd65;background:#fffaf2;color:#7b1524}.empty{max-width:980px}.external-link{overflow-wrap:anywhere}
@media(max-width:980px){.filter-row-inline,.hospital-detail-hero,.education-inst-layout{grid-template-columns:1fr}.education-level-grid{grid-template-columns:1fr}.education-level-card p{min-height:auto}.hospital-contact-card{max-width:100%}.fixed-page-hero{padding-left:24px!important;padding-right:24px!important}.cabinet-login-card h1{font-size:40px}}


/* v11 fixes */
.equal-education-grid{align-items:stretch}.equal-education-grid .education-level-card{display:flex;flex-direction:column;min-height:390px}.equal-education-grid .education-level-card .btn-outline{margin-top:auto;align-self:flex-start}.portal-nav a[href*="education"]::first-letter{} 
.mentorship-clean-layout{max-width:1320px!important;margin-left:auto!important;margin-right:auto!important}.mentorship-visual-vertical{display:grid;gap:26px;max-width:980px;margin:0 auto 34px}.mentorship-visual-vertical img{width:100%;max-height:none;object-fit:contain;border-radius:28px;border:1px solid var(--line);box-shadow:var(--soft-shadow);background:#fff}.mentorship-page .wide-article-text{max-width:1180px!important;margin-left:auto!important;margin-right:auto!important}.mentorship-page .report-link{max-width:1180px;margin:24px auto 0}.support-hero-image{width:100%;max-width:980px;display:block;margin:0 auto 34px;border-radius:30px;border:1px solid var(--line);box-shadow:var(--soft-shadow)}.hospital-visible-contacts .contact-line{display:flex;align-items:center;gap:10px;font-weight:800}.hospital-visible-contacts .contact-line img{width:22px;height:22px;object-fit:contain}.hospital-static-grid{align-items:stretch}.clickable-hospital-card{display:flex;flex-direction:column}.clickable-hospital-card .hospital-actions{margin-top:auto}.hospital-hint{font-size:15px}.education-institution-card .education-inst-layout{align-items:start}.education-institution-card .education-inst-layout img{max-height:360px;object-fit:cover}.education-important-box{background:#fff8df;border-color:#e2bf65}.education-important-box li{margin-bottom:8px}.phone-mask{letter-spacing:.02em}.btn-outline,.btn.primary,.btn{white-space:normal}

/* V12 polish */
.section-title.no-number{gap:0}.section-title.no-number span{display:none}.front-quick-section{display:none!important}
.education-level-card .directory-meta{display:none!important}.education-level-card .btn-outline{margin-top:auto}.separated-cta{margin-top:18px}.education-cta-card .btn{margin-top:16px}
.education-v12-card{display:grid;gap:24px}.education-block{margin-top:8px;padding-top:20px;border-top:1px solid var(--line)}.education-block h3{font-size:26px;margin:0 0 16px;color:#351f18}.program-tags{display:flex;flex-wrap:wrap;gap:10px}.program-tags span{display:inline-flex;background:#fff8df;border:1px solid #e4c56d;border-radius:999px;padding:8px 12px;font-weight:850;color:#5b3229}.admission-groups{display:grid;gap:16px}.admission-group{background:#fffaf2;border:1px solid #ead8bb;border-radius:20px;padding:18px}.admission-group h4{margin:0 0 12px;font-size:21px;color:#7b1524}.admission-row{padding:12px 0;border-top:1px solid #efdfc6}.admission-row:first-of-type{border-top:0}.admission-row b{display:block;margin-bottom:8px}.exam-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}.exam-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px}.exam-card h4{margin:0 0 10px;color:#7b1524}.exam-card li{margin-bottom:6px}
.hospital-inline-contacts{display:grid;gap:7px;margin:14px 0;color:#4b3128}.hospital-inline-contacts p{margin:0;display:flex;gap:9px;align-items:flex-start}.hospital-inline-contacts img{width:20px;height:20px;object-fit:contain;flex:0 0 20px}.hospital-summary-card h3 a:hover{color:#8a1d2d}.hospital-summary-card .hospital-actions .btn-outline{min-height:48px;align-items:center}
.visibility-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px;margin-top:14px}.section-visibility-box{margin:22px 0}.section-visibility-box .check{background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px}.section-visibility-box input{transform:scale(1.15)}
.mentorship-clean-layout .mentorship-visual-vertical{max-width:980px}.mentorship-clean-layout .mentorship-visual-vertical img{width:100%;height:auto!important;object-fit:contain!important}.education-level-card{justify-content:space-between}.education-level-card .btn-outline{align-self:flex-start}.education-detail-list .education-institution-card{padding:30px}
@media(max-width:980px){.exam-grid{grid-template-columns:1fr}.program-tags span{font-size:14px}.education-v12-card{padding:20px}}


/* V14 fixes: about logo, information hero, horizontal hospitals */
.info-page-hero{display:block!important;padding-left:56px!important;padding-right:56px!important}
.info-page-hero .eyebrow{display:block;margin:0 0 12px!important}
.info-page-hero h1{display:block;margin:0 0 12px!important;max-width:900px}
.info-page-hero p{max-width:980px}
.about-logo-plain-card{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
.about-logo-plain-card .about-logo-mark{width:360px!important;height:360px!important;border:0!important;border-radius:0!important;padding:0!important;background:transparent!important;box-shadow:none!important;object-fit:contain!important}
.hospital-list-section{padding:24px 56px 64px}
.hospital-list{display:grid;gap:16px;max-width:1320px;margin:0 auto}
.hospital-row-card{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.8fr) auto;gap:18px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:24px;padding:20px 22px;box-shadow:var(--soft-shadow)}
.hospital-row-card:hover{border-color:#e0bd65;box-shadow:var(--shadow)}
.hospital-row-main{text-decoration:none;display:block;color:inherit}
.hospital-row-main h3{font-size:23px;line-height:1.2;margin:6px 0 8px;color:#2b1d18}
.hospital-row-main .directory-meta{font-size:14px;color:#8a1d2d;font-weight:950;text-transform:none;letter-spacing:0}
.hospital-row-contacts{display:grid;gap:8px;color:#6c5c55;font-weight:800;font-size:15px}
.hospital-row-contacts p{display:flex;align-items:flex-start;gap:9px;margin:0}
.hospital-row-contacts img{width:20px;height:20px;object-fit:contain;flex:0 0 20px}
.hospital-row-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.hospital-row-actions .btn-outline{min-width:92px;text-align:center;justify-content:center}
.hospital-hint{font-size:15px;color:#806c62;margin:0!important}
@media(max-width:1050px){.hospital-row-card{grid-template-columns:1fr}.hospital-row-actions{justify-content:flex-start}.hospital-list-section{padding:20px 22px 48px}.about-logo-plain-card .about-logo-mark{width:260px!important;height:260px!important}}

/* v15: медицинские организации - компактный горизонтальный список с контактами */
.hospital-list-wide { gap: 14px; }
.hospital-row-compact {
  grid-template-columns: minmax(320px, 1.1fr) minmax(340px, 1.2fr) auto;
  align-items: center;
}
.hospital-address {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}
.hospital-contact-inline p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 5px 0;
  font-size: 14px;
  line-height: 1.35;
}
.hospital-contact-inline img,
.hospital-visible-contacts .contact-line img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 18px;
  margin-top: 2px;
}
@media (max-width: 980px) {
  .hospital-row-compact { grid-template-columns: 1fr; }
  .hospital-row-actions { justify-content: flex-start; }
}

/* v18: policy documents block in site settings */
.policy-doc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 14px;
}
.policy-doc-card {
  border: 1px solid rgba(126, 84, 63, 0.18);
  border-radius: 18px;
  padding: 18px;
  background: #fffaf2;
}
.policy-doc-card h4 {
  margin: 0 0 12px;
  color: #7b1228;
}
@media (max-width: 1000px) {
  .policy-doc-grid { grid-template-columns: 1fr; }
}
