:root {
  /* ---- palette: powder / beige / taupe ---- */
  --cream: #faf5f0;
  --sage: #cda79b;
  --sage-deep: #a97c6f;
  --sage-tint: rgba(205, 167, 155, 0.16);
  --glow: #e6c7ba;
  --glow-soft: rgba(230, 199, 186, 0.32);
  --ink: #382e2a;
  --muted: #948078;
  --line: rgba(43, 36, 31, 0.1);
  --white: #fffdfa;

  /* legacy aliases still referenced in markup/JS */
  --bg: var(--cream);
  --panel: #fffdfa;
  --green: var(--sage);

  /* ---- typography ---- */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --tracking: 0;

  /* ---- shape ---- */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-pill: 999px;

  /* ---- shadow ---- */
  --shadow-card: 0 4px 10px rgba(23, 25, 15, 0.05);
  --shadow-elevated: 0 1px 2px rgba(23, 25, 15, 0.06), 0 8px 20px rgba(23, 25, 15, 0.08);
  --shadow-glow: 0 10px 30px var(--glow-soft), 0 2px 8px rgba(217, 130, 43, 0.18);

  /* ---- motion ---- */
  --duration: 300ms;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  letter-spacing: var(--tracking);
  line-height: 1.3;
}

button,
a {
  font: inherit;
  letter-spacing: inherit;
}

button {
  cursor: pointer;
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease), background var(--duration) var(--ease);
}

button:focus {
  outline: 0;
}

button:focus-visible {
  outline: 1px solid rgba(169, 124, 111, 0.42);
  outline-offset: 2px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: var(--tracking);
}

.app {
  min-height: 100vh;
  padding: 76px 14px 94px;
}

.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(249, 248, 243, 0.9);
  backdrop-filter: blur(16px);
}

.mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--sage);
  font-size: 20px;
  transition: transform var(--duration) var(--ease);
}

.top div {
  display: grid;
  min-width: 0;
}

.top strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.1;
}

.top span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-link {
  min-height: 38px;
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  color: var(--white);
  background: var(--sage);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.top-link:active {
  box-shadow: var(--shadow-glow);
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  border-radius: var(--radius-md);
  color: var(--white);
  background: var(--sage-deep);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform-origin: 50% 32%;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 38%;
  z-index: 1;
  background: linear-gradient(0deg, rgba(246, 241, 234, 1) 0%, rgba(246, 241, 234, 0.99) 35%, rgba(246, 241, 234, 0.92) 55%, rgba(246, 241, 234, 0.6) 75%, rgba(246, 241, 234, 0) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 130px;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20, 24, 18, 0.55) 0%, rgba(20, 24, 18, 0.3) 45%, rgba(20, 24, 18, 0) 100%);
}

.hero > div {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 22px;
  z-index: 2;
}

.hero > div:not(.hero-top) {
  bottom: 106px;
}

.hero span,
.heading span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--glow);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero span {
  color: var(--ink);
}

.hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.3;
  color: var(--ink);
}

.hero p {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 0 0 14px;
}

.trust-row span {
  margin: 0;
  border-left: 2px solid rgba(169, 124, 111, 0.42);
  padding-left: 9px;
  color: var(--sage-deep);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: none;
}

.actions button,
.actions a,
.result button,
.result a,
.detail a,
.wide {
  min-height: 48px;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 13px 18px;
  color: var(--white);
  background: var(--sage);
  font-weight: 700;
  text-align: center;
}

.actions button,
.actions a {
  padding: 13px 10px;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.actions button:active,
.actions a:active,
.result a:active,
.detail a:active,
.wide:active {
  box-shadow: var(--shadow-glow);
}

.actions a {
  color: var(--sage-deep);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(169, 124, 111, 0.35);
}

.actions button.secondary-action {
  color: var(--sage-deep);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(169, 124, 111, 0.35);
}

.wide.secondary,
.result button {
  color: var(--sage-deep);
  border: 1px solid rgba(169, 124, 111, 0.35);
  background: rgba(255, 255, 255, 0.7);
}

.bridge,
.panel {
  margin-top: 14px;
  border-radius: var(--radius-md);
  padding: 22px 20px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.bridge p {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.25;
}

.bridge span,
.result p,
.detail p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.heading h2 {
  margin: 0 0 18px;
  font-size: 21px;
  line-height: 1.2;
}

.chips,
.picker,
.change-list,
.proof {
  display: grid;
  gap: 10px;
}

.chips {
  grid-template-columns: 1fr 1fr;
}

.chips button,
.picker button,
.change-list article,
.proof span {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  color: var(--ink);
  background: var(--white);
  text-align: left;
  line-height: 1.35;
  box-shadow: var(--shadow-card);
}

.picker button.active {
  color: var(--white);
  border-color: var(--sage);
  background: var(--sage);
  box-shadow: var(--shadow-glow);
}

.result,
.detail {
  border-radius: var(--radius-md);
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.85);
}

.result h3,
.detail h2 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.1;
}

.result a,
.result button,
.detail a {
  display: block;
  margin-top: 16px;
  width: 100%;
}

.services {
  display: grid;
  gap: 12px;
}

.home-format-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.home-format-list button {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  min-height: 126px;
  padding: 13px;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 253, 250, 0.98), rgba(246, 241, 234, 0.72));
  text-align: left;
  box-shadow: var(--shadow-card);
}

.home-format-list span {
  color: var(--sage-deep);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.home-format-list strong {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.15;
}

.home-format-list b {
  align-self: end;
  color: var(--sage-deep);
  font-size: 12px;
}

.insurance-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(169, 124, 111, 0.18);
  padding: 16px 18px;
  background: rgba(255, 253, 250, 0.88);
}

.insurance-teaser > div {
  min-width: 0;
}

.insurance-teaser span {
  display: inline-flex;
  margin-bottom: 6px;
  color: var(--sage-deep);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.insurance-teaser h2 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.22;
}

.insurance-teaser .wide {
  width: auto;
  min-height: 40px;
  margin-top: 0;
  padding: 10px 15px;
  font-size: 12px;
}

