* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
@font-face {
    font-family: "OpenSans";
    src: url("../fonts/OpenSans-VariableFont_wdth,wght.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

html, body{
	margin:0;
    position:relative;
    font-size:100%;
    font-family:"OpenSans", Verdana, Arial, sans-serif;
	background: url(../img/bg.jpg) no-repeat center center fixed;
	background-size: cover;
	scroll-behavior: smooth;
}

.container {
    width: min(100% - 40px, 1200px);
    margin-inline: auto;
	display:flex;
    justify-content:space-between;
    align-items:center;
}
header{
    background: rgba(0,67,203,0.25);
    border-bottom:1px solid darkblue;
    position:relative;
}
.site-header{
    width:100%;
	position:relative;
    z-index:20;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/*-- Logo --*/
.logo {
	display: block;
    width: 320px;
    margin: 10px 0 10px 0;
}
.logo img {
    display: block;
    width: 100%;
    height: auto;
}
/*-- //Logo --*/

/*-- Nav --*/
.site-nav ul{
    margin:0;
    padding:0;
    list-style:none;
    display:flex;
    gap:30px;
    justify-content:space-between;
}
.site-nav a{
    display:block;
	position:relative;
	font-family: 'Raleway', Verdana, Arial, sans-serif;
    text-decoration:none;
    color:#000;
    padding:10px 0;
	font-size:18px;
    font-weight:500;
	transition:color 0.3s ease, transform 0.3s ease;
}
.site-nav a::after{
    content:"";
    position:absolute;
    left:50%;
    bottom:4px;
    width:0;
    height:2px;
    background:#000;
    transform:translateX(-50%);
    transition:width 0.3s ease;
}
.site-nav a:hover{
    transform:scale(1.05);
}
.site-nav a:hover::after{
    width:100%;
}
.menu-toggle{
    display:none;
    width:46px;
    height:46px;
    padding:0;
    border: 1px solid #000;
	border-radius: 8px;
    background:transparent;
    cursor:pointer;
	transition:background .3s ease;
}
.menu-toggle:hover{
    background:#f3f3f3;
}
.menu-toggle span{
    display:block;
    width:30px;
    height:3px;
    margin:6px auto;
    background:#000;
    border-radius:2px;
    transition:.3s ease;
}
.intro{
    transition:margin-top .4s ease;
	background: rgba(230, 240, 250, 0.6);
	border-bottom: 1px solid rgba(0,67,203, 0.6);
}
.intro-grid{
    display:grid;
    grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);
    gap:40px;
    /*-- align-items:center; --*/
	padding: 20px 0;
}
.intro-text {
    display: flex;
    justify-content: center;
    padding: 0 30px;
}
.intro-text-inner {
    width: 100%;
    text-align: left;
}
.intro-media{
    position:relative;
    overflow:hidden;
}
.hero-video{
    display:block;
    width:100%;
    height:auto;
    border-radius:7px;
	border: 1px solid darkblue;
}
.hero-title {
    font-size: 30px;
    font-weight: 500;
	text-align: center;
    color: rgba(0,67,203,1.00);
    line-height: 1.1;
	padding: 0 0 6px 0;
}
.hero-subtitle {
    font-size: 22px;
    font-weight: 500;
	text-align: center;
    color: #000;
    line-height: 1.2;
	padding: 0 0 4px 0;
}
#project {
    scroll-margin-top: 220px;
}
#project .container {
    display: block;
}
#project h2 {
	font-size: 24px;
	font-weight: 500;
	color: rgba(0,67,203,1.00);
	text-align: center;
	padding: 15px 0;
}
#project p {
	font-size: 19px;
	font-weight: 500;
	color: rgba(0,0,0,1.00);
	text-align: justify;
	text-indent: 20px;
	padding: 5px 0;
}
.project-img {
    float: right;
    width: 260px;
    height: auto;
    margin: 5px 0 20px 20px;
    border-radius: 8px;
}
.project-img-left {
    float: left;
    width: 260px;
    height: auto;
    margin: 5px 20px 20px 0;
    border-radius: 8px;
}
#move-top {
    position: fixed;
    right: 10px;
    bottom: 114px;
    width: 50px;
    height: 50px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}
