@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    color: #2D343C;
    background-color: #f2f3f5;
    font-weight: 400;
}

a,
a:hover {
    color: inherit;
    text-decoration: none;
}

* {
    outline: none;
}

h1 {
    font-family: Poppins;
    font-weight: 600;
    font-size: 48px;
    text-transform: uppercase;
    line-height: 1.3 !important;
}

h2 {
    font-family: Poppins;
    font-weight: 600;
    font-size: 32px;
    line-height: 1.3 !important;
}

h3 {
    font-family: Poppins;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.3 !important;

}

/* 1. Все ссылки на сайте — новый цвет */
body a {
    color: #0097A7;
}


/* 2. Но ссылки в хэдере — оставить без изменений */
header a,
.site-header a,
.top-header a,
.navbar a {
    color: #fff !important;
}


/* 3. И ссылки в футере — тоже оставить их цвет */
footer a,
.site-footer a,
a.elementor-element {
    color: inherit !important;
}

.breadcrumbs.container {
    font-size: 20px;
    margin-top: 55px;
}

/* ===== HEADER DESKTOP ===== */

.site-header {
    background: #051C3C;
    padding: 20px 0;
    width: 100%;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
}

.header-inner {
    display: flex;
    align-items: center;
}

/* логотип */
.header-logo img {
    height: 42px;
    width: 230px;
    max-width: 100%;
}

/* контейнер меню + кнопки (справа) */
.header-right {
    display: flex;
    align-items: center;
    gap: 42px;
    margin-left: auto;
}

/* по умолчанию (моб/планшет) меню без абсолютного позиционирования */
.header-nav {
    position: static;
    transform: none;
}

/* меню */
.header-menu {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    transition: opacity .2s;
}

.header-menu a:hover {
    opacity: .7;
}

/* кнопка справа */
.header-btn {
    margin-left: 0;
}

.btn-header,
.button,
.elementor-button {
    background: #0098A6;
    padding: 10px 22px;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    transition: opacity .2s;
    font-size: 18px;
}

.btn-header:hover,
.button:hover,
.elementor-button:hover {
    opacity: .8;
    transition: 0.3s;
}

.button {
    width: 355px;
    max-width: 100%;
    display: block;
    text-align: center;
}

.btn-header,
.button,
.elementor-button {
    background: #0098A6;
    padding: 10px 22px;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    transition: opacity .2s;
    font-size: 18px;
}

.btn-header:hover,
.button:hover,
.elementor-button:hover {
    opacity: .8;
    transition: 0.3s;
}

.button {
    width: 355px;
    max-width: 100%;
    display: block;
    text-align: center;
}


/* ===== БУРГЕР ===== */

.header-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
}

.header-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: #ffffff;
    margin: 5px 0;
    transition: transform .2s, opacity .2s;
}

.site-header .menu-item-has-children {
    position: relative;
}

.site-header .menu-item-has-children>.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    padding: 8px 0;
    min-width: 140px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    z-index: 999;
}

.site-header .menu-item-has-children:hover>.sub-menu {
    display: block;
}

/* элементы в сабменю */
.site-header .sub-menu li a {
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #051C3C;
    text-decoration: none;
    font-size: 14px;
}

.site-header .sub-menu li a:hover {
    background: #F2F5FA;
}

.sub-menu li {
    list-style: none;
}

/*display none*/

.footer-menu .pll-parent-menu-item,
.wpcf7-spinner {
    display: none;
}

/*hover for main*/

/* Контейнер */
.linking .e-child {
    transition: all 0.3s ease;
}

/* Ховер по контейнеру */
.linking .e-child:hover {
    background-color: #0097A7 !important;
}

/* Текст внутри */
.linking .e-child:hover .elementor-image-box-content,
.linking .e-child:hover .elementor-image-box-content p,
.linking .e-child:hover .elementor-image-box-content b {
    color: #fff !important;
}

/* SVG / IMG */
.linking .elementor-element:hover img {
    filter: brightness(0) invert(1);
    /* превращает картинку в белую */
    transition: filter 0.3s ease;
}


/*FOOTER*/

.site-footer {
    background-color: #051C3C;
    color: #ffffff;
    padding: 32px 0;
    font-size: 14px;
}

.site-footer a {
    color: #ffffff;
    text-decoration: none;
}

.site-footer a:hover {
    opacity: 0.8;
}

/* Верхняя строка */
.footer-top {
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: flex-start;
}

.footer-logo img {
    width: 240px;
    max-width: 100%;
}

.footer-site-title {
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Меню */
.footer-menu {
    flex: 0 0 auto;
    min-width: auto;
    margin-left: 33px;
}

.footer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    /* вместо center — к лого */
    gap: 24px;
    flex-wrap: wrap;
}

.footer-nav>li>a {
    font-size: 14px;
    position: relative;
}

/* Соцсети */
.footer-social {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.footer-social-link img {
    width: 22px;
    height: 22px;
    display: block;
}

/* Линия-разделитель */
.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 23px 0 33px;
}

/* Низ футера */
.footer-bottom {
    font-size: 12px;
}

.footer-policies a {
    opacity: 0.8;
}