.mini-marquee {
  width: min(240px, 100%);
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.mini-marquee div {
  display: flex;
  width: max-content;
  gap: 12px;
  animation: marqueeScroll 16s linear infinite;
  will-change: transform;
}

.mini-marquee span {
  flex: 0 0 auto;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.services button {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border: 0;
  border-radius: var(--radius-md);
  padding: 18px;
  color: var(--white);
  text-align: left;
  background: var(--sage-deep);
  box-shadow: var(--shadow-elevated);
}

.services button:active {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.services img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}

.services .service-circle img {
  object-position: 50% 78%;
}

.services .service-individual img {
  object-position: 50% 48%;
}

.services .service-group img {
  object-position: 50% 50%;
}

.services .service-game img {
  object-fit: cover;
  object-position: 50% 66%;
}

.services .service-game {
  min-height: 260px;
}

.services button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(23, 25, 15, 0.75), transparent 70%);
}

.services span,
.services strong,
.services b {
  position: relative;
  z-index: 2;
  display: block;
}

.services span {
  margin-top: 96px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.services strong {
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.08;
}

.services b {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.88);
}

.wide {
  width: 100%;
  margin-top: 12px;
}

.back {
  border: 0;
  margin-bottom: 12px;
  color: var(--sage-deep);
  background: transparent;
  font-weight: 700;
}

.detail img {
  width: 100%;
  max-height: 290px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.detail img.service-circle-image {
  object-position: 50% 72%;
}

.detail img.service-individual-image,
.detail img.service-group-image {
  object-position: 50% 50%;
}

.detail img.service-game-image {
  max-height: 420px;
  object-fit: cover;
  object-position: 50% 66%;
}

.detail > span,
.detail b {
  display: block;
  margin-top: 22px;
  color: var(--sage-deep);
  font-weight: 700;
}

.payment-note {
  position: relative;
  margin: 0 0 22px;
  border: 1px solid rgba(169, 124, 111, 0.18);
  border-radius: var(--radius-md);
  padding: 15px 16px 16px 18px;
  background: linear-gradient(135deg, rgba(205, 167, 155, 0.16), rgba(255, 253, 250, 0.86));
}

.payment-note::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 3px;
  background: var(--sage);
}

.payment-note span {
  display: block;
  margin-bottom: 6px;
  color: var(--sage-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.payment-note p {
  margin: 0;
  color: rgba(56, 46, 42, 0.72);
  font-size: 14px;
  line-height: 1.5;
}

.inline-route {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 20px;
  border: 1px solid rgba(169, 124, 111, 0.28);
  border-radius: var(--radius-pill);
  padding: 12px 14px;
  color: var(--sage-deep);
  background: rgba(255, 253, 250, 0.78);
  font-weight: 800;
  text-align: center;
}

.info-block,
.event-list article {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--white);
}

.info-block h3,
.event-list h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.info-block p {
  margin: 6px 0 0;
}

.event-list {
  display: grid;
  gap: 12px;
}

.event-featured,
.planned-events {
  display: grid;
  gap: 12px;
}

.event-divider {
  height: 1px;
  margin: 8px 0;
  background: var(--line);
}

.planned-events h3 {
  margin: 4px 0 2px;
  font-size: 19px;
}

.event-list small {
  display: block;
  color: var(--sage-deep);
  font-weight: 700;
}

.planned-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--white);
}

.planned-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.18;
}

.planned-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.planned-card a {
  display: block;
  min-height: 42px;
  border-radius: var(--radius-pill);
  padding: 11px 14px;
  color: var(--sage-deep);
  border: 1px solid rgba(169, 124, 111, 0.35);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.event-list span {
  display: inline-flex;
  margin-bottom: 10px;
  border-radius: var(--radius-pill);
  padding: 7px 12px;
  color: var(--sage-deep);
  background: var(--sage-tint);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.event-list b,
.event-list p {
  display: block;
  margin: 8px 0 0;
}

.event-list p {
  color: var(--muted);
  line-height: 1.45;
}

.event-list a {
  display: block;
  min-height: 44px;
  margin-top: 14px;
  border-radius: var(--radius-pill);
  padding: 12px 14px;
  color: var(--white);
  background: var(--sage);
  font-weight: 700;
  text-align: center;
}

.detail a.secondary {
  color: var(--sage-deep);
  border: 1px solid rgba(169, 124, 111, 0.35);
  background: transparent;
}

.certs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.certs img {
  flex: 0 0 172px;
  height: 116px;
  border-radius: var(--radius-md);
  object-fit: contain;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.cert-link {
  border: 0;
  padding: 0;
  color: var(--sage-deep);
  background: transparent;
  font-weight: 800;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.faq-item {
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-q {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
}

.faq-a {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.review-list,
.review-strip {
  display: grid;
  gap: 12px;
}

.review-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.review-card p {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}

.review-card span {
  color: var(--sage-deep);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.nav {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 7px;
  background: rgba(249, 248, 243, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-elevated);
}

.nav button {
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 52px;
  border: 0;
  border-radius: var(--radius-pill);
  color: var(--muted);
  background: transparent;
  font-size: 10px;
  font-weight: 700;
}

.nav button span {
  font-size: 16px;
}

.nav button.active {
  color: var(--white);
  background: var(--sage);
}

.nav button:focus {
  outline: 0;
}

@media (min-width: 720px) {
  body {
    display: grid;
    place-items: start center;
  }

  .app {
    width: min(460px, 100%);
  }

  .top,
  .nav {
    left: 50%;
    width: min(460px, calc(100% - 20px));
    transform: translateX(-50%);
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 19px;
  }

  .heading h2 {
    font-size: 18px;
  }

  .chips,
  .actions {
    grid-template-columns: 1fr;
  }
}

.event-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.event-card span {
  display: inline-flex;
  margin-bottom: 8px;
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  color: var(--sage-deep);
  background: var(--sage-tint);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.event-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.event-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.5;
}

.event-card a {
  display: block;
  min-height: 44px;
  border-radius: var(--radius-pill);
  padding: 12px;
  color: var(--white);
  background: var(--sage);
  font-weight: 700;
  text-align: center;
}

.credentials {
  margin: 0;
  padding: 0;
  list-style: none;
}

.credentials li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
}

.credentials li:last-child {
  border-bottom: 0;
}

.credentials li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--glow);
}

/* subtle layout rhythm: offset alternating cards instead of a flat grid */
.chips button:nth-child(even) {
  margin-top: 14px;
}

.chips button:nth-child(odd) {
  margin-bottom: 14px;
}

.hero-top {
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 2;
  color: var(--white);
}

.hero-top strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.hero-top span {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

/* promise statement block — decorative circular accent like the reference site */
.promise {
  position: relative;
  margin-top: 18px;
  padding: 30px 24px 26px;
  border-radius: var(--radius-md);
  background: var(--sage-tint);
  text-align: center;
  overflow: hidden;
}

.promise::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(205, 167, 155, 0.18);
}

.promise::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(205, 167, 155, 0.12);
}

.promise-mark {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  place-items: center;
  border-radius: 50%;
  background: var(--sage);
  color: var(--white);
  font-size: 18px;
}

.promise p {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.4;
  color: var(--sage-deep);
}

/* more visual rhythm across the home page sections */
#home .panel:nth-of-type(1) {
  background: var(--white);
}

#home .panel:nth-of-type(2) {
  background: var(--cream);
  border: 1px solid var(--line);
  box-shadow: none;
}

#home .panel:nth-of-type(2) .chips button:nth-child(3n) {
  transform: rotate(-1deg);
}

