:root {
    --primary-blue: #061478;
    --primary-gold: #b4925a;
    --secondary-blue: #283593;
    --text-dark: #333;
    --text-light: #fff;
    --bg-light: #fff;
    --bg-dark: #f5f5f5;
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

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

/* Header Styles */
.header {
    background: var(--bg-light);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.header-main {
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo-block {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo {
    height: 70px;
}

.main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    margin: 0 40px;
}

.nav-list {
    display: flex;
    gap: 25px;
    list-style: none;
    align-items: center;
}

.nav-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
    font-size: 15px;
}

.nav-link:hover {
    color: var(--primary-gold);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--primary-blue);
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero Section - Updated without overlay */
.hero {
    background-image: url(../images/hero.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 160px 0 100px;
    text-align: center;
    margin-top: 0;
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
    text-shadow: 4px 4px 12px rgba(0,0,0,0.9), 
                 2px 2px 6px rgba(0,0,0,0.8),
                 0 0 40px rgba(6,20,120,0.8);
    font-weight: 700;
}

.hero p {
    font-size: 24px;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
    text-shadow: 3px 3px 10px rgba(0,0,0,0.9),
                 2px 2px 6px rgba(0,0,0,0.8),
                 0 0 30px rgba(6,20,120,0.8);
    font-weight: 400;
}

/* Mini Offer Section */
.mini-offer {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 60px 0;
    position: relative;
}

.mini-offer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-gold) 50%, transparent 100%);
}

.mini-offer-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.mini-offer h2 {
    color: var(--primary-blue);
    font-size: 36px;
    margin-bottom: 25px;
    font-weight: 700;
}

.mini-offer p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-dark);
}

.mini-offer strong {
    color: var(--primary-gold);
    font-weight: 600;
}

/* Expanded cards grid */
.cards-grid.expanded {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* YouTube and Contacts Section */
.youtube-contacts {
    background: #f5f5f5;
    padding: 80px 0;
}

.youtube-contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.youtube-block,
.contacts-block {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(180, 146, 90, 0.1);
}

.youtube-block .section-title,
.contacts-block .section-title {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: left;
}

.youtube-content {
    text-align: center;
}

.youtube-icon {
    font-size: 80px;
    color: #FF0000;
    margin-bottom: 20px;
}

.youtube-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.youtube-button {
    background: #FF0000;
    color: white;
    border: 2px solid #FF0000;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.youtube-button:hover {
    background: #CC0000;
    border-color: #CC0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.3);
}

.youtube-button i {
    font-size: 20px;
}

.contacts-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-item i {
    font-size: 24px;
    color: var(--primary-gold);
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.contact-info h4 {
    margin: 0 0 5px 0;
    color: var(--primary-blue);
    font-size: 16px;
    font-weight: 600;
}

.contact-info p {
    margin: 0;
    font-size: 15px;
}

.contact-info a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: var(--primary-gold);
}

.button.full-width {
    width: 100%;
    justify-content: center;
    margin-top: 15px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    text-shadow: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    font-size: 16px;
}

.button.primary {
    background: var(--primary-gold);
    color: var(--text-light);
    border: 3px solid var(--primary-gold);
}

.button.primary:hover {
    background: #9b7a4a;
    color: var(--text-light);
    border-color: #9b7a4a;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(180,146,90,0.5);
}

/* Специальный стиль для кнопки навигации */
.nav-button.primary:hover {
    background: var(--primary-blue) !important;
    color: var(--text-light) !important;
    border-color: var(--primary-blue) !important;
}

.nav-button.primary:hover span,
.nav-button.primary:hover i {
    color: var(--text-light) !important;
}

.button.secondary {
    background: rgba(255,255,255,0.15);
    border: 3px solid var(--text-light);
    color: var(--text-light);
    backdrop-filter: blur(5px);
}

.button.secondary:hover {
    background: var(--text-light);
    color: var(--primary-blue);
    border-color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255,255,255,0.4);
}

.button.tertiary {
    background: var(--primary-blue);
    color: var(--text-light);
    border: 3px solid var(--primary-blue);
}

.button.tertiary:hover {
    background: #0a1a5e;
    color: var(--text-light);
    border-color: #0a1a5e;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(6,20,120,0.5);
}

/* Small buttons for events */
.button.small {
    padding: 10px 20px;
    font-size: 14px;
}

