* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1a1a2e;
  background: #fbfbfb;
  min-height: 100vh;
}

/* Hero */
.hero {
  display: grid;
  place-items: center;
  min-height: 100vh;
  gap: 2.5rem;
  padding: 2rem;
}

.logo {
  max-width: 620px;
  width: 100%;
  height: auto;
}

.btn-contact {
  padding: 0.85rem 2.8rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #fff;
  background: #1a1a2e;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-contact:hover {
  background: #2d2d4a;
  transform: translateY(-1px);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  z-index: 100;
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: #fff;
  border-radius: 14px;
  padding: 2.5rem;
  width: 100%;
  max-width: 520px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: #666;
  line-height: 1;
  transition: color 0.15s;
}

.modal-close:hover {
  color: #1a1a2e;
}

.modal h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.8rem;
  color: #1a1a2e;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .form-group {
  flex: 1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #555;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #1a1a2e;
  background: #fafafa;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1a1a2e;
  box-shadow: 0 0 0 3px rgba(26, 26, 46, 0.08);
}

.btn-send {
  padding: 0.85rem;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  background: #1a1a2e;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.5rem;
}

.btn-send:hover {
  background: #2d2d4a;
}

.form-status {
  text-align: center;
  font-size: 0.9rem;
  min-height: 1.4em;
}

.form-status.success {
  color: #16a34a;
}

.form-status.error {
  color: #dc2626;
}

/* Responsive */
@media (max-width: 560px) {
  .hero {
    gap: 2rem;
    padding: 1.5rem;
  }

  .form-row {
    flex-direction: column;
    gap: 1.2rem;
  }

  .modal {
    padding: 1.5rem;
    border-radius: 12px;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal h2 {
    font-size: 1.3rem;
    margin-bottom: 1.4rem;
  }

  .form-group input,
  .form-group textarea {
    font-size: 16px; /* prevents iOS zoom on focus */
  }

  .logo {
    max-width: 85vw;
  }

  .btn-contact {
    padding: 0.9rem 2.5rem;
    font-size: 1rem;
  }
}
