/* ==========================================================
   PRODLENKA NEW NAVIGATION
   ========================================================== */

.pd-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #edf1f2;
}

.pd-header__container {
    width: min(100% - 40px, 1440px);
    min-height: 82px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    gap: 24px;
}


/* ==========================================================
   LOGO
   ========================================================== */

.pd-header__logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.pd-header__logo img {
    display: block;
    width: 190px;
    height: auto;
}


/* ==========================================================
   MAIN NAVIGATION
   ========================================================== */

.pd-navigation {
    flex: 1 1 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 2px;
    min-width: 0;
}

.pd-navigation__item {
    position: relative;
}

.pd-navigation__link {
    position: relative;

    min-height: 48px;
    padding: 0 11px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    border: 0;
    background: transparent;

    color: #31494a;

    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;

    text-decoration: none;
    white-space: nowrap;

    cursor: pointer;

    border-radius: 12px;

    transition:
        background-color .2s ease,
        color .2s ease;
}

.pd-navigation__link:hover,
.pd-navigation__item.is-open > .pd-navigation__link {
    color: #168d91;
    background: #f1f8f8;
}

.pd-navigation__icon {
    width: 19px;
    height: 19px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 19px;
}

.pd-navigation__icon svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pd-navigation__arrow {
    width: 7px;
    height: 7px;

    margin-left: 2px;

    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;

    transform: translateY(-2px) rotate(45deg);

    transition: transform .2s ease;
}

.pd-navigation__item.is-open
.pd-navigation__arrow {
    transform: translateY(2px) rotate(225deg);
}


/* ==========================================================
   MEGA MENU
   ========================================================== */

.pd-mega-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;

    width: 620px;

    padding: 24px;

    background: #fff;

    border: 1px solid #e8eeee;
    border-radius: 20px;

    box-shadow:
        0 20px 55px rgba(30, 60, 65, .13),
        0 4px 14px rgba(30, 60, 65, .06);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(-7px);

    transition:
        opacity .18s ease,
        visibility .18s ease,
        transform .18s ease;
}

.pd-navigation__item.is-open > .pd-mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0);
}

.pd-mega-menu--wide {
    width: 700px;
}

.pd-mega-menu--small {
    width: 260px;
    padding: 12px;
}

.pd-mega-menu__header {
    margin-bottom: 20px;
}

