:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-soft: #0b0b0b;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f5f5f5;
  --muted: rgba(245, 245, 245, 0.62);
  --accent: #f5f5f5;
  --accent-text: #050505;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --container: 1180px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.08), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.07), transparent 22%),
    radial-gradient(circle at 20% 85%, rgba(255, 255, 255, 0.06), transparent 22%),
    var(--bg);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

.site-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at center, black 36%, transparent 92%);
}

.page-shell {
  width: min(var(--container), calc(100% - 28px));
  margin: 0 auto;
  padding: calc(14px + var(--safe-top)) 0 calc(56px + var(--safe-bottom));
  position: relative;
  z-index: 1;
}

.site-header,
.hero,
.highlights,
.trial,
.tariffs,
.contacts,
.support {
  margin-bottom: 24px;
}

.site-header,
.hero,
.highlight-card,
.trial-story,
.trial-form-card,
.tariff-card,
.contact-stage,
.support-form,
.chat-card {
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.site-header {
  border-radius: 26px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 14px;
  z-index: 20;
}

.site-header.reveal,
.site-header.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: none;
}

.brand,
.nav a,
.button,
.telegram-link {
  color: inherit;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  min-width: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.nav a {
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
  white-space: nowrap;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  transform: translateY(-1px);
}

.hero {
  border-radius: var(--radius-xl);
  padding: 38px;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.045), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.015), transparent 48%),
    var(--surface);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  max-width: none;
  overflow-wrap: anywhere;
}

.eyebrow,
.panel-label,
.card-tag,
.trial-kicker,
.tariff-label,
.aside-label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1,
.section-heading h2 {
  margin: 0;
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(3.05rem, 4.75vw, 5.2rem);
  max-width: 13ch;
  text-wrap: pretty;
  letter-spacing: -0.05em;
}

.lead {
  max-width: 42ch;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.78;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  width: fit-content;
  max-width: 100%;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-weight: 800;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--accent);
  color: var(--accent-text);
  border-color: transparent;
  box-shadow: 0 14px 40px rgba(255, 255, 255, 0.08);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.1);
}

.button.full {
  width: 100%;
}

.hero-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.service-ticker {
  margin-top: 30px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.022);
  padding: 12px 0;
  width: 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.service-ticker::before,
.service-ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 72px;
  z-index: 1;
  pointer-events: none;
}

.service-ticker::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}

.service-ticker::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), transparent);
}

.service-track {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  animation: services-scroll 30s linear infinite;
}

.service-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(245, 245, 245, 0.72);
  font-size: 0.9rem;
  white-space: nowrap;
}

.service-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f5f5f5;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.hero-aside {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-content: start;
  min-width: 0;
}

.aside-card {
  border: 1px solid var(--border);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.028);
  padding: 24px;
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 174px;
}

.aside-card strong {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1;
}

.aside-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.highlights {
  display: none;
}

.highlight-card {
  border-radius: 28px;
  padding: 24px;
  min-width: 0;
  overflow: hidden;
}

.highlight-card h2,
.contact-copy h3,
.trial-story h3,
.trial-form-card h3,
.support-form h3 {
  margin: 8px 0 12px;
  font-size: clamp(1.45rem, 2.2vw, 2.25rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.highlight-card p:last-child,
.contact-copy p,
.trial-story > p,
.trial-form-card > p,
.form-note,
.chat-empty,
.tariff-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-heading {
  margin-bottom: 18px;
}

.support-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.section-heading h2 {
  font-size: clamp(2.3rem, 5vw, 4.8rem);
}

#trial,
#tariffs,
#contacts,
#support {
  scroll-margin-top: 120px;
}

.trial-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 18px;
}

.trial-story,
.trial-form-card,
.contact-stage,
.support-form,
.chat-card,
.tariff-card {
  border-radius: var(--radius-xl);
  padding: 26px;
  min-width: 0;
  overflow: hidden;
}

.trial-badge {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
}

