main {
    margin-bottom: 100px; /* відступ від футеру */
}

.prices-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

.price-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.price-header {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    font-weight: 600;
    background: #f7f9fc;
    font-size: 1.05rem;
}

.price-details {
    display: none;
    padding: 10px 20px 20px 20px;
    font-size: 0.95rem;
    color: #555;
}

.price-details ul {
    padding-left: 20px;
    margin: 0;
}

.price-card.active .price-details {
    display: block;
}

/* Кнопка запису на прийом */
.cta-book {
    text-align: center;
    margin: 50px 0;
}

.cta-book .zapisbtn {
    display: inline-block;
    color: white;
    padding: 15px 35px;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
}

.cta-book .zapisbtn:hover {
    background: #0056b3;
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.search-wrap {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    max-width: 980px;
    margin: 18px auto 0;
    padding: 10px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(2, 47, 84, 0.04);
    border: 1px solid rgba(2, 47, 84, 0.04);
}

.search-wrap #priceSearch {
    flex: 1 1 60%;
    min-width: 180px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #e6eef8;
    font-size: 1rem;
    outline: none;
    background: linear-gradient(180deg, #fff, #fbfdff);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.search-wrap #priceSearch:focus {
    border-color: #007bff;
    box-shadow: 0 4px 18px rgba(0,123,255,0.12);
}

.search-wrap #clearSearch {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(2,47,84,0.06);
    background: #f5f9ff;
    font-size: 1.05rem;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.search-wrap #clearSearch:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(2,47,84,0.08);
}

.search-wrap .search-count {
    flex: 0 0 auto;
    margin-left: 12px;
    color: #375a7f;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

.no-results {
    max-width: 980px;
    margin: 12px auto 0;
    padding: 12px 16px;
    border-radius: 10px;
    background: #fff7f7;
    color: #8b1e1e;
    border: 1px solid #f1c0c0;
    text-align: center;
    font-weight: 600;
}

/* Подсветка совпадений */
.prices-list mark {
    background: linear-gradient(90deg,#fff7c2,#ffe28a);
    color: #583a00;
    padding: 0 .12rem;
    border-radius: 3px;
    font-weight: 700;
}

/* Mobile tweaks */
@media (max-width: 720px) {
    .search-wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
    }
    .search-wrap #priceSearch { font-size: 0.95rem; }
    .search-wrap .search-count { text-align: right; font-size: 0.9rem; }
    .no-results { margin-left: 16px; margin-right: 16px; }
}
