/* =========================
   CRM CARD (FINAL FIX)
   Align by top line + premium glass
========================= */

/* ===== WRAPPER ===== */
.crm-product-wrapper{
    max-width:1100px;
    margin:0 auto 60px auto;   /* убрали верхний отступ, чтобы поднять блок */
}

/* ===== TOP LINE ===== */
.crm-top-line{
    display:flex;
    align-items:center;
    margin-bottom:25px;
}

.crm-back{
    display:inline-flex;
    align-items:center;
    gap:6px;
    font-size:14px;
    color:#00ffb0;
    text-decoration:none;
    opacity:.85;
    transition:.2s;
}

.crm-back:hover{
    opacity:1;
    transform:translateX(-3px);
}

/* ===== CARD ===== */
.crm-product-card{
    position:relative;
    background:linear-gradient(135deg,
        rgba(18,25,35,0.82),
        rgba(12,18,28,0.90)
    );
    border:1px solid rgba(0,255,180,0.18);
    border-radius:26px;
    padding:50px;
    overflow:hidden;
    box-shadow:
        0 0 40px rgba(0,255,180,0.06),
        0 30px 90px rgba(0,0,0,0.55);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

/* премиум блик */
.crm-product-card::after{
    content:"";
    position:absolute;
    inset:0;
    border-radius:26px;
    background: radial-gradient(circle at 20% 10%, rgba(255,255,255,0.10), transparent 45%);
    pointer-events:none;
}

/* ===== HEADER ===== */
.crm-product-header{
    margin-bottom:30px;
    position:relative;
    z-index:2;
}

.crm-badge{
    font-size:12px;
    letter-spacing:.8px;
    text-transform:uppercase;
    color:#00ffb0;
    margin-bottom:12px;
    opacity:.85;
}

.crm-product-header h1{
    font-size:36px;
    font-weight:600;
    margin-bottom:10px;
}

.crm-product-header p{
    max-width:750px;
    font-size:16px;
    opacity:.78;
}

/* ===== SLIDER ===== */
.crm-slider{
    position:relative;
    margin:35px 0;
    height:360px;                 /* чуть компактнее */
    border-radius:20px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,0.06);
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
    position:relative;
    z-index:2;
}

.crm-slide{
    position:absolute;
    inset:0;
    opacity:0;
    transition:opacity .4s ease;
}

.crm-slide.active{
    opacity:1;
}

.crm-slide img{
    width:100%;
    height:100%;
    object-fit:cover;
}

/* стрелки */
.crm-prev,
.crm-next{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:42px;
    height:42px;
    border-radius:50%;
    border:none;
    background:rgba(0,0,0,0.55);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    color:#fff;
    font-size:20px;
    cursor:pointer;
    transition:.2s;
    z-index:3;
}

.crm-prev:hover,
.crm-next:hover{
    background:#00ffb0;
    color:#000;
}

.crm-prev{ left:15px; }
.crm-next{ right:15px; }

/* ===== FEATURES ===== */
.crm-columns{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:50px;
    margin-top:20px;
    position:relative;
    z-index:2;
}

.crm-col h3{
    margin-top:25px;
    margin-bottom:12px;
    font-size:17px;
    font-weight:600;
}

.crm-col ul{
    list-style:none;
    padding:0;
    margin:0;
    opacity:.88;
}

.crm-col li{
    margin-bottom:8px;
    font-size:14px;
}

/* ===== FOOTER ===== */
.crm-product-footer{
    margin-top:50px;
    padding-top:35px;
    border-top:1px solid rgba(255,255,255,0.07);
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:18px;
    position:relative;
    z-index:2;
}

.crm-price-main{
    font-size:24px;
    font-weight:600;
    color:#00ffb0;
}

.crm-price-secondary{
    font-size:15px;
    opacity:.6;
    margin-left:10px;
}

/* ===== BUTTONS ===== */
.crm-product-footer .btn-primary{
    padding:12px 26px;
    font-size:14px;
    border-radius:12px;
    text-decoration:none;          /* чтобы ссылка не подчеркивалась */
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

.crm-product-footer .btn-secondary{
    padding:12px 26px;
    font-size:14px;
    border-radius:12px;
    margin-left:12px;
    text-decoration:none;          /* чтобы ссылка не подчеркивалась */
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

/* =========================
   ✅ ALIGN FIX (самое важное)
========================= */

/* 3) У центральной части убираем любые верхние отступы */
.content{
    padding-top:0 !important;
    margin-top:0 !important;
}

/* 4) Никаких отрицательных padding (он не работает) */
.content{
    padding-top:0 !important;
}

/* 5) На всякий случай: если где-то есть profile-layout */
.profile-layout{
    padding-top:40px !important; /* чтобы не переопускал весь блок */
}
/* =========================
   FIX REAL ALIGN ISSUE
========================= */

.layout{
    align-items: flex-start !important;
}
/* ===== FIX ALIGN WITHOUT BREAKING HEADER ===== */

.crm-product-wrapper{
    margin-top: 30px !important; /* такой же отступ как у сайдбара */
}

.layout{
    align-items: stretch !important;
}

.content{
    display:flex;
    justify-content:center;
    padding-top: 30px;
}
/* =========================
   CRM-CARD: HARD ALIGN FIX
   (только эта страница)
========================= */

/* 1) В grid всегда прижимаем элементы к верху */
.layout{
  align-items: start !important;
}

/* 2) Центр. колонка НЕ должна иметь своего верхнего паддинга/центровки */
.content{
  padding-top: 0 !important;
  margin-top: 0 !important;
  display: block !important;        /* убираем flex-центрирование если оно было */
  align-self: start !important;
}

/* 3) Сам wrapper тоже прижимаем к верху и убираем верхний отступ */
.crm-product-wrapper{
  margin: 0 auto 60px auto !important;  /* ТОП = 0 */
  padding-top: 0 !important;
  align-self: start !important;
}

/* (если где-то был line-height/extra spacing сверху) */
.crm-product-card{
  margin-top: 0 !important;
}
