@font-face {
    font-family: 'FiraSansCondensed';
    src: url('../fonts/FiraSansCondensed-ExtraBold.woff2');
    font-weight: 800;
}

@font-face {
    font-family: 'FiraSansCondensed';
    src: url('../fonts/FiraSansCondensed-Bold.woff2');
    font-weight: 700;
}

@font-face {
    font-family: 'FiraSansCondensed';
    src: url('../fonts/FiraSansCondensed-Medium.woff2');
    font-weight: 600;
}

@font-face {
    font-family: 'FiraSansCondensed';
    src: url('../fonts/FiraSansCondensed-Regular.woff2');
    font-weight: 400;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    outline: none;
    border: none;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    height: 100%;
    font-family: 'FiraSansCondensed', sans-serif;
    color: #000;
    font-size: 16px;
    line-height: 1.5em;
    position: relative;
}

ul li {
    display: block;
}

input::placeholder, textarea::placeholder {
    color: #818181;
}

a {
    text-decoration: none;
    color: #000;
    outline: none;
}

img {
    max-width: 100%;
}

.container {
    width: 1140px;
    height: 100%;
    margin: 0 auto;
}

section {
    padding: 50px 0;
}

h1, h2, .popup-body__title {
    letter-spacing: 1px;
}

.title {
    font-size: 25px;
    font-weight: 800;
    text-align: center;
}

.btn{
    background-color: #156ed3;
    display: inline-block;
    padding: 15px 30px;
    text-transform: initial;
    color: #fff;
    border-radius: 10px;
    transition: background-color .1s linear, transform .1s linear, box-shadow .1s linear;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 8px #194d8e;
}

.btn:hover {
    background-color: #0077ff;   
}

.btn:active {
    box-shadow: 0 5px #194d8e;
    transform: translateY(4px);
}

.popup {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .8);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transform: scale(1.2);
}

.popupShow {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
    transition: opacity 0.2s 0s ease-in-out,
                transform 0.2s 0s ease-in-out,
                visibility 0.2s 0s ease-in-out;
}

.popup-bg {    
    width: 100%;
    height: 100%;
}

.popup-body {
    width: 500px;
    background-color: #fff;
    border-radius: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    box-shadow: 0px 0px 100px 0px rgba(255,255,255,0.4);
}

.popup-body__close {
    width: 30px;
    height: 30px;
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #fff;
    padding: 10px;
    border-radius: 100%;
    cursor: pointer;
    transition: all .2s linear;
    box-shadow: 0 0 10px rgba(0, 0, 0, .5);

}

.popup-body__close:hover {
    transform: scale(1.2);
}

.popup-body__close-icon {
    display: block;
}

.popup-body__form-wrapper {
    width: 100%;
    flex-grow: 1;
    text-align: center;
    padding: 50px 50px 58px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.popup-body__title {
    font-size: 26px;
    text-align: center;
    font-weight: 800;
    margin-bottom: 7px;
}

.popup-body__subtitle {
    font-size: 15px;
    margin-bottom: 20px;
}

.popup .socials {
    text-align: center;
    padding: 0 60px 20px;
    border-top: 1px solid #ededed;
    font-size: 15px;
}

.popup .socials__title{
    padding: 10px;
}

.form__sending-element {
    transition: all 0.3s linear;
    position: fixed; 
    top: 7%;
    transform: translateY(-165%);
    opacity: 0;
    color: #fff;
    text-align: center;
}

.loader-wrapper {
    z-index: 99999;
    left: calc(50% - 30px);
}

.loader {
    width: 60px;
    height: 60px;
    border: 8px solid #ffffff;
    border-top: 8px solid #000000;
    animation: rotate 0.8s linear infinite;
    border-radius: 50%;
    position: static;
}

.failedSend, .successfulSend {
    width: 300px;
    padding: 20px 0;
    border-radius: 10px;
    left: calc(50% - 150px);
    z-index: 999999;
}

.failedSend {
    background: #fa4646;
}

.successfulSend {
    background: #06a937;
}

.active {
    opacity: 1;
    transform: translateY(0);
}

.socials {
    display: flex;
    justify-content: center;
}

.popup .socials {
    flex-direction: column;
    text-align: center;
    padding: 0 60px 20px;
    border-top: 1px solid #ededed;
    font-size: 15px;
}

.socials__items {
    display: flex;
    justify-content: center;
}

.socials__item {
    width: 38px;
    height: 38px;
    margin-left: 20px;
}

.socials__item a {
    transition: opacity .3s;
}

.socials__item a:hover {
    opacity: .7;
}

.socials__item:first-child {
    margin-left: 0;
}

.callback-bt {
    display: none;
    background:#1f9933;
    border-radius: 50%;
    box-shadow: 0 8px 10px rgba(56,163,253,0.3);
    cursor:pointer;
    height: 55px;
    text-align: center;
    width: 55px;
    position: fixed;
    right: 15px;
    bottom: 150px;
    z-index: 999;
    transition: .3s;
    -webkit-animation:hoverWave linear 1s infinite;
    animation:hoverWave linear 1s infinite;
}


.callback-bt__link {
    padding: 15px;
    display: block;
}

/* HEADER */

.header {
    height: 100%;
    min-height: 550px;
    display: flex;
    flex-direction: column;
    background: url('../img/header-bg.jpg') no-repeat center / cover;
    position: relative;
}

.header .container {
    flex: 1;
}

.header__top {
    position: relative;
    background-color:#fff;
    opacity: 0;
    border-radius: 0 0 10px 10px;
}

.header__top._activeAnim {
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
}

.header__top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    position: relative;
}