.footer-policies a:hover {
    opacity: 1;
}

.footer-separator {
    opacity: 0.7;
}

.deepleex-cta {
    background: #ffffff;
    padding: 62px 69px 0px 38px;
    margin-top: 60px;
    border-radius: 20px;
    max-width: 926px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 155px;
    margin-top: 100px;
}

.deepleex-cta-inner {
    display: flex;
    align-items: stretch;
    gap: 40px;
    flex-wrap: wrap;
}

.deepleex-cta-left {
    flex: 1 1 40%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.deepleex-cta-right span.wpcf7-list-item-label {
    font-size: 14px;
}

.deepleex-cta-right span.wpcf7-list-item-label a {
    color: #0098A6;
}

.deepleex-cta-right {
    flex: 1 1 40%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-end;
    padding-bottom: 32px;
}

.deepleex-cta-title {
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 10px;
}

/* Contact Form 7 styles */
.deepleex-cta-right input[type="text"],
.deepleex-cta-right input[type="email"],
.deepleex-cta-right input[type="tel"],
.deepleex-cta-right textarea,
.deepleex-cta-right select {
    width: 100%;
    border: 1px solid #d8d8d8;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
}

.deepleex-cta-right input[type="radio"] {
    margin-right: 6px;
}

/* Картинка */
.deepleex-cta-left .cta-pic {
    width: 100%;
    height: auto;
    display: block;
    margin-top: auto;
}

.deepleex-cta-form {
    max-width: 310px;
}

.deepleex-cta-right input[type="submit"] {
    background: #0098A6;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    font-size: 15px;
    transition: 0.25s;
}

.deepleex-cta-right input[type="submit"]:hover {
    background: #0098A6;
}

.deepleex-cta-right .wpcf7-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 0;
}

/* Общий контейнер CF7 wrap — позиционируем как якорь */
.wpcf7-form .wpcf7-form-control-wrap {
    position: relative;
    display: block;
}

/* Стили подсказки */
.wpcf7-not-valid-tip {
    position: absolute !important;
    top: -28px;
    left: 0;
    background: #ff4d4f;
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-5px);
    animation: wpcf7-fly-in 0.25s ease forwards;
}

/* Общие настройки списка */
.list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.list li {
    font-size: 16px;
    margin: 10px 0;
    padding-left: 28px;
    /* место под иконку */
    position: relative;
}

/* Красный крест */
.list-bad li::before {
    content: "✖";
    color: #C62828;
    font-size: 18px;
    position: absolute;
    left: 0;
    top: 0;
    line-height: 1;
}

/* Зелёная галочка */
.list-good li::before {
    content: "✔";
    color: #2E7D32;
    font-size: 18px;
    position: absolute;
    left: 0;
    top: 0;
    line-height: 1;
}

.elementor-widget-n-accordion .elementor-element.e-con-full.e-flex.e-con.e-child {
    margin-top: -20px;
}

