:root {
  --milk: #faf8f5;
  --ivory: #f5f0e8;
  --warm: #ebe4d9;
  --sand: #d4c4b0;
  --gold: #b8966e;
  --graphite: #3a3834;
  --ink: #1c1b19;
  --muted: #6e6860;
  --line: rgba(28, 27, 25, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--graphite);
  background: var(--milk);
  overflow-x: hidden;
}

/* Базово обмежуємо зображення по ширині контейнера (захист при застарілому кеші CSS). */
body.site-body img {
  max-width: 100%;
  height: auto;
}

body.menu-open {
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--milk);
}
.skip-link:focus {
  left: 8px;
}

h1,
h2,
h3,
.h-display {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 6.5vw, 3.75rem);
  margin: 0 0 1rem;
}
h2 {
  font-size: clamp(1.85rem, 4.8vw, 2.85rem);
  margin: 0 0 0.85rem;
}
h3 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin: 0 0 0.65rem;
}

p {
  margin: 0 0 1rem;
  max-width: 62ch;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section--tight {
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
}

.prose-muted {
  color: var(--muted);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.label-caps {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 0.75rem;
  display: block;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.35s var(--ease), border-color 0.35s;
}

.site-header.is-scrolled {
  background: rgba(250, 248, 245, 0.96);
}

.site-header__inner {
  width: min(1120px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 10px 0;
}

@media (min-width: 768px) {
  .site-header__inner {
    min-height: 72px;
  }
}

.logo {
  display: inline-flex;
  flex-direction: column;
  gap: 0;
  line-height: 1;
}

.logo__main {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink);
}

.logo__sub {
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  text-transform: lowercase;
  color: var(--muted);
  margin-top: 4px;
}

.logo--footer .logo__main {
  font-size: 1.15rem;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-cta {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.header-cta:hover {
  border-color: var(--sand);
  background: rgba(255, 255, 255, 0.7);
}

/* Burger */
.burger {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
  border-radius: 50%;
  transition: background 0.25s;
}
.burger:hover {
  background: rgba(28, 27, 25, 0.04);
}
.burger__line {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.45s var(--ease), opacity 0.35s, width 0.35s;
  transform-origin: center;
}
.burger[aria-expanded="true"] .burger__line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.burger[aria-expanded="true"] .burger__line:nth-child(2) {
  opacity: 0;
  width: 0;
}
.burger[aria-expanded="true"] .burger__line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Fullscreen nav */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
  visibility: hidden;
}

.nav-overlay.is-open {
  pointer-events: auto;
  visibility: visible;
}

.nav-overlay__panel {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, #fdfcfa 0%, #f3efe6 100%);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.55s var(--ease), opacity 0.45s ease;
  display: flex;
  flex-direction: column;
  padding: calc(14px + env(safe-area-inset-top)) clamp(24px, 6vw, 56px)
    calc(28px + env(safe-area-inset-bottom));
  overflow-y: auto;
}

.nav-overlay.is-open .nav-overlay__panel {
  transform: translateY(0);
  opacity: 1;
}

.nav-overlay__top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.nav-overlay__close {
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink);
  transition: background 0.25s;
}
.nav-overlay__close:hover {
  background: rgba(28, 27, 25, 0.06);
}
.nav-overlay__close-icon {
  position: relative;
  width: 22px;
  height: 22px;
}
.nav-overlay__close-icon::before,
.nav-overlay__close-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
}
.nav-overlay__close-icon::before {
  transform: rotate(45deg);
}
.nav-overlay__close-icon::after {
  transform: rotate(-45deg);
}

.nav-overlay__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(8px, 3vh, 18px);
  padding: 16px 0 32px;
}

.nav-overlay__link {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.85rem, 7vw, 3rem);
  font-weight: 500;
  color: rgba(28, 27, 25, 0.45);
  letter-spacing: -0.02em;
  padding: 4px 0;
  opacity: 0;
  transform: translateY(16px);
  transition: color 0.35s, opacity 0.5s var(--ease), transform 0.55s var(--ease);
  transition-delay: calc(0.04s * var(--i, 0));
}

.nav-overlay.is-open .nav-overlay__link {
  opacity: 1;
  transform: translateY(0);
}

.nav-overlay__link:hover,
.nav-overlay__link:focus-visible {
  color: var(--ink);
}

.nav-overlay__link.is-active {
  color: var(--ink);
}

.nav-overlay__bottom {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-top: auto;
}

.nav-overlay__social {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
}
.nav-overlay__social a {
  position: relative;
}
.nav-overlay__social a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-overlay__social a:hover::after {
  transform: scaleX(1);
}

