.problem-grid,
.product-grid,
.scenario-cards {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.problem-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.problem-grid div,
.scenario-cards div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.problem-grid strong {
  display: block;
  margin-bottom: 7px;
  color: var(--orange);
  font-size: 20px;
}

.problem-grid span,
.scenario-cards span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
  position: relative;
  display: flex;
  min-height: 260px;
  flex-direction: column;
  overflow: hidden;
  padding: 24px 24px 22px;
  border: 1px solid #d4e1ea;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(23, 105, 194, .08), rgba(255, 255, 255, 0) 42%),
    #fff;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  opacity: .85;
}

.product-card::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: 25px;
  width: 16px;
  height: 16px;
  background: currentColor;
  color: #1769c2;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(23, 105, 194, .58);
  box-shadow: 0 22px 48px rgba(17, 34, 51, .14);
}

.product-card:hover::after {
  transform: translateX(4px);
}

.product-card .product-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.product-card b {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eef6ff;
  color: var(--blue);
  font-size: 14px;
  box-shadow: inset 0 0 0 1px rgba(23, 105, 194, .12);
}

.product-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #11384f;
  color: #fff;
}

.product-icon::before {
  content: "";
  width: 24px;
  height: 24px;
  background: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}

.product-icon-vision::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12zM12 9a3 3 0 1 1 0 6 3 3 0 0 1 0-6z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12zM12 9a3 3 0 1 1 0 6 3 3 0 0 1 0-6z'/%3E%3C/svg%3E");
}

.product-icon-device::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M7 3h10a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zM9 7h6M9 11h6M9 15h3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M7 3h10a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zM9 7h6M9 11h6M9 15h3'/%3E%3C/svg%3E");
}

.product-icon-system::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M4 6h16M4 12h16M4 18h16M8 6v12M16 6v12'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M4 6h16M4 12h16M4 18h16M8 6v12M16 6v12'/%3E%3C/svg%3E");
}

.product-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 23px;
  line-height: 1.25;
}

.product-card > span:not(.product-card-top) {
  display: block;
  color: #334155;
}

.product-card em {
  margin-top: auto;
  padding: 12px 40px 0 0;
  color: var(--blue);
  font-style: normal;
  font-weight: 800;
}

.benefit-list,
.question-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.benefit-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.benefit-list span,
.question-list span {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: #24364d;
  font-weight: 700;
}

.mini-cta {
  margin-top: 20px;
  padding: 16px 18px;
  border-left: 4px solid var(--gold);
  background: #fff8d6;
  color: #40350c;
}

.scenario-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.scenario-cards strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 20px;
}

.contact-box {
  display: grid;
  gap: 10px;
  padding: 24px;
  border: 1px solid #dbe8e6;
  border-radius: 8px;
  background: #f5fbfa;
}

.contact-box strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 21px;
}

.contact-box span {
  padding: 10px 12px;
  border-radius: 6px;
  background: #fff;
  color: #334155;
}

.contact-box a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  border-radius: 5px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.contact-box a + a {
  background: #527c6f;
}

.section-actions {
  margin-top: 24px;
}

.proof-card {
  position: relative;
  display: flex;
  min-height: 230px;
  flex-direction: column;
  overflow: hidden;
  padding: 24px;
  border: 1px solid #d6e2e8;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(82, 124, 111, .1), rgba(255, 255, 255, 0) 48%),
    #fff;
  box-shadow: 0 10px 28px rgba(17, 34, 51, .06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.proof-card::before {
  content: "";
  position: absolute;
  top: 22px;
  right: 22px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #11384f var(--proof-icon) center / 25px 25px no-repeat;
}

.proof-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.proof-card:hover {
  transform: translateY(-6px);
  border-color: rgba(82, 124, 111, .58);
  box-shadow: 0 22px 48px rgba(17, 34, 51, .14);
}

.proof-card-food {
  --proof-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M4 7h16v10H4zM7 7V5h10v2M8 11h8M8 15h5'/%3E%3C/svg%3E");
}

.proof-card-logistics {
  --proof-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M3 7h18M5 7v12h14V7M8 11h3M13 11h3M8 15h8'/%3E%3C/svg%3E");
}

.proof-card-system {
  --proof-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M4 6h16M4 12h16M4 18h16M8 6v12M16 6v12'/%3E%3C/svg%3E");
}

.proof-card span {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  margin-bottom: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef6f4;
  color: #315f52;
  font-size: 13px;
  font-weight: 800;
}

.proof-grid .proof-card strong {
  max-width: calc(100% - 66px);
  font-size: 23px;
}

.proof-grid .proof-card p {
  color: #334155;
}

.proof-card em {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: auto;
  padding-top: 18px;
  color: var(--blue);
  font-style: normal;
  font-weight: 800;
}

.proof-card em::after {
  content: "";
  width: 14px;
  height: 14px;
  margin-left: 6px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M9 18l6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M9 18l6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.case-card[id] {
  scroll-margin-top: 96px;
}

.image-case-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background: #0f2b40;
}

.image-case-link .section-image {
  display: block;
  border-radius: 8px;
  transition: transform .25s ease, filter .25s ease;
}

.image-case-link span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  background: linear-gradient(180deg, rgba(7, 21, 35, 0), rgba(7, 21, 35, .88) 28%, rgba(7, 21, 35, .96));
  color: #f0d373;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: 0;
}

.image-case-link:hover .section-image {
  transform: scale(1.025);
  filter: saturate(1.06) contrast(1.03);
}

.image-case-link:hover span {
  color: #fff3a8;
}

.case-card-wide {
  grid-column: 1 / -1;
}

.case-card-wide > img {
  max-height: 420px;
}

.case-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.case-detail-grid section {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.case-detail-grid h4 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 17px;
}

.case-detail-grid ul {
  margin: 0;
  padding-left: 18px;
  color: #334155;
}

.case-detail-grid li + li {
  margin-top: 6px;
}

.case-detail-grid p {
  margin: 0;
}

.case-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.case-gallery figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.case-gallery img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: #eef2f4;
}

