/* Case pages: inherit shared design tokens and components from styles.css */
.case-page{background:#fff}.case-page .header{position:relative}.case-hero{background:#f7f6f1;padding:36px 0 72px}.case-back{display:inline-flex;margin-bottom:48px;text-decoration:none;color:#315b85;font-weight:600}.case-back:hover{text-decoration:underline}.case-hero h1{font-size:clamp(42px,5.6vw,82px);line-height:1.08;letter-spacing:-2px;margin:16px 0 22px;color:#102f36}.case-hero h1 span{color:#315b85}.case-lead{font-size:clamp(18px,2vw,25px);line-height:1.45;max-width:780px;color:#465d64;margin:0 0 18px}.case-status{display:inline-flex;align-items:center;gap:9px;font-size:14px;color:#49615c;margin-bottom:36px}.case-status-dot{height:8px;width:8px;border-radius:50%;background:#6d9b80}.case-image{border:1px solid #e1e5e1;border-radius:22px;overflow:hidden;background:#e6eeea;box-shadow:0 22px 50px #173d4512}.case-image img{display:block;width:100%;height:auto;max-height:670px;object-fit:contain}.case-section{padding:78px 0}.case-tint{background:#f7f6f1}.case-two-col{display:grid;grid-template-columns:minmax(230px,.85fr) minmax(0,1.35fr);gap:72px;align-items:start}.case-section h2,.case-end h2{font-size:clamp(31px,3.2vw,47px);line-height:1.12;margin:15px 0 22px;letter-spacing:-1px}.case-copy{max-width:760px}.case-copy p{font-size:clamp(17px,1.45vw,20px);line-height:1.65;color:#43545a;margin:0 0 20px}.case-work-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:35px}.case-work{padding:30px;border:1px solid #e2e5e2;background:#fff;border-radius:18px}.case-number{display:block;font-size:14px;color:#315b85;font-weight:700;margin-bottom:25px}.case-work h3{font-size:23px;line-height:1.2;margin:0 0 14px}.case-work p{color:#526268;font-size:17px;line-height:1.55;margin:0}.case-links{display:grid;gap:12px}.case-links a{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 25px;border:1px solid #dce5e7;border-radius:14px;text-decoration:none;font-size:19px;font-weight:650;color:#315b85;transition:background .2s,border-color .2s}.case-links a:hover{background:#eef4f8;border-color:#abc3d2}.case-end{background:#102f36;color:#fff;padding:65px 0}.case-end-inner{display:flex;justify-content:space-between;gap:30px;align-items:center}.case-end h2{color:#fff}.case-end p{color:#d0dddd;font-size:17px;max-width:570px}.case-end-actions{display:flex;gap:12px;flex-wrap:wrap}.case-end .btn-outline{border:1px solid #c1d2d5;color:#fff}.case-end .btn-outline:hover{color:#102f36}.case-page .footer-brand{color:inherit}@media(max-width:900px){.case-two-col{gap:25px;grid-template-columns:1fr}.case-section{padding:58px 0}.case-end-inner{display:block}.case-end-actions{margin-top:26px}}@media(max-width:600px){.case-hero{padding:25px 0 45px}.case-back{margin-bottom:32px}.case-hero h1{letter-spacing:-1.1px}.case-image{border-radius:13px}.case-work-grid{grid-template-columns:1fr;gap:12px}.case-work{padding:23px}.case-work h3{font-size:21px}.case-end{padding:48px 0}.case-end-actions{flex-direction:column;align-items:stretch}.case-end-actions .btn{text-align:center;justify-content:center}}@media(prefers-reduced-motion:reduce){.case-links a{transition:none}}

.project-card-linked{position:relative;cursor:pointer}.project-card-link{position:absolute;inset:0;z-index:3;border-radius:18px}.project-card-link:focus-visible{outline:3px solid #ec880f;outline-offset:-4px}.project-card-linked .project-detail{color:#315b85;font-weight:650}

/* v3.13.2: compact two-column case hero; rest of site unchanged */
.case-hero{padding:30px 0 56px}
.case-back{margin-bottom:30px}
.case-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.04fr);align-items:center;gap:clamp(24px,4vw,68px)}
.case-hero-copy{min-width:0}
.case-hero h1{font-size:clamp(38px,4.25vw,66px);letter-spacing:-1.6px;margin:16px 0 20px;overflow-wrap:normal}
.case-lead{font-size:clamp(18px,1.65vw,23px);max-width:520px}
.case-status{margin-bottom:0}
.case-image{min-width:0;border-radius:18px}
.case-image img{width:100%;height:auto;max-height:380px;object-fit:contain}
@media(max-width:800px){.case-hero-grid{grid-template-columns:1fr;gap:25px}.case-hero h1{font-size:clamp(38px,6vw,60px)}.case-image{max-width:680px}.case-image img{max-height:none}.case-hero{padding:25px 0 44px}}
@media(max-width:600px){.case-back{margin-bottom:26px}.case-hero-grid{gap:22px}.case-hero h1{font-size:clamp(35px,9vw,48px);letter-spacing:-1px}.case-lead{font-size:18px}}

