/* ============================================
   ОСНОВНЫЕ СТИЛИ И ПЕРЕМЕННЫЕ
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Onest:wght@100;200;300;400;500;600;700;800;900&display=swap');

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* переменные */
:root {
    --primary: rgba(53, 84, 108, 1);
    --primary-light: rgba(53, 84, 108, 0.8);
    --primary-dark: rgba(33, 54, 68, 1);
    --accent: rgba(118, 167, 153, 1);
    --accent-light: rgba(168, 207, 183, 1);
    --gold: rgba(212, 175, 55, 1);
    --white: #ffffff;
    --text-light: rgba(255, 255, 255, 0.9);

    /* Адаптивные размеры */
    --container-padding: clamp(12px, 4vw, 40px);
    --section-padding: clamp(40px, 8vw, 100px);
    --card-padding: clamp(20px, 4vw, 40px);
    --gap-sm: clamp(10px, 2vw, 20px);
    --gap-md: clamp(15px, 3vw, 30px);
    --gap-lg: clamp(20px, 4vw, 40px);

    /* Радиусы */
    --radius-sm: clamp(8px, 2vw, 15px);
    --radius-md: clamp(12px, 3vw, 25px);
    --radius-lg: clamp(15px, 4vw, 35px);

    /* Адаптивные размеры шрифтов */
    --fs-hero: clamp(42px, 9vw, 96px);
    /* Главный заголовок hero */
    --fs-section-title: clamp(36px, 7vw, 72px);
    /* Заголовки секций, статистика */
    --fs-subtitle: clamp(20px, 4.5vw, 28px);
    /* Подзаголовки, stat-label */
    --fs-body: clamp(14px, 2.2vw, 16px);
    /* Основной текст, описания */
    --fs-button: clamp(14px, 1.2vw, 19px);
    /* Текст кнопок */
    --fs-h3: clamp(19px, 3.2vw, 24px);
    /* h3 в карточках */
    --fs-footer-large: clamp(28px, 6vw, 45px);
    /* Большой текст в футере */
    --fs-small: clamp(12px, 1.8vw, 14px);
    /* Мелкий текст (copyright) */
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overscroll-behavior: none;
    overscroll-behavior-y: none;
    height: 100%;
}

body {
    font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
    overscroll-behavior: none;
    overscroll-behavior-y: none;
    background: #0a0e27;
    line-height: 1.6;
    min-height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================
   СТИЛИ ДЛЯ ЛОГОТИПА 
   ============================================ */

.logo-frame2 {
    position: absolute;
    top: clamp(60px, 12vh, 60px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    margin-bottom: 20px;
    max-width: 90%;
}

/* ============================================
   КАНВАС ДЛЯ ЧАСТИЦ (ФОНОВАЯ АНИМАЦИЯ)
   ============================================ */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    will-change: auto;
}

/* ============================================
   ЭФФЕКТ СЕВЕРНОГО СИЯНИЯ (ФОН)
   ============================================ */
.aurora {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
    will-change: auto;
}

.aurora-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(118, 167, 153, 0.3) 25%,
            rgba(212, 175, 55, 0.3) 50%,
            rgba(53, 84, 108, 0.3) 75%,
            transparent 100%);
    animation: aurora 20s ease-in-out infinite;
    filter: blur(60px);
}

.aurora-layer:nth-child(2) {
    animation-duration: 15s;
    animation-delay: -5s;
    opacity: 0.6;
}

.aurora-layer:nth-child(3) {
    animation-duration: 25s;
    animation-delay: -10s;
    opacity: 0.4;
}

@keyframes aurora {

    0%,
    100% {
        transform: translateY(-50%) translateX(-50%) rotate(0deg);
        opacity: 0.3;
    }

    25% {
        transform: translateY(-30%) translateX(-30%) rotate(90deg);
        opacity: 0.5;
    }

    50% {
        transform: translateY(-40%) translateX(-60%) rotate(180deg);
        opacity: 0.7;
    }

    75% {
        transform: translateY(-20%) translateX(-40%) rotate(270deg);
        opacity: 0.5;
    }
}



/* ============================================
   HERO СЕКЦИЯ
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ============================================
   ЛОГОТИП HERO
   ============================================ */
.hero-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
}

.hero-logo img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    padding: 15px;
    background: radial-gradient(ellipse at center,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            transparent 70%);

    animation: floatLogo 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    transition: transform 0.4s ease;
    will-change: transform;
    transform: translateZ(0);
}

@keyframes floatLogo {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    25% {
        transform: translateY(-15px) scale(1.03);
    }

    75% {
        transform: translateY(-8px) scale(1.02);
    }
}

