/* YASSY.TECH — HEADER STYLES
   Бастапқы style.css ішінен бөлінген.
   Ескі style.css-ті сақтық көшірмесіз өшірмеңіз.
*/
.site-header {
    height:82px;
    position:sticky;
    top:0;
    z-index:30;
    background:#ffffffed;
    border-bottom:1px solid #e6eff3;
    backdrop-filter:blur(12px)
}

.brand {
    display:flex;
    align-items:center;
    gap:11px;
    flex-shrink:0
}

.brand-mark {
    display:grid;
    place-items:center;
    width:42px;
    height:42px;
    background:var(--teal);
    color:#fff;
    font-weight:900;
    font-size:24px;
    border-radius:15px 15px 15px 4px;
    transform:rotate(-3deg);
    box-shadow:0 6px 15px #079da52a
}

.brand-text {
    display:flex;
    flex-direction:column;
    line-height:1.1
}

.brand-text strong {
    font-size:20px;
    letter-spacing:-.6px;
    color:#10244a
}

.brand-text small {
    font-size:10px;
    color:#455874;
    margin-top:5px;
    white-space:nowrap
}

@media(max-width:980px) {
.site-header {
        height:72px
    }
}

@media(max-width:980px) {
.brand-text small {
        display:none
    }
}

@media(max-width:600px) {
.brand-mark {
        width:36px;
        height:36px;
        font-size:20px
    }
}

@media(max-width:600px) {
.brand-text strong {
        font-size:17px
    }
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    display: block;
    width: 230px;
    height: 65px;
    object-fit: contain;
    object-position: left center;
}

@media (max-width: 768px) {
.logo-img {
        width: 165px;
        height: 48px;
    }
}

/* ===== ЛОГОТИПТЕР: жоғарғы мәзір және футер ===== */
.site-header .brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    width: auto;
    max-width: 270px;
    min-width: 0;
}

.site-header .brand-logo {
    display: block;
    width: 230px;
    height: 58px;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
    flex-shrink: 0;
}

#footer .footer-brand a.brand {
    display: inline-flex;
    align-items: center;
    width: auto;
    max-width: 100%;
    min-width: 0;
    line-height: 0;
}

#footer .footer-brand a.brand img.brand-logo {
    display: block;
    width: 280px !important;
    height: 88px !important;
    max-width: 100% !important;
    min-width: 0;
    object-fit: contain !important;
    object-position: left center !important;
    flex: 0 1 280px;
}

@media (max-width: 980px) {
#footer .footer-brand a.brand img.brand-logo {
        width: 260px !important;
        height: 78px !important;
        flex-basis: 260px;
    }
}

@media (max-width: 600px) {
#footer .footer-brand a.brand img.brand-logo {
        width: 240px !important;
        height: 72px !important;
        flex-basis: 240px;
    }
}

footer .footer-brand > .brand {
    display: inline-flex !important;
    width: auto !important;
    max-width: 100%;
    align-items: center;
}

footer .footer-brand .brand-logo {
    display: block !important;
    width: 300px !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: contain;
    object-position: left center;
    flex-shrink: 0;
}

@media (max-width: 600px) {
footer .footer-brand .brand-logo {
        width: 240px !important;
        max-width: 100% !important;
    }
}

/* =========================================================
   YASSY.TECH — FINAL HEADER / NAV / DROPDOWN OVERRIDES
   Осы бөлімді style.css файлының ең соңында қалдырыңыз.
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: visible;
    isolation: isolate;
    background: rgba(255, 255, 255, .97);
}

/* Хедердің артында ешбір dropdown қалмасын */
.site-header,
.site-header .nav-wrap,
.site-header .nav-right,
.site-header .lang-switch {
    overflow: visible;
}

/* Логотип өлшемі: хедер */
.site-header .brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    max-width: 270px;
    min-width: 0;
}

.site-header .brand-logo {
    display: block;
    width: 230px;
    height: 58px;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
}

/* Логотип өлшемі: футер */
#footer .footer-brand .brand-logo {
    display: block;
    width: 300px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
}

