/* ================================================================
   AHNAF.KZ — HOME CSS
   Секции главной страницы. Зависит от layout.css (переменные).
================================================================ */

/* ── Общие утилиты секций (DRY) ────────────────────────────── */
.section { padding: 26px 0; }
@media (max-width: 600px) { .section { padding: 20px 0; } }

.section__head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}
@media (max-width: 600px) { .section__head { margin-bottom: 18px; } }

.section__head-text { display: flex; flex-direction: column; gap: 6px; }
.section__eyebrow {
    font-size: 10.5px; font-weight: 400;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--teal);
}
.section__title {
    font-family: var(--font-display);
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 400;
    color: var(--ink);
    line-height: 1.1;
}
.section__subtitle { font-size: 13px; color: var(--muted); }
.section__center-btn { display: flex; justify-content: center; margin-top: 28px; }

/* Кнопка-контур (DRY) */
.btn-outline {
    display: inline-flex; align-items: center;
    padding: 9px 20px;
    border: 1.5px solid var(--teal);
    border-radius: 22px;
    font-size: 13px; font-weight: 600;
    color: var(--teal);
    white-space: nowrap;
    transition: background var(--tr), color var(--tr);
}
.btn-outline:hover { background: var(--teal); color: #fff; }

/* Кнопка-заливка с иконкой слева (DRY: sadaka, ai, kaspi) */
.btn-fill {
    display: inline-flex; align-items: center; gap: 10px;
    width: fit-content;
    background: var(--teal);
    color: #fff;
    font-size: 14px; font-weight: 500;
    padding: 11px 24px;
    border-radius: 24px;
    transition: background var(--tr), opacity var(--tr);
}
.btn-fill:hover { background: var(--teal-dark); }
.btn-fill img { width: 18px; height: 18px; }

/* Play-кнопка по центру превью (DRY: lesson, namaz-video) */
.play-btn {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 46px; height: 46px;
    background: rgba(255,255,255,.92);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--teal);
    padding-left: 3px;
    transition: transform var(--tr), background var(--tr);
}
.is-hoverable:hover .play-btn { transform: translate(-50%, -50%) scale(1.1); background: #fff; }

/* ── Фоновый орнамент (back-filler.png), еле заметный ───────── */
.ornament {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    background: url('../imgs/back-filler.png') no-repeat center / contain;
    opacity: .04;
    filter: blur(1px);
}
.ornament--tr { top: -60px;  right: -80px;  width: 360px; height: 360px; }
.ornament--bl { bottom: -80px; left: -100px; width: 420px; height: 420px; }
@media (max-width: 768px) {
    .ornament { opacity: .03; }
    .ornament--tr { width: 220px; height: 220px; right: -60px; }
    .ornament--bl { width: 260px; height: 260px; left: -70px; }
}

/* ════════════════════════════════════════════════════════════
   HERO (slider + sub-blocks)
════════════════════════════════════════════════════════════ */
.hero-wrap {
    margin: 10px 8px 0;
    padding: 0 0 16px 0;
    border-radius: var(--r-lg);
    overflow: hidden;
    background-image: linear-gradient(to top, var(--teal) 35%, rgba(255,255,255,0) 50%);
}
@media (min-width: 768px) {
    .hero-wrap { margin: 12px auto 0; max-width: var(--container); }
}

/* ── Slider ── */
.hero {
    position: relative;
    margin: 12px;
    border-radius: var(--r-lg);
    height: 62vh;
    min-height: 420px;
    max-height: 540px;
    overflow: hidden;
}
@media (min-width: 768px) {
    .hero {
        margin: 20px;
        min-height: 80vh;
        max-height: 100vh;
        height: 95vh;
    }
}

.hero__track { position: relative; width: 100%; height: 100%; }

.hero__slide {
    position: absolute; inset: 0;
    opacity: 0;
    transition: opacity .8s ease;
    pointer-events: none;
}
.hero__slide.is-active { opacity: 1; pointer-events: auto; }

/* Мягкий слайдер — БЕЗ transform/scale на фото */
.hero__bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    border-radius: var(--r-lg);
}
.hero__bg--empty { background: var(--teal-dark); }

.hero__overlay {
    position: absolute; inset: 0;
    border-radius: var(--r-lg);
    background: linear-gradient(180deg,
        rgba(7,52,51,0.85) 0%,
        rgba(3,45,44,0.10) 33%,
        rgba(2,28,28,0.20) 66%,
        rgba(1,31,30,0.90) 88%);
}

