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

html {
  scrollbar-color: #161648 rgb(4, 1, 18);
  width: 100%;
}

body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden; 
  overflow-y: scroll;
  scroll-behavior: smooth;
  background: #000812;
  background: linear-gradient(
    90deg,
    #020223 0%,
    #040019 100%
  );
  background-attachment: fixed; 

}
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  transition: top 0.27s ease-in-out;
}

.header-container {
  display: flex;
  align-items: center;           
  justify-content: space-between;
  width: 100%;
  padding: clamp(9px, 1.8vh, 18px) clamp(9px, 4.5vw, 18px);
  background: transparent;
}

.logo {
  display: inline-flex;
  align-items: center;
  margin-left: clamp(7.2px, 4.5vw, 72px);
  gap: clamp(3.6px, 0.9vw, 7.2px);
}

.logo img {
  display: block;      
  align-self: center;    
  height: clamp(25.2px, 4.5vw, 36px);
  transform: translateY(-1.8px);
  width: auto;
}

.logo span {
  font-size: clamp(12.6px, 2.25vw, 14.4px);
  font-weight: bold;
  color: #e5e5e5;
  line-height: 1;
}

.nav-menu {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: clamp(18px, 5.4vw, 45px);
  padding: 0;                  
}
.nav-menu a {
  font-size: clamp(10.8px, 1.8vw, 13.5px);
  color: #c9c9c9;
  font-weight: bold;
  text-decoration: none;
  padding: clamp(3.6px, 0.9vh, 5.4px) clamp(7.2px, 0.9vw, 10.8px);
  transition: color 0.27s ease, text-shadow 0.27s ease;
}
.nav-menu a:hover {
  color: #ffffff;
 
}
.profile-container {
  display: flex;
  align-items: center;
  margin-left: clamp(21.6px, 3.6vw, 43.2px);
  margin-right: clamp(0.9rem, 4.5vw, 1.8rem);
  gap: clamp(7.2px, 0.9vw, 14.4px);
}
.profile-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(72px, 13.5vw, 108px);
  height: clamp(31.5px, 4.5vh, 45px);
  padding: 0 clamp(12.6px, 2.7vw, 18px);
  font-size: clamp(12.6px, 1.8vw, 14.4px);
  font-weight: 600;
  background: rgba(157, 150, 255, 0.15);
  backdrop-filter: blur(7.2px);
  border: 1px solid rgba(157, 150, 255, 0.6);
  border-radius: 9px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.27s ease;
}
.profile-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: inherit;
  pointer-events: none;
}
.profile-btn::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 45%;
  background: linear-gradient(to left, #9D96FF, transparent);
  filter: blur(10.8px);
  opacity: 0.3;
  pointer-events: none;
  transition: opacity 0.36s ease, filter 0.36s ease;
}
.profile-btn:hover {
  background: rgba(157, 150, 255, 0.25);
  backdrop-filter: blur(18px);
  border-color: rgba(157, 150, 255, 0.8);
}
.profile-btn:hover::before {
  opacity: 0.9;
  filter: blur(14.4px);
}
.profile-btn:active {
  transform: translateY(1.8px);
}

.lang-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(36px, 5.4vw, 54px);
  height: clamp(27px, 3.6vh, 36px);
  padding: clamp(3.6px, 0.9vh, 5.4px) clamp(5.4px, 0.9vw, 9px);
  font-size: clamp(9px, 0.9vw, 10.8px);
  font-weight: 600;
  color: #eaeaea;
  background: rgba(157, 150, 255, 0.15);
  backdrop-filter: blur(7.2px);
  border: 1px solid rgba(157, 150, 255, 0.6);
  border-radius: 9px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.27s ease;
}
.lang-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: inherit;
  pointer-events: none;
}
.lang-btn::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 45%;
  background: linear-gradient(to left, #9D96FF, transparent);
  filter: blur(10.8px);
  opacity: 0.3;
  pointer-events: none;
  transition: opacity 0.36s ease, filter 0.36s ease;
}
.lang-btn:hover {
  background: rgba(157, 150, 255, 0.25);
  backdrop-filter: blur(9px);
  border-color: rgba(157, 150, 255, 0.8);
  color: #fff;
}
.lang-btn:hover::before {
  opacity: 0.9;
  filter: blur(14.4px);
}
.lang-btn:active {
  transform: translateY(1.8px);
}