.hero-logo::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 20px;
    background: radial-gradient(ellipse,
            rgba(212, 175, 55, 0.4) 0%,
            transparent 70%);
    border-radius: 50%;
    opacity: 0.5;
    animation: shadowPulse 6s ease-in-out infinite;
    will-change: transform, opacity;
}

@keyframes shadowPulse {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.4;
    }

    50% {
        transform: translateX(-50%) scale(1.3);
        opacity: 0.6;
    }
}

.hero-logo:hover img,
.hero-logo:active img {
    animation-play-state: paused;
    transform: translateY(-10px) scale(1.15);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

.hero-logo {
    position: relative;
}

.hero-logo:hover img {
    animation-play-state: paused;
    transform: scale(1.15) rotateY(15deg);
    filter:
        drop-shadow(0 25px 50px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 30px rgba(102, 126, 234, 0.4));
}

.hero-bg {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-image: url("https://images.unsplash.com/photo-1441974231531-c6227db76b6e?w=1920&q=80");
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
    animation: slowZoom 30s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    from {
        transform: scale(1) rotate(0deg);
    }

    to {
        transform: scale(1.1) rotate(2deg);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(118, 167, 153, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(212, 175, 55, 0.2) 0%, transparent 50%),
        linear-gradient(180deg, rgba(53, 84, 108, 0.3) 0%, rgba(10, 14, 39, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1200px;
    width: 100%;
    padding: 0 var(--container-padding);
    animation: heroEntrance 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heroEntrance {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.hero h1 {
    font-size: var(--fs-hero);
    font-weight: 700;
    margin-bottom: clamp(15px, 4vw, 30px);
    background: linear-gradient(135deg, #fff 0%, var(--accent-light) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShine 3s ease-in-out infinite;
    position: relative;
    display: inline-block;
    line-height: 1.2;
    top: 5%;
}

@keyframes textShine {

    0%,
    100% {
        filter: brightness(1) drop-shadow(0 0 20px rgba(212, 175, 55, 0.3));
    }

    50% {
        filter: brightness(1.3) drop-shadow(0 0 40px rgba(212, 175, 55, 0.6));
    }
}

.hero-subtitle {
    /* max-width: min(704px); */
    max-width: 1200px;

    font-size: var(--fs-subtitle);
    font-weight: 700;
    margin: auto;
    margin-bottom: clamp(15px, 4vw, 30px);
    color: rgba(255, 255, 255, 1);
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1s ease-out 0.5s backwards;
}

.hero-description {
    font-size: var(--fs-body);
    max-width: min(704px, 90%);
    margin: 0 auto clamp(25px, 5vw, 40px);
    line-height: 1.7;
    color: rgba(255, 255, 255, 1);
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1s ease-out 0.8s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-buttons {
    display: flex;
    gap: var(--gap-md);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 1.1s backwards;
}

.cta-button {
    padding: 15px 26px;
    font-size: var(--fs-button);
    font-weight: 500;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
    width: 230px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.cta-button-primary {
    background: linear-gradient(135deg, var(--gold) 0%, rgba(212, 175, 55, 0.8) 100%);
    color: #FFFFFF;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.4);
}

.cta-button-secondary {
    background-color: rgba(255, 255, 255, 0.13);
    color: #FFFFFF;
    backdrop-filter: blur(10px);
}

.cta-button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.cta-button:hover::before,
.cta-button:active::before {
    width: 400px;
    height: 400px;
}

.cta-button:hover,
.cta-button:active {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.6);
}

@media (max-width: 768px) {
    .hero-logo img {
        animation: none;
        transform: translateY(-10px);
    }

    .hero-logo::after {
        animation: none;
        opacity: 0.4;
        transform: translateX(-50%) scale(1.1);
    }
}

/* ============================================
   ИНДИКАТОР ПРОКРУТКИ 
   ============================================ */
.scroll-indicator {
    position: absolute;
    bottom: clamp(15px, 4vh, 40px);
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid var(--gold);
    border-radius: 25px;
    pointer-events: none;
    z-index: 10;
    opacity: 0.7;
    will-change: opacity;
}

.scroll-indicator::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    width: 6px;
    height: 10px;
    background: var(--gold);
    border-radius: 3px;
    transform: translateX(-50%);
    will-change: transform, opacity;
    animation: scrollMove 2s ease-in-out infinite;
}

.scroll-indicator::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid var(--gold);
    border-radius: 25px;
    opacity: 0;
    animation: scrollPulse 2s ease-in-out infinite;
    will-change: opacity;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 0.6;
    }
}

@keyframes scrollMove {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    80% {
        transform: translateX(-50%) translateY(28px);
        opacity: 0.8;
    }

    100% {
        transform: translateX(-50%) translateY(28px);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .scroll-indicator {
        display: none;
    }
}

/* ============================================
   КОНТЕЙНЕР
   ============================================ */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
    z-index: 2;
}

/* ============================================
   ЗАГОЛОВКИ СЕКЦИЙ
   ============================================ */
.section-title {
    font-size: var(--fs-section-title);
    text-align: center;
    margin-bottom: clamp(30px, 6vw, 70px);
    position: relative;
    padding-bottom: clamp(15px, 3vw, 35px);
    background: linear-gradient(135deg, var(--white) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    font-weight: 700;
    margin-top: 6%;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(80px, 12vw, 150px);
    height: clamp(3px, 0.5vw, 5px);
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    box-shadow: 0 0 20px var(--gold);
}

/* ============================================
   СЕКЦИЯ ЦЕЛЕЙ
   ============================================ */
.goals-section {
    padding: var(--section-padding) var(--container-padding);
    position: relative;
    background: linear-gradient(180deg, rgba(10, 14, 39, 1) 0%, rgba(53, 84, 108, 0.3) 50%, rgba(10, 14, 39, 1) 100%);
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: var(--gap-lg);
    perspective: 1000px;
}

.goal-card {
    background: rgba(53, 84, 108, 0.2);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--card-padding);
    text-align: center;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.goal-card::before {
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.3) 0%, transparent 60%);
    opacity: 0;
    transition: all 0.8s;
    animation: rotateGlow 10s linear infinite;
}

@keyframes rotateGlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.goal-card:hover::before,
.goal-card:active::before {
    opacity: 1;
}

.goal-card:hover,
.goal-card:active {
    transform: translateY(-15px);
    border-color: var(--gold);
    box-shadow: 0 25px 60px rgba(212, 175, 55, 0.4), inset 0 0 60px rgba(212, 175, 55, 0.1);
}

.goal-icon {
    font-size: clamp(3rem, 10vw, 5rem);
    margin-bottom: clamp(15px, 3vw, 25px);
    display: inline-block;
    filter: drop-shadow(0 0 30px currentColor);
    animation: iconFloat 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-10px) scale(1.1);
    }
}

.goal-card h3 {
    font-size: var(--fs-h3);
    margin-bottom: clamp(12px, 2vw, 20px);
    color: var(--accent-light);
    position: relative;
    z-index: 1;
    text-shadow: 0 0 20px rgba(168, 207, 183, 0.5);
}

.goal-card p {
    line-height: 1.7;
    color: var(--text-light);
    font-size: var(--fs-body);
    position: relative;
    z-index: 1;
}

/* ============================================
   СЕКЦИЯ КАРТЫ
   ============================================ */
.map-section {
    padding: var(--section-padding) var(--container-padding);
    position: relative;
    background: url("https://ecotourism.by/wp-content/uploads/2026/01/map-section.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

.map-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.map-container {
    max-width: 1849px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.belarus-map {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto clamp(30px, 6vw, 70px);
    position: relative;
    padding: clamp(12px, 3vw, 35px);
    background: rgba(53, 84, 108, 0.3);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 0 60px rgba(212, 175, 55, 0.1);
    backdrop-filter: blur(10px);
}

.map-svg-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 300px;
    max-height: 900px;
    overflow: visible;
}

.belarus-map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.5s ease;
    filter: brightness(1.1) contrast(1.05);
    animation: mapEntrance 2s ease-out forwards;
}

@keyframes mapEntrance {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.map-svg-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(0deg, rgba(212, 175, 55, 0.05) 0px, transparent 1px, transparent 50px, rgba(212, 175, 55, 0.05) 51px),
        repeating-linear-gradient(90deg, rgba(212, 175, 55, 0.05) 0px, transparent 1px, transparent 50px, rgba(212, 175, 55, 0.05) 51px);
    pointer-events: none;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    from {
        background-position: 0 0, 0 0;
    }

    to {
        background-position: 50px 50px, 50px 50px;
    }
}

/* ============================================
   МАРКЕРЫ НА КАРТЕ
   ============================================ */
.park-marker {
    position: absolute;
    width: clamp(35px, 5vw, 65px);
    height: clamp(35px, 5vw, 65px);
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: z-index 0.1s ease;
    z-index: 100;
    -webkit-tap-highlight-color: transparent;
    will-change: z-index;
}

.park-marker:hover {
    z-index: 1000 !important;
}

.park-marker.active {
    z-index: 1001 !important;
}

.marker-ping {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

/* .marker-ping::before,
.marker-ping::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--gold);
    animation: ping 2.5s cubic-bezier(0, 0, 0.2, 1) infinite;
} */

.marker-ping::after {
    animation-delay: 1.25s;
}

@keyframes ping {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    80%,
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.marker-icon {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.2rem, 3vw, 2rem);
    border: clamp(2px, 0.3vw, 4px) solid var(--gold);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6),
        inset 0 -5px 15px rgba(0, 0, 0, 0.3),
        0 0 25px rgba(212, 175, 55, 0.6);
    position: relative;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform, box-shadow;
}

/* .park-marker:hover .marker-icon,
.park-marker.active .marker-icon {
    transform: scale(1.2);
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--gold) 100%);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7),
        inset 0 -5px 15px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(212, 175, 55, 1);
} */

.marker-icon::before {
    content: "";
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), transparent);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

/* Тултипы — базовые стили (всегда видимы на десктопе) */
.marker-tooltip {
    position: absolute;
    background: rgba(18, 34, 52, 1);
    padding: clamp(8px, 2vw, 14px) clamp(12px, 3vw, 22px);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: clamp(0.7rem, 1.5vw, 1rem);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    z-index: 10000;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    text-align: center;
    white-space: normal;
    max-width: clamp(140px, 30vw, 300px);
    width: max-content;
}

/* По умолчанию — сверху */
.marker-tooltip {
    bottom: calc(100% + clamp(8px, 2vw, 12px));
    left: 50%;
    transform: translateX(-50%);
}

/* Слева */
.park-marker[data-park="narochansky"] .marker-tooltip,
.park-marker[data-park="braslav"] .marker-tooltip,
.park-marker[data-park="krasnosel"] .marker-tooltip {
    bottom: auto;
    top: 50%;
    left: auto;
    right: calc(100% + clamp(8px, 2vw, 12px));
    transform: translateY(-50%);
}

/* Справа */
.park-marker[data-park="pripyatsky"] .marker-tooltip,
.park-marker[data-park="berezinsky"] .marker-tooltip,
.park-marker[data-park="teter"] .marker-tooltip {
    bottom: auto;
    top: 50%;
    left: calc(100% + clamp(8px, 2vw, 12px));
    right: auto;
    transform: translateY(-50%);
}

.marker-tooltip a {
    color: var(--white);
    text-decoration: none;
    display: block;
    pointer-events: auto;
    transition: color 0.3s ease;
    word-wrap: break-word;
}

.marker-tooltip a:hover {
    color: var(--gold);
}

/* Мобильная версия: скрываем тултипы по умолчанию */
@media (max-width: 768px) {

    .marker-tooltip {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
    }

    .park-marker.active .marker-tooltip {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .park-marker.active .marker-tooltip {
        transform: translateX(-50%) scale(1);
    }

    .park-marker[data-park="narochansky"].active .marker-tooltip,
    .park-marker[data-park="braslav"].active .marker-tooltip,
    .park-marker[data-park="krasnosel"].active .marker-tooltip {
        transform: translateY(-50%) scale(1);
    }

    .park-marker[data-park="pripyatsky"].active .marker-tooltip,
    .park-marker[data-park="berezinsky"].active .marker-tooltip,
    .park-marker[data-park="teter"].active .marker-tooltip {
        transform: translateY(-50%) scale(1);
    }

    /* смещение для мобил  */
    .park-marker[data-park="belovezhskaya"] {
        left: 17% !important;
    }


}


/* ============================================
   ГРИД КАРТОЧЕК ПАРКОВ
   ============================================ */
.parks-grid {
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

/* Для больших экранов: 4 в первом ряду, 3 во втором по центру */
@media (min-width: 1025px) {


    .first-row {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .second-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        max-width: 75%;
        margin: 0 auto;
    }


}

/* Для средних экранов (2 колонки) */
@media (max-width: 1024px) and (min-width: 769px) {
    .parks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Для мобильных (1 колонка) */
@media (max-width: 768px) {
    .parks-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width:1024px) {

    .park-description {
        width: 100% !important;
    }
}


.park-card {
    background: linear-gradient(to bottom,
            rgba(18, 34, 52, 1) 0%,
            rgba(18, 34, 52, 0.6) 30%,
            rgba(18, 34, 52, 0.6) 70%,
            rgba(10 25 41) 100%);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* cursor: pointer; */
    position: relative;
    transform-style: preserve-3d;
    margin-bottom: 8px;
}


/* .park-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(212, 175, 55, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.6s;
    z-index: 1;
}

.park-card:hover,
.park-card:active {
    border-color: var(--gold);
    box-shadow: 0 30px 80px rgba(212, 175, 55, 0.5), inset 0 0 50px rgba(212, 175, 55, 0.2);
} */

.park-card:hover::before,
.park-card:active::before {
    opacity: 1;
}

.park-image {
    width: 100%;
    height: clamp(150px, 20vw, 280px);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.park-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.park-image::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.5) 0%, transparent 70%);
    animation: imageShine 15s linear infinite;
    z-index: 2;
}

@keyframes imageShine {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.park-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(2.5rem, 10vw, 6rem);
    z-index: 3;
    text-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.15);
    }
}

.park-content {
    padding: var(--card-padding);
    position: relative;
    z-index: 2;
    background: linear-gradient(to bottom,
            rgba(18, 34, 52, 1) 0%,
            rgba(18, 34, 52, 0.6) 30%,
            rgba(18, 34, 52, 0.6) 70%,
            rgba(18, 34, 52, 1) 100%);
    border-radius: 16px 16px 0 0;
    height: 102%;
    top: -20px;
}

.park-card h3 {
    font-size: var(--fs-h3);
    margin-bottom: clamp(10px, 2vw, 18px);
    color: rgba(168, 207, 183, 1);
    font-weight: 600;
    line-height: 1.2;
}

.park-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: var(--fs-body);
    font-weight: 400;
    margin-bottom: 20px;
}