#move-top img {
    width: 100%;
    height: auto;
    display: block;
}
#move-top.show {
    opacity: 1;
    visibility: visible;
}
#portfolio {
    scroll-margin-top: 220px;
	background: rgba(230, 240, 250, 0.6);
	border-top: 1px solid rgba(0,67,203, 0.6);
	border-bottom: 1px solid rgba(0,67,203, 0.6);
	margin: 20px 0;
}
#portfolio .container {
    display: block;
}
#portfolio h2 {
	font-size: 24px;
	font-weight: 500;
	color: rgba(0,67,203,1.00);
	text-align: center;
	padding: 15px 0;
}
.portfolio-grid {
    display: flex;
    gap: 30px;
    padding-bottom: 20px;
}
.portfolio-item {
    flex: 1;
    height: 160px;
    border: 1px solid #aaa;
}
#contacts .container {
    display: block;
}
#contacts h2 {
	font-size: 24px;
	font-weight: 500;
	color: rgba(0,67,203,1.00);
	text-align: center;
	padding: 15px 0;
}
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.contact-photo {
	border-radius: 50%;
	border: 1px solid rgba(0,67,203, 0.6);
	height: 180px;
}
.contacts-info {
    text-align: center;
}
.contacts-info a {
	color: #000;
    text-decoration: none;
}
.contacts-info a:hover {
    text-decoration: underline;
}
.contact-list {
    width: max-content;
    margin: 8px auto 0;
    text-align: left;
}
.contact-list p {
    display: grid;
    grid-template-columns: 26px auto;
    align-items: center;
    margin: 0 0 8px 0;
}
.contact-list .fa {
    font-size: 20px;
    text-align: left;
}
.phone-icon {color: #2CBB00;}
.mail-icon {color: #0052F7;}
.telegram-icon {color: #32A9E1;}

.text1 {
	color: #000; 
	font-size: 16px; 
	line-height: 20px; 
	text-align: center;
}
.text2 {
	color: #777; 
	font-size: 14px; 
	line-height: 20px; 
	margin: 4px 0px 0px 17px;
}
.form-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.form-group {
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    box-sizing: border-box;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #c5ced9;
    font: inherit;
}
.form-control:focus {
  	box-shadow: none;
  	border: 0px solid #eeaeae;
  	background: rgba(228,28,64,0.09);
}
.message {
    height: 131px;
    padding: 10px 12px;
    resize: none;
}
.form-control::placeholder {
    color: #999;
    font-size: 16px;
}
.form-submit {
    display: flex;
    justify-content: center;
}
.submit-button {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-width: 120px;
    padding: 8px 10px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: #777;
    background: transparent;
    border: 1px solid #c5ced9;
    border-radius: 4px;
    cursor: pointer;
    transition:
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.2s ease;
}
.submit-button::before,
.submit-button::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    background: rgba(0, 67, 203, 0.25);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: -1;
}
.submit-button::before {
    left: 0;
    transform-origin: left;
}
.submit-button::after {
    right: 0;
    transform-origin: right;
}
.submit-button:hover::before,
.submit-button:hover::after {
    transform: scaleX(1);
}
.submit-button:hover {
    color: #000;
    border-color: #444;
}
.submit-button:active {
    transform: translateY(1px);
}
.submit-button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

#form-message {
    display: none;
    margin-top: 15px;
    text-align: center;
}

.site-footer {
    background: rgba(0, 67, 203, 0.25);
    border-top: 1px solid darkblue;
    padding: 10px 0;
	margin-top: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    position: relative;
    z-index: 20;
}
.site-footer p {
    margin: 0;
}
/*--footer--*/


@media(max-width:767px){
    .container{
        flex-wrap:wrap;
    }
    .logo{
        width:240px;
        margin:6px 0;
    }
   .site-nav{
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    max-height:0;
    overflow:hidden;
    background:rgba(79,79,79,0.08);
    border-bottom:1px solid darkblue;
    transition:max-height .24s ease;
	}
	.site-nav.active{
    max-height:300px;
	}
	.site-nav a{
		display:block;
    	width:100%;
    	padding:12px 30px;
    	font-size:17px;
	}
	.site-nav a:hover{
  		background:rgba(79,79,79,.12);
	}
	.site-nav ul{
		flex-direction:column;
		gap:0;
		padding:10px 0px;
    }
	.site-nav a::after{
    	display:none;
	}
	.menu-toggle{
        display:block;
    }
	.menu-toggle.active span:nth-child(1){
    	transform:translateY(9px) rotate(45deg);
	}
	.menu-toggle.active span:nth-child(2){
    	opacity:0;
	}
	.menu-toggle.active span:nth-child(3){
   		transform:translateY(-9px) rotate(-45deg);
	}
	.intro-grid{
        grid-template-columns:1fr;
        gap:20px;
    }
	.hero-title {
    	font-size: 18px;
    	font-weight: 500;
		text-align: center;
    	color: rgba(0,67,203,1.00);
    	line-height: 1.1;
		padding: 0 0 6px 0;
 	}
	.hero-subtitle {
    	font-size: 14px;
    	font-weight: 500;
		text-align: center;
    	color: #000;
   		line-height:1.2;
		padding: 0 0 4px 0;
	}
	#project h2 {
		font-size: 20px;
		font-weight: 500;
		color: rgba(0,67,203,1.00);
		text-align: center;
		padding: 6px 0;
	}
	#project p {
		font-size: 16px;
		font-weight: 500;
		color: rgba(0,0,0,1.00);
		text-align: justify;
		text-indent: 20px;
		padding: 5px 0;
	}
	.project-img,
    .project-img-left {
        float: none;
        display: block;
        width: 100%;
        margin: 15px 0 20px;
    }
	.portfolio-grid {
     	flex-direction: column;
	}
	 .portfolio-item {
        flex: none;
        width: 100%;
        height: 160px;
    }
	.contacts-grid {
        grid-template-columns: 1fr;
    }
	.form-fields {
    	grid-template-columns: 1fr;
	}
			

}
@media (prefers-reduced-motion: reduce) {
    .submit-button,
    .submit-button::before {
        transition: none;
    }
}

html body .grecaptcha-badge {
    bottom: 44px !important;
}




