:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --gray: #95a5a6;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: 
	linear-gradient(174deg, rgb(20, 11, 27), rgba(10, 10, 10, 0.918)),
	linear-gradient(0deg, rgba(0,0,0,1), rgba(0, 0, 0, 0));
    color: var(--light);
    min-height: 100vh;
    padding: 20px;
    background-attachment: fixed;
    line-height: 1.6;
}
.noise{
    filter: contrast(300%) brightness(100%);
    background: 
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -3;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    text-align: center;
    padding: 40px 0 30px;
    margin-bottom: 30px;
}

h1 {
    font-size: 3.2rem;
    margin-bottom: 15px;
    background: linear-gradient(to right, rgb(255, 255, 255), #77777a);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    font-weight: 700;
    text-shadow: -14px 0 2px rgba(255, 255, 255, 0.027), -8px 0 2px rgba(255, 255, 255, 0.137), 14px 0 2px rgba(255, 255, 255, 0.027), 8px 0 2px rgba(255, 255, 255, 0.137); /* Размытие влево */
}



.subtitle {
    font-size: 1.2rem;
    opacity: 0.85;
    max-width: 700px;
    margin: 0 auto;
    color: #bdc3c7;
}

.maps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.map-card {
    background: rgba(32, 33, 34, 0.8);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    transition: var(--transition);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.034);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.map-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    border-color: rgba(189, 190, 190, 0.3);
}

.card-header {
    padding: 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-header h3 {
    font-size: 1.6rem;
    margin-bottom: 5px;
    color: #bdc3c7;
    text-shadow: -8px 0 2px rgba(255, 255, 255, 0.027), -4px 0 2px rgba(255, 255, 255, 0.137), 8px 0 2px rgba(255, 255, 255, 0.027), 4px 0 2px rgba(255, 255, 255, 0.137);
    font-weight: 600;
}

.card-header p {
    color: #95a5a6;
    font-size: 0.95rem;
}

.preview-container {
    position: relative;
    height: 220px;
    overflow: hidden;
    flex-grow: 1;
    background: #1a2430;
}

.preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.map-card:hover .preview-container img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.map-card:hover .overlay {
    opacity: 1;
}

.view-gallery-btn {
    background: rgba(29, 29, 29, 0.85);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.view-gallery-btn:hover {
    background: rgba(228, 228, 228, 0.95);
    color: rgb(0, 0, 0);
    transform: scale(1.05);
}

.card-footer {
    padding: 18px;
    display: flex;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
}

.download-btn {
    background: linear-gradient(135deg, rgb(146, 145, 145), #4e4b4e);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    width: 100%;
    justify-content: center;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(228, 228, 228, 0.95);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    overflow: hidden;
}

.modal-content {
    position: relative;
    margin: 3% auto;
    width: 95%;
    max-width: 1200px;
    height: 85vh;
    display: flex;
    flex-direction: column;
    background: #131212;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.7);
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-header h2 {
    color: #bdc3c7;
    font-size: 1.8rem;
    font-weight: 600;
}

.close-btn {
    color: #bdc3c7;
    font-size: 2.2rem;
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    color: #bb2e1f;
    background: rgba(255, 255, 255, 0.05);
}

.gallery-main {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 20px;
}

.gallery-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.nav-btn {
    background: rgba(30, 40, 53, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-btn:hover {
    background: rgba(170, 170, 170, 0.95);
    color: rgb(0, 0, 0);
    transform: scale(1.1);
}

.gallery-footer {
    padding: 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.image-counter {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #bdc3c7;
}

.gallery-download-btn {
    background: linear-gradient(135deg, rgb(146, 145, 145), #4e4b4e);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.gallery-download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(255, 255, 255, 0.4);
}

footer {
    text-align: center;
    padding: 30px 0;
    font-size: 1rem;
    color: #7f8c8d;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 30px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.map-card {
    animation: fadeIn 0.6s ease-out;
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .maps-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
    .modal-content { height: 80vh; }
}

@media (max-width: 480px) {
    h1 { font-size: 2.2rem; }
    .subtitle { font-size: 1.05rem; }
    .maps-grid { grid-template-columns: 1fr; }
    .gallery-header h2 { font-size: 1.4rem; }
    .gallery-download-btn { padding: 10px 25px; font-size: 1rem; }
}