/*** 3. HERO SECTION***/
.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: clamp(5.4rem, 13.5vh, 9rem);
  padding: 0 clamp(1.8rem, 4.5vw, 3.6rem);
}
.hero-container h1 {
  font-size: clamp(1.35rem, 4.5vw, 2.7rem);
  max-width: clamp(270px, 72vw, 675px);
  margin-bottom: 9px;
  color: #e5e5e5;
}
.hero-container p {
  max-width: clamp(252px, 63vw, 450px);
  font-weight: 400;
  font-size: clamp(0.9rem, 2.25vw, 0.9rem);
  color: #e4e4e4;
  margin-bottom: 13.5px;
}

.hero-container .primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  /* размеры прежние */
  font-size: clamp(0.9rem, 2.25vw, 1.0125rem);
  padding: clamp(7.2px, 1.35vw, 10.8px) clamp(14.4px, 2.7vw, 27px);
  margin-top: clamp(4.5px, 0.9vw, 4.5px);

  /* текст */
  color: #fff;
  text-decoration: none;
  font-weight: bold;

  /* glassmorphism-фон в светло-лиловых тонах */
  background: rgba(157, 150, 255, 0.15);
  backdrop-filter: blur(7.2px);

  /* тонкая рамка того же оттенка */
  border: 1px solid rgba(157, 150, 255, 0.6);
  border-radius: 10.8px;

  /* лёгкая лиловая тень */


  cursor: pointer;
  transition:
    background 0.27s ease,
    border-color 0.27s ease,
    box-shadow 0.27s ease,
    transform 0.18s ease,
    color 0.27s ease;
}

.hero-container .primary:hover {
  /* чуть более насыщенный фиолетовый фон и тень */
  background: rgba(157, 150, 255, 0.25);
  transform: translateY(-1.8px) scale(1.03);
  color: #fff;
}

.hero-container .primary:active {
  transform: translateY(0) scale(0.95);
}
.carousel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
  margin-top: clamp(2.7rem, 7.2vh, 5.4rem); 
}
.carousel {
  width: 100%;
  scroll-behavior: smooth;
  padding: 18px 0;
}
.carousel-track {
  display: flex;
  gap: clamp(18px, 4.5vw, 27px);
  transition: transform 0.5s ease-in-out;
}

.template {
  text-align: center;
  width: clamp(180px, 22.5vw, 234px);
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14.4px 16.2px;
  background: rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(27px) saturate(150%);
  -webkit-backdrop-filter: blur(27px) saturate(150%);
  border-radius: 16.2px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.15),
    0 9px 22.5px rgba(0, 0, 0, 0.2),
    0 3.6px 7.2px rgba(255, 255, 255, 0.05);
  transition: all 0.27s ease-in-out;
}
.template img {
  width: 100%;
  height: auto;
  border-radius: 7.2px;
  border: 1.8px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0px 3.6px 10.8px rgba(255, 255, 255, 0.03);
  transition: all 0.27s ease-in-out;
}
.template:hover {
  background: linear-gradient(145deg, rgba(200, 150, 255, 0.12), rgba(255, 200, 255, 0.1));
  border-color: rgba(200, 150, 255, 0.5);
  box-shadow: 0px 9px 18px rgba(200, 150, 255, 0.15);
  transform: translateY(-1.8px);
}
.template:hover img {
  border-color: rgba(200, 150, 255, 0.4);
  box-shadow: 0px 5.4px 13.5px rgba(200, 150, 255, 0.2);
}
.template a {
  display: inline-flex;
  align-items: center;
  margin-top: clamp(1.8rem, 3.6vw, 2.7rem); /* или оставьте 8px, если нужно точно */
  padding: 0.675rem 1.125rem;            /* 12px–20px */
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 10.8px;
  backdrop-filter: blur(9px);
  color: #fff;                         /* либо inherit, если нужно */
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  position: relative;
}

.template a:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-1.8px);
}

button.prev,
button.next {
  z-index: 9999;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(32.4px, 7.2vw, 50.4px);
  height: clamp(32.4px, 7.2vw, 50.4px);
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #14082f, #4f31e3);
  background-size: 200% auto;
  display: flex;
  align-items: center;
  justify-content: center;
  /* убираем общую font-size => задаём только в ::before */
  color: #fff;
  box-shadow: 0 3.6px 10.8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: 
    transform 0.18s ease,
    box-shadow 0.27s ease,
    background-position 0.36s ease;
}

