/* ============================
   DESIGN SYSTEM - RastreioIzi
   ============================ */

:root {
    --bg:           #F5F0E8;
    --bg-card:      #FDFAF5;
    --accent:       #8B5E2E;
    --accent-2:     #B07840;
    --accent-soft:  #EDE0CC;
    --accent-softer:#F5EDD8;
    --ink:          #1A1206;
    --ink-2:        #4A3A28;
    --muted:        #9A8870;
    --line:         #E2D5C0;
    --line-2:       #C8B898;
    --success:      #2D7A4F;
    --warning:      #B07820;
    --danger:       #A83232;
    --radius:       18px;
    --radius-sm:    10px;
    --shadow:       0 2px 16px rgba(90,60,20,0.08);
    --shadow-lg:    0 8px 40px rgba(90,60,20,0.14);
    --transition:   0.22s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================
   HEADER
   ============================ */
.site-header {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.logo-name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.logo-badge {
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.header-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.header-nav a {
    text-decoration: none;
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 600;
    transition: color var(--transition);
}

.header-nav a:hover { color: var(--accent); }

/* ============================
   HERO / HOME
   ============================ */
.hero {
    padding: 80px 0 60px;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.hero-title {
    font-size: clamp(40px, 6vw, 68px);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.08;
    color: var(--ink);
    margin-bottom: 6px;
}

.hero-title span {
    color: var(--accent-2);
}

.hero-subtitle {
    font-size: 16px;
    color: var(--ink-2);
    max-width: 480px;
    margin: 20px 0 40px;
    line-height: 1.65;
}

/* ============================
   SEARCH BOX
   ============================ */
.search-box {
    background: var(--bg-card);
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    padding: 6px 6px 6px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 640px;
    box-shadow: var(--shadow);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.search-box:focus-within {
    border-color: var(--accent-2);
    box-shadow: 0 0 0 3px rgba(176, 120, 64, 0.15), var(--shadow);
}

.search-icon {
    color: var(--muted);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: .03em;
}

.search-input::placeholder {
    color: var(--muted);
    font-weight: 400;
    letter-spacing: .08em;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 13px 24px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--ink);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(26, 18, 6, 0.2);
}

.btn-primary:active { transform: translateY(0); }

/* ============================
   FEATURE CARDS
   ============================ */
.features {
    margin-top: 64px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 22px;
    transition: box-shadow var(--transition), transform var(--transition);
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.feature-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--accent);
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 13.5px;
    color: var(--ink-2);
    line-height: 1.6;
}

.feature-card a {
    color: var(--accent);
}

/* ============================
   ALERT / ERRO
   ============================ */
.alert-erro {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #B91C1C;
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 600;
    margin: 20px auto;
    max-width: 640px;
}

/* ============================
   RESULT PAGE
   ============================ */
.result-page { padding: 32px 0 80px; }

.result-header-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.result-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--accent-softer);
    border: 1px solid var(--line-2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
}

.result-meta { flex: 1 1 200px; min-width: 0; }

.result-meta h1 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.2;
    color: var(--ink);
}

.result-code {
    font-size: 13px;
    color: var(--muted);
    font-family: 'Courier New', monospace;
    letter-spacing: .06em;
    margin-top: 2px;
}

.result-carrier {
    font-size: 13px;
    color: var(--muted);
    margin-top: 2px;
}

.result-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--line-2);
    background: var(--bg);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition), box-shadow var(--transition);
    margin-left: auto;
    flex-shrink: 0;
}

.result-share-btn:hover {
    background: var(--accent-softer);
    box-shadow: var(--shadow);
}

/* Stage Progress */
.stage-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 30px;
    margin-bottom: 28px;
    overflow-x: auto;
}

.stage-track {
    display: flex;
    align-items: flex-start;
    gap: 0;
    position: relative;
    min-width: 420px;
}

.stage-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    min-width: 90px;
}

.stage-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: box-shadow var(--transition);
}

.stage-dot.done {
    background: var(--accent);
}

.stage-dot.current {
    background: var(--accent);
    box-shadow: 0 0 0 6px var(--accent-soft);
}

.stage-dot.pending {
    background: var(--bg);
    border: 1.5px solid var(--line-2);
}

.stage-dot svg { color: #fff; }
.stage-dot.pending svg { color: var(--muted); opacity: .4; }

.stage-label {
    font-size: 12px;
    font-weight: 700;
    margin-top: 10px;
    color: var(--ink);
    white-space: nowrap;
    text-align: center;
}

.stage-label.muted { color: var(--muted); font-weight: 500; }

.stage-date-label {
    font-size: 11px;
    margin-top: 3px;
    color: var(--muted);
    white-space: nowrap;
}

.stage-line {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: var(--line);
    margin-top: -26px;
    position: relative;
    overflow: hidden;
}

.stage-line-fill {
    position: absolute;
    inset: 0;
    background: var(--accent);
    border-radius: 2px;
    transition: width .6s cubic-bezier(.4,0,.2,1);
}

/* Grid resultado */
.result-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 24px;
}

