:root {
  --primary-color: #6c5ce7;
  --secondary-color: #0984e3;
  --accent-color: #00cec9;
  --text-color: #2d3436;
  --light-gray: #f5f6fa;
  --dark-gray: #636e72;
  --white: #ffffff;
  --paper-color: #f8f9fa;
  --paper-shadow: 0 8px 30px rgba(108, 92, 231, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-color: rgba(108, 92, 231, 0.1);
  --background-color: #f5f6fa;
  --gradient-1: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
  --gradient-2: linear-gradient(135deg, #0984e3 0%, #00cec9 100%);
  --gradient-3: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
  --gradient-4: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
  --shadow-3d: 0 10px 20px rgba(0, 0, 0, 0.1), 0 6px 6px rgba(0, 0, 0, 0.1);
  --card-radius: 16px;
}

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

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  background-image: url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="%236c5ce720"/></svg>');
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

.book-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
  letter-spacing: -0.02em;
  text-shadow: 3px 3px 0px rgba(108, 92, 231, 0.2);
  transform: perspective(1000px) rotateX(5deg);
}

.book-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--gradient-1);
  border-radius: 4px;
  transition: var(--transition);
}

.book-text {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #fff;
}

.book-card {
  background: var(--white);
  border: none;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-3d);
  transition: var(--transition);
  position: relative;
  padding: 2rem;
  overflow: hidden;
  z-index: 1;
}

.book-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-1);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
  border-radius: var(--card-radius);
}

.book-card:hover::before {
  opacity: 0.05;
}

.book-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(108, 92, 231, 0.2);
}

.book-button {
  display: inline-block;
  padding: 1rem 1.5rem;
  margin-top: 10px;
  background: var(--gradient-1);
  color: var(--white);
  text-decoration: none;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: var(--transition);
  position: relative;
  border-radius: 50px;
  box-shadow: 0 8px 15px rgba(108, 92, 231, 0.2);
  overflow: hidden;
  z-index: 1;
}

.book-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-2);
  transition: left 0.4s ease;
  z-index: -1;
}

.book-button:hover {
  color: var(--white);
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(108, 92, 231, 0.3);
}

.book-button:hover::before {
  left: 0;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 20px rgba(108, 92, 231, 0.1);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}

.logo {
  position: absolute;
  left: 1rem;
}

.logo:hover img {
  transform: rotate(10deg);
}

.nav-links {
  display: flex;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 0.7rem 2rem;
  border-radius: 50px;
  position: relative;
  box-shadow: 0 5px 15px rgba(108, 92, 231, 0.15);
}

.nav-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-1);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--secondary-color);
}

.nav-links a:hover::after {
  width: 100%;
}

.hero {
  padding: 8rem 2rem 4rem;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 2rem auto;
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow-3d);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><path d="M54.627 0l.83.828-1.415 1.415L51.8 0h2.827zM5.373 0l-.83.828L5.96 2.243 8.2 0H5.374zM48.97 0l3.657 3.657-1.414 1.414L46.143 0h2.828zM11.03 0L7.372 3.657l1.415 1.414L13.858 0H11.03zm32.284 0l6.9 6.9-1.414 1.415-8.314-8.314h2.827zM16.686 0L9.787 6.9l1.414 1.414L18.5 0h-1.814zM36.344 0l10.142 10.142-1.414 1.414L33.93 0h2.414zM23.656 0L13.514 10.142l1.414 1.414L26.07 0h-2.413zM30 0L17.157 12.843l1.414 1.414L30 2.828l11.43 11.43 1.414-1.416L30 0z" fill="%23ffffff22" fill-rule="evenodd"/></svg>');
  opacity: 0.8;
}

.hero-content {
  flex: 1;
  padding-left: 2rem;
  padding-right: 2rem;
  position: relative;
  z-index: 1;
  order: 2;
  color: var(--white);
}

.hero h1 {
  font-size: 3.8rem;
  margin-bottom: 1.5rem;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.1);
  transform: perspective(1000px) rotateX(5deg);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-image {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  z-index: 1;
}

.screenshot-container {
  position: relative;
  width: 100%;
  height: auto;
  perspective: 1000px;
  cursor: pointer;
}

.screenshot {
  position: absolute;
  border-radius: var(--card-radius);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  cursor: pointer;
  transform-origin: center center;
  overflow: hidden;
}

