/* ============================================================
   ПроSто — лендинг з планування
   Design system (locked from ТЗ):
   accent #7A48A7 · lilac #F4EBF9 · graphite #474747
   ink #333333 · white #FBFBFB
   Gilroy (body/headings) + Roslindale (accent italic)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* brand */
  --accent: #7a48a7;
  --accent-deep: #5f3785;
  --accent-soft: #b98fd6;
  --lilac: #f4ebf9;
  --lilac-deep: #e9dbf3;
  --brown: #333333;
  --footer-bg: #333333;
  --graphite: #474747;
  --graphite-soft: #6b6b6b;
  --white: #fbfbfb;
  --pure: #ffffff;

  /* semantic */
  --bg: var(--white);
  --bg-alt: var(--lilac);
  --surface: #ffffff;
  --text: var(--graphite);
  --text-muted: #7a7a7a;
  --text-on-accent: var(--white);
  --border: rgba(51, 51, 51, 0.1);
  --border-lilac: rgba(122, 72, 167, 0.16);

  /* radius */
  --r-xs: 12px;
  --r-sm: 18px;
  --r-md: 26px;
  --r-lg: 36px;
  --r-xl: 48px;
  --r-pill: 999px;

  /* spacing rhythm (4/8) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* shadows — soft, violet-tinted */
  --shadow-sm: 0 4px 16px rgba(51, 51, 51, 0.06);
  --shadow-md: 0 14px 40px rgba(97, 55, 133, 0.1);
  --shadow-lg: 0 30px 70px rgba(97, 55, 133, 0.16);
  --glow: 0 0 60px rgba(122, 72, 167, 0.45);

  /* motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 260ms;

  --container: 1180px;
  --nav-h: 76px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: "Gilroy", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Typography ---------- */
h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--brown);
}
.accent-word {
  font-family: "Roslindale", "Gilroy", serif;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0;
  color: var(--accent);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}
.section {
  padding-block: clamp(72px, 11vw, 132px);
  position: relative;
}
.section--lilac {
  background: var(--lilac);
}
.section--graphite {
  background: var(--graphite);
  color: var(--white);
}
.section--graphite h2,
.section--graphite h3 {
  color: var(--white);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 8px 16px;
  border: 1px solid var(--border-lilac);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
}
.section--graphite .eyebrow {
  color: var(--accent-soft);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}
