:root{
  --dr-bg:#04060b;
  --dr-bg-soft:#0b1018;
  --dr-bg-soft-2:#111827;
  --dr-surface:#101523;
  --dr-line:#262d3d;
  --dr-text:#d9deea;
  --dr-text-soft:#aab2c4;
  --dr-heading:#d5adff;
  --dr-link:#d3a8ff;
  --dr-link-hover:#f3e4ff;
}

/* общий фон и текст */
html, body,
#page, #content, .site-content, .page-content, .entry-content, .entry-summary,
article.page, article.hentry, .sidebar, .widget, .comments-area, #respond {
  background: var(--dr-bg) !important;
  color: var(--dr-text) !important;
}

/* все обычные ссылки */
a,
a:visited,
.entry-content a,
.entry-content a:visited,
.widget a,
.widget a:visited,
.sidebar a,
.sidebar a:visited,
.site-footer a,
.site-footer a:visited {
  color: var(--dr-link) !important;
  text-decoration: none !important;
}

a:hover,
a:focus,
.entry-content a:hover,
.entry-content a:focus,
.widget a:hover,
.widget a:focus,
.sidebar a:hover,
.sidebar a:focus,
.site-footer a:hover,
.site-footer a:focus {
  color: var(--dr-link-hover) !important;
  text-decoration: none !important;
}

/* меню сверху */
.main-navigation,
.main-navigation .ak-container {
  background: linear-gradient(180deg,#271f61 0%, #17133f 100%) !important;
  border-bottom: 1px solid rgba(213,173,255,.32) !important;
  box-shadow: 0 12px 26px rgba(0,0,0,.28) !important;
}

.main-navigation a,
.main-navigation a:visited,
.main-navigation ul li a,
.main-navigation ul li a:visited {
  color: #f7f8ff !important;
  text-decoration: none !important;
}

.main-navigation li:hover > a,
.main-navigation .current-menu-parent > a,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation .current_page_parent > a {
  background: rgba(255,255,255,.09) !important;
  color: #ffffff !important;
}

/* сайдбарные ссылки */
.sidebar ul li,
.widget ul li {
  border-bottom: 1px solid var(--dr-line) !important;
}

.sidebar ul li a,
.sidebar ul li a:visited,
.widget ul li a,
.widget ul li a:visited {
  color: var(--dr-text-soft) !important;
}

.sidebar ul li a:hover,
.sidebar ul li a:focus,
.widget ul li a:hover,
.widget ul li a:focus {
  color: var(--dr-link-hover) !important;
}

/* заголовки виджетов */
.sidebar h3.widget-title,
.widget h3.widget-title {
  background: linear-gradient(180deg,#121827 0%, #0d1220 100%) !important;
  border-left: 4px solid rgba(213,173,255,.48) !important;
  color: #eef1f8 !important;
  font-size: 20px !important;
  letter-spacing: .02em !important;
  text-transform: none !important;
  padding: 12px 16px !important;
  line-height: 1.25 !important;
}

/* поиск */
.searchform {
  display: grid !important;
  grid-template-columns: 1fr 40px !important;
  align-items: center !important;
  width: 250px !important;
  height: 40px !important;
  margin: 0 !important;
  border: 1px solid rgba(213,173,255,.28) !important;
  background: rgba(9,11,18,.92) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03) !important;
}

.searchform .s {
  width: 100% !important;
  height: 40px !important;
  line-height: 40px !important;
  padding: 0 12px !important;
  border: 0 !important;
  background: transparent !important;
  color: #edf1ff !important;
  font-size: 14px !important;
}

.searchform .s::placeholder {
  color: #9aa4b8 !important;
}

.searchform .searchsubmit {
  width: 40px !important;
  height: 40px !important;
  line-height: 40px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--dr-heading) !important;
  box-shadow: none !important;
}

/* бренд в шапке */
#masthead .site-branding .site-title,
#masthead .site-branding .site-title a,
#masthead .site-branding h1.site-title,
#masthead .site-branding h1.site-title a {
  margin: 0 !important;
  font-size: clamp(16px,1.25vw,24px) !important;
  line-height: 1.02 !important;
  letter-spacing: .006em !important;
  font-weight: 800 !important;
  color: var(--dr-heading) !important;
  text-transform: uppercase !important;
  text-shadow: 0 0 16px rgba(213,173,255,.10) !important;
  max-width: 620px !important;
}