#home .panel:nth-of-type(2) .chips button:nth-child(3n+1) {
  transform: rotate(0.6deg);
}

.bridge {
  position: relative;
  overflow: hidden;
}

.bridge::after {
  content: "";
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--sage-tint);
  z-index: 0;
}

.bridge p,
.bridge span {
  position: relative;
  z-index: 1;
}

/* accordion — "З чим приходять" */
.accordion {
  display: grid;
  gap: 8px;
}

.acc-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
}

.acc-head {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  padding: 15px 16px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-weight: 700;
  font-size: 14.5px;
}

.acc-head b {
  display: grid;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--sage-tint);
  color: var(--sage-deep);
  font-size: 16px;
  font-weight: 500;
  transition: transform var(--duration) var(--ease);
}

.acc-body {
  display: grid;
  grid-template-rows: 0fr;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  transition: grid-template-rows var(--duration) var(--ease);
}

.acc-body-inner {
  overflow: hidden;
  padding: 0 16px;
}

.acc-body p {
  margin: 0 0 10px;
}

.bullet-list p {
  position: relative;
  padding-left: 18px;
}

.bullet-list p::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
}

.acc-item.open .acc-body {
  grid-template-rows: 1fr;
}

.acc-item.open .acc-body-inner {
  padding: 0 16px 14px;
}

.acc-item.open .acc-head b {
  transform: rotate(45deg);
}

/* "don't know how to phrase it" block */
.unclear-block {
  margin-top: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--sage-tint);
  text-align: center;
}

.unclear-block p {
  margin: 0 0 12px;
  color: var(--sage-deep);
  font-weight: 700;
  font-size: 14.5px;
}

.unclear-block a {
  display: inline-block;
  min-height: 42px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  color: var(--white);
  background: var(--sage);
  font-weight: 700;
}

/* small text link under hero, instead of a second equal-weight button */
.link-more {
  display: block;
  width: 100%;
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.contact-secondary a {
  display: block;
  min-height: 44px;
  padding: 12px;
  border: 1px solid rgba(205, 167, 155, 0.35);
  border-radius: var(--radius-pill);
  color: var(--sage-deep);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.contact-legal {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.contact-legal a {
  display: inline;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--muted);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-legal span {
  margin: 0 6px;
}

/* smooth horizontal review carousel at the bottom of each service card */
.review-carousel-wrap {
  margin-top: 28px;
}

.review-carousel-wrap h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.review-carousel {
  display: flex;
  gap: 12px;
  margin: 0 -16px;
  padding: 0 16px 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.review-carousel::-webkit-scrollbar {
  display: none;
}

.review-slide {
  flex: 0 0 82%;
  scroll-snap-align: start;
}

/* stat badges on About screen */
.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}

.stat-badge {
  border-radius: var(--radius-md);
  padding: 16px 14px;
  background: var(--sage-tint);
  text-align: center;
}

.stat-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--sage-deep);
  line-height: 1.1;
}

.stat-badge span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* rich credential items: title + description, used in "Професійна діяльність" */
.cred-item {
  position: relative;
  margin-bottom: 10px;
  padding: 12px 14px 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--white);
}

.cred-item:last-child {
  margin-bottom: 0;
}

.cred-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 2px;
  background: var(--sage);
}

.cred-item strong {
  display: block;
  color: var(--ink);
  font-weight: 750;
  font-size: 14.5px;
}

.cred-item span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.closing-quote {
  margin-top: 20px;
  padding: 18px;
  border-left: 3px solid var(--sage);
  background: rgba(255, 255, 255, 0.5);
}

.closing-quote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-style: normal;
  line-height: 1.5;
  color: var(--sage-deep);
}


/* final polish: quieter service meta, more air, active announcements, richer contact docs */
.detail {
  padding: 20px 16px 22px;
}

.detail img {
  margin-bottom: 22px;
}

.detail > .service-meta {
  margin-top: 0;
  margin-bottom: 20px;
  color: rgba(56, 46, 42, 0.58);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
}

.detail h2 {
  margin: 0 0 20px;
  font-size: 23px;
  line-height: 1.18;
}

.detail > p {
  margin: 0 0 24px;
  color: rgba(56, 46, 42, 0.68);
  font-size: 16px;
  line-height: 1.62;
}

.service-accordion {
  margin-top: 24px;
}

.service-channel {
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid rgba(205, 167, 155, 0.18);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 250, 0.76);
}

