:root {
    --color-blue: #1947A6;
    --color-white: #FFF;
    --color-black: #111111;
    --color-gray: #CFD8E5;
    --main-bg: #F7F9FC;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
font,
img,
ins,
kbd,
q,
s,
samp,
strike,
strong,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent
}

table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td {
    margin: 0;
    padding: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: top
}

table {
    border-collapse: collapse;
    border-spacing: 0
}

blockquote,
q {
    quotes: none
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    display: none;
}

button {
    padding: 0;
    letter-spacing: 0;
    border: none;
    background: transparent;
    font-family: "Open Sans", sans-serif;
}

ins {
    text-decoration: none
}

del,
s,
strike {
    text-decoration: line-through
}

html {
    height: 100%;
    scrollbar-gutter: stable;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
    display: block;
    margin: 0
}

iframe {
    width: -webkit-fill-available;
}

* {
    box-sizing: border-box
}

img {
    border: none;
    vertical-align: top;
    max-width: 100%;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
}

input,
textarea,
button,
select,
label,
a {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
    color: var(--color-black, #111111);
    background: var(--main-bg, #F7F9FC);
}

svg {
    flex-shrink: 0;
}

svg path,
svg circle,
svg ellipse,
svg rect {
    transition: .3s;
}

a {
    text-decoration: none;
    transition: .3s;
}

.page-body {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

.main {
    flex: 1;
}

.container {
    margin-inline: auto;
    max-width: 1120px;
}

.section {
    padding-top: 120px;
}

.section-title {
    margin-bottom: 40px;
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    line-height: 50px;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    line-height: 30px;
}

.section:has(.section-subtitle) .section-title {
    margin-bottom: 10px;
}

@media only screen and (width < 1280px) {
    .container {
        max-width: 924px;
    }
    .section {
        padding-top: 100px;
    }
}

@media only screen and (width < 1024px) {
    .container {
        max-width: 668px;
    }
    .section {
        padding-top: 80px;
    }
    .section-title {
        margin-bottom: 30px;
        font-size: 24px;
        line-height: 36px;
    }
}

@media only screen and (width < 768px) {
    .container {
        max-width: calc(100% - 60px);
    }
    .section {
        padding-top: 60px;
    }
    .section-title {
        margin-bottom: 20px;
        font-size: 20px;
        line-height: 32px;
    }
}

/* buttons */

.btn {
    position: relative;
    padding: 0 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 100%;
    height: 50px;
    background-color: var(--color-blue);
    border-radius: 4px;
    color: var(--color-white);
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    transition: .3s;
    overflow: hidden;
    cursor: pointer;
}

.btn:hover {
    background-color: #1D52BF;
}

/* header */

.header {
    background: var(--color-blue);
}

.header-wrapper {
    padding: 100px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.page-title {
    color: var(--color-white);
    text-align: center;
    font-family: "Open Sans";
    font-size: 70px;
    font-weight: 700;
    line-height: 100px;
}

.info-tags {
    display: flex;
    gap: 10px;
}

.info-tag {
    padding: 4px 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 100px;
    border: 1px solid var(--color-white);
    background-color: var(--color-white);
    text-align: center;
    font-size: 16px;
    line-height: 20px;
}

@media only screen and (width < 1920px) {
    .page-title {
        font-size: 60px;
        line-height: 80px;
    }
    .header-wrapper {
        padding: 90px 0;
    }
}

@media only screen and (width < 1024px) {
    .page-title {
        font-size: 40px;
        line-height: 60px;
    }
    .header-wrapper {
        padding: 60px 0;
    }
}

@media only screen and (width < 768px) {
    .page-title {
        font-size: 28px;
        line-height: 40px;
    }
    .header-wrapper {
        padding: 40px 0;
        gap: 20px;
    }
    .info-tags {
        flex-direction: column;
        align-items: center;
    }
    .info-tag {
        font-size: 14px;
    }
}

/* providers */

.providers-items {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: minmax(90px, auto);
    gap: 20px;
}

@media only screen and (width < 1280px) {
    .providers-items {
        grid-auto-rows: minmax(73px, auto);
    }
}

@media only screen and (width < 1024px) {
    .providers-items {
        grid-auto-rows: minmax(50px, auto);
        gap: 20px 22px;
    }
}

@media only screen and (width < 768px) {
    .providers-items {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(60px, auto);
        gap: 20px;
    }
}

.providers-item {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--color-gray);
    background-color: var(--color-white);
    transition: .3s;

    & img {
        width: 168px;
        height: auto;
    }

    @media only screen and (width >= 1024px) {
        &:hover {
            border-color: transparent;
        }
    }

    @media only screen and (width < 1280px) {
        & img {
            width: 128px;
        } 
    }

    @media only screen and (width < 1024px) {
        & img {
            width: 86px;
        } 
    }

    @media only screen and (width < 768px) {
        & img {
            width: 110px;
        } 
    }
}

/* reviews */

.reviews-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(294px, auto);
    gap: 20px;
}

@media only screen and (width < 1024px) {
    .reviews-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (width < 768px) {
    .reviews-items {
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(252px, auto);
    }
}

.reviews-item {
    padding: 29px 19px;
    border-radius: 10px;
    border: 1px solid var(--color-gray);
    background: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 50px;

    & > p {
        text-align: center;
        font-size: 18px;
        line-height: 30px;
    }

    @media only screen and (width < 768px) {
        & > p {
            font-size: 16px;
            line-height: 26px;
        }
    }
}

@media only screen and (width < 768px) {
    .reviews-item {
        gap: 20px;
    }
}

.review-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    & span {
        text-align: center;
        font-size: 30px;
        font-weight: 600;
        line-height: 30px;
    }
    & i {
        margin-top: 5px;
        width: 16px;
        height: 16px;
        background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTUiIHZpZXdCb3g9IjAgMCAxNiAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggaWQ9IlN0YXIgMSIgZD0iTTcuMDQ4OTQgMC45MjcwNUM3LjM0ODMgMC4wMDU3MzkyMSA4LjY1MTcgMC4wMDU3Mzk2OSA4Ljk1MTA2IDAuOTI3MDVMMTAuMDIwNiA0LjIxODg1QzEwLjE1NDUgNC42MzA4NyAxMC41Mzg1IDQuOTA5ODMgMTAuOTcxNyA0LjkwOTgzSDE0LjQzMjlDMTUuNDAxNiA0LjkwOTgzIDE1LjgwNDQgNi4xNDk0NSAxNS4wMjA3IDYuNzE4ODVMMTIuMjIwNSA4Ljc1MzI5QzExLjg3IDkuMDA3OTMgMTEuNzIzNCA5LjQ1OTMgMTEuODU3MiA5Ljg3MTMyTDEyLjkyNjggMTMuMTYzMUMxMy4yMjYxIDE0LjA4NDQgMTIuMTcxNyAxNC44NTA2IDExLjM4OCAxNC4yODEyTDguNTg3NzggMTIuMjQ2N0M4LjIzNzMgMTEuOTkyMSA3Ljc2MjcgMTEuOTkyMSA3LjQxMjIxIDEyLjI0NjdMNC42MTIwNCAxNC4yODEyQzMuODI4MzMgMTQuODUwNiAyLjc3Mzg1IDE0LjA4NDQgMy4wNzMyIDEzLjE2MzFMNC4xNDI3NyA5Ljg3MTMyQzQuMjc2NjUgOS40NTkzIDQuMTI5OTkgOS4wMDc5MyAzLjc3OTUgOC43NTMyOUwwLjk3OTMzMyA2LjcxODg1QzAuMTk1NjE5IDYuMTQ5NDUgMC41OTgzOTUgNC45MDk4MyAxLjU2NzEyIDQuOTA5ODNINS4wMjgzMkM1LjQ2MTU0IDQuOTA5ODMgNS44NDU1IDQuNjMwODcgNS45NzkzNyA0LjIxODg1TDcuMDQ4OTQgMC45MjcwNVoiIGZpbGw9IiNGRTlBMzciLz4KPC9zdmc+Cg==");
        background-size: contain;
        background-repeat: no-repeat;

    }
}

.review-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;

    & span {
        text-align: center;
        font-size: 16px;
        font-weight: 600;
        line-height: normal;
    }

    & p {
        color: #566073;
        text-align: center;
        font-size: 14px;
        line-height: normal;
    }
}

/* regions */

.regions-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(98px, auto);
    gap: 20px;
}