/* Анимация появления */
@keyframes wpcf7-fly-in {
    0% {
        opacity: 0;
        transform: translateY(-6px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Страница блога */
.blog-page {
    padding-top: 48px;
    padding-bottom: 72px;
}

.blog-page .breadcrumbs {
    font-size: 13px;
    margin-bottom: 16px;
    color: #8C9AAF;
}

.blog-page .breadcrumbs a {
    color: #8C9AAF;
    text-decoration: none;
}

.blog-page .breadcrumbs a:hover {
    text-decoration: underline;
}

.blog-page-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 24px;
    text-transform: capitalize;
}

.blog-page-subtitle {
    text-align: center;
    margin: 0 auto 40px;
    font-size: 24px;
    color: #2D343C;
}

/* Сетка карточек */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.blog-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 16px 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card-thumb {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.blog-card-thumb img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-card-thumb-placeholder {
    width: 100%;
    height: 220px;
    background: #E5E7EB;
}

.blog-card-tags {
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-card-tags a {
    font-size: 16px;
    text-decoration: none;
    padding: 10px 0 20px;
    border-radius: 999px;
    color: #0097A7;
    font-weight: 500;
}

.blog-card-tags a:hover {
    opacity: 0.85;
}

.blog-card-title {
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 600;
}

.blog-card-title a {
    text-decoration: none;
    color: #111827;
}

.blog-card-title a:hover {
    color: #0097A7;
}

.blog-card-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: #4B5563;
}

.blog-pagination {
    margin-top: 40px;
}

.single-post-page {
    padding-top: 48px;
    padding-bottom: 72px;
}


.single-post-title {
    font-size: 32px;
    margin-bottom: 32px;
    text-transform: uppercase;
}

/* Основной двухколоночный макет */
h2.single-post-related-title {
    margin-top: 100px;
    margin-bottom: 50px;
    text-align: center;
}

.single-post-content p {
    margin-bottom: 16px;
}

.single-post-thumb img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
}

.single-post-cta {
    margin-top: 48px;
}

.single-post-cta-inner {
    border-radius: 16px;
    padding: 20px 24px;
    background: #051C3C;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}


.single-post-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 999px;
    background: #00C4FF;
    color: #051C3C;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}

.single-post-cta-btn:hover {
    opacity: 0.9;
}

.single-post-featured {
    float: right;
    width: 50%;
    max-width: 762px;
    margin: 0 0 20px 30px;
}

.single-post-featured img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.single-post-content {
    font-size: 16px;
}

.single-post-content p {
    margin-bottom: 16px;
}

/* ===================================================================
   <= 1199px
=================================================================== */
@media (max-width: 1199px) {

    .header-menu a,
    .btn-header {
        font-size: 14px;
    }

    .header-menu {
        margin-left: 15px;
    }
}

/* ===================================================================
   DESKTOP ≥ 992px — меню строго по центру
=================================================================== */
@media (min-width: 992px) {
    .header-inner {
        position: relative; /* для абсолютного меню */
    }

    .header-nav {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ===================================================================
   <= 991px (общие планшет+моб)
=================================================================== */
@media (max-width: 991px) {
    .single-post-title {
        font-size: 22px;
    }

    .header-logo {
        max-width: 155px;
    }

    .deepleex-cta-form {
        max-width: 100%;
        width: 100%;
    }
}

/* ===================================================================
   991px–769px  (планшеты горизонт)
=================================================================== */
@media (max-width: 991px) and (min-width: 769px) {



    /* отключаем абсолютное центрирование меню */
    .header-nav {
        position: static;
        transform: none;
        margin-left: auto;
    }

    /* меню становится обычным flex-блоком справа */
    .header-menu {
        gap: 22px;
    }

    /* правый блок объединён с меню */
    .header-right {
        margin-left: auto;
        gap: 28px;
    }

    /* логотип чуть меньше */
    .header-logo img {
        height: 38px;
        width: auto;
    }

    /* кнопка чуть меньше */
    .btn-header {
        padding: 8px 18px;
        font-size: 16px;
    }
    .header-inner{
        flex-direction: column;
    }
}

/* ===================================================================
   <= 900px
=================================================================== */
@media (max-width: 900px) {
    .deepleex-cta-inner {
        flex-direction: column;
    }

    .deepleex-cta-left,
    .deepleex-cta-right {
        flex: 1 1 100%;
    }

    .deepleex-cta-image {
        height: 200px;
    }

    .deepleex-cta-left .cta-pic {
        display: none;
    }

    .deepleex-cta {
        margin: 10px 10px 50px 10px;
        padding: 30px 20px;
    }
}

/* ===================================================================
   <= 768px (мобилка, бургер)
=================================================================== */
@media (max-width: 768px) {

    /* Single post */
    .single-post-featured {
        float: none;
        width: 100%;
        margin: 0 0 20px 0;
    }

    /* Footer */
    .footer-top {
        align-items: center;
        flex-direction: column;
    }

    .footer-menu {
        order: 3;
        width: 100%;
        margin-left: 0;
    }

    .footer-nav {
        justify-content: flex-start;
        row-gap: 8px;
    }

    .footer-social {
        order: 2;
        margin-left: auto;
    }

    .footer-bottom {
        font-size: 11px;
    }

    /* Header mobile */
    .header-toggle {
        display: block;
    }

    .header-inner {
        flex-direction: row;
        justify-content: space-between;
        position: relative;
    }

    /* панель меню под хедером */
    .header-right {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #051C3C;
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 20px 50px;
        gap: 16px;
        display: none; /* скрыта по умолчанию */
        margin-left: 0;
        flex: none;
        z-index: 999;
    }

    .header-right.is-open {
        display: flex; /* показываем при .is-open */
    }

    .header-menu {
        flex-direction: column;
        gap: 12px;
        margin-left: 0;
    }

    .pll-parent-menu-item{
        margin-bottom: 30px;
    }

    .header-menu a {
        font-size: 20px;
    }

    .header-btn {
        width: 100%;
        margin-left: 0;
    }

    .btn-header {
        width: 100%;
        text-align: center;
        font-size: 18px;
        padding: 12px 22px;
    }

    .header-toggle.is-open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .header-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .header-toggle.is-open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }

    .blog-page-subtitle {
        font-size: 18px;
    }

    .elementor-image-box-description {
        font-size: 18px !important;
    }
}

/* ===================================================================
   <= 767px
=================================================================== */
@media (max-width: 767px) {
    .blog-page {
        padding-top: 32px;
        padding-bottom: 48px;
    }

    .blog-page-title {
        font-size: 24px;
    }

    .blog-card-thumb img,
    .blog-card-thumb-placeholder {
        height: 200px;
    }
}

/* ===================================================================
   <= 575px
=================================================================== */
@media (max-width: 575px) {
    .single-post-page {
        padding-top: 32px;
        padding-bottom: 48px;
    }

    .single-post-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .single-post-cta-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===================================================================
   <= 480px
=================================================================== */
@media (max-width: 480px) {
    .footer-top {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .footer-social {
        margin-left: 0;
    }
}

/* ===================================================================
   Admin bar fixes (WP)
=================================================================== */
@media screen and (min-width: 782px) {
    body.admin-bar .site-header {
        top: 32px;
    }
}

@media screen and (max-width: 781px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}
