

/**-- ОБЩИЕ СТИЛИ --*/


/*-- БАЗОВЫЕ ПАРАМЕТРЫ --*/

/* Цвета */
:root {
    --color-background: #F0EFEE; /*#F1F0EC*/ 
    --color-white: #F6F6F6; /*#f8f8f8*/
    --color-red: #E67F75;
    --color-green: #A6C88B;
    --color-yellow: #EDAE62;
    --color-purple: #C6A2BF;
    --color-violet: #C9BDF4;
    --color-blue: #7AAACF;
    --color-blue-light: #B1CDE3;
    --color-text1: #75736E;
    --color-text2: #989898;
    --color-light: #D9D9D9;
    --color-gold: #D7C3A6;

/* Параметры блоков */
    --spacing: 20px;
    --spacing-content: 20px;
    --spacing-block: 20px;
    --radius: 26px;
    --radius-light: 20px;

    --shadow-inside: inset 1px 1px 4px rgba(24, 24, 24, 0.4); 
    --shadow-outside: 0 2px 5px rgba(29, 56, 102, 0.2); 

    --border: 1px solid rgba(29, 56, 102, 0.2); 
}



/*-- СБРОС ПО УМОЛЧАНИЮ --*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



/*-- СКРОЛБАР --*/

/* Общие стили (для Firefox) */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-light) var(--color-background);
}

/* Стили для WebKit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 4px;
    background-color: var(--color-background);
}
::-webkit-scrollbar-thumb {
    background-color: var(--color-light);
    border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-text2);
}
::-webkit-scrollbar-track {
    background-color: var(--color-background);
}
::-webkit-scrollbar-track:hover {
    background-color: var(--color-light);
}
::-webkit-scrollbar-corner {
    background-color: var(--color-background);
}



button, a, .clickable-element {
    touch-action: manipulation;
}



/*-- ССЫЛКИ В ТЕКСТЕ --*/

.text-link {
    color: var(--color-blue); 
    text-decoration: none; /* Убрать подчеркивание */
    font-weight: bold; 
}
.text-link:hover, 
.text-link-light:hover {
    color: var(--color-text2); 
    text-decoration: underline;
}
.text-link:visited {
    color: var(--color-text2);
}
.text-link:active, 
.text-link-light:active {
    color: var(--color-text2);
}

.text-link-light {
    color: var(--color-light);
    text-decoration: none; 
    font-weight: bold; 
}



.margin-top10 {
    margin-top: 10px;
}


/*-- СООБЩЕНИЕ ОБ ОШИБКЕ --*/

.messages {
    margin-top: 20px;
}


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

body {
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: var(--spacing);
    background-color: var(--color-white);
    touch-action: manipulation;
}

@media (max-width: 768px) {
    body {
        padding: 0px;
    }
}
@media (max-width: 876px) {
    .page-2 .body {
        padding: 0px;
    }
}

body.page-0 {
    padding: 0;
    height: 100%;
    align-items: center;
    justify-content: center;
}

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





/*-- ШАПКА (БЛОК С НАВИГАЦИЕЙ) --*/

.header {
    background-color: var(--color-background);
    border-radius: var(--radius-light);
    padding: 0 var(--spacing-content);
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: visible;
}
@media (max-width: 768px) {
    .header {
        border-radius: 0px;
    }
}
@media (max-width: 876px) {
    .page-2 .header {
        border-radius: 0px;
    }
}

/*-- Контейнеры --*/
.header-button-block {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    position: relative;
    overflow: visible;
    width: 100%;
    display: grid;
    grid-template-columns: auto auto 1fr;
}

/*-- Внутренние контейнеры --*/
.header-button-block > div {
    box-sizing: border-box;
    gap: 10px;
}
.header-block-logo {
    display: none;
}
.header-block-left {
    display: flex;
    margin-right: 30px;
}
.header-block-center {
    display: flex; 
}
.header-block-right {
    justify-content: flex-end;
    align-items: center; 
    display: flex; 
}

/*-- Кнопки навигации --*/
.navigation-button {
    display: flex; 
    background-color: transparent;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    position: relative;
    width: 45px;
    height: 45px;
    transform-origin: center;
}

