@font-face {
  font-family: Dayli Display;
  src: url('assets/playfair-display-cyrillic-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Dayli Display;
  src: url('assets/playfair-display-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303,
    U+0308, U+0329, U+2000-206F, U+2074, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Palette from apps/web/src/dayli-theme.ts (DAYLI_LIGHT / DAYLI_DARK). */
:root {
  color-scheme: light;
  --page: #fdf5f1;
  --surface: #fffdfc;
  --surface-alt: #f7eae5;
  --surface-glass: rgba(255, 253, 252, 0.9);
  --text: #302829;
  --muted: #706465;
  --accent: #925a50;
  --line: #eaddd8;
  --border: #927f79;
  --cta-start: #f0c9bd;
  --cta-end: #d9a393;
  --cta-text: #3a1d1b;
  --dark-page: #30221e;
  --dark-surface: #3b2c28;
  --dark-text: #faf1ed;
  --dark-muted: #cbb7b1;
  --dark-border: #5a4640;
  --danger: #a2444c;
  --success: #365e45;
  --shadow: 0 18px 52px rgba(54, 35, 31, 0.14);
  --shadow-soft: 0 8px 24px rgba(54, 35, 31, 0.08);
  --display: 'Dayli Display', Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1180px;
  --gutter: 16px;
  --radius: 20px;
}
@media (min-width: 761px) {
  :root {
    --gutter: clamp(24px, 4vw, 56px);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible,
summary:focus-visible,
button:focus-visible,
[tabindex='0']:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}
[hidden] {
  display: none !important;
}
[id] {
  scroll-margin-top: 84px;
}
h1,
h2,
h3,
p,
figure,
blockquote {
  margin: 0;
}
h1,
h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h3 {
  line-height: 1.3;
}
svg {
  width: 24px;
  height: 24px;
  flex: none;
}
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.skip-link {
  position: absolute;
  z-index: 20;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.skip-link:focus {
  transform: none;
}
.wrap {
  width: min(calc(100% - 2 * var(--gutter)), var(--wrap));
  margin-inline: auto;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 13px 22px;
  border-radius: 14px;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid transparent;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}
.button svg {
  width: 19px;
  height: 19px;
}
.button.small {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 12px;
}
.button.wide {
  width: 100%;
}
.primary {
  background: linear-gradient(135deg, var(--cta-start), var(--cta-end));
  color: var(--cta-text);
  border-color: rgba(146, 127, 121, 0.55);
  box-shadow: 0 6px 18px rgba(217, 163, 147, 0.35);
}
.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(217, 163, 147, 0.45);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
}
.text-link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.15s ease;
}
.text-link:hover svg {
  transform: translateX(3px);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(253, 245, 241, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  flex: none;
}
.logo img {
  width: 128px;
  height: 36px;
  object-fit: contain;
}
.site-nav {
  display: flex;
  gap: clamp(18px, 2.6vw, 36px);
}
.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 650;
  color: var(--muted);
}
.site-nav a:hover {
  color: var(--accent);
}

/* Section scaffolding */
.section {
  padding-block: clamp(64px, 9vw, 120px);
}
.section-head {
  max-width: 720px;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.kicker {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.section-head h2 {
  margin-top: 12px;
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.1;
}
.section-head > p:not(.kicker) {
  margin-top: 16px;
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--muted);
}
.section-head > p a,
.section-cta a:not(.button),
.answers details p a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(32px, 6vw, 80px) clamp(40px, 5vw, 64px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(146, 90, 80, 0.15);
}
.hero h1 {
  margin-block: 22px 20px;
  font-size: clamp(38px, 5.6vw, 72px);
  line-height: 1.04;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.lead {
  max-width: 520px;
  font-size: clamp(16px, 1.55vw, 19px);
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  margin-top: 30px;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-points svg,
.pricing-notes svg,
.price-card li svg {
  width: 18px;
  height: 18px;
  color: var(--success);
}

.hero-art {
  position: relative;
  height: clamp(420px, 44vw, 600px);
  border-radius: 28px;
  overflow: hidden;
  background: var(--dark-page) url('assets/background-dark.webp') center / cover no-repeat;
  box-shadow: var(--shadow);
}
.device {
  border: 6px solid var(--dark-page);
  border-radius: 28px;
  overflow: hidden;
  background: var(--page);
  box-shadow: 0 18px 40px rgba(20, 12, 10, 0.35);
}
.device img {
  width: 100%;
  height: auto;
}
.hero-art .device {
  position: absolute;
  width: 40%;
  max-width: 236px;
}
.hero-master {
  top: 9%;
  left: 11%;
  transform: rotate(-7deg);
}
.hero-client {
  top: 17%;
  right: 10%;
  transform: rotate(7deg);
}
.float-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
}
.float-chip svg {
  box-sizing: content-box;
  width: 18px;
  height: 18px;
  padding: 7px;
  border-radius: 10px;
  background: var(--surface-alt);
  color: var(--accent);
}
.float-chip strong {
  display: block;
  color: var(--text);
  font-size: 13px;
}
.chip-top {
  top: 7%;
  right: 5%;
}
.chip-bottom {
  bottom: 8%;
  left: 5%;
}
.chip-bottom svg {
  color: var(--success);
  background: #edf5ee;
}

/* Facts */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.facts div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 24px;
  background: var(--surface);
}
.facts strong {
  font: 600 clamp(28px, 3vw, 38px)/1.1 var(--display);
  color: var(--accent);
}
.facts span {
  font-size: 14px;
  color: var(--muted);
}

/* Before / after */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 980px;
  margin: 44px auto 0;
}
.compare-col {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius);
}
.compare-col h3 {
  font-size: 20px;
  margin-bottom: 14px;
}
.compare-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.compare-col li {
  display: flex;
  gap: 12px;
  padding-block: 11px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.compare-col li svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}
.before {
  background: rgba(255, 253, 252, 0.6);
  border: 1px dashed var(--border);
  color: var(--muted);
}
.before li svg {
  color: var(--danger);
}
.after {
  background: var(--dark-page);
  color: var(--dark-text);
  box-shadow: var(--shadow);
}
.after li {
  border-color: var(--dark-border);
}
.after li svg {
  color: var(--cta-start);
}

/* Demo */
.demo-grid {
  margin-top: 40px;
}
.demo-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.demo-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 14px;
  font-weight: 650;
}
.demo-nav a:hover {
  border-color: var(--border);
}
.demo-nav span {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.demo-nav a[aria-selected='true'] {
  background: linear-gradient(135deg, var(--cta-start), var(--cta-end));
  border-color: rgba(146, 127, 121, 0.55);
  color: var(--cta-text);
}
.demo-nav a[aria-selected='true'] span {
  color: var(--cta-text);
}
.demo-panels {
  display: grid;
}
.demo-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: center;
  gap: 32px;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 7vw, 96px);
  border-radius: 26px;
  background: var(--surface-alt) url('assets/background-light.webp') center / cover no-repeat;
}
.panel-copy {
  justify-self: start;
  max-width: 420px;
  padding: 26px;
  border-radius: 18px;
  background: var(--surface-glass);
}
.panel-role {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.panel-copy h3 {
  margin-block: 12px;
  font: 600 clamp(28px, 3.4vw, 42px)/1.1 var(--display);
  letter-spacing: -0.03em;
}
.panel-copy p:last-child {
  color: var(--muted);
  font-size: 16px;
}
.demo-panel .device {
  width: min(100%, 240px);
}
.demo-note {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.screen-open {
  display: block;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: zoom-in;
}
.hero-art .screen-open:focus-visible {
  outline-color: var(--cta-start);
}

/* Pains */
.icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cta-start), var(--cta-end));
  color: var(--cta-text);
}
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.pain {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.pain h3 {
  margin-block: 18px 8px;
  font-size: 19px;
}
.pain > p {
  color: var(--muted);
  font-size: 15px;
}
.pain .fix {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--text);
}
.pain > p + .fix {
  margin-top: 16px;
}
.pain .fix strong {
  color: var(--accent);
}
.section-cta {
  margin-top: 36px;
  text-align: center;
}