button.prev {
  left: clamp(10.8px, 3.6vw, 21.6px);
  font-size: 18px;
}

button.next {
  right: clamp(10.8px, 3.6vw, 21.6px);
  font-size: 18px;
}

button.prev:hover,
button.next:hover {
  background-position: right center;
  transform: translateY(-50%) scale(0.99);
  box-shadow: 0 5.4px 18px rgba(144, 100, 255, 0.4);
}

@media (max-width: 921.6px) {
  button.prev {
    left: clamp(6.48px, 3.24vw, 12.96px);
  }
  button.next {
    right: clamp(6.48px, 3.24vw, 12.96px);
  }
}

@media (max-width: 600px) {
  button.prev,
  button.next {
    display: none;
  }
}

/** 5. COURSES SECTION***/
.courses-container {
  margin-top: clamp(4.5rem, 22.5vh, 18rem);
  padding-left: clamp(1.8rem, 5.13vw, 9rem);
}
.courses-container h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.7rem);
  font-weight: bold;
  max-width: 720px;
  text-align: left;
  color: #ffffff;
  margin-bottom: 0.9rem;
}
.courses-container p {
  display: flex;
  font-size: clamp(0.72rem, 2.7vw, 0.81rem);
  color: #cdcdcd;
  max-width: 630px;
}
.courses-container .btn {
  font-size: clamp(0.675rem, 1.8vw, 0.9rem);
  background-image: linear-gradient(to right, #8c84fa 0%, #e77dfd 51%, #9595ff 100%);
  background-size: 200% auto;
  color: white;
  padding: clamp(7.2px, 1.8vw, 10.8px) clamp(14.4px, 2.7vw, 21.6px);
  border-radius: 9px;
  cursor: pointer;
  border: none;
  font-weight: 600;
  transition: 0.5s ease-in-out, transform 0.2s ease;
}
.courses-container .btn:hover {
  background-position: right center;
  transform: scale(1.05);
}
.courses-container .btn:active {
  transform: scale(0.95);
}
.price-tag {
  display: inline-block;
  cursor: pointer;
  margin-top: 18px;
  margin-left: 18px;
  padding: 10.8px 21.6px;
  background-image: linear-gradient(to right, #8c84fa 0%, #e77dfd 51%, #9595ff 100%);
  background-size: 200% auto;
  color: white;
  font-size: clamp(0.9rem, 2.25vw, 1.0125rem);
  font-weight: 500;
  font-size: 14.4px;
  border: none;
  border-radius: 9px;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  box-shadow: 0 0 18px rgba(0, 12, 64, 0.15);
  transition: background-position 0.5s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.price-tag:hover {
  background-position: right center;
  transform: scale(1.04);
  box-shadow: 0 0 21.6px rgba(0, 12, 64, 0.3);
}
.price-tag:active {
  transform: scale(0.95);
  box-shadow: 0 0 12.6px rgba(0, 12, 64, 0.4);
}
.abstract {
  position: absolute;
  top: clamp(8.1vh, -18vh, -13.5vh);
  right: clamp(2.7vw, 2.7vw, 9vw);
  width: clamp(450px, 72vw, 1350px);
  z-index: -1;
  transform: translateX(20%);
}
.plane_bg {
  position: absolute;
  bottom: clamp(90px, 18vh, 180px);
  left: clamp(45px, 13.5vw, 180px);
  width: clamp(135px, 27vw, 225px);
  filter: blur(4.5px);
}
.letter_background {
  position: absolute;
  bottom: clamp(13.5vh, 22.5vh, 31.5vh);
  right: clamp(27vw, 54vw, 72vw);
  width: clamp(90px, 22.5vw, 180px);
  filter: blur(4.5px);
}
.ellipse-1 {
  position: absolute;
  width: clamp(180px, 27vw, 460.8px);
  height: clamp(270px, 45vh, 589.5px);
  left: clamp(36vw, 99vh, 135vw);
  top: clamp(90px, 18vh, 270px);
  z-index: -2;
  background: rgba(16, 124, 255, 0.321);
  filter: blur(72px);
}
.ellipse-2 {
  position: absolute;
  width: clamp(225px, 31.5vw, 517.5px);
  height: clamp(315px, 45vh, 611.1px);
  left: clamp(36vw, 855px, 90vw);
  top: clamp(18vh, 36vh, 54vh);
  z-index: -3;
  background: rgba(119, 67, 209, 0.2);
  filter: blur(72px);
}
.ellipse-3 {
  position: absolute;
  width: clamp(180px, 36vw, 498.6px);
  height: clamp(360px, 54vh, 601.2px);
  left: clamp(45vw, 1080px, 1260px);
  top: clamp(90px, 22.5vh, 270px);
  z-index: -4;
  background: #63047a77;
  filter: blur(90px);
}
.optimize {
  margin-top: 135px;
  width: 100%;
}
.border {
  max-width: 1800px;
  margin: 0 auto;
  padding: clamp(2.7rem, 7.2vw, 5.4rem) clamp(0.9rem, 2.7vw, 3.6rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  background: radial-gradient(
    circle at top left,
    #060032 10%,
    #0e0b25 60%,
    #09011f 100%
  );
  border-radius: 45px;
}
/*---------------------------------------------
  2. Левая часть: текст + upload
---------------------------------------------*/
.optimize-text {
  flex: 1 1 270px;
  max-width: 40%;
  margin-left: clamp(1.8rem, 9vw, 10.8rem);
}
.optimize-text h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.16rem);
  color: #e4e4e4;
  margin-bottom: 0.9rem;
}
.optimize-text p {
  margin-top: clamp(0.9rem, 1.8vw, 1.8rem);
  font-size: clamp(0.9rem, 2.25vw, 1.08rem);
  color: #e4e4e4;
}

/*---------------------------------------------
  3. Upload-блок
---------------------------------------------*/
.upload-card {
  display: inline-flex;
  align-items: center;
  margin-top: clamp(1.8rem, 3.6vw, 2.7rem);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.675rem 1.125rem;
  border-radius: 10.8px;
  backdrop-filter: blur(9px);
  cursor: pointer;
  transition: background 0.27s, transform 0.18s;
  position: relative;
}
.upload-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-1.8px);
}

