.klin-page {
  --klin-ink: #121212;
  --klin-yellow: #ffd100;
  --klin-muted: #5a5a5a;
  --klin-dark: #1c1c1c;
  color: var(--klin-ink);
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
}

.klin-page .klin-wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

/* —— Hero before/after —— */
.klin-hero {
  padding: 36px 0 40px;
  text-align: center;
  background: #f6f6f6;
}
.klin-ba {
  position: relative;
  width: min(860px, 100%);
  margin: 0 auto 22px;
  aspect-ratio: 1680 / 963;
  user-select: none;
  touch-action: none;
  cursor: ew-resize;
}
.klin-ba__img {
  position: absolute;
  inset: 0;
  background: center / contain no-repeat;
}
.klin-ba__img--after {
  background-image: url("../uploads/klin/ba-clean.png");
}
.klin-ba__img--before {
  background-image: url("../uploads/klin/ba-dirty.png");
  clip-path: inset(0 0 0 var(--ba, 52%));
}
.klin-ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba, 52%);
  width: 3px;
  margin-left: -1.5px;
  background: var(--klin-yellow);
  z-index: 2;
  pointer-events: none;
}
.klin-ba__handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--klin-yellow);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36' fill='none'%3E%3Cpath d='M13 12 L7 18 L13 24' stroke='%23111' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M23 12 L29 18 L23 24' stroke='%23111' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 36px 36px;
  background-repeat: no-repeat;
  background-position: center;
}
.klin-hero__kicker {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #222;
}
.klin-hero__lead {
  margin: 0 auto;
  max-width: 720px;
  font-size: clamp(17px, 2.3vw, 22px);
  line-height: 1.4;
  font-weight: 700;
}
.klin-hero__lead em {
  font-style: normal;
  background: var(--klin-yellow);
  padding: 0 6px;
}