.park-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
    backdrop-filter: blur(4px);
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.stat-item {
    color: #e0e0e0;
    font-size: 0.95rem;
    font-weight: 500;
}

.stat-icon {
    font-size: clamp(1rem, 2.5vw, 1.8rem);
    filter: drop-shadow(0 0 10px currentColor);
    flex-shrink: 0;
}

.stat-text {
    font-size: var(--fs-small);
    color: var(--text-light);
    font-weight: 500;
}

.park-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: linear-gradient(135deg, var(--gold) 0%, rgba(212, 175, 55, 0.8) 100%);
    border: none;
    border-radius: 10px;
    color: rgba(255, 255, 255, 1);
    font-weight: 500;
    font-size: var(--fs-button);
    cursor: pointer;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
    text-align: center;
    min-height: 48px;
}

.park-button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.8s, height 0.8s;
}

.park-button:hover::before,
.park-button:active::before {
    width: 500px;
    height: 500px;
}

.park-button:hover,
.park-button:active {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.6);
}

/* ============================================
   СЕКЦИЯ ИНФОРМАЦИОННЫХ КАРТОЧЕК
   ============================================ */
.info-cards-section {
    padding: var(--section-padding) var(--container-padding);
    background:
        linear-gradient(180deg, rgba(10, 14, 39, 0.8) 0%, rgba(33, 54, 68, 0.5) 100%),
        url('/wp-content/uploads/2026/01/section-info.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding-bottom: 160px;
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: var(--gap-lg);
    margin-top: clamp(30px, 5vw, 60px);
}

.info-card {
    background: rgba(53, 84, 108, 0.2);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    padding: var(--card-padding);
    transition: all 0.5s;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.8s;
}

.info-card:hover::before,
.info-card:active::before {
    left: 100%;
}

.info-card:hover,
.info-card:active {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 60px rgba(118, 167, 153, 0.4);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: clamp(10px, 2vw, 18px);
    margin-bottom: clamp(15px, 3vw, 25px);
    position: relative;
    z-index: 1;
}

.info-card-icon {
    font-size: clamp(1.8rem, 4vw, 3rem);
    width: clamp(45px, 8vw, 70px);
    height: clamp(45px, 8vw, 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.info-card h3 {
    font-size: var(--fs-h3);
    font-weight: 600;
    color: var(--accent-light);
    position: relative;
    z-index: 1;
}

.info-card-content {
    position: relative;
    z-index: 1;
}

.info-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: clamp(15px, 3vw, 13px);
    font-size: var(--fs-body);
    font-weight: 400;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    padding: clamp(8px, 1.5vw, 12px) 0;
    padding-left: clamp(25px, 4vw, 35px);
    position: relative;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: var(--fs-body);
    font-weight: 400;
}

.info-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url('/wp-content/uploads/2026/01/klever.png');
    background-size: contain;
    background-repeat: no-repeat;
}

/* ============================================
   СЕКЦИЯ УСЛУГ
   ============================================ */
.services-section {
    padding: var(--section-padding) var(--container-padding);
    position: relative;
    background: url("/wp-content/uploads/2026/01/services.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

.services-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: var(--gap-lg);
    position: relative;
    z-index: 2;
}

.service-card {
    background: rgba(53, 84, 108, 0.4);
    backdrop-filter: blur(25px);
    border-radius: var(--radius-md);
    padding: var(--card-padding);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(118, 167, 153, 0.3) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.8s;
}

.service-card:hover::before,
.service-card:active::before {
    transform: scale(1) rotate(45deg);
}

.service-card:hover,
.service-card:active {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 25px 70px rgba(118, 167, 153, 0.4);
}

.service-header {
    display: flex;
    align-items: center;
    gap: clamp(12px, 3vw, 22px);
    margin-bottom: clamp(18px, 3vw, 28px);
    position: relative;
    z-index: 1;
}

.service-icon {
    font-size: clamp(2rem, 5vw, 4rem);
    width: clamp(50px, 8vw, 80px);
    height: clamp(50px, 8vw, 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@keyframes serviceIconFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(5deg);
    }
}

.service-card h3 {
    font-size: var(--fs-h3);
    font-weight: 600;
    color: var(--accent-light);
    position: relative;
    z-index: 1;
    text-shadow: 0 0 20px rgba(168, 207, 183, 0.5);
}

.service-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: clamp(18px, 3vw, 28px);
    font-size: var(--fs-body);
    position: relative;
    z-index: 1;
    font-weight: 400;
}

.service-features {
    list-style: none;
    position: relative;
    z-index: 1;
}

.service-features li {
    padding: clamp(10px, 1.5vw, 14px) 0;
    padding-left: clamp(28px, 4vw, 40px);
    position: relative;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.4s;
    font-size: var(--fs-body);
    font-weight: 400;
}

.service-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url('/wp-content/uploads/2025/09/vector.svg');
    background-size: contain;
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 10px var(--gold));
}