@media (max-width: 600px) {
.site-header .brand-logo {
        width: 185px;
        height: 48px;
    }
}

@media (max-width: 600px) {
#footer .footer-brand .brand-logo {
        width: 240px;
        height: auto;
    }
}

/* YASSY.TECH — навигацияны бір сызыққа туралау */
.site-header {
    height: 82px;
    margin: 0;
    padding: 0;
}

.site-header .nav-wrap {
    width: min(1500px, 94%);
    height: 100%;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 18px;
}

.site-header .brand {
    flex: 0 0 auto;
    margin: 0;
}

.site-header .brand-logo {
    display: block;
    width: 190px;
    height: 58px;
    object-fit: contain;
}

.site-header .main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    gap: clamp(10px, 1.4vw, 22px);
}

.site-header .main-nav a {
    flex-shrink: 0;
    padding-top: 29px;
    padding-bottom: 26px;
    white-space: nowrap;
}

.site-header .search {
    flex: 0 1 240px;
    width: 240px;
    min-width: 145px;
    margin: 0;
}

.site-header .nav-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.site-header .btn {
    white-space: nowrap;
}

@media (max-width: 1200px) and (min-width: 981px) {
.site-header .nav-wrap {
        gap: 12px;
        width: 96%;
    }
}

@media (max-width: 1200px) and (min-width: 981px) {
.site-header .brand-logo {
        width: 165px;
    }
}

@media (max-width: 1200px) and (min-width: 981px) {
.site-header .main-nav {
        gap: 10px;
    }
}

@media (max-width: 1200px) and (min-width: 981px) {
.site-header .main-nav a {
        font-size: 11px;
    }
}

@media (max-width: 1200px) and (min-width: 981px) {
.site-header .search {
        width: 170px;
        min-width: 125px;
    }
}

@media (max-width: 1200px) and (min-width: 981px) {
.site-header .btn {
        padding-left: 13px;
        padding-right: 13px;
    }
}

@media (max-width: 980px) {
.site-header {
        height: 72px;
    }
}

@media (max-width: 980px) {
.site-header .nav-wrap {
        width: 92%;
        gap: 12px;
    }
}

@media (max-width: 980px) {
.site-header .main-nav {
        position: absolute;
        top: 100%;
        left: -4.35%;
        right: -4.35%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 5%;
        background: #fff;
    }
}

@media (max-width: 980px) {
.site-header .main-nav.open {
        display: flex;
    }
}

@media (max-width: 980px) {
.site-header .search {
        margin-left: auto;
    }
}

@media (max-width: 600px) {
.site-header .brand-logo {
        width: 155px;
        height: 46px;
    }
}

@media (max-width: 600px) {
.site-header .search {
        display: none;
    }
}

/* ==========================================================
   YASSY.TECH — СОҢҒЫ ҮЙЛЕСТІРУ
   Бұл блок қайталанған ескі ережелердің әсерін түзетеді.
   ========================================================== */

