.home-page {
    display: grid;
    gap: 24px;
}

.home-payment {
    position: relative;
    z-index: 0;
    overflow: hidden;
    padding: 30px 24px 34px;
    border-left: 4px solid var(--color-primary-active);
    background: linear-gradient(145deg, var(--color-tint-primary), var(--color-surface));
}

.home-payment-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 86% 76%;
    pointer-events: none;
    user-select: none;
    opacity: 0.8;
    z-index: 0;
}

.home-payment::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(124, 140, 255, 0.2) 0%,
        rgba(124, 140, 255, 0.12) 28%,
        rgba(124, 140, 255, 0.05) 52%,
        rgba(124, 140, 255, 0) 74%
    );
    pointer-events: none;
    z-index: 1;
}

.home-payment-content {
    position: relative;
    z-index: 2;
}

.home-payment-title {
    margin: 0;
    font-size: 36px;
    line-height: 44px;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.home-payment-actions {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 12px;
}

.home-payment-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    font-size: 16px;
    line-height: 22px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 8px 20px rgba(79, 97, 221, 0.28);
    padding: 12px 16px;
    text-align: center;
}

.home-payment-button:hover {
    box-shadow: 0 10px 26px rgba(79, 97, 221, 0.34);
}

.home-payment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.16);
}

.home-payment-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.home-search-block .card-header {
    border-bottom: 1px solid var(--color-border);
}

.home-search-form {
    padding: 16px 24px 24px;
}

.home-search-label {
    display: block;
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 20px;
    color: var(--color-text-secondary);
}

.home-search-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.home-search-input {
    flex: 1;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    font: inherit;
    color: var(--color-text-primary);
}

.home-search-input::placeholder {
    color: #6b7c8f;
}

.home-search-input:hover {
    border-color: #c6d4e3;
}

.home-search-input:focus-visible {
    border-color: var(--color-primary-active);
    box-shadow: 0 0 0 3px var(--color-focus-ring);
}

.home-search-submit {
    min-width: 160px;
    min-height: 48px;
}

.home-benefits-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    padding: 18px 24px 22px;
}

.home-benefit-item {
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
}

.home-benefit-item h3 {
    margin: 6px 0 6px;
    font-size: 18px;
    line-height: 24px;
}

.home-benefit-item p {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 14px;
    line-height: 20px;
}

.home-benefit-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-tint-accent);
}

.home-ad-body {
    min-height: 120px;
    padding: 24px;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #c5d6e4;
    margin: 16px;
    border-radius: var(--radius-md);
    background: #fbfdff;
    text-align: center;
}

.home-empty-state {
    padding: 40px 24px;
    text-align: center;
    color: var(--color-text-secondary);
    background: var(--color-tint-primary);
}

.home-companies-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-company-item {
    position: relative;
    cursor: pointer;
    padding: 20px 24px;
    border-top: 1px solid var(--color-border);
    border-left: 3px solid transparent;
    overflow: hidden;
    transition: box-shadow 240ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 180ms ease, border-color 180ms ease;
}

.home-company-item:first-child {
    border-top: none;
}

.home-company-item:hover {
    box-shadow: var(--shadow-sm);
    background: var(--color-tint-accent);
    border-left-color: var(--color-accent);
}

.home-company-stretched-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.home-company-title {
    position: relative;
    z-index: 2;
    pointer-events: none;
    margin: 0;
    color: var(--color-link);
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
}

.home-company-item:hover .home-company-title {
    color: var(--color-link-hover);
}

.home-company-meta {
    position: relative;
    z-index: 2;
    pointer-events: none;
    margin-top: 12px;
    display: grid;
    gap: 8px 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    font-size: 14px;
    line-height: 20px;
    color: var(--color-text-secondary);
}

.home-label {
    color: var(--color-accent-active);
    font-weight: 600;
}

.home-company-actions {
    position: relative;
    z-index: 2;
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 768px) {
    .home-payment {
        padding: 24px 20px 28px;
    }

    .home-payment-bg {
        object-position: 78% 82%;
    }

    .home-payment::after {
        background: linear-gradient(
            110deg,
            rgba(124, 140, 255, 0.2) 0%,
            rgba(124, 140, 255, 0.1) 44%,
            rgba(124, 140, 255, 0) 88%
        );
    }

    .home-payment-title {
        font-size: 30px;
        line-height: 38px;
    }

    .home-payment-actions {
        grid-template-columns: 1fr;
    }

    .home-payment-button {
        min-height: 54px;
    }

    .home-search-row {
        flex-direction: column;
    }

    .home-search-form {
        padding: 14px 16px 16px;
    }

    .home-search-submit {
        width: 100%;
    }

    .home-company-item {
        padding: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-company-item,
    .home-company-title {
        transition: none !important;
    }
}
