/* =========================================================
   CONCEPT STORE KARLÍN – KONTAKT
   ========================================================= */

#csk-contact {
    --csk-black: #161616;
    --csk-text: #252525;
    --csk-muted: #77736e;
    --csk-line: #e5e2dd;
    --csk-bg: #f5f3ef;
    --csk-bg-dark: #242321;
    --csk-white: #fff;

    width: 100%;
    color: var(--csk-text);
    font-size: 16px;
    line-height: 1.65;
}

.in-kontakty .content-inner {
    max-width: none;
}

.in-kontakty .content-inner > h1 {
    display: none;
}

/* případný Shoptet wrapper */
.in-kontakty .content-inner,
.in-kontakty article {
    padding-left: 0;
    padding-right: 0;
}


/* =========================================================
   TYPOGRAFIE
   ========================================================= */

#csk-contact h1,
#csk-contact h2,
#csk-contact h3,
#csk-contact p {
    margin-top: 0;
}

#csk-contact h1,
#csk-contact h2 {
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

#csk-contact h1 {
    margin-bottom: 28px;
    font-size: clamp(42px, 5.5vw, 82px);
}

#csk-contact h2 {
    margin-bottom: 28px;
    font-size: clamp(34px, 4vw, 58px);
}

.csk-eyebrow,
.csk-contact-eyebrow {
    display: block;
    margin-bottom: 20px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: .17em;
}


/* =========================================================
   BUTTONY
   ========================================================= */

#csk-contact .csk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 13px 25px;
    border: 1px solid transparent;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .025em;
    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease,
        transform .25s ease;
}

#csk-contact .csk-btn:hover {
    transform: translateY(-2px);
}

#csk-contact .csk-btn--light {
    color: #111;
    background: #fff;
    border-color: #fff;
}

#csk-contact .csk-btn--light:hover {
    color: #fff;
    background: transparent;
}

#csk-contact .csk-btn--outline-light {
    color: #fff;
    background: transparent;
    border-color: rgba(255,255,255,.65);
}

#csk-contact .csk-btn--outline-light:hover {
    color: #111;
    background: #fff;
    border-color: #fff;
}

#csk-contact .csk-btn--dark {
    color: #fff;
    background: var(--csk-black);
    border-color: var(--csk-black);
}

#csk-contact .csk-btn--dark:hover {
    color: var(--csk-black);
    background: transparent;
}


/* =========================================================
   HERO
   ========================================================= */

.csk-contact-hero {
    position: relative;
    min-height: min(780px, 82vh);
    overflow: hidden;
    color: #fff;
    background: #222;
}

.csk-contact-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 52%;
}

.csk-contact-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.68) 0%,
            rgba(0,0,0,.40) 45%,
            rgba(0,0,0,.05) 78%
        ),
        linear-gradient(
            0deg,
            rgba(0,0,0,.38) 0%,
            rgba(0,0,0,0) 40%
        );
}

.csk-contact-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(1440px, calc(100% - 100px));
    min-height: min(780px, 82vh);
    margin: 0 auto;
    padding: 90px 0 120px;
}

.csk-contact-hero__content p {
    max-width: 610px;
    margin-bottom: 35px;
    font-size: 18px;
    line-height: 1.65;
    color: rgba(255,255,255,.9);
}

.csk-contact-hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.csk-contact-hero__address {
    position: absolute;
    z-index: 2;
    right: 50px;
    bottom: 34px;
    left: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.35);
    font-size: 13px;
    letter-spacing: .04em;
}


/* =========================================================
   OTEVÍRACÍ DOBA
   ========================================================= */

.csk-opening {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, .75fr);
    gap: 10vw;
    width: min(1340px, calc(100% - 100px));
    margin: 0 auto;
    padding: 130px 0;
}

.csk-opening__intro p {
    max-width: 620px;
    color: var(--csk-muted);
}

.csk-opening__hours {
    align-self: center;
}

.csk-opening__row {
    padding: 24px 0;
    border-top: 1px solid var(--csk-line);
}

.csk-opening__row > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 25px;
}

.csk-opening__row span {
    font-size: 15px;
}

