:root {
  --am-blue: #123a63;
  --am-blue-dark: #071d35;
  --am-blue-mid: #0f4c81;
  --am-ink: #253244;
  --am-muted: #5f6f82;
  --am-line: #dbe5ef;
  --am-soft: #f5f8fb;
  --am-white: #fff;
}

.am-directory {
  background: #eef4f9;
  border-bottom: 1px solid var(--am-line);
  padding: 46px 20px 52px;
}

.hero-form,
.contact-form-section,
.contact-section {
  display: none !important;
}

.footer,
.footer *,
.footer a,
.footer p,
.footer span,
.footer-logo,
.footer-phone,
.footer-email,
.footer-links a,
.footer-bottom p {
  color: #fff !important;
}

.am-directory-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.am-directory-header {
  text-align: center;
  margin-bottom: 26px;
}

.am-directory-kicker {
  color: var(--am-blue-mid);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.am-directory h2 {
  color: var(--am-ink);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
  margin: 0;
}

.am-directory p {
  color: var(--am-muted);
  font-size: 17px;
  max-width: 760px;
  margin: 0;
}

.am-directory-signup,
.am-mechanic-action,
.am-profile-action {
  background: linear-gradient(135deg, var(--am-blue), var(--am-blue-dark));
  color: white;
  border-radius: 10px;
  padding: 13px 18px;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.am-mechanic-list {
  display: grid;
  gap: 16px;
}

.am-mechanic-banner {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) minmax(170px, 0.35fr) auto;
  align-items: stretch;
  gap: 22px;
  background: var(--am-white);
  border: 1px solid var(--am-line);
  border-radius: 10px;
  min-height: 150px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(7, 29, 53, 0.06);
}

.am-mechanic-avatar,
.am-profile-avatar {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  background: linear-gradient(135deg, #d8e7f3, #eef4f9);
  color: var(--am-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  letter-spacing: 0.02em;
  overflow: hidden;
}

.am-mechanic-avatar {
  width: 128px;
  height: 128px;
  font-size: 32px;
}

.am-mechanic-avatar img,
.am-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.am-mechanic-name {
  color: var(--am-ink);
  font-size: 24px;
  font-weight: 850;
  line-height: 1.2;
}

.am-mechanic-meta {
  color: var(--am-muted);
  font-size: 15px;
  line-height: 1.5;
  margin-top: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.am-mechanic-detail-list {
  display: grid;
  gap: 4px;
  color: var(--am-muted);
  font-size: 15px;
  line-height: 1.35;
  margin-top: 12px;
}

.am-mechanic-detail-list strong {
  color: var(--am-ink);
}

.am-mechanic-phone {
  color: var(--am-blue);
  font-weight: 900;
  text-decoration: none;
  text-align: right;
  white-space: nowrap;
  align-self: center;
  font-size: 18px;
}

.am-mechanic-links {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-content: center;
  align-self: center;
  flex-wrap: wrap;
}

.am-mechanic-link {
  color: var(--am-blue);
  border: 1px solid var(--am-line);
  background: var(--am-soft);
  border-radius: 8px;
  padding: 10px 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}

.am-profile-shell {
  background: var(--am-soft);
  min-height: 100vh;
}

.am-profile-main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 60px 20px;
}

.am-profile-card {
  background: white;
  border: 1px solid var(--am-line);
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(7, 29, 53, 0.10);
  padding: 34px;
}

.am-profile-head {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--am-line);
  padding-bottom: 26px;
  margin-bottom: 26px;
}

.am-profile-avatar {
  width: 88px;
  height: 88px;
  font-size: 28px;
}

.am-profile-card h1 {
  font-size: clamp(32px, 5vw, 48px);
  color: var(--am-ink);
  line-height: 1.05;
  margin: 0 0 10px;
}

.am-profile-subtitle {
  color: var(--am-muted);
  font-size: 18px;
  margin: 0;
}

.am-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 26px 0;
}

.am-profile-fact {
  background: var(--am-soft);
  border: 1px solid var(--am-line);
  border-radius: 10px;
  padding: 16px;
}

.am-profile-fact strong {
  display: block;
  color: var(--am-ink);
  margin-bottom: 4px;
}

.am-profile-fact span,
.am-profile-fact a {
  color: var(--am-muted);
}

.am-profile-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.am-profile-section {
  border-top: 1px solid var(--am-line);
  margin-top: 28px;
  padding-top: 28px;
}

.am-profile-section h2 {
  color: var(--am-ink);
  font-size: 25px;
  margin: 0 0 14px;
}

.am-service-list,
.am-review-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.am-service-list li,
.am-review-card {
  background: var(--am-soft);
  border: 1px solid var(--am-line);
  border-radius: 10px;
  padding: 14px 16px;
}

.am-review-card strong {
  color: var(--am-ink);
  display: block;
  margin-bottom: 6px;
}

.am-review-card p {
  color: var(--am-muted);
  margin: 0;
}

@media (max-width: 820px) {
  .am-directory-header,
  .am-profile-head,
  .am-profile-grid {
    grid-template-columns: 1fr;
  }

  .am-directory-header {
    display: grid;
  }

  .am-mechanic-banner {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
  }

  .am-mechanic-avatar {
    width: 88px;
    height: 88px;
    font-size: 24px;
  }

  .am-mechanic-name {
    font-size: 20px;
  }

  .am-mechanic-phone,
  .am-mechanic-links {
    grid-column: 2;
    text-align: left;
    justify-content: flex-start;
  }
}
