:root {
  --orange: #ff8000;
  --orange-dark: #e76800;
  --orange-soft: #fff3e8;
  --ink: #111827;
  --text: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --surface: #ffffff;
  --soft: #f6f7f9;
  --dark: #101318;
  --radius: 22px;
  --shadow: 0 18px 55px rgba(17, 24, 39, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }

.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 9999; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow); }
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(229,231,235,.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(17,24,39,.05);
}
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: 190px; }
.brand img { display: block; width: 158px; height: auto; }
.brand span { color: var(--orange); font-weight: 800; font-size: .93rem; border-left: 1px solid var(--line); padding-left: 10px; }
.main-nav { display: flex; align-items: center; gap: 24px; font-size: .93rem; font-weight: 700; }
.main-nav a { color: #4b5563; text-decoration: none; transition: .2s ease; white-space: nowrap; }
.main-nav a:hover { color: var(--orange); }
.main-nav .nav-cta { background: var(--orange); color: #fff; padding: 11px 18px; border-radius: 999px; box-shadow: 0 10px 24px rgba(255,128,0,.22); }
.main-nav .nav-cta:hover { color: #fff; background: var(--orange-dark); transform: translateY(-1px); }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--orange); font-size: 1.65rem; }

.blog-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(105deg, rgba(10,13,18,.95), rgba(10,13,18,.72)), url('../img/wallpaper_index.webp') center/cover;
  padding: 96px 0 88px;
}
.blog-hero::after { content: ''; position: absolute; inset: auto -120px -180px auto; width: 520px; height: 520px; background: rgba(255,128,0,.22); filter: blur(50px); border-radius: 50%; }
.hero-content { position: relative; z-index: 2; max-width: 820px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--orange); font-weight: 850; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.eyebrow.light { color: #ffd5aa; }
.blog-hero h1 { max-width: 780px; margin: 16px 0 18px; font-size: clamp(2.45rem, 5vw, 4.9rem); line-height: 1.03; letter-spacing: -.045em; }
.blog-hero p { max-width: 690px; color: #e5e7eb; font-size: clamp(1rem, 2vw, 1.25rem); margin: 0 0 30px; }
.hero-search { display: flex; max-width: 650px; padding: 7px; background: #fff; border-radius: 999px; box-shadow: 0 18px 45px rgba(0,0,0,.24); }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 13px 18px; color: var(--ink); background: transparent; }
.hero-search button { border: 0; color: #fff; background: var(--orange); border-radius: 999px; padding: 12px 22px; font-weight: 800; }

.section { padding: 78px 0; }
.section.soft { background: var(--soft); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.section-heading h2 { margin: 6px 0 0; color: var(--ink); font-size: clamp(1.8rem, 3vw, 2.75rem); line-height: 1.12; letter-spacing: -.03em; }
.section-heading p { max-width: 600px; color: var(--muted); margin: 8px 0 0; }
.text-link { color: var(--orange-dark); font-weight: 800; text-decoration: none; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }

.featured-post { display: grid; grid-template-columns: 1.18fr .82fr; min-height: 470px; background: var(--dark); border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); }
.featured-media { min-height: 420px; overflow: hidden; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.featured-post:hover .featured-media img { transform: scale(1.025); }
.featured-copy { padding: 50px; display: flex; flex-direction: column; justify-content: center; }
.featured-copy h2 { color: #fff; font-size: clamp(2rem, 3.5vw, 3.25rem); line-height: 1.06; margin: 14px 0 18px; letter-spacing: -.04em; }
.featured-copy h2 a { text-decoration: none; }
.featured-copy p { color: #d1d5db; margin: 0 0 24px; font-size: 1.05rem; }

.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 32px rgba(17,24,39,.055); transition: transform .25s ease, box-shadow .25s ease; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-card-image { display: block; aspect-ratio: 16/10; background: #e5e7eb; overflow: hidden; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card-image img { transform: scale(1.035); }
.post-card-body { padding: 24px; display: flex; flex: 1; flex-direction: column; }
.post-category { color: var(--orange-dark); text-transform: uppercase; letter-spacing: .06em; font-size: .73rem; font-weight: 850; text-decoration: none; }
.post-card h2 { color: var(--ink); font-size: 1.34rem; line-height: 1.25; margin: 10px 0 10px; letter-spacing: -.02em; }
.post-card h2 a { text-decoration: none; }
.post-card p { color: var(--muted); margin: 0 0 22px; font-size: .96rem; }
.post-meta { display: flex; align-items: center; gap: 7px; color: #8a919d; margin-top: auto; font-size: .82rem; }

.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.category-card { position: relative; display: block; min-height: 210px; padding: 28px; color: #fff; text-decoration: none; background: linear-gradient(145deg, #171b21, #262c35); border-radius: 24px; overflow: hidden; }
.category-card::after { content: ''; position: absolute; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,128,0,.2); right: -60px; bottom: -70px; transition: .3s ease; }
.category-card:hover::after { transform: scale(1.25); }
.category-card i { color: var(--orange); font-size: 2rem; }
.category-card h3 { position: relative; z-index: 1; font-size: 1.35rem; margin: 20px 0 8px; }
.category-card p { position: relative; z-index: 1; color: #cbd0d7; margin: 0; font-size: .92rem; }
.category-card span { position: absolute; left: 28px; bottom: 23px; color: #ffbe7a; font-weight: 800; font-size: .8rem; }

.page-hero { background: linear-gradient(110deg, #11151a, #262d35); color: #fff; padding: 76px 0 64px; }
.page-hero h1 { max-width: 880px; margin: 13px 0 12px; font-size: clamp(2.2rem, 4.3vw, 4rem); line-height: 1.06; letter-spacing: -.04em; }
.page-hero p { max-width: 760px; color: #d1d5db; margin: 0; font-size: 1.08rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .83rem; color: #9ca3af; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { color: var(--orange); }

.article-shell { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 52px; align-items: start; padding: 54px 0 88px; }
.article-main { min-width: 0; }
.article-header { max-width: 850px; }
.article-header h1 { color: var(--ink); font-size: clamp(2.25rem, 5vw, 4.45rem); line-height: 1.02; letter-spacing: -.052em; margin: 16px 0 20px; }
.article-header .lead { color: #56606c; font-size: 1.23rem; line-height: 1.65; margin: 0 0 26px; }
.article-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; }
.article-byline a { color: var(--ink); font-weight: 750; text-decoration: none; }
.article-featured { margin: 38px 0; overflow: hidden; border-radius: 28px; box-shadow: var(--shadow); background: var(--soft); }
.article-featured img { display: block; width: 100%; max-height: 620px; object-fit: cover; }
.article-content { color: #29313b; font-size: 1.08rem; line-height: 1.82; }
.article-content h2, .article-content h3, .article-content h4 { color: var(--ink); line-height: 1.2; letter-spacing: -.025em; scroll-margin-top: 110px; }
.article-content h2 { margin: 2.2em 0 .75em; font-size: 2rem; }
.article-content h3 { margin: 1.8em 0 .65em; font-size: 1.5rem; }
.article-content p { margin: 0 0 1.35em; }
.article-content a { color: var(--orange-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-content ul, .article-content ol { padding-left: 1.4em; margin: 0 0 1.5em; }
.article-content li { margin: .5em 0; }
.article-content blockquote { margin: 2em 0; padding: 22px 26px; border-left: 5px solid var(--orange); background: var(--orange-soft); border-radius: 0 16px 16px 0; color: #6e3508; font-size: 1.08rem; }
.article-content img { display: block; margin: 28px auto; border-radius: 18px; }
.article-content table { width: 100%; border-collapse: collapse; margin: 26px 0; font-size: .94rem; }
.article-content th, .article-content td { padding: 13px 14px; border: 1px solid var(--line); text-align: left; }
.article-content th { background: var(--soft); color: var(--ink); }

.article-sidebar { position: sticky; top: 110px; display: grid; gap: 20px; }
.sidebar-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 23px; box-shadow: 0 10px 28px rgba(17,24,39,.045); }
.sidebar-card h2 { color: var(--ink); font-size: 1.05rem; margin: 0 0 14px; }
.toc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.toc-list li.level-h3 { padding-left: 14px; }
.toc-list a { color: #596270; text-decoration: none; font-size: .88rem; line-height: 1.35; }
.toc-list a:hover { color: var(--orange-dark); }
.sidebar-lead { color: #fff; background: linear-gradient(145deg, #151a20, #252c35); border: 0; }
.sidebar-lead h2 { color: #fff; }
.sidebar-lead p { color: #cbd0d7; font-size: .9rem; }

.article-cta { margin: 48px 0 36px; padding: 30px; border-radius: 24px; background: linear-gradient(120deg, #11161b, #2b323b); color: #fff; }
.article-cta h2 { color: #fff; margin: 0 0 10px; font-size: 1.75rem; }
.article-cta p { color: #d1d5db; margin: 0 0 20px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 9px; margin: 30px 0; }
.article-tags a { padding: 7px 12px; border-radius: 999px; background: var(--soft); color: #4b5563; font-size: .8rem; text-decoration: none; }
.author-box { display: grid; grid-template-columns: 82px 1fr; gap: 20px; align-items: start; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.author-avatar { width: 82px; height: 82px; border-radius: 50%; object-fit: cover; background: var(--orange-soft); }
.author-box h2 { color: var(--ink); margin: 0 0 7px; font-size: 1.2rem; }
.author-box p { margin: 0 0 9px; color: var(--muted); font-size: .92rem; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 999px; padding: 12px 20px; text-decoration: none; font-weight: 800; transition: .2s ease; }
.button-primary { color: #fff; background: var(--orange); border-color: var(--orange); box-shadow: 0 10px 25px rgba(255,128,0,.18); }
.button-primary:hover { color: #fff; background: var(--orange-dark); border-color: var(--orange-dark); transform: translateY(-1px); }
.button-secondary { color: var(--ink); background: #fff; border-color: #d1d5db; }
.button-secondary:hover { border-color: var(--orange); color: var(--orange-dark); }
.button.full { width: 100%; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 42px; }
.pagination-link { min-width: 42px; padding: 9px 13px; text-align: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 750; }
.pagination-link:hover, .pagination-link.is-active { color: #fff; background: var(--orange); border-color: var(--orange); }

.search-page-form { display: flex; gap: 10px; max-width: 720px; margin: 0 0 34px; }
.search-page-form input { flex: 1; min-width: 0; border: 1px solid #d1d5db; border-radius: 999px; padding: 13px 18px; outline: 0; }
.search-page-form input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,128,0,.13); }
.empty-state { padding: 55px 30px; text-align: center; background: var(--soft); border-radius: 24px; }
.empty-state i { color: var(--orange); font-size: 2.3rem; }
.empty-state h2 { color: var(--ink); }

.lead-magnet-strip { background: var(--dark); color: #fff; overflow: hidden; }
.lead-magnet-inner { display: grid; grid-template-columns: 1fr 340px; gap: 45px; align-items: center; min-height: 390px; }
.lead-magnet-copy { padding: 60px 0; }
.lead-magnet-copy h2 { max-width: 700px; margin: 12px 0 12px; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; letter-spacing: -.04em; }
.lead-magnet-copy p { max-width: 700px; color: #cbd0d7; margin: 0 0 24px; }
.lead-magnet-inner img { width: 330px; transform: rotate(3deg) translateY(45px); filter: drop-shadow(0 26px 30px rgba(0,0,0,.35)); }

.site-footer { background: #f3f4f6; border-top: 1px solid var(--line); padding: 58px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 46px; }
.footer-brand img { width: 170px; height: auto; }
.footer-brand p { max-width: 360px; color: var(--muted); font-size: .9rem; }
.site-footer h2 { margin: 6px 0 15px; color: var(--ink); font-size: .98rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a, .footer-link-button { color: #626b77; text-decoration: none; font-size: .88rem; background: none; border: 0; padding: 0; text-align: left; }
.site-footer a:hover, .footer-link-button:hover { color: var(--orange-dark); }
.social-links { display: flex; gap: 9px; margin-top: 18px; }
.social-links a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--orange-dark); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 46px; padding-top: 22px; border-top: 1px solid #dfe2e6; color: #7a838f; font-size: .78rem; }

.cookie-banner { position: fixed; z-index: 120; inset: auto 0 0; padding: 20px; background: rgba(255,255,255,.98); border-top: 1px solid var(--line); box-shadow: 0 -20px 50px rgba(17,24,39,.16); }
.cookie-inner { width: min(1180px, 100%); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cookie-inner strong { color: var(--ink); }
.cookie-inner p { margin: 4px 0 0; color: var(--muted); font-size: .85rem; }
.cookie-actions { display: flex; gap: 9px; flex-shrink: 0; }
.cookie-actions .button { font-size: .82rem; padding: 10px 15px; }
.cookie-modal { position: fixed; z-index: 130; inset: 0; display: grid; place-items: center; padding: 20px; }
.cookie-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(8,11,15,.7); backdrop-filter: blur(5px); }
.cookie-dialog { position: relative; z-index: 1; width: min(540px, 100%); padding: 30px; background: #fff; border-radius: 24px; box-shadow: var(--shadow); }
.cookie-dialog h2 { color: var(--ink); margin-top: 0; }
.dialog-close { position: absolute; top: 13px; right: 15px; width: 38px; height: 38px; border: 0; border-radius: 50%; font-size: 1.5rem; background: var(--soft); color: var(--muted); }
.cookie-option { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px; border: 1px solid var(--line); border-radius: 15px; margin: 14px 0; }
.cookie-option strong, .cookie-option span { display: block; }
.cookie-option span { color: var(--muted); font-size: .8rem; }
.cookie-option input { width: 22px; height: 22px; accent-color: var(--orange); }
.always-on { padding: 6px 9px; border-radius: 999px; background: var(--soft); font-weight: 750; white-space: nowrap; }
body.modal-open { overflow: hidden; }

.error-page { min-height: 72vh; display: grid; place-items: center; text-align: center; padding: 80px 20px; }
.error-page .error-code { color: var(--orange); font-size: clamp(4rem, 12vw, 9rem); line-height: 1; font-weight: 900; }
.error-page h1 { color: var(--ink); font-size: 2.2rem; }
.error-page p { max-width: 600px; color: var(--muted); }

@media (max-width: 1020px) {
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 82px; left: 20px; right: 20px; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 14px; border-radius: 10px; }
  .main-nav .nav-cta { text-align: center; margin-top: 6px; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-media { min-height: 360px; }
  .featured-copy { padding: 38px; }
  .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-shell { grid-template-columns: 1fr; }
  .article-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid > :last-child { grid-column: 2 / 4; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, 1180px); }
  .header-inner { min-height: 70px; }
  .brand img { width: 138px; }
  .brand span { display: none; }
  .main-nav { top: 70px; left: 14px; right: 14px; }
  .blog-hero { padding: 72px 0 64px; }
  .hero-search { border-radius: 20px; flex-direction: column; }
  .hero-search input { padding: 12px 13px; }
  .hero-search button { border-radius: 14px; }
  .section { padding: 58px 0; }
  .section-heading { align-items: start; flex-direction: column; }
  .featured-media { min-height: 250px; }
  .featured-copy { padding: 28px; }
  .posts-grid, .category-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 55px 0 48px; }
  .article-shell { gap: 28px; padding: 40px 0 65px; }
  .article-header .lead { font-size: 1.08rem; }
  .article-featured { margin: 28px 0; border-radius: 20px; }
  .article-content { font-size: 1rem; }
  .article-content h2 { font-size: 1.65rem; }
  .article-sidebar { grid-template-columns: 1fr; }
  .author-box { grid-template-columns: 62px 1fr; }
  .author-avatar { width: 62px; height: 62px; }
  .lead-magnet-inner { grid-template-columns: 1fr; min-height: auto; }
  .lead-magnet-copy { padding: 52px 0 12px; }
  .lead-magnet-inner img { width: 260px; justify-self: center; transform: rotate(2deg) translateY(50px); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-grid > :last-child { grid-column: auto; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .cookie-inner { align-items: stretch; flex-direction: column; gap: 15px; }
  .cookie-actions { display: grid; grid-template-columns: 1fr; }
  .cookie-actions .button { width: 100%; }
  .search-page-form { flex-direction: column; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .featured-copy h2 { font-size: 2rem; }
  .article-header h1 { font-size: 2.3rem; }
  .article-byline { font-size: .8rem; }
  .article-cta { padding: 24px; }
}
