html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.ftr_ug {
    flex-shrink: 0;
    width: 100%;
    margin-top: auto;
}

footer {
    background: #E8C4CF;
    padding: clamp(16px, 3vw, 40px) clamp(10px, 2vw, 30px);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(120px, 15vw, 240px);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 1.5px;
    background: linear-gradient(
        to right,
        transparent,
        #6B2D4E 30%,
        #6B2D4E 70%,
        transparent
    );
    opacity: 0.55;
}

footer a {
    color: #3D1226;
    text-decoration: none;
    margin-bottom: 5px;
    transition: color 0.2s;
}

footer a:hover {
    color: #6B2D4E;
}

.address {
    color: #3D1226;
    text-decoration: none;
}
.address:hover {
    color: #6B2D4E;
}

.links_to_rules:hover {
    color: #6B2D4E;
}

.fott_anmt {
    fill: #C4A0B0;
    stroke: #6B2D4E;
    stroke-width: 2;
    filter: drop-shadow(2px 2px 4px rgba(107, 45, 78, 0.25));
}

.footer_flex {
    max-width: clamp(320px, 95vw, 1800px);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: clamp(16px, 3vw, 48px);
    margin: 0 auto;
    padding: clamp(8px, 2vw, 32px) 0;
}

.address_and_contact,
.rules_top,
.masanger_and_pages {
    gap: clamp(4px, 0.6vw, 10px);
    flex: 1 1 clamp(140px, 18vw, 260px);
    display: flex;
    flex-direction: column;
}

.address_and_contact .topmenu_logo svg {
    width: clamp(140px, 18vw, 280px);
    height: auto;
}

footer h1 {
    font-size: clamp(13px, 1.4vw, 26px);
    color: #3D1226;
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.01em;
}

footer p {
    font-size: clamp(13px, 1.4vw, 26px);
    color: #3D1226;
    margin: 0;
}

.icon_massanger {
    fill: #C4A0B0;
    transition: fill 0.2s;
}

.icon_massanger:hover {
    fill: #6B2D4E;
}

.masanger_and_pages svg {
    width: clamp(28px, 3vw, 56px);
    height: clamp(28px, 3vw, 56px);
}

.work_schedule {
    gap: clamp(6px, 1vw, 16px);
    flex: 1.2 1 clamp(160px, 20vw, 300px);
    display: flex;
    flex-direction: column;
}

.worktext {
    font-size: clamp(11px, 1.1vw, 22px);
    color: #3D1226;
}

.work_weekdays,
.work_weekend {
    justify-content: space-between;
    display: flex;
    flex-direction: row;
    gap: clamp(8px, 1vw, 20px);
}

.work_weekdays {
    border-bottom: 1px solid #C4A0B0;
    padding-bottom: clamp(4px, 0.5vw, 10px);
}

@media (max-width: 600px) {
    footer {
        min-height: unset;
        padding: 24px 16px;
    }

    .footer_flex {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 24px;
        padding: 0;
        width: 100%;
    }

    .address_and_contact,
    .rules_top,
    .masanger_and_pages,
    .work_schedule {
        flex: none;
        width: 100%;
        max-width: 320px;
        align-items: center;
    }

    .work_weekdays,
    .work_weekend {
        justify-content: center;
        gap: 12px;
    }

    footer h1, footer p {
        font-size: clamp(13px, 4vw, 18px);
    }

    .worktext {
        font-size: clamp(12px, 3.5vw, 16px);
    }

    .masanger_and_pages svg {
        width: clamp(32px, 8vw, 48px);
        height: clamp(32px, 8vw, 48px);
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    footer {
        min-height: clamp(100px, 12vw, 180px);
    }

    .footer_flex {
        justify-content: space-around;
        align-items: center;
    }

    .address_and_contact,
    .rules_top,
    .masanger_and_pages,
    .work_schedule {
        flex: 1 1 calc(50% - 32px);
        align-items: flex-start;
    }
}

@media (min-width: 901px) and (max-width: 1440px) {
    .footer_flex {
        max-width: 1400px;
    }
}

@media (min-width: 1441px) and (max-width: 2560px) {
    .footer_flex {
        max-width: clamp(1400px, 85vw, 2200px);
    }
}

@media (min-width: 2561px) and (max-width: 3840px) {
    footer {
        padding: clamp(30px, 2.5vw, 70px);
        min-height: clamp(240px, 10vw, 500px);
    }

    .footer_flex {
        max-width: 3400px;
    }

    footer h1, footer p {
        font-size: clamp(26px, 1.2vw, 48px);
    }

    .worktext {
        font-size: clamp(22px, 1vw, 40px);
    }

    .masanger_and_pages svg {
        width: clamp(56px, 3vw, 100px);
        height: clamp(56px, 3vw, 100px);
    }
}

@media (min-width: 3841px) {
    footer {
        padding: clamp(50px, 2vw, 120px);
        min-height: clamp(400px, 8vw, 900px);
    }

    .footer_flex {
        max-width: 7200px;
        gap: clamp(48px, 4vw, 120px);
    }

    footer h1, footer p {
        font-size: clamp(40px, 1vw, 80px);
    }

    .worktext {
        font-size: clamp(34px, 0.9vw, 72px);
    }

    .masanger_and_pages svg {
        width: clamp(80px, 2.5vw, 160px);
        height: clamp(80px, 2.5vw, 160px);
    }

    .address_and_contact .topmenu_logo svg {
        width: clamp(260px, 12vw, 600px);
    }

    .work_weekdays {
        padding-bottom: clamp(10px, 0.5vw, 24px);
    }
}
.phone{
    text-decoration: underline;
}