.navigation-image {
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

.navigation-button:hover {
    transform: scale(1.12);
    z-index: 1;
}

.logo-image {
    display: flex;
    height: 50px;
    margin-right: 30px; 
    vertical-align: middle; 
}
.logo-image-light {
    height: 50px;
    margin-right: 30px; 
    vertical-align: middle; 
}

.logo-image-windows {
    height: 80px;
    margin-bottom: 20px; 
    vertical-align: middle; 
}


@media (max-width: 768px) {
    
    .header-block-logo {
        display: flex; 
    }
    .logo-image {
        display: none;
    }
    .header-button-block {
        grid-template-columns: auto auto 1fr;
        align-items: center;
    }
    .logo-image-windows {
        height: 70px;
        margin: 20px 0 40px 0; 
    }
}




/*-- ВСПЛЫВАЮЩЕЕ МЕНЮ АККАУНТА --*/

/*-- Контейнер --*/
.auth-menu {
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-menu .navigation-button {
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}
.dropdown-content {
    min-width: 180px;
    display: none;
    position: absolute;
    top: 110%; 
    right: 0px; 
    background-color: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-outside);
    padding: 20px 25px;
    z-index: 50;
    color: var(--color-text1);
    font-size: 1.0em;
    text-align: left;
}
@media (max-width: 768px) {
    .dropdown-content {
        top: 0px; 
        right: 90px;
        z-index: 20;
    }
}

/*-- Пользователь --*/
.user-email-block {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 6px;
}
.user-email {
    border-bottom: 1px solid var(--color-light);
    padding-bottom: 10px;
    color: var(--color-text2);
    font-size: 1em;
    font-weight: normal;
}

/*-- Меню --*/
.dropdown-content a { 
    display: block; 
    padding-top: 16px; 
    color: var(--color-text2);
    font-weight: normal;
    font-size: 0.9em;
    text-decoration: none;
}

/*-- Иконки --*/
.dropdown-icon {
    width: 31px; 
    height: 31px;
    margin-right: 10px; 
    vertical-align: middle; 
    transition: transform 0.3s ease;
}
.dropdown-link:hover .dropdown-icon { 
    transform: scale(1.1);
    z-index: 1;
}

/*-- Выход --*/
.logout-text {    
    display: inline-block;
    border-top: 1px solid var(--color-light);
    padding-top: 14px;
}

.show {
    display: block;
}




/*-- ВСПЛЫВАЮЩЕЕ УВЕДОМЛЕНИЕ --*/

/*-- Контейнер --*/
.notification {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-red); 
    color: var(--color-white);
    padding: var(--spacing-content);
    border-radius: var(--radius-light);
    z-index: 10;
    text-align: center;
    display: none; 
    animation: slideIn 0.5s forwards, slideOut 0.5s 2.5s forwards; 
    box-shadow: 0 4px 8px var(--shadow-outside); 
}

@keyframes slideIn {
    from {
        top: -50px;
        opacity: 0;
    }
    to {
        top: 20px;
        opacity: 1;
    }
}
@keyframes slideOut {
    from {
        top: 20px;
        opacity: 1;
    }
    to {
        top: -50px;
        opacity: 0;
    }
}



/*-- УВЕДОМЛЕНИЕ ВНИЗУ ЭКРАНА О ПОДПИСКЕ--*/

.subscription-status {
    box-sizing: border-box;
    width: 100%;
    background-color: var(--color-gold); 
    color: var(--color-white);   
    padding: var(--spacing-content);
    margin-top: var(--spacing-block);
    border-radius: var(--radius-light);
    text-align: left;
    z-index: 50;    
    font-size: 15px; 
    white-space: normal; 
    word-break: break-word; 
}
.subscription-status a {
    color: var(--color-text2);  
    text-decoration: none;
}
.subscription-status a:hover {
    text-decoration: underline;
}




/*-- ПОДТВЕРЖДЕНИЕ УДАЛЕНИЯ --*/

