/* Jaunās sākumlapas dizains. Vecā lapa šo failu neielādē. */

body.lpl-new {
    --bs-primary: #e25b2a;
    --bs-primary-rgb: 226, 91, 42;
    --bs-link-color: #c2410c;
    --bs-link-hover-color: #9a3412;
    --bs-body-font-family: "Google Sans Flex", "Segoe UI", sans-serif;
    font-family: "Google Sans Flex", "Segoe UI", sans-serif;
    font-optical-sizing: auto;
    --bs-body-color: #1c1917;
    --bs-body-bg: #f4f0ea;
    --bs-border-radius: 0.6rem;
    --lpl-ink: #1c1917;
    --lpl-muted: #57534e;
    --lpl-line: #e6e0d6;
    --lpl-card: #ffffff;
    --lpl-accent: #e25b2a;
    font-size: 17px;
    line-height: 1.55;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

body.lpl-new h1,
body.lpl-new h2,
body.lpl-new h3,
body.lpl-new h4,
body.lpl-new .navbar-brand,
body.lpl-new .lpl-kicker {
    font-family: "Google Sans Flex", "Segoe UI", sans-serif;
    letter-spacing: -0.02em;
}

body.lpl-new img {
    max-width: 100%;
    height: auto;
}

.lpl-topbar {
    background: var(--lpl-ink);
    color: #f5f0e8;
    font-size: 0.92rem;
}

.lpl-topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-height: 38px;
}

.lpl-topbar p {
    margin: 0;
}

.lpl-topbar a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}

.lpl-topbar a:hover {
    color: #fdba74;
}

.lpl-header {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--lpl-line);
}

.lpl-header .navbar {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.lpl-header .navbar-brand img {
    height: 52px;
    width: auto;
}

.lpl-header .nav-link {
    color: var(--lpl-ink);
    font-weight: 600;
    padding: 0.55rem 0.75rem;
}

.lpl-header .nav-link:hover,
.lpl-header .nav-link:focus {
    color: var(--lpl-accent);
}

.lpl-nav-stock {
    margin-left: 0.4rem;
    border: 2px solid var(--lpl-accent);
    border-radius: 999px !important;
    color: var(--lpl-accent) !important;
}

.lpl-nav-stock:hover {
    background: var(--lpl-accent);
    color: #fff !important;
}

.lpl-header-tools {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin-left: auto;
}

.lpl-header-wa img {
    width: 34px;
    height: auto;
}

.lpl-nav-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: var(--lpl-ink);
    text-decoration: none;
    font-size: 1.15rem;
}

.lpl-nav-cart:hover,
.lpl-nav-cart:focus {
    color: var(--lpl-accent);
}

.lpl-cart-count {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--lpl-accent);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.lpl-cart-count.is-empty {
    display: none;
}

@media (min-width: 992px) {
    .lpl-header .navbar > .container {
        flex-wrap: nowrap;
    }

    .lpl-header-tools {
        order: 3;
        margin-left: 0.35rem;
    }

    .lpl-header .navbar-collapse {
        order: 2;
    }
}

.lpl-hero {
    display: flex;
    align-items: center;
    min-height: 400px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.72) 28%, rgba(255, 255, 255, 0.18) 52%, rgba(255, 255, 255, 0) 70%),
        url("/rehau%20windows.jpg") center / cover no-repeat;
}

.lpl-hero-copy {
    max-width: 34rem;
    padding: 2.4rem 1rem;
}