.header__logo-link::after {
    content: '';
    width: 24px;
    height: 24px;
    position: absolute;
    bottom: 11px;
    left: 63px;
    background: url('../img/icons/wheel-header.png') no-repeat center / cover;
    -webkit-animation: rotate linear 1s infinite;
    animation: rotate linear 1s infinite;
}

.logo__img {
    width: 150px;
    display: block;
}

.menu {
    display: flex;
    align-items: center;
}

.menu__item {
    position: relative;
    z-index: 1;
}

.header__menu-item {
    margin-right: 30px;
}

.menu__item::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    width: 100%;
    height: 1px;
    content: '.';
    color: transparent;
    background: #000;
    visibility: none;
    opacity: 0;
    z-index: -1;
    border-radius: 10px;
    transition: all .3s;
}

.menu__item:hover .menu__link {
    color: #fff;
}

.menu__item:hover::after {
    width: 100%;
    opacity: 1;
    visibility: visible;
    height: 100%;
}

.menu__item:last-child {
    margin-right: 0;
}

.menu__link {
    padding: 10px;
    color: #000;
    display: block;
}

.menu__link:hover {
    text-shadow: 0 0 0.4px #000, 0 0 0.4px #000;
}

.menu__link--active::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #000;
}

.city {
    display: flex;
    align-items: center;
}

.city__icon {
    width: 19px;
}

.city__text {
    margin-left: 5px;
}

.phones {
    display: flex;
    align-items: center;
    transition: opacity .3s linear;
    position: relative;
}

.phones:hover .phones__sub-phones {
    opacity: 1;
    z-index: 1;
}

.phones__item {
    position: relative;
    padding-right: 20px;
}

.phones__item-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.phones__item:first-child::after {
    content: '';
    background: url('../img/icons/phones-arrow.svg') no-repeat center / cover;
    width: 13px;
    height: 13px;
    position: absolute;
    right: 0px;
    top: 5px;
    transition: transform .2s linear;
    display: none;
}

.phones__item:hover {
    color: #323232;
}

.phones__item:hover::after{
    transform: rotate(180deg);
}

.phones__sub-phones {
    display: flex;
    justify-content: center;
    padding-top: 15px;
    left: -14px;
    z-index: 1;
    top: 20px;
    position: absolute;
    width: 230px;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transition: opacity .2s linear;
    z-index: -1;
}

