html {
    scroll-behavior: smooth;
}
body{
    width: 100%;
    background-color: #ffffff;
        margin: 0;
        color: #6c7279;
        -webkit-font-smoothing: antialiased;
}

footer{
    display: flex;
    justify-content: center;
    padding: 10px;
    background-color: #6c7279;
    color: #000;
}

*,
*:before,
*:after {
        box-sizing: border-box;
}

.relative {
        position: relative;
}

.container {
        width: 100%;
        max-width: 1400px;
        margin: 0 auto;
}

h1, h2, h3, h4, h5, h6 {
        margin: 0;
}

[id] {
    scroll-margin-top: 50px; /* Отступ от верха в 100px */
}

 /* roof */
 
.header {
        background: url(roof2.jpg);
        width: 100%;
        position: fixed;
        z-index: 999;
}

.header_inner {
        display: flex;
        justify-content: space-between;
        padding: 15px;
        align-items: center;
}

.nav {
        display: flex;
}

.nav_link {
        font-family: 'Montserrat Alternates', sans-serif;
    font-size: 20px;
        color: black;
        text-decoration: none;
        opacity: 0.7;
        transition: opacity .2s linear;
        transition: font-size .2s linear;
        margin-left: 50px;
}

.nav_link:hover {
        opacity: 1;
        font-size: 23px;
}

/* intro */

.intro {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-top: 104px;
        height: 860px;
        background: #ffa500;
        background-image: url(intro.jpg);
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.intro_inner {
        max-width: 1100px;
        width: 100%;
        margin: 0 auto;
        text-align: center;
}

.intro_title {
        font-family: 'Comfortaa', cursive;
        color: black;
        font-size: 50px;
        margin: 0 0 0 200px;
        line-height: 1;
        font-weight: 900;
}

.intro_subtitle {
        color: #262626;
        margin: 0 0 0 200px;
        padding-top: 50px;
        font-family: 'Comfortaa', cursive;
        line-height: 1.5;
}

/* button */

.btn {
        width: 100%;
        justify-content: center;
        flex-direction: column;
        background-color: #f2f2f2;
}

.btn_inner {
        max-width: 1100px;
        width: 100%;
        margin: 0 auto;
        text-align: center;
        cursor: pointer;
}

.btn_arrow {
        height: 90px;
        width: 100px;
        text-align: center;
}

.btn:hover {
        background-color: #cccccc;
        transition: background-color .3s linear;
}

/* advantages */

.advantages {
        display: flex;
        margin: 210px 0;
        flex-wrap: wrap;
        flex-direction: row;
}

.adv_item {
        width: 20%;
        text-align: center;
        padding: 0 30px;
        flex-direction: column;
}

.adv_icon {
        margin: auto;
        height: 120px;
        width: 120px;
}

.adv_icon_inner {
        transition: 0.4s
}

.adv_icon_inner:hover {
        transform: scale(1.2);
}

.adv_title {
        font-family: 'Marmelad', sans-serif;
        font-size: 25px;
        color: black;
        margin-bottom: 10px;
        line-height: 1;
}

.adv_text {
        font-family: 'Oswald', sans-serif;
        font-size: 19px;
        color: #2d3033;
        font-weight: 500;
        line-height: 1;
}

/* services */

.services {
        display: flex;
        justify-content: center;
        height: 800px;
        background-color: white;
        text-align: center;
        flex-wrap: wrap;
        flex-direction: row;
}

.services_title {
        font-family: 'Comfortaa', cursive;
        font-size: 50px;
        color: #1a1a1a;
        padding-bottom: 50px;
        text-align: center;
}

.services_item {
        flex-direction: column;
        background-color: white;
        width: 32%;
        text-align: center;
        margin: 20px 10px 10px 0;
        box-shadow: 4px 4px 5px rgba(255, 165, 0, 0.6);
        position: relative;
}

.back {
        background-color: white;
        padding-top: 30px;
        height: 100%;
}

.services_icon {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  font-size: 50px;
  color: #000;
  line-height: 150px;
  text-align: center;
  background: rgba(255, 165, 0, 1);
  margin: auto;
}

.services_title_2 {
        padding: 30px 15px 0 15px;
        font-family: 'Marmelad', sans-serif;
        font-size: 30px;
        color: black;
        font-weight: 500;
        margin: auto;
        z-index: 1;
}

.services_content {
        display: flex;
        position: absolute;
        flex-direction: column;
        top: 0;
        left: 0;
        z-index: 2;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 165, 0, 0.95);
        justify-content: center;
        text-align: center;
        margin: auto;
        opacity: 0;
        transition: opacity 0.4s linear;
}

