/* Карточки калькуляторов */
.calculator-card {
    height: 100%;
}

.uk-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.calculator-card-cover {
    align-items: center;
    background: #e9eef7;
    display: flex;
    height: 92px;
    justify-content: space-between;
    overflow: hidden;
    padding: 16px 18px;
    position: relative;
}

.calculator-card-cover::after {
    background: rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    content: "";
    height: 120px;
    position: absolute;
    right: -34px;
    top: -42px;
    width: 120px;
}

.calculator-card-cover__mark {
    color: #fff;
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.calculator-card-cover__lines {
    display: grid;
    gap: 8px;
    position: relative;
    width: 44%;
    z-index: 1;
}

.calculator-card-cover__lines span {
    background: rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    display: block;
    height: 8px;
}

.calculator-card-cover__lines span:nth-child(2) {
    width: 70%;
}

.cover-vat { background: linear-gradient(135deg, #0f766e, #38bdf8); }
.cover-loan { background: linear-gradient(135deg, #7c2d12, #f59e0b); }
.cover-home { background: linear-gradient(135deg, #1d4ed8, #94a3b8); }
.cover-math { background: linear-gradient(135deg, #4338ca, #f472b6); }
.cover-school { background: linear-gradient(135deg, #15803d, #a3e635); }
.cover-tools { background: linear-gradient(135deg, #334155, #fb7185); }
.cover-health { background: linear-gradient(135deg, #be123c, #fca5a5); }
.cover-auto { background: linear-gradient(135deg, #0369a1, #facc15); }
.cover-general { background: linear-gradient(135deg, #4b5563, #60a5fa); }

.uk-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Заголовок и описание */
.uk-card-header {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.title-container {
    flex: 1;
    min-width: 0;
}

.uk-card-title {
    font-size: 18px;
    line-height: 1.4;
    margin: 0;
    font-weight: 500;
    word-wrap: break-word;
    padding-right: 8px;
}

.uk-text-meta {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Футер и кнопки действий */
.uk-card-footer {
    padding: 15px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-button {
    margin-left: auto;
}
