/*
Theme Name: GeneratePress Child
*/

/* =========================
RESET + BASE
========================= */

:root {
--space-xs: 8px;
--space-sm: 16px;
--space-md: 24px;
--space-lg: 40px;
--space-xl: 60px;

--radius-md: 16px;
--radius-lg: 20px;

--border-color: #e6e9ef;
}

* {
  box-sizing: border-box;
  }

img,
table {
max-width: 100%;
}

/* =========================
HEADER
========================= */

.site-header,
.main-navigation {
background-color: #0b1f3a;
}

.main-navigation a,
.site-title a {
color: #ffffff !important;
font-weight: 700;
}

/* =========================
FULL WIDTH FIX (GeneratePress)
========================= */

.site.grid-container {
max-width: 100% !important;
width: 100% !important;
}

#page {
width: 100%;
}

/* Для CPT zakony */
body.single-zakony .grid-container,
body.single-zakony .inside-article,
body.single-zakony .content-area {
max-width: 100% !important;
width: 100% !important;
padding: 0 !important;
}

/* Для CPT dokumenty */
body.single-dokument .grid-container,
body.single-dokument .inside-article,
body.single-dokument .content-area {
max-width: 100% !important;
width: 100% !important;
padding: 0 !important;
}

/* =========================
WRAPPER
========================= */

.zakon-wrapper,
.document-wrapper {
width: 100%;
margin: 60px 0;
padding: 0 20px;
display: flex;
justify-content: center;
}

/* =========================
CARD
========================= */

.zakon-card,
.document-card {
width: 100%;
max-width: 1200px;
background: #ffffff;
padding: 40px;
border-radius: 20px;
box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* =========================
TITLE
========================= */

.zakon-title,
.document-title {
font-size: 34px;
margin-bottom: 16px;
}

/* =========================
BREADCRUMBS
========================= */

.zakon-breadcrumbs {
font-size: 14px;
margin-bottom: 20px;
color: #6b7280;
}

/* =========================
HEADER META (номер + статус)
========================= */

.zakon-header-meta {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 24px;
}

.zakon-number {
font-size: 16px;
color: #6b7280;
}

.zakon-status {
padding: 6px 14px;
border-radius: 999px;
font-size: 13px;
font-weight: 600;
}

.zakon-status-chynnyj {
background: #e6f4ea;
color: #15803d;
}

.zakon-status-nechynnyj {
background: #fee2e2;
color: #b91c1c;
}

/* =========================
META BLOCKS
========================= */

.zakon-meta p {
background: #ffffff;
border: 1px solid var(--border-color);
padding: 20px;
border-radius: 16px;
margin-bottom: 16px;
box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.zakon-meta p span,
.zakon-meta p a {
font-size: 16px;
font-weight: 600;
color: #111827;
}

/* =========================
SUMMARY
========================= */

.zakon-summary {
margin-top: 30px;
padding: 20px;
background: #f9fafb;
border-radius: 16px;
border: 1px solid #e5e7eb;
}

/* =========================
CONTENT
========================= */

.zakon-content,
.document-content {
margin-top: 30px;
padding-top: 20px;
border-top: 1px solid #e5e7eb;
font-size: 17px;
line-height: 1.7;
}

/* =========================
RELATED
========================= */

.zakon-related {
margin-top: 40px;
}

.zakon-related-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 20px;
}

.zakon-related-item {
display: block;
padding: 20px;
border-radius: 16px;
background: #ffffff;
border: 1px solid var(--border-color);
text-decoration: none;
transition: 0.2s;
}

.zakon-related-item:hover {
transform: translateY(-4px);
box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.zakon-related-title {
font-weight: 600;
margin-bottom: 10px;
color: #111827;
}

.zakon-related-meta {
display: flex;
gap: 10px;
font-size: 14px;
}

/* =========================
BUTTON
========================= */

.ui-button {
display: inline-block;
padding: 16px 28px;
border-radius: 14px;
background: #0b1f3a;
color: #ffffff;
font-weight: 600;
text-decoration: none;
margin-top: 20px;
}

.ui-button:hover {
background: #122b4d;
}

/* =========================
SOURCE
========================= */

.zakon-source {
margin-top: 40px;
font-size: 14px;
color: #6b7280;
}

/* =========================
ARCHIVE
========================= */

.zakon-list {
display: flex;
flex-direction: column;
gap: 16px;
}

.zakon-item-card {
background: #ffffff;
border: 1px solid #e6e9ef;
padding: 18px;
border-radius: 14px;
transition: 0.2s;
}

.zakon-item-card:hover {
transform: translateY(-2px);
}

/* =========================
MOBILE
========================= */

@media (max-width: 768px) {

.zakon-wrapper,
.document-wrapper {
padding: 20px;
}

.zakon-card,
.document-card {
padding: 20px;
}

.zakon-title,
.document-title {
font-size: 24px;
}

}

/* =========================
DOCUMENT UI FIX
========================= */

.document-card {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  background: #ffffff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}

/* Заголовок */
.document-title {
  font-size: 32px;
  margin-bottom: 10px;
}

/* Категория (Заява) */
.document-category {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 14px;
  color: #2563eb;
  text-decoration: none;
}

/* Инфо блок (дата) */
.document-meta-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 18px 20px;
  border-radius: 14px;
  margin-bottom: 25px;
  font-size: 15px;
}

/* Summary */
.document-summary {
  margin-top: 20px;
  padding: 25px;
  background: #f9fafb;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
}

.document-summary h2 {
  margin-bottom: 10px;
}

/* Кнопка загрузки */
.document-download {
  margin-top: 20px;
}

.document-download a {
  display: inline-block;
  padding: 14px 24px;
  background: #0b1f3a;
  color: #ffffff;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
}

.document-download a:hover {
  background: #122b4d;
}

/* Контент */
.document-content {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  line-height: 1.7;
}

/* =========================
DOCUMENT TYPE (TAXONOMY BADGE)
========================= */

.document-category {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: #e0edff;
  color: #1d4ed8;
  transition: 0.2s;
  margin-bottom: 20px;
}

.document-category:hover {
  background: #c7dcff;
  color: #1e40af;
}

/* =========================
ARCHIVE FIX (СТРОГО ДЛЯ СПИСКА)
========================= */

.zakon-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.zakon-item-card {
  display: block;
  background: #ffffff;
  border: 1px solid #e6e9ef;
  padding: 20px;
  border-radius: 16px;
  text-decoration: none;
  transition: 0.2s;
}

.zakon-item-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.zakon-item-title {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 10px;
  color: #111827;
}

.zakon-item-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
}

.zakon-item-number {
  color: #6b7280;
}

.zakon-card h1 {
  margin-bottom: 15px;
}

.zakon-archive-intro {
  margin-bottom: 35px;
}

.zakon-list {
  margin-top: 10px;
}

.zakon-seo-card {
  margin-top: 30px;
}

.zakon-seo-text {
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
}

/* только для страницы таксономии */
body.tax-typ-dokumentu #right-sidebar,
body.tax-typ-dokumentu #left-sidebar {
    display: none;
}

