/* ========== E-UKRAINE FONT ========== */
@font-face {
    font-family: 'e-Ukraine Head';
    src: url('../fonts/e-UkraineHead-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'e-Ukraine Head';
    src: url('../fonts/e-UkraineHead-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'e-Ukraine Head';
    src: url('../fonts/e-UkraineHead-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'e-Ukraine Head';
    src: url('../fonts/e-UkraineHead-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* ========== VARIABLES ========== */
:root {
    --primary-dark: #0D2247;
    --primary: #0F3678;
    --accent: #F6B353;
    --accent-hover: #e5a243;
    --teal: #26AAC1;
    --light-blue: #E6ECF4;
    --light-teal: #E3F4F7;
    --light-accent: #FFE0A8;
    --mid-blue: #C9D6E8;
    --mid-teal: #BFE5EC;
    --gray-light: #E0E3E7;
    --gray-mid: #B5BBC5;
    --gray-text: #5A6270;
    --white: #FFFFFF;
    --bg: #FAFBFD;
    --text: #1A2332;
    --text-light: #4A5568;
    --shadow-sm: 0 1px 3px rgba(13,34,71,0.08);
    --shadow-md: 0 4px 12px rgba(13,34,71,0.1);
    --shadow-lg: 0 8px 30px rgba(13,34,71,0.12);
    --radius: 12px;
    --radius-lg: 16px;
    --transition: 0.25s ease;
    --container: 1200px;
    --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ========== RESET ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ========== CONTAINER ========== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== TYPOGRAPHY ========== */
.section-title {
    font-family: 'e-Ukraine Head', var(--font);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 12px;
    line-height: 1.3;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.highlight {
    color: var(--primary);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--light-accent);
    z-index: -1;
    border-radius: 4px;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    border-radius: 8px;
    transition: all var(--transition);
    white-space: nowrap;
    font-size: 0.95rem;
    padding: 12px 24px;
    border: 2px solid transparent;
}

.btn--primary {
    background: var(--accent);
    color: var(--primary-dark);
    border-color: var(--accent);
}

.btn--primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(246,179,83,0.35);
}

.btn--outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn--outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-1px);
}

.btn--secondary {
    background: var(--white);
    color: var(--primary-dark);
    border-color: var(--white);
}

.btn--secondary:hover {
    background: var(--light-accent);
    border-color: var(--light-accent);
}

.btn--lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn--full {
    width: 100%;
}

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-light);
    transition: box-shadow var(--transition);
}

.header--scrolled {
    box-shadow: var(--shadow-md);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    flex-shrink: 0;
}

.logo__text {
    font-family: 'e-Ukraine Head', var(--font);
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav__link {
    font-family: 'e-Ukraine Head', var(--font);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-light);
    position: relative;
    padding: 4px 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
    border-radius: 1px;
}

.nav__link:hover {
    color: var(--primary-dark);
}

.nav__link:hover::after {
    width: 100%;
}

.header__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'e-Ukraine Head', var(--font);
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.header__phone:hover {
    color: var(--accent-hover);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
}

.burger span {
    display: block;
    height: 2px;
    background: var(--primary-dark);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0 60px;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 50%, var(--light-teal) 100%);
    position: relative;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero__content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero__title {
    font-family: 'e-Ukraine Head', var(--font);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 36px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 48px;
}

.hero__trust {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero__trust-item {
    display: flex;
    flex-direction: column;
}

.hero__trust-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.hero__trust-label {
    font-size: 0.85rem;
    color: var(--gray-text);
}

/* ========== SERVICES ========== */
.services {
    padding: 80px 0;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--gray-light);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--mid-blue);
}

.service-card--cta {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.service-card--cta:hover {
    border-color: var(--primary);
}

.service-card--cta .service-card__text {
    color: rgba(255,255,255,0.8);
}

.service-card__icon {
    margin-bottom: 20px;
}

.service-card__title {
    font-family: 'e-Ukraine Head', var(--font);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary-dark);
    line-height: 1.4;
}

.service-card--cta .service-card__title {
    color: var(--white);
}

.service-card__text {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 16px;
}

.service-card__link {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
    align-self: flex-start;
    margin-top: auto;
}

.service-card__link:hover {
    color: var(--accent);
}

/* ========== HOW IT WORKS ========== */
.how-it-works {
    padding: 80px 0;
    background: var(--light-blue);
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: var(--mid-blue);
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step__number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 12px rgba(15,54,120,0.25);
}

