/* Стили страницы «Сейфовые замки». Общие компоненты — в main.css */

/* Навигация по разделам страницы */
.anchor-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -16px 0 56px;
    padding: 0;
    list-style: none;
}

.anchor-nav a {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    border: 1px solid var(--border-20);
    border-radius: var(--r-pill);
    background: var(--surface);
    font: 500 13px/1.2 var(--font);
    color: var(--ink-2);
    transition: border-color var(--ease), color var(--ease), background-color var(--ease);
}

.anchor-nav a:hover {
    border-color: var(--border-35);
    color: var(--ink);
    background: #fff;
}

/* Разделы каталога: текст + сетка моделей */
.section .prose {
    margin-bottom: 32px;
}

.section .prose a {
    text-decoration: underline;
}

.section .prose a:hover {
    text-decoration: underline;
}

.model-card,
.use-card {
    display: flex;
    flex-direction: column;
}

.model-card .card__body,
.use-card .card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
}

.model-card .eyebrow {
    margin-bottom: 10px;
    font-size: 11px;
}

.model-card .card__body h3,
.use-card .card__body h3 {
    margin-bottom: 8px;
}

.model-card .card__text,
.use-card .card__text {
    font-size: 14px;
    color: var(--ink-2);
}

.model-card .card__text + .link-arrow,
.use-card .card__text + .link-arrow {
    margin-top: auto;
    padding-top: 16px;
}

.section-head__note--dark {
    color: var(--muted);
}

.model-card .link-arrow + .link-arrow,
.use-card .link-arrow + .link-arrow {
    margin-top: 12px;
}

#elektronnye > .note {
    margin-top: 24px;
}

/* Блок «Как выбрать класс» */
.note a {
    color: var(--accent-text);
}

.note a:hover {
    text-decoration: underline;
}

/* Контроль доступа dormakaba */
.skud {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    grid-template-areas:
        'text card'
        'actions card';
    gap: 0 48px;
    align-items: start;
}

.skud .prose {
    grid-area: text;
    margin-bottom: 0;
}

.skud .card {
    grid-area: card;
}

.skud__actions {
    grid-area: actions;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.checklist {
    margin: 0;
    padding: 0;
    list-style: none;
    font: 400 14px/1.5 var(--font);
    color: var(--ink-2);
}

.checklist li {
    position: relative;
    padding: 8px 0 8px 22px;
    border-top: 1px solid var(--border);
}

.checklist li:first-child {
    border-top: 0;
    padding-top: 0;
}

.checklist li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 15px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.checklist li:first-child::before {
    top: 7px;
}

/* Производители */
.maker {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 32px;
}

.maker__logo {
    display: flex;
    align-items: center;
    height: 70px;
    margin-bottom: 8px;
}

.maker__logo img {
    width: auto;
    max-height: 70px;
}

.maker h3 {
    font-size: 22px;
}

.maker__text {
    font: 400 15px/1.55 var(--font);
    color: var(--ink-2);
}

.maker .btn {
    margin-top: auto;
    padding-top: 13px;
}

/* FAQ страницы */
.zamki-faq {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 48px;
    align-items: start;
}

.zamki-faq__intro {
    position: sticky;
    top: calc(var(--header-h) + 24px);
}

.zamki-faq__text {
    margin: 14px 0 16px;
    font: 400 15px/1.5 var(--font);
    color: var(--muted);
}

/* Адаптив */
@media (max-width: 1024px) {
    .skud {
        grid-template-columns: 1fr;
        grid-template-areas:
            'text'
            'actions'
            'card';
        gap: 0;
    }

    .skud .card {
        margin-top: 32px;
    }

    .zamki-faq {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .zamki-faq__intro {
        position: static;
    }
}

@media (max-width: 640px) {
    .anchor-nav {
        margin: -8px 0 40px;
    }

    .anchor-nav a {
        padding: 8px 14px;
    }

    .section .prose {
        margin-bottom: 24px;
    }

    .maker {
        padding: 24px;
    }

    .maker .btn {
        width: 100%;
    }

    .skud__actions .btn {
        flex: 1 1 100%;
    }
}