body.tax-typ-dokumentu #primary {
    width: 100%;
}

body.tax-typ-dokumentu .content-area {
    width: 100%;
}

.zakon-seo-text {
    margin-top: 30px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
}

.zakon-related {
    margin-top: 40px;
}

.zakon-related-title {
    font-size: 20px;
    margin-bottom: 15px;
}

.zakon-related-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.zakon-related-item {
    display: inline-block;
    padding: 8px 14px;
    background: #f1f5f9;
    border-radius: 8px;
    text-decoration: none;
    color: #1e293b;
    transition: 0.2s;
}

.zakon-related-item:hover {
    background: #e2e8f0;
}

/* ОБЩАЯ ОБЕРТКА */
.zakon-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 15px;
}

/* КАРТОЧКИ */
.zakon-card {
    background: #f9fafb;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
}

/* ЗАГОЛОВОК */
.zakon-title {
    font-size: 28px;
    margin-bottom: 10px;
}

/* ВСТУП */
.zakon-archive-intro {
    font-size: 16px;
    color: #374151;
    margin-bottom: 20px;
}

/* СПИСОК */
.zakon-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* КАРТОЧКА ЭЛЕМЕНТА */
.zakon-item-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    padding: 18px 20px;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    transition: 0.2s;
}

.zakon-item-card:hover {
    background: #f3f4f6;
}

/* ВНУТРЕННОСТЬ */
.zakon-item-inner {
    display: flex;
    flex-direction: column;
}

/* НАЗВАНИЕ */
.zakon-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

