@font-face {
    font-family: 'Gilroy';
    font-weight: 300;
    font-style: normal;
    font-display: swap;
    src: url('../fonts/gilroy-light.woff2') format('woff2'),
         url('../fonts/Gilroy-Light.woff') format('woff');
}
@font-face {
    font-family: 'Gilroy';
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    src: url('../fonts/gilroy-regular.woff2') format('woff2'),
         url('../fonts/Gilroy-Regular.woff') format('woff');
}
@font-face {
    font-family: 'Gilroy';
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    src: url('../fonts/gilroy-medium.woff2') format('woff2'),
         url('../fonts/Gilroy-Medium.woff') format('woff');
}
@font-face {
    font-family: 'Gilroy';
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    src: url('../fonts/gilroy-semibold.woff2') format('woff2'),
         url('../fonts/Gilroy-SemiBold.woff') format('woff');
}
@font-face {
    font-family: 'Gilroy';
    font-weight: bold;
    font-style: normal;
    font-display: swap;
    src: url('../fonts/gilroy-bold.woff2') format('woff2'),
         url('../fonts/Gilroy-Bold.woff') format('woff');
}
:root {
    --background-color-avatar: #44546F;
    --background-color-main: rgb(247, 249, 252);
    --background-color-modal: #F2F6FC;
    --background-color-highlight: rgba(148,132,205,0.5);    
    --background-modal-close-hover: #E6F6FF;
    --background-dark-hover: #E0E0E2;
    --background-light-hover: #EDEDF0;
    --border-color: #D5D5D5;
    --line-color: #B3B3B3;
    --placeholder-color : #6B6B6B;
    --color-blue-light: #0091E6;
    --color-blue-normal: #0081CC;
    --color-blue-dark: #0071B3;
    --color-white: #FFFFFF;
}

