/* Общие стили */
html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #f4f6f8;
  color: #222;
}

header {
  background-color: #1a1a1a;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

/* Hero-блок */
.hero {
  text-align: center;
  padding: 1rem;
  background: radial-gradient(circle at center, #e8e8e8, #dcdcdc);
  color: #333;
}

.hero-logo img {
  width: 260px;
  height: auto;
  margin-bottom: 0.01 rem;
  filter: drop-shadow(0 4px 8px rgba(15, 1, 0, 1));
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.card-icon {
  margin-bottom: 1 rem;
}

.card-icon img {
  width: 128px;
  height: 128px;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}

.cta-button:hover {
  background-color: #b30000;
}
/* Горизонтальные карточки */
.cards-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  flex-wrap: wrap;
}

.card {
  background-color: #fff;
  border-radius: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 1.08);
  padding: 1.0rem;
  width: 360px;
  text-align: center;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.link-button {
  display: inline-block;
  margin-top: 1rem;
  background-color: #990000;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(153, 0, 0, 0.4);
  text-align: center;
  max-width: 100%;
}

/* След блок */

.cycle-block h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.circle-stage {
  position: relative;
  width: 400px;
  height: 400px;
  margin: 3rem auto;
}

.circle-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70px;
  height: 70px;
  background: white;
  border: 2px solid #0288d1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translate(-50%, -50%);
  transition: all 0.8s ease;
  z-index: 1;
}

.circle-item.active {
  width: 100px;
  height: 100px;
  font-size: 2.2rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  z-index: 2;
}

.circle-label {
  max-width: 180px;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -130%);
  background: #fff;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
  white-space: normal;
  opacity: 0;
  transition: all 0.6s ease;
  pointer-events: none;
  word-break: break-word;
  z-index: 3;
}

/* Текс блок */

.platform-description {
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 1rem;
  font-family: 'Segoe UI', sans-serif;
  color: #333;
  line-height: 1.6;
}

.platform-description h3 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.platform-description p {
  margin-bottom: 1.2rem;
}

/* Карта */
.card-zone {
  position: relative;
  width: 100%;
  padding: 3rem 0; /* вертикальный запас */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible; /* не обрезаем */
}


/* Футер */
footer {
  background-color: #1a1a1a;
  color: #ccc;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

/* Адаптивность для планшетов */
@media (max-width: 1024px) {
  .card-front {
    background-size: cover;
    background-position: center center;
    aspect-ratio: 3 / 2;
    max-width: 480px;
  }
  
  .card {
    width: 45%;
  }
}

@media (max-width: 768px) {
  .cards-row {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
  }

  .card {
    width: 70%;
    max-width: 260px;
    margin-bottom: 1rem;
  }
  
  .hero-logo img {
	width: 90%;
	height: auto;
	margin-bottom: 0.01 rem;
	filter: drop-shadow(0 4px 8px rgba(15, 1, 0, 1));
  }

  .link-button {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    background-color: #990000;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(153, 0, 0, 0.4);
    text-align: center;
    white-space: nowrap;
  }
}
