.home {
    min-height: 100vh;
}

.hero {
    padding-top: 48px;
    position: relative;
    overflow: hidden;
    margin-bottom: 96px;
}

.hero__container {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 780px;
    gap: 24px;
}

.hero__content {
    display: flex;
    background-image: url(/static/images/hero-main-bg.png);
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 40px;
    max-width: 708px;
    width: 100%;
    padding: 40px;
    gap: 16px;
    z-index: 2;
    flex-direction: column;
    justify-content: flex-start;
}

.hero__title {
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
    color: #20221E;
}

.hero__description {
    font-size: 16px;
    line-height: 1.5;
    color: #6b7280;
    margin: 0 0 32px 0;
}

.hero__stats {
    display: flex;
    gap: 16px;
    margin-top: auto;
}

.hero__stat {
    display: flex;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    border-radius: 16px;
    gap: 4px;
}

.hero__stat-number {
    font-size: 20px;
    font-weight: 600;
    color: #81AD4F;
    line-height: 1.2;
}

.hero__stat-label {
    font-size: 16px;
    color: #20221E7A;
    line-height: 1.2;
    font-weight: 400;
}

.hero__cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 2;
}

.hero__card {
    display: flex;
    background-image: url(/static/images/sign-up-bg.png);
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 40px;
    padding: 40px;
    color: white;
    gap: 17px;
    flex-direction: column;
}

.hero__card li {
    font-family: Inter;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
}

.hero__card--info {
    background: none;
    display: flex;
    flex-direction: row;
    gap: 24px;
    padding: 0;
    width: 100%;
    justify-content: space-between;
}

.hero__card-title {
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
}

.hero__card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero__card-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.hero__card-link-sep {
    display: flex;
    text-decoration: none;
    background: #75D3C829;
    height: 260px;
    width: 100%;
    padding: 40px;
    border-radius: 40px;
    position: relative;
    color: #5EACA3;
    font-weight: 500;
    font-size: 22px;
    line-height: 26px;
}

.hero__card-link-sep:after {
    content: '';
    position: absolute;
    display: block;
    background-image: url('/static/images/btn-link.png');
    width: 52px;
    height: 52px;
    right: 40px;
    bottom: 40px;
}

.hero__card-link:hover {
    opacity: 1;
}

/* Partners section */
.partners {
    background: white;
    overflow: hidden;
}

.partners__container {
    display: flex;
    max-width: 1440px;
    margin: 0 auto;
    height: 197px;
    flex-direction: column;
    margin-bottom: 128px;
}

.partners__title {
    text-align: center;
    font-size: 24px;
    color: #20221E;
    margin: 0 0 48px 0;
    font-weight: 500;
    line-height: 1.2;
}

.partners__slider {
    width: 100%;
    overflow: hidden;
    height: 100%;
}

.partners__track {
    display: flex;
    animation: scroll 20s linear infinite;
    width: fit-content;
    gap: 24px;
}

.partners__logo {
    height: 120px;
    width: 220px;
    object-fit: contain;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #20221E14;
    border-radius: 16px;
}

.partners__logo:hover {
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 24px));
    }
}

.catalog__container {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 342px 1fr;
    gap: 24px;
}

.catalog__sidebar {
    padding: 24px;
    background: #81AD4F14;
    border-radius: 24px;
    height: fit-content;
    position: sticky;
    top: 88px;
}

.catalog__sidebar-title {
    font-size: 24px;
    line-height: 32px;
    font-weight: 500;
    color: #20221E;
    margin: 0 0 24px 4px;
}

.catalog__categories {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.catalog__category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    color: #20221EB8;
    font-size: 14px;
    line-height: 18px;
    transition: background 0.2s, color 0.2s;
    font-weight: 500;
}

