
/* general */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Helvetica, sans-serif;
}
  
html {
    scroll-behavior: smooth;
}

/* navigation */
#navbar {
    position: fixed;
    margin-top: 0.5rem;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
    transition: top 0.3s;
}
  
#nav-container {
    background-color: var(--color-primary);
    border-radius: 24px;
    padding: 8px 16px;
    display: flex;
    justify-content: end;
    align-items: center;
    max-width: fit-content;
    gap: 3rem;
}
  
.logo img {
    height: 164px;
    width: auto;
}

  
#hamburger {
    width: 28px;
    height: 21px;
    position: relative;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
    cursor: pointer;
    display:none;
}
  
#hamburger span {
    display: block;
    position: absolute;
    height: 4px;
    width: 100%;
    background: #ffffff;
    border-radius: 4px;
    opacity: 1;
    left: 0;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .25s ease-in-out;
    -moz-transition: .25s ease-in-out;
    -o-transition: .25s ease-in-out;
    transition: .25s ease-in-out;
}
  
#hamburger span:nth-child(1) {
    top: 0px;
    -webkit-transform-origin: left center;
    -moz-transform-origin: left center;
    -o-transform-origin: left center;
    transform-origin: left center;
}
  
#hamburger span:nth-child(2) {
    top: 8.5px;
    -webkit-transform-origin: left center;
    -moz-transform-origin: left center;
    -o-transform-origin: left center;
    transform-origin: left center;
}
  
#hamburger span:nth-child(3) {
    top: 17px;
    -webkit-transform-origin: left center;
    -moz-transform-origin: left center;
    -o-transform-origin: left center;
    transform-origin: left center;
}
  
#hamburger.open span:nth-child(1) {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
    top: -1px;
    left: 4px;
}
  
#hamburger.open span:nth-child(2) {
    width: 0%;
    opacity: 0;
}
  
#hamburger.open span:nth-child(3) {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
    top: 18px;
    left: 4px;
}
  
#nav-menu {
    display: flex;
    list-style: none;
    border-radius: 24px;
}
  
#nav-menu li {
    margin: 0px 8px;
}
  
#nav-menu li a {
    font-size: 0.8rem;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}
  
#nav-menu li a:hover {
    color: #ccc;
}
  
/* navigation responsive */
@media (max-width: 768px) {
    #navbar {
        left: 1rem;
        right: 1rem;
        width: auto;
    }
  
    #nav-container {
        width: 100%;
        max-width: none;
        position: relative;
        padding: 8px 16px;
    }
  
    .logo {
        display: block;
    }
  
    #hamburger {
        display: block;
    }
  
    #nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-primary);
        border-radius: 32px;
        margin-top: 1rem;
        transition: all 0.3s ease;
    }
  
    #nav-menu.open {
        display: flex;
    }
  
    #nav-menu li {
        margin: 16px 0;
        text-align: center;
    }
}

.section {
    height: fit-content;
    background-color: #ffffff;
    padding: 60px 0;
}

.wrap {
    max-width: 1200px;
    margin: 0px auto;
    padding: 0 16px;
}

.hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 32px;
}

