/* Стили для карточек на главной странице */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.demo-entry {
    position: relative;
    overflow: hidden;
    padding: 1.4rem 1.5rem;
    border: 1px solid rgba(53, 119, 232, 0.16);
    border-radius: 1rem;
    background: linear-gradient(135deg, #edf5ff 0%, #f7fbff 58%, #ffffff 100%);
    box-shadow: 0 0.65rem 1.75rem rgba(31, 75, 138, 0.08);
}

.demo-entry::after {
    content: "";
    position: absolute;
    width: 12rem;
    height: 12rem;
    right: -5rem;
    top: -7rem;
    border-radius: 50%;
    background: rgba(53, 119, 232, 0.07);
    pointer-events: none;
}

.demo-entry__content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.demo-entry__copy {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-width: 0;
    max-width: 52rem;
}

.demo-entry__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 3rem;
    height: 3rem;
    border-radius: 0.9rem;
    background: rgba(53, 119, 232, 0.11);
    color: #3577e8;
    font-size: 1.35rem;
}

.demo-entry__eyebrow {
    margin-bottom: 0.2rem;
    color: #3577e8;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.demo-entry__lead {
    max-width: 48rem;
    color: #617184;
    line-height: 1.55;
}

.demo-entry__actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
}

.demo-entry__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 2.85rem;
    padding: 0.65rem 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    box-shadow: 0 0.35rem 0.8rem rgba(53, 119, 232, 0.16);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.demo-entry__button:hover,
.demo-entry__button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 0.5rem 1rem rgba(53, 119, 232, 0.2);
}

@media (max-width: 991.98px) {
    .demo-entry__content {
        align-items: stretch;
        flex-direction: column;
        gap: 1.1rem;
    }

    .demo-entry__actions {
        justify-content: flex-start;
        padding-left: 4rem;
    }
}

@media (max-width: 575.98px) {
    .demo-entry {
        padding: 1rem;
        border-radius: 0.85rem;
    }

    .demo-entry__copy {
        gap: 0.75rem;
    }

    .demo-entry__icon {
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 0.75rem;
        font-size: 1.1rem;
    }

    .demo-entry__actions {
        padding-left: 0;
    }

    .demo-entry__button {
        justify-content: space-between;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .demo-entry__button {
        transition: none;
    }

    .demo-entry__button:hover,
    .demo-entry__button:focus-visible {
        transform: none;
    }
}

.card {
    transition: border-color 0.2s, box-shadow 0.2s;
    border: 2px solid #e0e0e0;      /* светло-серая рамка всегда */
    border-radius: 10px;
    background-color: #fff;
    overflow: hidden;
}
.card:hover, .card:focus-within {
    border-color: #3577e8;           /* цветная рамка при наведении (пример: фирменный синий) */
}

.card img {
    width:2.5rem;
    height:2.5rem;
    object-fit:cover;
}

.demo-league-marker {
    width: 1.8rem;
    height: 1.8rem;
    color: rgba(0, 0, 0, 0.34);
}



#sticky-quag-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 1px solid #e3e3e3;
  padding: 0.55em 0 0.38em 0;
  z-index: 1031;
  box-shadow: 0 -1px 8px rgba(140,150,180,0.06);
  letter-spacing: 0.01em;
}
#sticky-quag-footer a {
  color: #445175;
  text-decoration: underline dotted;
}
