/* Внутренние страницы (общие стили) */
.content h1 {
    font-size: 64px;
}

/* Футер  */
footer p {
    margin: 0;
}

.footer__block {
    display: flex;
    justify-content: space-between;
    padding: 11px 0;
    color: var(--elements-light);
    font-size: 13px;
}

.footer__block a {
    color: var(--elements-light);    
}

.footer__block a:hover {
    color: var(--elements-dark);    
}

.footer__creator a,
.footer__creator a:hover {
    color: #E31E24;
}

.footer__creator .anim-link:before {
    bottom: 0;
    height: 1px;
    background: #E31E24;
}
/* Футер - end */

/* Блок цитаты */
.quote {
    display: flex;
    justify-content: space-between;
    max-width: 80%;
    margin: 120px auto 110px auto;
}

.quote__title {
    width: 50%;
}

.quote__title p {
    margin: 0;
}

.quote__description {
    width: 42%;
    margin-top: 12px;
}

.quote-text  {
    max-width: 645px;
}
/* Блок цитаты - end */

/* Типовые анимированные границы */
.animate-border {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.animate-border__item,
.animate__half-border_left .animate-border__item_left:before,
.animate__half-border_left .animate-border__item_left:after {
    position: absolute;
    display: block;
    width: 100%;
    border-style: solid;
    border-color: transparent;
    border-width: 10px;
    transition: all 0.4s linear 0s, border-width 0s;
    -webkit-transition: all 0.4s linear 0s, border-width 0s;
    -moz-transition: all 0.4s linear 0s, border-width 0s;
    -ms-transition: all 0.4s linear 0s, border-width 0s;
    -o-transition: all 0.4s linear 0s, border-width 0s;    
}

.animate-border__item {
    height: 100%;
    opacity: 0.05;
}

.animate__half-border_left .animate-border__item_left:before,
.animate__half-border_left .animate-border__item_left:after {
    content: '';
    height: calc(50% + 10px); 
}

.animate-border__item_top {
    top: 0;
    border-top-color: var(--elements-light);
}

.animate__half-border_left .animate-border__item_top {
    left: 0;
}

.animate__half-border_right .animate-border__item_top {
    right: 0;
}

.animate__half-border_left .animate-border__item_right,
.animate__half-border_right .animate-border__item_left {
    top: 0;
}

.animate__half-border_left .animate-border__item_right {
    right: 0;
    border-right-color: var(--elements-light);
}

.animate__half-border_right .animate-border__item_left {
    left: 0;
    border-left-color: var(--elements-light);
}

.animate__half-border_left .animate-border__item_bottom,
.animate__half-border_right .animate-border__item_bottom {
    bottom: 0;
    border-bottom-color: var(--elements-light);
}

.animate__half-border_left .animate-border__item_bottom {
    right: 0;
}

.animate__half-border_right .animate-border__item_bottom {
    left: 0;
}

.animate__half-border_left .animate-border__item_left,
.animate__half-border_right .animate-border__item_right {
    position: relative;
    bottom: 0;
    height: 100%;
    border: none;
}

.animate__half-border_left .animate-border__item_left {
    left: 0;
}

.animate__half-border_right .animate-border__item_right {
    right: 0;
}

.animate__half-border_left .animate-border__item_left:before,
.animate__half-border_left .animate-border__item_left:after {
    left: 0;
    border-left-color: var(--elements-light);
}

.animate__half-border_right .animate-border__item_right:before,
.animate__half-border_right .animate-border__item_right:after {
    right: 0;
    border-right-color: var(--elements-light);
}

.animate__half-border_left .animate-border__item_left:before,
.animate__half-border_right .animate-border__item_right:before {
    bottom: calc(50% - 10px);
}
.animate__half-border_left .animate-border__item_left:after,
.animate__half-border_right .animate-border__item_right:after {
    bottom: 0;
}
/* Типовые анимированные границы - end*/

.top__block {
    display: flex;
    justify-content: space-between;
    height: 100vh;
    overflow: hidden;
}

.top-block__logo {
    position: absolute;
    top: 50px;
    left: 175px;
    z-index: 8;
}

.top-block__text-wrap {
    position: relative;
    display: flex;
    flex-basis: 100%;
    height: 100%;
}

.top-block__text {    
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 80%;
    max-width: 610px;
    height: 100%;
    margin: auto;
    padding-right: 50px;
}

.top-block__description {
    display: flex;    
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    font-family: Playfair Display;
    font-size: 30px;
    text-transform: uppercase;
}

.top-block__description p {
    flex-shrink: 0;
    margin-bottom: 0;
}

.top-block__description-line {
    display: inline-block;
    height: 1px;
    width: 100%;
    margin-top: 2px;
    margin-left: 20px;
    background: rgba(9, 9, 9, 0.5);
}

.top-block__bg-svg {
    position: absolute;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.top-block__arrow-down {
    position: absolute;
    bottom: 15px;
    left: -10px;
    padding: 0 10px;
    cursor: pointer;
}

.top-block__arrow-down svg {
    animation: arrow-down-animate 2s ease-in-out 0s infinite;
    -webkit-animation: arrow-down-animate 2s ease-in-out 0s infinite;
}

.top-block__arrow-down:hover svg {
    animation-play-state: paused;
}

@keyframes arrow-down-animate {
    0% {
        /*margin-bottom: 40px;
        */opacity: 0;
        transform: translateY(-40px);
        -webkit-transform: translateY(-40px);
        -moz-transform: translateY(-40px);
        -ms-transform: translateY(-40px);
        -o-transform: translateY(-40px);
}

    50% {
        opacity: 1;
    }

    100% {
        /*margin-bottom: 0;
        */opacity: 0;
        transform: translateY(0px);
        -webkit-transform: translateY(0px);
        -moz-transform: translateY(0px);
        -ms-transform: translateY(0px);
        -o-transform: translateY(0px);
}
}

.top-block__gallery {
    flex-basis: 100vh;
    flex-shrink: 0;
}

.top__slider {
    position: relative;
    width: 60%;
    flex-shrink: 0;
    height: 100%;
    overflow: hidden;
}

.swiper-container.loading + .slider-button {
    opacity: 0;
}

.slider-button {
    position: absolute;
    bottom: 40px;
    right: 100px;
    display: flex;
    align-items: center;
    opacity: 1;
    color: var(--white);
    z-index: 1;
    transition: 0.5s;
    -webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -ms-transition: 0.5s;
    -o-transition: 0.5s;
}

.slider-button path {
    fill: var(--white);
}

.slider-button circle {
    stroke: var(--white);
}

/* Блок с карточками */
.cards__block {
    margin-bottom: 133px;
    padding-top: 120px;
}

/*  */
.card-border {
    position: absolute;
    top: -20px;
    left: -20px;
    height: calc(100% + 40px);
    width: calc(100% + 40px);
}

.card-border__item {
    position: absolute;
    display: block;
    background: var(--elements-hover2);
    z-index: -1;
}

.card-border__item_top {
    top: 0;
    right: 0;
    --card-border-width: 100%;
    --card-border-height: 10px;
}

.card-border__left-to-right .card-border__item_top {
    right: auto;
    left: 0;
}

.card-border__item_right {
    right: 0;
    bottom: 0;
    --card-border-width: 10px;
    --card-border-height: 100%;
}

.card-border__left-to-right .card-border__item_right {
    top: 0;    
    bottom: auto;    
}

.card-border__item_bottom {
    bottom: 0;
    left: 0;
    --card-border-width: 100%;
    --card-border-height: 10px;
}

.card-border__left-to-right .card-border__item_bottom {
    right: 0;
    left: auto;
}

.card-border__item_left {
    top: 0;
    left: 0;
    --card-border-width: 10px;
    --card-border-height: 100%;
}

.card-border__left-to-right .card-border__item_left {
    top: auto;
    bottom: 0;
}

.card-border__item_half {
    background: transparent;
}

.card-border__item_half:before,
.card-border__item_half:after {
    content: '';
    position: absolute;  
    background: var(--elements-hover2);
}

.card-border__item_top.card-border__item_half:before,
.card-border__item_top.card-border__item_half:after {
    --card-border-width: 50%;
    --card-border-height: 10px;
}

.card-border__item_top.card-border__item_half:before {
    top: 0;
    right: 50%;
}

.card-border__item_top.card-border__item_half:after {
    top: 0;
    right: 0;    
}

.card-border__item_right.card-border__item_half:before,
.card-border__item_right.card-border__item_half:after {
    --card-border-width: 10px;
    --card-border-height: 50%;
}

.card-border__item_right.card-border__item_half:before {
    bottom: 50%;
    right: 0;
}

.card-border__item_right.card-border__item_half:after {
    bottom: 0;
    right: 0;    
}

.card-border__left-to-right .card-border__item_left.card-border__item_half:before,
.card-border__left-to-right .card-border__item_left.card-border__item_half:after {
    --card-border-width: 10px;
    --card-border-height: 50%;
}

.card-border__left-to-right .card-border__item_left.card-border__item_half:before {
    bottom: 50%;
    right: 0;
}

.card-border__left-to-right .card-border__item_left.card-border__item_half:after {
    bottom: 0;
    right: 0;    
}

.card-border__item,
.card-border__item_half:before,
.card-border__item_half:after {
    width: var(--card-border-width);
    height: var(--card-border-height);
    transition-timing-function: linear;
}
/*  */
/* Блок с карточками - end  */

/* Галерея  */
.gallery {
    margin-top: 50px;
}

.gallery__svg {
    text-align: center;
    padding: 3% 0;
}

.gallery__block {
    display: grid;
    grid-gap: 10px;
    grid-template-columns: calc(100% / 3 - (20px / 3)) calc(100% / 3 - (20px / 3)) calc(100% / 3 - (20px / 3));
    grid-auto-rows: calc((100vw - 200px) / 3 * 0.65);
}

.gallery__item-wrap {
    overflow: hidden;
    display: flex;
    justify-content: center;

}

.gallery__item-wrap:nth-child(11n + 1),
.gallery__item-wrap:nth-child(11n + 8),
.gallery__item-wrap:nth-child(11n + 9) {
    grid-row-end: span 1;
}

.gallery__item-wrap:nth-child(11n + 2),
.gallery__item-wrap:nth-child(11n + 3),
.gallery__item-wrap:nth-child(11n + 4),
.gallery__item-wrap:nth-child(11n + 5),
.gallery__item-wrap:nth-child(11n + 6),
.gallery__item-wrap:nth-child(11n + 7),
.gallery__item-wrap:nth-child(11n + 11) {
    grid-row-end: span 2;
}

.gallery__item-wrap:nth-child(11n + 10) {
    grid-row-end: span 2;
    grid-column-end: span 2;
}

.gallery__item {
    position: relative;
    height: 100%;
    width: 100%;
    background-position: center;
    background-size: cover;
}

.gallery__item-before,
.gallery__item-before:before {
    position: absolute;
    bottom: 0;
    left: 0;
    display: block;
    width: 100%;
}

.gallery__item-before {
    height: 100%;
    transform: scale(1.2);
    -webkit-transform: scale(1.2);
    -moz-transform: scale(1.2);
    -ms-transform: scale(1.2);
    -o-transform: scale(1.2);
}

.gallery__item-before:before {
    content: '';
    height: 0%;
    background: var(--background);
    animation: 0.6s ease-in-out both;
    -webkit-animation: 0.6s ease-in-out both;
}

.gallery-item__y-top {
    background-position-y: top;    
}
.gallery-item__y-bottom {
    background-position-y: bottom;    
}

.gallery-item__x-left {
    background-position-x: left;    
}

.gallery-item__x-right {
    background-position-x: right;    
}
/* Галерея - end  */

/* Блок с видео  */
.video {
    text-align: center;
}

.video__image {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.video__image img  {
    vertical-align: middle;
}

.video__play {
    position: absolute;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.video__image:hover .video__play {
    background-color: rgba(0, 0, 0, 0.1);
}

.video__play, 
.video__play svg,
.video__play circle {
    transition: 0.6s cubic-bezier(0.2, 0.6, 0.3, 0.8);
    -webkit-transition: 0.6s cubic-bezier(0.2, 0.6, 0.3, 0.8);
    -moz-transition: 0.6s cubic-bezier(0.2, 0.6, 0.3, 0.8);
    -ms-transition: 0.6s cubic-bezier(0.2, 0.6, 0.3, 0.8);
    -o-transition: 0.6s cubic-bezier(0.2, 0.6, 0.3, 0.8);
}

.video__image:hover .video__play svg {
    width: 120px;
    height: 120px;
}

.video__image:hover .video__play circle {
    opacity: 0.6;
}
/* Блок с видео - end  */

/* Контактная форма  */
.contact-form__title {
    background: var(--background);
}

.contact-form .animate-border,
.contact-form.animateContactForm.wow .animate-border {
    width: 148%;
    right: 0;
    left: auto;
}
/* Контактная форма - end */

/* Мини галерея внузи страницы */
.small-gallery {
    background-color: var(--elements-hover2);
}

.small-gallery__wrap {
    max-width: 1320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
    padding: 64px 0 92px 0;
}

.small-gallery__title {
    max-width: 790px;
    margin-bottom: 44px;
    text-align: center;
}

.small-gallery__block {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-auto-rows: 256px;
    grid-gap: 10px;
    width: 100%;
}

.small-gallery__item {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.small-gallery__item img {
    width: 100%;
    height: auto;
    max-height: 1000px;
    transform: scale(1.001);
    -webkit-transform: scale(1.001);
    -moz-transform: scale(1.001);
    -ms-transform: scale(1.001);
    -o-transform: scale(1.001);
    transition: 0.4s ease-in-out;
    -webkit-transition: 0.4s ease-in-out;
    -moz-transition: 0.4s ease-in-out;
    -ms-transition: 0.4s ease-in-out;
    -o-transition: 0.4s ease-in-out;
}


.small-gallery__item:hover img {
    transform: scale(1.02);
    -webkit-transform: scale(1.02);
    -moz-transform: scale(1.02);
    -ms-transform: scale(1.02);
    -o-transform: scale(1.02);
}
/* Мини галерея внизу страницы - end */

.quote-text {
    --quote-padding: 70px;
    position: relative;
    display: inline-block;
    padding: 0 var(--quote-padding);
    font-size: 30px;
    font-style: italic;
}

.quote-text:before,
.quote-text:after {
    position: absolute;
    display: block;
    color: var(--elements-hover_bright);
    font-size: 72px; 
    line-height: 0.7;
}

.quote-text:before {
    content: '«';
    top: 0;
    left: 0;
}

.quote-text:after {
    content: '»';
    bottom: 0;
    right: 0;
}

.content__slider {
    height: auto;
    /* min-height: 500px; */
}

.content__slider .swiper-container {
    float: none;
}

.content__slider .swiper-slide {
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.2;
    transition: 0.3s;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
}

.content__slider .swiper-slide-active {
    opacity: 1;
}

.content__slider .slide-bg {
    content: '';
    position: absolute;
    top: 0;
    left: 80px;
    width: calc(100% - 80px - 17%);
    height: calc(100% - 70px);
    background-color: var(--elements-hover2); 
    z-index: -1;
}

.content__slider .slide-image {
    margin-top: 30px;
    background-repeat: no-repeat;
    background-size: cover;
}

.content__slider .slide-text,
.content__slider .slide-text.h3 {
    position: relative;
    max-width: 34%;
    font-size: 22px;
    text-transform: uppercase;
}

.content__slider .slide-number,
.content__slider .slide-number.h1 {
    margin-bottom: 9%;
    color: var(--elements-hover_bright);
    font-family: 'PT Serif', sans-serif;
    /* font-weight: 700; */
}

.content__slider .slider-button {
    position: relative;
    right: auto;
    bottom: auto;
    max-width: fit-content;
    margin: auto;
    margin-top: 18px;
    color: var(--elements-dark);
}

.content__slider .slider-button circle {
    stroke: var(--elements-dark);
}

.content__slider .slider-button path {
    fill: var(--elements-dark);
}

/* .content__slider {
    height: 500px;
}

.content__slider .swiper-slide {
    height: 500px;
    width: 850px;
} */

/* Внутренние страницы (общие стили) - end */
@media(min-width: 1921px) {
    .gallery__block {
        grid-auto-rows: calc((1920px - 200px) / 3 * 0.65);
    }
}

@media(max-width: 1799px) {
    .top-block__logo {
        top: 25px;
        left: 125px;
    }
    .top__slider {
        width: 55%;
    }
    /* Блок цитаты */
    .quote {
        max-width: 90%;
    }
    .quote-text {
        --quote-padding: 50px;
    }
    /* Блок цитаты - end */ 
    .contact-form .animate-border, 
    .contact-form.animateContactForm.wow .animate-border {
        width: 125%;
    }
}

@media(max-width: 1599px) {
    .content h1 {
        font-size: 54px;
    }
    .top-block__text {
        min-width: 70%;
        max-width: 520px;
    }
    .top-block__description {
        font-size: 28px;
    }
    /* Блок цитаты */ 
    .quote {
        max-width: 100%;
    }
    .quote__title {
        max-width: 45%;
    }
    .quote__description {
        width: 44%;
    }
    .quote-text {
        font-size: 26px;
    }
    .quote-text:before, 
    .quote-text:after {
        font-size: 60px;
    }
    /* Блок цитаты - end */ 
    .cards__block {
        margin-bottom: 80px;
    }
    .small-gallery__block {
        grid-auto-rows: 210px;
    }
    .content__slider .slide-bg {
        height: calc(100% - 40px);
    }
    .content__slider .slide-text,
    .content__slider .slide-text.h3 {
        font-size: 16px;
    }
}

@media(max-width: 1399px) {
    .content h1 {
        font-size: 42px;
    }
    .top-block__description {
        font-size: 24px;
    }
    /* Блок цитаты */
    .quote__description {
        width: 49%;
    }
    /* Блок цитаты - end */
    .video__play svg {
        width: 80px;
        height: 80px;
    }

    .video__image:hover .video__play svg {
        width: 84px;
        height: 84px;
    }
    .cards__block {
        margin-bottom: 90px;
    }
}

@media(max-width: 1280px) {
    .top-block__logo {
        top: 15px;
        height: 60px;
    }
    .slider-button {
        right: 80px;
    }
}


@media(max-width: 1199px) {
    .top__block {
        max-height: 60vw;
    }
    .top-block__text {
        margin: 0 30px;
        padding-right: 0;
    }
    .top-block__bg-svg svg {
        max-height: 60%;
    }
    /* Блок цитаты */
    .quote {
        margin: 80px auto 70px auto;
    }
    /* Блок цитаты - end */
    .small-gallery__block {
        grid-auto-rows: 180px;
    }
    .small-gallery__wrap {
        padding: 50px 0 70px 0;
    }
    .content__slider .slide-bg {
        width: calc(100% - 80px - 20%);
    }
    .content__slider .slide-text, 
    .content__slider .slide-text.h3 {
        max-width: 41%;
        font-size: 14px;
    }
}

@media(max-width: 1024px) {    
    body {
        --container-padding: 30px;
    }
    .content h1,
    .content .h1 {
        font-size: 50px;
    }
    .content h2, 
    .content .h2 {
        font-size: 28px;
    }
    .content h3, 
    .content .h3 {
        font-size: 20px;
    }
    .container {
        padding: 0 30px;
    }
    .slider-button {
        right: 30px;
        bottom: 20px;
    }
    .top__block {
        flex-direction: column;
        height: 100%;
        max-height: 100%;
        margin-bottom: 90px;
        padding-top: 130px;
    }
    .top-block__logo {
        right: 30px;
        left: auto;
        height: 55px;
    }
    .top-block__text-wrap {
        height: auto;
        margin-bottom: 40px;
    }
    .top-block__text {
        min-width: 0;
        max-width: 405px;
        margin: 0 80px;
    }
    .top-block__description {
        margin-top: 15px;
        font-size: 20px;
    }
    .top-block__arrow-down {
        display: none;
    }
    .top__slider {
        width: 100%;
        height: calc(100vw / 1.5);
    }
    .cards__block {
        padding: 0;
        margin-top: 90px;
    }
    .video__image:hover .video__play svg {
        width: 80px;
        height: 80px;
    }
    .altai__page .gallery,
    .altai__page .contact-form {
        margin-bottom: 90px;
    }
    .gallery__block {
        display: grid;
        grid-gap: 5px;
        grid-template-columns: calc(100% / 3 - (10px / 3)) calc(100% / 3 - (10px / 3)) calc(100% / 3 - (10px / 3));
        grid-auto-rows: calc((100vw - 60px) / 3 * 0.65);
    }
    .small-gallery__title {
        max-width: 540px;
    }
    .quote-text {
        --quote-padding: 30px;
        font-size: 18px;
    }
    .quote-text:before, .quote-text:after {
        font-size: 42px;
    }
}

@media(max-width: 990px) {
    .content h1, 
    .content .h1 {
        font-size: 42px;
    }
    .content h2, 
    .content .h2 {
        margin-bottom: 20px;
        font-size: 24px;
    }
    .content {
        font-size: 14px;
    }
    .top__block {
        padding-top: 140px;
    }
    .top-block__description {
        font-size: 18px;
    }
    /* Блок цитаты */
    .quote {
        flex-direction: column;
        margin: 60px auto 50px auto;
    }
    .quote__title,
    .quote__description {
        width: 100%;
    }
    .quote__title {
        max-width: 370px;
    }
    .quote__description {
        max-width: 80%;
        margin-top: 30px;
        margin-left: auto;
    }
    /* Блок цитаты - end */
    .cards__block {
        margin-top: 70px;
        margin-bottom: 70px;
    }
    .video__image:hover .video__play svg,
    .video__play svg {
        width: 70px;
        height: 70px;
    }
    .small-gallery__block {
        grid-auto-rows: 150px;
    }
    .footer__block {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }
    .footer-block__item:not(:last-child) {
        margin-bottom: 5px;
    }
    .footer__phone {
        order: -1;
    }
}

@media(max-width: 767px) {
    .content {
        font-size: 13px;
    }
    .content h1, .content .h1 {
        font-size: 36px;
    }
    .top__block {
        padding-top: 110px;
    }
    .top-block__logo {
        right: 15px;
        height: 40px;
        max-width: 160px;
    }
    .top-block__text {
        margin: 0 60px;
    }
    .top-block__text-wrap {
        margin-bottom: 30px;
    }
    .top-block__description {
        font-size: 16px;
    }
    /* Блок цитаты */
    .quote {
        margin: 50px auto 40px auto;
    }
    .quote__title {
        max-width: 325px;
    }
    .quote__description {
        max-width: 85%;
        margin-top: 30px;
    }
    /* Блок цитаты - end */
    .cards__block {
        width: 515px;
        margin: auto;
        margin-top: 50px;
        margin-bottom: 20px;
    }
    .video__image:hover .video__play svg,
    .video__play svg {
        width: 60px;
        height: 60px;
    }
    .contact-form .animate-border, 
    .contact-form.animateContactForm.wow .animate-border {
        top: auto;
        bottom: 0;
        width: 100%;
        height: 140%;
    }
    .small-gallery__wrap {
        padding: 35px 0 40px 0;
    }
    .small-gallery__title {
        margin-bottom: 20px;
    }
    .small-gallery__block {
        grid-auto-rows: 110px;
        grid-gap: 5px;
    }
    .footer__block {
        font-size: 12px;
    }
    .footer__phone {
        font-size: 14px;
    }
    .quote-text {
        --quote-padding: 30px;
        font-size: 16px;
    }
    .quote-text:before, .quote-text:after {
        font-size: 32px;
    }
}

@media(max-width: 574px) {
    
    body {
        --container-padding: 10px;
    }
    .container {
        padding: 0 10px;
    }
    .content h3, 
    .content .h3 {
        font-size: 16px;
    }
    .top__block {
        margin-bottom: 55px;
        padding-top: 100px;
    }
    .top-block__text {
        margin: 0 15px;
    }
    .swiper-arrow__prev,
    .swiper-arrow__next {
        max-width: 40px;
    }
    /* Блок цитаты */
    .quote__description {
        max-width: 100%;
    }
    /* Блок цитаты - end */
    .cards__block {
        width: 355px;
    }
    .gallery__block {
        grid-auto-rows: calc((100vw - 20px) / 3 * 0.65);
    }
    .small-gallery__block {
        grid-auto-rows: 70px;
    }
    .footer-block__item:not(:last-child) {
        margin-bottom: 0;
    }
    .footer-block__item:first-child {
        margin-bottom: 10px;
    }

    .content__slider .slide-bg,
    .content__slider .slide-text, 
    .content__slider .slide-text.h3 {
        left: 40px;
        width: calc(100% - 40px);
        height: calc(100% - 15px);
    }
    .content__slider .slide-bg {
        opacity: 0.9;
        z-index: 0;
    }
    .content__slider .slide-image {
        margin-top: 15px;
    }
    .content__slider .slide-text, 
    .content__slider .slide-text.h3 {
        position: absolute;
        top: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        max-width: 100%;
        padding: 10px 20px;
        font-size: 13px;
    }
    .content__slider .slide-number, 
    .content__slider .slide-number.h1 {
        margin-bottom: 5px;
        font-size: 26px;
    }
    .content__slider .slide-title {
        margin-bottom: 5px;
    }
}

@media(max-width: 374px) {
    .content h1, 
    .content .h1 {
        font-size: 32px;
    }    
    .cards__block {
        width: 300px;
    }
    .small-gallery__wrap {
        padding: 35px 0 35px 0;
    }
    .small-gallery__block {
        grid-auto-rows: 60px;
    }
}



/* Анимации для элементов внутренних страниц */
/* Анимация border */
@media(min-width: 1208px) {
    .wow .animate-border,
    .wow .animate-border__item,
    .wow .animate__half-border_left .animate-border__item_left:before,
    .wow .animate__half-border_left .animate-border__item_left:after,
    .wow .animate__half-border_right .animate-border__item_right:before,
    .wow .animate__half-border_right .animate-border__item_right:after {
        width: 0;
        height: 0;
        border-width: 0;
    }

    .animated .animate-border__item,
    .animated .animate__half-border_left .animate-border__item_left:before,
    .animated .animate__half-border_left .animate-border__item_left:after,
    .animated .animate__half-border_right .animate-border__item_right:before,
    .animated .animate__half-border_right .animate-border__item_right:after {
        border-width: 10px;
    }


    .wow .animate-border,
    .animated .animate-border__item {
        width: 100%;
        height: 100%;
    }

    .animated .animate__half-border_left .animate-border__item_left:before,
    .animateContactForm.animated .animate__half-border_left .animate-border__item_left:after,
    .animated .animate__half-border_right .animate-border__item_right:before,
    .animated .animate__half-border_right .animate-border__item_right:after {
        width: 100%;
        height: calc(50% + 10px);
    }

    .animated .animate-border__item_top {
        transition-delay: 0.8s;
    }


    .animated .animate__half-border_left .animate-border__item_right, 
    .animated .animate__half-border_right .animate-border__item_left {
        transition-delay: 1.2s;
    }

    .animated .animate-border__item_bottom {
        transition-delay: 1.6s;
    }

    .animated .animate__half-border_left .animate-border__item_left:before, 
    .animated .animate__half-border_right .animate-border__item_right:before {
        transition-delay: 0.4s;
    }


    .animated .animate__half-border_left .animate-border__item_left:after, 
    .animated .animate__half-border_right .animate-border__item_right:after {
        transition-delay: 2s;
    }
    /* Анимация border - end */

    /* Настройки анимаций для отдельных элементов */
    .menu.animated {
        animation-delay: 0s;
        animation-duration: 1.4s;
    }

    .top-block__bg-svg.animated {
        animation-delay: 1s;    
    }

    h1.animated,
    h1 .animateUpText.animated  {
    animation-delay: 1.4s;
    }

    .top-block__description.animated {
        animation-delay: 1.8s;
    }

    .top-block__logo.animated {
        animation-delay: 2.4s;
    }

    .top-block__description-line.animated  {
        animation-delay: 2.2s;
    }

    .top-block__arrow-down.animated {
        animation-delay: 2.6s;    
    }

    .video-block__content.animateUp.animated  {
    animation-delay: 0.5s;
    }

    .create-story__title.animateRightHalf.animated {
        animation-delay: 0.5s;    
        z-index: 10;
    }

    .create-story__text.animateUp.animated {
        animation-delay: 0.8s;
    }


    /* Анимация галереи */
    /*  */
    .gallery__item {
        transform-origin: center;
    }
    .animateGallery.animated {
        animation-name: animateGallery;
        animation-duration: 0.6s;
    }

    @keyframes animateGallery {
        0% {
            width: 80%;
            height: 80%;
            opacity: 0;
            transform: translateY(200px);
            -webkit-transform: translateY(200px);
            -moz-transform: translateY(200px);
            -ms-transform: translateY(200px);
            -o-transform: translateY(200px);
        }
        70% {
            width: 100%;
            height: 100%;
            opacity: 1;
        }
        100% {
            transform: translateY(0);
            -webkit-transform: translateY(0);
            -moz-transform: translateY(0);
            -ms-transform: translateY(0);
            -o-transform: translateY(0);
        }
    }

    /*  */
    .animateGalleryBefore.animated:before {
        animation-name: animateGalleryBefore;
        animation-duration: 0.6s;
    }

    @keyframes animateGalleryBefore {
        0% {
            height: 100%;
        }
        100% {
            height: 0%;
        }
    }

    .gallery__item-wrap:nth-child(11n + 1) .gallery__item.wow, 
    .gallery__item-wrap:nth-child(11n + 4) .gallery__item.wow, 
    .gallery__item-wrap:nth-child(11n + 7) .gallery__item.wow, 
    .gallery__item-wrap:nth-child(11n + 10) .gallery__item.wow,

    .gallery__item-wrap:nth-child(11n + 1) .gallery__item.wow .gallery__item-before:before, 
    .gallery__item-wrap:nth-child(11n + 4) .gallery__item.wow .gallery__item-before:before, 
    .gallery__item-wrap:nth-child(11n + 7) .gallery__item.wow .gallery__item-before:before, 
    .gallery__item-wrap:nth-child(11n + 10) .gallery__item.wow .gallery__item-before:before {
        animation-delay: 0.1s;
    }
    .gallery__item-wrap:nth-child(11n + 2) .gallery__item.wow, 
    .gallery__item-wrap:nth-child(11n + 5) .gallery__item.wow,
    .gallery__item-wrap:nth-child(11n + 8) .gallery__item.wow,

    .gallery__item-wrap:nth-child(11n + 2) .gallery__item.wow .gallery__item-before:before, 
    .gallery__item-wrap:nth-child(11n + 5) .gallery__item.wow .gallery__item-before:before,
    .gallery__item-wrap:nth-child(11n + 8) .gallery__item.wow .gallery__item-before:before {
        animation-delay: 0.2s;
    }
    .gallery__item-wrap:nth-child(11n + 3) .gallery__item.wow,
    .gallery__item-wrap:nth-child(11n + 6) .gallery__item.wow, 
    .gallery__item-wrap:nth-child(11n + 9) .gallery__item.wow,

    .gallery__item-wrap:nth-child(11n + 3) .gallery__item.wow .gallery__item-before:before,
    .gallery__item-wrap:nth-child(11n + 6) .gallery__item.wow .gallery__item-before:before,
    .gallery__item-wrap:nth-child(11n + 9) .gallery__item.wow .gallery__item-before:before {
        animation-delay: 0.3s;
    }

    /*  */
    .small-gallery__title.animated {    
        animation-delay: 0s;
    }
    .small-gallery__item.animated {
        animation-delay: 0.2s;
    }
    footer {
        overflow: hidden;
    }
    .footer-block__item.animated {
        animation-delay: 0.3s;
    }

    /*  */
    /* Анимация слайдера в контенте */
    .animateContentSlider.animated .slide-bg,
    .animateContentSlider.animated .slide-image,
    .animateContentSlider.animated .slide-number,
    .animateContentSlider.animated .slide-title {
        animation: 0.6s ease-in-out both 0.2s;
        -webkit-animation: 0.6s ease-in-out both 0.2s;
    }

    .animateContentSlider.animated .slide-bg {
        transform-origin: right;
        animation-name: animateContentSliderBG;
        animation-delay: 0.3s;
    }

    @keyframes animateContentSliderBG {
    0% {
        transform: scaleX(0);
        -webkit-transform: scaleX(0);
        -moz-transform: scaleX(0);
        -ms-transform: scaleX(0);
        -o-transform: scaleX(0);
    }
    100% {
        transform: scaleX(1);
        -webkit-transform: scaleY(1);
        -moz-transform: scaleY(1);
        -ms-transform: scaleY(1);
        -o-transform: scaleY(1);
        }
    }

    .animateContentSlider.animated .slide-image {
        animation-name: animateContentSliderImage;
        animation-delay: 0.6s;
    }

    @keyframes animateContentSliderImage {
    0% {
        transform: translateX(-100%);
        -webkit-transform: translateX(-100%);
        -moz-transform: translateX(-100%);
        -ms-transform: translateX(-100%);
        -o-transform: translateX(-100%);
    }
    100% {
        transform: translateX(0%);
        -webkit-transform: translateX(0%);
        -moz-transform: translateX(0%);
        -ms-transform: translateX(0%);
        -o-transform: translateX(0%);
    }
    }

    .animateContentSlider.animated .slide-number,
    .animateContentSlider.animated .slide-title {
        animation-name: animateUp;
        animation-delay: 1s;
    }
    /* Анимация слайдера в контенте - end */

    /*  */
    .animated .card-border__item:not(.card-border__item_half) {
        transition-duration: 0.4s;
    }

    .animated .card-border__item_half:before,
    .animated .card-border__item_half:after {
        transition-duration: 0.4s;
    }

    .wow .card-border__item_top,
    .wow .card-border__item_top,
    .wow .card-border__item_bottom,
    .wow .card-border__item_bottom,
    .wow .card-border__item_top.card-border__item_half:before,
    .wow .card-border__item_top.card-border__item_half:after,
    .wow .card-border__item_bottom.card-border__item_half:before,
    .wow .card-border__item_bottom.card-border__item_half:after {
        width: 0;
    }

    .wow .card-border__item_left,
    .wow .card-border__item_left,
    .wow .card-border__item_right,
    .wow .card-border__item_right,
    .wow .card-border__item_left.card-border__item_half:before,
    .wow .card-border__item_left.card-border__item_half:after,
    .wow .card-border__item_right.card-border__item_half:before,
    .wow .card-border__item_right.card-border__item_half:after {
        height: 0;
    }

    .wow .card-border__item_top.card-border__item_half,
    .wow .card-border__item_right.card-border__item_half,
    .wow .card-border__item_bottom.card-border__item_half,
    .wow .card-border__item_left.card-border__item_half {
        width: var(--card-border-width);
        height: var(--card-border-height);
        background: transparent;
    }

    .animated .card-border__item_top,
    .animated .card-border__item_top,
    .animated .card-border__item_bottom,
    .animated .card-border__item_bottom,
    .animated .card-border__item_top.card-border__item_half:before,
    .animated .card-border__item_top.card-border__item_half:after,
    .animated .card-border__item_bottom.card-border__item_half:before,
    .animated .card-border__item_bottom.card-border__item_half:after {
        width: var(--card-border-width);
    }

    .animated .card-border__item_left,
    .animated .card-border__item_left,
    .animated .card-border__item_right,
    .animated .card-border__item_right,
    .animated .card-border__item_left.card-border__item_half:before,
    .animated .card-border__item_left.card-border__item_half:after,
    .animated .card-border__item_right.card-border__item_half:before,
    .animated .card-border__item_right.card-border__item_half:after {
        height: var(--card-border-height);
    }

    .animated .card-border__item_half:before {
        transition-delay: 0.6s;
    }
    .animated .card-border__item_top:not(.card-border__item_half) {
        transition-delay: 1s;
    }
    .animated .card-border__item_left:not(.card-border__item_half),
    .animated .card-border__item_right:not(.card-border__item_half) {
        transition-delay: 1.4s;
    }
    .animated .card-border__item_bottom:not(.card-border__item_half) {
        transition-delay: 1.8s;
    }
    .animated .card-border__item_half:after {
        transition-delay: 2.2s;
    }
    /*  */
}