.d-md-none{
    /*TODO зачем я тут скрывал этот блок?*/
    /*display: none!important;*/
}

.breadcrumbs ul li{
    white-space: nowrap;
}
.search {
    display: none;
}

.examples__items .response img {
    max-width: 100%;
    object-fit: contain;
}

.subject-content__parts {
    border-radius: 8px;
    padding: 6px 12px;
    margin-right: 12px;
    margin-top: 24px;
    margin-bottom: 24px;
    background: #313035;
    color: #eaeaea;
    font-family: "Rubik-Medium", sans-serif;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
}
.subject-content__parts.active{
    background: #5b10bb;
    color: #ffffff;
}
.subject-content__year{
    padding: 12px 48px;
    margin-bottom: 0;
}
.subject-content__year:last-child {
    margin-right: 12px;
}
.error-link {
    cursor: pointer;
}



.drobina {
    display: inline-block;
    box-shadow: none !important;
    max-width: 390px;
    vertical-align: middle;
    max-height: 40px;
}

.drobina-v-texte {
    box-shadow: none !important;
    vertical-align: -1.4ex;
    height: 32px;
    border-radius: 5px !important;
}

.book-wrapper .book img {
    border-radius: 10px;
    width: 100%;
    border: 1px solid #EDEDED;
    /* max-height: 158px; */
}

.isbook .book-wrapper .book .img-wrapper::after {
    content: 'Часть 1 и 2';
    width: 75%;
    height: auto;
    display: inline-block;
    vertical-align: middle;
    font-size: 18px;
    font-family: 'GilroyExtraBold', sans-serif;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    position: absolute;
    bottom: 0px;
    left: 0px;
    background-color: #fff;
    color: #333333;
}


.isbook .book-wrapper .book .img-wrapper.noparts::after {
    content: '';
}

.ispage .book-wrapper .book .img-wrapper.noparts::after {
    content: '';
}

.isbook .cat .book .book__img-wrap {
    position: relative;
}

.isbook .cat .book__img-wrap::after {
    content: 'Часть 1 и 2';
    width: 75%;
    height: auto;
    display: inline-block;
    vertical-align: middle;
    font-size: 18px;
    font-family: 'GilroyExtraBold', sans-serif;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    position: absolute;
    bottom: 0px;
    left: 0px;
    background-color: #fff;
    color: #333333;
}






.fraction, .top, .bottom {
    padding: 0 4px;
}

.ispage .page-content p.text .fraction {
    display: inline-block;
    text-align: center;
    vertical-align: middle;
}

.ispage .page-content .sdvig p .fraction {
    display: inline-block;
    text-align: center;
    vertical-align: middle;
}

.ispage .page-content .description-text .fraction {
    display: inline-block;
    text-align: center;
    vertical-align: middle;
}

.bottom {
    border-top: 1px solid #000;
    display: block;
}


.fraction .top {
    position: relative;
}


.fraction.double .top::after {
    content: '2';
    display: inline-block;
    vertical-align: middle;
    position: absolute;
    top: -3px;
    right: -2px;
    font-size: 10px;
    color: #333;
}









.isbook .book-wrapper .book .img-wrapper.third-parts::after {
    content: 'Часть 1,2,3';
}


.isbook .cat .book__img-wrap.third-parts::after {
    content: 'Часть 1,2,3';
}






.isbook .cat .book__img-wrap.noparts::after {
    content: '';
}



.ispage .book-wrapper .book .img-wrapper.second::after {
    content: 'Часть 2';
}

.ispage .book-wrapper .book .img-wrapper.third::after {
    content: 'Часть 3';
}


.okon {
    border: 1px solid #fff;
    line-height: 15px;
    display: inline-block !important;
    padding-left: 1px;
    padding-right: 1px;
}

span.voln {
    text-decoration: underline;
    text-decoration-style: wavy;
}

.razbor {
    font-size: 14px;
}

.razbor .tit-razbor {
    background-color: bisque;
}

.razbor p {
    margin-top: 5px;
}

