:root {
  --pink-0: #fff4f0;
  --pink-1: #fcded3;
  --pink-2: #fad6ca;
  --pink-3: #edbdb0;
  --rose: #e2a090;
  --rose-deep: #da9282;
  --brown: #5c3832;
  --brown-soft: #8a5e55;
  --cream: #fff8f2;
  --white: rgba(255, 248, 242, 0.72);
  --shadow: 0 18px 50px rgba(180, 110, 90, 0.18);
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Manrope", "Segoe UI", sans-serif;
  --font-script: "Caveat", "Segoe Script", cursive;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-anchor: none;
}

body {
  color: var(--brown);
  font-family: var(--font-sans);
  background-color: var(--pink-2);
  background-image:
    linear-gradient(180deg, rgba(250, 214, 202, 0.45), rgba(244, 204, 190, 0.5)),
    url("../assets/bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

[data-depth] {
  --tx: 0px;
  --ty: 0px;
  will-change: transform;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  transform: translate3d(var(--tx), var(--ty), 0);
}

.sparkles {
  position: absolute;
  inset: 0;
  transform: translate3d(var(--tx), var(--ty), 0);
}

.orb--a {
  width: 340px;
  height: 340px;
  left: -80px;
  top: 12%;
  background: rgba(255, 255, 255, 0.45);
}

.orb--b {
  width: 280px;
  height: 280px;
  right: 8%;
  top: -40px;
  background: rgba(252, 222, 211, 0.55);
}

.orb--c {
  width: 420px;
  height: 220px;
  left: 30%;
  bottom: -60px;
  background: rgba(218, 146, 130, 0.28);
}

.sparkles span {
  position: absolute;
  width: 5px;
  height: 5px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px 3px rgba(255, 255, 255, 0.85);
  animation: twinkle 3.4s ease-in-out infinite;
}

.sparkles span::after {
  content: "";
  position: absolute;
  inset: -4px 2px;
  background: #fff;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  opacity: 0.9;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.stage {
  position: relative;
  z-index: 1;
  width: min(1440px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 36px 22px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 320px;
  grid-template-rows: auto 1fr auto auto;
  grid-template-areas:
    "rail copy device"
    "rail copy device"
    "rail cta  device"
    "feat feat feat";
}

.hero-woman {
  position: fixed;
  left: 0;
  bottom: 0;
  height: 100vh;
  height: 100svh;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: right center;
  transform: translate3d(calc(-48% + var(--tx)), var(--ty), 0);
  filter: drop-shadow(0 18px 30px rgba(120, 40, 70, 0.18));
  -webkit-mask-image:
    linear-gradient(to right, #000 42%, transparent 88%),
    linear-gradient(to top, transparent 0%, #000 16%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, #000 42%, transparent 88%),
    linear-gradient(to top, transparent 0%, #000 16%);
  mask-composite: intersect;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.rail {
  grid-area: rail;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  z-index: 4;
}

.note {
  margin: 0;
  font-family: var(--font-script);
  font-size: 22px;
  line-height: 1.25;
  color: var(--brown-soft);
  text-align: center;
  max-width: 140px;
}

.note--top {
  transform: translate3d(var(--tx), var(--ty), 0) rotate(-8deg);
}

.note--bottom {
  transform: translate3d(var(--tx), var(--ty), 0) rotate(6deg);
}

.note--side {
  position: absolute;
  top: 108px;
  right: 28px;
  max-width: 160px;
  text-align: right;
  transform: translate3d(var(--tx), var(--ty), 0) rotate(7deg);
  z-index: 6;
}

.note__arrow {
  display: block;
  width: 78px;
  height: 46px;
  margin-left: auto;
  stroke: var(--brown-soft);
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.7;
}

.cats {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  transform: translate3d(var(--tx), var(--ty), 0);
}

.cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 92px;
}

.cat__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--brown);
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.cat:hover .cat__icon {
  transform: translateY(-3px) scale(1.04);
  background: rgba(255, 255, 255, 0.62);
}

.cat svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cat__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.copy {
  grid-area: copy;
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8% 24px 0;
  min-height: 520px;
  transform: translate3d(var(--tx), var(--ty), 0);
}

.copy h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(42px, 5.6vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-shadow: 0 0 24px rgba(250, 214, 202, 0.9);
}

.copy h1 span {
  font-style: italic;
}

.copy h1 i {
  font-style: normal;
  color: var(--rose-deep);
}

.copy__kicker {
  margin: 14px 0 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 28px);
}

.copy__lead {
  margin: 8px auto 0;
  max-width: 340px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--brown-soft);
}

.device-col {
  grid-area: device;
  position: relative;
  z-index: 6;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 36px;
}

.phone {
  position: relative;
  z-index: 4;
  width: 276px;
  display: block;
  cursor: pointer;
  transform: translate3d(var(--tx), var(--ty), 0) rotate(3deg);
  filter: drop-shadow(0 28px 40px rgba(80, 30, 50, 0.28));
  transition: filter 0.18s ease;
}

.phone:hover,
.phone:focus-visible {
  filter: drop-shadow(0 32px 44px rgba(80, 30, 50, 0.38));
}

.phone__bezel {
  background: linear-gradient(180deg, #2b1a18, #1a1010);
  border-radius: 38px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.phone__island {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 92px;
  height: 22px;
  transform: translateX(-50%);
  background: #111;
  border-radius: 20px;
  z-index: 2;
}

.app {
  position: relative;
  background: linear-gradient(180deg, var(--cream) 0%, var(--pink-1) 100%);
  border-radius: 28px;
  overflow: hidden;
  min-height: 540px;
  display: flex;
  flex-direction: column;
}

.app__head {
  padding: 36px 14px 10px;
}

.app__head strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 18px;
  text-align: center;
  margin-bottom: 10px;
}

.app__search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(201, 149, 134, 0.28);
  border-radius: 999px;
  padding: 8px 12px;
  backdrop-filter: blur(10px);
  color: var(--brown-soft);
  font: 500 12px/1.2 var(--font-sans);
}

.app__search svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--brown-soft);
  stroke-width: 1.8;
  flex-shrink: 0;
}

.app__list {
  flex: 1;
  padding: 8px 12px 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cats {
  pointer-events: none;
}

.card {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 18px rgba(150, 70, 90, 0.1);
  backdrop-filter: blur(12px);
  pointer-events: none;
  cursor: default;
}

.card img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.card h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

.card p {
  margin: 2px 0 0;
  font-size: 10px;
  color: var(--brown-soft);
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
}

.card__rating,
.card__likes {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.card__rating {
  color: var(--rose-deep);
}

.card__likes {
  color: var(--brown-soft);
}

.card__meta svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  stroke: none;
}

.app__tabbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 6px 12px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(201, 149, 134, 0.18);
}

.app__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brown-soft);
}

