/* Content blocks rendered by js/blocks.js */
.lead { font-size: var(--text-lg); line-height: 1.55; color: var(--navy-800); max-width: 46rem; }
.lead::first-line { font-weight: 600; }

.block-title { font: 700 var(--text-sm) var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy-900); margin-bottom: var(--space-3); }
.source { margin: var(--space-2) 0 0; font-size: var(--text-xs); color: var(--slate-500); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: 1px; margin: 0; background: var(--color-line); border: 1px solid var(--color-line); border-radius: var(--radius-md); overflow: hidden; }
.stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: var(--space-5) var(--space-4); background: var(--white); transition: background-color var(--duration-normal); }
.stats > div:hover { background: var(--gold-100); }
.stats dt { font-size: var(--text-sm); line-height: 1.4; color: var(--color-muted); }
.stats dd { margin: 0 0 var(--space-2); white-space: nowrap; font: 800 clamp(1.5rem, 1.1rem + 1.1vw, 2.1rem)/1 var(--font-display); letter-spacing: -0.02em; color: var(--navy-900); }
.stats dd small { margin-left: 0.25em; font-size: 0.42em; font-weight: 700; letter-spacing: 0; color: var(--red-600); }

/* Lists */
.list { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-3); }
.list li { position: relative; padding-left: 1.75rem; }
.list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.9rem; height: 2px; background: var(--gold-500); }
.list--check li::before { top: 0.35em; width: 0.45rem; height: 0.8rem; background: none; border: solid var(--green-600); border-width: 0 2px 2px 0; transform: rotate(45deg); left: 0.3rem; }
.list--cols { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: var(--space-3) var(--space-6); max-width: none !important; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--color-line); border-radius: var(--radius-md); background: var(--white); }
.table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); line-height: 1.5; }
.table caption { caption-side: top; text-align: left; padding: var(--space-4); font: 700 var(--text-sm) var(--font-display); color: var(--navy-900); border-bottom: 1px solid var(--color-line); }
.table th, .table td { padding: 0.7rem var(--space-4); text-align: left; vertical-align: top; }
.table thead th { background: var(--navy-900); color: var(--white); font: 600 var(--text-xs) var(--font-display); letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.table tbody tr + tr { border-top: 1px solid var(--color-line); }
.table tbody tr:hover { background: var(--slate-100); }
.table tbody th { font-weight: 600; color: var(--navy-900); min-width: 11rem; }
.table tr.is-highlight { background: var(--gold-100); }
.table tr.is-highlight th { box-shadow: inset 4px 0 0 var(--gold-500); }

/* Bars */
.bars { margin: 0; padding: var(--space-5); background: var(--white); border: 1px solid var(--color-line); border-radius: var(--radius-md); }
.bars__row { display: grid; grid-template-columns: 7.5rem 1fr 4.5rem; align-items: center; gap: var(--space-3); padding-block: 0.3rem; font-size: var(--text-sm); }
.bars__track { height: 0.9rem; background: var(--slate-100); border-radius: var(--radius-pill); overflow: hidden; }
.bars__fill { display: block; height: 100%; background: var(--navy-700); border-radius: inherit; transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease-out-expo); }
.is-visible .bars__fill, .bars.is-visible .bars__fill { transform: scaleX(var(--v, 0)); }
.bars__row.is-highlight { font-weight: 700; }
.bars__row.is-highlight .bars__fill { background: linear-gradient(90deg, var(--gold-600), var(--gold-500)); }
.bars__value { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); gap: var(--space-4); }
.card { position: relative; padding: var(--space-5); background: var(--white); border: 1px solid var(--color-line); border-radius: var(--radius-md); transition: transform var(--duration-normal) var(--ease-out-expo), box-shadow var(--duration-normal), border-color var(--duration-normal); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--slate-300); }
.card__tag { display: inline-block; margin-bottom: var(--space-3); font: 700 var(--text-xs) var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-600); }
.card__title { font-size: 1.05rem; font-weight: 700; line-height: 1.3; margin-bottom: var(--space-2); }
.card p { margin: 0; font-size: var(--text-sm); color: var(--color-muted); }
.card p + p { margin-top: var(--space-2); }
.card--strength { border-top: 4px solid var(--green-600); }
.card--weakness { border-top: 4px solid var(--red-600); }
.card--opportunity { border-top: 4px solid var(--blue-600); }
.card--risk { border-top: 4px solid var(--gold-500); }
.cards--numbered { counter-reset: card; }
.cards--numbered .card { counter-increment: card; padding-top: var(--space-7); }
.cards--numbered .card::before { content: counter(card, decimal-leading-zero); position: absolute; top: var(--space-4); left: var(--space-5); font: 800 1.6rem/1 var(--font-display); color: var(--slate-300); }
.cards--dark .card { background: var(--navy-900); border-color: var(--navy-800); color: var(--white); }
.cards--dark .card p { color: rgb(255 255 255 / 0.72); }

/* Quote */
.quote { position: relative; margin: 0; padding: var(--space-6) var(--space-6) var(--space-6) clamp(3rem, 2rem + 4vw, 5.5rem); background: var(--navy-900); color: var(--white); border-radius: var(--radius-lg) var(--radius-sm); }
.quote::before { content: "“"; position: absolute; left: var(--space-4); top: 0.1em; font: 800 clamp(4rem, 3rem + 4vw, 7rem)/1 var(--font-display); color: var(--gold-500); }
.quote p { font: 600 var(--text-lg)/1.45 var(--font-display); margin: 0; max-width: 44rem; }
.quote footer { margin-top: var(--space-4); font-size: var(--text-sm); color: rgb(255 255 255 / 0.65); }
.quote--slogan { background: var(--gold-100); color: var(--navy-900); }
.quote--slogan::before { color: var(--gold-500); }
.quote--slogan footer { color: var(--slate-600); }

