        :root {
            --primary-color: #2b1a4a;
            --secondary-color: #4a2d8c;
            --accent-color: #ff6b4a;
            --text-color: #f0e6ff;
            --hover-color: #ff8a6d;
            --bg-color: #1a1226;
            --card-bg: #2e2252;
            --transition: all 0.3s ease;
            --header-gradient: linear-gradient(135deg, #2b1a4a 0%, #6a3dcc 100%);
            --footer-gradient: linear-gradient(135deg, #1a1226 0%, #4a2d8c 100%);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Roboto', sans-serif;
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-color);
            line-height: 1.6;
        }

        /* Top Banner */
        .top-banner {
            background: var(--header-gradient);
            padding: 0.5rem 0;
            text-align: center;
            font-size: 0.9rem;
            font-weight: bold;
            color: white;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        }

        /* Header */
        header {
            background-color: var(--primary-color);
            padding: 1rem 5%;
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }

        .header-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            max-width: 1400px;
            margin: 0 auto;
        }

        .teengilr-st-logo {
            display: flex;
            align-items: center;
            text-decoration: none;
            margin-bottom: 1rem;
        }

        .teengilr-st-logo-img {
            width: 155px;
            height: 60px;
            object-fit: contain;
        }

        /* Navigation */
        .main-nav {
            display: flex;
            justify-content: center;
            width: 100%;
        }

        .nav-list {
            display: flex;
            list-style: none;
            flex-wrap: wrap;
            justify-content: center;
            gap: 0.5rem;
        }

        .nav-item {
            margin: 0.2rem 0;
        }

        .nav-link {
            color: var(--text-color);
            text-decoration: none;
            font-weight: 500;
            font-size: 0.85rem;
            transition: var(--transition);
            padding: 0.5rem 1rem;
            border-radius: 20px;
            background: rgba(255,255,255,0.1);
            border: 1px solid rgba(255,255,255,0.15);
        }

        .nav-link:hover {
            background: rgba(255,255,255,0.2);
            color: var(--hover-color);
        }

        .nav-link.active {
            background: var(--accent-color);
            color: #1a1a1a;
            font-weight: 600;
            border-color: transparent;
        }

        .nav-link i {
            margin-left: 5px;
            font-size: 0.8rem;
        }

        /* Language Dropdown */
	.language-dropdown {
    position: relative;
    margin: 0 0 0 auto;
    width: auto;
    max-width: none;
        }

        .language-btn {
            background: rgba(255,255,255,0.1);
            border: 1px solid rgba(255,255,255,0.15);
            color: var(--text-color);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85rem;
            padding: 0.6rem 1rem;
            border-radius: 20px;
            transition: var(--transition);
            width: 100%;
        }

        .language-btn:hover {
            background: rgba(255,255,255,0.2);
        }

        .language-btn i {
            margin-left: 8px;
            font-size: 0.8rem;
        }

        .language-menu {
    position: absolute;
    top: 100%;
    right: 0; /* Фиксируем правый край */
    left: auto; /* Отключаем автоматическое выравнивание */
    transform: none; /* Убираем transform */
    background-color: var(--primary-color);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 300px; /* Фиксированная ширина */
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    padding: 0.5rem;
    grid-template-columns: repeat(3, 1fr); /* 3 в ряд */
    gap: 0.5rem;
        }

        .language-menu.show {
            display: grid;
        }

        .language-item {
            padding: 0;
        }

        .language-link {
            color: var(--text-color);
            text-decoration: none;
            display: block;
            padding: 0.5rem;
            font-size: 0.8rem;
            text-align: center;
            border-radius: 4px;
            background: rgba(255,255,255,0.05);
            transition: var(--transition);
        }

        .language-link:hover {
            background: var(--secondary-color);
        }

        /* Mobile Menu Button */
        .mobile-menu-btn {
            display: none;
            background: var(--accent-color);
            border: none;
            color: #1a1a1a;
            font-size: 1.2rem;
            cursor: pointer;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            transition: var(--transition);
            font-weight: 600;
            margin-top: 0.5rem;
        }

        .mobile-menu-btn:hover {
            background: var(--hover-color);
        }

        /* Main Content */
        main {
            margin-top: 180px;
            padding: 2rem 5%;
            max-width: 1400px;
            margin-left: auto;
            margin-right: auto;
        }

        h1 {
            font-size: 2.5rem;
            margin-bottom: 2rem;
            color: var(--accent-color);
            font-weight: 300;
            letter-spacing: 1px;
            text-align: center;
            padding-bottom: 1rem;
            border-bottom: 2px solid var(--secondary-color);
        }

        h2 {
            font-size: 2rem;
            margin: 2rem 0 1.5rem;
            color: var(--accent-color);
            font-weight: 300;
            letter-spacing: 1px;
            text-align: center;
            position: relative;
        }

        h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 3px;
            background: var(--secondary-color);
        }

        /* Gallery Grid */
        .teengilr-st-gallery-grid {
            column-count: 5;
            gap: 8px;
        }

        .teengilr-st-gallery-card {
            background-color: var(--card-bg);
            border-radius: 8px;
            overflow: hidden;
            transition: var(--transition);
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
            margin-bottom: 8px;
            border: 1px solid rgba(255,255,255,0.1);
        }

        .teengilr-st-gallery-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 15px rgba(0,0,0,0.3);
        }

        .teengilr-st-gallery-link {
            text-decoration: none;
            color: inherit;
            display: block;
        }

        .teengilr-st-gallery-img {
            width: 100%;
            object-fit: cover;
            display: block;
        }

        .teengilr-st-gallery-info {
            padding: 1.2rem;
            background-color: var(--card-bg);
            text-align: center;
        }

        .teengilr-st-gallery-title {
            font-size: 1.2rem;
            margin-bottom: 0.5rem;
            color: var(--accent-color);
            font-weight: 500;
        }

        /* Tile Grid */
        .teengilr-st-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;
            margin: 2rem 0;
            justify-content: center;
        }

        .teengilr-st-item {
            background-color: var(--card-bg);
            border-radius: 8px;
            padding: 1.5rem;
            transition: var(--transition);
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
            flex: 1 0 auto;
            min-width: 150px;
            max-width: 300px;
            text-align: center;
            border: 1px solid rgba(255,255,255,0.1);
        }

        .teengilr-st-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 15px rgba(0,0,0,0.3);
        }

        .teengilr-st-link {
            text-decoration: none;
            color: var(--accent-color);
            font-weight: 500;
            display: block;
            margin-bottom: 0.5rem;
            font-size: 1.2rem;
        }

        /* Footer */
        footer {
            background: var(--footer-gradient);
            padding: 3rem 5% 2rem;
            margin-top: 3rem;
        }

        .footer-container-teengilr-st {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            gap: 2rem;
			justify-content: center;
        }
        
        .footer-logo-col {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            order: 1;
        }

        .footer-social {
            display: flex;
            gap: 1rem;
            margin-top: 1rem;
            justify-content: center;
        }

        .social-link {
            color: var(--accent-color);
            font-size: 1.2rem;
            transition: var(--transition);
            background: rgba(255,255,255,0.1);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .social-link:hover {
            color: var(--hover-color);
            background: rgba(255,255,255,0.2);
            transform: translateY(-3px);
        }

        .footer-links-wrapper {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 2rem;
        }

        .footer-links-col h3 {
            color: white;
            font-size: 1.2rem;
            margin-bottom: 1.5rem;
            text-align: center;
            position: relative;
            padding-bottom: 0.5rem;
        }

        .footer-links-col h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 40px;
            height: 2px;
            background: white;
        }

        .footer-links {
            display: flex;
            flex-direction: column;
            gap: 0.8rem;
            align-items: center;
        }

        .footer-link {
            color: rgba(255,255,255,0.8);
            text-decoration: none;
            font-size: 0.95rem;
            transition: var(--transition);
        }

        .footer-link:hover {
            color: white;
            transform: translateX(5px);
        }

        .footer-banners {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin-top: 1.5rem;
            justify-content: center;
        }

        .footer-banner {
            width: 60px;
            height: 50px;
            object-fit: contain;
            background: rgba(255,255,255,0.1);
            padding: 5px;
            border-radius: 4px;
            transition: var(--transition);
        }

        .footer-banner:hover {
            background: rgba(255,255,255,0.2);
        }

        .copyright {
            text-align: center;
            margin-top: 2rem;
            padding-top: 1.5rem;
            border-top: 1px solid rgba(255,255,255,0.2);
            font-size: 0.85rem;
            color: rgba(255,255,255,0.7);
        }

        /* Responsive Adjustments */
        @media (min-width: 768px) {
            .header-container {
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
            }

            .teengilr-st-logo {
                margin-bottom: 0;
            }

            .main-nav {
                width: auto;
            }

            .language-dropdown {
                margin: 0 0 0 1rem;
                width: auto;
                max-width: none;
            }

            main {
                margin-top: 120px;
            }
        }

        @media (max-width: 992px) {
            .mobile-menu-btn {
                display: block;
                position: absolute;
                top: 50%;
                right: 5%;
                transform: translateY(-50%);
            }

            .main-nav {
                position: fixed;
                top: 168px;
                left: 0;
                width: 100%;
                background-color: var(--primary-color);
                padding: 1rem 5%;
                display: none;
                box-shadow: 0 5px 10px rgba(0,0,0,0.2);
                z-index: 999;
            }

            .main-nav.show {
                display: block;
            }

            .nav-list {
                flex-direction: column;
            }

            .nav-item {
                margin: 0.5rem 0;
            }

            .nav-link {
                display: block;
                width: 100%;
                text-align: center;
            }

            .language-dropdown {
                margin: 0.5rem 0;
                width: 100%;
            }

            .language-menu {
                position: static;
                width: 100%;
                box-shadow: none;
            }
        }

		@media (max-width: 800px) {
            .teengilr-st-gallery-grid {
                column-count: 3;
            }
			}		
		@media (max-width: 600px) {
            .teengilr-st-gallery-grid {
                column-count: 2;
            }
			}
			 @media (max-width: 576px) {
            .teengilr-st-gallery-grid {
                column-count: 1;
            }
			            .language-menu {
                grid-template-columns: repeat(2, 1fr);
            }
			}

		.teengilr-st-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.teengilr-st-logo span {
    font-size: 24px;
    font-weight: 500;
    color: var(--accent-color);
    letter-spacing: 1px;
    transition: var(--transition);
}

.teengilr-st-logo:hover span {
    color: var(--hover-color);
}


@media (max-width: 768px) {
    .teengilr-st-logo span {
        font-size: 20px;
    }
}