/* Project case study — isolated from archives, header and footer. */
.sp-case { background: var(--sp-color-bg-page); color: var(--sp-color-text); }
.sp-case *, .sp-case *::before, .sp-case *::after { box-sizing: border-box; }
.sp-case__container { width: min(100% - 64px, 1200px); margin-inline: auto; }
.sp-case a { color: inherit; text-decoration: none; }
.sp-case a:focus-visible { outline: 2px solid var(--sp-color-primary-text); outline-offset: 5px; }
.sp-case a:hover { color: var(--sp-color-primary-text); }
.sp-case img { max-width: 100%; height: auto; display: block; }
.sp-case figure, .sp-case p, .sp-case dl { margin: 0; }
.sp-case__hero { border-bottom: 1px solid var(--sp-color-border-soft); overflow: hidden; background: radial-gradient(ellipse at 65% 70%, var(--sp-color-panel), transparent 65%); }
.sp-case__crumbs { display: flex; flex-wrap: wrap; gap: 12px; padding-block: 26px; font-size: 12px; color: var(--sp-color-muted); }
.sp-case__hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 36px; min-height: 540px; }
.sp-case__hero-grid--text { grid-template-columns: 1fr; min-height: 360px; }
.sp-case__intro { padding-block: 32px 64px; min-width: 0; }
.sp-case__eyebrow { font-size: 14px; color: var(--sp-color-text-soft); }
.sp-case__eyebrow::before { content: '◈'; color: var(--sp-color-primary-vivid); margin-inline-end: 10px; }
.sp-case .sp-case__intro h1 { font-size: clamp(32px, 4.4vw, 60px); line-height: 1.4; margin: 12px 0 20px; font-weight: 800; letter-spacing: 0; overflow-wrap: anywhere; }
.sp-case__lead { font-size: 17px; line-height: 2; color: var(--sp-color-text-soft); }
.sp-case__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-block: 30px; }
.sp-case__meta:empty { display: none; }
.sp-case__meta > div { border-inline-end: 1px solid var(--sp-color-border-soft); padding-inline-end: 8px; font-size: 12px; overflow-wrap: anywhere; }
.sp-case__meta > div:last-child { border: 0; }
.sp-case dt { color: var(--sp-color-primary-text); margin-bottom: 6px; }
.sp-case dd { margin: 0; line-height: 1.8; }
.sp-case__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; }
.sp-case__button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 12px 20px; border: 1px solid var(--sp-color-border-strong); border-radius: 18px; font-size: 13px; font-weight: 600; transition: background .2s, transform .2s; }
.sp-case .sp-case__button--primary { background: var(--sp-color-primary); border-color: var(--sp-color-primary); color: var(--sp-color-on-primary); box-shadow: 0 8px 28px var(--sp-color-primary-glow); }
.sp-case__button:hover { background: var(--sp-color-surface-hover); }
.sp-case .sp-case__button--primary:hover { background: var(--sp-color-primary-active); }
.sp-case__button:active { transform: translateY(1px); }
.sp-case__visual { min-width: 0; max-width: 100%; overflow: hidden; position: relative; align-self: stretch; display: flex; align-items: end; justify-content: center; }
.sp-case__composite { width: 100%; max-width: 100%; min-width: 0; }
.sp-case__composite img { width: 100%; max-height: 620px; object-fit: contain; }
.sp-case__visual--devices { align-items: center; padding: 50px 20px 80px; }
.sp-case__laptop { min-width: 0; width: 100%; border: 8px solid #171b22; border-bottom-width: 18px; border-radius: 18px; position: relative; transform: perspective(1200px) rotateY(-8deg); box-shadow: var(--sp-shadow-lg); }
.sp-case .sp-case__laptop img { width: 100%; aspect-ratio: 1.5; object-fit: cover; object-position: top; border-radius: 8px; }
.sp-case__laptop::after { content: ''; position: absolute; height: 15px; inset-inline: -7%; bottom: -30px; border-radius: 0 0 50% 50%; background: #59606c; }
.sp-case__phone { position: absolute; width: 26%; inset-inline-start: 0; bottom: 38px; border: 6px solid #1a1d24; border-radius: 24px; overflow: hidden; box-shadow: var(--sp-shadow-lg); transform: rotate(-4deg); }
.sp-case .sp-case__phone img { width: 100%; aspect-ratio: .48; object-fit: cover; object-position: top; }
.sp-case__body { padding-block: 46px 32px; display: grid; gap: 38px; }
.sp-case .sp-case__body h2.sp-case__heading { display: flex; align-items: center; gap: 18px; font-size: 21px; font-weight: 750; margin: 0 0 22px; line-height: 1.7; letter-spacing: 0; }
.sp-case__heading::before { content: ''; width: 34px; height: 3px; background: var(--sp-color-primary-vivid); flex: 0 0 auto; }
.sp-case__about { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.sp-case__about--text { grid-template-columns: 1fr; }
.sp-case__prose { color: var(--sp-color-text-soft); line-height: 2.1; overflow-wrap: anywhere; }
.sp-case__prose p + p { margin-top: 16px; }
.sp-case__prose a { color: var(--sp-color-primary-text); text-decoration: underline; }
.sp-case__prose > * { max-width: 100%; }
.sp-case__prose iframe { max-width: 100%; }
.sp-case__about-image { padding: 9px; border: 1px solid var(--sp-color-border); border-radius: 12px; }
.sp-case__about-image img { width: 100%; aspect-ratio: 1.45; object-fit: cover; border-radius: 7px; }
.sp-case__summary, .sp-case__panel { background: var(--sp-color-panel); border: 1px solid var(--sp-color-border-soft); border-radius: 10px; }
.sp-case .sp-case__summary { margin-top: 22px; padding: 20px 24px; color: var(--sp-color-text-soft); line-height: 1.9; border-inline-start-color: var(--sp-color-primary); }
.sp-case__problem-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sp-case__panel { padding: 24px; }
.sp-case .sp-case__panel h3 { margin: 0 0 12px; font-size: 16px; line-height: 1.8; }
.sp-case__problem-grid h3 span { display: inline-grid; place-items: center; border-radius: 50%; width: 23px; height: 23px; margin-inline-end: 6px; background: var(--sp-color-success); color: var(--sp-color-bg); }
.sp-case__challenges h3 span { background: var(--sp-color-danger); }
.sp-case__problem-grid ul { padding-inline-start: 20px; margin: 0; line-height: 2.1; color: var(--sp-color-text-soft); font-size: 14px; }
.sp-case__solutions li::marker { color: var(--sp-color-success); }
.sp-case__challenges li::marker { color: var(--sp-color-danger); }
.sp-case__features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.sp-case__feature { text-align: center; padding: 22px 18px; }
.sp-case__feature-icon { display: block; width: 36px; height: 36px; margin: 0 auto 12px; color: var(--sp-color-primary-vivid); }
.sp-case__feature p { color: var(--sp-color-muted); line-height: 1.9; font-size: 13px; }
.sp-case__gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sp-case__gallery a { display: block; overflow: hidden; border-radius: 10px; border: 1px solid var(--sp-color-border); }
.sp-case__gallery img { width: 100%; aspect-ratio: 1.85; object-fit: cover; object-position: top; transition: transform .2s; }
.sp-case__gallery a:hover img { transform: scale(1.025); }
.sp-case figcaption { padding-top: 8px; font-size: 12px; color: var(--sp-color-muted); }
.sp-case__technologies { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.sp-case__technologies li { padding: 18px 10px; text-align: center; font-size: 13px; overflow-wrap: anywhere; }
.sp-case__tech-mark { display: block; color: var(--sp-color-primary-text); font: bold 24px monospace; margin-bottom: 10px; }
.sp-case__navigation { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 20px 28px; background: var(--sp-color-panel); border: 1px solid var(--sp-color-border); border-radius: 12px; }
.sp-case__adjacent { display: flex; align-items: center; gap: 18px; min-width: 0; }
.sp-case__adjacent:last-child { flex-direction: row-reverse; text-align: end; }
.sp-case__adjacent strong { display: block; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.sp-case__adjacent small { color: var(--sp-color-muted); font-size: 11px; }
.sp-case__adjacent img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.sp-case__all { display: block; padding: 10px; color: var(--sp-color-primary) !important; }
.sp-case__all svg { width: 30px; height: 30px; }
@media (max-width: 1000px) { .sp-case__hero-grid { gap: 20px; min-height: 460px; } .sp-case__features { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sp-case__technologies { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sp-case__about { gap: 24px; } }
@media (max-width: 760px) { .sp-case__container { width: calc(100% - 36px); } .sp-case__hero-grid { display: flex; flex-direction: column-reverse; gap: 8px; } .sp-case__intro { padding-block: 16px 24px; width: 100%; } .sp-case__visual { width: 100%; min-height: 0; } .sp-case__composite { width: 100%; } .sp-case__visual--devices { padding: 28px 20px 70px; } .sp-case__about, .sp-case__problem-grid { grid-template-columns: 1fr; } .sp-case__gallery { grid-template-columns: 1fr; } .sp-case__body { gap: 32px; padding-top: 30px; } .sp-case__navigation { gap: 8px; padding: 16px 10px; } .sp-case__adjacent { gap: 8px; } .sp-case__adjacent img { display: none; } .sp-case__lead { font-size: 15px; } .sp-case .sp-case__body h2.sp-case__heading { font-size: 19px; } }
@media (max-width: 380px) { .sp-case__features { grid-template-columns: 1fr; } .sp-case__technologies { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sp-case__meta { gap: 8px; } }
@media (prefers-reduced-motion: reduce) { .sp-case *, .sp-case *::before, .sp-case *::after { transition: none !important; transform: none !important; } }

.sp-case__tech-mark--wordpress { color: white; font-family: Georgia, serif; }
.sp-case__tech-mark--woocommerce { color: #bf7bc9; }
.sp-case__tech-mark--elementor { color: #f45182; }
.sp-case__tech-mark--php { color: #a4abe3; font-style: italic; }
.sp-case__tech-mark--css3 { color: #39a9ef; }
.sp-case__tech-mark--html5 { color: #ff794e; }
