body {
    background-color: #131317;
    width: 100%;
}

/* ===== Global custom scrollbar (matches docs / account style) ===== */

html {
    scrollbar-width: thin;
    scrollbar-color: rgba(79, 70, 229, 0.45) transparent;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
    margin: 8px 0;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.5) 0%, rgba(40, 148, 236, 0.5) 100%);
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.85) 0%, rgba(40, 148, 236, 0.85) 100%);
    background-clip: padding-box;
}

::-webkit-scrollbar-corner {
    background: transparent;
}

.page__container {
    width: 100%;
    margin-top: 200px;
    margin-bottom: 200px;
    display: flex;
    flex-direction: column;
    gap: 200px;
    align-items: center;
    padding: 0px 120px;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(to right, rgba(79, 70, 229, 1) 0%, rgba(40, 148, 236, 1) 100%);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.nav-dots {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgb(225, 241, 255);
  box-shadow: 0 0 1px 0 rgb(225, 241, 255) inset, 0 0 2px 0 rgb(225, 241, 255), 0 0 2px 0 rgb(40, 148, 236) inset, 0 0 4px 0 rgb(40, 148, 236), 0 0 4px 0 rgba(79, 70, 229, 0) inset, 0 0 8px 0 rgb(79, 70, 229);
  transition: background-color 0.3s ease;
}

.nav-dot.active {
  background-color: var(--accentcolor2);
  scale: 1.1;
}

.nav-line {
  width: auto;
  position: relative;
  height: 6px;
  border-radius: 4px;
  border: 1px solid rgb(225, 241, 255);
  background: linear-gradient(to right, var(--accentcolor) 50%, rgba(255, 255, 255, 0) 50%);
  background-position: 100%;
  background-size: 200%;
  box-shadow: 0 0 1px 0 rgb(225, 241, 255) inset, 0 0 2px 0 rgb(225, 241, 255), 0 0 2px 0 rgb(40, 148, 236) inset, 0 0 4px 0 rgb(40, 148, 236), 0 0 4px 0 rgba(79, 70, 229, 0) inset, 0 0 8px 0 rgb(79, 70, 229);
  transition: background-position .3s ease;
  will-change: background-position;
}

.nav-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  filter: saturate(100%);
  transition: filter 0.3s ease;
}

.nav-button:hover {
  filter: saturate(200%);
}

.nav-button:active {
  transform: scale(0.95);
}

.nav-button img {
  width: 44px;
  height: 44px;
}

/* <================================PRICING================================> */
.main__pricing {
    max-width: 1400px;
    width: 100%;
    position: relative;
}

.main-pricing__title {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
}

.pricing-container {
    position: relative;
}

/* Десктопная версия */
.pricing-slider {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
}

.pricing__nav {
    display: none;
}

.plan {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: calc(30%);
    transition: transform 0.3s ease;
}

.plan:hover {
    transform: scale(1.1);
}

.plan-recommended {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.plan-recommended:hover {
    transform: scale(1.2);
}

.label {
    color: #fff;
    padding: 5px 10px;
    font-weight: 500;
    border-radius: 5px 5px 0 0;
    text-align: center;
    width: 100%;
}

.label--trial {
    background-color: #28a745;
}

.label--recommended {
    background-color: #9582CA;
}

.label--business {
    background-color: #BD6684;
}

.card {
    display: flex;
    border-radius: 0 0 10px 10px;
    padding: 30px;
    text-align: center;
    gap: 30px;
    flex-direction: column;
    width: 100%;
    flex: 1;
}

.card__top {
    display: flex;
    flex-direction: column;

}

.card__info {
    display: flex;
    flex-direction: column;
}

.card__price-and-time {
    display: flex;
}

.card__button {
    width: 100% !important;
}

.card__header {
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 5px;
    align-self: flex-start;

}

.card__price {
    font-size: 2em;
    font-weight: bold;
    margin: 0;
}

.card__duration {
    font-size: 1em;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-end;
}

.card__description {
    font-size: 18px;
    margin: 15px 0 0 0;
    text-align: start;
}

.card__button {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    margin-bottom: 20px;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card__button:hover {
    background-color: #0056b3;
}

.card__features {
    text-align: left;
    font-size: 1em;
}

.card__features-list {
    list-style: none;
    padding: 0;
}

.card__features-item {
    margin: 10px 0;
    display: flex;
    align-items: center;
}

.card__features-icon {
    margin-right: 10px;
    width: 20px;
    height: 20px;
}


@media (max-width: 1210px) {

    /* <================================PRICING================================> */
    .pricing-container {
        padding: 0;
    }

    .pricing-slider {
        display: flex;
        overflow: hidden;
        flex-wrap: nowrap;
        gap: 12px;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .plan {
        width: calc(50% - 12px);
        padding: 0 !important;
        box-sizing: border-box;
        flex: 0 0 auto;
    }

    .plan:hover,
    .plan-recommended {
        transform: none;
    }

    .pricing__nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 30px;
    }

    .pricing__nav-buttons {
        display: flex;
    }

}


@media (max-width: 1024px) {
    .page__container {
        padding: 0 80px;
    }

    /* <================================PRICING================================> */
    .main__pricing {
        justify-content: center;
        row-gap: 60px;
    }

}

@media (max-width: 768px) {
    .page__container {
        padding: 0 60px;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }

    .back-to-top svg {
        width: 20px;
        height: 20px;
    }

    /* <================================PRICING================================> */
    .main__pricing {
        justify-content: center;
        row-gap: 60px;
    }

    .plan {
        width: calc(70% - 12px);
    }
}

@media (max-width: 540px) {
    .page__container {
        padding: 0 30px;
    }

    .back-to-top {
        width: 36px;
        height: 36px;
        bottom: 15px;
        right: 15px;
    }

    .back-to-top svg {
        width: 18px;
        height: 18px;
    }

    /* <================================PRICING================================> */
    .main__pricing {
        justify-content: center;
        row-gap: 60px;
    }

    .plan {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .page__container {
        padding: 0 20px;
    }

    /* <================================PRICING================================> */
    .main__pricing {
        justify-content: center;
        row-gap: 60px;
    }

    .card {
        padding: 20px;

    }
}

@media (max-width: 352px) {
    .page__container {
        padding: 0 10px;
    }

    /* <================================PRICING================================> */
    .main__pricing {
        justify-content: center;
        row-gap: 60px;
    }
}