/* ============================================
   Глобальные переменные и сброс
============================================ */
:root {
    --panel-color: #2a2a2a;
    --app-width: 100%;
    --border-gradient-0: #FFF;
    --border-gradient-100: rgba(255, 255, 255, 0);
    --border-frame: linear-gradient(304deg, var(--border-gradient-0, #FFF) 0%, var(--border-gradient-100, rgba(255, 255, 255, 0)) 46.15%),
                    linear-gradient(124deg, var(--border-gradient-0, #FFF) 0%, var(--border-gradient-100, rgba(255, 255, 255, 0)) 47.19%);
}

html {
    height: 100%;
    overflow: hidden;
}

body {
    background: #DBF3EE;
    margin: 0;
    font-family: "Montserrat", sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    height: 100vh;
    box-sizing: border-box;
}

/* ============================================
   Типографика
============================================ */
h1 {
    color: #212121;
    text-align: center;
    font-family: "Open Sans";
    font-size: 4.625rem;
    font-weight: 700;
    line-height: 120%;
    font-stretch: 75%;
    margin: 0;
}

h2 {
    color: #212121;
    font-family: "Open Sans";
    font-size: 3rem;
    font-weight: 700;
    line-height: 120%;
    margin: 0;
    text-align: left;
    font-stretch: 75%;
}

h3 {
    color: #212121;
    font-family: "Open Sans";
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 120%;
    margin: 0;
    font-stretch: 75%;
}

h4 {
    color: #212121;
    font-family: "Open Sans";
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 120%;
    margin: 0;
}

.xlarge-medium,
.feature-text,
.advantage-text {
    color: #212121;
    font-family: Montserrat;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: 0.0125rem;
}

.review-text {
    color: #212121;
    opacity: 0.6;
    font-family: Montserrat;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: 0.0125rem;
}

.subtitle {
    color: #212121;
    text-align: center;
    font-family: Montserrat;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: 0.0125rem;
}

.medium-medium,
.tariff-feature {
    color: #212121;
    font-family: Montserrat;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: 0.0125rem;
}

.medium-regular {
    color: rgba(33, 33, 33, 0.60);
    font-family: Montserrat;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 140%;
    letter-spacing: 0.0125rem;
}

.highlight {
    color: #0074A6;
}

.header {
    width: 100%;
    padding-top: 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

/* ============================================
   Основные контейнеры и размытый фон
============================================ */
.for-blur-background {
    background: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 4rem);
    max-width: 100rem;
    height: calc(100vh - 4rem);
    border-radius: 2.25rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 4px 60px 0 rgba(41, 48, 65, 0.25);
}

.for-blur-background::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 0.0625rem;
    background: var(--border-frame);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.mycontent {
    max-width: 100rem;
    width: 100%;
    box-sizing: border-box;
    border-radius: 2rem;
    padding: 1rem;
    overflow: hidden;
    flex: 1 1 0%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.app-container {
    position: relative;
    max-width: 100rem;
    width: var(--app-width);
    flex: 1 1 0%;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* ============================================
   Контентные блоки (табы)
============================================ */
.content {
    z-index: 99;
    box-sizing: border-box;
    border-radius: 1.25rem 1.25rem 0 0;
    margin: 1.25rem 1.25rem 0.175rem 1.25rem;
    padding-bottom: 1.25rem;
    overflow-y: auto;
    flex: 1 1 0%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6rem;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease-out;
}

.content:not(.active) {
    z-index: 98;
    position: absolute;
    opacity: 0;
    transform: translateY(500px);
    transition: opacity 0.4s ease, transform 0.5s ease-out;
}

.content::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
    display: none;
}

/* ============================================
   Компоненты интерфейса (кнопки)
============================================ */
.button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: transparent;
    color: inherit;
    overflow: hidden;
    transition: color 0.3s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s cubic-bezier(0.2, 0, 0, 1), background-color 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.small-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.small-btn {
    padding: 0.25rem 0.75rem;
    font-family: Montserrat;
    font-size: 1rem;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: 0.0125rem;
}

.button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    stroke: currentColor;
}

.button-icon svg {
    stroke: currentColor;
}

.button.primary {
    background-color: #0074A5;
    color: #fff;
}

.button.secondary {
    border: 2px solid rgba(0, 116, 165, 1) !important;
    color: rgba(0, 116, 165, 1);
    background-color: transparent;
}
.button:disabled,
.button.disabled {
    cursor: not-allowed;
}

.button.primary:disabled,
.button.primary.disabled {
    background-color: rgba(0, 116, 165, 0.6);
    color: rgba(255, 255, 255, 0.7);
}

.button.secondary:disabled,
.button.secondary.disabled {
    background-color: transparent;
    border-color: rgba(0, 116, 165, 0.6);
    color: rgba(0, 116, 165, 0.7);
}

/* Следящий эффект для кнопок */
.button-follower {
    position: absolute;
    left: calc((var(--cursor-x, 0) * 1px) - 11.5rem);
    top: calc((var(--cursor-y, 0) * 1px) - 10rem);
    width: 24rem;
    height: 24rem;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg%20width%3D%22237%22%20height%3D%22237%22%20viewBox%3D%220%200%20237%20237%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Ccircle%20cx%3D%22118.5%22%20cy%3D%22118.5%22%20r%3D%22118.5%22%20fill%3D%22url(%23paint0_radial_40010578_108233)%22%20fill-opacity%3D%220.6%22%20%2F%3E%3Cdefs%3E%3CradialGradient%20id%3D%22paint0_radial_40010578_108233%22%20cx%3D%220%22%20cy%3D%220%22%20r%3D%221%22%20gradientUnits%3D%22userSpaceOnUse%22%20gradientTransform%3D%22translate(118.5%20118.5)%20rotate(90)%20scale(118.5)%22%3E%3Cstop%20offset%3D%220.00288298%22%20stop-color%3D%22%2300FFFF%22%20%2F%3E%3Cstop%20offset%3D%220.245192%22%20stop-color%3D%22%2300F9FF%22%20stop-opacity%3D%220.65%22%20%2F%3E%3Cstop%20offset%3D%220.4375%22%20stop-color%3D%22%2300C1CE%22%20stop-opacity%3D%220.451274%22%20%2F%3E%3Cstop%20offset%3D%220.798077%22%20stop-color%3D%22%2300425E%22%20stop-opacity%3D%220%22%20%2F%3E%3C%2FradialGradient%3E%3C%2Fdefs%3E%3C%2Fsvg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: opacity 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.button:hover {
    color: #fff;
    border-color: transparent !important;
    background-color: #005E87;
    opacity: 1;
    visibility: visible;
    box-shadow: 0 0 30px 0 rgba(15, 234, 255, 0.40);
    transition: color 0.3s cubic-bezier(0.2, 0, 0, 1), border 0.3s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s cubic-bezier(0.2, 0, 0, 1), background-color 0.6s cubic-bezier(0.2, 0, 0, 1);
}

.button:hover .button-follower {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.button.secondary:hover {
    border-color: transparent !important;
    border: 2px solid rgba(123, 116, 165, 0) !important;
}

.button-text {
    z-index: 11;
    font-family: Montserrat;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: 0.0125rem;
}

/* ============================================
   Стили для табов и "капли"
============================================ */
.tabs-viewport {
    flex-shrink: 0;
    position: relative;
    z-index: 99;
    overflow: hidden;
    width: auto;
}

.tabs-scroll {
    overflow-x: auto;
    display: flex;
    scrollbar-width: none;
    width: 100%;
}

.tabs-scroll::-webkit-scrollbar {
    display: none;
}

.tabs-list {
    height: 3.4rem;
    display: flex;
    width: max-content;
    min-width: calc(100% - 104px);
    position: relative;
    transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.tab {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #212121;
    padding: 1rem 1rem;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s;
    font-family: "Open Sans";
    font-size: 1.125rem;
    font-weight: 600;
    font-variation-settings: "wdth" 90;
    line-height: 120%;
    transition: padding-top 0.1s;
}

.tab.tab--active {
    color: #212121;
    z-index: 90;
}

.tab:hover {
    padding-top: 1.5rem;
    transition: padding-top 0.2s;
}

.tab-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.5rem;
    fill: #212121;
    display: block;
}

.tabs-container {
    display: flex;
    align-items: center;
    width: 100%;
}

.tabs-fixed {
    display: flex;
    padding: 0.5rem 0.75rem;
    gap: 1rem;
    z-index: 99;
    flex: 0 0 auto;
}

.visuals {
    width: 100%;
    position: absolute;
    inset: 0;
    filter: url('#goo');
    opacity: 0.7;
    pointer-events: none;
    z-index: 30;
}

.main-card {
    width: 100%;
    position: absolute;
    top: 3.3125rem;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(255, 255, 255);
    border-radius: 1.25rem 2rem 1.25rem 1.25rem;
    filter: none !important;
}

.right-top {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 20.4rem;
    height: 4rem;
    background: rgb(255, 255, 255);
    border-radius: 1.5rem 1.5rem 3rem 0rem;
    filter: none !important;
}

.blob {
    position: absolute;
    background: rgb(255, 255, 255);
    height: 4.375rem;
    opacity: 0.7;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(0);
    will-change: left, width, opacity, transform;
}

.blob.show {
    opacity: 1;
}

#blob-content {
    opacity: 0;
    pointer-events: none;
    z-index: 99;
}

.blob-text-overlay {
    z-index: 99;
    position: absolute;
    top: 0;
    height: 3.3125rem;
    opacity: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(0);
    pointer-events: none;
    z-index: 25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    color: #595959;
    text-align: center;
    font-family: "Open Sans";
    font-size: 1.125rem;
    font-weight: 600;
    font-variation-settings: "wdth" 90;
    line-height: 120%;
}

.blob-text-overlay.show {
    opacity: 1;
    z-index: 46;
}

/* ============================================
   Сетки преимуществ (features-grid)
============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.feature-card {
    background: #FFF;
    border-radius: 1rem;
    padding: 3rem 1rem;
    box-shadow: 0 2px 12px 0 rgba(125, 184, 186, 0.20);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-card--large {
    grid-column: span 4;
}

.feature-card--accent {
    background: #DBF3EE;
    box-shadow: none;
    grid-column: span 5;
}

.feature-card--dark {
    background: #7DB8BA;
    grid-column: span 5;
}

/* Блок снижения трудозатрат */
.cost-reduction-card {
    align-items: center;
    padding: 2rem 1rem 1rem 1rem;
    gap: 2rem;
}

/* Партнёры */
.partners-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    width: 100%;
}

.partners-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 2rem;
}

/* Отзывы */
.reviews-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    width: 100%;
}

.reviews-grid {
    display: flex;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

.reviews-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-card {
    background: #FFF;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 2px 12px 0 rgba(125, 184, 186, 0.20);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Преимущества команды */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
}

.advantage-card {
    background: #FFF;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 2px 12px 0 rgba(125, 184, 186, 0.20);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.advantage-card--light {
    background: #DBF3EE;
    box-shadow: none;
}

.advantage-card--dark {
    background: #7DB8BA;
    box-shadow: none;
}

/* Диагностика */
.diagnostic-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 4rem 0;
}

/* Итоговый блок с цифрами */
.stats-card {
    background: #DBF3EE;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: none;
    width: 100%;
    box-sizing: border-box;
}

.stats-content {
    width: 50%;
    min-width: 550px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.stat-header {
    text-align: left;
    font-size: 2.25rem;
}

.stats-numbers {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.stat-value {
    color: #212121;
    text-align: center;
    font-family: "Open Sans";
    font-size: 4.625rem;
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
    font-stretch: 75%;
    margin: 0rem;
}

.stat-label {
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 140%;
}

/* ============================================
   Тарифные карточки
============================================ */
.tariffs-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    height: 100%;
    width: 100%;
}

.tariff-card {
    background: #FFF;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 25%;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 2px 12px 0 rgba(125, 184, 186, 0.20);
}

.tariff-header {
    background: var(--header-color);
    padding: 1rem;
    text-align: left;
    position: relative;
    overflow: visible;  /* чтобы SVG не обрезался */
}
.tariff-header-svg {
    position: absolute;
    top: 3.3rem;
    transform: translateY(50%); /* чтобы верхняя часть SVG была на уровне нижней границы */
    pointer-events: none;
    z-index: 1;
    fill: var(--header-color); /* наследует цвет от родителя */
}


.tariff-header--blue h3 {
    color: #fff;
}
.tariff-header--blue {
    --header-color: #0074A5;
}
.tariff-header--light {
    --header-color: #BED3D4;
}
.tariff-header--green {
    --header-color: #7DB8BA;
}
.tariff-header--dark {
    --header-color: #1D4848;
}
.tariff-header--dark h3 {
    color: #fff;
}

.rows-tarif {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    flex: 1;
    overflow-y: auto;
}

.row-tarif {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.row-focus {
    background-color: rgba(135, 183, 136, 0.10);
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    width: 100%;
    box-sizing: border-box;
}

.bottom-tarif {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tariff-price {
    align-self: flex-start;
    color: #212121;
    font-family: "Open Sans";
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 120%;
    margin: 0;
    text-align: center;
    font-stretch: 75%;
}

.tariff-price-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    align-self: stretch;
}

.tariff-btn {
    width: 100%;
}

/* Общие стили для карточек (используются в разных местах) */
.card {
    background: #FFF;
    border-radius: 1rem;
    box-shadow: 0 2px 12px 0 rgba(125, 184, 186, 0.20);
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

.image-container img {
    display: block;
    width: 100%;
    max-width: 70rem;
    height: auto;
}

/* Адаптивность */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    .feature-card--large,
    .feature-card--accent,
    .feature-card--dark {
        grid-column: span 1;
    }
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    .stats-content {
        width: 100%;
        min-width: auto;
    }
    .tariffs-container {
        flex-direction: column;
        align-items: center;
    }
}

/* ============================================
   Свитчер
============================================ */
.tariff-switcher {
    display: flex;
    justify-content: center;
    height: 2.75rem;
}

.switcher-frame {
    background: rgba(135, 183, 136, 0.10);
    border-radius: 1rem;
    display: inline-flex;
    gap: 0rem;
    height: 2.75rem;
}

.switcher-btn {
    padding: 0.5rem 0.75rem;
    border-radius: 1rem;
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: transparent;
    color: #212121;
    height: 2.75rem;
}

.switcher-btn.active {
    background: #0074A5;
    color: #fff;
}

/* ============================================
   Стили для скроллбаров (восстановлены)
============================================ */
/* Для всех элементов */
*::-webkit-scrollbar {
    width: 0.35rem; /* ширина вертикального скролла */
    height: 0.35rem; /* высота горизонтального скролла */
    margin: 1.25rem;
}

*::-webkit-scrollbar-track {
    background: #ffffff; /* фон трека */
    border-radius: 10px;
}

*::-webkit-scrollbar-thumb {
    background: rgba(29, 72, 72, 0.20); /* цвет ползунка */
    border-radius: 10px;
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(29, 72, 72, 0.60);
}

*::-webkit-scrollbar-thumb:active {
    background: rgba(29, 72, 72, 0.60);
}

/* Скрыть стрелки, если нужно */
*::-webkit-scrollbar-button {
    display: none;
}