/* ============================================
   СЕКЦИЯ СТАТИСТИКИ
   ============================================ */

#pre-footer {
    font-size: var(--fs-section-title);
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(135deg, rgba(78, 78, 78, 1) 0%, rgba(72, 141, 98, 1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
    display: inline-block;
    width: 100%;
}

.stats-section {
    padding: var(--section-padding) var(--container-padding);
    background: url("https://images.unsplash.com/photo-1542273917363-3b1817f69a2d?w=1920&q=80");
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    position: relative;
}

.stats-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(180px, 45%), 1fr));
    gap: var(--gap-md);
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.stat-box {
    text-align: center;
    padding: var(--card-padding);
    background: rgba(53, 84, 108, 0.4);
    border-radius: var(--radius-md);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.stat-box::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: var(--radius-md);
    opacity: 0;
    transition: opacity 0.6s;
    z-index: -1;
}

.stat-box:hover::before,
.stat-box:active::before {
    opacity: 1;
}

.stat-box:hover,
.stat-box:active {
    transform: translateY(-15px) scale(1.05);
}

.stat-number {
    font-size: var(--fs-section-title);
    font-weight: 700;
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(168, 207, 183, 1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: clamp(8px, 1.5vw, 14px);
    line-height: 1.2;
}

.stat-label {
    font-size: var(--fs-subtitle);
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 1) 0%,
            rgba(168, 207, 183, 1) 50%,
            rgba(212, 175, 55, 1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 600;
    line-height: 1.3;
}

/* ============================================
   ФУТЕР
   ============================================ */
footer {
    background: linear-gradient(180deg, rgba(33, 54, 68, 0.95) 0%, rgba(10, 14, 39, 1) 100%);
    padding: clamp(40px, 6vw, 80px) var(--container-padding) clamp(20px, 3vw, 40px);
    text-align: center;
    position: relative;
}

.copyright::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    box-shadow: 0 0 20px var(--gold);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.social-links-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 25px 0 30px;
}

