/* Wspólny styl nawigacji działów. Kolory pozostają właściwe dla podstrony. */
.section-nav {
    --nav-tint: #f1e9dc;
    --nav-circle: #e5d8c3;
    --nav-line: #e4d9c9;
    --nav-columns: 3;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(var(--nav-columns), minmax(0, 1fr));
    gap: 12px;
    margin-top: -35px;
    padding: 8px;
    border: 1px solid var(--nav-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 36px #1f2d4a0d;
}
.section-nav--birds {
    --nav-tint: #edf3ec;
    --nav-circle: #dce7d9;
    --nav-line: #dce5dc;
}
.section-nav--aquarium {
    --nav-columns: 2;
    --nav-tint: #edf7fa;
    --nav-circle: #d7eaf0;
    --nav-line: #d5e6ec;
}
.section-nav--fishing {
    --nav-tint: #e9d69b;
    --nav-circle: #dfc77f;
    --nav-line: #e1d4af;
}
.section-nav--collections {
    --nav-columns: 4;
    --nav-tint: #eef2ec;
    --nav-circle: #dce5d6;
    --nav-line: #dce3d7;
    margin-top: 24px;
}
.section-nav > a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 0;
    min-height: 74px;
    padding: 12px;
    border-radius: 12px;
    color: #1f2d4a;
    text-decoration: none;
    transition: background-color .25s ease;
}
.section-nav > a:hover,
.section-nav > a:focus-visible {
    background-color: var(--nav-tint);
    color: #1f2d4a;
}
.section-nav > a:focus-visible {
    outline: 2px solid #1f2d4a;
    outline-offset: -2px;
}
.section-nav__icon {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--nav-circle);
    color: #df1722;
}
.section-nav__icon svg {
    display: block;
    width: 20px;
    height: 20px;
    transition: transform .35s ease;
}
.section-nav__brand {
    display: block;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    object-fit: contain;
}
.section-nav > a:hover .section-nav__icon svg,
.section-nav > a:focus-visible .section-nav__icon svg { transform: translate(3px, -3px); }
.section-nav__copy { min-width: 0; text-align: center; }
.section-nav__copy strong {
    display: block;
    font-size: .9375rem;
    font-weight: 700;
    line-height: 1.4;
}
.section-nav__copy small {
    display: block;
    margin-top: 4px;
    font-size: .75rem;
    font-weight: 400;
    line-height: 1.5;
    color: #596374;
}
.section-nav > a::after {
    content: "";
    position: absolute;
    right: -7px;
    top: 50%;
    width: 1px;
    height: 30px;
    background: var(--nav-line);
    transform: translateY(-50%);
    pointer-events: none;
}
.section-nav > a:last-child::after,
.section-nav--collections > a:nth-child(4n)::after { display: none; }
@media (min-width: 541px) and (max-width: 1100px) {
    .section-nav > a { min-height: 112px; gap: 10px; padding: 12px 8px; }
    .section-nav__icon { flex-basis: 34px; width: 34px; height: 34px; }
    .section-nav__brand { flex-basis: 38px; width: 38px; height: 38px; }
    .section-nav--collections { --nav-columns: 2; }
    .section-nav--collections > a:nth-child(2n)::after { display: none; }
}
@media (min-width: 541px) and (max-width: 700px) {
    .section-nav > a { flex-direction: column; min-height: 150px; gap: 8px; }
}
@media (max-width: 540px) {
    .section-nav { grid-template-columns: 1fr; margin-top: 0; gap: 12px; }
    .section-nav--collections { margin-top: 24px; }
    .section-nav > a { min-height: 88px; padding: 12px; }
    .section-nav > a::after,
    .section-nav--collections > a:nth-child(2n)::after,
    .section-nav--collections > a:nth-child(4n)::after {
        display: block;
        top: auto;
        bottom: -7px;
        right: 50%;
        width: 30px;
        height: 1px;
        transform: translateX(50%);
    }
    .section-nav > a:last-child::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .section-nav > a,
    .section-nav__icon svg { transition: none; }
    .section-nav > a:hover .section-nav__icon svg,
    .section-nav > a:focus-visible .section-nav__icon svg { transform: none; }
}
