* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 28px 16px 48px;
  font-family: "Montserrat", sans-serif;
  background-color: #f5f7fa;
  color: #000000;
}

.page {
  width: min(1200px, 100%);
  margin: 0 auto;
  background-color: #ffffff;
  box-shadow: 6px 6px 20px rgba(0, 0, 0, 0.1);
}

.tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 0 18px 0 28px;
  background-color: #ffffff;
  border-bottom: 1px solid #e5eaf1;
}

.tabs-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.tab {
  display: inline-block;
  padding: 16px 14px 13px;
  border-bottom: 3px solid transparent;
  color: #1e2939;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-decoration: none;
}

.tab:hover,
.tab.is-active {
  color: rgb(121, 163, 226);
}

.tab.is-active {
  border-bottom-color: rgb(121, 163, 226);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.lang-switch button {
  margin: 0;
  padding: 8px 6px;
  border: 0;
  background: transparent;
  color: #1e2939;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  cursor: pointer;
}

.lang-switch button.is-active,
.lang-switch button:hover {
  color: rgb(121, 163, 226);
}

.lang-sep {
  color: #1e2939;
  font-size: 14px;
  font-weight: 700;
}

.wrapper {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background-color: #ffffff;
}

main {
  flex: 1 1 auto;
  min-width: 0;
  padding: 40px 64px 48px;
  background-color: #ffffff;
}

aside {
  flex: 0 0 370px;
  width: 370px;
  background: #1e2939;
  padding-bottom: 36px;
}

.cv-photo {
  display: block;
  width: 100%;
  height: auto;
}

.contact-blok,
.list_blok {
  margin-right: 28px;
  margin-left: 40px;
}

.contact-blok {
  margin-top: 36px;
}

.list_blok {
  margin-top: 32px;
}

.aside-label {
  margin: 14px 0 6px;
  color: rgb(121, 163, 226);
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
}

.list_blok .aside-label:first-of-type {
  margin-top: 0;
}

.head_secondary {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contacts_link {
  color: #ffffff;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

a.contacts_link:hover {
  text-decoration: underline;
}

.bold {
  font-weight: 700;
}

.list_secondary {
  margin: 0;
  padding-left: 18px;
  color: rgb(121, 163, 226);
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
}

.list_secondary_item {
  color: #ffffff;
}

h1 {
  margin: 0;
  font-weight: 700;
  font-size: 45px;
  line-height: 55px;
}

h1.page-title {
  font-size: 22px;
  line-height: 27px;
}

.job_title {
  margin: 8px 0 0;
  font-weight: 700;
  font-size: 16px;
  line-height: 22px;
}

.description {
  margin: 16px 0 0;
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
  text-align: justify;
}

.note {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 24px;
}

.availability {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 24px;
  color: #595959;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
}

.cta a {
  display: inline-block;
  padding: 10px 16px;
  border: 2px solid rgb(121, 163, 226);
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
}

.cta a.cta-primary {
  background: rgb(121, 163, 226);
  color: #ffffff;
}

.cta a.cta-secondary {
  background: #ffffff;
  color: rgb(121, 163, 226);
}

.cta a:hover {
  text-decoration: none;
}

.proofs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.proofs li {
  margin: 0;
  padding: 16px;
  background: #f5f7fa;
}

.proofs h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 22px;
}

.proofs p,
.job_text {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 24px;
  color: #595959;
}

.proofs p {
  margin: 0;
}

.subhead {
  margin: 22px 0 8px;
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
}

.skill-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.skill-groups h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 22px;
}

.skill-groups p {
  margin: 0;
  font-size: 14px;
  line-height: 24px;
  color: #595959;
}

.feed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  align-items: start;
}

.feed:empty {
  display: none;
}

.feed-card {
  display: flex;
  flex-direction: column;
  height: 335px;
  overflow: hidden;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e5eaf1;
  border-radius: 8px;
  color: #1e2939;
  font-weight: 400;
  text-decoration: none;
}

.feed-head {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.feed-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.feed-meta {
  min-width: 0;
}

.feed-name {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
}

.feed-role,
.feed-more {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  color: #595959;
  font-weight: 400;
}

.feed-role {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

main a.feed-card {
  color: #1e2939;
  font-weight: 400;
}

main a.feed-card:hover {
  text-decoration: none;
}

.feed-text {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 20px;
  color: #1e2939;
}

.feed-more {
  margin-top: 2px;
}

.feed-photo {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  margin: 8px 0 0;
  object-fit: contain;
  object-position: center;
  background: #000000;
}

.is-hidden {
  display: none;
}

.section {
  margin-top: 36px;
}

.head_primary {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: 22px;
  line-height: 27px;
  color: #000000;
}

.job {
  margin-bottom: 18px;
}

.job_name {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 16px;
  line-height: 22px;
  color: #000000;
}

.highlight {
  color: rgb(121, 163, 226);
}

.job_date {
  margin: 0;
  font-weight: 400;
  font-size: 12px;
  line-height: 15px;
  color: #a8a8a8;
}

summary {
  width: fit-content;
  margin-top: 6px;
  color: rgb(121, 163, 226);
  font-size: 14px;
  font-weight: 700;
  line-height: 24px;
  cursor: pointer;
}

summary:hover {
  text-decoration: underline;
}

.job_list,
.topic-list {
  margin: 8px 0 0;
  padding-left: 18px;
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
  color: #595959;
}

main a {
  color: rgb(121, 163, 226);
  font-weight: 700;
  text-decoration: none;
}

main a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid rgb(121, 163, 226);
  outline-offset: 2px;
}

@media (max-width: 980px) {
  body {
    padding: 12px;
  }

  .tabs {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 8px 12px 0;
  }

  .wrapper {
    flex-direction: column;
  }

  main {
    order: 1;
    padding: 28px 20px 36px;
  }

  aside {
    order: 2;
    flex: none;
    width: 100%;
  }

  .cv-photo {
    width: 100%;
    max-width: 220px;
    margin-right: auto;
    margin-left: 0;
  }

  h1 {
    font-size: 36px;
    line-height: 42px;
  }

  .description {
    text-align: left;
  }

  .proofs,
  .feed,
  .skill-groups {
    grid-template-columns: 1fr;
  }
}
