@font-face {
    font-family: "Gilroy";
    src: url("Gilroy-Regular.eot");
    src:
            local("Gilroy Regular"),
            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("/static/fonts/Gilroy-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

/*body {*/
/*    background-color: #e0e0e0;*/
/*    background-image: url("/static/img/noise-0.35.png"), url("/static/img/background.svg");*/
/*    background-size: 100%;*/
/*    background-repeat: no-repeat;*/
/*    margin: 0px;*/
/*    font-family: "Gilroy";*/
/*    margin-top: 120px;*/
/*}*/

body {
    --background-color: #222222;
    --text-color: #F1F1F1;
    --text-color-desc: #ADACAC;
    --accent-color: #FF4C0D;
    --bg-header-color: rgba(0, 0, 0, 0.93);
    --bg-footer-color: #151515;
    --bg-footer-color2: #333333;

    --bg-card: rgba(0, 0, 0, 0.5);
    --bg-card-item: #151515;
    --bg-card-item-white: #F1F1F1;
    --bg-card-support: rgba(0, 0, 0, 0.8);
    --bg-card-modal: rgba(0, 0, 0, 1);
    --bg-card-modal-list: rgba(241, 241, 241, 0.05);

    --color-light: #f1f1f1;
    --color-dark-1: #151515;
    --color-dark-2: rgba(21, 21, 21, 0.6);
    --color-accent: #fc501f;


    background-color: var(--background-color);
    background-image: url("https://lk.i-t.fun/teslamt-static/site/background.svg");
    background-size: 100%;
    background-repeat: repeat;
    margin: 0px;
    font-family: 'Gilroy';
}

.white {
    --background-color: #F1F1F1;
    --text-color: #222222;
    --accent-color: #FF4C0D;
    --bg-header-color: rgba(255, 255, 255, 0.93);
    --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);
    --bg-card-modal: rgba(255, 255, 255, 1);
    --bg-card-modal-list: rgba(241, 241, 241, 0.26);
}


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

.h {
    color: var(--text-color);
}

.a {
    color: var(--text-color);
}

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

.orange {
    color: #ff4c0d;
}

.gray {
    color: #535353;
}

.p-overflow {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.p-overflow-line-2 {
    -webkit-line-clamp: 2;
}

.p80 {
    font-size: calc(80px * 1.33);
    color: var(--text-color);
}

.p45 {
    font-size: calc(45px * 1.33);
    color: var(--text-color);
}

.p30 {
    font-size: calc(30px * 1.33);
    color: var(--text-color);
}

.p25 {
    font-size: calc(25px * 1.33);
    color: var(--text-color);
}

.p22 {
    font-size: calc(22px * 1.33);
    color: var(--text-color);
}

.p20 {
    font-size: calc(20px * 1.33);
    color: var(--text-color);
}

.p18{
    font-size: calc(18px * 1.33);
    color: var(--text-color);
}

.p16 {
    font-size: calc(16px * 1.33);
    color: var(--text-color);
}

.p14 {
    font-size: calc(14px * 1.33);
    color: var(--text-color);
}

.p12 {
    font-size: calc(12px * 1.33);
    color: var(--text-color);
}

.p13 {
    font-size: calc(13px * 1.33);
    color: var(--text-color);
}

.p11 {
    font-size: calc(11px * 1.33);
    color: var(--text-color);
}

.p10 {
    font-size: calc(10px * 1.33);
    color: var(--text-color);
}

.pcw {
    color: #222222;
}

.pm0 {
    margin: 0;
}

.pm1 {
    margin: 1px;
}

.pm2 {
    margin: 2px;
}

.pm3 {
    margin: 3px;
}

.pm4 {
    margin: 4px;
}

.pm5 {
    margin: 5px;
}

.w300 {
    font-weight: 300;
}

.w400 {
    font-weight: 400;
}

.w500 {
    font-weight: 500;
}

.w700 {
    font-weight: 700;
}

input {
    display: block;
    width: 100%;
    margin-top: 5px;
    margin-bottom: 15px;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 15px;
    font-size: 16px;
}

select {
    display: block;
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 15px;
}

.card {
    display: flex;
    flex-direction: column;
    height: fit-content;
    margin-top: 20px;
    margin-bottom: 10px;
}

.wrapper {
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.text-field {
    width: 49%;
}

.text-field__label {
    display: block;
    margin-bottom: 0.25rem;
}

.text-field__input {
    display: block;
    width: 100%;
    height: calc(2.25rem + 2px);
    padding: 0.375rem 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--bg-card-modal-list);
    background-clip: padding-box;
    border: 1px solid rgba(189, 189, 189, 0);
    border-radius: 10px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.text-field__input[type="search"]::-webkit-search-decoration,
.text-field__input[type="search"]::-webkit-search-cancel-button,
.text-field__input[type="search"]::-webkit-search-results-button,
.text-field__input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none;
}

.text-field__input::placeholder {
    color: #212529;
    opacity: 0.4;
}

.text-field__input:focus {
    color: var(--text-color);
    border-color: var(--accent-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(158, 158, 158, 0.25);
    margin-top: 5px;
}

.text-field__input:disabled,
.text-field__input[readonly] {
    color: var(--text-color);
    background-color: rgba(241, 241, 241, 0.025);
    opacity: 1;
}

/* with floating label */
.text-field_floating-2 {
    position: relative;
}

.text-field_floating-2 .text-field__input {
    height: calc(2.5rem + 2px);
    padding: 0.5rem 0.75rem;
}

.text-field_floating-2 .text-field__label {
    position: absolute;
    top: 42%;
    display: flex;
    transform: translateY(-50%);
    pointer-events: none;
    border: none;
    color: var(--text-color-desc);
    padding: 0.375rem 0.75rem;
    transition: top 0.1s ease-in-out, scale 0.1s ease-in-out;
}

.text-field_floating-2 .text-field__input::-moz-placeholder {
    color: transparent;
}

.text-field_floating-2 .text-field__input::placeholder {
    color: transparent;
}

.text-field_floating-2 .text-field__input:focus~.text-field__label,
.text-field_floating-2 .text-field__input:not(:placeholder-shown)~.text-field__label {
    top: 0;
    transform: translateY(-70%);
    font-size: 13px;
}


.back-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    width: 100%;
}

.back-arrow {
    display: flex;
    margin: 0;
    height: 26px;
    cursor: pointer;
}


.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-main {
    display: flex;
    justify-content: center;
}

.dots {
    width: 30px;
    height: 30px;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.dots::before,
.dots::after {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #333;
    border-radius: 50%;
    display: block;
    margin: 5px auto;
}

.dots::after {
    margin-top: 10px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg-card-item);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 1;
    border: 2px solid #333333;
    border-radius: 10px;
    min-width: 180px;
    top: 28px;
    left: -155px;
}

.dropdown-content-a {
    cursor: pointer;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: var(--bg-card-modal-list);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* JavaScript для обработки клика */
.dropdown.active .dropdown-content {
    display: block;
}

/*INPUT*/
.dropdown-input {
    position: relative;
    display: inline-block;
}

.dropdown-content-input {
    display: none;
    position: absolute;
    background-color: var(--bg-card-item);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 1;
    border: 2px solid #333333;
    border-radius: 10px;
    top: 48px;
    left: 0;
    width: 99%;
    text-align: left;
    max-height: 200px;
    overflow: auto;
}

.dropdown-content--input-a {
    cursor: pointer;
}

.dropdown-content-input a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content-input a:hover {
    background-color: var(--bg-card-modal-list);
}

/* JavaScript для обработки клика */
.dropdown-input.active .dropdown-content-input {
    display: block;
}

.card-header-container {
    width: 95%;
    margin-top: 20px;
    margin-bottom: 20px;
}

.action-button {
    border-radius: 50px;
    padding: 9px 22px;
    /* width: 158px;
    height: 35px; */

    font-size: 14px;

    border: none;
    background: var(--color-light);
    color: var(--color-dark-1);
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.action-button:hover {
    background: var(--color-accent);
    color: var(--color-light);
}

.action-button-inv {
    border-radius: 50px;
    padding: 9px 22px;
    /* width: 158px;
    height: 35px; */

    font-size: 14px;

    border: none;
    background: var(--color-accent);
    color: var(--color-light);
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.action-button-inv:hover {
    background: var(--color-light);
    color: var(--color-dark-1);
}

.dividing-line {
    width: 100%;
    border-top: 2px solid var(--color-light);
}