/* Plus Docs — главная, минимализм */

.home-min {
    background: #ffffff;
}

#home-page.home-min {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* Hero */
.hero-min {
    background: #ffffff;
    padding: 4rem 0 3.5rem;
}

.hero-min__inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.hero-min__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    color: #0f172a;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.hero-min__subtitle {
    font-size: 1.125rem;
    color: #64748b;
    margin: 0 0 0.5rem;
    line-height: 1.5;
}

.hero-min__tagline {
    font-size: 1rem;
    color: #94a3b8;
    margin: 0 0 2rem;
    line-height: 1.5;
}

.hero-min__search {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.hero-min__search-row {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.hero-min__input {
    width: 100%;
    padding: 1rem calc(8px + 32px + 8px) 1rem 1rem;
    font-size: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-min__search-row:focus-within .hero-min__input {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.hero-min__input:focus {
    outline: none;
}

.hero-min__search-submit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
    transition: box-shadow 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.hero-min__search-submit:hover {
    filter: brightness(1.05);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
}

.hero-min__search-row:focus-within .hero-min__search-submit {
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.5);
    transform: translateY(-50%) scale(1.04);
}

.hero-min__search-submit:active {
    transform: translateY(-50%) scale(0.96);
    filter: brightness(0.95);
}

.hero-min__suggest {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    text-align: left;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    max-height: 240px;
    overflow-y: auto;
}

.hero-min__suggest:not([hidden]) {
    display: block;
}

.hero-min__suggest li a {
    display: block;
    padding: 0.65rem 1rem;
    color: #0f172a;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
}

.hero-min__suggest li:last-child a {
    border-bottom: none;
}

.hero-min__suggest li a:hover {
    background: #f8fafc;
}

/* Section headings */
.home-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.home-section-head__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #0f172a;
}

.home-section-head__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #2563eb;
    text-decoration: none;
}

.home-section-head__link:hover {
    text-decoration: underline;
}

/* Категории */
.home-cats-min {
    padding: 2.5rem 0 3rem;
    background: #ffffff;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.home-cat-card,
.category-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    border: none;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.06),
        0 4px 16px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.home-cat-card:hover,
.category-card:hover {
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.home-cat-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
}

.home-cat-card__name {
    font-size: 1rem;
    font-weight: 500;
    color: #0f172a;
}

.home-cat-card__desc {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.4;
}

/* Документы */
.home-docs-min {
    padding: 2rem 0 4rem;
    background: #ffffff;
}

.home-docs-min__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.home-docs-min__subtitle {
    margin: 0 0 1.5rem;
    font-size: 0.9375rem;
}

.documents-filter-min {
    appearance: none;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 0.5rem center no-repeat;
    cursor: pointer;
    min-width: 180px;
}

.documents-filter-min:focus {
    outline: none;
    border-color: #2563eb;
}

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

@media (min-width: 640px) {
    .documents-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .documents-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.doc-card-min {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.doc-card-min:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.doc-card-min__tag {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.75rem;
    padding: 0.2rem 0.45rem;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.doc-card-min__title {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.3;
}

.doc-card-min__title a {
    color: #0f172a;
    text-decoration: none;
}

.doc-card-min__title a:hover {
    color: #2563eb;
}

.doc-card-min__desc {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.doc-card-min__foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.doc-card-min__price {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
}

.doc-card-min__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.doc-card-min__fav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.doc-card-min__fav:hover {
    color: #ef4444;
    border-color: #fecaca;
}

.doc-card-min__fav.is-fav {
    color: #ef4444;
    border-color: #fecaca;
    background: #fff1f2;
}

.documents-pagination-min {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.pagination-min {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
}

.pagination-min__btn {
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    font-size: 0.875rem;
    color: #475569;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pagination-min__btn:hover:not(.is-active) {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.pagination-min__btn.is-active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    font-weight: 600;
}

/* Почему мы */
.home-why-min {
    padding: 5rem 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.home-why-min__intro {
    text-align: center;
    margin-bottom: 2.5rem;
}

.home-why-min__section-title {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #0f172a;
}

.home-why-min__lead {
    margin: 0;
    font-size: 1rem;
    color: #64748b;
}

.home-why-min__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .home-why-min__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

.home-why-min__item {
    text-align: center;
}

.home-why-min__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
    color: #475569;
}

.home-why-min__name {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
}

.home-why-min__text {
    margin: 0;
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.5;
}

/* Как это работает */
.home-how-min {
    padding: 5rem 0;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.home-how-min__section-title {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    color: #0f172a;
}

.home-how-min__lead {
    margin: 0 0 2.5rem;
    font-size: 1rem;
    color: #64748b;
    text-align: center;
}

.home-how-min__row {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: stretch;
}

.home-how-min__hline {
    display: none;
}

@media (min-width: 900px) {
    .home-how-min__row {
        flex-direction: row;
        align-items: flex-start;
        gap: 0;
    }

    .home-how-min__hline {
        display: block;
        flex: 1 1 auto;
        align-self: center;
        height: 1px;
        background: #e2e8f0;
        margin: 0 0.5rem;
        min-width: 0.75rem;
    }
}

.home-how-min__step {
    flex: 1;
    text-align: center;
    padding: 0 0.5rem;
}

.home-how-min__num {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.home-how-min__title {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
}

.home-how-min__desc {
    margin: 0;
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.5;
}

/* Партнёрка */
.home-partner-min {
    padding: 3rem 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.home-partner-min__inner {
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
}

.home-partner-min__title {
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #0f172a;
}

.home-partner-min__text {
    margin: 0 0 1.5rem;
    font-size: 1rem;
    color: #475569;
}

.home-partner-min__btn {
    padding: 12px 24px;
    border-radius: 8px;
}

/* Витрина: категории + документы — визуально заполняет пространство под hero */
.home-vitrina {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 38%, #ffffff 100%);
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.home-vitrina .home-cats-min:first-of-type,
.home-vitrina .home-docs-min:first-of-type {
    padding-top: 2.75rem;
}

.home-vitrina .home-cats-min,
.home-vitrina .home-docs-min {
    background: transparent;
}

.home-vitrina .home-cats-min .home-section-head {
    margin-bottom: 0.25rem;
}

.home-vitrina .home-docs-min .home-section-head {
    margin-bottom: 0.25rem;
}

/* Комплекты на главной */
.home-sets-min {
    padding: 2.75rem 0 2.5rem;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.045) 0%, rgba(248, 250, 252, 0.65) 55%, transparent 100%);
    border-bottom: 1px solid #e2e8f0;
}

.home-sets-min .home-section-head {
    margin-bottom: 0.85rem;
}

.home-sets-min .home-section-head__title {
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.home-sets-min__lead {
    margin: 0 0 1.5rem;
    padding: 0.9rem 1.1rem;
    max-width: 44rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #334155;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 10px;
    border-left: 3px solid #2563eb;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

[data-theme="dark"] .home-sets-min__lead {
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.45);
    border-color: rgba(51, 65, 85, 0.85);
    border-left-color: #60a5fa;
    box-shadow: none;
}

.home-sets-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
}

@media (min-width: 640px) {
    .home-sets-grid {
        grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
    }
}

.home-set-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.3rem 1.4rem 1.35rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.05),
        0 1px 2px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.home-set-card:hover {
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.08),
        0 2px 4px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

.home-set-card__title {
    margin: 0 0 0.55rem;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: -0.015em;
}

.home-set-card__title a {
    color: #0f172a;
    text-decoration: none;
}

.home-set-card__title a:hover {
    color: #2563eb;
}

.home-set-card__desc {
    margin: 0 0 0.8rem;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
    flex: 1;
}

.home-set-card__count {
    margin: 0 0 0.9rem;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.45;
}

.home-set-card__count-inner {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.18);
    color: #334155;
    font-weight: 500;
}

[data-theme="dark"] .home-set-card__count-inner {
    background: rgba(96, 165, 250, 0.12);
    border-color: rgba(96, 165, 250, 0.28);
    color: #e2e8f0;
}

[data-theme="dark"] .home-set-card__count strong {
    color: #f8fafc;
}

.home-set-card__count strong {
    color: #0f172a;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.home-set-card__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid #e2e8f0;
}

.home-set-card__price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2563eb;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.home-set-card__price--free {
    font-size: 1rem;
    font-weight: 600;
    color: #059669;
}

.home-sets-min__cta {
    margin: 1.65rem 0 0;
    text-align: center;
}

.categories-grid > .home-grid-skeleton,
.documents-grid > .home-grid-skeleton {
    grid-column: 1 / -1;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem 1.25rem;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.home-placeholder__title {
    font-weight: 600;
    font-size: 1.05rem;
    color: #0f172a;
    margin: 0 0 0.5rem;
}

.home-placeholder__text {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0 auto 1rem;
    line-height: 1.5;
    max-width: 28rem;
}

.home-placeholder__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}