.lpl-hero-title {
    display: block;
    position: relative;
    color: #1b2330;
    font-size: clamp(3rem, 6vw, 4.6rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.lpl-hero-heading {
    margin: 0;
}

.lpl-hero-discount {
    display: block;
    margin-top: 0.15rem;
    color: #f25c22;
    font-size: clamp(3.4rem, 7vw, 5.4rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.04em;
}

.lpl-hero-copy p {
    margin: 0.85rem 0 0;
    color: #1b2330;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.3;
    text-transform: uppercase;
}

.lpl-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 1.35rem;
    padding: 0.72rem 1.25rem 0.72rem 1.15rem;
    border-radius: 999px;
    background: #f25c22;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
}

.lpl-hero-cta:hover,
.lpl-hero-cta:focus {
    background: #d94e18;
    color: #fff;
}

.lpl-hero-cta i {
    font-size: 0.95rem;
}

.lpl-calc-promo {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 420px;
    overflow: hidden;
    background: #f6f8fb;
}

.lpl-calc-promo::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 58%;
    background:
        linear-gradient(90deg, #f6f8fb 0%, rgba(246, 248, 251, 0.72) 12%, rgba(246, 248, 251, 0.28) 26%, rgba(246, 248, 251, 0) 42%),
        url("/pvc-logu-kalkulators.png") right center / cover no-repeat;
    pointer-events: none;
}

.lpl-calc-promo .container {
    position: relative;
    z-index: 1;
}

.lpl-calc-promo-copy {
    max-width: 36rem;
    padding: 2.8rem 0;
}

.lpl-calc-promo-kicker {
    margin: 0 0 0.55rem;
    color: #f25c22;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lpl-calc-promo h2 {
    margin: 0;
    color: #1b2330;
    font-size: clamp(2rem, 4vw, 2.85rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.lpl-calc-promo h2 span {
    color: #f25c22;
}

.lpl-calc-promo-copy > p:last-of-type {
    max-width: 32rem;
    margin: 1rem 0 0;
    color: #3f3a36;
    font-size: 1.05rem;
    line-height: 1.45;
}

.lpl-calc-promo-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.4rem;
    padding: 0.78rem 1.3rem;
    border-radius: 999px;
    background: #f25c22;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
}

.lpl-calc-promo-cta:hover,
.lpl-calc-promo-cta:focus {
    background: #d94e18;
    color: #fff;
}

.lpl-perks {
    background: #fff;
    border-top: 1px solid #efeae4;
    border-bottom: 1px solid #efeae4;
}

.lpl-perks-list {
    display: grid;
    grid-template-columns: 1fr;
    margin: 0;
    padding: 0.35rem 0;
    list-style: none;
}

.lpl-perks-list li {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    padding: 0.95rem 1.15rem;
}

.lpl-perks-list li + li {
    border-top: 1px solid #ece7e1;
}

.lpl-perks-list i {
    flex: 0 0 auto;
    width: 2.1rem;
    color: var(--lpl-accent);
    font-size: 1.85rem;
    text-align: center;
}

.lpl-perks-list span {
    color: #8a847c;
    font-size: 0.98rem;
    line-height: 1.25;
}

.lpl-perks-list strong {
    display: block;
    color: var(--lpl-ink);
    font-family: "Google Sans Flex", "Segoe UI", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .lpl-perks-list {
        grid-template-columns: 1fr 1fr;
    }

    .lpl-perks-list li + li {
        border-top: 0;
    }

    .lpl-perks-list li:nth-child(n + 3) {
        border-top: 1px solid #ece7e1;
    }

    .lpl-perks-list li:nth-child(even) {
        border-left: 1px solid #ece7e1;
    }
}

@media (min-width: 992px) {
    .lpl-perks-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .lpl-perks-list li:nth-child(n + 3) {
        border-top: 0;
    }

    .lpl-perks-list li:nth-child(even) {
        border-left: 0;
    }

    .lpl-perks-list li + li {
        border-left: 1px solid #ece7e1;
    }
}

.lpl-section {
    padding: 3.5rem 0;
}

.lpl-section-head {
    max-width: 50rem;
    margin: 0 auto 2rem;
    text-align: center;
}

.lpl-section-head h1,
.lpl-section-head h2,
.lpl-calc h2,
#pricePlans .lpl-section-head h2,
#paveiktais h2,
#kontakti h2,
#kā-pasūtīt h2 {
    font-weight: 700;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    margin-top: 0;
    margin-bottom: 0.4rem;
}

.lpl-section-head p,
.lpl-calc > .container > p,
#cenaspieprasisana .text-orangy {
    color: var(--lpl-muted);
}

#cenaspieprasisana {
    background:
        radial-gradient(900px 280px at 10% 0%, rgba(226, 91, 42, 0.12), transparent 60%),
        #fffdfb;
    border-top: 1px solid var(--lpl-line);
    border-bottom: 1px solid var(--lpl-line);
    padding: 3.2rem 0 3.6rem;
    color: var(--lpl-ink);
}

