* {
    
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    height: fit-content;
    scroll-behavior: smooth;
}

*:not(ul,li){
	padding: 0;
    margin: 0;
}

:root {
    --cl-primary: #2381c4;
    --cl-secondary: #d1eaec;
    --cl-black: #1a1a18;
    --cl-white: #fff;
    --cl-gray: #f8f5f5;


    --fs-xl: 28px;
    --fs-large: 20px;
    --fs-medium: 18px;
    --fs-small: 16px;

    --cs-side-padding: 40px;
}

html,
body {
    height: 100vh;
    width: 100vw;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;

}

div.head {
    display: grid;
    grid-template-areas:
        'logo navigation languages'
    ;
    grid-template-columns: 2fr 7fr 1fr;
    grid-template-rows: 1fr;

    box-shadow: 0px 0px 32px rgba(109, 141, 173, 0.25);

    height: fit-content;

    width: 100%;

    padding: 10px var(--cs-side-padding);

    justify-items: flex-start;
    align-items: center;
    z-index: 20;
}

div.head img {
    grid-area: logo;
    height: 80px;

}

div.head>ul {
    grid-area: navigation;

    display: flex;
    flex-direction: row;

    justify-content: flex-start;
    list-style: none;
}

@media only screen and (max-width: 600px) { 
    div.head>ul.closed {
        display: none;
    }
}

div.head>ul li {
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    font-size: var(--fs-medium);

}

div.head>ul li>ul {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--cl-white);
    z-index: 2;
    padding: 20px;
    box-shadow: 0px 10px 20px rgba(109, 141, 173, 0.25);
    display: none;
}

@media only screen and (max-width: 600px) {

    div.head>ul li {
        flex-direction: column;
        align-items: flex-start;
        position: revert;
    }

    div.head>ul li>ul {
        position: revert;
        transform: none;
        box-shadow: none;
    }

    div.head>ul li>ul.open {
        display: block;
    }
}

@media only screen and (min-width: 600px) {
    div.head>ul li:hover>ul {
        display: block;
    }
}


div.head>ul li>ul li {
    margin-left: 10px;
    padding: 5px 0;
    width: fit-content;

}

div.head>ul li>ul p {
    color: var(--cl-primary);
    font-weight: 600;
    white-space: nowrap;
    cursor: default;
    font-size: var(--fs-medium);
}

div.head > ul > li > a {
    font-size: var(--fs-medium) !important;
    color: var(--cl-primary) !important;
}

div.head ul>li:hover>a,
div.head ul>li.active>a {
    color: var(--cl-primary) !important;
    background-size: 100% 2px;

}

div.head ul li a {
    font-size: var(--fs-small);
    color: var(--cl-black);
    font-weight: 500;
    text-decoration: none;

    transition-duration: .5s;

    background-image: linear-gradient(var(--cl-primary), var(--cl-primary));
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
}

div.head .head-lang {
    grid-area: languages;
    height: 100%;
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: center;

}

div.head .head-lang span {
    padding: 7px;
    background-color: var(--cl-black);
    box-shadow: 0px 0px 20px rgba(109, 141, 173, 0.25);
    cursor: pointer;
}

div.head .head-lang span p {
    color: var(--cl-white);
    font-weight: 500;
    font-size: var(--fs-medium);
}


div.head .head-lang span:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

div.head .head-lang span:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

div.head .head-lang span.active {
    background-color: var(--cl-secondary);
    transform: scale(110%);
    cursor: default;
}

div.head .head-lang span.active p {
    color: var(--cl-black);
}

div.head .navigation-icon {
    width: 50px;
    height: 50px;
    position: relative;
    grid-area: icon;
    display: none;
    cursor: pointer;
}

div.head .navigation-icon span {
    width: calc(100% - 5px);
    height: 4px;
    border-radius: 2px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    background-color: var(--cl-primary);
    transition-duration: .5s;
}

div.head .navigation-icon span:nth-child(1) {
    transform: translateX(-50%) translateY(calc(-50% - 10px));
}