.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 6vw, 68px);
}
.section-head h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  margin-top: var(--s-4);
}
.section-head p {
  margin-top: var(--s-4);
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 56ch;
}
.section--graphite .section-head p {
  color: rgba(251, 251, 251, 0.72);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 52px;
  padding: 15px 30px;
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.02em;
  border-radius: var(--r-pill);
  transition: transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), background var(--dur) var(--ease),
    color var(--dur) var(--ease);
  will-change: transform;
  text-align: center;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.btn--primary {
  background: var(--accent);
  color: var(--text-on-accent);
  box-shadow: 0 12px 28px rgba(122, 72, 167, 0.32);
}
.btn--primary:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(122, 72, 167, 0.42);
}
.btn--primary:active {
  transform: translateY(0);
}
.btn--ghost {
  background: var(--pure);
  color: var(--brown);
  border: 1px solid var(--border-lilac);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--accent);
}
.btn--light {
  background: var(--white);
  color: var(--accent-deep);
}
.btn--light:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
/* однакові кнопки карток; фіолетові при наведенні */
.btn--outline {
  background: var(--pure);
  color: var(--brown);
  border: 1px solid var(--border-lilac);
  box-shadow: var(--shadow-sm);
}
.btn--outline:hover {
  background: var(--accent);
  color: var(--text-on-accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(122, 72, 167, 0.34);
}
.btn--lg {
  min-height: 60px;
  padding: 18px 40px;
  font-size: 1rem;
}
.btn--block {
  width: 100%;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease);
}
.header.is-scrolled {
  background: rgba(251, 251, 251, 0.82);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  width: 100%;
}
.brand {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--brown);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand__logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}
.brand__logo--footer {
  height: 60px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  /* опустити на рівень словесної частини логотипа (плюмбоб зверху) */
  margin-top: 22px;
  /* вирівняти по правому краю */
  margin-left: auto;
}
.nav__accent {
  color: var(--accent) !important;
  font-weight: 700 !important;
}
.nav__accent:hover {
  background: rgba(122, 72, 167, 0.1);
}
.nav a {
  padding: 9px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--graphite);
  border-radius: var(--r-pill);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav a:hover {
  color: var(--accent);
  background: rgba(122, 72, 167, 0.08);
}
.nav a.is-active {
  color: var(--accent);
  font-weight: 600;
}
.header__cta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: 22px;
}
.header__cta .btn {
  min-height: 46px;
  padding: 11px 22px;
}
.burger {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: var(--r-sm);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: var(--pure);
  border: 1px solid var(--border-lilac);
}
.burger span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--brown);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 96px));
  padding-bottom: clamp(72px, 10vw, 128px);
  background: radial-gradient(
      120% 100% at 78% 12%,
      var(--lilac) 0%,
      rgba(244, 235, 249, 0) 58%
    ),
    var(--white);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__content {
  max-width: 640px;
}
.hero h1 {
  font-size: clamp(2.7rem, 6.6vw, 5.2rem);
  line-height: 0.98;
}
.hero h1 .accent-word {
  display: inline-block;
}
.hero__lead {
  margin-top: clamp(20px, 3vw, 30px);
  font-size: clamp(1.24rem, 2vw, 1.48rem);
  color: var(--graphite);
  max-width: 46ch;
  line-height: 1.55;
}
.hero__actions {
  margin-top: clamp(28px, 4vw, 40px);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  align-items: center;
}
.hero__meta {
  margin-top: clamp(32px, 4vw, 44px);
  display: flex;
  gap: clamp(24px, 4vw, 44px);
  flex-wrap: wrap;
}
.hero__meta div {
  display: flex;
  flex-direction: column;
}
.hero__meta b {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--accent);
  font-feature-settings: "tnum" 1;
}
.hero__meta span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* plumbob stage */
.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 440px;
}
.plumbob-stage {
  position: relative;
  width: min(220px, 60%);
  aspect-ratio: 0.46 / 1;
  max-height: 480px;
  display: grid;
  place-items: center;
}
.plumbob-stage::before {
  content: "";
  position: absolute;
  inset: 8% 0;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(122, 72, 167, 0.5) 0%,
    rgba(122, 72, 167, 0.12) 42%,
    rgba(122, 72, 167, 0) 70%
  );
  filter: blur(6px);
  animation: glowPulse 3.6s var(--ease) infinite;
  z-index: 0;
}
.plumbob {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 26px 40px rgba(97, 55, 133, 0.4));
  animation: floaty 5.5s ease-in-out infinite;
}
.hero__chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border-lilac);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--brown);
  white-space: nowrap;
}
.hero__chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(122, 72, 167, 0.16);
}
.hero__chip--1 {
  top: 10%;
  left: -6%;
  animation: floaty 6s ease-in-out infinite;
}
.hero__chip--2 {
  bottom: 14%;
  right: -4%;
  animation: floaty 6.6s ease-in-out 0.6s infinite;
}
.hero__folder {
  position: absolute;
  width: 84px;
  z-index: 2;
  filter: drop-shadow(0 16px 26px rgba(97, 55, 133, 0.24));
}
.hero__folder--1 {
  top: 4%;
  right: 6%;
  transform: rotate(-10deg);
  animation: floaty 7s ease-in-out 0.3s infinite;
}
.hero__folder--2 {
  bottom: 2%;
  left: 2%;
  width: 70px;
  transform: rotate(9deg);
  animation: floaty 6.2s ease-in-out 0.9s infinite;
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(0.94);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0) rotate(var(--rot, 0deg));
  }
  50% {
    transform: translateY(-14px) rotate(var(--rot, 0deg));
  }
}
.hero__folder--1 {
  --rot: -10deg;
}
.hero__folder--2 {
  --rot: 9deg;
}