#cenaspieprasisana h2 {
    text-align: center;
}

#cenaspieprasisana .text-orangy {
    text-align: center;
    margin-bottom: 1.4rem;
}

.lpl-calc .form-control,
.lpl-calc .form-select,
#kontakti .form-control {
    border-color: #ddd6cc;
    background: #fff;
    min-height: 42px;
}

.lpl-calc .form-control:focus,
#kontakti .form-control:focus {
    border-color: #e7a48a;
    box-shadow: 0 0 0 0.2rem rgba(226, 91, 42, 0.15);
}

.control-label,
.form-label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #44403c;
}

.form-group {
    margin-bottom: 1rem;
}

.paparow {
    margin-top: 0.8rem;
    padding: 1rem 1rem 0.4rem;
    background: #fff;
    border: 1px solid var(--lpl-line);
    border-radius: 1rem;
}

.paparow > p {
    margin: 0.6rem 0 0.8rem;
    color: var(--lpl-muted);
    font-size: 0.92rem;
}

.cana_val_field,
.visual_hide {
    display: none !important;
}

.cena_txt {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0.4rem 0.75rem;
    border: 1px solid #ddd6cc;
    border-radius: 0.6rem;
    background: #faf7f2;
    font-weight: 700;
}

#krasa_arpuse-txt,
#krasa_iekspuse-txt,
.veids,
#stikla_veids-txt {
    cursor: pointer;
    background-image: linear-gradient(90deg, transparent, transparent);
}

.lpl-calc .btn-orangy {
    width: 100%;
    margin-bottom: 0.5rem;
    background: #fff;
    color: var(--lpl-ink);
    border: 1px solid #d6d3d1;
    font-weight: 700;
}

.lpl-calc .btn-orangy:hover {
    background: #fff7f3;
    border-color: var(--lpl-accent);
    color: var(--lpl-accent);
}

.lpl-calc #saktnojauna,
.lpl-calc #veiktpasutijumu,
.lpl-calc #pasutijumssubmit,
#kontakti #contactSubmit {
    min-height: 52px;
    padding-left: 1.4rem;
    padding-right: 1.4rem;
    font-weight: 700;
}

.lpl-sum-row {
    align-items: center;
}

.formlabel {
    margin: 0.45rem 0;
    font-weight: 600;
}

.reqdanger,
.emaildanger {
    color: #dc2626;
}

.lpl-delivery {
    margin: 0.5rem 0 0.2rem;
    text-align: center;
    color: #15803d;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

#pricePlans {
    /* background: #f4f7fb; */
}

#pricePlans .lpl-section-head h2::after {
    content: "";
    display: block;
    width: 3.4rem;
    height: 3px;
    margin: 0.7rem auto 0;
    border-radius: 2px;
    background: #f25c22;
}

#plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

#plans .plan {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    padding: 1.15rem 0 1.2rem;
    list-style: none;
    background: #fff;
    border-radius: 1.35rem;
    box-shadow: 0 10px 28px rgba(27, 42, 74, 0.08);
}

#plans .lpl-profile-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding-left: 1.25rem;
}

#plans .lpl-profile-head h2 {
    margin: 0.35rem 0 0;
    color: #1b2a4a;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    font-weight: 800;
    line-height: 1.15;
}

#plans [data-atlaide-7] span,
#plans [data-atlaide-8] span {
    color: #e10600 !important;
    font-size: 0.95rem !important;
}

#plans .lpl-profile-badge {
    display: block;
    flex: 0 0 auto;
    width: auto;
    height: 34px;
    max-width: none;
    margin-top: 0.1rem;
}