.hero__content {
    position: absolute;
    bottom: 22px; left: 0; right: 0;
    padding: 0 22px;
    display: flex; flex-direction: column; gap: 6px;
    z-index: 2;
}
@media (min-width: 768px) { .hero__content { padding: 0 28px; bottom: 50px; right: 220px; } }

.hero__date {
    font-size: 11px; font-weight: 400;
    letter-spacing: .08em; text-transform: uppercase;
    color: rgba(255,255,255,.75);
    opacity: 0;
    transition: opacity .5s ease .35s;
}
.hero__slide.is-active .hero__date { opacity: 1; }

.hero__title {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(18px, 3.2vw, 38px);
    font-weight: 400;
    color: #fff;
    line-height: 1.18;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .3s ease , transform .5s ease .2s;
}
.hero__slide.is-active .hero__title { opacity: 1; transform: translateY(0); }
.hero__title:hover { opacity: 0.75 !important; }
@media (max-width:768px) {
    .hero__title{
        padding:0 0 20px 0;
    }
    
}


.hero__readmore {
    position: absolute;
    right: 28px; bottom: 28px;
    display: none; align-items: center;
    padding: 11px 22px;
    background: #fff;
    color: var(--teal-dark);
    font-size: 13px; font-weight: 600;
    border-radius: 22px;
    z-index: 2;
    opacity: 0;
    transition: transform var(--tr), box-shadow var(--tr);
}
.hero__slide.is-active .hero__readmore { opacity: 1; transition: opacity .5s ease .45s, transform var(--tr); }
.hero__readmore:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
@media (min-width: 768px) { .hero__readmore { display: inline-flex; } }

/* Категория chip */
.hero__cat-chip {
    position: absolute;
    top: 18px; left: 18px;
    display: flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,.25);
    backdrop-filter: blur(6px);
    border-radius: 22px;
    padding: 7px 14px;
    z-index: 5;
    overflow: hidden;
    max-width: 70%;
}
@media (min-width: 768px) { .hero__cat-chip { top: 24px; left: 28px; } }
.hero__cat-dot { width: 6px; height: 6px; background: #fff; border-radius: 50%; flex-shrink: 0; }
.hero__cat-text {
    font-size: 11px; font-weight: 400;
    letter-spacing: .1em; text-transform: uppercase;
    color: #fff;
    white-space: nowrap; overflow: hidden;
    max-width: 240px;
    transition: max-width .4s ease, opacity .35s ease, transform .35s ease;
}
.hero__cat-text.is-hiding { max-width: 0; opacity: 0; transform: translateX(-12px); }

/* Стрелки */
.hero__arrows { position: absolute; top: 16px; right: 16px; display: flex; gap: 6px; z-index: 5; }
@media (min-width: 768px) { .hero__arrows { top: 24px; right: 28px; } }
.hero__arrow {
    width: 34px; height: 34px;
    background: rgba(255,255,255,.25);
    backdrop-filter: blur(6px);
    border-radius: 50%;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--tr);
}
.hero__arrow:hover { background: rgba(255,255,255,.4); }

/* Точки */
.hero__dots { position: absolute; bottom: 20px; left: 22px; display: flex; gap: 6px; z-index: 5; }
@media (min-width: 768px) { .hero__dots { left: 28px; bottom: 28px; } }
.hero__dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    padding: 0;
    transition: width .35s ease, background .35s ease, border-radius .35s ease;
}
.hero__dot.is-active { width: 22px; border-radius: 3px; background: #fff; }

/* ── Sub-blocks: мүфти + хабарландыру ── */
.hero-sub { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 22px; background: var(--teal); }
@media (min-width: 768px) { .hero-sub { padding: 22px 40px; } }

.hero-sub__row { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 860px) { .hero-sub__row { grid-template-columns: 1fr 1fr; gap: 40px; } }

.hero-sub__block--mufti {
    display: flex; align-items: center; gap: 16px;
    border-right: 1px solid rgba(255,255,255,.12);
    padding-right: 32px;
}
.hero-sub__block--alert {
    display: flex; flex-direction: column; justify-content: center;
    gap: 12px;
    padding-left: 8px;
}
@media (max-width: 859px) {
    .hero-sub__block--mufti {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,.12);
        padding-right: 0; padding-bottom: 18px;
    }
    .hero-sub__block--alert { padding-left: 0; padding-top: 4px; }
}

