/* =========================================================
   NIVA SURGERY
   MEDICAL TEAM PAGE
   ========================================================= */

:root {
  --team-primary: #159fa2;
  --team-primary-dark: #087b7e;

  --team-dark: #17383f;
  --team-text: #40545a;
  --team-muted: #7b8b90;

  --team-bg: #f6fafb;
  --team-white: #ffffff;

  --team-border: #e3edef;

  --team-radius: 18px;

  --team-shadow:
    0 16px 40px rgba(23, 56, 63, 0.07);
}


/* =========================================================
   RESET
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--team-bg);
  color: var(--team-text);

  font-family:
    Inter,
    Arial,
    Helvetica,
    sans-serif;

  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}


/* =========================================================
   MAIN
   ========================================================= */

.niva-medical-team {
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}


/* =========================================================
   INTRO
   ========================================================= */

.niva-medical-intro {
  padding: 58px 0 46px;

  background:
    linear-gradient(
      135deg,
      #f5fbfc 0%,
      #ffffff 58%,
      #f5fafb 100%
    );

  border-bottom: 1px solid var(--team-border);
}


.niva-medical-intro-inner {
  width: min(1180px, calc(100% - 48px));

  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 40px;
}


.niva-medical-intro-copy {
  max-width: 720px;
}


.niva-medical-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-bottom: 14px;

  color: var(--team-primary);

  font-size: 11px;
  font-weight: 800;

  letter-spacing: 1.2px;
  text-transform: uppercase;
}


.niva-medical-eyebrow i {
  font-size: 13px;
}


.niva-medical-intro h1 {
  margin: 0;

  color: var(--team-dark);

  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.08;

  letter-spacing: -1.5px;
}


.niva-medical-intro-copy p {
  max-width: 650px;

  margin: 16px 0 0;

  color: var(--team-muted);

  font-size: 15px;
  line-height: 1.75;
}


/* =========================================================
   INTRO BADGE
   ========================================================= */

.niva-medical-intro-badge {
  min-width: 255px;

  padding: 17px 20px;

  display: flex;
  align-items: center;
  gap: 13px;

  background: rgba(255, 255, 255, 0.85);

  border: 1px solid var(--team-border);
  border-radius: 14px;

  box-shadow:
    0 12px 30px rgba(23, 56, 63, 0.05);
}


.niva-medical-badge-icon {
  width: 42px;
  height: 42px;

  flex: 0 0 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  background: #e8f8f8;

  color: var(--team-primary);

  font-size: 17px;
}


.niva-medical-intro-badge strong {
  display: block;

  color: var(--team-dark);

  font-size: 13px;
}


.niva-medical-intro-badge span {
  display: block;

  margin-top: 4px;

  color: var(--team-muted);

  font-size: 11px;
}


/* =========================================================
   SPECIALTY BLOCK
   ========================================================= */

.niva-specialty-block {
  width: min(1180px, calc(100% - 48px));

  margin: 0 auto;

  padding: 42px 0;

  border-bottom: 1px solid var(--team-border);
}


.niva-specialty-block:last-of-type {
  border-bottom: 0;
}


/* =========================================================
   SPECIALTY HEADING
   ========================================================= */

.niva-specialty-heading {
  margin-bottom: 22px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 25px;
}


.niva-specialty-heading > div {
  display: flex;
  align-items: center;
  gap: 14px;
}


.niva-specialty-number {
  width: 42px;
  height: 42px;

  flex: 0 0 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  background: #e9f7f7;

  color: var(--team-primary);

  font-size: 12px;
  font-weight: 800;
}


.niva-specialty-label {
  display: block;

  margin-bottom: 4px;

  color: var(--team-primary);

  font-size: 9px;
  font-weight: 800;

  letter-spacing: 1px;
  text-transform: uppercase;
}


.niva-specialty-heading h2 {
  margin: 0;

  color: var(--team-dark);

  font-size: 22px;
  line-height: 1.2;

  letter-spacing: -0.5px;
}


.niva-specialty-count {
  padding: 7px 11px;

  border: 1px solid var(--team-border);
  border-radius: 20px;

  background: #ffffff;

  color: var(--team-muted);

  font-size: 10px;
  font-weight: 700;
}


/* =========================================================
   DOCTOR GRID
   ========================================================= */

.niva-doctors-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 14px;
}


/* =========================================================
   DOCTOR PROFILE
   ========================================================= */

.niva-doctor-profile {
  position: relative;

  min-height: 190px;

  padding: 24px;

  display: flex;
  flex-direction: column;

  background: var(--team-white);

  border: 1px solid var(--team-border);
  border-radius: var(--team-radius);

  box-shadow:
    0 4px 15px rgba(23, 56, 63, 0.025);

  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}


.niva-doctor-profile:hover {
  transform: translateY(-3px);

  border-color: #cfe4e6;

  box-shadow: var(--team-shadow);
}


/* =========================================================
   AVATAR
   ========================================================= */

.niva-doctor-avatar {
  width: 52px;
  height: 52px;

  margin-bottom: 17px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 15px;

  background:
    linear-gradient(
      135deg,
      #e7f8f8,
      #d8f0f1
    );

  color: var(--team-primary-dark);

  font-size: 14px;
  font-weight: 800;

  letter-spacing: 0.3px;
}


/* =========================================================
   DOCTOR INFO
   ========================================================= */

.niva-doctor-role {
  display: block;

  margin-bottom: 6px;

  color: var(--team-primary);

  font-size: 9px;
  font-weight: 800;

  letter-spacing: 0.9px;
  text-transform: uppercase;
}


.niva-doctor-info h3 {
  margin: 0;

  color: var(--team-dark);

  font-size: 17px;
  line-height: 1.25;

  letter-spacing: -0.2px;
}


