/* ─── SHARED COMPONENTS ───────────────────────────────────────────────────
   Переиспользуемые UI-компоненты: кнопки, типографика, карточки.
   Используются: лендинг + все статьи.
   ─────────────────────────────────────────────────────────────────────── */

/* ── Buttons ── */

.btn-ghost {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 600;
    color: var(--text-2);
    transition: background var(--t-fast), color var(--t-fast);
}

.btn-ghost:hover {
    background: var(--light-bg);
    color: var(--text-1);
}

.btn-solid {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 600;
    background: var(--teal);
    color: var(--white);
    transition: background var(--t-fast), transform var(--t-fast);
}

.btn-solid:hover {
    background: var(--teal-dark);
    transform: translateY(-1px);
}

/* Hero CTA — крупная кнопка с анимацией */
.btn-hero {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 36px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(135deg, #1B7A94, #0d5268);
    overflow: hidden;
    animation: heroPulse 3s ease-in-out infinite;
    transition: transform var(--t-base), box-shadow var(--t-base);
}

.btn-hero::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 55%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
    transition: left 0s;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(27,122,148,.6);
    animation: none;
}

.btn-hero:hover::after {
    left: 160%;
    transition: left .55s ease;
}

.btn-hero:active {
    transform: translateY(0);
}

@keyframes heroPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(27,122,148,.45); }
    50%       { box-shadow: 0 0 0 14px rgba(27,122,148,0); }
}

/* Final CTA — крупная кнопка в тёмной секции */
.btn-final {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 56px;
    border-radius: 16px;
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--white);
    background: linear-gradient(135deg, #1B7A94, #0d5268);
    overflow: hidden;
    animation: finalPulse 3s ease-in-out infinite;
    transition: transform var(--t-base), box-shadow var(--t-base);
}

.btn-final::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 55%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
    transition: left 0s;
}

.btn-final:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 44px rgba(27,122,148,.65);
    animation: none;
}

.btn-final:hover::after {
    left: 160%;
    transition: left .6s ease;
}

.btn-final:active {
    transform: translateY(0);
}

@keyframes finalPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(27,122,148,.5); }
    50%       { box-shadow: 0 0 0 18px rgba(27,122,148,0); }
}

/* Demo CTA — кнопка-обводка */
.btn-demo-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    border: 2px solid var(--teal);
    color: var(--teal);
    font-size: 1rem;
    font-weight: 700;
    transition: all var(--t-base);
}

.btn-demo-cta:hover {
    background: var(--teal);
    color: var(--white);
    transform: translateY(-2px);
}

/* Quiz register CTA */
.btn-quiz-reg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    background: var(--teal);
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    transition: background var(--t-fast), transform var(--t-fast);
}

.btn-quiz-reg:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
}

/* Article CTA primary button */
.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    background: var(--white);
    color: var(--teal-dark);
    border-radius: 10px;
    font-size: .9375rem;
    font-weight: 700;
    transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

/* ── Section title ── */

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.375rem);
    font-weight: 800;
    letter-spacing: -.035em;
    color: var(--text-1);
    margin-bottom: 60px;
    text-align: center;
}

/* ── Highlight card (.rcard) ── */

.rcard {
    border-radius: 20px;
    padding: 28px 32px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    overflow: hidden;
    transition: transform var(--t-base) ease, box-shadow var(--t-base) ease;
}

.rcard--green  { background: linear-gradient(135deg, #c5e4b8 0%, #dff0d6 60%, #eaf5e4 100%); }
.rcard--orange { background: linear-gradient(135deg, #fcdcac 0%, #fdecd0 60%, #fef5e6 100%); }

.rcard-content {
    flex: 1;
    min-width: 0;
}

.rcard-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #0A3A4D;
    margin-bottom: 10px;
    line-height: 1.2;
}

.rcard-transcription {
    font-size: .8rem;
    font-weight: 400;
    color: var(--text-2);
    letter-spacing: 0;
    margin-left: 5px;
}

.rcard-translation {
    display: inline-block;
    background: rgba(0,0,0,.11);
    color: var(--text-1);
    font-size: 1rem;
    font-weight: 600;
    padding: 5px 16px;
    border-radius: 50px;
    margin-bottom: 18px;
    line-height: 1.1;
}

.rcard-quote {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.rcard-quote-icon {
    color: rgba(0,0,0,.25);
    font-size: 16px;
    flex-shrink: 0;
    line-height: 1.7;
}

.rcard-quote-text {
    font-size: 1rem;
    color: #1a202c;
    line-height: 1.6;
    margin: 0;
}

.rcard-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rcard-tag {
    border: 1.5px solid rgba(0,0,0,.15);
    border-radius: 50px;
    padding: 3px 12px;
    font-size: .75rem;
    color: var(--text-1);
}

.rcard-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding-top: 2px;
}

.btn-add {
    background: var(--teal);
    color: var(--white);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-remove {
    background: transparent;
    color: rgba(10,58,77,.4);
    border: 1.5px solid rgba(10,58,77,.22);
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 18px;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-family: inherit;
}

/* ── Slider arrows ── */

.slider-arrows {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    justify-content: flex-end;
}

.arrow-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-2);
    transition: all var(--t-fast);
}

.arrow-btn:hover {
    border-color: var(--teal);
    color: var(--teal);
}
