
.container-glossy{
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 165px;
}
.top-mr{
    padding: 80px 0 !important;
}
.glossary-title {
    color: #23426C;
    font-size: 62px;
    margin-bottom: 30px;
}

/* Стиль для основного контейнера */
.glossary-input-container {
    position: relative;
    width: 100%; /* Задайте ширину*/
}

/* Стиль для текстового поля с иконкой */
.glossary-input-with-icon {
    padding-left: 4rem; /* Добавляем отступ слева для иконки */
    border: 1px solid #3079D2;
    border-radius: 40px;
    width: 100%; /* Занимает всю доступную ширину */
    height: 4rem;

    background-image: url('./images/icon_search.svg'); /* Путь к изображению */
    background-size: 20px; /* Размер изображения */
    background-repeat: no-repeat;
    background-position: 1.5rem center; /* Располагаем изображение слева по центру вертикально */
}

/* Стиль при выделении фокус */
.glossary-input-with-icon:focus {
    outline: none; /* Убираем стандартное выделение при фокусе  */
}


.glossary-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.glossary-hr {
    flex-grow: 1;
    height: 0;
    border: none;
    border-top: 1px solid #fff; /* Цвет горизонтальной линии */
    margin: 0 3%; /* Расстояние между h1 и p */
}

.glossary-ABC {
    display: flex;
    /* justify-content: space-between; */
    width: 100%;
    margin-top: 1%;
    margin-bottom: 3%;
    flex-direction: row;
    flex-wrap: wrap;
    font-family: TT Norms;
    font-size: 27px;
    font-weight: 700;
    line-height: 32px;
}

.glossary-ABC-words {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    width: 100%;
    margin-bottom: 5%;
    color: #23426C;
    align-items: start;
    justify-items: start;
    column-gap: 10px;
}

.glossary-ABC-words-letter {
    margin: 20%;
    font-size: xxx-large;
}

.glossary-ABC-words a {
    color: #000000;
    font-size: medium;
    display: flex;

}

.glossary-ABC-activ a {
    display: inline-block;
    position: relative;
    padding: 20px;
    border-radius: 50%; /* Создаем круглую форму */
    transition: background-color 0.3s ease;
    text-decoration: none; /* Убираем подчеркивание для ссылки */
    color: #3079D2;
    padding: 15px;
    padding-bottom: 5px;
    padding-top: 3px;
}

.glossary-ABC-activ a:active,
.glossary-ABC-activ a:focus,
.glossary-ABC-activ:focus-within a {
    background-color: blue; /* Меняем цвет фона при активации или фокусировке */
    color: white; /* Меняем цвет текста на белый (чтобы он был виден на синем фоне) */
}

a {
    line-height: 1;
}

.glossary-ABC-words-description + .glossary-ABC-words-description {
    margin-top: 0.5em;
}

.block-gloss{
    width: 100%;
    border-radius: 43px;
}

.text-block-squared{
    font-family: TT Norms;
    font-size: 42px;
    font-weight: 700;
    line-height: 50px;
}

.text-block-squared-2{
    font-family: TT Norms;
    font-size: 18px;
    font-weight: 400;
    line-height: 21px;
}

.glossy-hr{
    transform: rotate(90deg); 
    width: 10%;
}
.glossy-term{
    color: #23426C; 
    font-family: TT Norms;
    font-size: 38px;
    font-weight: 700;
    line-height: 45px;
} 

.blocks-term{
    margin-top: 5%;
}
.mr-term{
    margin-top: -3%;
}
.d-grid-term{
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    width: 115%;
    row-gap: 40px;
}
.block-term{
    display: flex; 
    align-items: center;
}

.mr-big{
    margin-left: 10px; 
    flex: 1;
    margin-top: 5%;
    font-family: TT Norms;
    font-size: 18px;
    font-weight: 400;
    line-height: 17px;
}
.mr-small{
    margin-left: 10px; 
    flex: 1;
    font-family: TT Norms;
    font-size: 18px;
    font-weight: 400;
    line-height: 17px;
}
.mob{
    display: none;
}
.deck{
    display: block;
}
@media screen and (max-width:980px) {
    .mr-big{
        margin-top: 2%;
        font-size: 14px;
    }
    .mr-small{
        font-size: 14px;
    }
    .glossary-ABC {
        font-size: 22px;
        line-height: 25px;
        width: 100%;
        margin-left: 0px;
        font-family: TT Norms;
        font-weight: 700;
        line-height: 26px;
        letter-spacing: 0em;
        text-align: left;
    }

    .glossary-ABC-activ a {
    padding: 20px;
    border-radius: 100%;
    padding: 5px 6px 5px 6px;
    }
    .glossary-title {
        font-size: 32px;
        margin-left: 0px;
    }
    .glossary-input-container {
        width: 100%;
        margin-left: 0px;
    }
    .glossary-ABC-words-letter {
        margin: 0px;
        font-size: 32px;
        font-family: TT Norms;
        font-weight: 400;
        line-height: 38px;
    }
    .glossary-ABC-words {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        margin-left: 0px;
        width: 100%;
        column-gap: 35px;
        row-gap: 30px;
        margin-top: 30px;
    }

    .glossary-ABC-words a {
        font-family: TT Norms;
        font-size: 12px;
        font-weight: 400;
        line-height: 14px;
    }

    .block-gloss{
        width: 100%;
        height: 302px;
        margin: 0px;
        border-radius: 43px;
        margin-left: 0px;
        padding: 25px  !important;
        margin-bottom: 40px;
    }

    .text-block-squared{
        font-family: TT Norms;
        font-size: 28px;
        font-weight: 700;
        line-height: 33px;
        margin-bottom: 20px;
    }

    .text-block-squared-2{
        font-family: TT Norms;
        font-size: 14px;
        font-weight: 400;
        line-height: 17px;
    }

    .glossy-hr{    
        transform: rotate(180deg);
        width: 100%;
        margin-bottom: 20px;
    }

    .glossary-banner-content {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    .glossy-term{
        font-family: TT Norms;
        font-size: 26px;
        font-weight: 700;
        line-height: 31px;
        margin-left:0px;
    } 
    .d-grid-term{
        display: grid; 
        grid-template-columns: 1fr; 
        width: 95%;
        row-gap: 30px;
    }
    .mob{
        display: block;
    }
    .deck{
        display: none;
    }
    .mr-term{
    margin-left: 0px; 
    margin-top: 0px;
    }
    .container-glossy{
        padding: 0 25px;
    }
    .top-mr{
        padding: 40px 0 !important;
    }
    .glossary-input-with-icon {
        padding-left: 3rem;
        height: 53px;
        background-position: 1rem center;
        margin-bottom: 15px;
    }
    .glossary-ABC-words {
        width: 100% !important;
    }

}

@media screen and (max-width:1205px){
    .glossary-ABC-words {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 750px) {
    .glossary-ABC-words {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}