
/* SOURCE: PlanFormSection.razor.css */

/* Базовые стили для страницы лендинга */
.landing-page {
    position: relative;
    background: var(--dark-blue-dark-blue-50, #f8f9fe);
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
}

/* Векторные фоны с анимацией покачивания */
.vector-fon {
    position: absolute;
    overflow: hidden;
    max-width: calc(100vw - 1rem);
    z-index: 0;
    max-height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 70rem;
    top: 52rem;
    pointer-events: none;
}

    .vector-fon .right {
        margin-top: -9.65rem;
    }

    .vector-fon .right,
    .vector-fon .left {
        flex: 1;
        position: relative;
        overflow: hidden;
        display: flex;
    }

    .vector-fon .right {
        margin-top: -9.65rem;
        right: 30%;
        justify-content: end;
    }

    .vector-fon .left {
        left: 30%;
        align-items: end;
        justify-content: start;
    }

        .vector-fon .right svg,
        .vector-fon .left svg {
            width: 112.9375rem;
            height: 43.125rem;
            position: absolute;
            opacity: 0.5;
        }

        /* Анимация для векторов - плавное покачивание */
        .vector-fon .left svg {
            animation: float-left 25s ease-in-out infinite alternate;
            transform-origin: center;
        }

    .vector-fon .right svg {
        animation: float-right 30s ease-in-out infinite alternate;
        transform-origin: center;
    }

@keyframes float-left {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(0deg);
        filter: blur(0px);
    }

    20% {
        transform: translateX(10px) translateY(-8px) rotate(0.8deg);
        filter: blur(0.3px);
    }

    40% {
        transform: translateX(-8px) translateY(4px) rotate(-0.4deg);
        filter: blur(0.2px);
    }

    60% {
        transform: translateX(12px) translateY(-4px) rotate(0.6deg);
        filter: blur(0.25px);
    }

    80% {
        transform: translateX(-10px) translateY(6px) rotate(-0.3deg);
        filter: blur(0.15px);
    }
}

@keyframes float-right {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(0deg);
        filter: blur(0px);
    }

    25% {
        transform: translateX(-12px) translateY(-6px) rotate(-0.9deg);
        filter: blur(0.4px);
    }

    45% {
        transform: translateX(8px) translateY(3px) rotate(0.5deg);
        filter: blur(0.25px);
    }

    65% {
        transform: translateX(-14px) translateY(-2px) rotate(-0.7deg);
        filter: blur(0.35px);
    }

    85% {
        transform: translateX(10px) translateY(4px) rotate(0.4deg);
        filter: blur(0.2px);
    }
}

/* Хедер */
.landing-header {
    position: relative;
    z-index: 100;
    padding: 24px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1270px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    flex-shrink: 0;
    width: 74px;
    height: 26.91px;
}

    .logo img {
        width: 100%;
        height: 100%;
    }

.nav-desktop {
    display: flex;
    align-items: center;
}

