@charset "utf-8";

:root {
    font-size: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: #3a434f;
    font-family: "Arial", sans-serif;
    font-size: .937rem;
    line-height: 1.5;
    background: linear-gradient(180deg, rgba(239, 239, 239, 0.3) 18.75rem, rgba(239, 239, 239, 1) 50rem), url(../images/bg.png) no-repeat top center;
    font-weight: 400;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

#wrapper {
    position: relative;
    max-width: 50rem;
    margin: 1rem auto;
    overflow: hidden;
    font-weight: 400;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #01315f;
    text-decoration: underline;
    white-space: nowrap;
}

a.phone {
    text-decoration: none;
    color: inherit;
}

p {
    margin: 0 0 .625rem;
}

h1 {
    font-size: 1rem;
    margin: 1rem 0 0;
}

h2 {
    font-size: 1rem;
    line-height: 1.3;
    color: #01315f;
    padding: .5rem;
    background-color: #f5f5f5;
    border-bottom: .062rem solid #DCDFE2;
}

ul {
    margin: 0;
    padding-left: 1.875rem;
}

header section {
    margin: 0 0 .75rem;
    background-color: #fff;
    padding: .75rem 0.938rem;
    display: flex;
}

.slider {
    position: relative;
}

.slider > img {
    border-radius: .187rem;
    border: .062rem solid #DCDFE2;
    display: block;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    animation: imageAnimation 18s linear infinite 0s;
}

.slider > img:nth-of-type(1) {
    position: static;
    opacity: 1;
}

.slider > img:nth-of-type(2) {
    animation-delay: 6s;
}

.slider > img:nth-of-type(3) {
    animation-delay: 12s;
}

@keyframes imageAnimation {
    4% {
        opacity: 1;
    }

    33% {
        opacity: 1;
    }

    38% {
        opacity: 0;
    }
}

section {
    border: .062rem solid #DCDFE2;
    margin: .75rem 0;
    border-radius: .25rem;
    background: #fff;
}

section div {
    padding: .75rem 0.938rem;
}

a.button {
    width: 50%;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
    border-radius: .187rem;
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.2s ease-in-out;
    color: #ffffff;
    background-color: rgb(1, 49, 95);
    text-decoration: none;
}

footer {
    padding: .75rem;
    display: flex;
    justify-content: center;
}

@media only screen and (max-width: 49.937rem) {
    #wrapper {
        border: none;
        margin: 0 auto;
        padding: 1rem;
    }

    p,
    ul {
        -moz-hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
        margin: 0 0 1rem;
    }
}

@media only screen and (max-width: 30rem) {
    header section {
        justify-content: center;
    }

    ul {
        padding-left: 1rem;
    }

    a.button {
        width: 100%;
    }

    footer {
        padding: 0;
    }
}

@media only screen and (max-width: 23.437rem) {

    h1,
    h1 + p {
        text-align: center;
    }
}