/* общие иконки */
.upload-card svg {
  flex-shrink: 0;
  width: 21.6px;
  height: 21.6px;
  color: #fff;
}
.upload-icon {
  margin-right: 0.675rem;
}
.upload-text {
  font-size: 0.9rem;
  color: #e4e4e4;
  font-weight: 500;
}

/* иконка «галочка» по умолчанию скрыта */
.upload-success {
  display: none;
  margin-left: 0.675rem;
  color: #4ade80; /* нежно-зелёный */
}

/* если input заполнен — показать галочку */
.upload-card input:valid ~ .upload-success {
  display: inline-block;
  color: #4a63de;
}

/*---------------------------------------------
  4. Правая часть: карточки
---------------------------------------------*/
.optimize-cards {
  flex: 1 1 270px;
  max-width: 40.5%;
  margin-right: clamp(1.8rem, 7.2vw, 10.8rem);
  position: relative;
}
.card {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.2);
  padding: clamp(0.9rem, 1.8vw, 1.35rem);
  border-radius: 7.2px;
  backdrop-filter: blur(12.6px);
  transition: transform 0.27s;
  margin-left: 0;
}
.card:nth-child(2) {
  margin-top: clamp(0.9rem, 2.7vw, 1.8rem);
  margin-left: clamp(1.8rem, 3.6vw, 9rem);
}
.card:nth-child(3) {
  margin-top: clamp(1.8rem, 5.4vw, 1.8rem);
  margin-left: clamp(3.6rem, 7.2vw, 10.8rem);
}
.card:hover {
  transform: translateX(-4.5px);
}
.card .icon {
  flex-shrink: 0;
  width: 43.2px;
  height: 43.2px;
  margin-right: clamp(0.9rem, 1.8vw, 1.8rem);
}
.card .icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: invert(100%);
}
.card h3 {
  margin: 0 0 .25em;
  font-size: clamp(0.9rem, 1.8vw, 1.125rem);
  color: #fff;
}
.card p {
  margin: 0;
  font-size: clamp(0.81rem, 1.35vw, 0.9rem);
  color: #ddd;
}