.hero-sub__avatar {
    width: 84px; height: 84px;
    border-radius: var(--r-md);
    border: 2px solid rgba(255,255,255,.25);
    object-fit: cover;
    flex-shrink: 0;
}
@media (max-width: 480px) { .hero-sub__avatar { width: 64px; height: 64px; } }
.hero-sub__info { display: flex; flex-direction: column; gap: 3px; }
.hero-sub__name { font-size: 14.5px; font-weight: 400; color: #fff; }
.hero-sub__desc { font-size: 12px; color: rgba(255,255,255,.6); line-height: 1.45; }
.hero-sub__link {
    font-size: 10.5px; font-weight: 400;
    letter-spacing: .08em;
    color: var(--teal-light);
    text-decoration: underline; text-underline-offset: 3px;
    margin-top: 4px;
    width: fit-content;
    transition: color var(--tr);
}
.hero-sub__link:hover { color: #fff; }
.hero-sub__link--right { align-self: flex-end; }
@media (max-width: 859px) { .hero-sub__link--right { align-self: flex-start; } }

.hero-sub__alert {
    display: flex; align-items: flex-start; gap: 12px;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: var(--r-md);
    padding: 14px 16px;
    transition: background var(--tr);
}
.hero-sub__alert:hover { background: rgba(255,255,255,.16); }
.hero-sub__bell {
    width: 26px; height: 26px;
    background: var(--gold);
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
.hero-sub__alert-text { font-size: 13px; font-weight: 500; color: #fff; line-height: 1.45; }

/* ── Prayer bar ── */
.prayer-wrap { margin-top: -20px; padding: 0 20px; background: none; }

@media (max-width: 767px) {
    /* Главный hero-wrap: убираем нижний отступ на мобиле */
    .hero-wrap:not(.prayer-wrap) { padding-bottom: 0; }

    /* prayer-wrap: убираем отрицательный margin и внутренние отступы,
       ширина будет как у верхней секции (от margin: 8px автоматически) */
    .prayer-wrap {
        margin-top: 0;
        padding: 0;
    }
}

.prayer-bar { background: var(--teal-dark); padding: 16px 22px; border-radius: var(--r-lg); }
@media (min-width: 768px) { .prayer-bar { padding: 18px 40px; } }

.prayer-bar__inner { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 1000px) { .prayer-bar__inner { flex-direction: row; align-items: center; gap: 28px; } }

.prayer-bar__head { display: flex; flex-direction: column; gap: 1px; flex-shrink: 0; }
.prayer-bar__eyebrow {
    font-size: 9.5px; font-weight: 400;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--teal-light);
}
.prayer-bar__city { font-family: var(--font-display); font-size: 19px; font-weight: 400; color: #fff; }
.prayer-bar__date { font-size: 11px; color: rgba(255,255,255,.5); }

.prayer-bar__times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; flex: 1; }
@media (min-width: 700px) { .prayer-bar__times { grid-template-columns: repeat(6, 1fr); } }

.prayer-bar__item {
    padding: 8px 12px;
    border-left: 1px solid rgba(255,255,255,.14);
    display: flex; flex-direction: column; gap: 2px;
}
@media (max-width: 699px) {
    .prayer-bar__item:nth-child(3n+1) { border-left: none; }
}
.prayer-bar__item.is-active {
    background: rgba(255,255,255,.08);
    border-left: 3px solid var(--gold);
    border-radius: var(--r-sm);
}
.prayer-bar__name {
    font-size: 9px; font-weight: 400;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--teal-light);
    white-space: nowrap;
}
.prayer-bar__item.is-active .prayer-bar__name { color: var(--gold); }
.prayer-bar__time {
    font-size: 23px; font-weight: 500;
    color: #FAFAF7; line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
@media (max-width: 480px) { .prayer-bar__time { font-size: 19px; } }

.prayer-bar__btn {
    flex-shrink: 0;
    display: inline-flex; align-items: center;
    padding: 10px 20px;
    border: 1.5px solid rgba(255,255,255,.3);
    border-radius: 22px;
    font-size: 12.5px; font-weight: 600;
    color: #fff;
    align-self: flex-start;
    transition: background var(--tr), border-color var(--tr);
}
@media (min-width: 1000px) { .prayer-bar__btn { align-self: center; } }
.prayer-bar__btn:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); }

/* ── Divider с ромбом ── */
.divider { position: relative; height: 1px; background: var(--teal-light); margin: 36px auto; }
@media (max-width: 600px) { .divider { margin: 24px auto; } }
.divider__diamond {
    position: absolute; left: 50%; top: 50%;
    width: 10px; height: 10px;
    background: var(--bg);
    border: 1.5px solid var(--teal);
    transform: translate(-50%, -50%) rotate(45deg);
}

/* ════════════════════════════════════════════════════════════
   МАҢЫЗДЫ АҚПАРАТ
════════════════════════════════════════════════════════════ */
.important { padding: 6px 0 26px; }
.important__card {
    position: relative;
    overflow: hidden;
    background: var(--mint-soft);
    border-radius: var(--r-xl);
    padding: 32px 28px;
}
@media (min-width: 768px) { .important__card { padding: 40px; } }
.important__card > * { position: relative; z-index: 1; }

.important__grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 768px) { .important__grid { grid-template-columns: repeat(3, 1fr); } }