/* META (кол-во документов) */
.zakon-item-meta {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

/* SEO БЛОК */
.zakon-seo-card {
    margin-top: 10px;
}

/* SEO заголовок */
.zakon-seo-title {
    font-size: 22px;
    margin-bottom: 15px;
}

/* SEO текст */
.zakon-seo-text {
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
}

/* SEO ссылки */
.zakon-seo-links {
    margin-top: 20px;
}

.zakon-seo-link {
    display: inline-block;
    margin: 5px 10px 5px 0;
    font-size: 14px;
    color: #1e3a8a;
    text-decoration: none;
}

.zakon-seo-link:hover {
    text-decoration: underline;
}

/* HEADER */
.site-header {
    background: #0b1f3a;
    padding: 15px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */
.header-logo a {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
}

/* MENU */
.header-nav {
    display: flex;
    gap: 25px;
}

.header-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    transition: 0.2s;
}

.header-nav a:hover {
    color: #ff9900;
}

/* BURGER */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 4px 0;
}

/* MOBILE */
@media (max-width: 768px) {

    .header-nav {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;

        background: #0b1f3a;

        flex-direction: column;
        align-items: center;

        display: none;
        padding: 20px 0;
    }

    .header-nav.active {
        display: flex;
    }

    .burger {
        display: flex;
    }

}
.custom-header {
    background: #0b1f3a; /* темный фон */
    padding: 15px 0;
    position: relative;
    z-index: 999;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo a {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
}

.header-nav {
    display: flex;
    gap: 20px;
}

.header-nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}

.header-nav a:hover {
    color: #ff9900;
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 4px 0;
}

@media (max-width: 768px) {

    .header-nav {
        display: none;
        position: absolute;
        top: 60px;
        right: 20px;
        background: #0b1f3a;
        flex-direction: column;
        padding: 15px;
        border-radius: 10px;
    }

    .header-nav.active {
        display: flex;
    }

    .burger {
        display: flex;
    }
}

.custom-header {
    background: #0b1f3a;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo a {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
}

.header-nav {
    display: flex;
    gap: 25px;
}

.header-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.header-nav a::after {
    content: '';
    display: block;
    height: 2px;
    background: #ff9900;
    width: 0;
    transition: 0.3s;
    margin-top: 4px;
}

.header-nav a:hover::after {
    width: 100%;
}

/* BURGER */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 4px 0;
}

/* MOBILE */
@media (max-width: 768px) {

    .header-nav {
        display: none;
        position: absolute;
        top: 60px;
        right: 20px;
        background: #0b1f3a;
        flex-direction: column;
        padding: 15px;
        border-radius: 10px;
        width: 200px;
    }

    .header-nav.active {
        display: flex;
    }

    .burger {
        display: flex;
    }
}

.site-footer {
    background: #0b1f3a;
    color: #fff;
    padding: 20px 0;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-right a {
    color: #ff9900;
    text-decoration: none;
}

.footer-right a:hover {
    text-decoration: underline;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* основной контент */
.site-content,
.zakon-wrapper {
    flex: 1;
}

.site-footer {
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
}

html, body {
    height: 100%;
    margin: 0;
}

#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* основной контент */
.site-content,
.zakon-wrapper {
    flex: 1;
}

/* чтобы не было странных отступов */
body {
    background: #f3f4f6;
}

.custom-header {
    background: #0b1f3a;
    padding: 15px 0;

    position: sticky;
    top: 0;
    z-index: 1000;

    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.custom-header.scrolled {
    padding: 10px 0;
    background: #08182c;
}
.header-nav a {
    padding: 5px 0;
}

@media (max-width: 768px) {
    .header-nav {
        right: 10px;
    }
}

/* CONTAINER */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* HERO */
.home-hero {
    background: linear-gradient(135deg, #0b1f3a, #1d3a6d);
    color: #fff;
    text-align: center;
}

.home-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.home-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 25px;
}

/* BUTTONS */
.home-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: #ff9900;
    color: #fff;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.btn-dark {
    background: #0b1f3a;
    color: #fff;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
}

/* WRAPPER */
.zakon-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 1100px;
    margin: 40px auto;
}

/* CARD */
.zakon-card {
    background: #f7f8fa;
    padding: 30px;
    border-radius: 16px;
}

/* TITLES */
.block-title {
    font-size: 22px;
    margin-bottom: 20px;
}

/* DOCUMENT GRID */
.doc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.doc-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    color: #000;
    transition: 0.2s;
}

.doc-card:hover {
    transform: translateY(-3px);
}

.doc-title {
    font-weight: 600;
}

.doc-count {
    font-size: 13px;
    opacity: 0.6;
}