.case-gallery figcaption {
  padding: 9px 10px;
  color: #526071;
  font-size: 13px;
  font-weight: 700;
}

.case-gallery-wide {
  grid-template-columns: 1fr;
}

.case-gallery-wide img {
  height: auto;
  max-height: 520px;
  object-fit: contain;
}

.case-gallery-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-gallery-two img {
  height: 320px;
  object-fit: contain;
}

.video-placeholder,
.case-video {
  margin-top: 18px;
  padding: 18px;
  border: 1px dashed #b7c7d6;
  border-radius: 8px;
  background: #f8fafc;
}

.video-placeholder strong,
.case-video strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 18px;
}

.video-placeholder p,
.case-video p {
  margin: 0;
  color: #526071;
}

.case-video {
  border-style: solid;
  background: #fff;
}

.case-video video {
  display: block;
  width: 100%;
  max-height: 620px;
  margin-top: 14px;
  border-radius: 8px;
  background: #0f172a;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.process-steps div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.process-steps b {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 50%;
  background: #fff3bf;
  color: #8b6f0f;
}

.process-steps strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.3;
}

.process-steps span {
  display: block;
  color: #526071;
  font-size: 14px;
}

.case-card-link {
  display: block;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.case-card-link:hover {
  transform: translateY(-4px);
  border-color: #b7d3ed;
  box-shadow: 0 18px 38px rgba(17, 34, 51, .1);
}

.case-card-link em {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  color: #527c6f;
  font-style: normal;
  font-weight: 800;
}

.case-card-link em::after {
  content: "";
  width: 12px;
  height: 12px;
  margin-left: 6px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M9 18l6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M9 18l6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.case-hero .hero-copy {
  max-width: 980px;
}

.case-process {
  align-items: start;
}

.process-image {
  height: auto;
  min-height: 0;
  object-fit: contain;
  padding: 10px;
  background: #fff;
}

.brand img {
  content: url("assets/images/logo-kyyk.svg");
}

.actions a,
.contact-box a,
.contact-lines a {
  gap: 8px;
}

.actions a::before,
.contact-box a::before,
.contact-lines a::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background: currentColor;
  flex: 0 0 auto;
  -webkit-mask: var(--cta-icon) center / contain no-repeat;
  mask: var(--cta-icon) center / contain no-repeat;
}

.actions a[href^="tel:"]::before,
.contact-box a[href^="tel:"]::before,
.contact-lines a[href^="tel:"]::before {
  --cta-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M22 16.92v3a2 2 0 0 1-2.18 2A19.8 19.8 0 0 1 3.09 5.18 2 2 0 0 1 5.08 3h3a2 2 0 0 1 2 1.72c.13.96.35 1.9.66 2.8a2 2 0 0 1-.45 2.11L9 10.91a16 16 0 0 0 4.09 4.09l1.28-1.28a2 2 0 0 1 2.11-.45c.9.31 1.84.53 2.8.66A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

.actions a[href^="mailto:"]::before,
.contact-box a[href^="mailto:"]::before,
.contact-lines a[href^="mailto:"]::before {
  --cta-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M4 5h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2z'/%3E%3Cpath fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='m22 7-10 6L2 7'/%3E%3C/svg%3E");
}

.actions a[href^="#"]::before,
.contact-box a[href^="#"]::before {
  --cta-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='M12 5v14M5 12l7 7 7-7'/%3E%3C/svg%3E");
}

.actions a[href$=".html"]::before,
.contact-box a[href$=".html"]::before {
  --cta-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E");
}

.actions a::after,
.contact-box a::after,
.contact-lines a::after {
  content: "";
  width: 12px;
  height: 12px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M9 18l6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M9 18l6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: .72;
}

.actions a[href^="#"]::after,
.contact-box a[href^="#"]::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

@media (max-width: 1060px) {
  .problem-grid,
  .product-grid,
  .scenario-cards {
    grid-template-columns: 1fr 1fr;
  }

  .benefit-list {
    grid-template-columns: 1fr;
  }

  .case-detail-grid,
  .case-gallery,
  .process-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .problem-grid,
  .product-grid,
  .scenario-cards {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 0;
  }
}