.button.secondary.small {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.button.secondary.small:hover {
    background: var(--primary-blue);
    color: var(--text-light);
    border-color: var(--primary-blue);
}

/* Consultation Section */
.consultation-section {
    background: #fff;
    padding: 60px 0;
    position: relative;
}

.consultation-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-gold) 50%, var(--primary-blue) 100%);
}

.consultation-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    color: var(--primary-blue);
    font-size: 36px;
    margin-bottom: 40px;
    position: relative;
}

.consultation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.consultation-info {
    text-align: center;
}

.consultation-icon {
    font-size: 48px;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.consultation-text {
    max-width: 400px;
    margin: 0 auto;
}

.benefits-list {
    list-style: none;
    margin-top: 20px;
    text-align: left;
}

.benefits-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.benefits-list i {
    color: var(--primary-gold);
}

.consultation-form {
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    padding: 40px;
    border-radius: 15px;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(6,20,120,0.1);
    border: 1px solid rgba(180,146,90,0.2);
}

.consultation-form h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

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

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-blue);
}

.consultation-form input,
.consultation-form textarea {
    width: 100%;
    padding: 12px 12px 12px 35px;
    border: 1px solid rgba(180,146,90,0.3);
    border-radius: 8px;
    font-size: 16px;
    background: #fff;
    transition: all 0.3s;
}

.consultation-form input:focus,
.consultation-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(6,20,120,0.1);
}

.consultation-form textarea {
    height: 120px;
    padding-top: 35px;
}

.submit-button {
    background: var(--primary-blue);
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(6,20,120,0.3);
}

.submit-button:hover {
    background: var(--primary-gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(180,146,90,0.4);
}

/* Telegram Section Styling */
.telegram-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
    position: relative;
}

.telegram-section h2 {
    text-align: center;
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin: 0 auto 50px;
    position: relative;
    max-width: 900px;
    padding: 0 20px;
}

.telegram-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--primary-gold);
}

/* Telegram Widget */
.widget-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.telegram-widget {
    position: relative;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(6,20,120,0.1);
    overflow: hidden;
    border: 2px solid rgba(180,146,90,0.2);
}

.telegram-widget iframe {
    width: 100%;
    height: 600px;
    border: none;
}

.widget-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding: 30px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-top: 1px solid rgba(180,146,90,0.2);
}

.widget-button {
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.button-visit {
    background: var(--primary-blue);
    color: var(--text-light);
}

.button-visit:hover {
    background: #0a1a5e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6,20,120,0.3);
}

.button-subscribe {
    background: var(--primary-gold);
    color: #ffffff;
}

.button-subscribe:hover {
    background: #9b7a4a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(180,146,90,0.3);
}

/* Language Dropdown */
.language-dropdown {
    position: relative;
    z-index: 1002;
}

.language-selector {
    position: relative;
    display: inline-block;
}

.current-lang {
    background: transparent;
    border: 2px solid transparent;
    color: var(--primary-blue);
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.current-lang:hover {
    border-color: var(--primary-gold);
    background: rgba(180, 146, 90, 0.05);
}

.current-lang:focus {
    outline: none;
    border-color: var(--primary-gold);
}

.language-selector.open .current-lang {
    border-color: var(--primary-gold);
    background: rgba(180, 146, 90, 0.05);
}

.current-lang .lang-flag {
    font-size: 18px;
}

.current-lang .lang-code {
    font-weight: 600;
}

.current-lang i {
    font-size: 10px;
    transition: transform 0.3s;
}

.language-selector.open .current-lang i {
    transform: rotate(180deg);
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-light);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-top: 8px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
}

.language-selector.open .language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: all 0.3s;
    font-size: 14px;
}

.language-option:first-child {
    border-radius: 10px 10px 0 0;
}

.language-option:last-child {
    border-radius: 0 0 10px 10px;
}

.language-option:hover {
    background: rgba(6, 20, 120, 0.05);
    color: var(--primary-blue);
}

.language-option.active {
    background: rgba(6, 20, 120, 0.1);
    color: var(--primary-blue);
    font-weight: 500;
}

.language-option .lang-flag {
    font-size: 20px;
}

.language-option .lang-name {
    flex-grow: 1;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0a1a5e 100%);
    color: var(--text-light);
    padding: 60px 0 20px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gold);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-main {
    grid-column: 1 / 2;
}

.footer-logo {
    height: 50px;
    margin-bottom: 15px;
}