.csk-opening__row strong {
    font-size: clamp(24px, 2vw, 32px);
    font-weight: 400;
    white-space: nowrap;
}

.csk-opening__note {
    padding-top: 24px;
    border-top: 1px solid var(--csk-line);
    color: var(--csk-muted);
    font-size: 14px;
}


/* =========================================================
   EXPERIENCE
   ========================================================= */

.csk-experience {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    min-height: 720px;
    background: var(--csk-bg);
}

.csk-experience__photo {
    overflow: hidden;
}

.csk-experience__photo .csk-gallery-button {
    width: 100%;
    height: 100%;
}

.csk-experience__photo img {
    width: 100%;
    height: 100%;
    min-height: 720px;
    object-fit: cover;
}

.csk-experience__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 90px clamp(50px, 7vw, 120px);
}

.csk-experience__lead {
    margin-bottom: 20px;
    font-size: 21px;
    line-height: 1.55;
}

.csk-experience__content > p:not(.csk-experience__lead) {
    color: var(--csk-muted);
}

.csk-experience__items {
    margin-top: 35px;
}

.csk-experience__item {
    display: grid;
    grid-template-columns: 45px 1fr;
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid #d8d4ce;
}

.csk-experience__item span {
    color: #99948d;
    font-size: 12px;
}

.csk-experience__item strong {
    font-weight: 500;
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.csk-section-heading {
    width: min(800px, calc(100% - 50px));
    margin: 0 auto 60px;
    text-align: center;
}

.csk-section-heading p {
    max-width: 650px;
    margin-right: auto;
    margin-left: auto;
    color: var(--csk-muted);
}


/* =========================================================
   GALERIE
   ========================================================= */

.csk-showroom-gallery {
    padding: 135px 50px;
}

.csk-gallery-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr .9fr;
    grid-template-rows: 340px 520px;
    gap: 14px;
    max-width: 1500px;
    margin: 0 auto;
}

.csk-gallery-item,
.csk-gallery-button {
    display: block;
    position: relative;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    cursor: zoom-in;
    background: #eee;
}

.csk-gallery-item img,
.csk-gallery-button img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .65s cubic-bezier(.2,.6,.2,1);
}

.csk-gallery-item:hover img,
.csk-gallery-button:hover img {
    transform: scale(1.025);
}

.csk-gallery-item--a {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.csk-gallery-item--a img {
    object-position: center;
}

.csk-gallery-item--b {
    grid-column: 2;
    grid-row: 1;
}

.csk-gallery-item--c {
    grid-column: 3;
    grid-row: 1;
}

.csk-gallery-item--d {
    grid-column: 2;
    grid-row: 2;
}

.csk-gallery-item--e {
    grid-column: 3;
    grid-row: 2;
}


/* =========================================================
   VZOROVÝ BYT
   ========================================================= */

.csk-apartment {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    background: var(--csk-bg-dark);
    color: #fff;
}

.csk-apartment__image {
    min-height: 680px;
}

.csk-apartment__image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 680px;
    object-fit: cover;
}

.csk-apartment__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px clamp(45px, 6vw, 100px);
}

.csk-apartment__content p {
    color: rgba(255,255,255,.72);
}

.csk-text-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 16px;
    margin-top: 25px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(255,255,255,.7);
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 500;
}

.csk-text-link span {
    transition: transform .2s ease;
}

.csk-text-link:hover span {
    transform: translateX(4px);
}


/* =========================================================
   MAPA / NÁVŠTĚVA
   ========================================================= */

.csk-visit {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    min-height: 620px;
}

.csk-visit__content {
    padding: 95px clamp(45px, 7vw, 110px);
    background: #f3f0eb;
}

.csk-visit__address {
    display: flex;
    flex-direction: column;
    margin: 38px 0;
}

.csk-visit__address strong {
    margin-bottom: 6px;
    font-size: 18px;
}

.csk-visit__address span {
    color: var(--csk-muted);
}

.csk-visit__info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    margin: 0 0 38px;
    padding-top: 30px;
    border-top: 1px solid #d9d5cf;
}

.csk-visit__info strong {
    display: block;
    margin-bottom: 7px;
}