.lpl-profile-tag {
    align-self: stretch;
    margin: 0.85rem 1.25rem 0.9rem;
    padding: 0.32rem 1rem;
    border-radius: 999px;
    background: #f25c22;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
}

.lpl-profile-body {
    display: grid;
    grid-template-columns: minmax(120px, 0.78fr) minmax(0, 1.15fr);
    gap: 0.4rem 0.35rem;
    align-items: center;
    padding: 0 1rem 0 0.7rem;
}

.lpl-profile-cut {
    width: 100%;
    height: auto;
}

#plans .options {
    margin: 0;
    padding: 0;
}

#plans .options li {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0;
    padding: 0.16rem 0;
    list-style: none;
    color: #243044;
    font-size: 0.92rem;
    line-height: 1.3;
}

#plans .options li span {
    color: #243044;
}

#plans .options i {
    flex: 0 0 auto;
    margin-top: 0.12rem;
    color: #f25c22;
    font-size: 0.95rem;
}

.lpl-profile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin: 1rem 1.25rem 0;
    padding: 0.72rem 1rem;
    border: 2px solid #f25c22;
    border-radius: 999px;
    color: #f25c22;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
}

.lpl-profile-cta:hover,
.lpl-profile-cta:focus {
    background: #f25c22;
    color: #fff;
}

.comboimgdiv {
    position: relative;
    margin: 0 1.4rem 1rem;
    background: #f7f4ef;
    border-radius: 0.9rem;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comboimgone {
    max-height: 150px;
    width: auto;
}

.comboimgtopright {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 54px;
    height: auto;
}

.lpl-prose {
    background: #fff;
}

.lpl-prose p {
    color: #44403c;
    font-size: 1.05rem;
}

.lpl-prose .lpl-section-head h1 {
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
}

.lpl-prose-sub {
    margin: 0.2rem 0 0.7rem;
    color: var(--lpl-ink);
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
    font-weight: 700;
    text-align: center;
}

.lpl-prose p + .lpl-prose-sub {
    margin-top: 2.6rem;
}

#kā-pasūtīt {
    background: #f4f0ea;
}

.lpl-gallery {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    padding: 0 0.75rem;
    box-sizing: border-box;
}

.lpl-gallery.is-packed {
    display: block;
}

.lpl-gallery-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.75rem;
}

.lpl-gallery-row + .lpl-gallery-row {
    margin-top: 0.75rem;
}

.lpl-gallery-row.is-extra {
    display: none;
}

.lpl-gallery.is-expanded .lpl-gallery-row.is-extra {
    display: flex;
}

.lpl-gallery-item {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0.95rem;
    overflow: hidden;
    background: #e7e1d8;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(28, 25, 23, 0.08);
}

body.lpl-new .lpl-gallery-item img {
    width: auto;
    height: 200px;
    max-width: none;
    object-fit: contain;
    display: block;
    transition: transform 0.35s ease;
}

body.lpl-new .lpl-gallery.is-packed .lpl-gallery-item {
    flex: var(--lpl-aspect, 1) 1 0%;
    width: auto;
    min-width: 0;
    height: var(--lpl-row-h, 200px);
}

body.lpl-new .lpl-gallery.is-packed .lpl-gallery-row.is-open .lpl-gallery-item {
    flex: 0 0 auto;
    width: auto;
}

body.lpl-new .lpl-gallery.is-packed .lpl-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lpl-gallery-item:hover img,
.lpl-gallery-item:focus-visible img {
    transform: scale(1.06);
}

.lpl-gallery-item span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.6rem 0.7rem 0.55rem;
    background: linear-gradient(transparent, rgba(20, 16, 12, 0.78));
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
}

.lpl-gallery-item:focus-visible {
    outline: 3px solid var(--lpl-accent);
    outline-offset: 2px;
}

#paveiktais .row {
    --bs-gutter-y: 1rem;
}

#paveiktais:not(.is-expanded) .col-md-12.is-extra {
    display: none;
}