/* trusted strip */
.hero__note {
  margin-top: clamp(48px, 7vw, 80px);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.96rem;
  color: var(--text-muted);
}
.hero__note svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex: none;
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}
.about__media {
  position: relative;
}
.about__photo {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  background: var(--lilac-deep);
  border: 3px solid var(--accent);
}
.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about__sticker {
  position: absolute;
  z-index: 2;
  filter: drop-shadow(0 12px 20px rgba(51, 51, 51, 0.2));
}
.about__sticker--clip {
  width: 90px;
  top: -46px;
  right: 34px;
  transform: rotate(6deg);
}
.about__sticker--tape {
  width: 150px;
  bottom: -22px;
  left: -26px;
  transform: rotate(-8deg);
  opacity: 0.96;
}
/* компактна glass-плашка — під основним текстом */
.about__badge {
  display: inline-flex;
  flex-direction: column;
  margin-top: var(--s-5);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px) saturate(1.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  box-shadow: 0 8px 24px rgba(97, 55, 133, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.7);
  max-width: 165px;
}
.about__badge b {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-deep);
  line-height: 1.2;
}
.about__badge span {
  font-size: 0.74rem;
  color: var(--graphite);
  opacity: 0.8;
}
.about__content h2 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  margin: var(--s-4) 0 var(--s-5);
}
.about__content p {
  margin-bottom: var(--s-4);
  color: var(--graphite);
  font-size: 1.08rem;
}
.about__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--s-6);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  background: var(--lilac);
  border: 1px solid var(--border-lilac);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-deep);
}

/* ---------- Product (Навчись планувати) ---------- */
/* заголовок «Простори у Notion» — керований перенос */
.spaces__title {
  text-wrap: balance;
}
.br-mobile {
  white-space: pre;
}
.section-head--center {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.product__subtitle {
  margin-top: var(--s-3) !important;
  margin-inline: auto;
  font-size: 1.2rem;
  color: var(--accent-deep);
}
.product__subtitle em {
  font-family: "Roslindale", "Gilroy", serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1.45rem;
}

.product__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

/* прозорі PNG — без рамки й білого фону */
.product__previews {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.86;
}
.preview {
  position: absolute;
  width: auto;
  filter: drop-shadow(0 18px 34px rgba(97, 55, 133, 0.22));
}
.preview--1 {
  width: 62%;
  top: 0;
  left: 0;
  --rot: -5deg;
  z-index: 2;
  animation: previewFloat 7s ease-in-out infinite;
}
.preview--2 {
  width: 60%;
  top: 26%;
  right: 0;
  --rot: 4deg;
  z-index: 3;
  animation: previewFloat 8.2s ease-in-out 0.5s infinite;
}
.preview--3 {
  width: 56%;
  bottom: 0;
  left: 14%;
  --rot: -2deg;
  z-index: 4;
  animation: previewFloat 6.6s ease-in-out 1s infinite;
}
/* легкий рух фотографій */
@keyframes previewFloat {
  0%,
  100% {
    transform: rotate(var(--rot)) translateY(0);
  }
  50% {
    transform: rotate(calc(var(--rot) + 1.2deg)) translateY(-12px);
  }
}

/* блок купівлі — під фотографіями */
.buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s-5);
  margin-top: var(--s-8);
}
.buy__price {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.buy__price b {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--accent-deep);
  font-feature-settings: "tnum" 1;
}
.buy__price span {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* CTA з glow-анімацією */
.btn--glow {
  position: relative;
  animation: btnGlow 2.6s var(--ease) infinite;
}
.btn--glow::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: var(--r-pill);
  background: linear-gradient(120deg, var(--accent), var(--accent-soft), var(--accent));
  filter: blur(12px);
  opacity: 0.55;
  z-index: -1;
  animation: btnGlow 2.6s var(--ease) infinite;
}
.btn--glow:hover {
  animation-play-state: paused;
}
@keyframes btnGlow {
  0%,
  100% {
    box-shadow: 0 12px 28px rgba(122, 72, 167, 0.34),
      0 0 0 0 rgba(122, 72, 167, 0.45);
  }
  50% {
    box-shadow: 0 16px 38px rgba(122, 72, 167, 0.5),
      0 0 34px 6px rgba(122, 72, 167, 0.4);
  }
}