/* Timeline */
.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.timeline-event {
    display: grid;
    grid-template-columns: 130px 38px 1fr;
    gap: 0;
    border-bottom: 1px solid var(--line);
    transition: background var(--transition);
}

.timeline-event:last-child { border-bottom: none; }
.timeline-event.highlight { background: var(--accent-softer); }

.event-date {
    padding: 22px 16px 22px 24px;
    font-size: 12.5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-date-day { font-weight: 700; color: var(--ink); }
.event-date-time { color: var(--muted); margin-top: 2px; }

.event-timeline-col {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.event-line-top {
    position: absolute;
    top: 0; bottom: 50%;
    width: 2px;
    background: var(--line-2);
    left: 50%; transform: translateX(-50%);
}

.event-line-top.none { background: transparent; }

.event-line-bottom {
    position: absolute;
    top: 50%; bottom: 0;
    width: 2px;
    background: var(--line-2);
    left: 50%; transform: translateX(-50%);
}

.event-dot {
    position: relative;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 4px var(--bg-card);
    z-index: 1;
}

.highlight .event-dot {
    box-shadow: 0 0 0 4px var(--accent-softer);
}

.event-dot svg { color: #fff; }

.event-content {
    padding: 22px 24px 22px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-title {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.005em;
    line-height: 1.3;
    margin-bottom: 8px;
    color: var(--ink);
}

.event-location {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 13px;
    color: var(--ink-2);
    line-height: 1.5;
}

.event-location svg { flex-shrink: 0; margin-top: 2px; color: var(--muted); }
.event-location strong { font-weight: 600; }

.event-desc {
    font-size: 13px;
    color: var(--ink-2);
    margin-top: 6px;
    line-height: 1.55;
}

/* Sidebar cards */
.sidebar { display: flex; flex-direction: column; gap: 18px; }

.details-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 24px;
}

.card-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-2);
    margin-bottom: 14px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 14px;
}

.detail-row:last-child { border-bottom: none; }
.detail-row span:first-child { color: var(--muted); flex-shrink: 0; }
.detail-row span:last-child { font-weight: 600; text-align: right; }

.promo-card {
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius);
    padding: 22px 24px;
}

.promo-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .85;
    margin-bottom: 8px;
}

.promo-title {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-bottom: 16px;
}

.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
}

/* Search again bar */
.search-again {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 22px;
    margin-bottom: 24px;
}

.search-again p {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}

.search-again .search-box {
    max-width: 100%;
    margin: 0;
}

/* ============================
   CONTENT PAGES (Sobre, etc.)
   ============================ */
.content-page {
    padding: 60px 0 80px;
}

.content-page .page-header {
    margin-bottom: 48px;
}

.content-page h1 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 12px;
}

.content-page .lead {
    font-size: 17px;
    color: var(--ink-2);
    max-width: 600px;
    line-height: 1.7;
}

.content-body {
    max-width: 720px;
}

.content-body h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--ink);
    margin: 40px 0 14px;
    letter-spacing: -0.02em;
}

.content-body p {
    color: var(--ink-2);
    line-height: 1.75;
    margin-bottom: 16px;
}

.content-body ul {
    list-style: none;
    margin-bottom: 16px;
}

.content-body ul li {
    padding: 6px 0 6px 20px;
    position: relative;
    color: var(--ink-2);
    line-height: 1.65;
}

.content-body ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* Transportadoras grid */
.carriers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 24px 0;
}

.carrier-chip {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    text-align: center;
}

/* FAQ */
.faq { margin: 40px 0; }
.faq-item {
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}
.faq-a {
    font-size: 14px;
    color: var(--ink-2);
    line-height: 1.7;
}

/* Contato form */
.contact-form {
    max-width: 520px;
    margin-top: 32px;
}

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-2);
    margin-bottom: 7px;
    letter-spacing: .02em;
}

.form-input {
    width: 100%;
    background: var(--bg-card);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    color: var(--ink);
    outline: none;
    transition: border-color var(--transition);
}

.form-input:focus { border-color: var(--accent-2); }
textarea.form-input { resize: vertical; min-height: 130px; }

/* ============================
   FOOTER
   ============================ */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 28px 0;
    margin-top: auto;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
}

.footer-nav {
    display: flex;
    gap: 20px;
}

.footer-nav a {
    text-decoration: none;
    font-size: 13px;
    color: var(--muted);
    transition: color var(--transition);
}

.footer-nav a:hover { color: var(--accent); }

/* ============================
   404
   ============================ */
.error-page {
    padding: 100px 0;
    text-align: center;
}
.error-code {
    font-size: 100px;
    font-weight: 900;
    letter-spacing: -0.06em;
    color: var(--accent-soft);
    line-height: 1;
    margin-bottom: 8px;
}
.error-msg {
    font-size: 24px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 12px;
}
.error-sub { color: var(--muted); margin-bottom: 32px; }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
    .result-grid { grid-template-columns: 1fr; }
    .features { grid-template-columns: 1fr 1fr; }
    .carriers-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .hero { padding: 48px 0 40px; }
    .hero-title { font-size: 36px; }
    .features { grid-template-columns: 1fr; }
    .carriers-grid { grid-template-columns: 1fr; }
    .search-box { flex-direction: column; align-items: stretch; padding: 12px; }
    .btn-primary { justify-content: center; }
    .result-grid { grid-template-columns: 1fr; }
    .timeline-event { grid-template-columns: 100px 34px 1fr; }
    .event-date { padding: 16px 10px 16px 16px; }
    .footer-inner { flex-direction: column; text-align: center; }
    .stage-card { padding: 20px 16px; }
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.blog-card-cover {
    height: 190px;
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.blog-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.blog-card:hover .blog-card-cover img {
    transform: scale(1.04);
}

.blog-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 12px;
}

