:root {
    --green: #32CD32;
    --dark-green: #008000;
    --black: #0a0a0a;
    --gray: #1a1a1a;
    --white: #ffffff;
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  

  body {
    font-family: 'Poppins', sans-serif;
    background: var(--black); /*background: transparent;*/
    color: var(--white);
    scroll-behavior: smooth;
  }
  
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)),
    url('./img/fon.png') center / cover no-repeat;
    z-index: -1;
  }

  .container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    }
  
  .header {
    position: fixed;
    width: 100%;
    height: 80px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0.9;
  }
  
  .section-title {
    font-size: 32px;
    margin-bottom: 60px;
    text-align: center;
  }

  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0; /* ← важно */
    height: 100%;
  }
  
  .logo {
    height: 75px;
  }
  
  .logo-block {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .logo-text h1 {
    font-size: 24px;
    line-height: 1.1;
    color: #000;
  }
  
  .logo-text p {
    font-size: 11px;
    line-height: 1.1;
    color: var(--dark-green);
  }
  
  .logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .nav {
    display: flex;
    gap: 20px;
  }
  
  .nav a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
  }
  
  .nav.active {
    display: flex;
  }

  .burger {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
  }
  
  .hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
   
  .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.05);
    z-index: 2;
  }
  
  .hero .container {
      position: relative;
      z-index: 3;
  }
  
  .hero h1 {
    font-size: 60px;
  }

  .hero h2 {
    font-size: 40px;
  }
  
  .hero p {
    margin: 20px 0;
  }
  
  .btn {
    background: var(--green);
    padding: 14px 28px;
    color: #000;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
  }
  
  .fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s;
  }
  
  .fade-in.active {
    opacity: 1;
    transform: none;
  }
  
  .section {
    padding: 60px 0 40px;
    background: transparent;
  }
  
  .section h2 {
    margin-bottom: 25px;
  }

  .grid {
    display: grid;
    gap: 35px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  @media (max-width: 900px) {
    .benefits-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 500px) {
    .benefits-grid {
      grid-template-columns: 1fr;
    }
  }

  /* обертка */
.portfolio-wrapper {
  position: relative;
}

/* лента */
.portfolio-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.portfolio-scroll::-webkit-scrollbar {
  display: none;
}

/* карточка — ровно 4 в ряд */
.portfolio-item {
  flex: 0 0 calc(25% - 15px); /* 4 фото */
  height: 260px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-color: #222;
  scroll-snap-align: start;
}

@media(max-width:768px){
  .portfolio-item {
    flex: 0 0 80%;
  }
}

/* стрелки */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
}

.arrow.left { left: -20px; }
.arrow.right { right: -20px; }

.glass {
    background: rgba(192,192,192,0.1);
    backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: 14px;
  }
  

.card {
  transition: .3s;
}

.card:hover {
  transform: translateY(-10px);
}
  
.trust {
    background: rgba(26, 26, 26, 0.8);
    text-align: center;
    padding: 20px 0;
}
  
  .trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
    gap: 10px;
  }
  
  /*form {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }*/
  
  .contact-inner {
    width: 50%;
    margin: 0 auto;
    text-align: center;
    max-width: 800px;
    position: relative;
  }

  .contact-inner form {
    width: 100%;
    display: flex;
    gap: 15px;
    align-items: center;
  }

  @media (max-width: 768px) {
    .contact-inner {
      width: 100%;
    }
  }

  @media (max-width: 768px) {
    .contact-inner form {
      flex-direction: column;
    }
  
    .form-msg {
      position: static;
    }
  }

  .contact-inner input {
    flex: 1;
    min-width: 0; /* важно для корректного сжатия */
    height: 48px;
  }
  
  .contact-inner button {
    white-space: nowrap;
    padding: 14px 24px;
    height: 48px;
  }

  input, button {
    padding: 14px;
    border-radius: 6px;
    border: none;
  }

  .form-msg {
    position: absolute;
    bottom: -25px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 14px;
  }
  
  button {
    background: var(--green);
    font-weight: bold;
  }
  
  .contacts-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
  }

  .contacts-row.social a img {
    width: 40px;
    height: 40px;
    transition: 0.3s;
  }
  
  .contacts-row.social a:hover img {
    transform: scale(1.15);
  }

  .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
  }
  
  .contact-item img {
    width: 28px;
    height: 28px;
  }

  .contacts-row.email span {
    font-weight: 600;
  }

  @media (max-width: 768px) {
    .contacts-row {
      gap: 20px;
    }
  
    .contact-item {
      justify-content: center;
      width: 100%;
    }
  }

  .footer {
    padding: 40px 0;
    text-align: center;
  }
  
  .lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    display: none;
    justify-content: center;
    align-items: center;
  }
  
  .lightbox img {
    max-width: 90%;
  }
  
  .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    cursor: pointer;
  }
  
  /* animation */
  .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: .8s;
  }
  
  .reveal.active {
    opacity: 1;
    transform: none;
  }
  
  @media(max-width:768px){
    .nav {
      display: none;
      position: absolute;
      right: 20px;
      top: 70px;
      background: #fff;
      flex-direction: column;
      padding: 15px;
    }
  
    .burger {
      display: block;
    }
  
    .hero h2 {
      font-size: 28px;
    }
  }