:root {
  --text: #1f2530;
  --muted: #536171;
  --line: #d5dde7;
  --line-strong: #b7c6d8;
  --link: #1d5f99;
  --link-hover: #0f3e67;
  --bg: #f7f9fc;
  --surface: #fcfdff;
  --heading: #162235;
  --accent-soft: #eef4fa;
  --shadow: 0 20px 48px rgba(22, 34, 53, 0.1);
  --font-body: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-heading: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #f2f6fb 0%, var(--bg) 22%, #f6f8fb 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 140ms ease;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.skip-link:focus {
  top: 16px;
}

.container {
  max-width: 980px;
  margin: 28px auto 44px;
  padding: 34px 34px 56px;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--surface) 100%);
  border: 1px solid #d8e2ee;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  gap: 36px;
  align-items: start;
}

.intro h1 {
  position: relative;
  margin: 0 0 20px;
  font-family: var(--font-heading);
  font-size: 2.28rem;
  font-weight: 650;
  text-align: center;
  padding-bottom: 14px;
  color: var(--heading);
  letter-spacing: 0.01em;
}

.intro h1::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 140px;
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #b8cbe0 0%, #5f86ae 50%, #b8cbe0 100%);
}

.intro-title {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
  font-weight: 500;
}

.intro p {
  margin: 0 0 14px;
}

.contact-line,
.link-line {
  font-size: 1.02rem;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.link-line span {
  margin: 0 8px;
  color: #8c99a7;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.icon-link img {
  width: 28px;
  height: 28px;
}

.intro-photo {
  margin: 82px 0 0;
  justify-self: end;
  width: 100%;
  max-width: 320px;
  display: grid;
  justify-items: center;
  align-self: start;
  row-gap: 16px;
}

.intro-photo img {
  width: 88%;
  border: 0;
  background: none;
  box-shadow: 0 6px 18px rgba(25, 43, 70, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease;
  transform-origin: center top;
  will-change: transform;
  cursor: pointer;
}

.intro-photo:hover img {
  transform: scale(1.06);
  box-shadow: 0 16px 34px rgba(25, 43, 70, 0.16);
}

.photo-caption {
  margin: 0;
  width: 88%;
  color: #6e7a89;
  font-size: 0.88rem;
  line-height: 1.35;
  text-align: center;
  font-style: italic;
}

.section {
  margin-top: 28px;
  padding-top: 8px;
}

.section h2 {
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-weight: 650;
  color: var(--heading);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 1.48rem;
  line-height: 1.3;
  position: relative;
}

.section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 72px;
  height: 2px;
  background: #6f97bf;
}

.news-list,
.bullet-list {
  margin: 14px 0 0;
  padding-left: 22px;
}

.news-list li,
.bullet-list li {
  margin-bottom: 10px;
}

.publication {
  margin-top: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2eaf3;
}

.publication:last-child {
  border-bottom: 0;
}

.publication p {
  margin: 0 0 6px;
}

.publication-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--heading);
  font-size: 1.05rem;
  line-height: 1.55;
}

.publication-authors,
.publication-note,
.publication-meta,
.publication-summary {
  color: var(--muted);
}

.publication-note {
  font-size: 0.94rem;
}

.footer {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.98rem;
}

.footer p {
  margin: 0;
}

strong {
  color: #1b2d45;
}

::selection {
  background: #dce8f6;
  color: var(--heading);
}

@media (max-width: 720px) {
  .container {
    margin: 14px auto 24px;
    padding: 24px 18px 40px;
  }

  .intro {
    grid-template-columns: 1fr;
  }

  .intro-photo {
    margin-top: 12px;
    max-width: 280px;
  }

  .intro h1 {
    font-size: 2rem;
  }

  .link-line span {
    margin: 0 6px;
  }
}