.screenshot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(108, 92, 231, 0.2) 0%,
    rgba(0, 206, 201, 0.2) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.screenshot:hover::after {
  opacity: 1;
}

.screenshot-main {
  width: 75%;
  height: auto;
  z-index: 3;
  top: 50px;
  left: 12.5%;
  transform: translateZ(0) rotate(-2deg);
}

.screenshot-secondary {
  width: 90%;
  height: auto;
  z-index: 2;
  top: 0;
  left: 0;
  transform: translateZ(-50px) rotate(-8deg);
  filter: brightness(0.9);
}

.screenshot-tertiary {
  width: 85%;
  height: auto;
  z-index: 1;
  top: 20px;
  left: 15%;
  transform: translateZ(-100px) rotate(10deg);
  filter: brightness(0.85);
}

.platforms {
  flex: 1;
  position: relative;
  height: 600px;
  padding: 0;
  margin-right: 2rem;
  order: 1;
  z-index: 1;
}

.platforms-grid {
  position: absolute;
  width: 100%;
  height: 100%;
}

.platform-card {
  position: absolute;
  width: 250px;
  height: 250px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 15px 35px rgba(108, 92, 231, 0.3);
  animation: float 8s ease-in-out infinite;
  transition: var(--transition);
  border: none;
  overflow: hidden;
}

.platform-card:nth-child(1) {
  top: 10%;
  left: 20%;
  animation-delay: 0s;
  background: var(--gradient-1);
  color: white;
}

.platform-card:nth-child(2) {
  top: 30%;
  right: 20%;
  animation-delay: 1s;
  background: var(--gradient-2);
  color: white;
}

.platform-card:nth-child(3) {
  bottom: 20%;
  left: 30%;
  animation-delay: 2s;
  background: var(--gradient-3);
  color: white;
}

.platform-card:nth-child(4) {
  bottom: 30%;
  right: 30%;
  animation-delay: 3s;
  background: var(--gradient-4);
  color: white;
}

.platform-card:nth-child(5) {
  top: 40%;
  left: 40%;
  animation-delay: 4s;
  background: var(--gradient-2);
  color: white;
  z-index: 5;
}

.platform-card:hover {
  transform: scale(1.15) rotate(5deg);
  z-index: 2;
  box-shadow: 0 20px 40px rgba(108, 92, 231, 0.4);
}

.platform-card:hover .platform-description {
  display: block;
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
  25% {
    transform: translateY(-30px) rotate(5deg) scale(1.05);
  }
  50% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
  75% {
    transform: translateY(30px) rotate(-5deg) scale(0.95);
  }
  100% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
}

.features {
  padding: 6rem 2rem;
  position: relative;
  max-width: 1200px;
  margin: 2rem auto;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 30px;
  box-shadow: 0 15px 40px rgba(108, 92, 231, 0.15);
  overflow: hidden;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><path d="M54.627 0l.83.828-1.415 1.415L51.8 0h2.827zM5.373 0l-.83.828L5.96 2.243 8.2 0H5.374zM48.97 0l3.657 3.657-1.414 1.414L46.143 0h2.828zM11.03 0L7.372 3.657l1.415 1.414L13.858 0H11.03zm32.284 0l6.9 6.9-1.414 1.415-8.314-8.314h2.827zM16.686 0L9.787 6.9l1.414 1.414L18.5 0h-1.814zM36.344 0l10.142 10.142-1.414 1.414L33.93 0h2.414zM23.656 0L13.514 10.142l1.414 1.414L26.07 0h-2.413zM30 0L17.157 12.843l1.414 1.414L30 2.828l11.43 11.43 1.414-1.416L30 0z" fill="%236c5ce715" fill-rule="evenodd"/></svg>');
  opacity: 0.8;
}

.features .book-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 3rem;
  position: relative;
  z-index: 1;
  width: 100%;
  display: block;
  color: var(--primary-color);
  text-shadow: 3px 3px 0px rgba(108, 92, 231, 0.2);
  transform: perspective(1000px) rotateX(5deg);
}

.features .book-title::after {
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
  padding: 2rem;
  z-index: 1;
}

