/*заголовки*/
    .uc-zagolovok .t017__uptitle span {
        background: #e5f5ff;
        padding: 8px 10px;
        border-radius: 5px;
    }

/*МЕНЮ И ПОДВАЛ*/
    .text a:hover { /*текст и ссылка для перехода на страницу «Документы»*/ 
        color: #035185 !important;
    }
    
    .podlozhka {
        width: -webkit-fill-available;
        padding: 0 20px !important; 
    }

/*ЗЕРО-БЛОКИ*/
    .foto-right50-mask {
        mask-image: url("https://static.tildacdn.com/tild3264-3235-4262-b866-326533333630/photo.png");
        mask-repeat: no-repeat;
        mask-size: 100%;
    }

/*ГЛАВНАЯ СТРАНИЦА*/
/*обложка*/  
    .uc-oblozhka .video { /*видео*/  
        margin: 90px 20px 20px 20px;
        width: -webkit-fill-available !important;
        height: -webkit-fill-available !important;
    }
    
    .uc-oblozhka .knopka1 {
        width: calc(50% - 45px) !important;
        margin-left: 40px;
    }
    
    .uc-oblozhka .knopka2 {
        width: calc(50% - 45px) !important;
        margin-left: 5px;
    }

/*карточки преимущеcтва*/    
    .uc-preimushchestva .t778__wrapper { /*контейнер карточек и фотографии*/  
        display: flex;
        flex-direction: column-reverse;
        justify-content: space-between;
    }
    
    .uc-preimushchestva .t778__container { /*сетка*/  
        display: grid;
        grid-template-columns: repeat(8, 1fr); /*8 колонок*/  
        grid-template-rows: repeat(4, 1fr); /*4 строчки*/  
        gap: 10px; /*отступы внутри карточек*/ 
        padding: 0 20px !important;
        box-sizing: border-box;
    }
    
    .uc-preimushchestva .t778__col { /*карточки/сетка*/ 
        margin: 0 !important;
        max-width: 100% !important;
    }
    
    .uc-preimushchestva .t778__col:first-child { /*1 карточка*/ 
        grid-row: span 4 !important; /*делаем карточку высотой в две строки*/ 
        grid-column: span 2 !important;
    }
    
    .uc-preimushchestva .t778__col:first-child .t778__imgwrapper { /*1 карточка контейнер фотографии*/ 
        height: 350px;
        padding-bottom: 0px !important;
    }
    
    .uc-preimushchestva .t778__col:first-child .t778__bgimg { /*1 карточка фотография*/ 
        margin-left: 20px !important; /*отступ слева*/ 
    }
    
    .uc-preimushchestva .t778__col:first-child .t778__wrapper { /*1 карточка фон*/ 
        background-image: linear-gradient(0turn,rgba(50,158,230,1) 0%,rgba(0,89,146,1) 100%) !important;
    }
    
    .uc-preimushchestva .t778__col:first-child .t778__title { /*1 карточка заголовок*/ 
        color: #fff !important;
    }
    
    .uc-preimushchestva .t778__col:first-child .t778__descr { /*1 карточка описание*/ 
        color: #fff !important;
    }
    
    .uc-preimushchestva .t778__col:nth-child(2),
    .uc-preimushchestva .t778__col:nth-child(3),
    .uc-preimushchestva .t778__col:nth-child(4) {
        grid-row: span 2 !important;
        grid-column: span 2 !important;
    }
    
    .uc-preimushchestva .t778__col:nth-child(6) { /*5 карточка*/ 
        grid-column: span 4 !important;
        grid-row: span 2 !important;
    }
    
    .uc-preimushchestva .t778__col:nth-child(6) .t778__wrapper { /*5 карточка*/ 
        display: flex;
        flex-direction: row-reverse !important;
    }
    
    .uc-preimushchestva .t778__col:nth-child(6) .t778__imgwrapper { /*5 карточка*/ 
        padding-bottom: 280px !important;
        width: 50% !important;
    }
    
    .uc-preimushchestva .t778__col:nth-child(6) .t778__content { /*5 карточка*/ 
        width: 50%;
    }
    
    .uc-preimushchestva .t778__col:nth-child(6) .t778__bgimg { /*5 карточка*/ 
        margin: 10px 10px 10px 5px;
        border-radius: 15px;
    }
    
    .uc-preimushchestva .t778__col:nth-child(6) .t778__textwrapper { 
        position: absolute !important;
        bottom: 0px !important;
    }
    
    .uc-preimushchestva .t778__col:nth-child(7) { /*6 карточка*/ 
        grid-row: span 1 !important;
        grid-column: span 2 !important;
    }
    
    .uc-preimushchestva .t778__col:nth-child(7) .t778__bgimg { /*6 карточка*/ 
        background-position: top left !important;
        background-size: contain;
        margin: 0 20px 20px 20px;
        height: 50px !important;
    }
    
    .uc-preimushchestva .t778__col:nth-child(7) .t778__imgwrapper { /*6 карточка*/ 
        padding-bottom: 70px !important;
    }
    
    .uc-preimushchestva .t778__col:nth-child(8) } /*7 карточка*/ 
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
    
    .uc-preimushchestva .t778__col:nth-child(9) } /*8 карточка*/ 
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
    
    .uc-preimushchestva .t778__bgimg { /*фотографии в карточках*/ 
        background-position: top !important; /*делаем позиционирование фотографии по верху*/ 
    }
    
    .uc-preimushchestva .t778__content { /*высота текстового контейнера*/  
        height: auto !important;
    }
    
    .uc-preimushchestva .t778__bgimg { /*фотографии в карточках*/ 
        background-position: top !important; /*делаем позиционирование фотографии по верху*/ 
    }
    
    .uc-preimushchestva .t778__container:before,
    .uc-preimushchestva .t778__container:after,
    .uc-preimushchestva .t778__separator { /*скрываем лишнее*/  
        display: none !important;
    }
  
