/* Стили для страницы услуги */

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 10px;
}

.hero {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-text {
  flex: 1;
  min-width: 280px;
}

.hero-text h1 {
  font-size: 42px;
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero-text p {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 24px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-form {
  flex: 1;
  min-width: 300px;
}

.hero-form h3 {
  font-size: 24px;
  margin-bottom: 24px;
  color: var(--dark);
  text-align: center;
}

.hero-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--dark);
  text-align: left;
}

.hero-form input,
.hero-form select,
.hero-form textarea {
  padding: 14px 16px;
  border-radius: 10px;
  border: 2px solid rgba(15, 23, 36, 0.08);
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.3s ease;
}

.hero-form input:focus,
.hero-form select:focus,
.hero-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  transform: translateY(-1px);
}

.hero-form select {
  cursor: pointer;
}

.hero-form textarea {
  resize: none;
  min-height: 72px; /* 3 строки: 1.5 * 16px * 3 = 72px */
  max-height: 72px; /* 3 строки: 1.5 * 16px * 3 = 72px */
  line-height: 1.5;
}

.hero-form .btn {
  margin-top: 8px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 700;
}

section {
  margin-bottom: 64px;
}

section h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

#service-gallery-title {
  margin-bottom: 6px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.two-col img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.text-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.text-block {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.text-block p {
  margin-bottom: 16px;
}

.text-block p:last-child {
  margin-bottom: 0;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}

.card {
  flex: 1 1 250px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-6px);
}

.card h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.card p {
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
  }

  .hero-form {
    width: 100%;
    min-width: 400px;
    max-width: 600px;
    margin: 0 auto;
  }

  .hero-form h3 {
    font-size: 28px;
    text-align: left;
  }

  .hero-form .form-group {
    gap: 20px;
  }

  .hero-form input,
  .hero-form select,
  .hero-form textarea {
    padding: 16px 18px;
    font-size: 16px;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .text-block {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .hero-form {
    min-width: 280px;
    max-width: 100%;
    margin: 0 10px;
  }

  .hero-form h3 {
    font-size: 20px;
  }

  .hero-form input,
  .hero-form select,
  .hero-form textarea {
    padding: 12px 14px;
    font-size: 16px; /* Предотвращает зум на iOS */
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .hero-buttons .btn {
    min-width: auto;
    width: 100%;
  }

  .text-block {
    padding: 20px;
  }
}
