:root {
    --ink: #0b1525;
    --muted: #5e6c7f;
    --line: #d9e4f0;
    --surface: #ffffff;
    --surface-soft: #f4f9ff;
    --blue-950: #071a33;
    --blue-900: #0b274b;
    --blue-800: #123d70;
    --blue-700: #1b568f;
    --blue-600: #2f72b6;
    --blue-500: #5696d6;
    --blue-300: #a8cdeb;
    --blue-100: #e6f2fc;
    --blue-050: #f5faff;
    --success: #1c6c43;
    --danger: #a43838;
    --warning: #8a5a09;
    --shadow-sm: 0 8px 24px rgba(10, 41, 77, 0.08);
    --shadow-md: 0 18px 50px rgba(10, 41, 77, 0.14);
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --page: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background: var(--surface);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;

}

body.nav-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

[hidden] {
    display: none !important;
}

.page-shell {
    width: min(calc(100% - 40px), var(--page));
    margin-inline: auto;
}

.section {
    padding-block: 88px;
}

.section--tinted {
    background: var(--blue-050);
}

.custom-stick-promo { display:flex; align-items:center; justify-content:space-between; gap:36px; padding:42px; border:1px solid var(--blue-300); border-radius:var(--radius-lg); background:linear-gradient(120deg,var(--blue-050),var(--blue-100)); }
.custom-stick-promo h2 { margin:4px 0 10px; font-size:clamp(1.8rem,3.5vw,2.8rem); line-height:1.08; letter-spacing:-.035em; }
.custom-stick-promo p:last-child { max-width:720px; margin:0; color:var(--muted); }

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-heading h1,
.section-heading h2 {
    margin: 4px 0 12px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.section-heading--split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
    gap: 48px;
    max-width: none;
    align-items: end;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--blue-700);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow--light {
    color: var(--blue-300);
}

.status-message {
    min-height: 24px;
    margin: 12px 0;
    color: var(--muted);
}

.error-message {
    color: var(--danger) !important;
}

.success-message {
    color: var(--success) !important;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 19px;
    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 750;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover:not(:disabled) {
    transform: translateY(-2px);
}

.button:focus-visible,
.text-button:focus-visible,
.navbar__toggle:focus-visible,
.language-switcher button:focus-visible {
    outline: 3px solid rgba(86, 150, 214, 0.35);
    outline-offset: 3px;
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.button--primary {
    color: #fff;
    background: var(--blue-700);
    box-shadow: 0 10px 24px rgba(27, 86, 143, 0.2);
}

.button--primary:hover:not(:disabled) {
    background: var(--blue-800);
}

.button--secondary {
    color: var(--blue-900);
    background: var(--blue-100);
    border-color: var(--blue-300);
}

.button--quiet {
    color: var(--ink);
    background: #fff;
    border-color: var(--line);
}

.button--light {
    color: var(--blue-950);
    background: #fff;
}

.button--ghost-light {
    color: #fff;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.45);
}

.button--wide {
    width: 100%;
}

.text-button {
    padding: 6px 0;
    border: 0;
    color: var(--blue-700);
    background: transparent;
    font-weight: 700;
    cursor: pointer;
}

.field {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-weight: 700;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px 13px;
    color: var(--ink);
    background: #fff;
    font-weight: 500;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--blue-500);
    outline: 3px solid rgba(86, 150, 214, 0.18);
}

.field small {
    color: var(--muted);
    font-weight: 500;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(217, 228, 240, 0.9);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
}

.navbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 78px;
    align-items: center;
    gap: 24px;
}

.navbar__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    text-decoration: none;
}

.navbar__wordmark {
    width: clamp(150px, 16vw, 220px);
    height: 34px;
    object-fit: contain;
    object-position: left center;
}

.navbar__legacy {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 9px;
    object-fit: cover;
}

.navbar__nav {
    display: flex;
    justify-content: center;
}

.navbar__menu {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navbar__link {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    color: #27364b;
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 720;
    white-space: nowrap;
}

.navbar__link:hover,
.navbar__link[aria-current="page"] {
    color: var(--blue-900);
    background: var(--blue-100);
}

.navbar__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.language-switcher {
    display: flex;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--blue-050);
}

.language-switcher button {
    min-width: 36px;
    height: 31px;
    border: 0;
    border-radius: 999px;
    color: var(--muted);
    background: transparent;
    font-size: 0.78rem;
    font-weight: 850;
    cursor: pointer;
}