.catalog__category-icon {
    object-fit: cover;
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.catalog__main {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Search bar */
.search-bar {
    display: flex;
    align-items: flex-start;
    background: white;
    border: 1px solid #81AD4F;
    border-radius: 12px;
    min-height: 44px;
    height: auto;
    flex-wrap: wrap;
    padding: 4px;
    transition: border-color 0.2s;
}

.search-bar:focus-within {
    border-color: #84cc16;
}

.search-bar__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-height: 40px;
}

.search-bar__placeholder {
    color: #20221E52;
    font-size: 16px;
    font-weight: 400;
    margin-left: 8px;
    line-height: 1;
}

.search-bar__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #20221E0F;
    color: #20221E;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 18px;
    font-weight: 400;
}

.search-bar__tag-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    color: #6b7280;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}

.search-bar__tag-remove:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.search-bar__input {
    border: none;
    padding: 8px 12px;
    font-size: 14px;
    outline: none;
    min-width: 200px;
    background: transparent;
    display: none;
}

.search-bar__input::placeholder {
    color: #9ca3af;
}

.search-bar__clear-all-btn {
    font-weight: 400;
    font-size: 16px;
    line-height: 16px;
    color: #20221E52;
    padding: 8px;
    cursor: pointer;
}

.search-bar__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #81AD4F29;
    border: none;
    border-radius: 10px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    color: #81AD4F;
}

.search-bar__submit:hover {
}

.section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section__title {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    color: #20221E;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -.03em;
}

.section__subtitle {
    font-size: 18px;
    font-weight: 500;
    color: #1f2937;
    margin: 24px 0 16px 0;
}