/* Niches */
.niches-section {
  background: var(--surface-alt);
}
.niche-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
}
.niche {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.niche h3 {
  margin-bottom: 8px;
  font: 600 22px/1.2 var(--display);
  letter-spacing: -0.02em;
}
.niche p {
  color: var(--muted);
  font-size: 15px;
}

/* Return spotlight */
.spotlight {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}
.spotlight-copy h2 {
  margin-block: 12px 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}
.spotlight-lead {
  color: var(--muted);
  font-size: 17px;
}
.spotlight-steps {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.spotlight-steps li {
  position: relative;
  padding: 16px 18px 16px 62px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
  counter-increment: step;
}
.spotlight-steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cta-start), var(--cta-end));
  color: var(--cta-text);
  font-weight: 700;
}
.spotlight-steps strong {
  display: block;
  color: var(--text);
}
.spotlight-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-block: 20px 26px;
  font-size: 14px;
  color: var(--muted);
}
.spotlight-note svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}
.spotlight-visual {
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 48px);
  border-radius: 26px;
  background: var(--surface-alt) url('assets/background-light.webp') center / cover no-repeat;
}
.spotlight-visual .device {
  width: min(100%, 260px);
}

/* Calculator */
.calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(26px, 4vw, 52px);
  border-radius: 26px;
  background: var(--dark-page) url('assets/background-dark.webp') center / cover no-repeat;
  color: var(--dark-text);
}
.calc .kicker {
  color: var(--cta-start);
}
.calc-copy h2 {
  margin-block: 12px 14px;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.1;
}
.calc-copy p {
  color: var(--dark-muted);
}
.calc-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 22px;
  border-radius: 20px;
  background: rgba(48, 34, 30, 0.88);
  border: 1px solid var(--dark-border);
}
.calc-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 650;
  color: var(--dark-muted);
}
.calc-form input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--dark-border);
  background: var(--dark-surface);
  color: var(--dark-text);
  font: 600 18px/1.2 var(--sans);
}
.calc-form input:focus-visible {
  outline: 2px solid var(--cta-start);
  outline-offset: 2px;
}
.calc-result {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding-top: 6px;
}
.calc-loss {
  font-size: 15px;
  color: var(--dark-muted);
}
.calc-loss strong {
  display: block;
  font: 600 clamp(30px, 4vw, 40px)/1.1 var(--display);
  color: var(--cta-start);
}
.calc-pay {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(240, 201, 189, 0.12);
  font-size: 15px;
}
.calc-note {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--dark-muted);
}

