:root {
    --main-bg-color: white;
    --main-bg-center-color: #ECEEF3;
    --dark-background-color: #151543;
    --light-background-color: #C0C7D6;
  
    --header-text-color: #151543;
    --dark-text-color: black;
    --light-text-color: #E5E5E5;
    --title-text-color: #3D4A7A;
  
    --dark-line-color: #151543;
    --light-line-color: #E5E5E5;
}

body {
    font-family: "Inter", sans-serif;   
    font-optical-sizing: auto;
    font-style: normal;
    margin: 0;
    background: var(--main-bg-color);
}

header{
    background: var(--main-bg-color);
    padding-bottom: 1rem;
    position: relative;
    display: flex;
    overflow: hidden;
}

.logo {
    background-color: var(--main-bg-color);
    position: relative;
    width: 28.125rem;
    height: 11.245rem; 
    padding-top: 0.62rem;
    padding-left: 6.875rem;
    flex-shrink: 0;
}

.stickyright {
    display: inline-flex;
    position: absolute;
    right: 0;
    top: 0;
}

.header-contacts {
    font-size: 1.25rem;
    color: var(--header-text-color);
    padding-top: 3.45em;
    padding-right: 5.5em;
    flex-shrink: 0;
}

.header-contacts a{
    text-decoration: none;
    color: inherit;
}

.header-empty-div {
    margin-left: -4rem;
}

.header-empty-div::before {
    content: "";
    position: absolute;
    top: 9.6875rem;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--dark-line-color);
    border-radius: 50%;
    z-index: 2;
}

.header-empty-div::after {
    content: "";
    position: absolute;
    display: block;
    top: 9.6875rem;
    width: 100%;
    height: 1px;
    background-color: var(--dark-line-color);
    transform: translateY(-50%);
    z-index: 1;
}

main {
    position: relative;
    margin: 0;
    min-height: 100vh;
}

main::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 88%;
    height: 100%;
    z-index: -1;
    background-color: var(--main-bg-center-color);
}

.services-section {
    display: flex;
    position: relative;
    gap: 0.625rem;
    font-size: 2.25rem;
    margin-left: 3.125rem;
    margin-right: 3.125rem;
}

.services {
    background-color: var(--dark-background-color);
    border-top-left-radius: 2.25rem;
    color: var(--light-text-color);
    width: 54.875rem;
    flex-grow: 1;
    flex-shrink: 3;
}

.services span {
    position: relative;
    margin-left: 3.125rem;
    margin-top: 3.125rem;
    font-weight: bold;
    display: block;
    line-height: 1.2;
}

.services ul {
    list-style: none;
    font-size: 1.125rem;
    margin-top: 2.375rem;
}

.services li {
    position: relative;
    padding-left: 0.6875rem;
    margin-top: 1em;
}

.services li:last-child {
    margin-bottom: 2.6em;
}

.services li::before {
    content: "";
    position: absolute;
    left: -0.3125rem;
    top: 50%;
    width: 35px;
    height: 1px;
    background-color: var(--light-line-color);
    transform: translate(-100%, -50%);
    z-index: 1;
}

.services li::after {
    content: "";
    position: absolute;
    left: -0.3125rem;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--light-line-color);
    border-radius: 50%;
    z-index: 2;
}   

.services-img {
    border-bottom-right-radius: 2.25rem;
    position: relative;
    overflow: hidden;
    flex-basis: 28.25rem;
    flex-shrink: 1;
    background-color: var(--dark-background-color);
    background-image: url(/images/index/engineer.jpg);
    background-size: cover;
    background-repeat: no-repeat;
}

.tittle-wrap {
    position: relative;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 88%; 
}

.tittle {
    position: relative;
    font-weight: bold;
    font-size: 2.5rem;
    color: var(--title-text-color);
    margin-top: 1.25em;
    padding-left: 0.375em;
    padding-bottom: 0.375em;
    display: inline-block;
}

.tittle::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 21.1em;
    height: 1px;
    background-color: var(--dark-line-color);
    transform: translate(-50%, -50%);
    z-index: 1;
}

.tittle::after {
    content: "";
    position: absolute;
    left: 10.55em;
    bottom: -6px;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--dark-line-color);
    border-radius: 50%;
    z-index: 2;
}

.advantages-fl {
    display: flex;
    margin-top: 2.125rem;
    margin-left: 3.125rem;
    margin-right: 3.125rem;
    gap: 0.625rem;
}

.advantages-fl .itm1 {
    flex-grow: 2;
    flex-basis: 18.75em;
    background-color: var(--dark-background-color);
    color: var(--light-text-color);
    font-weight: bold;
    border-top-left-radius: 2.25rem;
    padding-top: 1.75em;
    padding-left: 1.25em;
}

.advantages-fl .itm2 {
    flex-grow: 4;
    flex-basis: 35.5em;
    background-color: var(--light-background-color);
    padding-top: 1.75em;
    padding-left: 1.25em;
    padding-bottom: 3.25em;
}