/* Header and navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 82px;
    overflow: visible;
    isolation: isolate;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid #e6eff3;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.site-header .nav-wrap {
    position: relative;
    width: min(1500px, 94%);
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
    overflow: visible;
}

.site-header .brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
    max-width: 250px;
}

.site-header .brand-logo {
    display: block;
    width: 205px;
    height: 56px;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
}

.site-header .main-nav {
    position: relative;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
    white-space: nowrap;
}

.site-header .main-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 82px;
    padding: 0;
    border-bottom: 3px solid transparent;
    color: #233653;
    font-size: 13px;
    font-weight: 650;
}

.site-header .main-nav a:hover,
.site-header .main-nav a.active {
    color: var(--teal);
    border-bottom-color: var(--teal);
}

.site-header .search {
    flex: 0 1 220px;
    width: 220px;
    min-width: 120px;
}

.site-header .nav-right {
    position: relative;
    z-index: 1003;
    display: flex;
    align-items: center;
    gap: 9px;
    overflow: visible;
}

.site-header .lang-switch {
    position: relative;
    z-index: 1004;
    display: flex;
    align-items: center;
    gap: 5px;
    overflow: visible;
}

.site-header .lang-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    z-index: 1100;
    min-width: 145px;
    margin: 0;
    padding: 7px;
    background: #fff;
    border: 1px solid #e5eef2;
    border-radius: 13px;
    box-shadow: 0 14px 34px rgba(16, 36, 74, .16);
}

.site-header .lang-switch:hover .lang-menu,
.site-header .lang-switch:focus-within .lang-menu {
    display: block;
}

.site-header .lang-menu a {
    display: block;
    padding: 9px 11px;
    border: 0;
    border-radius: 8px;
    color: var(--navy);
    font-size: 12px;
}

.site-header .lang-menu a:hover {
    color: var(--teal);
    background: var(--pale);
}

.site-header .menu-toggle {
    display: none;
    flex: 0 0 auto;
    padding: 7px;
    border: 0;
    background: transparent;
    color: var(--navy);
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

#footer .footer-brand > a.brand,
#footer .footer-brand > a.footer-logo {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-width: 0;
    line-height: 0;
}

#footer .footer-brand .brand-logo,
#footer .footer-brand .footer-logo img {
    display: block;
    width: 230px !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: contain;
    object-position: left center;
}

@media (max-width: 980px) {
.site-header .brand-logo {
        width: 185px;
        height: 48px;
    }
}

@media (max-width: 980px) {
.site-header .main-nav {
        position: absolute;
        top: 100%;
        left: -4.35%;
        right: -4.35%;
        z-index: 1050;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 10px 5% 14px;
        background: #fff;
        border-top: 1px solid #e5eef2;
        box-shadow: 0 16px 28px rgba(16, 36, 74, .14);
        white-space: normal;
    }
}

@media (max-width: 980px) {
.site-header .main-nav a {
        display: flex;
        min-height: 0;
        padding: 13px 8px;
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 980px) {
.site-header .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        order: 3;
    }
}

@media (max-width: 980px) {
.site-header .nav-right .btn {
        display: none;
    }
}

@media (max-width: 600px) {
.site-header .nav-wrap {
        width: 92%;
    }
}

@media (max-width: 600px) {
.site-header .brand-logo {
        width: 155px;
        height: 45px;
    }
}

@media (max-width: 600px) {
.site-header .nav-right {
        margin-left: auto;
    }
}

@media (max-width: 600px) {
#footer .footer-brand .brand-logo,
    #footer .footer-brand .footer-logo img {
        width: 195px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
.site-header *,
    #footer *,
    .site-footer * {
        transition: none !important;
    }
}

/* =========================================================
   YASSY.TECH — NAVIGATION ONLY
   Бірыңғай палитра: ақ, қою көк және көгілдір-жасыл.
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: visible;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid #E5EEF2;
    box-shadow: 0 4px 18px rgba(16, 36, 74, .045);
    backdrop-filter: blur(12px);
}

.site-header .nav-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.5vw, 24px);
    overflow: visible;
}

.site-header .brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
    max-width: 270px;
}

.site-header .brand-logo {
    display: block;
    width: 220px;
    height: 58px;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
}

.site-header .main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 1.45vw, 23px);
    margin-left: auto;
    white-space: nowrap;
    position: relative;
    z-index: 1001;
}

.site-header .main-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 82px;
    padding: 0 0 2px;
    border: 0;
    border-bottom: 3px solid transparent;
    color: #263B57;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
    transition: color .2s ease, border-color .2s ease;
}

.site-header .main-nav a:hover,
.site-header .main-nav a:focus-visible,
.site-header .main-nav a.active {
    color: #0B8F95;
    border-bottom-color: #0B8F95;
}

.site-header .nav-right {
    position: relative;
    z-index: 1003;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    overflow: visible;
}

.site-header .lang-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    overflow: visible;
}

.site-header .lang-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #10244A;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.site-header .lang-trigger:hover,
.site-header .lang-trigger:focus-visible,
.site-header .lang-trigger[aria-expanded="true"] {
    color: #0B8F95;
    background: #E7F7F8;
    border-color: #D2ECEE;
}

.site-header .lang-chevron {
    transition: transform .2s ease;
}

.site-header .lang-trigger[aria-expanded="true"] .lang-chevron {
    transform: rotate(180deg);
}

.site-header .lang-menu {
    display: none;
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    left: auto;
    z-index: 1100;
    min-width: 155px;
    margin: 0;
    padding: 7px;
    overflow: visible;
    background: #fff;
    border: 1px solid #DDECEF;
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(16, 36, 74, .16);
}

.site-header .lang-menu.show {
    display: block;
}

/* JavaScript-тегі .show класын негізгі басқару ретінде қолданамыз.
   Hover арқылы мәжбүрлі ашу жоқ — жабу батырмасы дұрыс жұмыс істейді. */
