/* Стили для страницы карты сайта */

/* Главный баннер */
.sitemap-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Добавляем метапиксельный эффект */
.sitemap-hero:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 0;
}

.sitemap-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.sitemap-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
    text-shadow: var(--shadow-sm);
    font-weight: 700;
    letter-spacing: -0.02em;
    font-family: "Space Grotesk", "Outfit", sans-serif;
}

.sitemap-hero .hero-text {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Основной контент карты сайта */
.sitemap-section {
    padding: 100px 20px;
    background-color: var(--bg-light);
    position: relative;
}

.sitemap-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.sitemap-group {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    will-change: transform;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.sitemap-group:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.sitemap-group h2 {
    color: var(--primary-color);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 20px;
    padding-bottom: 10px;
    font-weight: 600;
    font-family: "Space Grotesk", "Outfit", sans-serif;
    position: relative;
}

.sitemap-group h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
}

.sitemap-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sitemap-list li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
}

.sitemap-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.sitemap-list a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition-normal);
    display: inline-block;
    transform-origin: left;
}

.sitemap-list a:hover {
    color: var(--accent-color);
    transform: translateX(3px);
}

/* XML Sitemap секция */
.xml-sitemap-section {
    padding: 60px 20px;
    background-color: var(--bg-white);
    text-align: center;
}

.xml-sitemap-section h2 {
    color: var(--primary-color);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 20px;
    font-weight: 600;
    font-family: "Space Grotesk", "Outfit", sans-serif;
    position: relative;
}

.xml-sitemap-section h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
}

.xml-sitemap-section p {
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.125rem;
    line-height: 1.7;
}

.xml-sitemap-section a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-normal);
}

.xml-sitemap-section a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 768px) {
    .sitemap-container {
        grid-template-columns: 1fr;
    }

    .sitemap-hero h1 {
        font-size: clamp(2rem, 4vw, 3rem);
    }

    .sitemap-hero {
        padding: 60px 20px;
    }

    .sitemap-section {
        padding: 60px 20px;
    }

    .sitemap-group {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .sitemap-hero {
        padding: 40px 15px;
    }

    .sitemap-section,
    .xml-sitemap-section {
        padding: 40px 15px;
    }

    .sitemap-group {
        padding: 20px 15px;
    }
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sitemap-group {
    animation: fadeInUp 0.8s ease-out forwards;
}

.sitemap-group:nth-child(1) {
    animation-delay: 0.1s;
}

.sitemap-group:nth-child(2) {
    animation-delay: 0.2s;
}

.sitemap-group:nth-child(3) {
    animation-delay: 0.3s;
}

.sitemap-group:nth-child(4) {
    animation-delay: 0.4s;
}

.xml-sitemap-section {
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.5s;
}