.contact-main { padding-block: clamp(6px, 1vw, 12px) clamp(40px, 5vw, 68px); background: var(--bg); }
.cat-hero { padding-bottom: clamp(18px, 2.4vw, 26px); }

.contact-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}

.contact-info .info-lead {
  font-size: .9rem; color: var(--muted); line-height: 1.7; margin-bottom: 24px;
}

.reach-list { display: flex; flex-direction: column; gap: 14px; margin: 0 0 24px; padding: 0; list-style: none; }
.reach-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); line-height: 1.6; }
.reach-list .micon { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 3px; color: var(--primary); }
.reach-list strong { display: block; color: var(--text); font-weight: 600; font-size: .94rem; margin-bottom: 2px; }
[data-theme="dark"] .reach-list .micon { color: var(--primary-light); }

.contact-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px;
  margin-bottom: 16px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.contact-card .c-ic {
  flex-shrink: 0;
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--tint-purple);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.contact-card .c-ic .micon { width: 24px; height: 24px; }
.contact-card .c-label { font-size: .8rem; color: var(--muted); margin-bottom: 2px; }
.contact-card a.c-value, .contact-card .c-value {
  font-size: 1rem; font-weight: 600; color: var(--heading); word-break: break-word;
}
.contact-card a.c-value:hover { color: var(--primary); }

.contact-socials { margin-top: 22px; }
.contact-socials h2 { font-size: .95rem; font-weight: 600; margin-bottom: 12px; }
.contact-socials .socials { display: flex; gap: 12px; }
.contact-socials .socials a {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition);
}

.contact-socials .socials a:hover { color: #fff; background: var(--primary); border-color: var(--primary); transform: translateY(-2px); }
.contact-socials .socials .micon { width: 20px; height: 20px; }

.contact-form-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(24px, 3vw, 34px);
}
.contact-form-wrap h2 { font-size: 1.3rem; margin-bottom: 6px; }
.contact-form-wrap .form-sub { color: var(--muted); font-size: .92rem; margin-bottom: 24px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: .86rem; font-weight: 600; color: var(--heading); margin-bottom: 7px;
}
.field label .req { color: var(--primary); }
.field input, .field textarea {
  width: 100%;
  font-family: inherit; font-size: .95rem; color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .8; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, .15);
}
.field textarea { resize: vertical; min-height: 140px; }

.field input.is-invalid, .field textarea.is-invalid { border-color: #E5484D; }
.field input.is-invalid:focus, .field textarea.is-invalid:focus {
  border-color: #E5484D;
  box-shadow: 0 0 0 3px rgba(229, 72, 77, .15);
}
.field-error {
  margin: 6px 0 0;
  font-size: .82rem;
  font-weight: 500;
  color: #E5484D;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.contact-form .btn-primary { margin-top: 4px; }
.contact-form .btn-primary[disabled] { opacity: .65; cursor: progress; }
.contact-form .form-note { margin-top: 14px; font-size: .82rem; color: var(--muted); }

.form-error {
  display: flex;
  align-items: flex-start; gap: 12px;
  background: var(--tint-red);
  border: 1px solid #E5484D;
  border-radius: var(--r-md);
  padding: 16px 18px;
  margin-bottom: 20px;
  color: #C62A2F;
}
.form-error .micon { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; }
.form-error strong { display: block; font-weight: 600; margin-bottom: 2px; }
.form-error p { font-size: .88rem; margin: 0; }
[data-theme="dark"] .form-error { color: #FCA5A5; }

.ty-wrap { background: var(--bg-hero); padding: 70px 0 90px; }
.ty-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 46px 38px 40px;
}
.ty-tick {
  display: inline-grid;
  place-items: center;
  width: 68px; height: 68px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--tint-green);
  color: var(--green-dark);
}
.ty-tick .micon { width: 32px; height: 32px; }
.ty-card h1 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); color: var(--heading); margin: 0 0 10px; }
.ty-lead { font-size: 1.02rem; font-weight: 600; color: var(--heading); margin: 0 0 8px; }
.ty-sub { color: var(--muted); font-size: .94rem; line-height: 1.7; margin: 0 auto; max-width: 460px; }

.ty-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 30px 0 28px;
  text-align: left;
}
.ty-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 15px 16px;
}
.ty-step .c-ic {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  background: var(--tint-purple);
  color: var(--primary);
}
.ty-step .c-ic .micon { width: 20px; height: 20px; }
.ty-step .c-label { font-size: .88rem; font-weight: 600; color: var(--heading); margin-bottom: 2px; }
.ty-step .c-value { font-size: .82rem; color: var(--muted); line-height: 1.5; }

.ty-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ty-card { padding: 34px 22px 30px; }
  .ty-steps { grid-template-columns: 1fr; }
  .ty-actions .btn { width: 100%; }
}
@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
}
