
/* Imported */
:root {
  --ink: #172033;
  --muted: #5c6880;
  --paper: #f5f7fb;
  --card: #ffffff;
  --line: #dce3ee;
  --accent: #285cc4;
  --accent-dark: #173e8c;
  --sky: #dfefff;
  --warm: #fff6de;
  --success: #e8f6ef;
  --radius: 18px;
  --shadow: 0 18px 55px rgba(27, 52, 94, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.72;
}
a { color: var(--accent-dark); }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; display: block; }
figure, img { min-width: 0; }

/* Responsive safety: allow every content block to shrink inside grids/flex rows. */
main, article, section, .wrap, .hero-copy, .section-heading,
.hero-grid > *, .split > *, .visual-grid > *,
.verdict-card, .mini-card, .decision-box, figure {
  min-width: 0;
}
p, li, td, th, figcaption, a {
  overflow-wrap: anywhere;
  word-break: normal;
}
.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}
.header-grid, .footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}
.site-header nav, .site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-header nav a, .site-footer nav a { text-decoration: none; font-weight: 650; }
.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent-dark);
}
.site-kicker { margin: 0; color: var(--muted); font-size: 0.94rem; }
.hero {
  background: linear-gradient(180deg, #ffffff 0%, var(--sky) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 52px;
  align-items: center;
  padding: 70px 0 64px;
}
h1 {
  font-size: clamp(2.35rem, 4.6vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  text-wrap: balance;
}
h2 { font-size: clamp(1.75rem, 3vw, 2.55rem); line-height: 1.14; letter-spacing: -0.025em; margin: 0 0 18px; }
h3 { line-height: 1.25; margin-top: 0; }
.lead { font-size: 1.2rem; line-height: 1.65; }
.hero-figure, .visual-band figure { margin: 0; }
.hero-figure img, .visual-band img {
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #e7f1ff;
  border: 1px solid #c9d8eb;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.45;
}
figcaption { margin-top: 10px; color: var(--muted); font-size: 0.9rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.button {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--accent-dark);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}
.button-secondary { background: #fff; color: var(--accent-dark); border: 1px solid var(--line); }
.section-block { padding: 62px 0; }
.section-heading { max-width: 800px; margin-bottom: 28px; }
.verdict-grid, .cards-three { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cards-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.verdict-card, .mini-card, .decision-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 10px 30px rgba(27, 52, 94, 0.06);
}
.caution-card { background: var(--warm); }
.verdict-card ul, .decision-box ul, .decision-box ol { padding-left: 20px; margin-bottom: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { width: 100%; min-width: 0; border-collapse: collapse; }
th, td { text-align: left; padding: 15px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #eef4ff; font-size: 0.92rem; }
tr:last-child td { border-bottom: 0; }
.note { color: var(--muted); border-left: 4px solid var(--accent); padding-left: 16px; margin-top: 20px; }
.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr); gap: 34px; align-items: start; }
.decision-box { background: var(--success); position: sticky; top: 98px; }
.visual-band { background: #18243b; color: #f7f9fd; padding: 58px 0; }
.visual-band a, .visual-band .eyebrow { color: #bcd4ff; }
.visual-band figcaption { color: #dce6f5; }
.visual-grid { display: grid; grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr); gap: 42px; align-items: center; }
.trust-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tax-section { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding-left: 34px; padding-right: 34px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 800; padding: 18px 0; }
.faq details p { margin-top: 0; padding-bottom: 18px; }
.final-verdict { background: var(--sky); border-radius: 26px; margin-bottom: 64px; padding-left: 34px; padding-right: 34px; }
.site-footer { background: #101827; color: #dce6f5; }
.site-footer a { color: #dce6f5; }
.site-footer p { margin: 6px 0 0; color: #aebcd2; }
@media (max-width: 1100px) {
  h1 { font-size: clamp(2.45rem, 4.5vw, 3.35rem); }
}

@media (max-width: 980px) {
  h1 { font-size: clamp(2.25rem, 4.8vw, 3rem); }
  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
    gap: 34px;
  }
  .split { grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr); gap: 26px; }
  .visual-grid { grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr); gap: 30px; }
  .cards-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
  h1 { font-size: clamp(2.55rem, 7vw, 3.55rem); }
  .hero-grid, .split, .visual-grid, .cards-three, .verdict-grid { grid-template-columns: 1fr; }
  .decision-box { position: static; }
  .header-grid, .footer-grid { align-items: flex-start; flex-direction: column; gap: 14px; }
  .site-header { position: static; }
  .site-header nav, .site-footer nav { width: 100%; }
}

@media (max-width: 900px) {
  /* Convert the facts table into stacked cards instead of forcing horizontal scrolling. */
  .table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .table-wrap table,
  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap td {
    display: block;
    width: 100%;
  }
  .table-wrap thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .table-wrap tr {
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
    box-shadow: 0 8px 22px rgba(27, 52, 94, 0.05);
  }
  .table-wrap td {
    display: grid;
    grid-template-columns: minmax(118px, 0.42fr) minmax(0, 1fr);
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
  }
  .table-wrap tr td:not(:last-child) { border-bottom: 1px solid var(--line); }
  .table-wrap td:last-child { border-bottom: 0; }
  .table-wrap td::before {
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.4;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .table-wrap td:nth-child(1)::before { content: "Onderwerp"; }
  .table-wrap td:nth-child(2)::before { content: "Status"; }
  .table-wrap td:nth-child(3)::before { content: "Praktische betekenis"; }
}

@media (max-width: 700px) {
  .header-grid, .footer-grid { padding-left: 0; padding-right: 0; }
  .hero-actions, .site-header nav, .site-footer nav { min-width: 0; }
  .visual-band figure, .hero-figure { width: 100%; }
  .visual-band img, .hero-figure img { width: 100%; max-width: 100%; }
  .faq summary { overflow-wrap: anywhere; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 26px, 1160px); }
  .hero-grid { padding: 40px 0 42px; gap: 26px; }
  .section-block { padding: 44px 0; }
  h1 { font-size: clamp(1.95rem, 9.5vw, 2.65rem); line-height: 1.08; letter-spacing: -0.03em; }
  h2 { font-size: clamp(1.55rem, 8vw, 2rem); }
  .lead { font-size: 1.08rem; }
  .site-header nav, .site-footer nav { gap: 8px 14px; }
  .site-header nav a, .site-footer nav a {
    flex: 1 1 calc(50% - 14px);
    min-width: 0;
  }
  .hero-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .hero-actions .button { width: 100%; text-align: center; }
  .verdict-card, .mini-card, .decision-box { padding: 20px; }
  .tax-section, .final-verdict { border-radius: 18px; padding-left: 18px; padding-right: 18px; }
  .faq details { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 420px) {
  .wrap { width: min(100% - 20px, 1160px); }
  .header-grid { padding: 14px 0; }
  .site-header nav a, .site-footer nav a { flex-basis: 100%; }
  .table-wrap td {
    display: block;
    padding: 11px 13px;
  }
  .table-wrap td::before {
    display: block;
    margin-bottom: 4px;
  }
  .section-block { padding: 38px 0; }
  .visual-band { padding: 44px 0; }
}

@media (max-width: 380px) {
  h1 { font-size: clamp(1.78rem, 9.2vw, 2.15rem); line-height: 1.1; letter-spacing: -0.025em; }
}


html, body { 
    max-width: 100vw !important; 
    overflow-x: hidden !important; 
}

@media (max-width: 768px) {
    /* 1. Снимаем все жесткие ограничения по ширине */
    * {
        max-width: 100vw !important;
        min-width: 0 !important; /* Главный секрет: разрешаем блокам сжиматься! */
        box-sizing: border-box !important;
    }
    
    /* 2. Заставляем все обертки занимать ровно 100% экрана, а не больше */
    body, #page, .site, main, article, section, .content-main, .article-wrapper {
        width: 100% !important;
    }

    /* 3. Добавляем аккуратные отступы, чтобы текст не лип к рамке телефона */
    main {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    
    /* 4. Жесткий перенос любых длинных слов, чтобы они не распирали блоки */
    p, h1, h2, h3, h4, h5, h6, a, span, li, b, strong {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        white-space: normal !important;
    }
}
.site-header { background-color: #ffffff !important; border-bottom: 1px solid rgba(0,0,0,0.06) !important; box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important; position: sticky; top: 0; z-index: 100; }
.top-navigation-bar { width: 100%; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; }
.site-logo { min-width: 180px; margin: 0; }
.site-logo img { max-height: 50px !important; max-width: none !important; width: auto !important; display: block; margin-left: 70px; transition: transform 0.2s ease; }
.site-logo img:hover { transform: scale(1.02); }

/* === ЦЕНТРИРОВАНИЕ ХЛЕБНЫХ КРОШЕК === */
#crumbs {
    max-width: var(--content-max-width, 1180px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    #crumbs {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/* Force Burger Menu on all devices, hide old nav completely and hide broken showcase */
.site-nav--desktop, #mobile-menu, .mobile-menu, .mobile-menu-overlay, .mobile-menu__close, .child-pages-showcase { display: none !important; }
.burger { display: flex; flex-direction: column; gap: 6px; background: transparent; border: none; cursor: pointer; padding: 5px; z-index: 1000; margin-left: auto; margin-right: 100px; }
@media (max-width: 768px) { .burger { margin-right: 10px !important; } }
.burger span { display: block; width: 28px; height: 3px; background-color: var(--color-text, #111827) !important; border-radius: 2px; }

/* ================================================= */
/* 🌟 ПРЕМИАЛЬНОЕ ТЕМНОЕ МЕНЮ (GLASSMORPHISM) 🌟 */
/* ================================================= */
.cam-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); z-index: 999998; opacity: 0; visibility: hidden; transition: opacity 0.3s ease; }
.cam-overlay.is-active { opacity: 1; visibility: visible; }

.cam-sidebar { position: fixed; top: 0; right: -100%; width: 100%; max-width: 420px; height: 100vh; background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border-left: 1px solid rgba(255,255,255,0.08); z-index: 999999; overflow-y: auto; transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: -10px 0 40px rgba(0,0,0,0.5); }
.cam-sidebar.is-open { right: 0; }

.cam-header { display: flex; justify-content: space-between; align-items: center; padding: 30px 25px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.cam-header-title { font-size: 16px; font-weight: 800; color: #ffffff; text-transform: uppercase; letter-spacing: 2px; }
.cam-close { background: none; border: none; font-size: 36px; line-height: 1; cursor: pointer; color: #ffffff; opacity: 0.6; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; }
.cam-close:hover { opacity: 1; transform: rotate(90deg); background: rgba(255,255,255,0.1); }

.cam-nav { list-style: none; margin: 0; padding: 0; }
.cam-item { border-bottom: 1px solid rgba(255,255,255,0.05); }

.cam-item-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 25px; cursor: pointer; transition: all 0.3s ease; }
.cam-item-header:hover { background: rgba(255,255,255,0.03); padding-left: 32px; }
.cam-item-header a { font-size: 17px; font-weight: 700; color: #f8fafc; text-decoration: none; flex: 1; display: block; letter-spacing: 0.5px; }

.cam-toggle { background: rgba(255,255,255,0.05); border: none; cursor: pointer; padding: 8px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background 0.3s ease; }
.cam-toggle:hover { background: rgba(255,255,255,0.15); }
.cam-toggle svg { width: 12px; height: 8px; transition: transform 0.3s ease; }
.cam-toggle svg path { stroke: #ffffff; stroke-width: 2.5; }
.cam-toggle.is-open svg { transform: rotate(180deg); }

.cam-children { list-style: none; margin: 0; padding: 0; display: none; background: rgba(0,0,0,0.25); border-top: 1px solid rgba(255,255,255,0.03); box-shadow: inset 0 5px 15px rgba(0,0,0,0.1); }
.cam-children.is-open { display: block; animation: slideDown 0.3s ease-out forwards; }

.cam-child-item a { display: flex; padding: 18px 25px; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.02); gap: 18px; align-items: center; transition: all 0.3s ease; }
.cam-child-item a:hover { background: rgba(255,255,255,0.05); padding-left: 32px; }
.cam-child-item img { width: 65px; height: 45px; object-fit: cover; border-radius: 6px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); opacity: 0.9; transition: opacity 0.3s ease; }
.cam-child-item a:hover img { opacity: 1; }
.cam-child-text strong { display: block; font-size: 14px; margin-bottom: 5px; color: #ffffff; line-height: 1.3; font-weight: 600; }
.cam-child-text span { display: block; font-size: 13px; color: #94a3b8; line-height: 1.4; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

main > *:not([data-content="hero"]):not(.cl-header):not(header):not(.cl-hero), main article > *:not([data-content="hero"]):not(.cl-header):not(header):not(.cl-hero) { max-width: var(--content-max-width, 1180px) !important; margin-left: auto !important; margin-right: auto !important; padding-left: 20px !important; padding-right: 20px !important; box-sizing: border-box !important; }
main iframe, main article iframe { max-width: 100% !important; margin-left: auto !important; margin-right: auto !important; transform: none !important; width: 100% !important; }
main h1 { font-size: clamp(2rem, 4vw, 3.5rem) !important; font-weight: 800; margin-top: 30px; margin-bottom: 20px; line-height: 1.2; }
.cl-hero img, .content-article img, img.article-image, img.wp-post-image { max-width: 100%; width: 100%; height: auto !important; object-fit: cover; border-radius: 8px; display: block; margin: 0 auto; }
@media (max-width: 768px) {
    section table, table { display: block !important; width: 100% !important; max-width: 100vw !important; min-width: 0 !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch !important; }
    table th, table td { min-width: 150px !important; word-wrap: break-word !important; }
}

/* ВОЗВРАТ СТИЛЕЙ КАРТЫ САЙТА */
.sitemap-main { max-width: 900px; margin: 0 auto; padding: 40px 24px; }
.sitemap-title { margin: 0 0 10px; text-align: center; font-size: 32px; font-weight: 800; }
.sitemap-subtitle { margin: 0 0 30px; text-align: center; opacity: 0.75; font-size: 16px; }
.sitemap-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.sitemap-link { display: block; padding: 14px 18px; border: 1px solid rgba(0,0,0,0.1); border-radius: 8px; text-decoration: none; color: #111; font-weight: 600; transition: all 0.2s ease; background: #fff; }
.sitemap-link:hover { border-color: rgba(0,0,0,0.3); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.05); }

/* ВОЗВРАТ СТИЛЕЙ ФУТЕРА */
.site-footer { padding: 40px 20px; background: #f8f9fa; border-top: 1px solid #eaeaea; margin-top: 60px; text-align: center; }
.footer-menu-list { list-style: none !important; padding: 0 !important; margin: 0 auto 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.footer-menu-list li { margin: 0; padding: 0; }
.footer-menu-list a { text-decoration: none; color: #555; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.footer-menu-list a:hover { color: #000; text-decoration: underline; }
/* ================================================= */
/* КАСТОМНАЯ СЕТКА ДОЧЕРНИХ СТРАНИЦ (MD-GRID) */
/* ================================================= */
.md-child-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
    max-width: 1100px !important;
    margin: 40px auto !important;
    padding: 0 20px !important;
}

@media (max-width: 768px) {
    .md-child-grid { grid-template-columns: 1fr !important; }
}

.md-child-card {
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    text-decoration: none !important;
    overflow: hidden !important;
    border: 1px solid rgba(0,0,0,0.04) !important;
}

.md-child-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12) !important;
}

.md-child-card-img {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
    background: #f0f0f0 !important;
}

.md-child-card-content {
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

.md-child-card-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.3 !important;
}

.md-child-card-excerpt {
    font-size: 14px !important;
    color: #4B5563 !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

@media (max-width: 768px) {
    .site-logo img { 
        margin-left: 0 !important; 
    }
}

/* === КНОПКА «НАВЕРХ» === */
#md-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99999;
}
#md-scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
}
#md-scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.6);
}
#md-scroll-top svg {
    width: 22px;
    height: 22px;
    stroke: #ffffff;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
