:root {
    --qe-te-beige: #E8E0D5;
    --qe-te-text: #1b1b1b;
    --qe-te-title-font: "Cinzel", serif;
    --qe-te-body-font: "Exo 2", sans-serif;
}

.qe-te-grid,
.qe-te-single {
    font-family: var(--qe-te-body-font);
    color: var(--qe-te-text);
}

.qe-te-carousel {
    width: 100%;
}

.qe-te-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 44px 30px;
    width: 100%;
}

.qe-te-card {
    margin: 0;
    min-width: 0;
}

.qe-te-card__image-link,
.qe-te-card__title a {
    color: inherit;
    text-decoration: none;
}

.qe-te-card__image-wrap {
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 11;
    background: #f0eeeb;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(27, 27, 27, .055);
}

.qe-te-card__image,
.qe-te-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qe-te-card__image {
    transition: transform .55s cubic-bezier(.2,.65,.3,1);
}

@media (hover: hover) {
    .qe-te-card:hover .qe-te-card__image {
        transform: scale(1.035);
    }
}

.qe-te-card__content {
    padding-top: 20px;
}

.qe-te-card__title,
.qe-te-single__title {
    margin: 0;
    font-family: var(--qe-te-title-font);
    font-size: 28px;
    line-height: 1.25;
    font-weight: 700;
}

.qe-te-card__title {
    margin-bottom: 16px;
    font-size: 25px;
    line-height: 1.3;
    font-weight: 500;
    letter-spacing: .01em;
}

.qe-te-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 12px 23px;
    background: var(--qe-te-beige);
    color: var(--qe-te-text);
    text-decoration: none;
    font-family: var(--qe-te-body-font);
    font-size: 15px;
    line-height: 1;
    font-weight: 400;
    border: 1px solid transparent;
    border-radius: 999px;
    transition: background-color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.qe-te-button::after {
    content: "→";
    font-size: 16px;
    line-height: 1;
    transition: transform .25s ease;
}

.qe-te-button:hover,
.qe-te-button:focus-visible {
    background: #ddd2c3;
    border-color: transparent;
    color: var(--qe-te-text);
    box-shadow: 0 8px 22px rgba(27, 27, 27, .08);
    transform: translateY(-1px);
}

.qe-te-button:hover::after,
.qe-te-button:focus-visible::after {
    transform: translateX(3px);
}

.qe-te-carousel__controls {
    display: none;
}

.qe-te-single {
    width: 100%;
    padding: 72px 24px 96px;
}

.qe-te-single__article {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.qe-te-single__header {
    margin-bottom: 32px;
}

.qe-te-single__address {
    margin: 8px 0 0;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 300;
    opacity: .75;
}

.qe-te-single__hero {
    margin: 0 0 42px;
}

.qe-te-single__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 680px;
    object-fit: cover;
}

.qe-te-single__content {
    font-size: 20px;
    line-height: 1.65;
    font-weight: 300;
}

.qe-te-single__content > *:first-child {
    margin-top: 0;
}

.qe-te-single__content > *:last-child {
    margin-bottom: 0;
}

.qe-te-contact-box {
    margin-top: 48px;
    padding: 28px 32px;
    background: var(--qe-te-beige);
    font-family: var(--qe-te-body-font);
    font-size: 18px;
    line-height: 1.5;
}

.qe-te-contact-box__row {
    display: grid;
    grid-template-columns: minmax(120px, 180px) 1fr;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(27, 27, 27, .18);
}

.qe-te-contact-box__row:first-child {
    padding-top: 0;
}

.qe-te-contact-box__row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.qe-te-contact-box__label {
    font-weight: 500;
}

.qe-te-contact-box a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.qe-te-empty {
    font-family: var(--qe-te-body-font);
    font-size: 20px;
    font-weight: 300;
}

@media (max-width: 1024px) {
    .qe-te-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .qe-te-carousel {
        position: relative;
    }

    .qe-te-grid {
        display: flex;
        gap: 18px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 2px 0 4px;
    }

    .qe-te-grid::-webkit-scrollbar {
        display: none;
    }

    .qe-te-card {
        flex: 0 0 100%;
        width: 100%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .qe-te-card__image-wrap {
        aspect-ratio: 4 / 3;
        border-radius: 14px;
        box-shadow: 0 8px 24px rgba(27, 27, 27, .05);
    }

    .qe-te-card__content {
        padding-top: 17px;
    }

    .qe-te-card__title {
        margin-bottom: 14px;
        font-size: 23px;
        font-weight: 500;
    }

    .qe-te-button {
        min-height: 44px;
        padding: 11px 20px;
        font-size: 15px;
    }

    .qe-te-single__title {
        font-size: 25px;
    }

    .qe-te-single {
        padding: 48px 20px 72px;
    }

    .qe-te-single__content {
        font-size: 18px;
    }

    .qe-te-contact-box {
        padding: 24px 20px;
        font-size: 17px;
    }

    .qe-te-contact-box__row {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}