.benefits {
  list-style: none;
  display: grid;
  gap: var(--s-3);
}
.benefits li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: var(--r-sm);
  background: var(--pure);
  border: 1px solid var(--border);
  transition: transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.benefits li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}
.benefits .emoji {
  font-size: 1.4rem;
  line-height: 1;
  flex: none;
  width: 34px;
  display: grid;
  place-items: center;
  align-self: center;
}
.benefits b {
  color: var(--brown);
  font-weight: 700;
}
.benefits > li > span:last-child {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* ---------- Notion space (cards) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 28px);
}
.space-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px 28px;
  border-radius: var(--r-lg);
  background: var(--pure);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
  overflow: hidden;
}
.space-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(122, 72, 167, 0.12),
    rgba(122, 72, 167, 0)
  );
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.space-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.space-card:hover::after {
  opacity: 1;
}
.space-card--featured {
  background: linear-gradient(180deg, var(--lilac) 0%, var(--pure) 70%);
  border-color: var(--border-lilac);
}
.space-card__icon {
  width: 84px;
  margin-bottom: var(--s-5);
  filter: drop-shadow(0 14px 22px rgba(97, 55, 133, 0.22));
}
.space-card__badge {
  position: absolute;
  top: 22px;
  right: 22px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(122, 72, 167, 0.1);
  padding: 6px 12px;
  border-radius: var(--r-pill);
}
.space-card h3 {
  font-size: 1.32rem;
  margin-bottom: var(--s-3);
}
.space-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: var(--s-5);
  flex: 1;
}
.space-card .btn {
  align-self: flex-start;
}

/* ---------- ПроSто Notion (coming soon) ---------- */
.soon {
  position: relative;
  overflow: hidden;
}
.soon__card {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding: clamp(36px, 5vw, 68px);
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, #4f4f4f 0%, #363636 100%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.soon__card::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(122, 72, 167, 0.55),
    rgba(122, 72, 167, 0) 68%
  );
  filter: blur(12px);
  pointer-events: none;
}
.soon__content {
  position: relative;
  z-index: 1;
}
.soon__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
  padding: 8px 16px;
  border: 1px solid rgba(185, 143, 214, 0.4);
  border-radius: var(--r-pill);
  margin-bottom: var(--s-5);
}
.soon__tag i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-soft);
  animation: glowPulse 2.4s ease-in-out infinite;
}
.soon__logo {
  width: clamp(230px, 30vw, 340px);
  height: auto;
}
.soon__card p {
  color: rgba(251, 251, 251, 0.74);
  margin: var(--s-4) 0 var(--s-6);
  max-width: 52ch;
}
.soon__visual {
  position: relative;
  display: grid;
  place-items: center;
}
.soon__plumbob {
  width: 130px;
  filter: drop-shadow(0 20px 40px rgba(122, 72, 167, 0.6));
  animation: floaty 5s ease-in-out infinite;
}
.soon__visual::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(122, 72, 167, 0.5),
    rgba(122, 72, 167, 0) 70%
  );
  animation: glowPulse 3.6s ease-in-out infinite;
}