.site-header .lang-menu a {
    display: block;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    color: #263B57;
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
}

.site-header .lang-menu a:hover,
.site-header .lang-menu a:focus-visible {
    color: #0B8F95;
    background: #E7F7F8;
    outline: none;
}

.site-header .menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #DDECEF;
    border-radius: 11px;
    background: #fff;
    color: #10244A;
    cursor: pointer;
}

.site-header .menu-toggle:hover,
.site-header .menu-toggle:focus-visible {
    color: #0B8F95;
    background: #E7F7F8;
    border-color: #BFE4E6;
}

@media (max-width: 1200px) {
.site-header .nav-wrap {
        gap: 12px;
    }
}

@media (max-width: 1200px) {
.site-header .brand-logo {
        width: 190px;
    }
}

@media (max-width: 1200px) {
.site-header .main-nav {
        gap: 12px;
    }
}

@media (max-width: 1200px) {
.site-header .main-nav a {
        font-size: 12px;
    }
}

@media (max-width: 980px) {
.site-header .nav-wrap {
        width: 92%;
        height: 100%;
        gap: 12px;
    }
}

@media (max-width: 980px) {
.site-header .menu-toggle {
        display: inline-flex;
        order: 3;
        flex: 0 0 42px;
    }
}

@media (max-width: 980px) {
.site-header .nav-right {
        margin-left: auto;
    }
}

@media (max-width: 980px) {
.site-header .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: -4.35%;
        right: -4.35%;
        z-index: 1050;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        margin: 0;
        padding: 10px 5% 14px;
        white-space: normal;
        background: #fff;
        border-top: 1px solid #E5EEF2;
        box-shadow: 0 16px 28px rgba(16, 36, 74, .14);
    }
}

@media (max-width: 980px) {
.site-header .main-nav a {
        display: flex;
        min-height: 0;
        padding: 13px 10px;
        border-bottom: 1px solid #E5EEF2;
        font-size: 14px;
    }
}

@media (max-width: 980px) {
.site-header .main-nav a:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 980px) {
.site-header .main-nav a.active {
        border-bottom-color: #E5EEF2;
        box-shadow: inset 3px 0 #0B8F95;
        padding-left: 17px;
    }
}

@media (max-width: 980px) {
.site-header .lang-menu {
        top: calc(100% + 5px);
        right: 0;
    }
}

@media (max-width: 600px) {
.site-header .nav-wrap {
        width: calc(100% - 28px);
        gap: 8px;
    }
}

@media (max-width: 600px) {
.site-header .brand {
        max-width: min(58vw, 210px);
    }
}

@media (max-width: 600px) {
.site-header .brand-logo {
        width: min(185px, 100%);
        height: 46px;
    }
}

@media (max-width: 600px) {
.site-header .nav-right {
        gap: 4px;
    }
}

@media (max-width: 600px) {
.site-header .lang-trigger {
        gap: 4px;
        min-height: 38px;
        padding: 7px 6px;
        font-size: 11px;
    }
}

@media (max-width: 600px) {
.site-header .menu-toggle {
        width: 39px;
        height: 39px;
        flex-basis: 39px;
        font-size: 22px;
    }
}