.Modal {
    position: fixed;
    display: none;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0,0,0, 0.8);
    position: fixed;
    z-index: 1000;
    pointer-events: none;
}

.Modal .Modal_Body {
    /* width: 290px; */
    width: 320px;
    border-radius: 15px;
}

.Modal .contact-form {
    padding: 15px 15px 15px 15px;
}

.Modal .contact-form .contact-form__title {
    /* border-bottom: 1px solid #777; */
    padding: 0 0 10px;
    text-align: left;
    font-size: 18px;
    font-weight: bold;
    font-family: 'GilroySemiBold', sans-serif;
    font-size: 19px;
}

.Modal .contact-form .contact-form__input-wrapper {
    margin-bottom: 5px;
    width: 100%;
}

.Modal .contact-form .contact-form__input-wrapper label {
    position: relative;
    top: -1px;
    font-size: 16px;
    font-family: 'GilroyRegular', sans-serif;
}

.Modal .contact-form .contact-form__input-wrapper input {
    border-bottom: 1px solid #ccc;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    font-size: 14px;
    padding: 10px;
    width: 242px;
}

.Modal .contact-form .contact-form__input-wrapper input.radio {
    width: auto;
    margin-right: 4px;
}


.Modal .contact-form .contact-form__input-wrapper .comment {
    padding-left: 15px;
    margin-top: 12px;
    display: block;
    font-size: 16px;
    font-family: 'GilroyRegular', sans-serif;
}


.Modal .contact-form textarea {
    font-size: 14px;
    padding: 10px 6px 15px 15px;
    width: 100%;
    margin-top: 6px;
    border-radius: 10px;
    font-family: 'GilroyRegular', sans-serif;
    color: #666;
    border: 1px solid #ccc;
}

.Modal .contact-form button {
    width: 100%;
    border: none;
    background: #0C2040;
    color: #fff;
    padding: 12px;
    cursor: pointer;
    border-radius: 10px;
    margin-top: 20px;
    font-family: 'GilroyMedium', sans-serif;
    font-size: 16px;
}

.hidden {
    display: none;
}

.Modal .close-form {
    text-decoration: none;
    font-size: 32px;
    color: #555;
    font-family: auto;
    transform: rotate(45deg);
    display: block;
    position: absolute;
    /* top: 7px;
    right: 14px; */
    top: 10px;
    right: 18px;
}

.error-mod {
    color: #fff;
    border-radius: 3px;
    margin-bottom: 20px;
    text-align: right;
    display: block;
    padding-right: 15px;
}

.error-mod a {
    color: #fff;
    text-decoration: none;
    display: inline-block;
    background-color: #0C2040;
    padding: 12px 25px;
    border-radius: 15px;
}

.error-block {
    border: 1px solid #ccc;
    border-radius: 15px;
    padding: 15px;
    width: 353px;
    margin-bottom: 20px;
    display: inline-block;
    float: right;
    position: relative;
}

