/* Sadarbības partneri: bezgalīga horizontāla lente — krāsas no --mi-* (miizstrade-theme.css) */
.mi-swiper-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.swiper-slider .swiper-button-prev.mi-swiper-arrow::before,
.swiper-slider .swiper-button-next.mi-swiper-arrow::before {
    content: none !important;
}

.mi-swiper-arrow i {
    font-size: 1.125rem;
    line-height: 1;
    color: inherit;
    font-style: normal;
    transform: none !important;
}

.mi-landing-logos-wrap {
    padding: 8px 0 1.25rem;
    border-top: 1px solid var(--mi-line-2);
    background: var(--mi-gradient-page);
    box-sizing: border-box;
}

/* Partneru bloks pēdējais pirms kājenes — noņem section-md apakšējo padding */
section#clients.section-md {
    padding-bottom: 0 !important;
}
.mi-landing-logos-wrap .client-logos {
    padding: 0;
    margin: 0;
    text-align: center;
}
/* Viens partners: viens logo, bez animācijas — tāds pats šūnas platums kā lentes .item (220px). */
.client-logos--static {
    display: flex;
    justify-content: center;
    padding: 0 12px;
}
.client-logos__static-inner {
    display: flex;
    justify-content: center;
    flex: 0 0 auto;
    width: 220px;
    max-width: 220px;
}
.client-logos--static .item {
    flex: 0 0 auto;
    width: 220px;
    max-width: 220px;
    padding: 0 10px;
    box-sizing: border-box;
}
.client-logos-marquee {
    width: 100%;
}
.client-logos-marquee__viewport {
    overflow: hidden;
    width: 100%;
}
.client-logos-marquee__track {
    display: flex;
    width: max-content;
    transform: translateZ(0);
    animation: client-logos-marquee-scroll 32s linear infinite;
    will-change: transform;
}
.client-logos-marquee__group {
    display: flex;
    flex-shrink: 0;
    align-items: stretch;
}
.client-logos-marquee .item {
    flex: 0 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
    width: 220px;
}
@media (max-width: 600px) {
    .client-logos-marquee .item {
        width: 170px;
        padding: 0 8px;
    }
    .client-logos__static-inner,
    .client-logos--static .item {
        width: 170px;
        max-width: 170px;
    }
    .client-logos--static .item {
        padding: 0 8px;
    }
}
@keyframes client-logos-marquee-scroll {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-50%, 0, 0);
    }
}
.client-logos-marquee__viewport:hover .client-logos-marquee__track {
    animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
    .client-logos-marquee__track {
        animation: client-logos-marquee-scroll 100s linear infinite;
    }
}
.mi-landing-logos-wrap .landing-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 104px;
    padding: 18px 14px;
    margin: 4px 0;
    background: var(--mi-surface);
    border-radius: 12px;
    border: 1px solid var(--mi-line);
    box-shadow: 0 2px 12px var(--mi-shadow);
    text-decoration: none;
    box-sizing: border-box;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.mi-landing-logos-wrap .landing-logo-card:hover,
.mi-landing-logos-wrap .landing-logo-card:focus {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px var(--mi-shadow);
    border-color: var(--mi-primary-border);
}
.mi-landing-logos-wrap .landing-logo-card img {
    max-width: 130px;
    width: auto;
    max-height: 56px;
    height: auto;
    object-fit: contain;
    filter: grayscale(35%);
    opacity: 0.88;
    transition: filter 0.25s ease, opacity 0.25s ease;
}
.mi-landing-logos-wrap .landing-logo-card:hover img,
.mi-landing-logos-wrap .landing-logo-card:focus img {
    filter: grayscale(0%);
    opacity: 1;
}
@media (max-width: 600px) {
    .mi-landing-logos-wrap {
        padding: 4px 0 1rem;
    }
    .mi-landing-logos-wrap .landing-logo-card {
        min-height: 92px;
        padding: 14px 10px;
    }
}

/* Sākumlapa — jaunumi */
.mi-home-news {
    padding: 2.8rem 0 3.25rem;
    background:
        radial-gradient(ellipse 75% 58% at 50% 0%, rgba(237, 28, 36, 0.045), transparent 58%),
        linear-gradient(180deg, #f7f8fb 0%, #f4f6fa 100%);
    border-top: 1px solid var(--mi-line-2);
    border-bottom: 1px solid var(--mi-line-2);
}

.mi-home-news .container {
    max-width: 1200px;
}

.mi-home-news__header {
    margin: 0 auto 2rem;
}

.mi-home-news__eyebrow {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mi-primary);
    margin: 0 0 0.4rem;
}

