/* ================================================================
   footer.css
   ================================================================ */

.footer {
    background: #0B0C0F;
    height: 700px;
    position: relative;
  
}

/* ── Размытый фон ────────────────────────────────────────────── */
.footer__blur {
    background: rgba(146, 152, 177, 0.37);
    border-radius: 50%;
    width: 47.97%;
    height: 73.57%;
    position: absolute;
    left: 24.43%;
    top: 0;
    filter: blur(219px);
    pointer-events: none;
}

/* ── Линии ───────────────────────────────────────────────────── */
.footer__line-top {
    border-top: 1px solid var(--active);
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.footer__line-bottom {
    border-top: 1px solid var(--active);
    width: 100%;
    position: absolute;
    bottom: 116px; /* 700 * 16.57% ≈ 116px */
    left: 0;
}

/* ── Контент (заголовок + кнопки) ────────────────────────────── */
.footer__kontakt {
    position: absolute;
    left: 19.27%;
    right: 19.27%;
    top: 18.71%;
    bottom: 35.14%;
    display: flex;
    flex-direction: column;
    gap: 50px;
    align-items: center;
    justify-content: flex-start;
}

/* ── Заголовок ───────────────────────────────────────────────── */
.footer__heading {
    text-align: center;
    font-family: var(--h2-font-family);
    font-size: 96px;
    line-height: 105%;
    font-weight: 600;
}

.footer__heading-white { color: var(--white); }
.footer__heading-accent { color: var(--active); }

/* ── Кнопки контактов ────────────────────────────────────────── */
.footer__contacts {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: auto;
}

.footer__contact-btn {
    border: 1px solid var(--text);
    padding: 20px 40px;
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: var(--text);
    font-family: var(--text-button-font-family);
    font-size: var(--text-button-font-size);
    font-weight: var(--text-button-font-weight);
    white-space: nowrap;
    transition: color 0.2s ease, border-color 0.2s ease;
    /* смещаем границы чтобы не двоились */
    margin-left: -1px;
}

.footer__contact-btn:first-child { margin-left: 0; }

.footer__contact-btn:hover {
    color: var(--white);
    border-color: var(--white);
    z-index: 1;
}

.footer__contact-btn:hover .footer__icon path,
.footer__contact-btn:hover .footer__icon circle {
    stroke: var(--white);
}

.footer__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

/* ── Нижняя строка ───────────────────────────────────────────── */
.footer__bottom {
    position: absolute;
    left: 140px;
    right: 140px;
    bottom: 0;
    height: 116px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    color: var(--text);
    font-family: var(--podpisi-font-family);
    font-size: var(--podpisi-font-size);
    line-height: var(--podpisi-line-height);
    font-weight: var(--podpisi-font-weight);
}

/* ── Адаптив ─────────────────────────────────────────────────── */
@media (max-width: 1440px) {
    .footer__bottom { left: 80px; right: 80px; }
    .footer__heading { font-size: 80px; }
}

@media (max-width: 1200px) {
    .footer__kontakt { left: 10%; right: 10%; }
    .footer__bottom { left: 40px; right: 40px; }
    .footer__heading { font-size: 64px; }
    .footer__contact-btn { padding: 16px 24px; font-size: 18px; }
}

@media (max-width: 900px) {
    .footer { height: auto; padding-bottom: 80px; }

   

    .footer__kontakt {
        position: static;
        padding: 60px 24px 0;
        width: 100%;
        gap: 40px;
    }

    .footer__heading { font-size: clamp(40px, 10vw, 64px); }

    .footer__contacts {
        flex-direction: column;
        width: auto;
    }

    .footer__contact-btn {
        margin-left: 0;
        margin-top: -1px;
        justify-content: flex-start;
        padding: 16px 24px;
        font-size: 16px;
    }
    .footer__contact-btn:first-child { margin-top: 0; }

    .footer__line-bottom { display: none; }

    .footer__bottom {
        position: static;
        height: auto;
        padding: 32px 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-top: 40px;
        border-top: 1px solid var(--active);
    }
}

@media (max-width: 480px) {
    .footer__heading { font-size: clamp(32px, 9vw, 48px); }
    .footer__contact-btn { font-size: 14px; gap: 8px; }
}
