/* ============================================================
   Редизайн spkalmaty.kz — демо (spk.netchess.ru)
   Подключается ПОСЛЕ прод-стилей и аккуратно их переопределяет.
   Блоки: 1) статистика  2) направления  3) футер v2  4) док
   ============================================================ */
:root {
    --spk-navy: #313948;
    --spk-ink: #101828;
    --spk-mut: #5D6B82;
    --spk-line: #E7ECF3;
    --spk-blue: #1565C0;
    --spk-blue-d: #0D47A1;
    --spk-blue-l: #E8F1FB;
    --spk-gold: #d3bc97;
    --spk-gold-d: #a8895a;
    --spk-r: 18px;
    --spk-shadow: 0 12px 32px rgba(12, 34, 66, .10);
    --dock-h: 62px;
}

/* ── 1. Статистика (счётчик цифр) ─────────────────────────── */
.statistics {
    padding-top: 64px;
    padding-bottom: 6px;
}
.stats-grid {
    padding-left: 6rem;
    padding-right: 6rem;
    gap: 10px;
    align-items: start;
}
.stat-item {
    padding: 6px 16px 10px;
    position: relative;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}
.stat-item.sv {
    opacity: 1;
    transform: none;
}
.stat-number {
    font-family: 'Manrope', 'Open Sans', sans-serif;
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -.5px;
    color: var(--spk-navy);
    margin-bottom: 0;
    font-variant-numeric: tabular-nums;
}
.stat-number::after {
    content: "";
    display: block;
    width: 0;
    height: 3px;
    border-radius: 2px;
    background: var(--spk-gold);
    margin: 10px auto 8px;
    transition: width .7s ease .35s;
}
.stat-item.sv .stat-number::after {
    width: 36px;
}
.stat-unit {
    font-size: 13.5px;
    color: var(--spk-gold-d);
    font-weight: 700;
    letter-spacing: .04em;
    margin-bottom: 8px;
}
.stat-description {
    font-size: 14.5px;
    color: #66727F;
    line-height: 1.55;
}
@media (min-width: 1100px) {
    .stat-item + .stat-item::before {
        content: "";
        position: absolute;
        left: -5px;
        top: 16%;
        bottom: 16%;
        width: 1px;
        background: var(--spk-line);
    }
}

/* ── 2. Направления деятельности ──────────────────────────── */
.dirs-sec {
    display: block;
    padding: 46px 0 44px;
    background: #fff;
}
/* свой контейнер: не зависим от bootstrap-сетки прода */
.dirs-sec .container,
.footer2 .container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}
.dirs-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 30px;
}
.dirs-head h2 {
    font-family: 'Manrope', 'Open Sans', sans-serif;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--spk-ink);
    margin: 0 0 8px;
}
.dirs-head p {
    margin: 0;
    color: var(--spk-mut);
    font-size: 15.5px;
}
.dirs-all {
    color: var(--spk-blue);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    padding-bottom: 4px;
}
.dirs-all:hover {
    color: var(--spk-blue-d);
    text-decoration: underline;
}
.dirs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.dir-card {
    display: block;
    background: #fff;
    border: 1px solid var(--spk-line);
    border-radius: var(--spk-r);
    padding: 28px 28px 30px;
    text-decoration: none;
    transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}
.dir-card:hover {
    border-color: transparent;
    box-shadow: var(--spk-shadow);
    transform: translateY(-4px);
}
.dir-card__ic {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    background: var(--spk-blue-l);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform .22s ease;
}
.dir-card:hover .dir-card__ic {
    transform: scale(1.05);
}
.dir-card__ic img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}
.dir-card h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--spk-ink);
    margin: 0 0 8px;
    line-height: 1.35;
}
.dir-card p {
    font-size: 14.5px;
    color: var(--spk-mut);
    margin: 0;
    line-height: 1.55;
}

/* ── 3. Футер v2 ──────────────────────────────────────────── */
.footer.footer2 {
    background: linear-gradient(180deg, #2E3644 0%, #232A36 100%) !important;
    padding: 0 0 24px;
    color: #fff;
}
.f2-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px 44px;
    padding: 26px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.f2-top a {
    display: flex;
    align-items: center;
    opacity: .85;
    transition: opacity .2s ease, transform .2s ease;
}
.f2-top a:hover {
    opacity: 1;
    transform: translateY(-2px);
}
.f2-top img {
    width: auto;
}
.f2-grid {
    display: grid;
    grid-template-columns: 1.3fr .9fr 1fr 1.05fr;
    gap: 40px;
    padding: 38px 0 30px;
    text-align: left;
}
.f2-h {
    font-family: 'Manrope', 'Open Sans', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
    margin: 0 0 18px;
}
.f2-about .f2-logo {
    height: 42px;
    width: auto;
    margin-bottom: 16px;
}
.f2-about p {
    font-size: 14px;
    color: rgba(255, 255, 255, .85);
    margin: 0 0 14px;
    line-height: 1.6;
}
.f2-addr {
    display: flex;
    gap: 10px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .68);
    line-height: 1.55;
}
.f2-addr i, .f2-addr svg {
    color: var(--spk-gold);
    margin-top: 3px;
    flex: 0 0 auto;
}
.f2-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.f2-nav a {
    color: rgba(255, 255, 255, .85);
    font-size: 14px;
    text-decoration: none;
    transition: color .15s ease;
    width: fit-content;
    line-height: 1.4;
}
.f2-nav a:hover {
    color: var(--spk-gold);
}
.f2-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    margin-bottom: 14px;
}
.f2-chip .ic {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--spk-gold);
    font-size: 15px;
    transition: background .2s ease, color .2s ease;
}
.f2-chip:hover .ic {
    background: var(--spk-gold);
    color: #232A36;
}
.f2-chip .tx b {
    display: block;
    font-size: 14.5px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}