.advantages-fl .itm3 {
    flex-grow: 3;
    flex-basis: 28.25em;
    background-color: var(--light-background-color);
    background-image: url(/images/index/switchboard-with-fuses.png);
    background-size: cover;
    background-repeat: no-repeat;
}

.advantages-sl {
    display: flex;
    margin-top: 0.625rem;
    margin-left: 3.125rem;
    margin-right: 3.125rem;
    gap: 0.625rem;
}

.advantages-sl .itm4 {
    flex-grow: 3;
    flex-basis: 28.25em;    
    background-color: var(--light-background-color);
    padding-top: 1.75em;
    padding-left: 1.25em;
}

.advantages-sl .itm5 {
    flex-grow: 2;
    flex-basis: 18.75em;
    background-color: var(--light-background-color);
    padding-top: 1.75em;
    padding-left: 1.25em;
    padding-bottom: 3.25em;
}

.advantages-sl .itm6 {
    flex-grow: 4;
    flex-basis: 35.5em;
    background-color: var(--light-background-color);
    border-bottom-right-radius: 2.25rem;
    padding-top: 1.75em;
    padding-left: 1.25em;
}

.projects {
    display: flex;
    margin-top: 2.125rem;
    margin-left: 3.125rem;
    margin-right: 3.125rem;
    margin-bottom: 3.125rem;
    gap: 2.5rem;
}

.projects .itm1,
.projects .itm2,
.projects .itm3 {
    flex-grow: 0;
    flex-basis: 16.25em;
    background-color: var(--light-background-color);
}

.projects .itm4 {
    flex-grow: 1;
    border-bottom-right-radius: 2.25rem;
    background-color: var(--dark-background-color);
    color: var(--light-text-color);
    /* height: 355px; */
    text-align: center;
}

.projects .itm4 a {
    font-size: 1.5rem;
    display: block;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    text-decoration: none;
    color: inherit;
}

.arrow-3 {
    color: var(--light-text-color);
    cursor: pointer;
    text-decoration: none;
    font-size: 18px;
    line-height: 18px; 
    display: inline-block; 
}
.arrow-3 .arrow-3-icon {
    position: relative;
    top: -1px;
    transition: transform 0.3s ease;
    vertical-align: middle;
}
.arrow-3 .arrow-3-iconcircle {
    transition: stroke-dashoffset .3s ease;
    stroke-dasharray: 95;
    stroke-dashoffset: 95;
}
.arrow-3:hover .arrow-3-icon {
    transform: translate3d(5px, 0, 0);
}
.arrow-3:hover .arrow-3-iconcircle {
    stroke-dashoffset: 0;
}

.formcontacts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-left: 3.125rem;
    margin-right: 3.125rem;
    padding-bottom: 3.125rem;
}

.formcontacts .form {
    color: var(--light-text-color);
    background-color: var(--dark-background-color);
    border-top-left-radius: 2.25rem;
    flex-basis: 40rem;
    flex-grow: 0;
    flex-shrink: 0;
    min-height: 23rem;
}
.formcontacts .form form {
    display: inline-block;
    position: relative;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.agreement {
    font-size: 0.6875rem;
    padding-top: 1.25rem;
    padding-bottom: 2.5rem;
}

.formcontacts .form .name {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    padding-bottom: 1.25em;
}

.formcontacts .form span,  
.formcontacts .form input
{
    display: block;
}

.formcontacts .form input {
    background-color: var(--dark-background-color);
    color: var(--light-text-color);
    border: 0px;
    border-bottom: 1px solid;
    border-radius: 0%;
}

.formcontacts .form input::placeholder {
    color: var(--light-text-color);
}

.formcontacts .form input:focus {
    box-shadow: none;
}

.formcontacts .contacts {
    flex-basis: 43rem;
    flex-grow: 1;
    background-color: var(--light-background-color);
    border-bottom-right-radius: 2.25rem;
    padding-left: 1.875em;
    padding-top: 2.5em;
    padding-left: 2.1875em;
    padding-bottom: 3.5em;
}

.contacts span {
    display: block;
    padding-bottom: 0.2em;
}

.contacts a {
    color: inherit;
    text-decoration: none;
}

.contacts .address {
    padding-top: 1.25em;
}

.contacts .osno {
    padding-top: 1.25em;
}

@media (min-width: 661px) and (max-width: 1180px) {
    html {
        font-size: 14px;
    }
}

@media (min-width: 561px) and (max-width: 660px) {
    html {
        font-size: 12px;
    }
}

@media (min-width: 461px) and (max-width: 560px) {
    html {
        font-size: 10px;
    }
}

@media (max-width: 460px) {
    html {
        font-size: 8px;
    }
}

@media (max-width: 1050px) {
    .services-img {
        display: none;
    }
    
    .advantages-fl .itm3 {
        display: none;
    }

    .projects .itm3 {
        display: none;
    }

    .services {
        border-bottom-right-radius: 2.25rem;
    }
}

@media (max-width: 680px) {
    .logo {
        display: none;
    }

    .header-empty-div::before,
    .header-empty-div::after {
        display: none;
    }
}

@media (max-width: 780px) {
    .projects .itm2 {
        display: none;
    }
}