.tar-panels,
.tar-panels * {
    box-sizing: border-box;
}

.tar-panels {
    --tar-green: #0f6c43;
    --tar-green-dark: #0c5234;
    --tar-green-soft: #eef8f2;
    --tar-dark: #16212b;
    --tar-muted: #5f6d67;
    --tar-card: rgba(255,255,255,.96);
    --tar-border: #dde4e1;
    --tar-shadow: 0 22px 55px rgba(20, 32, 26, .10);
    width: 100%;
    margin: 34px auto;
    color: var(--tar-dark);
    font-family: inherit;
}

.tar-panels__inner {
    width: min(1420px, calc(100% - 30px));
    margin: 0 auto;
    padding: clamp(22px, 3vw, 38px);
    border: 1px solid rgba(22, 33, 43, .08);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(249,250,249,.98));
    box-shadow: var(--tar-shadow);
}

.tar-panels__header {
    position: relative;
    margin: 0 auto clamp(18px, 2.6vw, 30px);
    text-align: center;
}

.tar-panels__header::before {
    content: '';
    display: block;
    width: min(460px, 42%);
    height: 2px;
    margin: 0 auto 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(15,108,67,.45), transparent);
}

.tar-panels__header h2 {
    margin: 0;
    font-size: clamp(34px, 4.8vw, 68px);
    line-height: .98;
    letter-spacing: -.045em;
    color: var(--tar-dark);
}

.tar-panels__header p {
    margin: 10px 0 0;
    color: var(--tar-muted);
    font-size: clamp(16px, 1.8vw, 22px);
}

.tar-panels__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 1.8vw, 26px);
}

.tar-panel-card {
    overflow: hidden;
    border: 1px solid var(--tar-border);
    border-radius: 22px;
    background: var(--tar-card);
    box-shadow: 0 12px 28px rgba(18, 31, 26, .08);
}

.tar-panel-card__media {
    position: relative;
    aspect-ratio: 16/9;
    background: #edf2ef;
    overflow: hidden;
}

.tar-panel-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tar-panel-card__badge {
    margin: 0;
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 9px 16px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #196d42, #0f5634);
    box-shadow: 0 10px 22px rgba(15, 86, 52, .24);
    font-size: 16px;
    max-width: calc(100% - 28px);
    font-weight: 800;
    line-height: 1.18;
    text-align: center;
    white-space: normal;
}

.tar-panel-card__body {
    padding: 16px 18px 18px;
}

.tar-panel-card__details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: 12px;
    align-items: start;
}

.tar-detail {
    min-width: 0;
}

.tar-detail__label {
    display: block;
    margin-bottom: 4px;
    color: #4e5c57;
    font-size: 14px;
    font-weight: 700;
}

.tar-detail__label--inline {
    margin-bottom: 0;
    flex: 0 0 auto;
}

.tar-detail strong {
    display: block;
    color: var(--tar-dark);
    font-size: 15px;
    line-height: 1.42;
    font-weight: 700;
}

.tar-detail--length {
    padding-left: 16px;
    border-left: 1px solid #e4e9e7;
}

.tar-detail--length strong {
    font-size: 18px;
    font-weight: 800;
}

.tar-panel-card__colors-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #edf1ef;
    white-space: nowrap;
}

.tar-panel-card__colors {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    min-width: 0;
}

.tar-color-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 6px 12px;
    border: 1px solid #dce4e0;
    border-radius: 999px;
    background: #f8faf9;
    color: #31403b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.15;
}

.tar-color-pill i {
    display: inline-block;
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    border-radius: 50%;
    background: #2f3942;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.26);
}

.tar-color-pill--green i {
    background: #1b7245;
}

.tar-panel-card__prices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: 18px;
    border: 1px solid #dbe3df;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
}

.tar-price {
    padding: 18px 12px 17px;
    text-align: center;
    background: #fff;
}

