/* Общие */
	:root {
	    --primary: #1467b9;
	    --secondary: #3e2a97;
        --accent: #e91e63;
	    --gradient: linear-gradient(135deg, var(--primary), var(--accent));
	    --light: #f8f9ff;
	    --dark: #1a1a1a;
	    --gray: #6c757d;
	    --light-gray: #e9ecef;
	    --card-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.1);
	    --transition: all 0.3s ease;
        --gradient_blue_green: linear-gradient(135deg, #5b53ff, #13dbdb);
        --gradient_green_blue: linear-gradient(135deg, #13dbdb, #5b53ff);
	}

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

	body {
	    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	    line-height: 1.6;
	    color: var(--dark);
	    background-color: #f8f9ff;
	    overflow-x: hidden;
	}
    section {
        padding: 80px 0;
    }
	.container {
	    width: 100%;
	    max-width: 1200px;
	    margin: 0 auto;
	    padding: 0 15px;
	}
    .container_flex{
        display: flex;
        justify-content: space-between;
        gap: 15px;
    }
    .section-title {
        text-align: center;
        margin-bottom: 50px;
        font-size: 2.5rem;
        font-weight: 800;
        color: var(--dark);
        position: relative;
    }
    .gradient-text {
        background: linear-gradient(135deg, #1467b9 0%, #3e2a97 50%, #e61c7e 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .section-title:after {
        content: '';
        position: absolute;
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 4px;
        background: var(--gradient_blue_green);
        border-radius: 2px;
    }
    .section_podzg{
        text-align: center;
        font-size: 18px;
        margin-top: -20px;
        margin-bottom: 30px;
        font-style: italic;
        color: #666;
    }
    .btn {
        display: inline-block;
        padding: 14px 28px;
        border-radius: 10px;
        font-weight: 600;
        text-decoration: none;
        cursor: pointer;
        transition: var(--transition);
        font-size: 16px;
        border: none;
        text-align: center;
    }
    .btn_gradient {
        background: var(--gradient);
        color: white;
        box-shadow: 0 4px 15px -3px rgba(22, 103, 185, 0.4);
    }

    .btn_gradient:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px -3px rgba(22, 103, 185, 0.5);
    }
    .btn_gradient_green_blue {
        background: var(--gradient_green_blue);
        color: white;
        box-shadow: 0 4px 15px -3px rgba(22, 103, 185, 0.4);
    }

    .btn_gradient_green_blue:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px -3px rgba(22, 103, 185, 0.5);
    }
    .btn_white_blue {
        background: white;
        color: var(--primary);
        border: 2px solid var(--primary);
    }
    .btn_white_blue:hover {
        background: var(--light);
        color: var(--secondary);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px -3px rgba(22, 103, 185, 0.5);
    }
    .btn_white_red {
        background: white;
        color: var(--accent);
        border: 2px solid var(--accent);
    }
    .btn_white_red:hover {
        background: var(--light);
        color: #e61c7e;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px -3px rgba(233, 30, 99, 0.5);
    }

    .btn_white_dark_blue{
        color: #fff;
        background-color: #5b53ff;
    }
    .btn_white_dark_blue:hover{
        transform: translateY(-2px);
        box-shadow: 0 6px 20px -3px rgba(22, 103, 185, 0.5);
    }
    .p_under_btn{
        text-align: center;
        font-size: 18px;
        font-weight: bold;
        font-style: italic;
        color: #666;
    }
/* END Общие */