.regions-item {
    padding: 30px;
    border-radius: 10px;
    background-color: var(--color-black);   
    color: var(--color-white);
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    line-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media only screen and (width < 1024px) {
    .regions-items {
        grid-auto-rows: minmax(80px, auto);
    }

    .regions-item {
        padding: 20px;
        font-size: 20px;
    }
}

@media only screen and (width < 768px) {
    .regions-items {
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(68px, auto);
        gap: 10px;
    }

    .regions-item {
        font-size: 18px;
        line-height: 28px;
    }
}

/* textblock */

.textblock-wrapper {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.textblock-wrapper * {
    font-size: 16px;
    line-height: 26px;
}

.textblock-wrapper {
    & h2 {
        margin-bottom: 30px;
        text-align: center;
        font-size: 30px;
        font-weight: 700;
        line-height: 50px;
    }

    & h3 {
        margin-bottom: 30px;
        text-align: center;
        font-size: 26px;
        font-weight: 700;
        line-height: 40px;
    }

    & h4 {
        margin-bottom: 30px;
        text-align: center;
        font-size: 22px;
        font-weight: 700;
        line-height: 34px;
    }

    & a {
        color: var(--color-black);
        font-size: 16px;
        font-weight: 600;
        line-height: 26px;
        text-decoration-line: underline;
        text-decoration-thickness: 1px;
        text-underline-offset: 1px;

        &:hover {
            text-decoration-color: transparent;
            color: var(--color-blue);
        }

        &:visited {
            color: #211173;
        }

        &:visited:hover {
            color: var(--color-blue);
        }
    }

    ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 20px;

        & li {
            position: relative;
            padding-left: 16px;
            font-size: 16px;
            line-height: 26px;

            &::before {
                content: '';
                position: absolute;
                top: 10px;
                left: 0;
                width: 6px;
                height: 6px;
                border-radius: 100%;
                background-color: #111111;
            }
        }
    }

    ol {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 20px;
        counter-reset: customCounter;

        & li {
            position: relative;
            padding-left: 25px;
            font-size: 16px;
            line-height: 26px;
            counter-increment: customCounter;

            &::before {
                content: counters(customCounter, ".") ". ";
                position: absolute;
                top: 0;
                left: 0;
                font-size: 16px;
                font-weight: 700;
                line-height: 26px;
            }
        }
    }

    @media only screen and (width < 1024px) {
        & h2 {
            font-size: 24px;
            line-height: 26px;
        }
    
        & h3 {
            font-size: 22px;
            line-height: 34px;
        }
    
        & h4 {
            font-size: 20px;
            line-height: 32px;
        }
    }

    @media only screen and (width < 768px) {
        & h2 {
            font-size: 20px;
            line-height: 32px;
        }
    
        & h3 {
            font-size: 18px;
            line-height: 30px;
        }
    
        & h4 {
            font-size: 16px;
            line-height: 28px;
        }
    }
}

/* contacts form */

.contacts-wrapper {
    margin-top: 40px;
    margin-inline: auto;
    max-width: 548px;
}

.contacts-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-error,
.captcha-error {
    display: none;
}

.input-wrapper > label {
    display: flex;
    gap: 5px;
    font-size: 16px;
    line-height: 16px;
}

.contacts-form :is(input, textarea) {
    padding: 8px 14px;
    height: 40px;
    font-family: "Open Sans", sans-serif;
    color: var(--color-black);
    font-size: 16px;
    line-height: 16px;
    border-radius: 4px;
    border: 1px solid #AFB0B2;
    background: rgba(255, 255, 255, 0.40);
    flex-shrink: 0;
}

.contacts-form :where(input, textarea):focus {
    outline: none;
    border-color: #717173;
    box-shadow: 0 0 0 3px #A1C0FF;
}

.contacts-form :where(input, textarea):not(:placeholder-shown) {
    border-color: #717173;
}

.contacts-form textarea {
    resize: none;
    height: 120px;
}

input:is(:-webkit-autofill, :-webkit-autofill:hover, :-webkit-autofill:focus, :-webkit-autofill:active) {
    box-shadow: 0 0 0 30px var(--color-white) inset !important;
    transition: none;
}

input:-webkit-autofill {
    -webkit-text-fill-color: var(--color-black) !important;
}

.input-wrapper.error {
    & label {
        display: none;
    }
    
    .input-error {
        display: flex;
        gap: 10px;

        & span {
            margin-left: -5px;
            color: #C6284A;
            font-size: 16px;
            line-height: 16px;
        }
    }
}

.captcha {
    position: relative;
}

.captcha-place {
    width: 304px;
    height: 78px;
    background-color: var(--color-white);
}

.captcha.error .captcha-error {
    position: absolute;
    top: calc(100% + 10px);
    display: flex;
    align-items: center;
    gap: 10px;
    color: #C6284A;
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
}

.btn-submit {
    margin-top: 20px;
}

.personal-information {
    color: #646566;
    text-align: center;
    font-size: 16px;
    line-height: 26px;
}

.form-message {
    
    display: none;
    flex-direction: column;
    gap: 40px;
}

.form-message-success {
    padding-bottom: 90px;
}

.form-message.active {
    display: flex;
}

.message-wrapper {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 4px;

    & span {
        font-size: 18px;
        line-height: 30px;

        & br {
            display: none;
        }
    }
}

.form-message-success .message-wrapper {
    border: 1px solid #60BF7F;
    background-color: #E4F7EA;
}

.form-message-error .message-wrapper {
    border: 1px solid #E296A6;
    background-color: #FFF5F7;
}

.loader {
    padding: 40px 0;
    display: none;
    justify-content: center;
    align-items: center;
}

.loader.active {
    display: flex;
}

@media only screen and (width < 768px) {
    .contacts-wrapper {
        margin-top: 20px;
    }

    .personal-information {
        font-size: 14px;
        line-height: 24px;
    }

    .loader {
        padding: 0 0 120px;
    }

    .message-wrapper {
        flex-direction: column;
    
        & span {
            font-size: 16px;
            line-height: 26px;
            text-align: center;

            & br {
                display: inline;
            }
        }

        & svg {
            width: 24px;
            height: 24px;
        }
    }
}

/* footer */

.footer {
    margin-top: 120px;
    background-color: var(--color-black);
}

@media only screen and (width < 1280px) {
    .footer {
        margin-top: 100px;
    }
}

@media only screen and (width < 1024px) {
    .footer {
        margin-top: 80px;
    }
}

@media only screen and (width < 768px) {
    .footer {
        margin-top: 60px;
    }
}

.top-picks {
    padding: 30px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    & > span {
        color: var(--color-white);
        font-size: 16px;
        line-height: 26px;
    }
}

.top-picks-items {
    display: flex;
    gap: 10px;

    & > a {
        color: var(--color-white);
        font-size: 16px;
        font-weight: 600;
        line-height: 26px;
        text-decoration-line: underline;
        text-decoration-thickness: 1px;
        text-underline-offset: 1px;

        &:hover {
            color: #CCCCCC;
        }
    }
}

@media only screen and (width < 768px) {
    .top-picks {
        flex-direction: column;
    }
    .top-picks-items {
        flex-wrap: wrap;
    }
}

form[captcha_status="1"] .g-recaptcha-2.error .captcha-error {
    display: none;
}