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

:root {
  --accent-color: #187bcd;
  --accent-color-soft: #f5f7fb;
  --accent-color-dark: #0f4c81;
  --accent-color-light: #8fc4f6;
  --accent-color-silver: #e2e8f3;
}

body {
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: var(--accent-color-soft);
}

.page {
  max-width: 900px;
  margin: 0 auto;
  background-color: #fff;
  box-shadow: 0 0 20px rgb(0 0 0 / 10%);
}

.header {
  padding: 40px;
  color: white;
  background: linear-gradient(135deg, #1c96e0 0%, #0f4c81 100%);
}

.header__content {
  display: flex;
  gap: 30px;
  align-items: center;
}

.header__title {
  margin-bottom: 10px;
  font-size: 2.5rem;
}

.header__subtitle {
  font-size: 1.1rem;
  opacity: 0.95;
}

.header__contacts {
  margin-top: 15px;
}

.header__contact-link {
  display: inline-flex;
  gap: 4px;
  align-items: center;

  margin-top: 5px;
  margin-right: 15px;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;

  color: white;
  text-decoration: none;

  transition: border-color 0.2s ease;
}

.header__contact-link:hover {
  border-bottom-color: white;
}

.main {
  padding: 24px;
}

.section {
  margin-bottom: 24px;
}

.section__title {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--accent-color);

  font-size: 1.8rem;
  color: var(--accent-color);
}

.section__actions {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.section__link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;

  min-width: 240px;
  padding: 12px 20px;
  border: 2px solid var(--accent-color-dark);
  border-radius: 999px;

  font-weight: 600;
  color: var(--accent-color-dark);
  text-decoration: none;

  background-color: rgb(24 123 205 / 5%);

  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.section__link::after {
  content: "\2197";
  font-size: 1rem;
}

.section__link:hover {
  color: var(--accent-color);
  background-color: rgb(24 123 205 / 12%);
}

.section__link:focus-visible {
  outline: 3px solid var(--accent-color-light);
  outline-offset: 3px;
}

.section__text {
  margin-bottom: 15px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.info-grid__item {
  padding: 15px;
  border-radius: 8px;
  background-color: var(--accent-color-soft);
}

.info-grid__label {
  display: block;
  margin-bottom: 5px;
  color: var(--accent-color);
}

.about {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about__intro-card {
  padding: 24px;
  border: 1px solid var(--accent-color-silver);
  border-radius: 16px;

  background: linear-gradient(120deg, rgb(28 150 224 / 15%), rgb(15 76 129 / 10%));
  box-shadow: 0 10px 25px rgb(24 123 205 / 18%);
}

.about__highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.about-highlight {
  padding: 18px 20px;
  border: 1px solid var(--accent-color-silver);
  border-radius: 12px;

  background-color: #fbfdff;
  box-shadow: 0 8px 16px rgb(0 0 0 / 5%);
}

.about-highlight__label {
  margin-bottom: 8px;

  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-color-dark);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.about-card {
  padding: 24px;
  border: 1px solid var(--accent-color-silver);
  border-radius: 14px;
  background-color: #f7f9fd;
}

.about-card__title {
  margin-bottom: 12px;
  font-size: 1.2rem;
  color: #3d3d5c;
}

.about-card__list {
  display: flex;
  flex-direction: column;
  gap: 10px;

  margin-left: 0;
  padding-left: 0;

  list-style: none;
}

.about-card__list-item {
  position: relative;
  padding-left: 18px;
}

.about-card__list-item::before {
  content: "";

  position: absolute;
  top: 0.6em;
  left: 0;

  width: 7px;
  height: 7px;
  border-radius: 50%;

  background-color: var(--accent-color);
}

.about__previous {
  padding: 22px 24px;
  border: 1px dashed var(--accent-color-silver);
  border-radius: 14px;
  background-color: #fff;
}

.about__previous-title {
  margin-bottom: 8px;
  font-size: 1.1rem;
  color: var(--accent-color-dark);
}

.job {
  margin-bottom: 22px;
  padding: 18px 20px;
  border-left: 3px solid var(--accent-color);
  border-radius: 0;

  background-color: #fafdff;
  box-shadow: 0 4px 12px rgb(15 76 129 / 5%);
}

.job__header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: flex-start;
  justify-content: space-between;

  margin-bottom: 12px;
}

.job__info {
  flex: 1;
}

.job__title {
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: #333;
}

.job__company {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: #666;
}

.job__period {
  font-style: italic;
  color: #666;
  text-align: right;
}

.job__duration {
  font-weight: bold;
  font-style: normal;
}

.job__list {
  column-count: 2;
  column-gap: 24px;
  margin-top: 10px;
  margin-left: 20px;
}

.job__list-item {
  break-inside: avoid;
  margin-bottom: 6px;
}

.project {
  margin-bottom: 20px;
}

.project_compact {
  padding-top: 12px;
  border-top: 1px solid var(--accent-color-silver);
}

.project_standalone {
  margin-bottom: 22px;
  padding: 20px;
  border-left: 3px solid var(--accent-color);
  border-radius: 0;

  background-color: #fafdff;
  box-shadow: 0 4px 12px rgb(15 76 129 / 5%);
}

.project_standalone.project_compact {
  padding-top: 20px;
  border-top: 0;
}

.project__header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 12px;
}

.project__links {
  display: inline-flex;
  gap: 4px;
}

.project__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
}

.project__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  align-items: flex-start;
}

.project__tasks-label,
.project__stack-label {
  font-weight: 600;
  color: #152c43;
}

.project__list {
  column-count: 2;
  column-gap: 22px;
  margin-top: 8px;
  margin-left: 18px;
}

.project__list-item {
  break-inside: avoid;
  margin-bottom: 6px;
}

.project__stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project__repo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 4px;
  border: 1px solid transparent;
  border-radius: 999px;

  color: var(--accent-color);
  text-decoration: none;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.project__repo-link:hover {
  border-color: var(--accent-color-light);
  background-color: var(--accent-color-soft);
}

.project__repo-icon {
  display: block;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
}

.tech-stack__item {
  padding: 5px 12px;
  border-radius: 15px;

  font-size: 0.85rem;
  color: white;

  background-color: var(--accent-color-dark);
}

.link {
  color: var(--accent-color);
  text-decoration: none;
  word-break: break-all;
}

.link:hover {
  text-decoration: underline;
}

.education {
  margin-bottom: 15px;
  padding: 15px;
  border-radius: 8px;
  background-color: var(--accent-color-soft);
}

.education__year {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--accent-color);
}

.education__title {
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: #333;
}

.education__department {
  margin-bottom: 5px;
}

.education__specialty {
  margin-bottom: 5px;
}

.education__specialty-label {
  font-weight: bold;
}

.education__location {
  font-style: italic;
}

.education__subtitle {
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.3rem;
  color: #333;
}

@media (width <= 768px) {
  .header__content {
    flex-direction: column;
    text-align: center;
  }

  .header__title {
    font-size: 2rem;
  }

  .main {
    padding: 20px;
  }

  .job__header {
    flex-direction: column;
  }

  .job__period {
    margin-top: 5px;
    text-align: left;
  }

  .about__intro-card,
  .about-card,
  .about__previous {
    padding: 18px;
  }

  .project__header {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .job__list,
  .project__list {
    column-count: 1;
  }
}