.lpl-more-wrap {
    display: flex;
    justify-content: center;
    margin: 1.4rem 0 0;
    padding: 0 1rem;
}

.lpl-more-wrap[hidden] {
    display: none;
}

.lpl-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid #f25c22;
    border-radius: 999px;
    background: #fff;
    color: #f25c22;
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1;
    cursor: pointer;
}

.lpl-more-btn:hover,
.lpl-more-btn:focus-visible {
    background: #f25c22;
    color: #fff;
}

.testimonials blockquote {
    height: 100%;
    margin: 0;
    padding: 1.1rem 1.15rem 1rem;
    background: #fff;
    border: 1px solid var(--lpl-line);
    border-radius: 1rem;
    border-left: 4px solid var(--lpl-accent);
}

.testimonials-txt {
    margin-bottom: 0.8rem;
    color: #292524;
}

.testimonials-post {
    color: var(--lpl-muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.thumbnail-testimonials {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 0.7rem;
    cursor: pointer;
}

#kontakti {
    background: #fffdfb;
}

#kontakti .lpl-contact-card {
    background: #fff;
    border: 1px solid var(--lpl-line);
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 12px 30px rgba(28, 25, 23, 0.05);
}

textarea.form-control2 {
    min-height: 154px;
}

.lpl-footer {
    background: #1c1917;
    color: #e7e5e4;
    padding: 2.4rem 0 1.4rem;
    margin-top: auto;
}

.lpl-footer a,
.lpl-footer .lpl-cc-footer-link {
    color: #fdba74;
}

.lpl-footer p {
    margin-bottom: 0.4rem;
}

.last-lpl-pas {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 1040;
    width: min(370px, calc(100vw - 32px)) !important;
    display: flex !important;
    gap: 12px;
    align-items: center;
    padding: 12px 36px 12px 12px;
    background: #fff !important;
    color: var(--lpl-ink) !important;
    border-radius: 1rem;
    box-shadow: 0 16px 40px rgba(28, 25, 23, 0.18);
}

.last-lpl-pas[style*="display: none"],
.last-lpl-pas[style*="display:none"] {
    display: none !important;
}

.last-lpl-pas > div {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}

.last-lpl-pas p {
    margin: 0;
    font-size: 0.92rem;
}

.img-pedejais-pasutijums {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.close-last-lpl {
    position: absolute;
    top: 8px;
    right: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}

.lpl-wa {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1040;
}

.lpl-wa img {
    width: 54px;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18));
}

.lk-wa {
    position: fixed;
    right: 10px;
    bottom: 10px;
    z-index: 1040;
}

.lk-wa img {
    width: 50px;
    height: auto;
}

.img-krasas-a,
.img-krasas-i,
.img-stikla-veidi,
.img-veidi {
    display: block;
    max-height: 140px;
    margin: 0 auto 0.4rem;
    cursor: pointer;
    border-radius: 0.6rem;
}

.img-krasas-a,
.img-krasas-i,
.img-stikla-veidi {
    border: 1px solid #d6d3d1;
}

.krasurow > div,
.veidurow > div {
    text-align: center;
    margin-bottom: 1rem;
}

.krasurow > div {
    min-height: 210px;
}

.veidurow > div > p {
    font-size: 0.9rem;
}

.modal-header {
    align-items: center;
}

.modal-header .btn-close {
    margin-left: auto;
    order: 2;
}

.modal-header .modal-title {
    margin: 0;
    font-size: 1.15rem;
}

.modal h1 {
    font-size: 1.35rem;
    margin: 0.4rem 0 1rem;
}

.modal-dialog-krasas {
    max-width: 1080px;
}

#logu-veidi .modal-dialog,
#nelikvidi .modal-dialog {
    max-width: 1140px;
}

#montazas_piederumi-mod .modal-dialog {
    max-width: 920px;
}

.modal-dialog-galerija {
    max-width: min(1080px, calc(100vw - 1.5rem));
}