.service-channel span {
  display: block;
  margin-bottom: 6px;
  color: rgba(56, 46, 42, 0.5);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.service-channel a,
.service-channel-link {
  position: relative;
  z-index: 3;
  display: inline-block;
  color: var(--sage-deep);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.services .service-channel-link {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

.contact-docs {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.contact-docs p {
  margin: 0 0 2px;
  color: rgba(56, 46, 42, 0.54);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-docs button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  width: 100%;
  border: 1px solid rgba(205, 167, 155, 0.22);
  border-radius: var(--radius-md);
  padding: 15px 16px;
  background: rgba(255, 253, 250, 0.74);
  color: var(--ink);
  text-align: left;
  box-shadow: var(--shadow-card);
}

.contact-docs button span {
  font-weight: 700;
}

.contact-docs button small {
  color: rgba(56, 46, 42, 0.58);
  font-size: 12.5px;
  line-height: 1.4;
}

.contact-docs button b {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: var(--sage-deep);
  font-weight: 600;
}


/* hotfix: readable KVITKA space links only */
.service-channel a {
  width: auto;
  min-height: 0;
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--sage-deep);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.services .service-channel-link {
  display: inline-block;
  width: auto;
  min-height: 0;
  margin-top: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fffdfa;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(255, 253, 250, 0.75);
  text-underline-offset: 5px;
}

.service-channel {
  padding: 16px;
}

.service-channel span {
  margin-bottom: 10px;
}


/* home text-only elements kept only for old fallback */
.text-only-actions span,
.text-only-note {
  display: block;
  min-height: 48px;
  border-radius: var(--radius-pill);
  padding: 13px 18px;
  color: var(--sage-deep);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(205, 167, 155, 0.25);
  font-weight: 600;
  text-align: center;
  pointer-events: none;
}

.text-only-actions span:first-child {
  color: var(--white);
  background: var(--sage);
  border-color: var(--sage);
}

.hero .actions button {
  cursor: pointer;
}

.text-only-note {
  display: inline-block;
  width: auto;
  min-height: 42px;
  padding: 11px 22px;
  color: var(--sage-deep);
  background: rgba(255, 255, 255, 0.62);
}


/* hotfix: service card price is plain text, not a link */
.services .service-channel-link {
  text-decoration: none !important;
  pointer-events: none;
}

.services b {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none !important;
}

/* condensed contact section on Home — icons only, minimal caption */
.contact-mini {
  text-align: center;
}

.icon-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 4px;
}

.icon-row a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--sage-deep);
  font-size: 11px;
  font-weight: 600;
}

.icon-row a span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: rgba(244, 230, 223, 0.72);
  color: var(--sage-deep);
  font-size: 18px;
}

.social-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-mini .contact-legal {
  margin-top: 16px;
}

.community-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  border: 1px solid rgba(169, 124, 111, 0.28);
  border-radius: var(--radius-md);
  padding: 14px;
  color: var(--ink);
  background: rgba(205, 167, 155, 0.13);
  text-align: left;
}

.community-card > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--sage);
  font-size: 18px;
}

.community-card > .social-icon svg {
  color: var(--white);
}

.community-card strong,
.community-card small {
  display: block;
}

.community-card strong {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.1;
}

.community-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

/* ===== micro-interactions & motion polish ===== */

/* screen switch: soft fade + rise instead of an abrupt cut */
@keyframes screenEnter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.screen.screen-enter {
  animation: screenEnter 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* tactile press feedback on every interactive control */
button,
a {
  transition: transform 160ms var(--ease), box-shadow var(--duration) var(--ease), background var(--duration) var(--ease), color var(--duration) var(--ease);
}

button:active,
.icon-row a:active {
  transform: scale(0.96);
}

/* hero photo: slow, subtle Ken Burns breathing zoom */
@keyframes heroBreathe {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

.hero img {
  animation: heroBreathe 14s ease-in-out infinite alternate;
}

/* heading underline that "draws itself" once scrolled into view */
.heading.reveal h2 {
  position: relative;
  display: inline-block;
}

.heading.reveal h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--sage);
  transition: width 700ms cubic-bezier(0.16, 1, 0.3, 1) 120ms;
}

.heading.reveal.revealed h2::after {
  width: 40px;
}

.heading.reveal span {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.heading.reveal.revealed span {
  opacity: 1;
  transform: translateX(0);
}

/* staggered card entrance inside a freshly-shown screen */
.screen-enter .services button,
.screen-enter .accordion .acc-item,
.screen-enter .event-list article,
.screen-enter .change-list article,
.screen-enter .chips button {
  animation: cardRise 480ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.screen-enter .services button:nth-child(1),
.screen-enter .accordion .acc-item:nth-child(1) { animation-delay: 40ms; }
.screen-enter .services button:nth-child(2),
.screen-enter .accordion .acc-item:nth-child(2) { animation-delay: 100ms; }
.screen-enter .services button:nth-child(3),
.screen-enter .accordion .acc-item:nth-child(3) { animation-delay: 160ms; }
.screen-enter .services button:nth-child(4),
.screen-enter .accordion .acc-item:nth-child(4) { animation-delay: 220ms; }
.screen-enter .services button:nth-child(5),
.screen-enter .accordion .acc-item:nth-child(5) { animation-delay: 280ms; }

@keyframes cardRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* accordion chevron: livelier easing + gentle background pulse on open */
.acc-head b {
  transition: transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1), background 300ms var(--ease);
}

.acc-item.open .acc-head b {
  background: var(--sage);
  color: var(--white);
}

/* contact icons: small bounce on press, not just scale */
.icon-row a span {
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1), background 220ms var(--ease);
}

.icon-row a:active span {
  transform: scale(0.88);
  background: var(--sage);
  color: var(--white);
}

/* primary hero CTA: gentle pulse to draw the eye without being noisy */
@keyframes ctaPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(205, 167, 155, 0.45);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(205, 167, 155, 0);
  }
}

.actions button:not(.secondary-action) {
  animation: ctaPulse 3.2s ease-in-out infinite;
}

.actions button:not(.secondary-action):hover,
.actions button:not(.secondary-action):active {
  animation: none;
}

/* respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .hero img,
  .actions button:not(.secondary-action),
  .screen.screen-enter,
  .screen-enter .services button,
  .screen-enter .accordion .acc-item,
  .screen-enter .event-list article,
  .screen-enter .change-list article,
  .screen-enter .chips button {
    animation: none !important;
  }
}

/* ===== running marquee ticker for insurance names ===== */
.insurance-marquee {
  overflow: hidden;
  margin: 16px -16px;
  padding: 14px 0;
  background: var(--sage-tint);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.insurance-track {
  display: flex;
  width: max-content;
  gap: 14px;
  animation: marqueeScroll 16s linear infinite;
}

.insurance-track span {
  flex: 0 0 auto;
  color: var(--sage-deep);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ===== visible stacking cards effect for "Що зміниться" ===== */
.change-list {
  display: block;
  position: relative;
  padding-bottom: 42vh;
}

.change-list article {
  position: sticky;
  top: 92px;
  min-height: 118px;
  margin: 0 0 72px;
  padding: 20px 18px;
  border: 1px solid rgba(169, 138, 114, 0.18);
  border-radius: 28px;
  background: rgba(255, 253, 250, 0.96);
  box-shadow: 0 18px 44px rgba(64, 49, 38, 0.12);
  transform-origin: center top;
  backdrop-filter: blur(10px);
}

.change-list article:nth-child(1) { z-index: 1; transform: scale(1); }
.change-list article:nth-child(2) { z-index: 2; transform: scale(0.985); }
.change-list article:nth-child(3) { z-index: 3; transform: scale(0.97); }
.change-list article:nth-child(4) { z-index: 4; transform: scale(0.955); }
.change-list article:nth-child(5) { z-index: 5; transform: scale(0.94); }
.change-list article:nth-child(6) { z-index: 6; transform: scale(0.925); }

.change-list article:last-child {
  margin-bottom: 0;
}

.change-list article::before {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(169, 138, 114, 0.42);
}

@media (prefers-reduced-motion: reduce) {
  .insurance-track {
    animation: none;
  }
}

/* small delightful sparkle accent near the "Впізнати себе" heading */
#home .panel:nth-of-type(2) .heading span::after {
  content: "✦";
  display: inline-block;
  margin-left: 6px;
  color: var(--glow);
  animation: sparkleTwinkle 2.4s ease-in-out infinite;
}

@keyframes sparkleTwinkle {
  0%, 100% {
    opacity: 0.35;
    transform: scale(0.85) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.15) rotate(15deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  #home .panel:nth-of-type(2) .heading span::after {
    animation: none;
  }
}


/* urgent motion visibility fix */
.screen-enter .panel,
.screen-enter .detail > p,
.screen-enter .detail .faq-item,
.screen-enter .detail .info-block,
.screen-enter .contact-docs button,
.screen-enter .review-card,
.screen-enter .result,
.screen-enter .picker button {
  animation: cardRise 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.screen-enter .panel:nth-of-type(1) { animation-delay: 40ms; }
.screen-enter .panel:nth-of-type(2) { animation-delay: 120ms; }
.screen-enter .panel:nth-of-type(3) { animation-delay: 200ms; }

.change-list article {
  transform-origin: center top;
}

/* scale is handled in the main stacking block above */

@media (prefers-reduced-motion: reduce) {
  .screen-enter .panel,
  .screen-enter .detail > p,
  .screen-enter .detail .faq-item,
  .screen-enter .detail .info-block,
  .screen-enter .contact-docs button,
  .screen-enter .review-card,
  .screen-enter .result,
  .screen-enter .picker button {
    animation: none !important;
  }
}


/* refined organic card overlap: no long sticky pauses */
.change-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  padding-bottom: 10px !important;
}

.change-list article {
  position: relative !important;
  top: auto !important;
  z-index: 1;
  min-height: auto !important;
  margin: 0 !important;
  padding: 18px 18px 20px !important;
  border-radius: 24px !important;
  background: rgba(255, 253, 250, 0.98) !important;
  border: 1px solid rgba(169, 138, 114, 0.16) !important;
  box-shadow: 0 14px 34px rgba(64, 49, 38, 0.08) !important;
  transform: none !important;
}

.change-list article + article {
  margin-top: -16px !important;
}

.change-list article:nth-child(1) { z-index: 1; }
.change-list article:nth-child(2) { z-index: 2; }
.change-list article:nth-child(3) { z-index: 3; }
.change-list article:nth-child(4) { z-index: 4; }
.change-list article:nth-child(5) { z-index: 5; }
.change-list article:nth-child(6) { z-index: 6; }

.change-list article::before {
  width: 28px !important;
  height: 3px !important;
  margin-bottom: 14px !important;
  background: rgba(169, 138, 114, 0.34) !important;
}

.change-list article {
  font-size: 18px !important;
  line-height: 1.42 !important;
}

#home .panel:has(.change-list) {
  padding-bottom: 24px !important;
}


/* final scroll-motion for "Що зміниться": compact, organic, no empty sticky pauses */
.change-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  margin-top: 14px !important;
  padding: 0 0 10px !important;
}

.change-list article {
  position: relative !important;
  top: auto !important;
  min-height: 104px !important;
  margin: 0 !important;
  padding: 16px 18px 18px !important;
  border-radius: 24px !important;
  background: rgba(255, 253, 250, 0.98) !important;
  border: 1px solid rgba(169, 138, 114, 0.16) !important;
  box-shadow: var(--stack-shadow, 0 10px 24px rgba(64, 49, 38, 0.06)) !important;
  opacity: var(--stack-opacity, 0.86) !important;
  transform: translate3d(0, var(--stack-y, 18px), 0) scale(var(--stack-scale, 0.986)) !important;
  transform-origin: center top !important;
  will-change: transform, opacity, box-shadow;
  font-size: 18px !important;
  line-height: 1.42 !important;
}

.change-list article + article {
  margin-top: -18px !important;
}

.change-list article:nth-child(1) { z-index: 1; }
.change-list article:nth-child(2) { z-index: 2; }
.change-list article:nth-child(3) { z-index: 3; }
.change-list article:nth-child(4) { z-index: 4; }
.change-list article:nth-child(5) { z-index: 5; }
.change-list article:nth-child(6) { z-index: 6; }

.change-list article::before {
  width: 26px !important;
  height: 3px !important;
  margin-bottom: 13px !important;
  background: rgba(169, 138, 114, 0.34) !important;
}

#home .panel:has(.change-list) {
  padding-bottom: 22px !important;
}


/* force visible scroll movement; prevent entrance animation from overriding transforms */
.screen-enter .change-list article {
  animation: none !important;
}

.change-list article {
  transition: transform 90ms linear, opacity 90ms linear, box-shadow 90ms linear !important;
  transform: translate3d(0, var(--stack-y, 30px), 0) scale(var(--stack-scale, 0.965)) !important;
  opacity: var(--stack-opacity, 0.72) !important;
  box-shadow: var(--stack-shadow, 0 8px 24px rgba(64, 49, 38, 0.05)) !important;
}

.change-list article + article {
  margin-top: -22px !important;
}


/* FINAL: true CSS stacking cards for "Що зміниться" */
.screen-enter .change-list article {
  animation: none !important;
}

.change-list {
  display: block !important;
  position: relative !important;
  overflow: visible !important;
  margin-top: 16px !important;
  padding: 0 0 18px !important;
}

.change-list article {
  position: sticky !important;
  top: 92px !important;
  min-height: auto !important;
  margin: 0 0 18px !important;
  padding: 18px 18px 20px !important;
  border-radius: 24px !important;
  background: rgba(255, 253, 250, 0.98) !important;
  border: 1px solid rgba(169, 138, 114, 0.18) !important;
  box-shadow: 0 14px 34px rgba(64, 49, 38, 0.09) !important;
  opacity: 1 !important;
  transform-origin: center top !important;
  backdrop-filter: blur(10px);
  font-size: 18px !important;
  line-height: 1.42 !important;
}

