.page {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #121212;
  color: #e0e0e0;
  line-height: 1.6;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #1e1e1e;
  padding: 1rem;
  text-align: center;
  border-bottom: 2px solid #333;
  z-index: 1000;
}

.header__title {
  margin: 0.2rem 0;
  color: #ffffff;
}

.header__subtitle {
  margin: 0;
  font-size: 1.2rem;
  color: #bbbbbb;
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.nav__item {
  margin: 0 0.8rem;
}

.nav__link {
  color: #4fc3f7;
  text-decoration: none;
}

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

.main {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
  padding-top: 165px;
}

.layout {
  display: grid;
  grid-template-columns: 2fr 4fr;
  gap: 2rem;
  margin: 2rem auto;
  padding: 0 1rem;
}

.layout__left,
.layout__right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

.section {
  background: #1e1e1e;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  margin-bottom: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  scroll-margin-top: 175px;
}

.section:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.section__title {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: #ffffff;
  border-bottom: 2px solid #333;
  padding-bottom: 0.3rem;
}

.section__text {
  font-size: 1rem;
  line-height: 1.5;
  color: #e0e0e0;
}

.list {
  list-style: square;
  padding-left: 1.5rem;
  margin: 0;
}

.list__item {
  margin-bottom: 0.5rem;
}

.list__item a {
  color: #4fc3f7;
  text-decoration: none;
}

.list__item a:hover {
  text-decoration: underline;
}

.contacts__avatar {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.contacts__avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ccc;
}

.code__block {
  background: #0f0f0f;
  color: #e0e0e0;
  padding: 1rem;
  border-radius: 8px;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.9rem;

  max-width: 100%;
  box-sizing: border-box;

  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
}
.footer {
  background: #1e1e1e;
  border-top: 2px solid #333;
  width: 100%;
}

.footer__container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

@media (max-width: 450px) {
  .footer__container {
    flex-direction: column;
  }
}

.footer__logo {
  width: 60px;
  height: auto;
}

.footer__text {
  margin: 0;
  color: #e0e0e0;
  font-size: 0.9rem;
}

.footer__github-logo {
  width: 20px;
  height: auto;
}

.footer__github-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #4fc3f7;
  text-decoration: none;
  font-size: 0.9rem;
}

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