* {
    margin: 0;
    padding: 0;
    font-family: 'Gilroy';
}

@font-face {
    font-family: 'Gilroy';
    src: url('Gilroy-Regular.eot');
    src: local('Gilroy Regular'),
        url('Gilroy-Regular.eot?#iefix') format('embedded-opentype'),
        /* url('Gilroy-Regular.woff2') format('woff2'),
        url('Gilroy-Regular.woff') format('woff'),
        url('Gilroy-Regular.ttf') format('truetype'), */
        url('../fonts/Gilroy-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html {  
    scroll-behavior: smooth;  
}

div p h1 h2 h3 h4 h5 h6 a img button {
    margin: 0px;
}

del {
	text-decoration: line-through;
	text-decoration-color: red;
}

.btn {
    display: flex;
    border-radius: 100px;
    justify-content: center;
    align-items:center;
    cursor: pointer;
    border: 0px;
    transition: all 0.3s ease;
}

.orange {
    color: #FF4C0D;
}

.gray {
    color: #535353;
}

.white {
    color: #F1F1F1;
}

.black {
    color: #151515;
}

.p80 {
    font-size: 80px;
    font-size: calc(0.5vw + 76px);
}

.p45 {
    font-size: 45px;
    font-size: calc(0.5vw + 41px);
}

.p30 {
    font-size: 30px;
    font-size: calc(0.5vw + 26px);
}

.p20 {
    /* font-size: 20px; */
    font-size: calc(0.5vw + 16px);
}

.p16 {
    font-size: 16px;
    font-size: calc(0.5vw + 12px);
}

.p14 {
    /* font-size: calc(14px * 1.33); */
    font-size: calc(0.5vw + 10px);
}

.w300 {
    font-weight: 300;
}

.w400 {
    font-weight: 400;
}

.w500 {
    font-weight: 500;
}

.w700 {
    font-weight: 700;
}

.fg1 {
    flex-grow: 1;
}

.fg2 {
    flex-grow: 2;
}

header {
    width: 100%;
    /* min-width: 1090px; */
    display: flex;
    margin-top: 50px; 
}

body {

    --background-color: #222222;
    --text-color: #F1F1F1;
    --text-gray: #C4C4C4;
    --accent-color: #FF4C0D;
    --bg-footer-color: #222222;
    --color-dark-1: #151515;
    --color-dark-2: rgba(21, 21, 21, 0.6);
    --bg-footer-color2: #333333;
    --bg-card: rgba(0, 0, 0, 0.5);
    --bg-card-support: rgba(0, 0, 0, 0.8);
    --minicart-background: rgba(0, 0, 0, 0.95);
    --minicart-list-background: rgba(0, 0, 0, 0.03);
    --bg-header-color: rgba(0, 0, 0, 0.93);
    --bg-modal: rgba(40, 40, 40, 0.5);
    --box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);

    background-color: var(--background-color);
    /* background-image: url("../img/svg/background-black.svg"),
                        url("../img/png/noise-0.3.png"); */
    background-image: url("https://lk.i-t.fun/teslamt-static/site/background.svg"),
                        /* url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cfilter id='noiseAndGrayscale'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='3' numOctaves='3' result='turbulenceOutput' /%3E%3CfeColorMatrix in='turbulenceOutput' type='matrix' values=' 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 1 0'/%3E%3C/filter%3E%3C/defs%3E%3Crect width='100%25' height='100%25' opacity='0.05' filter='url(%23noiseAndGrayscale)' /%3E%3C/svg%3E"); */
                        url("../img/svg/noise.svg");
    background-size: 100%;   
    background-repeat: repeat;   
    margin: 0px;
    font-family: 'Gilroy';
}

/* .white {
    --background-color: #F1F1F1;
    --text-color: #222222;
    --accent-color: #FF4C0D;
    --bg-footer-color: #F1F1F1;
    --bg-footer-color2: #F1F1F1;
    --bg-card: rgba(255, 255, 255, 0.93);
    --bg-card-support: rgba(255, 255, 255, 0.93);
} */

footer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 155px;
}

.wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    /* min-width: 1090px; */
    /* margin-top: 155px; */
}

