:root {
    --primary: #6f4a9b;
    --dark: #5b3a32;
    --light: #f2ecff;
    --surface: #f8f2ff;
    --border: #d7c6ee;
}

html {
    scroll-behavior: smooth;
}

:where(section, footer)[id] {
    scroll-margin-top: 90px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
    background: var(--light);
}

.coming-soon {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 0;
}

.coming-soon h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.coming-soon p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto;
}

.container {
    width: min(1100px, 90%);
    margin: 0 auto;
}

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.site-header nav a {
    margin-left: 1rem;
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    text-decoration: none;
}

.logo img {
    display: block;
    height: 42px;
    width: auto;
    max-width: 180px;
}

.hero {
    padding: 4rem 0 3rem;
    background: linear-gradient(135deg, rgba(111,74,155,0.55), rgba(88,56,130,0.4));
}

.hero .container {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
}

.hero-image {
    text-align: center;
}

.hero-visual {
    width: 100%;
}

.hero-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.hero-gallery figure {
    margin: 0;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 1rem;
    padding: 0.5rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.hero-gallery img {
    width: 100%;
    height: 100%;
    border-radius: 0.75rem;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-gallery img:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.hero-image img {
    width: min(100%, 420px);
    max-width: 100%;
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 6px solid rgba(255, 255, 255, 0.65);
}

.hero h1 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin-bottom: 1rem;
}

.hero .btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
}

.story, .donation, .gallery {
    padding: 3rem 0;
}

.donation {
    position: relative;
    background: linear-gradient(180deg, rgba(111, 74, 155, 0.08), rgba(255, 255, 255, 0.85));
}

.donation::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.9), transparent 36%),
        radial-gradient(circle at 82% 18%, rgba(111, 74, 155, 0.12), transparent 38%),
        radial-gradient(circle at 70% 72%, rgba(111, 74, 155, 0.08), transparent 40%);
    opacity: 0.8;
    pointer-events: none;
}

.story-content p {
    line-height: 1.6;
}

.share-actions {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.4rem;
    border: none;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.share-button:hover,
.share-button:focus-visible {
    background: #4e288f;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.share-button:active {
    transform: translateY(0);
}

.toast-notice {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%) translateY(20px);
    background: rgba(39, 6, 83, 0.95);
    color: #fff;
    padding: 0.85rem 1.2rem;
    border-radius: 0.85rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 9999;
    font-weight: 700;
    text-align: center;
}

.toast-notice.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.donation .container {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(111, 74, 155, 0.16);
    border-radius: 1.25rem;
    padding: clamp(1.5rem, 2vw, 2rem);
    box-shadow: 0 24px 50px rgba(57, 29, 95, 0.08);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.donation-form {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 242, 255, 0.96));
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(111, 74, 155, 0.18);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.donation-form h2 {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.01em;
}

.donation-form h2::before {
    content: "";
    display: inline-block;
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(111, 74, 155, 0.6), rgba(111, 74, 155, 0.12));
    box-shadow: 0 8px 18px rgba(111, 74, 155, 0.2);
}

.donation-form label {
    display: block;
    font-weight: 600;
    margin-top: 1rem;
    color: #4d3f75;
}

.donation-form input[type="text"],
.donation-form input[type="tel"],
.donation-form input[type="email"],
.donation-form input[type="number"] {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    margin-top: 0.4rem;
    background: #fff;
}

.preset-values {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.8rem;
    border-radius: 1rem;
    border: 1px solid rgba(111, 74, 155, 0.16);
    background: rgba(255, 255, 255, 0.95);
}

.preset {
    padding: 0.65rem 1.05rem;
    border-radius: 999px;
    border: 1px solid rgba(111, 74, 155, 0.35);
    background: rgba(111, 74, 155, 0.08);
    color: #4b2d79;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.04);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.preset.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 14px 30px rgba(111, 74, 155, 0.28);
}

.preset:hover,
.preset:focus-visible {
    background: rgba(111, 74, 155, 0.14);
    color: #3a245d;
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(57, 29, 95, 0.12);
}

.custom-value {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.method-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.method-tabs button {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--primary);
    background: var(--surface);
    border-radius: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--dark);
}

.method-tabs button.active {
    background: var(--primary);
    color: #fff;
}

.payment-component {
    display: none;
}

.payment-component.active {
    display: block;
}

.pix-result {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.pix-qr-wrapper {
    width: 90%;
    margin: 0 auto;
    padding: 0.75rem;
    background: #fff;
    border-radius: 0.85rem;
    border: 1px dashed rgba(111, 74, 155, 0.3);
    box-shadow: 0 14px 30px rgba(111, 74, 155, 0.08);
}

.pix-qr-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: contain;
}

