:root {
  --brand-navy: #0d2a3f;
  --brand-navy-2: #153950;
  --brand-cream: #fbf7ee;
  --brand-paper: #fffdf8;
  --brand-gold: #c58a28;
  --brand-gold-light: #e5bd72;
  --text: #173047;
  --muted: #66717a;
  --line: rgba(13, 42, 63, .13);
  --radius: 18px;
  --container: 1180px;
  --reading: 820px;
  --shadow: 0 14px 38px rgba(13, 42, 63, .09);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; direction: rtl; background: var(--brand-cream); color: var(--text); font-family: "Heebo", Arial, sans-serif; line-height: 1.7; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--brand-gold-light); outline-offset: 4px; }
.content-container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.content-skip { position: fixed; inset-block-start: 8px; inset-inline-start: 8px; z-index: 100; padding: 10px 16px; background: #fff; transform: translateY(-150%); }
.content-skip:focus { transform: none; }

.content-header { background: rgba(255, 253, 248, .96); border-block-start: 1px solid rgba(197,138,40,.7); border-block-end: 1px solid var(--line); }
.content-header__inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.content-header__logo { width: 118px; }
.content-header__nav { display: flex; align-items: center; gap: 26px; font-weight: 600; }
.content-header__nav a:hover { color: var(--brand-gold); }

.content-hero { padding: clamp(54px, 7vw, 88px) 0; color: #fff; background: linear-gradient(145deg, var(--brand-navy), #102f45 65%, #183d51); border-block-end: 1px solid rgba(197,138,40,.35); }
.content-hero--compact { padding-block: clamp(44px, 6vw, 72px); }
.content-hero__inner { max-width: 930px; }
.content-eyebrow, .category-tag { display: inline-flex; align-items: center; width: fit-content; color: #8b5c13; background: #f4dfb7; border-radius: 999px; padding: 5px 12px; font-size: .88rem; font-weight: 700; }
.content-hero .content-eyebrow { color: #ffe4a8; background: rgba(197,138,40,.15); border: 1px solid rgba(229,189,114,.35); }
.content-hero h1 { margin: 18px 0 12px; max-width: 900px; font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.14; letter-spacing: -.035em; }
.content-hero__lead { max-width: 760px; margin: 0; color: rgba(255,255,255,.82); font-size: clamp(1.08rem, 2vw, 1.3rem); }
.content-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-block-start: 20px; color: var(--muted); font-size: .95rem; }
.content-hero .content-meta { color: rgba(255,255,255,.76); }

.breadcrumbs { padding-block: 18px; color: var(--muted); font-size: .94rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-inline-start: 7px; color: var(--brand-gold); }
.breadcrumbs a:hover { color: var(--brand-gold); }

.section { padding-block: clamp(56px, 8vw, 96px); }
.section--paper { background: var(--brand-paper); }
.section-heading { max-width: 760px; margin-block-end: 34px; }
.section-heading--center { margin-inline: auto; text-align: center; }
.section-heading h2 { margin: 10px 0; font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.25; }
.section-heading p { margin: 0; color: var(--muted); font-size: 1.08rem; }

.article-cover { width: min(calc(100% - 40px), 1080px); margin: 42px auto 0; overflow: hidden; border-radius: 22px; box-shadow: var(--shadow); }
.article-cover img { width: 100%; aspect-ratio: 16/8.6; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: minmax(0, var(--reading)) 250px; justify-content: center; align-items: start; gap: clamp(36px, 6vw, 72px); }
.article-body { max-width: var(--reading); font-size: clamp(1.16rem, 1.5vw, 1.28rem); line-height: 1.82; }
.article-body > *:first-child { margin-block-start: 0; }
.article-body h2 { margin: 2.4em 0 .65em; font-size: clamp(1.65rem, 3vw, 2.2rem); line-height: 1.3; color: var(--brand-navy); }
.article-body h3 { margin: 2em 0 .55em; font-size: clamp(1.3rem, 2.3vw, 1.65rem); line-height: 1.35; }
.article-body p, .article-body ul, .article-body ol { margin-block: 0 1.25em; }
.article-body li { margin-block: .45em; }
.article-body blockquote { margin: 2em 0; padding: 18px 24px 18px 12px; border-inline-start: 3px solid var(--brand-gold); color: #29465a; background: rgba(197,138,40,.07); font-size: 1.15em; }
.info-box { margin-block: 28px; padding: 24px 26px; background: #f5ead3; border-radius: 14px; border-inline-start: 3px solid var(--brand-gold); }
.info-box strong { display: block; margin-block-end: 5px; color: #7a5218; }

.toc { position: sticky; inset-block-start: 24px; padding: 20px; background: rgba(255,255,255,.67); border: 1px solid var(--line); border-radius: 14px; }
.toc__toggle { width: 100%; display: flex; justify-content: space-between; border: 0; padding: 0; background: transparent; color: var(--brand-navy); font-weight: 700; text-align: right; cursor: pointer; }
.toc__toggle::after { content: "−"; color: var(--brand-gold); }
.toc__list { margin: 14px 0 0; padding: 0; list-style: none; }
.toc__list li + li { margin-block-start: 8px; }
.toc__list .toc-h3 { padding-inline-start: 14px; font-size: .91rem; }
.toc__list a { color: var(--muted); }
.toc__list a:hover { color: var(--brand-gold); }

.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.article-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; background: var(--brand-paper); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.article-card:hover { transform: translateY(-3px); border-color: rgba(197,138,40,.38); box-shadow: var(--shadow); }
.article-card__media { overflow: hidden; }
.article-card__media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .35s ease; }
.article-card:hover .article-card__media img { transform: scale(1.025); }
.article-card__body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.article-card h3 { margin: 13px 0 8px; font-size: 1.32rem; line-height: 1.35; }
.article-card__excerpt { margin: 0 0 18px; color: var(--muted); line-height: 1.65; }
.article-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block-start: auto; padding-block-start: 15px; border-block-start: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.article-card__link { color: var(--brand-navy); font-weight: 700; }
.article-card__link::after { content: " ←"; color: var(--brand-gold); }

.service-card { padding: 28px; background: var(--brand-paper); border-block-start: 2px solid var(--brand-gold); border-radius: 0 0 var(--radius) var(--radius); }
.service-card h3 { margin: 0 0 8px; font-size: 1.4rem; }
.service-card p { margin: 0; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; counter-reset: step; }
.step { padding: 26px; background: var(--brand-paper); border: 1px solid var(--line); border-radius: 16px; counter-increment: step; }
.step::before { content: "0" counter(step); display: block; color: var(--brand-gold); font-weight: 800; font-size: 1.25rem; }
.step h3 { margin: 8px 0; }

.faq { max-width: 850px; }
.faq details { border-block-end: 1px solid var(--line); }
.faq summary { padding: 20px 4px; cursor: pointer; color: var(--brand-navy); font-size: 1.1rem; font-weight: 700; }
.faq details p { margin: 0; padding: 0 4px 20px; color: var(--muted); }

.cta { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 60px); color: white; background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-2)); border-block-start: 1px solid rgba(229,189,114,.6); border-radius: 22px; text-align: center; }
.cta::after { content: ""; position: absolute; width: 220px; aspect-ratio: 1; inset-inline-end: -110px; inset-block-end: -140px; border-radius: 50%; background: rgba(197,138,40,.08); }
.cta h2 { position: relative; margin: 0 0 10px; font-size: clamp(1.7rem, 3vw, 2.45rem); }
.cta p { position: relative; max-width: 650px; margin: 0 auto 22px; color: rgba(255,255,255,.78); }
.button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 24px; color: #172b3c; background: var(--brand-gold-light); border: 1px solid transparent; border-radius: 999px; font-weight: 800; transition: transform .22s ease, background .22s ease; }
.button:hover { transform: translateY(-2px); background: #efcb87; }
.button--outline { color: var(--brand-navy); background: transparent; border-color: var(--brand-gold); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-block-start: 42px; }
.pagination a, .pagination span { min-width: 42px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; }
.pagination [aria-current="page"] { color: #fff; background: var(--brand-navy); border-color: var(--brand-navy); }

.content-footer { padding: 28px 0; color: rgba(255,255,255,.72); background: #0a2233; border-block-start: 1px solid rgba(197,138,40,.55); }
.content-footer__inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.content-footer a:hover { color: var(--brand-gold-light); }
.content-footer__links { display: flex; gap: 18px; flex-wrap: wrap; }
.component-demo { padding: 24px; border: 1px dashed rgba(13,42,63,.25); border-radius: 16px; }
.type-sample > * { margin-block: 12px; }

@media (max-width: 960px) {
  .article-grid, .feature-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; grid-row: 1; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .content-container { width: min(calc(100% - 28px), var(--container)); }
  .content-header__inner { min-height: 68px; }
  .content-header__logo { width: 98px; }
  .content-header__nav a:not(:last-child) { display: none; }
  .article-grid, .feature-grid { grid-template-columns: 1fr; }
  .article-cover { width: calc(100% - 28px); margin-block-start: 28px; border-radius: 14px; }
  .article-body { font-size: 1.1rem; line-height: 1.78; }
  .toc__list[hidden] { display: none; }
  .toc__toggle[aria-expanded="false"]::after { content: "+"; }
  .cta { border-radius: 16px; }
  .content-footer__inner { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