.csk-visit__info p {
    margin: 0;
    color: var(--csk-muted);
    font-size: 14px;
}

.csk-visit__map {
    min-height: 620px;
}

.csk-visit__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 620px;
}


/* =========================================================
   KONTAKTY
   ========================================================= */

.csk-contacts {
    padding: 130px 50px;
}

.csk-contact-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    max-width: 1250px;
    margin: 0 auto;
}

.csk-contact-card {
    display: flex;
    flex-direction: column;
    min-height: 230px;
    padding: 36px;
    border: 1px solid var(--csk-line);
    color: var(--csk-text) !important;
    text-decoration: none !important;
    transition:
        background .25s ease,
        border-color .25s ease,
        transform .25s ease;
}

a.csk-contact-card:hover {
    transform: translateY(-3px);
    border-color: #c8c3bc;
    background: #faf9f7;
}

.csk-contact-card__label {
    margin-bottom: auto;
    color: var(--csk-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
}

.csk-contact-card strong {
    margin-top: 35px;
    margin-bottom: 5px;
    font-size: clamp(18px, 1.6vw, 24px);
    font-weight: 400;
    line-height: 1.3;
}

.csk-contact-card a,
.csk-contact-card > span:last-child {
    color: var(--csk-text);
    text-decoration: none;
}


/* =========================================================
   FORMULÁŘ
   ========================================================= */

.csk-form-section {
    display: grid;
    grid-template-columns: .65fr 1.35fr;
    gap: 8vw;
    padding: 120px max(50px, calc((100vw - 1320px) / 2));
    background: var(--csk-bg);
}

.csk-form-section__heading p {
    color: var(--csk-muted);
}

#csk-form-mount form {
    width: 100%;
    max-width: none;
    margin: 0;
}

#csk-form-mount .form-group,
#csk-form-mount .form-group-whole {
    margin-bottom: 20px;
}

#csk-form-mount input[type="text"],
#csk-form-mount input[type="email"],
#csk-form-mount textarea {
    width: 100%;
    min-height: 50px;
    padding: 13px 15px;
    border: 1px solid #d2cec8;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

#csk-form-mount textarea {
    min-height: 150px;
}

#csk-form-mount input:focus,
#csk-form-mount textarea:focus {
    border-color: #555;
    outline: none;
}

#csk-form-mount .btn,
#csk-form-mount button[type="submit"],
#csk-form-mount input[type="submit"] {
    min-height: 50px;
    padding: 12px 28px;
    border: 1px solid #161616;
    border-radius: 0;
    color: #fff;
    background: #161616;
    box-shadow: none;
    font-weight: 600;
}


/* =========================================================
   LIGHTBOX
   ========================================================= */

.csk-lightbox {
    display: flex;
    position: fixed;
    z-index: 999999;
    inset: 0;
    align-items: center;
    justify-content: center;
    padding: 45px;
    visibility: hidden;
    opacity: 0;
    background: rgba(0,0,0,.92);
    transition:
        opacity .25s ease,
        visibility .25s ease;
}

.csk-lightbox.is-open {
    visibility: visible;
    opacity: 1;
}

.csk-lightbox img {
    display: block;
    max-width: min(1400px, 94vw);
    max-height: 90vh;
    object-fit: contain;
}

.csk-lightbox__close {
    position: absolute;
    z-index: 2;
    top: 20px;
    right: 25px;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 0;
    color: #fff;
    background: transparent;
    font-size: 42px;
    font-weight: 200;
    line-height: 1;
    cursor: pointer;
}

