.waternorms {
    --wn-brand: #1f5875;
    --wn-ink: #183b50;
    --wn-muted: #657984;
    --wn-line: #dce5e9;
    width: 100%;
    color: var(--wn-ink);
}

.waternorms,
.waternorms * {
    box-sizing: border-box;
}

.waternorms [hidden] {
    display: none !important;
}

.waternorms svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* Информационный блок */

.wn-intro {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 23px 24px;
    background: #f1f7fa;
    border: 1px solid #dceaf0;
    border-left: 4px solid var(--wn-brand);
    border-radius: 12px;
}

.wn-intro-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: none;
    background: #e0edf3;
    border-radius: 10px;
    color: var(--wn-brand);
}

.waternorms .wn-intro h2 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: var(--wn-brand);
}

.waternorms .wn-intro p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #344e5d;
}

/* Заголовок каталога */

.wn-section-head {
    margin: 34px 0 18px;
}

.waternorms .wn-section-head h2 {
    margin: 0 0 5px;
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -.6px;
    color: var(--wn-brand);
}

.waternorms .wn-section-head p {
    margin: 0;
    font-size: 14px;
    color: var(--wn-muted);
}

/* Поиск и фильтрация */

.wn-filters {
    display: grid;
    grid-template-columns: 1fr minmax(240px, .45fr);
    gap: 12px;
    margin-bottom: 22px;
}

.wn-input {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 0 13px;
    background: #fff;
    border: 1px solid #cddce4;
    border-radius: 10px;
    color: var(--wn-brand);
}

.wn-input input,
.wn-input select {
    width: 100%;
    min-width: 0;
    padding: 13px 0;
    margin: 0;
    border: 0;
    outline: 0;
    box-shadow: none;
    background: transparent;
    font: inherit;
    font-size: 14px;
    color: var(--wn-ink);
}

.wn-input:focus-within {
    outline: 2px solid #77a9c0;
    outline-offset: 2px;
}

.wn-input:has(:disabled) {
    opacity: .65;
    background: #f8fafb;
}

.waternorms .wn-count {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--wn-muted);
}

/* Группы филиалов */

.wn-group {
    margin-bottom: 13px;
    border: 1px solid var(--wn-line);
    border-radius: 13px;
    overflow: hidden;
}

.wn-group-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    background: #f4f8fa;
    color: var(--wn-brand);
}

.wn-group-head strong {
    font-size: 15px;
    font-weight: 700;
}

.wn-group-count {
    margin-left: auto;
    font-size: 12px;
    color: var(--wn-muted);
    white-space: nowrap;
}

/* PDF-документы */

.wn-doc {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-top: 1px solid #e8eef1;
    transition: background .2s;
}

.wn-doc:hover {
    background: #fafcfd;
}

.wn-pdf {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 42px;
    height: 44px;
    background: #edf4f7;
    border-radius: 8px;
    color: var(--wn-brand);
    font-size: 10px;
    font-weight: 700;
}

.wn-pdf svg {
    width: 19px;
    height: 19px;
}

.wn-doc-name {
    margin-bottom: 4px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.wn-doc-sub {
    font-size: 12px;
    color: var(--wn-muted);
}

.waternorms .wn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid #b9cdd7;
    border-radius: 9px;
    background: #fff;
    color: var(--wn-brand);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.waternorms .wn-download:hover {
    background: var(--wn-brand);
    color: #fff;
}

.wn-download svg {
    width: 17px;
    height: 17px;
}

/* Пустое состояние */

.wn-empty {
    padding: 38px 24px;
    text-align: center;
    color: var(--wn-muted);
    border: 1px dashed #cddce4;
    border-radius: 12px;
    background: #fafcfd;
}

.wn-empty-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #edf4f7;
    color: var(--wn-brand);
}

.wn-empty-icon svg {
    width: 30px;
    height: 30px;
}

.waternorms .wn-empty h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--wn-brand);
}

.waternorms .wn-empty p {
    max-width: 560px;
    margin: 0 auto;
    color: var(--wn-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Адаптивность */

@media (max-width: 700px) {
    .wn-intro {
        padding: 15px;
        gap: 10px;
    }

    .wn-intro-icon {
        display: none;
    }

    .waternorms .wn-intro p {
        font-size: 14px;
    }

    .wn-filters {
        grid-template-columns: 1fr;
    }

    .wn-section-head {
        margin-top: 25px;
    }

    .waternorms .wn-section-head h2 {
        font-size: 24px;
    }

    .wn-doc {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 10px;
        padding: 13px;
    }

    .wn-pdf {
        width: 36px;
    }

    .wn-download {
        grid-column: 2;
        justify-self: start;
    }

    .wn-group-head {
        padding: 12px;
    }

    .wn-doc-name {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .waternorms * {
        transition: none !important;
    }
}
