/* ============================================================
   DELTA — JEDEN WSPÓLNY PLIK CSS
   Źródło: /css/*.css (scalone); header/footer wg prototypu HTML. Style podstron są zawężone do klasy
   body szablonu WP (body.page-template-*), żeby nie wpływały na
   inne strony. Ładowany w functions.php po assets/dist/main.css.
   ============================================================ */

/* ============================================================
   ZMIENNE (wspólne)
   ============================================================ */
:root {
    --delta-red: #cf2e2e;
    --delta-red-dark: #9c1f1f;
    --delta-dark: #181a1e;
    --delta-line: rgba(0, 0, 0, .08);
    --delta-brand: #C60C1A;
    --delta-topbar: #223888;
}

/* ============================================================
   HEADER + FOOTER (cała strona) — header.php / footer.php
   Wygląd wg prototypu (.proto-topbar / .proto-nav / .proto-footer)
   ============================================================ */

/* ---------- Augšējā kontaktu josla ---------- */
.site-topbar {
    background: var(--delta-topbar);
    padding: 10px 24px;
}

.site-topbar .bar {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 28px;
}

.site-topbar a {
    color: #fff;
    text-decoration: none;
    font-size: .85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity .2s ease;
}

.site-topbar a:hover {
    color: #fff;
    opacity: .8;
}

.site-topbar .ic {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--delta-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.site-topbar .ic svg {
    width: 13px;
    height: 13px;
    fill: #fff;
}

/* ---------- Galvenā navigācija ---------- */
.site-nav.navbar {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    padding: 0;
}

body.admin-bar .site-nav.navbar {
    top: var(--wp-admin--admin-bar--height, 32px);
}

.site-nav .bar {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0 24px;
}

.site-nav .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-nav .logo img {
    height: 90px;
    width: auto;
    display: block;
    transition: transform .3s ease;
}

.site-nav .logo:hover img {
    transform: scale(1.03);
}

.site-nav .navbar-collapse {
    flex-grow: 0;
}

.site-nav .navbar-nav {
    list-style: none;
    display: flex;
    gap: 26px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.site-nav .nav-link {
    color: #181a1e !important;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 700;
    padding: 8px 2px !important;
    border-bottom: 3px solid transparent;
    transition: opacity .2s ease, border-color .2s ease;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.site-nav .nav-link:hover {
    opacity: .65;
}

.site-nav .nav-link.active {
    border-bottom-color: var(--delta-brand) !important;
}

/* mobilā "Vakances" poga un burger */
.site-nav .nav-mobile-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-nav .nav-mobile-actions .btn {
    border-radius: 50px !important;
    font-weight: 700;
    padding: 6px 16px;
}

.site-nav .navbar-toggler {
    border: 1px solid var(--delta-line) !important;
    border-radius: 10px !important;
    background: #fff !important;
    padding: 6px 10px;
}

.site-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23181a1e' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width:991.98px) {
    .site-nav .logo img {
        height: 48px;
    }

    .site-nav .navbar-collapse {
        flex-basis: 100%;
    }

    .site-nav .navbar-nav {
        flex-direction: column;
        gap: 0;
        padding: 12px 0 4px;
    }

    .site-nav .nav-link {
        display: block;
        padding: 12px 0 !important;
        border-bottom: 1px solid var(--delta-line);
    }

    .site-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    .site-nav .nav-link.active {
        color: var(--delta-brand) !important;
        border-bottom-color: var(--delta-line) !important;
    }
}

@media (max-width:576px) {

    /* uz telefona augšējā joslā tikai ikonas */
    .site-topbar .bar {
        justify-content: center;
    }

    .site-topbar .txt {
        display: none;
    }

    .site-topbar .ic {
        width: 32px;
        height: 32px;
    }
}

/* ---------- Peldošā "Sazināties" poga apakšā labajā stūrī ---------- */
a.btn.btn-danger.position-fixed {
    border-radius: 50px !important;
    box-shadow: 0 10px 24px -8px rgba(207, 46, 46, .5) !important;
    font-weight: 700;
    transition: transform .25s ease, box-shadow .25s ease;
}

a.btn.btn-danger.position-fixed:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px -8px rgba(207, 46, 46, .6) !important;
}

@media (max-width:576px) {
    a.btn.btn-danger.float-contact {
        margin: 16px !important;
        font-size: 1rem;
        padding: 10px 18px;
    }
}

/* ---------- Kājene ---------- */
.site-footer {
    background: var(--delta-topbar);
    color: #fff;
    padding: 40px 24px;
}

.site-footer .bar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.site-footer .bar>div:first-child {
    padding-right: 40px;
    border-right: 2px solid var(--delta-brand);
}

.site-footer h4 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.site-footer p {
    margin: 0 0 4px;
    color: #fff;
    font-size: .95rem;
    line-height: 1.7;
    opacity: .95;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
}

.site-footer a:hover {
    opacity: .8;
}

.site-footer .contact-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-footer .contact-line svg {
    width: 16px;
    height: 16px;
    fill: var(--delta-brand);
    flex: 0 0 auto;
}

@media (max-width:700px) {
    .site-footer .bar>div:first-child {
        border-right: none;
        border-bottom: 2px solid var(--delta-brand);
        padding-right: 0;
        padding-bottom: 20px;
    }
}

/* ============================================================
   GLOBALNE + STRONA GŁÓWNA — delta-final.css
   ============================================================ */
.decorated {
    border-bottom: 1px solid var(--delta-line);
    padding-bottom: 22px;
    margin-bottom: 52px !important;
}

.decorated span {
    font-weight: 900;
    letter-spacing: -.6px;
}

.card.delta_card_bg {
    border: 1px solid var(--delta-line) !important;
    border-radius: 20px !important;
    background: #fff !important;
    box-shadow: 0 4px 18px rgba(20, 22, 26, .04);
    position: relative;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease, border-color .35s ease;
}

.card.delta_card_bg:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 44px -18px rgba(20, 22, 26, .18);
    border-color: transparent;
}

.card.delta_card_bg .card-body {
    padding: 2rem 1.75rem;
}

.card.delta_card_bg .col-lg-2 {
    position: relative;
}

.card.delta_card_bg .col-lg-2 img {
    max-width: 26px;
    position: relative;
    z-index: 2;
    filter: brightness(0) invert(1);
}

.card.delta_card_bg .col-lg-2::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--delta-red), var(--delta-red-dark));
    box-shadow: 0 10px 20px -8px rgba(207, 46, 46, .45);
    transition: transform .35s ease;
}

