html {
    box-sizing: border-box;
    font-size: 16px;
}
*, *:before, *:after {
    box-sizing: inherit;
}
body, h1, h2, h3, h4, h5, h6, p, ol, ul {
    margin: 0;
    padding: 0;
    font-weight: normal;
}
ol, ul {
    list-style: none;
}
img {
    max-width: 100%;
    height: auto;
}
body {
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #f4f4f4;
}
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-image {
    cursor: pointer;
    width: 150px;
    height: auto;
}
.dropdown-menu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    display: flex;
    flex-direction: column;
    background-color: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    z-index: 1000;
    padding: 10px 20px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}
.dropdown-menu.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}
.dropdown-menu a {
    text-decoration: none;
    color: black;
    font-size: 14px;
    padding: 5px 0;
    transition: 0.3s ease;
}
.dropdown-menu a:hover {
    color: #c80000;
}
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 500;
    transition: opacity 0.3s ease;
}
.overlay.show {
    display: block;
    opacity: 1;
}
.overlay.hidden {
    opacity: 0;
    transition: opacity 0.3s ease;
}
@font-face {
    font-family: 'Magistral-Medium';
    src: url("../fonts/Magistral-Medium.woff") format('woff');
}
@font-face {
    font-family: 'Magistral';
    src: url("../fonts/Magistral-Book.woff") format('woff');
}
@font-face {
    font-family: 'Magistral-Light';
    src: url("../fonts/Magistral-Light.woff2") format('woff');
}
.stub-header{
    font-family: 'Magistral-Medium', sans-serif;
    font-weight: bold;
    color: black;
    text-align: center;
    height: 127px;
    line-height: 127px;
}
.simple-footer{
    width: 100%;
    height: 85px;
    display: flex;
    align-items: center;
    margin-top: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: space-between;
    padding-right: 9%;
    padding-left: 9%;
}
.simple-footer-icons a{
    margin-left: 15px;
    text-decoration: none;
    transition: transform 0.3s ease;
}
.simple-footer-icons :hover{
    opacity: 50%;
    filter: sepia(100%) hue-rotate(180deg) saturate(200%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0);
    color: #E41115;
}
.title-section{
    font-family: 'Magistral-Medium', sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 48px;
    text-align: center;
    margin-top: 70px;
    margin-bottom: 50px;
}
.services-description{
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 25px;
    text-align: center;
}
body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
}
.services {
    padding: 40px;
    text-align: center;
    max-width: 1350px;
    justify-items: center;
    margin-bottom: 4rem;
}
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.service-grid-row{
    padding-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.service-grid-penultimate{
    padding-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}
.service-item {
    padding: 20px;
    text-align: center;
}
.service-item img {
    margin-bottom: 10px;
}
.service-item p {
    font-size: 14px;
    color: #333;
}
.service-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 50px;
    padding: 20px;
}
.service-items {
    display: flex;
    gap: 40px;
}
.service-item {
    text-align: center;
    max-width: 300px;
    gap: 5px;
    display: inline-grid;
    align-content: space-between;
    justify-content: center;
}
.service-item img {
    width: 150px;
    height: auto;
}
.service-item h3 {
    font-size: 20px;
    margin-top: 10px;
    font-weight: bold;
}
.service-item p {
    font-size: 14px;
}
/**/
.left-half{
    width: 50%;
    display: flex;
    justify-content: right;
    padding-right: 10px; 
}
.first-row{
    display: flex;
    justify-content: space-between;
    max-width: 1320px;
}
.qwe{
    display: flex;
    width: 100%;
    justify-items: center;
    align-items: center;
}
.general-container{
    display: flex;
    justify-content: center;
}
h1{
    font-size: 40px;
    font-weight: 600;
    line-height: 49px;
    text-align: center;
}
#last, #sub-last{
    grid-template-columns: repeat(3, auto);
    justify-content: center;
}
.for-reverse, .main-grid, .left-half{
    display: grid;    
    justify-content: center;
}
@media screen and (max-width: 1200px) {
    #last, #sub-last, .service-grid-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .left-half{
        width: 100%;
    }
    .first-row{
        flex-direction: column-reverse;
    }
    #sub-last{
        grid-row-start: 2;
        grid-column-start: 1;
    }
    .for-reverse{
        display: grid;
        justify-content: center;
    }
    .services-description{
        margin: 10px 140px;
    }
}
@media screen and (max-width: 768px) {
    #last, #sub-last, .service-grid-row {
        grid-template-columns: repeat(1, 1fr);
    }
    .service-grid-row {
        gap: 0;
    }
    .services-description{
        font-size: 14px;
        font-weight: 400;
        line-height: 17.07px;
        margin: 10px 15px;
    }
    .title-section h1{
        font-size: 20px;
        font-weight: 500;
        line-height: 24px;
    }
}
@media screen and (max-width: 600px) {
    .services {
        padding: 40px 0;
    }
}