.step__title {
    font-family: 'e-Ukraine Head', var(--font);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.step__text {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ========== ARTICLES ========== */
.articles {
    padding: 80px 0;
}

.articles__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.article-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-light);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.article-card__img {
    width: 100%;
    height: 200px;
    background: var(--light-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.article-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card__img svg {
    width: 100%;
    height: 100%;
}

.article-card__body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-card__tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--teal);
    background: var(--light-teal);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    align-self: flex-start;
}

.article-card__title {
    font-family: 'e-Ukraine Head', var(--font);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.article-card__excerpt {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 16px;
}

.article-card__link {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
    align-self: flex-start;
}

.article-card__link:hover {
    color: var(--accent);
}

.articles__more {
    text-align: center;
}

/* ========== FAQ ========== */
.faq {
    padding: 80px 0;
    background: var(--light-teal);
}

.faq__list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq__item {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-light);
    transition: border-color var(--transition);
}

.faq__item.active {
    border-color: var(--teal);
}

.faq__question {
    font-family: 'e-Ukraine Head', var(--font);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-align: left;
    gap: 16px;
    line-height: 1.4;
}

.faq__arrow {
    flex-shrink: 0;
    color: var(--gray-mid);
    transition: transform var(--transition), color var(--transition);
}

.faq__item.active .faq__arrow {
    transform: rotate(180deg);
    color: var(--teal);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq__answer p {
    padding: 0 24px 20px;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ========== CONTACTS ========== */
.contacts {
    padding: 80px 0;
}

.contacts__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contacts__card {
    background: var(--primary-dark);
    border-radius: var(--radius-lg);
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contacts__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    color: var(--white);
}

.contacts__item svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.contacts__item strong {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent);
    margin-bottom: 4px;
}

.contacts__item a:hover {
    color: var(--accent);
}

.contacts__item span,
.contacts__item a {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
}

.contacts__form-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    border: 1px solid var(--gray-light);
    box-shadow: var(--shadow-md);
}

.contacts__form-title {
    font-family: 'e-Ukraine Head', var(--font);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--gray-light);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text);
    background: var(--bg);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(38,170,193,0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-mid);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.contacts__form-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-text);
    margin-top: 12px;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 60px 0 0;
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
}

.footer__desc {
    color: rgba(255,255,255,0.6);
    margin-top: 16px;
    font-size: 0.95rem;
    max-width: 300px;
}

.footer__links h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 16px;
}

.footer__links a {
    display: block;
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    padding: 4px 0;
    transition: color var(--transition);
}

.footer__links a:hover {
    color: var(--white);
}

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
}

.footer__bottom p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.logo--light .logo__text {
    color: var(--white);
}

/* ========== ARTICLES PAGE ========== */
.page-header {
    padding: 120px 0 40px;
    background: var(--light-blue);
}

.page-header__title {
    font-family: 'e-Ukraine Head', var(--font);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.page-header__breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.9rem;
    color: var(--gray-text);
    margin-bottom: 12px;
}

.page-header__breadcrumb a {
    color: var(--primary);
}

.page-header__breadcrumb a:hover {
    color: var(--accent);
}

.articles-page {
    padding: 48px 0 80px;
}

.articles-page .articles__grid {
    margin-bottom: 40px;
}

/* ========== ARTICLE SINGLE ========== */
.article-single {
    padding: 48px 0 80px;
}

.article-single__content {
    max-width: 780px;
    margin: 0 auto;
}

.article-single__content h1 {
    font-family: 'e-Ukraine Head', var(--font);
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 16px;
    line-height: 1.3;
}

.article-single__meta {
    display: flex;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--gray-text);
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-light);
}

.article-single__body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
}

.article-single__body h2 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-top: 40px;
    margin-bottom: 16px;
}

.article-single__body h3 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-top: 32px;
    margin-bottom: 12px;
}

.article-single__body p {
    margin-bottom: 16px;
}

.article-single__body ul,
.article-single__body ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.article-single__body li {
    margin-bottom: 8px;
}

.article-single__body blockquote {
    margin: 24px 0;
    padding: 20px 24px;
    background: var(--light-teal);
    border-left: 4px solid var(--teal);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-light);
}

.article-single__cta {
    margin-top: 48px;
    padding: 32px;
    background: var(--primary);
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--white);
}