/* —— Culture band —— */
.klin-culture {
  background: var(--klin-dark);
  color: #fff;
  text-align: center;
  padding: 64px 20px;
}
.klin-culture h2 {
  margin: 0 auto;
  max-width: 780px;
  font-size: clamp(26px, 5.2vw, 52px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
.klin-culture .klin-culture__line {
  display: block;
}
.klin-culture .klin-culture__line + .klin-culture__line {
  margin-top: 0.06em;
}
.klin-culture mark {
  background: none;
  color: var(--klin-yellow);
}

/* —— Services —— */
.klin {
  margin: 48px 0 28px;
}
.klin__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.klin__title {
  margin: 0;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  font-weight: 800;
}
.klin__title span {
  background: linear-gradient(#ffd100, #ffd100) 0 78% / 100% 12px no-repeat;
}
.klin__stamp {
  flex: 0 0 auto;
  width: 104px;
  height: 104px;
  border: 3px solid var(--klin-yellow);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: rotate(12deg);
  color: #1a1a1a;
  background: #fff;
  line-height: 1.15;
}
.klin__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}
.klin-card {
  position: relative;
  border: 2px solid #1a1a1a;
  background: #fff;
  min-height: 280px;
  padding: 28px 24px 22px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.klin-card h3 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 800;
}
.klin-card p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.45;
  color: #333;
}
.klin-card__note {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.klin-card__price {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.klin-card__price b {
  display: inline-block;
  background: var(--klin-yellow);
  padding: 6px 10px 4px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.klin-card__price span {
  font-size: 28px;
  line-height: 1;
}
.klin-card--badge::before {
  content: "Вторая жизнь твоей обуви";
  position: absolute;
  top: -14px;
  right: -10px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--klin-yellow);
  color: #111;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.15;
  display: grid;
  place-items: center;
  padding: 10px;
  transform: rotate(8deg);
  z-index: 1;
}
.klin-photo {
  border: 2px solid #1a1a1a;
  overflow: hidden;
  min-height: 220px;
  position: relative;
  background: #f6f6f6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.klin-photo img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
}
.klin-photo::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 10px;
  width: 90px;
  height: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 28'%3E%3Cpath d='M2 18 C20 4 40 24 58 10 C70 2 82 16 88 12' fill='none' stroke='%23ffd100' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat;
}
.klin-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 14px;
  margin-top: 14px;
}
.klin-row .klin-card {
  min-height: 240px;
}

/* —— Collage (реальная вёрстка по скрину, не картинка-скрин) —— */
.klin-collage {
  background: var(--klin-dark);
  color: #fff;
  padding: 40px 0 48px;
  margin: 40px 0 0;
  overflow: hidden;
}
.klin-collage .klin-wrap {
  width: min(1120px, calc(100% - 24px));
}
.klin-collage__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 900;
  max-height: 820px;
  margin: 0 auto;
}
.klin-collage__item {
  margin: 0;
  position: absolute;
  overflow: hidden;
  background: #2a2a2a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.klin-collage__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Positions — from reference collage */
.klin-collage__item--tote {
  left: -2%;
  top: 2%;
  width: 24%;
  height: 38%;
  z-index: 1;
}
.klin-collage__item--courier {
  left: 22%;
  top: 6%;
  width: 36%;
  height: 52%;
  z-index: 3;
}
.klin-collage__item--clean {
  left: 55%;
  top: 3%;
  width: 34%;
  height: 34%;
  z-index: 2;
}
.klin-collage__item--kit {
  left: 3%;
  top: 44%;
  width: 36%;
  height: 32%;
  z-index: 4;
}
.klin-collage__item--bag {
  left: 34%;
  top: 52%;
  width: 42%;
  height: 36%;
  z-index: 3;
}
.klin-collage__item--jordan {
  right: -4%;
  top: 32%;
  width: 24%;
  height: 44%;
  z-index: 2;
}

.klin-collage__mark {
  position: absolute;
  z-index: 6;
  background: var(--klin-yellow);
  color: #111;
  font-size: clamp(11px, 1.6vw, 14px);
  font-weight: 800;
  padding: 5px 10px;
  text-transform: lowercase;
  border-radius: 4px;
  white-space: nowrap;
}
.klin-collage__mark--courier {
  top: 4%;
  left: 38%;
  transform: rotate(-3deg);
}

.klin-collage__cap {
  position: absolute;
  z-index: 5;
  margin: 0;
  font-size: clamp(12px, 1.8vw, 16px);
  font-weight: 600;
  text-transform: lowercase;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}
.klin-collage__cap--repair {
  left: 4%;
  top: 78%;
}
.klin-collage__cap--bag {
  left: 42%;
  top: 90%;
}

.klin-collage__doodle {
  position: absolute;
  z-index: 5;
  pointer-events: none;
}
.klin-collage__doodle--star {
  left: 18%;
  top: 28%;
  width: 22px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffd100' d='M12 1l1.8 7.2L21 10l-7.2 1.8L12 19l-1.8-7.2L3 10l7.2-1.8z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.klin-collage__doodle--arrow-courier {
  left: 48%;
  top: 10%;
  width: 48px;
  height: 36px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 36' fill='none'%3E%3Cpath d='M4 8 C18 4 28 14 36 22' stroke='%23ffd100' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M30 18 L38 24 L30 28' stroke='%23ffd100' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: rotate(12deg);
}
.klin-collage__doodle--spark {
  left: 72%;
  top: 2%;
  width: 40px;
  height: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 28' fill='none'%3E%3Cpath d='M6 22 C10 10 14 6 18 4' stroke='%23ffd100' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M18 24 C22 12 26 8 30 6' stroke='%23ffd100' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M28 26 C32 14 34 10 38 8' stroke='%23ffd100' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.klin-collage__doodle--arrow-bag {
  left: 58%;
  top: 84%;
  width: 44px;
  height: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 28' fill='none'%3E%3Cpath d='M6 22 C14 10 24 6 34 8' stroke='%23ffd100' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M28 6 L36 8 L32 16' stroke='%23ffd100' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: rotate(-20deg);
}

.klin-collage__fabs {
  position: absolute;
  right: 2%;
  bottom: 2%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 8;
}
.klin-collage__fab {
  width: clamp(58px, 9vw, 78px);
  height: clamp(58px, 9vw, 78px);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  background: var(--klin-yellow);
}
.klin-collage__fab img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* —— Courier —— */
.klin-courier {
  padding: 56px 0 48px;
  background: #fff;
}
.klin-courier__title {
  margin: 0 0 18px;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.klin-courier__title span {
  background: linear-gradient(#ffd100, #ffd100) 0 78% / 100% 12px no-repeat;
}
.klin-courier__text {
  max-width: 560px;
  font-size: 16px;
  line-height: 1.55;
  color: #222;
  margin-bottom: 28px;
}
.klin-courier__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: stretch;
}
.klin-courier__photo {
  border: 2px solid #111;
  overflow: hidden;
  min-height: 360px;
}
.klin-courier__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.klin-courier__panel {
  border: 2px solid #111;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  background: #fafafa;
}
.klin-courier__panel p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}
.klin-courier__panel a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 18px;
  background: var(--klin-yellow);
  color: #111;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.03em;
}
.klin-courier__panel a:hover {
  filter: brightness(0.96);
}

/* —— CTA —— */
.klin-cta {
  background: var(--klin-dark);
  color: #fff;
  padding: 64px 20px 72px;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 50% 100%, 0 88%);
  margin-bottom: -1px;
}
.klin-cta h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.klin-cta p {
  margin: 0 0 22px;
  opacity: 0.85;
}
.klin-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 32px;
  border-radius: 999px;
  background: var(--klin-yellow);
  color: #111;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transition: filter 0.15s ease, transform 0.15s ease;
}
.klin-cta a:hover {
  filter: brightness(0.97);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .klin__grid,
  .klin-row,
  .klin-courier__grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .klin-collage {
    padding: 20px 0 28px;
  }
  .klin-collage .klin-wrap {
    width: 100%;
    max-width: none;
  }
  .klin-collage__stage {
    aspect-ratio: 1024 / 960;
    max-height: none;
  }
  .klin-collage__fab {
    width: 68px;
    height: 68px;
  }
  .klin-card--badge::before {
    width: 72px;
    height: 72px;
    font-size: 9px;
    top: -8px;
    right: 4px;
  }
  .klin-culture h2 {
    font-size: clamp(24px, 8vw, 36px);
  }
}