html {
    box-sizing: border-box;
    font-size: 14px;
    font-weight: 500;
}
*, *::before, ::after {
    box-sizing: inherit;
}
body {
    font-family: 'Gilroy', serif;
    /* background: var(--background-color-light); */
    overflow-x: hidden;
    /* font-family: 'Arial', serif; */
}
a {
    text-decoration: none;    
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}
button {
    outline: none;
}
p, div, ol, ul  {    
    line-height: 140%;
    color: #242424;
    margin: 0;
    padding: 0;
}
ul {
    list-style-type: none;
}
form {
    margin-bottom: 0;
}
h1 {
    font-size: 40px;
    margin: 0;
    line-height: 40px;
}
h2 {
    font-size: 28px;
    line-height: 35px;
}
h3 {
    font-size: 20px;
    margin: 0;
}
h4 {
    margin: 0;
}
p {
    font-size: 15px;
    line-height: 1.6;
}
input, textarea {
    border: 1px solid var(--border-color);    
    border-radius: 3px;
    padding: 4px;
    background: var(--color-white);
}
input::-webkit-input-placeholder {
    color: var(--placeholder-color);
    opacity: 0.7;
}
input:hover::-webkit-input-placeholder {
    opacity: 1;
}
input:focus:hover::-webkit-input-placeholder {
    opacity: 0.7;
}
input:hover, textarea:hover {
    background: var(--background-light-hover);
}
input:active, textarea:active,
input:focus, textarea:focus {
    border: 1px solid var(--color-blue-light);
    background: var(--color-white);
    color: #000000;
    outline: none;
    /* font-weight: 500; */
    /* box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6); */
    /* transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; */
}
.appview {    
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    overflow: auto;
    top: 0;
    left: 0;
    z-index: 10;
    position: fixed;
}
.appview-content {
    position: absolute;
    width: 100%;
    height: auto;
    margin: 0 auto;
    max-width: 900px;
    left: 50%;
    transform: translate(-50%,-50%);
    top: 50%;
}
.appview-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}
.auth-container {
    max-width: 400px;
    min-width: 300px;
    margin: 0 auto;
    padding: 30px 30px 40px;
    border-radius: 20px;    
    background: var(--background-color-main);
    border: 1px solid #BDC3EB;
}
.auth-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(240, 240, 240, 0.3); /* Цвет фона и его прозрачность */
    z-index: 9; /* Поверх всего контента */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease; /* Плавное исчезновение */
}
.auth-loader.transparent {
    opacity: 0;
    pointer-events: none; /* Чтобы не мешал кликать по странице после скрытия*/
}
.auth-loader.loaded {
    opacity: 0; 
}
.avatar-container {
    display: flex;
    align-items: center;
    position: relative;
    margin: 0 10px;
}
.avatar-txt {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 34px;
    height: 34px;
    line-height: 24px;
    font-size: 18px;
    font-weight: 600;
    background: var(--background-color-avatar);
    color: var(--color-white);
    text-transform: uppercase;
    border-radius: 50%;
}
.avatar-btn {
    width: 42px;
    height: 42px;
    padding: 4px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    border: none;
    background-color: transparent;
}
.avatar-btn:hover {
    background: var(--background-dark-hover);
}
.btn-close-appview {
    position: absolute;
    top: 24px;
    right: 32px;
    width: 48px;
    height: 46px;
    overflow: hidden;
    color: var(--color-white);
    font-size: 72px;
    font-weight: 100;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-ok {
    width: 100%;
    padding: 10px 2rem;
    border-radius: 6px;
    border: none;
    background-color: var(--color-blue-light);
    color: var(--color-white);
    line-height: 1.5;
    font-weight: 600;
    text-align: center;
    text-shadow: 1px 1px 0 #444;
    letter-spacing: 2px;
}
.btn-ok:hover {
    box-shadow: 0px 2px 4px #CCCCCC;
    background-color: var(--color-blue-normal);
}
.btn-ok:active {
    background-color: var(--color-blue-dark);
}
.btn-ok:disabled {
    opacity: 0.6;
    pointer-events: none;
    text-shadow: none;
}
.button-wrap {
    margin-top: 25px;
}
.checkbox-wrap {
    margin-top: 15px;
    display: flex;
    align-items: flex-start;
}
.checkbox-wrap input {
    height: 18px;
    margin-right: 10px;
    transform: scale(1.1);
}
.checkbox-wrap p {
    font-size: 12px;
    line-height: 1.2;
}
.context-menu {
    width: 200px;
    position: absolute;
    background: var(--color-white);
    border-radius: 5px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.2);
    z-index: 5;
    top: calc(18px + 50%);
    right: -1%;
}
.context-menu_icon {
    display: flex;
    margin-right: 10px;
}
.context-menu_link {
    border: 0;
    background: var(--color-white);
    cursor: pointer;
    padding: 6px 6px 6px 18px;
    display: flex;
    width: 100%;
    color: #555555;
}
.context-menu_link:hover {
    background: var(--background-light-hover);
}
.context-menu_list {
    padding: 5px 0;
}
.error-block {
    background-color: #FF81AA21;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 13px;
}
.feedback {
    max-width: 600px;    
}
.feedback h3 {
    color: #555555;
    line-height: 24px;
    font-size: 17px;
}
.feedback button {
    max-width: 338px;
}
.feedback-container {
    margin: 0 auto;
    padding: 30px 15px;
}
.flex-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}
.font-light {
    font-weight: 300;
    margin-top: 10px;
}
.footer-main {
    padding: 24px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: #555555;
}
.form-label {  
    display: inline-block;
    margin-bottom: 0.3rem;
    font-size: 16px;
    font-weight: 400;
}
.form-wrap {
    margin-top: 30px;
}
.form-wrap:first-child {
    margin-top: 0;
}
.header-main {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 0 auto;
    padding: 15px 10% 20px 10%;
    border-bottom: 1px solid var(--border-color);
}
.header-right-block {
    display: flex;
    align-items: center;
    margin: 15px 0 10px;
}
.help-link {
    display: block;
    margin-bottom: 10px;
    text-decoration: underline;
    color: #555555;
}
.hidden {
    display: none;
}
.input-wrap {
    margin-top: 15px;
}
.input-wrap input {
    padding: 14px 12px;    
    width: 100%;
    height: 45px;    
    display: block;
    font-weight: 500;
}
.input-wrap textarea {
    padding: 14px 12px;    
    width: 100%;
    height: 142px;    
    display: block;
    font-weight: 500;
}
.intro {
    margin-bottom: 40px;
}
.intro-left, .intro-right {
    width: 47%;
    margin-bottom: 40px;
}
.intro-left-header {
    padding-left: 5px;
}
.intro-module {
    max-width: 1170px;
    width: 80%;
    margin: 0 auto;
    padding: 30px 0 10px;
}
.intro-module .flex-content {
    margin-top: 10px;
}
.intro-right {
    position: relative;
}
.link-to-apps {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 10px 12px;
    margin-left: 10px;
    font-weight: 600;
    color: #555555;
    font-family: Arial;
    white-space: nowrap;
}
.link-to-apps:hover {
    background: var(--background-light-hover);
    color: #000000;
}
.link-wrap {
    margin-top: 20px;
    font-size: 12px;
}
.link-wrap span {
   margin-right: 5px; 
}
.link-wrap a {
    text-decoration: underline;    
}
.logo-main {
   width: 60px;
   height: 60px;
   float: left;
   margin: 5px 15px 5px 0px;
}
.password-reset {
    margin-top: 30px;
}
.password-reset h3 {
    font-size: 24px;
    line-height: 28px;
    color: #555555;
}
.preview {
    width: 100%;
    padding: 25px 0 60px;
    background: var(--background-color-main);
    text-align: center;
}
.preview-container {
    margin: 0 auto;
}
.preview-list {    
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.preview-item {
    padding: 10px;
    margin: 0 10px 25px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    background: var(--color-white);
}
.preview-item:last-child {
    margin-right: 0px;
}
.privacy-link:hover {
    text-decoration: underline;
}
.scope {
    width: 100%;
    padding: 25px 0 60px;
    background: var(--color-white);
    text-align: center;
}
.scope-container {
    margin: 0 auto;
    max-width: 1050px;
}
.scope-list {
    display: flex;
    justify-content: center;
}
.scope-item {    
    max-width: 30%;
    display: flex;
    flex-direction: column;
    padding: 10px 10px 40px 15px;
    margin: 0 10px 25px 10px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--background-color-main);
}
.scope-item h3 {
    margin: 1em 0;
}
.scope-item p {
    text-align: left;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #ccc;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.success-block {
    background-color: #81FFBA44;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 13px;
}
.title {
    display: flex;
    padding-top: 10px
}

@media (max-width: 768px) {
    .flex-content {
        flex-direction: column; 
    }
    .intro-left, .intro-right {
        width: 100%;
    }
    .intro-left {
        padding-left: 10px;
    }
    .intro-module {
        width: 90%;
    }
    .scope-list {
        flex-direction: column;
    }
    .scope-item {
        max-width: 100%;
    }
}