.trial-steps {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

.trial-step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.trial-step:first-child {
  border-top: 0;
}

.trial-step span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  font-weight: 800;
}

.trial-step strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.trial-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.trial-form-card {
  display: grid;
  gap: 18px;
  align-content: start;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.035);
}

.trial-panel-top p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.field {
  display: grid;
  gap: 10px;
}

.field span {
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 18px;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
  appearance: none;
}

.field textarea {
  resize: vertical;
  min-height: 160px;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.045);
}

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

.tariff-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tariff-card.featured {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.04);
}

.tariff-card h3 {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
}

.tariff-price {
  font-size: clamp(2.3rem, 4vw, 3rem);
  line-height: 1;
}

.tariff-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.contact-stage {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.contact-copy {
  max-width: 54ch;
  min-width: 0;
}

.telegram-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 800;
  transition: transform 180ms ease, opacity 180ms ease;
}

.telegram-link:hover {
  transform: translateY(-1px);
}

.telegram-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 18px;
}

.legal-preview-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.95fr) minmax(0, 0.95fr);
  gap: 18px;
}

.legal-intro-card,
.legal-preview-card {
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
  padding: 26px;
  min-width: 0;
}

.legal-intro-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.legal-intro-card h3,
.legal-preview-card h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.2vw, 2.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.legal-intro-card p:last-child,
.legal-preview-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.legal-preview-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: space-between;
}

.legal-preview-card.featured {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.04);
}

.legal-preview-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 9px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-copy {
  max-width: 42ch;
}

.footer-copy strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.footer-copy p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.footer-links {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 180ms ease, background-color 180ms ease;
}

.footer-links a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.06);
}

.legal-shell {
  width: min(980px, calc(100% - 28px));
}

.legal-page {
  display: grid;
  gap: 18px;
}

.legal-header {
  position: static;
}

.legal-hero,
.legal-card {
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
}

.legal-hero {
  padding: 32px;
}

