.footer {
    margin-top: var(--section-gap);
    display: flex;
    position: relative;
    background: var(--button-grey);
}

.item {
    text-decoration: none;
    color: var(--text-white);
    font-size: 16px;
    white-space: nowrap;
}

.item:hover {
    color: var(--text-red);
}

.footer-tour-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.footer-tour-links li {
    list-style-type: none;
}

.footer-tour-links a {
    display: block;
    text-decoration: none;
    color: var(--text-white);
    font-size: 16px;
    white-space: nowrap;
}

.footer-tour-links a:hover {
    color: var(--text-red);
}

.footer-container {
    width: min(calc(100% - var(--layout-gutter) - var(--layout-gutter)), var(--layout-max));
    height: 100%;
    background: transparent;
    display: grid;
    grid-template-columns: minmax(130px, max-content) minmax(200px, max-content) minmax(0, 1fr) minmax(243px, max-content);
    padding: 60px 0;
    column-gap: clamp(44px, 3.2vw, 60px);
    position: relative;
    margin: 0 auto;
    align-items: start;
}

.footer-column {
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 12px;
    min-width: 200px;
}

#first-column {
    min-width: 140px;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
}

.title {
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 1.40px;
}

.subtitle {
    color: var(--text-white);
    font-size: 28px;
    font-weight: 400;
    word-wrap: break-word;
    font-family: 'e-UkraineHead Regular', Helvetica, Sans-Serif;
}

#third-column {
    min-width: 0;
    grid-column: 3;
    grid-row: 1;
    position: static;
    margin-top: 0;
    left: auto;
    top: auto;
    transform: none;
    z-index: 100;
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    justify-self: center;
    text-align: center;
    gap: 10px;
}

.big-title {
    color: var(--text-white);
    font-size: clamp(52px, 3.125vw, 60px);
    font-weight: 400;
    letter-spacing: 3px;
    white-space: nowrap;
    font-family: 'e-UkraineHead Regular', Helvetica, Sans-Serif;
}

#fourth-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(16px, 1.3vw, 24px);
    min-width: 243px;
    grid-column: 4;
    grid-row: 1;
    justify-self: end;
}

.footer-container > .footer-column:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    margin-right: 0;
}

#fourth-column-third-part img {
    width: clamp(28px, 1.875vw, 36px);
    height: clamp(28px, 1.875vw, 36px);
}

.push {
    margin-left: auto;
}
 

@media (max-width: 1200px) {
    #first-column, .footer-column, #third-column,#fourth-column {
        min-width: unset;
    }
   
    #first-column {
        grid-column: 1;
        grid-row: 2;
    }

    .footer-container {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 56px 70px;
        width: calc(100% - var(--layout-gutter) - var(--layout-gutter));
        padding: 40px 0;
    }

    .push {
        display: none;
    }

    #third-column {
        background: var(--button-grey);
        color: var(--text-white);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-width: unset;
        padding-top: 0;
        padding-bottom: 0;
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .footer-container > .footer-column:nth-child(2) {
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
        margin-right: 0;
    }

    #fourth-column {
        justify-self: start;
        grid-column: 1 / -1;
        grid-row: 3;
    }
}


.contact-item {
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    letter-spacing: 0.8px;
}

@media (max-width: 1440px) {
    .menu-tours-menu-container {
        margin-top: -4px;
    }

    .title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .item {
        font-size: 14px;
    }

    .footer-column {
        gap: 10px;
    }

    .footer-tour-links {
        gap: 10px;
    }

    .footer-container {
        gap: 44px;
    }

    .footer-container > .footer-column:nth-child(2) {
        margin-right: 0;
    }

    .subtitle {
        font-size: 24px;
    }

    .footer-tour-links a {
        font-size: 14px;
    }

    .contact-item {
        font-size: 14px;
    }
}

@media (max-width: 1366px) {
    .big-title {
        font-size: 46px;
    }

    .subtitle {
        font-size: 22px;
    }
}

@media (max-width: 1280px) and (min-width: 1201px) {
    .footer-container {
        gap: 32px;
    }

    .big-title {
        font-size: 40px;
        letter-spacing: 2px;
    }

    .subtitle {
        font-size: 20px;
    }
}

@media (max-width: 680px) {

    .contact-item {
        font-size: 12px;
        font-style: normal;
        font-weight: 400;
        line-height: 120%;
        letter-spacing: 0.6px;
    }
    
    .footer-container {
        grid-template-columns: max-content max-content;
        justify-content: space-between;
        gap: 42px 14px;
    }

    .item {
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 120%; /* 16.8px */
        letter-spacing: 0.7px;
        white-space: nowrap;
    }

    .footer-tour-links a {
        white-space: nowrap;
    }

    .title {
        font-size: 20px;
        font-style: normal;
        font-weight: 500;
        line-height: normal;
        letter-spacing: 1px;
    }

    .big-title {
        font-size: 24px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
        letter-spacing: 1.2px;
        white-space: normal;
    }

    .subtitle {
        font-size: 14px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
        letter-spacing: 0.7px;
    }

    #third-column {
        gap: 5px;
        grid-column: 1 / -1;
    }

    #fourth-column {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    /* #first-column, #second-column, #third-column,#fourth-column {
        min-width: unset;
    }
   
    .footer {
        flex-direction: column;
    }

    .footer-container {
        gap: 70px;
        justify-content: space-between;
        width: unset;
        padding: 20px;
        position: relative;
    }

    .push {
        margin-left: 0;
        display: none;
    }

    #third-column {
        background: #5F5F5F;
        position: relative;
        color: #FFF7F7;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-width: unset;
        left: 0;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    #fourth-column {
        position: absolute;
    } */
}

@media (max-width: 360px) {
    .footer-container {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        justify-content: stretch;
        gap: 42px;
    }

    .item,
    .footer-tour-links a {
        white-space: normal;
    }
}
