/* ==========================================================================
   Piensaimnieku laboratorija — galvenais stils
   Montserrat, noapaļotas kartītes, "pill" pogas.
   Krāsas — no vecā logo: violetais piliens un debeszilais fons.
   ========================================================================== */

:root {
    --brand: #3b1f7a;
    --brand-dark: #2a1459;
    --sage: #4f8fd6;
    --sage-dark: #2d6db5;
    --sky: #4f8fd6;
    --stone: #dfe6f3;
    --stone-light: #e5e9f2;
    --cream: #f2f5fb;
    --text: #2f3140;
    --muted: #626678;
    --white: #fff;
    --error: #d4183d;

    --radius: 18px;
    --radius-sm: 10px;
    --shadow: 0 8px 28px rgba(42, 20, 89, .10);
    --container: 1280px;
    --header-h: 76px;
    --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 {
    margin: 0 0 .5em;
    line-height: 1.2;
    color: var(--brand);
    font-weight: 800;
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); text-transform: uppercase; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3, .h3 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
}

.section { padding-top: 32px; padding-bottom: 32px; }
.narrow { max-width: 760px; }
.center-block { margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.center .btn { margin-top: 8px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.lead { font-size: 1.1rem; font-weight: 600; color: var(--brand); }
.rounded { border-radius: var(--radius); }

.section-title { text-transform: uppercase; }

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 24px;
    margin-bottom: 20px;
}
.section-head .section-title { margin: 0; }

.link-arrow {
    font-weight: 700;
    text-decoration: none;
    color: var(--brand);
    white-space: nowrap;
}
.link-arrow:hover { color: var(--sage-dark); }

.eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .12em;
    color: var(--sage-dark);
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    padding: .75em 1.6em;
    border: 2px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--brand-dark); color: var(--white); }

.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand); color: var(--white); }

.btn-ghost { border-color: rgba(255, 255, 255, .85); color: var(--white); background: transparent; }
.btn-ghost:hover { background: var(--white); color: var(--brand); }

.btn-light { background: var(--white); color: var(--brand); }
.btn-light:hover { background: var(--cream); color: var(--brand-dark); }

.btn-sm { padding: .45em 1.1em; font-size: .9rem; }
.btn-lg { padding: .9em 2em; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Header ------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--stone-light);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-h);
    gap: 16px;
}

.logo { flex-shrink: 0; text-decoration: none; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--brand); }
.brand-mark { width: 30px; height: 42px; flex-shrink: 0; }
.brand-mark .drop { fill: var(--brand); }
.brand-mark .line { fill: none; stroke: var(--white); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.brand-text { display: grid; line-height: 1.02; text-transform: uppercase; font-style: italic; }
.brand-text strong { font-size: 1.08rem; font-weight: 800; letter-spacing: .01em; }
.brand-text span { font-size: 1.08rem; font-weight: 800; letter-spacing: .1em; color: var(--sky); border-top: 2px solid currentColor; padding-top: 2px; }
.brand-light { color: var(--white); }
.brand-light .brand-mark .drop { fill: var(--white); }
.brand-light .brand-mark .line { stroke: var(--brand); }
.brand-light .brand-text span { color: #a9c8f0; }

.site-nav { display: flex; align-items: center; gap: 20px; }

.site-nav ul {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav ul a {
    font-weight: 600;
    text-decoration: none;
    color: var(--brand);
    white-space: nowrap;
}
.site-nav ul a:hover,
.site-nav ul a.active { color: var(--sage); }

.header-actions { display: flex; align-items: center; gap: 20px; }
.header-actions .btn { white-space: nowrap; }

.lang-switch { display: flex; gap: 6px; }
.lang-switch a {
    display: grid;
    place-items: center;
    min-width: 40px;
    padding: 4px 10px;
    border: 1px solid var(--stone-light);
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--brand);
}
.lang-switch a:hover { border-color: var(--brand); }
.lang-switch a.active { background: var(--brand); border-color: var(--brand); color: var(--white); }

.header-phone {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1.3;
    text-align: right;
    white-space: nowrap;
}
.header-phone small { font-size: .7rem; color: var(--muted); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: 0;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--brand);
    transition: transform .2s, opacity .2s;
}

/* Vidēji plati ekrāni — tālrunis neietilpst līdzās izvēlnei */
@media (min-width: 1181px) and (max-width: 1340px) {
    .header-phone { display: none; }
}

@media (max-width: 1180px) {
    .nav-toggle { display: flex; }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 20px;
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
        background: var(--white);
        border-bottom: 1px solid var(--stone-light);
        box-shadow: var(--shadow);
    }
    .site-nav.open { display: flex; }
    .site-nav ul { flex-direction: column; gap: 4px; }
    .site-nav ul a { display: block; padding: 8px 0; font-size: 1.1rem; }
    .header-actions { flex-direction: column; align-items: stretch; }
    .header-actions .btn { justify-content: center; }
    .header-phone { text-align: center; }
    .lang-switch { justify-content: center; }

    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 480px) {
    .brand-mark { width: 24px; height: 34px; }
    .brand-text strong, .brand-text span { font-size: .9rem; }
}

