:root {
    --brand-green: #00ed64;
    --brand-green-dark: #00684a;
    --brand-green-soft: #c3f0d2;
    --teal-deep: #001e2b;
    --teal-mid: #00684a;
    --ink: #001e2b;
    --slate: #3d4f5b;
    --steel: #5c6c7a;
    --hairline: #e1e5e8;
    --surface-feature: #e3fcef;
    --accent-purple: #7b3ff2;
    --accent-orange: #fa6e39;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--ink); margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-weight: 500; color: var(--ink); margin: 0 0 16px; letter-spacing: -0.3px; }
p { color: var(--slate); line-height: 1.6; margin: 0 0 16px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--brand-green); color: var(--ink); padding: 8px 16px; z-index: 999; }
.skip-link:focus { left: 8px; top: 8px; }

.hub-topnav { background: #fff; border-bottom: 1px solid var(--hairline); position: sticky; top: 0; z-index: 40; }
.hub-topnav-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; height: 64px; }
.hub-logo { font-size: 18px; font-weight: 600; color: var(--ink); }
.hub-logo span { color: var(--brand-green-dark); }
.hub-logo em { font-style: normal; font-weight: 400; color: var(--steel); }
.hub-nav-links { display: flex; gap: 28px; }
.hub-nav-links a { color: var(--ink); font-size: 15px; font-weight: 500; }
.hub-menu-toggle { display: none; background: var(--ink); color: #fff; border: none; border-radius: 9999px; padding: 8px 16px; font-size: 14px; }
.hub-mobile-nav { display: none; flex-direction: column; padding: 12px 24px 20px; border-top: 1px solid var(--hairline); }
.hub-mobile-nav a { padding: 10px 0; color: var(--ink); font-weight: 500; }

.hub-main { max-width: 1280px; margin: 0 auto; padding: 0 24px 64px; }

.hub-hero {
    background: var(--teal-deep);
    color: #fff;
    border-radius: 16px;
    padding: 72px 48px;
    margin: 32px 0 48px;
}
.hub-hero h1 { color: #fff; font-size: 42px; max-width: 720px; }
.hub-hero p { color: rgba(255,255,255,0.82); font-size: 18px; max-width: 620px; }

.btn-pill { display: inline-block; padding: 10px 22px; border-radius: 9999px; font-size: 14px; font-weight: 600; text-decoration: none; border: none; cursor: pointer; }
.btn-pill-primary { background: var(--brand-green); color: var(--teal-deep); }
.btn-pill-primary:hover { background: #00c956; text-decoration: none; }
.btn-pill-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.btn-pill-outline:hover { text-decoration: none; background: rgba(255,255,255,0.1); }

.hub-section { margin-bottom: 56px; scroll-margin-top: 80px; }

.hub-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-top: 24px; }
.hub-card {
    background: #fff; border: 1px solid var(--hairline); border-radius: 12px; padding: 24px;
    display: flex; flex-direction: column; text-decoration: none; color: inherit;
}
.hub-card:hover { box-shadow: 0 4px 12px rgba(0,30,43,0.08); text-decoration: none; }
.hub-card .hub-tag { display: inline-block; background: var(--surface-feature); color: var(--brand-green-dark); font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 4px; margin-bottom: 12px; align-self: flex-start; text-transform: uppercase; letter-spacing: 0.4px; }
.hub-card h3 { font-size: 18px; margin-bottom: 8px; }
.hub-card p { font-size: 14px; margin-bottom: 0; }
.hub-card .hub-date { font-size: 12px; color: var(--steel); margin-top: 16px; }

.hub-breadcrumb { margin: 24px 0; font-size: 13px; color: var(--steel); }
.hub-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; padding: 0; margin: 0; gap: 4px; }
.hub-breadcrumb a { color: var(--steel); }
.hub-breadcrumb .sep { margin: 0 4px; }

.hub-layout { display: grid; grid-template-columns: 1fr 260px; gap: 40px; align-items: start; }
.hub-sidebar { background: #f9fbfa; border: 1px solid var(--hairline); border-radius: 12px; padding: 24px; position: sticky; top: 88px; }
.hub-sidebar h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; }
.hub-sidebar ul { list-style: none; margin: 0; padding: 0; }
.hub-sidebar li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--hairline); font-size: 14px; }
.hub-count { color: var(--steel); }

