:root {
    --column-width: calc(min(30rem, 100dvw));

    --primary-color: #bcd4ea;
    --primary-text-color: #fff;

    --secondary-color: #f5f5f5;
}

body {
    font-family: 'Roboto Condensed', sans-serif;
    background-color: #000;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
}

.button {
    min-width: 10rem;
    display: inline-block;
    text-align: center;
}

button,
.button {
    background: #000;
    color: var(--primary-text-color);
    border: 5px solid #000;
    box-shadow: 0 0 3px var(--primary-text-color);
    border-radius: 10px;
    padding: 0.5rem 1rem;
    font-weight: bolder;
    /*font-variant: small-caps;*/
}

button:hover,
.button:hover {
    background: var(--primary-text-color);
    color: #000;
    cursor: pointer;
}

input[type=text],
input[type=tel],
input[type=email] {
    border: 1px solid #000;
    padding: 1rem;
    border-radius: 10px;
}

/**
 * header
 */
.header {
    height: 3rem;
    width: calc(100% - 4rem);
    display: flex;
    justify-content: center;
    padding: 1rem 2rem;
    color: var(--primary-text-color);
    text-shadow: 0 0 5px #000;
    background: rgba(0, 0, 0, .6);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header__logo {
    max-width: 14rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
}

.header__link {
    display: flex;
    justify-content: center;
    align-items: center;
}

.header__logo img {
    height: 1em;
}

.header__menu {
    margin: 0;
    padding: 0;
    list-style: none;
    flex: 1;
    max-width: 40rem;

    display: grid;
    justify-content: center;
}

.header__menu--desktop {
    grid-template-columns: 1fr 1fr 1fr;
}

.header__menu li {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.header__button {
    margin: 0 2rem;
    max-width: 10rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header__menu--mobile {
    display: none;
    grid-template-columns: 1fr 1fr;
}

.header__menu--mobile a {
    height: 1rem;
    padding: 0 .5rem;
}

.header__menu object {
    pointer-events: none;
}

@media only screen and (max-width: 768px) {
    .header__logo {
        padding: 0 1rem;
        font-size: 1.5rem;
    }

    .header__menu--desktop {
        display: none;
    }

    .header__menu--mobile {
        display: grid;
    }

    .header__button {
        margin: 0 1rem;
    }
}

/**
 * banner
 */

.banner {
    display: flex;
    height: calc(100dvh - 5rem);
    width: 100dvw;
    overflow: hidden;
}

/**
 * submenu
 */

.submenu {
    padding: 1rem 0;
    background: var(--primary-text-color);
}

.submenu__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.submenu__list a {
    display: block;
    flex: 1;
    text-align: center;
    padding: 0.5rem 0;
    font-size: 1.1rem;
    font-weight: bold;
}

.submenu__list button {
    background: none;
    padding: 0;
    margin: 0;
    border: 0;
    color: inherit;
}

.submenu__list li + li {
    border-left: 1px solid #eee;
}

/**
 * services
 */

.services__wrapper {
    background: var(--primary-color);
}

/**
 * service
 */
.service {
    display: flex;
    position: relative;
    border: 2px solid rgba(0, 0, 0, .5);
    border-radius: 5px;
    padding: 2rem;
    margin: 2rem;
    height: calc(100% - 8rem);
}

.swiper-wrapper {
    align-items: stretch;
}

.swiper-slide {
    height: auto;
}

@media only screen and (max-width: 768px) {
    .service {
        flex-direction: column;
    }
}

.service button {
    padding-left: 4rem;
    padding-right: 4rem;
}

.service__counter {
    position: absolute;
    top: 10px;
    left: 10px;
    font-weight: bold;
    color: rgba(0, 0, 0, .5);
}

.service__title {
    font-size: 2rem;
    font-weight: bold;
    padding-bottom: 1rem;
}

.service__description,
.service__more {
    font-size: 1.1rem;
    line-height: 1.5;
    padding-bottom: 1rem;
}

.service__price {
    font-size: 1.1rem;
    font-weight: bold;
    padding-bottom: 1rem;
}

.service__image {
    flex: 1;
    padding: 0 2rem 0 0;
}

.service__image img {
    max-width: 100%;
}

.service__details {
    flex: 2;
}

.service__more {
    margin-top: 1rem;
}

@media only screen and (max-width: 768px) {
    .service__image {
        padding: 1rem;
    }
}

/**
 * map
 */

.map {
    max-height: 40rem;
    position: relative;
}

.map__header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    font-size: 2rem;
    font-weight: bold;
    margin: 1rem 0;
    color: #fff;
    text-align: center;
    z-index: 10;
}

.map__image {
    max-height: 40rem;
    width: 100%;
    object-fit: cover;
    object-position: top center;
    filter: invert(1);
}

/**
 * form
 */

.form {
    background: var(--secondary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;

}

.form__header {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.form__description {
    font-size: 1.15rem;
    max-width: var(--column-width);
    margin: 0 2rem 1rem;
    text-align: justify;
}

.form__form {
    max-width: var(--column-width);
    display: flex;
    flex-direction: column;
}

.form__form-column {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin-bottom: 1rem;
}

.form__form-column label {
    display: flex;
}

.form__form-column input {
    margin: 0 2rem;
    width: 100%;
}

.form__checkbox {
    margin: 0 0 1rem 2rem;
}

.form__checkbox a {
    font-weight: bold;
}

.form__submit {
    display: flex;
    justify-content: center;
}

/**
 * footer
 */
.footer {
    background: black;
    color: white;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.footer__columns {
    max-width: 60rem;
    min-width: var(--column-width);
    display: flex;
    justify-content: space-around;
}

.footer__column {
    display: inline-block;
    padding: 2rem 1rem;
}

.footer__column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__column ul li {
    padding: 0;
}

.footer__column ul li + li {
    margin-top: 1rem;
}

.footer__signature {
    display: flex;
    padding: 0 0 2rem;
}

/**
 * container
 */

.container {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: var(--primary-color);
    justify-content: center;
    align-items: center;
}

.container__block {
    max-width: 40rem;
    padding: 2rem;
}

.container__image {
    max-width: min(100dvw, 30rem);
    margin: 0 auto;
    display: block;
}

@media only screen and (max-width: 40rem) {
    .container__block {
        align-self: stretch;
    }

    .container__image {
        max-width: 100%;
    }
}

/**
 * dialog
 */

.dialog {
    overflow: visible;
}

button.dialog__cross {
    position: absolute;
    top: -10px;
    right: -10px;
    padding: 0;
    width: 30px;
    height: 30px;
}

/**
 * button animation
 */

.button__animated {
    width: 300px;
    height: 50px;
    background-image: repeating-linear-gradient(-45deg, rgb(0, 0, 0), rgb(0, 0, 0) 25px, var(--secondary-color) 25px, var(--secondary-color) 50px);
    -webkit-animation: progress 2s linear infinite;
    -moz-animation: progress 2s linear infinite;
    -ms-animation: progress 2s linear infinite;
    animation: progress 2s linear infinite;
    background-size: 150% 100%;
}

@-webkit-keyframes progress {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: -75px 0px;
    }
}

@-moz-keyframes progress {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: -75px 0px;
    }
}

@-ms-keyframes progress {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: -75px 0px;
    }
}

@keyframes progress {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: -70px 0px;
    }
}
