/* main.css */
/*#region === Общие стили */

@font-face {
    font-family: 'Golos Text';
    src: url('fonts/GolosText-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overscroll-behavior: none;
}

body {
    font-family: 'Golos Text', sans-serif;
    background: #eeeeee;  /* как цвет правой панели на случай если в вертикальной раскладке не хватает длины страницы */
    line-height: 1.3;
}

table {
    border-collapse: collapse;
}

/*#endregion */

/*#region === Стили для "точечной" навигации (панель слева) */

.left-sidebar {
    padding: 0 24px;
    background: #ffffff;
}

.c-dot {
    padding: 8px;
    cursor: pointer;
}

.c-dot-view {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #D2D8DA;
    cursor: pointer;
    transition: all .25s ease;
}

.c-dot:hover .c-dot-view {
    background: #268BD9;
}

.c-dot.active .c-dot-view {
    background: #268BD9;
    height: 26px;
    border-radius: 5px;
}

/*#endregion */

/*#region === Header */

#id-logo {
    cursor: pointer;
    opacity: 0.8;
}
#id-logo:hover {
    opacity: 1.0;
}

.c-test-stend {
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    color: #dd5641;
    border: 2px solid #dd5641;
    padding: 6px 16px;
    border-radius: 32px;
    text-decoration: none;
}
.c-test-stend:hover {
    color: #ffffff;
    background-color: #dd5641;
}

.c-toolbar {
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    top: 0px;
    padding: 16px 24px;
}

/*#endregion */

/*#region === Контейнер для страниц и анимация */

.page-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-old,
.slide-new {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    will-change: transform;
}

/*#endregion */

/*#region === Структура страницы */

.page-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
}

.page-wrapper .c-panel-left {
    width: 60%;
    position: relative;
    padding: 32px 16px 24px 16px;
    /* padding: 32px 16px 48px 16px; */
    overflow-y: auto;
    background: #ffffff;
}

.page-wrapper .c-panel-right {
    width: 40%;
    position: relative;
    padding: 24px 0 24px 0;
    overflow-y: auto;
    background: #eeeeee;
}

.page-wrapper .c-panel-right.c-bg-grey {
    background: #eeeeee;
}

/*#endregion */

/*#region === Стили на страницах */

/* пре-заголовок страницы */
.c-pretitle {
    font-size: 24px;
    line-height: 1;
    margin-bottom: 32px;
    color: #777777;
}

/* заголовок страницы*/
.c-title {
    font-size: 48px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 32px;
}

/* кнопка на странице*/
.c-btn {
    display: inline-block;
    padding: 16px 32px;
    border: 2px solid #74b5e9;
    color: #74b5e9;
    border-radius: 32px;
    cursor: pointer;
    font-size: 18px;
    transition: all .25s ease;
}
.c-btn:hover {
    background-color: #74b5e9;
    color: #ffffff;
}

/* для таблиц со стрелочками (имитация списков) */
.c-list {
    visibility: inherit;
}
.c-list-item {
    visibility: inherit;
}
.c-list-item td {
    vertical-align: top;
    padding: 0 8px 24px 0;
    color: #555555;
    font-size: 20px;
}
.c-list-icon {
    width: 24px;
}
.c-list-title {
    font-weight: bold;
    margin-bottom: 8px;
    color: #333333;
}

.c-text-muted {
    color: #555555;
    font-size: 20px;
    margin: 8px 0;
}

.c-strong {
    color: #333333;
    font-weight: bold;
}

.c-highlight {
    color: #268BD9;
}


.p0-title1 {
    /* word-break: break-all;  */
    font-size:32px;
    font-weight:700;
    margin-bottom: 16px;
    color: #555555;
}

.p0-title2 {
    font-size:36px;
    line-height:1.1;
    font-weight:400;
    color:#3D4147;
    max-width:800px;
    margin-bottom:32px;
}


/* Статистика (страница 4) */
.p4-stats {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 32px;
    margin: 32px 0;
}
.p4-stat-value {
    font-size: 56px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 8px;
    color: #333333;
}
.p4-stat-label {
    font-size: 14px;
    line-height: 1;
    color: #525C60;
}

/* Карточки (страница 4) */
.p4-cards-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 16px;
}
.p4-card-wrapper {
    width: 50%;
    padding: 8px;
}
.p4-card {
    background: #ffffff;
    padding: 16px;
    border-radius: 16px;
    height: 100%;
}
.p4-card-icon {
    max-width: 56px;
    max-height: 48px;
    margin-bottom: 16px;
}
.p4-card-title {
    font-size: 20px;
    font-weight: normal;
    line-height: 1;
    margin-bottom: 8px;
    color: #333333;
}
.p4-card-text {
    font-size: 16px;
    line-height: 1.3;
    color: #888888;
}

/* Форма (страница 5) */
.p5-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 32px 0;
    max-width: 500px;
}
.p5-form.hidden {
    display: none;
}
.p5-form-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.p5-form-label {
    font-size: 14px;
    color: #555555;
}
.p5-form-input,
.p5-form-textarea {
    background: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    padding: 8px 8px;
    font-size: 14px;
    color: #333333;
    outline: none;
    min-width: 100%;
    max-width: 100%;
    width: 100%;
}
.p5-form-input::placeholder {
    color: #aaaaaa;
}
.p5-form-textarea {
    min-height: 80px;
}
.p5-btn-submit {
    border-color: #dd5641;
    background-color: #dd5641;
    color: #ffffff;
}
.p5-btn-submit:hover {
    background-color: #d9412b;
}
.p5-form-success {
    display: none;
    align-items: center;
    gap: 8px;
    color: #006600;
    font-size: 16px;
}
.p5-form-success.show {
    display: flex;
}
.p5-form-success-icon-wrapper {
    text-align: center;
}
.p5-form-success-icon {
    width: 64px;
    color: #006600;
}
.p5-form-success-text {
    font-size: 20px;
    color: #333333;
    text-align: center;
}

