@charset "utf-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    font-size: 16px;
}

body {
    color: #000548;
    font-family: "Arial", sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}

#wrapper {
    position: relative;
    max-width: 62.5rem;
    margin: 1rem auto;
    overflow: hidden;
    background: #fff;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

img {
    max-width: 100%;
    height: auto;
}

h1 {
    font-size: 2.5rem;
    margin: 1rem 0;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: .75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

p span {
    color: #2dc26b;
    font-weight: 700;
}

.margin {
    margin-bottom: 4rem;
}

ul {
    margin: 1.25rem 0 2.812rem 1.687rem;
}

ul li {
    list-style: none;
    position: relative;
    margin-bottom: 0.3rem;
}

ul li:before {
    background-color: #eb003c;
    border-radius: 50%;
    content: "";
    display: inline-block;
    height: 0.625rem;
    left: -1.25rem;
    position: absolute;
    top: calc((1.5rem - 0.625rem) / 2);
    width: 0.625rem;
}

header {
    padding: 2rem 0;
}

main {
    display: flex;
    flex-direction: row-reverse;
    gap: 2rem;
}

article {
    width: 70%;
}

.info {
    display: flex;
    flex-wrap: wrap;
    gap: 0 2rem;
    margin: 1rem 0;
}

.info i {
    margin-right: 0.75rem;
}

.icons {
    display: grid;
    grid-template-columns: repeat(2, minmax(10rem, 1fr));
    gap: 1rem;
}

.icons div {
    background-color: #f0f0f0;
    padding: 2rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

article section {
    background-color: #f0f0f0;
    padding: 2rem;
    margin: 3rem 0;
}

section :last-child {
    margin-bottom: 0;
}

aside {
    width: 30%;
}

aside p {
    color: #fff;
    margin-bottom: 0.5rem;
}

.blue {
    background-color: #000548;
    padding: 2rem 1rem;
    margin: 2rem 0 3rem;
}

.red {
    background-color: #eb003c;
    padding: 2rem 1rem;
    margin: 3rem 0;
}

.button {
    background-color: #000548;
    display: flex;
    justify-content: center;
    width: 11rem;
    border-radius: 0.625rem;
    border: 1px solid #000548;
}

a.apply {
    color: #fff;
    padding: 0.75rem 2.25rem;
}

.button:hover {
    background-color: #eb003c;
    border: 1px solid #fff;
    transition: all ease .3s;
}

aside .blue i {
    margin-right: 0.75rem;
}

a.tel {
    text-decoration: underline;
    font-weight: 700;
}

a.tel:hover {
    text-decoration: none;
}

footer {
    background-color: #000548;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
}

footer p {
    color: #fff;
    margin: 0;
}

.kontakt {
    display: flex;
    gap: 1rem;
}

.kontakt a {
    text-decoration: underline;
}

.kontakt a:hover {
    text-decoration: none;
}

.socials {
    display: flex;
    gap: 1rem;
}

.socials a {
    color: #fff;
    border: 1px solid #fff;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    text-align: center;
}

.socials i {
    margin-top: 0.40rem;
}

@media only screen and (max-width: 62rem) {
    #wrapper {
        border: none;
        margin: 0 auto;
        padding: 1rem;
    }
}

@media only screen and (max-width: 50rem) {

    p,
    ul,
    h4 {
        -moz-hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
    }

    main {
        flex-direction: column;
        gap: 0;
    }

    article,
    aside {
        width: 100%;
    }

    .margin {
        margin-bottom: 2rem;
    }

    aside {
        margin-top: 0;
    }

    article section {
        margin: 1.5rem 0 0;
    }

    article .red {
        display: none;
    }

    .blue,
    .red {
        margin: 1.5rem 0 0;
        width: 100%;
    }

    aside {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .button {
        margin: 0 auto;
    }
}

@media only screen and (max-width: 37.5rem) {

    .icons {
        grid-template-columns: repeat(1, minmax(7rem, 1fr));
    }

    footer {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

@media only screen and (max-width: 30rem) {
    .info {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .info p {
        margin-bottom: 0.25rem;
    }

    .icons div,
    article section,
    .blue,
    .red,
    footer {
        padding: 1rem;
    }

    h1 {
        font-size: 1.75rem;
        text-align: center;
    }

    header {
        display: flex;
        justify-content: center;
        padding: 1rem;
    }
}