﻿:root{
    --ob-primary: #2a67d8;
    --ob-hero: #dbe9f7;
    --ob-soft: #eef6ff;
    --ob-text: #1f2a37;
}

/* База */
html, body { height: 100%; }
body{
    color: var(--ob-text);
    background: #fff;
}

.page-main{
    padding: 0;
}

/* Фон приложения (в стиле лендинга) */
.app-bg{
    background:
            radial-gradient(1200px 520px at 50% -60px, rgba(42,103,216,.14), transparent 60%),
            #ffffff;
    min-height: 100vh;
}

/* Верхняя панель */
.app-topbar{
    background: rgba(255,255,255,.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(16,24,40,.08);
}

/* Лого-маркер */
.brand-mark{
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(42,103,216,.12);
    color: var(--ob-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Поиск */
.search-pill{
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(16,24,40,.10);
    border-radius: 18px;
    box-shadow: 0 14px 36px rgba(15,23,42,.06);
}

.search-input{
    background: transparent !important;
    border: 0 !important;
    color: var(--ob-text) !important;
    padding: 18px 18px 18px 52px !important;
    font-size: 20px;
}

.search-input::placeholder{
    color: rgba(31,42,55,.45);
}

.search-icon{
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(42,103,216,.55);
}

/* Карточки (бывш. card-dark — теперь светлая) */
.card-dark{
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(16,24,40,.10);
    border-radius: 16px;
    box-shadow: 0 14px 36px rgba(15,23,42,.06);
}

/* Сайдбар */
.sidebar{
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(16,24,40,.10);
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(15,23,42,.05);
}

.sidebar .nav-link{
    color: rgba(31,42,55,.75);
    border-radius: 12px;
    padding: 12px 14px;
}

.sidebar .nav-link:hover{
    background: rgba(42,103,216,.08);
    color: var(--ob-primary);
}

.sidebar .nav-link.active{
    background: rgba(42,103,216,.12);
    color: var(--ob-primary);
    font-weight: 600;
}

/* Бейджи/счётчики */
.badge-counter{
    background: rgba(42,103,216,.10);
    border: 1px solid rgba(42,103,216,.20);
    color: var(--ob-primary);
}

/* Индикатор */
.dot-green{
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #29d17d;
    display: inline-block;
}

/* Плавный скролл + отступ под липкую шапку */
html{
    scroll-behavior: smooth;
    scroll-padding-top: 88px; /* под высоту header */
}

/* Сделаем шапку липкой, чтобы было как на лендинге */
.app-topbar, .landing-header{
    position: sticky;
    top: 0;
    z-index: 1030;
}

.hero-img{
    max-width: 520px;
    filter: drop-shadow(0 18px 40px rgba(15,23,42,.10));
    border-radius: 18px;
}

.about-img{
    max-width: 420px;
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(15,23,42,.06);
}

.icon-circle--img{
    padding: 10px;
}
.icon-circle--img img{
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

/* ------------------------------
   Landing
--------------------------------*/

.landing-nav-link{
    color: rgba(31,42,55,.65);
    text-decoration: none;
    font-size: 14px;
}
.landing-nav-link:hover{
    color: var(--ob-primary);
}

.btn-auth{
    border-radius: 999px;
    padding: 8px 16px;
    font-weight: 600;
    border: 1px solid rgba(42,103,216,.18);
    background: rgba(42,103,216,.10);
    color: var(--ob-primary);
}
.btn-auth:hover{
    background: rgba(42,103,216,.14);
    color: var(--ob-primary);
}

.landing-hero{
    background: var(--ob-hero);
    position: relative;
    overflow: hidden;
}
.landing-hero .container{
    padding-top: 72px;
    padding-bottom: 150px;
}
.landing-hero::after{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 140px;
    background: linear-gradient(to bottom, rgba(219,233,247,0), #fff);
    pointer-events: none;
}

.hero-visual{
    display: flex;
    justify-content: center;
}

.hero-title{
    color: var(--ob-primary);
    font-weight: 700;
    font-size: 46px;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.hero-subtitle{
    color: rgba(31,42,55,.60);
    font-size: 14px;
    line-height: 1.65;
    max-width: 520px;
}

@media (max-width: 991.98px){
    .hero-title{ font-size: 34px; }
    .hero-visual{ justify-content: flex-start; }
}

.landing-section{ background: #fff; }

.section-kicker{
    color: var(--ob-primary);
    font-weight: 600;
    font-size: 14px;
}

.landing-carousel{
    position: relative;
}

.landing-card{
    background: #fff;
    border: 1px solid rgba(42,103,216,.16);
    border-radius: 18px;
    padding: 28px;
    max-width: 980px;
    margin: 0 auto;
    box-shadow: 0 20px 70px rgba(15,23,42,.06);
}

.landing-carousel-control{
    width: 44px;
    height: 44px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    opacity: 1;
    color: rgba(31,42,55,.45);
}
.landing-carousel-control:hover{
    color: rgba(31,42,55,.75);
}
.landing-carousel .carousel-control-prev{ left: -56px; }
.landing-carousel .carousel-control-next{ right: -56px; }
.landing-carousel-control i{ font-size: 24px; }

@media (max-width: 991.98px){
    .landing-carousel .carousel-control-prev{ left: 8px; }
    .landing-carousel .carousel-control-next{ right: 8px; }
}

/* Индикаторы каруселей — маленькие точки как на макете */
.carousel-indicators [data-bs-target]{
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin: 0 4px;
    background-color: rgba(31,42,55,.25);
}
.carousel-indicators .active{
    background-color: rgba(31,42,55,.55);
}

.services-wrap{
    background: var(--ob-soft);
    border: 1px solid rgba(42,103,216,.12);
    box-shadow: 0 20px 60px rgba(15,23,42,.10);
}

.icon-circle{
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid rgba(42,103,216,.14);
    color: var(--ob-primary);
}
.icon-circle i{ font-size: 18px; }

.service-item .fw-semibold{ font-size: 13px; }
.service-item .fw-semibold::after{
    content: "";
    display: block;
    width: 26px;
    height: 2px;
    margin: 10px auto 0;
    border-radius: 2px;
    background: rgba(42,103,216,.35);
}
.service-item .small{ line-height: 1.55; }

.landing-section--audience{
    background: var(--ob-soft);
}

.audience-title{
    color: var(--ob-primary);
    font-weight: 700;
    font-size: 34px;
    line-height: 1.15;
}

.audience-card{
    background: #fff;
    border: 1px solid rgba(42,103,216,.12);
    min-height: 128px;
    box-shadow: 0 24px 70px rgba(15,23,42,.08);
}

/* Плейсхолдеры как на слайде «О компании» */
.about-tiles{
    max-width: 420px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
    padding: 16px;
    background: rgba(42,103,216,.04);
    border-radius: 16px;
}
.about-tiles .tile{
    background: rgba(42,103,216,.12);
    border-radius: 12px;
}
.about-tiles .tile-big{ grid-row: 1 / span 2; }

.ph-panels{
    max-width: 420px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
    padding: 16px;
    background: rgba(42,103,216,.04);
    border-radius: 16px;
}
.ph{
    background: rgba(42,103,216,.10);
    border-radius: 12px;
}
.ph.big{ grid-row: 1 / span 2; }

.landing-footer{
    background: #1f5fcf;
}
.brand-mark--footer{
    background: rgba(255,255,255,.14);
    color: #fff;
}

/* ------------------------------
   Landing: Offcanvas авторизации
--------------------------------*/

/* Затемнение как в макете */
.offcanvas-backdrop.show{
    opacity: .58;
}

.auth-offcanvas{
    width: 420px;
    border-left: 1px solid rgba(16,24,40,.08);
}

.auth-offcanvas .offcanvas-body{
    padding: 48px 44px;
}

.auth-title{
    font-size: 26px;
    line-height: 1.2;
    font-weight: 500;
    margin: 0 0 28px 0;
    color: rgba(31,42,55,.95);
}

.auth-form{
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-field{
    position: relative;
}

.auth-control{
    height: 52px;
    border-radius: 12px;
    border: 0;
    background: rgba(42,103,216,.18);
    padding-right: 42px;
    padding-left: 18px;
    font-weight: 500;
    color: rgba(31,42,55,.92);
    box-shadow: none !important;
}

.auth-control::placeholder{
    color: rgba(255,255,255,.85);
}

.auth-control:focus{
    background: rgba(42,103,216,.22);
    outline: none;
}

.auth-clear{
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 0;
    background: transparent;
    color: rgba(31,42,55,.75);
    font-size: 22px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0;
    transition: opacity .12s ease;
}

.auth-clear:hover{
    color: rgba(31,42,55,.95);
}

.auth-submit{
    align-self: flex-start;
    border-radius: 10px;
    padding: 10px 28px;
    font-weight: 600;
}

@media (max-width: 575.98px){
    .auth-offcanvas{ width: 100vw; }
    .auth-offcanvas .offcanvas-body{ padding: 36px 22px; }
}