html {
    font-size: 10px;
    scroll-behavior: smooth;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}
body {
    font-size: 1.6rem;
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-style: normal;
    font-weight: 600;
    color: #282828;
}
.container{
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 80px;
}
a {
    text-decoration: none;
    cursor: pointer;
}

a:hover {
    text-decoration: none;
}
/* Header  */
.header .container{
    padding: 0px 50px;
}
.header{
    min-height: 100px;
    padding: 30px 10px;
}
.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.img_logo{
    width: 32px;
    height: auto;
    display: block;
}
.nav {
  display: flex;
  gap: 40px;
}
.header__logo {
display: flex;
align-items: center;
gap: 8px;
color: #282828;
}
.text_logo{
    font-size: 1.8rem;
    letter-spacing: 0.12em;
}
.header__logo:hover, .header__logo:focus, .header__logo:active {
    color: #5BA3BB;
}
.nav__link{
    font-size: 1.4rem;
    letter-spacing: 0.1em;
    color: #282828;
}
.nav__link:hover, .nav__link:focus, .nav__link:active   {
   color: #5BA3BB;
}
/* Main Section */
 .main .container{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 100px;
}

.main_img {
    max-width: 100%;
    height: auto;
    object-fit: cover; /* сохраняет пропорции */
}


.main_text{
    flex-basis: 40%;
    max-width:564px;
    display: flex;
    flex-direction: column;
    gap: 80px;
}
.main_img_wrapper {
    flex-basis: 60%; /* каждый занимает 50%  можно заменить  width: 50%;*/
    max-width: 864px;
    height: auto;
    overflow: hidden; /* обрезает лишнее */
}

.main_text_title {
    font-size: 4.8rem;
    margin: 0 0 20px 0;
    max-width: 95%; /* каждый занимает 70%  от main-text*/
}
.main_text_title span {
    color: #5BA3BB;
}
.main_text_item_link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    line-height: 1.2rem;
    letter-spacing: 0.07em;
    color: #A7ADAF;
}

.main_text_item_paragrafh { 
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1.4rem;
    letter-spacing: -0.01em;
    color: #5BA3BB;
    margin:0;
}
.main_text_item_title {
   font-weight: 400;
   font-size: 1.4rem;
   line-height: 1.4rem;
   letter-spacing: 0.03em;
   margin: 5px 0 20px 0;
}
.main_text_subtitle_block{
    display: flex;
    /* gap: 20px; */
    justify-content: space-between;
}
.main_text_item{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* About Section */
.about {
    position: relative;
    margin-bottom: 150px;
}
.top_left_background{
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 80%;
    background-color: #5BA3BB;
    opacity: 0.2;
    z-index: 0;
    max-height: 450px;

}
.about_inner {
    position: relative;
    top: 50px;
    left: 0px;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    margin-bottom: 50px;
}
.about_img_wrapper {
    flex: 1;
    max-width: 700px;
    height: auto;
    overflow: hidden; /* обрезает лишнее */
}

.about_img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* сохраняет пропорции */
}
.about_text {
   
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.about_title {
    max-width:500px;
    font-size: 4.0rem;
    letter-spacing: -0.01em;
    font-weight: 700;
    color: #282828;

}
.about_subtitle {
    max-width: 420px;
    font-weight: 400;
    font-size: 1.8rem;
    line-height:150%;
    color: #A7ADAF;
}
.about_btns {
    display: flex;
    gap: 50px;
}
.btn {
    max-width: 168px;
    display: inline-block;
    padding: 12px 24px;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    color: #5BA3BB;
    border: 2px solid #5BA3BB;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn:hover, .btn:focus, .btn:active {
    background-color: #5BA3BB;
    color: #fff;
}
/* Services Section */
.services .container {
    background-color: rgba(91, 163, 187, 0.2);
    display: flex;
    align-items: center;
    gap: 10%;
    margin-bottom: 100px;

}
.service_title {
    font-size: 4.0rem;
    letter-spacing: -0.01em;
    font-weight: 700;
    color: #282828;
    margin-bottom: 50px;
    max-width: 300px;
}

.service_items {
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    gap: 30px;
}
.service_item {
    flex: 1 1 calc(30% - 30px); /* 3 элемента в ряд с учетом отступов */
    max-width: calc(30% - 30px);
    /* height: 218px; */
    padding: 20px;
}
.service_item_title {
    font-weight: 400;
    font-size: 1.8rem;
    line-height: 2.2rem;
    letter-spacing: 0.03em;
}
.service_item_subtitle {
    font-weight: 300;
    font-size: 1.2rem;
    line-height: 2.4rem;
    letter-spacing: 0.07em;
    color: #A7ADAF;
}
/* Team Section */  
.team .container {
    display: flex;
    align-items: center;
    gap: 10%;   
    margin-bottom: 100px;
    max-height: 500px;
}
/* gap: calc(100vw * 0.10); */
.team_img_wrapper {
    flex-basis: 35%;
    height: auto;
    overflow: hidden; 

}
.team_text {
    /* flex-basis: 50%; */
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
}
.team_img{
    align-self: center;
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;

}
.team_title {
    font-size: 4.0rem;
    letter-spacing: -0.01em;
    font-weight: 700;
    color: #282828;
    
}
.team_subtitle {
    font-weight: 400;
    font-size: 1.4rem;
    line-height:200%;
    color: #A7ADAF;
}
/* Contact Section */
.contact .container {
    display: flex;
    align-items: flex-start;
    gap: 10%;
    margin-bottom: 0px;
    background-color: rgba(91, 163, 187, 0.2);
}

.contact_text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
}
.map_wrapper {
    flex:  1;
    align-self: center;
    overflow: hidden; /* обрезает лишнее */
    height:300px;
}
iframe{
    align-self: center;
    width: 100%;
    height: 100%;
    object-fit: cover; /* сохраняет пропорции */
    display: block;
}
.contact_title {
    font-size: 2.4rem;
    letter-spacing: -0.01em;
    font-weight: 700;
    color: #282828;
    
}
.contact_text_span {
    font-weight: 500;
    font-size: 1.4rem;
    line-height:200%;
    color: #5BA3BB;
}