.legal-hero h1 {
  margin: 10px 0 0;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.legal-lead {
  max-width: 50ch;
}

.legal-card {
  padding: 28px;
  display: grid;
  gap: 20px;
}

.legal-section {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-section:last-of-type {
  padding-bottom: 0;
  border-bottom: 0;
}

.legal-section h2 {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  letter-spacing: -0.03em;
}

.legal-section p,
.legal-section li,
.legal-contact {
  color: var(--muted);
  line-height: 1.8;
}

.legal-section p {
  margin: 0 0 10px;
}

.legal-section ul {
  margin: 0 0 10px;
  padding-left: 18px;
}

.legal-section code {
  font-family: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 999px;
}

.legal-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding-top: 4px;
}

.legal-contact-label {
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.legal-contact a {
  color: var(--text);
  text-decoration: none;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.support-form {
  display: grid;
  gap: 18px;
}

.clear-chat-button {
  min-height: 46px;
  flex-shrink: 0;
}

.panel-head {
  display: grid;
  gap: 8px;
}

.panel-head h3 {
  margin-top: 0;
}

.chat-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.chat-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#sessionBadge {
  color: var(--muted);
  font-size: 0.9rem;
}

.chat-feed {
  display: grid;
  gap: 12px;
  padding-top: 18px;
  overflow: auto;
  max-height: 420px;
  overscroll-behavior: contain;
}

.chat-empty {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.bubble {
  max-width: 88%;
  padding: 14px 16px;
  border-radius: 20px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.bubble.visitor {
  justify-self: end;
  background: var(--accent);
  color: var(--accent-text);
}

.bubble.admin {
  justify-self: start;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
}

.bubble-topic {
  display: block;
  margin-bottom: 6px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 1040px) {
  .hero,
  .trial-stage,
  .support-layout,
  .highlights,
  .tariff-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero-copy {
    max-width: 100%;
  }

  .contact-stage {
    flex-direction: column;
    align-items: flex-start;
  }

  .support-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer {
    flex-direction: column;
  }

  .hero-aside {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 18px, var(--container));
    padding-top: calc(10px + var(--safe-top));
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    top: calc(8px + var(--safe-top));
  }

  .nav {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
    padding: 10px 12px;
  }

  .hero,
  .trial-story,
  .trial-form-card,
  .tariff-card,
  .contact-stage,
  .support-form,
  .chat-card {
    padding: 22px;
  }

  .hero {
    gap: 20px;
    padding: 24px 22px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .service-ticker::before,
  .service-ticker::after {
    width: 34px;
  }

  .service-track {
    animation-duration: 30s;
  }

  .hero-aside {
    grid-template-columns: 1fr;
  }

  .trial-step {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
  }

  .trial-step span {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .chat-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .clear-chat-button {
    width: 100%;
  }

  .chat-feed {
    max-height: 320px;
  }

  .footer-links {
    gap: 10px 16px;
  }

  .footer-links a:not(:last-child)::after {
    content: none;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 16px, var(--container));
    padding-top: calc(8px + var(--safe-top));
  }

  .site-header,
  .hero,
  .highlight-card,
  .trial-story,
  .trial-form-card,
  .tariff-card,
  .contact-stage,
  .support-form,
  .chat-card {
    border-radius: 22px;
  }

  .site-header {
    border-radius: 22px;
    padding: 12px 14px;
  }

  .brand {
    gap: 10px;
    font-size: 0.96rem;
    letter-spacing: 0.12em;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .nav {
    gap: 8px;
  }

  .nav a {
    padding: 8px 10px;
    font-size: 0.94rem;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.5rem);
    max-width: 100%;
  }

  .lead {
    max-width: 100%;
  }

  .section-heading h2 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .lead,
  .trial-story > p,
  .trial-form-card > p,
  .contact-copy p,
  .form-note,
  .tariff-copy,
  .chat-empty,
  .aside-card p {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .button {
    min-height: 50px;
    padding: 13px 18px;
    font-size: 0.98rem;
  }

  .aside-card,
  .highlight-card,
  .trial-story,
  .trial-form-card,
  .tariff-card,
  .contact-stage,
  .support-form,
  .chat-card {
    padding: 20px;
  }

  .service-ticker {
    margin-top: 20px;
    padding: 8px 0;
  }

  .service-pill {
    font-size: 0.86rem;
    padding: 7px 12px;
    gap: 8px;
  }

  .tariff-card h3 {
    font-size: 1.7rem;
  }

  .tariff-price {
    font-size: clamp(2rem, 10vw, 2.5rem);
  }

  .field input,
  .field textarea {
    padding: 14px 16px;
    border-radius: 16px;
  }

  .chat-feed {
    max-height: 280px;
  }

  .bubble {
    max-width: 100%;
    padding: 13px 14px;
    border-radius: 18px;
  }

  .site-footer {
    gap: 14px;
    padding-top: 22px;
  }

  .footer-motto {
    font-size: 0.84rem;
  }

  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    width: 100%;
  }

  .footer-links a {
    font-size: 0.88rem;
    line-height: 1.45;
  }
}

@media (max-width: 400px) {
  .page-shell {
    width: min(100% - 12px, var(--container));
  }

  .hero,
  .highlight-card,
  .trial-story,
  .trial-form-card,
  .tariff-card,
  .contact-stage,
  .support-form,
  .chat-card {
    padding: 18px;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 12vw, 3rem);
  }

  .section-heading h2 {
    font-size: clamp(1.8rem, 11vw, 2.6rem);
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}

/* Footer override: compact legal links like product landing pages */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px 36px;
  padding: 28px 0 0;
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-motto {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 0;
  max-width: 760px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.6;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  transition: color 180ms ease;
}

.footer-links a:hover {
  color: var(--text);
  transform: none;
  background: transparent;
}

.footer-links a:not(:last-child)::after {
  content: "·";
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.26);
}

@media (max-width: 1040px) {
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    justify-content: flex-start;
    max-width: 100%;
  }
}
