:root {
    --light: #F6F7EB;
    --medium: #ee751e;
    --dark: #1d1d1b;
    --footer: #EAEDEC;
    --gray: #E3E3E3;
}

html {
    background: var(--dark);
    scroll-behavior: smooth;
}

body {
    background-color: rgba(255,255,255,0.8);
    background-color: white;
    color: var(--dark);
    line-height: 1;
    font-family: 'Nunito', sans-serif;
    margin: 0 auto;
    font-size: 21px;
}

img {
    max-width: 100%;
}

h2, h3, h4, h5, h6 {
    font-family: 'Nunito', sans-serif;
    text-transform: uppercase;
}

h2 {
    padding: 0 0 32px 0;
    margin: 0;
    font-size: 57px;
    font-weight: bold;
}

h2.center {
    text-align: center;
    width: 80%;
    margin: 0 auto;
}

a {
    transition: color 0.25s;
}

a:hover {
    color: var(--medium);
}

nav {
    background: transparent;
}

nav a {
    padding: 6px 16px;
    display: inline-block;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 4px;
    color: var(--medium);
}

nav.menu-footer  a {
    padding-left: 0;
}

nav a.active,
nav a:hover {
    color: var(--dark);
}

.w3-padding {
    padding: 8px !important;
  }

.logo img {
    width: min(336px, 64vw);
}

.logo .right-panel {
    text-transform: uppercase;
    font-size: 14px;
    padding: 8px 0;
    font-weight: bold;
    text-align: right;
}

.languages {
    margin-bottom: 34px;
    text-align: right;
}

.languages a {
    color: var(--dark);
    margin: 0 0 0 12px;
    display: inline !important;
    text-decoration: underline;
}

.languages a.active {
    text-decoration: none;
}

.languages a.active,
.languages a:hover {
    color: var(--medium);
}

.menu-button {
    display: flex;
    align-items: center;
    justify-content: end;
    height: 51px;
    font-size: 10px;
}

.menu-button .fa {
    font-size: 34px;
    padding-left: 6px;
}

.menu {
    display: block;
    text-align: center;
}

.block {
    background: transparent;
    clear: both;
    max-width: 1140px;
    margin: 0 auto;
}

.block > .subblock {
    padding: 42px 0;
}

.block.compact > .subblock {
    padding: 16px 0;
}

.block.compact > .subblock:first-of-type {
    padding: 42px 0 16px 0;
}

.block.compact > .subblock:last-of-type {
    padding: 16px 0 42px 0;
}

.subblock.alternating {
    clear: both;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.subblock::before,
.subblock::after {
    content: "";
    display: table;
    clear: both;
}

/* block detail */
.subblock > .description {
    padding: 0 40px 0 0;
    float: left;
    width: 99.99999%;
}

.subblock > .description > .date {
    font-size: 33px;
    padding: 25px 0;
}

@media (min-width: 993px) {
    .subblock > .description {
        width: 49.99999%;
    }
}

.subblock h3 {
    font-size: 32px;
    font-weight: bold;
    padding: 0 0 18px 0;
}

.subblock p {
    margin: 0;
    font-size: 21px;
    line-height: 1.8;
}

.subblock > .image {
    text-align: center;
    float: left;
    width: 49.99999%;
}

.subblock > .image > iframe {
    width: 75%;
    aspect-ratio: 1;
}

@media (max-width: 992px) { /* w3-hide-small && w3-hide-medium */
    .subblock > .image {
        display: none !important;
        width: 99.99999%;
    }

    .subblock > .image.nohide {
        display: block !important;
        margin-top: 32px;
    }
}

.subblock > .image > img {
    margin: 0;
    width: 380px;
}

.flipcardcontainer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    gap: 18px;
}

.flipcard {
    flex: 1 1 0px;
    background-color: var(--gray);
    padding: 38px 52px 62px 52px;
    position: relative;
    cursor: pointer;
    min-width: 300px;
}

.flipcard .header {
    padding-bottom: 32px;
    font-size: 21px;
}

.flipcard .description {
    font-size: 18px;
    padding-bottom: 32px;
}

.flipcard .image {
    text-align: right;
}

.flipcard .image img {
    max-height: 228px;
}

