* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: #3d5d8c;
  color: #e5edf7;
  line-height: 1.5;
}

a {
  color: #ffffff;
}

.hero {
    padding: 40px 20px 30px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
}

.hero p {
    color: rgba(255,255,255,0.65);
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
}


.life-level {
    margin-top: 60px;
}

.life-level h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.section-subtitle {
    color: rgba(255,255,255,0.6);
    margin-bottom: 30px;
}

.section-subdesc {
    color: rgba(255,255,255,0.6);
    margin-bottom: 30px;
    margin-top: 30px;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  justify-items: stretch;   /* карточки растягиваются по колонке */
}

.compare-card {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px); /* размытие фона (поддерживается в современных браузерах) */

}

.placeholder-card {
  visibility: hidden;
  pointer-events: none;
}

.compare-card h3 {
    margin-bottom: 16px;
}

.compare-card p {
    font-size: 14px;
}

.compare-card a:hover {
    text-decoration: none;
}

.row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.label.men {
   color: #3b82f6;
   font-weight: 700;
   top: 10px;
   position: relative;
}

.label.women {
    color: #ec4899;
    font-weight: 700;
    top: 10px;
    position: relative;
}

.value {
    font-size: 22px;
    font-weight: 800;
}

.bar-wrap {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    height: 10px;
}

.bar {
    height: 10px;
    width: 0;
    border-radius: 8px;
    transition: width 1.4s cubic-bezier(.2,.8,.3,1);
}

.bar.men {
    background: #3b82f6;
}

.bar.women {
    background: #ec4899;
}

.compare-card {
    position: relative;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.compare-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.compare-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    background: linear-gradient(
        135deg,
        rgba(96,165,250,0.15),
        rgba(244,114,182,0.12)
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.compare-card:hover::before {
    opacity: 1;
}

.compare-card > * {
    position: relative;
    z-index: 1;
}

.value {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.compare-card {
    opacity: 0;
    transform: translateY(16px);
}

.compare-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.life-level h2 {
    background: linear-gradient(90deg,#60a5fa,#f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-desc {
    margin-top: 15px;

}

.slider-pair {
  margin-top: 10px;
}

.slider-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.slider-track {
  position: relative;
  height: 10px;
  background: rgba(15, 23, 42, 0.55);
  border-radius: 999px;
  overflow: hidden;
}

.slider-fill {
  position: absolute;
  top: 0;
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 1.4s cubic-bezier(.2,.8,.3,1);
}

/* мужчина – слева, чуть не доходит до правого края */
.slider-fill.men {
  left: 0;
  background: #3b82f6;
  /* визуально даём маленький запас под зазор */
  transform-origin: left center;
  transform: scaleX(0.97); /* оставляем около 4% трека свободным */
}

/* женщина – справа, тоже чуть не доходит до левого края */
.slider-fill.women {
  right: 0;
  background: #ec4899;
  transform-origin: right center;
  transform: scaleX(0.97);
}

.slider-percent {
  font-size: 14px;
  font-weight: 700;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.slider-label.men {
  color: #60a5fa;
}

.slider-label.women {
  color: #ec4899;
}

/* Левый процент (мужчина) */
.slider-percent-left {
  color: #3b82f6; /* как мужчина */
}

/* Правый процент (женщина) */
.slider-percent-right {
  color: #ec4899; /* как женщина */
}

.card-simb {
    font-size: 26px;
    color: #ef4444;
    font-weight: bold;
}

.card-center {
    text-align: center;
}

.life-visual-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  gap: 24px;
  max-width: 480px;
  margin: 0 auto;
}

.floating-img {
  width: 100px;              /* подстрой под размер */
  max-width: 40%;
  animation: floatY 3s ease-in-out infinite;
}

/* слегка разные фазы, чтобы они не двигались синхронно */
.floating-img-left {
  animation-delay: 0s;
}

.floating-img-right {
  animation-delay: 1s;
}

.ul-menu {
  list-style: none;
}

.ul-menu a:hover {
  text-decoration: none;
}

.block-menu {
  width: 225px;
}

.logo {
  width: 300px;
  margin: 0 0 15px 0;
}

.desc-main {
  margin-top: 40px;
}

.content-block ul {
	margin: 15px 0 15px 30px;
	color: rgba(255,255,255,0.6);
}


.btn-up {
  position: fixed; /* фиксированная позиция */
  background-color: #3d5d8c; /* цвет заднего фона */
  right: 20px; /* расстояние от правого края */
  bottom: 0px; /* расстояние от нижнего края */
  border-top-left-radius: 8px; /* скругление верхнего левого угла */
  border-top-right-radius: 8px; /* скругление верхнего правого угла */
  cursor: pointer; /* форма курсора */
  display: flex; /* не отображать элемент */
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease-in-out;
  width: 60px;
  height: 50px;
  opacity: 1;
  z-index: 99999;  
}

.btn-up::before {
  content: "";
  width: 40px;
  height: 40px;
  background: transparent no-repeat center center;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M7.646 4.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 5.707l-5.646 5.647a.5.5 0 0 1-.708-.708l6-6z'/%3E%3C/svg%3E");
}

.btn-up_hide {
  display: none;
}

.btn-up_hiding {
  opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
  .btn-up:hover {
    background-color: #512da8; /* цвет заднего фона при наведении */
  }
}

.footer-block {
  text-align: center;
  font-size: 28px;
  padding: 0 10px 50px 10px;
  max-width: 1100px;
  margin: 0 auto;
}




@keyframes floatY {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-18px); }
  100% { transform: translateY(0); }
}

/* адаптив: на мобиле картинки одна над другой по центру */
@media (max-width: 768px) {
  .life-visual-wrap {
    justify-content: center;
  }
  .floating-img {
    max-width: 45%;
  }
}

.vid580, .vid380 {
  display: none;
}

@media (max-width: 730px) {
  .vid720, .vid380 {
    display: none;
  }
  .vid580 {
    display: block;
    margin: 0 auto;
  }
}

@media (max-width: 590px) {
  .vid720, .vid580 {
    display: none;
  }
  .vid380 {
    display: block;
    margin: 0 auto;
  }
}





.text-wrapper {
    position: relative;

       
}

.text-content {
    max-height: 220px;          /* высота видимой части */
    overflow: hidden;
    transition: max-height 0.6s ease;
}

.text-wrapper.expanded .text-content {
    max-height: 3000px;        /* большой запас для полного раскрытия */
}

.fade {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    height: 80px;

    background: linear-gradient(
        to bottom,
        rgba(61, 93, 140, 0),
        rgba(61, 93, 140, 1)
    );

    pointer-events: none;
    transition: opacity 0.4s ease;
}

.text-wrapper.expanded .fade {
    opacity: 0;
}

.toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;

    margin: 10px auto 0;
    padding: 8px 16px;

    background: none;
    border: none;

    color: #60a5fa;
    font-size: 15px;
    cursor: pointer;

    transition: transform 0.3s ease;
}

.toggle-btn:hover {
    transform: translateY(-2px);
}

.arrow {
    transition: transform 0.4s ease;
}

.text-wrapper.expanded .arrow {
    transform: rotate(180deg);
}


.life-level {
  margin: 80px 0;
}

.league-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(59,130,246,0.6);
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
}

@media (max-width: 768px) {
  .male-league-promo {
    margin: 20px 0;
    padding: 0;
  }
  .male-league-promo h2 {
    font-size: 28px;
  }  
}




