:root {
  --red: #e96656;
  --dark: #272727;
  --text: #666;
  --muted: #888;
  --light: #f7f7f7;
  --white: #fff;
  --about: #272727;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.7;
}

a { color: inherit; }

.container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  min-height: 100vh;
  color: #fff;
  background:
    linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
    url("images/AdobeStock_55327422-copy.jpg") center / cover fixed;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(17,17,17,.92);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #fff;
}

.menu {
  display: flex;
  gap: 28px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
}

.menu a {
  color: #fff;
  text-decoration: none;
  opacity: .9;
}

.menu a:hover { color: var(--red); }

.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 0;
}

.hero h1 {
  margin: 0 0 34px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(36px, 7vw, 76px);
  line-height: 1.15;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
}

.button {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
}

section { padding: 90px 0; }

.section-header {
  text-align: center;
  margin-bottom: 54px;
}

h2 {
  margin: 0;
  color: var(--dark);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 36px;
  line-height: 1.2;
  text-transform: uppercase;
  font-weight: 700;
}

.section-header h2::after,
.card h3::after,
.team h3::after {
  content: "";
  display: block;
  width: 78px;
  height: 2px;
  margin: 17px auto 0;
  background: var(--red);
}

.published-papers .section-header h2::after {
  display: none;
}

.published-papers .section-header h3::after {
  content: "";
  display: block;
  width: 78px;
  height: 2px;
  margin: 17px auto 0;
  background: var(--red);
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  align-items: start;
}

.focus-grid .card:nth-child(5) {
  grid-column: auto;
  max-width: none;
  justify-self: auto;
}

.card {
  text-align: center;
  font-size: 15px;
}

.card p { text-align: justify; }

.service-icon {
  width: 110px;
  height: 110px;
  margin: 0 auto 25px;
  padding: 8px;
  border-radius: 50%;
  border: 10px solid #ececec;
  background: #fff;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

h3 {
  margin: 0 0 22px;
  color: #404040;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.35;
  text-transform: uppercase;
  font-weight: 700;
}

.about-us {
  background: var(--about);
  color: #ddd;
}

.about-us h2 { color: #fff; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.big-intro {
  color: #fff;
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.15;
  font-weight: 700;
  text-align: left;
}

.about-text {
  font-size: 16px;
  text-align: justify;
}

.about-text a { color: #fff; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
}

.team {
  text-align: center;
  padding: 0 10px;
}

.team p { margin: 0 0 16px 0; text-align: justify; }
.team p:last-child { margin-bottom: 0; }

.team-bio {
  margin: 0;
  text-align: justify;
  font-size: 15px;
}

.team-bio p { margin: 0 0 16px 0; }
.team-bio p:last-child { margin-bottom: 0; }

.profile-pic {
  width: 150px;
  height: 150px;
  margin: 0 auto 22px;
  border-radius: 50%;
  overflow: hidden;
  background: #eee;
}

.profile-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.position {
  margin: -8px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.socials a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #ddd;
  color: #555;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}

.latest-news { background: var(--light); }

.published-papers { background: var(--light); }

.papers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.paper-item {
  background: #fff;
  padding: 28px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
  color: inherit;
}

.paper-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  transform: translateY(-2px);
}

.paper-date {
  color: var(--red);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.paper-item h3 {
  margin: 0 0 16px;
  color: #404040;
  font-size: 18px;
  line-height: 1.3;
}

.paper-item h3::after { display: none; }

.paper-description {
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.post {
  background: #fff;
  text-align: left;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.post img {
  width: 100%;
  height: 175px;
  object-fit: cover;
  display: block;
}

.post-content { padding: 22px; }

.post h3 {
  text-transform: none;
  font-size: 17px;
  margin-bottom: 14px;
}

.post h3::after { display: none; }

.post a {
  color: #333;
  text-decoration: none;
}

.post a:hover { color: var(--red); }

.site-footer {
  background: #222;
  color: #bbb;
  text-align: center;
  padding: 32px 0;
  font-size: 14px;
}

@media (max-width: 980px) {
  .focus-grid, .posts-grid, .papers-grid { grid-template-columns: repeat(2, 1fr); }
  .focus-grid .card:nth-child(5) { grid-column: auto; max-width: none; }
  .team-grid, .about-grid { grid-template-columns: 1fr; }
  .big-intro { text-align: center; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1140px); }
  .nav-inner { min-height: 68px; }
  .logo { width: 48px; height: 48px; }
  .menu { gap: 14px; font-size: 12px; }
  section { padding: 64px 0; }
  .focus-grid, .team-grid, .posts-grid, .papers-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  h2 { font-size: 30px; }
}
