/* SCREEN-1 */
.main-page .screen-1 {
    height: 100vh;
    min-height: 550px;
    position: relative;
    background-color: #EDEDED;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: auto;
}
.main-page .screen-1__container {
    margin-top: 42vh;
    width: 545px;
    text-align: center;
    margin-left: 8.8%;
    position: relative;
}
.main-page .screen-1__text {
    font-size: 26px;
    color: #000;
    box-sizing: border-box;
    margin: 0;
    letter-spacing: 2.5px;
    font-family: 'Roboto',Arial,sans-serif;
    font-weight: 100;
    line-height: 1.3;
}
.main-page .screen-1__link {
    font-size: 16px;
    color: #000;
    text-decoration: none;
    font-family: 'Roboto',Arial,sans-serif;
    line-height: 1.55;
    font-weight: 100;
    border: 1px solid #000;
    width: 248px;
    display: block;
    margin: 50px auto 0;
    padding: 7px 0;
    transition: all 0.2s ease-in-out;
}
.main-page .main_focus .screen-1__link {
    background-color: #fff;
    border-color: #fff;
}
.main-page .main_focus .screen-1__text {
    color: #fff;
}
/* SCREEN-2 */
.main-page .screen-2 {
    height: 1200px;
    position: relative;
    background-color: #fff;
    overflow: auto;
}
.main-page .screen-2__img_container {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: auto;
    height: 984px;
    position: relative;
}
.main-page .screen-2__text {
    font-size: 36px;
    color: #fff;
    font-family: 'Roboto',Arial,sans-serif;
    line-height: 1.55;
    font-weight: 300;
    letter-spacing: 3px;
    margin-top: 31vh;
    text-align: center;
    position: relative;
}
.main-page .main_focus .screen-2__text {
    color: #fff;
}
.main-page .screen-2__item {
    width: 280px;
    height: 280px;
    margin: -7% 25px 0;
}
.main-page .screen-2__item_link {
    display: block;
}
.main-page .screen-2__items {
    display: flex;
    justify-content: center;
}
/* SCREEN-3 */
.main-page .screen-3 {
    display: flex;
    background-color: #e9ebea;
    overflow: hidden;
}
.main-page .screen-3__wrapper {
    width: 70%;
    padding: 120px 0;
}
.main-page .screen-3__img {
    height: 474px;
    background-position: center;
    background-size: cover;
    width: 30%;
}
.main-page .screen-3__item_icon {
    width: 40px;
}
.main-page .screen-3__item_text {
    font-size: 18px;
    font-weight: 100;
    font-family: 'Roboto',Arial,sans-serif;
    margin: 20px 0 30px;
}
.main-page .screen-3__items {
    width: 840px;
    margin: 0 40px 0 auto;
    display: flex;
    flex-wrap: wrap;
}
.main-page .screen-3__item {
    width: 50%;
    text-align: center;
    opacity: 0;
}
.main-page .screen-3__item_link {
    text-decoration: none;
    color: #000;
}
/* SCREEN-4 */
.main-page .screen-4__items {
    display: table;
    width: 100%;
}
.main-page .screen-4__item_wrapper {
    overflow: hidden;
    display: table-cell;
}
.main-page .screen-4__item {
    width: 33.3333333vw;
    display: table-cell;
    text-align: center;
    vertical-align: bottom;
    height: 36.3vw;
    position: relative;
}
.main-page .screen-4__item .cover {
    z-index: 1;
}
.main-page .screen-4__item_img {
    text-align: center;
    vertical-align: bottom;
    height: 36.3vw;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: all ease-in-out .45s;
}
.main-page .main_focus .screen-4__item_img {
    transform: scale(1.05);
}
.main-page .screen-4__item_text {
    font-size: 24px;
    font-weight: 100;
    font-family: 'Roboto',Arial,sans-serif;
    color: #000;
    margin: 0 0 45px;
    z-index: 2;
    position: relative;
    transition: all 0.2s ease-in-out;
}
.main-page .main_focus .screen-4__item_text {
    color: #fff;
}
.main-page .main_focus .screen-4__item_link {
    background-color: #fff;
    border-color: #fff;
}
.main-page .screen-4__item_link {
    font-weight: 100;
    border: 1px solid #000;
    color: #000;
    font-family: 'Roboto',Arial,sans-serif;
    text-decoration: none;
    padding: 12px 30px;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 55px;
    z-index: 2;
    position: relative;
    transition: all 0.2s ease-in-out;
}
.main-page .screen-4__item_link:hover {
    background-color: #fff;
    border-color: #fff;
}
/* SCREEN-5 */
.main-page .screen-5 {
    background-color: #e6e6e6;
    background-position: center left;
    background-size: cover;
    background-repeat: no-repeat;
    height: 600px;
    overflow: auto;
    position: relative;
}
.main-page .screen-5__wrapper {
    width: 610px;
    margin: 110px 0 0 auto;
}
.main-page .screen-5__text {
    font-size: 16px;
    color: #666666;
    font-family: 'Roboto',Arial,sans-serif;
    line-height: 1.55;
    font-weight: 100;
    position: relative;
    transition: all 0.2s ease-in-out;
}
.main-page .screen-5__link {
    color: #666666;
    font-size: 14px;
    text-decoration: none;
    font-family: 'Roboto',Arial,sans-serif;
    line-height: 1.55;
    font-weight: 300;
    border: 1px solid #666666;
    padding: 14px 0 13px;
    display: inline-block;
    width: 250px;
    text-align: center;
    box-sizing: border-box;
    margin-top: 60px;
    transition: all 0.2s ease-in-out;
    position: relative;
}
.main-page .main_focus .screen-5__text {
    color: #fff;
}
.main-page .main_focus .screen-5__link {
    background-color: #fff;
    border-color: #fff;
}
/* SCREEN-6 */
.main-page .screen-6__items {
    display: table;
    width: 100%;
}
.main-page .screen-6 .cover {
    z-index: 1;
}
.main-page .screen-6__item_wrapper {
    overflow: hidden;
    display: table-cell;
}
.main-page .screen-6__item {
    width: 33.3333333vw;
    display: table-cell;
    text-align: center;
    vertical-align: bottom;
    height: 36.3vw;
    position: relative;
}
.main-page .screen-6__item_img {
    text-align: center;
    vertical-align: bottom;
    height: 36.3vw;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: all ease-in-out .45s;
}
.main-page .main_focus .screen-6__item_img {
    transform: scale(1.05);
}
.main-page .screen-6__item_text {
    font-size: 24px;
    font-weight: 100;
    font-family: 'Roboto',Arial,sans-serif;
    color: #fff;
    margin: 0 0 45px;
    z-index: 2;
    position: relative;
    transition: all 0.2s ease-in-out;
}
.main-page .screen-6__item_link {
    font-weight: 100;
    border: 1px solid #000;
    color: #000;
    font-family: 'Roboto',Arial,sans-serif;
    text-decoration: none;
    padding: 12px 30px;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 55px;
    background-color: #fff;
    z-index: 2;
    position: relative;
    transition: all 0.2s ease-in-out;
}
.main-page .main_focus .screen-6__item_link {
    background-color: #fff;
    border-color: #fff;
}
/* SCREEN-7 */
.main-page .screen-7__top{
    padding: 105px 0 60px;
}
.main-page .screen-7__top_title {
    font-size: 36px;
    line-height: 1.23;
    text-align: center;
    font-family: 'Roboto',Arial,sans-serif;
    font-weight: 300;
    color: #000;
    margin: 0 0 15px;
}
.main-page .screen-7__top_desc {
    margin: 0 0 6px;
    font-size: 20px;
    text-align: center;
    line-height: 1.55;
    font-family: 'Roboto',Arial,sans-serif;
    font-weight: 300;
    color: #000;
}
.main-page .screen-7__bottom {
    text-align: center;
    padding: 90px 0;
}
.main-page .screen-7__link {
    font-size: 14px;
    text-decoration: none;
    color: #000;
    border: 1px solid #000;
    font-family: 'Roboto',Arial,sans-serif;
    font-weight: 100;
    padding: 12px 0;
    width: 220px;
    display: inline-block;
}
/* COVER */
.cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    transition: all 0.2s ease-in-out;
    opacity: 0;
}
.main_focus .cover {
    opacity: 1;
}

