body .hero {
  background:
    radial-gradient(circle at top right, rgba(126,169,192,0.18), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent 38%);
}

.hero__eyebrow,
.hero__headline,
.hero__lead {
  opacity: 0;
  transform: translateY(28px);
  animation: heroEntrance 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__eyebrow { animation-delay: 0.15s; }
.hero__headline { animation-delay: 0.35s; }
.hero__lead { animation-delay: 0.6s; }

@keyframes heroEntrance {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main {
  padding: 3rem 0 5rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

/* Sekcja formularza */
.contact-form-section {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.form-header {
  margin-bottom: 2rem;
}

.form-header .eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.form-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.form-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.6;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
}

.label-icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

.required {
  color: #f87171;
  font-weight: 700;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--white);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(246, 211, 7, 0.1);
  background: rgba(10, 10, 11, 0.8);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

select.form-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%23f6d307' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.25rem;
  padding-right: 2.75rem;
}

select.form-input option {
  background: var(--bg);
  color: var(--white);
}

/* Checkbox */
.checkbox-group {
  margin-top: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
  margin-top: 2px;
}

.checkbox-custom::after {
  content: "";
  width: 10px;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23111'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--accent);
  border-color: var(--accent);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  opacity: 1;
  transform: scale(1);
}

.checkbox-label input[type="checkbox"]:focus + .checkbox-custom {
  box-shadow: 0 0 0 3px rgba(246, 211, 7, 0.1);
}

.checkbox-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.checkbox-text a {
  color: var(--accent);
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.checkbox-text a:hover {
  opacity: 0.8;
}

/* Error states */
.form-group.has-error .form-input,
.form-group.has-error .form-textarea {
  border-color: #f87171;
}

.form-error {
  font-size: 0.85rem;
  color: #f87171;
  display: none;
  margin-top: -0.25rem;
}

.form-group.has-error .form-error {
  display: block;
}

/* Button */
.btn--large {
  padding: 1.125rem 2rem;
  font-size: 1rem;
}

.btn-icon {
  width: 18px;
  height: 18px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Form status */
.form-status {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  font-size: 0.95rem;
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.form-status.show {
  display: flex;
}

.form-status.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.form-status.error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #f87171;
}

.form-status::before {
  content: "";
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.form-status.success::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2322c55e'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: contain;
}

.form-status.error::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23f87171'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: contain;
}

/* Sekcja informacji kontaktowych */
.contact-info-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: calc(var(--nav-height-offset) + 1rem);
}

.info-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.info-card:hover {
  border-color: rgba(246, 211, 7, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.info-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.info-icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
  flex-shrink: 0;
}

.info-header h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.info-company {
  font-weight: 600;
  color: var(--white);
}

.info-details {
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.info-details p {
  margin: 0.25rem 0;
}

.info-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.info-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  font-size: 0.9rem;
}

.info-link svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

.info-link:hover {
  color: var(--accent);
  transform: translateX(3px);
}

.info-note {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  margin-top: 0.5rem;
}

.contact-person {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-person:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.person-name {
  font-weight: 600;
  color: var(--white);
  margin: 0;
}

.person-role {
  font-size: 0.85rem;
  color: var(--accent);
  margin: 0 0 0.5rem 0;
}

.team-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 1rem 1.5rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.team-link svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.team-link:hover {
  border-color: var(--accent);
  background: rgba(246, 211, 7, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-info-section {
    position: static;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .contact-form-section {
    padding: 1.75rem;
  }

  .form-header h2 {
    font-size: 1.5rem;
  }

  .info-card {
    padding: 1.5rem;
  }

  .form-row {
    gap: var(--space-md);
  }

  .contact-form {
    gap: var(--space-md);
  }

  .btn--large {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .contact-form-section {
    padding: 1.5rem;
  }

  .form-header h2 {
    font-size: 1.4rem;
  }

  .info-card {
    padding: 1.25rem;
  }

  .info-header h3 {
    font-size: 1rem;
  }

  .info-content {
    font-size: 0.9rem;
  }

  .form-input,
  .form-textarea {
    padding: 0.75rem 0.875rem;
    font-size: 0.9rem;
  }

  .checkbox-text {
    font-size: 0.85rem;
  }

  .team-link {
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .contact-form-section {
    padding: 1.5rem;
  }

  .form-header h2 {
    font-size: 1.35rem;
  }

  .form-header p {
    font-size: 0.9rem;
  }

  .info-card {
    padding: 1.25rem;
  }

  .btn--large {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
  }

  .info-header h3 {
    font-size: 1rem;
  }

  .form-label {
    font-size: 0.85rem;
  }

  .form-input,
  .form-textarea {
    padding: 0.75rem 0.875rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 375px) {
  .contact-form-section {
    padding: 1rem;
  }

  .form-header h2 {
    font-size: 1.2rem;
  }

  .form-header p {
    font-size: 0.85rem;
  }

  .info-card {
    padding: 1rem;
  }

  .info-header h3 {
    font-size: 0.95rem;
  }

  .form-label {
    font-size: 0.8rem;
  }

  .form-input,
  .form-textarea {
    padding: 0.65rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 8px;
  }

  .btn--large {
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
  }

  .checkbox-text {
    font-size: 0.8rem;
  }

  .info-link {
    font-size: 0.85rem;
  }

  .team-link {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow,
  .hero__headline,
  .hero__lead {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
}