#masthead .site-branding .site-description,
#masthead .site-branding .tagline {
  margin-top: 4px !important;
  font-size: clamp(11px,.8vw,14px) !important;
  line-height: 1.08 !important;
  color: var(--dr-text-soft) !important;
}

/* Shared author profile pages: /danil-rudoy/ and /en/danil-rudoy/ */

html body #page .entry-content .dr-author-page,
html body #page .entry-content > .dr-author-facts,
html body #page .entry-content > .dr-author-corpus,
html body #page .entry-content > .dr-author-directions,
html body #page .entry-content > .dr-author-reading,
html body #page .entry-content > .dr-author-tradition,
html body #page .entry-content > .dr-author-platforms,
html body #page .entry-content > .dr-author-faq{
  max-width:1160px;
  margin:0 auto 54px;
}

html body #page .entry-content .dr-author-page,
html body #page .entry-content .dr-author-page *,
html body #page .entry-content > .dr-author-facts,
html body #page .entry-content > .dr-author-facts *,
html body #page .entry-content > .dr-author-corpus,
html body #page .entry-content > .dr-author-corpus *,
html body #page .entry-content > .dr-author-directions,
html body #page .entry-content > .dr-author-directions *,
html body #page .entry-content > .dr-author-reading,
html body #page .entry-content > .dr-author-reading *,
html body #page .entry-content > .dr-author-tradition,
html body #page .entry-content > .dr-author-tradition *,
html body #page .entry-content > .dr-author-platforms,
html body #page .entry-content > .dr-author-platforms *,
html body #page .entry-content > .dr-author-faq,
html body #page .entry-content > .dr-author-faq *{
  box-sizing:border-box;
}

html body #page .entry-content .dr-author-page > .wp-caption.aligncenter:first-child,
html body #page .entry-content > .wp-caption.aligncenter:first-child{
  max-width:300px;
  margin:0 auto 34px;
  border:1px solid rgba(197,147,255,.26);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,0) 100%),var(--dr-surface);
  box-shadow:0 18px 48px rgba(0,0,0,.30);
  overflow:hidden;
}

html body #page .entry-content .dr-author-page > .wp-caption.aligncenter:first-child img,
html body #page .entry-content > .wp-caption.aligncenter:first-child img{
  display:block;
  width:100%;
  height:auto;
  margin:0;
  border:0;
}

html body #page .entry-content .dr-author-page > .wp-caption.aligncenter:first-child .wp-caption-text,
html body #page .entry-content > .wp-caption.aligncenter:first-child .wp-caption-text{
  margin:0;
  padding:11px 14px 13px;
  color:var(--dr-text-soft);
  font-size:14px;
  font-weight:700;
  line-height:1.35;
  letter-spacing:.02em;
  text-align:center;
}

html body #page .entry-content .dr-author-hero,
html body #page .entry-content .dr-author-section,
html body #page .entry-content > .dr-author-facts,
html body #page .entry-content > .dr-author-corpus,
html body #page .entry-content > .dr-author-directions,
html body #page .entry-content > .dr-author-reading,
html body #page .entry-content > .dr-author-tradition,
html body #page .entry-content > .dr-author-platforms,
html body #page .entry-content > .dr-author-faq{
  margin:0 auto 54px;
}

html body #page .entry-content .dr-author-hero{
  padding:30px;
  border:1px solid rgba(197,147,255,.30);
  border-radius:22px;
  background:radial-gradient(circle at 18% 12%,rgba(197,147,255,.12),transparent 34%),linear-gradient(135deg,rgba(18,17,28,.96),rgba(8,10,17,.98));
  box-shadow:0 20px 56px rgba(0,0,0,.32);
}

html body #page .entry-content .dr-author-hero p{
  max-width:980px;
  margin:0 0 18px;
  font-size:clamp(18px,1.55vw,22px);
  line-height:1.68;
}

html body #page .entry-content .dr-author-hero p:last-child{
  margin-bottom:0;
}

html body #page .entry-content .dr-author-section > h2,
html body #page .entry-content > .dr-author-facts > h2,
html body #page .entry-content > .dr-author-corpus > h2,
html body #page .entry-content > .dr-author-directions > h2,
html body #page .entry-content > .dr-author-reading > h2,
html body #page .entry-content > .dr-author-tradition > h2,
html body #page .entry-content > .dr-author-platforms > h2,
html body #page .entry-content > .dr-author-faq > h2{
  margin:0 0 20px;
}