.mySwiper .screen-1__text, 
.mySwiper .screen-1__link {
    opacity: 0;
}
.swiper-button-next, 
.swiper-button-prev {
    color: white;
}
/* Animation keyframes */
@keyframes custom_scale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
  
    to {
        opacity: 1;
        transform: scale(1);
    }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0px, 50px, 0px);
    }
  
    to {
        opacity: 1;
        transform: translate3d(0px, 0px, 0px);
    }
}
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0px, -100px, 0px);
    }
  
    to {
        opacity: 1;
        transform: translate3d(0px, 0px, 0px);
    }
}
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-100px, 0px, 0px);
    }
  
    to {
        opacity: 1;
        transform: translate3d(0px, 0px, 0px);
    }
}
  
.fadeInDown {
    animation: fadeInDown ease 1s;
}
.fadeInDownForwards {
    animation: fadeInDown ease 1s forwards;
}
.customfadeInUp {
    animation: fadeInUp ease 1s forwards;
}
.fadeInLeft {
    animation: fadeInLeft ease 1s;
}
.fadeInLeftForwards {
    animation: fadeInLeft ease 1s forwards;
}
.custom_scale {
    animation: custom_scale ease 1s;
}
/* Костыли template */
.header_bottom {
    position: relative;
    z-index: 2;
}
@media (min-width: 992px){
    .container {
        width: auto;
    }
}
/* Responsive */
@media (max-width: 1300px) {
    .main-page .screen-2__item {
        margin: -7% 10px 0;
    }
}
@media (max-width: 1200px) {
    .main-page .screen-3__item {
        max-width: 320px;
    }
    .main-page .screen-3__items {
        justify-content: flex-end;
        width: auto;
        margin: 0 20px 0 auto;
    }
    .main-page .screen-5 {
        background-position: center center;
    }
    .main-page .screen-5__wrapper {
        width: 480px;
        margin: 110px 0 0 50%;
    }
}
@media (max-width: 1190px) {
    .main-page .screen-2__items {
        flex-wrap: wrap;
    }
    .main-page .screen-2__img_container {
        height: 465px;
    }
    .main-page .screen-2__text {
        margin-top: 24vh;
    }
    .main-page .screen-2__item_img {
        width: 320px;
        overflow: auto;
        display: block;
        margin: 0 auto;
    }
    .main-page .screen-2__item {
        width: 50%;
        height: auto;
        margin: 0 auto;
    }
    .main-page .screen-2__item:nth-child(1),
    .main-page .screen-2__item:nth-child(2)
    {
        margin: -14% auto 0;
    }
    .main-page .screen-2 {
        height: 980px;
    }
}
@media (max-width: 960px) {
    .main-page .screen-1__container {
        margin-top: 37vh;
        width: 300px;
        margin-left: 17.8%;
    }
    .main-page .screen-2__text {
        font-size: 24px;
    }
    .main-page .screen-2__item_img {
        width: 280px;
    }
    .main-page .screen-3__items {
        margin: 0;
    }
    .main-page .screen-3 {
        flex-wrap: wrap;
    }
    .main-page .screen-3__wrapper {
        width: 100%;
        padding: 120px 0 30px;
    }
    .main-page .screen-3__items {
        justify-content: center;
    }
    .main-page .screen-3__img {
        height: 474px;
        background-position: top center;
        width: 640px;
        margin: 0 auto;
    }
    .main-page .screen-5 {
        background-position: center left;
    }
    .main-page .screen-5__wrapper {
        background: rgba(255,255,255,0.85);
        padding: 15px 35px;
    }
    .main-page .screen-5__link {
        margin: 45px auto 0;
        display: block;
    }
    .main-page .screen-5__wrapper {
        width: 480px;
        margin: 100px auto 0;
    }
}
@media (max-width: 850px) {
    .main-page .screen-1__container {
        margin-left: 13.8%;
    }
}
@media (max-width: 750px) {
    .main-page .screen-1__container {
        margin-left: 7%;
    }
    .main-page .screen-4__items, 
    .main-page .screen-4__item_wrapper,
    .main-page .screen-6__items, 
    .main-page .screen-6__item_wrapper {
        display: block;
        width: 100%;
    }
    .main-page .screen-4__item,
    .main-page .screen-6__item {
        width: auto;
        display: flex;
        height: 750px;
        align-items: center;
        flex-direction: column;
        justify-content: flex-end;
    }
}
@media (max-width: 640px) {
    .main-page .screen-1__text {
        font-size: 22px;
    }
    .main-page .screen-1__container {
        width: 250px;
    }
}
@media (max-width: 580px) {
    .main-page .screen-2__item_img {
        width: 230px;
    }
    .main-page .screen-2 {
        height: 830px;
    }
    .main-page .screen-2__item:nth-child(1),
    .main-page .screen-2__item:nth-child(2) {
        margin: -23% auto 0;
    }
    .main-page .screen-5__wrapper {
        width: 80%;
    }
}
@media (max-width: 530px) {
    .main-page .screen-1__container {
        margin-left: 2%;
    }
    .main-page .screen-2__text {
        font-size: 20px;
    }
    .main-page .screen-3__item {
        max-width: none;
        width: 100%;
    }
    .main-page .screen-3__wrapper {
        padding: 70px 0 30px;
    }
    .main-page .screen-5__text {
        font-size: 15px;
    }
}
@media (max-width: 495px) {
    .main-page .screen-5__wrapper {
        margin: 0;
        width: auto;
        height: 100%;
        padding: 9% 6%;
        overflow: hidden;
        box-sizing: border-box;
    }
    .main-page .screen-5__text {
        text-align: justify;
        color: #000;
    }
    .main-page .screen-5__link {
        color: #000;
        border-color: #000;
    }
    .main-page .screen-5 {
        background-position: 18%;
    }
}
@media (max-width: 480px) {
    .main-page .screen-1__text {
        font-size: 14px;
    }
    .main-page .screen-1__link {
        font-size: 12px;
        width: 178px;
        margin: 20px auto 0;
    }
    .main-page .screen-1__container {
        width: 180px;
        margin-top: 46vh;
        margin-left: auto;
        margin-right: auto;
    }
    .main-page .screen-2__item_img {
        width: 180px;
    }
    .main-page .screen-2__item:nth-child(1),
    .main-page .screen-2__item:nth-child(2) {
        margin: -26% auto 0;
    }
    .main-page .screen-2 {
        height: 720px;
    }
    .main-page .screen-4__item,
    .main-page .screen-6__item {
        height: 600px;
    }
}
@media (max-width: 440px) {
    .main-page .screen-2__img_container {
        height: 360px;
    }
    .main-page .screen-2__text {
        margin-top: 18vh;
    }
    .main-page .screen-2 {
        height: 630px;
    }
    .main-page .screen-4__item,
    .main-page .screen-6__item {
        height: 500px;
    }
}
@media (max-width: 370px) {
    .main-page .screen-2__item_img {
        width: 150px;
    }
    .main-page .screen-2 {
        height: 590px;
    }
}
@media (max-width: 340px) {
    .main-page .screen-4__item,
    .main-page .screen-6__item {
        height: 440px;
    }
    .main-page .screen-5__link {
        margin: 25px auto 0;
    }
    .main-page .screen-7__top_title {
        font-size: 30px;
    }
    .main-page .screen-7__top_desc {
        font-size: 18px;
    }
}
@media (max-width: 320px) {
    .main-page .screen-2__item_img {
        width: 130px;
    }
    .main-page .screen-2 {
        height: 560px;
    }
    .main-page .screen-5__text {
        font-size: 14px;
    }
}
/* === FIX: Screen-5 mobile text cut === */
@media (max-width: 768px) {

  /* контейнеры экрана */
  .screen-5,
  .screen5,
  .screen {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  /* текстовый блок */
  .screen-5 p,
  .screen5 p,
  .screen p {
    text-align: left !important;
    word-spacing: normal !important;
  }

}
/* === AnnaTesori: mobile text fix (Screen-5) === */
@media (max-width: 768px){

  /* убираем растяжение пробелов на мобиле */
  .screen-5, .screen5, .screen p, .screen-5 p, .screen5 p {
    text-align: left !important;
    word-spacing: normal !important;
  }

  /* снимаем обрезку/фиксированную высоту (если она на контейнере) */
  .screen-5, .screen5, .screen-5 * , .screen5 * {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
  }
}
/* === FIX: подложка/оверлей под текстом Screen-5 должен покрывать весь текст === */
.main-page .screen-5 {
  position: relative;
}

/* если подложка сделана через псевдоэлемент */
.main-page .screen-5:before,
.main-page .screen-5:after {
  height: 100% !important;
  top: 0;
  bottom: 0;
}

/* если подложка отдельным блоком */
.main-page .screen-5 .overlay,
.main-page .screen-5 .mask,
.main-page .screen-5 .shadow,
.main-page .screen-5 .bg {
  height: 100% !important;
  top: 0;
  bottom: 0;
}
/* === Screen-5: фон под текстом на всю высоту текста === */
.main-page .screen-5_text{
  background: rgba(0,0,0,0.32);
  padding: 22px 22px;
  border-radius: 6px;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}
/* === Screen-5: mobile — убрать обрезку и "дырки" между словами === */
@media (max-width: 768px){

  .main-page .screen-5{
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .main-page .screen-5_text{
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;

    /* убираем растянутые пробелы */
    text-align: left !important;
    word-spacing: normal !important;
  }
}

/* Îãðàíè÷èâàåì øèðèíó âñ¸, ÷òî íå ÿâëÿåòñÿ ôîíîì */
body > * {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Ñáëèæåíèå ïóíêòîâ ìåíþ */
.bottom_sub_menu ul {
    display: flex !important;
    justify-content: center !important;
    gap: 20px !important;
    padding-left: 0 !important;
}

.bottom_sub_menu ul li {
    width: auto !important;
    margin: 0 !important;
    padding: 0 10px !important;
}

/* Öåíòðèðîâàíèå âñåãî ìåíþ */
.bottom_sub_menu {
    text-align: center !important;
}