/* === Sluzby obsah === */
.sluzby-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3rem;
}

.sluzby-wrap h1 {
    color: var(--color-earth-mid);
    border-bottom: 3px solid var(--color-gold);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
    display: inline-block;
}

/* === Zoznam služieb === */
.sluzby-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sluzby-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--color-warm-white);
    border: 1px solid var(--color-sand);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.sluzby-item:hover {
    border-color: var(--color-gold);
    box-shadow: 0 3px 14px rgba(44, 26, 14, 0.12);
}

.sluzby-item-text {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-mid);
}

/* === Certifikát placeholder === */
.cert-thumb {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid var(--color-sand);
    border-radius: 6px;
    background: var(--color-beige);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, transform 0.2s ease;
    position: relative;
    overflow: hidden;
}

.cert-thumb img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    margin: 0;
    display: block;
}

.cert-thumb:hover {
    border-color: var(--color-gold);
    transform: scale(1.08);
}

.cert-thumb::after {
    content: '🔍';
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 10px;
    opacity: 0.6;
}

/* === Modal pre certifikát === */
.cert-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    z-index: 5000;
    align-items: center;
    justify-content: center;
}

.cert-modal-overlay.active {
    display: flex;
}

.cert-modal-box {
    position: relative;
    background: #FAF7F2;
    border: 3px solid var(--color-gold);
    border-radius: 8px;
    /* A5 pomer: 148 × 210 mm */
    width: min(420px, 90vw);
    aspect-ratio: 148 / 210;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.cert-modal-box img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    margin: 0;
}

.cert-modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: var(--color-earth-mid);
    color: var(--color-gold-light);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 1;
    transition: background 0.2s ease;
}

.cert-modal-close:hover {
    background: var(--color-rust);
}

/* === Audio sekcia === */
.sluzby-item {
    flex-wrap: wrap;
}

.sluzby-audio {
    width: 100%;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px dashed var(--color-sand);
}

.sluzby-audio-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-earth-mid);
    margin-bottom: 0.35rem;
}

.sluzby-audio-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sluzby-audio-list a {
    font-size: 0.88rem;
    color: var(--color-text-mid);
    text-decoration: underline;
    word-break: break-word;
}

.sluzby-audio-list a:hover {
    color: var(--color-rust);
}

/* === Kontaktný text === */
.sluzby-kontakt {
    background: var(--color-beige);
    border-left: 4px solid var(--color-gold);
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.5rem;
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--color-text-mid);
}

.sluzby-kontakt a {
    color: var(--color-earth-mid);
    font-weight: 700;
    text-decoration: underline;
}

.sluzby-kontakt a:hover {
    color: var(--color-rust);
}

@media (max-width: 600px) {
    .sluzby-item {
        gap: 0.85rem;
        padding: 0.85rem 1rem;
    }
    .sluzby-item-text {
        font-size: 0.92rem;
    }
}