.nav-overlay__tagline {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-overlay__tagline span:last-child {
  letter-spacing: 0.08em;
  text-transform: none;
  font-size: 0.82rem;
  color: rgba(110, 104, 96, 0.85);
}

/* Main offset for fixed header */
#main-content {
  padding-top: 72px;
}
@media (min-width: 768px) {
  #main-content {
    padding-top: 80px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.35s, border-color 0.35s,
    color 0.35s, box-shadow 0.35s;
}
.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--ink);
  color: var(--milk);
  border-color: var(--ink);
  box-shadow: 0 12px 32px rgba(28, 27, 25, 0.12);
}
.btn--primary:hover {
  background: #2e2d2a;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(28, 27, 25, 0.2);
}
.btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin-top: 1.5rem;
}

/* Hero home */
.hero-home {
  padding-top: clamp(1rem, 3vw, 2rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.hero-home__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
@media (min-width: 960px) {
  .hero-home__grid {
    grid-template-columns: 1fr 1.02fr;
    gap: 3rem;
  }
}

.hero-home__visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ivory);
  box-shadow: 0 30px 80px rgba(28, 27, 25, 0.07);
}

.hero-home__visual img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
  transform: translate3d(0, 0, 0);
  transition: transform 0.8s var(--ease);
}

.hero-home__visual.is-inview img {
  transform: translate3d(0, 0, 0) scale(1.02);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.85s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero-lead .reveal-child {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFade 0.9s var(--ease) forwards;
}
.hero-lead .reveal-child:nth-child(1) {
  animation-delay: 0.08s;
}
.hero-lead .reveal-child:nth-child(2) {
  animation-delay: 0.18s;
}
.hero-lead .reveal-child:nth-child(3) {
  animation-delay: 0.28s;
}
.hero-lead .reveal-child:nth-child(4) {
  animation-delay: 0.38s;
}

@keyframes heroFade {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Cards services preview */
.cards-row {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
@media (min-width: 768px) {
  .cards-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .cards-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card-min {
  background: var(--milk);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 100%;
  transition: background 0.35s;
}
.card-min:hover {
  background: #fffefb;
}

.card-min__num {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  color: var(--sand);
}
.card-min__title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  color: var(--ink);
  margin: 0;
}
.card-min__desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  flex: 1;
}
.card-min__arrow {
  font-size: 1.2rem;
  color: var(--gold);
  margin-top: 0.75rem;
  transition: transform 0.35s var(--ease);
}
.card-min:hover .card-min__arrow {
  transform: translateX(6px);
}

/* Project cards */
.projects-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.25rem);
}
@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fffefb;
  transition: box-shadow 0.45s var(--ease), transform 0.45s var(--ease);
}
.project-card:hover {
  box-shadow: 0 24px 56px rgba(28, 27, 25, 0.09);
  transform: translateY(-4px);
}

.project-card__media {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--warm);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.project-card__media img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.65s var(--ease);
}
.project-card:hover .project-card__media img {
  transform: scale(1.045);
}

.project-card__body {
  padding: 1.35rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.project-card__type {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.project-card__meta {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
}

.project-card .btn {
  align-self: flex-start;
  margin-top: auto;
  padding-left: 0;
  padding-right: 0;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid rgba(28, 27, 25, 0.2);
  box-shadow: none;
  font-size: 0.82rem;
}
.project-card .btn:hover {
  border-bottom-color: var(--ink);
  background: transparent;
}

/* Page hero inner */
.page-hero {
  padding-bottom: clamp(2rem, 5vw, 3rem);
  border-bottom: 1px solid var(--line);
}

/* Services catalog */
.service-block {
  padding: clamp(2.25rem, 5vw, 3.5rem) 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
}
@media (min-width: 880px) {
  .service-block {
    grid-template-columns: minmax(0, 140px) 1fr;
    align-items: start;
    gap: 3rem;
  }
}

.service-block__num {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 8vw, 4.5rem);
  line-height: 1;
  color: rgba(184, 150, 110, 0.45);
  letter-spacing: -0.03em;
}

.service-block h2 {
  margin-bottom: 0.5rem;
}

.service-block .who {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

/* Timeline */
.timeline {
  display: grid;
  gap: 0;
}
.timeline-step {
  display: grid;
  gap: 0.75rem;
  padding: clamp(1.75rem, 4vw, 2.5rem) 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 768px) {
  .timeline-step {
    grid-template-columns: 120px 1fr;
    align-items: baseline;
    gap: 2rem;
  }
}
.timeline-step__num {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--gold);
  opacity: 0.85;
}

/* Pricing */
.pricing-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.price-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.5rem, 4vw, 2rem);
  background: rgba(255, 255, 255, 0.55);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.35s, box-shadow 0.35s;
}
.price-card:hover {
  border-color: rgba(184, 150, 110, 0.45);
  box-shadow: 0 20px 48px rgba(28, 27, 25, 0.06);
}

.price-card__price {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  color: var(--ink);
}

.price-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Principles */
.principles {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .principles {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}
.principle {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  background: rgba(255, 255, 255, 0.5);
}
.principle strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: var(--ink);
  font-weight: 500;
  font-size: 1.05rem;
}
.faq-btn .faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.35s var(--ease), background 0.35s;
}
.faq-item.is-open .faq-btn .faq-icon {
  transform: rotate(45deg);
  background: rgba(28, 27, 25, 0.06);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}
