#openMastersBtn {
    position: relative;
    z-index: 9999999;
}


/* -------------------------------------------------
   ТИТУЛ БЛОКА
------------------------------------------------- */
.sy-title {
    text-align: center;
    font-size: 40px;
    margin-bottom: 50px;
    font-weight: 700;
    color: #F17B13;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
}

.sy-title::after {
    content: "";
    width: 120px;
    height: 3px;
    background: #F17B13;
    display: block;
    margin: 12px auto 0;
    border-radius: 2px;
}

/* -------------------------------------------------
   ГРИД КАРТОЧЕК
------------------------------------------------- */
.competence-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* -------------------------------------------------
   КАРТОЧКА КОМПЕТЕНЦИИ
------------------------------------------------- */
.competence-card {
    background: #000;
    color: white;
    border-radius: 14px;
    padding: 45px 35px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    user-select: none;
}

.competence-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.55);
}

.comp-num {
    font-size: 38px;
    margin-bottom: 15px;
    color: #F17B13;
    font-weight: 600;
}

.comp-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.comp-desc {
    font-size: 14px;
    opacity: 0.8;
}

/* -------------------------------------------------
   АДАПТИВ ГРИДА
------------------------------------------------- */
@media (max-width: 1024px) {
    .competence-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .competence-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 0 16px;
    }
}

/* -------------------------------------------------
   МОДАЛКА
------------------------------------------------- */
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

.modal.active {
    display: flex;
}

.modal-bg {
    position: absolute;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
}

.modal-window {
    position: relative;
    background: #fff;
    max-width: 880px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 35px 40px;
    border-radius: 14px;
}

.modal-close {
    position: absolute;
    right: 16px;
    top: 16px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    line-height: 32px;
}

.modal-header {
    margin-bottom: 20px;
}

.modal-number {
    padding: 6px 12px;
    background: #000;
    color: white;
    font-size: 13px;
    border-radius: 6px;
    display: inline-block;
}

.modal-title {
    margin-top: 12px;
    font-size: 26px;
    font-weight: 700;
}

/* -------------------------------------------------
   АККОРДЕОН
------------------------------------------------- */
.acc-item {
    border-bottom: 1px solid #ddd;
    padding: 8px 0;
}

.acc-header {
    font-weight: 600;
    cursor: pointer;
    padding: 12px 0;
    font-size: 18px;
    position: relative;
}

.acc-header::after {
    content: "▸";
    position: absolute;
    right: 0;
    transition: 0.2s;
    font-size: 18px;
}

.acc-item.active .acc-header::after {
    transform: rotate(90deg);
}

.acc-body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: 0.3s ease;
}

.acc-item.active .acc-body {
    max-height: 1500px;
    opacity: 1;
    padding: 10px 0;
}

/* -------------------------------------------------
   КНОПКА В МОДАЛКЕ
------------------------------------------------- */
.modal-btn-wrap {
    text-align: center;
    margin-top: 30px;
}

.modal-btn {
    background: #F17B13;
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.modal-btn:hover {
    background: #a30a04;
}