html body #page .entry-content .dr-author-section > p,
html body #page .entry-content > .dr-author-facts > p,
html body #page .entry-content > .dr-author-corpus > p,
html body #page .entry-content > .dr-author-directions > p,
html body #page .entry-content > .dr-author-reading > p,
html body #page .entry-content > .dr-author-tradition > p,
html body #page .entry-content > .dr-author-platforms > p,
html body #page .entry-content > .dr-author-faq > p{
  max-width:960px;
  font-size:18px;
  line-height:1.78;
}

html body #page .entry-content .dr-author-grid,
html body #page .entry-content .dr-hub-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:18px;
}

html body #page .entry-content .dr-author-card,
html body #page .entry-content .dr-hub-card{
  min-height:100%;
  padding:24px;
  border:1px solid var(--dr-line);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(255,255,255,.025),rgba(255,255,255,0) 100%),linear-gradient(135deg,var(--dr-bg-soft) 0%,var(--dr-bg-soft-2) 100%);
  box-shadow:0 16px 42px rgba(0,0,0,.22);
}

html body #page .entry-content .dr-author-card h3,
html body #page .entry-content .dr-hub-card h3{
  margin:0 0 12px;
}

html body #page .entry-content .dr-author-card p,
html body #page .entry-content .dr-hub-card p{
  margin:0 0 16px;
  color:var(--dr-text);
  font-size:16px;
  line-height:1.72;
}

html body #page .entry-content .dr-author-card p:last-child,
html body #page .entry-content .dr-hub-card p:last-child{
  margin-bottom:0;
}

html body #page .entry-content .dr-author-pill-list{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin:18px 0 0;
}

html body #page .entry-content .dr-author-pill,
html body #page .entry-content .dr-author-pill:link,
html body #page .entry-content .dr-author-pill:visited{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:11px 18px;
  border:1px solid rgba(197,147,255,.42);
  border-radius:999px;
  background:rgba(197,147,255,.06);
  box-shadow:0 10px 22px rgba(0,0,0,.16);
  color:var(--dr-link) !important;
  font-size:15px;
  font-weight:700;
  line-height:1.2;
  text-decoration:none !important;
}

html body #page .entry-content .dr-author-pill:hover,
html body #page .entry-content .dr-author-pill:focus{
  transform:translateY(-1px);
  border-color:rgba(234,216,255,.66);
  background:rgba(197,147,255,.12);
  color:var(--dr-link-hover) !important;
}

html body #page .entry-content .dr-author-facts ul,
html body #page .entry-content .dr-author-reading ul,
html body #page .entry-content .dr-author-platforms ul{
  margin:0 0 22px;
  padding:0;
  list-style:none;
}

html body #page .entry-content .dr-author-facts li,
html body #page .entry-content .dr-author-reading li,
html body #page .entry-content .dr-author-platforms li{
  margin:0 0 10px;
  padding:14px 16px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  background:rgba(255,255,255,.025);
  color:var(--dr-text);
  font-size:16px;
  line-height:1.68;
}

html body #page .entry-content .dr-author-directions h3,
html body #page .entry-content .dr-author-platforms h3,
html body #page .entry-content .dr-author-faq h3{
  margin:28px 0 10px;
}

html body #page .entry-content .dr-author-directions h3:first-of-type,
html body #page .entry-content .dr-author-platforms h3:first-of-type,
html body #page .entry-content .dr-author-faq h3:first-of-type{
  margin-top:0;
}

html body #page .entry-content .dr-author-faq h3{
  color:#f0e9ff !important;
  font-family:'Montserrat',sans-serif;
  font-size:20px;
  letter-spacing:0;
  line-height:1.35;
}

html body #page .entry-content .dr-author-faq p{
  margin-bottom:22px;
}

@media (max-width: 820px){
  html body #page .entry-content .dr-author-hero{
    padding:22px;
  }

  html body #page .entry-content .dr-author-grid,
  html body #page .entry-content .dr-hub-grid{
    grid-template-columns:1fr;
  }

  html body #page .entry-content .dr-author-card,
  html body #page .entry-content .dr-hub-card{
    padding:20px;
  }

  html body #page .entry-content .dr-author-pill{
    flex:1 1 180px;
  }
}