.niva-doctor-info p {
  margin: 6px 0 0;

  color: var(--team-muted);

  font-size: 11.5px;
  line-height: 1.5;
}


/* =========================================================
   ACTIONS
   ========================================================= */

.niva-doctor-actions {
  margin-top: auto;
  padding-top: 22px;

  display: flex;
  align-items: center;

  gap: 9px;
}


.niva-doctor-call {
  min-width: 75px;
  height: 38px;

  padding: 0 13px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 7px;

  border: 1px solid var(--team-border);
  border-radius: 9px;

  background: #ffffff;

  color: var(--team-dark);

  font-size: 11px;
  font-weight: 700;

  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}


.niva-doctor-call:hover {
  border-color: #c5dfe1;
  background: #f6fbfb;
}


.niva-doctor-call i {
  color: var(--team-primary);

  font-size: 10px;
}


.niva-doctor-consult {
  height: 38px;

  flex: 1;

  padding: 0 14px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 9px;

  border: 0;
  border-radius: 9px;

  background: var(--team-primary);

  color: #ffffff;

  font-size: 10.5px;
  font-weight: 750;

  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}


.niva-doctor-consult:hover {
  background: var(--team-primary-dark);

  transform: translateY(-1px);

  box-shadow:
    0 8px 18px rgba(21, 159, 162, 0.18);
}


.niva-doctor-consult i {
  font-size: 9px;
}


/* =========================================================
   CALLBACK MODAL
   ========================================================= */

.niva-callback-modal {
  position: fixed;

  inset: 0;

  z-index: 9999;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 20px;

  background:
    rgba(17, 42, 47, 0.55);

  backdrop-filter: blur(5px);
}


.niva-callback-modal.active {
  display: flex;
}


.niva-callback-panel {
  position: relative;

  width: min(430px, 100%);

  padding: 30px;

  background: #ffffff;

  border-radius: 20px;

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.18);

  animation:
    nivaCallbackIn 0.22s ease;
}


@keyframes nivaCallbackIn {

  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

}


.niva-callback-close {
  position: absolute;

  top: 15px;
  right: 15px;

  width: 31px;
  height: 31px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--team-border);
  border-radius: 50%;

  background: #ffffff;

  color: var(--team-muted);

  font-size: 20px;
  line-height: 1;
}


.niva-callback-icon {
  width: 44px;
  height: 44px;

  margin-bottom: 15px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 13px;

  background: #e8f8f8;

  color: var(--team-primary);

  font-size: 16px;
}


.niva-callback-label {
  display: block;

  margin-bottom: 6px;

  color: var(--team-primary);

  font-size: 9px;
  font-weight: 800;

  letter-spacing: 1px;
  text-transform: uppercase;
}


.niva-callback-panel h3 {
  margin: 0;

  color: var(--team-dark);

  font-size: 23px;
}


.niva-callback-description {
  margin: 8px 0 22px;

  color: var(--team-muted);

  font-size: 12px;
  line-height: 1.6;
}


.niva-callback-field {
  margin-bottom: 15px;
}


.niva-callback-field label {
  display: block;

  margin-bottom: 6px;

  color: var(--team-dark);

  font-size: 10px;
  font-weight: 750;
}


.niva-callback-field label span {
  color: var(--team-muted);
  font-weight: 500;
}


.niva-callback-field input,
.niva-callback-field textarea {
  width: 100%;

  padding: 11px 13px;

  border: 1px solid #dce7e9;
  border-radius: 9px;

  outline: none;

  background: #fbfcfc;

  color: var(--team-dark);

  font-size: 12px;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}


.niva-callback-field input {
  height: 44px;
}


.niva-callback-field textarea {
  min-height: 82px;

  resize: vertical;
}


.niva-callback-field input:focus,
.niva-callback-field textarea:focus {
  border-color: var(--team-primary);

  background: #ffffff;

  box-shadow:
    0 0 0 3px rgba(21, 159, 162, 0.08);
}


.niva-callback-submit {
  width: 100%;
  height: 46px;

  margin-top: 5px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 9px;

  border: 0;
  border-radius: 10px;

  background:
    linear-gradient(
      90deg,
      var(--team-primary),
      var(--team-primary-dark)
    );

  color: #ffffff;

  font-size: 12px;
  font-weight: 750;
}


.niva-callback-submit:hover {
  box-shadow:
    0 10px 25px rgba(21, 159, 162, 0.2);
}


.niva-callback-note {
  margin: 15px 0 0;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 7px;

  color: #89979b;

  font-size: 9.5px;
}


.niva-callback-note i {
  color: var(--team-primary);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 850px) {

  .niva-medical-intro-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .niva-medical-intro-badge {
    width: 100%;
  }

  .niva-doctors-grid {
    grid-template-columns: 1fr;
  }

}


@media (max-width: 600px) {

  .niva-medical-intro {
    padding: 38px 0 32px;
  }

  .niva-medical-intro-inner,
  .niva-specialty-block {
    width: min(100% - 28px, 1180px);
  }

  .niva-medical-intro h1 {
    font-size: 32px;
  }

  .niva-medical-intro-copy p {
    font-size: 13px;
  }

  .niva-specialty-block {
    padding: 30px 0;
  }

  .niva-specialty-heading {
    align-items: flex-start;
  }

  .niva-specialty-heading > div {
    align-items: flex-start;
  }

  .niva-specialty-count {
    display: none;
  }

  .niva-doctor-profile {
    padding: 20px;
  }

  .niva-doctor-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .niva-doctor-call,
  .niva-doctor-consult {
    width: 100%;
  }

  .niva-callback-panel {
    padding: 25px 20px;
  }

}