.phones__sub-item {
    width: 100%;
    text-align: center;
    padding: 10px 0;
    display: flex;
    align-items: center;
    background: #fff;
    padding-left: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.phones__sub-item:hover .phones__sub-icon {
    animation: phone .5s linear;
}

.phones__sub-icon {
    width: 20px;
}

.phones__sub-item:first-child {
    border-top: 1px solid #f0f0f0;
}

.phones__sub-item:last-child {
    border-radius: 0 0 10px 10px;
}

.phones__icon {
    width: 18px;
}

.phones__number {
    margin-left: 5px;
    color: #000;
    font-weight: 600;
}

.phones__number:hover {
    opacity: .6;
}

.phones__number:hover .phones__icon{
    animation: phone .5s linear;
}

.phones__link:last-child {
    margin-bottom: 0;
}

.header__burger {
    width: 26px;
    display: none;
    cursor: pointer;
    position: absolute;
    transition: all .4 linear;
    z-index: 99;
    right: 0;
    height: 22px;
}

.header__burger-item, 
.header__burger-item::before, 
.header__burger-item::after {
    display: block;
    width: 26px;
    height: 2px;   
    background-color: #000;
    position: absolute;
    left: 50%;
    margin-left: -13px;
    top: 50%;
    margin-top: -1px;
    border-radius: 5px;
}

.header__burger-item::before {
    content: '';
    margin-top: -9px;
    transition: all .2s;
}

.header__burger-item::after {
    content: '';
    margin-top: 7px;
    transition: all .2s;

}

.header__burger-active .header__burger-item {
    background-color: transparent;
}

.header__burger-active .header__burger-item::before {
    transform: rotate(135deg);
    margin-top: 0;
} 

.header__burger-active .header__burger-item::after {
    transform: rotate(-135deg);
    margin-top: 0;
} 

.burger__block {
    background-color: #fff;
    z-index: -1;
    position: absolute;
    right: 0;
    bottom: -170px;
    border-radius: 10px;
    transition: all .3s;
    width: 170px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .5);
    border: 2px solid #eaeaea;
    opacity: 0;
    transform: translateY(-40px);
}

.burger__block-active {
    z-index: 5;
    opacity: 1;
    transform: translateY(0);
}

.burger__block::before {
    content: '';
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 9px solid #fff;
    position: absolute;
    top: -10px;
    right: 7px;
}

.burger__block-item {
    text-align: center;
    position: relative;
    width: 100%;
    border-bottom: 1px solid #eaeaea;
}

.burger__block-item::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    width: 100%;
    height: 1px;
    content: '.';
    color: transparent;
    background: #000;
    visibility: none;
    opacity: 0;
    z-index: -1;
    transition: all .3s;
}

.burger__block-item:first-child:after {
    border-radius: 10px 10px 0 0;
}

.burger__block-item:last-child:after {
    border-radius: 0 0 10px 10px;
}

.burger__block-item:hover::after {
    opacity: 1;
  visibility: visible;
  height: 100%;
}

.burger__block-item:last-child {
    margin-bottom: 0;
    border-bottom: 0;
}

.burger__block-item:hover::before {
    opacity: 1;

}

.burger__block-link {
    display: block;
    padding: 12px;
}

.burger__block-link:hover {
    font-weight: 800;
    color: #fff;
}

