:root {
  --bg-color: #F0F0F0;
}

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

body {
  margin: 1rem 1.5rem;
  font-family: 'Poppins', sans-serif;
  background: #ffffff;
  color: #000;
}

.profile-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
  height: 100%;
  gap: 0.5rem;
}


.profile-img figure{
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.intro {
  width: 20%; 
  display: flex;
  flex-direction: column;
  /* height: 100%; */
  gap: 0.5rem;
}

.profile-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center; 
  padding: 0.5rem;
  height: 100%;
  background-color: var(--bg-color);
  border-radius: 0.5rem;
}

.profile-info p:first-child {
  margin-bottom: auto; /* занимает всё свободное пространство снизу */
}

/* Имя и последний параграф — внизу */
.profile-info h4,
.profile-info p:last-child {
  margin: 0;
}

.profile-info h4 {
  font-size: 14px;
  margin: 1.8rem 0 0.2rem;
  font-weight: 600;
}

.profile-info p {
  font-size: 12px;
  font-weight: 500;
}

.dl-btn {
  width: 100%;
  padding: 0.5rem;
  background-color: var(--bg-color);
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
}

.dl-btn:hover {
  background-color: #28D979;
  color: #fff;
}

.languages {
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: var(--bg-color);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
}

.languages h4 {
  font-size: 1rem;
  font-weight: 500;
}

.languages ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.languages li {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.languages li p {
  flex: 0.5;
  font-size: 0.8rem;
  font-weight: 500;
  margin: 0;
}

/* .languages li meter {
  flex: 1.5;
  height: 1rem;
  border-radius: 0.2rem;
  overflow: hidden;
  border-radius: 0.2rem;
  border: none;
  appearance: none;
  background: var(--bg-color);
}

.languages li meter::-moz-meter-bar {
  background: #28D979;
  border-radius: 0.2rem;
} */

.custom-meter {
  flex: 1.5;
  /* align-self: flex-end; */
  height: 1rem;
  border-radius: 0.3rem;
  overflow: hidden;
  /* border-radius: 0.2rem; */
  border: none;
  background: var(--bg-color);
  overflow: hidden;
}
.custom-meter .fill {
  background-color: #28D979;
  height: 100%;
  width: 0%;
  border-radius: 0.3rem;
}

main {
  margin-top: 1rem;
  display: flex;
  align-items: stretch; /* чтобы дети тянулись на всю высоту */
  gap: 1.5rem; /* расстояние между блоками */
}

.exp-list {
  flex: 1;
  width: 70%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: var(--bg-color);
  padding: 1rem;
  border-radius: 0.5rem;
  font-size: 10px;
}

.exp-list h2 {
  font-size: 1rem;
  font-weight: 500;
}

.exp-item {
  background: #fff;
  padding: 0.5rem;
  border-radius: 0.5rem; 
}

.exp-item[data-highlight="true"]{
  background: #28D979;
  color: #fff;
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.exp-header {
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

.exp-header span {
  padding: 0.2rem 0.5rem;
  background-color: rgba(126, 115, 18, 0.4);
  color: rgba(221, 241, 99, 1);
  border-radius: 2rem;
}

.desc {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  align-items: flex-start;
}

.job {
  width: 40%;
  min-width: 120px;
  margin-right: 1rem;
  display: flex;
  flex-direction: column;
}

.job h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
}

.exp-duties {
  width: 65%;
  display: flex;
  flex-direction: column;
  
}

.tools-list {
  width: 20%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1.2rem;
  background-color: var(--bg-color);
  padding: 1rem 1rem 0.5rem;
  border-radius: 0.5rem;
}

.tools-list h2 {
  align-self: start;
  font-size: 14px;
  font-weight: 500;
}

.tool-item {
  width: 100%;
  
  position: relative;
  background: #fff;
  padding: 1.5rem 0.5rem 1rem; /* сверху оставим место под метку */
  border-radius: 0.5rem;
  text-align: center;
}

.tool-item p {
  position: absolute;
  top: -0.6rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: #000;
  color: #fff;
  font-size: 0.5rem;
  font-weight: 500;
  padding: 0.2rem 0.75rem;
  border-radius: 9999px; /* full rounded */
  z-index: 2;
  white-space: nowrap;
}

.icons {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* два столбца одинаковой ширины */
  gap: 0.5rem; /* расстояние между иконками */
  justify-items: center; /* выравнивание по центру внутри ячеек */
}

.icons img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.education {
  width: 100%;
  height: 100%;
  /* margin-top: 1rem; */
  padding: 0.75rem;
  background-color: var(--bg-color);
  border-radius: 1rem;
}

.education h2 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 1rem;
}

.edu-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* flex-wrap: wrap; */
  gap: 1rem;
}

.edu-item {
  /* width: calc(40% - 0.5rem); */
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  background-color: #fff;
  border-radius: 0.8rem;
  padding: 0.5rem;
}

.edu-period {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* gap: 8rem; */
  width: 100%;
}

.edu-item[data-highlight="true"] {
  background-color: #28D979;
  color: #fff;
}

.edu-period time {
  font-size: 12px;
  font-weight: 500;
}

.edu-desc {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.edu-desc h3 {
  font-size: 12px;
  font-weight: 500;
}

.edu-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem;
  /* margin: 0.1rem 0; */
  padding: 0;
  list-style: none;
}

.edu-tags li {
  /* background-color: #e5f5f1; */
  color: #007f6d;
  padding-right: 0.2rem;
  /* border-radius: 0.5rem; */
  font-size: 0.6rem;
}

.edu-item[data-highlight="true"] .edu-tags li {
  color: #ffffff;
}

.edu-desc p {
  font-size: 10px;
  font-weight: 400;
  margin-top: 0.5rem;
}

footer {
  display: flex;
  align-items: stretch; /* это ключевая строчка */
  gap: 1.25rem;
  height: auto;
  padding: 1rem 0;
}

.left-side {
  width: 50%;
  display: flex;
  flex-direction: column;
}

.right-side {
  width: 50%;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.interests {
  width: 100%;
  /* margin: 1rem 0; */
  padding: 0.75rem;
  background-color: var(--bg-color);
  border-radius: 1rem;
}

.interests h2 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 1rem;
}

.int-list ul{
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.1rem 0;
  padding: 0;
  list-style: none;
}

.int-list li {
  background-color: #fff;
  color: #000;
  padding: 0.65rem;
  border-radius: 2rem;
  font-size: 0.7rem;
}

.contact {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: 1.5rem;
  width: 100%;
  height: auto;
  padding: 0.75rem;
  background-color: #000;
  color: #fff;
  border-radius: 1rem;
}

.contact h3 {
  font-size: 1rem;
  font-weight: 500;
}

.contact p {
  font-size: 0.8rem;
  font-weight: 400;
}

[contenteditable="true"]:focus {
  background-color: #74ac9c;
  transition: background-color 0.3s;
}
