@font-face {
  font-family: "Bahnschrift";
  src: url("../fonts/Bahnschrift.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #e8e8e8;
  --color-header: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #2a2a2a;
  --font-main: "Bahnschrift", "Segoe UI", sans-serif;
  --header-height: 96px;
  --wrap: 1080px;
  --gutter: clamp(24px, 8vw, 160px);
  --hero-pad-x: clamp(24px, 5vw, 80px);
}

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

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.header {
  position: relative;
  z-index: 20;
  background: var(--color-header);
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-height);
  width: min(var(--wrap), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(18px, 2vw, 32px);
  margin-right: auto;
}

.nav-link {
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--color-text);
  transition: opacity 0.2s ease;
}

.nav-link:hover {
  opacity: 0.7;
}

.lang {
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 30;
  margin-left: auto;
  flex-shrink: 0;
}

.burger {
  display: none;
  width: 28px;
  height: 20px;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  margin-right: 16px;
}

.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  transform-origin: center;
  transition:
    transform 0.25s ease,
    opacity 0.2s ease;
}

.burger.is-open span:first-child {
  transform: translateY(9px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:last-child {
  transform: translateY(-9px) rotate(-45deg);
}

.gt-root {
  position: relative;
  display: flex;
  align-items: center;
}

.gt-native {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.gt-picker {
  position: relative;
  z-index: 20;
}

.gt-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text);
  line-height: 1.2;
  white-space: nowrap;
}

.gt-trigger-label {
  max-width: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gt-flag {
  width: 22px;
  height: 15px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.gt-chevron {
  width: 10px;
  height: 10px;
  opacity: 0.7;
  flex-shrink: 0;
}

.gt-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.gt-option {
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  padding: 10px 12px;
  border-radius: 8px;
}

.gt-option:hover,
.gt-option.is-active {
  background: rgba(0, 0, 0, 0.06);
}

.page {
  min-height: 100svh;
}

.page-white {
  background: #fff;
}

.main {
  min-height: calc(100svh - var(--header-height));
  width: min(var(--wrap), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding: clamp(36px, 4vw, 72px) 0 clamp(56px, 7vw, 112px);
  background: #fff;
}

.hero {
  position: relative;
  width: 100%;
  min-height: calc(100svh - var(--header-height));
  background: #e8e8e8;
  overflow: hidden;
  color: #1a1a1a;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - var(--header-height));
  padding: clamp(24px, 5vh, 64px) var(--hero-pad-x);
  width: min(520px, 44%);
}

.hero-name {
  font-size: clamp(28px, 4.2vw, 58px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.hero-role {
  font-size: clamp(15px, 1.5vw, 22px);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: clamp(12px, 2vh, 22px);
}

.hero-degrees {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: clamp(12px, 1.8vh, 18px);
}

.hero-degree,
.hero-affiliations,
.hero-bio {
  font-size: clamp(12px, 1.1vw, 16px);
  font-weight: 400;
  line-height: 1.45;
  max-width: 34em;
}

.hero-degree {
  font-weight: 500;
}

.hero-affiliations {
  margin-bottom: clamp(12px, 1.8vh, 18px);
}

.article {
  width: 100%;
  color: #282828;
}

.page-title {
  margin-bottom: 36px;
  font-size: clamp(36px, 3.4vw, 58px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.bio-birth {
  margin-bottom: 26px;
  font-size: clamp(15px, 1.15vw, 19px);
  line-height: 1.5;
}

.bio-credentials {
  margin-bottom: 28px;
  font-size: clamp(15px, 1.15vw, 19px);
  line-height: 1.45;
}

.bio-text {
  font-size: clamp(15px, 1.15vw, 19px);
  line-height: 1.55;
}

.bio-text p {
  margin-bottom: 28px;
  white-space: pre-line;
}

.bio-text h2,
.bio-section h2 {
  margin: 8px 0 24px;
  font-size: inherit;
  font-weight: 500;
}

.bio-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  margin-top: 8px;
  font-size: clamp(15px, 1.15vw, 19px);
  font-weight: 600;
  color: #241bd5;
}

.bio-links a:hover {
  opacity: 0.65;
}

.companies-title {
  margin-bottom: clamp(52px, 7vw, 100px);
}

.companies-list {
  display: flex;
  flex-direction: column;
  gap: clamp(64px, 8vw, 110px);
  width: 100%;
}

.company {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 720px);
  align-items: center;
  gap: clamp(40px, 6vw, 90px);
}

.company-logo {
  width: 100%;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-logo img {
  max-height: 190px;
  width: auto;
  object-fit: contain;
}

.company-content h2 {
  margin-bottom: 26px;
  font-size: clamp(18px, 1.35vw, 22px);
  font-weight: 500;
  line-height: 1.35;
}

.company-content p {
  margin-bottom: 28px;
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.55;
}

.more-link {
  display: inline-flex;
  font-size: clamp(16px, 1.2vw, 19px);
  font-weight: 600;
  color: #241bd5;
}

.more-link:hover {
  opacity: 0.65;
}

.news-main {
  color: #2b2b2b;
}

.news-title {
  margin-bottom: 28px;
  font-size: clamp(40px, 3.8vw, 62px);
}

.news-intro {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: clamp(38px, 5vw, 68px);
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.5;
}

.news-intro a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news-intro a:not(:last-child)::after {
  content: ",";
  text-decoration: none;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 5vw, 72px);
  width: 100%;
}

.news-item h2 {
  margin-bottom: 5px;
  font-size: clamp(20px, 1.6vw, 27px);
  font-weight: 600;
  line-height: 1.25;
}

.news-item h2 a:hover {
  opacity: 0.65;
}

.news-item time {
  display: block;
  margin-bottom: 15px;
  font-size: clamp(12px, 0.9vw, 15px);
}

.news-item p {
  display: inline;
  font-size: clamp(15px, 1.15vw, 19px);
  line-height: 1.55;
}

.news-more {
  display: inline;
  margin-left: 6px;
  font-size: clamp(15px, 1.15vw, 19px);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.empty {
  font-size: 18px;
  color: #666;
}

.news-article {
  width: 100%;
}

.news-article-title {
  max-width: 850px;
  margin-bottom: 14px;
  font-size: clamp(44px, 5.2vw, 84px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.news-date {
  display: block;
  margin-bottom: clamp(36px, 5vw, 64px);
  font-size: 15px;
  color: #666;
}

.news-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: clamp(34px, 5vw, 58px);
  overflow: hidden;
  background: #eee;
}

.news-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-body {
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.65;
}

.news-body p {
  margin-bottom: 1.5em;
}

.news-body h2,
.news-body h3,
.news-body h4 {
  margin: 1.6em 0 0.65em;
  font-weight: 600;
  line-height: 1.2;
}

.news-body ul,
.news-body ol {
  margin: 0 0 1.5em 1.4em;
}

.news-body ul {
  list-style: disc;
}

.news-body ol {
  list-style: decimal;
}

.news-body a {
  color: #241bd5;
  text-decoration: underline;
}

.news-body img {
  margin: 1.5em 0;
}

.gallery {
  width: 100%;
  columns: 4 240px;
  column-gap: 14px;
}

.gallery-card {
  display: inline-block;
  width: 100%;
  margin-bottom: 14px;
  padding: 9px;
  text-align: left;
  vertical-align: top;
  background: #fff;
  border: 1px solid #d7d7d7;
  border-radius: 7px;
  break-inside: avoid;
}

.gallery-card img {
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.gallery-caption {
  display: block;
  padding: 10px 4px 3px;
  font-size: 14px;
  line-height: 1.4;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 70px;
  background: rgba(10, 10, 10, 0.92);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(90vw, 1500px);
  max-height: calc(100svh - 120px);
  object-fit: contain;
}

.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  color: #fff;
}

.lightbox-figure figcaption {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
}

.lightbox-close,
.lightbox-arrow {
  position: fixed;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.lightbox-close {
  top: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  font-size: 34px;
}

.lightbox-arrow {
  top: 50%;
  width: 52px;
  height: 52px;
  font-size: 42px;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.contacts-main {
  color: #2b2b2b;
}

.contacts-details {
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.55;
}

.contacts-details a:hover {
  opacity: 0.6;
}

.socials {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

.socials a {
  display: block;
  width: 46px;
  height: 46px;
}

.socials svg {
  width: 100%;
  height: 100%;
}

.map {
  width: 100%;
  height: clamp(360px, 46vw, 700px);
  margin-top: clamp(50px, 7vw, 90px);
  overflow: hidden;
  background: #eee;
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.setup {
  max-width: 720px;
  margin: 80px auto;
  padding: 32px;
  background: #fff;
  font-size: 18px;
  line-height: 1.5;
}

.setup code {
  background: #f3f3f3;
  padding: 0 4px;
}

@media (max-width: 1410px) {
  .hero-media {
    right: auto;
    width: 1410px;
  }
}

@media (max-width: 1100px) {
  .nav {
    gap: clamp(14px, 1.6vw, 22px);
  }

  .hero-content {
    width: min(380px, 40%);
  }
}

@media (max-width: 900px) {
  .burger {
    display: flex;
    position: relative;
    z-index: 2;
  }

  .nav {
    display: none;
  }

  .nav.is-open {
    display: flex;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding: 32px var(--gutter);
    background: rgba(250, 250, 248, 0.98);
    overflow-y: auto;
  }

  .nav.is-open .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 64px;
    padding: 14px 36px 14px 0;
    font-size: clamp(26px, 7vw, 38px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .nav.is-open .nav-link:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }

  .nav.is-open .nav-link[aria-current="page"] {
    font-weight: 700;
  }
}

@media (max-width: 800px) {
  .company {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .company-logo {
    width: min(100%, 300px);
    height: 150px;
  }
}

@media (max-width: 768px) {
  .hero {
    color: #fff;
  }

  .hero-media {
    left: -180px;
    width: 1000px;
  }

  .hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
  }

  .hero-content {
    width: min(100%, 72%);
    max-width: 420px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  }
}

@media (max-width: 600px) {
  .gallery {
    columns: 2 140px;
    column-gap: 8px;
  }

  .news-cover {
    width: calc(100% + 2 * var(--gutter));
    margin-left: calc(-1 * var(--gutter));
  }

  .map {
    width: calc(100% + 2 * var(--gutter));
    height: 440px;
    margin-left: calc(-1 * var(--gutter));
  }

  .lightbox {
    padding: 64px 12px 24px;
  }

  .lightbox-arrow {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .lightbox-prev {
    left: calc(50% - 54px);
  }

  .lightbox-next {
    right: calc(50% - 54px);
  }
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.08);
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 36px;
  width: min(var(--wrap), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding: 18px 0;
}

.cookie-banner p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--color-text);
}

.cookie-accept {
  flex-shrink: 0;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: #1a1a1a;
  border-radius: 2px;
}

.cookie-accept:hover {
  opacity: 0.82;
}

@media (max-width: 700px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    width: calc(100% - 40px);
    padding: 16px 0 18px;
    gap: 14px;
  }

  .cookie-accept {
    width: 100%;
  }
}