.article-single__cta h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--white);
}

.article-single__cta p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
}

/* ========== TOAST ========== */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--primary);
    color: var(--white);
    padding: 16px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    font-size: 0.95rem;
    font-weight: 500;
    transform: translateY(120%);
    transition: transform 0.35s ease;
    z-index: 9999;
}

.toast.show {
    transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    .steps::before {
        display: none;
    }
    .footer__inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .nav {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        z-index: 998;
        border-bottom: 1px solid var(--gray-light);
        box-shadow: var(--shadow-lg);
    }
    .nav.active {
        display: flex;
    }
    .nav__link {
        font-size: 1.05rem;
        padding: 8px 0;
    }
    .burger {
        display: flex;
    }
    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .burger.active span:nth-child(2) {
        opacity: 0;
    }
    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    .header__phone-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    .header__phone-text {
        display: none;
    }
    .hero {
        padding: 110px 0 60px;
    }
    .hero__title {
        font-size: 2rem;
    }
    .hero__subtitle {
        font-size: 1.05rem;
    }
    .hero__trust {
        gap: 24px;
    }
    .services__grid,
    .articles__grid {
        grid-template-columns: 1fr;
    }
    .steps {
        grid-template-columns: 1fr;
    }
    .contacts__grid {
        grid-template-columns: 1fr;
    }
    .footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 32px;
    }
}

@media (max-width: 480px) {
    .hero__actions {
        flex-direction: column;
    }
    .hero__actions .btn {
        width: 100%;
    }
    .contacts__card,
    .contacts__form-wrap {
        padding: 24px;
    }
}

/* ========== ADMIN STYLES ========== */
.admin-body {
    background: var(--bg);
    min-height: 100vh;
}

.admin-login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.admin-login__card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.admin-login__card h1 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.admin-login__card p {
    color: var(--gray-text);
    margin-bottom: 32px;
}

.admin-login__card .form-group {
    text-align: left;
}

.admin-login__error {
    color: #e53e3e;
    font-size: 0.9rem;
    margin-bottom: 16px;
    display: none;
}

/* Admin dashboard */
.admin-header {
    background: var(--primary-dark);
    color: var(--white);
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-header h1 {
    font-size: 1.2rem;
    font-weight: 600;
}

.admin-header__actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.admin-header__actions a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.admin-header__actions a:hover {
    color: var(--white);
}

.admin-nav {
    background: var(--white);
    border-bottom: 1px solid var(--gray-light);
    padding: 0 24px;
    display: flex;
    gap: 0;
}

.admin-nav__link {
    padding: 14px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
}

.admin-nav__link:hover,
.admin-nav__link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.admin-content {
    padding: 32px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.admin-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-light);
    padding: 24px;
    margin-bottom: 24px;
}

.admin-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.admin-card__header h2 {
    font-size: 1.2rem;
    color: var(--primary-dark);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-light);
    font-size: 0.9rem;
}

.admin-table th {
    font-weight: 600;
    color: var(--gray-text);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table tr:hover td {
    background: var(--bg);
}

.admin-actions {
    display: flex;
    gap: 8px;
}

.admin-btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
}

.admin-btn--edit {
    background: var(--light-blue);
    color: var(--primary);
}

.admin-btn--edit:hover {
    background: var(--mid-blue);
}

.admin-btn--delete {
    background: #FEE2E2;
    color: #DC2626;
}

.admin-btn--delete:hover {
    background: #FECACA;
}

/* Admin editor */
.editor-toolbar {
    display: flex;
    gap: 4px;
    padding: 8px;
    background: var(--bg);
    border: 1px solid var(--gray-light);
    border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0;
    flex-wrap: wrap;
}

.editor-toolbar button {
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-light);
    transition: all var(--transition);
}

.editor-toolbar button:hover {
    background: var(--mid-blue);
    color: var(--primary-dark);
}

.editor-area {
    width: 100%;
    min-height: 400px;
    padding: 16px;
    border: 1px solid var(--gray-light);
    border-radius: 0 0 var(--radius) var(--radius);
    font-size: 1rem;
    line-height: 1.7;
    resize: vertical;
    outline: none;
    font-family: var(--font);
}

.editor-area:focus {
    border-color: var(--teal);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13,34,71,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 24px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal h2 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 24px;
}

.modal__actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.admin-badge {
    display: inline-block;
    background: #e53e3e;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
    vertical-align: top;
}
