html {
  scroll-behavior: smooth;
}

body, * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    font-weight: 100;
    color: white;
}

body {
    color: white;
    background-color: #1F1F1F;
}

span {
    font-weight: bold;
}

h1 {
    font-size: 40px;
}

h2 {
    font-size: 50px;
    padding-bottom: 10vh;
}

h3 {
    font-size: 30px;
}

h4 {
    font-size: 25px;
    font-weight: 700;
}

h5 {
    font-size: 20px;
    font-weight: 600;
}

section {
    scroll-margin-top: 100px;
    background-color: #1F1F1F;
    width: 85%;
    margin: 0 auto;
}

/* Header Styles */

.header-wrapper {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #1F1F1F;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.header {
    display: flex;
    flex-direction: row;
    text-align: center;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    padding: 50px 0;
    font-size: 1.5rem;
    z-index: 1000;
    background-color: #1F1F1F;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.menu-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

.nav-list {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 50px;
    list-style: none;
    padding: 0;
    font-weight: bold;
}

a {
    text-decoration: none;
    color: white;

    &:hover {
        color: #007BFF;
        text-decoration: underline;
        transition: all 0.2s ease;
    }
}

/* Home Styles */
.home {
    background-image: url(./assets/AC-compressor-goes-off.png.webp);
    width: 100%;
    height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-position: top;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #1F1F1F; /* Фоновый цвет на случай, если изображение не загрузится */
}

.home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Полупрозрачный черный фон */
}

.home-content {
    width: 85%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 50px;
    color: #fff;
    font-weight: 200;
    filter: brightness(1);
}

.whatsapp {
    font-size: 30px;
    border-radius: 10px;
    padding: 10px 20px;
    color: #fff;
    background-color: #25D366;
    border: none;
    cursor: pointer;
}

.whatsapp:hover {
    background-color: #128C7E;
    transition: all 0.2s ease;
}

.title-paragraph {
    font-size: 30px;
}

.home-about {
    border-left: #fff solid 3px;
    padding-left: 35px;
    width: 60%;
}

/* Services Styles */

.services {
    padding-top: 20vh;
}

.services-types {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: start;
    padding-top: 50px;
    gap: 100px;
}

.service-type-title {
    text-align: center;
    font-size: 2.2rem;
}

.service-list {
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding-top: 50px;
    flex-wrap: wrap;
    gap: 20px;
}

.service-item {
    display: flex;
    flex-direction: column;
    padding: 20px 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #303030;
    gap: 20px;
    max-width: 30%;
}

.service-icon {
    width: 100%;
    height: 100%;
}

.service-item-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-title {
    font-size: 20px;
    font-weight: 600;
    padding-bottom: 10px;
    text-align: center;
}

.service-description {
    font-size: 18px;
    line-height: 1.5;
}

/* advantages styles */

.advantages-section {
    padding-top: 10vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
}

.advantages-list {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: baseline;
    gap: 50px;
    flex-wrap: wrap;
}

.advantage-item {
    text-align: center;
    gap: 20px;
    width: 250px;
    height: 25vh;
    padding: 30px 30px;
    background-color: #303030;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.advantage-item-icon {
    width: 100px;
    height: 100px;
    border-radius: 100px;
    background-color: #fff;
}

.advantage-item-title {
    font-size: 23px;
    font-weight: 600;
}


/* About Section Styles */

.about-section {
    padding: 15vh 0;
}

.about-container {
  width: 70%;
  margin: 0 auto;
  text-align: left;
  background-color: #f9fafb; /* Светло-серый фон для мягкости */
  padding: 50px 60px;
  scroll-margin-top: 80px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Легкая тень */
  border-radius: 12px; /* Скругленные углы */
  color: #222;
}

.about-section p {
  font-size: 18px;
  line-height: 1.75;
  color: #444;
}

/* Footer Styles */

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.footer-left {
  background-color: #3e3e3e;
  color: white;
  padding: 40px 60px;
  flex: 1 1 50%;
}

.footer-right {
  background-color: #f2f2f2;
  padding: 40px 60px;
  flex: 1 1 50%;
}

.footer-right > * {
    color: #222;
}

.footer-left h3,
.footer-right h3 {
  margin-top: 0;
  font-size: 22px;
}

.underline {
  width: 50px;
  height: 3px;
  background-color: white;
  margin: 10px 0 20px 0;
}

.footer-right .underline {
  background-color: #2c2c2c;
}