.faq-panel-inner {
  overflow: hidden;
}
.faq-panel p {
  padding-bottom: 1.25rem;
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
}
.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

/* Blog */
.blog-list {
  display: grid;
  gap: 1.5rem;
}
.blog-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.55);
  transition: box-shadow 0.35s;
}
.blog-card:hover {
  box-shadow: 0 16px 40px rgba(28, 27, 25, 0.06);
}

.article-body {
  font-size: 1.05rem;
}
.article-body h2,
.article-body h3 {
  margin-top: 1.5rem;
}
.article-body p {
  max-width: 68ch;
}

/* Contact form */
.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 520px;
}
.contact-form label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  background: rgba(255, 255, 255, 0.75);
}
.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.alert-success {
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(184, 150, 110, 0.15);
  border: 1px solid rgba(184, 150, 110, 0.35);
  color: var(--graphite);
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 7vw, 4.5rem) 0 2rem;
  background: linear-gradient(180deg, var(--ivory) 0%, var(--milk) 100%);
}

.site-footer__inner {
  width: min(1120px, 92%);
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .site-footer__inner {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
  }
}

.site-footer__text {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 36ch;
  margin-top: 0.75rem;
}

.site-footer__label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.94rem;
}
.site-footer__col a:hover {
  color: var(--ink);
}

.site-footer__copy {
  width: min(1120px, 92%);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

/* Split about */
.about-split {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: center;
}
@media (min-width: 900px) {
  .about-split {
    grid-template-columns: 1fr 1fr;
  }
}

.about-split img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  display: block;
}

/* Project detail */
.project-detail-hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  border: 1px solid var(--line);
  aspect-ratio: 21 / 9;
  min-height: 220px;
}
.project-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}
.detail-list li + li {
  margin-top: 0.35rem;
}

.page-fade {
  opacity: 0;
  animation: pageIn 0.65s var(--ease) 0.12s forwards;
}
@keyframes pageIn {
  to {
    opacity: 1;
  }
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}

/* —— Кейси / проєкти (premium) —— */
.page-hero--spacious {
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: clamp(0.5rem, 2vw, 1rem);
}
.page-hero__sub {
  max-width: 38ch;
  font-size: 1.08rem;
}

.reveal.case-card,
.reveal.case-card--home,
.case-done-card.reveal,
.case-visual-item.reveal {
  transition-delay: calc(0.065s * var(--stagger, 0));
}

.projects-cases-grid {
  display: grid;
  gap: clamp(2.25rem, 5vw, 3.25rem);
  width: 100%;
}
.projects-cases-grid > .case-card {
  min-width: 0;
}
@media (min-width: 960px) {
  .projects-cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 4vw, 2.75rem) clamp(1.75rem, 3vw, 2.25rem);
  }
}

.home-cases-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 2.75rem);
  width: 100%;
}
.home-cases-grid > .case-card {
  min-width: 0;
}
@media (min-width: 1024px) {
  .home-cases-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}

.featured-head {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
.featured-head .label-caps {
  margin-bottom: 0.65rem;
}
.featured-head h2 {
  margin-bottom: 0.75rem;
}
.featured-head__sub {
  max-width: 48ch;
  margin: 0;
  font-size: 1.05rem;
}
.featured-all {
  text-align: center;
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
}

.case-card {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background:
    radial-gradient(ellipse 120% 85% at 50% 0%, rgba(255, 252, 248, 0.95) 0%, transparent 58%),
    linear-gradient(185deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 244, 238, 0.98) 48%, rgba(241, 236, 228, 0.99) 100%);
  border: 1px solid rgba(184, 150, 110, 0.18);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 22px 56px rgba(28, 27, 25, 0.06),
    0 8px 24px rgba(28, 27, 25, 0.04);
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease), border-color 0.45s var(--ease);
  overflow: visible;
  isolation: isolate;
  min-width: 0;
}
.case-card:hover {
  transform: translateY(-5px);
  border-color: rgba(184, 150, 110, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 32px 72px rgba(28, 27, 25, 0.085),
    0 12px 36px rgba(28, 27, 25, 0.05),
    0 0 48px rgba(184, 150, 110, 0.08);
}

.case-card__link {
  display: block;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.case-card__link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 24px 24px 0 0;
}

.case-card__media {
  position: relative;
  overflow: visible;
  flex-shrink: 0;
  border-radius: 24px 24px 0 0;
  background-color: #f6f1e8;
  background-image: radial-gradient(ellipse 92% 78% at 50% 38%, #faf6ef 0%, #f4efe6 42%, #ebe4da 100%);
  padding: clamp(20px, 4.5vw, 32px);
  min-width: 0;
  max-width: 100%;
}
.case-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 253, 250, 0) 50%, rgba(28, 27, 25, 0.045) 100%);
  opacity: 0;
  transition: opacity 0.55s var(--ease);
  pointer-events: none;
  z-index: 1;
}
.case-card:hover .case-card__media::after {
  opacity: 1;
}
.case-card__media img {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  object-fit: contain;
  object-position: center center;
  vertical-align: middle;
  position: relative;
  z-index: 0;
  transition: transform 0.75s var(--ease);
}
.case-card:hover .case-card__media img {
  transform: scale(1.017);
}