.services_content:hover {
        opacity: 1;
}

.services_text {
        text-align: center;
        font-size: 40px;
        font-family: 'Oswald', sans-serif;
        color:  #262626;
        padding: 25px 25px;
        font-weight: 400;
}

/* partners */

.partners_title {
        font-family: 'Comfortaa', cursive;
        font-size: 50px;
        color: #1a1a1a;
        padding-bottom: 100px;
        text-align: center;
        margin-top: 150px;
}

.partners {
        margin: 150px 0;
        justify-content: center;
        flex-wrap: wrap;
        flex-direction: row;
}

.partners_inner {
        display: flex;
        flex-wrap: wrap;
}

.partners_item {
        flex-direction: column;
        width: 20%;
        text-align: center;
        padding: 0 20px;
}

.partners_img {
        display: block;
        max-width: 100%;
        height: auto;
        transition: 0.3s;
}

.partners_img:hover {
        transform: scale(1.3);
}

/* reviews */

.reviews_title {
        font-family: 'Comfortaa', cursive;
        font-size: 50px;
        color: #1a1a1a;
        padding-bottom: 50px;
        text-align: center;
        margin-top: 50px;
}

.reviews {
        display: flex;
        justify-content: center;
        height: 750px;
        background-color: white;
        text-align: center;
        flex-wrap: wrap;
        flex-direction: column;
        overflow: hidden;
}

.reviews_item {
        position: relative;
        width: 100%;
        height: 130px;
        display: flex;
        margin-left: auto;
        margin-right: auto;
        margin-top: 40px;
        flex-wrap: wrap;
        flex-direction: column;
}

.reviews_item_inner{
        width: 450px;
        height: 130px;
        display: flex;
        padding-top: 10px;
        z-index: 5;
        justify-content: center;
        margin: auto;
        transition: width 1s;
}

.reviews_item_color {
        border-radius: 20px;
        width: 450px;
        height: 130px;
        background: rgba(204, 133, 0, 1);
        margin-left: auto ;
        margin-right: auto;
        margin-top: -10px;
        display: flex;
        text-align: center;
        justify-content: center;
        transition: margin-left 1s, width .8s;
}

.rewiews_img {
        height: 100%;
        width: auto;
        max-width: 100%;
        padding-bottom: 5px;
        justify-content: center;
        margin: auto;
        flex-direction: column;
        display: flex;
}

.rewiews_text {
        justify-content: center;
        margin: auto;
        flex-direction: column;
        display: flex;
        text-align: center;
        font-size: 30px;
        padding-bottom: 15px;
        font-family: 'Oswald', sans-serif;
        line-height: 1;
        color: #333333;
        font-weight: 500;

}

.reviews_content {
        display: flex;
        position: absolute;
        flex-direction: column;
        color: #333333;
        opacity: 0;
        left: 50%;
        font-size: 0px;
        font-family: 'Oswald', sans-serif;
        border-radius: 20px;
        transition: width 1s, font-size 1s, margin-left 1s, overflow 1s;
        z-index: 4;
        width: 0;
        height: 130px;
        background-color: rgba(255, 165, 0, 0.95);
        justify-content: center;
        margin-right: auto;
        overflow: hidden;
}

.reviews_content:hover {
        z-index: 600;
}

.reviews_item_inner:hover .reviews_item_color {
        opacity: 1;
        border-radius: 20px 0 0 20px;
        margin-left: 0;
        width: 300px;
}

.reviews_item_inner:hover { 
        width: 100%;
}

.reviews_item_inner:hover + .reviews_content{ 
        width: 100%;
        opacity: 1;
        padding-left: 300px;
        font-size: 25px;
        margin-left: -50%;
}

/* services */

.map{
    display: flex;
    justify-content: center;
    border-radius: 15px;
    padding: 15px;
}
.contacts_title{
    font-family: 'Comfortaa', cursive;
    font-size: 50px;
    color: #1a1a1a;
    padding-bottom: 30px;
    text-align: center;
    margin-top: 50px;
}   
.contacts{
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    color: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 10px;
    gap: 20px;
}
#adv{
    scroll-margin-top: 210px; /* Отступ от верха в 100px */
}
