
.montserrat-<uniquifier> {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}


body {
  /* Твоя же заливка + делаем её анимированной */
  background: linear-gradient(
    135deg,
    rgba(118, 196, 234, 0.2) 16%,
    rgba(134, 132, 170, 0.2) 49%,
    rgba(41, 55, 150, 0.2) 100%
  ), #36657D;
font-family: "Montserrat", sans-serif;
}

a{
  text-decoration: none;
  color: white;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between; /* логотип слева, меню справа */
  padding: 0 20px;
  flex-direction: row;
}
nav {
  color: white;
  font-size: 25px;
  font-family: Montserrat, sans-serif;
  font-weight: 300;
  display: flex;
  gap: 30px; /* чуть больше расстояния */
  box-sizing: border-box;
  margin-top: 31px;
  margin-left: 35%;
  user-select: none; /* чтобы текст не выделялся случайно */
}

/* Стили для ссылок внутри навигации */
nav a {
  color: white;
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
  cursor: pointer;
  font-weight: 500;
}

/* Подчеркивание при наведении */
nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -6px;
  background: white;
  transition: width 0.3s ease;
}

/* При ховере подчеркивание растягивается и цвет меняется */
nav a:hover {
  color: #aaddff;
}

nav a:hover::after {
  width: 100%;
}

/* Для активного пункта меню */
nav a.active {
  color: #aaddff;
}

nav a.active::after {
  width: 100%;
}

.apply-button {
  width: 293px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0px 4px 12px rgba(255, 255, 255, 0.2) inset;
  border-radius: 99px;

  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;

  margin-top: 31px;

  color: #fff;
  font-size: 25px;
  font-weight: 900;

  cursor: pointer;

  /* Анимации для hover */
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.apply-button:hover {
  background: rgba(255, 255, 255, 0.15);
  box-shadow:
    0px 4px 20px rgba(255, 255, 255, 0.3),
    0px 0px 30px rgba(255, 255, 255, 0.15) inset;
  transform: translateY(-3px) scale(1.03);
}


.logo{
  color: white; 
    flex-shrink: 0; /* чтобы лого не сжимался */
display: flex;
  font-size: 36px; 
  font-family: Montserrat; 
  font-weight: 700; 
  word-wrap: break-word;
  margin-left: 15px;
  margin-top: 21px;
}
.card-grid {
  position: relative;
  width: 1570px;
  height: 575px;
  background: linear-gradient(137deg, rgba(255, 255, 255, 0.40) 0%, rgba(255, 255, 255, 0.10) 100%);
  border-radius: 28px;
  backdrop-filter: blur(20px);
  box-shadow: 0px 4px 24px -1px rgba(0, 0, 0, 0.20);
  display: flex;
  flex-direction: row;
  gap: 20px;
  overflow: visible;
  justify-content: space-evenly;
  align-items: center;
  margin: 0 auto;
  /* padding: 24px;  -- убираем */
}

.card {
  position: relative;
  box-sizing: border-box;
  width: 277px;
  height: 370px;
  background:
    linear-gradient(
      137deg,
      rgba(255, 255, 255, 0.4) 0%,
      rgba(255, 255, 255, 0.1) 100%
    );
  border-radius: 28px;
  backdrop-filter: blur(20px);
  box-shadow: 0px 4px 24px -1px rgba(0, 0, 0, 0.2);
  padding: 24px;
  text-align: center;
  border: none; /* убрать прозрачный border */
}

.card-grid::before,
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;

  background: linear-gradient(
    137deg,
    #ffffff 0%,
    #c7c7c7 27%,
    #686869 72%,
    #2e2f30 100%
  );
  
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: destination-out;

  pointer-events: none;
}

.card img {
  display: block;
  margin: 20px auto 0 auto; /* фото немного вниз */
  width: 185px;
  height: 152px;
}

.card h3 {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin: 24px 0 8px; /* увеличим отступ сверху для текста */
}