.case-card__body {
  padding: clamp(1.35rem, 3.5vw, 1.85rem);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
  border-radius: 0 0 24px 24px;
  background: linear-gradient(180deg, rgba(255, 254, 252, 0.98) 0%, rgba(250, 248, 245, 0.99) 100%);
}

.case-card__type {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.case-card__title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.45rem, 3.5vw, 1.85rem);
  font-weight: 500;
  margin: 0;
  line-height: 1.15;
  color: var(--ink);
}
.case-card__title a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size 0.45s var(--ease);
}
.case-card:hover .case-card__title a {
  background-size: 100% 1px;
}

.case-card__desc {
  margin: 0;
  font-size: clamp(0.96rem, 2.8vw, 1.02rem);
  color: var(--muted);
  line-height: 1.62;
  flex: 1;
}

.case-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0.35rem;
}
.case-card__tag {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(184, 150, 110, 0.35);
  color: var(--graphite);
  background: rgba(255, 255, 255, 0.45);
}

.case-card__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}
@media (min-width: 480px) {
  .case-card__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }
}
.case-card__actions--compact {
  flex-direction: column;
  align-items: flex-start;
}
@media (min-width: 480px) {
  .case-card__actions--compact {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 12px 20px;
  }
}

.case-card__btn {
  flex-shrink: 0;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.35s, border-color 0.35s;
}
.case-card .case-card__btn:hover,
.case-card .btn--primary.case-card__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(28, 27, 25, 0.12);
}

.link-cta-line {
  position: relative;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--graphite);
  padding-bottom: 2px;
  align-self: flex-start;
}
.link-cta-line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.35);
  transform-origin: left;
  opacity: 0.65;
  transition: transform 0.45s var(--ease), opacity 0.35s;
}
.case-card:hover .link-cta-line::after,
.link-cta-line:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

.section--featured {
  background: linear-gradient(180deg, transparent 0%, rgba(235, 228, 217, 0.35) 45%, transparent 100%);
}

.section--projects {
  padding-bottom: clamp(4rem, 10vw, 6rem);
}

/* Case study — hero як презентація (grid + mockup у панелі, без full-bleed банера) */
.case-study .case-hero--showcase {
  position: relative;
  overflow: hidden;
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
  padding-top: clamp(0.35rem, 1.5vw, 1rem);
  padding-bottom: clamp(2.25rem, 5.5vw, 4rem);
  background: linear-gradient(168deg, #fdfcfa 0%, var(--milk) 48%, #f1ece4 100%);
  border-bottom: 1px solid var(--line);
}
.case-study .case-hero--showcase::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 85%;
  background:
    radial-gradient(ellipse 55% 55% at 12% 25%, rgba(184, 150, 110, 0.14) 0%, transparent 58%),
    radial-gradient(ellipse 50% 48% at 88% 65%, rgba(235, 228, 217, 0.55) 0%, transparent 62%);
  pointer-events: none;
  z-index: 0;
}
.case-study .case-hero--showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 253, 250, 0.35) 48%, transparent 68%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}
.case-study .case-hero--showcase .wrap {
  position: relative;
  z-index: 1;
}

.case-hero-showcase__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.25rem);
  align-items: center;
}

@media (min-width: 960px) {
  .case-hero-showcase__grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 1.14fr);
    gap: clamp(2rem, 4.5vw, 3.75rem);
  }
}

.case-hero-showcase__copy {
  max-width: 34rem;
}

.case-hero-showcase__copy .label-caps {
  margin-top: 0.15rem;
  margin-bottom: 0.65rem;
}

.case-hero-fade {
  opacity: 0;
  animation: caseHeroFadeUp 0.9s var(--ease) forwards;
  animation-delay: calc(0.065s * var(--hf, 0));
}

@keyframes caseHeroFadeUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.case-hero-showcase__visual {
  position: relative;
  min-width: 0;
}

@media (min-width: 960px) {
  [data-showcase-tilt] {
    perspective: 1180px;
  }
  [data-showcase-tilt] .case-showcase {
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    transform-style: preserve-3d;
    will-change: transform;
  }
}

.case-hero .case-showcase.case-showcase--spectacle.reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0) scale(0.985);
  transition:
    opacity 1s var(--ease) 0.12s,
    transform 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}

.case-hero .case-showcase.case-showcase--spectacle.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@media (max-width: 959.98px) {
  .case-hero-showcase__grid {
    display: flex;
    flex-direction: column;
  }
  .case-hero-showcase__copy {
    max-width: none;
  }
}