#galerija-modal .modal-content {
    position: relative;
    background: #161311;
    color: #f5f0e8;
    border: 0;
    border-radius: 1.1rem;
    overflow: hidden;
}

.lpl-lightbox-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    background: #0e0c0b;
}

.img-galerija-big {
    display: block;
    width: 100%;
    max-height: 74vh;
    object-fit: contain;
    background: #0e0c0b;
}

.lpl-lightbox-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
    padding: 0.85rem 1.1rem 1rem;
}

.galerijas-komentars,
.lpl-lightbox-count {
    margin: 0;
}

.galerijas-komentars {
    font-weight: 600;
}

.lpl-lightbox-count {
    color: #d6d3d1;
    font-size: 0.9rem;
    white-space: nowrap;
}

.lpl-lightbox-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 3;
    width: 2.4rem;
    height: 2.4rem;
    padding: 0.55rem;
    border-radius: 999px;
    opacity: 1;
    background-color: rgba(22, 19, 17, 0.82);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.lpl-lightbox-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);
    width: 2.7rem;
    height: 2.7rem;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #1c1917;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.lpl-lightbox-prev {
    left: 0.75rem;
}

.lpl-lightbox-next {
    right: 0.75rem;
}

.lpl-lightbox-nav:hover,
.lpl-lightbox-nav:focus-visible {
    background: #fff7f3;
    color: var(--lpl-accent);
}

.montazas_piederumi img {
    max-width: 88px;
    height: auto;
}

.not-selectable {
    opacity: 0.25;
}

.btn-remove {
    margin-top: 2px;
}

.privjur {
    max-width: 420px;
}

@media (max-width: 991.98px) {
    #plans {
        grid-template-columns: 1fr;
    }

    .lpl-profile-body {
        grid-template-columns: 1fr;
        padding-right: 1.15rem;
    }

    body.lpl-new .lpl-profile-cut {
        width: 50%;
        max-width: 50%;
        margin: 0 auto;
    }

    .lpl-topbar-stat {
        font-size: 0.82rem;
    }

    .lpl-header .navbar-brand img {
        height: 42px;
    }

    .lpl-wa {
        display: none;
    }

    .lpl-nav-stock {
        display: inline-block;
        margin: 0.4rem 0 0.6rem;
    }

    .last-lpl-pas {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    .lpl-hero {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.78) 48%, rgba(255, 255, 255, 0.2) 100%),
            url("/rehau%20windows.jpg") center / cover no-repeat;
    }

    .lpl-calc-promo {
        display: block;
        min-height: 0;
    }

    .lpl-calc-promo::after {
        position: relative;
        inset: auto;
        display: block;
        width: 100%;
        height: 240px;
        background:
            linear-gradient(180deg, #f6f8fb 0%, rgba(246, 248, 251, 0.45) 18%, rgba(246, 248, 251, 0) 36%),
            url("/pvc-logu-kalkulators.png") center / cover no-repeat;
    }

    .lpl-calc-promo-copy {
        padding-bottom: 0.4rem;
    }

    .lpl-section,
    #cenaspieprasisana {
        padding-top: 2.2rem;
        padding-bottom: 2.2rem;
    }
}

/* Sīkdatņu josla — kopija no vecā stila, lai jaunā lapa to nezaudētu. */
.lpl-cc {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    padding: 12px;
    font-family: "Google Sans Flex", "Segoe UI", sans-serif;
}

.lpl-cc-card {
    max-width: 760px;
    margin: 0 auto;
    max-height: calc(100vh - 24px);
    overflow: auto;
    background: #fff;
    color: #222;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
    padding: 20px 22px 16px;
}

.lpl-cc-card h2 {
    margin: 0 0 10px;
    font-size: 22px;
    color: #222;
}

.lpl-cc-card p,
.lpl-cc-row-copy p {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.45;
    color: #333;
}

.lpl-cc-card a {
    color: #e25b2a;
}

.lpl-cc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lpl-cc-btn {
    flex: 1 1 180px;
    min-height: 44px;
    margin: 0;
    padding: 10px 12px;
    border: 2px solid #1c1917;
    border-radius: 4px;
    background: #1c1917;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.lpl-cc-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 10px 0;
    border-top: 1px solid #eee;
}