.social-icon {
    width: 32px;
    height: 32px;
    color: #fff;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.social-links-footer a:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.social-links-footer a:hover svg path {
    stroke: rgba(212, 175, 55, 1);
}

@media (max-width: 768px) {
    .social-links-footer a {
        width: 28px;
        height: 28px;
    }

    .social-links-footer {
        gap: 15px;
        margin: 20px 0 25px;
    }
}

#footer-text {
    background: linear-gradient(var(--white) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-size: var(--fs-footer-large);
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: clamp(25px, 4vw, 40px);
}

.footer-text {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 1) 0%,
            rgba(168, 207, 183, 1) 50%,
            rgba(212, 175, 55, 1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    line-height: 1.6;
    margin-bottom: clamp(25px, 4vw, 40px);
    font-size: var(--fs-body);
    font-weight: 600;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--fs-small);
    padding-top: clamp(20px, 4vw, 35px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   АНИМАЦИИ ПРОКРУТКИ (FADE-IN)
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   КАСТОМНЫЙ СКРОЛЛБАР
   ============================================ */
::-webkit-scrollbar {
    width: clamp(6px, 1vw, 12px);
}

::-webkit-scrollbar-track {
    background: var(--primary-dark);
    border-left: 1px solid rgba(212, 175, 55, 0.2);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent) 0%, var(--gold) 100%);
    border-radius: 10px;
    border: 2px solid var(--primary-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--gold) 0%, var(--accent) 100%);
    box-shadow: 0 0 10px var(--gold);
}