/*---------------------------------------------
  5. Адаптивность
---------------------------------------------*/
@media screen and (max-width: 1024px) {
  .border { flex-direction: column; align-items: stretch; }
  .optimize-text, .optimize-cards {
    max-width: 100%;
    margin: 0 auto;
  }
  .optimize-text { margin-bottom: 2rem; }
  .optimize-cards { margin-top: 2rem; }
}


.grid {
  color: rgb(255, 255, 255);
  margin-top: clamp(1.8rem, 9vh, 5.4rem);
  text-align: center;
  font-size: clamp(2.7rem, 9vw, 8.1rem);
}
.autoBlur{
  animation: autoBlurAnimation both;
  animation-timeline: view();
}

@keyframes autoBlurAnimation {
  0% {
      filter: blur(18px);
  }
  45%, 55% {
      filter: blur(0px);
  }
  100% {
      filter: blur(18px);
  }
}

/*10. HELP SECTION */
.help-section {
  margin-top: 90px;
  text-align: center;
  padding: 54px 22.5px;
  background: linear-gradient(145deg, #010125, #090037);
  border: 1px solid rgba(96, 92, 226, 0.5);
  border-radius: 21.6px;
  box-shadow:
    0 0 54px rgba(123, 47, 247, 0.15),
    0 18px 54px rgba(0, 0, 0, 0.4);
  transition: all 0.36s ease-in-out;
}

.help-section h2 {
  font-size: clamp(1.575rem, 3.6vw, 2.25rem);
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 36px;
  text-shadow: 0 0 13.5px rgba(255, 255, 255, 0.2);
}

.help-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(234px, 1fr));
  gap: 22.5px;
  justify-content: center;
  align-items: stretch;
  padding: 18px;
}

.help-box {
  background: rgba(255, 255, 255, 0.052);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(139, 92, 226, 0.4);
  border-radius: 16.2px;
  padding: 22.5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow:
    0 3.6px 18px rgba(0, 0, 0, 0.3),
    0 0 10.8px rgba(160, 100, 255, 0.08);
  transition: all 0.27s ease-in-out;
}

.help-box:hover {
  transform: translateY(-5.4px);
  box-shadow:
    0 5.4px 27px rgba(0, 0, 0, 0.4),
    0 0 18px rgba(160, 100, 255, 0.3);
  border-color: rgba(160, 100, 255, 0.5);
}

.help-box img {
  max-width: 63px;
  height: auto;
  margin-bottom: 13.5px;
}

.help-text h3 {
  font-size: clamp(0.9rem, 1.62vw, 1.17rem);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 9px;
  text-shadow: 0 0 7.2px rgba(255, 255, 255, 0.1);
}

.help-text p {
  font-size: clamp(0.765rem, 1.17vw, 0.9rem);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
}

/*** 11. YOUR CV PAGE*****/
.your-cv {
  margin-right: clamp(0.9rem, 4.5vw, 99px);
  margin-top: clamp(1.8rem, 9vh, 5.4rem);
  display: flex; 
  justify-content: center;
  padding: clamp(0.9rem, 4.5vw, 4.5rem);
}
.cv-container {
  width: 100%;
}
.content-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(0.9rem, 2.7vw, 2.7rem);
}