.change-list article:nth-child(1) {
  z-index: 1 !important;
  top: 92px !important;
  transform: scale(0.985) !important;
}

.change-list article:nth-child(2) {
  z-index: 2 !important;
  top: 102px !important;
  transform: scale(0.99) !important;
}

.change-list article:nth-child(3) {
  z-index: 3 !important;
  top: 112px !important;
  transform: scale(0.995) !important;
}

.change-list article:nth-child(4) {
  z-index: 4 !important;
  top: 122px !important;
  transform: scale(1) !important;
}

.change-list article:nth-child(5) {
  z-index: 5 !important;
  top: 132px !important;
  transform: scale(1) !important;
}

.change-list article:nth-child(6) {
  z-index: 6 !important;
  top: 142px !important;
  transform: scale(1) !important;
}

.change-list article::before {
  width: 26px !important;
  height: 3px !important;
  margin-bottom: 13px !important;
  background: rgba(169, 138, 114, 0.34) !important;
}

#home .panel:has(.change-list) {
  overflow: visible !important;
  padding-bottom: 28px !important;
}


/* cleaner section headings: label and title should breathe, not collide */
.heading {
  display: grid !important;
  gap: 8px !important;
}

.heading span {
  margin-bottom: 0 !important;
}

.heading.reveal h2 {
  display: block !important;
  width: fit-content;
}

#home .panel .heading h2 {
  margin-bottom: 20px !important;
}

/* final polish: homepage keeps one main photo, secondary blocks feel lighter */
.about-text-card {
  padding: 18px 16px 20px !important;
  background: linear-gradient(180deg, rgba(255, 253, 250, 0.96), rgba(250, 245, 240, 0.74)) !important;
  border: 1px solid rgba(169, 138, 114, 0.14) !important;
}

.about-text-card > p {
  margin-bottom: 16px !important;
  color: var(--muted) !important;
  font-size: 15.5px !important;
  line-height: 1.58 !important;
}

.about-text-card .info-block {
  margin-top: 16px !important;
  border-radius: 18px !important;
  background: rgba(255, 253, 250, 0.72) !important;
}

.change-list article {
  padding: 16px 17px 18px !important;
  border-radius: 22px !important;
  box-shadow: 0 10px 26px rgba(64, 49, 38, 0.075) !important;
  font-size: 16.5px !important;
  line-height: 1.38 !important;
}

.change-list article::before {
  width: 22px !important;
  height: 3px !important;
  margin-bottom: 11px !important;
  opacity: 0.72 !important;
}

.services button::after {
  background: linear-gradient(180deg, rgba(29, 23, 18, 0.08) 0%, rgba(29, 23, 18, 0.18) 42%, rgba(29, 23, 18, 0.66) 100%) !important;
}

.services button span {
  color: rgba(255, 255, 255, 0.84) !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3) !important;
}

.services button strong,
.services button b {
  color: #fffdfa !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45) !important;
}

.services button b {
  opacity: 0.92 !important;
  font-weight: 650 !important;
  text-decoration: none !important;
}

.contact-legal {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: 260px;
  margin: 18px auto 0 !important;
  text-align: initial !important;
}

.contact-legal span {
  display: none !important;
}

.contact-legal a {
  display: grid !important;
  min-height: 44px !important;
  place-items: center;
  padding: 10px 12px !important;
  border: 1px solid rgba(169, 138, 114, 0.22);
  border-radius: 999px !important;
  background: rgba(255, 253, 250, 0.62) !important;
  color: var(--sage-deep) !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(64, 49, 38, 0.04);
}

.contact-legal a:active {
  transform: scale(0.98);
  background: var(--sage-tint) !important;
}

/* 2026-09-03 polish: tighter first screen and clearer visual crop */
.hero {
  min-height: clamp(540px, 72vh, 610px) !important;
}

.hero img {
  object-position: 50% 38% !important;
  filter: saturate(1.04) contrast(1.02) brightness(1.02);
}

.hero::after {
  top: 28% !important;
  background: linear-gradient(
    0deg,
    rgba(246, 241, 234, 1) 0%,
    rgba(246, 241, 234, 0.99) 33%,
    rgba(246, 241, 234, 0.94) 52%,
    rgba(246, 241, 234, 0.7) 72%,
    rgba(246, 241, 234, 0) 100%
  ) !important;
}

.hero > div:not(.hero-top) {
  bottom: 32px !important;
}

.hero h1 {
  max-width: 12.5em;
  font-size: clamp(20px, 6vw, 26px) !important;
  line-height: 1.16 !important;
}

.hero p {
  max-width: 22em;
  font-size: 15px !important;
  line-height: 1.42 !important;
}

.trust-row {
  margin-bottom: 12px !important;
}

.actions {
  align-items: stretch;
}

.actions button,
.actions a {
  min-height: 50px;
  padding-inline: 12px;
  font-size: 14px;
}

.services .service-game {
  min-height: 330px !important;
}

.services .service-game img,
.detail img.service-game-image {
  object-position: 50% 78% !important;
  filter: saturate(1.18) contrast(1.08) brightness(1.06) sepia(0.04);
}

.detail img.service-game-image {
  max-height: none !important;
  aspect-ratio: 4 / 5;
}

.services .service-individual img,
.detail img.service-individual-image {
  object-position: 50% 44% !important;
}

.services .service-group img,
.detail img.service-group-image {
  object-position: 50% 48% !important;
}

.mini-marquee div,
.insurance-track {
  animation-duration: 12s !important;
}


/* 2026-09-04: hero — показати Наталю краще, текст нижче й компактніше */
.hero {
  min-height: clamp(580px, 78vh, 660px) !important;
}

.hero img {
  object-position: 50% 30% !important;
}

.hero::after {
  top: 40% !important;
  background: linear-gradient(
    0deg,
    rgba(246, 241, 234, 1) 0%,
    rgba(246, 241, 234, 0.99) 30%,
    rgba(246, 241, 234, 0.95) 46%,
    rgba(246, 241, 234, 0.72) 66%,
    rgba(246, 241, 234, 0) 100%
  ) !important;
}

.hero > div:not(.hero-top) {
  bottom: 22px !important;
}

.hero h1 {
  max-width: none !important;
  margin-bottom: 10px !important;
  line-height: 1.22 !important;
}

