/* Homepage only: retain the shared public theme and navigation. */
.public-main {
    padding-block: clamp(36px, 5vw, 64px) clamp(40px, 6vw, 76px);
}

.home-page {
    width: 100%;
    min-width: 0;
    display: grid;
    gap: clamp(40px, 6vw, 72px);
}

.home-page .home-hero__badge {
    margin-bottom: 22px;
}

.home-page .home-hero__title {
    max-width: 1000px;
    margin-bottom: 24px;
    font-size: clamp(36px, 6vw, 76px);
    line-height: 1.06;
    letter-spacing: -0.045em;
}

.home-hero__word {
    display: inline-block;
}

[data-rt-script="cyrillic"] .home-page .home-hero__title {
    font-size: clamp(30px, 5.5vw, 70px);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.home-page .home-hero__subtitle {
    max-width: 740px;
    margin-bottom: 28px;
    font-size: clamp(17px, 2vw, 21px);
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.home-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    max-width: 100%;
    padding: 14px 24px;
    border: 1px solid var(--rt-border-strong);
    border-radius: 999px;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.4;
    text-decoration: none;
    text-align: center;
}

.home-action--primary {
    color: var(--rt-accent-text);
    background: var(--rt-green);
    border-color: var(--rt-green);
}

.home-action--primary:hover {
    background: var(--rt-green-hover);
}

/* White text needs a darker surface than the shared brand green. */
[data-rt-theme="light"] .home-action--primary {
    background: #137333;
    border-color: #137333;
}

[data-rt-theme="light"] .home-action--primary:hover {
    background: #0e5b28;
    border-color: #0e5b28;
}

[data-rt-theme="light"] .home-hero__badge,
[data-rt-theme="light"] .home-step::before {
    color: #137333;
}

.home-action--secondary {
    color: var(--rt-text);
    background: var(--rt-card);
}

.home-action--secondary:hover {
    border-color: var(--rt-green);
}

.home-action:focus-visible {
    outline: 3px solid var(--rt-focus);
    outline-offset: 4px;
}

.home-hero__geography {
    margin: 22px auto 0;
    max-width: 650px;
    color: var(--rt-muted);
    font-size: 14px;
    line-height: 1.6;
    text-wrap: balance;
}

.home-section h2 {
    margin: 0 0 24px;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.home-grid {
    display: grid;
    gap: 16px;
}

.home-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-card {
    padding: 24px;
    border: 1px solid var(--rt-border);
    border-radius: 18px;
    background: var(--rt-card);
}

.home-section h3 {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.35;
    overflow-wrap: normal;
    hyphens: manual;
}

.home-section p {
    margin: 0;
    color: var(--rt-muted);
    font-size: 15px;
    line-height: 1.65;
    overflow-wrap: normal;
    hyphens: manual;
}

[lang="de"] .home-section h3,
[lang="de"] .home-section p {
    hyphens: auto;
    hyphenate-limit-chars: 8 4 4;
}

.home-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: home-step;
}

.home-step {
    counter-increment: home-step;
    padding: 0 16px 0 0;
}

.home-step::before {
    content: counter(home-step, decimal-leading-zero);
    display: block;
    margin-bottom: 14px;
    color: var(--rt-green);
    font-size: 24px;
    font-weight: 800;
}

@media (max-width: 1000px) {
    .home-grid--four,
    .home-grid--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .home-actions {
        flex-direction: column;
    }

    .home-grid--four,
    .home-grid--three {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-card {
        padding: 20px;
    }

    .home-step {
        display: grid;
        grid-template-columns: 36px minmax(0, 1fr);
        column-gap: 14px;
        padding: 0;
    }

    .home-step::before {
        grid-row: 1 / 3;
    }

    .home-step h3 {
        margin-bottom: 6px;
    }

    .home-step p {
        grid-column: 2;
    }
}