.card.delta_card_bg:hover .col-lg-2::before {
    transform: translate(-50%, -50%) scale(1.08) rotate(-4deg);
}

.card.delta_card_bg .card-title {
    font-weight: 800;
    min-height: 56px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    font-weight: 700;
    font-size: .9rem;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    transition: color .25s ease, border-color .25s ease, gap .25s ease;
}

.card-link::after {
    content: "→";
}

.card-link:hover {
    color: var(--delta-red) !important;
    border-color: var(--delta-red);
    gap: 11px;
}

.card-link.btn.delta_red,
a.card-link.btn.btn-danger {
    border: none;
    border-bottom: none !important;
    border-radius: 50px !important;
    padding: 10px 24px !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
    transition: transform .25s ease, box-shadow .25s ease;
}

.card-link.btn.delta_red:hover,
a.card-link.btn.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .18);
    gap: 7px !important;
}

#counts .purecounter,
#counts .text-danger.h1 {
    color: var(--delta-red) !important;
    font-size: 3.4rem !important;
    letter-spacing: -1px;
}

#counts .h4 {
    color: #fff !important;
    font-weight: 400;
    letter-spacing: .5px;
    text-transform: uppercase;
    font-size: 1rem !important;
    opacity: 1;
}

.posts-carousel .card.delta_card_bg {
    border-radius: 20px !important;
    overflow: hidden;
}

.posts-carousel .card-img-top {
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform .6s ease;
    position: relative;
}

.posts-carousel .card:hover .card-img-top {
    transform: scale(1.07);
}

.posts-carousel .card-body {
    padding: 1.3rem 1.3rem 1.6rem;
}

.posts-carousel .card-title {
    font-weight: 800;
    min-height: 2.6rem;
}

.posts-carousel .btn.delta_red {
    border-radius: 50px !important;
    padding: 9px 22px !important;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
    transition: transform .25s ease, box-shadow .25s ease;
}

.posts-carousel .btn.delta_red:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .18);
}

.slick-dots li button {
    border-radius: 50%;
    transition: transform .25s ease;
}

.slick-dots li.slick-active button {
    transform: scale(1.3);
}

.slick-prev,
.slick-next {
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
}

section.mt-5.mb-5 {
    padding-top: 1.8rem;
    padding-bottom: 1.8rem;
}

img {
    backface-visibility: hidden;
}

/* ============================================================
   STRONA GŁÓWNA (front-page.php) — wg prototypu delta-final.html
   ============================================================ */
body.home {
    --red: #cf2e2e;
    --red-dark: #9c1f1f;
    --dark: #14161a;
    --line: rgba(20, 22, 26, .09);
    --muted: #7a7f88;
    --bg: #faf9f7;
    background: var(--bg);
}

/* ---- hero ---- */
body.home .home-hero {
    position: relative;
    height: 78vh;
    min-height: 560px;
    max-height: 720px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

body.home .home-hero__inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 24px;
    width: 100%;
}

body.home .home-hero h1 {
    color: #fff;
    font-weight: 800;
    font-size: 3rem;
    line-height: 1.15;
    max-width: 640px;
    margin: 0 0 24px;
}

body.home .home-hero p {
    color: #fff;
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 640px;
    margin: 0 0 30px;
    opacity: .95;
}

body.home .home-hero a {
    display: inline-block;
    background: #C60C1A;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 30px;
    border-radius: 6px;
    transition: transform .25s ease, box-shadow .25s ease;
}

body.home .home-hero a:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 14px 28px -8px rgba(198, 12, 26, .6);
}

body.home .wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 90px 24px;
}

body.home .wrap.wrap--flat {
    padding-top: 0;
    padding-bottom: 0;
}

/* ---- sadaļu virsraksti ---- */
body.home .section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    padding-bottom: 24px;
    margin-bottom: 52px;
}

body.home .section-head .eyebrow {
    color: var(--red);
    font-size: .78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 800;
    display: block;
    margin-bottom: 10px;
}

body.home .section-head h2 {
    margin: 0;
    font-size: 2.1rem;
    font-weight: 900;
    letter-spacing: -.6px;
}

body.home .section-head .count {
    color: var(--muted);
    font-size: .88rem;
    font-weight: 600;
}

/* ---- pakalpojumi ---- */
body.home .services {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 110px;
}

body.home .s-card {
    position: relative;
    border-radius: 20px;
    padding: 30px 32px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 4px 18px rgba(20, 22, 26, .04);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease, border-color .35s ease;
    display: flex;
    align-items: center;
    gap: 28px;
}

body.home .s-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 44px -18px rgba(20, 22, 26, .18);
    border-color: transparent;
}

body.home .s-card .idx {
    position: absolute;
    top: 26px;
    right: 28px;
    font-size: .78rem;
    font-weight: 800;
    color: var(--muted);
    letter-spacing: 1px;
}

body.home .icon-badge {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px -8px rgba(207, 46, 46, .45);
    transition: transform .35s ease;
}

body.home .s-card:hover .icon-badge {
    transform: scale(1.08) rotate(-4deg);
}

body.home .icon-badge svg {
    width: 26px;
    height: 26px;
    stroke: #fff;
}

body.home .icon-badge img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

body.home .s-card .s-card-body {
    flex: 1;
    min-width: 0;
    padding-right: 60px;
}

body.home .s-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 6px;
}

body.home .s-card-desc {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.55;
    margin: 0 0 12px;
}

body.home .s-card a,
body.home .post-body a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 700;
    font-size: .88rem;
    border-bottom: 1px solid var(--dark);
    padding-bottom: 2px;
    transition: color .25s ease, border-color .25s ease, gap .25s ease;
}

body.home .s-card a:hover,
body.home .post-body a:hover {
    color: var(--red);
    border-color: var(--red);
    gap: 11px;
}

/* ---- statistika ---- */
body.home .stats {
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 110px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 70px 20px 60px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

body.home .stat {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 380px;
    text-align: center;
    padding: 10px 24px;
}

body.home .stat .num {
    font-size: 3.4rem;
    font-weight: 900;
    color: var(--red);
    letter-spacing: -1px;
    display: block;
    line-height: 1.1;
}

body.home .stat .label {
    color: #fff;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: .5px;
    margin-top: 10px;
    font-weight: 400;
}

/* ---- raksti ---- */
body.home .posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

body.home .post {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 18px rgba(20, 22, 26, .05);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
}

body.home .post:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 44px -18px rgba(20, 22, 26, .2);
}

body.home .post-img {
    display: block;
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #eee;
}

body.home .post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}