/* ============================================
   МЕДИА-ЗАПРОСЫ - БОЛЬШИЕ ЭКРАНЫ
   ============================================ */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

    .goals-grid,
    .info-cards-grid,
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

}

@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }
}

/* ============================================
   МЕДИА-ЗАПРОСЫ - ПЛАНШЕТЫ
   ============================================ */
@media (max-width: 1200px) {


    .goals-grid,
    .info-cards-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {

    .parks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;

    }

    .logo-frame2 {
        display: none;
    }

    .hero-content {
        margin-top: 0;
    }

    .park-marker {
        width: clamp(40px, 6vw, 55px);
        height: clamp(40px, 6vw, 55px);
    }

    .map-section,
    .services-section,
    .stats-section {
        background-attachment: scroll;
    }

    .aurora {
        opacity: 0.35;
    }
}

/* ============================================
   МЕДИА-ЗАПРОСЫ - МОБИЛЬНЫЕ УСТРОЙСТВА
   ============================================ */
@media (max-width: 768px) {
    :root {
        --container-padding: 15px;
        --section-padding: clamp(40px, 10vw, 60px);
        --card-padding: clamp(18px, 4vw, 28px);
    }

    html,
    body {
        overscroll-behavior: none;
        overscroll-behavior-y: none;
        -webkit-overflow-scrolling: auto;
    }

    .aurora {
        position: fixed;
        height: 100%;
        height: 100dvh;
        will-change: auto;
        contain: strict;
    }

    #particleCanvas {
        position: fixed;
        height: 100%;
        height: 100dvh;
        contain: strict;
    }

    .aurora-layer {
        animation: none;
        opacity: 0.2;
    }

    .hero {
        min-height: 100dvh;
        min-height: -webkit-fill-available;
    }

    .map-section,
    .services-section,
    .stats-section {
        background-attachment: scroll !important;
    }

    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 60px 15px;
    }

    .hero-description {
        display: none;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .cta-button {
        width: 100%;
        max-width: 320px;
    }

    .scroll-indicator {
        bottom: 15px;
    }

    .parks-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
        margin-bottom: 15px;
        grid-template-rows: none;
    }

    .park-card:nth-child(7) {
        grid-column: auto;
        grid-row: auto;
    }

    .park-image {
        height: clamp(160px, 35vw, 220px);
    }

    .park-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .goals-grid,
    .info-cards-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--gap-md);
    }

    .goal-card,
    .info-card,
    .service-card {
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .map-svg-container {
        min-height: 350px;
        aspect-ratio: 4 / 3;
    }

    .park-marker {
        width: 40px;
        height: 40px;
    }

    .marker-tooltip {
        font-size: 0.75rem;
        padding: 8px 12px;
        max-width: 150px;
        white-space: normal;
    }

    .aurora {
        opacity: 0.25;
    }

    .goal-card::before,
    .park-card::before,
    .service-card::before {
        animation: none;
    }

    .park-image::after {
        animation: none;
    }

    .marker-ping::before,
    .marker-ping::after {
        animation-duration: 4s;
    }
}

