@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding-top: 80px;
  background-color: #f4f6f9;
  color: #1a1a1a;
  scroll-behavior: smooth;
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  margin-top: 30px;
  position: relative;
  animation: fadeInUp 0.8s ease;
}

.service-card {
  background-color: #ffffff;
  border: 1.5px solid #0f1c2e;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.service-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  transition: filter 0.3s ease;
}

.service-card:hover img {
  filter: brightness(0.95);
}

.service-info {
  padding: 18px;
}

.service-info h3 {
  margin-bottom: 8px;
  color: #0f1c2e;
  font-size: 18px;
}

.service-info p {
  color: #444;
  font-size: 14px;
}

/* Модальное окно */
.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.4s ease;
}

.modal-content {
  background-color: #fff;
  margin: 100px auto;
  padding: 35px 25px;
  border-radius: 12px;
  max-width: 520px;
  text-align: center;
  position: relative;
  animation: scaleIn 0.3s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 26px;
  color: #333;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close:hover {
  color: #c00;
}

/* Анимации */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Контактный блок */
.contact-section {
  background-color: #0f1c2e;
  color: #ffffff;
  padding: 50px 20px;
  text-align: center;
  margin-top: 80px;
  border-top: 2px solid #ccc;
}

.contact-section h2 {
  font-size: 24px;
  margin-bottom: 14px;
}

.contact-section p {
  margin: 6px 0;
  font-size: 16px;
  color: #ddd;
}
.cta-button {
  background-color: #007acc;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 122, 204, 0.3);
}