/** VARIABLES **/

:root {
    --main-wrapper: 1440px;
    --primary-color: #121c30;
    --primary-color-hover: #34518a;
    --secondary-color: #db0013;
    --third-color: #48ae56;
    --text-color: #313131;
    --placeholder-color: #a2a2a2;
    --primary-font-family: 'Roboto', sans-serif;
    --main-hero-height: 48.1vw;
    --main-hero-max-height: 927px;
    --radio-btn-size: 22px;
    --radio-btn-middle-size: 14px;
}

.content-wrapper {
    width: 100%;
    max-width: var(--main-wrapper);
    margin: 0 auto;
}

@media only screen and (max-width: 1500px) {
    :root {
        --main-wrapper: 95%;
        --main-hero-height: 35vw;
    }
}

@media only screen and (max-width: 1200px) {
    :root {
        --main-hero-height: 530px;
    }
}

@media only screen and (max-width: 800px) {
    :root {
        --main-hero-height: 430px;
        --main-wrapper: 93%;
    }
}

@media only screen and (max-width: 500px) {
    :root {
        --main-hero-height: 290px;
    }
}

/** GLOBALS **/

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    outline: none;
}

picture,
img {
    display: block;
    max-width: 100%;
    height: auto;
}

html,
body {
    font-family: var(--primary-font-family);
    height: auto;
}

html.noscroll,
body.noscroll {
    overflow-y: hidden;
}

body {
    display: flex;
    flex-direction: column;
}

main,
section {
    width: 100%;
}

/* TYPOGRAPHY */

p {
    font-size: 20px;
    font-weight: 400;
    color: var(--text-color);
    line-height: 1.45;
}

p strong {
    font-weight: 700;
}

a {
    text-decoration: none;
}

.italic {
    font-style: italic;
}

.h1,
.h2 {
    font-size: 40px;
    text-transform: uppercase;
    line-height: 1.375;
    font-weight: 700;
    color: #fff;
}

.h3 {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.45;
    text-transform: uppercase;
    color: var(--text-color);
}

@media only screen and (max-width: 1200px) {
    .h1,
    .h2 {
        font-size: 32px;
    }
}

@media only screen and (max-width: 600px) {
    p {
        font-size: 16px;
    }

    .h1,
    .h2 {
        font-size: 30px;
    }

    .h3 {
        font-size: 17px;
    }
}

@media only screen and (max-width: 400px) {
    p {
        font-size: 15px;
    }
}

/* BUTTONS */

.btn {
    height: 55px;
    width: fit-content;
    width: -moz-fit-content;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    background-color: var(--primary-color);
    cursor: pointer;
    font-family: var(--primary-font-family);
    border: 0;
    transition: .25s background-color;
}

.btn:hover {
    background-color: var(--primary-color-hover);
}

.btn span {
    font: inherit;
}
.btn:disabled {
    opacity: 30%;
}

@media only screen and (max-width: 600px) {
    .btn {
        height: 40px;
        padding: 0 10px;
        font-size: 22px;
    }
}

/* FORM */

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder { /* WebKit, Blink, Edge */
    color: var(--placeholder-color);
    font-family: var(--primary-font-family);
    font-weight: 400;
    font-size: 20px;
 }

input:-moz-placeholder,
textarea:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
    color: var(--placeholder-color);
    font-family: var(--primary-font-family);
    font-weight: 400;
    font-size: 20px;
    opacity:  1;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
 }

input::-moz-placeholder,
textarea::-moz-placeholder { /* Mozilla Firefox 19+ */
    opacity:  1;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
    color: var(--placeholder-color);
    font-family: var(--primary-font-family);
    font-weight: 400;
    font-size: 20px;
 }

input:-ms-input-placeholder,
textarea:-ms-input-placeholder { /* Internet Explorer 10-11 */
    color: var(--placeholder-color);
    font-family: var(--primary-font-family);
    font-weight: 400;
    font-size: 20px;
 }

input::-ms-input-placeholder,
textarea::-ms-input-placeholder { /* Microsoft Edge */
    color: var(--placeholder-color);
    font-family: var(--primary-font-family);
    font-weight: 400;
    font-size: 20px;
 }

form label {
    display: none;
}

form fieldset {
    margin: 0;
    border: 0;
}