body.home .post:hover .post-img img {
    transform: scale(1.07);
}

body.home .post-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 12, .55) 0%, transparent 55%);
}

body.home .post-img .tag {
    position: absolute;
    left: 16px;
    bottom: 14px;
    z-index: 2;
    background: var(--red);
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 5px 13px;
    border-radius: 50px;
}

body.home .post-body {
    padding: 20px 20px 24px;
}

body.home .post-body h5 {
    margin: 0 0 14px;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.35;
    min-height: 2.6rem;
}

/* ---- klientu logo josla ---- */
body.home .clients-section {
    padding: 60px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: 60px;
}

body.home .clients-section .eyebrow {
    display: block;
    text-align: center;
    color: var(--red);
    font-size: .78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 36px;
}

body.home .marquee {
    overflow: hidden;
    position: relative;
}

body.home .marquee::before,
body.home .marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

body.home .marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--bg), transparent);
}

body.home .marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--bg), transparent);
}

body.home .marquee-track {
    display: flex;
    align-items: center;
    gap: 70px;
    width: max-content;
    animation: delta-marquee 28s linear infinite;
}

body.home .marquee:hover .marquee-track {
    animation-play-state: paused;
}

body.home .marquee-track img {
    height: 42px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .6;
    transition: filter .3s ease, opacity .3s ease;
}

body.home .marquee-track img:hover {
    filter: grayscale(0);
    opacity: 1;
}

@keyframes delta-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ---- video apakšā ---- */
body.home .home-video {
    position: relative;
    height: 70vh;
    min-height: 420px;
    background: linear-gradient(135deg, #181a1e, #3a3f47);
    overflow: hidden;
}

body.home .home-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

body.home .home-video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.home .home-video::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .25));
}

@media (max-width:820px) {
    body.home .posts {
        grid-template-columns: 1fr;
    }

    body.home .stats {
        flex-direction: column;
        align-items: center;
    }

    body.home .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    body.home .home-hero h1 {
        font-size: 2.2rem;
    }

    body.home .wrap {
        padding: 60px 24px;
    }
}

@media (max-width:600px) {
    body.home .s-card {
        flex-direction: column;
        align-items: flex-start;
    }

    body.home .s-card .s-card-body {
        padding-right: 0;
    }
}

/* ============================================================
   WSPÓLNE ELEMENTY PODSTRON (nagłówek strony z czerwonymi liniami)
   ============================================================ */
.page-title-bar {
    background: #fff;
    padding: 60px 0 20px;
}

.decorated-h {
    display: flex;
    align-items: center;
    gap: 24px;
    font-weight: 800;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin: 0 auto 40px;
    max-width: 1140px;
    padding: 0 24px;
}

.decorated-h::before,
.decorated-h::after {
    content: "";
    flex: 1;
    height: 2px;
    background: var(--delta-brand);
}

.decorated-h::before {
    align-self: flex-start;
    margin-top: .5em;
}

.decorated-h::after {
    align-self: flex-end;
    margin-bottom: .5em;
}

/* ============================================================
   FORMULARZ CF7 W KARCIE (Vakances, Kontakti) — .form-card / .form-grid
   ============================================================ */
.form-card {
    background: #fff;
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 4px 18px rgba(20, 22, 26, .05);
    text-align: center;
}

.form-card .decorated-h {
    margin-bottom: 14px;
    padding: 0;
}

.form-card .form-lead {
    color: #666;
    margin: 0 0 34px;
    font-size: 1rem;
}

.form-grid {
    max-width: 640px;
    margin: 0 auto;
    text-align: left;
}

.form-grid .wpcf7-form>p,
.form-grid .wpcf7-form .form-group p {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 0;
}

.form-grid .wpcf7-form .form-group p {
    margin-bottom: 1rem;
}

.form-grid .wpcf7-form>p {
    grid-column: 1/-1;
}

.form-grid .wpcf7-form br {
    display: none;
}

.form-grid .wpcf7-form-control-wrap {
    display: block;
}

.form-grid input[type="text"],
.form-grid input[type="email"],
.form-grid input[type="tel"],
.form-grid textarea {
    width: 100%;
    border: 1px solid var(--delta-line) !important;
    border-radius: 14px !important;
    padding: 14px 18px !important;
    font-size: .95rem !important;
    font-family: inherit;
    margin: 0 !important;
    background: #fff;
    box-shadow: none !important;
    transition: border-color .25s ease;
}

.form-grid input::placeholder,
.form-grid textarea::placeholder {
    color: #8a8f98;
}

.form-grid input:focus,
.form-grid textarea:focus {
    outline: none;
    border-color: var(--delta-red) !important;
}

/* kolejność jak w prototypie: imię + telefon, e-mail na całą szerokość, wiadomość */
.form-grid [name="namer"],
.form-grid [name="your-name"] {
    order: 1;
}

.form-grid [name="phoner"],
.form-grid [name="your-phone"] {
    order: 2;
}

.form-grid [name="emailer"],
.form-grid [name="your-email"] {
    order: 3;
    grid-column: 1/-1;
}

.form-grid textarea {
    order: 4;
    grid-column: 1/-1;
    resize: vertical;
    min-height: 100px;
    border-radius: 18px !important;
}

.form-grid input[type="submit"] {
    order: 5;
    grid-column: 1/-1;
    justify-self: center;
    margin-top: 10px !important;
    background: linear-gradient(135deg, var(--delta-red), var(--delta-red-dark)) !important;
    color: #fff !important;
    border: none !important;
    font-weight: 700;
    font-size: .95rem;
    text-transform: none;
    padding: 14px 36px !important;
    border-radius: 50px !important;
    box-shadow: 0 10px 24px -8px rgba(207, 46, 46, .5);
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}

.form-grid input[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px -8px rgba(207, 46, 46, .6);
}

.form-grid .wpcf7-response-output {
    text-align: center;
}

@media (max-width:800px) {
    .form-card {
        padding: 32px 22px;
    }

    .form-grid .wpcf7-form>p {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   O NAS (page-about.php) — par-mums-sabalansets.css
   ============================================================ */
body.page-template-page-about {
    --red: #cf2e2e;
    --red-dark: #9c1f1f;
    --dark: #181a1e;
    --line: rgba(0, 0, 0, .08);
    --muted: #7a7f88;
    --section-dark: #43425E;
    --bg: #faf9f7;
}

body.page-template-page-about {
    background: #f7f6f4;
    color: var(--dark);
    -webkit-font-smoothing: antialiased;
}

body.page-template-page-about .wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

body.page-template-page-about section {
    padding: 45px 0;
}

body.page-template-page-about .about-top {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 64px;
    align-items: center;
}

body.page-template-page-about .about-top .eyebrow {
    color: var(--red);
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 800;
    display: block;
    margin-bottom: 14px;
}

body.page-template-page-about .about-top h2 {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -.6px;
    margin: 0 0 22px;
}

body.page-template-page-about .about-top p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 0;
}

body.page-template-page-about .about-top .img-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 50px -22px rgba(20, 22, 26, .28);
}

