.hero-page {
    padding: 0px 0 0 0;
}

.section-title {
    font-size: 2.4rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 18px;
    border-bottom: 4px solid var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    display: inline-block;
    width: 100%;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 140px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--color-accent-soft) 35%, var(--color-accent) 50%, var(--color-accent-soft) 65%, transparent 100%);
    opacity: 0.9;
}

.navigation-section {
    background-image: url('../img/old-map.png');
    background-attachment: fixed;
    background-size: 420px;
    padding: 64px 0;
    position: relative;
}

.navigation-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.92), rgba(244, 243, 238, 0.9) 40%, rgba(225, 218, 205, 0.9) 100%),
        repeating-linear-gradient(135deg, rgba(43, 30, 18, 0.06) 0, rgba(43, 30, 18, 0.06) 1px, transparent 1px, transparent 4px);
    mix-blend-mode: multiply;
    pointer-events: none;
}

.navigation-section .container {
    position: relative;
    z-index: 1;
}

.navigation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

@media (min-width: 992px) {
    .navigation-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Одна карточка в последнем ряду (4, 7, 10…) — на всю ширину */
    .navigation-grid > .nav-card:last-child:nth-child(3n + 1) {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(300px, 40%) 1fr;
        grid-template-rows: auto 1fr;
        align-items: center;
        min-height: 220px;
    }

    .navigation-grid > .nav-card:last-child:nth-child(3n + 1) .nav-card-image {
        grid-row: 1 / 3;
        grid-column: 1;
        height: 100%;
        min-height: 220px;
    }

    .navigation-grid > .nav-card:last-child:nth-child(3n + 1) h3 {
        grid-column: 2;
        grid-row: 1;
        align-self: end;
        padding: 28px 28px 8px;
    }

    .navigation-grid > .nav-card:last-child:nth-child(3n + 1) p {
        grid-column: 2;
        grid-row: 2;
        align-self: start;
        padding: 0 28px 28px;
    }
}

.nav-card {
    background: radial-gradient(circle at 0 0, rgba(248, 247, 243, 0.9), rgba(255, 255, 255, 0.98) 45%, #ffffff 100%);
    border-radius: 10px;
    overflow: hidden;
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.nav-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 24px 55px rgba(0, 0, 0, 0.22),
        0 0 0 1px rgba(139, 0, 0, 0.16);
}

.nav-card-image {
    width: 100%;
    height: 200px;
    background-color: var(--color-secondary);
    position: relative;
    overflow: hidden;
}

.nav-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.nav-card:hover .nav-card-image img {
    opacity: 1;
    transform: scale(1.05);
}

.nav-card h3 {
    padding: 20px 20px 10px;
    color: var(--color-primary);
    font-size: 1.3rem;
    font-weight: 600;
}

.nav-card p {
    padding: 0 20px 20px;
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.about-section {
    position: relative;
    padding: 56px 0 60px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.16),
        0 0 0 1px rgba(0, 0, 0, 0.04);
    background:
        radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.96), rgba(244, 243, 238, 0.96) 45%, rgba(233, 229, 217, 0.94) 100%);
}

.about-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(36, 51, 66, 0.08), transparent 55%, rgba(139, 0, 0, 0.06)),
        repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.03) 0, rgba(0, 0, 0, 0.03) 1px, transparent 1px, transparent 4px);
    mix-blend-mode: multiply;
    pointer-events: none;
}

.about-section .container {
    position: relative;
    z-index: 1;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-top: 30px;
}

.about-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.about-images img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.about-text {
    padding: 4px 22px 0;
}

.about-text p {
    margin-bottom: 20px;
    text-align: justify;
    line-height: 1.8;
    color: var(--color-text);
}

.about-contacts {
    margin-top: 40px;
    padding: 24px 26px;
    background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.96), rgba(247, 242, 235, 0.96) 55%, rgba(236, 225, 214, 0.95) 100%);
    border-left: 4px solid var(--color-accent);
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
}

.about-contacts h3 {
    color: var(--color-primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.about-contacts p {
    margin-bottom: 10px;
    text-align: left;
}

.about-contacts strong {
    color: var(--color-accent);
}

.about-contacts a {
    color: #0f6b4f;
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-word;
}

.site-contacts-grant {
    margin-top: 12px;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--color-text-light);
}

@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-images {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .navigation-section {
        padding: 32px 0;
        background-attachment: scroll;
    }
    
    .navigation-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 24px;
    }

    .navigation-grid > .nav-card:last-child:nth-child(3n + 1) {
        grid-column: auto;
        display: block;
        min-height: auto;
    }

    .navigation-grid > .nav-card:last-child:nth-child(3n + 1) .nav-card-image {
        grid-row: auto;
        grid-column: auto;
        height: 200px;
        min-height: 0;
    }

    .navigation-grid > .nav-card:last-child:nth-child(3n + 1) h3,
    .navigation-grid > .nav-card:last-child:nth-child(3n + 1) p {
        grid-column: auto;
        grid-row: auto;
        padding: 20px 20px 10px;
    }

    .navigation-grid > .nav-card:last-child:nth-child(3n + 1) p {
        padding: 0 20px 20px;
    }
    
    .section-title {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
        margin-bottom: 24px;
        padding-bottom: 12px;
        letter-spacing: 0.08em;
    }
    
    .nav-card {
        min-height: auto;
    }
    
    .nav-card-content {
        padding: 18px 16px;
        min-height: 120px;
    }
    
    .nav-card-title {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .nav-card-description {
        font-size: 0.9rem;
    }
    
    .about-section {
        padding: 40px 0;
    }
    
    .about-images {
        grid-template-columns: 1fr;
    }
    
    .about-text {
        padding: 0;
    }
    
    .about-text h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .about-text p {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.3rem;
    }
    
    .nav-card {
        min-height: 180px;
    }
    
    .nav-card-title {
        font-size: 1.1rem;
    }
    
    .nav-card-description {
        font-size: 0.85rem;
    }
}