.info {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.info__item {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 25px;  
    display: flex;
    align-items: center;  
}

.info__item-icon {
    width: 22px;
}

.info__item-link {
    margin-left: 10px;
}

.active-menu {
    transform: translate(0, -50%);
}

.active-wrapper {
    transform: translateX(0);
    background: rgba(0,0,0,.8);
    transition: background-color .3s linear;
}

.header__content-wrapper {
    height: 100%;
    display: flex;
    align-items: center;
}

.header__content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.header__title {
    font-size: 42px;
    padding-left: 20px;
    border-left: 5px solid #fff;
    font-weight: 800;
    width: 600px;
    color: #fff;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    line-height: 1em;
    transform: translateX(-100%);
    opacity: 0;
}

.header__title._activeAnim {
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    transform: translateX(0);
    opacity: 1;
}

.header__title-bg:last-child {
    margin-top: 5px;
}

.header__text {
    background-color: rgba(0, 0, 0, .7);
    padding: 15px 25px;  
    color: #fff;
    margin: 20px 0;
    border-radius: 10px;
    width: 457px;
    transform: translateX(-100%);
    opacity: 0;
}

.header__text._activeAnim {
    transform: translateX(0);
    opacity: 1;
    transition: transform 0.5s ease-in-out 0.2s, opacity 0.5s ease-in-out 0.2s;
}

.header__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.viberBtn-wrapper, .header__callback-btn {
    margin-right: auto;
    opacity: 0;
    transform: translateX(-100%);
}

.header-callback-btn__inner {
    display: flex;
    align-items: center;
}

.header-callback-btn__inner img {
    width: 32px;
    margin-right: 10px;
}

.header__btn_viber {
    display: flex;
    align-items: center;
    background-color: #7360F2;
    box-shadow: 0 8px #5544c1;
    padding: 15px 30px;
    align-self: flex-start;
    text-transform: initial;
    color: #fff;
    border-radius: 10px;
    transition: background-color .1s linear, transform .1s linear, box-shadow .1s linear;
    text-align: center;
    cursor: pointer;
    margin-right: 25px;
}

.viberBtn-wrapper._activeAnim {
    transition: transform 0.5s ease-in-out 0.4s, opacity 0.5s ease-in-out 0.4s;
    transform: translateX(0);
    opacity: 1;
}

.header__callback-btn._activeAnim {
    transition: transform 0.5s ease-in-out 0.5s, opacity 1s ease-in-out 0.5s;
    transform: translateX(0);
    opacity: 1;
}

.header__btn_viber img {
    width: 32px;
    margin-right: 5px;
}

.header__btn_viber:hover {
    background-color: #8473f4;   
}

.header__btn_viber:active {
    box-shadow: 0 5px #5544c1;
    transform: translateY(4px);
}

.header__arrow {
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 50px;
    margin-left: -25px;
    animation: arrow 1.6s linear infinite;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out 0;
}

.header__arrow._activeAnim {
    opacity: 1;
    transition: opacity 0.5s ease-in-out 0.7s;
}

.header__arrow-text {
    color: #fff;
    font-size: 13px;
}

.header__arrow-icon {
    width: 20px;
    height: 20px;
}

/* ----------------------- */

/* TARRIFS */

.tariffs {
    padding-bottom: 58px;

}

.car__wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 20px;
    margin-top: 85px;
}

.car__wrapper:first-child {
    margin-top: 10px;
}

.car {
    display: flex;
    align-items: center;
    justify-content: center ;
    flex-wrap: wrap;
    width: 90%;
    transform: translateY(-10%);
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.car._activeAnim {
    transform: translate(0);
    opacity: 1;
}

.car__item {
    width: 45%;
    height: 320px;
    margin-right: 10px;
}

.car__item1 {
    background: url('../img/car1.jpg') no-repeat center;
    background-size: contain;
    height: 260px;

}

.car__item3 {
    background: url('../img/car2.jpg') no-repeat center;
    background-size: contain;

}

.car__item4 {
    background: url('../img/car3.jpg') no-repeat center;
    background-size: contain;
}

.car__trade {
    margin-right: auto;
    text-align: center;
    width: 56%;
}

.car__wrapper:last-child .car__trade {
    margin-top: 10px;
}

.car__price {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 3px;
}

.car__price-number {
    font-size: 27px;
}

.car__time {
    font-size: 15px; 
    margin-bottom: 10px;   
}

.car__info {
    width: 40%;
}

.car__info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;    
    border: 2px solid #000;
    padding: 8px 10px;
    box-sizing: border-box;
    border-radius: 10px;
    transition: box-shadow .2s linear, background-color .2s linear, transform .2s linear;

}

.car__info-item:last-child {
    margin-bottom: 0;
}

.car__info-item:hover {
    background-color: #000;
    color: #fff;
    transform: scale(1.05);
}

.car__info-property {
    font-size: 17px;
    text-transform: math-auto;
}

.car__info-value {
    font-size: 18px;
    font-weight: 700;
}

/* -----------------------  */

/* ABOUT */

.about {
    background-color: #cdcdcd2e;
    padding-bottom: 0;
}

.about__title {
    color: #000;
}

.about__inner {
    display: flex;
    justify-content: space-around;
    margin-top: 40px;
    flex-wrap: wrap;
}

.about__item {
    width: 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid #000;
    border-radius: 10px;
    margin-bottom: 50px;
    background-color: #fff;
    transform: scale(0);
    opacity: 0;
}

.about__item._activeAnim {
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    transform: scale(1);
    opacity: 1;
}

.about__item-img {
    width: 60px;
    margin: 20px 0;
}