.about {
    display: flex;
    flex-direction: column;
    height: 100%;  
    margin-top: 110px;
    margin-right: 8%;
    margin-left: 8%;
    width: auto;
    justify-content: flex-start;
}

.about-name {
    display: flex;
    flex-flow: column;
    height: 100%;   
}

.about-name-h1 {
    color: var(--text-color);
    font-size: 6vw;
    font-weight: 700;
    margin: 0px; 
}

.about-slogan-text {
    color: var(--accent-color);
    font-size: calc(30px * 1.33);
    /* font-size: calc(.5em + 1.7vw); */
    font-weight: 400;
    margin: 0px;
}

.about-slogan {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-top: 30px;
}

.switch-auth {
    display: flex;
    flex-direction: column;
    margin-top: 38px;
}

.about-to-catalog {
    display: flex;
    justify-content: center;
    align-items:center;
    margin-right: 20px;
}

.about-to-catalog-button {
    /* width: 130px;
    height: 54px;
    background: var(--text-color);
    font-size: 18px;
    padding-top: 2px; */
    width: calc(80px + 3vw);
    height: calc(30px + 1.5vw);
    background: var(--text-color);
    font-size: calc(8px + 0.5vw);
    padding-top: 2px;
}

.about-to-catalog-button:active {
    -webkit-box-shadow: 0px 5px 7px rgba(0, 0, 0, 0.3);
     -moz-box-shadow: 0px 5px 7px rgba(0, 0, 0, 0.3);
          box-shadow: 0px 5px 7px rgba(0, 0, 0, 0.3);
    outline: none;
}

.about-to-catalog-button-text {
    color: var(--background-color);
    font-family: 'Gilroy';
}

.about-description {
    display: flex;
    flex-direction: column;
    /* margin-top: 30px;
    height: 100px; */
    margin-top: calc(5vw + 10px);
    height: calc(5vw);
    justify-content: flex-end;
}

.about-description-text {
    color: var(--text-color);
    font-size: 3vw;
    font-weight: 500;
    margin: 0px;
}

.scroller {
    display: flex;
    flex-direction: row;
  /*   gap: calc(40px * 1.33); */
    overflow: hidden;
    width: 100%;
    /* margin-top: 74px; */
}

.scroller-block {
    display: block;
    flex-basis: 33.34%;
    margin: 0px;
    /* margin-right: calc(40px * 1.33); */
    opacity: 50%;
    transition: opacity 0.3s;
/*   width: 30%; */
}

.scroller-block:first-child {
    opacity: 100%;
}

.scroller-name-text {
    color: var(--text-color);
    margin: 0;
    margin-right: calc(40px* 1.33);
    font-size: calc(0.5vw + 14px);
}

.scroller-name {
    display: flex;
    flex-direction: column;
    height: 60px;
    justify-content: flex-end;
  }

.scroller-page-miniblock {
    display: flex;
    margin-top: 33px;
}

.scroller-page-block-text {
    color: var(--text-color);
    margin: 0px;
    margin-right: calc(40px * 1.33);
    font-size: calc(0.5vw + 8px);
}

.scroller-page-image-block {
    display: flex;
    flex-direction: row;
    gap: calc(40px * 1.33);
    justify-content: space-between;
    margin-top: 40px;
}

.scroller-page-image-1 {
    width: 63%;
}

.scroller-page-image-2 { 
    width: 33%;
}

.scroller-m {
    display: none;
    flex-direction: column;
    margin-top: 25px;
    gap: 10px;
}

.scroller-m-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scroller-m-name {
    display: flex;
}

.scroller-m-name-text {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 700;
}

.scroller-m-line {
    width: 33%;
    height: 3px;
    background-color: var(--accent-color);
}

.scroller-m-page-miniblock {
    display: flex;
}

.scroller-m-page-block-text {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
}

.scroller-m-page-image {
    display: flex;
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
}

.banner {
    display: flex;
    flex-direction: column;
    margin-top: 172px;
}

.banner-img {
    position: relative;
}

.banner-logo {
    position: absolute;
}

.banner-img-img {
    position: absolute;
}

.banner-slogan {
    position: absolute;
}

