/* Faculty and department detail pages */
body[class*="route-site-faculty"],
body[class*="route-site-departament"]{
  background:#081d35;
}
.academic-page{
  --academic-navy:#081d35;
  --academic-blue:#123b64;
  --academic-gold:#c8972b;
  --academic-hero-image:url("https://storage.vigbo.tech/p/w1920/gallery-cover/f1377e4e-0060-48db-a843-ef23efa8db63/Kj7XoQ3bcFEYXuDSGvnnh.jpeg");
  --academic-ink:#17283e;
  --academic-muted:#66758a;
  --academic-line:rgba(8,29,53,.1);
  color:var(--academic-ink);
  background:
    radial-gradient(circle at 12% 18%,rgba(200,151,43,.16),transparent 26rem),
    linear-gradient(180deg,#f8f5ee 0%,#eef3f6 46%,#f8f5ee 100%);
  min-height:100vh;
  margin:0!important;
  padding:0!important;
}
.academic-hero{
  position:relative;
  isolation:isolate;
  min-height:clamp(330px,48vh,430px)!important;
  height:auto!important;
  margin:0!important;
  padding:128px max(20px,calc((100vw - 1180px)/2)) 42px!important;
  display:flex!important;
  align-items:center!important;
  overflow:hidden;
  background:
    linear-gradient(120deg,rgba(8,29,53,.95),rgba(18,59,100,.88)),
    var(--academic-hero-image) center 45%/cover no-repeat!important;
}
.department-page .academic-hero{
  background:
    linear-gradient(120deg,rgba(8,29,53,.94),rgba(18,59,100,.84)),
    url("https://storage.vigbo.tech/p/s2500/gallery-photo/27833ae7-1146-486e-bcd4-e5cec2edb815/f1377e4e-0060-48db-a843-ef23efa8db63/original/qP_c6k5INf1Tx8iYCzVEI.jpg") center 42%/cover no-repeat!important;
}
.department-page .academic-hero h1{
  width:min(720px,100%);
  font-size:clamp(1.65rem,2.7vw,2.85rem)!important;
  line-height:1.08!important;
}
.academic-hero:before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:
    linear-gradient(rgba(255,255,255,.065) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.055) 1px,transparent 1px);
  background-size:64px 64px;
  mask-image:linear-gradient(90deg,#000,rgba(0,0,0,.35),transparent);
}
.department-page .academic-hero:before{
  display:none;
}
.academic-hero:after{
  content:"";
  position:absolute;
  left:max(20px,calc((100vw - 1180px)/2));
  bottom:30px;
  width:220px;
  height:3px;
  border:0;
  border-radius:999px;
  background:linear-gradient(90deg,var(--academic-gold),rgba(200,151,43,0));
  box-shadow:0 -18px 0 -1px rgba(200,151,43,.34),0 -36px 0 -1px rgba(200,151,43,.16);
  opacity:.9;
  pointer-events:none;
  z-index:-1;
}
.academic-hero-inner{
  width:min(1180px,100%);
  position:relative;
  z-index:1;
  transform:translateY(-10px);
}
.academic-hero-mark{
  width:50px;
  height:50px;
  border:1px solid rgba(255,255,255,.2);
  border-radius:16px;
  background:rgba(255,255,255,.1);
  display:flex;
  align-items:center;
  justify-content:center;
  backdrop-filter:blur(12px);
  box-shadow:0 22px 45px rgba(0,0,0,.18);
  margin-bottom:12px;
}
.academic-icon{
  width:32px;
  height:32px;
  display:block;
  fill:none;
  stroke:var(--academic-gold);
  stroke-width:3.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.academic-eyebrow,
.academic-section-kicker{
  margin:0 0 12px;
  color:var(--academic-gold);
  font-size:12px;
  font-weight:850;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.academic-hero h1{
  width:min(780px,100%);
  margin:0;
  color:#fff!important;
  font-family:'Playfair Display',Georgia,serif!important;
  font-size:clamp(1.9rem,3.1vw,3.3rem)!important;
  font-weight:400!important;
  line-height:1.03!important;
  letter-spacing:0!important;
  text-shadow:0 18px 38px rgba(0,0,0,.24);
}
.academic-hero-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:16px;
}
.academic-hero-meta span,
.academic-hero-meta a{
  display:inline-flex;
  min-height:42px;
  align-items:center;
  border:1px solid rgba(255,255,255,.2);
  border-radius:999px;
  padding:9px 15px;
  background:rgba(255,255,255,.1);
  color:#fff!important;
  font-size:14px;
  font-weight:750;
  text-decoration:none!important;
  backdrop-filter:blur(10px);
}
.academic-hero-meta a{
  background:var(--academic-gold);
  border-color:var(--academic-gold);
  color:var(--academic-navy)!important;
}
.academic-shell{
  width:min(1180px,calc(100% - 32px));
  margin:0 auto;
  padding:24px 0 76px;
}
.academic-intro-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(280px,390px);
  gap:24px;
  align-items:stretch;
}
.academic-intro,
.academic-person-card,
.academic-link-card,
.academic-empty-state{
  border:1px solid var(--academic-line);
  border-radius:18px;
  background:rgba(255,255,255,.94);
  box-shadow:0 22px 60px rgba(8,29,53,.08);
}
.academic-intro{
  padding:34px;
}
.academic-intro h2,
.academic-section-head h2{
  margin:0 0 16px;
  color:var(--academic-navy);
  font-family:'Playfair Display',Georgia,serif;
  font-size:clamp(1.8rem,3.2vw,3.25rem);
  font-weight:400;
  line-height:1.08;
  letter-spacing:0;
}
.academic-intro p,
.academic-intro-text{
  margin:0;
  color:#31445c;
  font-size:16px;
  line-height:1.85;
}
.academic-intro-text p{
  margin:0 0 14px;
}
.academic-intro-text p:last-child{
  margin-bottom:0;
}
.academic-intro-text ul,
.academic-intro-text ol{
  margin:0 0 14px;
  padding-left:24px;
}
.academic-intro-text li{
  margin:0 0 6px;
}
.academic-intro-text table{
  width:100%;
  border-collapse:collapse;
  margin:14px 0;
}
.academic-intro-text th,
.academic-intro-text td{
  border:1px solid var(--academic-line);
  padding:8px 10px;
  vertical-align:top;
}
.academic-person-card{
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.academic-person-photo{
  min-height:300px;
  background:linear-gradient(135deg,#dfe8ee,#f8f5ee);
  display:flex;
  align-items:flex-end;
  justify-content:center;
  overflow:hidden;
}
.academic-person-photo img{
  width:100%;
  height:330px!important;
  object-fit:cover;
  object-position:center top;
  border-radius:0!important;
}
.department-head-card .academic-person-photo{
  min-height:430px;
  align-items:center;
  background:#fff;
}
.department-head-card .academic-person-photo img{
  height:430px!important;
  object-fit:contain;
  object-position:center bottom;
}
.academic-photo-placeholder{
  width:160px;
  height:160px;
  margin:auto;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,var(--academic-navy),var(--academic-blue));
  box-shadow:inset 0 0 0 8px rgba(255,255,255,.14),0 22px 45px rgba(8,29,53,.18);
}
.academic-person-photo .academic-photo-placeholder{
  align-self:center;
}
.academic-photo-placeholder .academic-icon{
  width:54px;
  height:54px;
  stroke:#f0c960;
}
.academic-person-body{
  padding:24px;
}
.academic-person-body span{
  display:block;
  color:var(--academic-gold);
  font-size:12px;
  font-weight:850;
  letter-spacing:.14em;
  text-transform:uppercase;
  margin-bottom:9px;
}
.academic-person-body h3{
  margin:0 0 8px;
  color:var(--academic-navy);
  font-size:23px;
  font-weight:850;
  line-height:1.18;
}
.academic-person-body p{
  margin:0 0 16px;
  color:var(--academic-muted);
  line-height:1.55;
}
.academic-person-details{
  display:grid;
  gap:0;
  margin:18px 0;
  border-top:1px solid var(--academic-line);
  border-bottom:1px solid var(--academic-line);
}
.academic-person-details div{
  display:grid;
  gap:4px;
  padding:12px 0;
  border-top:1px solid var(--academic-line);
}
.academic-person-details div:first-child{
  border-top:0;
}
.academic-person-details dt{
  color:var(--academic-muted);
  font-size:12px;
  font-weight:850;
}
.academic-person-details dd{
  margin:0;
  color:var(--academic-navy);
  font-size:14px;
  font-weight:800;
  line-height:1.35;
  overflow-wrap:anywhere;
}
.academic-contact-link{
  display:inline-flex;
  min-height:40px;
  align-items:center;
  border-radius:999px;
  padding:9px 14px;
  background:#eef3f6;
  color:var(--academic-blue)!important;
  font-weight:800;
  text-decoration:none!important;
}
.academic-person-action{
  display:inline-flex;
  min-height:42px;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:9px 16px;
  background:var(--academic-navy);
  color:#fff!important;
  font-size:13px;
  font-weight:850;
  text-decoration:none!important;
}
.academic-person-action:hover{
  background:var(--academic-blue);
  color:#fff!important;
}
.academic-section{
  margin-top:42px;
}
.academic-section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}
.academic-section-head h2{
  margin-bottom:0;
}
.academic-card-grid,
.academic-teacher-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(245px,1fr))!important;
  gap:18px!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  box-shadow:none!important;
  background:transparent!important;
  overflow:visible!important;
}
.academic-link-card{
  min-height:172px;
  padding:22px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:space-between;
  color:var(--academic-navy)!important;
  text-decoration:none!important;
  transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease;
}
.academic-link-card:hover,
.academic-teacher-card:hover{
  transform:translateY(-5px)!important;
  border-color:rgba(200,151,43,.48)!important;
  box-shadow:0 28px 70px rgba(8,29,53,.12)!important;
}
.academic-card-icon{
  width:48px;
  height:48px;
  border-radius:14px;
  background:#f3eee2;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:18px;
}
.academic-card-icon .academic-icon{
  width:30px;
  height:30px;
}
.academic-link-card strong{
  display:block;
  color:var(--academic-navy);
  font-size:18px;
  line-height:1.25;
}
.academic-link-card small{
  margin-top:18px;
  color:var(--academic-muted);
  font-weight:800;
}
.academic-empty-state{
  grid-column:1/-1;
  padding:28px;
  text-align:center;
  color:var(--academic-muted);
}
.academic-empty-state strong{
  display:block;
  margin-bottom:7px;
  color:var(--academic-navy);
  font-size:19px;
}
.academic-teacher-card{
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  border:1px solid var(--academic-line)!important;
  border-radius:18px!important;
  padding:18px!important;
  background:rgba(255,255,255,.95)!important;
  box-shadow:0 18px 48px rgba(8,29,53,.08)!important;
  cursor:pointer;
  text-align:left!important;
  display:grid!important;
  grid-template-columns:86px minmax(0,1fr);
  gap:16px;
  align-items:center!important;
  appearance:none;
  color:inherit;
}
.academic-teacher-card .teacher-image{
  width:86px!important;
  height:86px!important;
  margin:0!important;
  border:0!important;
  border-radius:18px!important;
  background:#eef3f6!important;
  overflow:hidden;
}
.academic-teacher-card .teacher-image img{
  width:100%;
  height:100%!important;
  object-fit:cover;
  object-position:center top;
  border-radius:18px!important;
}
.academic-teacher-card .academic-photo-placeholder{
  width:100%;
  height:100%;
  border-radius:18px;
  box-shadow:none;
}
.academic-teacher-card .academic-photo-placeholder .academic-icon{
  width:34px;
  height:34px;
}
.academic-teacher-card .content-teacher{
  width:100%!important;
  min-width:0;
  display:block;
}
.academic-teacher-card .fio{
  display:block;
  margin:0 0 7px!important;
  color:var(--academic-navy)!important;
  font-size:17px!important;
  font-weight:850!important;
  line-height:1.25;
  text-transform:none!important;
}
.academic-teacher-card .job_title{
  display:block;
  margin:0!important;
  color:var(--academic-muted)!important;
  font-size:14px!important;
  font-style:normal!important;
  font-weight:650!important;
  line-height:1.35;
  text-transform:none!important;
}
.blur.active{
  display:block!important;
  position:fixed;
  inset:0;
  z-index:9998;
  width:auto;
  height:auto;
  background:rgba(8,19,32,.58);
  backdrop-filter:blur(10px);
}
.more-teachers-overlay{
  display:none!important;
}
.more-teachers-overlay.active{
  position:fixed!important;
  inset:50% auto auto 50%!important;
  z-index:9999!important;
  display:block!important;
  width:min(1040px,calc(100vw - 28px))!important;
  height:auto!important;
  max-height:calc(100vh - 40px);
  padding:0!important;
  transform:translate(-50%,-50%)!important;
  color:var(--academic-ink)!important;
}
.teacher-info{
  position:relative;
  display:grid;
  grid-template-columns:minmax(380px,42%) minmax(0,1fr);
  overflow:hidden;
  border-radius:22px;
  background:#fff;
  box-shadow:0 34px 110px rgba(0,0,0,.34);
}
.teacher-modal-close{
  position:absolute;
  top:12px;
  right:12px;
  z-index:2;
  width:42px;
  height:42px;
  border:0;
  border-radius:50%;
  background:rgba(8,29,53,.08);
  color:var(--academic-navy);
  font-size:28px;
  line-height:1;
  cursor:pointer;
}
.teacher-modal-photo{
  position:relative;
  min-height:min(560px,calc(100vh - 40px));
  padding:0;
  background:#eef3f6;
  display:flex;
  align-items:stretch;
  justify-content:stretch;
}
.teacher-modal-photo img{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%!important;
  max-height:calc(100vh - 40px);
  object-fit:contain;
  object-position:center center;
  border-radius:0!important;
}
.teacher-modal-content{
  padding:34px;
}
.teacher-modal-content h3{
  width:calc(100% - 48px);
  margin:0 0 8px;
  color:var(--academic-navy);
  font-size:28px;
  font-weight:850;
  line-height:1.16;
}
.teacher-modal-content p{
  margin:0 0 22px;
  color:var(--academic-muted);
  font-weight:700;
}
.teacher-modal-content dl{
  display:grid;
  gap:10px;
  margin:0;
}
.teacher-modal-content dl div{
  display:grid;
  grid-template-columns:180px minmax(0,1fr);
  gap:14px;
  padding:12px 0;
  border-top:1px solid var(--academic-line);
}
.teacher-modal-content dt{
  color:var(--academic-muted);
  font-weight:800;
}
.teacher-modal-content dd{
  margin:0;
  color:var(--academic-navy);
  font-weight:750;
}
@media(max-width:900px){
  .academic-hero:after{
    left:16px;
    bottom:18px;
    width:150px;
    height:2px;
    opacity:.6;
  }
  .academic-hero{
    min-height:320px!important;
    padding:94px 16px 28px!important;
  }
  .academic-hero h1,
  .department-page .academic-hero h1{
    font-size:clamp(1.85rem,7vw,3rem)!important;
  }
  .academic-intro-grid,
  .teacher-info{
    grid-template-columns:1fr;
  }
  .academic-person-photo{
    min-height:240px;
  }
  .teacher-modal-photo{
    height:320px;
    min-height:0;
    max-height:360px;
    padding:0;
  }
  .teacher-modal-photo img{
    height:100%!important;
    max-height:none;
  }
}
@media(max-width:620px){
  .academic-shell{
    width:min(100% - 20px,1180px);
    padding-top:26px;
  }
  .academic-intro{
    padding:24px;
  }
  .academic-hero-mark{
    width:52px;
    height:52px;
    border-radius:15px;
  }
  .academic-hero-meta span,
  .academic-hero-meta a{
    width:100%;
    justify-content:center;
  }
  .academic-section-head{
    display:block;
  }
  .academic-teacher-card{
    grid-template-columns:72px minmax(0,1fr);
    padding:14px!important;
  }
  .academic-teacher-card .teacher-image{
    width:72px!important;
    height:72px!important;
    border-radius:14px!important;
  }
  .teacher-modal-content{
    padding:24px;
  }
  .teacher-modal-content dl div{
    grid-template-columns:1fr;
    gap:4px;
  }
}
