.content-CompliteProject {
  margin-top: 10%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px 80px;
  padding: 40px;
}

.content-ProfileHighlight { 
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px 80px;
  padding: 40px;
}

.content-Education {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0px 80px;
  padding: 40px;
}

.skills-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 80px;
}

.education-certification {
  display: grid;
  grid-row: 2;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr ;
  gap: 20px;
}


.education-achievements {
  color: #959595;
  font-family: Lato;
  font-size: 0.5em;
  word-spacing: 8px;
  line-height: 1.5;
  padding-top: 5%;
  align-items:start;
  text-align:start;

}

.education-achievements p {
  text-align: left;
  font-weight: bold;

}

.education-achievements ul {
  display: inline-block;
  text-align: left;
  margin: 0 auto;
}


.education-title{
  font-family: Preahvihear;
  font-weight: 0;
  font-size: 1em;
  margin-bottom: 5%;
}

.education-left {
  display: flex;
  flex-direction: column;
  align-items: start;
  margin-left: 10%;
}

.education-image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.img-certificade-1,
.img-certificade-2,
.img-certificade-3,
.img-certificade-4 {
  border-radius: 5px;

}

.img-certificade-1:hover,
.img-certificade-2:hover,
.img-certificade-3:hover,
.img-certificade-4:hover {
  box-shadow: 0 0 20px 5px rgba(0, 123, 255, 0.7);
  transition: box-shadow 0.3s ease;
}

.arrow img {
  height: 220px;
  transform: translate(110px, -400px);
}

.skill-item{ text-align:center; }

.skill-name{
  margin-top:30px;
  text-align: center;
  font-size: 0.8em;;
  font-family:Lato;
  color:#959595;
}


.skills-right{ 
  display:flex; justify-content:center; 
}


.skills-right button {
  margin-top: 5%;
  padding: 13px 50px;
  border-radius: 8px;
  background-color: #2C1250;
  border-color: #693B93;
  color: white;
  font-weight: bold;
  font-family: Lato;
  font-size: 0.6em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease;;
}


.skills-right .intro-about{
  max-width: 900px;
  color: #959595;
  font-family: Lato;
  font-size: 0.7em;
  padding-top: 1%;
  padding-right: 10%;
  word-spacing: 8px;
  line-height: 1.5;
}

.skills-left img {
   max-width:90%
}

.skills-center {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.skills-left {
  padding: 50px;
  border-radius: 30px;
}
.skills-image{ max-width:65%; height:auto; }

@media (max-width: 700px){
  .content-CompliteProject{ grid-template-columns: 1fr; }
  .skills-image{ max-width:300px; }
}




 /* ✅ Стили для модалки */
  .modal {
    display: none; /* скрыто по умолчанию */
    position: fixed;
    z-index: 4000;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
  }

  .modal-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: calc(100dvh - 96px);
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(207, 53, 53, 0.5);
    animation: zoom 0.3s;
  }

  @keyframes zoom {
    from {transform: scale(0.7);}
    to {transform: scale(1);}
  }

  .close {
    position: absolute;
    top: 20px;
    right: 35px;
    border: 0;
    background: transparent;
    line-height: 1;
    padding: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
  }

  .close:hover {
    color: red;
  }

  .education-certification img {
    cursor: pointer;
    transition: transform 0.2s;
  }

  .education-certification img:hover {
    transform: scale(1.05);
  }



/* Ноутбуки: размеры и отступы только двух указанных секций. */
@media (min-width: 1024px) and (max-width: 1920px) {
  .content-CompliteProject {
    --skill-size: clamp(112px, 10.5vw, 190px);
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
    gap: clamp(32px, 4vw, 64px);
    padding: 40px 0;
  }

  .content-CompliteProject > .skills-left,
  .content-ProfileHighlight > .skills-left {
    min-width: 0;
    padding: 0;
  }

  .content-CompliteProject > .skills-right,
  .content-ProfileHighlight > .skills-right {
    min-width: 0;
  }

  .content-CompliteProject .skills-grid {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px clamp(16px, 2vw, 32px);
  }

  .content-CompliteProject .skills-grid .progress {
    width: var(--skill-size);
    height: var(--skill-size);
  }

  .content-CompliteProject .skills-grid .progress .inner {
    width: calc(var(--skill-size) - 10px);
    height: calc(var(--skill-size) - 10px);
  }

  .content-CompliteProject .skills-grid .progress .inner .percent {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: clamp(30px, 3.5vw, 60px);
  }

  .content-CompliteProject .skill-name {
    margin-top: 24px;
    font-size: clamp(16px, 1.4vw, 22px);
  }

  .content-CompliteProject > .skills-right .skills-image {
    display: block;
    width: 100%;
    max-width: 400px;
    max-height: 560px;
    height: auto;
    object-fit: contain;
  }

  .content-ProfileHighlight {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    gap: clamp(20px, 3vw, 40px);
    padding: 40px 0;
  }

  /* Стрелка и её колонка не отображаются на ноутбуках. */
  .content-ProfileHighlight .center-Image {
    display: none;
  }

  .content-ProfileHighlight .skills-left-wrapper,
  .content-ProfileHighlight .skills-right-wrapper {
    width: 100%;
    min-width: 0;
  }

  .content-ProfileHighlight .skills-left-wrapper {
    display: flex;
    justify-content: center;
  }

  .content-ProfileHighlight .skills-image {
    display: block;
    width: 100%;
    max-width: 370px;
    max-height: 520px;
    height: auto;
    object-fit: contain;
  }

  .content-ProfileHighlight .arrow img {
    display: block;
    width: 100%;
    height: auto;
    transform: none;
  }

  .content-ProfileHighlight .skills-right .intro-about {
    padding: 0;
    font-size: clamp(16px, 1.4vw, 20px);
    word-spacing: normal;
    line-height: 1.6;
  }

  .content-Education {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 4vw, 64px);
    padding: 40px 0;
  }

  .content-Education .education-left {
    min-width: 0;
    margin-left: 0;
  }

  .content-Education .education-certification {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-Education .education-certification img {
    max-width: 100%;
    height: auto;
  }

  .content-Education .education-image .skills-image {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: clamp(520px, 42vw, 760px);
    object-fit: contain;
  }

  .content-ProfileHighlight .skills-right button {
    margin-top: 24px;
    padding: 13px 32px;
    font-size: 16px;
  }
}
