/* ===== life-is-dive-v2.css — Phase B design tokens =====
 * Загружается ПОСЛЕ style.css. Только переопределения, без полного ребилда.
 * Phase B: tokens + Inter + navbar + типографический логотип.
 */

:root {
    /* Палитра */
    --lid-primary:    #0EA5E9;   /* sky-blue */
    --lid-primary-dk: #0284C7;
    --lid-primary-lt: #38BDF8;
    --lid-cta:        #0EA5E9;   /* CTA в цвет логотипа (sky-blue) — монохромная палитра */
    --lid-cta-dk:     #0284C7;
    --lid-bg:         #F0F9FF;   /* sky-50 */
    --lid-ink:        #0F172A;   /* slate-900 */
    --lid-ink-2:      #334155;   /* slate-700 */
    --lid-ink-3:      #64748B;   /* slate-500 */
    --lid-line:       #E2E8F0;   /* slate-200 */
    --lid-surface:    #FFFFFF;
    --lid-surface-2:  #F8FAFC;   /* slate-50 */

    /* Spacing 4px scale */
    --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
    --s-6: 24px; --s-8: 32px; --s-12: 48px; --s-16: 64px;

    --radius-sm: 6px;
    --radius:    10px;
    --radius-lg: 14px;
}

/* ===== Typography (Inter) =====
 * Inter подключаем через <link> в base.html. Тут только применение.
 */
body,
.navbar,
.btn,
button,
input,
select,
textarea,
.dropdown-menu,
.footer {
    font-family: 'Inter', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    color: var(--lid-ink);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Inter', 'Open Sans', sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--lid-ink);
}
h1, .h1 { font-weight: 800; letter-spacing: -0.02em; }

/* Hero и любые .color-white контейнеры — текст белый, h-ки наследуют */
.color-white,
.color-white h1, .color-white h2, .color-white h3,
.color-white h4, .color-white h5, .color-white h6,
.color-white p, .color-white a {
    color: #fff;
}
/* Hero h1 на главной — добавить мягкую тень, чтобы читался поверх фото */
.pattern-overlay_top h1 {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
    font-weight: 800;
    letter-spacing: 0.02em;
}
.pattern-overlay_top p {
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

/* ===== Navbar =====
 * style.css даёт navbar-default; переопределяем тонкими правилами поверх.
 */
.navbar.navbar-mod,
.navbar-default.navbar-mod {
    background-color: var(--lid-surface);
    border-bottom: 1px solid var(--lid-line);
    box-shadow: none;
}

.navbar-mod .nav > li > a {
    color: var(--lid-ink-2);
    font-weight: 500;
    transition: color .12s ease;
}
.navbar-mod .nav > li > a:hover,
.navbar-mod .nav > li > a:focus {
    color: var(--lid-primary);
    background: transparent;
}

.navbar-mod .header-create-btn > a {
    background: #0F172A !important;
    color: #fff !important;
    border-radius: var(--radius) !important;
    padding: 8px 18px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    display: inline-block !important;
    margin: 0 !important;
    max-height: 40px !important;
    align-self: center !important;
    transition: background .12s ease;
}
.navbar-mod .header-create-btn > a:hover {
    background: var(--lid-primary-dk) !important;
    color: #fff !important;
}

.navbar-mod .nav-username {
    color: var(--lid-ink) !important;
    font-weight: 500;
    text-transform: none;
}

/* ===== Типографический логотип ===== */
.header-logo.lid-logo {
    display: inline-flex;
    align-items: baseline;
    text-decoration: none !important;
    padding: 0;
    margin-left: 4px;
    line-height: 1;
    align-self: center;
}
.navbar.navbar-mod { min-height: 64px; }

/* Desktop: flex-выравнивание navbar items по центру.
 * На mobile (<768px) navbar collapse — оставляем bootstrap-block-разметку. */
@media (min-width: 768px) {
    .navbar.navbar-mod > .container-fluid { display: flex; align-items: center; min-height: 64px; padding-left: 20px; padding-right: 20px; }
    .navbar.navbar-mod .navbar-header { display: flex; align-items: center; min-height: 64px; float: none; margin: 0; }
    .navbar.navbar-mod .navbar-right { display: flex; align-items: center; margin-left: auto; margin-right: 0 !important; padding-right: 0; }
    .navbar.navbar-mod .navbar-nav.user-info { display: flex; align-items: center; margin: 0; flex-wrap: nowrap; }
    .navbar.navbar-mod .navbar-nav.user-info > li { float: none; display: flex; align-items: center; height: 64px; flex-shrink: 0; }
    .navbar.navbar-mod .navbar-nav.user-info > li > a { padding-top: 0; padding-bottom: 0; display: flex; align-items: center; }
    .navbar.navbar-mod .navbar-nav.user-info > li.displayed-currency { padding-right: 4px; }
}

/* Currency pill (EUR/USD/...) — лёгкая outline-таблетка */
.navbar-mod .displayed-currency { position: static !important; }
.navbar-mod .displayed-currency > a {
    border: 1px solid #CBD5E1 !important;
    background: transparent !important;
    color: #334155 !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    align-self: center !important;
    margin: 0 !important;
    cursor: pointer;
    transition: border-color .12s ease, color .12s ease, background .12s ease;
}
.navbar-mod .displayed-currency > a:hover,
.navbar-mod .displayed-currency > a:focus {
    border-color: var(--lid-primary) !important;
    color: var(--lid-primary) !important;
    background: transparent !important;
}
.header-logo.lid-logo:hover,
.header-logo.lid-logo:focus { text-decoration: none !important; }

.lid-logo__mark {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 0.5px;
    color: var(--lid-primary);
    line-height: 1;
}
.lid-logo__dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--lid-primary-lt);
    display: inline-block;
    margin: 0 3px 0 2px;
    transform: translateY(-2px);
}
.lid-logo__tag {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--lid-ink-3);
    margin-left: 8px;
    padding-left: 8px;
    border-left: 1px solid var(--lid-line);
    transform: translateY(-1px);
}
@media (max-width: 480px) {
    .lid-logo__tag { display: none; }
    .lid-logo__mark { font-size: 19px; }
}