.blog-card-tag {
    background: var(--accent-soft);
    color: var(--accent);
    padding: 3px 9px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.blog-card-time {
    color: var(--muted);
    font-weight: 500;
}

.blog-card-title {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.015em;
    margin-bottom: 10px;
}

.blog-card-title a {
    text-decoration: none;
    color: var(--ink);
    transition: color var(--transition);
}

.blog-card-title a:hover {
    color: var(--accent);
}

.blog-card-summary {
    font-size: 13.5px;
    color: var(--ink-2);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px dashed var(--line);
    padding-top: 16px;
    font-size: 13px;
}

.blog-card-date {
    color: var(--muted);
}

.blog-card-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    transition: color var(--transition);
}

.blog-card-link:hover {
    color: var(--ink);
}

.blog-show-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.3fr) 320px;
    gap: 40px;
    align-items: start;
    margin-top: 40px;
}

.blog-post-content {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 40px;
}

.blog-post-header {
    border-bottom: 1px solid var(--line);
    padding-bottom: 24px;
    margin-bottom: 28px;
}

.post-title {
    font-size: clamp(26px, 4.5vw, 38px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin-top: 14px;
    margin-bottom: 16px;
}

.post-author-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ink-2);
}

.author-avatar-mini {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.post-cover-container {
    margin-bottom: 32px;
    border-radius: var(--radius);
    overflow: hidden;
    max-height: 380px;
    border: 1px solid var(--line);
}

.post-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-body h2 {
    font-size: 21px;
    font-weight: 800;
    color: var(--ink);
    margin: 36px 0 16px;
    letter-spacing: -0.015em;
    border-left: 3px solid var(--accent);
    padding-left: 12px;
}

.post-body h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--ink);
    margin: 28px 0 12px;
    letter-spacing: -0.01em;
}

.post-body p {
    font-size: 15px;
    color: var(--ink-2);
    line-height: 1.75;
    margin-bottom: 20px;
}

.post-body strong {
    font-weight: 700;
    color: var(--ink);
}

.post-body ul, .post-body ol {
    margin: 20px 0 24px;
}

.post-body ul {
    padding-left: 0;
}

.post-body ul li {
    padding: 6px 0 6px 20px;
    position: relative;
    color: var(--ink-2);
    font-size: 14.5px;
    line-height: 1.65;
}

.post-body ul li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.post-body ol {
    padding-left: 20px;
    list-style-type: decimal;
}

.post-body ol li {
    padding: 6px 0;
    color: var(--ink-2);
    font-size: 14.5px;
    line-height: 1.65;
}

.author-profile-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 24px;
    margin-top: 48px;
}

.author-profile-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.author-profile-details h4 {
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 6px;
}

.author-profile-bio {
    font-size: 13px;
    color: var(--ink-2);
    line-height: 1.6;
}

.post-footer {
    border-top: 1px solid var(--line);
    padding-top: 28px;
    margin-top: 40px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
    transition: color var(--transition);
}

.btn-back:hover {
    color: var(--ink);
}

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
}

.sidebar-widget h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.widget-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.widget-post-item {
    border-bottom: 1px dashed var(--line);
    padding-bottom: 14px;
}

.widget-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget-post-tag {
    font-size: 11px;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 4px;
}

.widget-post-item h4 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.widget-post-item h4 a {
    text-decoration: none;
    color: var(--ink);
    transition: color var(--transition);
}

.widget-post-item h4 a:hover {
    color: var(--accent);
}

.sidebar-widget.promo {
    background: var(--accent-softer);
    border-color: var(--line-2);
}

.sidebar-widget.promo p {
    font-size: 13.5px;
    color: var(--ink-2);
    margin-bottom: 18px;
    line-height: 1.6;
}

.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 780px;
    z-index: 1000;
    background: rgba(253, 250, 245, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 20px 24px;
    transition: opacity var(--transition), transform var(--transition);
}

.cookie-banner.hidden {
    display: none;
}

.cookie-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0;
    max-width: 100%;
}

.cookie-text {
    flex: 1;
}

.cookie-text h4 {
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.cookie-text p {
    font-size: 13px;
    color: var(--ink-2);
    line-height: 1.5;
}

.cookie-actions {
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .blog-show-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .blog-post-content {
        padding: 24px;
    }
    .cookie-container {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        text-align: center;
    }
    .cookie-actions {
        width: 100%;
    }
    .cookie-actions button {
        width: 100%;
        justify-content: center;
    }
}
