/*--------------
  Basic styles
--------------*/
* {
    margin: 0;
    padding: 0;
    outline: none;
    text-decoration: none;
    box-sizing: border-box;
}

:root {
    font-size: 0.3125vw;
}

html,
body {
    height: 100%;
}

body {
    font-family: Helvetica, sans-serif;
    font-size: 15rem;
    -webkit-text-size-adjust: 100%;
    background-color: lightblue;
}

.d-none {
    display: none !important;
}

.container {
    position: relative;
    max-width: 550px;
    margin: 0 auto;
}

a {
    color: inherit;
}
input {
    text-align: center; /* Выравнивание текста и плейсхолдера по центру */
}

/* Специально для плейсхолдера */
input::placeholder {
    text-align: center;
}
input,
input::placeholder {
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
}
.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.input {
    margin-bottom: 1rem;
    position: relative;
}

/* Для анимации появления ошибок */
.error-message.show {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.error {
    color: red;
}


/*--------------
      Main
--------------*/
main {
    top: 73px;
    /* transform: translateY(-50%); */
    left: 0;
    right: 0;
    text-align: center;
}

.main-img {
    width: 96rem;
}

form {
    margin-top: 40rem;
}

form p {
    color: #ff5300;
}

.input {
    max-width: 165rem;
    margin: 20rem auto 0;
    padding-bottom: 15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #717171;
    font-weight: bold;
    border-bottom: 1px solid #717171;
}

.flag {
    width: 23rem;
}

.code {
    margin: 0 5rem;
}

input {
    max-width: 91rem;
    background-color: transparent;
    border: none;
}

.button {
    width: 205rem;
    height: 50rem;
    margin: 20rem auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 25px;
    font-family: inherit;
    font-weight: thinner;
    text-transform: uppercase;
    background-color: #2ebddd;
    border: none;
    border-radius: 7rem;
    box-shadow: 0 5px 40px -10px rgba(0, 0, 0, .57);
}

.underformText {
    margin-top: 20rem;
    color: #747474;
}

.back {
    height: 100%;
}

.price,
.terms {
    color: #747474;
    font-size: 12px;
    font-weight: 400;
    text-align: center;
}

.price {
    position: relative;
    left: 0;
    right: 0;
    bottom: 14px;
}

.terms {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -20rem;
    transform: translateY(100%);
    padding-bottom: 5rem;
}

.terms a {
    color: inherit;
    text-decoration: underline;
}

#langBtn {
    cursor: pointer;
}

.lang-link {
    padding: 10px;
    margin: 10px;
    display: inline-block;
    background: #2ebddd;
    color: #feed2f;
    border-radius: 5px;
    border: solid 3px #fff;
    text-decoration: none;

}

.description {
    font-size: 12px;
    text-align: center;
    margin-top: 30px;
    padding: 0 2.5em;
}

.images-block {
    width: 600px;
    max-width: 80%;
    height: 160px;
    margin: 30px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.images-block .img {
    height: 100%;
    margin: 5px;
}

.images-block .img img {
    width: 100%;
    height: auto;
    max-width: 150px;
    border-radius: 15px;
}

@media (min-width: 550px) {
    :root {
        font-size: 1.7187466667px;
    }
}


@media (orientation: portrait) and (min-width: 376px) and (max-height: 615px),
(orientation: portrait) and (max-width: 375px) and (max-height: 560px) {
    main {
        top: 30px;
    }
}

@media (orientation: landscape) and (max-height: 680px) {
    main {
        top: 50%;
        transform: translateY(-50%);
    }

    form {
        margin-top: 20rem;
    }

    .input,
    .button,
    .underformText,
    .terms {
        margin-top: 10rem;
    }
}

@media (orientation: landscape) and (max-height: 550px) {
    :root {
        font-size: 1.2px;
    }

    .main-img {
        width: 75rem;
    }
}

@media (orientation: landscape) and (max-height: 330px) {
    .main-img {
        display: none;
    }

    form {
        margin-top: 0;
    }

    .input {
        padding-bottom: 5rem;
    }
}