.about__wrapper-text {
    background-color: #000;
    padding: 20px 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    border-radius: 0 0 7px 7px;
}

.about__item-text {
    text-align: center;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

/* ----------------------- */

/* CONTACTS */

.contacts__title {
    margin-bottom: 40px;
}

.contacts__inner {
    display: flex;
    position: relative;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
}

.contacts__info {
    font-weight: 600;
    display: flex;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.contacts__info-title {
    font-size: 18px;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: 700;
    background-color: #2e2e2e;
    color: #fff;
    padding: 10px 20px;
    margin-bottom: 15px;
    text-align: center;
}

.contacts__info-item {
    margin-right: 30px;
    padding: 10px 20px;
    border: 2px solid #000;
    border-radius: 30px;
    display: flex;
    align-items: center;
}

.contacts__info-item:first-child {
    opacity: 0;
    transform: translateY(-100%);
}

.contacts__info-item:first-child._activeAnim {
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    opacity: 1;
    transform: translateY(0);
}

.contacts__info-item:nth-child(2) {
    opacity: 0;
    transform: translateY(-100%);
}

.contacts__info-item:nth-child(2)._activeAnim {
    transition: transform 0.7s ease-in-out, opacity 0.7s ease-in-out;
    opacity: 1;
    transform: translateY(0);
}

.contacts__info-item:last-child {
    margin-right: 0;
    opacity: 0;
    transform: translateY(-100%);
}

.contacts__info-item:last-child._activeAnim {
    transition: transform 0.9s ease-in-out, opacity 0.9s ease-in-out;
    opacity: 1;
    transform: translateY(0);
}

.contacts__info-img {
    width: 19px;
}

.contacts__info-link {
    margin-left: 10px;
    font-size: 15px;
}

.contacts__info-link:hover {
    opacity: .6;
}

p.contacts__info-link:hover {
    opacity: 1;
}

.auth-form {
    color: #fff;
    background-color: #2e2e2e;
    display: inline-block;
    padding: 25px 40px;
    width: 70%;
    border-radius: 10px;
    text-align: center;
}

.auth-form__title {
    font-size: 20px;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.auth-form__label {
    display: block;
    font-size: 14px;
    text-align: left;
}

.auth-form__input {
    display: block;
    border: 1px solid #ffffff;
    background-color: #e4e4e4;
    margin-bottom: 20px;
    width: 100%;
    resize: none;
    position: relative;
    font-size: 15px;
    border-radius: 10px;
    padding: 15px 15px;
}

#popupNewApp textarea {
    height: 150px;
}

#popupCallback .popup-body__form-wrapper{
    padding: 50px 50px 28px;
}

.errorInput {
    border-color: #ff0000;
}

.auth-form__btn {
    width: 100%;
    font-size: 16px;
}

/* ----------------------- */

/* FOOTER */

.footer {
    background-color: #000;
    color: #fff;
    padding: 15px 0;
    opacity: 0;
    border-radius: 10px 10px 0 0;
}

.footer._activeAnim {
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
}

.footer__logo {
    position: relative;
}

.footer__logo-link::after {
    content: '';
    width: 24px;
    height: 24px;
    position: absolute;
    bottom: -4px;
    left: 63px;
    background: url('../img/icons/wheel-footer.png') no-repeat center center / cover;
    animation: rotate 1s linear infinite;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer__copyright {
    color: #fff;
    opacity: .3;
    font-size: 13px;
    text-align: center;
    flex: 6 1 0px;
}

.footer .socials {
    flex: 1 1;
}

.footer .socials__item:first-child {
    margin-left: auto;
}

/* ----------------------- */

/* MEDIA SCREEN */

@media screen and (max-width: 1200px) {

}

@media screen and (max-width: 1199px) {
    .container {
        width: 960px;
    }

    .car {
        width: 100%;
    }

    .car__info {
        width: 40%;
    }
    
    .car__item1 {
        height: 310px;
    }
    
    .car__wrapper:last-child .car__trade {
        margin-top: -20px;
    }
}

@media screen and (max-width: 991px) {
    .container {
        width: 720px;
    }

    .header__burger {
        display: block;
    }

    .menu {
        display: none;
    }

    .menu__item {
        margin-right: 20px;
        font-size: 14px;
    }

    .city {
        display: none;
        align-items: center;
    }

    .burger-block__city {
        display: flex;
    }

    .hide__menu-city {
        display: flex;
    }

    .city__icon {
        width: 20px;
    }

    .city__text {
        font-size: 15px;
    }

    .phones {
        display: none;
    }

    .header__text {
        max-width: 407px;
    }

    .car__wrapper:last-child .car__item {
        height: 300px;
        width: 90%;
    }

    .car__wrapper:nth-child(4) .car__item {
        height: 380px;
    }

    .car {
        position: relative;
        flex-direction: column;
        width: 70%;
    }

    .car__item {
        width: 100%;
        margin-right: 0;
    }

    .car__info {
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }

    .car__info-item {
        width: 100%;
    }
    
    .car__wrapper:last-child .car__trade {
        margin-top: 30px;
    }

    .car__trade {
        width: 100%;
        margin-top: 30px;
    }

    .about__item-img {
        width: 80px;
    }

    .about__item {
        width: 40%;
        font-size: 15px;
    }

    .about__item-text {
        font-size: 15px;
    }

    /* .contacts__inner {
        flex-direction: column;
        align-items: center;
    } */

    .contacts__title {
        margin-bottom: 30px;
    }

    .contacts__info {
        flex-direction: column;
        align-items: center;
    }

    .contacts__info-item {
        margin-right: 0;
        margin-bottom: 30px;
    }
    
    .contacts__info-item:last-child {
        margin-bottom: 0;
    }

    .auth-form {
        width: 100%;
    }
}

 @media screen and (min-width: 768px) and (max-height: 1400px) and (orientation: portrait) {
    .header{
        height: 70%;
    }

    .header__content-wrapper {
        height: calc(70vh - 80px);
    }
} 

@media screen and (max-width: 768px) {
    .container {
        max-width: 567px;
    }

    .popup-body__item-text {
        font-size: 16px;
    }

    .header__title {
        font-size: 42px;
        width: 539px;
    }

    .city {
        margin-left: auto;
        margin-right: 20px;
    }

    .car {
        width: 90%;
    }

    .car__item {
        width: 90%;
    }

    .car__info-property {
        font-size: 18px;
    }

    .car__info-value {
        font-size: 19px;
    }

    .about__inner {
        justify-content: space-between;
    }

    .about__item {
        width: 45%;
    }

    .footer__inner {
        flex-direction: column;
        align-items: center;
    }

    .footer__copyright {
        margin: 30px 0;
    }
}

@media screen and (max-width: 575px) {

    .callback-bt {
        display: block;
        transform: translateX(150%);
        opacity: 0;
    }
    
    .callback-bt._activeAnim {
        transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
        transform: translateX(0);
        opacity: 1;
    }

    .title {
        font-size: 25px;
    }

    .container {
        width: 100%;
        padding: 0 15px;
    }
    
    section {
        padding: 35px 0;
    }

    .popup-body {
        width: 85%;
    }

    .popup-body__img {
        display: none;
    }

    .header__phones {
        display: none;
    }

    .header__title {
        font-size: 30px;
        width: 100%;
        border-left: none;
        padding-left: 0;
        transform: translateY(-100%);
        opacity: 0;
    }
    
    .header__title._activeAnim {
        transform: translateY(0);
    }

    .header__title-bg {
        padding: 0 10px;
        align-self: center;
    }

    .header__content {
        max-width: 89%;
        text-align: center;
        padding: 0;
        margin-left: auto;
        margin-right: auto;
        align-items: center;
    }

    .header__text {
        align-self: center;
        padding: 15px;
        transform: translateY(-100%);
    }
    
    .header__text._activeAnim {
        transform: translateY(0);
    }

    .header__buttons {
        flex-direction: column;
    }

    .header__btn, .header__btn_viber {
        align-self: center;
    }

    .header__btn_viber {
        margin-right: 0;
    }
    
    .viberBtn-wrapper, .header__callback-btn {
        transform: translateY(-100%);
        margin-left: auto;
    }

    .viberBtn-wrapper._activeAnim, .header__callback-btn._activeAnim {
        transform: translateY(0);
    }

    .header__callback-btn {
        margin-top: 28px;
    }

    .tariffs {
        padding-bottom: 43px;
    }

    .car__wrapper {
        margin-top: 60px;
        padding-top: 10px;
    }

    .car {
        width: 70%;
    }

    .car__wrapper:nth-child(4) .car__item, .car__wrapper:nth-child(3) .car__item {
        height: 42vw;
        width: 100%;
    }

    .car__item {
        width: 100%;
        height: 50vw;
    }

    .car__info-item {
        padding: 5px 10px;
    }

    .car__price-number {
        font-size: 30px;
    }

    .car__trade {
        width: 100%;
    }

    .car__info {
        width: 100%;
    }

    .car__info-item {
        margin-bottom: 10px;
    }
    
    .about {
        padding-bottom: 35px;
    }
    
    .about__item-img {
        width: 60px;
    }

    .about__inner {
        flex-direction: column;
        align-items: center;
    }

    .about__item {
        width: 60%;
        margin-bottom: 40px;
    }
    
    .about__item:last-child {
        margin-bottom: 0;
    }

    .contacts__info {
        flex-direction: column;
        align-items: center;
    }
    
    .contacts__info-item:last-child {
        margin-bottom: 0;
    }

    .contacts__info-item {
        margin-right: 0;
    }

    .auth-form {
        width: 90%;
    }
}

@media screen and (max-width: 450px) {
    
    .header {
        background: url('../img/header-bg_s.jpg') no-repeat center / cover;
    }

    .header__title {
        font-size: 27px;
    }

    .header__text {
        font-size: 15px;
        width: 100%;
    }
    
    .car {
        width: 80%;
    }

    .car__wrapper {
        margin-top: 50px;
    }

    .car__info-item {
        margin-bottom: 5px;
    }

    .car__info-property {
        font-size: 16px;
    }

    .car__info-value {
        font-size: 17px;
    }

    .car__price {
        font-size: 20px;
        margin-bottom: 0;
    }

    .car__price-number {
        font-size: 25px;
    }

    .car__time{
        margin-bottom: 5px;
    }
    
    .car__wrapper:first-child .car__trade {
        margin-top: 20px;
    }

    .car__trade {
        margin-top: 20px;
    }
    
    .popup-body__form-wrapper, .popup .socials {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .auth-form__btn, .header__btn_viber, .btn {
        font-size: 15px;
    }

}

@media screen and (max-width: 400px) {

    .header__content {
        max-width: 90%;
    }

    .header__title {
        font-size: 23px;
    }

    .header__text {
        font-size: 13px;
        width: 100%;
    }
    
    .popup-body__title {
        font-size: 21px;
    }
    
    .about__item {
        width: 75%;
    }
    
    .callback-bt {
        width: 50px;
        height: 50px;
        right: 10px;
    }
    
    .callback-bt__link {
        padding: 14px;
    }
}

@media screen and (max-width: 350px) {

    .car__info-item {
        flex-direction: column;
        text-align: center;
    }
    
    .popup-body__title {
        font-size: 20px;
    }
    
    .auth-form__btn {
        padding: 15px 25px;
        font-size: 14px;
    }

}

@keyframes hoverWave {
    0% {
    box-shadow:0 8px 10px rgba(31,153,51,0.3),0 0 0 0 rgba(31,153,51,0.2),0 0 0 0 rgba(31,153,51,0.2)
}
40% {
    box-shadow:0 8px 10px rgba(31,153,51,0.3),0 0 0 15px rgba(31,153,51,0.2),0 0 0 0 rgba(31,153,51,0.2)
}
80% {
    box-shadow:0 8px 10px rgba(31,153,51,0.3),0 0 0 30px rgba(31,153,51,0),0 0 0 26.7px rgba(31,153,51,0.067)
}
100% {
    box-shadow:0 8px 10px rgba(31,153,51,0.3),0 0 0 30px rgba(31,153,51,0),0 0 0 40px rgba(31,153,51,0.0)
}
}

@keyframes arrow {
    0%,100% {transform: translateY(0)}
    50% {transform: translateY(10px)}
}   

@keyframes rotate {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
  }

@keyframes trolley {
    0% {transform: rotate(0);}
    50% {transform: rotate(-18deg);}
    100% {transform: rotate(0);}
}