body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background: #f4f4f4;
    color: #333;
}

header {
  position: relative;
  background: url('../images/header-bg.webp') center center / cover no-repeat;
  color: #fff;
  padding: 6em 1em;
  min-height: 60vh; /* делает хэдер больше, но не на весь экран */
  text-align: center;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

header::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* затемнение */
  z-index: 0;
  animation: fadeIn 1.5s ease-out forwards;
  opacity: 0;
}

.header-content {
  position: relative;
  z-index: 1;
}

header h1 {
  font-size: 3.5rem;
  margin: 0;
  animation: fadeSlideIn 1.2s ease-out forwards;
  opacity: 0;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 107, 0, 0.8),
               0 0 20px rgba(255, 107, 0, 0.6);
}

header p {
  font-size: 1.5rem;
  margin-top: 10px;
  animation: fadeSlideIn 1.6s ease-out forwards;
  opacity: 0;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 107, 0, 0.8),
               0 0 20px rgba(255, 107, 0, 0.6);
}

header .cta-button {
  position: relative;
  z-index: 1; /* поверх затемнения */
}

.header-btn {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 30px;
  background-color: #ff6b00;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 30px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.header-btn:hover {
  background-color: #e65c00;
  transform: scale(1.05);
}

/* Ключевые кадры для появления */
@keyframes fadeSlideIn {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0px);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  header {
    padding: 4em 1em;
  }

  header h1 {
    font-size: 2.2rem;
  }

  header p {
    font-size: 1rem;
  }

  .header-btn {
    font-size: 0.9rem;
    padding: 10px 20px;
  }

  .service-card {
    flex: 1 1 100%;
  }
}


/* Анимация появления затемнения */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

section {
    padding: 2em;
    background: #fff;
    margin-bottom: 1em;
}

h2 {
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.5em;
}

.services ul {
    list-style: none;
    padding: 0;
}

.services li {
    padding: 0.5em 0;
}

form input, form textarea {
    display: block;
    width: 100%;
    padding: 0.5em;
    margin-bottom: 1em;
}

form button {
    padding: 0.5em 1em;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
}

footer {
    background: #222;
    color: #ccc;
    text-align: center;
    padding: 1em;
}

.full-width {
    width: 100%;
    padding: 60px 5vw; /* немного отступов по бокам */
    background: #f7f9fc;
  }

.services-section {
    padding: 80px 20px;
    background-color: #f9f9f9;
  }
  
.services-section .section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
  }

  .services-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
  }

  .services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  .service-card {
    flex: 0 1 280px; /* фиксированная ширина карточек */
    background-color: #ffffff;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center; /* центрирование содержимого по горизонтали */
    justify-content: space-between;
    min-height: 340px;
    box-shadow: 0 0 0 transparent;
  }

  .service-card a {
    color: inherit;
    text-decoration: none;
    display: block;
  }
  
  .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
  
  .service-card img.service-icon {
    width: 80px;
    height: auto;
    margin-bottom: 20px;
  }
  
  .service-icon {
    width: 60px;
    margin-bottom: 15px;
  }

  html {
    scroll-behavior: smooth;
  }

  .page-header {
    position: relative;
    color: #fff;
    padding: 6em 1em;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  
  .page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* overlay */
    z-index: 0;
  }
  
  .page-header .header-content {
    position: relative;
    z-index: 1;
  }
  
  .software-header {
    background-image: url('../images/software-bg.webp');
  }
  
  .hosting-header {
    background-image: url('../images/hosting-bg.webp');
  }
  
  .consulting-header {
    background-image: url('../images/consulting-bg.webp');
  }
  
  .content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2em;
    background: #fff;
  }

  html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
  }
  
  main {
    flex: 1;
  }
  
  footer {
    background: #222;
    color: #ccc;
    text-align: center;
    padding: 1em;
  }

  .feature-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 2em auto;
    padding: 2em;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
  }
  
  .feature-text {
    flex: 1;
    min-width: 300px;
  }
  
  .feature-text h2 {
    font-size: 2rem;
    margin-bottom: 1em;
  }
  
  .feature-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5em;
  }
  
  .feature-image {
    flex: 1;
    text-align: center;
    min-width: 300px;
  }
  
  .feature-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
  }
  
  .back-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ff6b00;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }
  
  .back-btn:hover {
    background-color: #e65c00;
    transform: translateY(-2px);
  }
  
  @media (max-width: 768px) {
    .feature-block {
      flex-direction: column;
      text-align: center;
    }
  
    .feature-image,
    .feature-text {
      width: 100%;
    }
  }

  .form-alert {
    background-color: #dff0d8;
    color: #3c763d;
    padding: 15px;
    margin-top: 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
  }

  .contact {
    text-align: center;
  }
  
  .contact h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
  }
  
  .contact form {
    background: #ffffff;
    max-width: 600px;
    margin: 0 auto;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
  }
  
  .contact input,
  .contact textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 1.2em;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
  }
  
  .contact button {
    background-color: #ff6b00;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
  }
  
  .contact button:hover {
    background-color: #e65c00;
    transform: scale(1.05);
  }
  
  /* Modal styles */
  .modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.5s ease forwards;
  }
  
  .modal-content {
    background: #fff;
    margin: 15% auto;
    padding: 40px 30px;
    border-radius: 14px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: slideIn 0.4s ease-out forwards;
  }
  
  .modal-content p {
    font-size: 1.1rem;
    margin-bottom: 0;
    color: #333;
  }
  
  .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
  }
  
  .close-btn:hover {
    color: #ff6b00;
  }
  
  /* Анимации */
  @keyframes slideIn {
    from {
      transform: translateY(-30px);
      opacity: 0;
    }
    to {
      transform: translateY(0px);
      opacity: 1;
    }
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .about-section {
    background-color: #fff;
    padding: 80px 20px;
    text-align: center;
  }
  
  .about-container {
    max-width: 1000px;
    margin: 0 auto;
  }
  
  .about-container h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
  }
  
  .about-container p {
    font-size: 1.1rem;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .about-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
  }
  
  .stat-card {
    background-color: #f9f9f9;
    padding: 30px 20px;
    border-radius: 16px;
    width: 200px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
  
  .stat-card h3 {
    font-size: 2.5rem;
    color: #ff6b00;
    margin-bottom: 10px;
  }
  
  .stat-card p {
    font-size: 1rem;
    color: #555;
  }