/* Контакты (страница 5) */
.p5-contacts-header {
    margin-bottom: 24px;
}
.p5-contacts-header a.p5-contacts-mail {
    color: #268BD9;
    text-decoration: none;
    font-size: 16px;
    font-weight: normal;
    display: inline-block;
    margin: 4px 0 24px 0;
}
.p5-contacts-panel {
    padding: 16px;
}
.p5-contacts-logo {
    max-width: 150px;
}
a.p5-contacts-phone {
    color: #268BD9;
    text-decoration: none;
    font-size: 16px;
    font-weight: normal;
    display: inline-block;
    margin: 4px 0 24px 0;
}
a.p5-contacts-mail {
    color: #268BD9;
    text-decoration: none;
    font-size: 14px;
    font-weight: normal;
    display: inline-block;
    margin: 4px 0 24px 0;
}
.p5-contacts-block {
    margin-bottom: 8px;
}
.p5-contacts-name {
    display: block;
    font-weight: bold;
}
.p5-contacts-addr,
.p5-contacts-phone,
.p5-contacts-country,
.p5-contacts-mail {
    display: block;
    font-size: 14px;
    color: #555;
}
.p5-contacts-country {
    font-weight: bold;
    color: #333;
}

/* Чат */
.c-chat {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px;
    gap: 16px;
}
.c-chat-scroll {
    flex-grow: 1;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 16px;
    height: 400px;
    min-height: 400px;
}
.c-chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #888888;
    font-size: 16px;
}
.c-chat-empty-icon img {
    width: 64px;
}
.c-chat-empty-text {
    margin-top: 16px;
    color: #666666;
    font-size: 16px;
    width: 100%;
    max-width: 400px;
    padding: 0 32px;
    text-align: center;
}
.c-chat-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.c-chat-input-wrapper {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
}
.c-label {
    font-size: 12px;
    color: #666666;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}
.c-chat-inputbox {
    display: flex;
    flex-direction: row;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
}
.c-chat-input {
    flex-grow: 1;
}
.c-chat-input input {
    padding: 0;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333333;
    width: 100%;
}
.c-chat-input input::placeholder {
    color: #aaaaaa;
}
.c-send-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    background: #268BD9;
    font-weight: bold;
    color: #ffffff;
}
.c-send-btn:hover {
    background: #1c6bb3;
}
.c-chip-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 0 0;
}
.c-chip {
    background: #d9eaf9;
    border-radius: 32px;
    padding: 8px 16px;
    font-size: 12px;
    color: #2786dc;
    cursor: pointer;
}
.c-chip:hover {
    background: #c0dcf5;
    color: #2786dc;
}

/* Сообщения чата */
.chat-log {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.msg-user {
    align-self: flex-end;
    background: #268BD9;
    color: #fff;
    padding: 8px 16px;
    border-radius: 16px 16px 0 16px;
    max-width: 80%;
    font-size: 14px;
}
.msg-ai {
    align-self: flex-start;
    background: #f0f0f0;
    color: #333;
    padding: 8px 16px;
    border-radius: 16px 16px 16px 0;
    max-width: 80%;
    font-size: 14px;
}
.msg-ai .tag {
    display: inline-block;
    background: #d9eaf9;
    color: #268BD9;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-right: 8px;
}
.msg-ai .chat-link {
    color: #268BD9;
    text-decoration: underline;
    cursor: pointer;
}

/*#endregion */

/*#region === Меню (бургер) */

.c-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 80vw;
    background: #ffffff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.c-menu-panel.open {
    transform: translateX(0);
}

.c-menu-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 32px;
}

.c-menu-close {
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #888;
    transition: color 0.2s;
    padding: 4px 8px;
}
.c-menu-close:hover {
    color: #333;
}

.c-menu-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.c-menu-items a {
    display: block;
    padding: 12px 0;
    font-size: 18px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.2s;
}
.c-menu-items a:hover {
    color: #268BD9;
}

.c-menu-test-stend-wrapper {
    margin-top: 32px;
    align-self: flex-start;
}

.c-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.c-menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/*#endregion */

/*#region === Общие сервисные классы (не изменяются) */

.x-flex {
    display: flex;
}
.x-flex-column {
    flex-direction: column;
}
.x-flex-row {
    flex-direction: row;
}
.x-flex-grow {
    flex-grow: 1;
}
.x-align-center {
    align-items: center;
}
.x-justify-center {
    justify-content: center;
}
.x-justify-between {
    justify-content: space-between;
}

.x-padding-8 {
    padding: 8px;
}
.x-padding-16 {
    padding: 16px;
}
.x-padding-24 {
    padding: 24px;
}
.x-padding-32 {
    padding: 32px;
}

.x-gap-8 {
    gap: 8px;
}
.x-gap-16 {
    gap: 16px;
}
.x-gap-24 {
    gap: 24px;
}
.x-gap-32 {
    gap: 32px;
}

.x-align-items-center {
    align-items: center;
}
.x-justify-content-center {
    justify-content: center;
}
.x-justify-content-between {
    justify-content: space-between;
}

.x-fullsize {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.x-overflow-hidden {
    overflow: hidden;
}

.x-fixed {
    position: fixed;
}
.x-absolute {
    position: absolute;
}
.x-relative {
    position: relative;
}

.x-none {
    display: none;
}

.x-max-width-100prc {
    max-width: 100%;
}
.x-width-100prc {
    max-width: 100%;
    min-width: 100%;
    width: 100%;
}

.x-nowrap {
    white-space: nowrap;
}

.x-dev {
    visibility: visible;
}

/*#endregion */