.tar-price + .tar-price {
    border-left: 1px solid #dbe3df;
}

.tar-price strong {
    display: block;
    color: var(--tar-dark);
    font-size: clamp(20px, 1.9vw, 31px);
    line-height: 1.12;
    font-weight: 900;
}

.tar-price span {
    display: block;
    margin-top: 6px;
    color: #42535d;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
}

.tar-price--meter {
    background: linear-gradient(180deg, rgba(15,108,67,.06), rgba(15,108,67,.12));
}

.tar-price--meter strong,
.tar-price--meter span {
    color: var(--tar-green);
}

.tar-panels__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 760px;
    margin: 24px auto 0;
}

.tar-panels__button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 68px;
    padding: 14px 22px;
    border-radius: 16px;
    text-decoration: none !important;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.tar-panels__button:hover,
.tar-panels__button:focus {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(11, 33, 24, .14);
    filter: brightness(1.02);
}

.tar-panels__button svg {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    fill: currentColor;
}

.tar-panels__button strong {
    display: block;
    font-size: clamp(18px, 1.9vw, 25px);
    line-height: 1.1;
    font-weight: 850;
}

.tar-panels__button--mail {
    color: #fff !important;
    border: 0;
    background: linear-gradient(135deg, #0f6c43, #0d5b39);
}

.tar-panels__button--phone {
    color: var(--tar-green) !important;
    border: 1.5px solid rgba(15,108,67,.34);
    background: #fff;
}

.tar-panels__disclaimer {
    width: fit-content;
    max-width: 100%;
    margin: 18px auto 0;
    padding: 12px 18px;
    border: 1px solid #dde4e1;
    border-radius: 999px;
    color: #5a6964;
    background: #fff;
    text-align: center;
    font-size: 14px;
    line-height: 1.45;
}

.tar-panel-popup[hidden] {
    display: none !important;
}

.tar-panel-popup {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: grid;
    place-items: center;
    padding: 18px;
}

.tar-panel-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 14, 14, .72);
    backdrop-filter: blur(6px);
}

.tar-panel-popup__dialog {
    position: relative;
    z-index: 1;
    width: min(1460px, 96vw);
    max-height: 95vh;
    overflow: auto;
    border-radius: 28px;
    box-shadow: 0 32px 80px rgba(0,0,0,.34);
}

.tar-panel-popup__dialog .tar-panels {
    margin: 0;
}

.tar-panel-popup__dialog .tar-panels__inner {
    width: 100%;
}

.tar-panel-popup__close {
    position: sticky;
    z-index: 4;
    top: 10px;
    float: right;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 12px 12px -56px 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(22, 33, 43, .92);
    box-shadow: 0 10px 22px rgba(0,0,0,.18);
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
}

body.tar-panel-popup-open {
    overflow: hidden;
}

@media (max-width: 1180px) {
    .tar-panels__grid {
        grid-template-columns: 1fr;
        max-width: 760px;
        margin: 0 auto;
    }
}