.flipcard .button {
    position: absolute;
    bottom: 32px;
    font-size: 18px;
    text-decoration: underline;
}

/* first block specific styles */
.subblock.first {
    padding-top: 80px;
}

.subblock.first > .description {
    padding: 0 40px 0 0;
}

.subblock.first > .description p {
    padding: 0 0 44px 0;
}

.subblock.first h2 {
    font-size: 70px;
}

.subblock.first h3 {
    font-size: 19px;
    padding: 0 0 44px 0;
    margin: 0;
}

.subblock.first h3 > b
{
    font-weight: 900;
    font-size: 21px;;
}

.subblock.first .image img {
    width: 530px;
}

/* table */
.row {
    display: grid;
    justify-items: stretch;
    align-items: stretch;
    color: var(--light);
}

.row:first-of-type {
    color: var(--dark);
    font-weight: bold;
}

.row.cols2 {
    grid-template-columns: 34% 66%;
}

.row.cols3 {
    grid-template-columns: 34% 33% 33%;
}

.row > div {
    border-bottom: 2px solid var(--light);
    padding: 16px 0;
    text-align: center;
    vertical-align: middle;
}

.row > div:first-of-type,
.row > div:first-of-type {
    text-align: left;
    font-weight: bold;
}

.row.cols3 > div:last-of-type {
    border-left: 2px solid var(--light);
}

.row:first-of-type > div:last-of-type {
    border-left: none;
}

/* main article preview styles */

.medium-background {
    background-color: var(--medium);
    padding: 57px 38px;
}

/*.article-preview > div {
    display: flex;
}*/

.article-image {
    position: relative;
}

.article-image img {
    /*width: 456px;*/
    border-radius: 20px;;
    /*position: absolute;
    bottom: 0px;*/
}

.article-preview h2 {
    font-size: 54px;
}

.article-preview .title {
    font-size: 51px;
    font-weight: bold;
    color: white;
}

.article-preview .preview p {
    padding: 0;
    margin: 0;
    line-height: 1.2;
    color: white;
    font-size: 26px;
}

.article-preview .preview ul {
    line-height: 2;
    margin: 26px 0;
    padding: 0;
    color: white;
    font-size: 21px;
    list-style: none;
}

.article-preview .preview ul li:before{
    content: "•";
    font-size: 6px;
    vertical-align: middle;
    padding-right: 8px;
}

.article-preview .buttons {
    text-align: left;
}

.article-preview .buttons .button {
    text-decoration: none;
    border: 2px solid var(--dark);
    padding: 16px 48px;
    border-radius: 48px;
    display: inline-block;
    font-size: 20px;
    transition: color 0.25s, border-color 0.25s;
}

.article-preview .buttons .button:hover {
    border-color: white;
    color: white;
}

/* properties */
.properties img {
    width: 120px;
    margin-bottom: 30px;
}

.properties h2 {
    font-size: 39px;
    word-break: break-all;
}

.expandable {
    overflow-y: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.5s;
    max-height: 500px;
}

.expandable::after {
    position: absolute;
    content: "";
    left: 0px;
    top: 0px;
    height: 100%;
    width: 100%;
    background: linear-gradient(transparent 50%, white);
    opacity: 0;
    transition: all 0.5s;
    pointer-events: none;
}

.expandable.collapsed {
    max-height: 220px;
}

.expandable.collapsed::after {
    opacity: 1;
}

/* carousel */
.carousel-content {
    display: none;
    line-height: 1.8;
    margin-bottom: 26px;
    min-height: 504px;
}

.carousel-content.active {
    display: block;
}

.carousel-content > .description {
    margin-bottom: 57px;
    width: 100%;
}

.carousel-content > .description {
    display: inline-block;
}

.carousel-content .image {
    text-align: center;
}

.carousel-content .image img {
    max-height: 360px;
    border-radius: 20px;
}

.carousel-controls {
    display: flex;
    align-items: center;
    width: 80%;
    margin: 0 auto;
}

.carousel-dot {
    vertical-align: middle;
    width: 17px;
    height: 17px;
    margin: 4px;
    background: var(--footer);
    border-radius: 16px;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.25s;
}

