/* =========================================================
   РАЗДЕЛ ШАПКА
   ========================================================= */


/* =========================================================
   ОСНОВНАЯ ПАЛИТРА
   ========================================================= */

:root {

    --page-bg: #F5F7FA;
    --surface: #FFFFFF;

    --text-main: #111827;
    --text-secondary: #4B5563;
    --text-muted: #6B7280;

    --border: #D1D5DB;

    --blue: #1D4ED8;
    --blue-dark: #1E40AF;
    --blue-navy: #172554;

}


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

.header {

    display: flex;

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

    padding: 16px 26px;

}


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

.logo {

    font-family:
        Inter,
        system-ui,
        sans-serif;

    font-size: 18px;

    font-weight: 500;

    color: #4B5563;

    letter-spacing: 0;

}


/* =========================================================
   HEADER USER
   ========================================================= */

.header-user {

    display: flex;

    align-items: center;

    font-family:
        Inter,
        system-ui,
        sans-serif;

    font-size: 18px;

    font-weight: 500;

    line-height: 1.4;

    color: #1D4ED8;

    letter-spacing: 0;

}


/* =========================================================
   ИМЯ ПОЛЬЗОВАТЕЛЯ
   ========================================================= */

.header-user-name {

    margin-left: 5px;

    font-family:
        Inter,
        system-ui,
        sans-serif;

    font-size: 18px;

    font-weight: 600;

    line-height: 1.4;

    color: #1D4ED8;

}

/* =========================================================
   HEADER GREETING
   ========================================================= */

.header-greeting {

    font-family:
        Inter,
        system-ui,
        sans-serif;

    font-size: 18px;

    font-weight: 500;

    line-height: 1.4;

    color: #4B5563;

}


/* =========================================================
   HEADER SEPARATOR
   ========================================================= */

.header-separator {

    margin: 0 10px;

    color: var(--text-muted);

}


/* =========================================================
   HEADER LINK
   ========================================================= */

.header-link {

    font-family:
        Inter,
        system-ui,
        sans-serif;

    font-size: 18px;

    font-weight: 500;

    line-height: 1.4;

    color: #4B5563;

    text-decoration: none;

    transition:
        color .2s ease;

}


.header-link:hover {

    color: var(--text-main);

}


/* =========================================================
   CTA — РЕГИСТРАЦИЯ / ВОЙТИ
   ========================================================= */

.cta {

    display: inline-flex;

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

    padding: 10px 17px;

    background: var(--blue);

    color: #FFFFFF;

    border: 1px solid var(--blue);

    border-radius: 8px;

    font-family:
        Inter,
        system-ui,
        sans-serif;

    font-size: 18px;

    font-weight: 500;

    line-height: 1.4;

    text-decoration: none;

    cursor: pointer;

    box-shadow:
        0 1px 3px rgba(30, 64, 175, .15);

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

}


.cta:hover {

    background: var(--blue-dark);

    box-shadow:
        0 4px 10px rgba(30, 64, 175, .20);

    transform: translateY(-1px);

}


.cta:active {

    transform: translateY(0);

}


.cta:focus-visible {

    outline: 2px solid var(--blue);

    outline-offset: 2px;

}


/* =========================================================
   LOGOUT FORM
   ========================================================= */

.logout-form {

    margin: 0;

}


/* =========================================================
   КНОПКА ВЫХОДА
   ========================================================= */

.exit-button {

    display: inline-flex;

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

    padding: 10px 17px;

    background: #6B7280;

    color: #FFFFFF;

    border: 1px solid #6B7280;

    border-radius: 8px;

    font-family:
        Inter,
        system-ui,
        sans-serif;

    font-size: 18px;

    font-weight: 500;

    line-height: 1.4;

    text-decoration: none;

    cursor: pointer;

    box-shadow:
        0 1px 3px rgba(17, 24, 39, .12);

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

}


/* =========================================================
   КНОПКА ВЫХОДА — HOVER
   ========================================================= */

.exit-button:hover {

    background: #4B5563;

    border-color: #4B5563;

    color: #FFFFFF;

    box-shadow:
        0 4px 10px rgba(17, 24, 39, .18);

    transform: translateY(-1px);

}


/* =========================================================
   КНОПКА ВЫХОДА — ACTIVE
   ========================================================= */

.exit-button:active {

    transform: translateY(0);

    box-shadow:
        0 1px 3px rgba(17, 24, 39, .12);

}


/* =========================================================
   КНОПКА ВЫХОДА — FOCUS
   ========================================================= */

.exit-button:focus-visible {

    outline: 2px solid #6B7280;

    outline-offset: 2px;

}


