/* ==========================================================================
   LakKrnov – jednostránkový web (/, /pl)
   ========================================================================== */

.section {
    padding: 88px 0;
}

.section h2,
.gallery h2,
.mobile h2 {
    font-size: clamp(34px, 4.2vw, 48px);
}

.section-head {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 36px;
}

.section-head-split {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 40px;
}

.section-head-split > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 640px;
}

.section-head-split > p {
    max-width: 420px;
    color: var(--body);
    line-height: 1.6;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    background: var(--graphite);
    color: var(--on-dark);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 48px;
    align-items: center;
    padding-top: 72px;
    padding-bottom: 88px;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero h1 {
    font-size: clamp(42px, 6vw, 70px);
    line-height: .98;
}

.hero h1 .accent {
    color: var(--red-light);
}

.hero .lead {
    font-size: 19px;
    line-height: 1.6;
    color: var(--on-dark-2);
    max-width: 560px;
}

.usp {
    list-style: none;
    margin: 12px 0 0;
    padding: 22px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
    display: flex;
    flex-wrap: wrap;
    gap: 14px 32px;
}

.usp li {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 15px;
    line-height: 1.3;
    color: var(--on-dark-3);
}

.usp .icon {
    color: var(--red-light);
}

.usp strong {
    display: block;
    color: var(--on-dark);
}

.hero-collage {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: 220px 200px;
    gap: 12px;
}

.hero-collage figure {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
}

.hero-collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-collage .c1 { grid-column: span 3; grid-row: span 2; }
.hero-collage .c2,
.hero-collage .c3 { grid-column: span 2; }

/* ==========================================================================
   Služby
   ========================================================================== */

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
}

.svc {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    color: var(--ink);
}

.svc:hover {
    color: var(--ink);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .1);
}

.svc-img {
    display: block;
    height: 210px;
    overflow: hidden;
    background: var(--line);
}

.svc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.svc:hover .svc-img img {
    transform: scale(1.05);
}

.svc-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.svc-num {
    font-size: 13px;
    font-weight: 800;
    color: var(--red-btn);
}

.svc-body strong {
    font-size: 23px;
    font-weight: 800;
    line-height: 1.15;
}

.svc-text {
    font-size: 15px;
    line-height: 1.55;
    color: var(--body);
    flex: 1;
}

.svc-price {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--red-btn);
}

/* ==========================================================================
   Mobilně
   ========================================================================== */

.mobile {
    background: var(--red);
    color: var(--on-dark);
}

.mobile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: stretch;
}

.mobile-text {
    padding: 64px 48px 64px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile .lead {
    font-size: 18px;
    line-height: 1.6;
    color: #FFF0EF;
    max-width: 560px;
}

.steps {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.steps li {
    background: rgba(0, 0, 0, .16);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 15px;
    line-height: 1.4;
}

.steps strong {
    display: block;
    font-size: 22px;
    font-weight: 900;
}

.mobile .btn-outline-light {
    border-color: var(--on-dark);
}

.mobile-photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 360px;
    margin-right: calc((100vw - min(100vw, var(--wrap))) / -2 - 24px);
}

.mobile-photos img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Ceník
   ========================================================================== */

.prices-grid {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr);
    gap: 40px 56px;
    align-items: start;
}

.prices-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 110px;
}