.confirmation-modal {
    display: none;  
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(151, 151, 151, 0.5); 
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.confirmation-content {
    background-color: var(--color-background);
    border-radius: var(--radius);
    box-shadow: var(--shadow-outside);
    text-align: center;
    width: 60%;
    max-width: 600px;
}

.confirmation-message {
    padding: 16px;
    margin: 30px 0 20px 0;
    font-size: 1.1em;
    background-color: var(--color-red);
    color: var(--color-white);
    font-weight: normal;
    text-transform: uppercase;
}
.confirmation-text-1, .onboarding-message-text-1, .slide-description {
    font-size: 0.9em;
    color: var(--color-text2);
    font-weight: normal;
}
.confirmation-text-2 {
    padding: var(--spacing-content) 34px;
    font-size: 0.8em;
    color: var(--color-text2);
    font-weight: normal;
}

.confirmation-buttons {
    display: flex;
    justify-content: center;
    padding: var(--spacing-content);
    gap: 60px;
    margin-bottom: 10px;
}
.confirmation-button {
    padding: 10px 50px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: normal;
}
.confirm-button {
    background-color: var(--color-red);  
    color: var(--color-white);
}
.cancel-button {
    background-color: var(--color-text2); 
    color: var(--color-white);
}
.confirm-button:hover {
    background-color: var(--color-text1);  
}
.cancel-button:hover {
    background-color: var(--color-text1);  
}

@media (max-width: 768px) {
    .confirmation-content {
        width: 80%;
        flex-direction: column;
    }
    .confirmation-text-1 {
        padding: 0 10px;
    }
    .confirmation-buttons {
        flex-direction: column;
        gap: 16px;
    }
}





/*-- БУРГЕР МЕНЮ --*/

.burger-menu-button {
    display: none; 
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: flex-end;
    z-index: 20;
    margin-left: auto;
}
.burger-line {
    display: block;
    width: 35px;
    height: 3px;
    background-color: var(--color-light);
    margin: 4px 0;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .burger-menu-button {
        display: block;
    }
    .header-block-center,
    .header-block-right {
        display: none;
    }
    .menu-open .header-block-center,
    .menu-open .header-block-right {
        display: flex;
        flex-direction: column;
        position: fixed;
        align-items: center;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100px;
        background: var(--color-background);
        padding: 20px;
        box-shadow: var(--shadow-outside);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 50;
        border-radius: var(--radius-light);
    }
    .menu-open .header-block-center {
        height: 100%;
    }
    .menu-open .header-block-right {
        top: 240px; 
        height: auto;
        box-shadow: none;
    }
    .menu-open .header-block-center,
    .menu-open .header-block-right {
        transform: translateX(0);
    }
    .menu-open .burger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        margin-right: 80px;
        background-color: var(--color-gold);
    }
    .menu-open .burger-line:nth-child(2) {
        opacity: 0;
    }
    .menu-open .burger-line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
        background-color: var(--color-gold);
    }
}

@media (max-width: 376px) {
    .logo-image-light {
        margin-right: 16px; 
    }
    .header-block-left {
        margin-right: 0px;
    }
    .menu-open .burger-line:nth-child(1) {
        margin-right: 80px;
    }
}




/*-- TOOLTIP ДЛЯ СТАТУСОВ --*/

.status-tooltip {
    position: absolute;
    top: 115%; 
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-white);
    color: var(--color-text2);
    padding: 16px;
    border-radius: var(--radius-light);
    box-shadow: var(--shadow-outside);
    font-size: 0.7em;
    white-space: nowrap;
    opacity: 0;          
    visibility: hidden; 
    pointer-events: none;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
    z-index: 10;
}
.page-2 .status-tooltip {
    top: -135%;
    left: 50%;
}
.page-4 .status-tooltip {
    top: -135%;
    left: 50%;
    font-size: 0.8em;
}

.status-checkbox:hover .status-tooltip {
    opacity: 1;
    visibility: visible;
}





/* КУКИ */

.cookie-base {
    display: flex; 
    position: fixed; 
    align-items: center;
    justify-content: center;
    bottom: 20px; 
    left: 0; 
    width: 100%; 
    background-color: var(--color-text2); 
    color: var(--color-white); 
    padding: 20px; 
    text-align: left; 
    font-size: 0.8em;
    z-index: 1000;
}

.cookie-ok {
    background-color: var(--color-gold); 
    color: var(--color-white); 
    border: none; 
    margin-left: 20px;
    padding: 10px 20px; 
    border-radius: 12px;
    text-align: center; 
    text-decoration: none; 
    display: inline-block; 
    font-size: 16px; 
    cursor: pointer;
}





/* ТЕКСТОВАЯ СТРАНИЦА */

