main > .container {
    padding: 70px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.form-group {
    margin-bottom: 1rem;
}

/* ========== Landing page ========== */
.landing-navbar {
    background: linear-gradient(135deg, #1a1d29 0%, #252a3a 100%) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.navbar-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

.landing-navbar .language-switcher .btn {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}
.landing-navbar .language-switcher .btn:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}
.landing-navbar .language-switcher .dropdown-menu {
    border: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Мобильная верстка: языковой виджет не выходит за край экрана */
@media (max-width: 767px) {
    .landing-navbar .language-switcher .dropdown-menu {
        left: 12px !important;
        right: 12px !important;
        width: auto;
        max-width: none;
        max-height: 70vh;
        overflow-y: auto;
    }
}

.landing-footer {
    background: linear-gradient(180deg, #f0f2f5 0%, #e4e7ec 100%);
    border-top: 1px solid #dee2e6;
}

.landing-page {
    padding-top: 56px;
}

/* Hero */
.landing-hero {
    position: relative;
    padding: 4rem 0 5rem;
    overflow: hidden;
}

.landing-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #0f1117 0%, #1a1f2e 40%, #162238 70%, #0d1424 100%);
    z-index: 0;
}

.landing-hero-bg::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(0, 136, 204, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.landing-hero .container {
    position: relative;
    z-index: 1;
}

.landing-hero-inner {
    max-width: 640px;
}

.landing-hero-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.landing-hero-tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: #6ee7b7;
    font-weight: 600;
    margin-bottom: 1rem;
}

.landing-hero-desc,
.landing-hero-cta-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.landing-hero-cta-desc {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.btn-telegram {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #0088cc 0%, #229ED9 100%);
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 136, 204, 0.4);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-telegram:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.5);
}

.btn-telegram-icon {
    font-size: 1.2em;
}

/* Features */
.landing-features {
    padding: 4rem 0;
    background: #fff;
}

.landing-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1d29;
    text-align: center;
    margin-bottom: 2.5rem;
}

.landing-card {
    height: 100%;
    padding: 1.75rem;
    background: #fff;
    border: 1px solid #e8eaef;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.25s, border-color 0.25s;
}

.landing-card:hover {
    border-color: #d0d5dd;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.landing-card-icon {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.landing-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1d29;
    margin-bottom: 0.75rem;
}

.landing-card-text {
    color: #5a6178;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Partners */
.landing-partners {
    padding: 4rem 0;
    background: linear-gradient(180deg, #f8f9fb 0%, #f0f2f5 100%);
}

.landing-partners-desc {
    text-align: center;
    color: #5a6178;
    max-width: 520px;
    margin: -0.5rem auto 2.5rem;
    line-height: 1.6;
}

.landing-partner-card {
    display: block;
    height: 100%;
    padding: 1.75rem;
    background: #fff;
    border: 1px solid #e8eaef;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.25s, border-color 0.25s, transform 0.2s;
}

.landing-partner-card:hover {
    border-color: #0088cc;
    box-shadow: 0 8px 24px rgba(0, 136, 204, 0.12);
    transform: translateY(-2px);
    color: inherit;
}

.landing-partner-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.landing-partner-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1d29;
    margin-bottom: 0.5rem;
}

.landing-partner-text {
    color: #5a6178;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.landing-partner-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0088cc;
}

.landing-partner-card:hover .landing-partner-link {
    color: #006ba3;
}