:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-2: #f7f7f7;
    --text: #111111;
    --text-soft: #666666;
    --line: #e8e8e8;
    --primary: #111111;
    --primary-contrast: #ffffff;
    --accent: #111111;
    --accent-soft: #f3f3f3;
    --success: #198754;
    --danger: #dc3545;
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #111;
    background: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

main {
    min-height: 400px;
}

/* =========================
   HEADER / TOPBAR
   ========================= */

.hdr-top {
    min-height: 42px;
    display: flex;
    align-items: center;
    font-size: 13px;
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
    position: relative;
    z-index: 500;
    overflow: visible;
}

    .hdr-top .container {
        width: 100%;
    }

.hdr-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 42px;
    overflow: visible;
}

.hdr-top-left,
.hdr-top-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hdr-top-right {
    gap: 12px;
}

.hdr-promo {
    font-weight: 700;
    letter-spacing: .01em;
}

.hdr-links {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

    .hdr-links a {
        color: inherit;
        text-decoration: none;
        opacity: .92;
    }

        .hdr-links a:hover {
            opacity: 1;
        }

.hdr-main {
    min-height: 82px;
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    position: relative;
    z-index: 300;
}

.hdr-main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 82px;
}

.hdr-main-left,
.hdr-main-center,
.hdr-main-right {
    display: flex;
    align-items: center;
}

.hdr-main-left {
    gap: 14px;
}

.hdr-main-center {
    flex: 1 1 auto;
    min-width: 240px;
}

.hdr-main-right {
    gap: 12px;
    justify-content: flex-end;
}

.hdr-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

    .hdr-logo img {
        height: 42px;
        width: auto;
        object-fit: contain;
    }

.hdr-logo-text {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.hdr-search {
    display: flex;
    gap: 8px;
    width: 100%;
}

    .hdr-search input {
        flex: 1;
        height: 44px;
        border: 1px solid #dcdcdc;
        border-radius: 10px;
        padding: 0 14px;
        outline: none;
    }

    .hdr-search button {
        height: 44px;
        border: 0;
        border-radius: 10px;
        padding: 0 18px;
        cursor: pointer;
    }

.hdr-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}
/* =========================
   LANGUAGE DROPDOWN
   ========================= */

.lang-dd {
    position: relative;
    display: inline-block;
}

.lang-dd-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
    white-space: nowrap;
}

.lang-dd-name,
.lang-dd-item-name {
    display: inline-block;
    color: var(--text);
    line-height: 1.2;
    white-space: nowrap;
}

.lang-dd-caret {
    font-size: 12px;
    line-height: 1;
}

.lang-dd-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 190px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(0,0,0,.12);
    padding: 6px;
    display: none;
    z-index: 9000;
}

.lang-dd.open .lang-dd-menu {
    display: block;
}

.lang-dd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
}

    .lang-dd-item:hover {
        background: var(--accent-soft);
    }

.lang-flag-img {
    width: 18px;
    height: 18px;
    object-fit: cover;
    border-radius: 50%;
    flex: 0 0 18px;
}

.current-flag {
    width: 16px;
    height: 16px;
}

.item-flag {
    width: 18px;
    height: 18px;
}
/* =========================
   ACCOUNT DROPDOWN
   ========================= */

.acc-dd {
    position: relative;
    display: inline-block;
}

.acc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
    color: var(--text);
    white-space: nowrap;
}

.acc-caret {
    font-size: 12px;
    line-height: 1;
}

.acc-dd-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(0,0,0,.12);
    padding: 8px;
    display: none;
    z-index: 9000;
}

.acc-dd.open .acc-dd-menu {
    display: block;
}

.acc-dd-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
}

    .acc-dd-item:hover {
        background: var(--accent-soft);
    }

.acc-badge {
    color: #8dbfbb;
    font-weight: 700;
    font-size: 13px;
}

/* =========================
   HEADER SOCIAL ICONS
   ========================= */

.hdr-socials {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* icon button */

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 16px;
    color: #fff;
    text-decoration: none;
    opacity: .9;
    transition: all .2s ease;
}

    /* icon size */

    .social-btn i {
        font-size: 16px;
        line-height: 1;
    }

    /* hover */

    .social-btn:hover {
        opacity: 1;
        transform: translateY(-1px);
    }