body.page-template-page-about .about-top .img-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(155deg, rgba(207, 46, 46, .12), transparent 45%);
    pointer-events: none;
}

body.page-template-page-about .about-top .img-frame img {
    width: 100%;
    display: block;
    position: relative;
}

body.page-template-page-about .team-photo {
    padding-top: 0;
    padding-bottom: 0;
}

body.page-template-page-about .team-photo .img-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 50px -22px rgba(20, 22, 26, .28);
    aspect-ratio: 21/9;
}

body.page-template-page-about .team-photo .img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.page-template-page-about .dark-section {
    /* background:linear-gradient(120deg, var(--section-dark) 0%, #4d4c6e 60%, var(--section-dark) 100%); */
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* body.page-template-page-about .dark-section::before{
    content:"";
    position:absolute;
    inset:0;
    background:radial-gradient(circle at 85% 20%, rgba(207,46,46,.18), transparent 45%);
    pointer-events:none;
} */
body.page-template-page-about .dark-section .wrap {
    position: relative;
    z-index: 1;
}

body.page-template-page-about .dark-section .grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 64px;
    align-items: center;
}

body.page-template-page-about .dark-section .img-frame {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .4);
}

body.page-template-page-about .dark-section .img-frame img {
    width: 100%;
    display: block;
}

body.page-template-page-about .dark-section .eyebrow {
    color: var(--red);
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 800;
    display: block;
    margin-bottom: 14px;
}

body.page-template-page-about .dark-section h2 {
    font-size: 1.95rem;
    font-weight: 900;
    margin: 0 0 18px;
    letter-spacing: -.5px;
    color: #14161a;
}

body.page-template-page-about .dark-section p {
    color: #555;
    line-height: 1.75;
    font-size: 1rem;
    margin: 0 0 26px;
}

body.page-template-page-about .dark-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

body.page-template-page-about .dark-section li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    color: #555;
    font-size: .98rem;
    line-height: 1.5;
}

body.page-template-page-about .dark-section .check {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .3s ease;
}

body.page-template-page-about .dark-section li:hover .check {
    border-color: var(--red);
}

body.page-template-page-about .dark-section .check svg {
    width: 11px;
    height: 11px;
    stroke: #ff9494;
    stroke-width: 3;
}

body.page-template-page-about .values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

body.page-template-page-about .value {
    text-align: center;
    padding: 40px 24px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 4px 18px rgba(20, 22, 26, .04);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
}

body.page-template-page-about .value:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 44px -18px rgba(20, 22, 26, .18);
}

body.page-template-page-about .value .icon-badge {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    box-shadow: 0 12px 24px -8px rgba(207, 46, 46, .45);
    transition: transform .35s ease;
}

body.page-template-page-about .value:hover .icon-badge {
    transform: scale(1.08) rotate(-4deg);
}

body.page-template-page-about .value .icon-badge svg {
    width: 26px;
    height: 26px;
    stroke: #fff;
    fill: none;
    stroke-width: 1.8;
}

body.page-template-page-about .value h4 {
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: 1.8px;
    margin: 0 0 8px;
}

body.page-template-page-about .value p {
    color: var(--muted);
    font-size: .92rem;
    margin: 0;
}

body.page-template-page-about .certs-section {
    background: var(--bg);
}

body.page-template-page-about .certs-head {
    text-align: left;
    margin-bottom: 56px;
}

body.page-template-page-about .certs-head .eyebrow {
    color: var(--red);
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 800;
    display: block;
    margin-bottom: 10px;
}

body.page-template-page-about .certs-head h2 {
    font-size: 1.1rem;
    font-weight: 900;
    margin: 0;
    letter-spacing: -.5px;
}

body.page-template-page-about .certs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

body.page-template-page-about .cert {
    background: #fff;
    border-radius: 20px;
    padding: 34px 24px;
    text-align: center;
    text-decoration: none;
    color: var(--dark);
    display: block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(20, 22, 26, .04);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
}

body.page-template-page-about .cert::before {
    content: "";
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    opacity: .08;
}

body.page-template-page-about .cert:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 44px -18px rgba(20, 22, 26, .18);
}

body.page-template-page-about .cert img {
    max-width: 100%;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    position: relative;
}

body.page-template-page-about .cert .label {
    font-weight: 800;
    font-size: .92rem;
    letter-spacing: .4px;
    position: relative;
}

@media (max-width:820px) {

    body.page-template-page-about .about-top,
    body.page-template-page-about .dark-section .grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    body.page-template-page-about .certs {
        grid-template-columns: 1fr;
    }

    body.page-template-page-about .values {
        display: flex;
        grid-template-columns: unset;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 4px 24px 20px;
        margin: 0 -24px;
        scrollbar-width: none;
    }

    body.page-template-page-about .values::-webkit-scrollbar {
        display: none;
    }

    body.page-template-page-about .value {
        flex: 0 0 78%;
        scroll-snap-align: center;
    }
}

@media (max-width:480px) {
    body.page-template-page-about .value {
        flex-basis: 86%;
    }
}

body.page-template-page-about .values-slider {
    position: relative;
}

body.page-template-page-about .values-slider h5 {
    color: var(--red);
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 800;
    display: block;
    margin-bottom: 10px;
}

