@font-face {
    font-family: "Inter";
    src: url("./assets/fonts/inter.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}


:root {
    --color-dark: #171717;
    --color-grey: #202124;
    --color-grey-light: #959595;
    --color-white: #EFEFEF;
    --color-black: #000000;
    --color-blue: #5A94BA;
}


::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background-color: #313131;
}

::-webkit-scrollbar-thumb {
    background-color: #a2a2a2;
}


* {
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
    font-style: normal;
    -webkit-tap-highlight-color: transparent;
}


body {
    margin: 0;
    padding: 0;
    color: var(--color-white);
    background-color: var(--color-dark);
}


h1,
h2,
h3,
p {
    margin: 0;
}

h1,
h2,
h3 {
    line-height: 1;
}

a {
    font-size: 16px;
    color: var(--color-white);
    text-decoration: none;
}


marker {
    position: relative;
    width: 6px;
    height: 6px;
    display: flex;
    justify-content: center;
    border-radius: 50%;
    background-color: #FFFFFF;

    img {
        position: absolute;
        bottom: 10px;
        height: 52px;
    }
}


header {
    height: 80px;
    align-content: center;
    justify-items: center;
    background-color: var(--color-dark);
    z-index: 1;

    wrapper {
        max-width: 1920px;
        width: 100%;
        padding: 0 clamp(20px, calc(20px + (300 - 20) * ((100vw - 720px) / (1920 - 720))), 300px);
        display: flex;
        align-items: center;
        justify-content: space-between;

        a {
            font-weight: 650;
            transition: color 0.2s;

            &:hover {
                color: var(--color-blue);
            }
        }

        nav {
            display: flex;
            align-items: center;
            gap: 40px;
        }

        .logo {
            display: flex;

            img {
                height: 40px;
                transition: transform 0.2s;
            }

            &:hover {
                img {
                    transform: scale(1.1, 1.1);
                }
            }
        }
    }
}


main {
    position: relative;
    justify-items: center;
    background-image: url(./assets/images/background-main.webp);
    background-color: var(--color-dark);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    z-index: 0;

    wrapper {
        position: relative;
        max-width: 1920px;
        width: 100%;
        padding: 200px clamp(20px, calc(20px + (300 - 20) * ((100vw - 720px) / (1920 - 720))), 300px);
        display: flex;
        flex-direction: column;
        gap: 40px;
        z-index: 1;

        .title {
            h1,
            h2 {
                font-weight: bold;
            }

            h1 {
                margin-bottom: 4px;
                font-size: 64px;
                text-indent: -0.04em;
                color: var(--color-blue);
            }

            h2 {
                font-size: 36px;
                color: var(--color-white);
            }
        }

        .buttons {
            display: flex;
            align-items: center;
            gap: 20px;

            a {
                padding: 16px 30px;
                font-size: 16px;
                font-weight: 600;
                color: var(--color-white);
                white-space: nowrap;
                border: none;
                border-radius: 5px;
                transition: background-color 0.2s;

                &.light {
                    background-color: var(--color-blue);

                    &:hover {
                        background-color: #36607d;
                    }
                }

                &.dark {
                    border: 1px solid var(--color-grey-light);
                    background-color: var(--color-dark);

                    &:hover {
                        background-color: #2e2e32;
                    }
                }
            }
        }
    }

    blur {
        position: absolute;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
    }
}


section {
    justify-items: center;

    &:nth-child(even) {
        background-color: var(--color-grey);
    }

    wrapper {
        max-width: 1920px;
        width: 100%;
        padding: 120px clamp(20px, calc(20px + (300 - 20) * ((100vw - 720px) / (1920 - 720))), 300px);
        display: flex;
        flex-direction: column;
        gap: 60px;

        .title {
            display: flex;
            flex-direction: column;
            gap: 20px;

            h1 {
                font-size: 48px;
                font-weight: bold;
                text-indent: -0.04em;
                color: var(--color-blue);
            }
        }
    }

    &.services {
        .grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            grid-column-gap: 16px;
            grid-row-gap: 50px;

            .item {
                position: relative;
                background-repeat: no-repeat;
                background-position: center;
                background-size: cover;
                cursor: pointer;

                .image {
                    position: relative;
                    height: 420px;
                    margin-bottom: 16px;
                    background-color: var(--color-dark);
                    border-radius: 10px;
                    overflow: hidden;

                    .background {
                        position: absolute;
                        inset: 0;
                        background-repeat: no-repeat;
                        background-position: center;
                        background-size: cover;
                        transition: transform 0.2s;
                    }
                }

                .name {
                    margin-bottom: 4px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    gap: 6px;

                    h2 {
                        font-size: 16px;
                        font-weight: 550;
                    }
                 
                    img {
                        height: 12px;
                        transition: margin 0.2s;
                    }
                }

                .price {
                    text-align: center;
                    font-size: 14px;
                    font-weight: 350;
                    color: var(--color-grey-light);
                }

                &:hover {
                    .image {
                        .background {
                            transform: scale(1.06);
                        }
                    }

                    .name {
                        img {
                            margin-left: 4px;
                        }
                    }
                }
            }
        }
    }

    &.gallery {
        .slider  {
            display: flex;
            gap: 14px;
            user-select: none;
            touch-action: pan-y;

            button {
                width: 60px;
                height: 560px;
                display: flex;
                align-items: center;
                justify-content: center;
                background-color: var(--color-dark);
                border: none;
                border-radius: 10px;
                transition: background-color 0.2s;
                cursor: pointer;

                img {
                    height: 16px;
                }

                &:focus {
                    outline: none;
                }

                &:hover {
                    background-color: #2e2e32;
                }
            }

            .images {
                height: 560px;
                width: 100%;
                border-radius: 10px;
                overflow: hidden;

                .track {
                    height: 100%;
                    display: flex;
                    gap: 14px;

                    .image {
                        height: 100%;
                        flex: 0 0 calc((100% - 14px * 2) / 3);
                        background-color: var(--color-dark);
                        background-repeat: no-repeat;
                        background-position: center;
                        background-size: cover;
                        border-radius: 10px;
                    }
                }
            }
        }
    }

    &.contacts {
        .content {
            display: flex;
            gap: 120px;
            background-color: var(--color-grey);
            border-radius: 10px;
            overflow: hidden;

            .data {
                padding: 40px;
                display: flex;
                flex-direction: column;
                gap: 32px;

                .item {
                    display: flex;
                    flex-direction: column;
                    gap: 8px;

                    h2 {
                        font-size: 24px;
                        font-weight: 650;
                        white-space: nowrap;
                    }

                    p {
                        font-weight: 350;
                    }

                    a {
                        display: flex;
                        align-items: center;
                        gap: 8px;
                        font-weight: 350;

                        img {
                            height: 20px;
                            transition: transform 0.2s;
                        }

                        span {
                            display: flex;
                            flex-direction: column;
                            
                            &::after {
                                content: "";
                                height: 1px;
                                background-color: var(--color-white);
                                transition: opacity 0.2s;
                                opacity: 0.5;
                            }
                        }
                        
                        &:hover {
                            span {
                                &::after {
                                    opacity: 1;
                                }
                            }

                            img {
                                transform: scale(1.2, 1.2);
                            }
                        }
                    }
                }
            }

            .map {
                display: flex;
                flex: 1;
                background-image: url(./assets/images/background-map.webp);
                background-color: var(--color-dark);
                background-repeat: no-repeat;
                background-position: center;
                background-size: cover;
            }
        }
    }

    &.faq {
        .accordions {
            display: flex;
            flex-direction: column;
            gap: 10px;

            .accordion {
                background-color: var(--color-dark);
                border-radius: 10px;

                .head {
                    padding: 20px 40px;
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    gap: 10px;
                    border-radius: 10px;
                    transition: color 0.2s;
                    user-select: none;
                    cursor: pointer;

                    h2 {
                        font-size: 18px;
                        font-weight: bold;
                        line-height: 1.2;
                    }

                    img {
                        height: 8px;
                        transition: transform 0.2s;
                    }

                    &:hover {
                        color: var(--color-blue);
                    }
                }

                .body {
                    max-height: 0;
                    padding: 0 40px;
                    border-radius: 0 0 10px 10px;
                    transition: max-height 0.2s, padding 0.2s;
                    overflow: hidden;

                    p {
                        max-width: 720px;
                        font-size: 14px;
                        font-weight: 350;
                        line-height: 1.3;
                    }
                }

                &.opened {
                    .head {
                        border-radius: 10px 10px 0 0;

                        img {
                            transform: rotate(180deg);
                        }
                    }

                    .body {
                        max-height: 200px;
                        padding: 18px 40px;
                        border-top: 1px solid var(--color-grey);
                    }
                }
            }
        }
    }

    &.pricelist {
        wrapper {
            gap: 40px;
        }

        .tables {
            display: flex;
            flex-direction: column;
            gap: 20px;

            .table {
                background-color: var(--color-dark);
                border-radius: 10px;

                .head {
                    padding: 22px 40px 20px 40px;

                    h2 {
                        font-size: 18px;
                        font-weight: 650;
                    }
                }

                .body {
                    .row {
                        padding: 14px 40px;
                        display: flex;
                        align-items: center;
                        justify-content: space-between;
                        border-top: 1px solid var(--color-grey);
                        transition: color 0.2s;
                        user-select: none;

                        h3 {
                            font-size: 14px;
                            font-weight: 400;
                        }

                        p {
                            font-size: 14px;
                            font-weight: 400;
                        }

                        &:hover {
                            color: var(--color-blue);
                        }
                    }
                }
            }
        }
    }
}