.app__tab svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.app__tab.is-active {
  color: var(--brown);
}

.cta-block {
  grid-area: cta;
  position: relative;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 0 8px;
  transform: translate3d(var(--tx), var(--ty), 0);
}

.ribbon {
  width: max-content;
  max-width: calc(100% - 24px);
  margin: 0 auto;
  padding: 8px 28px;
  text-align: center;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(226, 160, 144, 0.8), rgba(218, 146, 130, 0.8));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 18px 100%, 0 50%);
  box-shadow: 0 8px 18px rgba(140, 70, 70, 0.16);
}

.cta {
  pointer-events: auto;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(107, 61, 56, 0.8), rgba(78, 42, 38, 0.8));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff8f5;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(70, 28, 32, 0.28);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.cta--ghost {
  background: transparent;
  color: var(--brown);
  border: 2px solid rgba(78, 42, 38, 0.7);
  box-shadow: none;
}

.cta--ghost:hover,
.cta--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.35);
  filter: none;
}

.cta-tel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brown);
}

.cta-tel::before {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1.1-.3 1.2.4 2.5.6 3.8.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.6.6 3.8.1.4 0 .8-.3 1.1L6.6 10.8z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.cta[hidden],
.cta-tel[hidden] {
  display: none !important;
}

.features {
  grid-area: feat;
  z-index: 6;
  display: flex;
  justify-content: center;
  gap: 48px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.features li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.features__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 18px rgba(140, 60, 80, 0.12);
}

.features__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--brown);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.caption {
  position: absolute;
  z-index: 6;
  margin: 0;
  font-family: var(--font-script);
  font-size: 18px;
  color: var(--brown-soft);
}

