/* SEO-разделы alefbet.tech: /slovar/ /dictionary/ /sleng/ /temy/ /alfavit/ /glagoly/.
   Дополняет styles.css (палитра бренда в :root там же). */

.sl-main {
    max-width: 760px;
    margin: 0 auto;
    padding: 44px 24px 88px;
    font-family: 'Rubik', -apple-system, sans-serif;
}
.sl-main [lang="he"] { font-family: 'Noto Sans Hebrew', 'Rubik', sans-serif; }

/* кнопка «Скачать» в светлом наве */
.btn-nav-dl {
    background: var(--primary-purple);
    color: #fff;
    border-radius: 11px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}
.btn-nav-dl:hover { background: #463DA3; }

/* ---------- заголовки ---------- */
.sl-breadcrumb { font-size: 13px; color: var(--text-secondary); margin-bottom: 18px; }
.sl-breadcrumb a { color: var(--primary-purple); text-decoration: none; }
.sl-breadcrumb a:hover { text-decoration: underline; }
.sl-main h1 {
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: var(--primary-dark);
    margin-bottom: 26px;
    line-height: 1.25;
}
.sl-main h2 {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: var(--primary-purple);
    margin: 44px 0 16px;
}
.sl-main h2::after { content: ""; flex: 1; height: 1px; background: #E4E1F5; }
.sl-lead { font-size: 16px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 24px; max-width: 620px; }
.sl-lead a { color: var(--primary-purple); }
.sl-note { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin: 14px 0; }

/* ---------- карточка-флешкарта ---------- */
.sl-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(140deg, #171130 0%, #2A2058 45%, #534AB7 100%);
    color: #fff;
    border-radius: 22px;
    padding: 38px 32px 34px;
    text-align: center;
    box-shadow: 0 24px 60px -24px rgba(26, 20, 51, 0.55);
}
.sl-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 70% 20%, rgba(127, 119, 221, 0.45), transparent 55%);
    pointer-events: none;
}
.sl-ghost {
    position: absolute;
    top: 50%;
    right: -14px;
    transform: translateY(-54%);
    font-family: 'Noto Sans Hebrew', sans-serif;
    font-size: 210px;
    font-weight: 300;
    line-height: 1;
    color: rgba(255, 255, 255, 0.05);
    pointer-events: none;
    user-select: none;
}
.sl-card > *:not(.sl-ghost) { position: relative; }
.sl-chips { display: flex; gap: 8px; justify-content: center; margin-bottom: 18px; }
.sl-chip {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.sl-he-row { display: flex; align-items: center; justify-content: center; gap: 16px; }
.sl-he { font-size: 58px; font-weight: 300; line-height: 1.25; }
.sl-ru { font-size: 21px; font-weight: 500; margin-top: 10px; }
.sl-tr { font-size: 16px; font-style: italic; opacity: 0.78; margin-top: 5px; }
.sl-en { font-size: 13px; opacity: 0.6; margin-top: 10px; }
.sl-root {
    margin-top: 20px;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 16px;
    font-size: 16px;
}
.sl-root-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.8px; opacity: 0.7; }

