* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
}


body {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  background: #E2E6EE;
  
}

.header {
  width: 100%;
  padding: 15px 50px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-bottom: -1px;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 40px;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: #1C5195;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  text-decoration: none;
}

.nav-menu a:hover {
  color: #E56ED8;
  transition: 0.3s;
}


.container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  min-height: 1000px;
  background: #E1E7FE;
  margin: 50px;
  box-shadow: 0 35px 35px rgba(0, 0, 0, 0.1);
  
}

.top {
  position: relative;
  width: 100%;
  height: 400px;
  background: linear-gradient(30deg,#E56ED8,#1C5195);
  padding: 50px;
}

h1 {
  font-size: 2em;
  color: #fff;
  text-transform: uppercase;
  line-height: 0.7em;
  letter-spacing: 0.1em;
}

h1 span {
  font-size: 0.4em;
  font-weight: 500;
}

.group {
  position: relative;
  display: grid;
  gap: 40px;
  width: 100%;
  grid-template-columns: 2fr 3fr;
  margin-top: 20px;
}

.group .avatar {
  position: relative;
  width: 100%;
}

.group .avatar img {
  width: 100%;
}

.group p {
  color: #fff;
  font-size: 1.2em;
}

.bottom {
  position: relative;
  display: grid;
  margin: 50px 50px 20px;
  gap: 40px;
  grid-template-columns: 2fr 3fr;
}

.bottom .left_side {
  margin-top: 50px;
}

h2 {
  font-size: 1.5em;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #fff;
  background: linear-gradient(30deg,#E56ED8,#1C5195);
  font-weight: 600;
  padding: 0 15px;
  margin-top: 40px;
  display: inline;
}

.contact {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin: 20px 0;
}

.contact li {
  list-style: none;
  display: flex;
  gap: 10px;
}

.contact li .icon {
  color: #1C5195;
}

.languages {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 20px 0;
}

.languages-list {

  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.languages-list .flag_ru,
.languages-list .flag_en {
  display: inline-block;      
  width: 28px;
  height: 19px;
  background-repeat: no-repeat;
  background-size: contain;
  margin-right: 6px;
}

.languages-list .flag_ru {
  background-image: url("assets/img/flag_ru.png");
}

.languages-list .flag_en {
  background-image: url("assets/img/flag_en.png");
}

.about {
  position: relative;
  width: 100%;
  display: flex;
  margin: 20px 0;
  line-height: 2em;
}

.adjustMargin {
  margin-top: -10px;
}

.edu_group {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 20px 0;
}

.edu_groupBx {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 3fr;
}

.edu_groupBx p:nth-child(1) {
  font-weight: 500;
}

.edu_groupBx b {
  font-weight: 600;
  color: #1C5195;
}

.edu_groupBx b span {
  position: relative;
  top: -2px;
  font-size: 0.8em;
  color: #666;
}

.skills {
  padding: 0 10px 10px;
}

.skills ul {
  display: flex;
  margin-top: 30px;
  gap: 20px;
  justify-content: center;
}

.skills ul li {
  list-style: none;
  color: #333;
  width: calc(100% / 6);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: #f3f3f3;
  text-align: center;
  cursor: pointer;
}

.skills ul li:hover {
  background: #1C5195;
  color: #fff;
}

.skills ul li i {
  font-size: 1.5em;
}

.code {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 0;
}

.code pre {
  background: #929bbf;
  color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.5;
}

.code code {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}


.footer {
  width: 100%;
  padding: 20px 20px;
  background: #f8f9fa;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  border-top: 1px solid #e0e0e0;
  margin-top: 0;
}


.footer-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1C5195;
  text-decoration: none;
  font-weight: 500;
  padding: 0;
  white-space: nowrap;
}


.footer-link i {
  font-size: 1.4em;
}

.footer-link:hover { color: #E56ED8; }

.rs-logo { height: 30px; width: auto; }

.footer-year {
  margin: 0 20px;
  color: #666;
  font-weight: 600;
  font-size: 1.1em;
}