.footer-left p,
.footer-right p {
  margin: 6px 0;
  font-size: 16px;
  line-height: 1.5;
}

.paragraph > p.footer-right-text {
    color: #222
}

.footer-left a {
  color: white;
  text-decoration: none;
}

.footer-right a {
  color: #3b82f6;
  text-decoration: none;
}

.phone {
  font-weight: bold;
  font-size: 18px;
  margin-top: 10px;
}

.social-icons {
  margin-top: 15px;
}

.social-icons a {
  margin-right: 15px;
  font-size: 40px;
  background: -webkit-linear-gradient(#833AB4, #FD1D1D, #FDC830);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.social-icons a:hover {
    background: -webkit-linear-gradient(#b55bf1, #ff5a5a, #fdd461);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-bottom {
  background-color: #303030;
  text-align: center;
  padding: 15px;
  font-size: 14px;
}

/* Burger Menu Styles */

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1100;
    gap: 5px;
}

.burger-menu.burger-open {
    gap: 10px;
}

.burger-bar {
    width: 28px;
    height: 4px;
    background-color: white;
    border-radius: 2px;
    transition: 0.3s;
}

.burger-bar-top.active {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-bar-middle.active {
    display: none;
}

.burger-bar-bottom.active {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Show burger and hide nav-list on mobile */
@media (max-width: 1200px) {
    .burger-menu {
        display: flex;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        right: 0;
        background-color: #1F1F1F;
        z-index: 1000;
    }

    .home-about {
        width: 100%;
    }

    .menu-open {
        display: flex;
        width: 35%;
        padding: 20px 0;
    }
}

@media (max-width: 1200px) {
    .header, .footer-main, section {
        width: 90%;
    }
    .header {
        padding: 40px 0;
        font-size: 1.3rem;
        gap: 30px;
    }
    .advantages-list {
        gap: 30px;
    }
    .service-item {
        max-width: 45%;
    }
    .about-container {
        width: 100%;
        padding: 40px 30px;
    }
}

@media (max-width: 900px) {
    .header {
        padding: 30px 0;
        font-size: 1.2rem;
        gap: 20px;
    }
    .nav-list {
        gap: 30px;
    }
    .home-content {
        width: 90%;
    }
    .advantages-list {
        gap: 25px;
    }
    .advantage-item {
        max-width: 220px;
        height: auto;
        padding: 20px 15px;
        font-size: 16px;
    }
    .services-types {
        gap: 50px;
    }
    .service-list {
        gap: 20px;
    }
    .service-item {
        max-width: 100%;
        margin: 0 auto;
        gap: 20px;
        padding: 30px 20px;
    }
    .footer-main {
        flex-direction: column;
        gap: 30px;
        width: 95%;
    }
    .footer-description, .footer-links-list {
        width: 100%;
    }
}

@media (max-width: 600px) {
    h2 { font-size: 32px; }
    h3 { font-size: 20px; }
    h4 { font-size: 18px; }
    .header {
        font-size: 1rem;
        padding: 15px 10px;
    }
    .home-content {
        width: 98%;
    }
    .title-paragraph {
        font-size: 18px;
    }
    .home-about {
        padding-left: 10px;
        max-width: 100%;
    }
    .whatsapp {
        font-size: 24px;
        padding: 8px 16px;
    }
    .advantages-section {
        margin-top: 5vh;
        margin-bottom: 5vh;
    }
    .workers {
        gap: 20px;
    }
    .worker-item {
        padding: 15px 5px 10px 5px;
        min-width: 90vw;
        max-width: 100vw;
    }
    .worker-photo {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }
    .worker-name {
        font-size: 16px;
    }
    .worker-role {
        font-size: 12px;
    }
    .worker-bio {
        font-size: 12px;
    }
    .footer {
        padding: 20px 0;
    }
    .footer-main {
        width: 100%;
        gap: 10px;
    }
    .footer-description, .footer-links-list {
        font-size: 14px;
        gap: 10px;
    }
    .footer-link {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
  .footer-columns {
    flex-direction: column;
  }

  .footer-left,
  .footer-right {
    flex: 1 1 100%;
    padding: 30px 20px;
  }
  
  .footer-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: start;
    gap: 15px;
  }

  .footer-content .social-icons {
    display: flex;
    justify-content: center;
  }

  .footer-content div {
    width: 50%;
}

.contacts {
    display: flex;
    flex-direction: column;
    text-align: center;
  }
}