:root {
    --text-color: #424242;
    --ci-color: #FF4444;
    --h-linie: rgba(5, 5, 5, .71);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Titillium Web", sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: #F8F5F3;
    display: flex;
    justify-content: center;
}

.page-container {
    width: 100%;
    max-width: 2360px; /*  2360px */
    min-width: 363px;
    min-height: 703px;
    background-image: url('/assets/images/header-bw-3-wide.jpg');
    background-repeat: no-repeat;
    background-position: right top;
    background-size: auto 703px;
    background-color: white;
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    right: 0;
    z-index: 2000;
    width: 393px;
    height: 852px;
    background-color: var(--ci-color);
    padding: 29px;
    display: none;
}

.mobile-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
}


.mobile-head .logo {
    padding-left: 25px;
    text-align: left;
}

.mobile-head .close {
    padding-right: 25px;
    text-align: right;
}

.mobile-head svg {
    cursor: pointer;
}

menu {
    display: block;
    width: 100%;
    border-block: solid 2px white;
    padding: 30px 29px;
    margin-top: 35px;
}


menu li {
    text-align: right;
    list-style: none;
}

menu a {
    text-decoration: none;
    color: white;
    font-size: 25px;
    font-weight: bold;
    line-height: 70px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.mobile-foot {
    text-align: right;
    padding-block: 31px;
}

.mobile-menu .mobile-foot a {
    text-decoration: none;
    text-transform: uppercase;
    color: white;
    font-size: 25px;
    line-height: 40px;
    font-weight: bold;
    display: block;
    cursor: pointer;
}

/* Header */

header {
    background: transparent;
    padding-block: 38px;
    padding-inline: 0;
    display: flex;
    justify-content: space-between;
    white-space: nowrap;
    align-items: flex-start;
    /*    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); */
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.2s;
}

header .logo img {
    cursor: pointer;
    padding-left: 76px;
}

header .hamburger {
    align-self: flex-start;
    justify-self: center;
    padding-right: 26px;
    cursor: pointer;
    display: none;
}

nav {
    padding-right: 76px;
    padding-left: 10px;
    width: 100%;
    max-width: 1016px;
    min-width: 200px;
}

nav ul {
    list-style: none;
    display: flex;
    /*    gap: 35px; */
    justify-content: space-between;
}

nav a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

nav a:hover {
    color: #FF4444;
}

.scrolled {
    background: white;
    color: var(--text-color);
}

/* Hero Section */
.hero {
    /*            background: linear-gradient(135deg, #FF4444 0%, #FF6666 100%); */
    color: white;
    /*            padding: 80px 50px; */
    padding-block-start: 178px;
    padding-inline: 85px;
    position: relative;
    overflow: hidden;
    background-position: -113px top;
    max-height: 564px;
    min-height: 564px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    /*            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><rect fill="%23ffffff" opacity="0.1" x="50" y="20" width="300" height="200"/><line stroke="%23ffffff" opacity="0.2" x1="50" y1="50" x2="350" y2="50"/><line stroke="%23ffffff" opacity="0.2" x1="50" y1="100" x2="350" y2="100"/></svg>') no-repeat center; */
    background-size: contain;
    opacity: 0.3;
}

.hero-content {
    max-width: 500px;
    position: relative;
    z-index: 1;
}

.hero-content::before {
    content: '';
    position: absolute;

}

.hero-number {
    padding-inline: 50px;
    width: 100%;
    font-size: 120px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 10px;
    background-color: #FF4939;
}

.hero h1 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1px;
    text-transform: uppercase;
}

/* Logos */

.logos {
    height: 105px;
    background-color: #1B1B1D;
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    padding-inline: 3.1%;
    overflow: hidden;
    /*    white-space: nowrap;
        text-overflow: ellipsis;
    */
}

.logos img:not(:first-of-type) {
    flex-shrink: 0;
    object-fit: cover;
}

/* Main Content */

.container {
    width: 100%;
    margin: 0 auto;
    padding-inline: 73px;
    background: white;
}

.section-flip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 727px 10px 727px;
    /*    gap: 14px; */
    /*    margin-bottom: 80px; */
    align-items: start;
    margin-top: 10px;
}

.first-flip {
    margin-top: 39px;
}

.section-fip:nth-child(odd) .content {
    order: 1;
}

.section-flip:nth-child(odd) .image {
    order: 3;
}

.section-fip:nth-child(odd) .buffer {
    order: 0;
}

.section-flip:nth-child(odd) .spacer {
    order: 2;
}

.section-flip a {
    color: var(--text-color);
    text-decoration: none;
    cursor: pointer;
}

.section-flip .content {
    background-color: #F2ECE9;
    height: 715px;
    padding: 95px;
}

.section-flip h2 {
    color: var(--text-color);
    font-size: 48px;
    font-weight: 700;
    text-transform: uppercase;
    padding-block: 17px;
}

.section-flip p {
    color: var(--text-color);
    font-size: 20px;
    line-height: 30px;
}