body.page-template-page-about .values-arrow {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 10px 24px rgba(20, 22, 26, .14);
    align-items: center;
    justify-content: center;
    color: var(--red);
    cursor: pointer;
    z-index: 3;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

body.page-template-page-about .values-arrow:hover {
    background: var(--red);
    color: #fff;
    box-shadow: 0 14px 28px -6px rgba(207, 46, 46, .45);
}

body.page-template-page-about .values-arrow:active {
    transform: translateY(-50%) scale(.94);
}

body.page-template-page-about .values-arrow--prev {
    left: -2px;
}

body.page-template-page-about .values-arrow--next {
    right: -2px;
}

@media (max-width:820px) {
    body.page-template-page-about .values-arrow {
        display: flex;
    }
}

/* elementi, kas prototipā bija ar inline style */
body.page-template-page-about .page-title-bar {
    padding-bottom: 10px;
}

body.page-template-page-about .team-intro {
    padding-bottom: 40px;
}

body.page-template-page-about .team-intro .wrap {
    max-width: 760px;
    text-align: center;
}

body.page-template-page-about .team-intro .eyebrow {
    color: var(--red);
    font-size: .78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 800;
    display: block;
    margin-bottom: 14px;
}

body.page-template-page-about .team-intro .decorated-h {
    padding: 0;
    margin-bottom: 0;
}

body.page-template-page-about .team-intro p {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 18px 0 0;
}

body.page-template-page-about .dark-section .policy-text {
    color: #555;
    line-height: 1.75;
    font-size: 1rem;
}

body.page-template-page-about .dark-section .policy-text ul {
    margin-top: 26px;
}

body.page-template-page-about .certs-note {
    max-width: 100%;
    margin: 44px auto 0;
    text-align: left;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
}

/* ============================================================
   USŁUGI (page-services.php) — wg prototypu pakalpojumi-v2.html
   ============================================================ */
body.page-template-page-services {
    --red: #cf2e2e;
    --red-dark: #9c1f1f;
    --dark: #181a1e;
    background: #f7f6f4;
}

body.page-template-page-services .wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- katrs pakalpojums = sava kartīte ---- */
body.page-template-page-services .services {
    padding: 56px 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

body.page-template-page-services .s-card {
    background: #fff;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 4px 18px rgba(20, 22, 26, .05);
    display: grid;
    grid-template-columns: 60px 1fr 260px;
    gap: 32px;
    align-items: center;
    transition: transform .3s ease, box-shadow .3s ease;
}

body.page-template-page-services .s-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -18px rgba(20, 22, 26, .15);
}

body.page-template-page-services .s-card .num {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(207, 46, 46, .08);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.page-template-page-services .s-card .num svg {
    width: 28px;
    height: 28px;
    stroke: var(--red);
    fill: none;
    stroke-width: 1.6;
}

body.page-template-page-services .s-card .num img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

body.page-template-page-services .s-card h2 {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: -.3px;
    margin: 0 0 10px;
}

body.page-template-page-services .s-card p {
    color: #666;
    line-height: 1.65;
    margin: 0 0 16px;
    font-size: .95rem;
}

body.page-template-page-services .s-card a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 700;
    font-size: .87rem;
    border-bottom: 1px solid var(--dark);
    padding-bottom: 2px;
    transition: color .25s ease, border-color .25s ease, gap .25s ease;
}

body.page-template-page-services .s-card a:hover {
    color: var(--red);
    border-color: var(--red);
    gap: 11px;
}

body.page-template-page-services .s-card .img-frame {
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

body.page-template-page-services .s-card .img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---- CTA ---- */
body.page-template-page-services .cta {
    text-align: center;
    background: #fff;
    border-radius: 20px;
    padding: 50px 30px;
    margin: 24px 0 60px;
    box-shadow: 0 4px 18px rgba(20, 22, 26, .05);
}

body.page-template-page-services .cta h3 {
    font-size: 1.4rem;
    font-weight: 900;
    margin: 0 0 10px;
    letter-spacing: -.3px;
}

body.page-template-page-services .cta p {
    color: #666;
    margin: 0 0 26px;
    font-size: 1rem;
}

body.page-template-page-services .cta a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: .95rem;
    padding: 14px 32px;
    border-radius: 50px;
    box-shadow: 0 10px 24px -8px rgba(207, 46, 46, .5);
    transition: transform .25s ease, box-shadow .25s ease;
}

body.page-template-page-services .cta a:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px -8px rgba(207, 46, 46, .6);
}

@media (max-width:800px) {
    body.page-template-page-services .s-card {
        grid-template-columns: 1fr;
    }

    body.page-template-page-services .s-card .num {
        margin-bottom: 4px;
    }
}

/* ============================================================
   PODSTRONY USŁUG — wspólne (body.service-sub: page-elektro / page-vajstra / page-vispareji)
   wg prototypu elektroietaisu-priekskatijums.html
   ============================================================ */
body.service-sub {
    --red: #cf2e2e;
    --red-dark: #9c1f1f;
    --dark: #181a1e;
    --line: rgba(0, 0, 0, .08);
    --muted: #7a7f88;
    background: #f7f6f4;
}

body.service-sub .wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- ievads + attēls ---- */
body.service-sub .intro {
    padding: 60px 0;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 48px;
    align-items: center;
}

body.service-sub .intro.intro--no-img {
    grid-template-columns: 1fr;
}

body.service-sub .intro p {
    color: #555;
    line-height: 1.8;
    font-size: 1.02rem;
    margin: 0 0 16px;
}

body.service-sub .intro .img-frame {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 44px -20px rgba(20, 22, 26, .25);
}

body.service-sub .intro .img-frame img {
    width: 100%;
    display: block;
}

/* ---- satura sekcijas ---- */
body.service-sub .block {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 24px;
    box-shadow: 0 4px 18px rgba(20, 22, 26, .05);
}

body.service-sub .block:has(+ .gallery-section),
body.service-sub .block:has(+ .cta) {
    margin-bottom: 70px;
}

body.service-sub .block-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

body.service-sub .block-head .icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    flex: 0 0 auto;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px -6px rgba(207, 46, 46, .4);
}

body.service-sub .block-head .icon svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
    fill: none;
    stroke-width: 1.8;
}

body.service-sub .block-head h2 {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: -.3px;
    margin: 0;
}

body.service-sub .checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 32px;
}

body.service-sub .checklist li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: #444;
    line-height: 1.5;
    font-size: .95rem;
}

body.service-sub .dot {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid rgba(207, 46, 46, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

body.service-sub .dot svg {
    width: 10px;
    height: 10px;
    stroke: var(--red);
    stroke-width: 3;
}

/* ---- galerija ---- */
body.service-sub .gallery-section {
    padding-top: 10px;
}

body.service-sub .gallery-section .sec-title {
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: 1.6px;
    color: var(--red);
    text-transform: uppercase;
    margin: 0 0 24px;
    border-top: 1px solid var(--line);
    padding-top: 40px;
}

body.service-sub .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, calc((100% - 48px) / 4));
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

body.service-sub .gallery a {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 1/1;
    box-shadow: 0 4px 14px rgba(20, 22, 26, .06);
}

body.service-sub .gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

body.service-sub .gallery a:hover img {
    transform: scale(1.08);
}

/* ---- CTA ---- */
body.service-sub .cta {
    text-align: center;
    background: #fff;
    border-radius: 20px;
    padding: 50px 30px;
    margin-bottom: 70px;
    box-shadow: 0 4px 18px rgba(20, 22, 26, .05);
}

body.service-sub .cta h3 {
    font-size: 1.4rem;
    font-weight: 900;
    margin: 0 0 10px;
    letter-spacing: -.3px;
}

body.service-sub .cta p {
    color: #666;
    margin: 0 0 26px;
    font-size: 1rem;
}

body.service-sub .cta a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: .95rem;
    padding: 14px 32px;
    border-radius: 50px;
    box-shadow: 0 10px 24px -8px rgba(207, 46, 46, .5);
    transition: transform .25s ease, box-shadow .25s ease;
}