/* ---------- Contact ---------- */
.contact__card {
  position: relative;
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
  padding: clamp(32px, 3.6vw, 52px) clamp(28px, 5vw, 64px);
  border-radius: var(--r-xl);
  background: radial-gradient(
      120% 130% at 50% 0%,
      var(--lilac) 0%,
      rgba(244, 235, 249, 0) 60%
    ),
    var(--pure);
  border: 1px solid var(--border-lilac);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.contact__card h2 {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
}
.contact__card p {
  margin: var(--s-5) auto var(--s-6);
  color: var(--text-muted);
  max-width: 52ch;
  font-size: 1.1rem;
}
.contact__inner {
  position: relative;
  z-index: 1;
}
.contact__deco {
  position: absolute;
  z-index: 0;
  filter: drop-shadow(0 12px 20px rgba(51, 51, 51, 0.16));
  pointer-events: none;
}
.contact__deco--paperclips {
  width: 96px;
  top: 26px;
  left: 30px;
  transform: rotate(-12deg);
}
.contact__deco--folder {
  width: 78px;
  bottom: 24px;
  right: 34px;
  transform: rotate(10deg);
}

/* ---------- Legal page (оферта) ---------- */
.legal {
  padding-top: calc(var(--nav-h) + clamp(32px, 5vw, 56px));
  padding-bottom: clamp(64px, 8vw, 104px);
  background: radial-gradient(
      120% 60% at 50% 0%,
      var(--lilac) 0%,
      rgba(244, 235, 249, 0) 55%
    ),
    var(--white);
}
.legal .container {
  max-width: 860px;
}
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--dur) var(--ease), color var(--dur) var(--ease);
}
.legal__back:hover {
  gap: 12px;
  color: var(--accent-deep);
}
.legal__back svg {
  width: 18px;
  height: 18px;
}
.legal__head {
  margin: var(--s-5) 0 clamp(32px, 5vw, 52px);
  padding-bottom: clamp(24px, 3vw, 36px);
  border-bottom: 1px solid var(--border-lilac);
}
.legal__head h1 {
  margin-top: var(--s-4);
  font-size: clamp(2rem, 5vw, 3.2rem);
}
.legal__subtitle {
  margin-top: var(--s-3);
  font-size: 1.15rem;
  color: var(--text-muted);
}
.legal__body {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--graphite);
}
.legal__body h2 {
  margin: clamp(36px, 5vw, 52px) 0 var(--s-4);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.legal__body p {
  margin-bottom: var(--s-4);
  text-wrap: pretty;
}
.legal__body ul {
  margin: 0 0 var(--s-4) 0;
  padding-left: 22px;
  display: grid;
  gap: 6px;
}
.legal__body li {
  padding-left: 4px;
}
.legal__body li::marker {
  color: var(--accent);
}
.legal__requisites {
  margin-top: var(--s-5);
  padding: 22px 26px;
  border-radius: var(--r-md);
  background: var(--lilac);
  border: 1px solid var(--border-lilac);
}
.legal__requisites p {
  margin-bottom: 4px;
}
.legal__requisites p:last-child {
  margin-bottom: 0;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--footer-bg);
  color: rgba(251, 251, 251, 0.78);
  padding-block: clamp(48px, 6vw, 72px) 32px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid rgba(251, 251, 251, 0.12);
}
.footer .brand {
  color: var(--white);
  margin-bottom: var(--s-4);
}
.footer__about {
  max-width: 38ch;
  font-size: 0.98rem;
  line-height: 1.6;
}
.footer h4 {
  color: var(--white);
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--s-4);
  font-weight: 700;
}
.footer__links {
  list-style: none;
  display: grid;
  gap: 12px;
}
.footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  color: rgba(251, 251, 251, 0.78);
  transition: color var(--dur) var(--ease);
}
.footer__links a:hover {
  color: var(--white);
}
.footer__links svg {
  width: 18px;
  height: 18px;
  color: var(--accent-soft);
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-4);
  padding-top: 28px;
  font-size: 0.86rem;
  color: rgba(251, 251, 251, 0.56);
}
.footer__legal a:hover {
  color: var(--white);
}
.footer__legal .footer__legal-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ---------- Плавний перехід між сторінками ----------
   Тільки opacity: transform на <body> зробив би його containing block
   для position:fixed хедера і той би стрибав. */
