/* КЕРНИНГ: розово-хромовая студия знакомств в свадебном китче. Шрифты: Sinistre для заголовков, TikTok Sans для текста. */

:root {
  --kc-plum: #43102e;
  --kc-hot: #ff4fa3;
  --kc-blush: #ffd9ee;
  --kc-cream: #fff8fc;
  --kc-display: "Vaibik Sinistre", "TikTok Sans", Georgia, serif;
  --kc-text: "TikTok Sans", system-ui, sans-serif;
  --kc-gutter: clamp(16px, 3vw, 40px);
  --kc-ease: cubic-bezier(.2, .8, .2, 1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body.kc-body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 8%, #fff 0, rgb(255 255 255 / 0) 34%),
    linear-gradient(160deg, #ffd6ec 0%, #ffb3dc 42%, #ffe6f4 72%, #ffc2e4 100%);
  color: var(--kc-plum);
  font-family: var(--kc-text);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

body.kc-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(115deg, rgb(255 255 255 / 0) 0 46px, rgb(255 255 255 / .22) 46px 62px, rgb(255 255 255 / 0) 62px 120px);
  background-size: 240px 100%;
  animation: kc-satin 16s linear infinite;
}

a {
  color: inherit;
}

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
}

.kc-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.kc-top {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px var(--kc-gutter) 8px;
}

.kc-top__logo {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border: 3px solid var(--kc-plum);
  border-radius: 999px;
  background: linear-gradient(#ffffff, #ffd0ea);
  box-shadow: 0 4px 0 var(--kc-plum);
  font-family: var(--kc-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.kc-top__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 3px solid var(--kc-plum);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 0 var(--kc-plum);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform .2s ease;
}

.kc-top__back:hover {
  transform: translateY(-2px);
}

.kc-top__back:focus-visible,
.kc-top__logo:focus-visible,
.kc-btn:focus-visible,
.kc-field__input:focus-visible,
.kc-option:focus-visible,
.kc-jump a:focus-visible,
.kc-room__title:focus-visible,
.kc-studio__title:focus-visible,
.kc-footer a:focus-visible {
  outline: 3px solid var(--kc-plum);
  outline-offset: 4px;
}

.kc-main {
  position: relative;
  z-index: 1;
  overflow-x: clip;
}

.kc-hero {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: clamp(18px, 4vw, 40px) var(--kc-gutter) clamp(12px, 3vw, 28px);
  text-align: center;
}

.kc-age {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
}

.kc-age span {
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  height: 32px;
  padding: 0 10px;
  border: 2px solid var(--kc-plum);
  border-radius: 999px;
  background: var(--kc-plum);
  color: #fff;
  font-size: 14px;
  line-height: 1;
}

.kc-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .08em;
  padding: .06em .16em .14em;
  font-family: var(--kc-display);
  font-size: clamp(52px, 13vw, 176px);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.03em;
  background: linear-gradient(100deg, #ffffff 0%, #ffd0ea 20%, #ff4fa3 42%, #ffffff 52%, #c9a0d8 68%, #ff8cc6 84%, #ffffff 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 0 var(--kc-plum)) drop-shadow(0 0 18px rgb(255 255 255 / .6));
  animation: kc-shine 5s ease-in-out infinite;
}

.kc-title__heart {
  width: .62em;
  height: .58em;
  margin-top: -.1em;
  filter: drop-shadow(0 4px 0 var(--kc-plum));
  animation: kc-beat 1.6s ease-in-out infinite;
}

.kc-spark {
  position: absolute;
  width: 22px;
  height: 22px;
  fill: #fff;
  filter: drop-shadow(0 0 6px #fff);
  pointer-events: none;
  animation: kc-twinkle 2.8s ease-in-out infinite;
}

.kc-spark--a {
  left: 12%;
  top: 18%;
}

.kc-spark--b {
  right: 14%;
  top: 10%;
  width: 30px;
  height: 30px;
  animation-delay: -1s;
}

.kc-spark--c {
  right: 22%;
  bottom: 8%;
  width: 16px;
  height: 16px;
  animation-delay: -2s;
}

.kc-lead {
  max-width: 34ch;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.4;
  font-weight: 600;
}

.kc-stage {
  position: relative;
  z-index: 1;
}

.kc-gate {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 44px) var(--kc-gutter) clamp(96px, 12vw, 150px);
  overflow: hidden;
}

.kc-arch {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 0;
  width: min(860px, 130vw);
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
  animation: kc-arch-in 1.2s ease-out both;
}

.kc-gate__card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  width: min(500px, 100%);
  padding: clamp(26px, 4vw, 42px);
  border: 3px solid var(--kc-plum);
  border-radius: 28px;
  background: linear-gradient(170deg, rgb(255 255 255 / .94), rgb(255 226 242 / .92));
  box-shadow: 10px 10px 0 var(--kc-plum), inset 0 0 0 7px #ffe7f4;
  animation: kc-rise .9s var(--kc-ease) both;
}

.kc-gate__card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px dashed rgb(67 16 46 / .3);
  border-radius: 20px;
  pointer-events: none;
}

.kc-gate__title {
  font-family: var(--kc-display);
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.02em;
}

.kc-gate__text {
  font-size: 18px;
  font-weight: 600;
}

.kc-field {
  display: grid;
  gap: 8px;
}

.kc-field__label {
  font-size: 15px;
  font-weight: 700;
}

.kc-field__input {
  width: 100%;
  padding: 16px 18px;
  border: 3px solid var(--kc-plum);
  border-radius: 16px;
  background: #fff;
  color: var(--kc-plum);
  font: 600 22px/1.2 var(--kc-text);
  letter-spacing: .12em;
  box-shadow: inset 0 3px 0 rgb(67 16 46 / .08);
}

.kc-field__input::placeholder {
  color: #b07a9c;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .02em;
}

.kc-field__input[aria-invalid="true"] {
  background: #fff1f7;
}

.kc-field__input.is-wrong {
  animation: kc-shake .45s ease;
}

.kc-error {
  min-height: 1.4em;
  color: #9a1450;
  font-size: 16px;
  font-weight: 700;
}

.kc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  border: 3px solid var(--kc-plum);
  border-radius: 999px;
  background: linear-gradient(#ffc2e3 0%, #ff4fa3 52%, #d4166f 56%, #ff7ab8 100%);
  color: #fff;
  font: 700 17px/1 var(--kc-text);
  text-decoration: none;
  text-shadow: 0 1px 0 rgb(67 16 46 / .55);
  box-shadow: inset 0 2px 0 rgb(255 255 255 / .8), 0 5px 0 var(--kc-plum);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.kc-btn:hover {
  transform: translateY(-2px);
}

.kc-btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--kc-plum);
}

