#tr-tab-3{
	display:none;
}
.tr-tabs__nav {
  
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

}



.page-template-template-siseviimistluspaketid {
    --tr-green: #284547;
    --tr-text: #284547;
    --tr-muted: #657274;
    --tr-line: rgba(40, 69, 71, 0.16);
    --tr-white: #ffffff;

    background: var(--tr-white);
}

.page-template-template-siseviimistluspaketid .tr-interior,
.page-template-template-siseviimistluspaketid .tr-interior button,
.page-template-template-siseviimistluspaketid .tr-interior input,
.page-template-template-siseviimistluspaketid .tr-interior textarea {
    font-family: 'DM Sans', sans-serif;
}

.tr-interior {
    overflow: hidden;
    background: var(--tr-white);
    color: var(--tr-text);
}

.tr-interior__container {
    width: min(100% - 40px, 1440px);
    margin-inline: auto;
}

/* =========================================================
   INTRO
   ========================================================= */

.tr-interior__intro {
    padding: clamp(120px, 12vw, 190px) 0 clamp(48px, 6vw, 84px);
    text-align: center;
}

.tr-interior h1 {
    margin: 0;
    color: var(--tr-green);
    font-size: clamp(42px, 5vw, 74px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.tr-interior__lead {
    max-width: 720px;
    margin: 20px auto 0;
    color: var(--tr-muted);
    font-size: clamp(15px, 1.3vw, 18px);
    line-height: 1.65;
}

.tr-interior__lead > *:first-child,
.tr-panel__description > *:first-child,
.tr-product-group__description > *:first-child {
    margin-top: 0;
}

.tr-interior__lead > *:last-child,
.tr-panel__description > *:last-child,
.tr-product-group__description > *:last-child {
    margin-bottom: 0;
}

/* =========================================================
   PACKAGES AND TABS
   ========================================================= */

.tr-interior__packages {
    padding-bottom: clamp(90px, 10vw, 160px);
}

.tr-tabs {
    border: 0px solid var(--tr-line);
    background: var(--tr-white);
}

.tr-tabs__nav {
    position: sticky;
    top: 0;
    z-index: 3;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    background: rgba(255, 255, 255, 0.96);
    border-bottom: 0px solid var(--tr-line);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.tr-tabs__button {
    appearance: none;
    -webkit-appearance: none;

    display: flex;
    min-height: 110px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    padding: 20px;

    border: 0;
    border-right: 0px solid var(--tr-line);

    background: var(--tr-white);
    color: var(--tr-green);

    cursor: pointer;

    transform: translateY(0);
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        transform 0.3s ease;
}

.tr-tabs__button:last-child {
    border-right: 0;
}

.tr-tabs__button:hover {
    background: #f6f8f7;
    transform: translateY(4px);
	   border: 0;
}

.tr-tabs__button.is-active {
    background: var(--tr-green);
    color: var(--tr-white);
}

.tr-tabs__button.is-active:hover {
    background: var(--tr-green);
}

.tr-tabs__number {
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    opacity: 0.8;
}

.tr-tabs__label {
    font-size: clamp(17px, 1.45vw, 22px);
    font-weight: 500;
    letter-spacing: 0.015em;
    text-transform: uppercase;
}

/* =========================================================
   PANEL
   ========================================================= */

.tr-panel {
    padding:
        clamp(50px, 6vw, 84px)
        clamp(24px, 4.5vw, 72px)
        clamp(60px, 7vw, 100px);

    animation: trPanelIn 0.45s ease both;
}

.tr-panel[hidden] {
    display: none;
}

@keyframes trPanelIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tr-panel__header {
    max-width: 620px;
    margin: 0 0 clamp(42px, 5vw, 68px);
}

.tr-panel h2 {
    margin: 0;
    color: var(--tr-green);
    font-size: clamp(32px, 3.4vw, 52px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.035em;
    text-transform: uppercase;
}

.tr-panel h2::after {
    content: '';

    display: block;
    width: 48px;
    height: 2px;
    margin-top: 22px;

    background: var(--tr-green);
}

.tr-panel__description {
    max-width: 520px;
    margin-top: 22px;

    color: var(--tr-muted);
    font-size: 16px;
    line-height: 1.65;
}

.tr-panel__content {
    display: flex;
    flex-direction: column;
    gap: clamp(54px, 7vw, 96px);
}

/* =========================================================
   PRODUCT GROUP
   ========================================================= */

.tr-product-group {
    width: 100%;
    margin: 0;
}

.tr-product-group__header {
    margin-bottom: clamp(30px, 4vw, 48px);
}

.tr-product-group__description {
    max-width: 650px;
    color: var(--tr-muted);
    font-size: 15px;
    line-height: 1.65;
}

/* =========================================================
   PRODUCT COLLAGES
   ========================================================= */

.tr-products {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(20px, 2.8vw, 40px);
    row-gap: clamp(34px, 5vw, 70px);
    align-items: start;

    width: 100%;
    margin: 0;
    padding: 0;
}

/* Kõrvaldab figure elemendi brauseripoolse vaikimisi marginaali. */

.tr-product {
    min-width: 0;
    margin: 0;
    padding: 0;
}

/* =========================================================
   COLLAGE 1
   ========================================================= */

.tr-product-group--1 .tr-product:nth-child(1) {
    grid-column: 1 / span 4;
}

.tr-product-group--1 .tr-product:nth-child(2) {
    grid-column: 5 / span 4;
    margin-top: clamp(28px, 3.5vw, 52px);
}

.tr-product-group--1 .tr-product:nth-child(3) {
    grid-column: 9 / span 4;
    margin-top: clamp(10px, 1.4vw, 20px);
}

.tr-product-group--1 .tr-product:nth-child(4) {
    grid-column: 1 / span 3;
    margin-top: clamp(8px, 1.2vw, 18px);
}

.tr-product-group--1 .tr-product:nth-child(5) {
    grid-column: 5 / span 6;
}

/* =========================================================
   COLLAGE 2
   ========================================================= */

.tr-product-group--2 .tr-product:nth-child(1) {
    grid-column: 1 / span 3;
    margin-top: clamp(22px, 3vw, 44px);
}

.tr-product-group--2 .tr-product:nth-child(2) {
    grid-column: 4 / span 5;
}

.tr-product-group--2 .tr-product:nth-child(3) {
    grid-column: 9 / span 4;
    margin-top: clamp(34px, 4vw, 58px);
}

.tr-product-group--2 .tr-product:nth-child(4) {
    grid-column: 1 / span 4;
}

.tr-product-group--2 .tr-product:nth-child(5) {
    grid-column: 6 / span 6;
    margin-top: clamp(10px, 1.5vw, 22px);
}

/* =========================================================
   COLLAGE 3
   ========================================================= */

.tr-product-group--3 .tr-product:nth-child(1) {
    grid-column: 1 / span 4;
}

.tr-product-group--3 .tr-product:nth-child(2) {
    grid-column: 5 / span 4;
    margin-top: clamp(30px, 3.5vw, 52px);
}

.tr-product-group--3 .tr-product:nth-child(3) {
    grid-column: 9 / span 4;
}

.tr-product-group--3 .tr-product:nth-child(4) {
    grid-column: 1 / span 3;
    margin-top: clamp(18px, 2.5vw, 36px);
}

.tr-product-group--3 .tr-product:nth-child(5) {
    grid-column: 5 / span 6;
}

/* =========================================================
   COLLAGE 4
   ========================================================= */

.tr-product-group--4 .tr-product:nth-child(1) {
    grid-column: 1 / span 3;
}

.tr-product-group--4 .tr-product:nth-child(2) {
    grid-column: 4 / span 5;
    margin-top: clamp(28px, 3.5vw, 50px);
}

.tr-product-group--4 .tr-product:nth-child(3) {
    grid-column: 9 / span 4;
}

.tr-product-group--4 .tr-product:nth-child(4) {
    grid-column: 1 / span 4;
    margin-top: clamp(16px, 2.2vw, 32px);
}

.tr-product-group--4 .tr-product:nth-child(5) {
    grid-column: 5 / span 7;
}

/* =========================================================
   PRODUCT IMAGE
   ========================================================= */

.tr-product__image-box {
    display: block;
    width: 100%;

    overflow: hidden;
    aspect-ratio: 1 / 1;

    background: var(--tr-white);
    border: 0;

    transform: translateY(0);
    transition: transform 0.3s ease;
}

/* Kollaaži eri mõõdus pildid. */

.tr-product:nth-child(2) .tr-product__image-box {
    aspect-ratio: 0.92 / 1;
}

.tr-product:nth-child(3) .tr-product__image-box {
    aspect-ratio: 1.12 / 1;
}

.tr-product:nth-child(4) .tr-product__image-box {
    aspect-ratio: 1 / 1;
}

.tr-product:nth-child(5) .tr-product__image-box {
    aspect-ratio: 1.55 / 0.82;
}

.tr-product__image {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;

    object-fit: cover;

    background: var(--tr-white);

    transform: scale(1);
    transition: transform 0.45s ease;
}

.tr-product:hover .tr-product__image {
    transform: scale(1.04);
}

.tr-product:hover .tr-product__image-box {
    transform: translateY(-6px);
}

/* =========================================================
   PRODUCT CAPTION
   ========================================================= */

.tr-product figcaption {
    width: min(100%, 320px);
    margin: 14px 0 0;
    padding: 0;
    color: var(--tr-text);
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
    width: 75% !important;
}

/* =========================================================
   EMOTION IMAGE
   ========================================================= */

.tr-emotion {
    position: relative;

    width: 100%;
    margin: 0;
    overflow: hidden;
   /* aspect-ratio: 16 / 4.2;*/

    background: #f4f5f4;
    border: 0;
}

.tr-emotion--hero {
    margin-bottom: clamp(54px, 7vw, 96px);
   /* aspect-ratio: 16 / 5.2;*/
}

.tr-emotion__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================================
   TABLET
   ========================================================= */
@media (max-width: 980px) {

    .tr-products {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 42px 22px;
        align-items: start;
    }

    .tr-product-group--1 .tr-product,
    .tr-product-group--2 .tr-product,
    .tr-product-group--3 .tr-product,
    .tr-product-group--4 .tr-product {
        grid-column: span 1 !important;
        margin-top: 0 !important;
        width: 100%;
        transform: none !important;
    }

    .tr-product__image-box,
    .tr-product:nth-child(2) .tr-product__image-box,
    .tr-product:nth-child(3) .tr-product__image-box,
    .tr-product:nth-child(4) .tr-product__image-box,
    .tr-product:nth-child(5) .tr-product__image-box {
        aspect-ratio: 1 / 1;
    }

    .tr-product__image {
        padding: 18px;
    }

    .tr-product figcaption {
        font-size: 12px;
    }

    .tr-emotion,
    .tr-emotion--hero {
        aspect-ratio: 16 / 7;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 680px) {
	    .tr-products {
        grid-template-columns: minmax(0, 1fr);
        gap: 29px;
    }

    .tr-product {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        margin-top: 0 !important;
    }

    .tr-product:nth-child(5) {
        width: 100% !important;
    }
    .tr-interior__container {
        width: min(100% - 24px, 1440px);
    }

    .tr-interior__intro {
        padding-top: 105px;
    }

    .tr-tabs__button {
        min-height: 82px;
        padding: 12px 6px;
    }

    .tr-tabs__number {
        font-size: 10px;
    }

    .tr-tabs__label {
        font-size: 13px;
    }

    .tr-panel {
        padding: 42px 16px 64px;
    }

    .tr-panel__header {
        margin-bottom: 38px;
    }

    .tr-product-group__header {
        display: block;
    }

    .tr-product-group__description {
        margin-top: 12px;
    }

    .tr-products {
        grid-template-columns: minmax(0, 1fr);
        gap: 38px;
    }

    .tr-product-group--1 .tr-product,
    .tr-product-group--2 .tr-product,
    .tr-product-group--3 .tr-product,
    .tr-product-group--4 .tr-product {
        grid-column: 1 / -1;
        margin-top: 0;
		width:100%;
    }

    .tr-product__image-box,
    .tr-product:nth-child(2) .tr-product__image-box,
    .tr-product:nth-child(3) .tr-product__image-box,
    .tr-product:nth-child(4) .tr-product__image-box,
    .tr-product:nth-child(5) .tr-product__image-box {
        aspect-ratio: 1 / 1;
    }

    .tr-product__image {
        padding: 0;
    }

    .tr-product figcaption {
        width: 100%;
        margin-top: 12px;
        font-size: 12px;
    }

    .tr-emotion,
    .tr-emotion--hero {
        aspect-ratio: 4 / 2.3;
    }
}

@media (max-width: 420px) {
    .tr-tabs__label {
    font-size: 16px;
}
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .tr-panel,
    .tr-tabs__button,
    .tr-product__image,
    .tr-product__image-box {
        animation: none;
        transition: none;
    }
}