.lpl-cc-row-copy {
    flex: 1;
}

.lpl-cc-row h3 {
    margin: 0 0 4px;
    font-size: 16px;
    color: #222;
}

.lpl-cc-switch {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    margin: 2px 0 0;
    flex: 0 0 auto;
}

.lpl-cc-switch input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.lpl-cc-slider {
    width: 46px;
    height: 26px;
    border-radius: 13px;
    background: #c8c8c8;
    position: relative;
    cursor: pointer;
}

.lpl-cc-slider:before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
}

.lpl-cc-switch input:checked + .lpl-cc-slider {
    background: #1c1917;
}

.lpl-cc-switch input:checked + .lpl-cc-slider:before {
    left: 23px;
}

.lpl-cc-switch input:disabled + .lpl-cc-slider {
    background: #8a8a8a;
    cursor: default;
}

.lpl-cc-switch input:focus + .lpl-cc-slider {
    outline: 2px solid #e25b2a;
    outline-offset: 2px;
}

.lpl-cc-lock {
    font-size: 11px;
    color: #666;
    white-space: nowrap;
}

.lpl-cc-footer-link {
    background: none;
    border: 0;
    padding: 0;
    color: #fdba74;
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
    display: inline;
    margin-left: 8px;
}

body.lpl-new .lk-page {
    padding-top: 1.25rem;
}

.lpl-stock {
    padding: 1.5rem 0 3rem;
}

.lpl-stock-filters {
    margin: 0 0 1.6rem;
    padding: 1rem 1.1rem 1.15rem;
    background: #fff;
    border: 1px solid var(--lpl-line);
    border-radius: 0.95rem;
}

.lpl-stock-filters label {
    font-weight: 700;
    font-size: 0.82rem;
    margin-bottom: 0.35rem;
}

.lpl-stock-reset {
    width: 100%;
    border: 1px solid var(--lpl-accent);
    background: #fff;
    color: var(--lpl-accent);
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-weight: 700;
}

.lpl-stock-reset:hover {
    background: var(--lpl-accent);
    color: #fff;
}

.lpl-stock-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
}

.lpl-stock-card {
    flex: 0 0 100%;
    box-sizing: border-box;
    padding: 1rem;
    border: 1px solid var(--lpl-line);
    border-radius: 0.95rem;
    background: #fff;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .lpl-stock-card {
        flex: 0 0 calc(50% - 0.55rem);
    }
}

@media (min-width: 992px) {
    .lpl-stock-card {
        flex: 0 0 calc(33.333% - 0.74rem);
    }
}

.lpl-stock-card .product-image {
    margin-bottom: 0.6rem;
    text-align: center;
}

body.lpl-new .lpl-stock-card img {
    max-height: 180px;
    width: auto;
    max-width: 100%;
}

.lpl-stock-card .product-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lpl-stock-card h3 {
    font-size: 1.05rem;
    margin: 0.35rem 0 0.45rem;
    font-weight: 700;
}

.lpl-stock-specs {
    font-size: 0.82rem;
    line-height: 1.55;
    margin-bottom: 0.55rem;
    color: #44403c;
}

.lpl-stock-specs strong {
    display: inline-block;
    width: 7.2rem;
    font-weight: 700;
}

.lpl-stock-note {
    font-size: 0.82rem;
    margin-bottom: 0.35rem;
}

.lpl-stock-card .product-price {
    margin-top: auto;
    padding-top: 0.6rem;
}

.lpl-stock-card .price-text {
    font-weight: 700;
    margin-bottom: 0;
}

.lpl-stock-card .price-old {
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--lpl-accent);
    font-size: 0.85rem;
    font-weight: 500;
}

.lpl-stock-card .price-new {
    color: var(--lpl-accent);
}

@media (min-width: 992px) {
    body.lpl-new .lk-calc .lk-summary {
        top: 5.5rem;
    }
}