body.csk-lightbox-open {
    overflow: hidden;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

    .csk-contact-hero__content {
        width: calc(100% - 60px);
    }

    .csk-contact-hero__address {
        right: 30px;
        left: 30px;
    }

    .csk-opening {
        grid-template-columns: 1fr;
        gap: 55px;
        width: calc(100% - 60px);
        padding: 90px 0;
    }

    .csk-opening__hours {
        max-width: none;
    }

    .csk-experience {
        grid-template-columns: 1fr;
    }

    .csk-experience__photo img {
        min-height: 620px;
        max-height: 750px;
    }

    .csk-gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 600px 320px 400px;
    }

    .csk-gallery-item--a {
        grid-column: 1;
        grid-row: 1;
    }

    .csk-gallery-item--b {
        grid-column: 2;
        grid-row: 1;
    }

    .csk-gallery-item--c {
        grid-column: 1;
        grid-row: 2;
    }

    .csk-gallery-item--d {
        grid-column: 2;
        grid-row: 2;
    }

    .csk-gallery-item--e {
        grid-column: 1 / span 2;
        grid-row: 3;
    }

    .csk-apartment {
        grid-template-columns: 1fr;
    }

    .csk-apartment__image,
    .csk-apartment__image img {
        min-height: 580px;
    }

    .csk-visit {
        grid-template-columns: 1fr;
    }

    .csk-visit__map,
    .csk-visit__map iframe {
        min-height: 450px;
    }

    .csk-contact-cards {
        grid-template-columns: 1fr;
    }

    .csk-contact-card {
        min-height: 190px;
    }

    .csk-form-section {
        grid-template-columns: 1fr;
        gap: 45px;
        padding: 90px 40px;
    }
}


/* =========================================================
   MOBIL
   ========================================================= */

@media (max-width: 767px) {

    .csk-contact-hero {
        min-height: 680px;
    }

    .csk-contact-hero__image {
        object-position: 45% center;
    }

    .csk-contact-hero__overlay {
        background:
            linear-gradient(
                0deg,
                rgba(0,0,0,.75) 0%,
                rgba(0,0,0,.3) 80%
            );
    }

    .csk-contact-hero__content {
        justify-content: flex-end;
        width: calc(100% - 36px);
        min-height: 680px;
        padding: 100px 0 110px;
    }

    #csk-contact h1 {
        font-size: 42px;
    }

    #csk-contact h2 {
        font-size: 36px;
    }

    .csk-contact-hero__content p {
        font-size: 16px;
    }

    .csk-contact-hero__buttons {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    #csk-contact .csk-contact-hero__buttons .csk-btn {
        width: 100%;
    }

    .csk-contact-hero__address {
        right: 18px;
        bottom: 22px;
        left: 18px;
        font-size: 11px;
    }

    .csk-opening {
        width: calc(100% - 36px);
        padding: 75px 0;
    }

    .csk-opening__row {
        padding: 20px 0;
    }

    .csk-opening__row > div {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .csk-opening__row strong {
        font-size: 27px;
    }

    .csk-experience__photo img {
        min-height: 500px;
        height: 70vh;
    }

    .csk-experience__content {
        padding: 70px 20px;
    }

    .csk-experience__lead {
        font-size: 19px;
    }

    .csk-showroom-gallery {
        padding: 80px 18px;
    }

    .csk-section-heading {
        width: 100%;
        margin-bottom: 40px;
        text-align: left;
    }

    .csk-gallery-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 520px 290px 290px;
        gap: 8px;
    }

    .csk-gallery-item--a {
        grid-column: 1;
        grid-row: 1;
    }

    .csk-gallery-item--b {
        grid-column: 2;
        grid-row: 1;
    }

    .csk-gallery-item--c {
        grid-column: 1;
        grid-row: 2;
    }

    .csk-gallery-item--d {
        grid-column: 2;
        grid-row: 2;
    }

    .csk-gallery-item--e {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    .csk-apartment__image,
    .csk-apartment__image img {
        min-height: 450px;
    }

    .csk-apartment__content {
        padding: 70px 20px;
    }

    .csk-visit__content {
        padding: 70px 20px;
    }

    .csk-visit__info {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .csk-visit__map,
    .csk-visit__map iframe {
        min-height: 390px;
    }

    .csk-contacts {
        padding: 80px 18px;
    }

    .csk-contact-card {
        min-height: 180px;
        padding: 28px 24px;
    }

    .csk-form-section {
        padding: 75px 20px;
    }

    .csk-lightbox {
        padding: 15px;
    }

    .csk-lightbox__close {
        top: 10px;
        right: 10px;
    }
}


/* velmi malé mobily */
@media (max-width: 480px) {

    .csk-gallery-grid {
        grid-template-rows: 430px 220px 220px;
    }

    .csk-gallery-item img {
        object-position: center;
    }
}