footer {
    height: 200px;
    align-content: center;
    justify-items: center;
    background-color: var(--color-black);

    wrapper {
        max-width: 1920px;
        width: 100%;
        padding: 0 clamp(20px, calc(20px + (300 - 20) * ((100vw - 720px) / (1920 - 720))), 300px);
        display: flex;
        align-items: center;
        justify-content: space-between;

        .phone {
            margin-bottom: 6px;
            font-size: 24px;
            font-weight: 650;

            &:hover {
                text-decoration: underline;
            }
        }

        .schedule {
            margin-bottom: 22px;
            font-size: 14px;
        }

        .socials {
            display: flex;
            align-items: center;
            gap: 12px;

            a {
                img {
                    height: 24px;
                    transition: transform 0.2s;
                }

                &:hover {
                    img {
                        transform: scale(1.2, 1.2);
                    }
                }
            }
        }

        .logo {
            display: flex;

            img {
                height: 70px;
                transition: transform 0.2s;
            }

            &:hover {
                img {
                    transform: scale(1.1, 1.1);
                }
            }
        }

        .address {
            font-size: 20px;
            font-weight: 650;
            text-align: end;
        }
    }
}


@media (max-width: 1540px) {
    section {
        &.gallery {
            .slider {
                .images {
                    .track {
                        .image {
                            flex: 0 0 calc((100% - 14px) / 2);
                        }
                    }
                }
            }
        }

        &.contacts {
            .content {
                gap: 60px;
            }
        }
    }
}