.f2-chip .tx span {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, .5);
    margin-top: 2px;
}
.f2-chip:hover .tx b {
    color: var(--spk-gold);
}
.f2-card {
    border: 1px solid rgba(255, 255, 255, .12);
    border-left: 3px solid var(--spk-gold);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, .04);
}
.f2-card b {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--spk-gold);
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 7px;
}
.f2-card a {
    color: #fff;
    font-size: 13.5px;
    text-decoration: none;
    display: block;
    margin-bottom: 3px;
}
.f2-card a:hover {
    color: var(--spk-gold);
}
.f2-card span {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, .62);
}
.f2-social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}
.f2-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.f2-social a:hover {
    background: var(--spk-gold);
    color: #232A36;
    transform: translateY(-2px);
}
.f2-bottom {
    border-top: 1px solid rgba(255, 255, 255, .09);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    align-items: center;
}
.f2-bottom .c {
    font-size: 13.5px;
    color: rgba(255, 255, 255, .78);
    text-align: center;
}
.f2-bottom .k {
    font-size: 11.5px;
    color: rgba(255, 255, 255, .38);
    text-align: center;
    max-width: 780px;
    line-height: 1.5;
}

/* ── 4. Закреплённая полоска футера (док) ─────────────────── */
body {
    padding-bottom: var(--dock-h);
}
.footer-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    background: rgba(35, 42, 54, .97);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 -8px 28px rgba(0, 0, 0, .28);
    transform: translateY(0);
    transition: transform .35s ease;
}
.footer-dock.hide {
    transform: translateY(105%);
}
.footer-dock__in {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 38px;
    height: var(--dock-h);
    padding: 0 18px;
    overflow-x: auto;
    scrollbar-width: none;
}
.footer-dock__in::-webkit-scrollbar {
    display: none;
}
.footer-dock__in a {
    display: flex;
    align-items: center;
    opacity: .82;
    transition: opacity .2s ease;
    flex: 0 0 auto;
}
.footer-dock__in a:hover {
    opacity: 1;
}
.footer-dock__in img {
    width: auto;
}
/* док-вариант с контактами вместо логотипов */
.footer-dock__in--contacts {
    max-width: 1240px;
    margin: 0 auto;
    justify-content: flex-start;
    gap: 34px;
    padding: 0 24px;
}
.fd-item {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    opacity: .92;
    flex: 0 0 auto;
}
.fd-item i {
    color: var(--spk-gold);
    font-size: 14px;
}
a.fd-item:hover {
    opacity: 1;
    color: var(--spk-gold);
}
.fd-addr {
    color: rgba(255, 255, 255, .6);
}
.fd-lk {
    margin-left: auto;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(211, 188, 151, .55);
    border-radius: 10px;
    padding: 8px 16px;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.fd-lk:hover {
    background: var(--spk-gold);
    border-color: var(--spk-gold);
    color: #232A36;
}
@media (max-width: 1023px) {
    .fd-addr {
        display: none;
    }
}
@media (max-width: 560px) {
    .fd-mail {
        display: none;
    }
    .footer-dock__in--contacts {
        gap: 16px;
        padding: 0 14px;
    }
    .fd-lk {
        padding: 7px 12px;
        font-size: 12.5px;
    }
}

/* ── адаптив ──────────────────────────────────────────────── */
@media (max-width: 1250px) {
    .stats-grid {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}
@media (max-width: 1023px) {
    .dirs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .dirs-head h2 {
        font-size: 29px;
    }
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 26px;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .f2-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .stat-number {
        font-size: 38px;
    }
}
@media (max-width: 767px) {
    :root {
        --dock-h: 52px;
    }
    .dirs-sec {
        padding: 34px 0 46px;
    }
    .dirs-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 22px;
    }
    .dirs-head h2 {
        font-size: 25px;
    }
    .dirs-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .dir-card {
        padding: 22px 20px 24px;
    }
    .dir-card__ic {
        width: 70px;
        height: 70px;
        border-radius: 18px;
        margin-bottom: 16px;
    }
    .dir-card__ic img {
        width: 42px;
        height: 42px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        padding-left: .8rem;
        padding-right: .8rem;
        row-gap: 22px;
    }
    .stat-number {
        font-size: 33px;
    }
    .stat-description {
        font-size: 13px;
    }
    .stat-description br {
        display: none;
    }
    .f2-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 28px 0 22px;
    }
    .f2-top {
        gap: 12px 24px;
        padding: 18px 0;
    }
    .f2-top img {
        height: 26px !important;
    }
    .footer-dock__in {
        justify-content: flex-start;
        gap: 26px;
    }
    .footer-dock__in img {
        height: 21px !important;
    }
}
