.hevkad-team-page {
  --hk-accent: #5B7A9F;
  --hk-accent-dark: #4F6F93;
  --hk-accent-soft: #F4F7FA;
  --hk-text: #1E293B;
  --hk-muted: #64748B;
  --hk-border: #E2E8F0;
  --hk-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
  --hk-shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.045);
  --hevkad-layout-max: 1440px;
  --hevkad-layout-pad: 32px;
  background: #FFFFFF;
  color: var(--hk-text);
  font-family: inherit;
  line-height: 1.6;
}

.hevkad-team-page * {
  box-sizing: border-box;
}

.hevkad-team-page a {
  color: inherit;
  text-decoration: none;
}

.hk-container {
  width: min(100%, var(--hevkad-layout-max));
  margin: 0 auto;
  padding-left: var(--hevkad-layout-pad);
  padding-right: var(--hevkad-layout-pad);
}

.hk-breadcrumbs {
  padding: 22px 0 0;
  color: var(--hk-muted);
  font-size: 14px;
  line-height: 1.5;
}

.hk-breadcrumbs a {
  color: var(--hk-accent-dark);
  font-weight: 700;
}

.hk-hero {
  padding: 54px 0 58px;
  border-bottom: 1px solid var(--hk-border);
  background: #fff;
}

.hk-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 44px;
  align-items: center;
}

.hk-kicker {
  width: fit-content;
  margin: 0 0 14px;
  color: var(--hk-accent-dark);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hk-title {
  max-width: 980px;
  margin: 0;
  color: var(--hk-text);
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.045em;
  font-weight: 400;
}

.hk-lead {
  max-width: 890px;
  margin: 22px 0 0;
  color: var(--hk-muted);
  font-size: 19px;
  line-height: 1.75;
  font-weight: 400;
}

.hk-note {
  max-width: 900px;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--hk-accent-soft);
  border: 1px solid var(--hk-border);
  color: var(--hk-muted);
  font-size: 15.5px;
  line-height: 1.6;
}

.hk-note strong {
  color: var(--hk-text);
  font-weight: 700;
}

.hk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 15px 26px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-size: 17px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.hk-btn:hover {
  transform: translateY(-1px);
}

.hk-btn--primary {
  background: var(--hk-accent);
  color: #fff !important;
  box-shadow: 0 16px 34px rgba(91, 122, 159, 0.22);
}

.hk-btn--secondary {
  background: #fff;
  color: var(--hk-accent-dark) !important;
  border-color: var(--hk-border);
}

.hk-hero-card {
  display: grid;
  gap: 14px;
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--hk-border);
  box-shadow: var(--hk-shadow);
}

.hk-hero-row {
  min-height: 94px;
  padding: 22px 24px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: var(--hk-shadow-soft);
}

.hk-hero-row strong {
  display: block;
  margin-bottom: 7px;
  color: var(--hk-text);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
}

.hk-hero-row small {
  display: block;
  color: var(--hk-muted);
  font-size: 15px;
  line-height: 1.5;
}

.hk-toc {
  padding: 26px 0;
  border-bottom: 1px solid var(--hk-border);
  background: #fff;
}

.hk-toc__box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px;
  border-radius: 20px;
  background: var(--hk-accent-soft);
  border: 1px solid var(--hk-border);
}

.hk-toc__box a {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--hk-border);
  color: var(--hk-accent-dark);
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
}

.hk-section {
  padding: 74px 0;
  background: #fff;
  border-bottom: 1px solid var(--hk-border);
}

.hk-section__head {
  max-width: 940px;
  margin-bottom: 34px;
}

.hk-h2 {
  margin: 0;
  color: var(--hk-text);
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 400;
}

.hk-text {
  margin: 16px 0 0;
  color: var(--hk-muted);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
}

.hk-team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.hk-team-card {
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--hk-border);
  box-shadow: var(--hk-shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.hk-team-photo {
  aspect-ratio: 6 / 7;
  height: auto;
  margin: 18px 18px 0;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(91, 122, 159, 0.10), rgba(244, 247, 250, 0.95)),
    #F4F7FA;
  border: 1px dashed rgba(91, 122, 159, 0.32);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--hk-accent-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hk-team-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center top;
  border-radius: 22px;
}

.hk-team-photo img.hk-team-photo--rabbi {
  object-position: center top;
}

.hk-team-photo:has(img) {
  padding: 0;
  border-style: solid;
  border-color: var(--hk-border);
  background: #ffffff;
  overflow: hidden;
  display: block;
}

.hk-team-photo:has(img) span {
  display: none;
}

.hk-team-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hk-team-meta {
  min-height: 194px;
}