.text-page {
    display: flex; 
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 20px 40px; 
    gap: var(--spacing-block);
}

.text-page-logo {
    display: flex; 
    width: 100%;
    max-width: 1000px;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 20px;
}
.text-page-logo-image {
    width: 240px;
}

.text-page-name {
    display: flex; 
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1000px;
    padding: var(--spacing-content);
    border-radius: var(--radius);
    background-color: var(--color-background);
}
.text-page-h1 {
    color: var(--color-text2);
    font-size: 1.4em;
    text-align: center;
    font-weight: normal;
    font-style: normal;
    text-transform: uppercase;
}

.text-page-info {
    display: flex; 
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    width: 100%;
    max-width: 1000px;
    border-radius: 50px;
    padding: 40px;
    background-color: var(--color-background);
    flex: 1;
    text-align: left;
    color: var(--color-text2);
    font-size: 1.0em;
    line-height: 1.5; 
}

.text-page-info p {
    margin-bottom: 15px; 
}


@media (max-width: 768px) {
    .text-page {
        padding: 20px 0px; 
    }
    .text-page-logo {
        justify-content: center;
        margin-bottom: 20px;
    }
    .text-page-logo-image {
        width: 200px;
    }
    .text-page-name {
        border-radius: 0px;
    }
    .text-page-h1 {
        font-size: 1.2em;
    }
    .text-page-info {
        border-radius: 0px;
        padding: 16px;
        font-size: 0.9em;
    }
}




/* УСТАНОВКА МОБИЛЬНОЙ ВЕРСИИ */

.tabs {
    display: flex; 
    align-items: center;
    justify-content: center;
    background-color: var(--color-light);
    flex-direction: column;
    border-radius: 0 0 20px 20px;
    margin-bottom: 20px;
}
.tab-buttons {
    display: flex;
    transition: transform 0.3s ease;
}
.tab-button {
    padding: 15px 20px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    color: var(--color-text1);
}
.tab-button.active {
    background-color: var(--color-gold);
    border-radius: 0 0 20px 20px;
    color: var(--color-white);
}

.tabs-page {
    display: flex; 
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    max-width: 1000px;
}

.tab-content {
    display: none;
    padding: 20px 0;
    width: 100%;
    gap: 20px;
}
.tab-content.active {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
}

.text-page-mobile{
    display: flex; 
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    max-width: 1000px;
    border-radius: 25px;
    padding: 20px;
    background-color: var(--color-background);
    flex: 1;
    text-align: center;
    color: var(--color-text2);
    font-size: 0.9em;
    line-height: 1.5; 
}
.info-mobile-text {
    display: flex; 
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    gap: 10px;
}
.text-page-h2 {
    color: var(--color-text2);
    font-size: 1.2em;
    text-align: center;
    font-weight: normal;
    font-style: normal;
}

.info-mobile-block {
    display: flex; 
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    width: 100%;
    background-color: var(--color-white);
    box-shadow: var(--shadow-outside);
    border-radius: 50px;
}

.text-page-info-mobile {
    display: flex; 
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    width: 100%;
    border-radius: 50px;
    padding: 40px;
    text-align: left;
    color: var(--color-text2);
    font-size: 1.0em;
    line-height: 1.7; 
}

.mobile-image-box {
    display: flex;
    align-items: center;
    justify-content: center; 
    width: 100%;
    height: 100%;
    z-index: 3; 
}
.page-mobile-image {
    width: 60%;
    height: 60%;
    z-index: 3; 
    object-fit: contain; 
}


.pay-info-line {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center; 
    width: 70%;
    height: 30%;
    max-height: 120px;
    padding: var(--spacing-content);
    border-radius: var(--radius-light);
    box-shadow: var(--shadow-outside);
    background-color: var(--color-text1);
    text-align: center;
    font-size: 2.0em;
    text-transform: uppercase;
    color: var(--color-white);
}




@media (max-width: 768px) {
    .text-page-mobile{
        border-radius: 0px;
    }
    .info-mobile-block {
        border-radius: 0px;
    }
    .text-page-info-mobile {
    padding: 16px;
    font-size: 0.9em;
    }
    .pay-info-line {
        width: 100%;
        border-radius: 0px;
        font-size: 1.5em;
    }
}