/* LAW GRID */
.law-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.law-card {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    text-decoration: none;
    color: #000;
}

/* BLOG */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blog-item {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    text-decoration: none;
    color: #000;
}

/* CTA */
.home-cta {
    text-align: center;
    padding: 40px;
    background: #0b1f3a;
    color: #fff;
    border-radius: 16px;
}

/* MOBILE */
@media (max-width: 768px) {
    .doc-grid,
    .law-grid {
        grid-template-columns: 1fr;
    }

    .home-title {
        font-size: 26px;
    }
}

.block-link {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(11,31,58,0.05);
    color: #0b1f3a;
}

.home-seo-block {
    margin-top: 40px;
}

.home-seo-content {
    color: #2c3e50;
    font-size: 16px;
    line-height: 1.7;
}

.home-seo-content h2 {
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 22px;
}

.home-seo-content p {
    margin-bottom: 15px;
}

.home-seo-content ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.zakon-original-link {
    margin-top: 14px;
}

.zakon-original-link a {
    display: inline-block;
    padding: 10px 16px;
    background: #f3f6fb;
    color: #0b1f3a;
    text-decoration: none;
    border: 1px solid #d9e2f0;
    border-radius: 8px;
    font-weight: 600;
    transition: all .2s ease;
}

.zakon-original-link a:hover {
    background: #0b1f3a;
    color: #fff;
    border-color: #0b1f3a;
}

.zakony-archive-page {
    padding: 28px 15px 40px;
}

.zakony-archive-box {
    max-width: 1680px;
    margin: 0 auto;
    background: #f4f6f8;
    border-radius: 30px;
    padding: 48px 54px;
}

.zakony-breadcrumbs {
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.5;
}

.zakony-breadcrumbs p,
.zakony-breadcrumbs span,
.zakony-breadcrumbs a {
    color: #5c667a;
}

.zakony-breadcrumbs a {
    text-decoration: none;
}

.zakony-breadcrumbs a:hover {
    text-decoration: underline;
}

.zakony-archive-header {
    margin-bottom: 34px;
}

.zakony-archive-title {
    font-size: 72px;
    line-height: 1.05;
    font-weight: 500;
    color: #1f2430;
    margin: 0 0 22px;
}

.zakony-archive-description {
    font-size: 24px;
    line-height: 1.55;
    color: #445069;
    max-width: 1100px;
}

.zakony-archive-description p:last-child {
    margin-bottom: 0;
}

.zakony-list {
    display: flex;
    flex-direction: column;
    gap: 26px;
    margin-bottom: 40px;
}

.zakon-card {
    background: #fff;
    border: 1px solid #dfe5ea;
    border-radius: 24px;
    transition: all .2s ease;
}

.zakon-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 35, 70, 0.06);
}

.zakon-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 34px 36px;
}

.zakon-card-title {
    margin: 0 0 18px;
    font-size: 28px;
    line-height: 1.3;
    font-weight: 700;
    color: #10233f;
}

.zakon-card-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.zakon-card-number {
    font-size: 21px;
    color: #6c778c;
}

.zakon-card-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 10px 24px;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 700;
}

.zakon-status-chynnyj {
    background: #dceadf;
    color: #16803c;
}

.zakon-status-nechynnyj {
    background: #f8e3e3;
    color: #a63a3a;
}

.zakony-pagination {
    margin: 18px 0 42px;
}

.zakony-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.zakony-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 14px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #d8dee6;
    color: #10233f;
    text-decoration: none;
    font-weight: 600;
}

.zakony-pagination .page-numbers.current,
.zakony-pagination .page-numbers:hover {
    background: #0b2341;
    border-color: #0b2341;
    color: #fff;
}

.zakony-empty {
    background: #fff;
    border: 1px solid #dfe5ea;
    border-radius: 24px;
    padding: 28px 32px;
    font-size: 20px;
    color: #445069;
}

.zakony-seo-box {
    margin-top: 24px;
    background: #fff;
    border-radius: 24px;
    padding: 34px 36px;
    border: 1px solid #dfe5ea;
}

.zakony-seo-box h2 {
    margin: 0 0 18px;
    font-size: 56px;
    line-height: 1.1;
    font-weight: 500;
    color: #445069;
}

.zakony-seo-content {
    font-size: 20px;
    line-height: 1.7;
    color: #445069;
}

