/*############## BUTTON ##############*/
.button {
    padding-block: clamp(10px, 2vw, 20px);
    padding-inline: clamp(15px, 3vw, 40px);
    min-width: 180px;
    font-weight: 600;
    text-transform: uppercase;
    background-color: var(--color-light);
    border: 1px solid var(--color-dark);
    border-radius: var(--border-radius-m);
    user-select: none;
    transition-duration: var(--transition-duration);

    &:hover {
        background-color: var(--color-accent);
    }
}

.burger-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background-color: transparent;
    border: 2px solid var(--color-accent);
    border-radius: 6px;
    z-index: 101;
}

.burger-button.is-active .burger-button__line {
    stroke-dasharray: 90 207;
    stroke-dashoffset: -134;
}

.burger-button.is-active .burger-button__line--2 {
    stroke-dasharray: 1 60;
    stroke-dashoffset: -30;
}

.burger-button:not(.is-active) .burger-button__line--3 {
    stroke-dasharray: 30 207;
    stroke-dashoffset: -30;
}

.burger-button__line {
    fill: none;
    stroke: var(--color-accent);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 60 207;
    transition: stroke-dasharray 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    stroke-dashoffset 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.burger-button__line--2 {
    stroke-dasharray: 60 60;
}

/*############## HEADER ##############*/
.header {
    position: fixed;
    top: 0;
    z-index: 100;
    width: 100%;
    padding: 10px;
    color: var(--color-light);
    background-color: transparent;

    &.shadow-header {
        color: var(--color-dark);
        background-color: var(--color-light);
        box-shadow: 0 0 1rem 0 var(--color-dark);
        transition-duration: var(--transition-duration-longer);
    }

    .header__inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        column-gap: 16px;
        margin-inline: 0;
    }

    .header__menu {
        .header__menu-list {
            display: flex;
            align-items: center;
            text-align: center;
            column-gap: 20px;
            margin-bottom: 0;
        }

        .header__menu-link {
            position: relative;
            padding: 10px;
            font-weight: 400;
            white-space: nowrap;

            &:hover {
                color: var(--color-accent);

                &::after {
                    width: 100%;
                }
            }

            &::after {
                content: '';
                position: absolute;
                top: 100%;
                left: 50%;
                translate: -50%;
                width: 0;
                height: 2px;
                color: var(--color-accent);
                background-color: currentColor;
                transition-duration: var(--transition-duration);
            }
        }
    }

}

/*############## SEARCH ##############*/
.search {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.0)),
    url('../images/header-bg.jpg') center/cover no-repeat;

    .search__main {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        row-gap: 15px;
    }

    .search__body {
        text-align: center;
    }

    .search__title {
        padding-top: clamp(100px, 15vw, 200px);
    }

    .search__select {
        display: flex;
        justify-content: space-around;
        align-items: end;
        column-gap: 30px;
        padding: 30px;
        margin-bottom: clamp(50px, 10vw, 150px);
        color: var(--color-light);
        background-color: rgb(0, 0, 0, 0.5);
        border-radius: var(--border-radius-m);


        .search__select-group {
            max-width: 300px;
            text-align: center;

            &:first-child {
                text-align: start;
            }
        }

        .search__select-menu {
            width: 100%;
            padding: 12px 40px 12px 15px;
            color: var(--color-light);
            background-color: transparent;
            border-bottom: var(--border);
            border-radius: var(--border-radius-m);
            cursor: pointer;
            transition-duration: var(--transition-duration);
            text-align: center;
        }

        option {
            color: var(--color-light);
            background-color: var(--color-dark);
        }

        .search__select-button {
            width: 300px;
            height: 50px;
            padding: 15px 30px;
            font-weight: 700;
            color: var(--color-light);
            background-color: transparent;
            border: var(--border);
            border-radius: var(--border-radius-m);

            &:hover {
                background-color: var(--color-accent);
            }
        }
    }

    /*############## RADIO ##############*/

    .radio {
        display: inline-flex;
        flex-direction: column;
        align-items: start;
        row-gap: 10px;
        /*padding-left: 40px;*/
        width: 220px;
        height: 50px;
        transition-duration: var(--transition-duration);

        .radio__input {
            &:not(:checked) + .radio__emulator::after {
                opacity: 0;
            }
        }

        .radio__item {
            display: flex;
            column-gap: 16px;

            &:hover {
                color: var(--color-accent);
            }
        }

        .radio__emulator {
            position: relative;
            width: 20px;
            height: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: var(--color-light);
            border: var(--border);
            border-radius: 50%;

            &::after {
                content: '';
                position: absolute;
                top: 50%;
                left: 50%;
                translate: -50% -50%;
                width: 60%;
                height: 60%;
                background-color: var(--color-accent);
                border-radius: inherit;
                transition-duration: var(--transition-duration);
            }
        }
    }
}