/* ============================================
   МЕДИА-ЗАПРОСЫ - МАЛЕНЬКИЕ МОБИЛЬНЫЕ
   ============================================ */
@media (max-width: 480px) {
    :root {
        --container-padding: 12px;
        --card-padding: clamp(15px, 4vw, 22px);
        --gap-sm: 8px;
        --gap-md: 12px;
        --gap-lg: 18px;
    }

    .hero {
        padding: 50px 12px;
    }

    .hero h1 {
        line-height: 1.15;
    }

    .cta-button {
        padding: 14px 24px;
        min-height: 52px;
    }

    .park-image {
        height: 150px;
    }


    .belarus-map {
        padding: 10px;
        border-radius: var(--radius-md);
    }

    .map-svg-container {
        min-height: 300px;
        aspect-ratio: 1 / 1;
    }

    .park-marker {
        width: 35px;
        height: 35px;
    }

    .marker-icon {
        font-size: 1.1rem;
        border-width: 2px;
    }

    .marker-tooltip {
        font-size: 0.7rem;
        padding: 6px 10px;
        max-width: 130px;
        bottom: calc(100% + 8px);
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-box {
        padding: clamp(20px, 4vw, 30px);
    }

    footer {
        padding: 35px 12px 18px;
    }

    ::-webkit-scrollbar {
        width: 6px;
    }
}

/* ============================================
   МЕДИА-ЗАПРОСЫ - ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ
   ============================================ */
@media (max-width: 360px) {
    :root {
        --container-padding: 10px;
        --card-padding: 14px;
    }

    .cta-button {
        padding: 12px 20px;
    }

    .park-image {
        height: 130px;
    }

    .map-svg-container {
        min-height: 280px;
    }

    .park-marker {
        width: 32px;
        height: 32px;
    }

    .marker-icon {
        font-size: 1rem;
    }
}

/* ============================================
   ЛАНДШАФТНЫЙ РЕЖИМ НА МОБИЛЬНЫХ
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 40px 20px;
    }

    .hero-content {
        margin-top: 0;
    }

    .hero h1 {
        margin-bottom: 10px;
    }

    .hero-subtitle,
    .hero-description {
        margin-bottom: 15px;
    }

    .scroll-indicator {
        display: none;
    }

    .cta-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .cta-button {
        width: auto;
        min-width: 180px;
    }

    .first-row,
    .goals-grid,
    .services-grid,
    .info-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-height: 400px) and (orientation: landscape) {
    .hero {
        padding: 30px 15px;
    }

    .hero-description {
        display: none;
    }

    .first-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Для iOS Safari */
@supports (-webkit-touch-callout: none) {

    html,
    body {
        height: -webkit-fill-available;
    }

    .hero {
        min-height: -webkit-fill-available;
    }
}

/* ============================================
   СЕНСОРНЫЕ УСТРОЙСТВА
   ============================================ */
@media (hover: none) and (pointer: coarse) {

    html,
    body {
        overscroll-behavior: none;
        overscroll-behavior-y: none;
        overscroll-behavior-x: none;
    }

    .aurora-layer {
        animation: none !important;
    }

    .hero-bg {
        animation: none !important;
        transform: scale(1.05);
    }

    .aurora,
    #particleCanvas {
        contain: layout style paint;
    }

    footer {
        position: relative;
        z-index: 10;
    }

    .cta-button,
    .park-button,
    .lang-button-current,
    .lang-option {
        min-height: 48px;
    }

    .park-marker {
        min-width: 44px;
        min-height: 44px;
    }

    .goal-card:hover,
    .park-card:hover,
    .info-card:hover,
    .service-card:hover,
    .stat-box:hover {
        transform: none;
        box-shadow: none;
        border-color: rgba(255, 255, 255, 0.1);
    }

    .goal-card:active,
    .park-card:active,
    .info-card:active,
    .service-card:active,
    .stat-box:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

    .park-card:active {
        border-color: var(--gold);
        box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    }

    .park-marker.touch-active .marker-tooltip {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(-5px);
    }

    .cta-button:hover::before,
    .park-button:hover::before {
        width: 0;
        height: 0;
    }

    .cta-button:active::before,
    .park-button:active::before {
        width: 300px;
        height: 300px;
    }
}

