﻿html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
}

    .form-row .form-group {
        margin-right: 15px;
        flex: 1 1 auto;
    }

@media (max-width: 767px) {
    .form-row .form-group {
        flex: 1 1 100%;
        margin-right: 0;
    }
}

/* переносим пункты меню на новую строку, когда меню раскрыто */
@media (min-width: 768px) {
    #mainNavbar .navbar-nav {
        flex-wrap: wrap; /* разрешаем перенос */
        gap: .25rem .5rem; /* расстояние между пунктами */
    }

    #mainNavbar { /* чтобы ничего не «выпирало» визуально */
        overflow: hidden;
    }
    /* немного ужмём паддинги ссылок, чтобы влезало больше */
    .navbar .nav-link {
        padding: .5rem .6rem;
    }
}



/* ===== BLISS Landing (scoped) ===== */
:root {
    --bg: #f7f9fc;
    --bg-card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --brand: #2563eb; /* синий акцент */
    --ring: rgba(37,99,235,.35);
    --shadow: 0 10px 25px rgba(2, 6, 23, .08);
    --radius-xl: 20px;
    --radius-lg: 16px;
    --radius-md: 12px;
}

#bliss-landing {
    position: relative;
    isolation: isolate;
    min-height: calc(100vh - 120px);
    padding: 32px 16px 56px;
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
    overflow-x: hidden;
}

    /* ФОН: мягкие радиальные градиенты + тонкий паттерн */
    #bliss-landing::before,
    #bliss-landing::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -2;
    }

    #bliss-landing::before {
        background: radial-gradient(1200px 600px at -10% -10%, rgba(37,99,235,.18) 0%, rgba(37,99,235,0) 60%), radial-gradient(900px 500px at 110% -10%, rgba(14,165,233,.18) 0%, rgba(14,165,233,0) 60%), radial-gradient(800px 500px at 30% 120%, rgba(99,102,241,.14) 0%, rgba(99,102,241,0) 55%), var(--bg);
        filter: saturate(105%);
    }

    #bliss-landing::after {
        /* лёгкий «скетч кроссовка» как паттерн */
        background-image: url("data:image/svg+xml,%3Csvg width='1200' height='600' viewBox='0 0 1200 600' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M160 300c60-90 220-130 340-80 86 36 120 60 260 70 70 5 150-10 220-40' fill='none' stroke='%23c7d2fe' stroke-width='3' stroke-linecap='round' opacity='.35'/%3E%3Cpath d='M180 340c140 50 260 50 420-10' fill='none' stroke='%23dbeafe' stroke-width='2' opacity='.5'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: 0 0;
        background-size: cover;
        opacity: .6;
        z-index: -1;
        mix-blend-mode: multiply;
    }

/* HERO */
.hero {
    display: flex;
    justify-content: center;
    text-align: center;
}

.hero__inner {
    width: min(1100px, 100%);
    background: rgba(255,255,255,.75);
    backdrop-filter: blur(6px);
    border-radius: var(--radius-xl);
    padding: clamp(28px, 4vw, 48px);
    box-shadow: var(--shadow);
}

.hero__brand {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    color: var(--muted);
    font-weight: 600;
    letter-spacing: .02em;
}

.logo {
    font-weight: 800;
    color: var(--text);
}

.lang {
    padding: 6px 10px;
    background: #f1f5f9;
    border-radius: 999px;
    font-size: .9rem;
}

.hero__title {
    font-size: clamp(2.2rem, 4.8vw, 3.3rem);
    line-height: 1.05;
    margin: 6px 0 6px;
    font-weight: 800;
}

.hero__subtitle {
    font-size: clamp(1.05rem, 2.4vw, 1.3rem);
    color: var(--text);
    opacity: .9;
    margin: 0 0 4px;
    font-weight: 700;
}

.hero__tagline {
    color: var(--muted);
    margin-bottom: 18px;
}

.hero__search {
    margin: 8px auto 0;
    width: min(600px, 92%);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-card);
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(2,6,23,.06);
    border: 1px solid #e2e8f0;
}

    .hero__search svg {
        opacity: .55;
        flex: 0 0 auto;
    }

    .hero__search input {
        border: none;
        outline: none;
        width: 100%;
        background: transparent;
        font-size: 1rem;
        color: var(--text);
    }

        .hero__search input::placeholder {
            color: #94a3b8;
        }

/* Tiles */
.tiles {
    margin: 28px auto 8px;
    width: min(1100px, 100%);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.tile {
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: center;
    gap: 14px;
    padding: 18px;
    text-decoration: none;
    color: inherit;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid #e5e7eb;
    box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

    .tile:focus-visible, .tile:hover {
        transform: translateY(-2px);
        border-color: var(--brand);
        box-shadow: 0 12px 28px rgba(37,99,235,.18);
        outline: none;
    }

.tile__icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #eff6ff;
    color: var(--brand);
}

    .tile__icon svg {
        width: 28px;
        height: 28px;
    }

.tile__title {
    font-weight: 700;
}

.tile__hint {
    color: var(--muted);
    font-size: .92rem;
    margin-top: 2px;
}

/* Boards */
.boards {
    margin: 14px auto 0;
    width: min(1100px, 100%);
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1fr;
}

.board {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow);
    border: 1px solid #e5e7eb;
    min-height: 96px;
}

.board__title {
    font-weight: 700;
    margin-bottom: 8px;
}

.board__list {
    margin: 0;
    padding-left: 1rem;
    color: var(--muted);
}

.footer {
    text-align: center;
    color: #94a3b8;
    margin: 22px 0 0;
}

/* Адаптив */
@media (max-width: 760px) {
    .boards {
        grid-template-columns: 1fr;
    }

    .tile {
        grid-template-columns: 52px 1fr;
        padding: 16px;
    }

    .tile__icon {
        width: 52px;
        height: 52px;
    }
}



body {

    min-height: 100vh;
    background: radial-gradient(1200px 600px at -10% -10%, rgba(37,99,235,.18) 0%, rgba(37,99,235,0) 60%), radial-gradient(900px 500px at 110% -10%, rgba(14,165,233,.18) 0%, rgba(14,165,233,0) 60%), radial-gradient(800px 500px at 30% 120%, rgba(99,102,241,.14) 0%, rgba(99,102,241,0) 55%), #f7f9fc;

    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
    overflow-x: hidden;
}

    body::after {
        content: "";

        inset: 0;
        z-index: -1;
        background-image: url("data:image/svg+xml,%3Csvg width='1200' height='600' viewBox='0 0 1200 600' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M160 300c60-90 220-130 340-80 86 36 120 60 260 70 70 5 150-10 220-40' fill='none' stroke='%23c7d2fe' stroke-width='3' stroke-linecap='round' opacity='.35'/%3E%3Cpath d='M180 340c140 50 260 50 420-10' fill='none' stroke='%23dbeafe' stroke-width='2' opacity='.5'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: 0 0;
        background-size: cover;
        opacity: .6;
        mix-blend-mode: multiply;
        pointer-events: none;
    }