/*############## SERVICES ##############*/
.services {
    padding-block: var(--section-padding-y);

    .services__header {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        row-gap: 15px;
        padding-bottom: clamp(20px, 5vw, 50px);
    }

    .services__body {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding-bottom: clamp(10px, 2vw, 25px);
    }

    .services__wrapper {
        position: relative;
        width: 100%;
        height: clamp(100px, 40vw, 300px);
        transition-duration: var(--transition-duration);


        &:hover {
            scale: 1.01;

            .services__link {
                color: var(--color-accent);
                border-color: var(--color-accent);
            }
        }
    }

    .services__image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: var(--border-radius-m);
        box-shadow: 0 0 1rem 0 var(--color-gray);
        object-fit: cover;
        z-index: -1;
    }

    .services__inner {
        display: flex;
        flex-direction: column;
        justify-content: end;
        width: 100%;
        padding: clamp(10px, 5vw, 20px);
        color: var(--color-light);
    }

    .services__link {
        display: inline-flex;
        justify-content: space-between;
        font-weight: 500;
        border-top: var(--border);

        &:hover {
            color: var(--color-accent);
        }
    }

    .services__footer {
        display: flex;
        justify-content: center;
        align-items: center;
        column-gap: 2rem;
        padding-top: clamp(10px, 2vw, 25px);
    }
    .center-button {
        display: flex;
        justify-content: center;     /* centers horizontally */
        align-items: center;         /* centers vertically */
        gap: 0.5rem;                 /* space between text and image */
        text-align: center;
    }

    .services__button {
        box-shadow: 0 0 5px 0 var(--color-gray);

        &:hover {
            color: var(--color-dark);
        }
    }

    .services__button--alt {
        color: var(--color-light);
        background-color: var(--color-accent);
        border: none;
        box-shadow: 0 0 5px 0 var(--color-gray);

        &:hover {
            color: var(--color-dark);
            border: 1px solid var(--color-dark);
        }
    }
}

/*############## SPECIAL ##############*/
.special {
    padding-block: var(--section-padding-y);

    .special__title {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px;
        padding-bottom: clamp(20px, 4vw, 50px);
    }

    .special__menu {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: clamp(10px, 3vw, 30px);
        padding-inline: 5px;
        grid-auto-flow: dense;
        grid-template-areas:
            "box-1 box-1 box-1 box-2 box-2 box-3 box-3"
            "box-4 box-4 box-5 box-5 box-5 box-3 box-3";

        .special__menu-link {
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
            position: relative;
            &:hover {
                scale: 1.01;

                .special__menu-item {
                    color: var(--color-accent);
                }
            }
        }

        .special__menu-image {
            width: 100%;
            height: 100%;
            border-radius: var(--border-radius-l);
            object-fit: cover;
            box-shadow: 0 0 1rem 0 var(--color-gray);

        }

        .special__menu-item {
            position: absolute;
            top: 50%;
            left: 50%;
            translate: -50% -50%;
            color: var(--color-light);
            text-align: center;
        }
    }
}

/*############## OFFER ##############*/
.offer {
    padding-block: var(--section-padding-y);

    .offer__header {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        row-gap: 15px;
        padding-bottom: clamp(20px, 3vw, 50px);
    }

    .offer__subtitle {
        font-weight: 500;
    }

    .offer__body {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: clamp(15px, 3vw, 30px);
        padding-inline: 5px;

        .offer__body-item {
            border-radius: var(--border-radius-l);
            box-shadow: 0 0 1rem 0 var(--color-gray);
        }

        .offer__body-inner {
            position: relative;
        }

        .offer__body-image {
            width: 100%;
            place-self: center;
            border-radius: 15px 15px 0 0;
            user-select: none;
        }

        .offer__body-like {
            position: absolute;
            top: 15%;
            left: 88%;
            translate: -50% -50%;
            color: var(--color-light);
            -webkit-tap-highlight-color: transparent;
            transition: all 0.3s ease;
            cursor: pointer;

            &.is-active {
                svg * {
                    fill: var(--color-accent);
                    stroke: var(--color-accent);
                }
            }
        }

        .offer__body-wrapper {
            padding-inline: 10px;
            padding-top: 5px;
        }

        .offer__body-info {
            display: flex;
            justify-content: space-between;
            padding-top: 15px;
            color: var(--color-gray);
            border-top: 1px solid var(--color-gray);
        }

        .offer__body-price {
            display: flex;
            justify-content: space-between;
            padding-top: clamp(15px, 4vw, 50px);
            padding-bottom: 15px;
            font-weight: 500;
        }
    }
}

