footer.container {
    background-color: white;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 1rem;
}

footer .blocks {
    display: flex;
    justify-content: flex-start;
    width: 80%;
    padding: 0px;
    gap: 5rem;
}

footer .blocks > .socials {
    margin-left: auto;
}

footer .blocks > div > h4 {
    margin-bottom: 2rem;
    margin-top: 2rem;
}

footer .blocks > .socials > h4 {
    margin-bottom: 1rem;
}

footer .blocks > div > ul {
    list-style: none; /* убирает точки */
    padding: 0;
    margin: 0;
}

footer .blocks > div > ul li a {
    color: inherit;
    text-decoration: none; /* убирает подчёркивание */
}

/* Посещённые ссылки не должны получать браузерный фиолетовый цвет. */
footer .blocks > div > ul li a:visited {
    color: inherit;
}

footer .blocks > div > ul > li {
    margin-bottom: 1rem;
}

footer hr {
    border: 0;
    border-top: 3px solid #f6f7f8;
    width: 80%;
    margin: 0px 0px 0px 0px;
}

.footer-bottom {
    position: relative;
    width: 80%;
    height: 40px;

    display: flex;
    align-items: center;

    margin-bottom: 1rem;
}

.footer-social a {
    width: 2rem;
    height: 2rem;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #333333;
}

.footer-social a:focus,
.footer-social a:focus-visible {
    outline: none;
    box-shadow: none;
}

/* Telegram */

.footer-social-icon--telegram {
    transform: scale(0.9);
}

.footer-social-icon--telegram path {
    fill: #333333;
}

/* YouTube */

.footer-social-icon--youtube .youtube-body {
    fill: #333333;
}

.footer-social-icon--youtube .youtube-play {
    fill: #ffffff;
}

/* Почта */

.footer-social-icon--mail rect,
.footer-social-icon--mail path {
    stroke: #333333;
}

.footer-social-icon--mail .mail-body {
    fill: #333333;
}

.footer-social-icon--mail .mail-lines {
    stroke: #ffffff;
}

footer .copyright {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    white-space: nowrap;
}

@media (max-width: 850px) {

    footer .blocks {
        width: 100%;
        padding: 0 2rem;
        box-sizing: border-box;

        flex-direction: column;
        gap: 0rem;
    }

    footer .blocks > div {
        width: 100%;
    }

    footer hr {
        width: 100%;
    }

    .footer-bottom {
        width: 100%;
        height: auto;
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
        position: static;
    }

    footer .copyright {
        position: static;
        transform: none;
        text-align: center;
    }
}

.lang-select{
    position: relative;
    width: 220px; /* можешь сделать 180-240 */
    margin-top: 0.5rem;
}

.lang-trigger{
    width: 100%;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 0.9rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;

    cursor: pointer;
    user-select: none;

    color: #333333;
    font-weight: 600;
    font-size: 1rem;

    margin-bottom: 1rem;
}

.lang-trigger:focus,
.lang-trigger:focus-visible{
    outline: none;
    box-shadow: none;
}

.lang-current{
    color: #333333;
}

.lang-chevron{
    color: #333333;
    font-size: 0.95rem;
    transition: transform 0.18s ease;
}

.lang-select.is-open .lang-chevron{
    transform: rotate(-180deg);
}

.lang-menu{
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);

    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.35rem;

    box-shadow: 0 10px 24px rgba(0,0,0,0.10);
    z-index: 50;

    display: none;
}

.lang-select.is-open .lang-menu{
    display: block;
}

.lang-item {
    display: flex;
    align-items: center;

    width: 100%;
    height: 38px;
    padding: 0 0.75rem;

    border-radius: 10px;

    background: transparent;
    border: none;
    outline: none;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    box-shadow: none;

    color: #333333;
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    cursor: pointer;
}

.lang-item:hover {
    background: #f2f2f2;
}

.lang-item[aria-selected="true"] {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 700;
}

.lang-item[aria-selected="true"]:hover {
    background: #eff6ff;
    color: #2563eb;
}

.lang-item:focus,
.lang-item:focus-visible {
    outline: none;
    box-shadow: none;
}

@media (max-width: 850px) {
  footer .blocks > .socials {
    margin-left: 0;
  }
  .lang-select {
    width: 100%;
    max-width: 260px;
  }
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-social a {
    --social-bg: #333333;
    --social-icon: #ffffff;

    width: 2rem;
    height: 2rem;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 2rem;

    background-color: var(--social-bg);
    border-radius: 50%;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.footer-social a:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}

.footer-social-icon {
    width: 1.55rem;
    height: 1.55rem;
    display: block;
}


/* Telegram */

.footer-social-icon--telegram path {
    fill: var(--social-icon);
}


/* YouTube */

.footer-social-icon--youtube .youtube-body {
    fill: var(--social-icon);
}

.footer-social-icon--youtube .youtube-play {
    fill: var(--social-bg);
}


/* Почта */

.footer-social-icon--mail .mail-body {
    fill: var(--social-icon);
    stroke: var(--social-icon);
}

.footer-social-icon--mail .mail-lines {
    stroke: var(--social-bg);
}

/* ===== RESPONSIVE PASS: keep footer full-bleed, inset its content ===== */
@media (max-width: 520px) {
    footer .blocks {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    footer .blocks > div > h4 {
        margin-top: 1.5rem;
        margin-bottom: 1rem;
    }

    .footer-bottom {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    footer .copyright {
        max-width: 100%;
        white-space: normal;
        line-height: 1.4;
    }
}

/* ===== FOOTER SOCIAL ICONS: simple monochrome 28px style ===== */
.footer-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-social a {
    width: 1.75rem;
    height: 1.75rem;
    flex: 0 0 1.75rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
    color: #111111;
    text-decoration: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.footer-social a:hover {
    transform: translateY(-1px);
    opacity: 0.75;
}

.footer-social-icon,
.footer-social-icon--telegram,
.footer-social-icon--youtube,
.footer-social-icon--mail {
    width: 1.75rem;
    height: 1.75rem;
    display: block;
    flex: 0 0 1.75rem;
    transform: none;
}

.footer-social a:focus,
.footer-social a:focus-visible {
    outline: none;
    box-shadow: none;
}

body.dark-theme .footer-social a {
    color: #f3f4f6;
}

/* ===== FOOTER SOCIAL ICONS: explicit theme colors =====
 * Keep the 28px outline icons readable in both themes regardless of
 * legacy per-icon rules above in this stylesheet. */
.footer-social-icon--telegram path,
.footer-social-icon--youtube path {
    fill: #333333 !important;
}

.footer-social-icon--mail path,
.footer-social-icon--mail rect {
    fill: none !important;
    stroke: #333333 !important;
}

body.dark-theme .footer-social-icon--telegram path,
body.dark-theme .footer-social-icon--youtube path {
    fill: #f3f4f6 !important;
}

body.dark-theme .footer-social-icon--mail path,
body.dark-theme .footer-social-icon--mail rect {
    fill: none !important;
    stroke: #f3f4f6 !important;
}


/* ===== FOOTER SOCIAL ICONS: per-icon optical balance ===== */
.footer-social-icon--telegram {
    transform: scale(0.90);
    transform-origin: center;
}

.footer-social-icon--youtube {
    transform: scale(0.90);
    transform-origin: center;
}

.footer-social-icon--mail {
    transform: scale(1);
    transform-origin: center;
}