.section-flip .content .know-more {
    padding-top: 36px;
    text-transform: uppercase;
    vertical-align: center;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.section-flip .content .know-more svg {
    vertical-align: middle;
    margin-bottom: 0.2em;
    padding-right: 10px
}

.section-flip > .image {
    height: 715px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.section-flip > .image img {
    width: 100%;
    height: auto;
    max-height: 715px;
    object-fit: cover;
    object-position: center;
}

.section {
    display: grid;
    /*    grid-template-columns: minmax(0, 1fr) 483px 971px; */
    grid-template-columns: minmax(0, 1fr) 483px 9px 971px;
    /*    gap: 60px; */
    /*    margin-bottom: 80px; */
    align-items: start;
    margin-top: 39px;
}

.section > .image {
    height: 532px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    order: 3;
}

.section > .image img {
    max-width: 100%;
    height: auto;
}

.section > .placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    border: 2px dashed #ccc;
}

.section .spacer {
    order: 2;
}

.section > .content {
    border-block: 9px solid #050505;
    width: 100%;
    height: 532px;
    order: 1;
}

.section > .section-number {
    font-size: 48px;
    font-weight: bold;
    color: #FF4444;
    margin-bottom: 10px;
}

.section > .content h2 {
    width: 100%;
    font-size: 47px;
    line-height: 48px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #353535;
    margin-bottom: 20px;
    font-weight: 700;
    border-bottom: 3px solid #050505;
    height: 152px;
    padding-top: 12px;
}


.section > .content p {
    color: #353535;
    font-size: 21px;
    font-weight: 600;
    line-height: 30px;
    margin-bottom: 12px;
    height: 337px;
    width: 400px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 43px;
}

/* Fonts */
.titillium-web-extralight {
    font-family: "Titillium Web", sans-serif;
    font-weight: 200;
    font-style: normal;
}

.titillium-web-light {
    font-family: "Titillium Web", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.titillium-web-regular {
    font-family: "Titillium Web", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.titillium-web-semibold {
    font-family: "Titillium Web", sans-serif;
    font-weight: 600;
    font-style: normal;
}

.titillium-web-bold {
    font-family: "Titillium Web", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.titillium-web-black {
    font-family: "Titillium Web", sans-serif;
    font-weight: 900;
    font-style: normal;
}

.titillium-web-extralight-italic {
    font-family: "Titillium Web", sans-serif;
    font-weight: 200;
    font-style: italic;
}

.titillium-web-light-italic {
    font-family: "Titillium Web", sans-serif;
    font-weight: 300;
    font-style: italic;
}

.titillium-web-regular-italic {
    font-family: "Titillium Web", sans-serif;
    font-weight: 400;
    font-style: italic;
}

.titillium-web-semibold-italic {
    font-family: "Titillium Web", sans-serif;
    font-weight: 600;
    font-style: italic;
}

.titillium-web-bold-italic {
    font-family: "Titillium Web", sans-serif;
    font-weight: 700;
    font-style: italic;
}

/* Responsive */
@media (max-width: 2361px) {
    /*
    .container {
        padding-inline: calc(100vw - 1526px) 40px;
    }
    .logos img:not(:first-of-type) {
        margin-left: 2%;
    }

     */
    nav {
        display: initial;
    }
}

@media (max-width: 1600px) {
    .page-container {
        background-image: url('/assets/images/header-bw-3.jpg');
        background-position: right top;
        background-size: auto 703px;
    }

    header .logo img {
        padding-left: 73px;
    }

    .container {
        padding-inline: 0;
    }

    .section {
        display: block;
        height: auto;
    }

    .section .content:last-child {
        margin-bottom: 34px;
    }

    .section .content {
        border-block: 9px solid #050505;
        height: auto;
        margin-inline: 14px;
        width: calc(100% - 28px);
    }

    .section .content p {
        font-size: 17px;
        line-height: 22px;
        height: auto;
        padding-block: 11px;
        width: 100%;
    }

    .section .content h2 {
        font-size: 27px;
        line-height: 26px;
        height: auto;
        padding-block: 9px;
        width: 100%;
    }

    .section .image {
        height: auto;
        width: 100%;
        margin-bottom: 16px;
        padding-inline: 14px;
    }

    .section .image img {
        width: 100%;
        height: auto;
    }

    .section-flip {
        display: block;
        margin-top: 0;
    }

    .section-flip .content {
        padding: 45px 25px;
        height: auto;
    }

    .section-flip .image {
        height: auto;
    }
}

@media (max-width: 1060px) {
    .page-container {
        background-size: auto 490px;
        background-position: calc(100% + 70px) 69px;
    }

    /* Mobile start */
    header .hamburger {
        display: initial;
    }

    .scrolled {
        background: #2F2F31;
    }

    header {
        background: #2F2F31;
        height: 70px;
        padding-block: 20px;
    }

    header .logo img {
        height: 23.5px;
        padding-left: 29px;
    }

    header .hamburger svg {
        height: 20.1px;
    }

    nav {
        background-color: red;
        display: none;
    }

    .hero {
        padding-left: 25px;
        padding-top: 25px;
        max-height: 396px;
        min-height: 396px;
    }

    .hero-content h1 {
        font-size: 22px;
        line-height: 22px;
    }

    .container {
        padding-inline: 0;
    }

    .section {
        display: block;
        height: auto;
    }

    .section .content:last-child {
        margin-bottom: 34px;
    }

    .section .content {
        border-block: 9px solid #050505;
        height: auto;
        margin-inline: 14px;
        width: calc(100% - 28px);
    }

    .section .content p {
        font-size: 17px;
        line-height: 22px;
        height: auto;
        padding-block: 11px;
        width: 100%;
    }

    .section .content h2 {
        font-size: 27px;
        line-height: 26px;
        height: auto;
        padding-block: 9px;
        width: 100%;
    }

    .section .image {
        height: auto;
        width: 100%;
        margin-bottom: 16px;
        padding-inline: 14px;
    }

    .section-flip {
        display: block;
        margin-top: 0;
    }

    .section-flip .content {
        padding: 45px 25px;
        height: auto;
    }

    .section-flip .content p {
        font-size: 17px;
    }

    .section-flip .content h2 {
        font-size: 27px;
    }

    .section-flip .image {
        height: auto;
    }

}