/*предложение*/      
    .uc-predlozheniye .t-container { /*контейнер с текстом и фотографии*/  
        background-color: #329EE6 !important;
        border-radius: 20px;
        max-width: 1160px !important;
    }
    
    .uc-predlozheniye .t-container div[class="t480__top t480__col t-col t-col_6 "] { /*контейнер с текстом*/ 
        max-width: 550px !important;
        margin: 20px 10px 20px 20px !important;
    }
    
    .uc-predlozheniye .t480__col { /*контейнер с фотогрифией*/ 
        max-width: 550px !important; 
        margin: 20px 20px 20px 10px !important;
    }
    
    .uc-predlozheniye .t480__blockimg { /*фотогрифия*/ 
        height: 400px !important;
        background-position: center right -50px;
    }
    
    .uc-predlozheniye .t480__content { /*контейнер с текстовыми слоями*/ 
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
    }
    
    .uc-predlozheniye .t480__title { /*заголовок*/
        color: #fff !important;
        margin-top: 70px;
    }
    
    .uc-predlozheniye .t480__descr { /*описание*/
        margin-top: auto; /*прибываем к низу*/
        color: #fff !important;
    }
    
    .uc-predlozheniye .t480__uptitle span[style="color: rgb(33, 130, 195);"] { /*надпись «медицинской комиссии»*/
        display: inline-block;
        background-color: #2182C3;
        color: #fff !important;
        padding: 15px 20px !important;
        border-radius: 5px !important;
        rotate: -6deg;
        position: relative;
        left: -60px;
    }
    
    .uc-predlozheniye .t480__uptitle span[style="color: rgb(3, 81, 133);"] { /*надпись «медицинской комиссии»*/
        display: inline-block;
        background-color: #035185;
        color: #fff !important;
        padding: 15px 20px !important;
        border-radius: 5px !important;
        rotate: 6deg;
        position: relative;
        left: 60px;
    }
    
/*о нас*/
    .uc-about .t786__container { /*контейнер с карточками*/
        display: flex;
        align-items: flex-end; /*выравниваем карточки по низу*/
    }
    
    .uc-about .t786__content { /*подложка карточек*/
        background: #f4f4f4;
        padding: 20px;
        border-radius: 20px;
    }
    
    .uc-about .t786__col:nth-child(1) .t786__imgwrapper { /*1 карточка текстовый контейнер*/
        width: 35px !important;
        height: 35px !important;
        padding: 0px !important;
    }
    
    .uc-about .t786__col:nth-child(2) .t786__content { /*2 карточка*/
        background: #329EE6 !important;
    }
    
    .uc-about .t786__col:nth-child(2) .t786__title { /* 2 карточка заголовок*/
        color: #fff !important;
    }
    
    .uc-about .t786__col:nth-child(3) .t786__textwrapper { /*3 карточка текстовый контейнер*/
        display: none !important;
    }
    
    .uc-about .t786__col:nth-child(3) .t786__content { /*3 карточка подложка*/
        padding: 0px !important;
    }
    
    .uc-about .t786__col:nth-child(3) .t786__imgwrapper { /*3 карточка контейнер с фотографией*/
        margin: 0px !important;
    }
    
    .uc-about .t786__col:nth-child(3) .t786__bgimg { /*3 карточка фотография*/
        border-radius: 20px !important;
    }
    
    .uc-about .t786__col:nth-child(4) .t786__imgwrapper { /*4 карточка контейнер с фотографией*/
        width: 55px !important;
        height: 55px !important;
        padding: 0px !important;
        margin-bottom: 90px !important;
    }