.hk-team-copy {
  flex: 1;
}

.hk-team-badge {
  width: fit-content;
  margin: 0 0 12px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--hk-accent-soft);
  color: var(--hk-accent-dark);
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hk-team-card h3 {
  margin: 0 0 10px;
  color: var(--hk-text);
  font-size: 23px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.018em;
}

.hk-team-role,
.hk-team-bio,
.hk-team-details,
.hk-team-details li {
  margin: 0;
  color: var(--hk-muted);
  font-size: 16px;
  line-height: 1.62;
  font-weight: 400;
}

.hk-team-details {
  padding-left: 0;
  list-style: none;
}

.hk-team-details li + li {
  margin-top: 0;
}

.hk-team-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
  color: var(--hk-muted);
  font-size: 14px;
  line-height: 1.45;
}

.hk-team-footer a {
  width: fit-content;
  color: var(--hk-accent-dark);
  font-size: 15px;
  font-weight: 900;
}

.hk-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hk-card {
  padding: 30px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--hk-border);
  box-shadow: var(--hk-shadow);
}

.hk-card h3 {
  margin: 0 0 14px;
  color: var(--hk-text);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.hk-card p {
  margin: 0;
  color: var(--hk-muted);
  font-size: 16.5px;
  line-height: 1.65;
  font-weight: 400;
}

.hk-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.82fr);
  gap: 28px;
  align-items: stretch;
}

.hk-photo-big {
  min-height: 420px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(91, 122, 159, 0.10), rgba(244, 247, 250, 0.95)),
    #F4F7FA;
  border: 1px dashed rgba(91, 122, 159, 0.32);
  box-shadow: var(--hk-shadow-soft);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--hk-accent-dark);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 34px;
}

.hk-photo-big img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
  object-fit: cover;
  object-position: center center;
  border-radius: 28px;
}

.hk-photo-big:has(img) {
  display: block;
  padding: 0;
  border-style: solid;
  overflow: hidden;
}

.hk-photo-big:has(img) span {
  display: none;
}

.hk-faq {
  display: grid;
  gap: 12px;
}

.hk-faq details {
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--hk-border);
  box-shadow: var(--hk-shadow-soft);
}

.hk-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 22px;
  color: var(--hk-text);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
}

.hk-faq summary::-webkit-details-marker {
  display: none;
}

.hk-faq details[open] summary {
  border-bottom: 1px solid rgba(226, 232, 240, 0.90);
}

.hk-faq p {
  margin: 0;
  padding: 18px 22px 22px;
  color: var(--hk-muted);
  font-size: 16px;
  line-height: 1.66;
}

.hk-final {
  padding: 74px 0;
  background: #fff;
}

.hk-final__box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 34px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--hk-border);
  box-shadow: var(--hk-shadow);
}

.hk-final h2 {
  margin: 0 0 10px;
  color: var(--hk-text);
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 400;
}

.hk-final p {
  max-width: 880px;
  margin: 0;
  color: var(--hk-muted);
  font-size: 17px;
  line-height: 1.65;
}

@media (max-width: 1180px) {
  .hevkad-team-page {
    --hevkad-layout-max: 1340px;
    --hevkad-layout-pad: 15px;
  }
}

@media (max-width: 1080px) {
  .hk-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hk-hero__grid,
  .hk-split,
  .hk-final__box {
    grid-template-columns: 1fr;
  }

  .hk-grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .hk-section,
  .hk-final {
    padding: 54px 0;
  }

  .hk-photo-big {
    min-height: 300px;
  }
}

@media (max-width: 640px) {
  .hk-hero {
    padding: 34px 0 42px;
  }

  .hk-title {
    font-size: clamp(34px, 12vw, 46px);
  }

  .hk-lead,
  .hk-text,
  .hk-final p {
    font-size: 16px;
  }

  .hk-actions {
    display: grid;
  }

  .hk-btn {
    width: 100%;
  }

  .hk-team-grid,
  .hk-grid-3 {
    grid-template-columns: 1fr;
  }

  .hk-team-card,
  .hk-card,
  .hk-hero-card,
  .hk-final__box {
    border-radius: 22px;
  }

  .hk-card,
  .hk-hero-card,
  .hk-final__box {
    padding: 22px;
  }

  .hk-team-photo {
    aspect-ratio: 6 / 7;
    height: auto;
    margin: 14px 14px 0;
    border-radius: 18px;
  }

      .hk-team-body {
        padding: 20px;
      }

      .hk-team-meta {
        min-height: 176px;
      }

  .hk-photo-big {
    min-height: 240px;
    border-radius: 22px;
  }
}
