/* Button Component */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 20px 40px;
    font-family: var(--font-primary);
    font-size: var(--font-size-button);
    font-weight: 600;
    line-height: 1em;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    cursor: pointer;
}

.button--primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.button--primary:hover {
    background-color: var(--color-primary-dark);
}

.button--outline {
    background-color: transparent;
    color: var(--color-black);
    border: 1px solid var(--color-black);
}

.button--outline:hover {
    background-color: var(--color-black);
    color: var(--color-white);
}

.button--gradient {
    background: linear-gradient(85.77deg, #004DFF 21.33%, #A3BFFF 149.74%);
    color: var(--color-white);
}

.button--gradient:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.button--white {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.button--white:hover {
    background-color: var(--color-bg);
}

.button--large {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 20px;
    gap: 10px;
    width: 498px;
    height: 64px;
    border-radius: 8px;
}

.button--full {
    width: 100%;
}

/* Input Group Component */
.input-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.input-group__label {
    font-size: var(--font-size-body1);
    font-weight: 600;
    color: var(--color-black);
}

.input-group__field {
    position: relative;
    background-color: var(--color-bg);
    border-radius: var(--radius-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    min-height: 65px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.input-group__hint-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: var(--spacing-xs);
}

.input-group__hint {
    font-size: var(--font-size-body3);
    color: var(--color-grey);
    margin-bottom: 0;
}

.input-group__input {
    font-size: var(--font-size-body2);
    color: var(--color-black);
    background: transparent;
    width: 100%;
}

/* Специфичные стили для полей депозита и объема */
#deposit,
#volume {
    font-size: 14px;
}

/* Стили для лейблов полей депозита и объема */
.input-group__field:has(#deposit) .input-group__hint,
.input-group__field:has(#volume) .input-group__hint {
    font-size: 12px;
}

/* Dropdown Component */
.dropdown {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: clamp(12px, 1.2vw, 14px) clamp(16px, 2vw, 32px);
    gap: clamp(8px, 6vw, 157px);
    width: 100%;
    min-height: clamp(55px, 5.5vw, 80px);
    background: #004DFF;
    border-radius: 16px;
    cursor: pointer;
    flex: 1 1 auto;
    order: 0;
    position: relative;
    transition: all var(--transition-base);
}

.dropdown:hover {
    opacity: 0.9;
}

.dropdown--open {
    border-radius: 16px 16px 0 0;
}

.dropdown__header {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.dropdown__label {
    font-size: clamp(12px, 1.2vw, var(--font-size-body3));
    color: var(--color-white);
}

.dropdown__value {
    font-size: clamp(14px, 1.5vw, var(--font-size-body1));
    font-weight: 600;
    color: var(--color-white);
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.dropdown__icon {
    flex-shrink: 0;
    width: clamp(20px, 2.5vw, 24px);
    height: clamp(20px, 2.5vw, 24px);
    transition: transform var(--transition-base);
}

.dropdown--open .dropdown__icon {
    transform: rotate(180deg);
}

.dropdown__list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #004DFF;
    border-radius: 0 0 16px 16px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    z-index: 10;
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.15);
}

.dropdown__list--open {
    max-height: 400px;
    opacity: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.dropdown__list--open::-webkit-scrollbar {
    width: 6px;
}

.dropdown__list--open::-webkit-scrollbar-track {
    background: transparent;
}

.dropdown__list--open::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.dropdown__list--open::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.dropdown__item {
    display: flex;
    flex-direction: column;
    padding: clamp(12px, 1.2vw, 14px) clamp(16px, 2vw, 32px);
    gap: 2px;
    cursor: pointer;
    transition: background-color var(--transition-base);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown__item:first-child {
    border-top: none;
}

.dropdown__item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown__item--selected {
    background-color: rgba(255, 255, 255, 0.15);
}

.dropdown__item-label {
    font-size: clamp(12px, 1.2vw, var(--font-size-body3));
    color: rgba(255, 255, 255, 0.7);
}

.dropdown__item-value {
    font-size: clamp(14px, 1.5vw, var(--font-size-body1));
    font-weight: 600;
    color: var(--color-white);
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Stat Card Component */
.stat-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(12px, 1.3vw, 18px) clamp(14px, 1.8vw, 22px);
    gap: clamp(4px, 0.5vw, 7px);
    width: 100%;
    min-width: 0;
    min-height: clamp(80px, 8vw, 113px);
    background: #FFFFFF;
    border-radius: 16px;
    flex: 1 1 0;
    order: 0;
    overflow: hidden;
}

.stat-card--smartness {
    gap: clamp(12px, 2.5vw, 29px);
}

.stat-card__header {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0px;
    gap: 4px;
    width: 100%;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
    flex-wrap: wrap;
    min-width: 0;
}

.stat-card__label {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: clamp(12px, 1.2vw, 16px);
    line-height: 1.4;
    letter-spacing: -0.03em;
    color: #000000;
    flex: 1;
    order: 0;
    align-self: stretch;
    flex-grow: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}

.stat-card__value {
    font-family: 'Unbounded', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: clamp(16px, 1.8vw, 22px);
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: #000000;
    width: 100%;
    min-height: clamp(20px, 2vw, 26px);
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.stat-card__value--gradient {
    background: linear-gradient(85.77deg, #004DFF 21.33%, #A3BFFF 149.74%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* Info Icon Component */
.info-icon {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: clamp(6px, 0.7vw, 8px) clamp(8px, 1vw, 12px);
    gap: clamp(6px, 0.7vw, 10px);
    width: clamp(20px, 2.2vw, 24px);
    height: clamp(20px, 2.2vw, 24px);
    min-width: clamp(20px, 2.2vw, 24px);
    background: #D9E5FF;
    border-radius: 22px;
    border: none;
    cursor: pointer;
    flex: none;
    flex-shrink: 0;
    order: 1;
    flex-grow: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(10px, 1.1vw, 12px);
    font-weight: 600;
    color: #000000;
    line-height: 1;
    position: relative;
}

/* Tooltip Component */
.tooltip {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 14px;
    gap: 10px;
    position: fixed;
    width: 248px;
    min-height: 168px;
    background: #D9E5FF;
    border-radius: 16px;
    z-index: 10000;
    pointer-events: none;
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.15);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    top: -9999px;
    left: -9999px;
}

.tooltip--visible {
    visibility: visible;
    opacity: 1;
}

.tooltip__text {
    width: 220px;
    min-height: 140px;
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;
    letter-spacing: -0.03em;
    color: #000000;
    flex: none;
    order: 0;
    flex-grow: 0;
}

/* Tooltip arrow - default (above element) */
.tooltip::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #D9E5FF;
    top: 100%;
    left: var(--arrow-left, 50%);
    transform: translateX(-50%);
}

/* Arrow when tooltip is below element */
.tooltip--below::after {
    border-top: none;
    border-bottom: 8px solid #D9E5FF;
    top: auto;
    bottom: 100%;
}

/* Tooltip positioning */
.info-icon[data-tooltip] {
    position: relative;
}

.input-group__hint[data-tooltip] {
    position: relative;
    cursor: help;
}

/* Responsive tooltips */
@media (max-width: 768px) {
    .tooltip {
        width: calc(100vw - 40px);
        max-width: 248px;
        min-height: auto;
    }
    
    .tooltip__text {
        width: 100%;
        min-height: auto;
    }
}

/* Result Item Component */
.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-md) 0;
    position: relative;
}

.result-item:not(:last-child)::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 0px;
    left: 0;
    bottom: 0;
    border: 1px solid #DADADA;
}

.result-item__label {
    font-size: var(--font-size-body1);
    font-weight: 600;
    color: var(--color-black);
}

.result-item__value {
    font-family: var(--font-heading);
    font-size: 28px;
    line-height: 1.2em;
    letter-spacing: -0.03em;
    color: var(--color-black);
    white-space: nowrap;
}

/* Participant Card Component */
.participant-card {
    width: 100%;
    max-width: 100%;
    min-height: 211px;
    padding: 22px 25px 25px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    position: relative;
}

.participant-card--effective {
    background: linear-gradient(85.77deg, #004DFF 21.33%, #A3BFFF 149.74%);
    color: var(--color-white);
    transform: rotate(180deg);
    flex-direction: row-reverse;
}

.participant-card--effective > * {
    transform: rotate(180deg);
}

.participant-card--ineffective {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    color: var(--color-black);
}

.participant-card__header {
    display: flex;
    flex-direction: column;
    gap: 27px;
    flex-shrink: 0;
    min-width: 200px;
}

.participant-card__title-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.participant-card__title {
    font-size: var(--font-size-h4);
    font-weight: 600;
    margin: 0;
}

.participant-card--effective .participant-card__title {
    color: #FFFFFF;
}

.participant-card--ineffective .participant-card__title {
    color: #000000;
}

.participant-card__percentage {
    font-family: var(--font-heading);
    font-size: var(--font-size-h1);
    line-height: var(--line-height-h1);
}

.participant-card__text {
    font-size: var(--font-size-body1);
    line-height: var(--line-height-body);
    flex: 1;
}

/* Model Card Component */
.model-card {
    width: 394px;
    max-width: 100%;
    height: 635px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.model-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Review Card Component */
.review-card {
    display: flex;
    flex-direction: column;
    width: 650px;
    max-width: 100%;
    flex-shrink: 0;
}

.review-card__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 22px;
    gap: 10px;
    width: 100%;
    min-height: 94px;
    background: linear-gradient(85.77deg, #004DFF 21.33%, #A3BFFF 149.74%);
    border-radius: 16px 16px 0 0;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
}

.review-card__model-label {
    font-size: var(--font-size-body1);
    color: var(--color-white);
}

.review-card__model-name {
    font-size: var(--font-size-body1);
    font-weight: 600;
    color: var(--color-white);
}

.review-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 22px 20px;
    gap: 22px;
    width: 100%;
    min-height: 342px;
    background: #FFFFFF;
    border-radius: 0 0 16px 16px;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
}

.review-card__user {
    display: flex;
    align-items: center;
    gap: 18px;
}

.review-card__avatar {
    width: 65px;
    height: 65px;
    border-radius: 35px;
    object-fit: cover;
}

.review-card__user-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.review-card__user-name {
    font-size: var(--font-size-body1);
    font-weight: 600;
    color: var(--color-black);
}

.review-card__user-date {
    font-size: var(--font-size-body2);
    color: var(--color-grey);
}

.review-card__text {
    font-size: var(--font-size-body1);
    line-height: var(--line-height-body);
    color: var(--color-black);
}

.review-card__divider {
    width: 100%;
    height: 1px;
    background-color: var(--color-light-grey);
}

.review-card__stats {
    display: flex;
    gap: 24px;
    flex-wrap: nowrap;
    width: 100%;
    justify-content: space-between;
}

.review-card__stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
    white-space: nowrap;
}

.review-card__stat-label {
    font-size: var(--font-size-body3);
    color: var(--color-black);
}

.review-card__stat-value {
    font-family: var(--font-heading);
    font-size: 22px;
    line-height: 1.2em;
    letter-spacing: -0.03em;
}

.review-card__stat-value--positive {
    color: var(--color-success);
}

.review-card__stat-value--negative {
    color: var(--color-error);
}

/* FAQ Item Component */
.faq-item {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: 0px 4px 13px 0px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.faq-item--active {
    background: #004DFF;
    box-shadow: 0px 4px 13px rgba(0, 0, 0, 0.07);
}

.faq-item--active .faq-item__content {
    display: block;
    background: #004DFF;
}

.faq-item--active .faq-item__icon--down {
    display: none;
}

.faq-item--active .faq-item__icon--up {
    display: block;
}

.faq-item__icon--down {
    display: block;
}

.faq-item__icon--up {
    display: none;
}

.faq-item--active .faq-item__header {
    background: transparent;
    padding: 22px 25px 25px;
    gap: 79px;
}

.faq-item--active .faq-item__question {
    color: var(--color-white);
}

.faq-item--active .faq-item__answer {
    color: var(--color-white);
}

.faq-item__header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 32px;
    text-align: left;
    gap: 72px;
    transition: background-color var(--transition-base), padding var(--transition-base), gap var(--transition-base);
    position: relative;
}

.faq-item__question {
    font-size: var(--font-size-body1);
    font-weight: 600;
    color: var(--color-black);
    transition: color var(--transition-base);
}

.faq-item__icon {
    width: 14px;
    height: 17px;
    flex-shrink: 0;
    object-fit: contain;
}

.faq-item__content {
    display: none;
    padding: 0 32px 25px;
}

.faq-item--active .faq-item__content {
    padding: 0 25px 25px;
}

.faq-item__answer {
    font-size: var(--font-size-body2);
    line-height: var(--line-height-body);
    color: var(--color-black);
    transition: color var(--transition-base);
}

/* Table Component */
.table-wrapper {
    position: relative;
    margin-top: var(--spacing-xl);
}

.table-scroll-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.table-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.table-navigation {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 120px;
    margin-top: var(--spacing-md);
}

.table-scroll-button {
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-base);
    flex-shrink: 0;
}

.table-scroll-button:hover {
    opacity: 0.7;
}

.table-scroll-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.table-scroll-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.comparison-table__table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #FFFFFF;
    border-radius: var(--radius-sm);
    overflow: hidden;
    min-width: 800px;
    table-layout: fixed;
}

.comparison-table__table thead {
    background-color: var(--color-primary-light);
}

.comparison-table__table th {
    padding: 16px 22px;
    font-size: var(--font-size-body2);
    font-weight: 400;
    color: var(--color-white);
    text-align: center;
    height: 50px;
    width: 200px;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.comparison-table__table th.table-col-label {
    background-color: #FFFFFF;
    color: var(--color-black);
    width: 150px;
    position: sticky;
    left: 0;
    z-index: 10;
}

.comparison-table__table th.table-col-o2 {
    background: linear-gradient(85.77deg, #004DFF 21.33%, #A3BFFF 149.74%);
    border-radius: 8px 0 0 0;
    position: sticky;
    left: 200px; /* Ширина первого столбца */
    z-index: 11;
    width: 200px;
    /* Шапка без рамки */
    border: none;
}

.comparison-table__table th.table-col-fixed {
    position: sticky;
    z-index: 10;
}

.comparison-table__table td {
    padding: 16px 22px;
    font-size: var(--font-size-table);
    font-weight: 500;
    color: var(--color-black);
    text-align: center;
    border-bottom: none;
    height: 50px;
    width: 200px;
    box-sizing: border-box;
    vertical-align: middle;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    background-color: #FFFFFF;
}

.comparison-table__table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table__table td.table-col-label {
    text-align: center;
    font-weight: 400;
    background-color: #FFFFFF;
    position: sticky;
    left: 0;
    z-index: 5;
    border-bottom: none;
    width: 100px;

}

.comparison-table__table td.table-col-o2 {
    background-color: #FFFFFF;
    position: sticky;
    left: 280px; /* Ширина первого столбца */
    z-index: 6;
    width: 200px;
    border-top: none;
    border-bottom: none;
    border-left: 5px solid;
    border-right: 5px solid;
    border-image: linear-gradient(85.77deg, #004DFF 21.33%, #A3BFFF 149.74%) 1;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
}


.comparison-table__table tbody tr:first-child td.table-col-o2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(85.77deg, #004DFF 21.33%, #A3BFFF 149.74%);
}

.comparison-table__table tbody tr:last-child td.table-col-o2 {
    border-radius: 0 0 8px 0;
    /* position: relative; */
}

.comparison-table__table tbody tr:last-child td.table-col-o2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(85.77deg, #004DFF 21.33%, #A3BFFF 149.74%);
    border-radius: 0 0 8px 0;
}

/* Pagination Component */
.pagination {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-top: var(--spacing-lg);
}

.pagination__dot {
    width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    background-color: var(--color-light-grey);
    cursor: pointer;
    transition: background-color var(--transition-base);
    border: none;
    padding: 0;
}

.pagination__dot--active {
    background-color: var(--color-primary);
}

.pagination__dot:hover {
    background-color: var(--color-primary-light);
}