div.head .navigation-icon span:nth-child(3) {
    transform: translateX(-50%) translateY(calc(-50% + 10px));
}

div.head .navigation-icon.active span:nth-child(1) {
    transform: translateX(-50%) translateY(-50%) rotate(45deg);
}

div.head .navigation-icon.active span:nth-child(2) {
    display: none;
}

div.head .navigation-icon.active span:nth-child(3) {
    transform: translateX(-50%) translateY(-50%) rotate(-45deg);
}


@media only screen and (max-width: 600px) {
    div.head {
        grid-template-areas:
            'icon logo languages'
            'navigation navigation navigation'
        ;
        grid-template-columns: 1fr 2fr 1fr;

    }

    div.head .navigation-icon {
        display: block;
    }

    div.head>ul {
        flex-direction: column;
        justify-content: flex-start;
        width: 100%;
        margin-top: 20px;
    }

    div.head>ul>li {
        border-top: 1px solid var(--cl-black);
    }

    div.head>ul>li:last-child {
        border-bottom: 1px solid var(--cl-black);
    }

    div.head {
        padding: 20px 10px;
    }
}

.banner {
    width: 100%;
    height: 325px;
    font-size: var(--fs-medium);
    display: flex;
    flex-direction: row;
    background-color: var(--cl-black);
    padding: 0 !important;
}

.banner .banner-legend{
    height: 100%;
    flex-basis: 550px;
    flex-shrink: 0;
    margin-right: -100px;
    position: relative;
    background-color: var(--cl-secondary);
    clip-path: polygon(0 0, 100% 0, calc(100% - 100px) 100%, 0 100%);
    z-index: 1;
}

.banner .banner-legend .banner-text{
    height: calc(100% - 40px);
    width: 100%;
    position: relative;
}



.banner .banner-legend .banner-indicator{
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 100px;
    
    height: 20px;

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.banner .banner-legend .banner-indicator span{
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--cl-gray);
    margin: 0 5px;
    cursor: pointer;
    transition-duration: .5s;
}

.banner .banner-legend .banner-indicator span.active{
    cursor: default;
    pointer-events: none;
}

.banner .banner-legend .banner-indicator span:hover,
.banner .banner-legend .banner-indicator span.active{
    background-color: var(--cl-black);
}

.banner .banner-legend .text-handler{
    position: absolute;
    top: 0;
    left: 0;
    right: 100px;
    bottom: 20px;
    max-height: 100%;
    overflow-y: auto;

    display: flex;
    flex-direction: column;
	gap: 8px;
	
    padding: 20px;
	padding-left: var(--cs-side-padding);
    transition-duration: 1s;
    opacity: 0;
    z-index: -1;
	line-height: 1.5em;
	font-size: var(--fs-small);
}

@media only screen and (max-width: 600px) {
    .banner .banner-legend .text-handler{
        right: 0;
    }

    .banner .banner-legend .banner-indicator{
        right: 0;
    }
}

.banner .banner-legend .text-handler::-webkit-scrollbar{
    width: 6px;
}

.banner .banner-legend .text-handler::-webkit-scrollbar-track{
    background: transparent;
}

.banner .banner-legend .text-handler::-webkit-scrollbar-thumb{
    background: #ccc;
    border-radius: 3px;

}

.banner .banner-legend .text-handler::-webkit-scrollbar-thumb:hover{
    background: #666;
}

.banner .banner-legend .text-handler.active,
.banner .banner-img img.active{
    opacity: 1;
    z-index: 0;
}

.banner .banner-img{
    height: 100%;
    flex-grow: 1;
    position: relative;
    background-color: var(--cl-black);
    
}

@media only screen and (max-width: 600px) { 
    .banner .banner-img{
        display: none;
    }

    .banner .banner-legend{
        clip-path: none;
        width: 100%;
    }
}

.banner .banner-img img{
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition-duration: 1s;
    
}