.caption--left {
  left: 36px;
  bottom: 18px;
}

.caption--right {
  right: 36px;
  bottom: 18px;
}

.decor {
  position: fixed;
  right: 0;
  bottom: 0;
  height: 100vh;
  height: 100svh;
  width: auto;
  max-width: min(560px, 44vw);
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0 18px 30px rgba(120, 40, 70, 0.18));
  -webkit-mask-image:
    linear-gradient(to left, #000 42%, transparent 88%),
    linear-gradient(to top, transparent 0%, #000 16%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to left, #000 42%, transparent 88%),
    linear-gradient(to top, transparent 0%, #000 16%);
  mask-composite: intersect;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  transform: translate3d(var(--tx), var(--ty), 0);
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.7);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 1100px) {
  .stage {
    grid-template-columns: 120px 1fr 260px;
    padding: 18px;
  }

  .copy {
    padding-left: 12px;
    padding-right: 12px;
  }

  .phone {
    width: 240px;
  }

  .app {
    min-height: 470px;
  }
}

@media (max-width: 860px) {
  body {
    overflow-x: hidden;
    background-attachment: scroll;
  }

  .stage {
    display: flex;
    flex-direction: column;
    min-height: auto;
    overflow: visible;
    padding: 16px 16px 28px;
  }

  .rail {
    order: 3;
    width: 100%;
  }

  .cats {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    width: 100%;
  }

  .cat {
    width: auto;
    flex: 1;
  }

  .cat__label {
    font-size: 8px;
    letter-spacing: 0.06em;
  }

  .note {
    max-width: none;
    font-size: 18px;
  }

  .note--top,
  .note--bottom,
  .note--side {
    transform: none;
  }

  .note--side {
    position: static;
    top: auto;
    right: auto;
    margin: 0 8px 10px;
    text-align: center;
  }

  .note--side .note__arrow {
    display: none;
  }

  .caption {
    position: static;
    order: 6;
    width: 100%;
    padding: 0 8px;
    text-align: center;
    font-size: 16px;
  }

  .caption--left,
  .caption--right {
    left: auto;
    right: auto;
    bottom: auto;
  }

  .caption--left {
    margin-top: 16px;
  }

  .caption--right {
    margin-top: 4px;
  }

  .decor {
    width: min(280px, 70vw);
  }

  .copy {
    order: 1;
    min-height: 0;
    padding: 48px 8px 12px;
  }

  .copy__lead {
    max-width: 100%;
  }

  .hero-woman {
    height: 70vh;
    height: 70svh;
    bottom: auto;
    top: 12vh;
    top: 12svh;
    transform: translate3d(calc(-52% + var(--tx)), var(--ty), 0);
    opacity: 0.95;
  }

  .cta-block {
    order: 2;
    margin: 8px 0 18px;
    width: 100%;
    max-width: 100%;
  }

  .ribbon {
    width: max-content;
    max-width: calc(100% - 24px);
    padding: 8px 22px;
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  .device-col {
    order: 4;
    flex-direction: column;
    padding-top: 8px;
    margin-top: 8px;
  }

  .phone {
    transform: translate3d(var(--tx), var(--ty), 0);
    width: min(300px, 100%);
  }

  .features {
    order: 5;
    margin-top: 20px;
  }

  .features {
    gap: 18px;
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-depth] {
    transform: none !important;
  }

  .hero-woman {
    transform: translate3d(-48%, 0, 0) !important;
  }

  .sparkles span {
    animation: none;
  }
}