body.service-sub .cta a:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px -8px rgba(207, 46, 46, .6);
}

@media (max-width:800px) {
    body.service-sub .intro {
        grid-template-columns: 1fr;
    }

    body.service-sub .intro p {
        text-align: left !important;
    }

    body.service-sub .checklist {
        grid-template-columns: 1fr;
    }

    body.service-sub .block {
        padding: 28px;
    }

    body.service-sub .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   VĀJSTRĀVAS TĪKLU MONTĀŽA (page-vajstra.php) — wg prototypu vajstravas-priekskatijums.html
   (wspólne: galeria, CTA — patrz PODSTRONY USŁUG)
   ============================================================ */
body.page-template-page-vajstra .wrap {
    max-width: 1080px;
}

body.page-template-page-vajstra .intro-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    padding: 56px 0 20px;
}

body.page-template-page-vajstra .intro-row .img-frame {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 44px -20px rgba(20, 22, 26, .25);
    aspect-ratio: 4/3;
}

body.page-template-page-vajstra .intro-row .img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.page-template-page-vajstra .intro-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

body.page-template-page-vajstra .intro-checklist li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

body.page-template-page-vajstra .intro-checklist .chk {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(207, 46, 46, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

body.page-template-page-vajstra .intro-checklist .chk svg {
    width: 14px;
    height: 14px;
    stroke: var(--red);
    stroke-width: 3;
}

body.page-template-page-vajstra .intro-checklist p {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.6;
    color: #333;
}

/* ---- ikonu bloki ---- */
body.page-template-page-vajstra .icon-section {
    padding: 20px 0 56px;
}

body.page-template-page-vajstra .icon-section .sec-title {
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: 1.6px;
    color: var(--red);
    text-transform: uppercase;
    margin: 0 0 26px;
}

body.page-template-page-vajstra .icon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

body.page-template-page-vajstra .icon-card {
    background: #fff;
    border-radius: 18px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 4px 18px rgba(20, 22, 26, .05);
    transition: transform .3s ease, box-shadow .3s ease;
}

body.page-template-page-vajstra .icon-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -18px rgba(20, 22, 26, .15);
}

body.page-template-page-vajstra .icon-card .badge {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    padding: 0;
}

body.page-template-page-vajstra .icon-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

body.page-template-page-vajstra .icon-card .badge svg {
    width: 40px;
    height: 40px;
    stroke: var(--red);
    fill: none;
    stroke-width: 1.6;
}

body.page-template-page-vajstra .icon-card h4 {
    font-size: .92rem;
    font-weight: 800;
    letter-spacing: .2px;
    margin: 0 0 10px;
    line-height: 1.35;
    text-transform: uppercase;
}

body.page-template-page-vajstra .icon-card p {
    color: var(--muted);
    font-size: .85rem;
    line-height: 1.5;
    margin: 0;
}

body.page-template-page-vajstra .gallery-section .sec-title {
    border-top: none;
    padding-top: 0;
}

@media (max-width:900px) {
    body.page-template-page-vajstra .intro-row {
        grid-template-columns: 1fr;
    }

    body.page-template-page-vajstra .icon-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   VISPĀRĒJIE BŪVDARBI (page-vispareji.php) — wg prototypu visparejie-buvdarbi-priekskatijums.html
   (wspólne: .block, galeria, CTA — patrz PODSTRONY USŁUG)
   ============================================================ */
body.page-template-page-vispareji .wrap {
    max-width: 1140px;
}

body.page-template-page-vispareji .intro {
    display: block;
    padding: 44px 0 10px;
}

body.page-template-page-vispareji .intro p {
    margin: 0;
}

body.page-template-page-vispareji .top-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 40px;
    align-items: stretch;
    padding: 30px 0 60px;
}

body.page-template-page-vispareji .top-grid.top-grid--no-img {
    grid-template-columns: 1fr;
}

body.page-template-page-vispareji .top-grid .items {
    display: flex;
    flex-direction: column;
    gap: 18px;
    justify-content: center;
}

body.page-template-page-vispareji .top-grid .item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #fff;
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: 0 4px 18px rgba(20, 22, 26, .05);
}

body.page-template-page-vispareji .top-grid .dot {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: none;
    background: rgba(207, 46, 46, .08);
}

body.page-template-page-vispareji .top-grid .dot svg {
    width: 19px;
    height: 19px;
    stroke: var(--red);
    fill: none;
    stroke-width: 2;
}

body.page-template-page-vispareji .top-grid h4 {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -.1px;
}

body.page-template-page-vispareji .top-grid p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.5;
}

body.page-template-page-vispareji .top-grid .img-frame {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 44px -20px rgba(20, 22, 26, .25);
}

body.page-template-page-vispareji .top-grid .img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.page-template-page-vispareji .block-head {
    margin-bottom: 26px;
}

body.page-template-page-vispareji .block-head .num {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff;
    font-weight: 900;
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px -6px rgba(207, 46, 46, .4);
}

body.page-template-page-vispareji .block-head h2 {
    font-size: 1.15rem;
    letter-spacing: -.2px;
}

body.page-template-page-vispareji .checklist li {
    display: block;
    position: relative;
    padding-left: 32px;
    line-height: 1.55;
}

body.page-template-page-vispareji .checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: -1px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid rgba(207, 46, 46, .35);
    color: var(--red);
    font-size: .65rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width:700px) {
    body.page-template-page-vispareji .top-grid {
        grid-template-columns: 1fr;
    }

    body.page-template-page-vispareji .top-grid .img-frame {
        order: -1;
        aspect-ratio: 16/9;
    }
}

/* ============================================================
   MŪSU DARBI / PORTFOLIO (page-portfolio.php) — wg prototypu musu-darbi-priekskatijums.html
   JS: assets/js/portfolio-slider.js
   ============================================================ */