.footer h4 {
    color: var(--primary-gold);
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.footer ul {
    list-style: none;
}

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

.footer a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--primary-gold);
}

.footer-nav {
    grid-column: 2 / 3;
}

.footer-contacts {
    grid-column: 3 / 4;
}

.footer-social {
    grid-column: 4 / 5;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    font-size: 24px;
    color: var(--text-light);
    transition: color 0.3s;
}

.social-icon:hover {
    color: var(--primary-gold);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(180,146,90,0.3);
    color: rgba(255,255,255,0.8);
}

/* Page Hero */
.page-hero {
    background: var(--primary-blue);
    color: var(--text-light);
    padding: 120px 0 60px;
    text-align: center;
    margin-top: 0;
}

.page-hero h1 {
    font-size: 42px;
    margin: 0;
}

/* Mobile Language Switcher - Always Hidden on Desktop */
.mobile-language-switcher {
    display: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .nav-list {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 14px;
    }
}

@media (max-width: 992px) {
    /* Hide desktop language dropdown */
    .nav-list .language-dropdown {
        display: none !important;
    }
    
    /* Show mobile language switcher */
    .mobile-language-switcher {
        display: block;
        position: absolute;
        right: 65px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
    }
    
    /* Style mobile language dropdown */
    .mobile-language-switcher .language-dropdown {
        position: relative;
        z-index: 1001;
    }
    
    .current-lang {
        padding: 6px 12px;
        font-size: 13px;
        border: 1px solid rgba(6, 20, 120, 0.2);
        gap: 6px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(5px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    
    .current-lang:hover,
    .current-lang:focus {
        border-color: var(--primary-gold);
        background: rgba(255, 255, 255, 1);
        box-shadow: 0 2px 12px rgba(180, 146, 90, 0.2);
    }
    
    .current-lang .lang-code {
        display: none;
    }
    
    .current-lang .lang-flag {
        font-size: 14px;
    }
    
    .current-lang i {
        font-size: 8px;
    }
    
    .language-menu {
        right: 0;
        left: auto;
        transform: translateY(-10px);
        min-width: 150px;
        margin-top: 5px;
    }
    
    .language-selector.open .language-menu {
        transform: translateY(0);
    }
    
    .language-option {
        padding: 10px 15px;
        font-size: 13px;
        gap: 10px;
    }
    
    .language-option .lang-flag {
        font-size: 16px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }

    .header {
        height: 70px;
    }

    .logo {
        height: 60px;
    }

    .nav-list {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 250px;
        height: calc(100vh - 70px);
        background: var(--bg-light);
        flex-direction: column;
        padding: 20px;
        transition: 0.3s;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    }

    .nav-list.active {
        right: 0;
    }
    

    .header-content {
        justify-content: center;
        position: relative;
    }

    .logo-block {
        margin: 0 auto;
    }

    .mobile-menu-toggle {
        position: absolute;
        right: 20px;
    }

    .consultation-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-main, .footer-nav, .footer-contacts, .footer-social {
        grid-column: 1 / -1;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 992px) {
    .cards-grid.expanded {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .youtube-contacts-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    /* Adjust mobile language switcher position */
    .mobile-language-switcher {
        right: 60px;
    }
    
    .current-lang {
        padding: 6px 10px;
        font-size: 12px;
        gap: 4px;
    }
    
    .current-lang .lang-flag {
        font-size: 14px;
    }
    
    .current-lang i {
        font-size: 8px;
    }
    
    .language-menu {
        right: -10px;
        min-width: 140px;
    }
    
    /* Hero section adjustments */
    .hero {
        padding: 120px 0 60px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .mini-offer h2 {
        font-size: 28px;
    }

    .mini-offer p {
        font-size: 16px;
    }

    .cards-grid.expanded {
        grid-template-columns: 1fr;
    }

    .youtube-block,
    .contacts-block {
        padding: 30px 20px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    /* Even smaller screens */
    .mobile-language-switcher {
        right: 55px;
    }
    
    .current-lang {
        padding: 5px 8px;
        border-radius: 15px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(5px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .current-lang:hover {
        background: rgba(255, 255, 255, 0.95);
    }
    
    .language-menu {
        font-size: 12px;
        min-width: 120px;
    }
    
    .mobile-menu-toggle {
        padding: 8px;
    }
    
    .mobile-menu-toggle span {
        width: 22px;
        height: 2px;
        margin: 4px 0;
    }
}