/* --------------------------------------------------------- */


/* =========================================================
   ОСНОВНОЕ ИЗОБРАЖЕНИЕ
   =========================================================

.hero-image {

    width: 100%;

    overflow: hidden;

}


.hero-image img {

    display: block;

    width: 100%;

    height: auto;

}   */


/* --------------------------------------------------------- */

/* =========================================================
   СЧЕТЧИКИ
   ========================================================= */

.site-counters {

    display: flex;

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

    padding: 10px 0;

    font-family:
        Inter,
        system-ui,
        sans-serif;

    font-size: 18px;

    font-weight: 500;

    line-height: 1.4;

    color: #4B5563;

    margin-left: 26px;

}


/* =========================================================
   ЗНАЧЕНИЯ СЧЕТЧИКОВ
   ========================================================= */

.site-counter-value {

    color: #1D4ED8;

    font-weight: 600;

}


/* =========================================================
   РАЗДЕЛИТЕЛИ
   ========================================================= */

.site-counter-separator {

    margin: 0 12px;

    color: #9CA3AF;

    font-weight: 400;

}




/* --------------------------------------------------------- */

/* =========================================================
   ОБЁРТКА ОСНОВНОГО МЕНЮ
   ========================================================= */

.main-menu-wrapper {

    display: flex;

    align-items: center;

    width: 100%;

    padding: 14px 24px;

    background: var(--surface);

    border-bottom: 1px solid var(--border);

    box-sizing: border-box;

}


/* =========================================================
   ОСНОВНОЕ МЕНЮ
   ========================================================= */

.main-menu {

    display: flex;

    align-items: center;

    gap: 25px;

    flex: 1;

    margin-left: 26px;

}


/* =========================================================
   ПУНКТЫ ОСНОВНОГО МЕНЮ
   ========================================================= */

.main-menu a:not(.profile-cta) {

    position: relative;

    padding: 7px 2px;

    font-family:
        Inter,
        system-ui,
        sans-serif;

    font-size: 18px;

    font-weight: 500;

    color: #4B5563;

    line-height: 1.4;

    text-decoration: none;

    letter-spacing: 0.05px;

    /*
       Увеличиваем сам пункт, но не меняем
       его реальный размер в раскладке.
    */
    transform: scale(1);

    transform-origin: center center;

    transition:
        color .2s ease,
        transform .2s ease;

}


/* =========================================================
   ЛИНИЯ ПОД ПУНКТОМ
   ========================================================= */

.main-menu a:not(.profile-cta)::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -7px;

    width: 100%;

    height: 2px;

    background: #374151;

    border-radius: 2px;

    /*
       В обычном состоянии линия полностью
       схлопнута в центре.
    */
    transform: scaleX(0);

    transform-origin: center center;

    opacity: 0;

    transition:
        transform .25s ease,
        opacity .15s ease,
        background-color .2s ease;

}


/* =========================================================
   НАВЕДЕНИЕ
   ========================================================= */

.main-menu a:not(.profile-cta):hover {

    color: #374151;

    transform: scale(1.1);

}


/* =========================================================
   ЛИНИЯ ПРИ НАВЕДЕНИИ
   ========================================================= */

.main-menu a:not(.profile-cta):hover::after {

    transform: scaleX(1);

    opacity: 1;

}


/* =========================================================
   АКТИВНЫЙ ПУНКТ
   ========================================================= */

.main-menu a.active:not(.profile-cta) {

    color: #1D4ED8;

    font-weight: 600;

    transform: scale(1.1);

}


/* =========================================================
   ЛИНИЯ АКТИВНОГО ПУНКТА
   ========================================================= */

.main-menu a.active:not(.profile-cta)::after {

    background: #1D4ED8;

    transform: scaleX(1);

    opacity: 1;

}
/* =========================================================
   ПРАВАЯ ЧАСТЬ — ЛИЧНЫЙ КАБИНЕТ
   ========================================================= */

.main-menu-profile {

    display: flex;

    align-items: center;

    margin-left: 24px;

    flex-shrink: 0;

}


/* =========================================================
   ЛИЧНЫЙ КАБИНЕТ
   ========================================================= */

.profile-cta {

    display: inline-flex;

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

    gap: 10px;

    padding: 10px 17px;

    background: var(--blue);

    color: #FFFFFF;

    border: 1px solid var(--blue);

    border-radius: 8px;

    font-family:
        Inter,
        system-ui,
        sans-serif;

    font-size: 17px;

    font-weight: 500;

    line-height: 1.4;

    text-decoration: none;

    cursor: pointer;

    box-shadow:
        0 1px 3px rgba(30, 64, 175, .15);

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

}


