.az-header {
    --az-accent: var(--red, #c51e27);
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    color: #202125;
    border-top: 3px solid var(--az-accent);
    box-shadow: 0 2px 12px #20212508;
}
.admin-bar .az-header {
    top: 32px;
}
.az-header .wrap {
    max-width: 1440px;
}
.az-header [hidden] {
    display: none !important;
}
.az-header-main {
    border-bottom: 1px solid #e7e7e8;
}
.az-header-row {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 86px;
    padding-top: 14px;
    padding-bottom: 14px;
}
.az-header-logo {
    flex: 0 0 125px;
    display: flex;
    align-items: center;
}
.az-header-logo img {
    width: 125px;
    height: 48px;
    object-fit: contain;
}
.az-catalog-toggle,
.az-header-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid var(--az-accent);
    border-radius: 5px;
    background: var(--az-accent);
    color: #fff;
    font:
        700 14px/1.35 Manrope,
        Arial,
        sans-serif;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}
.az-catalog-toggle:hover,
.az-header-help:hover {
    background: #a91720;
    border-color: #a91720;
    color: #fff;
}
.az-burger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 21px;
}
.az-burger i {
    display: block;
    height: 2px;
    width: 100%;
    background: currentColor;
    transition:
        transform 0.15s,
        opacity 0.15s;
}
.az-catalog-toggle[aria-expanded='true'] .az-burger i:first-child {
    transform: translateY(6px) rotate(45deg);
}
.az-catalog-toggle[aria-expanded='true'] .az-burger i:nth-child(2) {
    opacity: 0;
}
.az-catalog-toggle[aria-expanded='true'] .az-burger i:last-child {
    transform: translateY(-6px) rotate(-45deg);
}
.az-header-search {
    flex: 1;
    min-width: 160px;
}
.az-header-search form {
    margin: 0 !important;
    position: relative;
}
.az-header-search .az-search-fallback,
.az-header-search form.is-search-form {
    display: flex !important;
    align-items: stretch;
    border: 1px solid var(--az-accent);
    border-radius: 5px;
    background: #fff;
    min-height: 48px;
    width: 100%;
}
.az-header-search form label:not(.az-sr-only) {
    flex: 1;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    display: block !important;
    float: none !important;
}
.az-header-search input[type='search'],
.az-header-search input.is-search-input {
    width: 100% !important;
    height: 46px !important;
    min-height: 46px;
    border: 0 !important;
    border-radius: 5px;
    background: transparent !important;
    padding: 0 48px 0 14px !important;
    color: #202125;
    font:
        400 14px Manrope,
        Arial,
        sans-serif;
    box-shadow: none !important;
    outline-offset: -3px;
}
.az-header-search button,
.az-header-search input[type='submit'] {
    position: absolute !important;
    right: 1px;
    top: 1px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 45px !important;
    height: 44px !important;
    min-width: 0;
    border: 0 !important;
    background: transparent !important;
    color: var(--az-accent) !important;
    padding: 10px !important;
    border-radius: 4px;
    cursor: pointer;
}
.az-header-search svg {
    width: 23px;
    height: 23px;
    stroke: currentColor;
    stroke-width: 2;
}
.az-header-search .is-search-icon {
    border: 0 !important;
    background: transparent !important;
    color: var(--az-accent) !important;
    padding: 0 !important;
    width: 24px !important;
    height: 24px !important;
}
.az-header-search .is-search-icon svg {
    fill: var(--az-accent);
}
.az-header-account {
    display: flex;
    gap: 18px;
    align-items: center;
    font-size: 13px;
    white-space: nowrap;
}
.az-header-account a {
    color: #5b606b;
}
.az-header-account a:hover {
    color: var(--az-accent);
}
.az-header-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 62px;
}
.az-primary-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 13px;
    font-weight: 600;
}
.az-primary-nav > a,
.az-primary-nav > .first-dropdown > .first-dropdown-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 54px;
	font-size: 16px;
    font-weight: 500;
}
.az-primary-nav a:hover {
    color: var(--az-accent);
}
.az-primary-nav .first-dropdown {
    position: relative;
}
.az-primary-nav .first-dropdown-content {
    max-height: min(65vh, 600px);
    overflow: auto;
    z-index: 60;
}
.az-primary-nav .first-dropdown:focus-within > .first-dropdown-content {
    display: block;
}
.az-header-access {
    flex-shrink: 0;
    font-size: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
}
.az-header-access a,
.az-header-access button {
    font-family: inherit;
    font-size: 12px;
}
.az-access-button {
    border: 0;
    background: none;
    cursor: pointer;
    color: #5b606b;
    padding: 8px 0;
}
.az-mobile-toggle {
    display: none;
    background: none;
    border: 1px solid #e7e7e8;
    border-radius: 5px;
    color: #202125;
    padding: 12px;
    min-height: 46px;
    cursor: pointer;
}
.az-catalog {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 18px 28px #20212524;
    max-height: calc(100dvh - 180px);
    overflow: auto;
    overscroll-behavior: contain;
}
.az-catalog-inner {
    padding-top: 24px;
    padding-bottom: 30px;
}
.az-catalog-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.az-catalog-heading h2 {
    font-size: 24px;
    letter-spacing: -0.5px;
    margin: 0;
}
.az-catalog-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 28px;
    border: 1px solid #e7e7e8;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}