.contact_link {
    display: inline-flex;
    align-items: center;
    gap: 14px;

}
.footer .container{
background-color: #5BA3BB;
height: 100px;
}
.footer_text {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    color: #fff;
    text-align: center;
}
/* footer */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.burger span {
    width: 28px;
    height: 3px;
    background: #5BA3BB;
    transition: 0.3s;
}

@media screen and (max-width: 1300px){

 .main_text_title {
    font-size: 4.0rem;
}
}

@media screen and (max-width: 1084px){
     .container{
    
    padding: 20px 40px;
}
    .main_text_title {
    font-size: 3.2rem;
    max-width: 100%; 
}

.main_text{
    gap: 50px;
}
.main_text_item_title {
   font-weight: 400;
   font-size: 1.2rem;
   line-height: 1.2rem;
   letter-spacing: 0.02em;

}
.about_title {
    font-size: 3.2rem;

}
.about_subtitle {
    font-size: 1.4rem;
}
.about {
    margin-bottom: 80px;
}
.about_inner {
    gap: 40px;
     margin-bottom: 30px;
}
.service_title {
    font-size: 3.2rem;
}
.team_title {
    font-size: 3.2rem;
}
}
@media screen and (max-width: 900px){
    .container{
    
    padding: 10px 20px;
}

.main_text_item  a {
    font-size: 1.0rem;  
}
.about_inner {
    gap: 20px;
     margin-bottom: 20px;
}
.team .container{
    margin-bottom: 50px;
    gap: 8%;   
}
.team_img_wrapper {
    flex-basis: 40%;

}
.team_text{
    flex-basis: 60%;
}
.map_wrapper{
    display:none
}
}
@media screen and (max-width: 768px){

.main .container{
    flex-direction: column;
    align-items: center;
}
.about_title {
    font-size: 2.4rem;

}
.about {
    margin-bottom: 50px;
}
.about_subtitle {
    font-size: 1.2rem;
}
.about_btns {
    gap: 30px;
}
.btn {
    max-width: 140px;
    padding: 10px 20px;
    font-size: 1.0rem;
    letter-spacing: 0.08em;

}
.about_text {

    gap: 10px;
}
 .main .container{
    margin-bottom: 50px;
 }
.services .container {
    margin-bottom: 50px;
 }

.service_title{
    font-size: 2.4rem;
}
.service_item_title{
    font-size: 1.4rem;
}
.service_item_subtitle{
    font-size: 1.1rem;  
    line-height: 150%;        
}
.team_title{
    font-size: 2.4rem;
}
.team_subtitle{
    font-size: 1.1rem;
    line-height:150%;  
}
.team_img_wrapper {
    flex-basis: 45%;
}
.team_text{
    flex-basis: 55%;
}
.team .container{
    
    gap: 5%;   
}
.contact_title{
    font-size: 2.4rem;
}
.nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 66%; /* 2/3 экрана */
        height: 100vh;
        background: #fff;
        padding: 80px 30px;
        display: flex;
        flex-direction: column;
        gap: 30px;
        transition: 0.4s ease;
        z-index: 1000;
}
 .nav.active {
        right: 0;
    }
.burger {
        display: flex;
    }
    /* animation burger */
.burger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);

}
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(245, 240, 240, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 900;
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
}
body.no-scroll {
    overflow: hidden;
}
}

@media screen and (max-width: 480px){

.text_logo{
    font-size: 1.4rem;
}
/* .nav {
display: none;
} */
.about_title {
    font-size: 1.8rem;

}
.about_subtitle {
    font-size: 1.0rem;
}
.about_inner {
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.service_title{
    text-align: center;
}
.service_item_title{
    font-size: 1.2rem;
}
.service_item_subtitle{
    font-size: 1.0rem;          
}
.services .container{
    flex-direction: column;
    align-items: center;
}
.team .container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    height: auto;
}
.team_img_wrapper {
    flex-basis: 60%;
}
.team_text{
    flex-basis: 40%;
}
.contact_title{
    font-size: 1.8rem;
}
.contact_text_span{
    font-size: 1.0rem;
}
.contact_icon img{
    width: 20px;
    height: auto;}

 }