.case-showcase {
  position: relative;
  padding: 0;
}

/* Legacy hero panel (не використовується на сторінці кейсу після spectacle) */
.case-showcase__ambient {
  position: absolute;
  border-radius: 50%;
  filter: blur(52px);
  pointer-events: none;
  z-index: 0;
}

.case-showcase__ambient:first-of-type {
  width: min(88%, 400px);
  height: min(48vw, 300px);
  top: -10%;
  right: -6%;
  background: radial-gradient(ellipse at center, rgba(184, 150, 110, 0.38) 0%, transparent 72%);
  opacity: 0.5;
  animation: caseAmbientDrift 22s ease-in-out infinite alternate;
}

.case-showcase__ambient--2 {
  width: min(75%, 340px);
  height: min(40vw, 240px);
  bottom: -8%;
  left: -10%;
  background: radial-gradient(ellipse at center, rgba(235, 228, 217, 0.95) 0%, transparent 75%);
  filter: blur(40px);
  opacity: 0.5;
  animation: caseAmbientDrift2 26s ease-in-out infinite alternate;
}

@keyframes caseAmbientDrift {
  from {
    transform: translate(0, 0) scale(1);
    opacity: 0.42;
  }
  to {
    transform: translate(-12px, 10px) scale(1.06);
    opacity: 0.52;
  }
}

@keyframes caseAmbientDrift2 {
  from {
    transform: translate(0, 0);
    opacity: 0.45;
  }
  to {
    transform: translate(14px, -8px);
    opacity: 0.52;
  }
}

.case-showcase__panel {
  position: relative;
  z-index: 1;
  border-radius: clamp(18px, 2.6vw, 26px);
  padding: clamp(14px, 2.4vw, 24px);
  background: linear-gradient(152deg, rgba(255, 255, 255, 0.97) 0%, rgba(252, 248, 242, 0.94) 100%);
  border: 1px solid rgba(184, 150, 110, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 36px 88px rgba(28, 27, 25, 0.09),
    0 14px 36px rgba(28, 27, 25, 0.055),
    0 0 72px rgba(184, 150, 110, 0.11);
}

@media (max-width: 959.98px) {
  .case-showcase__panel {
    animation: caseShowcaseFloat 11s ease-in-out infinite alternate;
  }
}

@keyframes caseShowcaseFloat {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-5px);
  }
}

.case-showcase__panel-inner {
  position: relative;
  border-radius: clamp(14px, 2vw, 20px);
  overflow: visible;
  background-color: #f6f1e8;
  background-image: radial-gradient(ellipse 95% 80% at 50% 36%, #faf6ef 0%, #f1ebe3 50%, #e6dfd6 100%);
}

.case-showcase__shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    118deg,
    rgba(255, 255, 255, 0.42) 0%,
    transparent 38%,
    transparent 62%,
    rgba(255, 255, 255, 0.06) 100%
  );
}

/* —— Premium spectacle hero (layered, без «білої коробки») —— */
.case-showcase--spectacle {
  padding: clamp(8px, 2vw, 14px);
}

.case-showcase__halo {
  position: absolute;
  inset: -12% -8% -10% -8%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse 72% 58% at 52% 48%,
    rgba(184, 150, 110, 0.18) 0%,
    rgba(235, 228, 217, 0.35) 42%,
    transparent 72%
  );
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

.case-showcase__grain {
  position: absolute;
  inset: 0;
  border-radius: clamp(16px, 2.5vw, 24px);
  pointer-events: none;
  z-index: 3;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.case-showcase--spectacle .case-showcase__ambient:first-of-type {
  opacity: 0.38;
}

.case-showcase--spectacle .case-showcase__ambient--2 {
  opacity: 0.42;
}

.case-showcase__badges {
  position: absolute;
  top: clamp(-6px, 1vw, 6px);
  left: clamp(-4px, 1vw, 8px);
  right: clamp(8px, 3vw, 24px);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  justify-content: flex-end;
  z-index: 4;
  pointer-events: none;
}

.case-pill--float {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.82);
  border: 1px solid rgba(184, 150, 110, 0.28);
  color: var(--graphite);
  box-shadow: 0 8px 22px rgba(28, 27, 25, 0.06);
  backdrop-filter: blur(8px);
  opacity: 0;
  animation: caseBadgeIn 0.85s var(--ease) forwards;
  animation-delay: calc(0.11s * (var(--bdg, 1) - 1) + 0.55s);
}

@keyframes caseBadgeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 599.98px) {
  .case-showcase__badges .case-pill--float:nth-child(n + 3) {
    display: none;
  }
  .case-showcase__badges {
    justify-content: flex-start;
    top: auto;
    bottom: clamp(4px, 2vw, 12px);
    left: 8px;
    right: 8px;
  }
}