/* Header */
    header{
        background-color: rgba(255, 255, 255, .9);
        backdrop-filter: blur(7px); /* Размытие фона под шапкой */
        -webkit-backdrop-filter: blur(7px); /* Поддержка Safari */
        -webkit-box-shadow: 1px -2px 13px 8px rgba(0, 0, 0, 0.22);
        -moz-box-shadow: 1px -2px 13px 8px rgba(0, 0, 0, 0.22);
        box-shadow: 1px -2px 13px 8px rgba(0, 0, 0, 0.22);
        position: fixed;
        width: 100%;
        z-index: 1000;
        padding-top: 20px;
        top: -20px;
        height: 100px;
    }
    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 15px;
    }

    .logo {
        display: flex;
        align-items: center;
        font-weight: 800;
        font-size: 24px;
        color: var(--dark);
        text-decoration: none;
    }
    .logo .img_logo{
        display: inline-block; 
        vertical-align: middle;
        margin-right: 10px;
    }

    .logo span {
        /*background: var(--gradient);*/
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

    .nav-menu {
        display: flex;
        list-style: none;
    }
    ul#menu-verhnee-menyu{
        margin-bottom: 0 !important;
    }
    .nav-menu li {
        margin: 0 15px;
    }
    .nav-menu li a {
        text-decoration: none;
        color: #333;
        font-weight: 800;
        transition: var(--transition);
        position: relative;
        padding: 5px 0;
    }
    .nav-menu li a:hover {
        color: var(--primary);
    }
    .nav-menu li a:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--gradient);
        transition: var(--transition);
    }
    .nav-menu li a:hover:after {
        width: 100%;
    }

    .s_top_btn{
        padding: 7px 28px;
    }

    .under_header{
        width: 100%;
        height: 80px;
        background-color: #fff;
    }
/* END Header */

/* Footer */
    footer {
        background: var(--dark);
        color: white;
        padding: 70px 0 0;
    }

    .footer-grid {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 40px;
        margin-bottom: 50px;
    }

    .footer-logo {
        font-size: 28px;
        font-weight: 800;
        margin-bottom: 20px;
    }

    .footer-logo span {
        background: var(--gradient);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

    .footer-about p {
        margin-bottom: 20px;
        max-width: 350px;
        color: #adb5bd;
        margin-top: 15px;
    }

    .social-links {
        display: flex;
        gap: 15px;
        margin-top: 20px;
    }

    .social-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: transparent;
        border: 2px solid var(--primary);
        border-radius: 50%;
        color: var(--primary);
        transition: var(--transition);
        font-size: 20px;
        text-decoration: none;
    }

    .social-links a:hover {
        color: #13dbdb;
        border-color: #13dbdb;
        transform: translateY(-3px);
    }

    .footer-line {
        font-size: 20px;
        margin-bottom: 25px;
        position: relative;
        padding-bottom: 10px;
    }

    .footer-line:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 40px;
        height: 3px;
        background: var(--gradient_blue_green);
        border-radius: 2px;
    }

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

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

    .footer-links a {
        color: #adb5bd;
        text-decoration: none;
        transition: var(--transition);
    }

    .footer-links a:hover {
        color: white;
        padding-left: 5px;
    }

    .copyright {
        text-align: center;
        padding: 25px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        color: #adb5bd;
        font-size: 14px;
    }
    .copyright a{color: #adb5bd;}
/* END Footer */


/* Responsive Design */
    @media (max-width: 992px) {
        .footer-grid {
            grid-template-columns: 1fr 1fr;
        }
    }
    
    @media (max-width: 768px) {
        .nav-menu {
            display: none;
        }
        .section-title {
            font-size: 28px;
        }
    }

    @media (max-width: 480px) {
        section {
            padding: 60px 0;
        }
        .footer-grid {
            grid-template-columns: 1fr;
        }
    }
/* END Responsive Design */

/* --- Mobile Menu --- */
.hamburger-button {
    display: none;
    position: relative;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1300;
}

.bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    position: absolute;
    left: 0;
}

.bar:nth-child(1) {
    top: 0;
}

.bar:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.bar:nth-child(3) {
    bottom: 0;
}

.hamburger-button.is-active .bar:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hamburger-button.is-active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-button.is-active .bar:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

.mobile-menu-overlay {
    position: fixed;
    top: 80px; /* Start below the header */
    left: 0;
    width: 100%;
    height: calc(100vh - 80px); /* Fill remaining screen height */
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999; /* Just below the header's z-index of 1000 */
    display: none; /* HIDDEN BY DEFAULT */
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-menu-overlay.is-active {
    transform: translateY(0);
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.mobile-nav-links li {
    margin-bottom: 25px;
}

.mobile-nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-size: 24px;
    font-weight: 700;
}
/* --- End Mobile Menu --- */

/* Update Responsive for Menu */
@media (max-width: 991px) {
    .nav-menu, .header-cta {
        display: none;
    }
    .hamburger-button {
        display: block;
    }
}

/* Template Layout Adjustments */

/* 1. Sticky Footer Implementation */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Custom Logo Size */
.custom-logo,
.header-container .logo img,
.footer-about .logo img {
    max-width: 250px;
    height: auto;
}