.catalog-block {
    display: block;
    flex-direction: column;
    margin-top: 50px;
    padding: 0px;
    margin-left: 8%;
    margin-right: 8%;
    width: auto;
    height: 100%;
}

.catalog-header {
    display: flex;
    /* justify-content: space-between; */
    justify-content: center;
    width: 100%;
}

.catalog-functions {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.catalog-sort {
    display: flex;
    flex-direction: row;
    cursor: pointer;
}

.catalog-filters {
    display: flex;
    flex-direction: row;
    margin-top: 6px;
    cursor: pointer;
}

.catalog-filters-icon {
    display: flex;
    height: 50.54px;
    width: 50.54px;
    align-items:center;
    justify-content: center;
}

.catalog-sort-icon {
    align-items:center;
}

.catalog-sort-text {
    color: var(--text-color);
    display: flex;
    align-items:center;
    justify-content: center;
    margin-left: calc(10px * 1.33);
}

.catalog-filters-text {
    color: var(--text-color);
    display: flex;
    align-items:center;
    justify-content: center;
    margin-left: calc(10px * 1.33);
}

img.logo:active{
  filter: drop-shadow(0px 5px 7px rgba(0, 0, 0, 0.3));
}

.catalog {
    display: flex;
    flex-direction: column;
    padding: 0%;
    margin: 0%;
    margin-top: 50px;
}

.catalog-product-card {
    display: flex;
    flex-direction: column;
    height: fit-content;
    width: 300px;
}

.catalog-product-card-img {
    border-radius: 15px;
    cursor: pointer;
    object-fit: cover;
    width: 300px;
    height: 300px;
}

.catalog-product-card-name {
    display: flex;
    flex-direction: column;
    margin-top: 5px;
}

.catalog-product-card-price-block {
    display: flex;
    flex-direction: row;
    margin-top: 19px;
    justify-content: space-between;
}

.catalog-product {
    display: grid;
    grid-template-columns: repeat(auto-fill, 300px);
    width: 100%;
    justify-content: center;
    justify-items: center;
    column-gap: 132px;
    row-gap: 132px;
    margin: 0 auto;
}

.catalog-name-text {
    color: var(--text-color);
    margin: 0px;
}

.catalog-name {
    display: flex;
    align-items:center;
}

.catalog-product-card-name-text {
    margin: 0px;
}

.catalog-product-card-name-model-text {
    color: var(--text-color);
    margin: 0px;
    margin-top: 10px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
}

.catalog-product-card-line {
    background-color: var(--text-color);
    width: 100%;
    height: 3px;
    margin-top: 5px;
}

.catalog-product-card-price-text {
    color: var(--text-color);
    margin: 0px;
}

.catalog-product-card-buy {
    margin: 0px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.catalog-product-card-buy:hover {
    transform: scale(1.2);
}

.catalog-product-card-buy:active {
    opacity: 40%;
}

.catalog-switch-block {
    display: flex;
    flex-direction: row;
    margin-top: 96px;
    margin-left: calc(12px * 1.33);
}

.catalog-switch {
    display: flex;
    flex-direction: column;
}

.catalog-switch-down {
    margin: 0px;
    margin-top: 17px;
    cursor: pointer;
}

.catalog-switch-up {
    margin: 0px;
    cursor: pointer;
}

.questions-block {
    margin-top: 278px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-left: 8%;
    margin-right: 8%;
    width: auto;
}

.questions-block-left {
    display: flex;
    flex-direction: column;
    width: 50%;
}

.questions-name {
    display: flex;
    width: fit-content;
}

.questions-name-text {
    color: var(--text-color);
    margin: 0px;
}

.questions-text {
    display: flex;
    margin-top: 32px;
}

.questions-text-text {
    color: var(--text-color);
    margin: 0px;
    line-height: calc(21px * 1.33);
}

.questions-ask {
    display: flex;
    margin-top: 57px;
    height: calc(54px * 1.33);
    width: calc(183px * 1.33);
}

.questions-ask-button {
    width: 100%;
    height: 100%;
    background: #F1F1F1;
}

.questions-ask-button:active {
    -webkit-box-shadow: 0px 5px 7px rgba(0, 0, 0, 0.3);
     -moz-box-shadow: 0px 5px 7px rgba(0, 0, 0, 0.3);
          box-shadow: 0px 5px 7px rgba(0, 0, 0, 0.3);
    outline: none;
}

.questions-ask-button-text {
    color: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Gilroy';
}

.questions-block-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50%;
}

.question-block-right-content {
    display: flex;
    flex-direction: column;
    width: fit-content;
}

.question-block {
    display: flex;
    flex-direction: column;
    width: fit-content;
}

.question-text {
    display: flex;
    flex-direction: column;
}

.question-text-text {
    color: var(--text-color);
    margin: 0px;
}

.question-line {
    background-color: var(--accent-color);
    width: calc(100px * 1.33);
    height: 4px;
    margin-top: 15px;
    margin-bottom: 40px;
}

@media (max-width: 640px) {
    body {
        /* background-size: contain; */
        background-repeat: repeat-y;
    }

    header {
        margin-top: 18px;
    }

    .about-name-h1 {
        font-size: 25px;
    }

    .header-block {
        /* margin-top: 20px; */
    }

    .header-nav-logo {
        margin-right: 30px;
    }

    .header-nav-elements {
        gap: 30px;
    }

    .about-description {
        margin-top: 20px;
        height: 70px;
    }

    .about-description-text {
        font-size: 20px;
    }

    .hvr {
        display: none;
    }

    .scroller-page-image-block {
        display: none;
    }

    .about {
        margin-top: 25px;
    }

    .scroller-m {
        display: flex;
    }

    .logo {
        height: 50px;
    }

    .banner {
        margin-top: 50px;
    }

    .catalog {
        margin-top: 25px;
    }

    .catalog-block {
        margin: 50px 0px 0px 0px;
    }

    .catalog-header {
        flex-direction: column;
    }

    .catalog-name {
        margin: 0px 0px 0px 8%;
    }

    .catalog-functions {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .catalog-name-text {
        font-size: 40px;
    }

    .catalog-sort {
        align-items: center;
        justify-content: center;
    }

    .catalog-sort-icon-img {
        height: 30px;
    }

    .catalog-filters {
        margin-top: 0;
        align-items: center;
        justify-content: center;
    }

    .catalog-filters-icon {
        height: fit-content;
        width: fit-content;
        display: flex;
        align-items: center;
    }
    
    .catalog-filters-icon-img {
        height: 25px;
    }

    .catalog-product {
        grid-template-columns: repeat(auto-fill, 40vw);
        row-gap: 5vw;
        column-gap: 5vw;
    }

    .catalog-product-card {
        width: 40vw;
        align-items: center;
        justify-content: center;
    }

    .catalog-product-card-img {
        height: 40vw;
        width: 40vw;
    }

    .catalog-product-card-name {
        font-size: 4vw;
        align-items: center;
        justify-content: center;
    }

    .catalog-product-card-price-block {
        width: 100%;
    }

    .catalog-product-card-price-text {
        font-size: 16px;
    }

    .catalog-product-card-buy-img {
        width: 20px;
    }

    .catalog-switch-block {
        margin: 0;
        margin-top: 35px;
        align-items: center;
        justify-content: center;
    }

    .catalog-switch-up {
        width: 40px;
        height: 40px;
    }

    .catalog-switch-up-img {
        width: 40px;
    }

    .catalog-switch-down {
        width: 40px;
        height: 40px;
        margin-top: 17px;
    }

    .catalog-switch-down-img {
        width: 40px;
    }

    .questions-block {
        flex-direction: column;
        margin-top: 90px;
    }

    .questions-block-left {
        width: 100%;
    }

    .questions-name-text {
        font-size: 30px;
    }

    .questions-ask {
        width: 100%;
        height: 54px;
        margin-top: 20px;
    }

    .questions-block-right {
        width: 100%;
        margin-top: 50px;
    }

    .question-block {
        width: 100%;
    }

    .question-text-text {
        font-size: 16px;
    }

    .question-line {
        width: 100%;
        height: 3px;
    }

    footer {
        margin-top: 50px;
    }

}