/* =============================================
   c2m Features Section — c2m-features.css
   ============================================= */

.c2m-features-scene {
  position: relative;
  width: 100%;
  min-height: 520px;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
}

/* ---------- Rings ---------- */
.c2m-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 1;
}

.c2m-ring {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  top: 0;
  left: 0;
}

.c2m-ring:nth-child(1) {
  width: 230px;
  height: 230px;
  border: 1.5px solid rgba(100, 80, 200, 0.2);
  background-color: #fff;
}

.c2m-ring:nth-child(2) {
  width: 360px;
  height: 360px;
  border: 1.5px solid rgba(100, 80, 200, 0.13);
  background-color: #ffffff85;
}

.c2m-ring:nth-child(3) {
  width: 500px;
  height: 500px;
  border: 1.5px solid rgba(100, 80, 200, 0.07);
  background-color: #ffffff65;
}

/* ---------- Center Logo ---------- */
.c2m-logo {
  position: relative;
  z-index: 10;
  width: 124px;
  height: 124px;
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  overflow: hidden;
  border-radius: 30px;
}

.c2m-logo:hover {
  transform: scale(1.07);
}

.c2m-logo:focus {
  outline: 3px solid rgba(90, 70, 212, 0.5);
  outline-offset: 3px;
}

.c2m-logo svg,
.c2m-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ---------- Cards Container ---------- */
.c2m-cards {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ---------- Individual Cards ---------- */
.c2m-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 16px;
  white-space: nowrap;
  pointer-events: auto;
  transition: box-shadow 0.2s ease;
  box-shadow: 0px 1px 2px 0px #0000000d;
  z-index: 2;
}

.c2m-card:hover {
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.05);
}

.c2m-card--1 {
  top: 10%;
  left: 5%;
}
.c2m-card--2 {
  top: 10%;
  right: 5%;
}
.c2m-card--3 {
  top: 50%;
  left: 3%;
  transform: translateY(-50%);
}
.c2m-card--4 {
  top: 50%;
  right: 3%;
  transform: translateY(-50%);
}
.c2m-card--5 {
  bottom: 10%;
  left: 5%;
}
.c2m-card--6 {
  bottom: 10%;
  right: 5%;
}

/* ---------- Card Text ---------- */
.c2m-card-text {
  font-size: 18px;
  font-weight: 400;
  color: var(--body-color);
  line-height: 1.3em;
  font-family: var(--secondary-font-family);
}

/* ---------- Icons ---------- */
.c2m-icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
}
.c2m-icon img {
  width: 100%;
  height: 100%;
}
.c2m-icon svg {
  display: block;
}

/* Color variants */
.c2m-icon--purple {
  background: linear-gradient(145deg, #c084fc, #a855f7);
}
.c2m-icon--blue {
  background: #4285f4;
}
.c2m-icon--amber {
  background: linear-gradient(145deg, #fbbf24, #f59e0b);
}
.c2m-icon--cyan {
  background: linear-gradient(145deg, #38bdf8, #0ea5e9);
}
.c2m-icon--green {
  background: linear-gradient(145deg, #34d399, #10b981);
}
.c2m-icon--pink {
  background: linear-gradient(145deg, #f472b6, #ec4899);
}
.c2m-icon--red {
  background: linear-gradient(145deg, #f87171, #ef4444);
}

/* =============================================
   RESPONSIVE — Tablet (≤900px)
   ============================================= */

@media (max-width: 1024px) {
  .c2m-icon {
    width: 40px;
    height: 40px;
  }
}
@media (max-width: 900px) {
  .c2m-features-scene {
    min-height: 460px;
  }

  .c2m-ring:nth-child(1) {
    width: 160px;
    height: 160px;
  }
  .c2m-ring:nth-child(2) {
    width: 270px;
    height: 270px;
  }
  .c2m-ring:nth-child(3) {
    width: 380px;
    height: 380px;
  }

  .c2m-card {
    padding: 10px 14px;
    gap: 12px;
  }
  .c2m-card-text {
    font-size: 15px;
  }
  .c2m-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  .c2m-logo {
    width: 84px;
    height: 84px;
  }
  .c2m-icon svg {
    width: 16px;
    height: 16px;
  }
}

/* =============================================
   RESPONSIVE — Mobile (≤600px)
   Стак layout — картите под лого
   ============================================= */
@media (max-width: 600px) {
  .c2m-features-scene {
    flex-direction: column;
    min-height: unset;
    gap: 28px;
    border-radius: 16px;
  }

  .c2m-rings {
    display: none;
  }

  .c2m-logo {
    position: relative;
    flex-shrink: 0;
    z-index: 1;
  }

  /* On mobile: cards become a normal flow grid */
  .c2m-cards {
    position: relative;
    inset: unset;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    pointer-events: auto;
  }

  .c2m-card {
    position: relative !important;
    top: unset !important;
    left: unset !important;
    right: unset !important;
    bottom: unset !important;
    transform: none !important;
    white-space: normal;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
  }

  .c2m-card.c2m-card--2,
  .c2m-card.c2m-card--4,
  .c2m-card.c2m-card--6 {
    flex-flow: row-reverse nowrap;
    justify-content: flex-end;
  }

  .c2m-icon {
    width: 32px;
    height: 32px;
  }
}

/* =============================================
   RESPONSIVE — Small mobile (≤360px)
   ============================================= */
@media (max-width: 360px) {
  .c2m-cards {
    grid-template-columns: 1fr;
  }

  .c2m-card {
    flex-direction: row;
  }
}
