:root {
    --primary: #004a99;
    --primary-light: #1d6bc2;
    --background: #f5f7fa;
    --light: #ffffff;
    --text: #283144;
    --muted: #6b7a99;
    --overlay: rgba(14, 23, 42, 0.55);
    --label-color: #283144;
    --background-image: none;
    --title-top-font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --title-top-font-size: 12px;
    --title-bottom-font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --title-bottom-font-size: 24px;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background);
    background-image: var(--background-image);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text);
}

header {
    background: linear-gradient(120deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--light);
    padding: 18px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
}

header img {
    height: 64px;
}

header .title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

header .title span:first-child {
    text-transform: uppercase;
    font-size: var(--title-top-font-size, 12px);
    font-family: var(--title-top-font-family, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif);
    letter-spacing: 0.12em;
}

header .title span:last-child {
    font-size: var(--title-bottom-font-size, 24px);
    font-family: var(--title-bottom-font-family, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif);
    font-weight: 600;
}

.search-bar {
    margin-left: auto;
    display: flex;
    align-items: center;
    position: relative;
    min-width: 320px;
}

.search-bar input {
    width: 100%;
    padding: 12px 44px 12px 16px;
    border-radius: 24px;
    border: none;
    outline: none;
    font-size: 15px;
}

.search-bar svg {
    position: absolute;
    right: 18px;
    width: 18px;
    height: 18px;
    fill: var(--muted);
}

.layout {
    display: grid;
    grid-template-columns: 280px 1fr 260px;
    gap: 24px;
    padding: 24px;
}

nav {
    background: var(--light);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(40, 49, 68, 0.08);
    height: fit-content;
}

nav h2 {
    margin: 0 0 12px 0;
    font-size: 18px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

nav li {
    border-radius: 10px;
    padding: 10px 12px;
    color: var(--muted);
    font-size: 15px;
    transition: background 0.2s, color 0.2s;
}

nav li.active,
nav li:hover {
    background: rgba(0, 74, 153, 0.08);
    color: var(--primary);
    cursor: pointer;
}

main {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.card {
    background: var(--light);
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(40, 49, 68, 0.08);
    padding: 24px 28px;
    position: relative;
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

#faqCard.is-refreshing {
    animation: faqCardPulse 0.7s ease;
}

@keyframes faqCardPulse {
    0% {
        box-shadow: 0 14px 40px rgba(40, 49, 68, 0.08);
        transform: scale(1);
    }

    45% {
        box-shadow: 0 20px 50px rgba(0, 74, 153, 0.3);
        transform: scale(1.01);
    }

    100% {
        box-shadow: 0 14px 40px rgba(40, 49, 68, 0.08);
        transform: scale(1);
    }
}

.card h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 20px 0 0;
    width: 100%;
}
.faq-empty {
    margin: 0;
    padding: 16px 0;
    color: var(--muted);
    text-align: center;
}
.faq-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    font-size: 15px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(40, 49, 68, 0.06);
    border-radius: 16px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
    box-shadow: 0 10px 24px rgba(40, 49, 68, 0.05);
}

.faq-item::before {
    content: "?";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(0, 74, 153, 0.1);
    color: var(--primary);
    font-weight: 600;
    flex-shrink: 0;
    transition: background 0.25s ease, color 0.25s ease;
}

.faq-item span {
    max-width: 100%;
    font-weight: 600;
}

.faq-item::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 18px;
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(40, 49, 68, 0.3);
    border-bottom: 2px solid rgba(40, 49, 68, 0.3);
    transform: translateY(-50%) rotate(-45deg);
    transition: border-color 0.25s ease;
}

.faq-item:hover,
.faq-item:focus {
    color: var(--primary);
    background: linear-gradient(135deg, rgba(0, 74, 153, 0.08), rgba(29, 107, 194, 0.12));
    border-color: rgba(0, 74, 153, 0.2);
    box-shadow: 0 16px 32px rgba(0, 74, 153, 0.18);
    transform: translateY(-2px);
    outline: none;
}

.faq-item:hover::before,
.faq-item:focus::before {
    background: var(--primary);
    color: var(--light);
}

.faq-item:hover::after,
.faq-item:focus::after {
    border-color: var(--primary);
}


aside {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-card {
    background: var(--light);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 12px 36px rgba(40, 49, 68, 0.1);
}

.info-card h3 {
    margin-top: 0;
    font-size: 18px;
    color: var(--primary);
}

.info-card p {
    margin: 8px 0;
    font-size: 15px;
    color: var(--muted);
}

.button-group {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.button-group a {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid var(--primary);
}

.button-group a.primary {
    background: var(--primary);
    color: var(--light);
}

.button-group a.secondary {
    color: var(--primary);
    background: rgba(0, 74, 153, 0.08);
}

.contact-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 15px;
    color: var(--muted);
}

.contact-item strong {
    color: var(--label-color);
    font-size: 15px;
    display: block;
}

.contact-item__value {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(0, 74, 153, 0.08);
    color: var(--text);
    cursor: pointer;
    word-break: break-word;
    width: 100%;
    transition: background 0.2s ease, color 0.2s ease;
}

.contact-item__value:hover {
    background: rgba(0, 74, 153, 0.12);
    color: var(--primary);
}

.contact-item__value:focus-visible {
    outline: 2px solid rgba(0, 74, 153, 0.4);
    outline-offset: 2px;
}

.contact-item__value[data-copied="true"] {
    background: var(--primary);
    color: var(--light);
}

footer {
    padding: 24px 48px 48px;
    color: var(--muted);
    text-align: center;
    font-size: 13px;
}

.faq-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1000;
}

.faq-modal.is-active {
    display: flex;
}

.faq-modal__overlay {
    position: absolute;
    inset: 0;
    background: var(--overlay);
    backdrop-filter: blur(2px);
}

.faq-modal__dialog {
    position: relative;
    background: var(--light);
    border-radius: 18px;
    box-shadow: 0 24px 64px rgba(40, 49, 68, 0.18);
    padding: 28px 32px 32px;
    max-width: min(520px, 100%);
    width: 100%;
    z-index: 1;
    display: grid;
    gap: 16px;
    outline: none;
}

.faq-modal__dialog h2 {
    margin: 0;
    font-size: 22px;
    color: var(--primary);
}

.faq-modal__dialog p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
}

.faq-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 74, 153, 0.12);
    color: var(--primary);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}

.faq-modal__close:hover,
.faq-modal__close:focus {
    background: rgba(0, 74, 153, 0.2);
    outline: none;
}

@media (max-width: 1080px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .search-bar {
        width: 100%;
        margin-left: 0;
    }

    .layout {
        grid-template-columns: 1fr;
    }

    aside {
        order: -1;
    }
    .faq-modal {
        padding: 16px;
    }
}