/* ============================================
   УМЕНЬШЕНИЕ ДВИЖЕНИЯ (ACCESSIBILITY)
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-bg {
        animation: none;
    }

    .aurora-layer {
        animation: none;
    }

    .goal-icon,
    .service-icon {
        animation: none;
    }

    .marker-ping::before,
    .marker-ping::after {
        animation: none;
    }

    .scroll-indicator,
    .scroll-indicator::before {
        animation: none;
    }
}

/* ============================================
   ВЫСОКИЙ КОНТРАСТ (ACCESSIBILITY)
   ============================================ */
@media (prefers-contrast: high) {
    :root {
        --gold: rgba(255, 200, 0, 1);
        --accent-light: rgba(200, 255, 220, 1);
    }

    .goal-card,
    .park-card,
    .info-card,
    .service-card,
    .stat-box {
        border-width: 3px;
        border-color: var(--gold);
    }

    .section-title::after {
        height: 6px;
    }
}

/* ============================================
   ФОКУС СТИЛИ (ACCESSIBILITY)
   ============================================ */
:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.cta-button:focus-visible,
.park-button:focus-visible,
.lang-button-current:focus-visible,
.lang-option:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.3);
}

.park-marker:focus-visible .marker-icon {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

/* ============================================
   PRINT СТИЛИ
   ============================================ */
@media print {

    .aurora,
    #particleCanvas,
    .scroll-indicator,
    .language-switcher,
    .marker-ping {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .hero {
        min-height: auto;
        padding: 40px 20px;
    }

    .hero-bg,
    .hero-overlay {
        display: none;
    }

    .hero h1 {
        -webkit-text-fill-color: black;
        background: none;
    }

    .section-title {
        -webkit-text-fill-color: black;
        background: none;
    }

    .goal-card,
    .park-card,
    .info-card,
    .service-card,
    .stat-box {
        background: #f5f5f5;
        border: 1px solid #ccc;
        break-inside: avoid;
    }

    .park-card h3,
    .goal-card h3,
    .info-card h3,
    .service-card h3 {
        color: #333;
    }

    .park-description,
    .goal-card p,
    .info-card p,
    .service-description {
        color: #666;
    }
}

@media (max-width:1024px) {
    .lang-flag {
        display: none;
    }
}