.az-catalog-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 30px;
}
.az-catalog-categories {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-self: start;
}
.az-catalog-categories button {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    width: 100%;
    text-align: left;
    border: 0;
    border-radius: 5px;
    background: #f6f6f6;
    padding: 14px 16px;
    font:
        600 12px/1.5 Manrope,
        Arial,
        sans-serif;
    cursor: pointer;
    color: #30343b;
}
.az-catalog-categories button span {
    color: #8a8d94;
    font-size: 11px;
}
.az-catalog-categories button.is-active {
    color: var(--az-accent);
    background: #fbecee;
}
.az-catalog-categories button:hover {
    background: #f2e7e8;
}
.az-catalog-courses {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 26px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.az-catalog-courses li {
    min-width: 0;
    border-bottom: 1px solid #ececef;
}
.az-catalog-courses a {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 28px 16px 0;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.az-catalog-courses a:hover {
    color: var(--az-accent);
}
.az-catalog-courses small {
    color: #8a8d94;
    font-size: 10px;
    font-weight: 400;
}
.az-course-arrow {
    position: absolute;
    right: 0;
    top: 17px;
    color: var(--az-accent);
    font-size: 18px;
}
.az-catalog-empty {
    padding: 20px 0;
    color: #737780;
}
.az-header button:focus-visible,
.az-header a:focus-visible,
.az-header input:focus-visible {
    outline: 2px solid var(--az-accent);
    outline-offset: 3px;
}
.az-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
@media (max-width: 1200px) {
    .az-header-row {
        gap: 12px;
    }
    .az-header-help {
        display: none;
    }
    .az-header-account {
        gap: 12px;
    }
    .az-header-logo {
        flex-basis: 110px;
    }
    .az-header-logo img {
        width: 110px;
    }
    .az-primary-nav {
        gap: 18px;
    }
}
@media (max-width: 900px) {
    .az-header-row {
        flex-wrap: wrap;
        gap: 12px;
        min-height: 0;
    }
    .az-header-logo {
        margin-right: auto;
    }
    .az-header-account {
        margin-left: auto;
    }
    .az-header-search {
        order: 5;
        flex-basis: 100%;
        width: 100%;
    }
    .az-mobile-toggle {
        display: flex;
    }
    .az-header-nav-row {
        min-height: 42px;
        gap: 12px;
        align-items: stretch;
    }
    .az-primary-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: 65dvh;
        overflow: auto;
        background: #fff;
        box-shadow: 0 12px 20px #20212520;
        padding: 12px 28px;
    }
    .az-primary-nav.is-open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .az-primary-nav > a,
    .az-primary-nav > .first-dropdown > .first-dropdown-title {
        min-height: 44px;
    }
    .az-primary-nav .first-dropdown-content {
        position: static;
        box-shadow: none;
        border: 0;
        max-height: none;
        display: block !important;
        padding: 0 0 8px 14px;
        min-width: 0;
    }
    .az-header-access {
        margin-left: auto;
        display: flex;
        align-items: center;
    }
    .az-catalog {
        max-height: calc(100dvh - 210px);
    }
    .az-catalog-layout {
        grid-template-columns: 230px minmax(0, 1fr);
        gap: 20px;
    }
    .az-catalog-courses {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .admin-bar .az-header {
        top: 46px;
    }
    .az-header .wrap {
        padding-left: 18px;
        padding-right: 18px;
    }
    .az-header-logo {
        flex-basis: 95px;
    }
    .az-header-logo img {
        width: 95px;
        height: 38px;
    }
    .az-header-account {
        order: 6;
        flex-basis: 100%;
        justify-content: flex-end;
        font-size: 12px;
        gap: 20px;
        padding: 1px 0 2px;
    }
    .az-header-row {
        gap: 10px;
    }
    .az-catalog-toggle {
        padding: 11px 13px;
        min-height: 43px;
        font-size: 12px;
    }
    .az-mobile-toggle {
        min-height: 43px;
        padding: 10px;
    }
    .az-header-search input[type='search'],
    .az-header-search input.is-search-input {
        height: 43px !important;
        min-height: 43px;
    }
    .az-header-search .az-search-fallback,
    .az-header-search form.is-search-form {
        min-height: 45px;
    }
    .az-header-search button {
        height: 41px !important;
    }
    .az-header-nav-row {
        min-height: 38px;
    }
    .az-catalog {
        max-height: calc(100dvh - 250px);
    }
    .az-catalog-inner {
        padding-top: 18px;
    }
    .az-catalog-heading {
        margin-bottom: 14px;
    }
    .az-catalog-heading h2 {
        font-size: 20px;
    }
    .az-catalog-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .az-catalog-categories {
        display: flex;
        flex-direction: row;
        overflow: auto;
        max-width: 100%;
        padding-bottom: 8px;
        gap: 7px;
    }
    .az-catalog-categories button {
        flex: 0 0 auto;
        width: auto;
        max-width: 240px;
        min-height: 46px;
        padding: 10px 12px;
        font-size: 11px;
    }
    .az-catalog-courses a {
        padding-top: 13px;
        padding-bottom: 13px;
    }
    .az-primary-nav {
        padding-left: 18px;
        padding-right: 18px;
    }
}
@media (max-width: 782px) and (min-width: 601px) {
    .admin-bar .az-header {
        top: 46px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .az-header * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
.az-search-results h1 {
    font-size: clamp(28px, 4vw, 44px);
    overflow-wrap: anywhere;
}
.az-search-result-list {
    max-width: 900px;
}
.az-search-result-list article {
    padding: 24px 0;
    border-bottom: 1px solid #e7e7e8;
}
.az-search-result-list h2 {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.4;
}
.az-search-result-list article > a {
    color: var(--red, #c51e27);
    font-weight: 700;
    font-size: 13px;
}
.az-course-directory [hidden] {
    display: none !important;
}
.az-home-directory {
    padding: 26px;
    border: 1px solid #e7e7e8;
    border-radius: 6px;
    background: #fff;
}
.az-home-directory .az-catalog-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
}
.az-home-directory .az-catalog-categories button {
    background: #f6f6f6;
}
.az-home-directory .az-catalog-categories button.is-active {
    background: #fbecee;
}
.az-home-directory .az-catalog-courses {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
}
.az-home-directory .az-catalog-courses a {
    font-size: 14px;
    padding-top: 18px;
    padding-bottom: 18px;
}
.az-home-directory .az-catalog-courses small {
    font-size: 11px;
}
@media (max-width: 900px) {
    .az-home-directory {
        padding: 20px;
    }
    .az-home-directory .az-catalog-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 20px;
    }
    .az-home-directory .az-catalog-courses {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .az-home-directory {
        padding: 16px;
    }
    .az-home-directory .az-catalog-layout {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .az-home-directory .az-catalog-courses a {
        padding-top: 14px;
        padding-bottom: 14px;
        font-size: 13px;
    }
}