.important__item {
    display: flex; flex-direction: column; gap: 14px;
    background: var(--white);
    border-radius: var(--r-md);
    padding: 22px 22px 18px;
    transition: transform var(--tr), box-shadow var(--tr);
}
.important__item:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.important__title { font-size: 15px; font-weight: 400; color: var(--ink); line-height: 1.4; }
.important__date {
    font-size: 10.5px; font-weight: 600;
    letter-spacing: .06em;
    color: var(--teal);
    border-top: 1px solid var(--cream-2);
    padding-top: 12px;
    margin-top: auto;
}

/* ════════════════════════════════════════════════════════════
   СОҢҒЫ ЖАҢАЛЫҚТАР
════════════════════════════════════════════════════════════ */
.news { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 900px) { .news { grid-template-columns: 1fr 1fr; gap: 24px; } }

.news__featured {
    display: flex; flex-direction: column;
    background: var(--white);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--sh-card);
    transition: transform var(--tr);
}
.news__featured:hover { transform: translateY(-3px); }
.news__featured-img {  overflow: hidden; }
.news__featured-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/10; transition: transform .5s ease; }
.news__featured:hover .news__featured-img img { transform: scale(1.02); }
.news__featured-body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; flex: 1; }
.news__featured-title { font-size: 19px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.news__featured-excerpt { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* На десктопе featured занимает всю высоту (фото-зона тянется) */
@media (min-width: 900px) {
    .news__featured-img { aspect-ratio: unset; min-height: 320px; }
    .news__featured-body { justify-content: center; padding: 28px; }
}
@media (max-width: 899px) {
    .news__featured-img { aspect-ratio: 16/9; }
}

.news__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 420px) { .news__grid { grid-template-columns: 1fr; } }

.news__card {
    display: flex; flex-direction: column;
    background: var(--white);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--sh-card);
    transition: transform var(--tr);
}
.news__card:hover { transform: translateY(-2px); }
.news__card-img { aspect-ratio: 16/10; overflow: hidden; }
.news__card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news__card:hover .news__card-img img { transform: scale(1.02); }
.news__card-body { display: flex; flex-direction: column; gap: 5px; padding: 14px 16px; flex: 1; }
.news__card-title { font-size: 13.5px; font-weight: 700; line-height: 1.35; color: var(--ink); }

/* Категория и дата (DRY для news) */
.news__cat {
    font-size: 9.5px; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--teal);
}
.news__date {
    font-size: 10.5px; color: var(--muted);
    margin-top: auto; padding-top: 6px;
    text-transform: uppercase;
}

/* ════════════════════════════════════════════════════════════
   СҰРАҚ-ЖАУАП
════════════════════════════════════════════════════════════ */
.qa__grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .qa__grid { grid-template-columns: repeat(3, 1fr); } }

.qa__card {
    display: flex; flex-direction: column;
    background: #fff;
    border-radius: var(--r-md);
    box-shadow: var(--sh-card);
    overflow: hidden;
    transition: transform var(--tr);
}
.qa__card:hover { transform: translateY(-3px); }
.qa__img { aspect-ratio: 16/9; overflow: hidden; }
.qa__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.qa__card:hover .qa__img img { transform: scale(1.04); }
.qa__title {
    font-size: 14.5px; font-weight: 600;
    color: var(--ink); line-height: 1.4;
    padding: 16px 20px 8px;
    margin-bottom: auto;
}
.qa__card:hover .qa__title { color: var(--teal); }
.qa__date { font-size: 11.5px; color: var(--muted); padding: 0 20px 20px; text-transform: uppercase; }
/* ════════════════════════════════════════════════════════════
   ДӘРІСТЕР + МАҚАЛАЛАР (two-col)
════════════════════════════════════════════════════════════ */
.two-col { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 800px) { .two-col { grid-template-columns: 1fr 1fr; gap: 20px; } }

