:root {
	--primary: #4d1884;
	--accent: #c44536;
	--ink: #1e1e2a;
	--ink-soft: #4a4a5e;
	--line: #d8d4ce;
	--line-soft: #eae6e0;
	--qr-bg: #f4f1ec;
    --panel-bg: #faf9fd;
    --panel-bg-alt: #f7f4f0;
    --border-soft: rgba(11, 79, 108, 0.08);
	
	--step-icon-size: 3.4rem;
    --timeline-line-x: 50%;           /* десктоп: по центру */
    --timeline-line-x-mobile: 28px;   /* мобильный: слева */
}

.help-container {
	max-width: 980px;
	margin: 0 auto;
	padding: 0 20px;
}
		
/* ===== HERO ===== */
.hero {
    padding: 20px 0 clamp(2.5rem, 6vw, 4rem);
    text-align: center;
    background-color: var(--panel-bg);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    position: relative;
}


/* левая колонка — тексты */
.hero-text {
    text-align: right;
}

.hero-text h1 {
    font-family: Verdana, sans-serif;
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.07em;
    color: var(--primary);
    margin: 0 0 1rem;
}

.hero-text h1 em {
    font-style: normal;
    color: var(--accent);
}

.hero-text .hero-sub {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: var(--ink-soft);
    /*max-width: 360px;*/
    margin: 0;
}

.hero-text em {
    padding: 10px 0px;
}

.hero-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    /*gap: 1.25rem;*/
    position: relative;
    z-index: 1;
}

.hero-side .btn-donate {
    width: 220px;
    text-align: center;
}


/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(0.5rem, 2vw, 1rem);
}

/* центральная пунктирная линия */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--timeline-line-x);
    width: 2px;
    margin-left: -1px;
    background-image: linear-gradient(to bottom, var(--line) 55%, transparent 55%);
    background-size: 2px 14px;
    background-repeat: repeat-y;
    z-index: 0;
}

.step {
    position: relative;
    display: flex;
    z-index: 1;
}

.step:last-of-type {
    margin-bottom: 0;
}

.step.left  { justify-content: flex-start; }
.step.right { justify-content: flex-end; }

.step-content {
    width: calc(50% - 3rem);
    max-width: 460px;
    margin-top: calc(var(--step-icon-size) / 2 * -1);
    padding-top: var(--step-icon-size);
}

.step.left  .step-content { text-align: right; }
.step.right .step-content { text-align: left; }

.step h3 {
    font-family: Verdana, sans-serif;
    font-size: clamp(1.15rem, 2.8vw, 1.5rem);
    color: var(--primary);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 0.4rem;
}

.step p {
    font-size: clamp(0.95rem, 2.2vw, 1.05rem);
    color: var(--ink-soft);
    line-height: 1.5;
    margin: 0;
}

.step p strong {
    color: var(--accent);
    font-weight: 600;
}

.step-icon {
    position: absolute;
    left: var(--timeline-line-x);
    top: 0;
    transform: translate(-50%, 30%);
    width: var(--step-icon-size);
    height: var(--step-icon-size);
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    border: 2px solid currentColor;
    box-shadow: 0 0 0 6px #ffffff;
}