.feature-card {
  position: relative;
  background: var(--white);
  padding: 2.5rem 2rem;
  text-align: center;
  border-radius: var(--card-radius);
  box-shadow: 0 15px 30px rgba(108, 92, 231, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transform: translateY(0);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  opacity: 0;
  animation: cardAppear 0.8s forwards;
  width: 320px;
  height: 320px;
}

.feature-card img {
  width: 60px;
  height: 60px;
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
  filter: drop-shadow(0 8px 12px rgba(108, 92, 231, 0.3));
  position: relative;
  z-index: 1;
  transform-style: preserve-3d;
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.3;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--dark-gray);
  margin: 0;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Удаляем все grid-area для карточек */
.feature-card:nth-child(1),
.feature-card:nth-child(2),
.feature-card:nth-child(3),
.feature-card:nth-child(4),
.feature-card:nth-child(5),
.feature-card:nth-child(6),
.feature-card:nth-child(7),
.feature-card:nth-child(8),
.feature-card:nth-child(9),
.feature-card:nth-child(10),
.feature-card:nth-child(11) {
  grid-area: unset;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-1);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.feature-card:hover {
  transform: perspective(1000px) rotateX(10deg) rotateY(10deg) translateZ(20px)
    scale(1.05);
  box-shadow: 0 30px 60px rgba(108, 92, 231, 0.3);
  z-index: 2;
}

.feature-card:hover::before {
  opacity: 0.1;
}

@keyframes cardAppear {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cardFloat {
  0% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
  100% {
    transform: translateY(0) rotate(0);
  }
}

@media (max-width: 1360px) {
  .hero {
    display: flex;
    flex-direction: column;
  }

  .hero-content {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
  }
}

/* Адаптивность для планшетов */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
  }

  .feature-card {
    width: 300px;
    height: 300px;
  }

  nav .cta-button {
    display: none;
  }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .feature-card {
    width: 280px;
    height: 250px;
  }
}

.footer {
  background: var(--gradient-1);
  color: var(--white);
  padding: 3rem 2rem 1rem;
  position: relative;
  margin-top: 4rem;
  z-index: 999999;
  /* border-radius: 30px 30px 0 0; */
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><path d="M54.627 0l.83.828-1.415 1.415L51.8 0h2.827zM5.373 0l-.83.828L5.96 2.243 8.2 0H5.374zM48.97 0l3.657 3.657-1.414 1.414L46.143 0h2.828zM11.03 0L7.372 3.657l1.415 1.414L13.858 0H11.03zm32.284 0l6.9 6.9-1.414 1.415-8.314-8.314h2.827zM16.686 0L9.787 6.9l1.414 1.414L18.5 0h-1.814zM36.344 0l10.142 10.142-1.414 1.414L33.93 0h2.414zM23.656 0L13.514 10.142l1.414 1.414L26.07 0h-2.413zM30 0L17.157 12.843l1.414 1.414L30 2.828l11.43 11.43 1.414-1.416L30 0z" fill="%23ffffff22" fill-rule="evenodd"/></svg>');
  opacity: 0.2;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.footer-logo img {
  height: 40px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.footer-logo:hover img {
  transform: rotate(10deg);
}

.footer-links {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 0.7rem 2rem;
  border-radius: 50px;
  margin: 0 auto;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  margin-left: 2rem;
  font-family: 'Montserrat', sans-serif;
  transition: var(--transition);
  font-weight: 600;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

/* Animation for floating elements */
@keyframes floating {
  0% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-15px) rotate(2deg);
  }
  100% {
    transform: translateY(0) rotate(0);
  }
}

/* Add 3D perspective to all sections */
section {
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* Add animation for page load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.features,
.hero,
.how-it-works,
.reviews {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Add dynamic blob shape for visual interest */
.blob-shape {
  position: absolute;
  width: 400px;
  height: 400px;
  background: var(--gradient-2);
  border-radius: 43% 57% 70% 30% / 30% 42% 58% 70%;
  opacity: 0.1;
  filter: blur(20px);
  animation: blob-animation 20s linear infinite alternate;
  z-index: -1;
}

@keyframes blob-animation {
  0% {
    border-radius: 43% 57% 70% 30% / 30% 42% 58% 70%;
    transform: scale(1) rotate(0deg);
  }
  25% {
    border-radius: 70% 30% 30% 70% / 70% 42% 58% 30%;
    transform: scale(1.1) rotate(90deg);
  }
  50% {
    border-radius: 30% 70% 70% 30% / 30% 70% 30% 70%;
    transform: scale(1) rotate(180deg);
  }
  75% {
    border-radius: 70% 30% 40% 60% / 40% 30% 70% 60%;
    transform: scale(1.1) rotate(270deg);
  }
  100% {
    border-radius: 43% 57% 70% 30% / 30% 42% 58% 70%;
    transform: scale(1) rotate(360deg);
  }
}

/* Add blob shape to feature cards for visual interest */
.features::after {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: var(--gradient-3);
  border-radius: 70% 30% 30% 70% / 30% 30% 70% 70%;
  opacity: 0.05;
  filter: blur(60px);
  animation: blob-animation 25s linear infinite alternate;
  z-index: 0;
}

/* Add glow effect to buttons */
.book-button {
  position: relative;
  overflow: hidden;
}

.book-button::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(45deg);
  animation: glow 3s linear infinite;
}

@keyframes glow {
  0% {
    transform: rotate(45deg) translateX(-100%);
  }
  100% {
    transform: rotate(45deg) translateX(100%);
  }
}

/* Animation for section titles */
.book-title {
  position: relative;
  overflow: hidden;
}

.book-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(108, 92, 231, 0) 0%,
    rgba(108, 92, 231, 0.1) 50%,
    rgba(108, 92, 231, 0) 100%
  );
  animation: title-shine 3s ease-in-out infinite;
}