/*СТРАНИЦА «УЧЕНИКИ»*/
/*фотогалерея*/
    .uc-students .t663__container:before,
    .t663__container:after { /*скрываем ненужные элементы в контейнере с карточками*/
        display: none !important;
    }

    .uc-students .t663__container { /*контейнер с карточками + сетка*/
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        grid-auto-flow: dense;
        box-sizing: border-box;
        gap: 10px;
        padding: 0 20px !important;
    }
    
    .uc-students .t663__row { /*карточки*/
        width: 100%;
        padding: 0px !important;
    }
    
    .uc-students .t663__row:nth-child(3n + 1) { /*каждая 3 карточка*/
        grid-column: span 2;
        grid-row: span 2;
    }
    
/*СТРАНИЦА «АКЦИИ»*/
    /*карточки*/
    .uc-aktsii .t774__bgimg { /*фотография*/
        aspect-ratio: 25 / 12;
        background-size: contain;
        margin: 30px 30px 0;
        border-radius: 20px !important;
    }
    
    .uc-aktsii .t774__imgwrapper { /*контейнер фотографии*/
        aspect-ratio: 25 / 12 !important;
        padding-bottom: 0 !important;
    }
    
/*СТРАНИЦА «ДОКУМЕНТЫ*/
    /*фотографии документов*/
    .uc-dokumenty-foto .t603__blockimg { /*фотографии документов*/
        aspect-ratio: 13 / 18;
        background-size: contain !important;
        padding-bottom: 0 !important;
    }
    
    .uc-dokumenty1 .t-col.t-col_12, /*карточки документов*/
    .uc-dokumenty .t-col.t-col_12 { /*карточки документов без нижнего отступа*/
        background-color: #F4F4F4;
        padding: 30px;
        border-radius: 10px;
        box-sizing: border-box;
    }
    
    .uc-dokumenty1 .t-container { /*контейнер*/
        padding-bottom: 10px;
    }
    
    .uc-dokumenty .t784__btn,
    .uc-dokumenty1 .t784__btn { /*кнопка*/
        width: 225px;
    }

@media screen and (max-width: 1200px) {
/*ГЛАВНАЯ СТРАНИЦА*/
/*предложение*/   
    .uc-predlozheniye .t-container { /*контейнер с текстом и фотографии*/  
        max-width: 920px !important;
    }  
    
    .uc-predlozheniye .t-container div[class="t480__top t480__col t-col t-col_6 "] { /*контейнер с текстом*/ 
        max-width: 430px !important;
    }
    
    .uc-predlozheniye .t480__col { /*контейнер с фотогрифией*/ 
        max-width: 430px !important; 
    }
    
/*о нас*/    
    .uc-about .t786__col:nth-child(4) .t786__imgwrapper { /*4 карточка контейнер с фотографией*/
        margin-bottom: 20px !important;
    }
    
/*СТРАНИЦА «УЧЕНИКИ»*/
/*фотогалерея*/
    .uc-students .t663__container  { /*контейнер с карточками + сетка*/
        padding: 0 10px !important;
    }
}