.step-icon svg {
    width: 1.8rem;
    height: 1.8rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.step:nth-of-type(1) .step-icon { color: #61a093; } /* мятный           */
.step:nth-of-type(2) .step-icon { color: #e67e22; } /* оранжевый        */
.step:nth-of-type(3) .step-icon { color: #7631be; } /* фиолетовый       */
.step:nth-of-type(4) .step-icon { color: #2a9d8f; } /* тёмно-бирюзовый  */
.step:nth-of-type(5) .step-icon { color: #c44536; } /* красно-коричневый */
.step:nth-of-type(6) .step-icon { color: #4d1884; } /* тёмно-фиолетовый */

/* ===== CTA ===== */
.cta {
	padding: clamp(2rem, 8vw, 3rem) 0 clamp(2.5rem, 6vw, 3.5rem);
	border-top: 1px solid var(--line-soft);
	margin-top: clamp(2rem, 6vw, 4rem);
}

.cta-inner {
	display: grid;
	grid-template-columns: 1fr;
	/*gap: 2.5rem;*/
	align-items: center;
}

@media (min-width: 760px) {
	.cta-inner {
		grid-template-columns: 1fr auto;
		gap: 3.5rem;
	}
}

.cta-text h2 {
	font-size: clamp(1.6rem, 4.5vw, 2.3rem);
	color: var(--primary);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
	margin-bottom: 1rem;
}

.cta-text p {
	/*font-size: clamp(1rem, 2.4vw, 1.15rem);*/
	color: var(--ink-soft);
	margin-bottom: 1.8rem;
	max-width: 520px;
}

.btn-donate, .btn-donate:visited {
	display: inline-block;
	background-color: var(--accent);
	color: #ffffff;
	font-weight: 700;
	padding: 1rem 2.6rem;
	border-radius: 100px;
	font-size: 1.15rem;
	text-decoration: none;
	letter-spacing: 0.01em;
	transition: background-color 0.2s ease, transform 0.15s ease;
	border: none;
	cursor: pointer;
	box-shadow: 0 8px 20px -6px rgba(196, 69, 54, 0.5);
}

.btn-donate:hover {
	color: #ffffff;
	background-color: #a83a2c;
	transform: translateY(-2px);
}

.qr-box {
	background: #f0ebf9;
	border: 2px dashed #d9c9ee;
	border-radius: 24px;
	padding: 1.8rem;
	text-align: center;
	width: 220px;
	margin: 0 auto 20px;
}

.qr-placeholder {
	/*width: 150px;
	height: 150px;*/
	margin: 0 auto 1rem;
	background-color: #ffffff;
	border-radius: 12px;
	box-shadow: inset 0 0 0 8px #ffffff, inset 0 0 0 10px var(--line-soft);
	position: relative;
}


.qr-label {
	font-size: 0.9rem;
	color: var(--ink-soft);
	font-weight: 500;
}


/* ===== АДАПТИВ ===== */
@media (max-width: 680px) {

    .timeline::before {
        left: 48px;
        margin-left: -1px;
    }

    .step,
    .step.left,
    .step.right {
        justify-content: flex-start;
        padding-left: calc(var(--timeline-line-x-mobile) + var(--step-icon-size) / 2 + 1rem);
    }

    .step-content {
        width: 100%;
        max-width: none;
        text-align: left;
        margin-top: calc(var(--step-icon-size) / 2 * -1);
        padding-top: var(--step-icon-size);
    }

    .step.left .step-content { text-align: left; }

    .step-icon {
        left: var(--timeline-line-x-mobile);
        top: 0;
        transform: translate(-50%, 30%);
        width: var(--step-icon-size);
        height: var(--step-icon-size);
        box-shadow: 0 0 0 5px #ffffff;
    }

    .step-icon svg {
        width: 1.6rem;
        height: 1.6rem;
    }

    .cta-inner { text-align: center; }
    .cta-text p { margin-left: auto; margin-right: auto; }
    .btn-donate { width: 100%; max-width: 220px; }


    .hero-inner {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text h1 {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .hero-text .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-side {
        width: 100%;
    }

    .hero-side .btn-donate {
        width: 100%;
        max-width: 220px;
    }
}

@media (max-width: 400px) {
	.help-container {
		padding: 0 20px;
	}
	.qr-box {
		width: 100%;
		max-width: 240px;
	}
}

.legal-note {
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--ink-soft);
    margin: 0.75rem 0 0;
    max-width: 260px;
}

.legal-note a,
.legal-note a:hover,
.legal-note a:visited {
    color: var(--primary)
    text-decoration: none;
    border-bottom: 1px solid rgba(77, 24, 132, 0.3);
    transition: border-color 0.15s, color 0.15s;
}

.legal-note a:hover {
    color: var(--accent);
}