.pd-mega-menu__title {
    color: #243c3d;

    font-family: "Open Sans", sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

.pd-mega-menu__description {
    margin-top: 5px;

    color: #7b8b8c;

    font-size: 13px;
    line-height: 1.5;
}


/* ==========================================================
   COURSE CARDS
   ========================================================== */

.pd-course-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.pd-course-card {
    min-height: 120px;

    padding: 17px;

    display: flex;
    align-items: center;
    gap: 13px;

    background: #f6fbfb;

    border: 1px solid #e7f0f0;
    border-radius: 16px;

    color: #294344;
    text-decoration: none;

    transition:
        transform .2s ease,
        background-color .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.pd-course-card:hover {
    background: #fff;
    border-color: #b9dddd;

    transform: translateY(-2px);

    box-shadow:
        0 10px 24px rgba(30, 100, 100, .08);
}

.pd-course-card__icon {
    width: 44px;
    height: 44px;

    flex: 0 0 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #168d91;

    background: #e4f4f3;

    border-radius: 12px;
}

.pd-course-card__icon svg {
    width: 23px;
    height: 23px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pd-course-card__content {
    flex: 1;
    min-width: 0;
}

.pd-course-card__content strong {
    display: block;

    color: #294344;

    font-size: 14px;
    line-height: 1.35;
}

.pd-course-card__content small {
    display: block;

    margin-top: 5px;

    color: #819091;

    font-size: 12px;
    line-height: 1.35;
}

.pd-course-card__arrow {
    flex: 0 0 auto;

    color: #168d91;

    font-size: 21px;

    transition: transform .2s ease;
}

.pd-course-card:hover
.pd-course-card__arrow {
    transform: translateX(3px);
}


/* ==========================================================
   COLUMNS
   ========================================================== */

.pd-menu-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.pd-mega-menu--wide .pd-menu-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pd-menu-column {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pd-menu-column__title {
    padding: 7px 10px 9px;

    color: #168d91;

    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.pd-menu-column > a,
.pd-mega-menu--small > a {
    display: block;

    padding: 11px 12px;

    color: #405455;

    font-size: 13px;
    line-height: 1.35;

    text-decoration: none;

    border-radius: 10px;

    transition:
        background-color .18s ease,
        color .18s ease;
}

.pd-menu-column > a:hover,
.pd-mega-menu--small > a:hover {
    color: #168d91;
    background: #f2f8f8;
}

.pd-menu-feature strong {
    display: block;

    color: #344d4e;

    font-size: 14px;
}

.pd-menu-feature span {
    display: block;

    margin-top: 4px;

    color: #879596;

    font-size: 12px;
}


/* ==========================================================
   HEADER ACTIONS
   ========================================================== */

.pd-header__actions {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    gap: 5px;
}

.pd-header-action {
    position: relative;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 12px;

    background: transparent;

    color: #536566;

    cursor: pointer;
    text-decoration: none;

    transition:
        background-color .2s ease,
        color .2s ease;
}

.pd-header-action:hover {
    color: #168d91;
    background: #f1f8f8;
}

.pd-header-action svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pd-header-login,
.pd-header-register {
    min-height: 42px;

    padding: 0 13px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;
}

.pd-header-login {
    color: #3f5556;
}

.pd-header-login:hover {
    color: #168d91;
}

.pd-header-register {
    color: #fff;
    background: #168d91;

    padding-left: 15px;
    padding-right: 15px;

    transition:
        background-color .2s ease,
        transform .2s ease;
}

.pd-header-register:hover {
    background: #11777b;
    transform: translateY(-1px);
}

.pd-header-user {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 50%;

    background: #e8f5f4;

    color: #168d91;

    text-decoration: none;
}

.pd-header-user img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.pd-header-user svg {
    width: 21px;
    height: 21px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ==========================================================
   MOBILE BUTTON
   ========================================================== */

.pd-header__mobile-toggle {
    display: none;

    width: 42px;
    height: 42px;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    border-radius: 11px;

    background: #f1f8f8;
    color: #168d91;

    cursor: pointer;
}

.pd-header__mobile-toggle svg {
    width: 21px;
    height: 21px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}


/* ==========================================================
   MOBILE MENU
   ========================================================== */

.pd-mobile-menu {
    position: fixed;
    z-index: 10001;

    inset: 0;

    display: flex;
    flex-direction: column;

    background: #fff;

    transform: translateX(-100%);

    transition: transform .28s ease;

    overflow-y: auto;
}

.pd-mobile-menu.is-open {
    transform: translateX(0);
}

.pd-mobile-menu__top {
    min-height: 72px;

    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #edf1f2;
}

.pd-mobile-menu__title {
    color: #293f40;

    font-size: 19px;
    font-weight: 700;
}

.pd-mobile-menu__close {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    border-radius: 11px;

    background: #f3f8f8;

    color: #516667;

    cursor: pointer;
}

.pd-mobile-menu__close svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.pd-mobile-menu__body {
    padding: 12px 16px 20px;
}

.pd-mobile-link {
    width: 100%;
    min-height: 54px;

    padding: 8px 10px;

    display: flex;
    align-items: center;
    gap: 13px;

    border: 0;
    border-radius: 12px;

    background: transparent;

    color: #354b4c;

    font-family: inherit;
    font-size: 15px;
    font-weight: 600;

    text-decoration: none;
    text-align: left;

    cursor: pointer;
}

.pd-mobile-link:hover,
.pd-mobile-link.is-open {
    color: #168d91;
    background: #f2f8f8;
}

.pd-mobile-link > svg {
    width: 21px;
    height: 21px;

    flex: 0 0 21px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pd-mobile-link > span {
    flex: 1;
}

.pd-mobile-link--dropdown > i {
    width: 8px;
    height: 8px;

    margin-right: 5px;

    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;

    transform: rotate(45deg) translateY(-2px);

    transition: transform .2s ease;
}

.pd-mobile-link--dropdown.is-open > i {
    transform: rotate(225deg) translateY(-1px);
}

.pd-mobile-submenu {
    display: grid;

    grid-template-rows: 0fr;

    overflow: hidden;

    transition: grid-template-rows .25s ease;
}

.pd-mobile-submenu > * {
    min-height: 0;
}

.pd-mobile-link--dropdown.is-open + .pd-mobile-submenu {
    grid-template-rows: 1fr;
}

.pd-mobile-submenu a {
    margin-left: 44px;
    padding: 11px 12px;

    color: #506263;

    text-decoration: none;

    border-left: 2px solid #dceeee;
}

.pd-mobile-submenu a strong {
    display: block;

    font-size: 14px;
    line-height: 1.35;
}

.pd-mobile-submenu a small {
    display: block;

    margin-top: 4px;

    color: #899899;

    font-size: 12px;
    line-height: 1.35;
}

.pd-mobile-menu__footer {
    margin-top: auto;

    padding: 14px 16px 22px;

    display: flex;
    flex-direction: column;
    gap: 4px;

    border-top: 1px solid #edf1f2;
}

.pd-mobile-menu__footer a {
    min-height: 48px;

    padding: 8px 10px;

    display: flex;
    align-items: center;
    gap: 12px;

    color: #506263;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    border-radius: 11px;
}

.pd-mobile-menu__footer a:hover {
    background: #f2f8f8;
    color: #168d91;
}

.pd-mobile-menu__footer svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1250px) {

    .pd-header__container {
        gap: 14px;
    }

    .pd-header__logo img {
        width: 165px;
    }

    .pd-navigation__link {
        padding-left: 7px;
        padding-right: 7px;

        font-size: 13px;
    }

    .pd-navigation__icon {
        display: none;
    }

    .pd-header-register {
        padding-left: 10px;
        padding-right: 10px;
    }
}


@media (max-width: 1050px) {

    .pd-navigation__label {
        font-size: 12px;
    }

    .pd-header-login {
        display: none;
    }

    .pd-header__logo img {
        width: 150px;
    }

}


@media (max-width: 900px) {

    .pd-navigation {
        display: none;
    }

    .pd-header__mobile-toggle {
        display: flex;
        order: 0;
    }

    .pd-header__logo {
        order: 1;
        margin-right: auto;
    }

    .pd-header__actions {
        order: 2;
    }

    .pd-header-register {
        display: none;
    }

    .pd-header__container {
        min-height: 68px;
        width: min(100% - 24px, 1440px);
    }

    .pd-header__logo img {
        width: 155px;
    }

    .pd-header-action {
        width: 40px;
        height: 40px;
    }

}


/* ==========================================================
   VERY SMALL SCREENS
   ========================================================== */

@media (max-width: 480px) {

    .pd-header__container {
        width: calc(100% - 16px);
        gap: 4px;
    }

    .pd-header__logo img {
        width: 132px;
    }

    .pd-header-action {
        width: 38px;
        height: 38px;
    }

    .pd-header__mobile-toggle {
        width: 38px;
        height: 38px;
    }

}