.frame-1948761537 {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-item {
    color: var(--dark-dark-400, #9d9eb1);
    text-align: left;
    font-family: Montserrat;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
}

    .nav-item:hover {
        color: var(--dark-dark-1000, #0a0c3c);
    }

    .nav-item.active {
        color: var(--dark-dark-1000, #0a0c3c);
    }

.header-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Герой-секция */
.hero-section {
    position: relative;
    margin-bottom: 60px;
    z-index: 1;
}

.frame-1948761536 {
    background: #ffffff;
    border-radius: 36px;
    width: 100%;
    height: 598px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: end;
}

.rectangle-65 {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.hero-content {
    position: relative;
    display: flex;
    gap: 60px;
    align-items: center;
    z-index: 2;
    padding: 2.5rem 1.5rem;
}

    .hero-content h1 {
        margin: 0;
    }

.hero-title {
    color: var(--main-white, #ffffff);
    font-family: Montserrat;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-text-block {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 336px;
}

.hero-text {
    color: var(--main-white, #ffffff);
    font-family: Montserrat;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
}

.hero-btn {
    align-self: flex-start;
}

/* Категории */
.categories-section {
    position: relative;
    z-index: 1;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-bottom: 60px;
    overflow-x: hidden;
}

.categories-container {
    width: 100%;
    padding: 0 20px;
    overflow-x: auto;
    cursor: grab;
    scrollbar-width: none; /* Firefox */
}

    .categories-container::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Edge */
    }

    .categories-container:active {
        cursor: grabbing;
    }

.categories-grid {
    display: flex;
    gap: 16px;
    width: max-content;
    padding: 0 20px;
}

.category-card {
    background: var(--main-white, #ffffff);
    border-radius: 20px;
    padding: 20px;
    min-width: 352px;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .category-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .category-card:nth-child(2) {
        border: 1px solid var(--dark-blue-dark-blue-100, #ebefff);
    }

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.category-icon {
    border-radius: 12px;
    padding: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 0px 34px 0px rgba(0, 0, 0, 0.1);
}

    .category-icon img {
        width: 20px;
        height: 20px;
    }

.category-arrow {
    border-radius: 12px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .category-arrow img {
        width: 20px;
        height: 20px;
    }

.category-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-type {
    color: var(--dark-dark-400, #9d9eb1);
    font-family: Montserrat;
    font-size: 14px;
    font-weight: 500;
}

.category-goal {
    color: var(--dark-dark-1000, #0a0c3c);
    font-family: Montserrat;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
}

/* Скелетоны при загрузке */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.skeleton-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
}

.skeleton-arrow {
    width: 48px;
    height: 44px;
    border-radius: 12px;
}

.skeleton-text {
    height: 20px;
    border-radius: 4px;
    margin-bottom: 8px;
}

    .skeleton-text:last-child {
        height: 28px;
        width: 80%;
    }

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Мобильные стили для категорий */
@media (max-width: 768px) {
    .categories-section {
        margin-left: 0;
        padding: 0;
    }

    .categories-container {
        padding: 0 12px;
    }

    .categories-grid {
        padding: 0 12px;
    }

    .category-card {
        min-width: 248px;
        padding: 12px;
    }

    .category-type {
        font-size: 12px;
    }

    .category-goal {
        font-size: 18px;
    }
}

/* Десктопные стили */
@media (min-width: 1025px) {
    .categories-grid {
        justify-content: center;
    }
}

.category-icon img {
    width: 20px;
    height: 20px;
}

.category-arrow {
    border-radius: 12px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .category-arrow img {
        width: 20px;
        height: 20px;
    }

.category-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-type {
    color: var(--dark-dark-400, #9d9eb1);
    font-family: Montserrat;
    font-size: 14px;
    font-weight: 500;
}

.category-goal {
    color: var(--dark-dark-1000, #0a0c3c);
    font-family: Montserrat;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
}

/* Главный заголовок */
.main-headline {
    text-align: center;
    margin-bottom: 2rem;    
    position: relative;
    z-index: 1;
}

.headline-text {
    font-family: Montserrat;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark-dark-1000);
    margin: 0;
}

.highlight-purple-light {
    color: var(--purple-purple-700, #9889ff);
}

.highlight-purple {
    color: var(--purple-purple-1000, #7e6cff);
}

.highlight-blue {
    color: var(--dark-blue-dark-blue-1000, #3559ff);
}

/* Форма генерации плана */
.plan-form-section {
    overflow: hidden;
    position: relative;
    z-index: 1;
    border-radius: 1rem;
    background: #fff;
    padding: 1.25rem 2.5rem;
    overflow: hidden;
}

.plan-form-wrapper {
    display: flex;
    justify-content: center;
  
  
}

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

.form-fields {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-label {
    color: var(--dark-dark-1000, #0a0c3c);
    font-family: Montserrat;
    font-size: 14px;
    font-weight: 500;
}

.drop-down {
    background: rgba(248, 249, 254, 0.2);
    border-radius: 12px;
    padding: 12px;
    border: double 1px transparent;
    background-image: linear-gradient(white, white), linear-gradient(90deg, #aae7ee 0%, #bfb6ff 36.54%, #aebdff 62.98%, #ffe1b1 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.textarea-dropdown {
    min-height: 109px;
}

.quick-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.quick-option {
    display: flex;
    padding: 0.5rem 1rem;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    border: 0;
    border-radius: 2.5rem;
    background: var(--Dark-Blue-Dark-Blue-100, #EBEFFF);
    color: var(--Dark-Dark-1000, #0A0C3C);
    box-shadow: none;
    font-family: Montserrat;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    cursor: pointer;
    transition: background 0.2s;
}

    .quick-option:hover {
        background: rgba(255, 255, 255, 0.5);
    }

    .quick-option.active {
        background: var(--purple-purple-1000, #7e6cff);
        color: var(--main-white, #ffffff);
    }

.quick-option:focus-visible {
    outline: 2px solid var(--purple-purple-1000, #7e6cff);
    outline-offset: 2px;
}

.generate-btn {
    align-self: flex-start;
}

/* Бесплатный план */
.free-plan-section {
    margin-bottom: 100px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.free-plan-content {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.text-content {
    flex: 1;
    max-width: 653px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.section-title {
    color: var(--dark-dark-1000, #0a0c3c);
    font-family: Montserrat;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.3;
}

.section-description {
    color: var(--dark-dark-400, #9d9eb1);
    font-family: Montserrat;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
}

.images-container {
    position: relative;
    height: -webkit-fill-available;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.plan-image {
    border-radius: 24px;
    position: absolute;
    width: 250px;
    height: 191px;
    object-fit: cover;
}

.rotated-left {
    transform: rotate(-10deg);
    left: 0;
    animation: float-image-1 20s ease-in-out infinite;
}

.rotated-right {
    transform: rotate(10deg);
    left: 170px;
    top: -35%;
    animation: float-image-2 25s ease-in-out infinite;
}

.rotated-slight-left {
    transform: rotate(-5.145deg);
    left: 250px;
    top: 35%;
    animation: float-image-3 22s ease-in-out infinite;
}

/* Анимация для изображений планов */
@keyframes float-image-1 {
    0%, 100% {
        transform: rotate(-10deg) translateY(0);
    }

    50% {
        transform: rotate(-10deg) translateY(-10px);
    }
}

@keyframes float-image-2 {
    0%, 100% {
        transform: rotate(10deg) translateY(0);
    }

    50% {
        transform: rotate(10deg) translateY(-8px);
    }
}

@keyframes float-image-3 {
    0%, 100% {
        transform: rotate(-5.145deg) translateY(0);
    }

    50% {
        transform: rotate(-5.145deg) translateY(-12px);
    }
}

/* Проблемы */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

    .problems-grid::-webkit-scrollbar {
        display: none;
    }

/* Gradient border wrapper for all cards */
.problem-card {
    position: relative;
    padding: 1px;
    background: linear-gradient(90deg, #aae7ee 0%, #bfb6ff 36.54%, #aebdff 62.98%, #ffe1b1 100%);
    border-radius: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

    .problem-card .card-inner {
        background: #ffffff;
        border-radius: 23px;
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 20px;
        height: -webkit-fill-available;
        transition: all 0.2s ease;
        min-height: 200px;
    }

    .problem-card:hover {
        background: linear-gradient(163deg, #7e6cff 0%, #13a5ff 100%);
        box-shadow: 0px 0px 30px 1px rgba(126, 108, 255, 0.4);
        transform: translateY(-5px);
    }

    .problem-card:active .card-inner {
        transform: scale(0.96);
        transition: transform 0.1s ease;
    }

.problem-icon {
    display: flex;
}

.icon-wrapper {
    border-radius: 12px;
    padding: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Цвета для каждой карточки проблем */
.problem-card:nth-child(1) .icon-wrapper {
    background: var(--green-green-1000, #2bc4d5);
    box-shadow: 0px 0px 34px 0px rgba(43, 196, 213, 0.3);
}

.problem-card:nth-child(2) .icon-wrapper {
    background: var(--purple-purple-1000, #7e6cff);
    box-shadow: 0px 0px 34px 0px rgba(126, 108, 255, 0.3);
}

.problem-card:nth-child(3) .icon-wrapper {
    background: var(--dark-blue-dark-blue-1000, #3559ff);
    box-shadow: 0px 0px 34px 0px rgba(53, 89, 255, 0.3);
}

.problem-card:nth-child(4) .icon-wrapper {
    background: var(--orange-orange-1000, #ffb53d);
    box-shadow: 0px 0px 34px 0px rgba(255, 181, 61, 0.3);
}

.icon-wrapper img {
    width: 20px;
    height: 20px;
}

.problem-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.problem-title {
    color: var(--dark-dark-1000, #0a0c3c);
    font-family: Montserrat;
    font-size: 20px;
    font-weight: 600;
}

.problem-description {
    color: var(--dark-dark-400, #9d9eb1);
    font-family: Montserrat;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
}

/* Мобильные стили */
.mobile-hidden {
    display: flex;
}

.desktop-hidden {
    display: none;
}

@media (max-width: 768px) {
    /* Адаптация векторных фонов для мобильных */
    .vector-fon {
        display: none;
    }

    .container {
        padding: 0;
    }

    .mobile-hidden {
        display: none !important;
    }

    .desktop-hidden {
        display: flex !important;
    }

    .header-container {
        padding: 12px;
    }

    .nav-desktop {
        display: none;
    }

    /* Герой-секция для мобильных */
    .hero-section {
        margin-bottom: .75rem;
    }

    .frame-1948761536 {
        border-radius: 20px;
        height: 305px;
        width: calc(100% - 1.5rem);
        margin: 0 .75rem;
    }

     .form-container {
        flex-direction: column-reverse;
    }

    .hero-content {
        position: relative;
        padding: 12px;
        flex-direction: column;
        gap: .75rem;
        align-items: start;
    }

    .hero-btn {
        align-self: auto;
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-text-block {
        max-width: 100%;
    }

    .hero-text {
        font-size: 14px;
    }

    /* Категории для мобильных */
    .categories-grid {
        padding-left: 12px;
    }

    .category-card {
        min-width: 248px;
        padding: 12px;
    }

    .category-type {
        font-size: 12px;
    }

    .category-goal {
        font-size: 18px;
    }

    /* Главный заголовок для мобильных */
    .headline-text {
        font-size: 20px;
        max-width: 353px;
        margin: 0 auto;
    }

    /* Форма для мобильных */
    .plan-form-section {
        padding: 0 12px;
    }

    .form-container {
        max-width: 100%;
        flex-direction: column-reverse;
        gap: 3rem;
    }

    /* Бесплатный план для мобильных */
    .free-plan-content {
        flex-direction: column-reverse;
        gap: 24px;
    }

    .text-content {
        max-width: 100%;
    }

    .section-title {
        font-size: 18px;
        max-width: 291px;
    }

    .section-description {
        font-size: 12px;
    }

    .free-plan-section {
        margin-bottom: 2.25rem;
    }

    .images-container {
        display: flex;
        width: 100%;
        min-height: 150px;
        align-items: center;
    }

    .rotated-right {
        top: 0;
    }

    .plan-image {
        width: 129.82px;
        height: 99.18px;
        border-radius: 12.46px;
    }

    /* Анимация изображений для мобильных */
    .rotated-left {
        animation: float-image-mobile-1 15s ease-in-out infinite;
    }

    .rotated-right {
        animation: float-image-mobile-2 18s ease-in-out infinite;
    }

    .rotated-slight-left {
        animation: float-image-mobile-3 16s ease-in-out infinite;
    }

    @keyframes float-image-mobile-1 {
        0%, 100% {
            transform: rotate(-10deg) translateY(0);
        }

        50% {
            transform: rotate(-10deg) translateY(-5px);
        }
    }

    @keyframes float-image-mobile-2 {
        0%, 100% {
            transform: rotate(10deg) translateY(0);
        }

        50% {
            transform: rotate(10deg) translateY(-4px);
        }
    }

    @keyframes float-image-mobile-3 {
        0%, 100% {
            transform: rotate(-5.145deg) translateY(0);
        }

        50% {
            transform: rotate(-5.145deg) translateY(-6px);
        }
    }

    /* Проблемы для мобильных */
    .problems-grid {
        padding: 0 12px;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .problem-card {
        min-width: auto;
        flex-shrink: 0;
    }

        .problem-card .card-inner {
            min-height: 180px;
            padding: 16px;
        }

    .problem-title {
        font-size: 18px;
    }

    .problem-description {
        font-size: 12px;
    }

    .plan-form-section {
        margin-bottom: 2.75rem;
    }
}

/* Планшетные стили */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    /* Адаптация векторов для планшетов */
    .vector-fon {
        height: 50rem;
        top: 40rem;
    }

        .vector-fon .right svg,
        .vector-fon .left svg {
            width: 80rem;
            height: 30.625rem;
        }

    .hero-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        left: 40px;
        top: 200px;
    }

    .categories-grid {
        flex-wrap: wrap;
        justify-content: center;
    }

    .category-card {
        min-width: calc(50% - 8px);
    }

    .free-plan-content {
        flex-direction: column;
        gap: 40px;
    }

    .images-container {
        display: flex;
        justify-content: center;
        position: relative;
        width: 100%;
        height: 200px;
    }

    .problems-grid {
        grid-template-columns: repeat(2, 1fr);
        flex-wrap: wrap;
        justify-content: center;
    }

    .problem-card {
        min-width: calc(50% - 10px);
    }
}

@media (min-width: 1025px) {
    .images-container {
        display: flex;
    }
}

/* Десктопные стили */
@media (min-width: 1025px) {
    .vector-fon {
        display: flex;
    }

    .problems-grid {
        grid-template-columns: repeat(4, 1fr);
        overflow-x: visible;
    }

    .problem-card {
        min-width: auto;
        width: 100%;
    }
}

/* Анимация для текста цели */
.form-title-animated {
    font-family: Montserrat;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}

.loader {
    color: var(--dark-dark-400, #9d9eb1);
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 25px;
    box-sizing: content-box;
    height: 40px;
    display: flex;
    border-radius: 8px;
    align-items: center;
    font-size: 1.875rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.words {
    overflow: hidden;
    position: relative;
    height: 40px;
}

    .words::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 20;
        pointer-events: none;
    }

.word {
    display: block;
    height: 100%;
    padding-left: 6px;
    background: linear-gradient(90deg, #7e6cff 0%, #13a5ff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: spin-goals 20s infinite;
}

@keyframes spin-goals {
    0%, 8% {
        transform: translateY(0%);
    }

    10%, 18% {
        transform: translateY(-100%);
    }

    20%, 28% {
        transform: translateY(-200%);
    }

    30%, 38% {
        transform: translateY(-300%);
    }

    40%, 48% {
        transform: translateY(-400%);
    }

    50%, 58% {
        transform: translateY(-500%);
    }

    60%, 68% {
        transform: translateY(-600%);
    }

    70%, 78% {
        transform: translateY(-700%);
    }

    80%, 88% {
        transform: translateY(-800%);
    }

    90%, 98% {
        transform: translateY(-900%);
    }

    100% {
        transform: translateY(-1000%);
    }
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .loader {
        font-size: 18px;
        height: 30px;
    }

    .words {
        height: 30px;
    }

    .form-title-animated {
        font-size: 20px;
    }
}

/* Анимация для поднятия категорий при скролле */
.categories-section {
    position: relative;
    z-index: 2;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(0);
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

    .categories-section.lifted-up {
        transform: translateY(-175px);
    }

    .categories-section .category-card {
        background: var(--main-white, #ffffff);
        border-radius: 20px;
        padding: 20px;
        min-width: 352px;
        flex-shrink: 0;
        position: relative;
        transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
        will-change: transform, background, backdrop-filter, box-shadow;
    }

    .categories-section.lifted-up .category-card,
    .categories-section.animating .category-card {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

/* Для мобильных устройств */
@media (max-width: 768px) {
    .categories-section.lifted-up {
        transform: translateY(-100px);
    }
}

/* Планшетные стили */
@media (min-width: 769px) and (max-width: 1024px) {
    .categories-section.lifted-up {
        transform: translateY(-140px);
    }
}

/* ========== Стили для формы (добавленные) ========== */

/* Стили для валидации */
.validation-summary {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    color: #c53030;
    font-size: 14px;
    font-family: Montserrat;
}

.validation-message {
    color: #c53030;
    font-size: 12px;
    margin-top: 4px;
    display: block;
    font-family: Montserrat;
    padding-left: 4px;
}

/* Стили для инпутов внутри drop-down */
 .selected-option-input,
 .placeholder-text-input {
    width: 100%;
    font-family: Montserrat;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-dark-1000, #0a0c3c);
    background: transparent;
    border: none;
    outline: none;
}

     .selected-option-input::placeholder,
     .placeholder-text-input::placeholder {
        color: var(--dark-dark-1000, #0a0c3c);
        opacity: 0.3;
    }

/* Контейнер для textarea */
.textarea-container {
    height: 100%;
    width: 100%;
}

/* Textarea - занимает всю высоту блока */
 .textarea-dropdown .placeholder-text-input {
    width: 100%;
    height: 100%;
    min-height: 85px;
    resize: none;
    line-height: 1.5;
}

/* Убираем стандартные стили у инпутов */
 .drop-down input,
 .drop-down textarea {
    all: unset;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

/* Кнопка в состоянии загрузки */
.generate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: var(--purple-purple-800, #8a7aff);
}

    .generate-btn:disabled:hover {
        background: var(--purple-purple-800, #8a7aff);
        transform: none;
    }

/* Кликабельные элементы */
.quick-option,
.word {
    cursor: pointer;
}

.word {
    transition: all 0.2s ease;
}

    .word:hover {
        transform: translateY(-1px);
        text-shadow: 0 2px 4px rgba(126, 108, 255, 0.2);
    }

/* Мобильные стили для формы */
@media (max-width: 768px) {
    .validation-summary {
        font-size: 12px;
        padding: 8px;
    }

    .validation-message {
        font-size: 10px;
    }

     .textarea-dropdown .placeholder-text-input {
        min-height: 60px;
        font-size: 12px;
    }
}

/* На десктопе можно увеличить высоту textarea */
@media (min-width: 769px) {
    .drop-down.textarea-dropdown {
        height: 120px;
    }
}

.color-label-1 {
    background: var(--Orange-Orange-1000, #FFB53D);
    box-shadow: 0 0 34px 0 rgba(255, 181, 61, 0.30);
}

.color-label-2 {
    background: var(--Green-Green-1000, #2BC4D5);
    box-shadow: 0 0 34px 0 rgba(43, 196, 213, 0.30);
}

.color-label-3 {
    background: var(--Blue-Blue-1000, #13A5FF);
    box-shadow: 0 0 34px 0 rgba(19, 165, 255, 0.30);
}

.color-label-4 {
    background: var(--Purple-Purple-1000, #7E6CFF);
    box-shadow: 0 0 34px 0 rgba(126, 108, 255, 0.30);
}

.color-label-5 {
    background: var(--Pink-Pink-1000, #ED88FF);
    box-shadow: 0 0 34px 0 rgba(237, 136, 255, 0.30);
}


.plan-form-wrapper {
   
}

.plan-form-section:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 200%;
    top: 40%;
    right: -50%;
    background: url('/static/img/couch-bacgraund.png') 0 0 repeat;
    transform: rotate(-30deg);
}

@media (max-width: 640.98px) {
    .plan-form-section:before {
        content: "";
        position: absolute;
        width: 200%;
        height: 200%;
        top: -180%;
        left: 50%;
        background: url('/static/img/couch-bacgraund.png') 0 0 repeat;
        transform: rotate(15deg);
    }
}

 .validation-message {
    color: var(--Main-Red, #EB4E4E);
    /* Paragraph/16 Medium */
    font-family: Montserrat;
    font-size: 1rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

/* ============================================================
   PATCH 07D
   Legacy Razor component CSS isolation restored for Python home.
   ============================================================ */


/* ---------- SHARED HORIZONTAL RAILS ---------- */

.legacy-home .prod-home-worker .list-card,
.legacy-home .prod-home-workout .list-card,
.legacy-home .prod-home-challenge .list-card,
.legacy-home .prod-home-nutrition .list-card {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto;
    padding-bottom: .25rem;
}

.legacy-home .prod-home-worker .list-card::-webkit-scrollbar,
.legacy-home .prod-home-workout .list-card::-webkit-scrollbar,
.legacy-home .prod-home-challenge .list-card::-webkit-scrollbar,
.legacy-home .prod-home-nutrition .list-card::-webkit-scrollbar {
    display: none;
}


/* ============================================================
   WORKER MAIN
   ============================================================ */

.legacy-home .prod-home-worker .list-card .card {
    display: flex;
    flex: 0 0 calc(100% / 6);
    width: calc(100% / 6);
    min-width: calc(100% / 6);
    flex-direction: column;
    gap: 1.25rem;
    color: inherit;
    text-decoration: none;
}

.legacy-home .prod-home-worker .list-card .card .img {
    position: relative;
    display: flex;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: .75rem;
    background-size: cover;
    background-position: center;
}

.legacy-home .prod-home-worker .list-card .card .img img {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 100%;
    object-fit: cover;
}

.legacy-home .prod-home-worker .list-card .card .img > label {
    position: absolute;
    z-index: 2;
    top: .5rem;
    left: .5rem;
    display: inline-flex;
    padding: .25rem .5rem;
    align-items: center;
    justify-content: center;
    border-radius: .25rem;
    color: #fff;
    font-size: .625rem;
    font-weight: 600;
}

.legacy-home .prod-home-worker .card-footer {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
}

.legacy-home .prod-home-worker .card-footer h5 {
    margin-bottom: .5rem;
}

.legacy-home .prod-home-worker .card-footer .label-list {
    display: flex;
    gap: .5rem;
    align-items: flex-start;
}

.legacy-home .prod-home-worker .card-footer .label-list label {
    display: flex;
    padding: .25rem .75rem;
    align-items: center;
    justify-content: center;
    border-radius: 2.5rem;
    background: none;
    color: var(--Dark-Dark-300, #B6B7C5);
    font-size: .75rem;
    font-weight: 500;
}


/* ============================================================
   POCKET MAIN
   ============================================================ */

.legacy-home .prod-home-pocket .card-pocket {
    display: grid;
    grid-template-columns: 1fr 1.36fr;
    padding: .5rem;
    border-radius: 1.5rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.legacy-home .prod-home-pocket .card-pocket.color-1 {
    background-image:
        url('/static/svg/block-bg-pink-1000.svg');
}

.legacy-home .prod-home-pocket .card-pocket.color-2 {
    background-image:
        url('/static/svg/block-bg-pupur.svg');
}

.legacy-home .prod-home-pocket .card-pocket.color-3 {
    background-image:
        url('/static/svg/block-bg.svg');
}

.legacy-home .prod-home-pocket .card-pocket-title {
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    align-items: flex-start;
    justify-content: center;
}

.legacy-home .prod-home-pocket .card-pocket-title h3 {
    margin: 0 0 .75rem;
    color: #fff;
    font-family: Montserrat, sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
}

.legacy-home .prod-home-pocket .card-pocket-title p {
    margin: 0 0 1.25rem;
    color: #fff;
    font-family: Montserrat, sans-serif;
    font-size: .875rem;
    font-weight: 500;
}

.legacy-home .prod-home-pocket .card-pocket-title .btn {
    display: flex;
    width: fit-content;
    padding: .75rem 1rem;
    align-items: center;
    justify-content: center;
    border-radius: .75rem;
    background:
        var(--Dark-Blue-Dark-Blue-100, #EBEFFF);
    color: var(--Dark-Dark-1000, #0A0C3C);
    font-family: Montserrat, sans-serif;
    font-size: .875rem;
    font-weight: 600;
}

.legacy-home .prod-home-pocket .card-pocket > div > .list-card {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: 1fr 1fr;
    padding: .75rem;
    overflow: visible;
    border-radius: 1rem;
    background: #fff;
}

.legacy-home .prod-home-pocket .card-position {
    display: flex;
    padding: .5rem .75rem;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    border-radius: .75rem;
    background:
        var(--Purple-Purple-50, #F3F1FF);
}

.legacy-home .prod-home-pocket .card-position .img {
    display: flex;
    padding: .75rem;
    align-items: center;
    justify-content: center;
    border-radius: .75rem;
    background:
        var(--Purple-Purple-1000, #7E6CFF);
}

.legacy-home .prod-home-pocket .color-3 .card-position .img {
    background: #2BC4D5;
}

.legacy-home .prod-home-pocket .color-1 .card-position .img {
    background:
        var(--Pink-Pink-1000, #ED88FF);
}

.legacy-home .prod-home-pocket .card-position .img svg {
    display: block;
    max-width: 100%;
    max-height: 2rem;
}

.legacy-home .prod-home-pocket .color-1 svg path,
.legacy-home .prod-home-pocket .color-2 svg path,
.legacy-home .prod-home-pocket .color-3 svg path {
    fill: #fff;
}

.legacy-home .prod-home-pocket .grid-column-1 {
    grid-column: span 3;
}

.legacy-home .prod-home-pocket .grid-column-2 {
    grid-column: span 2;
}

.legacy-home .prod-home-pocket .card-position-name {
    color: var(--Dark-Dark-1000, #0A0C3C);
    text-align: center;
    font-family: Montserrat, sans-serif;
    font-size: .75rem;
    font-weight: 500;
}


/* ============================================================
   WORKOUT MAIN
   ============================================================ */

.legacy-home .prod-home-workout .list-card .card {
    display: flex;
    flex: 0 0 calc(100% / 4);
    width: calc(100% / 4);
    min-width: calc(100% / 4);
    flex-direction: column;
    gap: .75rem;
    color: inherit;
    text-decoration: none;
}

.legacy-home .prod-home-workout .list-card .card .img {
    position: relative;
    display: flex;
    width: 100%;
    aspect-ratio: 18.75 / 10;
    overflow: hidden;
    border-radius: .75rem;
}

.legacy-home .prod-home-workout .list-card .card .img img {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    transition: transform .15s ease;
}

.legacy-home .prod-home-workout .list-card .card .img > label {
    position: absolute;
    z-index: 2;
    top: .75rem;
    left: .75rem;
    display: inline-flex;
    padding: .25rem .5rem;
    align-items: center;
    justify-content: center;
    border-radius: .25rem;
    background:
        var(--Green-Green-1000, #2BC4D5);
    color: #fff;
    font-size: .5rem;
    font-weight: 600;
}

.legacy-home .prod-home-workout .card-footer h5 {
    margin-bottom: .5rem;
}

.legacy-home .prod-home-workout .card-footer .label-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.legacy-home .prod-home-workout .card-footer label {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .5rem;
    color: var(--Dark-Dark-300, #B6B7C5);
    font-size: .75rem;
    font-weight: 500;
}

@media (hover: hover) {
    .legacy-home .prod-home-workout .list-card .card:hover {
        border-radius: 1rem;
        background: #fff;
        box-shadow:
            0 4px 14px rgba(0, 0, 0, .05);
    }

    .legacy-home .prod-home-workout .list-card .card:hover img {
        transform: scale(1.05);
    }

    .legacy-home .prod-home-workout .list-card .card:hover .card-footer {
        padding: 0 .75rem .75rem;
        margin-bottom: -.75rem;
    }
}


/* ============================================================
   CHALLENGE MAIN
   ============================================================ */

.legacy-home .prod-home-challenge .banner {
    display: flex;
    margin-bottom: 1.25rem;
    overflow: hidden;
    border-radius: 1rem;
    background-image:
        url('/static/svg/block-bg-pink-1000.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.legacy-home .prod-home-challenge .banner .block-info,
.legacy-home .prod-home-challenge .banner .img-block {
    flex: 1;
    min-width: 0;
}

.legacy-home .prod-home-challenge .block-info {
    display: flex;
    padding: 1rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.legacy-home .prod-home-challenge .header-challenge {
    margin-bottom: .75rem;
    color: #fff;
    font-family: Montserrat, sans-serif;
    font-size: 2.375rem;
    font-weight: 700;
}

.legacy-home .prod-home-challenge .block-info p {
    margin: 0 0 1.5rem;
    color: #fff;
    opacity: .7;
    font-family: Montserrat, sans-serif;
    font-size: .875rem;
    font-weight: 500;
}

.legacy-home .prod-home-challenge .button-block {
    display: flex;
    gap: .5rem;
}

.legacy-home .prod-home-challenge .button-block .time,
.legacy-home .prod-home-challenge .button-block .btn {
    display: flex;
    padding: .75rem 1rem;
    align-items: center;
    justify-content: center;
    gap: .625rem;
    border-radius: .75rem;
    background: #fff;
    color: var(--Dark-Dark-1000, #0A0C3C);
    font-family: Montserrat, sans-serif;
    font-size: .875rem;
    font-weight: 600;
}

.legacy-home .prod-home-challenge .button-block .time {
    background:
        var(--Pink-Pink-800, #F1A0FF);
}

.legacy-home .prod-home-challenge .banner .img-block {
    position: relative;
    display: flex;
    flex-wrap: wrap;
}

.legacy-home .prod-home-challenge .banner .img-block img {
    max-width: 78%;
    border-radius: .75rem;
    aspect-ratio: 18.75 / 10;
    object-fit: cover;
    margin-top: -1rem;
}

.legacy-home .prod-home-challenge .banner .img-block .img-1 {
    transform: rotate(-7.796deg);
}

.legacy-home .prod-home-challenge .banner .img-block .img-2 {
    margin: -5rem 2rem 0 auto;
    transform: rotate(13.207deg);
}

.legacy-home .prod-home-challenge .list-card .card {
    display: flex;
    flex: 0 0 calc(100% / 4);
    width: calc(100% / 4);
    min-width: calc(100% / 4);
    flex-direction: column;
    gap: 1.25rem;
    color: inherit;
    text-decoration: none;
}

.legacy-home .prod-home-challenge .list-card .card .img {
    position: relative;
    display: flex;
    width: 100%;
    aspect-ratio: 18.75 / 10;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    border-radius: .75rem;
}

.legacy-home .prod-home-challenge .list-card .card .img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.legacy-home .prod-home-challenge .block-label-img {
    position: absolute;
    z-index: 2;
    top: .5rem;
    left: .5rem;
    display: flex;
    gap: .5rem;
}

.legacy-home .prod-home-challenge .block-label-img label {
    display: inline-flex;
    padding: .25rem .5rem;
    align-items: center;
    justify-content: center;
    border-radius: .25rem;
    background: #fff;
    color: var(--Dark-Dark-1000, #0A0C3C);
    font-size: .625rem;
    font-weight: 600;
}

.legacy-home .prod-home-challenge .card-footer h5 {
    margin-bottom: .5rem;
}

.legacy-home .prod-home-challenge .card-footer .label-list {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
}

.legacy-home .prod-home-challenge .card-footer .label-list label {
    display: flex;
    padding: .25rem .75rem;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border-radius: 2.5rem;
    background:
        var(--Purple-Purple-100, #E5E2FF);
    color:
        var(--Purple-Purple-1000, #7E6CFF);
    font-size: .75rem;
    font-weight: 500;
}


/* ============================================================
   NUTRITION MAIN
   ============================================================ */

.legacy-home .prod-home-nutrition .list-card .card {
    display: flex;
    flex: 0 0 calc(100% / 6);
    width: calc(100% / 6);
    min-width: calc(100% / 6);
    flex-direction: column;
    gap: 1.25rem;
    color: inherit;
    text-decoration: none;
}

.legacy-home .prod-home-nutrition .list-card .card .img {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: .75rem;
}

.legacy-home .prod-home-nutrition .list-card .card .img img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
}

.legacy-home .prod-home-nutrition .list-card .card .img > label {
    position: absolute;
    z-index: 2;
    top: .5rem;
    left: .5rem;
    display: inline-flex;
    padding: .25rem .5rem;
    align-items: center;
    justify-content: center;
    border-radius: .25rem;
    background: #fff;
    color: var(--Dark-Dark-1000, #0A0C3C);
    font-size: .625rem;
    font-weight: 600;
}

.legacy-home .prod-home-nutrition .card-footer h5 {
    margin-bottom: .5rem;
}

.legacy-home .prod-home-nutrition .card-footer .label-list {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
}

.legacy-home .prod-home-nutrition .card-footer .label-list label {
    display: flex;
    padding: .25rem .75rem;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border-radius: 2.5rem;
    background:
        var(--Orange-Orange-100, #FFF8EC);
    color:
        var(--Orange-Orange-1000, #FFB53D);
    font-size: .75rem;
    font-weight: 500;
}


/* ============================================================
   NEWS MAIN
   ============================================================ */

.legacy-home .prod-home-news a {
    color: inherit;
    text-decoration: none;
}

.legacy-home .prod-home-news > .grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.legacy-home .prod-home-news .news-right {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.legacy-home .prod-home-news .news-right > .grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    cursor: pointer;
}

.legacy-home .prod-home-news .main-block-news .img-block,
.legacy-home .prod-home-news .news-right .img-block {
    position: relative;
    display: flex;
    width: 100%;
    aspect-ratio: 2.3 / 1;
    overflow: hidden;
    align-items: center;
    border-radius: 1rem;
}

.legacy-home .prod-home-news .main-block-news .img-block img,
.legacy-home .prod-home-news .news-right .img-block img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.legacy-home .prod-home-news .label-block {
    position: absolute;
    z-index: 2;
    top: .75rem;
    left: .75rem;
    display: flex;
    gap: .5rem;
}

.legacy-home .prod-home-news .label-block label {
    display: flex;
    padding: .25rem .5rem;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    border-radius: .25rem;
    background: #fff;
    color: var(--Dark-Dark-1000, #0A0C3C);
    font-family: Montserrat, sans-serif;
    font-size: .5rem;
    font-weight: 600;
}

.legacy-home .prod-home-news .date {
    color:
        var(--Green-Green-1000, #2BC4D5);
    font-family: Montserrat, sans-serif;
    font-size: .75rem;
    font-weight: 500;
}

.legacy-home .prod-home-news p.mute {
    font-family: Montserrat, sans-serif;
    font-size: .75rem;
    font-weight: 500;
    text-overflow: ellipsis;
}

.legacy-home .prod-home-news .news-right h5 {
    margin: .25rem 0 .5rem;
}

.legacy-home .prod-home-news .news-right .text-block {
    padding: .81rem 0;
}

.legacy-home .prod-home-news .news-right .text-block p {
    max-height: 2rem;
    overflow: hidden;
}

.legacy-home .prod-home-news .main-block-news .img-block {
    margin-bottom: 1.25rem;
}

.legacy-home .prod-home-news .main-block-news h5 {
    margin-bottom: .5rem;
}


/* ---------- EMPTY ---------- */

.legacy-home .prod-home-empty {
    padding: 1.25rem;
    border-radius: 1rem;
    background: #fff;
    color: #9D9EB1;
}

.legacy-home .no-image {
    background: #F6F6FA;
}


/* ============================================================
   MOBILE — original PROD breakpoint
   ============================================================ */

@media (max-width: 640.98px) {

    .legacy-home .prod-home-worker .list-card,
    .legacy-home .prod-home-workout .list-card,
    .legacy-home .prod-home-challenge .list-card,
    .legacy-home .prod-home-nutrition .list-card {
        padding-left: .75rem;
        padding-right: .75rem;
    }

    .legacy-home .prod-home-worker .list-card .card {
        flex-basis: calc(100% / 2);
        width: calc(100% / 2);
        min-width: calc(100% / 2);
    }

    .legacy-home .prod-home-worker .list-card .card .img {
        min-width: 12rem;
    }


    .legacy-home .prod-home-pocket .card-pocket {
        grid-template-columns: 1fr;
        margin: 0 .75rem;
        padding: 1rem;
        gap: 1.25rem;
    }

    .legacy-home .prod-home-pocket .card-pocket-title {
        padding: 0;
    }

    .legacy-home .prod-home-pocket .card-pocket-title h3 {
        font-size: 1rem;
    }

    .legacy-home .prod-home-pocket .card-pocket-title p {
        font-size: .75rem;
    }

    .legacy-home .prod-home-pocket .grid-column-1 {
        grid-column: span 6;
    }

    .legacy-home .prod-home-pocket .grid-column-2 {
        grid-column: span 3;
    }


    .legacy-home .prod-home-workout .list-card .card {
        flex-basis: calc(100% / 2);
        width: calc(100% / 2);
        min-width: calc(100% / 2);
    }


    .legacy-home .prod-home-challenge .list-card .card {
        flex-basis: calc(100% / 1.25);
        width: calc(100% / 1.25);
        min-width: calc(100% / 1.25);
    }

    .legacy-home .prod-home-challenge .banner {
        margin: 0 .75rem 1.25rem;
        flex-direction: column-reverse;
    }

    .legacy-home .prod-home-challenge .header-challenge {
        font-size: 1.5rem;
    }

    .legacy-home .prod-home-challenge .banner .img-block img {
        width: 60%;
        max-width: 60%;
        margin-top: 0;
    }

    .legacy-home .prod-home-challenge .banner .img-block .img-2 {
        margin: -4rem -1rem 0 auto;
    }


    .legacy-home .prod-home-nutrition .list-card .card {
        flex-basis: calc(100% / 1.8);
        width: calc(100% / 1.8);
        min-width: calc(100% / 1.8);
    }


    .legacy-home .prod-home-news > .grid-2 {
        grid-template-columns: 1fr;
        padding: 0 .75rem;
    }

    .legacy-home .prod-home-news .news-right > .grid-2 {
        grid-template-columns: repeat(2, 1fr);
        padding: 0;
    }

    .legacy-home .prod-home-news .main-block-news .img-block,
    .legacy-home .prod-home-news .news-right .img-block {
        aspect-ratio: 1.37 / 1;
    }
}


/* ============================================================
   PATCH 07E
   Restore Blazor CSS isolation for nested home components.

   Home.razor.css had generic .card/.card img rules.
   In Blazor they did not affect child-component cards.
   ============================================================ */

.legacy-home .prod-home-worker .list-card > .card,
.legacy-home .prod-home-workout .list-card > .card,
.legacy-home .prod-home-challenge .list-card > .card,
.legacy-home .prod-home-nutrition .list-card > .card {
    padding: 0 !important;
    overflow: visible !important;
    background-color: transparent;
}

/*
 * Home.razor.css moves every .card image with negative margins.
 * That caused:
 * - duplicated worker portraits,
 * - images narrower than their cards,
 * - horizontal jump on hover.
 */
.legacy-home .prod-home-worker .list-card > .card .img img,
.legacy-home .prod-home-workout .list-card > .card .img img,
.legacy-home .prod-home-challenge .list-card > .card .img img,
.legacy-home .prod-home-nutrition .list-card > .card .img img,
.legacy-home .prod-home-worker .list-card > .card:hover .img img,
.legacy-home .prod-home-workout .list-card > .card:hover .img img,
.legacy-home .prod-home-challenge .list-card > .card:hover .img img,
.legacy-home .prod-home-nutrition .list-card > .card:hover .img img {
    margin: 0 !important;
}

/* Image must occupy the component's own media block. */
.legacy-home .prod-home-worker .list-card > .card .img img,
.legacy-home .prod-home-workout .list-card > .card .img img,
.legacy-home .prod-home-challenge .list-card > .card .img img,
.legacy-home .prod-home-nutrition .list-card > .card .img img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

/*
 * Keep legitimate component hover effects,
 * but do not let the parent Home card rule move the media.
 */
.legacy-home .prod-home-worker .list-card > .card:hover .img,
.legacy-home .prod-home-workout .list-card > .card:hover .img,
.legacy-home .prod-home-challenge .list-card > .card:hover .img,
.legacy-home .prod-home-nutrition .list-card > .card:hover .img {
    margin: 0;
}

/* Worker image completely covers its fallback background. */
.legacy-home .prod-home-worker .list-card > .card .img {
    padding: 0;
}

/* Do NOT alter NewsMain: its current layout is already correct. */


/* Final parity: goal suggestions should be filled lavender chips, not outlined buttons. */
.legacy-home .quick-options .quick-option {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 8px 14px;
    background: #ebeaff;
    color: #30345e;
    box-shadow: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    transition: background-color .15s ease, color .15s ease;
}
.legacy-home .quick-options .quick-option:hover {
    background: #ddd9fa;
    border-color: transparent;
    box-shadow: none;
}
.legacy-home .quick-options .quick-option.active {
    background: #7e6cff;
    color: #fff;
    border-color: transparent;
    box-shadow: none;
}
.legacy-home .quick-options .quick-option:focus-visible {
    outline: 2px solid #6754dc;
    outline-offset: 2px;
}


/* PHASE350_HOME_HERO_FIX */

/*
 * The active homepage slide must define the banner height.
 * Reserve space below its CTA for the navigation controls.
 */
.legacy-home .one .hero {
    position: relative;
    height: auto !important;
    min-height: 390px;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 16px;
}

.legacy-home .one .hero .hero-slide:not([hidden]) {
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    height: auto !important;
    min-height: 390px;
    box-sizing: border-box;
    padding: 30px 40px 75px !important;
    align-items: center;
}

.legacy-home .one .hero .hero-slide[hidden] {
    display: none !important;
}

.legacy-home .one .hero .hero-copy {
    position: relative;
    z-index: 2;
    height: auto !important;
    max-height: none !important;
    box-sizing: border-box;
    padding-bottom: 0;
}

.legacy-home .one .hero .hero-copy h3,
.legacy-home .one .hero .hero-copy p {
    max-height: none !important;
}

.legacy-home .one .hero .hero-copy .btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 12px;
}

.legacy-home .one .hero .slide-controls {
    position: absolute;
    z-index: 5;
    left: 40px;
    right: 40px;
    bottom: 18px;
    top: auto;
    transform: none;
}

@media (max-width: 900px) {
    .legacy-home .one .hero,
    .legacy-home .one .hero .hero-slide:not([hidden]) {
        min-height: 420px;
    }

    .legacy-home .one .hero .hero-slide:not([hidden]) {
        padding: 26px 28px 70px !important;
    }

    .legacy-home .one .hero .slide-controls {
        left: 28px;
        right: 28px;
    }
}

@media (max-width: 600px) {
    .legacy-home .one .hero,
    .legacy-home .one .hero .hero-slide:not([hidden]) {
        min-height: 440px;
    }

    .legacy-home .one .hero .hero-slide:not([hidden]) {
        padding: 24px 20px 72px !important;
    }

    .legacy-home .one .hero .hero-copy {
        max-width: 78%;
    }

    .legacy-home .one .hero .hero-copy h3 {
        font-size: clamp(19px, 5vw, 27px);
        line-height: 1.18;
    }

    .legacy-home .one .hero .slide-controls {
        left: 20px;
        right: 20px;
        bottom: 16px;
    }
}