/*############## FEEDBACK ##############*/
.feedback {
    padding-block: var(--section-padding-y);

    .feedback__title {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px;
    }

    .feedback__body {
        display: flex;
        gap: clamp(20px, 4vw, 30px);
        padding-top: clamp(20px, 4vw, 50px);
        padding-bottom: clamp(20px, 4vw, 30px);
        scroll-snap-type: x mandatory;
        overflow-x: scroll;
    }

    .feedback__inner {
        display: flex;
        flex-direction: column;
        min-width: clamp(300px, 50vw, 450px);
        padding: clamp(10px, 3vw, 30px);
        border-radius: var(--border-radius-l);
        box-shadow: 3px 5px 20px 0 rgba(0, 0, 0, 0.07);
        scroll-snap-align: start;
    }

    .feedback__header {
        display: flex;
        justify-content: space-between;

        .feedback__header-star {
            color: var(--color-accent);
        }
    }

    .feedback__country {
        padding-top: 10px;
        color: var(--color-gray);
    }

    .feedback__comment {
        padding-block: clamp(10px, 2vw, 30px);
    }
}

/*############## CONTACTS ##############*/
.contacts {
    margin-top: clamp(25px, 7vw, 75px);
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2)),
    url('../images/contacts-bg.jpg') center/cover no-repeat;

    .contacts__main {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: clamp(10px, 4vw, 50px);
        align-items: center;
        padding-block: clamp(50px, 10vw, 150px);
    }

    .contacts__title {
        text-align: center;
        color: var(--color-light);
    }

    .contacts__subtitle {
        color: var(--color-light);
    }

    .contacts__wrapper {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .contacts__form {
        .contacts__form-input {
            width: clamp(250px, 50vw, 850px);
            height: clamp(32px, 5vh, 88px);
            padding-inline: clamp(32px, 5vw, 88px);
            text-align: center;
            color: var(--color-light);
            background-color: transparent;
            border: 2px solid var(--color-light);
            border-radius: var(--border-radius-m);
            box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);

            &:focus {
                border-color: var(--color-accent);
                outline: 0;
            }

            &::placeholder {
                color: var(--color-light);
            }
        }
    }
}

/*############## FOOTER ##############*/
.footer {
    font-weight: 400;

    .footer__body {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        align-items: start;
        gap: 30px;
        padding: 150px 50px 100px;
    }

    .footer__menu {
        display: flex;
        justify-content: space-around;
        align-items: center;
        column-gap: clamp(10px, 2vw, 30px);

        .footer__menu-column {
            display: flex;
            flex-direction: column;
            justify-content: space-around;
            row-gap: clamp(10px, 2vh, 30px);
        }

        .footer__menu-list {
            display: flex;
            flex-direction: column;
            row-gap: clamp(10px, 2vh, 30px);
        }
    }

    .footer__contacts {
        display: flex;
        flex-direction: column;
        align-items: start;
        row-gap: clamp(10px, 2vh, 30px);

        .footer__contacts-inner {
            display: flex;
            column-gap: 5px;
        }

        .footer__contacts-tel {
            display: flex;
            flex-direction: column;
            row-gap: 10px;
        }
    }

    .footer__extra {
        padding-block: clamp(10px, 2vh, 30px);
        padding-inline: clamp(20px, 5vw, 70px);
        background-color: var(--color-accent);
    }
}

.soc1als {
    display: flex;
    flex-direction: column;
    row-gap: clamp(10px, 2vh, 30px);

    .soc1als__logo {
        max-width: 300px;
        height: auto;
    }

    .soc1als__list {
        display: flex;
        justify-content: start;
        gap: 20px;
    }

    .soc1als__link {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 60px;
        height: 60px;
        color: var(--color-dark);
        background-color: var(--color-light);
        border-radius: 50%;
        box-shadow: 3px 5px 20px 0 rgb(0, 0, 0, 0.07);
        transition: transform var(--transition-duration-longer);

        &:hover {
            color: var(--color-accent);
            transform: translateY(-.25rem);
        }

    }
}

/*############## SCROLL-UP ##############*/
.scroll-up {
    position: fixed;
    right: 1rem;
    bottom: -50%;
    display: inline-flex;
    padding: 6px;
    color: var(--color-dark);
    background-color: var(--color-light);
    border-radius: var(--border-radius-m);
    z-index: 10;
    transition: bottom var(--transition-duration-longer), transform var(--transition-duration);
    box-shadow: 0 4px 16px hsla(0, 0%, 0%, .1);
}