.two-col__block {
    background: var(--white);
    border-radius: var(--r-lg);
    padding: 24px 28px;
}
@media (max-width: 480px) { .two-col__block { padding: 20px; } }
@media (max-width: 640px) {
    .two-col__block {
        background: transparent;
        border-radius: 0;
        padding: 0 0 20px 0;
        box-shadow: none;
    }
}

.two-col__head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px;
    border-bottom: 2px solid var(--cream-2);
    padding-bottom: 12px;
}
.two-col__title { font-size: 19px; font-weight: 600; color: var(--ink); }
.two-col__more { font-size: 12px; font-weight: 600; color: var(--teal); transition: opacity var(--tr); }
.two-col__more:hover { opacity: .7; }

.mini-list { display: flex; flex-direction: column; }
.mini-card { display: flex; align-items: center; gap: 20px; padding: 13px 0; transition: background var(--tr); }
@media (max-width: 480px) { .mini-card { gap: 14px; } }
.mini-card__img {
    width: 150px; aspect-ratio: 16/9;
    border-radius: var(--r-sm);
    overflow: hidden;
    flex-shrink: 0;
}
@media (max-width: 480px) { .mini-card__img { width: 100px; } }
.mini-card__img img { width: 100%; height: 100%; object-fit: cover; }
.mini-card__body { display: flex; flex-direction: column; gap: 4px; }
.mini-card__title { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.mini-card:hover .mini-card__title { color: var(--teal); }
.mini-card__date { font-size: 11px; color: var(--muted); text-transform: uppercase; }

/* ════════════════════════════════════════════════════════════
   ҚМДБ ҚЫЗМЕТТЕРІ
════════════════════════════════════════════════════════════ */
.services-section { position: relative; overflow: hidden; background: var(--bg); }
.services-section > .container { position: relative; z-index: 1; }

.services__grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px)  { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services__grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
    background: var(--white);
    border-radius: var(--r-md);
    padding: 22px 24px;
    box-shadow: var(--sh-card);
    transition: transform var(--tr);
}
.service-card:hover { transform: translateY(-3px); }
.service-card__text { display: flex; flex-direction: column; gap: 5px; }
.service-card__name { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.service-card__desc { font-size: 12px; color: var(--muted); line-height: 1.45; }
.service-card__link { font-size: 12px; font-weight: 600; color: var(--teal); margin-top: 4px; }
.service-card__icon { width: 90px; height: 90px; object-fit: contain; flex-shrink: 0; }
@media (max-width: 480px) { .service-card__icon { width: 64px; height: 64px; } }

/* ════════════════════════════════════════════════════════════
   AI USTAZ
════════════════════════════════════════════════════════════ */
.ai-card {
    display: flex; align-items: stretch;
    background: linear-gradient(110deg, var(--teal-deep) 0%, #0e3b4f 45%, #0e3b4f 100%);
    border-radius: var(--r-xl);
    overflow: hidden;
    min-height: 280px;
}
.ai-card__body {
    flex: 1;
    display: flex; flex-direction: column; justify-content: center;
    gap: 14px;
    padding: 36px 30px;
}
@media (min-width: 768px) { .ai-card__body { padding: 48px 56px; } }
.ai-card__badge {
    display: inline-flex; width: fit-content;
    font-size: 10px; font-weight: 400;
    letter-spacing: .12em; text-transform: uppercase;
    color: #fff;
    background: rgba(255,255,255,.14);
    border-radius: 20px;
    padding: 5px 14px;
}
.ai-card__title {
    font-family: var(--font-display);
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 400;
    color: #fff;
}
.ai-card__desc { font-size: 14px; color: rgba(255,255,255,.7); line-height: 1.6; max-width: 380px; }
.ai-card__btn {
    display: inline-flex; align-items: center;
    width: fit-content;
    background: #fff;
    color: var(--teal);
    font-size: 14px; font-weight: 500;
    padding: 10px 32px 10px 12px;
    border-radius: 24px;
    margin-top: 6px;
    transition: opacity var(--tr);
}
.ai-card__btn:hover { opacity: .85; }
.ai-card__btn img { width: 20px; height: 20px; margin-right: 10px; }

.ai-card__img { display: none; width: 44%; position: relative; }
.ai-card__img::before {
    content: '';
    position: absolute; inset: 0; left: 0;
    width: 70%;
    background: linear-gradient(to right, #0e3b4f, transparent);
    z-index: 1;
}
.ai-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
@media (min-width: 768px) { .ai-card__img { display: block; } }

/* ════════════════════════════════════════════════════════════
   ФОТО ГАЛЕРЕЯ
════════════════════════════════════════════════════════════ */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 768px) {
    .gallery { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 200px); }
    .gallery__item--big { grid-column: span 2; grid-row: span 2; }
}
.gallery__item { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4/3; }
@media (min-width: 768px) { .gallery__item { aspect-ratio: auto; } }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery__item:hover img { transform: scale(1.05); }
/* На десктопе 6й элемент скрыт, на мобиле виден */
@media (min-width: 768px) {
    .gallery__item:nth-child(6) { display: none; }
}
/* ════════════════════════════════════════════════════════════
   САДАҚА
════════════════════════════════════════════════════════════ */
.sadaka { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 800px) { .sadaka { grid-template-columns: 1.2fr 1fr; gap: 60px; } }
.sadaka__text { display: flex; flex-direction: column; gap: 14px; }
.sadaka__title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4.5vw, 44px);
    font-weight: 400;
    color: var(--ink);
    line-height: 1.1;
}
.sadaka__desc { font-size: 14.5px; color: var(--muted); line-height: 1.65; max-width: 400px; }

