:root {
    --pdf-bg: #f1ebe2;
    --pdf-paper: #ffffff;
    --pdf-ink: #2f2a24;
    --pdf-muted: #6a5b4f;
    --pdf-line: #e7d9c6;
    --pdf-brand: #1b4332;
    --pdf-brand-soft: #2d6a4f;
    --pdf-accent: #b78628;
}

* {
    box-sizing: border-box;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--pdf-bg);
    color: var(--pdf-ink);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

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

a {
    text-decoration: none;
}

@page {
    size: A4;
    margin: 0;
}

.brochure-toolbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 14px;
    background: rgba(20, 28, 25, 0.92);
    backdrop-filter: blur(10px);
}

.toolbar-link,
.toolbar-button {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.toolbar-link {
    background: #ffffff;
    color: var(--pdf-brand);
}

.toolbar-button {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #ffffff;
}

.pdf-page {
    width: 210mm;
    min-height: 297mm;
    margin: 8px auto;
    background: var(--pdf-paper);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    page-break-after: always;
}

.pdf-page:last-of-type {
    page-break-after: auto;
}

.pdf-page::before,
.pdf-page::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    opacity: 0.12;
    pointer-events: none;
}

.pdf-page::before {
    width: 160mm;
    height: 64mm;
    top: -20mm;
    right: -26mm;
    background: radial-gradient(circle at center, var(--pdf-brand-soft), var(--pdf-brand));
}

.pdf-page::after {
    width: 140mm;
    height: 56mm;
    bottom: -24mm;
    left: -22mm;
    background: radial-gradient(circle at center, #fbbf24, var(--pdf-accent));
}

.pdf-cover {
    justify-content: center;
    align-items: center;
    text-align: center;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 22%),
        radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.08), transparent 20%),
        linear-gradient(145deg, #123526 0%, #1b4332 55%, #245640 100%);
    color: #ffffff;
}

.pdf-cover__inner {
    position: relative;
    z-index: 1;
    width: 78%;
    padding: 34mm 18mm;
    border: 1px solid rgba(255, 255, 255, 0.28);
    outline: 1px solid rgba(183, 134, 40, 0.35);
    outline-offset: 12px;
}

.pdf-kicker {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(183, 134, 40, 0.14);
    color: var(--pdf-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.pdf-cover h1,
.pdf-cover h2,
.pdf-section-head h2,
.pdf-panel h3,
.pdf-product-card h3 {
    margin-top: 0;
    font-family: Georgia, "Times New Roman", serif;
}

.pdf-cover h1 {
    margin-bottom: 10px;
    font-size: 46px;
    letter-spacing: 0.06em;
}

.pdf-cover h2 {
    margin-bottom: 14px;
    font-size: 34px;
}

.pdf-cover p {
    margin: 0;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.88);
}

.pdf-cover__contact {
    position: absolute;
    bottom: 18mm;
    left: 18mm;
    right: 18mm;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 11px;
}

.pdf-header,
.pdf-footer {
    position: relative;
    z-index: 1;
    padding: 10mm 10mm 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--pdf-muted);
}

.pdf-header {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.pdf-content {
    position: relative;
    z-index: 1;
    padding: 8mm 10mm 10mm;
    flex: 1;
}

.pdf-section-head {
    margin-bottom: 18px;
}

.pdf-section-head h2 {
    margin-bottom: 0;
    font-size: 30px;
    color: var(--pdf-brand);
}

.pdf-two-col {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 18px;
}

.pdf-lead,
.pdf-panel p {
    margin: 0 0 12px;
    line-height: 1.7;
    color: #4d4339;
}

.pdf-panel {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--pdf-line);
    background: linear-gradient(180deg, #fffdf9 0%, #f8f1e6 100%);
}

.pdf-panel h3 {
    margin-bottom: 12px;
    font-size: 24px;
    color: var(--pdf-brand);
}

.pdf-contact-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.pdf-contact-list div {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--pdf-line);
}

.pdf-contact-list strong,
.pdf-specs dt {
    display: block;
    margin-bottom: 4px;
    color: var(--pdf-brand);
}

.pdf-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.pdf-product-card {
    display: flex;
    flex-direction: column;
    min-height: 250px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid var(--pdf-line);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 24px rgba(27, 67, 50, 0.08);
}

.pdf-product-card img {
    width: 100%;
    height: 124px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 12px;
}

.pdf-product-meta {
    margin-bottom: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pdf-accent);
}

.pdf-product-card h3 {
    margin-bottom: 8px;
    font-size: 22px;
    color: var(--pdf-brand);
}

.pdf-product-card p {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.55;
    color: #52473d;
}

.pdf-specs {
    margin: auto 0 0;
    display: grid;
    gap: 8px;
}

.pdf-specs div {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid #efe4d6;
}

.pdf-specs dt,
.pdf-specs dd {
    margin: 0;
    font-size: 12px;
}

.pdf-specs dd {
    text-align: right;
    color: #4c433a;
    font-weight: 600;
}

.pdf-footer {
    padding: 0 10mm 10mm;
    color: #5b5249;
}

@media print {
    body {
        background: none;
    }

    .no-print {
        display: none !important;
    }

    .pdf-page {
        margin: 0;
        box-shadow: none;
    }
}