.deal-box {
    background: var(--graphite);
    color: var(--on-dark);
    border-radius: 14px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.deal-box span {
    font-size: 15px;
    line-height: 1.5;
    color: var(--on-dark-2);
}

.deal-box a {
    color: var(--red-light);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tab {
    min-height: 46px;
    padding: 11px 20px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--line-2);
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    font-size: 15px;
}

.tab:hover {
    border-color: var(--ink);
}

.tab.is-active {
    background: var(--graphite);
    border-color: var(--graphite);
    color: var(--on-dark);
    font-weight: 700;
}

.price-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.price-intro {
    color: var(--body);
    line-height: 1.6;
}

.table-box {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow-x: auto;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.price-table thead th {
    background: var(--graphite);
    color: var(--on-dark);
    font-family: var(--font-display);
    font-stretch: 80%;
    text-transform: uppercase;
    letter-spacing: .02em;
    font-size: 14px;
    font-weight: 700;
    padding: 14px 20px;
    text-align: left;
}

.price-table thead th:last-child,
.price-table td {
    text-align: right;
}

.price-table tbody th,
.price-table td {
    padding: 13px 20px;
    border-bottom: 1px solid #ECEAE6;
    line-height: 1.4;
}

.price-table tbody th {
    font-weight: 500;
    text-align: left;
}

.price-table td {
    font-weight: 700;
    white-space: nowrap;
}

.price-table tr:last-child th,
.price-table tr:last-child td {
    border-bottom: 0;
}

.price-table tr.is-deal td {
    color: var(--red-btn);
}

.price-note {
    margin-top: 14px;
    font-size: 14px;
    color: var(--muted);
}

/* ==========================================================================
   Galerie
   ========================================================================== */

.gallery {
    background: var(--graphite);
    color: var(--on-dark);
    padding: 88px 0;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1.5px solid #55555A;
    background: transparent;
    color: var(--on-dark);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
}

.chip span {
    opacity: .65;
    font-weight: 500;
    margin-left: 2px;
}

.chip:hover {
    border-color: var(--on-dark);
}

.chip.is-active {
    background: var(--red);
    border-color: var(--red);
    font-weight: 700;
}

.chip.is-active span {
    opacity: .85;
}

.gal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
    gap: 10px;
}

.gal-item {
    position: relative;
    padding: 0;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--graphite-3);
}

.gal-item.is-big {
    grid-column: span 2;
    grid-row: span 2;
}

.gal-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.gal-item:hover img {
    transform: scale(1.06);
}

.gal-item .tag {
    left: 10px;
    bottom: 10px;
    font-size: 12px;
    padding: 5px 9px;
}

.gal-more {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

/* lightbox – framework dává všem prvkům position: relative, okno musí být fixní */
.lightbox {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(12, 12, 14, .96);
    color: var(--on-dark);
}

.lightbox::backdrop {
    background: rgba(0, 0, 0, .6);
}

.lightbox-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 76px;
    box-sizing: border-box;
}

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-title {
    position: absolute;
    top: 22px;
    left: 24px;
    right: 80px;
    font-family: var(--font-display);
    font-stretch: 80%;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 18px;
}

.lightbox-count {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    text-align: center;
    color: var(--on-dark-3);
    font-size: 15px;
}