/* кнопка озвучки */
.play {
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.play:hover { background: rgba(255, 255, 255, 0.25); transform: scale(1.06); }
.play:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.play.playing { background: var(--gold); border-color: var(--gold); }
.play svg { margin-left: 2px; }
.play-inline {
    width: 34px; height: 34px;
    border: 1px solid #E4E1F5;
    background: var(--light-purple);
    color: var(--primary-purple);
}
.play-inline:hover { background: #E2DFFB; }

/* ---------- глагольные формы ---------- */
.sl-binyan { font-size: 14px; color: var(--text-secondary); margin-bottom: 12px; }
.sl-binyan b { color: var(--primary-dark); font-weight: 600; }
.sl-tenses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sl-tense {
    background: var(--bg-secondary, #F8F7FF);
    border: 1px solid #ECEAF8;
    border-radius: 14px;
    padding: 16px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 20px;
    color: var(--primary-dark);
}
.sl-tense-label { font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; color: var(--text-secondary); }

/* ---------- примеры ---------- */
.sl-example {
    background: var(--light-purple);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 10px;
}
.sl-example-he { font-size: 19px; color: var(--primary-dark); margin-bottom: 7px; line-height: 1.6; }
.sl-example-ru { font-size: 14px; color: #3C3489; line-height: 1.5; }

/* ---------- чипы-ссылки (однокоренные, связанные, подборки) ---------- */
.sl-links { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.sl-links li { margin: 0; }
.sl-links a {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    background: #fff;
    border: 1px solid #E4E1F5;
    border-radius: 999px;
    padding: 8px 15px;
    font-size: 14px;
    color: var(--primary-dark);
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}
.sl-links a:hover { border-color: var(--primary-purple); background: var(--light-purple); }
.sl-links a [lang="he"] { color: var(--primary-purple); font-size: 15px; }

/* ---------- CTA-баннер с бейджем App Store ---------- */
.cta-band {
    position: relative;
    overflow: hidden;
    margin-top: 46px;
    background: linear-gradient(140deg, #171130, #534AB7);
    border-radius: 20px;
    padding: 28px 30px;
    color: #fff;
}
.cta-band-alef {
    position: absolute;
    top: 50%; right: -6px;
    transform: translateY(-50%);
    font-family: 'Noto Sans Hebrew', sans-serif;
    font-size: 150px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}
.cta-band-inner {
    position: relative;
    display: flex;
    gap: 22px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.cta-band p { font-size: 14.5px; line-height: 1.65; color: rgba(255, 255, 255, 0.85); max-width: 430px; }
.cta-band p strong { color: #fff; }

.as-badge {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    background: #000;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 13px;
    padding: 10px 20px 10px 16px;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
}
.as-badge:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.5); }
.as-badge-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.as-badge-top { font-size: 10.5px; opacity: 0.8; }
.as-badge-bottom { font-size: 18px; font-weight: 500; letter-spacing: 0.2px; }

/* ---------- индексы разделов ---------- */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin: 20px 0 8px;
}
.hub-card {
    display: block;
    background: #fff;
    border: 1px solid #E4E1F5;
    border-radius: 16px;
    padding: 20px;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.hub-card:hover {
    border-color: var(--primary-purple);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -18px rgba(83, 74, 183, 0.4);
}
.hub-card-he {
    font-family: 'Noto Sans Hebrew', sans-serif;
    font-size: 30px;
    font-weight: 300;
    color: var(--primary-purple);
    margin-bottom: 8px;
    display: block;
}
.hub-card-title { font-size: 15.5px; font-weight: 600; color: var(--primary-dark); margin-bottom: 4px; }
.hub-card-sub { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* список слов в подборке / индексе */
.sl-wordlist { list-style: none; padding: 0; margin: 6px 0 10px; }
.sl-wordlist li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 4px;
    border-bottom: 1px solid #EFEDFA;
    font-size: 15px;
}
.sl-wordlist [lang="he"] {
    font-size: 21px;
    font-weight: 300;
    color: var(--primary-dark);
    min-width: 110px;
    text-align: right;
}
.sl-wordlist .wl-ru { color: var(--primary-dark); font-weight: 500; }
.sl-wordlist .wl-ru a { color: inherit; text-decoration: none; }
.sl-wordlist .wl-ru a:hover { color: var(--primary-purple); }
.sl-wordlist .wl-tr { color: var(--text-secondary); font-style: italic; font-size: 13.5px; }

/* алфавитная навигация и колоночные списки старого индекса */
.sl-letters { margin: 18px 0 6px; line-height: 2.2; }
.sl-letters a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    margin: 0 4px 4px 0;
    border: 1px solid #E4E1F5;
    border-radius: 10px;
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}
.sl-letters a:hover { background: var(--light-purple); border-color: var(--primary-purple); }
.sl-related, .sl-index-list { list-style: none; padding: 0; columns: 2; column-gap: 24px; }
.sl-related li, .sl-index-list li { margin-bottom: 9px; font-size: 15px; }
.sl-related a, .sl-index-list a { color: var(--primary-purple); text-decoration: none; }
.sl-related a:hover, .sl-index-list a:hover { text-decoration: underline; }

/* ---------- алфавит ---------- */
.al-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 12px;
    margin: 20px 0;
}
.al-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: #fff;
    border: 1px solid #E4E1F5;
    border-radius: 14px;
    padding: 16px 8px 12px;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}
.al-cell:hover { border-color: var(--primary-purple); transform: translateY(-2px); }
.al-cell-he { font-family: 'Noto Sans Hebrew', sans-serif; font-size: 34px; font-weight: 300; color: var(--primary-dark); }
.al-cell-name { font-size: 12px; font-weight: 500; color: var(--text-secondary); }
.al-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; }
.al-fact {
    background: var(--bg-secondary, #F8F7FF);
    border: 1px solid #ECEAF8;
    border-radius: 14px;
    padding: 14px;
    text-align: center;
}
.al-fact-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-secondary); display: block; margin-bottom: 6px; }
.al-fact-value { font-size: 18px; color: var(--primary-dark); font-weight: 500; }
.al-fact-value[lang="he"] { font-size: 24px; font-weight: 300; }

/* ---------- сленг ---------- */
.sg-origin { font-size: 13px; color: var(--text-secondary); font-style: italic; margin: 14px 0 0; }
.sg-body { font-size: 15.5px; line-height: 1.75; color: #3A3654; margin: 14px 0; }
.sg-body b { color: var(--primary-dark); }

/* ---------- пагинация/навигация низа ---------- */
.sl-backlinks { margin-top: 34px; font-size: 14px; }
.sl-backlinks a { color: var(--primary-purple); text-decoration: none; margin-right: 18px; }
.sl-backlinks a:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .sl-main { padding: 32px 18px 64px; }
    .sl-main h1 { font-size: 24px; }
    .sl-he { font-size: 42px; }
    .sl-ghost { font-size: 150px; }
    .sl-tenses { grid-template-columns: 1fr; }
    .sl-related, .sl-index-list { columns: 1; }
    .sl-wordlist [lang="he"] { min-width: 84px; font-size: 19px; }
    .cta-band-inner { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    .sl-main *, .as-badge, .hub-card, .al-cell { transition: none !important; }
}
