/* ══ INDEX ══ */

/* ══ HERO ══════════════════════════════════════════════════════════ */
.home-hero {
    background: linear-gradient(135deg, #0f1923 0%, #1a2c3d 60%, #0d2137 100%);
    margin: -20px -20px 24px;
    padding: 32px 28px 28px;
    position: relative;
    overflow: hidden;
}
.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M20 20.5V18H0v5h5v5H0v5h20v-5h15v-5H20z'/%3E%3C/g%3E%3C/svg%3E");
}
.home-hero-content { position: relative; z-index: 1; }
.home-hero h1 {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: normal;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.25;
}
.home-hero h1 em { color: #5b9bd5; font-style: normal; }
.home-hero p {
    font-size: 13px;
    color: #7fa8c8;
    margin: 0 0 20px;
    line-height: 1.6;
}
.stats-row { display: flex; gap: 16px; align-items: flex-start; }
.stats-left { display: flex; gap: 10px; flex-shrink: 0; }
.hero-seo-text {
    font-size: 12px;
    color: #b8cfe0;
    line-height: 1.6;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    padding: 10px 14px;
    flex: 1;
    background: rgba(255,255,255,0.06);
}
.stat-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 9px 16px;
    text-decoration: none;
    transition: background .15s;
    text-align: center;
    min-width: 80px;
}
.stat-card:hover { background: rgba(255,255,255,0.13); }
.stat-number { font-size: 20px; font-weight: bold; color: #fff; font-family: var(--serif); display: block; }
.stat-label { font-size: 10px; color: #7fa8c8; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 1px; display: block; }

/* ══ СЕКЦІЯ ══════════════════════════════════════════════════════ */
.section-head {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #333;
    margin: 0 0 14px;
    padding: 0 0 0 10px;
    border-left: 3px solid #e67e22;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ══ ФІЛЬТР РЕГІОНІВ ════════════════════════════════════════════ */
.region-tabs-wrap {
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 16px;
}
.region-tabs-wrap::-webkit-scrollbar { display: none; }
.region-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    border-bottom: 2px solid var(--border-light);
    min-width: max-content;
}
.region-tab {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 7px 14px;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    cursor: pointer;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    transition: color .15s;
}
.region-tab:hover { color: var(--link); }
.region-tab-locked {
    color: #b0bec5 !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}
.region-tab-locked:hover { color: #b0bec5 !important; }
.region-tab.active {
    color: var(--link);
    border-bottom-color: #e67e22;
    font-weight: 600;
}

/* ══ СІТКА КРАЇН ════════════════════════════════════════════════ */
.countries-section { display: none; }
.countries-section.active { display: block; }

.country-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.country-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    text-decoration: none;
    border-bottom: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    transition: background .12s;
}
.country-row:hover { background: #f0f4fb; }

/* Прибираємо праву рамку у 4-й колонці */
.country-grid-4 .country-row:nth-child(4n) { border-right: none; }

.country-flag {
    width: 34px;
    height: 23px;
    object-fit: cover;
    border: 1px solid #ddd;
    flex-shrink: 0;
    border-radius: 2px;
}
.country-flag-ph {
    width: 34px;
    height: 23px;
    background: #eee;
    border: 1px solid #ddd;
    flex-shrink: 0;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}
.country-name {
    font-size: 14px;
    color: #1a3a5c;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
    font-weight: 500;
}
.country-name small {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    font-family: var(--sans);
    margin-top: 1px;
}

/* ══ СТАТТІ ══════════════════════════════════════════════════════ */
.article-list { display: flex; flex-direction: column; }
.article-item {
    display: flex; gap: 12px; padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    align-items: flex-start; text-decoration: none;
}
.article-item:last-child { border-bottom: none; }
.article-item:hover .art-title { color: var(--link-hover); }
.article-item-img {
    width: 70px; height: 48px; object-fit: cover;
    border-radius: 2px; flex-shrink: 0;
    border: 1px solid var(--border-light);
}
.art-title {
    font-family: var(--serif); font-size: 14px;
    color: var(--link); line-height: 1.35;
    display: block; margin-bottom: 3px; transition: color .15s;
}
.art-meta { font-size: 11px; color: var(--text-muted); font-family: var(--sans); }

@media (max-width: 768px) {
    .home-hero { margin: -14px -14px 18px; padding: 18px 14px 16px; }
    .home-hero h1 { font-size: 20px; }
    .home-hero p { font-size: 12px; margin-bottom: 12px; }
    .stats-row { flex-direction: column; gap: 10px; }
    .stats-left { width: 100%; }
    .stat-card { flex: 1; min-width: 0; }
    .hero-seo-text { display: block; font-size: 10px; padding: 8px 10px; line-height: 1.5; }
    .country-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .country-grid-4 .country-row:nth-child(4n) { border-right: 1px solid var(--border-light); }
    .country-grid-4 .country-row:nth-child(2n) { border-right: none; }
    .region-tab { padding: 6px 10px; font-size: 12px; }
}

/* ══ ФОТО-КАРТКИ МІСТ / ПАМ'ЯТОК ══════════════════════════════ */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 0;
}
.photo-card {
    text-decoration: none;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    background: #ddd;
}
.photo-card-inner {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
}
.photo-card-inner img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.photo-card:hover .photo-card-inner img { transform: scale(1.06); }
.photo-card-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent 0%, rgba(0,0,0,0.75) 100%);
    padding: 32px 10px 10px;
}
.photo-card-name {
    color: #fff;
    font-family: var(--serif);
    font-size: 14px;
    font-weight: bold;
    line-height: 1.25;
    display: block;
}
.photo-card-sub {
    color: rgba(255,255,255,0.78);
    font-size: 11px;
    font-family: var(--sans);
    display: block;
    margin-top: 2px;
}
.photo-card-placeholder {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, #c8d6e5, #a8b8cc);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}
.photo-section-footer {
    margin-top: 14px;
    margin-bottom: 28px;
}
.btn-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    font-family: var(--sans);
    background: #f5f5f5;
    transition: background .15s, border-color .15s;
}
.btn-all::after { content: '›'; font-size: 18px; line-height: 1; }
.btn-all:hover { background: #ebebeb; border-color: #ccc; }

@media (max-width: 768px) {
    .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* ══ ABOUT ══ */

/* ══ HERO ════════════════════════════════════════════════════════════ */
.about-hero {
    background: linear-gradient(135deg, #0f1923 0%, #1a2c3d 60%, #0d2137 100%);
    margin: -20px -20px 36px;
    padding: 40px 28px 36px;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M20 20.5V18H0v5h5v5H0v5h20v-5h15v-5H20z'/%3E%3C/g%3E%3C/svg%3E");
}
.about-hero-inner { position: relative; z-index: 1; }
.about-hero-logo { font-size: 48px; margin-bottom: 12px; }
.about-hero h1 {
    font-family: var(--serif);
    font-size: 30px;
    font-weight: normal;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.25;
}
.about-hero h1 em { color: #5b9bd5; font-style: normal; }
.about-hero-sub {
    font-size: 15px;
    color: #7fa8c8;
    max-width: 480px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

/* Статистика в hero */
.about-stats {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.about-stat {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 12px 20px;
    text-align: center;
    min-width: 90px;
}
.about-stat-num { font-size: 22px; font-weight: bold; color: #fff; font-family: var(--serif); display: block; }
.about-stat-label { font-size: 10px; color: #7fa8c8; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; display: block; }

/* ══ СЕКЦІЯ ══════════════════════════════════════════════════════════ */
.about-section { margin-bottom: 36px; }
.about-section-title {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: normal;
    color: var(--text-main);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-light);
}
.about-section p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 12px;
}
.about-section p:last-child { margin-bottom: 0; }

/* ══ КАРТКИ ЦІННОСТЕЙ ════════════════════════════════════════════════ */
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 4px;
}
.value-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 16px 18px;
}
.value-card-icon { font-size: 24px; margin-bottom: 8px; }
.value-card-title { font-size: 14px; font-weight: 600; color: var(--text-main); margin-bottom: 4px; }
.value-card-text { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ══ РОЗДІЛИ САЙТУ ═══════════════════════════════════════════════════ */
.sections-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.section-link-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-main);
    background: var(--surface);
    transition: box-shadow .15s, transform .15s;
}
.section-link-card:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,.08);
    transform: translateY(-2px);
    text-decoration: none;
}
.section-link-icon { font-size: 26px; flex-shrink: 0; margin-top: 1px; }
.section-link-body {}
.section-link-name { font-size: 14px; font-weight: 600; display: block; margin-bottom: 2px; }
.section-link-desc { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

/* ══ ПЛАШКА «ЩЕ В РОБОТІ» ═══════════════════════════════════════════ */
.wip-banner {
    background: linear-gradient(135deg, #fff8e1, #fff3cd);
    border: 1px solid #ffe082;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 13px;
    line-height: 1.6;
    color: #7a5000;
}
.wip-banner strong { color: #5c3a00; }

/* ══ МОБІЛЬНИЙ ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .about-hero { margin: -14px -14px 24px; padding: 28px 16px 24px; }
    .about-hero h1 { font-size: 22px; }
    .about-hero-sub { font-size: 13px; }
    .values-grid { grid-template-columns: 1fr; }
    .sections-grid { grid-template-columns: 1fr; }
    .about-stat-num { font-size: 18px; }
}

/* ══ CONTACTS ══ */

.contacts-hero {
    background: linear-gradient(135deg, #0f1923 0%, #1a2c3d 60%, #0d2137 100%);
    margin: -20px -20px 36px;
    padding: 36px 28px 32px;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.contacts-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M20 20.5V18H0v5h5v5H0v5h20v-5h15v-5H20z'/%3E%3C/g%3E%3C/svg%3E");
}
.contacts-hero-inner { position: relative; z-index: 1; }
.contacts-hero h1 {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: normal;
    color: #fff;
    margin: 0 0 10px;
}
.contacts-hero h1 em { color: #5b9bd5; font-style: normal; }
.contacts-hero p {
    font-size: 14px;
    color: #7fa8c8;
    max-width: 420px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ══ ОСНОВНИЙ EMAIL ══════════════════════════════════════════════════ */
.contact-email-block {
    text-align: center;
    padding: 32px 20px;
    margin-bottom: 32px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 10px;
}
.contact-email-icon { font-size: 40px; margin-bottom: 12px; }
.contact-email-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-family: var(--sans);
}
.contact-email-link {
    font-size: 22px;
    font-family: var(--serif);
    font-weight: bold;
    color: #1a3a5c;
    text-decoration: none;
    border-bottom: 2px solid #5b9bd5;
    padding-bottom: 2px;
    transition: color .15s;
}
.contact-email-link:hover { color: #3366cc; text-decoration: none; }
.contact-email-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 10px;
    line-height: 1.5;
}

/* ══ ТЕМИ ═════════════════════════════════════════════════════════════ */
.contact-topics-title {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: normal;
    color: var(--text-main);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-light);
}
.contact-topics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 32px;
}
.contact-topic {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--surface);
}
.contact-topic-icon { font-size: 22px; flex-shrink: 0; }
.contact-topic-title { font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.contact-topic-text { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

/* ══ ВІДПОВІДЬ ═══════════════════════════════════════════════════════ */
.contact-note {
    background: linear-gradient(135deg, #f0f4fb, #e8eef7);
    border: 1px solid #c5d5ea;
    border-left: 4px solid #5b9bd5;
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 13px;
    line-height: 1.6;
    color: #2a4a6a;
}
.contact-note strong { color: #1a3a5c; }

@media (max-width: 768px) {
    .contacts-hero { margin: -14px -14px 24px; padding: 24px 16px 20px; }
    .contacts-hero h1 { font-size: 22px; }
    .contact-topics { grid-template-columns: 1fr; }
    .contact-email-link { font-size: 18px; }
}

/* ══ PRIVACY ══ */

.privacy-hero {
    background: linear-gradient(135deg, #0f1923 0%, #1a2c3d 60%, #0d2137 100%);
    margin: -20px -20px 32px;
    padding: 32px 28px 28px;
    position: relative;
    overflow: hidden;
}
.privacy-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M20 20.5V18H0v5h5v5H0v5h20v-5h15v-5H20z'/%3E%3C/g%3E%3C/svg%3E");
}
.privacy-hero-inner { position: relative; z-index: 1; }
.privacy-hero h1 {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: normal;
    color: #fff;
    margin: 0 0 8px;
}
.privacy-hero p { font-size: 13px; color: #7fa8c8; margin: 0; line-height: 1.5; }

.privacy-body h2 {
    font-family: var(--serif);
    font-size: 17px;
    font-weight: normal;
    color: var(--text-main);
    margin: 28px 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}
.privacy-body h2:first-child { margin-top: 0; }
.privacy-body p { font-size: 14px; line-height: 1.8; color: var(--text-main); margin-bottom: 10px; }
.privacy-body ul { padding-left: 20px; margin-bottom: 10px; }
.privacy-body ul li { font-size: 14px; line-height: 1.7; color: var(--text-main); margin-bottom: 4px; }
.privacy-updated {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 24px;
    padding: 8px 12px;
    background: #f5f8fc;
    border-radius: 6px;
    border-left: 3px solid #5b9bd5;
}

@media (max-width: 768px) {
    .privacy-hero { margin: -14px -14px 22px; padding: 22px 16px 18px; }
    .privacy-hero h1 { font-size: 20px; }
}

/* ══ TERMS ══ */

.terms-hero {
    background: linear-gradient(135deg, #0f1923 0%, #1a2c3d 60%, #0d2137 100%);
    margin: -20px -20px 32px;
    padding: 32px 28px 28px;
    position: relative;
    overflow: hidden;
}
.terms-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M20 20.5V18H0v5h5v5H0v5h20v-5h15v-5H20z'/%3E%3C/g%3E%3C/svg%3E");
}
.terms-hero-inner { position: relative; z-index: 1; }
.terms-hero h1 {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: normal;
    color: #fff;
    margin: 0 0 8px;
}
.terms-hero p { font-size: 13px; color: #7fa8c8; margin: 0; }

.terms-body h2 {
    font-family: var(--serif);
    font-size: 17px;
    font-weight: normal;
    color: var(--text-main);
    margin: 28px 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}
.terms-body h2:first-child { margin-top: 0; }
.terms-body p { font-size: 14px; line-height: 1.8; color: var(--text-main); margin-bottom: 10px; }
.terms-body ul { padding-left: 20px; margin-bottom: 10px; }
.terms-body ul li { font-size: 14px; line-height: 1.7; color: var(--text-main); margin-bottom: 4px; }
.terms-updated {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 24px;
    padding: 8px 12px;
    background: #f5f8fc;
    border-radius: 6px;
    border-left: 3px solid #e67e22;
}
@media (max-width: 768px) {
    .terms-hero { margin: -14px -14px 22px; padding: 22px 16px 18px; }
    .terms-hero h1 { font-size: 20px; }
}

/* ══ 404 ══ */

.err-wrap {
    text-align: center;
    padding: 40px 20px 20px;
}
.err-code {
    font-size: 96px;
    font-weight: bold;
    font-family: var(--serif);
    color: #dde4ee;
    line-height: 1;
    margin: 0;
    letter-spacing: -4px;
}
.err-title {
    font-size: 22px;
    font-family: var(--serif);
    color: var(--text-main);
    margin: 8px 0 6px;
}
.err-sub {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 460px;
    margin: 0 auto 28px;
}

/* Банер «в розробці» */
.dev-banner {
    background: linear-gradient(135deg, #0f1923 0%, #1a2c3d 100%);
    border-radius: 10px;
    padding: 22px 28px;
    margin: 0 auto 32px;
    max-width: 580px;
    text-align: left;
}
.dev-banner-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dev-banner-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #5bc75b;
    animation: blink 1.4s infinite;
    flex-shrink: 0;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.dev-banner-text {
    font-size: 13px;
    color: #9ab4cc;
    line-height: 1.6;
}
.dev-banner-text strong { color: #c8daea; }

/* Статистика */
.dev-stats {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.dev-stat {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 8px 14px;
    text-align: center;
    flex: 1;
    min-width: 80px;
}
.dev-stat-num { font-size: 18px; font-weight: bold; color: #fff; display: block; font-family: var(--serif); }
.dev-stat-label { font-size: 10px; color: #7fa8c8; text-transform: uppercase; letter-spacing: 0.4px; }

/* Доступні розділи */
.err-sections-title {
    font-size: 12px;
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.err-sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 580px;
    margin: 0 auto 28px;
    text-align: left;
}
.err-section-card {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 14px 16px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-main);
    background: var(--surface);
    transition: box-shadow .15s, transform .15s;
}
.err-section-card:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,.08);
    transform: translateY(-2px);
    text-decoration: none;
    border-color: #b0bdd4;
}
.err-section-icon { font-size: 22px; margin-bottom: 4px; }
.err-section-name { font-size: 14px; font-weight: 600; color: var(--text-main); }
.err-section-count { font-size: 11px; color: var(--text-muted); }

.err-back-btn {
    display: inline-block;
    padding: 10px 28px;
    background: #1a3a5c;
    color: #fff;
    border-radius: 24px;
    font-size: 14px;
    text-decoration: none;
    font-family: var(--sans);
    transition: background .15s;
}
.err-back-btn:hover { background: #2a4f7a; text-decoration: none; color: #fff; }

@media (max-width: 640px) {
    .err-code { font-size: 64px; }
    .err-sections { grid-template-columns: repeat(2, 1fr); }
    .dev-stats { gap: 8px; }
}