@media (max-width: 720px) {
    .tar-panels {
        margin: 22px auto;
    }

    .tar-panels__inner {
        width: min(100% - 12px, 1420px);
        padding: 16px 12px 18px;
        border-radius: 20px;
    }

    .tar-panels__header {
        text-align: left;
        padding-right: 34px;
        margin-bottom: 14px;
    }

    .tar-panels__header::before {
        width: 140px;
        margin: 0 0 14px;
    }

    .tar-panels__header h2 {
        font-size: clamp(28px, 10vw, 42px);
    }

    .tar-panel-card {
        border-radius: 18px;
    }

    .tar-panel-card__body {
        padding: 14px;
    }

    .tar-panel-card__details {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .tar-detail--length {
        padding-left: 0;
        border-left: 0;
        padding-top: 10px;
        border-top: 1px solid #edf1ef;
    }

    .tar-panel-card__colors-wrap {
        align-items: flex-start;
        flex-wrap: wrap;
        white-space: normal;
    }

    .tar-panel-card__colors {
        flex-wrap: wrap;
    }

    .tar-panel-card__prices,
    .tar-panels__actions {
        grid-template-columns: 1fr;
    }

    .tar-price + .tar-price {
        border-left: 0;
        border-top: 1px solid #dbe3df;
    }

    .tar-panels__button {
        min-height: 60px;
    }

    .tar-panels__button strong {
        font-size: 19px;
    }

    .tar-panels__disclaimer {
        width: 100%;
        border-radius: 18px;
    }

    .tar-panel-popup {
        padding: 8px;
    }

    .tar-panel-popup__dialog {
        width: 100%;
        max-height: calc(100dvh - 16px);
        border-radius: 20px;
    }

    .tar-panel-popup__close {
        width: 42px;
        height: 42px;
        margin: 8px 8px -50px 0;
    }
}

/* v1.3.0 – premium kartice */
.tar-panel-card {
    position: relative;
    isolation: isolate;
    border-color: rgba(15, 108, 67, .13);
    background:
        linear-gradient(180deg, rgba(255,255,255,.995), rgba(250,252,251,.985));
    box-shadow:
        0 22px 52px rgba(18, 31, 26, .10),
        0 3px 10px rgba(18, 31, 26, .045);
    transition:
        transform .28s cubic-bezier(.2,.7,.2,1),
        box-shadow .28s ease,
        border-color .28s ease;
}

.tar-panel-card::before {
    content: '';
    position: absolute;
    z-index: 3;
    top: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), transparent);
    pointer-events: none;
}

.tar-panel-card::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: auto 8% -14px;
    height: 28px;
    border-radius: 50%;
    background: rgba(15, 108, 67, .14);
    filter: blur(20px);
    opacity: .22;
    transition: opacity .28s ease, transform .28s ease;
    pointer-events: none;
}

.tar-panel-card:hover {
    transform: translateY(-7px);
    border-color: rgba(15, 108, 67, .26);
    box-shadow:
        0 30px 68px rgba(18, 31, 26, .15),
        0 7px 18px rgba(18, 31, 26, .07);
}

.tar-panel-card:hover::after {
    opacity: .42;
    transform: translateY(4px) scale(1.04);
}

.tar-panel-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8,20,15,.02) 38%, rgba(8,20,15,.24) 100%),
        linear-gradient(110deg, rgba(255,255,255,.16), transparent 30%);
    pointer-events: none;
}

.tar-panel-card__media img {
    transform: scale(1.002);
    transition: transform .65s cubic-bezier(.2,.7,.2,1), filter .35s ease;
}

.tar-panel-card:hover .tar-panel-card__media img {
    transform: scale(1.045);
    filter: saturate(1.04) contrast(1.02);
}

.tar-panel-card__badge {
    z-index: 2;
    border: 1px solid rgba(255,255,255,.24);
    background: linear-gradient(135deg, rgba(18,43,34,.94), rgba(15,108,67,.91));
    box-shadow:
        0 12px 28px rgba(7, 39, 25, .28),
        inset 0 1px 0 rgba(255,255,255,.22);
    backdrop-filter: blur(10px);
    letter-spacing: .01em;
}

.tar-panel-card__body {
    position: relative;
}

.tar-panel-card__body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 18px;
    right: 18px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(15,108,67,.16), transparent);
}

.tar-panel-card__details {
    padding: 2px 2px 0;
}