@keyframes title-shine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Add 3D hover effect to cards */
.feature-card {
  transition: all 0.3s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.feature-card:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(5deg) translateZ(10px);
}

/* Modern How It Works Section */
.how-it-works {
  padding: 80px 40px;
  position: relative;
  max-width: 1200px;
  margin: 0 auto 100px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.95),
    rgba(240, 240, 255, 0.9)
  );
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.15);
  z-index: 1;
}

.how-it-works-title {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 50px;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}

.how-it-works-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 4px;
}

/* Platform Filters */
.platforms-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
}

.filter-button {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(230, 230, 250, 0.8);
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #555;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.filter-button .platform-icon {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}

.filter-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.filter-button.active {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: white;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(var(--primary-color-rgb), 0.3);
}

/* Timeline Style */
.steps-timeline {
  position: relative;
  max-width: 950px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Vertical line */
.steps-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 35px;
  width: 4px;
  background: linear-gradient(
    to bottom,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 4px;
  z-index: 1;
}

.timeline-step {
  position: relative;
  padding-left: 80px;
  margin-bottom: 60px;
  transition: all 0.5s ease;
}

.timeline-step:not(:first-child) {
  margin-top: -250px;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 24px;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary-color);
  border: 4px solid var(--primary-color);
  z-index: 2;
  box-shadow: 0 0 0 4px rgba(var(--primary-color-rgb), 0.2);
  transition: all 0.3s ease;
}

.timeline-content {
  background: white;
  padding: 25px 30px;
  border-radius: 16px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.timeline-content::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 15px;
  width: 30px;
  height: 30px;
  background: white;
  transform: rotate(45deg);
  z-index: -1;
  box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.05);
}

.timeline-icon {
  background: rgba(var(--primary-color-rgb), 0.1);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.timeline-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.timeline-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.timeline-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 15px;
}

.timeline-details {
  background: rgba(var(--primary-color-rgb), 0.05);
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
}

.timeline-details-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary-color);
}

.timeline-details-list {
  padding-left: 20px;
}

.timeline-details-list li {
  margin-bottom: 5px;
  position: relative;
}

.timeline-details-list li::before {
  content: '✓';
  color: var(--accent-color);
  position: absolute;
  left: -18px;
}

/* Platform tag */
.platform-tag {
  position: absolute;
  top: -10px;
  right: 20px;
  padding: 5px 15px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: white;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
  z-index: 2;
}

/* Hover effects */
.timeline-step:hover .timeline-dot {
  transform: scale(1.2);
  box-shadow: 0 0 0 8px rgba(var(--primary-color-rgb), 0.2);
}