.case-showcase__stage {
  position: relative;
  z-index: 2;
  border-radius: clamp(16px, 2.4vw, 22px);
  padding: clamp(10px, 2vw, 18px);
  background: linear-gradient(
    165deg,
    rgba(252, 249, 244, 0.55) 0%,
    rgba(248, 243, 236, 0.35) 100%
  );
  border: 1px solid rgba(184, 150, 110, 0.22);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 28px 60px rgba(28, 27, 25, 0.07),
    0 10px 28px rgba(28, 27, 25, 0.04);
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
}

[data-showcase-tilt]:hover .case-showcase__stage {
  transform: translateY(-5px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 36px 76px rgba(28, 27, 25, 0.09),
    0 14px 36px rgba(28, 27, 25, 0.055),
    0 0 56px rgba(184, 150, 110, 0.12);
}

.case-showcase__viewport--spectacle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(4px, 1.2vw, 12px);
  min-height: 0;
}

.case-showcase--spectacle .case-showcase__mockup {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
  vertical-align: middle;
  max-height: min(82vh, 760px);
  filter: drop-shadow(0 26px 56px rgba(28, 27, 25, 0.14)) drop-shadow(0 8px 24px rgba(184, 150, 110, 0.09));
  transition: filter 0.55s var(--ease), transform 0.55s var(--ease);
}

[data-showcase-tilt]:hover .case-showcase--spectacle .case-showcase__mockup {
  filter: drop-shadow(0 34px 72px rgba(28, 27, 25, 0.13)) drop-shadow(0 10px 32px rgba(184, 150, 110, 0.11));
}

.case-showcase--spectacle.reveal.is-visible .case-showcase__mockup {
  filter: drop-shadow(0 30px 64px rgba(28, 27, 25, 0.14)) drop-shadow(0 8px 28px rgba(184, 150, 110, 0.1));
}

@media (max-width: 959.98px) {
  .case-showcase--spectacle .case-showcase__mockup {
    max-height: min(68vh, 620px);
  }
}

.case-showcase__viewport {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3.5vw, 32px) clamp(14px, 3vw, 28px);
  min-height: 0;
}

.case-showcase__mockup {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
  vertical-align: middle;
  max-height: min(78vh, 720px);
  filter: drop-shadow(0 24px 52px rgba(28, 27, 25, 0.13)) drop-shadow(0 6px 20px rgba(184, 150, 110, 0.08));
  transition: filter 0.6s var(--ease);
}

.case-showcase.reveal.is-visible .case-showcase__mockup {
  filter: drop-shadow(0 30px 64px rgba(28, 27, 25, 0.15)) drop-shadow(0 8px 28px rgba(184, 150, 110, 0.1));
}

@media (max-width: 959.98px) {
  .case-showcase__mockup {
    max-height: min(64vh, 580px);
  }
}


@media (prefers-reduced-motion: reduce) {
  .case-hero-fade {
    animation: none !important;
    opacity: 1 !important;
  }
  .case-showcase__panel {
    animation: none !important;
  }
  .case-showcase__ambient:first-of-type,
  .case-showcase__ambient--2 {
    animation: none !important;
  }
  .case-hero .case-showcase.case-showcase--spectacle.reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .case-pill--float {
    animation: none !important;
    opacity: 1 !important;
  }
}

.case-breadcrumb {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.case-breadcrumb a {
  color: var(--graphite);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease), color 0.35s;
}
.case-breadcrumb a:hover {
  border-bottom-color: rgba(184, 150, 110, 0.55);
  color: var(--ink);
}
.case-breadcrumb__sep {
  opacity: 0.45;
}

.case-hero__type {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.5rem;
}

.case-hero__title {
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  margin-bottom: 1rem;
}

.case-hero__lead {
  font-size: clamp(1.05rem, 2.8vw, 1.14rem);
  max-width: 52ch;
  line-height: 1.65;
}

.case-hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(14px, 3vw, 22px);
  margin-top: clamp(1.35rem, 3vw, 1.85rem);
}

.case-hero__secondary {
  font-size: 0.88rem;
}

.case-hero__cta .btn--primary {
  box-shadow: 0 14px 36px rgba(28, 27, 25, 0.14);
}
.case-hero__cta .btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(28, 27, 25, 0.18);
}
.case-hero__cta .btn--primary:active {
  transform: translateY(0);
}

.case-block__subhead {
  font-size: 0.92rem;
  color: var(--muted);
  margin: -0.35rem 0 1.15rem;
  max-width: 48ch;
  line-height: 1.55;
}
.case-block__subhead--tight {
  margin-top: 0.35rem;
}

.case-block.case-block--visual {
  max-width: min(960px, 100%);
  padding-top: clamp(2rem, 5vw, 2.75rem);
}
.case-visual-head {
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
}