/* --- Hero --------------------------------------------------------------- */

.hero { padding-top: 32px; padding-bottom: 16px; }

.hero-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 40px;
    min-height: 480px;
    padding: 56px;
    overflow: hidden;
    border-radius: 24px;
    color: var(--white);
    background-color: var(--brand);
    background-image:
        radial-gradient(ellipse 60% 70% at 85% 15%, rgba(255, 255, 255, .22), transparent 60%),
        radial-gradient(ellipse 45% 50% at 65% 95%, rgba(255, 255, 255, .14), transparent 60%),
        linear-gradient(115deg, var(--brand-dark) 0%, var(--brand) 38%, #3f63b8 75%, var(--sky) 100%);
}
.hero-card.has-image {
    background-image:
        linear-gradient(90deg, rgba(42, 20, 89, .9) 0%, rgba(42, 20, 89, .65) 50%, rgba(42, 20, 89, .25) 100%),
        var(--hero-image);
    background-size: cover;
    background-position: center;
}

.hero-drop {
    position: absolute;
    right: 300px;
    bottom: -90px;
    width: 300px;
    height: 420px;
    opacity: .09;
    pointer-events: none;
}
.hero-drop path { fill: var(--white); }
.hero-drop .line { fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.hero-text { position: relative; z-index: 2; }
.hero-text h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.04; color: var(--white); margin-top: 8px; }
.hero-text p { color: rgba(255, 255, 255, .92); font-size: 1.15rem; font-weight: 500; max-width: 620px; }
.eyebrow-light { color: #bcd5f5; }

.hero-hours {
    position: relative;
    z-index: 2;
    padding: 24px 26px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .96);
    color: var(--text);
    box-shadow: 0 20px 50px rgba(20, 10, 50, .25);
}
.hero-hours h2 { color: var(--brand); text-transform: uppercase; }
.small-prose { margin: 0; font-size: .9rem; line-height: 1.5; }
.small-prose p { margin-bottom: .6em; }
.small-prose > :last-child { margin-bottom: 0; }
.small-prose strong { color: var(--brand); }

@media (max-width: 1100px) {
    .hero-card { grid-template-columns: 1fr; padding: 40px; }
    .hero-drop { right: -40px; }
}

@media (max-width: 639px) {
    .hero { padding-top: 16px; }
    .hero-card { min-height: 0; padding: 28px 20px; gap: 24px; }
    .hero-text h1 { font-size: 1.9rem; }
    .hero-text p { font-size: 1rem; }
    .hero-text .btn-lg { padding: .7em 1.3em; font-size: .9rem; }
    .hero-hours { padding: 18px; }
}

/* --- Home: highlights, reasons ------------------------------------------ */

.highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.highlight-card {
    display: flex;
    flex-direction: column;
    padding: 24px 26px;
    border: 2px solid var(--stone-light);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.highlight-card:hover { color: var(--text); border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.highlight-num { font-size: .8rem; font-weight: 800; letter-spacing: .12em; color: var(--sky); }
.highlight-card h3 { margin: 6px 0 8px; font-size: 1.3rem; text-transform: uppercase; }
.highlight-card p { flex: 1; color: var(--muted); font-size: .95rem; }

.reasons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.reasons-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .reasons-4 { grid-template-columns: repeat(2, 1fr); } }
.reason {
    padding: 16px 20px;
    border: 2px solid var(--stone-light);
    border-radius: var(--radius-sm);
}
.reason h3 { text-transform: uppercase; margin-bottom: .25em; }
.reason p { margin: 0; font-size: .9rem; color: var(--muted); }
.reason-filled { background: var(--brand); border-color: var(--brand); }
.reason-filled h3, .reason-filled p { color: var(--white); }

.contact-cta {
    padding: 40px 24px;
    text-align: center;
    background: var(--stone);
    border-radius: var(--radius);
}
.contact-cta h2 { text-transform: uppercase; }
.contact-cta p { margin: .25em 0; font-weight: 600; }
.contact-cta a:not(.btn) { text-decoration: none; }
.contact-cta .btn { margin-top: 12px; }

/* Aktuāli baneris */
.notice-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px 40px;
    padding: 32px 36px;
    background: var(--cream);
    border-left: 6px solid var(--sky);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
}
.notice-banner:hover { color: var(--text); box-shadow: var(--shadow); }
.notice-banner h2 { margin-bottom: .3em; }
.notice-banner p { margin: 0; color: var(--muted); max-width: 820px; }
.notice-banner .btn { flex-shrink: 0; }

/* Partneri */
.partners {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 24px 40px;
    padding: 24px;
    border: 2px solid var(--stone-light);
    border-radius: var(--radius);
}
.partners a { display: grid; justify-items: center; gap: 8px; text-decoration: none; font-size: .85rem; font-weight: 600; color: var(--muted); }
.partners a:hover { color: var(--brand); }
.partners img { max-height: 90px; max-width: 200px; width: auto; transition: transform .2s; }
.partners a:hover img { transform: scale(1.03); }

@media (max-width: 900px) {
    .highlights { grid-template-columns: 1fr; }
    .reasons { grid-template-columns: 1fr; }
    .notice-banner { flex-direction: column; align-items: flex-start; padding: 24px; }
}

/* --- Page head ---------------------------------------------------------- */

.page-head {
    padding-top: 48px;
    padding-bottom: 16px;
    text-align: center;
}
.page-head p { max-width: 760px; margin: 0 auto; color: var(--muted); font-size: 1.05rem; }
.page-head.left { text-align: left; padding-bottom: 0; }
.page-head.left p { margin: 0; max-width: none; }
.page-head .crumbs { margin-bottom: 12px; font-size: .9rem; font-weight: 600; }
.page-head .crumbs a { text-decoration: none; }

/* --- Cards / split ------------------------------------------------------ */

.card {
    padding: 24px;
    background: var(--cream);
    border-radius: var(--radius);
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.sticky-media { position: sticky; top: calc(var(--header-h) + 24px); width: 100%; }

@media (max-width: 900px) {
    .split { grid-template-columns: 1fr; gap: 24px; }
    .sticky-media { position: static; }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
}
.service {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--cream);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: transform .2s, box-shadow .2s;
}
.service:hover { color: var(--text); transform: translateY(-2px); box-shadow: var(--shadow); }
.service-media { display: block; height: 170px; background: var(--white); border-bottom: 1px solid var(--stone-light); }
.service-media img { width: 100%; height: 100%; object-fit: cover; }
.service-body { display: flex; flex-direction: column; flex: 1; padding: 20px 24px 24px; }
.service-body h3 { font-size: 1.1rem; text-transform: uppercase; }
.service-body p { color: var(--muted); flex: 1; font-size: .95rem; }
.service-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* --- Skatītājs ---------------------------------------------------------- */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 64px;
    background: rgba(20, 10, 45, .92);
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 100px); margin: 0 auto; border-radius: var(--radius-sm); }
.lightbox figcaption { margin-top: 10px; color: rgba(255, 255, 255, .85); font-size: .9rem; }
.lightbox button {
    position: absolute;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: var(--white);
    font: 700 1.8rem/1 var(--font);
    cursor: pointer;
}
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }

@media (max-width: 600px) {
    .lightbox { padding: 16px; }
    .lightbox-prev, .lightbox-next { top: auto; bottom: 16px; transform: none; }
}

.info-box {
    margin-top: 32px;
    padding: 28px;
    background: var(--cream);
    border-radius: var(--radius);
}

/* --- Kontakti ----------------------------------------------------------- */

.contact-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-list h3 { margin-bottom: .3em; }
.contact-list p { margin-bottom: .4em; }
.details-card { margin-top: 32px; }
.details-card p { margin: 0; font-size: .95rem; }

.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--brand); }
.form input,
.form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--stone-light);
    border-radius: var(--radius-sm);
    font: inherit;
    font-weight: 400;
    color: var(--text);
    background: var(--white);
}
.form input:focus,
.form textarea:focus { outline: none; border-color: var(--brand); }
.form button { justify-self: start; }
.hp { position: absolute; left: -9999px; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 0; font-weight: 600; }
.alert-success { background: #eaf2fc; color: var(--sage-dark); }
.alert-error { background: #fef2f2; color: var(--error); }

.map { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 7; background: var(--cream); }
.map iframe { width: 100%; height: 100%; border: 0; }
.map-consent {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 8px;
    padding: 24px;
    text-align: center;
    color: var(--muted);
}

@media (max-width: 600px) {
    .contact-list, .form-row { grid-template-columns: 1fr; }
    .map { aspect-ratio: 4 / 3; }
}

.big-phone { font-size: 1.6rem; font-weight: 800; margin-bottom: 0; }
.big-phone a { text-decoration: none; }

/* --- Prose -------------------------------------------------------------- */

.prose { margin-bottom: 24px; }
.prose h2 { font-size: 1.3rem; margin-top: 1.5em; }
.prose h3 { margin-top: 1.4em; text-transform: uppercase; }
.prose > :first-child { margin-top: 0; }
.prose li { margin-bottom: .4em; }
.prose ul { padding-left: 1.2em; }
.prose blockquote {
    margin: 1.2em 0;
    padding: 12px 16px;
    border-left: 4px solid var(--sage);
    background: var(--cream);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.prose blockquote p:last-child { margin: 0; }

/* --- Satura tabulas, attēli ------------------------------------------- */

.content-width { max-width: 960px; margin-left: auto; margin-right: auto; }
.prose img { height: auto; margin: 1em 0; border-radius: var(--radius-sm); }
.prose figure { margin: 1.5em 0; }
.prose figcaption { margin-top: 6px; font-size: .85rem; color: var(--muted); font-style: italic; }
.prose hr { margin: 2em 0; border: 0; border-top: 2px dashed var(--stone-light); }
.prose h2 { text-transform: none; }
.prose h3 { text-transform: none; font-size: 1.15rem; }
.prose h4 { margin-top: 1.2em; font-size: 1rem; }
.prose ol { padding-left: 1.4em; }
.prose a { font-weight: 600; }
.prose .note, .prose blockquote { font-size: .95rem; }

.prose table {
    display: block;
    width: max-content;
    max-width: 100%;
    margin: 1.2em 0 1.6em;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: .92rem;
    line-height: 1.45;
    border: 2px solid var(--stone-light);
    border-radius: var(--radius-sm);
}
.prose table.wide, .methods-table table { width: 100%; display: table; }
.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--stone-light); vertical-align: top; text-align: left; }
.prose th { background: var(--cream); color: var(--brand); font-weight: 700; }
.prose tr:nth-child(even) td { background: #fafbfe; }
.prose caption { padding: 8px 0; caption-side: top; text-align: left; font-weight: 700; color: var(--brand); }
@media (max-width: 700px) {
    .prose table, .methods-table table { display: block; width: 100%; }
    .prose th, .prose td { padding: 8px 10px; }
}

/* Saturs + sānu josla */
.with-aside {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 48px;
    align-items: start;
}
.with-aside .prose { max-width: 820px; }
.aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.aside .card { padding: 22px; }
.aside .h3 { text-transform: uppercase; }
.side-links { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 4px; }
.side-links a { display: block; padding: 6px 0; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--stone-light); }
.hours-card { background: var(--brand); color: rgba(255, 255, 255, .92); }
.hours-card h2, .hours-card h3, .hours-card strong { color: var(--white); }
.hours-card a { color: var(--white); }
@media (max-width: 1000px) {
    .with-aside { grid-template-columns: 1fr; gap: 24px; }
    .aside { position: static; }
}

/* --- Dokumenti ---------------------------------------------------------- */

.doc-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.doc-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.doc {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: var(--white);
    border: 2px solid var(--stone-light);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text);
    transition: border-color .2s, box-shadow .2s;
}
.doc-grid .doc { height: 100%; padding: 16px 18px; }
.doc:hover { color: var(--text); border-color: var(--brand); box-shadow: var(--shadow); }
.doc-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: var(--brand);
    color: var(--white);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .04em;
}
.doc-pdf { background: #c0392b; }
.doc-doc { background: #2b5797; }
.doc-link, .doc-page { background: var(--sky); font-size: 1.2rem; }
.doc-text { display: grid; gap: 2px; min-width: 0; }
.doc-text strong { font-size: .95rem; line-height: 1.3; color: var(--brand); }
.doc-text small { font-size: .8rem; color: var(--muted); }
.doc-meta { text-transform: uppercase; letter-spacing: .04em; }

/* Apliecības (Kvalitāte) */
.certs { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.cert {
    display: grid;
    justify-items: center;
    gap: 10px;
    width: 280px;
    padding: 24px;
    text-align: center;
    background: var(--cream);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: transform .2s, box-shadow .2s;
}
.cert:hover { color: var(--text); transform: translateY(-2px); box-shadow: var(--shadow); }
.cert img { height: 220px; width: auto; border-radius: 6px; box-shadow: 0 4px 16px rgba(0, 0, 0, .12); background: var(--white); }
.cert strong { font-size: 1.05rem; color: var(--brand); }
.cert small { color: var(--muted); }
.cert .link-arrow { font-size: .85rem; }

/* Darba laiks */
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 7px 0; border-top: 1px dashed rgba(255, 255, 255, .3); text-align: left; font-weight: 500; }
.hours th { font-weight: 700; padding-right: 16px; }
.hours tr:first-child th, .hours tr:first-child td { border-top: 0; }
.contact-notes { margin-top: 24px; }
.map-side { margin-top: 24px; aspect-ratio: 4 / 3; }
.nowrap { white-space: nowrap; }

/* --- Footer ------------------------------------------------------------- */

.site-footer {
    margin-top: 48px;
    padding-top: 48px;
    background: var(--brand);
    color: rgba(255, 255, 255, .85);
}
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer h3 { color: var(--white); font-size: 1rem; text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .9rem; }

.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1.4fr 1.2fr; gap: 32px; }
.footer-tagline { margin-top: 16px; font-size: .9rem; max-width: 300px; }

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    padding-bottom: 24px;
    border-top: 1px solid rgba(255, 255, 255, .2);
    font-size: .8rem;
}
.footer-bottom a { text-decoration: underline; }

@media (max-width: 800px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* --- Cookie banner ------------------------------------------------------ */

.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 20px;
    width: calc(100% - 40px);
    max-width: 760px;
    padding: 16px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .15);
    transform: translateX(-50%);
    font-size: .85rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }

@media (max-width: 600px) {
    .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
    .cookie-actions { justify-content: center; }
}