body.page-template-page-portfolio {
    --red: #cf2e2e;
    background: #f7f6f4;
}

body.page-template-page-portfolio .page-title-bar {
    padding-bottom: 40px;
}

body.page-template-page-portfolio .wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

body.page-template-page-portfolio .projects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 56px 0 70px;
}

body.page-template-page-portfolio .project {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 20px 44px -20px rgba(20, 22, 26, .25);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
}

body.page-template-page-portfolio .project:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 55px -20px rgba(20, 22, 26, .32);
}

body.page-template-page-portfolio .project .slides {
    position: absolute;
    inset: 0;
}

body.page-template-page-portfolio .project .slides a {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease, visibility .6s;
}

body.page-template-page-portfolio .project .slides a.active {
    opacity: 1;
    visibility: visible;
}

body.page-template-page-portfolio .project img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.page-template-page-portfolio .project::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 12, .92) 0%, rgba(10, 10, 12, .35) 55%, transparent 85%);
    pointer-events: none;
}

body.page-template-page-portfolio .project .caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 26px;
    z-index: 2;
    pointer-events: none;
}

body.page-template-page-portfolio .project .tag {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 12px;
}

body.page-template-page-portfolio .project h4 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 900;
    margin: 0 0 8px;
    letter-spacing: -.2px;
}

body.page-template-page-portfolio .project p {
    color: rgba(255, 255, 255, .82);
    font-size: .92rem;
    line-height: 1.55;
    margin: 0;
    max-width: 88%;
}

body.page-template-page-portfolio .project .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    /* background: rgba(255, 255, 255, .15); */
    /* backdrop-filter: blur(4px); */
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s ease, background .3s ease;
}

body.page-template-page-portfolio .project:hover .nav-btn {
    opacity: 1;
}

body.page-template-page-portfolio .project .nav-btn:hover {
    background: rgba(255, 255, 255, .3);
}

body.page-template-page-portfolio .project .prev {
    left: 14px;
}

body.page-template-page-portfolio .project .next {
    right: 14px;
}

body.page-template-page-portfolio .project .dots {
    position: absolute;
    bottom: 14px;
    right: 20px;
    z-index: 3;
    display: flex;
    gap: 6px;
}

body.page-template-page-portfolio .project .dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .4);
    transition: background .3s ease, transform .3s ease;
}

body.page-template-page-portfolio .project .dots span.active {
    background: #fff;
    transform: scale(1.3);
}

@media (max-width:800px) {
    body.page-template-page-portfolio .projects {
        grid-template-columns: 1fr;
    }

    /* na dotyku nie ma hover — strzałki zawsze widoczne */
    body.page-template-page-portfolio .project .nav-btn {
        opacity: 1;
    }
}

/* ============================================================
   NOTIKUMI / BLOG (single-blog.php) — wg prototypu notikumi-priekskatijums.html
   ============================================================ */
body.page-template-single-blog {
    --red: #cf2e2e;
    --dark: #181a1e;
    background: #f7f6f4;
}

body.page-template-single-blog .page-title-bar {
    background: #f7f6f4;
    padding-bottom: 40px;
}

body.page-template-single-blog .wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

body.page-template-single-blog .posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    padding: 16px 0 70px;
}

body.page-template-single-blog .posts-empty {
    padding: 16px 0 70px;
    text-align: center;
    color: #666;
}

body.page-template-single-blog .post {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(20, 22, 26, .05);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
    display: flex;
    flex-direction: column;
}

body.page-template-single-blog .post:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 44px -18px rgba(20, 22, 26, .18);
}

body.page-template-single-blog .post-img {
    display: block;
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

body.page-template-single-blog .post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}

body.page-template-single-blog .post:hover .post-img img {
    transform: scale(1.07);
}

body.page-template-single-blog .post-body {
    padding: 22px 22px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

body.page-template-single-blog .post-body h5 {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.4;
}

body.page-template-single-blog .post-body p {
    color: #666;
    font-size: .9rem;
    line-height: 1.6;
    margin: 0 0 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.page-template-single-blog .post-body a {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    align-self: flex-start;
    color: var(--dark);
    text-decoration: none;
    font-weight: 700;
    font-size: .87rem;
    border-bottom: 1px solid var(--dark);
    padding-bottom: 2px;
    transition: color .25s ease, border-color .25s ease, gap .25s ease;
}

body.page-template-single-blog .post-body a:hover {
    color: var(--red);
    border-color: var(--red);
    gap: 11px;
}

@media (max-width:900px) {
    body.page-template-single-blog .posts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:600px) {
    body.page-template-single-blog .posts {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   VAKANCES (page-vakances.php) — wg prototypu vakances-priekskatijums.html
   ============================================================ */
body.page-template-page-vakances {
    --red: #cf2e2e;
    --red-dark: #9c1f1f;
    --dark: #181a1e;
    background: #f7f6f4;
}

body.page-template-page-vakances .wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- hero ---- */
body.page-template-page-vakances .hero {
    position: relative;
    overflow: hidden;
    padding: 90px 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

body.page-template-page-vakances .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(20, 22, 26, .9) 0%, rgba(35, 38, 45, .85) 55%, rgba(20, 22, 26, .92) 100%);
}

body.page-template-page-vakances .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 25%, rgba(207, 46, 46, .28), transparent 45%);
}

body.page-template-page-vakances .hero .wrap {
    position: relative;
    z-index: 1;
}

body.page-template-page-vakances .hero .eyebrow {
    color: #ff8a8a;
    font-size: .78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 800;
    display: block;
    margin-bottom: 14px;
}

body.page-template-page-vakances .hero h1 {
    color: #fff;
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: -.8px;
    margin: 0 0 20px;
    max-width: 560px;
}

body.page-template-page-vakances .hero p {
    color: rgba(255, 255, 255, .82);
    line-height: 1.8;
    font-size: 1.02rem;
    max-width: 560px;
    margin: 0 0 30px;
}

body.page-template-page-vakances .hero a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: .95rem;
    padding: 14px 32px;
    border-radius: 50px;
    box-shadow: 0 10px 24px -8px rgba(207, 46, 46, .5);
    transition: transform .25s ease, box-shadow .25s ease;
}

body.page-template-page-vakances .hero a:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px -8px rgba(207, 46, 46, .6);
}

/* ---- vakanču kartītes ---- */
body.page-template-page-vakances .jobs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 56px 0;
}

body.page-template-page-vakances .job {
    background: #fff;
    border-radius: 20px;
    padding: 34px;
    box-shadow: 0 4px 18px rgba(20, 22, 26, .05);
    display: flex;
    flex-direction: column;
}

