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

body {
    color: #222f3e;
    background: #e0e4e9;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    line-height: normal;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

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

h1 {
    font-size: 38px;
    color: #222f3e;
    margin-bottom: 16px;
}

h2 {
    font-size: 30px;
    color: #222f3e;
    margin-bottom: 16px;
}

/* header */

.header {
    background: #fff;
}

.header img {
    display: block;
}

.header__top span,
.header__top a {
    font-size: 12px;
    font-weight: bold;
}

.header__top .container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 10px 20px;
}

.header__top .login {
    display: flex;
    align-items: center;
}

.header__top .login img {
    margin-right: 10px;
}

.header__middle {
    color: #fff;
    background: #115d88;
    border-bottom: 3px solid #0c4464;
    font-size: 16px;
    text-transform: uppercase;
}

.header__middle ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

.header__bottom ul {
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.header__bottom {
    min-height: 45px;
    font-size: 16px;
    line-height: 45px;
    color: #646464;
}

.header__bottom li {
    margin-right: 40px;
}

.header__bottom .active {
    font-weight: bold;
    color: #222f3e;
    position: relative;
    margin-right: 60px;
}

.header__bottom .active::after {
    content: "";
    border-right: 1px solid #ccc;
    transform: skewX(-20deg);
    position: absolute;
    right: -30px;
    top: -1px;
    height: 46px;
    box-shadow: 1px 0 2px #ccc;
}

/* main */

.main p, 
.main li {
    margin-bottom: 16px;
}

.inner-container {
    background: #fff;
    width: 100%;
    max-width: 1040px;
    margin: 30px auto;
    padding: 20px;
}

figure {
    max-width: 600px;
    margin: 20px auto;
    text-align: center;
}

figure img {
    width: 100%;
    max-width: 600px;
    display: block;
    margin-bottom: 10px;
}

.figure-title {
    font-weight: bold;
    text-align: center;
}

figcaption p {
    margin-bottom: 10px;
}

.structure {
    background: #f5f6fa;
    padding: 40px 20px 20px;
    margin-bottom: 20px;
}

.structure h2 {
    text-align: center;
}

.structure li {
    display: grid;
    align-items: center;
    grid-template-columns: 100px 1fr 1fr;
    grid-column-gap: 20px;
    margin: 20px 0;
}

.border {
    padding: 10px;
    color: red;
    font-weight: bold;
    border: 2px solid red;
}

.form-block {
    text-align: center;
}

.form-block img {
    max-width: 450px;
    display: block;
    margin: 0 auto;
}

.form-block .important {
    font-size: 20px;
    font-weight: bold;
}

.prices {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: bold;
}

.prices__old {
    text-decoration: line-through;
    margin: 10px 20px;
}

.prices__new {
    color: red;
    margin: 10px 20px;
}

.form-fields {
    padding: 40px;
    max-width: 600px;
    margin: 0 auto 50px;
    background: rgb(214, 231, 243);
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.field {
    display: flex;
    flex-direction: column;
    text-align: left;
    font-weight: bold;
    max-width: 300px;
    margin: 0 auto 20px;
}

.field label {
    margin-bottom: 5px;
}

.field select,
.field input {
    width: 100%;
    font-size: 16px;
    color: rgb(73, 80, 87);
    background-color: rgb(255, 255, 255);
    height: 45px;
    line-height: 45px;
    padding: 0 16px;
    border: 1px solid rgb(236, 236, 236);;
    border-radius: 6px;  
    margin: 0 auto;
}

a.button25 {
  position: relative;
  display: inline-block;
  width: 15em;
  height: 4.5em;
  line-height: 1.8em;
  vertical-align: middle;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 -1px 1px #777;
  font-size: 20px;
  padding-top: 5px;
  color: #fff;
  outline: none;
  border: 2px solid #F64C2B;
  border-radius: 5px;
  box-shadow: 0 0 0 60px rgba(0,0,0,0) inset, .1em .1em .2em #800;
  background: linear-gradient(#FB9575, #F45A38 48%, #EA1502 52%, #F02F17);
}
a.button25:active {
  top: .1em;
  left: .1em;
  box-shadow: 0 0 0 60px rgba(0,0,0,.05) inset;
}

.form-fields button {
    background: #5A3594;
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    width: 100%;
    max-width: 300px;
    border: none;
    border-radius: 6px; 
    margin: 10px auto 0;
    height: 45px;
    line-height: 45px;
    padding: 0 20px;
    font-size: 20px;
    cursor: pointer;
}

.comment-item {
    display: flex;
    padding-bottom: 10px;
    border-bottom: 1px solid #115d88;
    margin-bottom: 30px;
}

.comment-item p {
    margin-bottom: 10px;
}

.comment-item .avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: block;
    margin-right: 10px;
}

.comment-item .info img {
    width: 100%;
    max-width: 400px;
    margin: 10px 0;
    display: block;
}

.comment-item .info .s-date {
    font-weight: bold;
    color: rgb(13, 164, 181);
}

.red-btn {
    display: block;
    margin: 50px auto;
    width: 100%;
    max-width: 650px;
    padding: 10px 20px;
    background-color: red;
    box-shadow: rgb(0, 0, 0) 1px 1px 3px 0px;
    color: rgb(255, 255, 255);
    font-size: 25px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    border: 3px solid rgb(255, 255, 255);
    border-radius: 10px;
}

/* footer */

.footer-container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer__top {
    background: white;
}

.footer__top li {
    font-size: 15px;
    margin-bottom: 5px;
}

.footer__top .footer-container {
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.footer__bottom {
    text-align: center;
    background: #222f3e;
    color: white;
    font-size: 12px;
    padding: 5px 0;
}

.footer-logo {
    text-align: center;
    display: flex;
    align-items: center;
}

@media(max-width:1000px) {
    .header__middle {
        font-size: 13px;
    }

    .header__bottom {
        display: none;
    }

    .inner-container {
        margin: 0;
    }

    h1 {
        font-size: 27px;
    }

    h2 {
        font-size: 24px;
    }

    .footer-logo {
        margin-right: 30px;
    }
}

@media(max-width:700px) {

    .inner-container {
        padding: 10px;
    }
    
    .header__top {
        border-bottom: 3px solid #0c4464;
    }

    .header__top .container {
        justify-content: center;
    }

    .header__top .s-date,
    .header__top .login,
    .header__middle,
    .footer__top {
        display: none;
    }

    h1 {
        font-size: 22px;
    }

    h2 {
        font-size: 20px;
    }

    .structure li {
        text-align: center;
        display: flex;
        flex-direction: column;
        border-bottom: 2px solid #0c4464;
    }

    .structure li h3 {
        margin: 10px 0;
    }

    .prices {
        font-size: 25px;
    }

    .prices__old, 
    .prices__new {
        margin: 10px;
    }

    .form-fields {
        padding: 30px 20px;
    }

    .red-btn {
        font-size: 20px;
    }
}