form fieldset label {
    display: inline-block;
    cursor: pointer;
    font-family: var(--primary-font-family);
    font-weight: 400;
    font-size: 20px;
    color: #2b2b2b;
}

form input,
form textarea {
    width: 100%;
    margin: 0;
    border: 0;
    border-bottom: 3px solid var(--primary-color);
    color: #2b2b2b;
    font-family: var(--primary-font-family);
    font-weight: 400;
    font-size: 20px;
    height: 66px;
    background: transparent;
    padding: 0 10px 0 35px;
}

@media only screen and (max-width: 600px) {
    input::-webkit-input-placeholder,
    textarea::-webkit-input-placeholder { /* WebKit, Blink, Edge */
        font-size: 16px;
    }

    input:-moz-placeholder,
    textarea:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
        font-size: 16px;
    }

    input::-moz-placeholder,
    textarea::-moz-placeholder { /* Mozilla Firefox 19+ */
        font-size: 16px;
    }

    input:-ms-input-placeholder,
    textarea:-ms-input-placeholder { /* Internet Explorer 10-11 */
        font-size: 16px;
    }

    input::-ms-input-placeholder,
    textarea::-ms-input-placeholder { /* Microsoft Edge */
        font-size: 16px;
    }

    form fieldset label {
        font-size: 16px;
    }

    form input,
    form textarea {
        font-size: 16px;
        border-bottom: 2px solid var(--primary-color);
        height: 45px;
        padding: 0 10px 0 15px;
    }
}

/************/
/** HEADER **/
/************/

header {
    width: 100%;
    border-bottom: 5px solid #353535;
}