.hub-toc { background: var(--surface-feature); border-radius: 12px; padding: 24px; margin: 24px 0 32px; }
.hub-toc h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.hub-toc ul { margin: 0; padding-left: 20px; }

.hub-faq-item { border-bottom: 1px solid var(--hairline); padding: 16px 0; }
.hub-faq-item summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; }
.hub-faq-item summary::-webkit-details-marker { display: none; }
.hub-faq-item summary::before { content: '+ '; color: var(--brand-green-dark); }
.hub-faq-item[open] summary::before { content: '– '; }
.hub-faq-item p { margin-top: 12px; }

.hub-disclaimer { background: var(--surface-feature); border-left: 4px solid var(--brand-green); border-radius: 8px; padding: 20px 24px; font-size: 14px; color: var(--slate); margin: 24px 0; }

.hub-related { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--hairline); }
.hub-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 16px; }
.hub-related-card { display: block; background: #f9fbfa; border-radius: 10px; padding: 16px; text-decoration: none; color: inherit; }
.hub-related-card:hover { text-decoration: none; box-shadow: 0 4px 12px rgba(0,30,43,0.08); }
.hub-related-rubryka { font-size: 11px; text-transform: uppercase; color: var(--brand-green-dark); display: block; margin-bottom: 6px; }
.hub-related-title { font-size: 14px; }

form.hub-form { max-width: 520px; }
.hub-form-group { margin-bottom: 20px; }
.hub-form-group label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; }
.hub-form-group input, .hub-form-group textarea { width: 100%; padding: 10px 14px; border: 1px solid #c1ccd6; border-radius: 8px; font-family: inherit; font-size: 15px; }
.hub-form-group input:focus, .hub-form-group textarea:focus { outline: none; border-color: var(--brand-green-dark); }
.hub-form-status { font-size: 14px; margin-top: 12px; }
.hub-form-status.success { color: var(--brand-green-dark); }
.hub-form-status.loading { color: var(--steel); }

.hub-cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--teal-deep); color: #fff; padding: 20px 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; z-index: 100; }
.hub-cookie-banner p { color: #fff; margin: 0; font-size: 14px; max-width: 640px; }
.hub-cookie-actions { display: flex; gap: 12px; }
.hub-cookie-actions button { border-radius: 9999px; padding: 8px 18px; border: none; cursor: pointer; font-size: 14px; }
#cookie-accept { background: var(--brand-green); color: var(--teal-deep); }
#cookie-reject { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); }

.hub-footer { background: var(--teal-deep); color: #fff; padding: 64px 24px 32px; margin-top: 40px; }
.hub-footer-top { max-width: 1280px; margin: 0 auto 32px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.hub-footer-brand h3 { color: #fff; }
.hub-footer-brand p { color: rgba(255,255,255,0.65); font-size: 13px; }
.hub-footer-col h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 14px; }
.hub-footer-col ul { list-style: none; padding: 0; margin: 0; }
.hub-footer-col li { margin-bottom: 8px; }
.hub-footer-col a { color: rgba(255,255,255,0.72); font-size: 14px; }
.hub-footer-col p { color: rgba(255,255,255,0.72); font-size: 14px; }
.hub-footer-bottom { max-width: 1280px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 24px; font-size: 12px; color: rgba(255,255,255,0.55); }

@media (max-width: 900px) {
    .hub-nav-links { display: none; }
    .hub-menu-toggle { display: block; }
    .hub-mobile-nav.open { display: flex; }
    .hub-layout { grid-template-columns: 1fr; }
    .hub-sidebar { position: static; }
    .hub-hero { padding: 40px 24px; }
    .hub-hero h1 { font-size: 28px; }
    .hub-footer-top { grid-template-columns: 1fr; }
}