.hero-text {
    flex: 0 0 calc(50% - 16px);
    max-width: calc (50% - 16px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #000000;
}

.image-button {
    flex: 0 0 calc(50% - 16px);
    max-width: calc (50% - 16px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #000000;
}

.hero-image {
    flex: 0 0 calc(50% - 16px);
    max-width: calc (50% - 16px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: end;
    border-radius: 24px;
    margin-bottom: 24px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 24px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.hero-title-2 {
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: 16px;
}

.hero-subtitle {
    line-height: 1.125;
    margin-bottom: 32px;
    padding: 16px;
    border-radius: 24px;
    width: fit-content;
    background-color: var(--color-secondary);
}

.hero-subtitle p {
    font-size: 1rem;
    font-weight: 100;
    margin-bottom: 8px;
}

.hero-subtitle small {
    font-size: 0.75rem;
    padding: 0;
}

.hero-cta {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--color-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 32px;
    font-size: 1.5rem;
    font-weight: 400;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.hero-cta:hover {
    background-color: var(--color-primary-light);
}

@media (max-width: 768px) {
    
    .section {
        width: 100%;
        padding: 32px 0;
    }

    .wrap {
        margin: 56px 0 auto;
        padding: 0 16px;
    }

    .hero {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .hero-text {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0;
    }

    .hero-image {
        flex: 0 0 100%;
        max-width: 100%;
        height: auto;
        padding: 0;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-title-2 {
        font-size: 1.25rem;
    }

    .hero-subtitle {
        width: 100%;
    }

    .hero-subtitle p {
        font-size: 1rem;
    }

    .hero-subtitle small {
        font-size: 0.75rem;
    }

    .hero-cta {
        font-size: 1.25rem;
        padding: 12px 24px;
        align-self: flex-start;
        width: 100%;
        text-align: center
    }

}

/* этапы */
.timeline-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px;
}

.timeline-title {
    font-size: 2rem;
    font-weight: 700;
    color: rgb(0, 0, 0);
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 48px auto;

}

.container {
    padding: 10px 50px;
    position: relative;
    width: 50%;
}

.text-box {
    padding: 16px 16px;
    background: var(--color-secondary);
    position: relative;
    border-radius: 24px;
    font-size: 16px;
}

.text-box-ghost {
    padding: 16px 16px;
    position: relative;
    border-radius: 24px;
    border-style: dashed;
    border-color: var(--color-primary);
    color: rgb(16, 37, 95);
    font-size: 16px;
}

.left {
    left:0;
}

.right {
    left:50%;
}

.container img {
    position: absolute;
    width: 40px;
    right: -20px;
    top: 32px;
    z-index: 10;
}

.right img {
    left: -20px;
}

.timeline::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 100%;
    background: var(--color-primary);
    top: 0;
    left: 50%;
    margin-left: -3px;
    z-index: -1;
}

.text-box h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.text-box p {
    font-size: 1rem;
    font-weight: 100;;
    line-height: 1.4;
}

.left::before {
    content: "";
    height: 0;
    width: 0;
    position: absolute;
    top: 40px;
    z-index: 1;
    right: 40px;
    border: medium solid var(--color-secondary);
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--color-secondary);
}

.right::before {
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    top: 40px;
    z-index: 1;
    left: 40px;
    border: medium solid var(--color-secondary);
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--color-secondary) transparent transparent;
}

@media (max-width: 600px) {
    .timeline::after {
        left: 31px;
    }
    
    .container {
        width: 100%;
        padding-left: 80px;
        padding-right: 25px;
    }
    
    .container::before {
        left: 70px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent var (--color-secondary) transparent transparent;
    }
    
    .container img, .right img {
        left: 10px;
    }
    
    .right {
        left: 0%;
    }
}


/* комлектация */
.equipment-section {
    max-width: 1200px;
    margin: 56px auto;
    padding: 0 16px;
    overflow: visible;
  }
  
  .equipment-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: rgb(0, 0, 0);
  }
  
  .equipment-subtitle {
    font-size: 1.125rem;
    font-weight: 400;
    margin: 24px 0 32px;
    color: #333;
  }
  
  .card-scroll {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

  }
  
  .equipment-card {
    flex: 0 0 280px;
    background: rgb(236, 239, 241);
    border-radius: 24px;
    padding: 16px;
    scroll-snap-align: start;
    border: solid 0.4px var(--color-primary);
  }
  
  .equipment-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 12px;
  }
  
  .equipment-card h3 {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 8px;
  }
  
  .equipment-card p, .automation-card p {
    font-size: 0.95rem;
    font-weight:100;
    line-height: 1.4;
    color: var(--color-text);
  }
  
  @media (max-width: 600px) {
    .equipment-card {
      flex: 0 0 280px;
    }
  
    .equipment-title {
      font-size: 1.5rem;
    }
  
    .equipment-subtitle {
      font-size: 1rem;
    }
  }
  

.automation-section {
    padding: 56px 16px;
    background: #fff;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .section-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 40px;
  }
  
  .automation-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
  }
  
  .automation-card {
    background: var(--color-secondary);
    border-radius: 24px;
    padding: 24px;
    font-size: 16px;
    line-height: 1.6;
    display:inline;
    gap: 8px;
  }
  
  @media (min-width: 768px) {
    .automation-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (min-width: 1024px) {
    .automation-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }

.footer {
    background-color: rgb(16, 37, 95);
    color: white;
    padding: 3rem 1rem;
  }
  
  .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
  }
  
  .footer-contacts {
    flex: 1;
    min-width: 250px;
  }
  
  .footer-form {
    flex: 1;
    min-width: 250px;
  }
  
  .footer h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
  }
  
  .contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
  }
  
  .contact-item a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
  }
  
  .contact-item a:hover {
    opacity: 0.8;
  }
  
  .copyright {
    margin-top: 2rem;
    font-weight: 100;
  }
  
  .footer-form input,
  .footer-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: none;
    border-radius: 24px;
    font-family: inherit;
  }
  
  .footer-form textarea {
    height: 100px;
    resize: vertical;
  }
  
  .footer-form button {
    background-color: white;
    color: rgb(16, 37, 95);
    border: none;
    padding: 12px 24px;
    border-radius: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .footer-form button:hover {
    background-color: #ddd;
  }
  
  @media (max-width: 768px) {
    .footer-container {
      flex-direction: column;
    }
  }
  