.case-gallery {
  display: grid;
  gap: clamp(1.25rem, 3vw, 1.75rem);
}
@media (min-width: 700px) {
  .case-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.case-gallery__fig {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ivory);
  box-shadow: 0 18px 48px rgba(28, 27, 25, 0.07);
}
.case-gallery__fig img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.case-editorial {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
}
@media (min-width: 780px) {
  .case-editorial {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
    gap: clamp(1.5rem, 4vw, 2.25rem);
  }
}

.case-editorial__inner {
  border-radius: 18px;
  overflow: visible;
  border: 1px solid var(--line);
  background-color: #f6f1e8;
  background-image: radial-gradient(ellipse 90% 75% at 50% 40%, #faf6ef 0%, #efeae2 100%);
  box-shadow: 0 22px 56px rgba(28, 27, 25, 0.08);
  padding: clamp(16px, 3vw, 24px);
}
.case-editorial__inner--tall {
  min-height: 0;
}

.case-editorial__img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
  display: block;
  vertical-align: middle;
  background: transparent;
}
.case-editorial__img--a {
  max-height: none;
}
.case-editorial__img--b {
  max-height: none;
}

.case-editorial__cap {
  margin-top: 1rem;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  line-height: 1.55;
  max-width: 52ch;
}

.case-trust-line {
  margin: 1.25rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(28, 27, 25, 0.07);
  font-size: 0.98rem;
  color: var(--muted);
  font-style: italic;
  max-width: 52ch;
}

.case-final__lead {
  margin: 0 auto 1.75rem;
  max-width: 42ch;
  font-size: 1rem;
}

.case-final__all {
  border-radius: 999px !important;
  padding: 14px 22px !important;
}

.case-flow {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5.5vw, 3.75rem);
  padding-bottom: clamp(3.25rem, 8vw, 5.25rem);
}

.case-block {
  padding-top: clamp(2rem, 4.5vw, 2.6rem);
  border-top: 1px solid rgba(28, 27, 25, 0.08);
  max-width: min(720px, 100%);
}

.case-block:first-of-type {
  border-top: none;
  padding-top: 0;
}

.case-block__head {
  display: flex;
  align-items: flex-start;
  gap: clamp(1rem, 3vw, 1.35rem);
  margin-bottom: clamp(1.15rem, 3vw, 1.5rem);
}

.case-block__step {
  flex-shrink: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.25rem, 5vw, 3rem);
  line-height: 1;
  color: rgba(184, 150, 110, 0.45);
  letter-spacing: -0.03em;
  margin-top: 0.15rem;
}

.case-block__head-text {
  flex: 1;
  min-width: 0;
}

.case-block__head-text .case-block__heading {
  margin-bottom: 0.35rem;
}

.case-block__subhead--flush {
  margin: 0.35rem 0 0;
}

.case-block__prose--task {
  font-size: 1.05rem;
}

.case-block--done .case-done-grid,
.case-block--features .case-features--premium {
  margin-top: 0.25rem;
}

.case-done-grid {
  display: grid;
  gap: clamp(0.85rem, 2vw, 1.15rem);
}

@media (min-width: 620px) {
  .case-done-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.case-done-card {
  padding: clamp(1.1rem, 2.5vw, 1.35rem);
  border-radius: 16px;
  border: 1px solid rgba(184, 150, 110, 0.18);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.88) 0%, rgba(249, 246, 241, 0.95) 100%);
  box-shadow: 0 12px 36px rgba(28, 27, 25, 0.045);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.case-done-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 42px rgba(28, 27, 25, 0.06);
}

.case-done-card__tag {
  display: inline-block;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.55rem;
}

.case-done-card__text {
  margin: 0;
  font-size: 0.96rem;
  color: var(--muted);
  line-height: 1.62;
}

.case-features--premium {
  gap: clamp(1rem, 2.5vw, 1.25rem);
}

.case-features--premium li {
  padding: clamp(1rem, 2.2vw, 1.2rem);
  border-radius: 14px;
  border: 1px solid rgba(28, 27, 25, 0.06);
  background: rgba(255, 253, 250, 0.65);
}

.case-flow .case-block.case-block--visual {
  max-width: min(1040px, 100%);
}

.case-visual-showcase {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 2.25rem);
  margin-top: clamp(0.25rem, 1vw, 0.5rem);
  width: 100%;
  overflow-x: hidden;
}

.case-visual-item {
  margin: 0;
}

.case-visual-frame {
  border-radius: 18px;
  padding: clamp(14px, 3vw, 22px);
  background-color: #f6f1e8;
  background-image: radial-gradient(ellipse 92% 78% at 50% 40%, #faf6ef 0%, #eee8df 100%);
  border: 1px solid rgba(184, 150, 110, 0.15);
  box-shadow: 0 18px 48px rgba(28, 27, 25, 0.065);
}

.case-visual-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  vertical-align: middle;
}

.case-visual-frame--crop {
  overflow: hidden;
  padding: 0;
}

.case-visual-crop {
  position: relative;
}

.case-visual-crop--mobile {
  aspect-ratio: 3 / 4;
  max-height: 380px;
}

