/* ============================================================
   Главная страница — использует переменные из base.css,
   визуальный язык согласован со страницей «Репетитор» (tutor.css),
   но не зависит от неё: все классы свои.
   ============================================================ */

.home-page {
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--page-text-color);
}

.home-page h1,
.home-page h2,
.home-page h3 {
    font-family: "CourierCyrPS-Bold", monospace;
    color: var(--page-text-color);
    font-weight: 700;
}

/* Полноширинные секции внутри .page-layout (компенсируем его padding: 20px 50px) */
.home-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: calc(100% + 100px);
    margin-left: -50px;
    margin-right: -50px;
    padding: 64px 50px;
}

.home-container {
    max-width: 1080px;
    margin: 0 auto;
    width: 100%;
}

.home-section-title {
    font-size: 28px;
    margin-bottom: 8px;
}

.home-section-subtitle {
    font-size: 16px;
    line-height: 1.5;
    color: var(--page-text-color);
    margin-bottom: 36px;
    max-width: 640px;
}

/* ---------- Кнопки ---------- */

.home-hero-actions,
.home-support-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--accent-color);
    color: var(--accent-text-color);
    text-decoration: none;
    font-family: "CourierCyrPS", "Courier", monospace;
    font-size: 16px;
    padding: 14px 26px;
    border-radius: var(--common-border-radius);
    border: none;
    cursor: pointer;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
    white-space: nowrap;
}

.home-button:hover {
    background-color: var(--strong-highlight-color);
    color: var(--highlight-text-color);
}

.home-button:focus-visible {
    outline: 2px solid var(--page-text-color);
    outline-offset: 3px;
}

.home-button-outline {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 12px 24px;
}

.home-button-outline:hover {
    background-color: var(--highlight-color);
    color: var(--highlight-text-color);
}

/* ---------- Hero ---------- */

.home-hero-section {
    background-color: var(--page-color);
    background-image:
        linear-gradient(var(--light-border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--light-border-color) 1px, transparent 1px);
    background-size: 28px 28px;
    background-position: center top;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.home-eyebrow {
    font-family: "CourierCyrPS", "Courier", monospace;
    color: var(--accent-color);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 14px;
}

.home-hero-title {
    font-size: 40px;
    line-height: 1.25;
    margin-bottom: 18px;
}

.home-hero-title .underline-mark {
    position: relative;
    white-space: nowrap;
    display: inline-block;
}

.home-hero-title .underline-mark svg {
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 10px;
    overflow: visible;
}

.home-hero-title .underline-mark svg path {
    stroke: var(--strong-highlight-color);
    stroke-width: 5;
    fill: none;
    stroke-linecap: round;
}

.home-hero-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--page-text-color);
    max-width: 520px;
    margin-bottom: 24px;
}

.home-goals-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 520px;
    margin: 0 0 28px 0;
}

.home-goals-list li {
    position: relative;
    padding-left: 36px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--page-text-color);
}

/* Иллюстрация-заглушка справа от hero */

.home-hero-illustration-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-hero-illustration {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background-color: var(--card-background-color);
    border: 2px dashed var(--light-border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.home-logo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
}




/* ---------- Разделы сайта (карточки) ---------- */

.home-features-section {
    background-color: var(--card-background-color);
}

.home-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.home-feature-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    background-color: var(--page-color);
    border: 2px solid var(--light-border-color);
    border-radius: var(--common-border-radius);
    padding: 26px 22px;
    text-decoration: none;
    color: var(--page-text-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.home-feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--strong-highlight-color);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.home-feature-card:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.home-feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--highlight-color);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.home-feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-feature-card h3 {
    font-size: 18px;
}

.home-feature-card p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted-color);
    flex: 1;
}

.home-feature-link {
    font-family: "CourierCyrPS", "Courier", monospace;
    font-size: 13px;
    color: var(--accent-color);
    margin-top: 4px;
}

.home-feature-card:hover .home-feature-link {
    text-decoration: underline;
}

/* ---------- Поддержать проект ---------- */

.home-support-section {
    background-color: var(--strong-highlight-color);
    text-align: center;
    justify-content: center;
}

.home-support-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-support-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--accent-text-color);
    color: var(--strong-highlight-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.home-support-icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-support-section h2 {
    color: var(--strong-highlight-text-color);
}

.home-support-text {
    color: var(--strong-highlight-text-color);
    max-width: 520px;
    margin: 12px auto 28px auto;
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.95;
}

.home-support-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-support-section .home-button {
    background-color: var(--accent-text-color);
    color: var(--accent-color);
}

.home-support-section .home-button:hover {
    background-color: var(--page-color);
}

.home-support-section .home-button-outline {
    border-color: var(--accent-text-color);
    color: var(--accent-text-color);
}

.home-support-section .home-button-outline:hover {
    background-color: var(--accent-text-color);
    color: var(--accent-color);
}


.donatQR {
    border-radius: var(--common-border-radius);
}

/* ---------- Адаптив ---------- */

@media (max-width: 900px) {
    .home-hero-grid {
        gap: 15px;
    }

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

@media (max-width: 800px) {
    .home-hero-title {
        font-size: 28px;
    }

    .home-section-title {
        font-size: 22px;
    }

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

    .home-hero-illustration-wrap {
        order: -1;
        margin: 0 auto;
    }

    .home-hero-illustration {
        width: 180px;
        height: 180px;
    }


    .home-logo {
        width: 150px;
        height: 150px;
    }

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

    .home-section {
        width: calc(100% + 40px);
        margin-left: -20px;
        margin-right: -20px;
        padding: 40px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-feature-card,
    .home-button {
        transition: none;
    }
}