.header-wrapper {
    padding: 20px 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .media-row {
    display: flex;
    gap: 44px;
}

@media only screen and (max-width: 1100px) {
    .header-wrapper {
        padding: 15px 0 10px 0;
    }

    header .logo img {
        width: 180px;
    }

    header .media-row {
        gap: 32px;
    }

    header .media-row img {
        width: 30px;
    }
}

@media only screen and (max-width: 500px) {
    .header-wrapper {
        padding: 12px 0 6px 0;
    }

    header .logo img {
        width: 140px;
    }

    header .media-row {
        gap: 24px;
    }

    header .media-row img {
        width: 28px;
    }
}

/*******************/
/** HOMEPAGE HERO **/
/*******************/

.mainpage-hero {
    width: 100%;
    height: var(--main-hero-height);
    max-height: var(--main-hero-max-height);
}

.hero-bckg {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}

.hero-bckg picture,
.hero-bckg img {
    height: 100%;
}

.hero-bckg img {
    width: 100%;
    max-height: var(--main-hero-max-height);
    object-fit: cover;
    object-position: center;
}

.hero-title--wrapper {
    padding-top: calc(var(--main-hero-height) * 0.53);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.hero-title {
    text-transform: uppercase;
    font-size: 60px;
    font-weight: 900;
    color: #fff;
    line-height: 1.45;
    width: fit-content;
    width: -moz-fit-content;
}

.hero-title--wrapper strong {
    font-size: 90px;
    background-color: rgba(18, 28, 48, 0.8);
    padding: 0 22px 0 44px;
}

.hero-title--wrapper span {
    padding: 0 35px;
    background-color: rgba(18, 28, 48, 0.4);
}

.hero-bottom-lines {
    width: 100%;
    height: 21px;
    display: flex;
}

.hero-bottom-lines span {
    width: 33.33%;
    height: 100%;
}

.hero-bottom-lines span:nth-child(1) {
    background-color: var(--primary-color);
}

.hero-bottom-lines span:nth-child(2) {
    background-color: var(--secondary-color);
}

.hero-bottom-lines span:nth-child(3) {
    background-color: var(--third-color);
}

@media only screen and (max-width: 1500px) {
    .hero-title {
        font-size: 40px;
    }

    .hero-title--wrapper strong {
        font-size: 60px;
    }
}

@media only screen and (max-width: 900px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-title--wrapper strong {
        font-size: 52px;
        padding: 0 15px 0 30px;
    }

    .hero-title--wrapper span {
        padding: 0 25px;
    }
}

@media only screen and (max-width: 700px) {
    .hero-title {
        font-size: 30px;
    }

    .hero-title--wrapper strong {
        font-size: 48px;
        padding: 0 10px 0 20px;
    }

    .hero-title--wrapper span {
        padding: 0 15px;
    }

    .hero-bottom-lines {
        height: 10px;
    }
}

@media only screen and (max-width: 500px) {
    .hero-title {
        font-size: 22px;
    }

    .hero-title--wrapper strong {
        font-size: 40px;
        padding: 0 8px 0 16px;
    }

    .hero-title--wrapper span {
        padding: 0 12px;
    }
}

@media only screen and (max-width: 360px) {
    .hero-title {
        font-size: 19px;
    }

    .hero-title--wrapper strong {
        font-size: 35px;
    }
}

/*******************/
/** HOMEPAGE BODY **/
/*******************/

.mainpage-body {
    padding: 60px 0 90px 0;
}

.mainpage-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px 50px;
}

.mainpage-rectangle {
    background-color: #f35a28;
    padding: 35px 10px 50px 35px;
    display: flex;
    flex-direction: column;
}

.mainpage-rectangle .abs-bckg {
    position: absolute;
    right: 0;
    top: 0;
    background-color: #e83d24;
    width: 75%;
    height: 100%;
    clip-path: polygon(59% 0, 100% 0, 100% 100%, 0% 100%);
}

.mainpage-rectangle:nth-child(2) {
    background-color: #1b2844;
    padding: 35px 10px 50px 52px;
}

.mainpage-rectangle:nth-child(2) .abs-bckg {
    background-color: var(--primary-color);
}

.mainpage-rectangle .italic:last-child {
    font-size: 50px;
    line-height: 1.1;
}

.mainpage-column {
    padding: 0 38px;
}

.mainpage-column ul {
    display: flex;
    flex-direction: column;
    gap: 17px;
    margin-top: 30px;
}

.mainpage-column li {
    list-style: none;
    padding: 21px 5px 21px 39px;
    border-bottom: 3px solid var(--primary-color);
}

.mainpage-column li:nth-child(even) {
    border-bottom: 3px solid var(--secondary-color);
}

.mainpage-column li::before {
    content: '';
    position: absolute;
    left: -3px;
    bottom: -3px;
    width: 21px;
    height: 100%;
    background-color: var(--primary-color);
}

.mainpage-column li:nth-child(even):before {
    background-color: var(--secondary-color);
}

.mainpage-grid .form-success {
    order: 4;
    color: #fff;
    background-color: var(--third-color);
    padding: 25px;
    height: fit-content;
}
.mainpage-grid .form-error {
    color: #fff;
    background-color: var(--secondary-color);
    padding: 5px;
    margin-bottom: 10px;
}

.mainpage-grid form {
    padding: 8px 35px 0 35px;
}

.mainpage-grid form .btn{
    width: 100%;
    margin-top: 35px;
}

.mainpage-grid form .form-input:not(.form-input-first){
    margin-top: 16px;
}

.mainpage-grid form fieldset {
    margin-top: 25px;
}

.mainpage-grid form fieldset legend {
    font-weight: 700;
    font-size: 20px;
    line-height: 1.45;
    color: #2b2b2b;
    padding-left: 37px;
    margin-bottom: 10px;
}

.mainpage-grid form fieldset .form-input-container {
    display: flex;
    padding-left: 37px;
    min-height: var(--radio-btn-size);
}

.mainpage-grid form fieldset .form-input-container:not(:nth-child(2)) {
    margin-top: 7px;
}

.mainpage-grid form input[type=radio],
.mainpage-grid form input[type=checkbox] {
    appearance: none;
    -webkit-appearance: none;
    border-radius: 100%;
    border: 1px solid #737373;
    width: var(--radio-btn-size);
    height: var(--radio-btn-size);
    padding: 0;
    position: absolute;
    top: calc(50% - calc(var(--radio-btn-size) / 2));
    left: 0;
    cursor: pointer;
}

.mainpage-grid form .form-input-container span {
    border-radius: 100%;
    width: var(--radio-btn-middle-size);
    height: var(--radio-btn-middle-size);
    border: 0;
    transition: 0.15s all linear;
    position: absolute;
    top: calc(50% - calc(var(--radio-btn-middle-size) / 2));
    left: 4px;
    background-color: var(--secondary-color);
    transform: scale(0);
}

.mainpage-grid form input[type=radio]:checked + span,
.mainpage-grid form input[type=checkbox]:checked + span {
    transform: scale(1);
}

.mainpage-grid form input[type=checkbox] {
    border-radius: 0;
    top: 2px;
}

.mainpage-grid form .form-input-container-checkbox span {
    border-radius: 0;
    top: 6px;
}

.mainpage-grid form .form-input-container-checkbox label {
    font-weight: 700;
}

.mainpage-grid-above-bottom {
    display: block;
    margin-top: 60px;
    width: 100%;
    text-align: center;
    font-size: 100px;
    font-weight: bold;
    text-transform: uppercase;
    color: #ddd;
}

.mainpage-grid-bottom {
}

.mainpage-banner {
    padding: 35px 25px 35px 35px;
    display: flex;
    justify-content: space-between;
    background-color: var(--secondary-color);
    min-height: 267px;
}

.mainpage-banner:nth-child(2) {
    background-color: var(--third-color);
}

.mainpage-banner .h2 {
    font-size: 60px;
    line-height: 1.04;
    max-width: 11ch;
}

.mainpage-banner .triangle {
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 22px 0 22px 38px;
    border-color: transparent transparent transparent #fff;
    transition: .2s transform ease;
}

.mainpage-banner:hover .triangle {
    transform: translateX(15px);
}

.mainpage-banner picture,
.mainpage-banner img {
    width: 220px;
    height: auto;
    align-self: end;
}

@media only screen and (max-width: 1300px) {
    .mainpage-banner {
        padding: 25px 18px 25px 25px;
        min-height: 210px;
    }

    .mainpage-banner .h2 {
        font-size: 45px;
    }

    .mainpage-banner .triangle {
        border-width: 16px 0 16px 28px;
    }

    .mainpage-banner picture,
    .mainpage-banner img {
        width: 170px;
    }
}

@media only screen and (max-width: 1200px) {
    .mainpage-rectangle {
        padding: 25px 10px 35px 25px;
    }

    .mainpage-rectangle:nth-child(2) {
        padding: 25px 10px 35px 40px;
    }

    .mainpage-rectangle .italic:last-child {
        font-size: 40px;
    }
}

@media only screen and (max-width: 1000px) {
    .mainpage-grid {
        width: 650px;
        margin: 0 auto;
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .mainpage-column {
        padding: 0 10px;
    }

    .mainpage-column ul {
        margin-top: 15px;
    }

    .mainpage-grid .mainpage-rectangle:nth-child(1) {
        order: 1;
    }

    .mainpage-grid .mainpage-rectangle:nth-child(2) {
        order: 3;
    }

    .mainpage-grid .mainpage-column {
        order: 2;
    }

    .mainpage-grid form {
        padding: 0 10px;
        order: 4;
    }

    .mainpage-grid-above-bottom {
        margin-top: 40px;
        font-size: 60px;
    }

    .mainpage-grid-bottom {
        width: 100%;
        /*margin-top: 100px;*/
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .mainpage-banner {
        padding: 20px 12px 20px 20px;
        min-height: 180px;
    }

    .mainpage-banner .h2 {
        font-size: 36px;
    }

    .mainpage-banner .triangle {
        border-width: 13px 0 13px 23px;
    }

    .mainpage-banner picture,
    .mainpage-banner img {
        width: 120px;
    }
}

@media only screen and (max-width: 820px) {
    .mainpage-banner {
        padding: 15px 10px 15px 15px;
        min-height: 150px;
    }

    .mainpage-banner .h2 {
        font-size: 28px;
    }

    .mainpage-banner .triangle {
        border-width: 10px 0 10px 17px;
    }

    .mainpage-banner picture,
    .mainpage-banner img {
        width: 100px;
    }
}

@media only screen and (max-width: 700px) {
    .mainpage-grid {
        width: 100%;
    }

    .mainpage-rectangle,
    .mainpage-rectangle:nth-child(2) {
        padding: 25px;
    }
}

@media only screen and (max-width: 600px) {
    .mainpage-body {
        padding: 30px 0 45px 0;
    }

    .mainpage-rectangle .italic:last-child {
        font-size: 37px;
    }

    .mainpage-column ul {
        gap: 14px;
    }

    .mainpage-column li {
        list-style: none;
        padding: 15px 5px 15px 20px;
        border-bottom: 2px solid var(--primary-color);
    }

    .mainpage-column li:nth-child(even) {
        border-bottom: 2px solid var(--secondary-color);
    }

    .mainpage-column li::before {
        left: -2px;
        bottom: -2px;
        width: 15px;
    }

    .mainpage-banner {
        flex-direction: column;
    }
}

@media only screen and (max-width: 440px) {
    .mainpage-grid-bottom {
        gap: 10px;
        /*margin-top: 70px;*/
    }

    .mainpage-banner {
        padding: 10px 6px 10px 10px;
        min-height: 120px;
    }

    .mainpage-banner .h2 {
        font-size: 20px;
    }

    .mainpage-banner .triangle {
        border-width: 6px 0 6px 10px;
    }

    .mainpage-banner picture,
    .mainpage-banner img {
        width: 70px;
    }
}



/************/
/** FOOTER **/
/************/

footer {
    padding: 58px 0;
    border-top: 6px solid #0e5746;
    border-bottom: 20px solid #0e5746;
    background-color: var(--primary-color);
}

.footer-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-info .mail,
.footer-info .thin {
    line-height: 1;
    font-size: 29px;
    color: #fff;
    font-weight: 300;
}

.footer-info .mail {
    font-weight: 500;
}

.footer-info .media-row {
    display: flex;
    gap: 34px;
}

footer .blog-wrapper {
    width: 910px;
    display: flex;
    justify-content: space-between;
}

footer .blog-cont {
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

footer .blog-cont .h2 {
    line-height: 1;
    font-size: 34px;
    font-weight: 900;
}

footer .blog-grid {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

footer .blog-box {
    display: flex;
    gap: 20px;
}

footer .blog-box img {
    width: 78px;
    height: 78px;
    object-fit: cover;
    object-position: center;
}

footer .blog-box strong,
footer .blog-box small {
    color: #fff;
    line-height: 1;
    max-width: 320px;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
}

footer .blog-box strong {
    display: block;
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 8px;
    -webkit-line-clamp: 1;
    max-height: 22px;
}

footer .blog-box small {
    font-size: 15px;
    font-weight: 300;
    -webkit-line-clamp: 3;
    max-height: 45px;
}

@media only screen and (max-width: 1300px) {
    .footer-info {
        gap: 25px;
    }

    .footer-info .mail,
    .footer-info .thin {
        font-size: 25px;
    }

    footer .blog-wrapper {
        width: 690px;
    }

    footer .blog-cont {
        max-width: 315px;
        gap: 25px;
    }

    footer .blog-cont .h2 {
        font-size: 30px;
    }

    footer .blog-box {
        gap: 15px;
    }

    footer .blog-box img {
        width: 66px;
        height: 66px;
    }

    footer .blog-box strong,
    footer .blog-box small {
        max-width: 250px;
    }

    footer .blog-box strong {
        font-size: 18px;
        max-height: 18px;
    }

    footer .blog-box small {
        font-size: 14px;
        max-height: 42px;
    }
}

@media only screen and (max-width: 1000px) {
    .footer-content {
        justify-content: unset;
    }

    footer .blog-wrapper {
        flex-direction: column;
        gap: 30px;
        width: fit-content;
        width: -moz-fit-content;
        margin: 0 auto;
    }
}

@media only screen and (max-width: 800px) {
    footer .blog-wrapper {
        margin: 0 0 0 auto;
    }
}

@media only screen and (max-width: 630px) {
    footer {
        padding: 40px 0;
    }

    .footer-info {
        min-width: 315px;
        gap: 20px;
    }

    .footer-info .mail,
    .footer-info .thin {
        font-size: 22px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    footer .blog-wrapper {
        margin: 0;
    }

    footer .blog-cont .h2 {
        font-size: 24px;
    }
}

@media only screen and (max-width: 350px) {
    .footer-info {
        min-width: 300px;
    }

    footer .blog-box {
        gap: 10px;
    }

    footer .blog-box strong {
        font-size: 17px;
        max-height: 17px;
    }

    footer .blog-box strong,
    footer .blog-box small {
        max-width: 224px;
    }
}