.carousel-dot.active {
    background: var(--medium);
}

.carousel-dot:hover {
    background: var(--medium);
}

.carousel-prev,
.carousel-next {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    width: 26px;
    height: 26px;
    cursor: pointer;
}

.carousel-prev {
    background-image: url("../img/prev.png");
}

.carousel-next {
    background-image: url("../img/next.png");
}

/* newsletter */
.newsletter p {
    margin: 13px 0 38px 0;
}

.newsletter form,
.contactus .form.right {
    top: 57px;
    position: relative;
    text-align: right;
}

.newsletter input[type=email] {
    margin-right: 8px;
    width: 65%;
}

.newsletter form > *,
.contactus .form > * {
    display: inline-block !important;
}

.forminline * {
    display: inline-block;
    width: unset !important;
    margin-bottom: 8px;
}

input,
select,
textarea,
.form .button {
    display: block;
    background: white;
    border: 2px solid;
    border-radius: 32px;
    font-weight: bold;
    padding: 16px 24px;
    font-size: 18px;
    margin-bottom: 8px;
    resize: none;
    text-decoration: none;
}

select {
    background: url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSIxMjIuODhweCIgaGVpZ2h0PSI4MC41OTNweCIgdmlld0JveD0iMCAwIDEyMi44OCA4MC41OTMiID48Zz48cG9seWdvbiBwb2ludHM9IjEyMi44OCwwIDEyMi44OCwzMC44MiA2MS40NCw4MC41OTMgMCwzMC44MiAwLDAgNjEuNDQsNDkuNzcyIDEyMi44OCwwIi8+PC9nPjwvc3ZnPg==) no-repeat 96.5% 50%;
    background-size: 2.5%;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
}

input[type=button],
.form .button {
    border-color: var(--medium);
    background: var(--medium);
    /*width: 22%;*/
    min-width: 104px;
    transition: color 0.25s;
    width: fit-content;
}

input[type=button]:hover,
.form .button:hover {
    color: white;
    cursor: pointer;
}

.contact input,
.contact select,
.contact textarea {
    width: 50%;
}

/* footer */
.footer {
    background: var(--footer);
    padding: 26px 38px;
    max-width: initial;
    line-height: 1.2;
}

.footer > * {
    align-items: flex-start;
    row-gap: 38px;
    padding: 16px 0;
    max-width: 1092px;
}

.footer .social {
    margin: 32px 0;
    display: flex;
    column-gap: 16px;
}

.footer .social .fa {
    background: var(--medium);
    border-radius: 26px;
    width: 51px;
    height: 51px;
    text-align: center;
    font-size: 26px;
    line-height: 51px;
    text-decoration: none;
}

.footer .social .fa:hover {
    color: white;
}

.w3-third.w3-padding p {
    width: 85%;
    margin: 0 auto;
}

@media (min-width: 601px) {
    .logo {
        padding: 38px 0;
    }
}

@media (min-width: 992px) {
    /*.w3-third.w3-padding:nth-of-type(1) {
        padding-left: 0 !important;
    }
    
    .w3-third.w3-padding:nth-of-type(3) {
        padding-right: 0 !important;
    }*/

    /*.w3-third.w3-padding p {
        text-align: center;
    }*/

    .subblock.alternating:nth-of-type(even) {
        flex-direction: row-reverse;
    }

    .subblock.alternating:nth-of-type(even) > .description {
        padding: 0 0 0 40px;
    }

    .subblock.alternating:nth-of-type(odd) > .description {
        padding: 0 40px 0 0;
    }
}

