* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: #0E2A55;
    position: relative;
    overflow-x: hidden;
}

/* Контейнер для анимированного фона */
#pixie {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #164979;
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#040429', endColorstr='#257EB7',GradientType=0 );
    background: -ms-linear-gradient(top,  #0E2A55 40%,#0E2A55 40%,#1D6196 60%);
    background: -webkit-gradient(linear, center top, center bottom, from(#040429), to(#257EB7));
    background: -webkit-linear-gradient(center top , #040429, #257EB7) repeat scroll 0 0 rgba(0, 0, 0, 0);
    background: -moz-linear-gradient(center top , #040429, #257EB7) repeat scroll 0 0 rgba(0, 0, 0, 0);
    background: -o-linear-gradient(center top , #040429, #257EB7) repeat scroll 0 0 rgba(0, 0, 0, 0);
    background: linear-gradient(center top , #040429, #257EB7) repeat scroll 0 0 rgba(0, 0, 0, 0);
    background-size: 100% 100%;
    z-index: -1;
    pointer-events: none;
}

header {
    background: linear-gradient(135deg, #0f52ba , #003366);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #f0f0f0;
}

.hero {
    background: linear-gradient(135deg, #0f52ba , #003366);
    color: white;
    padding: 150px 0 100px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ff6b6b;
    color: white;
    padding: 0 30px;
    width: 350px;
    height: 100px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: transform 0.3s, background 0.3s;
    text-align: center;
    line-height: 1.2;
    font-size: 1.5rem;
    box-sizing: border-box;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    background: #523535;
}

.features {
    padding: 80px 0;
    background: transparent;
}

.container-features {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.section-title h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.section-title p {
    color: rgba(255,255,255,0.9);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s;
    border: 1px solid rgba(255,255,255,0.3);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.slider-container {
    max-width: 1200px;
    width: 90%;
    margin: 100px auto 50px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.slider {
    display: flex;
    transition: transform 0.8s ease-in-out;
    height: 500px;
}

.slide {
    min-width: 100%;
    display: flex;
    background: white;
}

.slide-image {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.slide:hover .slide-image img {
    transform: scale(1.05);
}

.slide-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

.slide-subtitle {
    color: #667eea;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.slide-title {
    font-size: 2.5em;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
}

.slide-text {
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.slide-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: fit-content;
}

.slide-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: white;
    transform: scale(1.2);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 20px;
    color: #333;
    transition: all 0.3s ease;
    z-index: 10;
    border: none;
}

.slider-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

.auto-play-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.9);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.auto-play-indicator .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4CAF50;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.stooped-info {
    background: linear-gradient(135deg, #0f52ba , #003366);
    padding: 30px 20px;
    text-align: center;
}

.stooped-info-h2 {
    color: rgb(138, 222, 255);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.stooped-info-h3 {
    color: white;
    font-size: 1.2rem;
}

.about {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.about-text p {
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.about-image {
    background: transparent;
    height: 400px;
    border-radius: 10px;
}

.video-css {
    display: block; 
    margin-left: auto; 
    margin-right: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 100%;
    height: auto;
}

h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.map-old {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.map-section {
    padding: 30px;
    position: relative;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

/*Стили для отправки сообщений!*/
.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Стили для карты */
.map-container {
    position: relative;
    width: 100%;
    height: 1000px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    overflow: hidden;
}

#russiaMap {
    width: 100%;
    height: 100%;
    background-image: url('/static/images/map.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#mapZoomContainer {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    cursor: grab;
}

#mapZoomContainer:active {
    cursor: grabbing;
}

#mapPanContainer {
    transform-origin: 0 0;
    transition: transform 0.1s ease;
    width: 100%;
    height: 100%;
}

.zoom-controls {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

.zoom-btn {
    width: 40px;
    height: 40px;
    background: rgba(26, 35, 126, 0.9);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.zoom-btn:hover {
    background: rgba(48, 63, 159, 1);
    transform: scale(1.1);
}

.reset-btn {
    padding: 0 15px;
    height: 40px;
    background: rgba(26, 35, 126, 0.9);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background: rgba(48, 63, 159, 1);
    transform: scale(1.05);
}

.region-point {
    fill: #ff4444;
    stroke: #fff;
    stroke-width: 2;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.region-point:hover {
    fill: #ff0000;
    stroke-width: 3;
    r: 12;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}

.region-point.highlighted {
    fill: #ff0000;
    stroke: #ffff00;
    stroke-width: 3;
    r: 14;
    animation: pulsePoint 1.5s infinite;
}

@keyframes pulsePoint {
    0% { filter: drop-shadow(0 0 5px rgba(255,0,0,0.7)); }
    50% { filter: drop-shadow(0 0 20px rgba(255,0,0,0.9)); }
    100% { filter: drop-shadow(0 0 5px rgba(255,0,0,0.7)); }
}

.region-label {
    font-size: 11px;
    font-weight: bold;
    fill: #1a237e;
    text-anchor: middle;
    pointer-events: none;
    text-shadow: 1px 1px 2px white;
}

.info-panel {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    min-width: 300px;
    max-width: 350px;
    display: none;
    border-left: 5px solid #ff4444;
    z-index: 1000;
}

.info-panel h3 {
    color: #1a237e;
    margin-bottom: 15px;
    font-size: 1.4em;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 8px;
}

.info-item {
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    font-weight: bold;
    color: #555;
}

.info-value {
    color: #1a237e;
    font-weight: 600;
}

.district-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #ff4444;
    color: white;
    border-radius: 20px;
    font-size: 0.8em;
    margin-top: 5px;
}

.region-description {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    font-size: 0.9em;
    color: #666;
    border-left: 3px solid #ff4444;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 10px 20px;
    background: rgba(26, 35, 126, 0.8);
    backdrop-filter: blur(5px);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
}

.filter-btn:hover {
    background: rgba(48, 63, 159, 0.9);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #ff4444;
    transform: translateY(-2px);
}

.loading {
    text-align: center;
    padding: 50px;
    font-size: 1.2em;
    color: #666;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.3);
}

.stat-item {
    text-align: center;
    padding: 15px;
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #ff4444;
}

.stat-label {
    color: #333;
    margin-top: 5px;
}

/* Единый стиль для карточек регионов */
.region-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 20px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border-radius: 10px;
}

.region-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #ff4444;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.region-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,68,68,0.2);
}

.region-marker {
    width: 12px;
    height: 12px;
    background: #ff4444;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #ff4444;
}

.region-info {
    flex: 1;
}

.region-name {
    font-weight: bold;
    color: #1a237e;
}

.region-details {
    font-size: 0.9em;
    color: #666;
    margin-top: 2px;
}

.card-link {
    display: inline-block;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid #4e47a5;
    color: #4e47a5;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 1rem;
    letter-spacing: 0.3px;
    transition: 0.18s;
    text-align: center;
    margin-top: 10px;
    align-self: flex-start;
    backdrop-filter: blur(5px);
}

.card-link:hover {
    background: #4e47a5;
    color: white;
    border-color: #4e47a5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Секция контактов */
.contacts-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    margin-top: 40px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

/* Контактная информация */
.contact-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-info h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.1);
}

.contact-icon {
    font-size: 2rem;
    min-width: 50px;
    text-align: center;
}

.contact-details h4 {
    color: #ff6b6b;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-details a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.contact-details a:hover {
    color: #ff6b6b;
}

.contact-details p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 3px;
}

/* Форма обратной связи */
.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-form h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b6b;
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

.form-success {
    background: #4CAF50;
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Социальные сети */
.social-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #0f52ba, #003366);
    text-align: center;
}

.social-section h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 40px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
    min-width: 100px;
}

.social-link:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.social-icon {
    font-size: 2.5rem;
}

/* Обновленный футер */
.footer {
    background: #0a1a2f;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: #ff6b6b;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ff6b6b;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin: 5px 0;
}

/* Карта фолбэк */
.map-fallback {
    display: none;
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    margin: 20px 0;
    border: 1px solid rgba(255,255,255,0.3);
}

.map-fallback h3 {
    color: #1a237e;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.map-fallback p {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.map-fallback .region-cards {
    max-width: 1200px;
    margin: 20px auto;
}

/* ===== СЧЕТЧИК ПРОСМОТРОВ ===== */
.view-counter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 15px 30px;
    margin: 20px auto 40px;
    max-width: 800px;
    background: linear-gradient(135deg, rgba(15, 82, 186, 0.2), rgba(0, 51, 102, 0.3));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.view-counter::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}

.view-counter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

.view-counter-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.view-counter-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
    animation: floatIcon 3s ease-in-out infinite;
}

.view-counter-icon:nth-child(2) {
    animation-delay: 0.5s;
}

.view-counter-icon:nth-child(3) {
    animation-delay: 1s;
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.view-counter-info {
    display: flex;
    flex-direction: column;
}

.view-counter-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.view-counter-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
    animation: countPulse 2s infinite;
}

.view-counter-number span {
    font-size: 0.9rem;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 3px;
}

/* Размещение счетчика в разных секциях */
.hero .view-counter {
    margin-top: 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer .view-counter {
    margin: 0 auto 30px;
    background: rgba(10, 26, 47, 0.8);
    border: 1px solid rgba(255, 107, 107, 0.2);
}

/* Мини-счетчик для футера */
.footer-view-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-stat {
    text-align: center;
}

.footer-stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #ff6b6b;
    line-height: 1;
}

.footer-stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
}

/* Счетчик в боковой панели (если нужно) */
.sidebar-counter {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-counter h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.sidebar-counter h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: #ff6b6b;
}

.sidebar-counter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-counter-item:last-child {
    border-bottom: none;
}

.sidebar-counter-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.sidebar-counter-value {
    color: #ff6b6b;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Анимация появления счетчика */
.view-counter {
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes countPulse {
    0% {
        text-shadow: 0 0 5px rgba(255, 107, 107, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 107, 107, 0.8);
    }
    100% {
        text-shadow: 0 0 5px rgba(255, 107, 107, 0.5);
    }
}

/* Стили для страницы статистики в админке (если нужно вывести на сайте) */
.stats-showcase {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin: 40px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.stat-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 107, 107, 0.3);
}

.stat-card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.stat-card-number {
    font-size: 2.8rem;
    font-weight: bold;
    color: #ff6b6b;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-card-label {
    color: white;
    font-size: 1.1rem;
    opacity: 0.9;
}

.stat-card-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Ховер эффекты для счетчика */
.view-counter-item:hover .view-counter-number {
    color: #ff6b6b;
    transition: color 0.3s ease;
}

.view-counter-item:hover .view-counter-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Адаптивные стили */
@media (max-width: 1200px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .nav-links {
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        height: 300px;
    }
    
    .slide-title {
        font-size: 2em;
    }
}

@media (max-width: 900px) {
    .map-section .map-container,
    .map-section .controls,
    .map-section .stats {
        display: block; /* ИСПРАВЛЕНО: было none, стало block */
    }
    
    .map-fallback {
        display: none; /* ИСПРАВЛЕНО: скрываем fallback */
    }
    
    #regionList {
        display: grid; /* ИСПРАВЛЕНО: показываем список регионов */
    }
}

@media (min-width: 901px) {
    .map-fallback {
        display: none;
    }
    
    #regionList {
        display: grid;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .cta-button {
        width: 240px;
        height: 70px;
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .region-cards {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        height: 400px;
    }
    
    .info-panel {
        padding: 15px;
    }
    
    .info-panel h3 {
        font-size: 1.2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }

    .view-counter {
        border-radius: 20px;
        padding: 15px;
    }
    
    .view-counter-icon {
        font-size: 1.5rem;
    }
    
    .view-counter-number {
        font-size: 1.2rem;
    }
    
    .view-counter-label {
        font-size: 0.7rem;
    }
}

/* ===== БУРГЕР-МЕНЮ ===== */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
    position: absolute;
    left: 0;
}

.burger-menu span:nth-child(1) {
    top: 0;
}

.burger-menu span:nth-child(2) {
    top: 8px;
}

.burger-menu span:nth-child(3) {
    top: 16px;
}

/* Анимация превращения в крестик */
.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 8px;
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 8px;
}

/* Затемнение фона */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* Обновляем header для правильного позиционирования */
header {
    background: linear-gradient(135deg, #0f52ba, #003366);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    position: relative;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    z-index: 1001;
}

/* Стили для навигационного меню (десктоп) */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6b6b;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: #ff6b6b;
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ (БУРГЕР-МЕНЮ) ===== */
@media (max-width: 768px) {
    /* Показываем бургер */
    .burger-menu {
        display: flex;
    }
    
    /* Скрываем обычное меню, делаем его выезжающим */
    .nav-links {
        display: flex !important;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, #0f52ba, #003366);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 80px 20px 30px;
        margin: 0;
        gap: 1rem;
        z-index: 999;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
        transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
        overflow-y: auto;
        list-style: none;
    }
    
    /* Открытое меню */
    .nav-links.active {
        right: 0;
    }
    
    /* Стили для пунктов меню */
    .nav-links li {
        width: 100%;
        opacity: 0;
        transform: translateX(30px);
        transition: all 0.3s ease;
        transition-delay: calc(0.1s * var(--i, 0));
    }
    
    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }
    
    /* Задержки для анимации пунктов */
    .nav-links li:nth-child(1) { --i: 1; }
    .nav-links li:nth-child(2) { --i: 2; }
    .nav-links li:nth-child(3) { --i: 3; }
    .nav-links li:nth-child(4) { --i: 4; }
    .nav-links li:nth-child(5) { --i: 5; }
    .nav-links li:nth-child(6) { --i: 6; }
    
    /* Стили для ссылок в меню */
    .nav-links a {
        display: block;
        padding: 15px 20px;
        font-size: 1.1rem;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
        text-align: left;
        color: white;
        text-decoration: none;
    }
    
    .nav-links a:hover {
        background: #ff6b6b;
        color: white;
        transform: translateX(5px);
        box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
    }
    
    .nav-links a::after {
        display: none;
    }
    
    /* Заголовок "Меню" в верхней части */
    .nav-links::before {
        content: 'Меню';
        position: absolute;
        top: 30px;
        left: 20px;
        font-size: 1.5rem;
        font-weight: bold;
        color: rgba(255, 255, 255, 0.3);
        letter-spacing: 2px;
        text-transform: uppercase;
        pointer-events: none;
    }
    
    /* Убираем старые стили для навигации */
    .nav-container {
        flex-direction: row; /* Оставляем в ряд, а не в колонку */
        gap: 0;
    }
    
    /* Корректировка отступов для hero */
    .hero {
        padding: 200px 0 80px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .burger-menu {
        width: 28px;
        height: 18px;
    }
    
    .burger-menu span:nth-child(2) {
        top: 7px;
    }
    
    .burger-menu span:nth-child(3) {
        top: 14px;
    }
    
    .burger-menu.active span:nth-child(1),
    .burger-menu.active span:nth-child(3) {
        top: 7px;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .nav-links {
        width: 100%; /* На очень маленьких экранах меню на всю ширину */
    }
}

/* ===== ДОПОЛНИТЕЛЬНАЯ АДАПТИВНОСТЬ ===== */

/* Большие планшеты и маленькие ноутбуки */
@media (max-width: 1100px) {
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-content {
        padding: 30px;
    }
}

@media (max-width: 992px) {
    .hero {
        padding: 130px 0 70px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image video {
        width: 100%;
        height: auto;
        max-width: 611px;
    }
    
    .contacts-grid {
        gap: 30px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Планшеты */
@media (max-width: 850px) {
    .slide {
        flex-direction: column;
    }
    
    .slide-image {
        height: 300px;
        width: 100%;
    }
    
    .slide-content {
        width: 100%;
        padding: 30px;
    }
    
    .slider-container {
        height: auto;
    }
    
    .slider {
        height: auto;
    }
}

/* Бургер-меню для планшетов и мобильных */
@media (max-width: 800px) {
    /* Показываем бургер */
    .burger-menu {
        display: flex;
    }
    
    /* Скрываем обычное меню */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: linear-gradient(135deg, #0f52ba, #003366);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 80px 20px 30px;
        margin: 0;
        gap: 10px;
        z-index: 999;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
        transition: right 0.4s ease;
        overflow-y: auto;
        display: flex !important;
    }
    
    /* Открытое меню */
    .nav-links.active {
        right: 0;
    }
    
    /* Стили для пунктов в мобильном меню */
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 15px 20px;
        font-size: 1.1rem;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.1);
        text-align: left;
    }
    
    .nav-links a:hover {
        background: #ff6b6b;
        transform: translateX(5px);
    }
    
    .nav-links a::after {
        display: none;
    }
    
    /* Затемнение фона */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(3px);
        z-index: 998;
    }
    
    .nav-overlay.active {
        display: block;
    }
    
    /* Фикс для hero */
    .hero {
        padding: 120px 0 60px;
    }
    
    /* Счетчик просмотров на мобильных */
    .view-counter {
        flex-wrap: wrap;
        gap: 15px;
        padding: 15px;
        border-radius: 20px;
    }
    
    .view-counter-item {
        flex: 1 1 auto;
        min-width: 140px;
    }
    
    .view-counter-item:not(:last-child)::after {
        display: none;
    }
}

/* Маленькие планшеты */
@media (max-width: 700px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .cta-button {
        width: 300px;
        height: 85px;
        font-size: 1.3rem;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .social-links {
        gap: 15px;
    }
    
    .social-link {
        min-width: 80px;
        padding: 15px 10px;
    }
}

/* Мобильные телефоны */
@media (max-width: 576px) {
    /* Общие настройки */
    .container,
    .nav-container,
    .hero-content,
    .container-features {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Хедер */
    header {
        padding: 0.7rem 0;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .burger-menu {
        width: 28px;
        height: 20px;
    }
    
    .burger-menu span {
        height: 2.5px;
    }
    
    /* Hero секция */
    .hero {
        padding: 100px 0 50px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-button {
        width: 260px;
        height: 70px;
        font-size: 1.1rem;
        padding: 0 15px;
        border-radius: 20px;
    }
    
    /* Счетчик просмотров */
    .view-counter {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        margin: 20px auto 0;
    }
    
    .view-counter-item {
        width: 100%;
        justify-content: center;
        padding: 5px 0;
    }
    
    .view-counter-icon {
        font-size: 1.5rem;
    }
    
    .view-counter-number {
        font-size: 1.2rem;
    }
    
    .view-counter-label {
        font-size: 0.7rem;
    }
    
    /* Слайдер */
    .slider-container {
        width: 95%;
        margin: 50px auto 30px;
        border-radius: 15px;
    }
    
    .slide-image {
        height: 200px;
    }
    
    .slide-content {
        padding: 20px;
    }
    
    .slide-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .slide-text {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .slide-button {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .slider-arrow.prev {
        left: 10px;
    }
    
    .slider-arrow.next {
        right: 10px;
    }
    
    .slider-dot {
        width: 10px;
        height: 10px;
    }
    
    /* Информационный блок */
    .stooped-info {
        padding: 25px 15px;
    }
    
    .stooped-info-h2 {
        font-size: 1.3rem;
    }
    
    .stooped-info-h3 {
        font-size: 1rem;
    }
    
    /* Секция карты */
    .map-section {
        padding: 20px 0;
    }
    
    .controls {
        gap: 8px;
        margin: 15px 0 20px;
        padding: 0 10px;
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding-bottom: 5px;
    }
    
    .controls::-webkit-scrollbar {
        height: 3px;
    }
    
    .controls::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 3px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
        white-space: nowrap;
        flex: 0 0 auto;
    }
    
    .map-container {
        height: 450px;
        border-radius: 8px;
    }
    
    .zoom-controls {
        top: 10px;
        left: 10px;
        gap: 5px;
    }
    
    .zoom-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .reset-btn {
        height: 35px;
        padding: 0 12px;
        font-size: 12px;
    }
    
    .info-panel {
        left: 10px;
        right: 10px;
        bottom: 10px;
        min-width: auto;
        max-width: none;
        padding: 15px;
    }
    
    .info-panel h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .info-item {
        margin: 8px 0;
    }
    
    /* Статистика */
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
        margin-top: 20px;
    }
    
    .stat-item {
        padding: 10px;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    /* Карточки регионов */
    .region-cards {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
    }
    
    .region-card {
        padding: 12px;
    }
    
    .region-name {
        font-size: 1rem;
    }
    
    .region-details {
        font-size: 0.85rem;
    }
    
    /* Секция About */
    .about {
        padding: 50px 0;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .about-image video {
        height: auto;
        max-height: 250px;
        object-fit: cover;
    }
    
    /* Features секция */
    .features {
        padding: 50px 0;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .section-title p {
        font-size: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.3rem;
    }
    
    .feature-card p {
        font-size: 0.95rem;
    }
    
    .card-link {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    /* Контакты */
    .contacts-section {
        padding: 50px 0;
    }
    
    .contact-info,
    .contact-form {
        padding: 25px 20px;
    }
    
    .contact-info h3,
    .contact-form h3 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .contact-item {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .contact-icon {
        font-size: 1.6rem;
        min-width: 40px;
    }
    
    .contact-details h4 {
        font-size: 1rem;
    }
    
    .contact-details a,
    .contact-details p {
        font-size: 0.95rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 0.95rem;
    }
    
    .submit-btn {
        padding: 14px;
        font-size: 1rem;
    }
    
    /* Социальные сети */
    .social-section {
        padding: 40px 0;
    }
    
    .social-section h3 {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .social-link {
        padding: 12px 8px;
        min-width: 70px;
    }
    
    .social-icon {
        font-size: 2rem;
    }
    
    .social-link span:last-child {
        font-size: 0.8rem;
    }
    
    /* Футер */
    .footer {
        padding: 40px 0 15px;
    }
    
    .footer-content {
        gap: 30px;
        margin-bottom: 30px;
    }
    
    .footer-section h4 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .footer-section p,
    .footer-links a,
    .footer-contact li {
        font-size: 0.95rem;
    }
    
    .footer-contact li {
        gap: 8px;
    }
    
    .footer-bottom {
        padding-top: 15px;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
        margin: 3px 0;
    }
}

/* Очень маленькие телефоны (до 400px) */
@media (max-width: 400px) {
    .logo {
        font-size: 1.2rem;
    }
    
    .burger-menu {
        width: 25px;
        height: 18px;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .cta-button {
        width: 220px;
        height: 60px;
        font-size: 1rem;
    }
    
    .slide-image {
        height: 170px;
    }
    
    .slide-title {
        font-size: 1.3rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .social-link {
        min-width: 60px;
        padding: 10px 5px;
    }
    
    .social-icon {
        font-size: 1.6rem;
    }
    
    .social-link span:last-child {
        font-size: 0.7rem;
    }
}

/* Альбомная ориентация на мобильных */
@media (max-width: 900px) and (orientation: landscape) {
    .hero {
        padding: 100px 0 40px;
        min-height: auto;
    }
    
    .nav-links {
        padding-top: 60px;
    }
    
    .nav-links a {
        padding: 10px 15px;
    }
    
    .slide {
        flex-direction: row;
    }
    
    .slide-image {
        height: 250px;
        width: 50%;
    }
    
    .slide-content {
        width: 50%;
        padding: 20px;
    }
    
    .slider {
        height: 300px;
    }
    
    .map-container {
        height: 400px;
    }
    
    .contact-item {
        padding: 10px;
    }
}

/* Планшеты в альбомной ориентации */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contacts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Исправление для карты на мобильных */
@media (max-width: 900px) {
    .map-section .map-container,
    .map-section .controls,
    .map-section .stats {
        display: block; /* Отменяем скрытие, которое было в старом коде */
    }
    
    .map-fallback {
        display: none; /* Отменяем показ fallback */
    }
    
    /* Делаем карту меньше, но доступной */
    .map-container {
        height: 500px;
    }
    
    .controls {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Добавляем поддержку touch-устройств */
@media (hover: none) and (pointer: coarse) {
    .feature-card:hover {
        transform: none;
    }
    
    .cta-button:hover {
        transform: none;
    }
    
    .filter-btn:hover {
        transform: none;
    }
    
    .card-link:hover {
        transform: none;
    }
    
    .social-link:hover {
        transform: none;
    }
    
    /* Увеличиваем область касания для кнопок */
    .nav-links a {
        padding: 12px 0;
    }
    
    .filter-btn {
        padding: 12px 20px;
    }
    
    .slider-arrow {
        width: 45px;
        height: 45px;
    }
}

/* ===== НОВЫЙ КОНТЕЙНЕР ДЛЯ МАСТЕР-КЛАССОВ С ФОТО ===== */

.masterclass-container {
    display: flex;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.3);
    border: 2px solid rgba(15, 82, 186, 0.3);
    position: relative;
    transition: all 0.4s ease;
    margin-top: 30px;
}

.masterclass-container:hover {
    box-shadow: 0 30px 60px rgba(15, 82, 186, 0.4);
    border-color: rgba(15, 82, 186, 0.6);
    transform: translateY(-5px);
}

/* Левая часть с фото */
.masterclass-image {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.masterclass-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    display: block;
    filter: brightness(0.95);
}

.masterclass-container:hover .masterclass-photo {
    transform: scale(1.05);
}

/* ОВЕРЛЕЙ ТЕПЕРЬ ВСЕГДА ВИДЕН, НО ПРОЗРАЧНЫЙ - НЕ МЕНЯЕТ ЦВЕТ ФОТО */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent; /* Убираем цветной оверлей */
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 1; /* Всегда видим */
    pointer-events: none; /* Чтобы не мешал кликам */
}

.overlay-text {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, rgba(15, 82, 186, 0.7), rgba(0, 51, 102, 0.8));
    backdrop-filter: blur(3px);
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.masterclass-container:hover .overlay-text {
    transform: translateY(0);
}

/* Правая часть с контентом */
.masterclass-content {
    flex: 1;
    padding: 50px 40px;
    position: relative;
    background: white;
}

/* Иконка в контенте - синий градиент */
.masterclass-content .feature-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
    background: linear-gradient(135deg, #0f52ba, #2575b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    filter: drop-shadow(0 5px 15px rgba(15, 82, 186, 0.3));
}

/* Заголовок - синий градиент */
.masterclass-content h3 {
    font-size: 2.2rem;
    background: linear-gradient(135deg, #0f52ba, #003366);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: 700;
}

/* Текст */
.masterclass-content p {
    color: #444;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* Список преимуществ - синие акценты */
.masterclass-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 30px 0 25px;
}

.masterclass-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 82, 186, 0.1);
    padding: 10px 12px;
    border-radius: 50px;
    font-size: 0.95rem;
    color: #333;
    transition: all 0.3s ease;
}

.masterclass-feature:hover {
    background: rgba(15, 82, 186, 0.2);
    transform: translateY(-2px);
}

.feature-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #0f52ba, #2575b0);
    color: white;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Кнопка - синий градиент */
.masterclass-link {
    display: inline-block;
    background: linear-gradient(135deg, #0f52ba, #2575b0);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    border: none;
    box-shadow: 0 4px 15px rgba(15, 82, 186, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.masterclass-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.masterclass-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(15, 82, 186, 0.5);
    background: linear-gradient(135deg, #003366, #0f52ba);
}

.masterclass-link:hover::before {
    left: 100%;
}

.masterclass-link::after {
    content: ' →';
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.masterclass-link:hover::after {
    transform: translateX(5px);
}

/* Декоративные элементы - синий фон */
.masterclass-content::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(15, 82, 186, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.masterclass-content::after {
    content: '🎨 ✨ 🖌️';
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 3rem;
    opacity: 0.1;
    transform: rotate(-10deg);
    pointer-events: none;
    z-index: 0;
    filter: drop-shadow(0 0 5px rgba(15, 82, 186, 0.3));
}

/* Анимация появления */
.masterclass-container {
    animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 992px) {
    .masterclass-container {
        flex-direction: column;
    }
    
    .masterclass-image {
        min-height: 300px;
    }
    
    .masterclass-content {
        padding: 40px 30px;
    }
    
    .masterclass-content h3 {
        font-size: 1.8rem;
    }
    
    .masterclass-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .masterclass-content {
        padding: 30px 25px;
    }
    
    .masterclass-content h3 {
        font-size: 1.6rem;
    }
    
    .masterclass-content p {
        font-size: 1rem;
    }
    
    .masterclass-features {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .masterclass-feature {
        justify-content: center;
    }
    
    .masterclass-link {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }
    
    .masterclass-content::after {
        font-size: 2.5rem;
        bottom: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .masterclass-image {
        min-height: 250px;
    }
    
    .masterclass-content {
        padding: 25px 20px;
    }
    
    .masterclass-content .feature-icon {
        font-size: 3rem;
    }
    
    .masterclass-content h3 {
        font-size: 1.4rem;
    }
    
    .overlay-text {
        font-size: 1.2rem;
        padding: 6px 15px;
    }
}

/* Добавляем стили для пульсации - синяя тень */
@keyframes gentlePulse {
    0% {
        box-shadow: 0 20px 40px rgba(15, 82, 186, 0.2);
    }
    50% {
        box-shadow: 0 30px 60px rgba(15, 82, 186, 0.4);
    }
    100% {
        box-shadow: 0 20px 40px rgba(15, 82, 186, 0.2);
    }
}

.masterclass-container {
    animation: slideInUp 0.8s ease-out, gentlePulse 3s infinite;
}

/* Дополнительные CSS стили (добавить в конец файла style.css) */

/* Стили для ссылок-карточек */
.feature-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.feature-card-link:hover {
    transform: translateY(-5px);
}

/* Обновленные стили для feature-card (можно заменить существующие или дополнить) */
.feature-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.feature-card h3 {
    color: #0f52ba;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Маленькая ссылка внутри карточки */
.card-link-small {
    display: inline-block;
    color: #0f52ba;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.3s ease;
    margin-top: auto;
}

.feature-card:hover .card-link-small {
    transform: translateX(5px);
    color: #ff6b6b;
}

/* Адаптивность для карточек */
@media (max-width: 768px) {
    .feature-card h3 {
        font-size: 1.3rem;
    }
    
    .feature-card p {
        font-size: 0.95rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
    }
}