.pix-code-area {
    background: rgba(111, 74, 155, 0.06);
    border: 1px solid rgba(111, 74, 155, 0.18);
    border-radius: 0.9rem;
    padding: 0.85rem;
    display: grid;
    gap: 0.5rem;
}

.pix-code-label {
    margin: 0;
    font-weight: 800;
    color: #4b2d79;
}

.pix-code-display {
    width: 100%;
    text-align: left;
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    border: 1px dashed rgba(111, 74, 155, 0.35);
    background: #fff;
    color: #2e214d;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    word-break: break-all;
}

.pix-code-display:hover,
.pix-code-display:focus-visible {
    border-color: var(--primary);
    box-shadow: 0 10px 24px rgba(111, 74, 155, 0.16);
    transform: translateY(-1px);
}

.pix-copy-btn {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, rgba(111, 74, 155, 0.9), rgba(111, 74, 155, 0.75));
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(111, 74, 155, 0.25);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.pix-copy-btn:hover,
.pix-copy-btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(111, 74, 155, 0.28);
}

.pix-copy-icon {
    font-size: 1rem;
}

.pix-status {
    margin: 0;
}

.card-fields {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.card-row {
    display: flex;
    gap: 0.75rem;
}

.card-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-fields input {
    width: 100%;
}

.secure-note {
    font-size: 0.9rem;
    color: #4d3f75;
}

.secure-note::before {
    content: '\1F512';
    margin-right: 0.35rem;
}

@media (max-width: 600px) {
    .card-row {
        flex-direction: column;
    }
}

.hidden {
    display: none !important;
}

.btn-primary {
    width: 100%;
    padding: 0.85rem;
    border: none;
    border-radius: 0.85rem;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1.5rem;
    box-shadow: 0 16px 32px rgba(111, 74, 155, 0.22);
    transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 20px 38px rgba(111, 74, 155, 0.26);
}

.donation-counter {
    align-self: start;
}

.counter-item {
    background: var(--surface);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.counter-item span {
    font-size: 1.8rem;
    font-weight: 700;
}

.donation-progress {
    width: 100%;
    height: 12px;
    background: rgba(108, 77, 133, 0.12);
    border-radius: 999px;
    overflow: hidden;
    margin: 0.25rem 0 0.5rem;
}

.donation-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, #8b5fbf, #6c4d85);
    border-radius: 999px;
    transition: width 0.6s ease-out;
}

.donation-progress__label {
    margin: 0 0 1rem;
    text-align: center;
    font-size: 0.95rem;
    color: var(--dark);
    opacity: 0.8;
}

.donation-progress__label span {
    font-weight: 700;
    color: var(--lavanda-escuro, #6c4d85);
}

.timeline {
    padding: 3rem 0 2rem;
}

.timeline__intro {
    text-align: center;
    margin: 0.25rem 0 2rem;
    opacity: 0.85;
}

.timeline__list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 720px;
    position: relative;
    border-left: 2px solid rgba(108, 77, 133, 0.2);
    padding-left: 1.75rem;
}

.timeline__item {
    position: relative;
    padding: 0.5rem 0 1.5rem;
}

.timeline__item:last-child {
    padding-bottom: 0;
}

.timeline__marker {
    position: absolute;
    left: -2.05rem;
    top: 0.75rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--lavanda-escuro, #6c4d85);
    box-shadow: 0 0 0 4px rgba(108, 77, 133, 0.15);
}

.timeline__item:last-child .timeline__marker {
    background: linear-gradient(135deg, #b388e0, #6c4d85);
    box-shadow: 0 0 0 4px rgba(139, 95, 191, 0.35);
}

.timeline__body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.timeline__label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--lavanda-escuro, #6c4d85);
}

.timeline__title {
    font-size: 1.1rem;
    color: #2e1e2f;
}

.timeline__desc {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-top: 0.1rem;
}

.impact {
    padding: 3rem 0 2rem;
}

.impact__intro {
    text-align: center;
    margin: 0.25rem 0 1.75rem;
    opacity: 0.85;
}

.impact__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.impact__item {
    background: var(--surface);
    border-radius: 1rem;
    padding: 1.25rem 1.25rem 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.impact__value {
    font-size: 1.6rem;
    color: var(--lavanda-escuro, #6c4d85);
}

.impact__desc {
    font-size: 0.98rem;
    opacity: 0.85;
}

.counter-refresh a:hover,
.counter-refresh a:focus-visible {
    opacity: 1;
    color: var(--primary);
}

.video-wrapper {
    margin-top: 1.5rem;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.donors {
    padding: 3rem 0;
    background: #fff;
}

.donors h2 {
    margin-bottom: 0.5rem;
}

.donors p {
    margin-top: 0;
    color: #6f4a9b;
    font-weight: 600;
}

.donors__list {
    list-style: decimal;
    margin: 1rem 0 0;
    padding-left: 1.25rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.5rem 1.5rem;
}

.donors__list li {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-weight: 700;
    color: var(--primary);
}

.donors__more {
    margin-top: 1.25rem;
}

.donors__more > summary {
    cursor: pointer;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-weight: 700;
    color: var(--lavanda-escuro, #6c4d85);
    user-select: none;
    transition: background 0.2s ease, transform 0.15s ease;
}

.donors__more > summary::-webkit-details-marker { display: none; }

.donors__more > summary::after {
    content: '▼';
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.donors__more[open] > summary::after {
    transform: rotate(180deg);
}

.donors__more > summary:hover {
    background: rgba(108, 77, 133, 0.06);
}

.donors__list--extra {
    margin-top: 0.75rem;
}

.contact {
    padding: 3rem 0;
    background: linear-gradient(180deg, rgba(111, 74, 155, 0.06), rgba(255, 255, 255, 0.65));
}

.contact__grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: start;
}

.contact__intro h2 {
    margin: 0 0 0.5rem;
}

.contact__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.35rem;
}

.contact__highlights {
    margin: 1rem 0 1.5rem;
    padding-left: 1.2rem;
    color: #4d3f75;
    line-height: 1.6;
}

.contact__highlights li + li {
    margin-top: 0.35rem;
}

.contact__aside {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0.85rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact__aside a {
    display: inline-block;
    margin-top: 0.35rem;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    word-break: break-word;
}

.contact__card {
    background: #fff;
    border: 1px solid rgba(111, 74, 155, 0.18);
    border-radius: 1.1rem;
    padding: clamp(1.25rem, 2vw, 1.75rem);
    box-shadow: 0 22px 48px rgba(57, 29, 95, 0.08);
}

.contact__form {
    display: grid;
    gap: 0.85rem;
}

.contact__row label {
    display: block;
    font-weight: 700;
    color: #4d3f75;
    margin-bottom: 0.35rem;
}

.contact__row input,
.contact__row textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 0.85rem;
    padding: 0.75rem 0.85rem;
    background: #fdfbff;
    font: inherit;
}

.contact__row textarea {
    resize: vertical;
    min-height: 120px;
}

.contact__row--inline .contact__captcha {
    display: grid;
    gap: 0.35rem;
}

.contact__captcha-question {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(111, 74, 155, 0.08);
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
}

.contact__hint {
    margin: 0;
    font-size: 0.9rem;
    color: #5f4c80;
}

.contact__honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.contact__status {
    min-height: 1.25rem;
    font-weight: 700;
    color: #4d3f75;
}

.contact__status--success {
    color: #0c7d3c;
}

.contact__status--error {
    color: #b00020;
}

.contact__submit {
    margin-top: 0.35rem;
}

@media (min-width: 768px) {
    .hero-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.gallery figure {
    margin: 0;
    background: var(--surface);
    border-radius: 0.85rem;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.gallery figcaption {
    padding: 0.65rem 0.85rem 0.85rem;
    font-size: 0.92rem;
    color: var(--dark);
    opacity: 0.85;
    line-height: 1.35;
}

.gallery img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    cursor: pointer;
}

.site-footer {
    background: var(--surface);
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--border);
}

.site-footer p {
    margin: 0.4rem 0;
    text-align: center;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.is-visible {
    display: flex;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(34, 16, 49, 0.65);
}

.modal__dialog {
    position: relative;
    background: #fff;
    border-radius: 1rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    width: min(720px, 90%);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--dark);
}

@media (prefers-reduced-motion: no-preference) {
    .donation .container {
        animation: donation-fade-in 0.7s ease both;
    }

    .donation .container:hover {
        box-shadow: 0 30px 60px rgba(57, 29, 95, 0.12);
        transform: translateY(-2px);
    }
}

@keyframes donation-fade-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal__content {
    margin-top: 1rem;
    line-height: 1.6;
}

.modal__content p {
    margin-bottom: 1rem;
}

body.modal-open {
    overflow: hidden;
}

.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1100;
}

.lightbox.is-visible {
    display: flex;
}

.lightbox__overlay {
    position: absolute;
    inset: 0;
    background: transparent;
}

.lightbox__content {
    position: relative;
    max-width: min(960px, 95vw);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.lightbox__figure {
    margin: 0;
    text-align: center;
    width: 100%;
}

.lightbox__figure img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 0.75rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.lightbox__figure figcaption {
    margin-top: 0.5rem;
    color: #f5f5f5;
}

.lightbox__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2;
    display: grid;
    place-items: center;
}

.lightbox__nav {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    display: grid;
    place-items: center;
    transition: background 0.2s ease;
    z-index: 2;
}

.lightbox__nav:hover,
.lightbox__close:hover {
    background: rgba(0, 0, 0, 0.75);
}

.lightbox__nav--prev {
    order: -1;
}

.lightbox__nav--next {
    order: 2;
}

@media (max-width: 640px) {
    .site-header nav {
        display: none;
    }
    .logo img {
        height: 32px;
    }
}
.admin-header {
    background: var(--dark);
    color: #fff;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.admin-header nav a {
    color: #fff;
    margin-left: 1rem;
    text-decoration: none;
}

.admin-header nav a.active {
    text-decoration: underline;
}

.admin-main form, .admin-main table {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.admin-main textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    margin-top: 0.4rem;
}

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

.admin-main table th,
.admin-main table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.gallery-form {
    background: #fff;
    padding: clamp(1.5rem, 2vw, 2rem);
    border-radius: 1.25rem;
    box-shadow: 0 12px 32px rgba(111, 74, 155, 0.07);
    display: grid;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.gallery-form label {
    font-weight: 600;
}

.gallery-form input[type="text"],
.gallery-form input[type="url"],
.gallery-form input[type="number"] {
    padding: 0.75rem 1rem;
    border-radius: 0.85rem;
    border: 1px solid var(--border);
    background: #fff;
}

.gallery-form small {
    display: block;
    color: rgba(44, 22, 65, 0.65);
    margin-top: -0.25rem;
}

.gallery-form input[type="file"] {
    border: 1px solid var(--border);
    border-radius: 0.85rem;
    padding: 0.6rem;
    background: #fff;
}

.admin-form {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.admin-form__group {
    background: #fff;
    padding: clamp(1.5rem, 2vw, 2rem);
    border-radius: 1.25rem;
    box-shadow: 0 16px 40px rgba(111, 74, 155, 0.08);
    display: grid;
    gap: 1.25rem;
}

.admin-form__group header {
    display: grid;
    gap: 0.35rem;
}

.admin-form__group header h2 {
    margin: 0;
}

.admin-form__group header p {
    margin: 0;
    color: rgba(44, 22, 65, 0.7);
}

.admin-form__group .stack {
    display: grid;
    gap: 0.5rem;
}

.logo-preview {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px dashed var(--border);
    border-radius: 0.9rem;
    background: rgba(111, 74, 155, 0.04);
    max-width: 320px;
}

.logo-preview img {
    max-height: 96px;
    width: auto;
    display: block;
}

.admin-form__actions {
    display: flex;
    justify-content: flex-end;
}

.admin-form__actions .btn-primary {
    width: auto;
    display: inline-flex;
    align-items: center;
    padding: 0.9rem 2.2rem;
    border-radius: 0.9rem;
    font-size: 1rem;
}

.info-card {
    background: linear-gradient(135deg, rgba(111,74,155,0.12), rgba(111,74,155,0.06));
    padding: clamp(1.75rem, 3vw, 2.5rem);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px rgba(58, 36, 84, 0.12);
    display: grid;
    gap: 1rem;
    max-width: 680px;
}

.info-card pre {
    background: rgba(255, 255, 255, 0.65);
    padding: 1rem;
    border-radius: 1rem;
    overflow-x: auto;
}

.info-card .btn-primary {
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-self: start;
}

.gallery-form .btn-primary {
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.6rem;
}

.admin-main .cards {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-bottom: 2rem;
}

.admin-main .cards article {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.feedback {
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
}

.feedback--success {
    background: #e6f9f0;
    color: #0a6f46;
}

.feedback--error {
    background: #fde4e4;
    color: #b51212;
}

.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(111,74,155,0.18), rgba(88,56,130,0.12));
    padding: 2rem 1rem;
}

.login-shell {
    width: min(880px, 96%);
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 30px 70px rgba(57, 31, 91, 0.18);
    padding: clamp(2rem, 4vw, 3rem);
}

.login-card {
    display: grid;
    gap: 2rem;
}

.login-card__intro {
    display: grid;
    gap: 0.75rem;
}

.login-card__intro h1 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.login-card__intro p {
    margin: 0;
    color: rgba(36, 22, 52, 0.85);
    line-height: 1.6;
}

.badge {
    align-self: start;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(111,74,155,0.12);
    color: var(--primary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.login-form {
    display: grid;
    gap: 1rem;
}

.form-field {
    display: grid;
    gap: 0.35rem;
}

.form-field label {
    font-weight: 600;
}

.form-field input {
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    border: 1px solid var(--border);
    font-size: 1rem;
    background: #fff;
}

.form-field input:focus {
    outline: 3px solid rgba(111, 74, 155, 0.2);
    border-color: var(--primary);
}

.login-form .btn-primary {
    margin-top: 0.5rem;
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    font-size: 1rem;
}

.filters {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filters select {
    padding: 0.5rem;
}