.zakony-seo-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 1200px) {
    .zakony-archive-title {
        font-size: 52px;
    }

    .zakony-archive-description {
        font-size: 21px;
    }

    .zakony-seo-box h2 {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .zakony-archive-page {
        padding: 18px 12px 28px;
    }

    .zakony-archive-box {
        padding: 26px 18px;
        border-radius: 20px;
    }

    .zakony-breadcrumbs {
        margin-bottom: 16px;
        font-size: 13px;
    }

    .zakony-archive-title {
        font-size: 38px;
        margin-bottom: 14px;
    }

    .zakony-archive-description {
        font-size: 18px;
    }

    .zakon-card-link {
        padding: 22px 18px;
    }

    .zakon-card-title {
        font-size: 23px;
    }

    .zakon-card-number {
        font-size: 18px;
    }

    .zakon-card-status {
        min-height: 44px;
        font-size: 16px;
        padding: 8px 18px;
    }

    .zakony-seo-box {
        padding: 24px 18px;
    }

    .zakony-seo-box h2 {
        font-size: 34px;
    }

    .zakony-seo-content {
        font-size: 18px;
    }
}

.zakon-original-link {
    margin-bottom: 18px;
}

/* =========================
SINGLE POST
========================= */

.single-post-card {
    max-width: 860px;
    margin: 0 auto;
}

.single-post-thumb {
    margin-bottom: 32px;
    border-radius: 14px;
    overflow: hidden;
}

.single-post-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.single-post-nav {
    display: flex;
    gap: 16px;
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.single-post-nav-item {
    flex: 1 1 calc(50% - 8px);
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    text-decoration: none;
    transition: 0.2s;
    min-width: 200px;
}

.single-post-nav-item:hover {
    background: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.single-post-nav-next {
    text-align: right;
}

.single-post-nav-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ff9900;
}

.single-post-nav-title {
    font-size: 15px;
    font-weight: 600;
    color: #10233f;
    line-height: 1.4;
}

body.single-post .grid-container,
body.single-post .inside-article,
body.single-post .content-area {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}

@media (max-width: 600px) {
    .single-post-nav-item {
        flex: 1 1 100%;
    }
    .single-post-nav-next {
        text-align: left;
    }
}

/* =========================
CONTACTS PAGE
========================= */

.contacts-page {
    background: #f3f4f6;
    flex: 1;
}

/* HERO */
.contacts-hero {
    background: linear-gradient(135deg, #0b1f3a, #1d3a6d);
    padding: 60px 20px;
    text-align: center;
}

.contacts-hero-inner {
    max-width: 700px;
    margin: 0 auto;
}

.contacts-hero-title {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px;
}

.contacts-hero-sub {
    font-size: 18px;
    color: rgba(255,255,255,0.82);
    margin: 0;
}

/* WRAPPER */
.contacts-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 20px 60px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
    align-items: start;
}

/* INFO CARDS */
.contacts-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contacts-info-card {
    background: #ffffff;
    border: 1px solid #e6e9ef;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
    transition: transform 0.2s;
}

.contacts-info-card:hover {
    transform: translateY(-2px);
}

.contacts-info-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.contacts-info-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 4px;
}

.contacts-info-value {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
}

a.contacts-info-value:hover {
    color: #ff9900;
}

/* FORM CARD */
.contacts-form-card {
    background: #ffffff;
    border: 1px solid #e6e9ef;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.05);
}

.contacts-form-title {
    font-size: 24px;
    font-weight: 700;
    color: #10233f;
    margin: 0 0 24px;
}

/* ERRORS */
.contacts-errors {
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.contacts-error-item {
    font-size: 14px;
    color: #b91c1c;
    margin: 0 0 4px;
}

.contacts-error-item:last-child {
    margin-bottom: 0;
}

/* FORM */
.contacts-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contacts-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.contacts-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contacts-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.contacts-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1.5px solid #e6e9ef;
    border-radius: 12px;
    background: #f9fafb;
    color: #111827;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.contacts-input:focus {
    border-color: #0b1f3a;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(11,31,58,0.08);
}

.contacts-input--error {
    border-color: #f87171;
    background: #fff5f5;
}

.contacts-textarea {
    resize: vertical;
    min-height: 140px;
}

/* SUBMIT */
.contacts-submit {
    display: inline-block;
    padding: 14px 28px;
    background: #ff9900;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    align-self: flex-start;
    font-family: inherit;
}

.contacts-submit:hover {
    background: #e68a00;
    transform: translateY(-1px);
}

.contacts-submit:active {
    transform: translateY(0);
}

/* SUCCESS STATE */
.contacts-success {
    text-align: center;
    padding: 20px 0;
}

.contacts-success-icon {
    width: 60px;
    height: 60px;
    background: #e6f4ea;
    color: #15803d;
    font-size: 28px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.contacts-success-title {
    font-size: 24px;
    font-weight: 700;
    color: #10233f;
    margin: 0 0 10px;
}

.contacts-success-text {
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 24px;
    line-height: 1.6;
}

.contacts-btn {
    display: inline-block;
    padding: 12px 22px;
    background: #ff9900;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.contacts-btn:hover {
    background: #e68a00;
}

/* MOBILE */
@media (max-width: 900px) {
    .contacts-wrapper {
        grid-template-columns: 1fr;
        padding: 32px 16px 48px;
    }

    .contacts-info {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .contacts-info-card {
        flex: 1 1 calc(50% - 8px);
    }
}

@media (max-width: 600px) {
    .contacts-hero-title {
        font-size: 30px;
    }

    .contacts-hero-sub {
        font-size: 16px;
    }

    .contacts-form-card {
        padding: 22px 16px;
    }

    .contacts-form-row {
        grid-template-columns: 1fr;
    }

    .contacts-info-card {
        flex: 1 1 100%;
    }
}

/* =========================
HOME BLOCKS
========================= */

.block-desc {
    font-size: 15px;
    color: #6b7280;
    margin: -4px 0 20px;
    line-height: 1.6;
}

.block-subtitle {
    font-size: 18px;
    font-weight: 700;
    color: #10233f;
    margin: 24px 0 16px;
}

/* Картка категорії документів (без зображення) */
.doc-cat-card {
    border-top: 3px solid #ff9900;
    min-height: 100px;
    justify-content: center;
}

.doc-cat-card .blog-card-body {
    padding: 22px 20px;
}

.doc-cat-card .blog-card-title {
    font-size: 17px;
    margin-bottom: 6px;
}

/* Плейсхолдер для закону зі статусом */
.law-img-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f4f6fb, #edf0f7);
    aspect-ratio: unset;
    min-height: 60px;
}

/* =========================
BLOG
========================= */

.blog-page {
    background: #f3f4f6;
    flex: 1;
}

/* HERO */
.blog-hero {
    background: linear-gradient(135deg, #0b1f3a, #1d3a6d);
    padding: 60px 20px;
    text-align: center;
}

.blog-hero-inner {
    max-width: 700px;
    margin: 0 auto;
}

.blog-hero-back {
    margin-bottom: 16px;
}

.blog-hero-back a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.blog-hero-back a:hover {
    color: #ff9900;
}

.blog-hero-title {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px;
}

.blog-hero-sub {
    font-size: 18px;
    color: rgba(255,255,255,0.82);
    margin: 0;
}

/* WRAPPER */
.blog-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 20px 60px;
}

/* GRID */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* CARD */
.blog-card {
    background: #ffffff;
    border: 1px solid #e6e9ef;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

/* IMAGE */
.blog-card-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e9edf2;
    flex-shrink: 0;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.blog-card:hover .blog-card-img {
    transform: scale(1.03);
}

.blog-card-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0b1f3a14, #1d3a6d0d);
}

/* BODY */
.blog-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

/* CATEGORY BADGE */
.blog-card-cat {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: #e0edff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 600;
    align-self: flex-start;
}

/* TITLE */
.blog-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #10233f;
    margin: 0;
    line-height: 1.4;
}

/* DATE */
.blog-card-date {
    font-size: 13px;
    color: #6b7280;
    margin-top: auto;
    padding-top: 4px;
}

/* PAGINATION */
.blog-pagination {
    margin-top: 40px;
}

.blog-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 14px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e6e9ef;
    color: #10233f;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s, color 0.2s;
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
    background: #0b1f3a;
    border-color: #0b1f3a;
    color: #ffffff;
}

/* EMPTY */
.blog-empty {
    background: #ffffff;
    border: 1px solid #e6e9ef;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    color: #6b7280;
    font-size: 16px;
}

/* MOBILE */
@media (max-width: 768px) {
    .blog-hero-title {
        font-size: 30px;
    }

    .blog-hero-sub {
        font-size: 16px;
    }

    .blog-wrapper {
        padding: 28px 16px 48px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .blog-card-title {
        font-size: 16px;
    }
}