@media (max-width: 1280px) {
    section {
        &.contacts {
            .content {
                gap: 20px;

                .data {
                    gap: 28px;

                    .item {
                        gap: 6px;

                        h2 {
                            font-size: 20px;
                        }

                        p {
                            font-size: 14px;
                        }

                        a {
                            gap: 6px;

                            img {
                                height: 16px;
                            }
                        }
                    }
                }
            }
        }
    }
}

@media (max-width: 900px) {
    header {
        wrapper {
            a {
                font-size: 14px;
            }

            nav {
                gap: 20px;
            }
        }
    }

    main {
        wrapper {
            .title {
                h1 {
                    font-size: 60px;
                }

                h2 {
                    font-size: 32px;
                }
            }
        }
    }

    section {
        &.gallery {
            .slider {
                .images {
                    .track {
                        .image {
                            flex: 0 0 100%;
                        }
                    }
                }
            }
        }

        &.contacts {
            .content {
                .data {
                    padding: 30px 20px;
                }
            }
        }

        &.faq {
            .accordions {
                .accordion {
                    .head {
                        padding: 20px;

                        h2 {
                            font-size: 16px;
                        }
                    }

                    .body {
                        padding: 0 20px;
                    }

                    &.opened {
                        .body {
                            padding: 18px 20px;
                        }
                    }
                }
            }
        }

        &.pricelist {
            .tables {
                .table {
                    .head {
                        padding: 20px;
                        
                        h2 {
                            font-size: 16px;
                        }
                    }

                    .body {
                        .row {
                            padding: 14px 20px;
                        }
                    }
                }
            }
        }
    }

    footer {
        height: auto;
        
        wrapper {
            padding: 60px clamp(20px, calc(20px + (300 - 20) * ((100vw - 720px) / (1920 - 720))), 300px);

            .phone {
                font-size: 20px;
            }

            .schedule {
                margin-bottom: 18px;
                font-size: 12px;
            }

            .socials {
                a {
                    img {
                        height: 20px;
                    }
                }
            }

            .address {
                font-size: 16px;
            }
        }
    }
}