footer.contacts {
    width: 100%;
    padding: 60px var(--cs-side-padding) 20px var(--cs-side-padding);
    margin-top: -40px;
    background-color: var(--cl-black);
    color: var(--cl-white);
    display: flex;
    flex-direction: column;

    font-size: var(--fs-small);
    clip-path: polygon(0 0, 100% calc(0% + 40px), 100% 100%, 0% 100%);
}


footer.contacts address {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    font-style: normal;
}

footer.contacts address div {
    display: flex;
    flex-direction: row;

}

footer.contacts address>div>p:first-child {
    font-weight: 700;
    margin-right: 10px;

}

footer.contacts .copyright {
    margin-top: 30px;
    justify-self: flex-end;

}

footer.contacts .watermark {
    justify-self: flex-end;
    align-self: flex-end;
    display: flex;
    flex-direction: row-reverse;
	align-items:center;

}

footer.contacts .watermark img {
    height: calc(100% - var(--fs-medium));
    width: 150px;
    object-fit: cover;
}

/* New */

.icon-text{
	display: flex;
	flex-direction: row;
	align-items:center;
	gap: 8px;
}

main.content{
    flex-grow: 2;

}

main.content > div:not(.modal-window){
    padding: 48px 40px;
}

main.content > div:last-child{
    padding-bottom: 80px;
}

main.content > div:not(.modal-window):nth-child(even){
    background-color: var(--cl-gray);
}

.grid{
    display: flex;
    flex-direction: column;
    padding: 16px var(--cs-side-padding);
    gap: 16px;
    width: 100%;
}

.grid h1{
    color: var(--cl-primary);
}

.grid .grid-items{
    display: flex;
    flex-direction: column;
}

.grid .grid-item{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-basis: 25%;
    flex-grow: 1;
    flex-shrink: 0;
    height: fit-content;
    min-height: 100%;
    padding: 24px 16px;
    font-size: var(--fs-medium);
    color: var(--cl-black);
    text-decoration: none;
    transition-duration: .5s;
}

.grid .grid-item:is(:hover, :focus){
    color: var(--cl-primary);
    background-color: var(--cl-gray);
}

.grid .grid-item:not(:last-child){
    border-bottom: 1px solid black;
}

@media only screen and (min-width: 600px) {
    .grid .grid-items{
        flex-direction: row;
    }

    .grid .grid-item:not(:last-child){
        border-right: 1px solid black;
        border-bottom: none;
    }
}

.text-img{
    display: grid;
    grid-template-areas: 'title' 'img' 'text';
	grid-template-rows: 36px;
    padding: 16px var(--cs-side-padding);
    gap: 24px;
    width: 100%;
}

.text-img .text-img-title{
    grid-area: title;
    color: var(--cl-primary);
}

.text-img .text-img-img{
    grid-area: img;
    object-fit: contain;
    width: 100%;
}

.text-img .text-img-text{
    grid-area: text;
    font-size: var(--fs-medium);
}

@media only screen and (min-width: 600px) {
    .text-img{
        grid-template-areas: 'img title' 'img text';
        grid-template-columns: minmax(350px, 2fr) 3fr;
        grid-template-rows: minmax(48px, auto) auto;    
    }
	
	.text-img .text-img-text{
		width: 70%;
	}
	
}

.text{
    display: flex;
    flex-direction: column;
    padding: 32px var(--cs-side-padding);
    width: 100%;
	gap: 8px;
}

.text > .content{
	
	font-size: var(--fs-medium);
}

.text h1{
    color: var(--cl-primary);
}


.file a{
color: var(--cl-black);
display: flex;
align-items: center;
gap: 8px;
text-decoration: none;	
}

.contacts{
	display: flex;
	flex-direction: row;
	justify-content: center;
	gap: 8px;
	font-size: var(--fs-medium);
}

@media only screen and (max-width: 1000px) {
	.contacts{
		flex-direction: column;
		gap: 24px;
	}
}

.contacts .contact{
	flex-grow: 1;
	flex-shrink: 1;
}