.eaw-team {
  --eaw-accent: #3c3f6a;
  --eaw-columns: 3;
  display: grid;
  grid-template-columns: repeat(var(--eaw-columns), minmax(0, 1fr));
  gap: 24px;
}

.eaw-team--single { max-width: 520px; }
.eaw-random__item { display: none; }
.eaw-random__item.is-active { display: block; animation: eaw-fade-in .35s ease both; }
.eaw-random__item .eaw-card { height: 100%; }

@keyframes eaw-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.eaw-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #e6e7e8;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(20, 28, 25, .08);
}
.eaw-card__link {
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: inherit;
}
.eaw-card__link:focus-visible { outline: 3px solid #8589cb; outline-offset: -4px; }
.eaw-card--linked { cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.eaw-card--linked:hover { transform: translateY(-3px); box-shadow: 0 14px 38px rgba(20, 28, 25, .14); }

.eaw-card__media {
  position: relative;
  aspect-ratio: 576 / 864;
  overflow: hidden;
  background: #ececf2;
}
.eaw-card__media--empty::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #ececf2, #d4d5e1);
}
.eaw-card__image { width: 100%; height: 100%; object-fit: cover; display: block; }
.eaw-card__overlay {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 110px 22px 24px;
  background: linear-gradient(
    to bottom,
    rgba(60, 63, 106, 0) 0%,
    rgba(60, 63, 106, .18) 25%,
    rgba(60, 63, 106, .68) 58%,
    rgba(60, 63, 106, .94) 82%,
    #3c3f6a 100%
  );
  color: #fff;
}
.eaw-card__body { position: relative; z-index: 3; padding: 16px 22px 20px; }
.eaw-card__name { margin: 0 0 7px; color: #fff; font-size: 1.35rem; line-height: 1.25; text-shadow: 0 1px 10px rgba(15, 16, 35, .2); }
.eaw-card__summary { color: #fff; font-size: .95rem; line-height: 1.5; }
.eaw-card__summary p:first-child { margin-top: 0; }
.eaw-card__summary p:last-child { margin-bottom: 0; }

.eaw-button {
  width: 100%;
  padding: 12px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--eaw-accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.eaw-button:hover { filter: brightness(.92); }
.eaw-button:focus-visible, .eaw-dialog input:focus-visible { outline: 3px solid #70cbaa; outline-offset: 2px; }

.eaw-profile {
  --eaw-accent: #3c3f6a;
  display: grid;
  grid-template-columns: minmax(280px, 38%) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding: clamp(24px, 4vw, 56px);
  border: 1px solid #e4e5eb;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff 0%, #f8f8fb 100%);
  box-shadow: 0 18px 55px rgba(31, 32, 62, .09);
}
.eaw-profile__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 576 / 864;
  border-radius: 12px;
  background: #ececf2;
  box-shadow: 0 14px 35px rgba(31, 32, 62, .16);
}
.eaw-profile__media--empty::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #ececf2, #d4d5e1);
}
.eaw-profile__image { display: block; width: 100%; height: 100%; object-fit: cover; }
.eaw-profile__content { padding: clamp(4px, 1.5vw, 18px) 0; }
.eaw-profile__area {
  display: inline-block;
  margin: 0 0 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(60, 63, 106, .1);
  color: #3c3f6a;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}
.eaw-profile__name {
  margin: 0;
  color: #24263f;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.eaw-profile__oab { margin: 12px 0 0; color: #6a6c7c; font-weight: 600; }
.eaw-profile__intro {
  margin: clamp(24px, 3vw, 38px) 0;
  padding: 4px 0 4px 20px;
  border-left: 4px solid #3c3f6a;
  color: #34364c;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.65;
}
.eaw-profile__intro p { margin: 0; }
.eaw-profile__description { color: #555767; line-height: 1.75; }
.eaw-profile__description > :first-child { margin-top: 0; }
.eaw-profile__description > :last-child { margin-bottom: 0; }
.eaw-profile__contact {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(28px, 4vw, 46px);
  padding-top: 24px;
  border-top: 1px solid #dfe0e7;
}
.eaw-profile__phone { display: grid; gap: 4px; }
.eaw-profile__phone span { color: #777987; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.eaw-profile__phone a { color: #292b48; font-size: 1.05rem; font-weight: 700; text-decoration: none; }
.eaw-profile__phone a:hover { text-decoration: underline; }
.eaw-profile__button { width: auto; min-width: 220px; }

.eaw-dialog {
  --eaw-accent: #3c3f6a;
  width: min(92vw, 460px);
  padding: 30px;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .28);
}
.eaw-dialog::backdrop { background: rgba(10, 18, 15, .68); }
.eaw-dialog h3 { margin: 0 30px 6px 0; }
.eaw-dialog__close { position: absolute; top: 10px; right: 14px; border: 0; background: transparent; font-size: 28px; cursor: pointer; }
.eaw-form { display: grid; gap: 15px; margin-top: 20px; }
.eaw-form label { display: grid; gap: 6px; font-weight: 600; }
.eaw-form input { width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px solid #b8bfbc; border-radius: 7px; font: inherit; }

@media (max-width: 900px) { .eaw-team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .eaw-profile { grid-template-columns: 1fr; }
  .eaw-profile__media { width: min(100%, 420px); margin-inline: auto; }
  .eaw-profile__contact { align-items: stretch; flex-direction: column; }
  .eaw-profile__button { width: 100%; }
}
@media (max-width: 580px) { .eaw-team { grid-template-columns: 1fr; } .eaw-dialog { padding: 24px; } }
@media (prefers-reduced-motion: reduce) { .eaw-random__item.is-active { animation: none; } }
