
:root {
    --red: #c00711;
    --red-dark: #9a050d;
    --red-soft: #fdeced;
    --ink: #2b2424;
    --text: #463c3c;
    --muted: #8a7f7f;
    --line: #ece6e4;
    --bg: #faf8f6;
    --card: #ffffff;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(43, 36, 36, .05), 0 8px 24px rgba(43, 36, 36, .06);
    --shadow-lg: 0 2px 4px rgba(43, 36, 36, .06), 0 18px 40px rgba(43, 36, 36, .12);
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Galvene ---------- */
.site-header .container { max-width: 1400px; }
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 24px 10px; }

.logo {
    font-family: 'Lobster', Helvetica, Arial, cursive;
    font-size: 34px; line-height: 1; color: var(--ink); white-space: nowrap;
}
.logo:hover { color: var(--red); }

.main-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 2px; }
.main-nav a {
    color: var(--text); font-size: 14.5px; font-weight: 500;
    padding: 7px 10px; border-radius: 999px; white-space: nowrap;
    transition: background .15s, color .15s;
}
.main-nav a:hover { background: var(--red-soft); color: var(--red); }
.main-nav a.active { background: var(--red); color: #fff; }
.main-nav .fb-link { display: inline-flex; align-items: center; gap: 5px; color: #3a5795; }
.main-nav .fb-link:hover { background: #eaf0fb; color: #3a5795; }

.nav-toggle {
    display: none; background: none; border: 0; padding: 10px; cursor: pointer;
    width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sākumlapas ievads ---------- */
.hero { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); padding: 64px 0 40px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
    display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: var(--red); background: var(--red-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 16px;
}
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.1; color: var(--ink); margin: 0 0 16px; letter-spacing: -.02em; }
.hero .lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { position: relative; min-height: 340px; }
.hero-img { position: absolute; border-radius: var(--radius); box-shadow: var(--shadow-lg); background: #fff; object-fit: cover; }
.hero-img-0 { width: 62%; right: 0; top: 0; transform: rotate(2deg); }
.hero-img-1 { width: 58%; left: 0; bottom: 0; transform: rotate(-3deg); }
.hero-media .hero-img:only-child { position: static; width: 100%; transform: none; }

/* ---------- Pogas ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--red); color: #fff; font-weight: 600; font-size: 15.5px;
    padding: 12px 22px; border-radius: 999px; border: 2px solid var(--red);
    box-shadow: 0 6px 16px rgba(192, 7, 17, .22);
    transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(43, 36, 36, .22); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn-ghost:hover { background: #fff; color: var(--red); border-color: var(--red); box-shadow: none; }

/* ---------- Saturs ---------- */
.site-main { padding: 40px 0 72px; }
.is-home .site-main { padding-top: 8px; }

.block {
    background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 36px 40px; margin-bottom: 28px;
}
.block-h2 { padding-top: 30px; }
.block-title { color: var(--ink); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 20px; font-weight: 700; }
h1.block-title { font-size: clamp(26px, 3.4vw, 34px); }
h2.block-title { font-size: clamp(20px, 2.4vw, 24px); }
.block-title .dot { color: var(--red); }

.block-body { display: flex; gap: 36px; align-items: flex-start; }
.block-content { flex: 1; min-width: 0; }
.block-media { flex: 0 0 auto; width: min(40%, 380px); display: flex; flex-direction: column; gap: 16px; }
.block-media img { border-radius: 10px; box-shadow: var(--shadow); }
.block-media a { cursor: zoom-in; }
.img-right .block-body { flex-direction: row-reverse; }
.img-center .block-body { flex-direction: column; align-items: center; }
.img-center .block-media { width: min(100%, 420px); }
.img-center .block-content { width: 100%; }

.prose p { margin: 0 0 1em; }
.prose ol, .prose ul { margin: 0 0 1em; padding-left: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--red); font-weight: 600; }
.prose b, .prose strong { color: var(--ink); }

.note {
    background: #fff6e5; border-left: 4px solid #f0a020; color: #7a4d00;
    padding: 10px 16px; border-radius: 8px; margin: 0 0 20px; font-weight: 500;
}
.notice { background: var(--red-soft); color: var(--red-dark); padding: 14px 20px; border-radius: 10px; margin-bottom: 24px; }

/* Cenu tabulas */
.prices { margin: 8px 0 24px; }
.prices-title { font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.price-table th, .price-table td { padding: 12px 16px; text-align: center; border-bottom: 1px solid var(--line); }
.price-table thead th {
    background: var(--ink); color: #fff; font-weight: 600; font-size: 13.5px; letter-spacing: .02em; white-space: nowrap;
}
.price-table tbody th { text-align: left; font-weight: 500; color: var(--text); min-width: 200px; }
.price-table tbody td { font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-table tbody td small { font-weight: 500; color: var(--muted); }
.price-table tbody tr:last-child > * { border-bottom: 0; }
.price-table tbody tr:nth-child(even) { background: #fcfbfa; }
.price-table tbody tr:hover { background: var(--red-soft); }

.cta-row { margin: 8px 0 0; }

/* Galerijas */
.gallery-block { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.gallery-block:first-child, .block-title + .gallery-block { margin-top: 0; padding-top: 0; border-top: 0; margin-bottom: 20px; }
.gallery-title {
    font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
    color: var(--muted); margin: 0 0 14px;
}
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.g-item {
    display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 10px; background: #f3efed;
    cursor: zoom-in; position: relative;
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.g-item::after { content: ''; position: absolute; inset: 0; background: rgba(43, 36, 36, 0); transition: background .2s; }
.g-item:hover img { transform: scale(1.06); }
.g-item:hover::after { background: rgba(43, 36, 36, .08); }

.video { margin-top: 24px; display: flex; justify-content: center; }
.video video { max-width: 100%; width: 560px; border-radius: 12px; box-shadow: var(--shadow); }

/* Kontakti */
.contact-card { background: var(--bg); border-radius: 12px; padding: 24px 28px; }
.contact-company { font-size: 20px; font-weight: 700; color: var(--ink); }
.contact-person { color: var(--muted); margin-bottom: 14px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 18px; }
.contact-list li { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.contact-list .ci {
    width: 34px; height: 34px; border-radius: 50%; background: var(--red-soft); color: var(--red);
    display: inline-flex; align-items: center; justify-content: center; font-size: 16px;
}
.contact-meta { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; font-size: 15px; }
.contact-meta dt { color: var(--muted); }
.contact-meta dd { margin: 0; }

/* Produktu kartītes sākumlapā */
.products { margin-top: 48px; }
.section-heading { font-size: 28px; color: var(--ink); margin: 0 0 20px; letter-spacing: -.01em; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.product-card {
    background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
    color: var(--ink); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--red); }
.product-img { aspect-ratio: 4 / 3; background: #f3efed; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-name { padding: 14px 18px; font-weight: 600; display: flex; justify-content: space-between; }

/* ---------- Kājene ---------- */
.site-footer { background: var(--ink); color: #cfc6c4; padding: 48px 0 20px; font-size: 15px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ffb3b7; }
.footer-inner { display: grid; grid-template-columns: 2fr 1.5fr 1fr; gap: 32px; }
.logo-footer { color: #fff; font-size: 30px; margin-bottom: 8px; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.credit { font-size: 10px; color: #7a706e; margin-top: 6px; }
.site-footer .credit a { color: #998e8c; }
.site-footer .credit a:hover { color: #fff; }
.copyright { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 32px; padding-top: 16px; font-size: 13px; color: #998e8c; }

/* ---------- Galerijas skatītājs ---------- */
.lb {
    position: fixed; inset: 0; z-index: 1000; background: rgba(20, 16, 16, .92);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.lb.open { opacity: 1; visibility: visible; }
.lb-img {
    max-width: calc(100vw - 140px); max-height: calc(100vh - 110px); border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5); transition: opacity .2s; user-select: none;
}
.lb-btn {
    position: absolute; background: rgba(255, 255, 255, .1); color: #fff; border: 0; cursor: pointer;
    width: 52px; height: 52px; border-radius: 50%; font-size: 26px; line-height: 1;
    display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.lb-btn:hover { background: rgba(255, 255, 255, .25); }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 20px; top: 20px; width: 44px; height: 44px; font-size: 22px; }
.lb-count { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .7); font-size: 14px; }
.lb-single .lb-prev, .lb-single .lb-next, .lb-single .lb-count { display: none; }
body.lb-lock { overflow: hidden; }

/* ---------- Mobilā versija ---------- */
@media (max-width: 1180px) {
    .header-inner { flex-direction: row; justify-content: space-between; min-height: 64px; padding: 0 24px; }
    .nav-toggle { display: flex; }
    .main-nav {
        position: absolute; left: 0; right: 0; top: 100%;
        background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
        flex-direction: column; align-items: stretch; padding: 10px 16px 16px; gap: 2px;
        display: none; max-height: calc(100vh - 64px); overflow-y: auto;
    }
    .nav-open .main-nav { display: flex; }
    .main-nav a { padding: 11px 14px; border-radius: 10px; font-size: 16px; }
}

@media (max-width: 760px) {
    .container { padding: 0 16px; }
    .header-inner { min-height: 60px; padding: 0 16px; }
    .logo { font-size: 30px; }
    .hero { padding: 36px 0 24px; }
    .hero-inner { grid-template-columns: 1fr; gap: 28px; }
    .hero-media { min-height: 260px; max-width: 420px; }
    .block { padding: 24px 20px; border-radius: 12px; }
    .block-body, .img-right .block-body, .img-center .block-body { flex-direction: column; align-items: stretch; gap: 20px; }
    .block-media { width: 100%; max-width: 420px; align-self: center; }
    .gallery { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-name { padding: 10px 12px; font-size: 14.5px; }
    .price-table th, .price-table td { padding: 10px 12px; }
    .price-table tbody th { min-width: 160px; }
    .footer-inner { grid-template-columns: 1fr; gap: 20px; }
    .lb-img { max-width: 100vw; max-height: calc(100vh - 120px); border-radius: 0; }
    .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; }
    .lb-count { bottom: 28px; }
}
