/*
 * Sayt footer'i (`app\assets\FooterAsset`).
 *
 * Markup — `views/layouts/main.php`. Footer bosh sahifada fullPage.js
 * bo'limi (`.main-footer.section.fp-auto-height`) — shu klasslar saqlangan,
 * shablondagi eski `.main-footer` uslublari `.main-footer.site-footer`
 * (aniqlik yuqoriroq) orqali bekor qilinadi.
 *
 * Tuzilma: chapda gerb, nom, shior va aloqa; o'ngda xarita; pastda copyright.
 * Tor ekranlarda bir ustunga tushadi.
 */

.main-footer.site-footer {
    --sf-bg: #0a1c3a;
    --sf-bg-deep: #07142b;
    --sf-accent: #3a78ff;
    --sf-accent-strong: #2560f0;
    --sf-text: #e7edf8;
    --sf-muted: #9fb0cc;
    --sf-line: rgba(58, 120, 255, 0.35);

    position: relative;
    overflow: hidden;
    padding: 0;
    background:
        radial-gradient(110% 80% at 72% 0%, #12336a 0%, rgba(18, 51, 106, 0) 60%),
        linear-gradient(180deg, var(--sf-bg) 0%, var(--sf-bg-deep) 100%);
    color: var(--sf-text);
}

/* ---- Fon: chapda akademiya binosi, o'ngda naqsh ---- */

.site-footer__building,
.site-footer__pattern {
    position: absolute;
    top: 0;
    bottom: 0;
    pointer-events: none;
}

.site-footer__building {
    left: 0;
    width: 36%;
    background: url("../images/building.jpg") 30% center / cover no-repeat;
    opacity: 0.2;
    filter: grayscale(1) brightness(0.9);
    mix-blend-mode: luminosity;
    -webkit-mask-image: linear-gradient(90deg, #000 20%, rgba(0, 0, 0, 0.6) 55%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 20%, rgba(0, 0, 0, 0.6) 55%, transparent 100%);
}

.site-footer__pattern {
    right: 0;
    width: 260px;
    height: 280px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.09' stroke-width='1.2'%3E%3Cpath d='M32 4 60 32 32 60 4 32Z'/%3E%3Cpath d='M32 16 48 32 32 48 16 32Z'/%3E%3Cpath d='M0 0 12 12M64 0 52 12M0 64 12 52M64 64 52 52'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(circle at 100% 0%, #000 0%, rgba(0, 0, 0, 0.7) 45%, transparent 75%);
    mask-image: radial-gradient(circle at 100% 0%, #000 0%, rgba(0, 0, 0, 0.7) 45%, transparent 75%);
}

/* ---- Tuzilma ---- */

.site-footer__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 56px;
    align-items: start;
    padding-top: 72px;
    padding-bottom: 56px;
}

/*
 * Ustunlar aniq joylashtiriladi: sahifaga boshqa CSS (masalan Bootstrap 3
 * clearfix `::before/::after`) qo'shimcha grid elementi qo'shsa ham
 * ma'lumot chapda, xarita o'ngda qoladi.
 */
.site-footer__info {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
}

.site-footer__map {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

.site-footer__inner::before,
.site-footer__inner::after {
    content: none;
    display: none;
}

/* ---- Gerb, nom, shior ---- */

.site-footer__brand {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    color: #fff;
    text-decoration: none;
}

.site-footer__brand:hover,
.site-footer__brand:focus-visible {
    color: #fff;
    text-decoration: none;
}

.site-footer__logo {
    flex: 0 0 auto;
    width: 112px;
    height: auto;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

.site-footer__name {
    display: block;
    margin: 4px 0 0;
    color: #fff;
    font-size: 22px;
    font-weight: var(--fw-bold);
    line-height: 1.3;
}

.site-footer__motto {
    display: block;
    margin-top: 14px;
    color: var(--sf-muted);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    line-height: 1.4;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.site-footer__motto::after {
    content: "";
    display: block;
    width: min(100%, 320px);
    height: 3px;
    margin-top: 12px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--sf-accent) 0 72px, rgba(255, 255, 255, 0.12) 72px 100%);
}

/* ---- Aloqa ---- */

.site-footer__contacts {
    margin-top: 44px;
    padding-left: 34px;
}

.site-footer__title {
    margin: 0 0 20px;
    color: var(--sf-accent);
    font-size: 20px;
    font-weight: var(--fw-bold);
    line-height: 1.3;
}

.site-footer__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    color: var(--sf-text);
    font-size: 17px;
    line-height: 1.5;
}

.site-footer__list li + li {
    margin-top: 14px;
}

.site-footer__list svg {
    flex: 0 0 auto;
    margin-top: 2px;
    color: var(--sf-accent);
}

.site-footer__list a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer__list a:hover,
.site-footer__list a:focus-visible {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---- Ijtimoiy tarmoqlar ---- */

.site-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.site-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    color: #fff;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.site-footer__social a:hover,
.site-footer__social a:focus-visible {
    border-color: var(--sf-accent);
    background-color: var(--sf-accent);
    color: #fff;
    transform: translateY(-2px);
}

.site-footer__social svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* ---- Xarita ---- */

.site-footer__map {
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.site-footer__map iframe {
    display: block;
    width: 100%;
    height: 430px;
    border: 0;
    border-radius: 0;
}

/* ---- Pastki qator ---- */

.site-footer__bottom {
    position: relative;
    z-index: 1;
    padding: 24px 16px;
    border-top: 1px solid var(--sf-line);
    color: var(--sf-muted);
    font-size: var(--fs-body);
    line-height: 1.5;
    text-align: center;
}

.site-footer__bottom p {
    margin: 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* ============================================================
   Tor ekranlar
   ============================================================ */

@media (max-width: 1199.98px) {
    .site-footer__inner {
        gap: 36px;
    }

    .site-footer__logo {
        width: 92px;
    }

    .site-footer__name {
        font-size: 19px;
    }

    .site-footer__contacts {
        padding-left: 0;
    }

    .site-footer__list li {
        font-size: 16px;
    }
}

@media (max-width: 991.98px) {
    .site-footer__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
        padding-top: 52px;
        padding-bottom: 44px;
    }

    .site-footer__info,
    .site-footer__map {
        grid-column: 1;
        grid-row: auto;
    }

    .site-footer__building {
        width: 70%;
        opacity: 0.14;
    }

    .site-footer__map iframe {
        height: 340px;
    }
}

@media (max-width: 575.98px) {
    .site-footer__inner {
        gap: 32px;
        padding-top: 40px;
        padding-bottom: 36px;
    }

    .site-footer__brand {
        flex-direction: column;
        align-items: center;
        gap: 14px;
        text-align: center;
    }

    .site-footer__logo {
        width: 84px;
    }

    .site-footer__name {
        font-size: 18px;
    }

    .site-footer__motto {
        letter-spacing: 0.14em;
    }

    .site-footer__motto::after {
        margin-right: auto;
        margin-left: auto;
    }

    .site-footer__contacts {
        margin-top: 32px;
    }

    .site-footer__title {
        font-size: 18px;
        text-align: center;
    }

    .site-footer__list li {
        gap: 12px;
        font-size: 15px;
    }

    .site-footer__social {
        justify-content: center;
        gap: 12px;
    }

    .site-footer__social a {
        width: 48px;
        height: 48px;
    }

    .site-footer__social svg {
        width: 20px;
        height: 20px;
    }

    .site-footer__map {
        border-radius: 12px;
    }

    .site-footer__map iframe {
        height: 260px;
    }

    .site-footer__bottom {
        padding: 18px 16px 22px;
        font-size: var(--fs-sm);
    }
}
