/* Box sizing rules */
*,
*::before,
*::after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

/* Prevent font size inflation */
html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    -ms-text-size-adjust: none;
    text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body,
h1,
h2,
h3,
h4,
p,
ul,
figure,
blockquote,
dl,
dd {
    margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role=list],
ol[role=list] {
    list-style: none;
}

/* Set core body defaults */
body {
    min-height: 100vh;
    line-height: 1.5;
}

/* Set shorter line heights on headings and interactive elements */
h1,
h2,
h3,
h4,
button,
input,
label {
    line-height: 1.1;
}

/* Balance text wrapping on headings */
h1,
h2,
h3,
h4 {
    text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
    -webkit-text-decoration-skip: ink;
    text-decoration-skip-ink: auto;
    color: currentColor;
}

/* Make images easier to work with */
img,
picture {
    max-width: 100%;
    display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
    font: inherit;
}

/* Make sure textarea without a rows attribute are not tiny */
textarea:not([rows]) {
    min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
    scroll-margin-block: 5ex;
}

/*-----------------------------==========================-------------------------------*/
html {
    /*min-height: 100%;*/
    /*background-image: linear-gradient(45deg, #502AA0, #3260CD);*/
}

body {
    color: white;
    min-height: 100vh;
    background-image: linear-gradient(45deg, #502aa0, #3260cd);
    background-attachment: fixed;
    background-repeat: no-repeat;
}

h2 {
    font-size: 48px;
}

h3 {
    margin-top: 25px;
    text-align: center;
}

@media (max-width: 500px) {
    ul {
        padding-left: 25px;
    }
}

.wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    /*height: 100%;*/
    min-height: 100vh;
}

.body {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

button {
    color: white;
    background-color: unset;
    border: 1px solid white;
    cursor: pointer;
    -webkit-transition: all 0.3s 0s ease;
    transition: all 0.3s 0s ease;
}

button:hover {
    background-color: rgba(51, 46, 66, 0.3490196078);
}

.greeting-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    min-height: 100vh;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.greeting {
    padding: 20px;
}

.greeting h1 {
    font-size: 70px;
    letter-spacing: 5px;
    text-align: center;
}

.tariffs-row {
    margin-bottom: 150px;
}

.tariffs {
    padding: 20px;
}

.tariffs__btn {
    text-align: center;
    margin-top: 30px;
    font-size: 24px;
}

.tariffs__btn button {
    padding: 10px;
    border-radius: 5px;
}

.tariff-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-top: 30px;
}

.tariff {
    border: 1px solid white;
    border-radius: 5px;
    padding: 5px;
    margin-bottom: 20px;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    max-width: 24%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.tariff__info {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
}

.tariff__level {
    font-size: 42px;
    font-weight: bold;
    letter-spacing: 2px;
}

.tariff__cost {
    font-size: 24px;
}

.tariff__duration {
    font-size: 24px;
}

.tariff__button {
    text-align: center;
    padding: 10px;
}

.tariff__button button {
    height: 40px;
    width: 100%;
}

@media (max-width: 1100px) {
    .tariff {
        max-width: 32%;
    }
}

@media (max-width: 900px) {
    .tariff {
        max-width: 49%;
    }
}

@media (max-width: 700px) {
    .tariff {
        max-width: 100%;
    }
}

.tariff-services__container {
    padding: 0 0 0 25px;
}

.tariff-services__title {
    margin-top: 15px;
    text-decoration: underline;
    font-size: 18px;
}

.legal {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    text-align: justify;
}

.legal p,
.legal ul {
    margin: 0 0 20px;
}

.legal-content {
    margin-top: 20px;
}

.popup {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    top: 0;
    left: 0;
    z-index: 10;
    -webkit-transition: all 0.6s ease 0s;
    transition: all 0.6s ease 0s;
    opacity: 0;
    visibility: hidden;
}

.popup__body {
    min-height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 80px 10px;
    -webkit-transition: all 0.6s ease 0s;
    transition: all 0.6s ease 0s;
    overflow-x: hidden;
}

.popup__content {
    background-color: #fff;
    max-width: 800px;
    width: 100%;
    padding: 10px;
    border-radius: 10px;
}

.popup__message {
    color: black;
    padding: 40px 0 40px 0;
    text-align: center;
}

.popup__close {
    text-align: right;
}

.popup__close-icon {
    display: inline-block;
    position: relative;
    height: 25px;
    width: 25px;
    cursor: pointer;
}

.popup__close-icon img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.popup.open {
    opacity: 1;
    visibility: visible;
}

.instruction {
    padding: 20px;
    margin-bottom: 70px;
}