.kc-btn:disabled {
  opacity: .55;
  cursor: default;
  transform: none;
}

.kc-btn--line {
  background: linear-gradient(#fffaff, #ffd9ee);
  color: var(--kc-plum);
  text-shadow: none;
}

.kc-room {
  position: relative;
  display: grid;
  gap: clamp(56px, 8vw, 96px);
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px var(--kc-gutter) clamp(56px, 8vw, 96px);
  animation: kc-room-in .9s ease both;
}

.kc-studio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}

.kc-studio__copy {
  display: grid;
  justify-items: start;
  gap: 22px;
}

.kc-sticker {
  display: inline-block;
  padding: 12px 18px;
  border: 3px solid var(--kc-plum);
  border-radius: 12px;
  background: repeating-linear-gradient(-45deg, #ffd0e8 0 14px, #ffffff 14px 28px);
  box-shadow: 5px 5px 0 var(--kc-plum);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

.kc-studio__title {
  font-family: var(--kc-display);
  font-size: clamp(60px, 7.6vw, 112px);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.03em;
}

.kc-studio__title:focus {
  outline: none;
}

.kc-pearls {
  width: 100%;
  height: 26px;
  background: radial-gradient(circle at 35% 30%, #ffffff 0, #ffe4f2 45%, #e3b6d2 100%) repeat-x 0 50% / 26px 26px;
  border-radius: 999px;
  filter: drop-shadow(0 3px 0 rgb(67 16 46 / .25));
}

.kc-studio__text {
  max-width: 36ch;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.45;
  font-weight: 600;
}

.kc-studio__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.kc-studio__visual {
  position: relative;
  isolation: isolate;
  justify-self: center;
  width: min(460px, 84vw);
}

.kc-chair {
  position: absolute;
  left: -6%;
  bottom: -4%;
  z-index: 2;
  width: 38%;
  height: auto;
  filter: drop-shadow(6px 8px 0 rgb(67 16 46 / .25));
  animation: kc-float 6s ease-in-out infinite;
}

.kc-rose {
  position: absolute;
  z-index: 2;
  width: 22%;
  height: auto;
  filter: drop-shadow(4px 5px 0 rgb(67 16 46 / .25));
  animation: kc-beat 3.2s ease-in-out infinite;
}

.kc-rose--a {
  right: -4%;
  top: -6%;
}

.kc-rose--b {
  right: 16%;
  bottom: -2%;
  width: 16%;
  animation-delay: -1.4s;
}

.kc-phone {
  position: relative;
  isolation: isolate;
  width: 100%;
}

.kc-phone__veil {
  position: absolute;
  left: -4%;
  top: -14%;
  z-index: -1;
  width: 108%;
  height: 86%;
  pointer-events: none;
  animation: kc-veil-sway 7s ease-in-out infinite;
  transform-origin: 50% 0;
}

.kc-phone__img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(10px 12px 0 rgb(67 16 46 / .22));
  animation: kc-phone-float 6s ease-in-out infinite;
}

.kc-phone__screen {
  position: absolute;
  left: 38.05%;
  top: 28.9%;
  width: 23.05%;
  height: 13.4%;
  container-type: inline-size;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3cqw;
  overflow: hidden;
  border-radius: 3px;
  background: linear-gradient(160deg, #fff7fb, #ffd9ee 70%, #ffc2e3);
  box-shadow: 0 0 0 2px rgb(67 16 46 / .55), inset 0 0 0 3px rgb(255 255 255 / .6);
}

.kc-phone__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgb(255 255 255 / .55) 0 14%, transparent 14% 100%);
  animation: kc-glare 4.5s ease-in-out infinite;
  pointer-events: none;
}

.kc-phone__heart {
  width: 30cqw;
  height: 27cqw;
  filter: drop-shadow(0 1px 0 rgb(67 16 46 / .4));
  animation: kc-beat 1.6s ease-in-out infinite;
}

.kc-phone__wait {
  font-family: var(--kc-display);
  font-size: 13cqw;
  font-weight: 700;
  line-height: 1;
  color: var(--kc-plum);
  white-space: nowrap;
}

.kc-phone__rings {
  position: absolute;
  right: 0;
  bottom: -4%;
  z-index: 1;
  width: 40%;
  height: auto;
  filter: drop-shadow(2px 0 0 var(--kc-plum)) drop-shadow(-2px 0 0 var(--kc-plum)) drop-shadow(0 2px 0 var(--kc-plum)) drop-shadow(0 -2px 0 var(--kc-plum)) drop-shadow(4px 6px 0 rgb(67 16 46 / .25));
  animation: kc-float 5s ease-in-out infinite;
}

.kc-phone__kiss {
  position: absolute;
  left: 2%;
  bottom: 8%;
  z-index: 1;
  width: 16%;
  height: auto;
  transform: rotate(-14deg);
  filter: drop-shadow(3px 4px 0 rgb(67 16 46 / .25));
  animation: kc-beat 2.4s ease-in-out infinite;
}

.kc-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
}