.card p {
  font-size: 9px;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.4;
  user-select: none;
}

main{
  box-sizing: border-box;
}

main h1{
  width: 1648px; 
  color: white; 
  font-size: 39px; 
   font-weight: 900; 
   word-wrap: break-word;
  margin: 150px auto 0 auto; /* сверху 50px отступ, слева и справа авто для центрирования */

}

main .headertext{
  width: 741px; 
  color: white; 
  font-size: 20px; 
 font-weight: 300; 
 word-wrap: break-word;
   margin: 55px auto 0 auto; /* сверху 50px отступ, слева и справа авто для центрирования */

}

main .register-button {
  width: 293px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0px 4px 12px rgba(255, 255, 255, 0.2) inset;
  border-radius: 99px;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;

  margin: 55px auto 0 auto;

  color: #fff;
  font-size: 25px;
  font-weight: 900;

  cursor: pointer;

  /* Анимации для hover */
  transition: 
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

main .register-button:hover {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 
    0px 4px 20px rgba(255, 255, 255, 0.3),
    0px 0px 30px rgba(255, 255, 255, 0.15) inset;
  transform: translateY(-3px) scale(1.03);
}


section .ourtext{
  position: absolute;
  top: 20px;       /* любое удобное расстояние от верха */
  left: 50%;        /* центрируем */
  transform: translateX(-50%);
  font-size: 21px;
  font-weight: 900;
  color: #fff;
}

section{
  margin-top: 55px;
}

.objective h2{
color: white; 
font-size: 42px; 
font-weight: 800; 
word-wrap: break-word;
  justify-content: center; 
  align-items: center; 
   margin: 95px auto 0 auto; /* сверху 50px отступ, слева и справа авто для центрирования */
display: flex;
}

.learn-more {
  width: 293px;
  padding: 8px 16px;

  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0px 4px 12px rgba(255, 255, 255, 0.2) inset;
  border-radius: 99px;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;

  margin: 25px auto 0 auto;

  color: #fff;
  font-size: 25px;
  font-weight: 900;

  cursor: pointer;

  /* Анимации для hover */
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.learn-more:hover {
  background: rgba(255, 255, 255, 0.15);
  box-shadow:
    0px 4px 20px rgba(255, 255, 255, 0.3),
    0px 0px 30px rgba(255, 255, 255, 0.15) inset;
  transform: translateY(-3px) scale(1.03);
}


.footertext{
  color: white; 
  font-size: 22px; 
  font-weight: 600; 
  word-wrap: break-word;
       margin: 95px auto 0 auto; /* сверху 50px отступ, слева и справа авто для центрирования */
display: flex;
justify-content: center;
align-items: center;
}
.footertext2{
 color: white; 
 font-size: 28px; 
 font-weight: 300; 
 word-wrap: break-word;
        margin: 105px auto 0 auto; /* сверху 50px отступ, слева и справа авто для центрирования */
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 50px;
}

.footerlinkwebify{
   color: white; 
 font-size: 18px; 
 font-weight: 300; 
 word-wrap: break-word;
        margin: 105px auto 0 auto; /* сверху 50px отступ, слева и справа авто для центрирования */
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 50px;
}

/* =========================== АНИМАЦИИ =========================== */

/* Анимация появления карточек */
@keyframes cardFadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card {
  /* Один переход для обоих свойств */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: cardFadeIn 0.8s ease both;
}

.card:hover {
  transform: translateY(-10px) scale(1.2);
  box-shadow: 0px 12px 30px rgba(0, 0, 0, 0.25);
}


/* Анимация фона */
@keyframes backgroundShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

body {
  background-size: 200% 200%;
  animation: backgroundShift 15s ease-in-out infinite alternate;
}

/* Анимация появления для card-grid */
@keyframes gridFadeIn {
  0% { opacity: 0; transform: scale(0.95) }
  100% { opacity: 1; transform: scale(1) }
}

.card-grid {
  animation: gridFadeIn 1s ease;
}