/* ===== Buttons (поверх существующих классов) ===== */
.button.button-light-green,
.btn.btn-primary {
    background: var(--lid-primary);
    border-color: var(--lid-primary);
    color: #fff;
    border-radius: var(--radius);
    font-weight: 600;
    transition: background .12s ease, border-color .12s ease;
}
.button.button-light-green:hover,
.btn.btn-primary:hover {
    background: var(--lid-primary-dk);
    border-color: var(--lid-primary-dk);
    color: #fff;
}

/* Главный hero-search button (был .button.button_main) */
.button.button_main {
    background: var(--lid-cta);
    border-color: var(--lid-cta);
    color: #fff;
    border-radius: var(--radius);
    font-weight: 600;
    letter-spacing: 0.4px;
    transition: background .12s ease;
}
.button.button_main:hover {
    background: var(--lid-cta-dk);
    border-color: var(--lid-cta-dk);
}

/* ===== Links ===== */
a { color: var(--lid-primary); transition: color .12s ease; }
a:hover, a:focus { color: var(--lid-primary-dk); text-decoration: none; }

/* ===== Footer — минимум: цвета ссылок и заголовков ===== */
.footer { background: var(--lid-ink) !important; }
.footer .footer_list-link a,
.footer .footer_bottom-link a,
.footer ul a { color: #E2E8F0 !important; transition: color .12s ease; }
.footer .footer_list-link a:hover,
.footer .footer_bottom-link a:hover,
.footer ul a:hover { color: #FFFFFF !important; text-decoration: none; }
.footer .footer_title { color: #FFFFFF !important; font-weight: 600 !important; }
.footer_logo_text1, .footer_logo_text2 { color: #FFFFFF !important; }
