/*
 Theme Name:   Mprofile theme
 Theme URI:    https://example.com
 Description:  Чистая минимальная тема
 Version:      1.0
 Author:       Vladimir
 Author URI:   https://example.com
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  mprofil
*/

/* Базовые стили */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background: #fff;
    color: #333;
    padding-top: 80px; /* Отступ под шапку */
}

a {
    color: #0073e6;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Шапка */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #fff;
    z-index: 9999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.header-logo img {
    height: 40px;
}

.header-nav ul {
    display: flex;
    gap: 20px;
}

.header-nav a {
    font-weight: bold;
    color: #333;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-contact a,
#callback-btn {
    color: #0073e6;
    font-weight: bold;
}

#callback-btn {
    background-color: #0073e6;
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 4px;
}

/* Верхняя шапка */
.top-header {
    background-color: #fff;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 999;
    position: fixed;
    width: 100%;
    top: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo img {
    height: 60px;
}

.header-mobile-row {
    display: none;
}
.header-large-row {
    display: flex;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.phone-top {
    display: flex;
    gap: 10px;
}

.social-groups {
    display: flex;
    gap: 10px;
}
.social-groups img {
    width: 30px;
    height: 30px;
}

.contact-info a,
#callback-btn {
    color: #000;
    font-weight: bold;
}

#callback-btn {
    background-color: #1f83ad;
    color: #fff;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 4px;
}

/* Меню */
.main-nav {
    background-color: #282828;
    padding: 10px 0;
    z-index: 998;
    position: fixed;
    top: 80px; /* ниже верхней шапки */
    width: 100%;
    transition: top 0.3s ease-in-out;
}

/* Логотип в меню */
.menu-logo {
    display: none;
}

.menu-logo.hidden {
    display: none;
}

.menu-logo.visible {
    display: block;
}

/* При прокрутке скроем .top-header */
.top-header.hide-on-scroll {
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}
/* Когда шапка скрыта — меню поднимается наверх */
.top-header.hide-on-scroll ~ .main-nav {
    top: 0;
}

.menu {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 20px 0;
    align-items: center;
}

.menu li {
    margin-right: 20px;
}

.menu li a {
    text-decoration: none;
    color: #FFF;
    font-size: 20px;
}

/* Бургер-меню */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}
.page-content {
    margin: 80px auto 0;
}
/*.page-content h1 {*/
/*    margin-bottom: 20px;*/
/*}*/

footer {
    width: 100%;
    height: auto;
    background: #19181b;
    color: #ffffffcc;
    font-size: 13px;
    line-height: 15px;
}

footer .container {
    padding-top: 38px;
    padding-bottom: 38px;
}
footer p {
    margin: 0;
}

footer a {
    color: #fff;
    text-decoration: none;
    transition: all .5s;
}

footer .logo-footer img {
    width: 244px;
    height: 39px;
}

footer .footer__block-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

footer .footer__nav {
    display: flex;
    justify-content: space-between;
}

footer .footer-2 ul,
footer .footer-3 ul {
    display: inline-block;
    list-style: none;
    margin: 0;
    padding: 0;
}

footer .footer-2 ul li,
footer .footer-3 ul li {
    margin: 0 0 15px 0;
}

footer .footer-3 {
    flex: 0 0 510px;
    max-width: 510px;
    padding: 0 30px;
}

footer .footer-4 {
    flex: 0 0 165px;
    max-width: 165px;
}

footer .social-groups {
    margin-top: 30px;
    justify-content: flex-start;
    gap: 12px;
}

footer .social-groups img {
    width: 30px;
    height: 30px;
}

footer .copyright {
    width: 100%;
    line-height: 45px;
    background: #282828;
    text-align: center;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.menu-overlay.active {
    display: block;
}

.countdown .elementor-countdown-item {
    padding: 15px !important;
}
.countdown .elementor-countdown-item .elementor-countdown-digits {
    font-size: 50px;
}
.countdown .elementor-countdown-item .elementor-countdown-label {
    font-size: 25px;
}

.elementor-heading-title {
    line-height: 1.3;
}


@media (max-width: 768px) {
    body {
        padding-top: 45px;
    }

    .header-large-row {
        display: none;
    }
    .header-mobile-row {
        flex-wrap: wrap;
        display: block;
    }
    .logo img {
        height: 40px;
    }

    .main-nav {
        padding: 0;
    }

    /* Позиционируем бургер в меню */
    .menu-toggle {
        position: fixed;
        right: 15px;
        top: 15px;
        color: #fff;
        background: transparent;
        border: none;
        font-size: 25px;
        z-index: 10001; /* Выше чем меню */
    }

    /* Корректируем отступы меню */
    .menu {
        padding-top: 80px; /* Больше места для логотипа */
    }

    /* Скрываем оригинальный бургер в шапке при открытом меню */
    body.menu-open .header-mobile-row .menu-toggle {
        display: none;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .header-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        margin-top: 10px;
    }

    .header-contact {
        justify-content: flex-start;
        width: 100%;
        margin-top: 10px;
    }

    /* Бургер-меню */
    .menu-toggle {
        display: block;
        font-size: 25px;
        cursor: pointer;
        position: absolute;
        right: 10px;
        top: 10px;
        z-index: 10000;
        color: #000;
        width: 45px;
        background: transparent;
        font-weight: bold;
    }

    .menu {
        display: none;
        flex-direction: column;
        background-color: #000; /* Черный фон */
        position: fixed;
        top: 0;
        left: -300px; /* Скрыто за экраном слева */
        width: 300px;
        height: 100%;
        padding-top: 60px; /* Отступ под логотип */
        z-index: 9999;
        transition: left 0.3s ease-in-out;
    }

    .menu.active {
        left: 0; /* Выезжает из левой части экрана */
        display: flex;
    }

    .menu li {
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin: 0;
    }

    .menu li a {
        color: #fff !important;
        font-size: 18px;
    }

    /* Первая строка (лого + бургер) */
    .header-mobile-row:first-child {
        margin-bottom: 10px;
    }

    /* Вторая строка (телефоны + соцсети) */
    .header-mobile-row:last-child {
        width: 100%;
    }

    .phone-top {
        flex-direction: column;
        gap: 5px;
    }

    .contact-info {
        width: 100%;
        justify-content: space-between;
    }

    .countdown .elementor-countdown-wrapper {
        width: 100%;
    }
    .countdown .elementor-countdown-item {
        padding: 15px !important;
    }
    .countdown .elementor-countdown-item .elementor-countdown-digits {
        font-size: 30px;
    }
    .countdown .elementor-countdown-item .elementor-countdown-label {
        font-size: 15px;
    }
}