.lb-btn {
    position: absolute;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .06);
    color: var(--on-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.lb-btn:hover {
    background: var(--red);
    border-color: var(--red);
}

.lb-close { top: 14px; right: 16px; }
.lb-prev  { left: 12px; top: 50%; margin-top: -26px; }
.lb-next  { right: 12px; top: 50%; margin-top: -26px; }

/* ==========================================================================
   Kontakt a poptávka
   ========================================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 40px;
    align-items: start;
}

.contact-side {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.big-phones {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.big-phones .disp {
    font-size: clamp(24px, 2.6vw, 30px);
    font-weight: 800;
    color: var(--ink);
}

.big-phones .disp:hover {
    color: var(--red-btn);
}

.big-mail {
    font-size: 18px;
    font-weight: 600;
    margin-top: 6px;
}

.address-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 20px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    line-height: 1.55;
}

.address-card .icon {
    color: var(--red-btn);
}

.address-card small {
    color: var(--muted);
    font-size: 15px;
}

.map-box {
    border-radius: 14px;
    overflow: hidden;
    min-height: 260px;
    background: repeating-linear-gradient(-45deg, #E7E5E1 0 14px, #DEDCD7 14px 28px);
}

.map-box iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    text-align: center;
}

.map-placeholder a {
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
}

.map-placeholder small {
    color: var(--muted);
    font-size: 13px;
}

.map-box.is-loaded .map-placeholder {
    display: none;
}

.form-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 32px;
    scroll-margin-top: 110px;
}

.inquiry {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.inquiry h3,
.form-done h3 {
    grid-column: 1 / -1;
    font-size: 28px;
}

.full {
    grid-column: 1 / -1;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
}

.field input,
.field select,
.field textarea {
    font: inherit;
    font-weight: 400;
    font-size: 16px;
    padding: 13px 14px;
    border: 1.5px solid var(--line-2);
    border-radius: var(--radius-sm);
    background: var(--paper);
    color: var(--ink);
    width: 100%;
    box-sizing: border-box;
}

.field textarea {
    resize: vertical;
    min-height: 130px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 3px solid rgba(218, 51, 49, .35);
    outline-offset: 1px;
    border-color: var(--ink);
}

.field [aria-invalid="true"] {
    border-color: var(--red);
}

/* nahrávání fotek */
.upload {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1.5px dashed var(--line-2);
    border-radius: var(--radius-sm);
    background: #FAFAF9;
    color: var(--body);
    cursor: pointer;
}

.upload:hover,
.upload.is-drag {
    border-color: var(--red);
    background: #FFF5F4;
}

.upload .icon {
    color: var(--red-btn);
}

.upload span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.upload strong {
    color: var(--ink);
    font-size: 15px;
}

.upload small {
    font-size: 13px;
    font-weight: 400;
    color: var(--muted);
}

.upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.upload-input:focus-visible + .upload-list,
.upload:focus-within {
    outline: 3px solid rgba(218, 51, 49, .35);
}

.upload-list {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 8px;
}

.upload-list:empty {
    display: none;
}

.upload-list li {
    border-radius: 8px;
    overflow: hidden;
    background: var(--ground);
    aspect-ratio: 1;
}

.upload-list img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-list .file-name {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    font-size: 11px;
    text-align: center;
    word-break: break-all;
    color: var(--muted);
}

.upload-list button {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 0;
    background: rgba(28, 28, 30, .85);
    color: var(--on-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.upload-list button:hover {
    background: var(--red);
}

.hp {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: #FBE4E3;
    color: var(--red-dark);
    font-size: 15px;
}

.form-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.form-consent {
    font-size: 13px;
    color: var(--muted);
    max-width: 330px;
}

.inquiry button[type="submit"][disabled] {
    opacity: .7;
    cursor: progress;
}

.form-done {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 24px 0;
}

.form-done .icon {
    color: var(--red-btn);
}

.form-done p {
    color: var(--body);
}

/* ==========================================================================
   Responzivita
   ========================================================================== */

@media screen and (max-width: 1060px) {
    .hero-grid,
    .mobile-grid,
    .prices-grid,
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-grid {
        padding-top: 48px;
        padding-bottom: 64px;
    }

    .mobile-text {
        padding: 56px 0 32px;
    }

    .mobile-photos {
        margin: 0 -24px;
        min-height: 260px;
    }

    .prices-side {
        position: static;
    }
}

@media screen and (max-width: 720px) {
    .section,
    .gallery {
        padding: 64px 0;
    }

    .hero-collage {
        grid-template-rows: 170px 150px;
        gap: 8px;
    }

    .steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .mobile-photos {
        margin: 0 -16px;
    }

    .gal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 150px;
        gap: 8px;
    }

    .gal-item .tag {
        display: none;
    }

    .form-card {
        padding: 22px 16px;
    }

    .inquiry {
        grid-template-columns: minmax(0, 1fr);
    }

    .form-foot .btn {
        width: 100%;
    }

    .price-table tbody th,
    .price-table td,
    .price-table thead th {
        padding: 12px 12px;
        font-size: 15px;
    }

    .price-table td {
        white-space: normal;
        min-width: 96px;
    }

    .lightbox-inner {
        padding: 64px 8px 76px;
    }

    .lb-prev,
    .lb-next {
        top: auto;
        bottom: 12px;
        margin-top: 0;
    }
}