body.page-template-page-vakances .job h2 {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: -.3px;
    margin: 0 0 20px;
}

body.page-template-page-vakances .job h3 {
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: var(--red);
    text-transform: uppercase;
    margin: 18px 0 10px;
}

body.page-template-page-vakances .job h3:first-of-type {
    margin-top: 0;
}

body.page-template-page-vakances .job ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.page-template-page-vakances .job li {
    position: relative;
    padding-left: 24px;
    color: #444;
    font-size: .9rem;
    line-height: 1.5;
}

body.page-template-page-vakances .job li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid rgba(207, 46, 46, .35);
    color: var(--red);
    font-size: .6rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.page-template-page-vakances .job p {
    color: #444;
    font-size: .9rem;
    line-height: 1.6;
}

body.page-template-page-vakances .job .apply {
    margin-top: auto;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--dark);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: .87rem;
    padding: 11px 24px;
    border-radius: 50px;
    transition: background .3s ease, gap .3s ease;
}

body.page-template-page-vakances .job ul:last-of-type {
    margin-bottom: 26px;
}

body.page-template-page-vakances .job .apply:hover {
    background: var(--red);
    gap: 11px;
}

/* ---- pieteikšanās forma ---- */
body.page-template-page-vakances .form-section {
    padding-bottom: 70px;
    scroll-margin-top: 110px;
}

@media (max-width:800px) {
    body.page-template-page-vakances .jobs {
        grid-template-columns: 1fr;
    }

    body.page-template-page-vakances .hero h1 {
        font-size: 1.9rem;
    }
}

/* ============================================================
   POJEDYNCZY WPIS (single.php) — brak prototypu, styl jak Notikumi
   ============================================================ */
body.single-post {
    background: #f7f6f4;
}

body.single-post .single-post-wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 50px 24px 70px;
}

body.single-post .single-article {
    background: #fff;
    border-radius: 20px;
    padding: 44px;
    box-shadow: 0 4px 18px rgba(20, 22, 26, .05);
}

body.single-post .back-link {
    display: inline-block;
    color: #7a7f88;
    text-decoration: none;
    font-size: .87rem;
    font-weight: 700;
    margin-bottom: 22px;
    transition: color .25s ease;
}

body.single-post .back-link:hover {
    color: var(--delta-red);
}

body.single-post .single-article .eyebrow {
    display: block;
    color: var(--delta-red);
    font-size: .78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 10px;
}

body.single-post .single-article h1 {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -.5px;
    line-height: 1.25;
    margin: 0 0 28px;
}

body.single-post .single-thumb img,
body.single-post .post-content img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
}

body.single-post .single-thumb {
    margin-bottom: 28px;
}

body.single-post .post-content {
    color: #444;
    font-size: 1.02rem;
    line-height: 1.8;
}

body.single-post .post-content p {
    margin: 0 0 18px;
}

body.single-post .post-content figure,
body.single-post .post-content .wp-block-image {
    margin: 0 0 18px;
}

body.single-post .post-content .wp-block-gallery {
    gap: 12px;
}

@media (max-width:700px) {
    body.single-post .single-article {
        padding: 26px 20px;
    }

    body.single-post .single-article h1 {
        font-size: 1.5rem;
    }
}

/* ============================================================
   KONTAKTI (page-kontakti.php) — wg prototypu kontakti-priekskatijums.html
   (formularz: patrz FORMULARZ CF7 W KARCIE)
   ============================================================ */
body.page-template-page-kontakti {
    --red: #C60C1A;
    --delta-red: #C60C1A;
    background: #f7f6f4;
}

body.page-template-page-kontakti .page-title-bar {
    padding-bottom: 40px;
}

body.page-template-page-kontakti .wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

body.page-template-page-kontakti .info-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 28px;
    padding: 56px 0 70px;
}

body.page-template-page-kontakti .info-card {
    background: #fff;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 4px 18px rgba(20, 22, 26, .05);
}

body.page-template-page-kontakti .info-card p.company {
    font-weight: 700;
    margin: 0 0 4px;
}

body.page-template-page-kontakti .info-card p.addr {
    color: #666;
    line-height: 1.6;
    margin: 0 0 28px;
}

body.page-template-page-kontakti .info-card h4 {
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: 1.4px;
    color: var(--red);
    text-transform: uppercase;
    margin: 0 0 16px;
}

body.page-template-page-kontakti .info-card .contact-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #333;
    font-weight: 600;
    text-decoration: none;
}

body.page-template-page-kontakti .info-card .contact-line:hover {
    color: var(--red);
}

body.page-template-page-kontakti .info-card .contact-line .ic {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(198, 12, 26, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

body.page-template-page-kontakti .info-card .contact-line svg {
    width: 16px;
    height: 16px;
    fill: var(--red);
}

body.page-template-page-kontakti .map-frame {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 44px -20px rgba(20, 22, 26, .25);
}

body.page-template-page-kontakti .map-frame iframe {
    width: 100%;
    height: 100%;
    min-height: 360px;
    border: 0;
    display: block;
}

body.page-template-page-kontakti .form-section {
    padding-bottom: 70px;
    scroll-margin-top: 110px;
}

body.page-template-page-kontakti .form-card .eyebrow {
    color: var(--red);
    font-size: .78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 800;
    display: block;
    margin-bottom: 10px;
}

body.page-template-page-kontakti .form-card h2 {
    font-size: 1.6rem;
    font-weight: 900;
    margin: 0 0 12px;
    letter-spacing: -.4px;
}

@media (max-width:800px) {
    body.page-template-page-kontakti .info-grid {
        grid-template-columns: 1fr;
    }
}


.wpcf7-form-control-wrap[data-name="file-158"] {
    width: 100%;
    border: 1px solid var(--delta-line) !important;
    border-radius: 14px !important;
    padding: 14px 18px !important;
    font-size: .95rem !important;
    font-family: inherit;
    margin: 0 !important;
    background: #fff;
    box-shadow: none !important;
    transition: border-color .25s ease;
    order: 5;
    grid-column: 1 / -1;
}

body.page-template-page-about .about-top,
body.page-template-page-about .dark-section .grid {
    background-color: #fff;
    border-radius: 20px;
    padding: 10px;
}

.home-slider {
    position: relative;
    height: 70vh !important;
}


.home-slider .swiper-slide{
    position: relative;
}

body.home .home-slider .swiper-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .25));
    z-index: 1;
}

@media(max-width: 768px) {
    .home-slider {
        height: 40vh !important;
    }
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #444;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}