/* v3.13.3: shared contact/footer from homepage; concise case navigation */
.case-other-projects{padding:32px 0;background:#f7f6f1}
.case-other-link{display:inline-flex;align-items:center;gap:10px;font-size:18px;font-weight:650;color:#315b85;text-decoration:none}
.case-other-link:hover{text-decoration:underline}
.case-other-link:focus-visible{outline:3px solid #ec880f;outline-offset:5px}
.case-page .contact-section{scroll-margin-top:0}
@media(max-width:600px){.case-other-projects{padding:26px 0}}

/* v3.14: natural portrait crop on Ivan Zaborsky case only */
.case-image-portrait{background:#e8e9e5;display:flex;align-items:center;justify-content:center}
.case-image-portrait img{max-height:380px;width:100%;height:380px;object-fit:contain}
@media(max-width:800px){.case-image-portrait img{height:auto;max-height:460px}}

/* v3.14.1: landscape image for Zaborsky case only */
.case-image-portrait{background:#e9ece9}
.case-image-portrait img{width:100%;height:360px;max-height:380px;object-fit:cover;object-position:66% 43%}
@media(max-width:800px){.case-image-portrait img{height:auto;max-height:none;aspect-ratio:1.55;object-fit:cover;object-position:66% center}}

/* v3.16: media switcher, Melchaev case only */
.case-media-switcher{background:transparent;overflow:visible;border:0;box-shadow:none}
.case-media-tabs{display:flex;gap:8px;margin-bottom:12px;flex-wrap:wrap}
.case-media-tab{appearance:none;cursor:pointer;font:inherit;font-size:14px;font-weight:650;color:#315b85;background:#fff;border:1px solid #cbd6da;border-radius:10px;padding:10px 14px;transition:background .2s,border-color .2s}
.case-media-tab[aria-pressed=true]{background:#315b85;color:#fff;border-color:#315b85}
.case-media-tab:focus-visible{outline:3px solid #ec880f;outline-offset:3px}
.case-media-pane{overflow:hidden;border-radius:16px;background:#e9ece9}
.case-media-pane[hidden]{display:none!important}
.case-media-pane img{display:block;width:100%;height:320px;max-height:380px;object-fit:contain}
@media(max-width:800px){.case-media-pane img{height:auto;max-height:400px}.case-media-tabs{gap:6px}}
@media(max-width:500px){.case-media-tab{flex:1;font-size:13px;padding:10px 8px}.case-media-pane img{max-height:none}}

/* v3.18: compact Telegram portfolio link in case navigation */
.case-other-projects .wrap{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.case-telegram-link{font-size:16px;line-height:1.5;font-weight:600;color:#315b85;text-decoration:none}
.case-telegram-link:hover{text-decoration:underline}
.case-telegram-link:focus-visible{outline:3px solid #ec880f;outline-offset:5px}
@media(max-width:600px){.case-other-projects .wrap{align-items:flex-start;flex-direction:column;gap:15px}}