.tar-detail__label {
    color: #66746e;
    font-size: 12px;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.tar-detail strong {
    color: #18262f;
}

.tar-detail--length {
    position: relative;
}

.tar-detail--length::before {
    content: '↔';
    display: inline-block;
    margin: 0 0 5px;
    color: var(--tar-green);
    font-size: 18px;
    line-height: 1;
}

.tar-panel-card__colors-wrap {
    margin-top: 16px;
    padding: 14px 2px 0;
}

.tar-color-pill {
    border-color: rgba(15,108,67,.11);
    background: linear-gradient(180deg, #fff, #f6f9f7);
    box-shadow:
        0 5px 14px rgba(20, 38, 29, .055),
        inset 0 1px 0 rgba(255,255,255,.9);
}

.tar-color-pill i {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.28),
        0 2px 5px rgba(0,0,0,.16);
}

.tar-panel-card__prices {
    position: relative;
    margin-top: 20px;
    border-color: rgba(15,108,67,.14);
    background: linear-gradient(180deg, #fff, #fafcfb);
    box-shadow:
        0 10px 24px rgba(17, 40, 29, .07),
        inset 0 1px 0 rgba(255,255,255,.96);
}

.tar-panel-card__prices::before {
    content: '';
    position: absolute;
    z-index: 2;
    top: 0;
    left: 12%;
    right: 12%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(15,108,67,.30), transparent);
}

.tar-price {
    position: relative;
    min-height: 104px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tar-price strong {
    letter-spacing: -.035em;
}

.tar-price--panel strong {
    color: #17252e;
}

.tar-price--meter {
    background:
        radial-gradient(circle at 50% 0, rgba(31,137,87,.14), transparent 65%),
        linear-gradient(180deg, rgba(15,108,67,.055), rgba(15,108,67,.115));
}

.tar-price--meter::after {
    content: '';
    position: absolute;
    right: 14px;
    bottom: 13px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--tar-green);
    box-shadow: 0 0 0 5px rgba(15,108,67,.08);
}

.tar-panels__button {
    box-shadow: 0 12px 26px rgba(14, 48, 34, .09);
}

.tar-panels__button--mail {
    border: 1px solid rgba(255,255,255,.08);
    background:
        linear-gradient(135deg, #123326, #0f6c43 58%, #0c5636);
    box-shadow:
        0 14px 30px rgba(15,108,67,.22),
        inset 0 1px 0 rgba(255,255,255,.15);
}

.tar-panels__button--phone {
    border-color: rgba(15,108,67,.27);
    background: linear-gradient(180deg, #fff, #f8fbf9);
    box-shadow:
        0 12px 26px rgba(16, 50, 34, .08),
        inset 0 1px 0 rgba(255,255,255,.95);
}

@media (max-width: 720px) {
    .tar-panel-card:hover {
        transform: none;
    }

    .tar-panel-card__media img,
    .tar-panel-card:hover .tar-panel-card__media img {
        transform: none;
    }

    .tar-detail--length::before {
        display: none;
    }

    .tar-panel-card__prices {
        box-shadow: 0 8px 18px rgba(17, 40, 29, .06);
    }
}

/* v1.3.1 – bolj elegantne, manj dominantne fotografije */
.tar-panel-card__media {
    width: calc(100% - 20px);
    margin: 10px 10px 0;
    aspect-ratio: 2.25 / 1;
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.34);
}

.tar-panel-card__media img {
    object-position: center 52%;
}

.tar-panel-card__badge {
    top: 11px;
    left: 11px;
    min-height: 38px;
    padding: 8px 13px;
    border-radius: 12px;
    font-size: 14px;
}

.tar-panel-card__body {
    padding-top: 14px;
}

.tar-panel-card:hover .tar-panel-card__media img {
    transform: scale(1.025);
}

.tar-panel-popup__dialog .tar-panel-card__media {
    aspect-ratio: 2.35 / 1;
}

@media (max-width: 720px) {
    .tar-panel-card__media,
    .tar-panel-popup__dialog .tar-panel-card__media {
        width: calc(100% - 16px);
        margin: 8px 8px 0;
        aspect-ratio: 2 / 1;
        border-radius: 14px;
    }

    .tar-panel-card__badge {
        top: 9px;
        left: 9px;
        min-height: 36px;
        padding: 7px 11px;
        font-size: 13px;
    }
}