@keyframes pageIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
body {
  animation: pageIn 320ms var(--ease) both;
}
body.is-leaving {
  opacity: 0;
  transition: opacity 200ms var(--ease);
  animation: none;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Mobile nav panel ---------- */
.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(51, 51, 51, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 340ms var(--ease), visibility 340ms var(--ease);
  z-index: 90;
}
.nav-scrim.is-open {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --nav-h: 70px;
  }
  .nav a {
    padding: 8px 11px;
    font-size: 0.88rem;
  }
  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 880px) {
  .burger {
    display: flex;
  }
  /* Панель НЕ перемикається через display — з display:none анімувати
     неможливо, тому вона просто «вистрибувала». Ховаємо через
     visibility + transform, тож transform плавно анімується. */
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(320px, 84vw);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: calc(var(--nav-h) + 12px) 20px 24px;
    background: var(--pure);
    box-shadow: -20px 0 60px rgba(51, 51, 51, 0.2);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 340ms var(--ease), visibility 340ms var(--ease);
    will-change: transform;
    z-index: 95;
  }
  .nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }
  .nav a {
    padding: 14px 16px;
    font-size: 0.95rem;
    border-radius: var(--r-sm);
  }
  .nav,
  .header__cta {
    margin-top: 0;
  }
  /* перенос після «свій» */
  .br-mobile {
    display: block;
    height: 0;
  }
  .hero__grid,
  .about__grid,
  .product__grid {
    grid-template-columns: 1fr;
  }
  .hero__visual {
    order: -1;
    min-height: 340px;
  }
  /* плашки не мають виходити за екран */
  .hero__chip--1 {
    left: 0;
  }
  .hero__chip--2 {
    right: 0;
  }

  /* трохи більші заголовки на мобільному (крім Hero) */
  .section-head h2,
  .about__content h2,
  .contact__card h2 {
    font-size: clamp(2.3rem, 8vw, 3rem);
  }
  .space-card h3 {
    font-size: 1.45rem;
  }
  .hero__meta {
    justify-content: flex-start;
  }
  .about__media {
    max-width: 460px;
    margin-inline: auto;
  }
  .product__previews {
    max-width: 460px;
    margin-inline: auto;
  }
  .benefits {
    max-width: 560px;
    margin-inline: auto;
  }
  .soon__card {
    grid-template-columns: 1fr;
    text-align: center;
    /* глоу не має обрізатися */
    overflow: visible;
  }
  /* світіння рівно за plumbob (він зверху на моб.) */
  .soon__card::before {
    inset: -8% auto auto 50%;
    translate: -50% 0;
    width: 86%;
    filter: blur(30px);
  }
  /* секція не повинна підрізати світіння наступним блоком */
  .soon {
    overflow: visible;
    z-index: 2;
    padding-bottom: clamp(96px, 14vw, 140px);
  }
  .soon__tag {
    margin-inline: auto;
  }
  .soon__logo {
    margin-inline: auto;
  }
  .soon__card p {
    margin-inline: auto;
  }
  .soon__visual {
    order: -1;
  }
  .cards {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-inline: auto;
  }
}

@media (max-width: 700px) {
  /* декор лишається, але виноситься в кути й не перекриває текст */
  .contact__card {
    padding: 74px clamp(20px, 6vw, 32px) 84px;
  }
  .contact__deco--paperclips {
    width: 54px;
    top: 16px;
    left: 16px;
  }
  .contact__deco--folder {
    width: 46px;
    bottom: 18px;
    right: 18px;
  }
}

@media (max-width: 560px) {
  .hero__actions .btn {
    width: 100%;
  }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .buy {
    flex-direction: column;
    gap: var(--s-4);
  }
  .buy .btn {
    width: 100%;
  }
  .about__badge {
    right: 8px;
    bottom: 12px;
  }
  .brand__logo {
    height: 44px;
  }

  /* компактніший футер */
  .footer {
    padding-block: 36px 24px;
  }
  /* дві колонки посилань поруч — компактніше */
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    padding-bottom: 22px;
  }
  .footer__brand-col {
    grid-column: 1 / -1;
  }
  .footer__about {
    max-width: 100%;
  }
  .brand__logo--footer {
    height: 48px;
  }
  .footer__about {
    font-size: 0.92rem;
  }
  .footer h4 {
    margin-bottom: 10px;
  }
  .footer__links {
    gap: 8px;
  }
  .footer__legal {
    flex-direction: column;
    gap: 10px;
    padding-top: 18px;
    font-size: 0.8rem;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  body,
  body.is-leaving {
    animation: none;
    transition: none;
    opacity: 1;
  }
}
