/*
 * Accessibility Statement (страницы с метой _ndc_a11y_statement, en/fr/de/ar).
 * Разметку генерирует migrations/2026-10-13-accessibility-statement.php.
 * Логические свойства (inline-start/end) — чтобы арабская RTL-версия зеркалилась сама.
 */
.a11y-statement {
    --a11y-navy: #1d2761;
    --a11y-deep: #072650;
    --a11y-ink: #0B1431;
    --a11y-gold: #B8B195;
    --a11y-gold-soft: #f6f4ee;
    --a11y-line: #e6e3d8;
    --a11y-text: #4a4f5c;
    color: var(--a11y-text);
}

.post .a11y-statement p {
    font-size: 20px;
    line-height: 1.6;
    color: var(--a11y-text);
}

.post .a11y-statement strong {
    color: var(--a11y-ink);
}

/* Theme lists: drop the dot bullet and indent for all lists on this page */
.post .a11y-statement ul {
    padding: 0;
    margin: 0;
    font-size: inherit;
}

.post .a11y-statement ul li {
    padding: 0;
    margin: 0;
}

.post .a11y-statement ul li::before {
    content: none;
}

/* Hero */
.a11y-hero {
    padding: 48px;
    border: 1px solid var(--a11y-line);
    border-radius: 24px;
    background: linear-gradient(135deg, #fff 0, var(--a11y-gold-soft) 100%);
}

.post .a11y-hero h1 {
    margin: 0 0 16px;
    color: var(--a11y-deep);
}

.post .a11y-statement .a11y-hero__lead {
    margin: 0;
    max-width: 760px;
}

.post .a11y-statement .a11y-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.post .a11y-statement .a11y-facts li {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(11, 20, 49, .06), 0 0 0 1px var(--a11y-line);
}

.a11y-facts__value {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--a11y-navy);
}

.a11y-facts__label {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #6b6f7a;
}

/* Sections */
.a11y-section {
    margin-top: 64px;
}

.post .a11y-statement h2 {
    margin-top: 0;
}

/* What we have done — icon cards */
.post .a11y-statement .a11y-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.post .a11y-statement .a11y-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 24px;
    padding-inline-start: 88px;
    border: 1px solid var(--a11y-line);
    border-radius: 18px;
    background: #fff;
}

/* ::before — navy badge, ::after — icon cut out of it with a mask */
.post .a11y-statement .a11y-card::before,
.post .a11y-statement .a11y-card::after {
    content: '';
    position: absolute;
    top: 24px;
    inset-inline-start: 24px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
}

.post .a11y-statement .a11y-card::before {
    background: var(--a11y-navy);
}

.post .a11y-statement .a11y-card::after {
    background: var(--a11y-gold);
    -webkit-mask: var(--icon) center / 24px no-repeat;
    mask: var(--icon) center / 24px no-repeat;
}

.a11y-card__title {
    font-size: 19px;
    line-height: 1.3;
}

.a11y-card__text {
    font-size: 16px;
    line-height: 1.55;
}

.a11y-card--contrast {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 3a9 9 0 0 1 0 18z' fill='%23000'/%3E%3C/svg%3E");
}

.a11y-card--keyboard {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Crect x='2' y='6' width='20' height='12' rx='2'/%3E%3Cpath d='M6 10h.01M10 10h.01M14 10h.01M18 10h.01M8 14h8'/%3E%3C/svg%3E");
}

.a11y-card--reader {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4z'/%3E%3Cpath d='M16.5 9a4 4 0 0 1 0 6M19 6.5a8 8 0 0 1 0 11'/%3E%3C/svg%3E");
}

.a11y-card--structure {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M9 6h11M9 12h11M9 18h11M4 6h.01M4 12h.01M4 18h.01'/%3E%3C/svg%3E");
}

.a11y-card--motion {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M10 9v6M14 9v6'/%3E%3C/svg%3E");
}

.a11y-card--zoom {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-5-5M11 8v6M8 11h6'/%3E%3C/svg%3E");
}

/* Known limitations */
.post .a11y-statement .a11y-limits {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post .a11y-statement .a11y-limits li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 24px;
    border-inline-start: 4px solid var(--a11y-gold);
    border-radius: 12px;
    background: var(--a11y-gold-soft);
    font-size: 17px;
    line-height: 1.55;
}

.post .a11y-statement .a11y-limits strong {
    font-size: 18px;
}

.post .a11y-statement .a11y-note {
    margin: 20px 0 0;
    font-size: 17px;
    font-style: italic;
}

/* Contact card */
.a11y-contact {
    margin-top: 64px;
    padding: 48px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--a11y-navy) 0, var(--a11y-deep) 100%);
    text-align: center;
}

.post .a11y-contact h2 {
    margin: 0 0 16px;
    background: none;
    color: #fff;
    -webkit-text-fill-color: #fff;
}

.post .a11y-statement .a11y-contact p {
    max-width: 640px;
    margin: 0 auto;
}

/* custom.css красит весь текст страниц в navy через !important */
body .section-page .post .a11y-contact p {
    color: rgba(255, 255, 255, .88) !important;
}

.post .a11y-statement .a11y-contact p + p {
    margin-top: 24px;
}

.post .a11y-statement .a11y-contact__meta {
    font-size: 15px;
}

.post .a11y-statement .a11y-contact__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 28px;
    border-radius: 999px;
    background: var(--a11y-gold);
    color: var(--a11y-ink);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s;
}

.post .a11y-statement .a11y-contact__btn::before {
    content: '';
    width: 20px;
    height: 20px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.post .a11y-statement .a11y-contact__btn:hover {
    background: #d4cfb8;
}

.post .a11y-statement .a11y-contact__btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .post .a11y-statement .a11y-contact__btn {
        transition: none;
    }
}

@media (max-width: 992px) {
    .post .a11y-statement p {
        font-size: 17px;
    }

    .a11y-hero,
    .a11y-contact {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .post .a11y-statement .a11y-facts,
    .post .a11y-statement .a11y-cards {
        grid-template-columns: 1fr;
    }

    .a11y-section,
    .a11y-contact {
        margin-top: 48px;
    }
}