.case-visual-crop--mobile .case-visual-img--crop {
  width: 195%;
  max-width: none;
  height: auto;
  margin-left: -52%;
  object-fit: contain;
  object-position: 92% 52%;
}

.case-visual-crop--details {
  aspect-ratio: 4 / 3;
  max-height: 340px;
}

.case-visual-crop--details .case-visual-img--crop {
  width: 155%;
  max-width: none;
  height: auto;
  margin-left: -8%;
  object-fit: contain;
  object-position: 22% 48%;
}

.case-visual-crop--cta {
  aspect-ratio: 21 / 9;
  max-height: 260px;
}

.case-visual-crop--cta .case-visual-img--crop {
  width: 132%;
  max-width: none;
  height: auto;
  margin-left: -10%;
  object-fit: contain;
  object-position: 48% 32%;
}

.case-visual-cap {
  margin: 0.85rem 0 0;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.case-visual-split {
  display: grid;
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

@media (min-width: 720px) {
  .case-visual-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

/* Astra Portrait — окремі PNG без crop, editorial окремо */
.case-visual-showcase--astra .case-visual-frame--contain {
  overflow: visible;
  padding: clamp(18px, 3.5vw, 30px);
  border-radius: 20px;
  background-color: #f8f4ed;
  background-image: radial-gradient(ellipse 95% 88% at 50% 42%, #fcf9f5 0%, #ece6dd 55%, #e3dcd4 100%);
  border: 1px solid rgba(184, 150, 110, 0.16);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 22px 52px rgba(28, 27, 25, 0.065);
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
}

.case-visual-showcase--astra .case-visual-item:hover .case-visual-frame--contain {
  transform: translateY(-4px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 30px 68px rgba(28, 27, 25, 0.075);
}

.case-visual-img--astra {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center center;
  vertical-align: middle;
  max-height: min(68vh, 620px);
}

.case-visual-item--editorial .case-visual-img--astra {
  max-height: min(76vh, 700px);
}

.case-visual-frame--editorial {
  background-image: radial-gradient(ellipse 100% 90% at 48% 38%, #faf7f2 0%, #efe9e1 52%, #e5dfd7 100%);
}

.case-study-article--astra .case-showcase__stage {
  background: linear-gradient(165deg, rgba(252, 249, 244, 0.42) 0%, rgba(245, 240, 232, 0.28) 100%);
  border-color: rgba(184, 150, 110, 0.16);
}

@media (max-width: 719.98px) {
  .case-visual-img--astra {
    max-height: min(56vh, 520px);
  }
  .case-visual-item--editorial .case-visual-img--astra {
    max-height: min(62vh, 560px);
  }
}

.case-result-card {
  margin-top: 0.5rem;
  padding: clamp(1.75rem, 4vw, 2.25rem);
  border-radius: 20px;
  border: 1px solid rgba(184, 150, 110, 0.22);
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.92) 0%, rgba(243, 237, 229, 0.65) 100%);
  box-shadow: 0 24px 56px rgba(28, 27, 25, 0.06);
}

.case-result-card__lead {
  margin: 0 0 1rem;
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 62ch;
}

.case-result-card__accent {
  margin: 0 0 1rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.35rem, 3.5vw, 1.65rem);
  color: var(--ink);
  line-height: 1.35;
}

.case-result-card__trust {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(28, 27, 25, 0.08);
  font-size: 0.94rem;
  color: var(--muted);
  font-style: italic;
  max-width: 52ch;
}

.case-block__heading {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.72rem, 4vw, 2.2rem);
  margin: 0 0 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.case-block__prose {
  max-width: 62ch;
}
.case-block__prose--large {
  font-size: 1.12rem;
  margin-bottom: 1rem;
}

.case-block--highlight {
  padding: clamp(1.75rem, 4vw, 2.25rem);
  border-radius: 18px;
  border: 1px solid rgba(184, 150, 110, 0.28);
  background: rgba(255, 255, 255, 0.5);
  max-width: 720px;
}

.case-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}
.case-list li + li {
  margin-top: 0.5rem;
}

.case-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.case-features li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  font-size: 1.02rem;
  color: var(--muted);
  line-height: 1.55;
}
.case-features__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.65;
  margin-top: 0.55rem;
}

.case-final {
  margin-top: clamp(1rem, 3vw, 2rem);
}
.case-final__inner {
  border-radius: 24px;
  border: 1px solid rgba(184, 150, 110, 0.14);
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
  background: linear-gradient(165deg, #fffefb 0%, #f3efe8 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 28px 72px rgba(28, 27, 25, 0.07);
}

.case-final .btn--primary {
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.case-final .btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(28, 27, 25, 0.14);
}
.case-final__title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.75rem, 4.5vw, 2.35rem);
  margin: 0 0 1.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.case-final__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
}

.link-cta {
  text-decoration: underline;
  text-underline-offset: 4px;
}