@media (max-width: 720px) {
    main {
        wrapper {
            .title {
                h1 {
                    font-size: 58px;
                }

                h2 {
                    font-size: 32px;
                }
            }
        }
    }

    section {
        &.gallery {
            .slider {
                position: relative;

                button {
                    position: absolute;
                    padding: 0 20px;
                    width: 50%;
                    background-color: transparent;
                    z-index: 1;

                    &.prev {
                        left: 0;
                        border-radius: 10px 0 0 10px;
                        justify-content: start;
                    }

                    &.next {
                        right: 0;
                        border-radius: 0 10px 10px 0;
                        justify-content: end;
                    }

                    &:hover {
                        background-color: transparent;
                    }
                }

                .images {
                    .track {
                        .image {
                            flex: 0 0 100%;
                        }
                    }
                }
            }
        }

        &.pricelist {
            .tables {
                .table {
                    .body {
                        .row {
                            flex-direction: column;
                            align-items: start;
                            gap: 8px;
                        }
                    }
                }
            }
        }
    }
}

@media (max-width: 620px) {
    header {
        wrapper {
            nav {
                display: none;
            }
        }
    }
}

@media (max-width: 560px) {
    br {
        &.desktop {
            display: none;
        }
    }

    header {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        background-color: transparent;
    }

    main {
        wrapper {
            height: 100svh;
            padding: 0 20px 15% 20px;
            justify-content: end;

            .title {
                h1 {
                    margin-bottom: 4px;
                    font-size: 52px;
                }

                h2 {
                    font-size: 28px;
                }
            }

            & > p {
                font-size: 14px;
            }

            .buttons {
                flex-direction: column;
                gap: 14px;

                a {
                    width: 100%;
                    display: flex;
                    justify-content: center;
                }
            }
        }
    }

    section {
        wrapper {
            padding: 80px 20px;
            gap: 40px;

            .title {
                h1 {
                    font-size: 36px;
                }

                & > p {
                    font-size: 14px;
                }
            }
        }

        &.services {
            .grid {
                grid-row-gap: 40px;

                .item {
                    .image {
                        height: 320px;
                    }
                }
            }
        }

        &.contacts {
            .content {
                .map {
                    display: none;
                }
            }
        }

        &.pricelist {
            wrapper {
                padding: 120px 20px 80px 20px;
            }
        }
    }

    footer {
        wrapper {
            padding: 60px 20px;
            flex-direction: column-reverse;
            align-items: start;
            gap: 40px;

            .logo {
                display: none;
            }

            .address {
                text-align: start;
            }
        }
    }
}

@media screen and (min-width: 560px) {
    br {
        &.mobile {
            display: none;
        }
    }
}