/* ============================================================
   XD Framework — Внутренние страницы
   Шапка и футер тёмные, контент светлый
   ============================================================ */

.xd-inner-body {
    margin: 0; padding: 0;
    font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f6fa;
    color: #1a2035;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
.xd-inner-body *, .xd-inner-body *::before, .xd-inner-body *::after { box-sizing: border-box; }
.xd-inner-body a { text-decoration: none; color: var(--xd-accent, #e8620a); }
.xd-inner-body a:hover { color: var(--xd-accent-hover, #ff7a1a); }
.xd-inner-body img { max-width: 100%; display: block; }

/* ШАПКА */
.xi-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(10,22,40,.97);
    border-bottom: 1px solid #1e3560;
    backdrop-filter: blur(10px);
    height: 60px;
}
.xi-header-inner {
    max-width: 1100px; margin: 0 auto; padding: 0 24px;
    height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.xi-logo {
    color: #f0c060; font-family: Georgia, serif;
    font-size: .95em; letter-spacing: .06em;
    white-space: nowrap; text-decoration: none; flex-shrink: 0;
}
.xi-nav { display: flex; align-items: center; gap: 16px; }
.xi-nav-cta {
    background: #e8620a !important; color: #fff !important;
    padding: 7px 16px !important; border-radius: 4px !important;
    font-weight: 700 !important; font-size: .82em !important;
    white-space: nowrap; text-decoration: none !important; flex-shrink: 0;
}
.xi-nav-cta:hover { background: #ff7a1a !important; }
.xi-burger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px; flex-shrink: 0;
}
.xi-burger span { display: block; width: 22px; height: 2px; background: #e8eef8; border-radius: 2px; }

/* wp_nav_menu */
.xi-nav-list {
    display: flex; align-items: center; gap: 20px;
    list-style: none; margin: 0; padding: 0;
}
.xi-nav-list > li { position: relative; list-style: none; margin: 0; padding: 0; }
.xi-nav-list > li > a {
    color: #8aa8cc; font-size: .82em; letter-spacing: .04em;
    font-family: Arial, sans-serif; transition: color .2s;
    white-space: nowrap; text-decoration: none;
    display: block; padding: 20px 0; line-height: 1;
}
.xi-nav-list > li > a:hover { color: #fff; }
/* Выпадающее подменю */
.xi-nav-list > li > ul {
    display: none; position: absolute; top: 100%; left: 0;
    background: #0a1628; border: 1px solid #1e3560; border-radius: 6px;
    min-width: 190px; padding: 6px 0; z-index: 9999;
    box-shadow: 0 8px 24px rgba(0,0,0,.4); list-style: none; margin: 0;
}
.xi-nav-list > li:hover > ul { display: block; }
.xi-nav-list > li > ul > li { list-style: none; margin: 0; padding: 0; }
.xi-nav-list > li > ul > li > a {
    display: block; padding: 10px 18px; color: #8aa8cc;
    font-size: .82em; font-family: Arial, sans-serif;
    white-space: nowrap; border-bottom: 1px solid rgba(255,255,255,.05);
    transition: color .2s, background .2s; text-decoration: none;
}
.xi-nav-list > li > ul > li:last-child > a { border-bottom: none; }
.xi-nav-list > li > ul > li > a:hover { color: #fff; background: rgba(255,255,255,.06); }

/* КОНТЕЙНЕРЫ */
.xi-wrap        { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.xi-wrap-narrow { max-width: 760px;  margin: 0 auto; padding: 0 24px; }

/* BREADCRUMB */
.xi-breadcrumb { background: #0a1628; padding: 10px 24px; font-size: .78em; color: #5a7a9a; font-family: Arial, sans-serif; }
.xi-breadcrumb-inner { max-width: 1100px; margin: 0 auto; display: flex; gap: 8px; align-items: center; }
.xi-breadcrumb a { color: #5a7a9a; text-decoration: none; }
.xi-breadcrumb a:hover { color: #f0c060; }
.xi-breadcrumb span { color: #3a5a7a; }

/* PAGE HERO */
.xi-page-hero { background: #0f2040; border-bottom: 1px solid #1e3560; padding: 36px 24px; text-align: center; }
.xi-page-hero h1 { font-family: Georgia, serif; font-size: clamp(22px,4vw,36px); font-weight: 700; color: #fff; margin: 0 0 8px; line-height: 1.2; }
.xi-page-hero p  { font-size: 15px; color: #8aa8cc; margin: 6px 0 0; }

/* КОНТЕНТ */
.xi-main { padding: 48px 0 64px; }

/* КАРТОЧКИ */
.xi-card { background: #fff; border: 1px solid #e2e6f0; border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,.06); }

/* ФОРМЫ (вход/регистрация) */
.xd-auth-card  { max-width: 440px; margin: 0 auto; padding: 40px 36px; }
.xd-auth-error { background: #fff0f0; border: 1px solid #ffcccc; border-radius: 6px; padding: 12px 16px; color: #c0392b; font-size: .9em; margin-bottom: 20px; }
.xd-auth-form  { display: flex; flex-direction: column; gap: 18px; }
.xd-field      { display: flex; flex-direction: column; gap: 6px; }
.xd-field label { font-size: .85em; font-weight: 600; color: #1a2035; }
.xd-field .req  { color: #e8620a; }
.xd-field input { padding: 11px 14px; border: 1.5px solid #e2e6f0; border-radius: 6px; font-size: 15px; color: #1a2035; background: #fff; transition: border-color .2s; }
.xd-field input:focus { outline: none; border-color: #e8620a; }
.xd-field-check label { display: flex; align-items: center; gap: 8px; font-size: .85em; color: #5a6580; cursor: pointer; }
.xd-auth-btn { background: #e8620a; color: #fff; border: none; border-radius: 6px; padding: 14px; font-size: 16px; font-weight: 700; font-family: Georgia, serif; cursor: pointer; transition: background .2s; }
.xd-auth-btn:hover { background: #ff7a1a; }
.xd-auth-links { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.xd-auth-links a { font-size: .84em; color: #5a6580; }
.xd-auth-links a:hover { color: #e8620a; }

/* Регистрация — преимущества */
.xd-reg-benefits { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.xd-reg-benefit  { background: #fff; border: 1px solid #e2e6f0; border-radius: 8px; padding: 16px 20px; text-align: center; display: flex; flex-direction: column; gap: 4px; min-width: 120px; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.xd-reg-pct      { font-size: 1.8em; font-weight: 700; color: #e8620a; line-height: 1; font-family: Georgia, serif; }
.xd-reg-benefit span:last-child { font-size: .78em; color: #5a6580; }
.xd-reg-agree    { font-size: .78em; color: #5a6580; line-height: 1.5; margin: 0; }
.xd-reg-agree a  { color: #e8620a; }

/* БЛОГ */
.xd-blog-grid    { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; margin-bottom: 40px; }
.xd-blog-card    { overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.xd-blog-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-2px); }
.xd-blog-img-wrap { display: block; overflow: hidden; height: 200px; }
.xd-blog-img     { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.xd-blog-card:hover .xd-blog-img { transform: scale(1.04); }
.xd-blog-body    { padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.xd-blog-meta    { display: flex; gap: 10px; align-items: center; font-size: .76em; color: #5a6580; font-family: Arial, sans-serif; }
.xd-blog-cat     { background: rgba(232,98,10,.1); color: #e8620a; padding: 2px 8px; border-radius: 3px; font-weight: 600; }
.xd-blog-title   { font-family: Georgia, serif; font-size: 1.05em; font-weight: 700; margin: 0; line-height: 1.35; }
.xd-blog-title a { color: #1a2035; }
.xd-blog-title a:hover { color: #e8620a; }
.xd-blog-excerpt { font-size: .88em; color: #5a6580; line-height: 1.65; margin: 0; flex: 1; }
.xd-blog-more    { font-size: .84em; font-weight: 700; color: #e8620a; align-self: flex-start; }
.xd-blog-more:hover { color: #ff7a1a; }

/* Пагинация */
.xd-pagination   { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.xd-pagination .page-numbers { display: inline-block; padding: 8px 14px; border: 1.5px solid #e2e6f0; border-radius: 6px; font-size: .85em; color: #1a2035; background: #fff; transition: all .2s; text-decoration: none; }
.xd-pagination .page-numbers:hover,
.xd-pagination .page-numbers.current { background: #e8620a; border-color: #e8620a; color: #fff; }
.xd-blog-empty   { text-align: center; padding: 60px 20px; color: #5a6580; }
.xd-blog-empty a { color: #e8620a; display: block; margin-top: 12px; }

/* СТАТЬЯ */
.xd-single-hero { position: relative; min-height: 320px; display: flex; align-items: flex-end; padding-bottom: 36px; background: #0f2040; overflow: hidden; }
.xd-single-hero-img { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(.35); }
.xd-single-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,22,40,.95) 40%, rgba(10,22,40,.4)); }
.xd-single-hero-content { position: relative; z-index: 2; width: 100%; }
.xd-single-cat   { display: inline-block; background: #e8620a; color: #fff; font-size: .72em; font-weight: 700; padding: 3px 12px; border-radius: 3px; margin-bottom: 14px; font-family: Arial, sans-serif; }
.xd-single-hero-content h1 { font-family: Georgia, serif; font-size: clamp(20px,4vw,34px); font-weight: 700; color: #fff; margin: 0 0 14px; line-height: 1.25; }
.xd-single-meta  { display: flex; gap: 8px; align-items: center; font-size: .8em; color: #8aa8cc; font-family: Arial, sans-serif; flex-wrap: wrap; }
.xd-single-card  { padding: 40px 44px; margin-bottom: 24px; }
.xd-single-content { font-family: Georgia, 'Times New Roman', serif; font-size: 1.05em; line-height: 1.85; color: #1a2035; }
.xd-single-content h2 { font-size: 1.4em; margin: 36px 0 14px; }
.xd-single-content h3 { font-size: 1.15em; margin: 28px 0 10px; }
.xd-single-content p  { margin: 0 0 18px; }
.xd-single-content ul, .xd-single-content ol { padding-left: 24px; margin: 0 0 18px; }
.xd-single-content li { margin-bottom: 8px; }
.xd-single-content blockquote { border-left: 4px solid #e8620a; padding: 14px 20px; margin: 24px 0; background: #fff8f5; border-radius: 0 6px 6px 0; font-style: italic; }
.xd-single-content a { color: #e8620a; text-decoration: underline; }
.xd-single-content img { border-radius: 8px; margin: 20px 0; }
.xd-single-cta   { padding: 32px 36px; margin-bottom: 24px; background: linear-gradient(135deg,#fff8f5,#fff); border-left: 4px solid #e8620a; }
.xd-single-cta h3 { font-family: Georgia, serif; font-size: 1.15em; margin: 0 0 10px; }
.xd-single-cta p  { font-size: .9em; color: #5a6580; margin: 0 0 20px; line-height: 1.6; }
.xd-single-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.xd-cta-btn-primary { background: #e8620a; color: #fff; padding: 11px 22px; border-radius: 5px; font-weight: 700; font-size: .88em; font-family: Georgia, serif; transition: background .2s; text-decoration: none; }
.xd-cta-btn-primary:hover { background: #ff7a1a; color: #fff; }
.xd-cta-btn-ghost { border: 1.5px solid #e2e6f0; color: #5a6580; padding: 11px 22px; border-radius: 5px; font-size: .88em; transition: all .2s; text-decoration: none; }
.xd-cta-btn-ghost:hover { border-color: #e8620a; color: #e8620a; }
.xd-single-nav   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.xd-single-nav-item { background: #fff; border: 1px solid #e2e6f0; border-radius: 8px; padding: 16px 18px; display: flex; flex-direction: column; gap: 5px; transition: border-color .2s; text-decoration: none; }
.xd-single-nav-item:hover { border-color: #e8620a; }
.xd-single-nav-next { text-align: right; }
.xd-nav-dir   { font-size: .76em; color: #5a6580; font-family: Arial, sans-serif; }
.xd-nav-title { font-size: .88em; color: #1a2035; font-family: Georgia, serif; line-height: 1.35; font-weight: 600; }

/* ФУТЕР */
.xi-footer { background: #0a1628; border-top: 1px solid #1e3560; padding: 28px 24px; }
.xi-footer-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: .78em; color: #5a7a9a; font-family: Arial, sans-serif; }
.xi-footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.xi-footer-links a { color: #5a7a9a; text-decoration: underline; }
.xi-footer-links a:hover { color: #f0c060; }

/* АДАПТИВ */
@media(max-width:768px) {
    .xi-header { position: relative; }
    .xi-burger { display: flex; }
    .xi-nav-list { display: none; flex-direction: column; align-items: flex-start; gap: 0; position: absolute; top: 60px; left: 0; right: 0; background: #0a1628; border-bottom: 1px solid #1e3560; padding: 12px 0; z-index: 999; }
    .xi-nav.open .xi-nav-list { display: flex; }
    .xi-nav-list > li { width: 100%; }
    .xi-nav-list > li > a { padding: 12px 24px; }
    .xi-nav-list > li > ul { position: static; display: block; box-shadow: none; border: none; border-radius: 0; background: rgba(255,255,255,.04); padding: 0; min-width: auto; }
    .xd-single-nav { grid-template-columns: 1fr; }
    .xd-auth-card { padding: 28px 20px; }
    .xi-footer-inner { flex-direction: column; text-align: center; }
}
@media(max-width:540px) {
    .xi-page-hero { padding: 24px 16px; }
    .xi-main { padding: 28px 0 40px; }
    .xi-wrap, .xi-wrap-narrow { padding: 0 16px; }
    .xd-single-card { padding: 24px 18px; }
    .xd-single-cta { padding: 22px 18px; }
}