/* Steps / timeline */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; display: grid; grid-template-columns: 6.5rem 1fr; gap: var(--space-4); padding: 0 0 var(--space-5) var(--space-5); border-left: 2px solid var(--color-line); margin-left: 0.5rem; }
.steps li::before { content: ""; position: absolute; left: -0.45rem; top: 0.35rem; width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--white); border: 3px solid var(--gold-500); }
.steps li:last-child { padding-bottom: 0; border-left-color: transparent; }
.steps__title { font: 800 1.05rem/1.4 var(--font-display); color: var(--navy-900); }
.steps p { margin: 0; color: var(--color-muted); }
.steps--numbered li { grid-template-columns: 1fr; gap: 0; counter-increment: step; }
.steps--numbered .steps__title::before { content: counter(step) ". "; color: var(--red-600); }

/* Chain: infrastruktur → müəssisə → bazar ... */
.chain { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.chain li { display: flex; align-items: center; gap: var(--space-2); font: 700 var(--text-sm) var(--font-display); }
.chain span { padding: 0.55rem 1rem; background: var(--navy-900); color: var(--white); border-radius: var(--radius-pill); }
.chain li:last-child span { background: var(--red-600); }
.chain li + li::before { content: "→"; color: var(--gold-600); font-size: 1.2rem; }

/* Project cards */
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); gap: var(--space-5); }
.projects > :only-child { max-width: 34rem; }
.project { display: flex; flex-direction: column; scroll-margin-top: calc(var(--nav-height) + 1rem); background: var(--white); border: 1px solid var(--color-line); border-radius: var(--radius-md); overflow: hidden; transition: transform var(--duration-normal) var(--ease-out-expo), box-shadow var(--duration-normal); }
.project:hover, .project:focus-within { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.project__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--slate-100); }
.project__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease-out-expo); }
.project:hover .project__media img { transform: scale(1.05); }
.project__code { position: absolute; left: var(--space-3); top: var(--space-3); padding: 0.2rem 0.6rem; background: var(--navy-900); color: var(--gold-500); border-radius: var(--radius-sm); font: 700 var(--text-xs) var(--font-display); }
.project__body { display: flex; flex-direction: column; flex: 1; gap: var(--space-3); padding: var(--space-5); }
.project__title { font-size: 1.1rem; font-weight: 700; line-height: 1.3; }
.project__body > p { margin: 0; font-size: var(--text-sm); color: var(--color-muted); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); gap: var(--space-3); margin: 0; padding-top: var(--space-3); border-top: 1px dashed var(--slate-300); }
.facts div { display: flex; flex-direction: column-reverse; }
.facts dt { font-size: var(--text-xs); color: var(--slate-500); line-height: 1.3; }
.facts dd { margin: 0; font: 700 var(--text-sm)/1.3 var(--font-display); color: var(--navy-900); }
.project .btn { align-self: flex-start; margin-top: auto; }

/* Project dialog */
.project-dialog { width: min(100% - 2rem, 58rem); max-height: min(100dvh - 2rem, 52rem); padding: 0; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); color: var(--color-text); }
.project-dialog::backdrop { background: rgb(10 17 32 / 0.7); backdrop-filter: blur(4px); }
.project-dialog[open] { animation: dialog-in var(--duration-normal) var(--ease-out-expo); }
.project-dialog__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); padding: var(--space-5) var(--space-6); background: var(--navy-900); color: var(--white); }
.project-dialog__head h3 { font-size: var(--text-h3); }
.project-dialog__close { flex: none; width: 2.5rem; height: 2.5rem; border: 1px solid rgb(255 255 255 / 0.3); border-radius: 50%; background: transparent; color: var(--white); font-size: 1.4rem; line-height: 1; cursor: pointer; transition: background-color var(--duration-fast), transform var(--duration-fast); }
.project-dialog__close:hover { background: var(--red-600); transform: rotate(90deg); }
.project-dialog__body { display: grid; gap: var(--space-5); padding: var(--space-6); }
.project-dialog__body figure { margin: 0; }
.project-dialog__body figure img { width: 100%; border: 1px solid var(--color-line); border-radius: var(--radius-md); }
.project-dialog__body figcaption { margin-top: var(--space-2); font-size: var(--text-xs); color: var(--slate-500); }
.project-dialog__body h4 { font-size: var(--text-sm); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: var(--space-3); }

/* Link list */
.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.links a { display: grid; gap: var(--space-1); padding: var(--space-4) var(--space-5); background: var(--white); border: 1px solid var(--color-line); border-left: 4px solid var(--gold-500); border-radius: var(--radius-md); color: var(--navy-900); text-decoration: none; transition: transform var(--duration-normal) var(--ease-out-expo), box-shadow var(--duration-normal), border-color var(--duration-fast); }
.links a:hover { transform: translateX(4px); box-shadow: var(--shadow-card); border-left-color: var(--red-600); }
.links strong { font: 700 var(--text-sm) var(--font-display); }
.links span { font-size: var(--text-xs); color: var(--blue-600); word-break: break-all; }

@keyframes dialog-in { from { opacity: 0; transform: translateY(24px) scale(0.98); } }

@media (max-width: 52rem) {
}
@media (max-width: 34rem) {
  .bars__row { grid-template-columns: 5.5rem 1fr 3.6rem; }
  .steps li { grid-template-columns: 1fr; gap: 0; }
  .project-dialog__body, .project-dialog__head { padding: var(--space-4); }
}