/* =========================================================
   ЛИЧНЫЙ КАБИНЕТ — HOVER
   ========================================================= */

.profile-cta:hover {

    background: var(--blue-dark);

    box-shadow:
        0 4px 10px rgba(30, 64, 175, .20);

    transform: translateY(-1px);

}


/* =========================================================
   ЛИЧНЫЙ КАБИНЕТ — ACTIVE
   ========================================================= */

.profile-cta:active {

    transform: translateY(0);

}


/* =========================================================
   ЛИЧНЫЙ КАБИНЕТ — FOCUS
   ========================================================= */

.profile-cta:focus-visible {

    outline: 2px solid var(--blue);

    outline-offset: 2px;

}

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

.hero-image {
    position: relative;
}

.hero-image-base {
    display: block;
    width: 100%;
    height: auto;
}

.hero-image-logo {
    position: absolute;
    top: calc(50% + 20px);
    left: 50%;
    width: 330px;
    height: auto;
    transform: translate(-50%, -50%);
}


/* =========================================================
   ПЕРЕКЛЮЧАТЕЛЬ ВАЛЮТЫ
   ========================================================= */

.currency-switcher {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 8px;
    z-index: 101;
}


/* =========================================================
   ОСНОВНАЯ КНОПКА
   ========================================================= */

.currency-switcher-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 7px 5px;

    border: 1px solid transparent;
    border-radius: 6px;

    background: transparent;

    font-family: Inter, system-ui, sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.4;

    color: #4B5563;

    cursor: pointer;

    transform: scale(1);
    transform-origin: center;

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


/* =========================================================
   ФЛАГ
   ========================================================= */

.currency-switcher-flag {
    display: block;

    width: 24px;
    height: 17px;

    object-fit: contain;

    flex-shrink: 0;
	transform: translateY(1px);
}


/* =========================================================
   СТРЕЛКА
   ========================================================= */

.currency-switcher-arrow {
    display: block;
    flex-shrink: 0;

    transition: transform .2s ease;
}


/* =========================================================
   НАВЕДЕНИЕ НА ОСНОВНУЮ КНОПКУ
   ========================================================= */

.currency-switcher-trigger:hover {
    color: #374151;
    transform: scale(1.1);
}


/* =========================================================
   ОТКРЫТОЕ СОСТОЯНИЕ
   ========================================================= */

.currency-switcher-trigger.is-open {
    color: #1D4ED8;
    transform: scale(1.1);
}

.currency-switcher-trigger.is-open
.currency-switcher-arrow {
    transform: rotate(180deg);
}


/* =========================================================
   ВЫПАДАЮЩЕЕ ОКНО
   ========================================================= */

.currency-switcher-dropdown {
    position: absolute;

    top: calc(100% + 5px);
    right: 0;

    min-width: 116px;

    padding: 5px;

    background: #FFFFFF;

    border: 1px solid #E5E7EB;
    border-radius: 8px;

    box-shadow: 0 6px 18px rgb(0 0 0 / 10%);
}


/* =========================================================
   ФОРМЫ ВНУТРИ ОКНА
   ========================================================= */

.currency-switcher-dropdown form {
    margin: 0;
    padding: 0;
}


/* =========================================================
   ВАРИАНТ ВАЛЮТЫ
   ========================================================= */

.currency-switcher-option {
    display: flex;
    align-items: center;
    gap: 8px;

    width: 100%;

    padding: 8px;

    border: 1px solid transparent;
    border-radius: 6px;

    background: transparent;

    font-family: Inter, system-ui, sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.4;

    color: #4B5563;
    text-align: left;

    cursor: pointer;

    transition:
        color .15s ease,
        border-color .15s ease,
        background-color .15s ease;
}


/* =========================================================
   НАВЕДЕНИЕ НА ВАЛЮТУ
   ========================================================= */

.currency-switcher-option:hover {
    color: #1D4ED8;
    border-color: #1D4ED8;
    background: #F5F7FA;
}


/* =========================================================
   ТЕКУЩАЯ ВАЛЮТА
   ========================================================= */

.currency-switcher-option.is-selected {
    color: #1D4ED8;
    border-color: #1D4ED8;
    background: #FFFFFF;
}


/* =========================================================
   КЛАВИАТУРНЫЙ ФОКУС
   ========================================================= */

.currency-switcher-trigger:focus-visible,
.currency-switcher-option:focus-visible {
    outline: 2px solid #1D4ED8;
    outline-offset: 2px;
}


/* =========================================================
   АТРИБУТ HIDDEN
   ========================================================= */

.currency-switcher-dropdown[hidden] {
    display: none;
}