.error-block::after{
    content: '';
    display: inline-block;
    vertical-align: middle;
    position: absolute;
    top: 10px;
    left: 10px;
    width: 95px;
    height: 176px;
    background-repeat: no-repeat;
    background-image: url(https://sgdz.sandev.online/wp-content/themes/gdz/img/astro1.png);
    background-size: contain;
}

.error-block .title-error {
    display: block;
    font-size: 18px;
    max-width: 270px;
    margin: 20px auto 20px;
    text-align: center;
    font-family: "GilroyMedium",sans-serif;
    float: right;
    text-align: right;
    padding-right: 16px;
}

.error-block .image {
    position: absolute;
    left: -32px;
}

.error-block .image img {
    width: 100px;
}

.Modal:target {
    display: flex;
    pointer-events: auto;
}
.Modal_Body {
    position: relative;
    z-index: 2;
    display: block;
    margin: auto;
    padding: 15px;
    background: #FFF;
}

.ModalFull {
    position: absolute;
    display: block;
    z-index: 0;
    width: 100%;
    height: 100%;
}



span.volna, span.volna span, span.volna span b {
    text-decoration: underline;
    text-decoration-style: wavy;
    display: inline-block !important;
}

span.punktir, span.punktir span, span.punktir span b {
    text-decoration: underline;
    text-decoration-style: dashed;
    display: inline-block !important;
}

span.punktir-tochka, span.punktir-tochka span, span.punktir-tochka span b {
    position: relative;
    display: inline-block !important;
}

span.punktir-tochka-2, span.punktir-tochka-2 span, span.punktir-tochka-2 span b {
    position: relative;
    display: inline-block !important;
}


span.punktir-tochka::after {
    content: '';
    background-image: url(https://sgdz.sandev.online/wp-content/themes/gdz/img/punktir-tochka.svg);
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    height: 43px;
    background-position: 0px -10px;
    background-repeat: repeat-x;
}


span.punktir-tochka-2::after {
    content: '';
    background-image: url(https://sgdz.sandev.online/wp-content/themes/gdz/img/punktir-tochka.svg);
    position: absolute;
    top: 4px;
    left: 0;
    width: 100%;
    height: 31px;
    background-position: 0px 0px;
    background-repeat: repeat-x;
    background-size: cover;
}


.red {
    color: #ff4500;
}

.response .text {
    font-size: 16px;
    line-height: 22px;
    /* background: #f2f2f2;
    border: 1px solid #ddd; */
    padding: 15px;
    border-radius: 15px;
    margin-top: 10px;
    background-color: #9549f5;
    border: 1px solid rgba(239, 242, 250, 0.2);
    /* margin-bottom: 15px; */
}

b.nomer-bold,
.answer > b {
    font-size: 20px;
}

.answer{
    background: linear-gradient(to right, #667EEA, #764BA2);
    padding: 16px 12px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.question{
    background: linear-gradient(to right, #313035, #1c1c1e);
    padding: 16px 12px;
    border-radius: 12px;
    border: 1px solid #313035;
    margin-bottom: 25px;
    margin-top: 25px;
}

.year-block{
    display: none;
}
.year-block.active,
.tabs.flex-tabs > div:nth-child(2).year-block {
    display: block;
}

.ex-notfound {
    text-align: center;
    display: none;
    margin: 96px 0;
}
.ex-notfound .examples__search-title {
    margin-bottom: 12px;
    margin-top: 24px;
}

.examples__title h1{
    font-size: 1.4rem;
}
.advertising-col {
    background: #1c1c1e;
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 24px 12px 32px 16px;
    margin: 24px 0;
    min-height: 240px;
}

@media (max-width: 776px) {
    .examples__items a{
        width: calc(33.333% - 12px);
    }
    .textbook__mark.d-md-none.d-flex.justify-content-end {
        display: none !important;
    }
}

.subject-content__wrapper .d-flex.book_detail_parts {
    flex-wrap: wrap;
}
.subject-content__wrapper .d-flex.book_detail_parts .subject-content__year {
    margin-top: 8px;
    margin-bottom: 16px;
}
.subject__block-img{
    background: #1C1C1E !important;
}

.container.examples.page .textbooks-section {
    margin-top: 24px;
}
.examples__items a {
    display: flex;
    justify-content: center;
    background: #313035;
    border-radius: 8px;
    color: #ffffff;
    width: calc(100% / 15 - 6px);
    min-width: 32px;
    padding: 6px 0;
    text-align: center;
    margin: 0 3px 6px;
    font-family: "Rubik-Medium", sans-serif;
    font-size: 14px;
    line-height: 20px;
    transition: 0.3s;
    cursor: pointer;
}

.examples__items a span {
    display: flex;
    max-width: 100%;
}
.bugreport-wrapper{
    background: linear-gradient(to right, #313035, #1c1c1e);
}




/**
*Английский язык быкова 2 класс
*/
/* Общие стили для блоков ответов */
.answer-blocks {
    /* Родительский класс для всех стилей блоков ответов */
}

/* Блоки диалогов (как на странице 4) */
.answer-blocks .dialog-block {
    margin: 10px 0;
    padding: 8px;
    border-radius: 5px;
    color: #333;
}

.answer-blocks .dialog-block-1 {
    background-color: #e8f4fd;
    border: 1px solid #b3d9ff;
}

.answer-blocks .dialog-block-2 {
    background-color: #f0f8e8;
    border: 1px solid #c8e6c9;
}

.answer-blocks .dialog-block-3 {
    background-color: #fff3e0;
    border: 1px solid #ffcc80;
}

/* Блоки с боковой полоской (как на странице 5) */
.answer-blocks .sidebar-block {
    padding: 12px;
    margin: 10px 0;
    color: #333;
}

.answer-blocks .sidebar-purple {
    background-color: #f3e5f5;
    border-left: 4px solid #9c27b0;
}

.answer-blocks .sidebar-blue {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
}

.answer-blocks .sidebar-pink {
    background-color: #fce4ec;
    border-left: 4px solid #e91e63;
}

.answer-blocks .sidebar-green {
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
}

/* Сетка для букв (как на странице 6) */
.answer-blocks .letters-grid-2x4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 10px 0;
}

.answer-blocks .letter-block {
    padding: 8px;
    border-radius: 5px;
    color: #333;
}

.answer-blocks .letter-orange { background-color: #fff3e0; border: 1px solid #ff9800; }
.answer-blocks .letter-green { background-color: #e8f5e8; border: 1px solid #4caf50; }
.answer-blocks .letter-blue { background-color: #e3f2fd; border: 1px solid #2196f3; }
.answer-blocks .letter-pink { background-color: #fce4ec; border: 1px solid #e91e63; }
.answer-blocks .letter-purple { background-color: #f3e5f5; border: 1px solid #9c27b0; }
.answer-blocks .letter-teal { background-color: #e0f2f1; border: 1px solid #009688; }
.answer-blocks .letter-yellow { background-color: #fff8e1; border: 1px solid #ffc107; }
.answer-blocks .letter-red { background-color: #ffebee; border: 1px solid #f44336; }

/* Сетка для слов с выделением букв (как на странице 7) */
.answer-blocks .words-grid-2x4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 10px 0;
}

.answer-blocks .word-block {
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    color: #333;
}

.answer-blocks .word-green { background-color: #e8f5e8; border: 2px solid #4caf50; }
.answer-blocks .word-blue { background-color: #e3f2fd; border: 2px solid #2196f3; }
.answer-blocks .word-orange { background-color: #fff3e0; border: 2px solid #ff9800; }
.answer-blocks .word-purple { background-color: #f3e5f5; border: 2px solid #9c27b0; }
.answer-blocks .word-yellow { background-color: #fff8e1; border: 2px solid #ffc107; }
.answer-blocks .word-teal { background-color: #e0f2f1; border: 2px solid #009688; }
.answer-blocks .word-pink { background-color: #fce4ec; border: 2px solid #e91e63; }
.answer-blocks .word-red { background-color: #ffebee; border: 2px solid #f44336; }
.answer-blocks .word-black { background-color: #f5f5f5; border: 2px solid #424242; }
.answer-blocks .word-brown { background-color: #efebe9; border: 2px solid #795548; }
.answer-blocks .word-white { background-color: #fafafa; border: 2px solid #9e9e9e; }

/* Сетка 3x3 для слов (как на странице 9) */
.answer-blocks .words-grid-3x3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 10px 0;
}

.answer-blocks .word-block-large {
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    color: #333;
}

/* Градиентные блоки для песенок */
.answer-blocks .gradient-block {
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    margin: 10px 0;
}

.answer-blocks .gradient-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.answer-blocks .gradient-coral {
    background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 100%);
}

.answer-blocks .gradient-text {
    color: white;
    font-size: 16px;
    margin: 3px 0;
    font-weight: bold;
}

/* Блоки для карточек Hello/Goodbye */
.answer-blocks .card-container {
    display: flex;
    gap: 15px;
    margin: 10px 0;
}

.answer-blocks .card-block {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    color: #333;
}

.answer-blocks .card-hello {
    background-color: #e8f5e8;
    border: 2px solid #4caf50;
}

.answer-blocks .card-goodbye {
    background-color: #ffe8e8;
    border: 2px solid #f44336;
}

.answer-blocks .card-text {
    font-size: 18px;
    font-weight: bold;
}

.answer-blocks .card-text-green { color: #2e7d32; }
.answer-blocks .card-text-red { color: #c62828; }

/* Выделенные буквы */
.answer-blocks .highlight-letter {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

/* Вертикальный список для песенок */
.answer-blocks .song-list {
    text-align: center;
    padding: 15px;
    background-color: #4a90e2;
    border-radius: 10px;
    margin: 10px 0;
}

.answer-blocks .song-list p {
    color: white;
    font-size: 16px;
    margin: 3px 0;
    font-weight: bold;
    line-height: 1.6;
}

/**
*END Английский язык быкова 2 класс
*/

.examples__items-list {
    display: flex;
    flex-wrap: wrap;
    /* Убрали gap, так как отступы теперь заданы через margin в ссылках */
}

/* Скругление для картинок в блоке answer, когда их 2 и более подряд */
.answer .img-wrapper-460:has(+ .img-wrapper-460) img {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.answer .img-wrapper-460 + .img-wrapper-460 img {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

/* Подчеркивание для текста в ответах */
.answer .underline {
    border-bottom: 1px solid #fff;
    line-height: 14px;
    display: inline-block;
}

/* Стили для новых вкладок (Другие способы решения) */
.new-tabs tab-container {
    display: block;
    margin-top: 15px;
}
.new-tabs .variants {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #fff;
}
.new-tabs label {
    display: inline-block;
    padding: 6px 16px;
    margin-right: 6px;
    margin-bottom: 10px;
    background: #313035;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-family: "Rubik-Medium", sans-serif;
    font-size: 14px;
    transition: 0.3s;
}
.new-tabs label:hover {
    opacity: 0.8;
}
.new-tabs label.active {
    background: #5b10bb;
}
.new-tabs tab-content {
    display: none;
    padding: 15px;
    border-radius: 8px;
    margin-top: 5px;
}

/* Возвращаем цифры и маркеры для списков в учебниках */
.answer ol, .year-block ol, .new-tabs tab-content ol {
    list-style-type: decimal !important;
    list-style-position: inside !important;
    margin-left: 10px !important;
    padding-left: 10px !important;
    margin-bottom: 10px !important;
}

.answer ul, .year-block ul, .new-tabs tab-content ul {
    list-style-type: disc !important;
    list-style-position: inside !important;
    margin-left: 10px !important;
    padding-left: 10px !important;
    margin-bottom: 10px !important;
}

.answer ol li, .year-block ol li, .new-tabs tab-content ol li,
.answer ul li, .year-block ul li, .new-tabs tab-content ul li {
    display: list-item !important;
    margin-bottom: 5px;
}

/* Растягиваем блок со страницами на всю ширину, если их мало */
.examples__items-list {
    width: 100%;
}

/* Fix bookmark icon positioning on book page */
.subject-content__wrapper .top .d-flex.position-relative .textbook__mark {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    display: flex !important;
    margin: 0 !important;
    z-index: 10;
}
.subject-content__wrapper h1.subject-content__title {
    padding-right: 32px;
}

/* Pagination styles */
.blog-navigation {
    width: 100%;
}
.button.disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}
.current-page {
    background: transparent;
    width: 55px;
    color: #fff;
    text-align: center;
}
.arrow-wrapper.disabled {
    opacity: 0.4;
    pointer-events: none;
}
.arrow-prev.disabled, .arrow-next.disabled {
    cursor: default;
}

/* Fix double padding and background on bugreport wrapper */
.bugreport-wrapper.bugreport {
    padding: 0;
    background-color: transparent;
    box-shadow: none;
}

/* Add margin to bugreport submit button */
#submitBtn {
    margin-top: 16px;
}

/* Fix year tab visibility inside question blocks */
.question .subject-content__year:not(.active) {
    background-color: #333539;
    border: 1px solid #5A5D65;
}
.question .subject-content__year.active {
    border: 1px solid transparent;
}