.timeline-step:hover .timeline-content {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.timeline-step:hover .timeline-icon {
  transform: scale(1.1);
  background: rgba(var(--primary-color-rgb), 0.2);
}

/* Empty state */
.empty-state {
  display: none;
  text-align: center;
  padding: 60px 0;
}

.empty-state img {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
  opacity: 0.7;
}

.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.empty-state p {
  color: #777;
  margin-bottom: 20px;
}

.reset-filters {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.reset-filters:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(var(--primary-color-rgb), 0.2);
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .steps-timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline-step {
    padding-left: 0;
    padding-right: 0;
    width: 45%;
    margin-left: auto;
    margin-right: auto;
  }

  .timeline-step:nth-child(odd) {
    margin-right: 55%;
  }

  .timeline-step:nth-child(even) {
    margin-left: 55%;
  }

  .timeline-dot {
    left: calc(50% - 35px);
    transform: translateX(-50%);
  }

  .timeline-step:nth-child(even) .timeline-dot {
    left: calc(50% + 35px);
  }

  .timeline-step:nth-child(odd) .timeline-content::before {
    left: auto;
    right: -15px;
  }

  .timeline-step:nth-child(even) .timeline-content::before {
    left: -15px;
  }
}

@media (max-width: 767px) {
  .how-it-works {
    padding: 60px 20px;
  }

  .how-it-works-title {
    font-size: 2.2rem;
  }

  .platforms-filter {
    flex-direction: column;
    align-items: center;
  }

  .filter-button {
    width: 100%;
    max-width: 300px;
  }
}

/* Features Filter Buttons */
.features-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.features-filter .filter-button {
  background: white;
  border: 2px solid rgba(var(--primary-color-rgb), 0.15);
  border-radius: 50px;
  padding: 10px 25px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary-color);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(108, 92, 231, 0.1);
  position: relative;
  overflow: hidden;
}

.features-filter .filter-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-1);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.features-filter .filter-button:hover {
  transform: translateY(-3px);
  border-color: var(--primary-color);
  box-shadow: 0 8px 20px rgba(108, 92, 231, 0.2);
}

.features-filter .filter-button.active {
  color: white;
  border-color: transparent;
  background: var(--gradient-1);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(108, 92, 231, 0.3);
}

/* Empty state for features */
.features-empty-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
}

.features-empty-state img {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
  opacity: 0.7;
}

.features-empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.features-empty-state p {
  color: #777;
  margin-bottom: 20px;
}

.reset-feature-filters {
  background: var(--gradient-1);
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(108, 92, 231, 0.2);
}

.reset-feature-filters:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(108, 92, 231, 0.3);
}

.feature-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reviews section */
.reviews {
  padding: 6rem 2rem;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  overflow: hidden;
}

.reviews .book-title {
  margin-bottom: 4rem;
}

/* Статистика отзывов в круговых диаграммах */
.reviews-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
}

.stat-circle-container {
  width: 200px;
  height: 200px;
  position: relative;
  perspective: 800px;
  margin-bottom: 2rem;
}

.stat-circle {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-circle:hover {
  transform: rotateY(15deg) rotateX(15deg);
}

.stat-circle-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.stat-circle-bg {
  fill: none;
  stroke: rgba(var(--primary-color-rgb), 0.1);
  stroke-width: 6;
}

.stat-circle-fill {
  fill: none;
  stroke: var(--accent-color);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s ease-in-out;
  filter: drop-shadow(0 0 8px rgba(var(--accent-color-rgb), 0.5));
}

.stat-circle-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.stat-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 0.5rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--dark-gray);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  max-width: 80%;
}

/* Отзывы в виде круговых элементов */
.reviews-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
  padding: 2rem 0;
  position: relative;
}

.review-circle {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 15px 35px rgba(108, 92, 231, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform-style: preserve-3d;
  perspective: 1000px;
  animation: float 8s ease-in-out infinite;
}

.review-circle:hover {
  transform: scale(1.05) rotateY(10deg);
  box-shadow: 0 25px 50px rgba(108, 92, 231, 0.25);
  z-index: 10;
}

.review-circle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-1);
  opacity: 0.8;
  z-index: 1;
  transition: opacity 0.4s ease;
}

.review-circle::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border-radius: 50%;
  background: white;
  z-index: 2;
}