.hero p {
  max-width: none !important;
  margin-bottom: 12px !important;
  line-height: 1.5 !important;
}

.trust-row {
  margin-bottom: 10px !important;
}

.trust-row span {
  font-size: 11px !important;
}

.hero .actions button,
.hero .actions a {
  min-height: 46px;
  font-size: 13px;
}


/* 2026-09-04: документи/сертифікати — клікабельні, відкриваються на весь екран */
.certs img {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(30, 24, 20, 0.92);
  backdrop-filter: blur(4px);
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 253, 250, 0.92);
  font-size: 24px;
  line-height: 1;
}


/* 2026-09-04: "Що зміниться" — повертаємо м'який стек карток, як було,
   але БЕЗ backdrop-filter (він вантажив рендер). Чистий CSS sticky, без JS. */
.change-list,
#home .panel:has(.change-list) {
  overflow: visible !important;
}

.change-list {
  display: block !important;
  position: relative !important;
  margin-top: 16px !important;
  padding: 0 0 12px !important;
}

.change-list article {
  position: sticky !important;
  inset: auto !important;
  z-index: 1;
  min-height: 0 !important;
  margin: 0 0 16px !important;
  padding: 18px 18px 20px !important;
  border-radius: 22px !important;
  background: rgba(255, 253, 250, 0.98) !important;
  border: 1px solid rgba(169, 138, 114, 0.16) !important;
  box-shadow: 0 12px 30px rgba(64, 49, 38, 0.08) !important;
  opacity: 1 !important;
  transform: none !important;
  backdrop-filter: none !important;
  transition: none !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
}

.change-list article:nth-child(1) { top: 90px !important; }
.change-list article:nth-child(2) { top: 98px !important; }
.change-list article:nth-child(3) { top: 106px !important; }
.change-list article:nth-child(4) { top: 114px !important; }
.change-list article:nth-child(5) { top: 122px !important; }
.change-list article:nth-child(6) { top: 130px !important; }

.change-list article:last-child { margin-bottom: 0 !important; }

.change-list article + article { margin-top: 0 !important; }

.change-list article::before {
  content: "" !important;
  display: block !important;
  width: 24px !important;
  height: 3px !important;
  margin-bottom: 12px !important;
  border-radius: 999px !important;
  background: rgba(169, 138, 114, 0.4) !important;
}

/* легше скло на фіксованих панелях */
.top,
.nav {
  backdrop-filter: blur(8px);
}

/* прибрати нескінченний зум фонового фото — теж вантажив композитор */
.hero img {
  animation: none !important;
  transform: none !important;
}

/* 2026-09-04: горизонтальний скрол документів, БЕЗ кнопки.
   Головне — не дати стрічці розперти сторінку (це давало «білий екран»):
   жорсткий overflow-x:hidden на сторінці + окремий скрол-контейнер. */
/* overflow-x: clip (не hidden!) — не дає горизонтального скролу сторінки,
   але НЕ ламає position: sticky для карток "Що зміниться". */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.app {
  max-width: 100vw;
  overflow-x: clip;
}

.certs-heading {
  margin-top: 22px !important;
  margin-bottom: 10px !important;
}

.certs-scroll {
  max-width: 100%;
  margin: 0 -20px;
  padding: 0 20px 6px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.certs-scroll::-webkit-scrollbar {
  height: 4px;
}

.certs-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(169, 124, 111, 0.35);
}