.language-switcher button.is-active {
    color: #fff;
    background: var(--blue-700);
}

.cart-link {
    position: relative;
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--blue-950);
    background: var(--blue-100);
    text-decoration: none;
    font-weight: 800;
    white-space: nowrap;
}

.cart-count {
    display: inline-grid;
    min-width: 24px;
    height: 24px;
    place-items: center;
    padding: 0 6px;
    border-radius: 999px;
    color: #fff;
    background: var(--blue-700);
    font-size: 0.76rem;
}

.navbar__language-mobile {
    display: none;
}

.navbar__toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

.navbar__toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--ink);
}

/* Hero */
.hero {
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 84% 18%, rgba(91, 162, 221, 0.38), transparent 35%),
        linear-gradient(135deg, var(--blue-950) 0%, var(--blue-800) 62%, #1d5f9c 100%);
}

.hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    min-height: 660px;
    align-items: center;
    gap: 52px;
    padding-block: 80px;
}

.hero__copy {
    position: relative;
    z-index: 2;
}

.hero__wordmark {
    width: min(100%, 500px);
    max-height: 92px;
    margin: 2px 0 28px;
    object-fit: contain;
    object-position: left center;
    filter: brightness(1.25);
}

.hero h1 {
    max-width: 700px;
    margin: 0;
    font-size: clamp(3rem, 7vw, 6.7rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.hero__lead {
    max-width: 620px;
    margin: 24px 0 32px;
    color: #dcecff;
    font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero__visual {
    position: relative;
}

.hero__visual::before {
    content: "";
    position: absolute;
    inset: 8% 0 0 18%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    filter: blur(1px);
}

.hero__image-placeholder {
    position: relative;
    overflow: hidden;
    min-height: 470px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.baner__photo {
    width: 100%;
    height: 470px;
    object-fit: cover;
    object-position: center;
}

/* Feature/model */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-card {
    min-height: 230px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.feature-card__number {
    display: inline-grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 14px;
    color: var(--blue-800);
    background: var(--blue-100);
    font-weight: 900;
}

.feature-card h3 {
    margin: 34px 0 8px;
    font-size: 1.35rem;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
}

/* Products */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
}

.product-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.product-card a {
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.product-card__image {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(145deg, #fff, var(--blue-050));
}

.product-card__image img {
    position: absolute;
    inset: 22px;
    width: calc(100% - 44px);
    height: calc(100% - 44px);
    max-width: none;
    object-fit: contain;
    object-position: center;
}

.product-card__body {
    display: grid;
    gap: 8px;
    padding: 22px;
}

.product-card__type {
    color: var(--blue-700);
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.product-card h3 {
    margin: 0;
    font-size: 1.32rem;
}

.product-card__price {
    margin: 0;
    font-weight: 850;
}

.old__price {
    margin-right: 8px;
    color: #7b8796;
    font-weight: 600;
}

.stock-badge,
.role-badge,
.status-badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--warning);
    background: #fff3d6;
    font-size: 0.76rem;
    font-weight: 850;
}

.empty-state {
    padding: 34px;
    border: 1px dashed var(--blue-300);
    border-radius: var(--radius-md);
    background: var(--blue-050);
    text-align: center;
}

.empty-state h2,
.empty-state h3 {
    margin-top: 0;
}

.empty-state p {
    color: var(--muted);
}

/* Marketplace promo */
.marketplace-promo {
    color: #fff;
    background: linear-gradient(135deg, var(--blue-950), var(--blue-700));
}

.marketplace-promo__layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    align-items: center;
    gap: 54px;
}

.marketplace-promo__badge {
    padding: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.2);
}

.marketplace-promo__badge img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
}

.marketplace-promo__copy h2 {
    max-width: 760px;
    margin: 0 0 14px;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.marketplace-promo__copy p {
    max-width: 740px;
    margin: 0 0 28px;
    color: #d8e9fb;
}

.brand-note {
    display: grid;
    grid-template-columns: minmax(210px, 320px) minmax(0, 1fr);
    align-items: center;
    gap: 50px;
    padding: 38px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--blue-050);
}

.brand-note img {
    width: 100%;
    max-height: 70px;
    object-fit: contain;
}

.brand-note p {
    margin: 0;
    color: var(--muted);
    font-size: 1.12rem;
}

.brand-note__link {
    display: table;
    margin-top: 14px;
    color: var(--blue-800);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.policy-page {
    max-width: 980px;
    min-height: 65vh;
}

.policy-card {
    display: grid;
    gap: 34px;
    padding: clamp(24px, 5vw, 48px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.policy-card section + section {
    padding-top: 34px;
    border-top: 1px solid var(--line);
}

.policy-card h2 {
    margin: 0 0 14px;
}

.policy-card p,
.policy-card li {
    color: var(--muted);
    line-height: 1.7;
}

.policy-card ul {
    display: grid;
    gap: 10px;
    margin: 16px 0 0;
    padding-left: 22px;
}

.policy-note {
    padding: 18px 20px;
    border-left: 4px solid var(--blue-700);
    border-radius: 10px;
    color: var(--blue-950);
    background: var(--blue-050);
    font-weight: 700;
}

/* Footer */
.footer {
    padding: 64px 0 24px;
    color: #dce8f5;
    background: var(--blue-950);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.25fr 0.8fr 0.8fr;
    gap: 46px;
}

.footer__brand {
    max-width: 350px;
}

.footer__wordmark {
    width: 230px;
    max-height: 48px;
    margin-bottom: 20px;
    object-fit: contain;
    filter: brightness(3);
}

.footer__legacy {
    width: 62px;
    height: 62px;
    margin-top: 20px;
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    object-fit: cover;
}

.footer h3 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 1rem;
}

.footer p {
    margin: 0;
    color: #aebfd2;
}

.footer__email {
    color: #dce8f5;
    text-decoration: none;
}

.footer__email:hover {
    color: #fff;
    text-decoration: underline;
}

.footer__links {
    display: grid;
    gap: 10px;
}

.footer__links a {
    color: #dce8f5;
    text-decoration: none;
}

.footer__links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 46px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    color: #90a5bb;
    font-size: 0.86rem;
}

/* Responsive */
@media (max-width: 1100px) {
    .navbar {
        grid-template-columns: auto 1fr auto;
    }

    .navbar__toggle {
        display: block;
        order: 3;
    }

    .navbar__actions {
        margin-left: auto;
    }

    .navbar__actions .language-switcher {
        display: none;
    }

    .navbar__nav {
        position: fixed;
        z-index: 2000;
        top: 79px;
        right: 0;
        left: 0;
        width: 100%;
        display: none;
        max-height: calc(100vh - 79px);
        max-height: calc(100dvh - 79px);
        overflow-y: auto;
        overflow-x: hidden;
        padding: 20px max(20px, calc((100vw - var(--page)) / 2 + 20px)) 24px;
        border-top: 1px solid var(--line);
        background-color: #fff;
        box-shadow: 0 18px 36px rgba(10, 41, 77, 0.16);
    }

    body.nav-open .navbar__nav {
        display: block;
    }

    .navbar__menu {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-content: start;
        gap: 8px;
        width: min(100%, var(--page));
        margin-inline: auto;
        padding: 0;
        overflow: hidden;
        background-color: #fff;
    }

    .navbar__menu > li {
        min-width: 0;
    }

    .navbar__language-mobile {
        display: block;
        margin-top: 14px;
    }

    .navbar__language-mobile .language-switcher {
        width: fit-content;
    }

    .navbar__link {
        width: 100%;
        justify-content: flex-start;
        border-radius: 12px;
        padding: 13px 14px;
        white-space: normal;
    }

    .hero__layout {
        grid-template-columns: 1fr 0.9fr;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .page-shell {
        width: min(calc(100% - 28px), var(--page));
    }

    .section {
        padding-block: 62px;
    }

    .navbar {
        min-height: 70px;
        gap: 10px;
    }

    .navbar__nav {
        top: 71px;
        max-height: calc(100vh - 71px);
        max-height: calc(100dvh - 71px);
    }

    .navbar__legacy,
    .navbar__actions .language-switcher {
        display: none;
    }

    .navbar__wordmark {
        width: 145px;
        height: 28px;
    }

    .cart-link {
        padding: 7px 9px;
    }

    .cart-link__label {
        display: none;
    }

    .hero__layout {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-block: 70px;
    }

    .hero__visual {
        order: -1;
    }

    .hero__image-placeholder {
        min-height: 330px;
    }

    .baner__photo {
        height: 330px;
    }

    .section-heading--split,
    .feature-grid,
    .marketplace-promo__layout,
    .brand-note,
    .footer__grid {
        grid-template-columns: 1fr;
    }

    .marketplace-promo__badge {
        width: 160px;
    }

    .footer__bottom {
        flex-direction: column;
    }

    .custom-stick-promo { align-items:flex-start; flex-direction:column; padding:28px; }
}

@media (max-width: 560px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .navbar__brand {
        gap: 6px;
    }

    .navbar__actions {
        gap: 5px;
    }

    .hero h1 {
        font-size: clamp(2.7rem, 15vw, 4.6rem);
    }

    .button-row .button {
        width: 100%;
    }

    .feature-card,
    .brand-note {
        padding: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ==================================================
   SĀKUMLAPAS CENTRĀLAIS SATURA PANELIS
   ================================================== */

/*
    Ārpus galvenā paneļa lapas fons paliek balts.
*/
body {
    background: #ffffff;
}

/*
    Galvenā nedaudz tumšākā kaste.

    Padding rada atkāpi starp kastes malu un
    zilajiem baneriem.
*/
.home-frame {
    width: min(calc(100% - 48px), 1320px);
    margin: 34px auto 56px;
    padding: 26px;

    border: 1px solid #dde3e9;
    border-radius: 28px;

    background: #f1f3f5;

    box-shadow:
        0 8px 24px rgba(13, 32, 54, 0.06),
        0 26px 70px rgba(13, 32, 54, 0.09);
}

/*
    Visām galvenās kastes sadaļām ir vienāds platums.
*/
.home-frame > section {
    width: 100%;
    margin: 0 0 26px;
}

/*
    Pēdējai sadaļai nevajag apakšējo atkāpi.
*/
.home-frame > section:last-child {
    margin-bottom: 0;
}

/*
    Zilie baneri vairs nepieskaras galvenās
    pelēkās kastes malām.
*/
.home-frame > .hero,
.home-frame > .marketplace-promo {
    overflow: hidden;

    border-radius: 22px;

    box-shadow:
        0 12px 32px rgba(7, 26, 51, 0.14);
}

/*
    Gaiši zilā produktu sadaļa arī kļūst
    par atsevišķu noapaļotu bloku.
*/
.home-frame > .section--tinted {
    overflow: hidden;

    border: 1px solid #dbe7f2;
    border-radius: 22px;

    background: #eaf2f9;
}

/*
    Saturs zilajos un gaišajos blokos nedrīkst
    atrasties pārāk tuvu to malām.
*/
.home-frame .page-shell {
    width: min(calc(100% - 56px), var(--page));
}

/*
    Tās sadaļas, kurām page-shell klase ir
    uzlikta tieši uz section elementa.
*/
.home-frame > section.page-shell {
    width: min(calc(100% - 40px), var(--page));
}

/*
    Modeļa prezentācijas un aksesuāru sadaļām
    piešķir nelielu iekšējo atkāpi.
*/
.home-frame > section.page-shell:not(.section--tinted) {
    padding-inline: 10px;
}

/*
    Lai sākumlapas sadaļu augstums nav pārmērīgs
    tagad, kad tās atrodas galvenajā panelī.
*/
.home-frame .section {
    padding-block: 72px;
}

/* Planšetēm */
@media (max-width: 900px) {
    .home-frame {
        width: calc(100% - 28px);
        margin: 22px auto 40px;
        padding: 18px;

        border-radius: 22px;
    }

    .home-frame > section {
        margin-bottom: 18px;
    }

    .home-frame > .hero,
    .home-frame > .marketplace-promo,
    .home-frame > .section--tinted {
        border-radius: 17px;
    }

    .home-frame .page-shell {
        width: calc(100% - 36px);
    }

    .home-frame > section.page-shell {
        width: calc(100% - 20px);
    }

    .home-frame .section {
        padding-block: 58px;
    }
}

/* Telefoniem */
@media (max-width: 600px) {
    .home-frame {
        width: calc(100% - 16px);
        margin: 12px auto 28px;
        padding: 10px;

        border-radius: 17px;
    }

    .home-frame > section {
        margin-bottom: 12px;
    }

    .home-frame > .hero,
    .home-frame > .marketplace-promo,
    .home-frame > .section--tinted {
        border-radius: 13px;
    }

    .home-frame .page-shell {
        width: calc(100% - 24px);
    }

    .home-frame > section.page-shell {
        width: calc(100% - 12px);
        padding-inline: 4px;
    }

    .home-frame .section {
        padding-block: 44px;
    }
}