.review-content {
  position: relative;
  z-index: 3;
  width: 85%;
  height: 85%;
  border-radius: 50%;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: white;
  box-shadow: inset 0 0 15px rgba(108, 92, 231, 0.1);
  transition: transform 0.3s ease;
}

.review-circle:hover .review-content {
  transform: scale(1.05);
}

.review-rating {
  font-size: 1.5rem;
  color: #ffd700;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 2px 3px rgba(255, 215, 0, 0.4));
}

.review-circle p {
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: var(--text-color);
  font-style: italic;
}

.review-author {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.review-date {
  font-size: 0.75rem;
  color: var(--dark-gray);
}

/* Уникальные стили для каждого кружка отзыва */
.review-circle-1 {
  animation-delay: 0s;
  background: var(--gradient-1);
}

.review-circle-2 {
  animation-delay: 1.2s;
  background: var(--gradient-2);
}

.review-circle-3 {
  animation-delay: 0.8s;
  background: var(--gradient-3);
}

.review-circle-4 {
  animation-delay: 2s;
  background: var(--gradient-4);
}

.review-circle-5 {
  animation-delay: 1.5s;
  background: var(--gradient-1);
}

.review-circle-6 {
  animation-delay: 0.4s;
  background: var(--gradient-2);
}

/* Медиа-запросы для адаптивности */
@media (max-width: 1024px) {
  .stat-circle-container {
    width: 180px;
    height: 180px;
  }

  .stat-value {
    font-size: 1.8rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .review-circle {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 768px) {
  .reviews-stats {
    gap: 1rem;
  }

  .stat-circle-container {
    width: 150px;
    height: 150px;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  .review-circle {
    width: 220px;
    height: 220px;
  }

  .review-circle p {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .reviews-stats {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .stat-circle-container {
    width: 180px;
    height: 180px;
    margin-bottom: 1.5rem;
  }

  .review-circle {
    width: 280px;
    height: 280px;
    margin-bottom: 2rem;
  }
}

/* Боковая навигация */
.side-nav {
  position: fixed;
  left: 0;
  top: 0;
  width: 280px;
  height: 100vh;
  background: var(--white);
  box-shadow: 4px 0 20px rgba(108, 92, 231, 0.1);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1000;
  transition: all 0.3s ease;
}

.side-nav .logo {
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.side-nav .logo img {
  width: 30px;
  height: auto;
  transition: transform 0.3s ease;
  margin-bottom: 5px;
  filter: drop-shadow(0 4px 8px rgba(108, 92, 231, 0.3));
}

.side-nav .logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary-color);
  white-space: nowrap;
  text-align: center;
}

.side-nav .nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  padding: 2rem;
}

.side-nav .nav-link {
  display: flex;
  align-items: center;
  padding: 1rem;
  color: var(--dark-gray);
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.side-nav .nav-link:hover {
  background: var(--gradient-1);
  color: var(--white);
  transform: translateX(10px);
}

.side-nav .nav-link.active {
  background: var(--gradient-1);
  color: var(--white);
}

.side-nav .nav-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
  transition: transform 0.3s ease;
}

.side-nav .nav-link:hover .nav-icon {
  transform: scale(1.2);
}

.side-nav .nav-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 12px;
}

/* Основной контент */
.main-content {
  margin-left: 280px;
  padding: 2rem;
  transition: all 0.3s ease;
}

/* Адаптивность */
@media (max-width: 1024px) {
  .side-nav {
    width: 80px;
    padding: 1rem;
  }

  .side-nav .logo {
    top: 1rem;
  }

  .side-nav .logo img {
    width: 30px;
  }

  .side-nav .logo-text {
    display: none;
  }

  .side-nav .nav-links {
    padding: 1rem;
    display: none;
  }

  .side-nav .nav-link {
    padding: 1rem;
  }

  .side-nav .nav-text {
    display: none;
  }

  .side-nav .nav-icon {
    margin-right: 0;
    font-size: 1.8rem;
  }

  .side-nav .nav-bottom-button {
    padding: 15px;
  }

  .side-nav .nav-bottom-button .book-text {
    display: none;
  }

  .main-content {
    margin-left: 80px;
  }
}

@media (max-width: 768px) {
  .side-nav {
    transform: translateX(-100%);
  }

  .side-nav.active {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }
}

.mobile-menu-button {
  display: none;
}
