
/* ==========================================
   TIHASE PESA – TEENUSED
========================================== */


/* ==========================================
   SISSEJUHATUS
========================================== */

.tp-services-page .tp-services-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(28px, 5vw, 90px);
    margin: clamp(35px, 5vw, 75px) 0;
}

.tp-services-page .tp-services-intro__text {
    min-width: 0;
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.7;
}

.tp-services-page .tp-services-intro__text > :first-child {
    margin-top: 0;
}

.tp-services-page .tp-services-intro__text > :last-child {
    margin-bottom: 0;
}

.tp-services-page .tp-services-intro__image {
    margin: 0;
    overflow: hidden;
    border-radius: 30px;
}

.tp-services-page .tp-services-intro__image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 30px;
}


/* ==========================================
   LEHE SISU
========================================== */

.tp-services-page .tp-services-body {
    margin: clamp(40px, 6vw, 90px) 0;
}


/* ==========================================
   PAKETTIDE SEKTSIOON
========================================== */

.tp-services-page .tp-services-packages {
    margin: clamp(50px, 7vw, 100px) 0 0;
}

.tp-services-page .tp-services-packages__heading {
    margin-bottom: 40px;
}

.tp-services-page .tp-services-packages__heading > :first-child {
    margin-top: 0;
}

.tp-services-page .tp-services-packages__heading > :last-child {
    margin-bottom: 0;
}


/* ==========================================
   PAKETTIDE GRID
========================================== */

.tp-services-page .tp-services-packages__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}


/* ==========================================
   PAKETI KAART
========================================== */

.tp-services-page .tp-services-package {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
    padding: clamp(24px, 2.5vw, 36px);
    background: #fdce0f;
    border: 2px solid #171717;
    border-radius: 30px;
    color: #171717;
}


/* ==========================================
   PAKETI PILT
========================================== */

.tp-services-page .tp-services-package__image {
    width: 100%;
    aspect-ratio: 4 / 3;

    margin: 0 0 28px;
    overflow: hidden;
    border-radius: 16px;
}

.tp-services-page .tp-services-package__image img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}


/* ==========================================
   PAKETI PEALKIRI
========================================== */

.tp-services-page .tp-services-package h3 {
    margin: 0 0 18px;

    font-size: clamp(22px, 2vw, 28px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.04em;

    color: #171717;
}


/* ==========================================
   PAKETI KIRJELDUS
========================================== */

.tp-services-page .tp-services-package__description {
    width: 100%;
    max-width: 300px;

    margin: 0 auto;

    font-size: 16px;
    line-height: 1.5;
    color: #171717;
}

.tp-services-page .tp-services-package__description > :first-child {
    margin-top: 0;
}

.tp-services-page .tp-services-package__description > :last-child {
    margin-bottom: 0;
}

.tp-services-page .tp-services-package__description p {
    margin-bottom: 12px;
}

.tp-services-page .tp-services-package__description p:last-child {
    margin-bottom: 0;
}


/* ==========================================
   PAKETI HIND
========================================== */

.tp-services-page .tp-services-package__price {
    margin: 24px 0 0;

    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;

    color: #171717;
}


/* ==========================================
   PAKETI NUPP
========================================== */

.tp-services-page .tp-services-package__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;

    margin-top: auto;
    padding: 14px 24px;

    background: #171717;
    color: #ffffff;

    border: 2px solid #171717;
    border-radius: 100px;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.tp-services-page .tp-services-package__description + .tp-services-package__button,
.tp-services-page .tp-services-package__price + .tp-services-package__button {
    margin-top: 24px;
}

.tp-services-page .tp-services-package__button:hover {
    background: transparent;
    color: #171717;
}


/* ==========================================
   RESPONSIVE – TABLET
========================================== */

@media (max-width: 1024px) {

    .tp-services-page .tp-services-packages__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

}


/* ==========================================
   RESPONSIVE – MOBILE
========================================== */

@media (max-width: 767px) {

    .tp-services-page .tp-services-intro {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .tp-services-page .tp-services-packages {
        margin-top: 48px;
    }

    .tp-services-page .tp-services-packages__heading {
        margin-bottom: 28px;
    }

    .tp-services-page .tp-services-packages__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tp-services-page .tp-services-package {
        padding: 32px 24px;
        border-radius: 28px;
    }

    .tp-services-page .tp-services-package__image {
        margin-bottom: 24px;
    }

    .tp-services-page .tp-services-package h3 {
        font-size: 24px;
    }

}