.section__link {
    color: #84cc16;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}

.section__link:hover {
    gap: 8px;
}

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

.filter {
    background: #20221E0F;
    color: #20221E;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    line-height: 18px;
    font-weight: 400;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    display: inline-block;
}

.filter:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.filter--active,
.filter--primary {
    background: #81AD4F !important;
    color: white !important;
}

.filter--active:hover,
.filter--primary:hover {
    background: #81AD4F;
}

.filter--exclude {
    background: #20221E0F;
    color: #20221E;
}

.filter--exclude.filter--active {
    background: #81AD4F;
    color: #fff;
}

.products {
    padding: 128px 0;
    background: white;
}

.products__container {
    max-width: 1440px;
    margin: 0 auto;
}

.products__header {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
}

.products__title, .news__title {
    display: flex;
    font-size: 28px;
    line-height: 32px;
    font-weight: 500;
    color: #20221E;
    gap: 12px;
    margin: 0;
    flex-direction: row;
    align-items: center;
}

.products__title svg {
    width: 9px;
    height: 16px;
}

.products__grid {
    width: 100%;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.product-card {
    background: white;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    position: relative;
    width: 220px;
    height: 360px;
    overflow: hidden;
}

.product-card__favorite {
    position: absolute;
    top: 16px;
    right: 16px;
    background: white;
    border-radius: 10px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.product-card__image {
    width: 220px;
    height: 220px;
    object-fit: cover;
    margin-bottom: 16px;
    border-radius: 24px;
}

.product-card__title {
    font-size: 16px;
    font-weight: 500;
    color: #20221EB8;
    margin: 0 0 8px 0;
    line-height: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 40px;
}

.product-card__description {
    font-size: 14px;
    color: #20221E7A;
    margin: 0 0 14px 0;
    line-height: 18px;
    flex: 1;
}

.product-card__footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.product-card__btn {
    background: #81AD4F1F;
    color: #81AD4F;
    padding: 9px 26px;
    border-radius: 128px;
    font-size: 14px;
    line-height: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.benefits__container {
    max-width: 1440px;
    margin: 0 auto;
}

.benefits__title {
    text-align: center;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 500;
    color: #20221E;
    margin: 0 0 64px 0;
}

.benefits__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.benefit-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.benefit-card__icon {
    width: 128px;
    height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
}

.benefit-card__description {
    font-size: 18px;
    color: #20221EB8;
    line-height: 24px;
    max-width: 320px;
    margin: 0;
}


.news {
    padding: 128px 0;
}

.news__container {
    max-width: 1440px;
    margin: 0 auto;
}

.news__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.news__title {
    font-size: 28px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.news__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.news-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.news-card__image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.news-card__content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card__title {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.news-card__date {
    font-size: 12px;
    color: #9ca3af;
    margin-top: auto;
}

.contact {
    width: 100%;
}

.contact__container {
    max-width: 1440px;
    margin: 0 auto;
    margin-bottom: 128px;
    display: flex;
    gap: 24px;
    flex-direction: row;
}

.contact__form-wrapper {
    background-image: url(/static/images/cta-banner-bg.png);
    border-radius: 40px;
    padding: 40px;
    color: white;
    background-size: cover;
    background-repeat: no-repeat;
    width: 1074px;
    height: 320px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
}

.contact__title {
    font-weight: 500;
    font-size: 28px;
    line-height: 36px;
    color: #fff;
}

.contact__subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 29px;
    background: #fff;
    border-radius: 128px;
    color: #81AD4F;
}

.contact__submit {
    background: white;
    color: #65a30d;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    align-self: flex-start;
}

.contact__info {
    display: flex;
    width: 342px;
    background: #81AD4F1F;
    border-radius: 40px;
    gap: 32px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact__info-title {
    font-size: 18px;
    line-height: 24px;
    letter-spacing: -.02em;
    font-weight: 500;
    color: #20221EB8;
}

.contact__questions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact__question {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    transition: color 0.2s;
}

.contact__question:hover {
    color: #2563eb;
}

.search-bar__tag--exclude {
    background: #FF1A2514;
    color: #FF1A25;
}

.search-bar__tag--exclude .search-bar__tag-remove {
    color: #991b1b;
}

.search-bar__tag--exclude .search-bar__tag-remove:hover {
    background: #fecaca;
}

@media (max-width: 1024px) {
    .hero__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero__cards {
        max-width: 600px;
        margin: 0 auto;
    }

    .catalog__container {
        grid-template-columns: 1fr;
    }

    .catalog__sidebar {
        position: static;
    }

    .benefits__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .news__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact__container {
        grid-template-columns: 1fr;
    }
}

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

    .hero__title {
        font-size: 32px;
    }

    .hero__stats {
        gap: 24px;
    }

    .hero__stat-number {
        font-size: 28px;
    }

    .products__grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .news__grid {
        grid-template-columns: 1fr;
    }
}

/* Стили для тегов разных групп */
.search-bar__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 18px;
    font-weight: 400;
    transition: all 0.2s ease;
}

/* Группа "Повышенное содержание нутриентов" */
.search-bar__tag--nutrients {
    background: #5EACA31F;
    color: #5EACA3;
}

.search-bar__tag--nutrients svg {
    color: #5EACA3;
}

/* Группа "Сахарозаменители" */
.search-bar__tag--sweeteners {
    background: #8A38F514;
    color: #8A38F5;
}

.search-bar__tag--sweeteners svg {
    color: #8A38F5;
}

/* Группа "Исключить из состава" */
.search-bar__tag--exclude {
    background: #FF1A2514;
    color: #FF1A25;
}

.search-bar__tag--exclude svg {
    color: #FF1A25;
}

/* Группа "Сертификаты" */
.search-bar__tag--certificates {
    background: #2877ED14;
    color: #2877ED;
}

.search-bar__tag--certificates svg {
    color: #2877ED;
}

/* Группа "Рекомендовано" */
.search-bar__tag--recommended {
    background: #81AD4F1F;
    color: #81AD4F;
}

.search-bar__tag--recommended svg {
    color: #81AD4F;
}

/* Общие стили для кнопки удаления */
.search-bar__tag-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
    margin-left: 4px;
}

.search-bar__tag-remove svg {
    width: 16px;
    height: 16px;
}

.search-bar__tag-remove:hover {
    background: rgba(0, 0, 0, 0.08);
}

.filter[data-group="nutrients"].filter--active {
    background: #81AD4F;
    color: white;
}

.filter[data-group="sweeteners"].filter--active {
    background: #FF8C00;
    color: white;
}

.filter[data-group="certificates"].filter--active {
    background: #4A90E2;
    color: white;
}

.filter[data-group="recommended"].filter--active {
    background: #9B59B6;
    color: white;
}