.scroll-up:hover {
    color: var(--color-dark);
    background-color: var(--color-accent);
    transform: translateY(-.5rem);
}

.show-scroll {
    bottom: 4rem;
}
/*############## MEDIA ##############*/
@media (min-width: 2048px) {
    body {
        zoom: 1.1;
    }
}

@media (min-width: 1440px) {
}

@media (max-width: 1439px) {
}

@media (min-width: 1024px) {

}

@media (max-width: 1023px) {
    /*############## SEARCH ##############*/
    .search {
        .search__select {
            column-gap: 20px;
            padding: 20px;
        }
    }

    /*############## SERVICES ##############*/
    .services {
        .services__body {
            grid-template-columns: 1fr;
        }
    }

    /*############## OFFER ##############*/
    .offer__body {
        flex-direction: column;
    }

    /*############## FOOTER ##############*/
    .footer {
        .footer__body {
            grid-template-columns: repeat(2, 1fr);

            &:last-child {
                grid-column: -1 / 1;
            }
        }
    }
}

@media (min-width: 768px) {
    /*############## HEADER ##############*/
    .header {
        .header__overlay {
            display: contents;
        }
    }
}

@media (max-width: 767px) {
    /*############## HEADER ##############*/
    .header {
        .header__overlay {
            position: fixed;
            inset: 0;
            display: flex;
            flex-direction: column;
            justify-content: center;
            row-gap: 5rem;
            padding: 1rem;
            background-color: var(--color-dark);

            &:not(.is-active) {
                opacity: 0;
                visibility: hidden;
                translate: 100%;
            }
        }

        .header__menu {
            overflow-y: auto;

            .header__menu-list {
                flex-direction: column;
                row-gap: 32px;

                &::before {
                    content: '';
                    width: 200px;
                    height: 40px;
                    background: url("../images/logo.svg") center no-repeat;
                }
            }

            .header__menu-link {
                font-size: 30px;
                color: var(--color-light);
                border-bottom: 1px dotted var(--color-light);

            }
        }
    }

    /*############## SEARCH ##############*/
    .search {
        .search__select {
            flex-direction: column;
            justify-content: center;
            align-items: stretch;
            row-gap: 20px;
        }

        .search__select-button {
            width: 100%;
        }
    }

    /*############## RADIO ##############*/
    .search {
        .radio {
            padding-left: 0;
        }
    }

    /*############## SERVICES ##############*/
    .services {
        .services__header {
            row-gap: 7px;
        }
    }

    /*############## SPECIAL ##############*/
    .special {
        .special__title {
            flex-direction: column;
        }

        .special__menu {
            display: flex;
            flex-direction: column;

            .special__menu-image {
                height: clamp(300px, 30vh, 500px);
            }

            .special__menu-item {
                top: 90%;
                left: 10%;
                translate: -10% -90%;
                border-top: var(--border);
            }
        }
    }

    /*############## OFFER ##############*/
    .offer {
        .offer__body {
            grid-template-columns: repeat(2, 1fr);

            .offer__body-wrapper {
                padding-inline: 3px;
            }

            .offer__body-info {
                padding-top: 10px;
            }

            .offer__body-price {
                padding-bottom: 5px;
            }
        }
    }

    /*############## FEEDBACK ##############*/
    .feedback {
        .feedback__title {
            flex-direction: column;
            gap: 0;
        }
    }

    /*############## CONTACTS ##############*/
    .contacts {
        .contacts__wrapper {
            gap: 15px;
        }
    }

    /*############## FOOTER ##############*/
    .footer {
        .footer__body {
            grid-template-columns: 1fr;
            padding: 50px 30px 20px;
        }

        .footer__menu {
            justify-content: start;
            gap: 50px;
        }
    }

    /*############## EXTRA-MENU ##############*/
    .extra-menu {
        position: sticky;
        bottom: 0;
        z-index: 90;
        width: 100%;
        padding: 5px;
        color: var(--color-dark);
        background-color: var(--color-light);
        box-shadow: 0 0 1rem 0 var(--color-dark);

        .extra-menu__list {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            column-gap: clamp(5px, 1vw, 15px);
            margin-inline: 0;
        }

        .extra-menu__item {
            padding-block: 5px;

            &.is-active {
                border-top: 3px solid var(--color-accent);
            }
        }

        .extra-menu__link {
            display: grid;
            text-align: center;
        }

        .extra-menu__title {
            font-size: clamp(12px, 2vw, 16px);
        }
    }

}

@media (max-width: 480px)   {
    .services {
        .services__footer {
            flex-direction: column;
            row-gap: 1rem;
        }
    }
    .offer {
        .offer__body {
            grid-template-columns: 1fr;
        }
    }
}