/* Demo section background */
.demo-section {
  background: var(--surface-alt);
}
.demo-section .demo-panel {
  background-color: var(--page);
}

/* Features */
.features-section {
  background: var(--dark-page) url('assets/background-dark.webp') center / cover no-repeat;
  color: var(--dark-text);
}
.features-section .kicker {
  color: var(--cta-start);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 48px;
  background: var(--dark-border);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature-grid article {
  padding: 26px;
  background: rgba(48, 34, 30, 0.92);
}
.feature-grid svg {
  color: var(--cta-start);
}
.feature-grid h3 {
  margin-block: 14px 6px;
  font-size: 17px;
}
.feature-grid p {
  font-size: 14px;
  color: var(--dark-muted);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.steps li {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.steps li > span {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--dark-page);
  color: var(--cta-start);
  font: 600 18px/1 var(--display);
}
.steps h3 {
  margin-block: 16px 8px;
  font-size: 19px;
}
.steps p {
  color: var(--muted);
  font-size: 15px;
}

/* Reviews */
.reviews-section {
  background: var(--surface-alt);
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
}
.review {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.review-quote {
  width: 32px;
  height: 32px;
  color: var(--cta-end);
}
.review blockquote {
  flex: 1;
  font-size: 16px;
}
.review figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.review figcaption strong {
  display: block;
  font-size: 15px;
  color: var(--text);
}
.avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cta-start), var(--cta-end));
  color: var(--cta-text);
  font-weight: 750;
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reviews-empty {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 900px;
  margin: 40px auto 0;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px dashed var(--border);
}
.reviews-empty > svg {
  width: 44px;
  height: 44px;
  color: var(--cta-end);
}
.reviews-empty h3 {
  font-size: 20px;
}
.reviews-empty p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}
.reviews-empty .button {
  flex: none;
}

/* Story: створено разом із майстром */
.story {
  display: grid;
  grid-template-columns: minmax(0, 360px) 1fr;
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
}
.story-badge {
  padding: clamp(28px, 4vw, 44px);
  border-radius: 28px;
  background: var(--dark-page) url('assets/background-dark.webp') center / cover no-repeat;
  color: var(--dark-text);
  box-shadow: var(--shadow);
}
.story-badge strong {
  display: block;
  font: 600 clamp(52px, 7vw, 84px)/1 var(--display);
  color: var(--cta-start);
}
.story-badge span {
  display: block;
  margin-top: 14px;
  color: var(--dark-muted);
  font-size: 17px;
}
.story-copy h2 {
  margin-top: 8px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}