.mi-home-news__title {
    margin-bottom: 0 !important;
    font-size: clamp(1.25rem, 2.8vw, 1.5rem);
}

.mi-home-news__grid {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 2.35rem;
    row-gap: 1.35rem;
}

.mi-home-news__item {
    display: flex;
    justify-content: center;
    flex: 0 1 332px;
    max-width: 332px;
}

.mi-home-news-card {
    display: flex;
    flex-direction: column;
    width: min(332px, 100%);
    background: var(--mi-surface);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--mi-line);
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.08);
    transition:
        border-color 0.2s ease,
        box-shadow 0.22s ease,
        transform 0.2s ease;
}

.mi-home-news-card:hover {
    border-color: var(--mi-primary-border);
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.14);
    transform: translateY(-3px);
}

.mi-home-news-card__media {
    display: block;
    position: relative;
    height: 176px;
    overflow: hidden;
    background: linear-gradient(135deg, #e2e8f0, var(--mi-bg-1));
}

.mi-home-news-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.mi-home-news-card:hover .mi-home-news-card__media img {
    transform: scale(1.04);
}

.mi-home-news-card__body {
    padding: 1.08rem 1.12rem 1.18rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: left;
}

.mi-home-news-card__date {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(10, 10, 10, 0.42);
    margin-bottom: 0.45rem;
}

.mi-home-news-card__headline {
    font-size: 1.04rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
}

.mi-home-news-card__headline a {
    color: var(--mi-ink);
    text-decoration: none;
    transition: color 0.15s ease;
}

.mi-home-news-card__headline a:hover {
    color: var(--mi-primary);
}

.mi-home-news-card__excerpt {
    font-size: 0.845rem;
    line-height: 1.55;
    color: var(--mi-muted);
    margin: 0 0 0.55rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mi-home-news-card__more {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--mi-primary);
    text-decoration: none;
    margin-top: auto;
    width: fit-content;
    padding-bottom: 0;
    border-bottom: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.mi-home-news-card__more::after {
    content: "→";
    font-size: 0.85em;
    transition: transform 0.2s ease;
}

.mi-home-news-card__more:hover {
    color: var(--mi-primary-dark);
    border-bottom-color: var(--mi-primary-border);
}

.mi-home-news-card__more:hover::after {
    transform: translateX(2px);
}

.mi-home-news__cta-wrap {
    margin-top: 1.85rem;
}

.mi-home-news__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    padding: 0.6rem 1.35rem;
    border-radius: 999px;
    background: var(--mi-gradient-hero-btn);
    box-shadow: 0 4px 16px var(--mi-primary-glow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mi-home-news__cta:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 5px 18px var(--mi-primary-glow);
}

.mi-home-news__cta-arrow {
    transition: transform 0.2s ease;
    font-size: 0.9em;
}

.mi-home-news__cta:hover .mi-home-news__cta-arrow {
    transform: translateX(3px);
}

.mi-home-news__empty {
    text-align: center;
    padding: 2rem 1rem;
    color: rgba(10, 10, 10, 0.5);
    background: rgba(255, 255, 255, 0.55);
    border-radius: 12px;
    border: 1px dashed rgba(10, 10, 10, 0.1);
    max-width: 24rem;
    margin: 0 auto;
    font-size: 0.875rem;
}

.mi-home-stat__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mi-home-stat__icon i {
    font-size: 2.25rem;
    line-height: 1;
    color: #fff;
}

@media (max-width: 991px) {
    .mi-home-news .container {
        max-width: 720px;
    }

    .mi-home-news__item {
        flex-basis: 300px;
        max-width: 300px;
    }

    .mi-home-news-card__media {
        height: 164px;
    }
}

@media (max-width: 575px) {
    .mi-home-news {
        padding: 2rem 0 2.5rem;
    }

    .mi-home-news__grid {
        row-gap: 1.15rem;
        column-gap: 1.15rem;
    }

    .mi-home-news__item {
        flex-basis: min(100%, 360px);
        max-width: min(100%, 360px);
    }

    .mi-home-news-card__media {
        height: 168px;
    }

    .mi-home-news-card__headline {
        font-size: 0.9375rem;
    }
}

/* —— Mūsdienīgs hero: attēls pilnā augstumā, teksts lasāms, bez satura pārklājuma —— */
.mi-hero {
    position: relative;
    background: #0a0a0c;
}

.mi-hero__swiper.swiper-slider_mi-home,
.mi-hero .swiper-slider_mi-home {
    min-height: min(420px, 85vw);
    height: clamp(360px, 58vh, 680px);
    max-height: 680px;
}

.mi-hero .swiper-slider_mi-home .swiper-slide {
    background-size: cover;
    background-position: center center;
    position: relative;
}

/* Viegls līdzinājums visā laukumā — bilde paliek redzama */
.mi-hero .swiper-slider_mi-home .swiper-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        165deg,
        rgba(6, 7, 12, 0.35) 0%,
        rgba(6, 7, 12, 0.28) 35%,
        rgba(6, 7, 12, 0.55) 70%,
        rgba(6, 7, 12, 0.75) 100%
    );
}