@media screen and (max-width: 960px) {
/*ГЛАВНАЯ СТРАНИЦА*/
/*о нас*/  
    .uc-about .t786__container { /*контейнер с карточками*/
        display: block;
    }  
    
    .uc-about .t786__col { /*карточки*/
        width: 100% !important;
        margin-bottom: 10px !important;
    }
    
    .uc-about .t786__col:nth-child(3) { /*3 карточка*/
        display: none !important;
    }
    
/*предложение*/   
    .uc-predlozheniye .t-container { /*контейнер с текстом и фотографии*/  
        max-width: 600px !important;
    }  
    
    .uc-predlozheniye .t-container div[class="t480__top t480__col t-col t-col_6 "] { /*контейнер с текстом*/ 
        max-width: 600px !important;
        padding: 20px !important;
        margin: 0 !important;
    }
    
    .uc-predlozheniye .t480__col { /*контейнер с фотогрифией*/ 
        max-width: 600px !important;
        margin: 0 !important;
        padding: 0 20px 20px !important; 
    }
    
    .uc-predlozheniye .t480__title {
        margin-top: 0 !important;
    }

/*карточки преимущеcтва*/ 
    .uc-preimushchestva .t778__container { /*контейнер с карточками*/    
        display: block;
        padding: 0 !important;
    }

    .uc-preimushchestva .t778__col { /*карточки*/     
        margin: 0 !important;
        width: 100% !important;
        padding: 0 20px 10px;
    }
    
    .uc-preimushchestva .t778__col:nth-child(2) .t778__imgwrapper,
    .uc-preimushchestva .t778__col:nth-child(3)  .t778__imgwrapper,
    .uc-preimushchestva .t778__col:nth-child(4) .t778__imgwrapper { /*1 карточка контейнер фотографии*/ 
        height: 200px;
        padding-bottom: 0px !important;
    }
    
    .uc-preimushchestva .t778__col:nth-child(2) .t778__bgimg,
    .uc-preimushchestva .t778__col:nth-child(3) .t778__bgimg,
    .uc-preimushchestva .t778__col:nth-child(4) .t778__bgimg {
        height: 200px;
        background-size: contain;
        background-position: top right !important;
    }
    
/*СТРАНИЦА «УЧЕНИКИ»*/
/*фотогалерея*/
    .uc-students .t663__container { /*контейнер с карточками + сетка*/
        padding: 0 20px !important;
    }
}

@media screen and (max-width: 640px) {
/*обложка*/  
    .uc-oblozhka .video {
        margin: 90px 0 0 0;
        width: -webkit-fill-available !important;
        height: -webkit-fill-available !important;
    }
    
    .uc-oblozhka .knopka1,
    .uc-oblozhka .knopka2 {
        width: -webkit-fill-available !important;
        margin-left: 20px;
        margin-right: 20px;
    }
    
/*СТРАНИЦА «УЧЕНИКИ»*/
/*фотогалерея*/
    .uc-students .t663__container { /*контейнер с карточками + сетка*/
        grid-template-columns: auto !important;
        gap: 20px;
    }
    
    .uc-students .t663__row:nth-child(3n + 1) { /*каждая 3 карточка*/
        grid-column: auto !important;
        grid-row: auto !important;
    }
    
    .uc-predlozheniye .t-container { /*контейнер с текстом и фотографии*/  
        margin-left: 20px !important;
        margin-right: 20px !important;
        width: -webkit-fill-available;
    }  

/*СТРАНИЦА «ДОКУМЕНТЫ*/    
/*карточки документов*/
    .uc-dokumenty .t-container, /*контейнер*/
    .uc-dokumenty1 .t-container { /*контейнер*/
        margin: 0 20px;
        width: -webkit-fill-available;
    }
    
    .uc-dokumenty1 .t-col.t-col_12, /*карточки документов*/
    .uc-dokumenty .t-col.t-col_12 { /*карточки документов без нижнего отступа*/
        padding: 20px;
    }
    
    .uc-dokumenty .t784__btn-wrapper,
    .uc-dokumenty1 .t784__btn-wrapper { /*кнопка*/
        width: 100% !important;
    }
    
    .uc-dokumenty .t784__btn,
    .uc-dokumenty1 .t784__btn {
        width: 100%;
    }

/*ЗЕРО-БЛОКИ*/    
    .kartochka,
    .store-btn {
        margin: 0 20px;
        width: -webkit-fill-available !important;
    }
    
    .foto-knopka {
        margin: 0 40px;
        width: -webkit-fill-available !important;
    }
    
    .kartochka2-left {
        margin-left: 20px;
        width: calc(50% - 25px) !important;
    }
    
    .kartochka2-right {
        margin-left: 5px;
        width: calc(50% - 25px) !important;
    }
    
    .text50 {
        margin-left: 40px;
        width: calc(50% - 50px) !important; 
    }
    
    .foto-right50,
    .foto-right50-mask {
        margin-left: 10px;
        width: calc(50% - 40px) !important;
        mask-image: none;
    }

@media screen and (max-width: 480px) {
    /*предложение*/     
    .uc-predlozheniye .t480__uptitle span[style="color: rgb(33, 130, 195);"] { /*надпись «медицинской комиссии»*/
        rotate: -3deg;
        left: 0px;
        margin-bottom: 10px;
    }
    
    .uc-predlozheniye .t480__uptitle span[style="color: rgb(3, 81, 133);"] { /*надпись «медицинской комиссии»*/
        rotate: 3deg;
        left: 0px;
    }
}