@media (max-width: 600px) {
.site-header .main-nav {
        left: -14px;
        right: -14px;
        padding: 8px 14px 12px;
    }
}

@media (max-width: 600px) {
.site-header .lang-menu {
        min-width: 135px;
    }
}

@media (prefers-reduced-motion: reduce) {
.site-header .main-nav a,
    .site-header .lang-trigger,
    .site-header .lang-chevron {
        transition: none;
    }
}

h1, h2, h3, h4, h5, h6,
.brand-text strong,
.quick-content strong,
.course-info h3,
.advantage-grid strong,
.footer-main > div > strong {
    font-family: var(--font-heading) !important;
    color: #142b50;
    font-optical-sizing: auto;
}

.site-header .main-nav a {
    font-family: var(--font-body) !important;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: -0.16px;
}

.brand-text strong {
    font-weight: 800;
    letter-spacing: -0.8px;
}

.search input,
.lang-switch,
.site-header .btn {
    font-family: var(--font-body) !important;
    font-weight: 600;
}

.main-nav a,
.site-header .btn,
.btn,
button,
.hero-buttons .btn,
.text-link {
    font-family: var(--font-body) !important;
    font-weight: 650;
    letter-spacing: -0.18px;
}

/* YASSY.TECH — HEADER TYPOGRAPHY ONLY */

.site-header{
    font-family: "Plus Jakarta Sans", sans-serif !important;
}

/* Логотип мәтіні */
.site-header .logo,
.site-header .logo a,
.site-header .logo-text {
    font-weight: 800 !important;
    letter-spacing: -0.7px;
}

/* Навигация */
.site-header .main-nav a,
.site-header .main-nav button {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    letter-spacing: -0.2px !important;
    line-height: 1.5 !important;
}

/* Іздеу жолағы */
.site-header input,
.site-header .search-input {
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
}

/* Тіл таңдау */
.site-header .lang-switch,
.site-header .lang-menu a {
    font-size: 13px !important;
    font-weight: 600 !important;
}

/* Кіру және тіркелу */
.site-header .btn,
.site-header .btn-login,
.site-header .btn-register {
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: -0.1px !important;
}

/* COURSES DROPDOWN */
.site-header .nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.site-header .nav-dropdown-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 82px;
    color: #233653;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    border-bottom: 3px solid transparent;
}

.site-header .nav-dropdown-link:hover {
    color: var(--teal);
    border-bottom-color: var(--teal);
}

.site-header .dropdown-arrow {
    display: inline-block;
    font-size: 18px;
    transition: transform .2s ease;
}

.site-header .nav-dropdown:hover .dropdown-arrow,
.site-header .nav-dropdown:focus-within .dropdown-arrow {
    transform: rotate(180deg);
}

.site-header .nav-dropdown-menu {
    position: absolute;
    top: calc(100% - 2px);
    left: -16px;
    z-index: 2000;
    display: none;
    width: 245px;
    padding: 10px;
    background: #fff;
    border: 1px solid #e5eef2;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(16, 36, 74, .13);
}

.site-header .nav-dropdown:hover .nav-dropdown-menu,
.site-header .nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
}

.site-header .nav-dropdown-menu a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    color: #233653;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 9px;
    transition: background .2s ease, color .2s ease;
}

.site-header .nav-dropdown-menu a:hover {
    color: var(--teal);
    background: #e7f7f8;
}

@media (max-width: 900px) {
.site-header .nav-dropdown {
        height: auto;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 900px) {
.site-header .nav-dropdown-link {
        min-height: 45px;
        justify-content: space-between;
        border-bottom: 0;
    }
}

@media (max-width: 900px) {
.site-header .nav-dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        margin-bottom: 8px;
        box-shadow: none;
        border-radius: 10px;
    }
}

@media (max-width: 900px) {
.site-header .nav-dropdown:hover .nav-dropdown-menu,
    .site-header .nav-dropdown:focus-within .nav-dropdown-menu {
        display: block;
    }
}
