.index-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Arial, Helvetica, sans-serif;
    color: #101820;
    background: #151719;
}

.index-page * {
    box-sizing: border-box;
}

.index-page img {
    display: block;
    max-width: 100%;
    height: auto;
}

.site-header {
    background: #090d11 url(../images/header.jpg) repeat-x top;
}

.site-header__inner {
    width: min(100%, 1100px);
    margin: 0 auto;
    padding: 14px 20px 16px;
}

.site-logo {
    display: block;
    width: min(300px, 100%);
    margin: 0 auto;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    margin-top: 12px;
    font: 12px/1.2 Tahoma, Arial, sans-serif;
    text-transform: uppercase;
}

.site-nav a {
    color: #c0c6cb;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus {
    color: #8acee5;
}

.site-main {
    flex: 1 0 auto;
    width: min(100%, 1100px);
    margin: 0 auto;
    background: #fff;
}

.hero {
    background: #2e4051 url(../images/bgblue.jpg) repeat-x top;
}

.hero__image-link {
    display: block;
}

.hero img {
    width: 100%;
}

.intro {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 18px 22px;
    background: #f4f6f7;
    border-bottom: 1px solid #d9e0e4;
    font: 14px/1.5 Tahoma, Arial, sans-serif;
}

.intro img {
    width: 22px;
    flex: 0 0 auto;
}

.content-grid {
    display: grid;
    gap: 30px;
    padding: 32px 22px 44px;
}

.contact-content-grid {
    max-width: 620px;
    margin: 0 auto;
}

.password-content-grid {
    max-width: 860px;
    margin: 0 auto;
}

.info-panel h1,
.steps-panel h2 {
    margin-bottom: 18px;
    font-size: 21px;
    line-height: 1.25;
}

.info-panel h2,
.form-panel h2 {
    margin: 28px 0 14px;
    font-size: 19px;
    line-height: 1.3;
}

.info-panel p {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.55;
}

.info-panel a {
    color: #194fc4;
}

.check-list {
    display: grid;
    gap: 14px;
    margin: 0 0 26px;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    font-size: 15px;
    line-height: 1.5;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 18px;
    height: 18px;
    background: url(../images/check.png) no-repeat center / contain;
}

.steps-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.steps-carousel a {
    display: block;
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.steps-carousel img {
    width: min(100%, 400px);
    margin: 0 auto;
}

.form-panel {
    padding: 24px;
    background: #f7fafb;
    border: 1px solid #d9e5eb;
}

.form-panel h2 {
    margin-top: 0;
}

.form-panel p {
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.5;
}

.site-form {
    display: grid;
    gap: 10px;
}

.site-form label,
.form-label-row {
    font-size: 14px;
    line-height: 1.4;
}

.form-label-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 14px;
}

.form-label-row a {
    color: #194fc4;
    font-size: 13px;
}

.site-form input[type="text"],
.site-form input[type="email"],
.site-form input[type="password"],
.site-form textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #b7c8d1;
    font: 15px/1.4 Arial, Helvetica, sans-serif;
    color: #101820;
    background: #fff;
}

.site-form textarea {
    min-height: 130px;
    resize: vertical;
}

.site-form input:focus,
.site-form textarea:focus {
    outline: 2px solid #8acee5;
    outline-offset: 1px;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
}

.checkbox-row input {
    flex: 0 0 auto;
}

.button-primary {
    justify-self: start;
    min-width: 112px;
    padding: 10px 18px;
    border: 1px solid #4ba9bd;
    background: #5dc9e1;
    color: #fff;
    font: bold 14px/1.2 Arial, Helvetica, sans-serif;
    cursor: pointer;
}

.button-link {
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.button-primary:hover,
.button-primary:focus {
    background: #45b6cf;
}

.message-panel h1 {
    margin-bottom: 16px;
    font-size: 22px;
    line-height: 1.25;
}

.index-page #footer {
    flex: 0 0 auto;
    width: min(100%, 1100px);
    height: auto;
    min-height: 150px;
    margin: 0 auto;
    padding: 26px 18px;
    background: #090d11 url(../images/footer.jpg) repeat-x top;
}

.index-page #footer p {
    padding: 0;
    color: #b9c1c8;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
}

.index-page #footer a {
    color: #b9c1c8;
    text-decoration: none;
}

.index-page #footer a:hover,
.index-page #footer a:focus {
    text-decoration: underline;
}

@media (min-width: 720px) {
    .site-header__inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 98px;
        padding: 0 60px;
    }

    .site-logo {
        width: 408px;
        margin: 0;
    }

    .site-nav {
        margin-top: 0;
        gap: 24px;
    }

    .intro {
        align-items: center;
        padding: 22px 60px;
        font-size: 14px;
    }

    .content-grid {
        grid-template-columns: minmax(0, 1fr) minmax(330px, 0.82fr);
        align-items: start;
        gap: 70px;
        padding: 48px 60px 88px;
    }

    .page-content-grid {
        min-height: 680px;
    }

    .contact-content-grid {
        display: block;
        padding-left: 60px;
        padding-right: 60px;
    }

    .password-content-grid {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
        min-height: 560px;
    }

    .info-panel h1,
    .steps-panel h2 {
        font-size: 16px;
    }

    .info-panel h2,
    .form-panel h2 {
        font-size: 16px;
    }

    .info-panel p {
        font-size: 13px;
    }

    .check-list li,
    .form-panel p {
        font-size: 13px;
    }

    .steps-carousel {
        display: grid;
        gap: 12px;
        overflow: visible;
        padding-bottom: 0;
        scroll-snap-type: none;
    }

    .steps-carousel a {
        flex: initial;
    }
}

@media (min-width: 1101px) {
    .index-page {
        background: #151719;
    }
}