.cv-container h4 {
  font-size: clamp(0.7875rem, 1.35vw, 0.9rem);
  color: #6860db;
}
.cv-container h1 {
  font-size: clamp(1.575rem, 2.7vw, 1.9688rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  max-width: 720px;
  margin-bottom: 18px;
  color: white;
}
.breadcrumbs {
  margin: 9px 0;
}
.breadcrumbs a {
  text-decoration: none;
  color: #6860db;
  transition: color 0.27s ease, background-color 0.27s ease;
}
.breadcrumbs a:hover {
  color: #5a0ec5;
}
.cv-container p {
  font-size: clamp(0.81rem, 1.8vw, 0.72rem);
  max-width: 630px;
  color: #c5c5c5;
  line-height: 1.5;
}

.border-cv {
  margin-top: 18px;
  background: rgba(66, 27, 105, 0.339); /* тёмный стеклянный фон */
  backdrop-filter: blur(12.6px);
  -webkit-backdrop-filter: blur(12.6px);
  padding: clamp(0.9rem, 1.8vw, 1.125rem);
  box-shadow: 0 7.2px 22.5px rgba(0, 0, 0, 0.4);
  border: 3.6px solid transparent;
  border-image-source: linear-gradient(0deg, #d19fffaa, #00c3ffaa);
  border-image-slice: 1;
  animation: borderAnimation 4s infinite linear;
  text-align: center;
  max-width: 315px;
}

.border-cv h3 {
  font-size: clamp(0.9rem, 1.8vw, 1.0125rem);
  font-weight: 600;
  margin-bottom: 4.5px;
  color: #ffffff;
  text-shadow: 0 0 5.4px rgba(255, 255, 255, 0.1);
}

.border-cv p {
  font-size: clamp(0.7875rem, 1.35vw, 0.9rem);
  color: #a7a7a7;
}

.custom-file-upload {
  display: inline-block;
  padding: clamp(0.5625rem, 0.9vw, 0.675rem) clamp(0.9rem, 1.8vw, 1.125rem);
  font-size: clamp(0.7875rem, 1.35vw, 0.9rem);
  font-weight: 600;
  background-image: linear-gradient(to right, #7775a9 0%, #9c6aa6 51%, #6e6e9c 100%);
  color: white;
  border-radius: 7.2px;
  cursor: pointer;
  margin-top: 9px;
  transition: background 0.27s ease, box-shadow 0.27s ease;
  box-shadow: 0 3.6px 13.5px rgba(123, 47, 247, 0.3);
}

.custom-file-upload:hover {
  box-shadow: 0 0 12.6px rgba(248, 205, 218, 0.4);
}

input[type="file"] {
  display: none;
}

@keyframes borderAnimation {
  0% {
    border-image-source: linear-gradient(0deg, #c07dffaa, #687cff);
  }
  25% {
    border-image-source: linear-gradient(0deg, #c07dffaa, #687cff);
  }
  50% {
    border-image-source: linear-gradient(0deg, #c07dffaa, #687cff);
  }
  75% {
    border-image-source: linear-gradient(0deg, #c07dffaa, #687cff);
  }
  100% {
    border-image-source: linear-gradient(0deg, #c07dffaa, #687cff);
  }
}

.img-cv {
  position: relative;
  width: clamp(270px, 45vw, 495px);
  height: clamp(270px, 45vw, 495px);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(0.45rem, 0.9vw, 0.9rem);
  background: rgba(157, 157, 255, 0.1);
  backdrop-filter: blur(13.5px);
  border-radius: 13.5px;
  box-shadow: 0 9px 22.5px rgba(0, 0, 0, 0.15);
  border: 4.5px solid rgba(206, 183, 255, 0.2);
  overflow: visible;
  z-index: 2;
}

.img-cv .ellipse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

.ellipse1,
.ellipse2,
.ellipse3 {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.3;
  z-index: 1;
}

.ellipse1 {
  width: 0px;
  height: 0px;
  background: rgba(7, 114, 255, 0.5); /* сине-голубой */
  top: 0px;
  left: 0px;
}

.ellipse2 {
  width: 0px;
  height: 0px;
  background: rgba(216, 88, 255, 0.45); /* розово-сиреневый */
  top: 0px;
  right: 0px;
}

.ellipse3 {
  width: 0px;
  height: 0px;
  background: rgba(212, 90, 255, 0.4); /* розовато-фиолетовый */
  bottom: 0px;
  left: 0px;
}

.img-cv img {
  position: absolute;
  width: 95%;
  height: 95%;
  object-fit: cover;
  border-radius: 9px;
  transition: opacity 0.5s ease-in-out;
  z-index: 2;
}

.img-cv img.active {
  opacity: 1;
}

.img-cv img:not(.active) {
  opacity: 0;
}
.resume-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 13.5px;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 3;
}
.resume-img.front {
  opacity: 1;
}
.resume-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 13.5px;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 2; /* front */
}
.resume-img.front {
  opacity: 1;
}



@media (max-width: 1600px) {
  .hero-container h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }
  .hero-container p {
    font-size: clamp(0.95rem, 2.2vw, 1.125rem);
  }
  .border h1 {
    font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  }
  .border p {
    font-size: clamp(0.95rem, 2.2vw, 1.125rem);
  }
  .courses-container h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-top: clamp(0rem, 5vh, 2rem);
  }
  .courses-container p {
    font-size: clamp(0.95rem, 2.2vw, 1.125rem);
  }
}

@media (max-width: 1200px) {
  .sertificate {
    top: 0;
    margin-top: 2rem;
    max-width: 400px;
  }
  .hero-container h1 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
  }
  .hero-container p {
    font-size: clamp(0.875rem, 2vw, 1rem);
  }
  .border h1 {
    font-size: clamp(1.3rem, 3vw, 2rem);
  }
  .border p {
    font-size: clamp(0.875rem, 2vw, 1rem);
  }
  .courses-container h1 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
  }
  .courses-container p {
    font-size: clamp(0.875rem, 2vw, 1rem);
  }
}
@media (max-width: 375px){
  button.prev, 
    button.next {
      top: 30%;
    }
}

@media (max-width: 768px) {
    button.prev, 
    button.next {
      top: 50%;
    }
  .hero-container h1 {
    font-size: clamp(1.4rem, 4.5vw, 2rem);
    max-width: 800px;
  }
  .hero-container p {
    font-size: clamp(0.8rem, 3vw, 0.95rem);
    max-width: 800px;
  }
  .border h1 {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
  }
  .border p {
    font-size: clamp(0.8rem, 3vw, 0.95rem);
  }
  .courses-container h1 {
    font-size: clamp(1.8rem, 6vw, 5rem);
    max-width: 800px;
  }
  .courses-container p {
    font-size: clamp(1rem, 3vw, 0.95rem);
  }
  .hero-container .primary {
    font-size: clamp(0.5rem, 2vw, 0.95rem);
    padding: clamp(4px, 1vw, 8px) clamp(10px, 2vw, 15px);
  }
  .cv-container{
    margin-left: 30px;
  }
  .cv-container h1 {
    font-size: clamp(0.7rem, 4.5vw, 2.75rem);
    max-width: 800px;
  }
  .cv-container p {
    font-size: clamp(0.6rem, 2vw, 2rem);
  }
  .img-cv {
    margin-left: 20px;
    margin: 0px auto 2rem 0px;
    width: clamp(220px, 48vw, 700px);
    height: clamp(190px, 48vw, 700px);
    object-fit: cover;
  }
  .border-cv h3,
  .cv-container h4,
  .border-cv p {
    font-size: clamp(0.8rem, 1vw, 1.7rem);
    max-width: 200px;
    max-height: 200px;
  }
  .breadcrumbs {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 2px;
  }
  .breadcrumbs a {
    display: inline-block;
    font-size: clamp(0.9rem, 2vw, 1rem);
  }
  .border-cv {
    width: clamp(200px, 25vw, 300px);
    min-height: 70px;
    max-height: 500px;
    height: auto;
    margin: 1rem auto;
    padding: clamp(0.9rem, 1.5vw, 0.5rem);
    box-sizing: border-box;
  }
  .border-cv h3 {
    font-size: clamp(0.8rem, 1.2vw, 0.8rem);
    line-height: 1.1;
  }
  .border-cv p {
    font-size: clamp(0.7rem, 1.2vw, 0.7rem);
    line-height: 1.2;
  }
  .custom-file-upload {
    font-size: clamp(0.6rem, 1.2vw, 0.7rem);
    padding: clamp(0.2rem, 1vw, 0.4rem);
  }
  .grid {
    margin-top: clamp(2rem, 10vh, 6rem);
    text-align: center;
    font-size: clamp(3rem, 10vw, 9rem);
  }
  .autoBlur {
    animation: autoBlurAnimation both 5s;
  }
  .plane_bg,
  .abstract,
  .letter_background,
  .ellipse-1,.ellipse1,.ellipse2,.ellipse3
  .ellipse-2,
  .ellipse-3 {
    display: none;

  }
  .hero-container h1 {
    font-size: 27px;
    max-width: 350px;
  }
  .hero-container p {
    font-size: 15px;
    max-width: 300px;
  }
  .hero-container .primary {
    padding-left: clamp(2rem, 5.7vw, 10rem);
    margin-top: clamp(0rem, 2vh, 0rem);
  }
  .hero-container .primary {
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    padding: clamp(9px, 1vw, 8px) clamp(10px, 2vw, 15px);
  }
  .border-cv {
    margin-left: -20rem;
  }
}

@media (max-width: 768px) {
  .sertificate-container {
    position: static;
    display: block;
    text-align: center;    
    margin-top: 2rem;     
    padding-right: 0;      
  }
  .sertificate {
    position: static;      
    top: auto;             
    margin: 0 auto;       
    max-width: 90%;       
    height: auto;          
    display: block;        
  }
}

.hamburger {
  display: none;
}
.no-scroll {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  width: 100%;
}
@media screen and (max-width: 768px) {
  .hamburger {
    display: block;
    position: fixed;
    top: 16px;
    right: 16px;
    width: 35px;
    height: 35px;
    background: none;
    border: none;
    z-index: 11000;
    cursor: pointer;
  }
  .hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    margin: 6px 0;
    background: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px,6px);
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px,-6px);
  }
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 0.4s ease, opacity 0.25s ease, visibility 0.25s ease;
    background-color: #0b0034;
    backface-visibility: hidden;
    will-change: transform;
  }
  
  .nav-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }
  .nav-menu::before {
    content: '';
    position: fixed;
    inset: 0;
    background-color: #0b0034;
    z-index: -1;
    opacity: 1;
  }
  .nav-menu a {
    color: #ffffff;
    font-size: 1.25rem;
    text-decoration: none;
    transition: color 0.3s ease;
    margin: 1rem 0;
    cursor: pointer;
  }
  
  .nav-menu a:hover {
    color: #bbb;
  }
  html, body {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  html::-webkit-scrollbar,
  body::-webkit-scrollbar {
    display: none;
  }
  .profile-btn,
  .lang-btn {
    display: inline-block !important;
    margin: 0.5rem 0 !important;
    padding: 0.4rem 0.8rem !important;
    font-size: 1rem !important;
    background: #fff !important;
    color: #333 !important;
    border-radius: 6px !important;
    z-index: 10001;
  }
  .profile-btn:hover,
  .lang-btn:hover { background: #eee !important; }
}

@media screen and (min-width: 769px) and (max-width: 1919px) {
  .header-container {
    justify-content: flex-start;
    padding: clamp(10px, 2vh, 20px) clamp(8px, 3vw, 20px);
  }
  .your-cv,
  .border-cv,
  .cv-container {
    padding: clamp(1rem, 4vw, 3rem);
  }
  .border-cv {
    max-width: clamp(280px, 40vw, 350px);
  }
  .border-cv h3 {
    font-size: clamp(1rem, 2vw, 1.125rem);
  }
  .border-cv p {
    font-size: clamp(0.9rem, 2vw, 1rem);
  }
  .logo {
    margin-left: clamp(10px, 5vw, 20px);
  }
  .logo span {
    font-size: clamp(12px, 2vw, 14px);
  }
  .nav-menu {
    gap: clamp(6px, 2vw, 10px);
    margin-right: clamp(6px, 3vw, 40px);
    padding-right: clamp(6px, 3vw, 40px);
  }
  .nav-menu a:not(.profile-btn) {
    font-size: clamp(0.5rem, 1.2vw, 0.85rem); 
  }
  .header-container {
    display: flex;
    align-items: center; 
    justify-content: space-between;
    padding: clamp(12px, 3vh, 24px) clamp(8px, 4vw, 40px);
  }
  .nav-menu {
    margin-top: 0;            
    align-items: center;
  
  }
  .profile-container {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1vw, 12px);
    margin-right:0px;
  }
  .profile-container {
    display: flex !important;
    align-items: center !important;
    margin-left: auto !important;
    gap: 8px !important; 
  }
  .profile-btn {
    position: relative !important;
    top: 0 !important;                
    width: auto !important;
    min-width: 60px !important;     
    height: 32px !important;           
    line-height: 32px !important;      
    font-size: clamp(0.6rem, 1vw, 0.7rem) !important; 
    padding: 0 8px !important;       
    margin-left: 0 !important;        
    border-radius: 6px !important;
  }
  .lang-btn {
    width: auto !important;
    min-width: 36px !important;       
    height: 32px !important;
    line-height: 32px !important;
    font-size: clamp(0.5rem, 0.8vw, 0.6rem) !important; 
    padding: 0 6px !important;
    border-radius: 6px !important;
    margin-left: 20px;
  }
}
