/* Úvodní stránka – Výsledky naší práce (před / po) */
.res { width: 100%; display: flex; flex-direction: column; gap: 30px; }
.res-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.res-sub { color: var(--dark-gray); font-size: 17px; margin-top: 8px; }

.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.res-item { position: relative; display: block; padding: 0; border: 1px solid var(--medium-gray); border-radius: 20px; overflow: hidden; background: #fff; cursor: zoom-in; aspect-ratio: 600 / 512; box-shadow: 2px 2px 10px 1px rgba(0, 0, 0, .06); transition: box-shadow .3s, transform .3s; }
.res-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.res-item:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, .14); transform: translateY(-3px); }
.res-item:hover img { transform: scale(1.04); }
.res-item::before, .res-item::after, .res-lb-frame::before, .res-lb-frame::after { content: ""; position: absolute; top: 0; width: 50%; height: 6px; z-index: 1; pointer-events: none; }
.res-item::before, .res-lb-frame::before { left: 0; background: var(--red); }
.res-item::after, .res-lb-frame::after { right: 0; background: var(--primary); }
.res-pill { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; border-radius: 999px; overflow: hidden; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); font-size: 13px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; line-height: 1; pointer-events: none; }
.res-pill span { width: 70px; height: 34px; display: flex; align-items: center; justify-content: center; color: #fff; }
.res-pill span:first-child { background: var(--red); }
.res-pill span:last-child { background: var(--primary); }
.res-zoom { position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--secondary); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }

.res-proof { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; background: linear-gradient(120deg, #eef7ef 0%, #f8fcf8 55%, #ffffff 100%); border: 1px solid #d6ead8; border-radius: 24px; padding: 34px 40px; }
.res-proof::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--primary); }
.res-proof::after { content: ""; position: absolute; right: -120px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(21, 120, 31, .10), rgba(21, 120, 31, 0) 70%); pointer-events: none; }
.res-proof-main, .res-proof-stats { position: relative; z-index: 1; }
.res-proof-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; padding: 8px 15px 8px 12px; border-radius: 999px; box-shadow: 0 4px 12px rgba(21, 120, 31, .25); }
.res-proof h3 { font-size: 30px; font-weight: 700; margin: 16px 0 8px; color: var(--secondary); }
.res-proof p { color: var(--dark-gray); font-size: 17px; line-height: 1.6; max-width: 540px; }
.res-proof p b { color: var(--primary); }
.res-proof-stats { display: flex; gap: 16px; }
.res-stat { background: #fff; border: 1px solid var(--medium-gray); border-radius: 20px; padding: 22px 24px; width: 180px; text-align: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .06); display: flex; flex-direction: column; align-items: center; }
.res-stat-icon { width: 44px; height: 44px; border-radius: 50%; background: #edf6ee; color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.res-stat strong { display: block; font-size: 46px; font-weight: 700; line-height: 1; color: var(--primary); }
.res-stat > span:last-child { display: block; margin-top: 8px; color: var(--dark-gray); font-size: 14px; font-weight: 700; line-height: 1.35; }

.res-cta { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; font-weight: 700; font-size: 18px; }
.res-cta a { display: inline-flex; align-items: center; height: 48px; padding: 0 26px; border-radius: 8px; border: 2px solid var(--primary); color: var(--primary); transition: all .3s; }
.res-cta a:hover { background: var(--primary); color: #fff; }

.res-lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15, 15, 15, .92); display: none; align-items: center; justify-content: center; padding: 20px; }
.res-lightbox.open { display: flex; }
.res-lb-frame { position: relative; line-height: 0; border-radius: 16px; overflow: hidden; }
.res-lb-frame img { display: block; max-width: min(90vw, 1000px); max-height: 85vh; }
.res-lb-frame::before, .res-lb-frame::after { height: 8px; }
.res-lb-frame .res-pill { top: 22px; font-size: 15px; }
.res-lb-frame .res-pill span { width: 84px; height: 40px; }
.res-lb-close { position: absolute; top: 16px; right: 20px; width: 48px; height: 48px; color: #fff; font-size: 40px; line-height: 1; background: none; border: 0; cursor: pointer; }
.res-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 38px; line-height: 1; border: 0; cursor: pointer; transition: background .3s; }
.res-lb-nav:hover { background: var(--primary); }
.res-lb-prev { left: 20px; }
.res-lb-next { right: 20px; }

@media (max-width: 1023px) {
    .res-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .res-proof { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 767px) {
    .res { gap: 22px; }
    .res-head { flex-direction: column; align-items: flex-start; gap: 14px; }
    .res-sub { font-size: 15px; }
    .res-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; width: calc(100% + 40px); margin-left: -20px; padding: 0 20px 8px; scrollbar-width: none; }
    .res-grid::-webkit-scrollbar { display: none; }
    .res-item { flex: 0 0 86%; scroll-snap-align: center; }
    .res-pill, .res-lb-frame .res-pill { top: 14px; font-size: 11px; letter-spacing: 1.1px; }
    .res-pill span, .res-lb-frame .res-pill span { width: 56px; height: 28px; }
    .res-item::before, .res-item::after, .res-lb-frame::before, .res-lb-frame::after { height: 5px; }
    .res-proof { padding: 26px 20px 22px 26px; border-radius: 20px; }
    .res-proof h3 { font-size: 22px; margin-top: 14px; }
    .res-proof p { font-size: 15px; }
    .res-proof-badge { font-size: 11px; }
    .res-proof-stats { gap: 12px; }
    .res-stat { flex: 1; width: auto; min-width: 0; padding: 16px 10px; }
    .res-stat-icon { width: 38px; height: 38px; }
    .res-stat strong { font-size: 36px; }
    .res-stat > span:last-child { font-size: 12px; }
    .res-cta { font-size: 16px; gap: 12px; flex-direction: column; }
    .res-cta a { width: 100%; justify-content: center; }
    .res-lb-nav { width: 44px; height: 44px; font-size: 32px; top: auto; bottom: 24px; transform: none; }
    .res-lb-prev { left: calc(50% - 56px); }
    .res-lb-next { right: calc(50% - 56px); }
}