.mi-hero .swiper-slide-caption {
    position: relative;
    z-index: 2;
}

.mi-hero .swiper-pagination,
.mi-hero .swiper-button-prev,
.mi-hero .swiper-button-next {
    z-index: 4;
}

.mi-hero .swiper-button-prev.mi-swiper-arrow,
.mi-hero .swiper-button-next.mi-swiper-arrow {
    display: flex !important;
    align-items: center;
    justify-content: center;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 0;
    width: 54px;
    height: 54px;
    line-height: 1;
    text-align: center;
    border-radius: 999px;
    background: rgba(15, 18, 26, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mi-hero .swiper-button-prev.mi-swiper-arrow {
    left: 24px;
}

.mi-hero .swiper-button-next.mi-swiper-arrow {
    right: 24px;
}

.mi-hero .swiper-button-prev.mi-swiper-arrow:hover,
.mi-hero .swiper-button-next.mi-swiper-arrow:hover {
    background: rgba(237, 28, 36, 0.88);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 14px 34px rgba(237, 28, 36, 0.26);
    opacity: 1;
}

.mi-hero .swiper-button-prev.mi-swiper-arrow i,
.mi-hero .swiper-button-next.mi-swiper-arrow i {
    display: block;
    font-size: 16px;
    line-height: 1;
    color: #fff;
    transform: translateY(1px);
}

@media (max-width: 991px) {
    .mi-hero .swiper-button-prev.mi-swiper-arrow,
    .mi-hero .swiper-button-next.mi-swiper-arrow {
        width: 46px;
        height: 46px;
    }

    .mi-hero .swiper-button-prev.mi-swiper-arrow {
        left: 12px;
    }

    .mi-hero .swiper-button-next.mi-swiper-arrow {
        right: 12px;
    }
}

.mi-hero .swiper-slide-caption h1,
.mi-hero .swiper-slide-caption h2,
.mi-hero .swiper-slide-caption h3 {
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
}

.mi-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Starter packages */
.mi-pricing-section {
    background:
        radial-gradient(ellipse 80% 55% at 50% 0%, rgba(237, 28, 36, 0.06), transparent 52%),
        linear-gradient(180deg, #f7f8fb 0%, #f1f4f9 100%);
}

.mi-pricing-section__lead {
    margin: 0.75rem auto 2.2rem;
    max-width: 48rem;
    font-size: 1.04rem;
    line-height: 1.7;
    color: #5d6676;
}

.mi-pricing-grid .pricing-table-wrap {
    height: 100%;
}

.mi-pricing-grid .pricing-table {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 18px;
    border: 1px solid #d7dce8;
    box-shadow: 0 14px 32px rgba(17, 24, 39, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mi-pricing-grid .pricing-table:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(17, 24, 39, 0.14);
}

.mi-pricing-grid .pricing-table.pricing-table-label {
    border-color: rgba(237, 28, 36, 0.36);
    box-shadow: 0 16px 36px rgba(237, 28, 36, 0.2);
}

.mi-pricing-grid .pricing-header h5 {
    letter-spacing: -0.01em;
}

.mi-pricing-grid .pricing-header .price {
    margin-top: 0.5rem;
}

.mi-pricing-grid .pricing-header .price span:first-child {
    font-weight: 700;
    font-size: 1.375rem;
}

.mi-pricing-list {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.mi-pricing-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 0.7rem;
    line-height: 1.55;
    color: #3e4656;
}

.mi-pricing-list li .icon {
    margin-top: 0.13rem;
    flex: 0 0 auto;
}

.mi-pricing-grid .pricing-footer {
    margin-top: auto;
}

@media (max-width: 767px) {
    .mi-pricing-section__lead {
        margin-bottom: 1.75rem;
    }
}