.sadaka__qr-card {
    background: var(--white);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-md);
    padding: 32px;
    display: flex; flex-direction: column; align-items: center; gap: 16px;
    max-width: 360px;
    margin: 0 auto;
}
.sadaka__qr-title { font-size: 22px; font-weight: 400; color: var(--ink); }
.sadaka__qr-img { width: 100%; max-width: 250px; }
.sadaka__qr-label { font-size: 13.5px; font-weight: 500; color: var(--ink-2); }

/* ════════════════════════════════════════════════════════════
   FAJR MEDIA
════════════════════════════════════════════════════════════ */
.fajr { background: var(--navy); padding: 44px 0 48px; margin: 26px 0; }
.fajr__header {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 24px; flex-wrap: wrap;
    margin-bottom: 32px;
}
.fajr__left { display: flex; flex-direction: column; gap: 6px; }
.fajr__handle { font-family: var(--font-display); font-size: clamp(24px, 4vw, 36px); font-weight: 400; color: #fff; }
.fajr__sub { font-size: 10px; font-weight: 600; letter-spacing: .14em; color: rgba(255,255,255,.45); }
.fajr__socials { display: flex; gap: 10px; margin-top: 12px; }
.fajr__social {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 18px;
    border-radius: 20px;
    font-size: 11.5px; font-weight: 400;
    letter-spacing: .05em;
    color: #fff;
    transition: opacity var(--tr);
}
.fajr__social:hover { opacity: .85; }
.fajr__social--ig { background: #E1306C; }
.fajr__social--yt { background: #FF0000; }
.fajr__social img { width: 16px; height: 16px; }

.fajr__right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
@media (max-width: 600px) { .fajr__right { align-items: flex-start; text-align: left; } }
.fajr__logo { height: 44px; width: auto; }
.fajr__brand-sub { font-size: 12px; color: rgba(255,255,255,.55); max-width: 240px; }
.fajr__brand-sub strong { display: block; font-size: 20px; color: rgba(255,255,255,.85); font-weight: 600; }

.fajr__videos { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 700px) { .fajr__videos { grid-template-columns: repeat(3, 1fr); } }
.fajr__video {
    display: flex; flex-direction: column; gap: 8px;
    background: rgba(255,255,255,.05);
    border-radius: var(--r-md);
    overflow: hidden;
    padding-bottom: 16px;
}
.fajr__video-frame { position: relative; padding-bottom: 56.25%; height: 0; background: #000; }
.fajr__video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fajr__video-tag { font-size: 9px; font-weight: 400; letter-spacing: .14em; color: rgba(255,255,255,.4); padding: 6px 16px 0; }
.fajr__video-title { font-size: 13px; font-weight: 600; color: #fff; line-height: 1.4; padding: 0 16px; }

/* ════════════════════════════════════════════════════════════
   ТЕСТ / ВИКТОРИНА
════════════════════════════════════════════════════════════ */
.quiz-section { background: var(--cream); padding: 40px 0; }
.quiz {
    display: grid; grid-template-columns: 1fr; gap: 32px;
    background: var(--white);
    border-radius: var(--r-xl);
    padding: 36px 30px;
}
@media (min-width: 860px) { .quiz { grid-template-columns: 1fr 1.1fr; gap: 56px; padding: 48px 56px; } }
@media (max-width: 480px) { .quiz { padding: 28px 22px; } }

.quiz__left { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.quiz__title { font-family: var(--font-display); font-size: clamp(24px, 3.5vw, 36px); font-weight: 400; color: var(--ink); line-height: 1.15; }
.quiz__desc { font-size: 14px; color: var(--muted); }
.quiz__start-btn {
    display: inline-flex; width: fit-content;
    background: var(--teal);
    color: #fff;
    font-size: 13.5px; font-weight: 600;
    padding: 12px 26px;
    border-radius: 24px;
    margin-top: 10px;
    transition: background var(--tr);
}
.quiz__start-btn:hover { background: var(--teal-dark); }

.quiz__right {
    background: var(--mint-soft);
    border-radius: var(--r-lg);
    padding: 26px 24px;
    display: flex; flex-direction: column; gap: 14px;
}
.quiz__q-num { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.quiz__q-text { font-size: 17px; font-weight: 600; color: var(--ink); }
.quiz__options { display: flex; flex-direction: column; gap: 8px; }
.quiz__option {
    display: flex; align-items: center; gap: 11px;
    background: var(--white);
    border: 1.5px solid transparent;
    border-radius: var(--r-sm);
    padding: 12px 16px;
    font-size: 13.5px; font-weight: 500;
    color: var(--ink);
    transition: border-color var(--tr), background var(--tr);
}
.quiz__option:hover { border-color: var(--teal); background: #f4fbfa; }
.quiz__radio {
    width: 16px; height: 16px;
    border: 2px solid var(--teal-light);
    border-radius: 50%;
    flex-shrink: 0;
    transition: border-color var(--tr), background var(--tr);
}
.quiz__option:hover .quiz__radio {
    border-color: var(--teal);
    background: radial-gradient(circle, var(--teal) 40%, transparent 45%);
}

/* ════════════════════════════════════════════════════════════
   УРОКИ (Құран/Тәжуид)
════════════════════════════════════════════════════════════ */
.lessons { position: relative; overflow: hidden; padding: 40px 0; }
.lessons--cream { background: var(--cream); }
.lessons > .container { position: relative; z-index: 1; }

.lessons__grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .lessons__grid { grid-template-columns: repeat(3, 1fr); } }

.lesson-card {
    display: flex; flex-direction: column;
    background: var(--white);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--sh-sm);
    transition: box-shadow var(--tr), transform var(--tr);
}
.lesson-card:hover { box-shadow: var(--sh-md); transform: translateY(-3px); }
.lesson-card__img { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.lesson-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.lesson-card:hover .lesson-card__img img { transform: scale(1.04); }
.lesson-card__body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; }
.lesson-card__tag { font-size: 9.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.lesson-card__title { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.lesson-card__meta { font-size: 11px; color: var(--muted); }

/* ════════════════════════════════════════════════════════════
   НАМАЗ ОҚЫП ҮЙРЕНУ
════════════════════════════════════════════════════════════ */
.namaz-learn { position: relative; overflow: hidden; background: var(--mint-soft); padding: 48px 0; }
.namaz-learn__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 36px; }
@media (min-width: 900px) { .namaz-learn__grid { grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; } }

.namaz-learn__left { display: flex; flex-direction: column; gap: 8px; }
.namaz-learn__title { margin-bottom: 14px; }
.namaz-learn__steps { display: flex; flex-direction: column; }
.namaz-step {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(11,110,107,.14);
    transition: opacity var(--tr);
}
.namaz-step:hover { opacity: .8; }
.namaz-step__num {
    width: 36px; height: 36px;
    background: var(--teal);
    color: #fff;
    border-radius: var(--r-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600;
    flex-shrink: 0;
}
.namaz-step__body { display: flex; flex-direction: column; gap: 2px; }
.namaz-step__title { font-size: 15px; font-weight: 600; color: var(--ink); }
.namaz-step__desc { font-size: 12.5px; color: var(--muted); }

.namaz-learn__btn {
    display: inline-flex; width: fit-content;
    background: var(--teal);
    color: #fff;
    font-size: 13.5px; font-weight: 600;
    padding: 12px 26px;
    border-radius: 24px;
    margin-top: 22px;
    transition: background var(--tr);
}
.namaz-learn__btn:hover { background: var(--teal-dark); }

.namaz-video { display: flex; flex-direction: column; }
.namaz-video__img { position: relative; aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md); }
.namaz-video__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.namaz-video:hover .namaz-video__img img { transform: scale(1.03); }
.namaz-video__title { font-size: 15px; font-weight: 600; color: var(--ink); margin: 12px 16px 0; }
.namaz-video__meta { font-size: 12px; color: var(--muted); margin: 0 16px 6px; }

/* ════════════════════════════════════════════════════════════
   ӘРІПТЕСТЕР
════════════════════════════════════════════════════════════ */
.partners { overflow: hidden; padding-bottom: 48px; }
.partners__track-wrap {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.partners__track {
    display: flex; align-items: center;
    gap: 36px;
    width: max-content;
    padding: 8px 0;
    animation: partners-scroll 28s linear infinite;
}
@media (min-width: 768px) { .partners__track { gap: 110px; } }
.partners__track:hover { animation-play-state: paused; }
@keyframes partners-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.partners__item {
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    width: 130px; height: 130px;
    padding: 10px;
    background: var(--cream);
    border-radius: 50%;
}
@media (max-width: 480px) { .partners__item { width: 100px; height: 100px; } }
.partners__item img { max-width: 110px; max-height: 110px; border-radius: 50%; transition: transform var(--tr); }
.partners__item:hover img { transform: scale(1.06); }












/* ════════════════════════════════════════════════════════════
   ОРНАМЕНТЫ back-filler.png
   Родитель должен иметь: position: relative;
   body { overflow-x: hidden } защищает от горизонтального скролла
════════════════════════════════════════════════════════════ */

/* Базовый стиль (уже есть в .ornament, повторяем для ясности) */
.orn {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
    background: url('../imgs/back-filler.png') no-repeat center / contain;

}
/* Любая секция с орнаментом должна обрезать overflow */
.section-orn {
    position: relative;
    overflow: hidden;
}

/* ── ПК: справа между намаз и новостями ── */
.orn--d1 {
    top: -300px;           /* ← сдвинуть вверх/вниз */
    right: -20vw;         /* ← половина за краем */
    width: 100vw;
    height: 100vw;
    max-width: 1000px;
    max-height: 1000px;
}
@media (max-width: 767px) { .orn--d1 { display: none; } }

/* ── ПК: слева под Сұрақ-жауап ── */
.orn--d2 {
    bottom: -300px;       /* ← сдвинуть вверх/вниз */
    left: -20vw;
    z-index: -1;
    width: 100vw;
    height: 100vw;
    max-width: 1100px;
    max-height: 1100px;
}
@media (max-width: 767px) { .orn--d2 { display: none; } }

/* ── ПК: справа между Қызметтер и AI Ustaz ── */
.orn--d3 {
    bottom: -300px;
    right: -25vw;
    width: 100vw;
    height: 100vw;
    max-width: 1200px;
    max-height: 1200px;
}
@media (max-width: 767px) { .orn--d3 { display: none; } }

/* ── ПК: слева у Мешітке садақа ── */
.orn--d4 {
    top: 50%;
    left: -20vw;
    transform: translateY(-50%);
    width: 100vw;
    height: 100vw;
    max-width: 1000px;
    max-height: 1000px;
}
@media (max-width: 767px) { .orn--d4 { display: none; } }

/* ── Мобиль: слева между намаз и новостями ── */
.orn--m1 { display: none; }
@media (max-width: 767px) {
    .orn--m1 {
        display: block;
        top: -200px;        /* ← сдвинуть */
        left: -35vw;
        width: 120vw;
        height: 120vw;
    }
}

/* ── Мобиль: слева над Қызметтер и под Мақалалар ── */
.orn--m2 { display: none; }
@media (max-width: 767px) {
    .orn--m2 {
        display: block;
        top: -50px;
        left: -48vw;       /* чуть менее заходит за край */
        width: 150vw;
        height: 150vw;
    }
}

/* ── Мобиль: справа у Мешітке садақа ── */
.orn--m3 { display: none; }
@media (max-width: 767px) {
    .orn--m3 {
        z-index: -1;
        display: block;
        top: -50px;
        right: -52vw;
        width: 150vw;
        height: 150vw;
    }
}