.certs {
  display: flex !important;
  gap: 10px !important;
  width: max-content !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

.certs img {
  flex: 0 0 auto !important;
  width: 188px !important;
  height: 128px !important;
  border-radius: var(--radius-md) !important;
  object-fit: cover;
  background: #fff;
  box-shadow: var(--shadow-card);
  cursor: zoom-in;
}

.certs img[src*="portrait"] {
  width: 96px !important;
  object-fit: cover;
}


/* ============================================================
   2026-09-04 · ЄДИНА ТИПОГРАФІЧНА ІЄРАРХІЯ (по всьому сайту)
   h1 (hero)  → найбільший
   h2 (секції) → менший за hero
   eyebrow ✣  → дрібний лейбл
   card / accordion titles → середній
   body → базовий
   ============================================================ */

.hero h1 {
  font-size: 27px !important;
  line-height: 1.2 !important;
  font-weight: 600 !important;
}

.hero p {
  font-size: 15px !important;
  line-height: 1.5 !important;
}

.hero-top strong { font-size: 17px !important; }

/* секційні заголовки — помітно менші за hero */
.heading h2,
#home .panel .heading h2,
.insurance-teaser h2 {
  font-size: 20px !important;
  line-height: 1.24 !important;
  margin-bottom: 16px !important;
}

.insurance-teaser h2 { margin-bottom: 6px !important; }

/* дрібний надзаголовок */
.heading span,
.insurance-teaser > div > span {
  font-size: 11px !important;
  letter-spacing: 0.04em !important;
}

/* сторінка формату */
.detail h2 {
  font-size: 21px !important;
  line-height: 1.24 !important;
  margin-bottom: 16px !important;
}

.detail > p {
  font-size: 15px !important;
  line-height: 1.6 !important;
}

.detail > .service-meta { font-size: 13px !important; }

/* заголовки всередині карток / блоків */
.info-block h3,
.review-carousel-wrap h3,
.planned-events h3 {
  font-size: 16px !important;
}

.acc-head { font-size: 15px !important; }
.acc-body,
.acc-body p,
.acc-body-inner p { font-size: 14.5px !important; line-height: 1.55 !important; }

.home-format-list strong { font-size: 16px !important; }
.services strong { font-size: 21px !important; }
.review-card p { font-size: 14.5px !important; line-height: 1.55 !important; }
.faq-q { font-size: 16px !important; }
.faq-a { font-size: 14.5px !important; }
.cred-item strong { font-size: 14.5px !important; }

/* невеликі екрани — трохи ужати, але ієрархію зберегти */
@media (max-width: 380px) {
  .hero h1 { font-size: 23px !important; }
  .heading h2,
  #home .panel .heading h2 { font-size: 18px !important; }
  .detail h2 { font-size: 19px !important; }
}


/* 2026-09-04 · другорядна кнопка "Анонси в каналі KVITKA Space" на сторінці формату */
.detail a.channel-cta {
  margin-top: 16px;
  color: var(--sage-deep) !important;
  background: rgba(255, 253, 250, 0.72) !important;
  border: 1px solid rgba(169, 124, 111, 0.4) !important;
  font-weight: 700;
}

.detail a.channel-cta:active {
  background: var(--sage-tint) !important;
  box-shadow: none;
}

/* текст-ціна на картці формату: коли це "анонси…", хай буде трохи менший */
.services b {
  font-size: 13px !important;
  line-height: 1.3 !important;
}


/* ============================================================
   2026-09-04 · КАРТКИ ФОРМАТІВ — усі однакові (розмір, кадр, текст)
   ============================================================ */
.services {
  display: grid !important;
  gap: 14px !important;
}

.services button,
.services .service-game {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  height: 210px !important;
  min-height: 210px !important;
  max-height: 210px !important;
  aspect-ratio: auto !important;
  padding: 16px 18px 18px !important;
  border-radius: 20px !important;
  overflow: hidden !important;
}

.services img {
  object-position: 50% 42% !important;
  filter: none !important;
}

.services .service-circle img  { object-position: 50% 60% !important; }
.services .service-game img     { object-position: 50% 50% !important; filter: saturate(1.04) !important; }
.services .service-couples img  { object-position: 50% 36% !important; }
.services .service-group img    { object-position: 50% 46% !important; }
.services .service-individual img { object-position: 50% 44% !important; }

.services button::after {
  background: linear-gradient(0deg, rgba(23, 25, 15, 0.84) 0%, rgba(23, 25, 15, 0.34) 46%, transparent 80%) !important;
}

.services span,
.services strong,
.services b {
  position: relative;
  z-index: 2;
  display: block;
}

.services span {
  margin: 0 0 6px !important;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

.services strong {
  margin: 0 !important;
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  font-size: 19px !important;
  line-height: 1.16 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.services b {
  margin: 5px 0 0 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
}


/* 2026-09-04 · картки "Оберіть, з чого почати" на головній — рівні */
.home-format-list button {
  display: flex !important;
  flex-direction: column !important;
  height: 138px !important;
  min-height: 138px !important;
  gap: 6px !important;
}

.home-format-list strong {
  font-size: 15px !important;
  line-height: 1.14 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.home-format-list b {
  margin-top: auto !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
}


/* ============================================================
   2026-09-04 · нижня навігація — панель по низу екрана,
   напівпрозоре скло, без "висіння"
   ============================================================ */
.app {
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
}

.nav {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  transform: none !important;
  width: auto !important;
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 6px !important;
  border: 0 !important;
  border-top: 1px solid rgba(169, 138, 114, 0.18) !important;
  border-radius: 0 !important;
  padding: 8px 14px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
  background: rgba(250, 245, 240, 0.72) !important;
  backdrop-filter: blur(22px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.5) !important;
  box-shadow: 0 -6px 24px rgba(64, 49, 38, 0.06) !important;
}

.nav button {
  min-height: 46px !important;
  border-radius: 14px !important;
  gap: 3px !important;
}

.nav button span {
  font-size: 15px !important;
}

.nav button.active {
  color: var(--white) !important;
  background: var(--sage) !important;
}

@media (min-width: 720px) {
  .nav {
    left: 50% !important;
    right: auto !important;
    width: min(460px, 100%) !important;
    transform: translateX(-50%) !important;
    border-left: 1px solid rgba(169, 138, 114, 0.18) !important;
    border-right: 1px solid rgba(169, 138, 114, 0.18) !important;
    border-radius: 18px 18px 0 0 !important;
  }
}


/* ============================================================
   2026-09-04 · фото на сторінці формату — усі однакового розміру
   (як на індивідуальній), object-fit: cover + точка кадру під людей
   ============================================================ */
.detail img.service-detail-image {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 3 / 2 !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  margin-bottom: 20px !important;
  border-radius: 18px !important;
  object-fit: cover !important;
  filter: none !important;
}

/* ── детальні фото (кадр 3:2) ── */
.detail img.service-individual-image { object-position: 50% 38% !important; }
.detail img.service-group-image      { object-position: 50% 44% !important; }
.detail img.service-circle-image     { object-position: 50% 64% !important; }
.detail img.service-game-image       { object-position: 50% 50% !important; }
.detail img.service-couples-image    { object-position: 50% 38% !important; }

/* ── картки форматів (кадр ширший за фото → підбираємо, щоб не різало голови) ── */
.services .service-individual img { object-position: 50% 40% !important; }
.services .service-group img      { object-position: 50% 38% !important; }
.services .service-circle img     { object-position: 50% 68% !important; }
.services .service-game img       { object-position: 50% 22% !important; }
.services .service-couples img    { object-position: 50% 34% !important; }


/* ============================================================
   2026-09-04 · ЄДИНА СИСТЕМА ФОРМ (усе до деталей)
   • Кнопки (будь-яка дія)         → пігулка (999px)
   • Картки / панелі / блоки / фото → 18px
   • Дрібні смужки (кваліфікація)   → 12px
   • Іконки, «мітка», +/–           → коло
   ============================================================ */

/* --- КНОПКИ: пігулка --- */
.top-link,
.actions button,
.actions a,
.wide,
.wide.secondary,
.result button,
.result a,
.detail a,
.detail a.channel-cta,
.unclear-block a,
.nav button,
.picker button,
.contact-legal a,
.planned-card a,
.event-card a,
.event-list a,
.cert-link,
.lightbox-close {
  border-radius: 999px !important;
}

/* --- КАРТКИ / ПАНЕЛІ / ФОТО: 18px --- */
.panel,
.bridge,
.services button,
.services .service-card,
.services .service-game,
.home-format-list button,
.change-list article,
.acc-item,
.review-card,
.review-slide,
.event-card,
.planned-card,
.info-block,
.community-card,
.result,
.detail,
.payment-note,
.unclear-block,
.insurance-teaser,
.about-text-card,
.detail img,
.detail img.service-detail-image,
.certs img,
.certs-scroll,
.lightbox img {
  border-radius: 18px !important;
}

/* --- ДРІБНІ СМУЖКИ: 12px --- */
.cred-item,
.stat-badge,
.closing-quote {
  border-radius: 12px !important;
}

/* --- КОЛА --- */
.mark,
.icon-row a span,
.community-card > span,
.acc-head b,
.event-list span,
.event-card span {
  border-radius: 999px !important;
}

/* --- нижня панель навігації: скруглена лише зверху --- */
.nav {
  border-radius: 20px 20px 0 0 !important;
}