.kc-jump a {
  padding: 11px 18px;
  border: 2px solid var(--kc-plum);
  border-radius: 999px;
  background: rgb(255 255 255 / .8);
  box-shadow: 0 3px 0 var(--kc-plum);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}

.kc-jump a:hover {
  transform: translateY(-2px);
  background: #fff;
}

.kc-block {
  display: grid;
  gap: 24px;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  scroll-margin-top: 24px;
}

.kc-block__head {
  display: grid;
  gap: 14px;
}

.kc-block__title {
  font-family: var(--kc-display);
  font-size: clamp(46px, 6vw, 76px);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -.03em;
}

.kc-block__text {
  max-width: 46ch;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.45;
  font-weight: 600;
}

.kc-card {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 4vw, 44px);
  border: 3px solid var(--kc-plum);
  border-radius: 28px;
  background: rgb(255 255 255 / .74);
  box-shadow: 8px 8px 0 var(--kc-plum);
}

.kc-quiz__count {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .04em;
}

.kc-quiz__question {
  font-family: var(--kc-display);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.kc-options {
  display: grid;
  gap: 12px;
}

.kc-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 20px;
  border: 3px solid var(--kc-plum);
  border-radius: 18px;
  background: #fff;
  color: var(--kc-plum);
  font: 700 18px/1.3 var(--kc-text);
  text-align: left;
  box-shadow: 0 5px 0 var(--kc-plum);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.kc-option:hover {
  transform: translateY(-2px);
  background: #fff0f8;
}

.kc-option[aria-pressed="true"] {
  background: linear-gradient(#ffd0ea, #ff8cc6);
}

.kc-option__mark {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--kc-plum);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 800;
}

.kc-quiz__verdict {
  font-family: var(--kc-display);
  font-size: clamp(44px, 6vw, 70px);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.02em;
  animation: kc-rise .6s var(--kc-ease) both;
}

.kc-quiz__result {
  animation: kc-rise .6s var(--kc-ease) both;
}

.kc-opener__line {
  min-height: 3.3em;
  font-family: var(--kc-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.kc-opener__line.is-fresh {
  animation: kc-rise .5s var(--kc-ease) both;
}

.kc-note {
  min-height: 1.4em;
  font-size: 16px;
  font-weight: 700;
}

.kc-vows__groups {
  display: grid;
  gap: 22px;
}

.kc-vows__group {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.kc-vows__legend {
  padding: 0;
  font-family: var(--kc-display);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.01em;
}

.kc-vows__choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.kc-vows__choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border: 3px solid var(--kc-plum);
  border-radius: 18px;
  background: #fff;
  color: var(--kc-plum);
  font: 600 16px/1.35 var(--kc-text);
  text-align: left;
  box-shadow: 0 5px 0 var(--kc-plum);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.kc-vows__choice:hover {
  transform: translateY(-2px);
  background: #fff0f8;
}

.kc-vows__choice[aria-pressed="true"] {
  background: linear-gradient(#ffd0ea, #ff8cc6);
}

.kc-vows__final {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 3vw, 34px);
  border: 3px dashed var(--kc-plum);
  border-radius: 22px;
  background: linear-gradient(170deg, #fff7fb, #ffe0f0);
  animation: kc-rise .8s var(--kc-ease) both;
}

.kc-vows__text {
  font-family: var(--kc-display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
}

.kc-vows__seal {
  font-size: 16px;
  font-weight: 800;
}

.kc-rules__list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0 0 0 1.4em;
  font-size: clamp(17px, 1.5vw, 19px);
  font-weight: 600;
  line-height: 1.45;
}

.kc-rules__list li::marker {
  font-weight: 800;
  color: var(--kc-hot);
}

.kc-rules__how {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  border-top: 3px dashed rgb(67 16 46 / .35);
  font-size: clamp(17px, 1.5vw, 19px);
  font-weight: 600;
  line-height: 1.45;
}

.kc-rules__subtitle {
  font-family: var(--kc-display);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.kc-profiles__card {
  justify-items: start;
  background: linear-gradient(170deg, rgb(255 255 255 / .9), rgb(255 226 242 / .9));
}

.kc-profiles__soon {
  padding: 6px 18px;
  border: 3px solid var(--kc-plum);
  border-radius: 999px;
  background: #fff;
  font-family: var(--kc-display);
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
  transform: rotate(-2deg);
}

.kc-gossip__card {
  max-width: 880px;
  width: 100%;
  justify-self: center;
  box-shadow: 8px 8px 0 var(--kc-plum);
}

.kc-gossip__title {
  font-family: var(--kc-display);
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.02em;
}

.kc-gossip__list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0 0 0 1.4em;
  font-size: clamp(17px, 1.5vw, 19px);
  font-weight: 600;
  line-height: 1.45;
}

.kc-gossip__list li::marker {
  font-weight: 800;
  color: var(--kc-hot);
}

.kc-petals {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.kc-petal {
  position: absolute;
  top: -12%;
  left: var(--x);
  width: 16px;
  height: 20px;
  border-radius: 80% 0 80% 0;
  background: radial-gradient(circle at 35% 30%, #ffffff 0, #ffd0ea 40%, #ff7ab8 100%);
  opacity: .85;
  animation: kc-fall var(--d) linear var(--delay) infinite;
}

.kc-petal:nth-child(even) {
  width: 12px;
  height: 15px;
}

.kc-footer {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  padding: 22px var(--kc-gutter) 32px;
  border-top: 3px solid var(--kc-plum);
  background: rgb(255 255 255 / .55);
  font-size: 14px;
}

.kc-footer p {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
}

.kc-footer a {
  font-weight: 700;
}

@keyframes kc-satin {
  to {
    background-position: 240px 0;
  }
}

@keyframes kc-shine {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes kc-beat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes kc-twinkle {
  0%,
  100% {
    opacity: .25;
    transform: scale(.7) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.1) rotate(45deg);
  }
}

@keyframes kc-arch-in {
  from {
    opacity: 0;
    transform: translateX(-50%) scale(.96);
  }
}

@keyframes kc-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes kc-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-8px);
  }
  75% {
    transform: translateX(8px);
  }
}

@keyframes kc-room-in {
  from {
    opacity: 0;
  }
}

@keyframes kc-fall {
  from {
    transform: translate3d(0, -10vh, 0) rotate(0deg);
  }
  to {
    transform: translate3d(48px, 115vh, 0) rotate(560deg);
  }
}

@keyframes kc-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(4deg);
  }
}

@keyframes kc-phone-float {
  0%,
  100% {
    transform: translateY(0) rotate(-.6deg);
  }
  50% {
    transform: translateY(-8px) rotate(.6deg);
  }
}

@keyframes kc-veil-sway {
  0%,
  100% {
    transform: rotate(-1.5deg) scaleY(1);
  }
  50% {
    transform: rotate(1.5deg) scaleY(1.02);
  }
}

@keyframes kc-glare {
  0%,
  100% {
    transform: translateX(-120%);
  }
  50% {
    transform: translateX(120%);
  }
}

/* Демо-знакомство: карточки с Сейлор Мун, свайп, кнопки и экран «Мэтч!». Это показ, людей и переписки здесь нет. */

.kc-demo .kc-sticker {
  justify-self: start;
  margin-bottom: 6px;
}

.kc-demo__card {
  justify-items: center;
}

.kc-deck {
  position: relative;
  width: min(340px, 100%);
  aspect-ratio: 340 / 530;
  touch-action: pan-y;
  user-select: none;
}

.kc-deck:focus-visible {
  outline: 3px solid var(--kc-plum);
  outline-offset: 8px;
  border-radius: 26px;
}

.kc-profile {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 3px solid var(--kc-plum);
  border-radius: 24px;
  background: #fff;
  box-shadow: 8px 8px 0 var(--kc-plum);
  transform-origin: 50% 100%;
  transform: translate(var(--dx, 0px), calc(var(--depth, 0) * 12px)) rotate(var(--rot, 0deg)) scale(calc(1 - var(--depth, 0) * .04));
  transition: transform .45s var(--kc-ease), opacity .3s ease;
  cursor: grab;
}

.kc-profile.is-dragging {
  transition: none;
  cursor: grabbing;
}

.kc-profile.is-away {
  opacity: 0;
  pointer-events: none;
}

.kc-profile.is-out {
  opacity: 0;
  pointer-events: none;
  transform: translate(var(--dx, 0px), 0) rotate(var(--rot, 0deg));
}

.kc-profile__img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: 50% 14%;
  background: #ffd0ea;
  pointer-events: none;
}

.kc-profile__info {
  display: grid;
  gap: 6px;
  padding: 14px 18px 16px;
  border-top: 3px solid var(--kc-plum);
  background: linear-gradient(170deg, #ffffff, #ffe0f0);
}

.kc-profile__name {
  font-family: var(--kc-display);
  font-size: 40px;
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.02em;
}

.kc-profile__bio {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.kc-profile__facts {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.kc-match {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  padding: 24px;
  overflow: hidden;
  border: 3px solid var(--kc-plum);
  border-radius: 24px;
  background: radial-gradient(circle at 50% 38%, #ffffff 0, #ffd0ea 42%, #ff8cc6 100%);
  box-shadow: 8px 8px 0 var(--kc-plum);
  text-align: center;
  animation: kc-rise .5s var(--kc-ease) both;
}

.kc-match__title {
  font-family: var(--kc-display);
  font-size: clamp(64px, 16vw, 88px);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.03em;
  background: linear-gradient(100deg, #ffffff 0%, #ffd0ea 20%, #ff4fa3 42%, #ffffff 52%, #c9a0d8 68%, #ff8cc6 84%, #ffffff 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 5px 0 var(--kc-plum));
  animation: kc-shine 4s ease-in-out infinite, kc-beat 1.6s ease-in-out infinite;
}

.kc-match__text {
  max-width: 26ch;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.kc-match__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.kc-match__bursts {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.kc-burst {
  position: absolute;
  left: var(--x, 50%);
  bottom: -30px;
  width: var(--size, 24px);
  height: var(--size, 24px);
  animation: kc-burst var(--d, 2.4s) ease-out var(--delay, 0s) both;
}

.kc-demo__controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.kc-demo__controls .kc-btn:disabled {
  opacity: .55;
}

.kc-demo__end {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.kc-demo__endtext {
  font-family: var(--kc-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  line-height: 1;
}

@keyframes kc-burst {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(.4);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--sway, 0px), -470px, 0) rotate(120deg) scale(1.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .kc-profile,
  .kc-match,
  .kc-match__title {
    transition: none;
    animation: none;
  }

  .kc-burst {
    display: none;
  }
}

@media (max-width: 860px) {
  .kc-studio {
    grid-template-columns: minmax(0, 1fr);
  }

  .kc-studio__visual {
    order: -1;
  }

  .kc-studio__copy {
    justify-items: center;
    text-align: center;
  }

  .kc-studio__copy .kc-sticker {
    order: -1;
  }

  .kc-studio__text {
    max-width: 32ch;
  }

  .kc-studio__actions {
    justify-content: center;
  }

  .kc-pearls {
    max-width: 320px;
  }

  .kc-vows__choices {
    grid-template-columns: minmax(0, 1fr);
  }

  .kc-spark--a {
    left: 4%;
  }

  .kc-spark--b {
    right: 4%;
  }

  .kc-gate {
    padding-bottom: 64px;
  }
}

@media (max-width: 520px) {
  .kc-top__back {
    font-size: 14px;
    padding: 10px 14px;
  }

  .kc-gate__card {
    box-shadow: 6px 6px 0 var(--kc-plum), inset 0 0 0 5px #ffe7f4;
  }

  .kc-btn {
    width: 100%;
  }

  .kc-studio__actions .kc-btn {
    width: auto;
  }

  .kc-field__input {
    font-size: 20px;
  }

  .kc-card {
    box-shadow: 5px 5px 0 var(--kc-plum);
  }

  .kc-option {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.kc-body::before,
  .kc-title,
  .kc-title__heart,
  .kc-spark,
  .kc-arch,
  .kc-gate__card,
  .kc-room,
  .kc-phone__img,
  .kc-phone__veil,
  .kc-phone__heart,
  .kc-phone__screen::after,
  .kc-phone__rings,
  .kc-phone__kiss,
  .kc-chair,
  .kc-rose,
  .kc-quiz__verdict,
  .kc-quiz__result,
  .kc-opener__line.is-fresh,
  .kc-vows__final,
  .kc-petal {
    animation: none;
  }

  .kc-petals {
    display: none;
  }

  .kc-btn,
  .kc-top__back,
  .kc-option,
  .kc-vows__choice,
  .kc-jump a {
    transition: none;
  }

  .kc-field__input.is-wrong {
    animation: none;
  }

}