.story-copy > p:not(.kicker) {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
}
.story-copy .story-ideas {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 15px;
}
.story-ideas svg {
  flex: none;
  width: 24px;
  height: 24px;
  color: var(--accent);
}
.story-ideas strong {
  color: var(--accent);
}
.story-ideas a {
  color: var(--accent);
  font-weight: 700;
}
@media (max-width: 1020px) {
  .story {
    grid-template-columns: 1fr;
  }
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: 1fr minmax(0, 460px);
  align-items: center;
  gap: clamp(32px, 7vw, 96px);
}
.pricing-notes {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}
.pricing-notes li {
  display: flex;
  gap: 10px;
}
.pricing-notes svg,
.price-card li svg {
  margin-top: 3px;
}
.price-card {
  position: relative;
  padding: clamp(26px, 4vw, 42px);
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.price-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 100px;
  background: var(--surface-alt);
  color: var(--accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.1em;
}
.price {
  margin-top: 18px;
  font-size: 22px;
}
.price strong {
  font: 600 clamp(64px, 8vw, 84px)/1 var(--display);
  letter-spacing: -0.04em;
}
.price span {
  color: var(--muted);
  font-size: 15px;
}
.price-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}
.price-card ul {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 15px;
}
.price-card li {
  display: flex;
  gap: 10px;
}
.price-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.price-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  border-top: 1px solid var(--line);
}
.answers {
  border-top: 1px solid var(--line);
}
.answers details {
  border-bottom: 1px solid var(--line);
}
.answers summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding-block: 14px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}
.answers summary::-webkit-details-marker {
  display: none;
}
.answers summary::after {
  content: '';
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-alt)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M8 13h10m-5-5v10' stroke='%23302829' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E")
    center / contain;
  transition: transform 0.2s ease;
}
.answers details[open] summary::after {
  transform: rotate(45deg);
}
.answers p {
  padding: 0 40px 20px 0;
  color: var(--muted);
}

/* Final */
.final-section {
  padding-bottom: clamp(48px, 7vw, 96px);
}
.final-card {
  padding: clamp(36px, 7vw, 88px) clamp(22px, 6vw, 80px);
  border-radius: 28px;
  text-align: center;
  background: var(--dark-page) url('assets/background-dark.webp') center / cover no-repeat;
  color: var(--dark-text);
}
.final-card h2 {
  max-width: 760px;
  margin-inline: auto;
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.1;
}
.final-card p {
  margin-top: 16px;
  color: var(--dark-muted);
  font-size: 17px;
}
.final-card .button {
  margin-top: 28px;
}
.final-card .button:focus-visible {
  outline-color: var(--cta-start);
}

/* Footer */
.footer {
  padding-block: 36px 40px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 28px;
}
.footer-grid p {
  margin-top: 8px;
}
.footer nav,
.footer-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer nav a,
.footer-contacts a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  color: var(--text);
}
.footer nav a:hover,
.footer-contacts a:hover {
  color: var(--accent);
}

/* Screen dialog */
.screen-dialog {
  width: min(440px, calc(100% - 24px));
  max-height: calc(100dvh - 32px);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--page);
  color: var(--text);
}
.screen-dialog::backdrop {
  background: rgba(38, 26, 25, 0.62);
}
.screen-dialog-head {
  position: sticky;
  top: -16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-block: 8px;
  background: var(--page);
}
.screen-dialog h2 {
  font: 700 15px/1.3 var(--sans);
  letter-spacing: 0;
}
.screen-dialog button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}
.screen-dialog img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.screen-dialog > p {
  padding-top: 9px;
  font-size: 12px;
  color: var(--muted);
}
body:has(.screen-dialog[open]) {
  overflow: hidden;
}

.mobile-cta {
  display: none;
}

/* Legal pages */
.legal {
  max-width: 780px;
  padding-block: 40px 80px;
}
.legal h1 {
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.1;
  margin-bottom: 8px;
}
.legal h2 {
  font: 700 20px/1.3 var(--sans);
  letter-spacing: 0;
  margin: 32px 0 10px;
}
.legal p,
.legal li {
  color: var(--muted);
}
.legal p + p {
  margin-top: 10px;
}
.legal ul,
.legal ol {
  padding-left: 22px;
}
.legal li {
  padding-block: 3px;
}
.legal .updated {
  font-size: 14px;
}
.draft-banner {
  margin-block: 20px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #fff3df;
  color: #785021;
  font-size: 14px;
  border: 1px solid #e8c88f;
}
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 12px;
  color: var(--accent);
  font-weight: 650;
}