@media (max-width: 991px) {
    /*.w3-third.w3-padding:nth-of-type(1) {
        padding: 0 !important;
    }
    
    .w3-third.w3-padding:nth-of-type(3) {
        padding: 0 !important;
    }*/

    .block > .subblock {
        padding: 0 0 32px 0;
    }

    .block.compact > .subblock {
        padding: 16px 0;
    }
    
    .block.compact > .subblock:first-of-type {
        padding: 16px 0 0 0;
    }
    
    .block.compact > .subblock:last-of-type {
        padding: 0 0 16px 0;
    }

    .subblock > .description,
    .subblock.alternating:nth-of-type(even) > .description
    .subblock.alternating:nth-of-type(odd) > .description {
        padding: 0;
    }
    
    .article-preview {
        padding: 48px;
        margin-bottom: 42px;
    }

    .article-preview .article-image {
        padding-bottom: 48px;
    }

    .article-preview .buttons {
        text-align: center;
    }

    .newsletter form {
        top: initial;
        position: initial;
    }

    .newsletter input[type=email] {
        margin: 0 0 24px 0;
        width: 100%;
    }

    form > * {
        margin: 0 auto 8px auto;
    }
    
    input[type=button] {
        margin: 0 auto;
        display: block;
        width: unset;
    }

    .footer .social {
        justify-content: center;
    }

    nav.menu-footer {
        padding-left: 32px;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 12px;
    }

    h2 {
        font-size: 35px;
    }

    h2.center {
        text-align: left;
        padding: 0 0 24px 0;
        width: unset;
        margin: unset;
    }

    .logo {
        padding: 24px 0;
    }

    .menu {
        position: fixed;
        z-index: 100;
        width: 100%;
        height: 100%;
        top: 0;
        pointer-events: all;
        background: rgba(255,255,255,0.5);
    }

    .menu .menu-container {
        position: absolute;
        right: 0;
        height: 100%;
        width: 80%;
        background: white;
        box-shadow: 0 0 5px black;
        padding: 48px 0;
    }

    .menu a {
        display: block;
        text-align: right;
    }

    .block {
        padding: 24px;
    }

    .block > .subblock {
        padding: 0 0 24px 0;
    }

    .subblock > .description > .date {
        font-size: 20px;
        padding: 18px 0;
    }

    .subblock p {
        font-size: 13px;
        line-height: 24px;
    }

    .subblock h2 {
        font-size: 35px;
        padding: 0 0 18px 0;
        width: 90%;
    }

    .subblock > .image > iframe {
        width: 90%;
    }

    .article-preview {
        margin-bottom: 0;
    }

    .expandable.collapsed {
        max-height: 120px;
    }

    .flipcard {
        padding: 24px 32px 48px 32px;
    }

    .flipcard .header {
        font-size: 18px;
    }

    .flipcard .description {
        font-size: 13px;
    }

    .flipcard .image {
        text-align: center;
    }

    .flipcard .button {
        font-size: 13px;
    }

    .subblock.first > .description {
        padding: 0;
    }

    .subblock.first > .description p {
        padding: 0;
    }

    .subblock.first h2 {
        font-size: 42px;
        width: 100%;
        padding: 0 0 20px 0;
    }

    .subblock.first h3 {
        font-size: 12px;
        padding: 0 0 32px 0;
    }

    .subblock.first h3 > b
    {
        font-size: 14px;;
    }

    .article-preview h2 {
        font-size: 35px;
    }

    .article-preview .title {
        font-size: 32px;
    }

    .article-preview .preview p {
        font-size: 16px;
    }

    .article-preview .preview ul {
        font-size: 12px;
        line-height: 24px;
    }

    .article-preview .buttons .button {
        font-size: 12px;
        border-width: 1px;
        padding: 12px 32px;
    }

    /* carousel */ 
    .carousel-content {
        min-height: unset;
    }

    .carousel-content > .description {
        margin-bottom: 32px;
    }

    .carousel-controls {
        width: 100%;
    }

    .carousel-dot {
        margin: 10px;
        width: 18px;
        height: 18px;
    }

    .carousel-prev,
    .carousel-next {
        width: 18px;
        height: 18px;
    }

    /* newsleter */
    .newsletter h2 {
        font-size: 35px;
        padding: 0;
    }

    .newsletter p {
        margin: 16px 0;
    }

    input,
    select,
    textarea,
    .form .button {
        border-width: 1px;
        padding: 10px 18px;
        font-size: 12px;
        margin: 0 0 18px 0;
        width: 100% !important;
    }

    /* footer */
    .footer .social .fa {
        font-size: 24px;
        width: 48px;
        height: 48px;
        line-height: 48px;;
    }

    nav.menu-footer {
        padding-left: 0;
        padding-top: 32px;
    }

    nav.menu-footer a {
        font-size: 12px;
    }
}