/* Tablet */
@media (max-width: 1020px) {
  .site-nav {
    gap: 16px;
  }
  .site-nav a {
    font-size: 13px;
  }
  .facts {
    grid-template-columns: repeat(2, 1fr);
  }
  .niche-grid,
  .feature-grid,
  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .demo-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .calc {
    grid-template-columns: 1fr;
  }
}

/* Phone */
@media (max-width: 760px) {
  [id] {
    scroll-margin-top: 72px;
  }
  html {
    scroll-padding-bottom: 100px;
  }
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }
  .header-row {
    min-height: 60px;
  }
  .logo img {
    width: 112px;
    height: 32px;
  }
  .site-nav {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }
  .hero h1 {
    font-size: clamp(34px, 9.6vw, 50px);
    margin-block: 18px 16px;
  }
  .hero-actions {
    margin-top: 24px;
  }
  .hero-actions .button {
    width: 100%;
  }
  .hero-points {
    font-size: 13px;
    gap: 6px 14px;
  }
  .hero-art {
    height: clamp(380px, 112vw, 520px);
    border-radius: 22px;
  }
  .hero-art .device {
    width: 44%;
    border-width: 5px;
    border-radius: 22px;
  }
  .hero-master {
    top: 15%;
    left: 5%;
  }
  .hero-client {
    top: 21%;
    right: 5%;
  }
  .float-chip {
    font-size: 11px;
    padding: 8px 12px 8px 8px;
  }
  .float-chip strong {
    font-size: 12px;
  }
  .chip-top {
    top: 3.5%;
    right: 4%;
  }
  .chip-bottom {
    bottom: 4%;
    left: 4%;
  }
  .facts div {
    padding: 18px 16px;
  }
  .facts span {
    font-size: 13px;
  }
  .pain-grid,
  .niche-grid,
  .feature-grid,
  .review-grid,
  .steps,
  .compare,
  .spotlight {
    grid-template-columns: 1fr;
  }
  .pain-grid,
  .niche-grid,
  .review-grid,
  .steps,
  .compare,
  .feature-grid {
    margin-top: 32px;
  }
  .pain,
  .niche {
    padding: 22px;
  }
  .section-cta .button,
  .spotlight-copy .button {
    width: 100%;
  }
  .spotlight-visual .device {
    width: min(72%, 230px);
  }
  .calc {
    padding: 24px 16px;
    border-radius: 20px;
  }
  .calc-form {
    padding: 16px;
    gap: 12px;
  }
  .demo-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feature-grid article {
    padding: 22px;
  }
  .demo-nav {
    gap: 6px;
  }
  .demo-nav a {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-height: 56px;
    padding: 8px 10px;
    font-size: 13px;
    line-height: 1.25;
  }
  .demo-panel {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 20px 16px 28px;
    border-radius: 20px;
  }
  .panel-copy {
    padding: 18px;
  }
  .demo-panel .device {
    width: min(72%, 230px);
  }
  .reviews-empty {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .reviews-empty .button {
    width: 100%;
  }
  .pricing {
    grid-template-columns: 1fr;
  }
  .faq {
    grid-template-columns: 1fr;
  }
  .answers p {
    padding-right: 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .mobile-cta {
    position: fixed;
    z-index: 10;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 253, 252, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    font-size: 12px;
    line-height: 1.35;
    color: var(--muted);
  }
  .mobile-cta strong {
    color: var(--text);
    font-size: 13px;
  }
  a,
  button,
  summary {
    scroll-margin-bottom: 100px;
  }
}

@media (max-width: 400px) {
  .calc-form {
    grid-template-columns: 1fr;
  }
  /* «Підтвердження» does not fit a third of a phone. */
  .demo-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .demo-nav a:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 370px) {
  .header-cta {
    padding-inline: 12px;
  }
  .hero h1 {
    font-size: 31px;
  }
  .eyebrow {
    font-size: 12px;
  }
  .float-chip span {
    display: none;
  }
  .float-chip {
    padding: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
