:root {
  --ink: #20312d;
  --ink-soft: #48615b;
  --muted: #6f7d76;
  --paper: #fbf8f2;
  --surface: #ffffff;
  --surface-soft: #f2ede4;
  --line: #ded7ca;
  --sage: #7e997d;
  --teal: #285f57;
  --clay: #a96f5b;
  --blue: #547286;
  --gold: #c19a52;
  --rose: #8e5e68;
  --shadow: 0 18px 45px rgba(38, 48, 42, 0.12);
  --radius: 8px;
  --container: min(1120px, calc(100vw - 36px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.site-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #fbf8f2 0%, #f7f1e8 44%, #fbf8f2 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(222, 215, 202, 0.8);
  background: rgba(251, 248, 242, 0.9);
  backdrop-filter: blur(14px);
}

.site-header-inner {
  width: var(--container);
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 190px;
}

.site-header .brand {
  max-width: min(470px, 42vw);
}

.brand-mark {
  display: none;
}

.brand strong {
  font-size: 0.95rem;
  letter-spacing: 0;
}

.brand span {
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.35;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.nav-links a:hover,
.footer a:hover {
  color: var(--teal);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.button,
.icon-button,
.menu-button {
  border: 0;
  cursor: pointer;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius);
  padding: 0 18px;
  font-weight: 750;
  letter-spacing: 0;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button.primary {
  color: #ffffff;
  background: var(--teal);
  box-shadow: 0 10px 24px rgba(40, 95, 87, 0.24);
}

.button.primary:hover {
  background: #214f49;
}

.button.secondary {
  color: var(--teal);
  background: #e9f0e7;
}

.button.light {
  color: var(--ink);
  background: #fbf8f2;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.button.ghost {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
}

.button.clay {
  color: #ffffff;
  background: var(--clay);
}

.button.full {
  width: 100%;
}

.button.small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.86rem;
}

.button.disabled,
.button:disabled,
.icon-button:disabled {
  opacity: 0.52;
  pointer-events: none;
}

.button-icon {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 1rem;
}

.section {
  padding: 82px 0;
}

.section.compact {
  padding: 54px 0;
}

.section.alt {
  background: var(--surface-soft);
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section-heading {
  max-width: 690px;
  margin: 0 0 34px;
}

.section-heading-wide {
  max-width: 100%;
}

.section-heading-wide h2 {
  max-width: none;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.7rem, 7vw, 5.9rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 3.7vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.25;
}

.lead {
  max-width: 650px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  overflow-wrap: break-word;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(760px, calc(100vh - 74px));
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(23, 41, 37, 0.99) 0%, rgba(29, 50, 45, 0.96) 46%, rgba(74, 88, 72, 0.82) 100%),
    linear-gradient(180deg, #172925 0%, #233c36 58%, #4e5b49 100%);
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 1px 0 rgba(251, 248, 242, 0.05);
}

.hero.hero-banner-section {
  min-height: 0;
  display: block;
  background: #f6efe2;
  box-shadow: none;
}

.hero.hero-banner-section::before,
.hero.hero-banner-section::after {
  display: none;
}

.hero-banner-image {
  width: 100%;
  height: auto;
  display: block;
}

.hero.hero-editable {
  min-height: 0;
  display: block;
  overflow: hidden;
  padding: clamp(18px, 2.5vw, 32px) 0;
  color: var(--ink);
  background: #f6efe2;
  box-shadow: none;
}

.hero.hero-editable::before,
.hero.hero-editable::after {
  display: none;
}

.hero-editable-shell {
  width: min(var(--container), 1040px);
  margin: 0 auto;
}

.hero-artboard {
  position: relative;
  width: 100%;
  aspect-ratio: 1672 / 941;
  overflow: hidden;
  border: 1px solid rgba(22, 75, 50, 0.12);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(31, 48, 42, 0.12);
}

.hero-editable-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-editable-copy {
  position: absolute;
  z-index: 2;
  top: 18%;
  left: 4.8%;
  width: 45%;
  max-width: 740px;
}

.hero-editable h1 {
  max-width: none;
  margin-bottom: clamp(3px, 0.6vw, 9px);
  color: #164b32;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.9vw, 4.1rem);
  font-weight: 600;
  line-height: 0.98;
  white-space: nowrap;
}

.hero-editable-subtitle {
  margin-bottom: clamp(8px, 1.3vw, 20px);
  color: #164b32;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 2.25vw, 2rem);
  font-style: italic;
}

.hero-editable-divider {
  width: 82%;
  height: clamp(2px, 0.35vw, 5px);
  margin: 0 0 clamp(9px, 1.5vw, 22px);
  border-radius: 50%;
  background: #c59a3c;
}

.hero-editable-message {
  max-width: 82%;
  margin-bottom: clamp(10px, 1.7vw, 26px);
  padding-left: clamp(10px, 1.5vw, 22px);
  border-left: clamp(2px, 0.25vw, 4px) solid #c59a3c;
  color: #164b32;
  font-size: clamp(0.95rem, 1.7vw, 1.65rem);
  line-height: 1.35;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero::before {
  background:
    linear-gradient(115deg, rgba(251, 248, 242, 0.05) 0%, rgba(251, 248, 242, 0) 42%),
    linear-gradient(180deg, rgba(193, 154, 82, 0.13) 0%, rgba(193, 154, 82, 0) 46%);
}

.hero::after {
  top: auto;
  height: 38%;
  background:
    linear-gradient(180deg, rgba(23, 41, 37, 0) 0%, rgba(251, 248, 242, 0.07) 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
  padding: 72px 0;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.72fr);
  gap: 54px;
  align-items: center;
}

.hero-copy {
  opacity: 1;
}

.hero .eyebrow,
.hero .lead {
  color: rgba(255, 255, 255, 0.84);
}

.hero h1 {
  max-width: 680px;
}

.hero-subtitle {
  margin-bottom: 8px;
  color: #f1dec6;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 700;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-profile-card {
  width: min(370px, 100%);
  justify-self: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  opacity: 1;
}

.profile-frame {
  width: min(100%, 370px);
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(251, 248, 242, 0.18);
  border-radius: var(--radius);
  background: rgba(251, 248, 242, 0.06);
  box-shadow:
    0 28px 74px rgba(6, 18, 17, 0.32),
    0 0 0 1px rgba(251, 248, 242, 0.07);
}

.profile-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.97) contrast(1.02);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 52px;
  align-items: start;
}

.copy-horizontal {
  grid-template-columns: 1fr;
  gap: 28px;
}

.copy-horizontal .section-heading {
  max-width: 1000px;
  margin-bottom: 0;
}

.copy-horizontal .section-heading h2,
.copy-horizontal .section-heading .lead {
  max-width: 980px;
}

.text-panel {
  padding-left: 22px;
  border-left: 3px solid var(--gold);
}

.text-panel p {
  color: var(--ink-soft);
}

.copy-horizontal .text-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 32px;
  padding: 22px 0 0;
  border-top: 3px solid var(--gold);
  border-left: 0;
}

.copy-horizontal .text-panel h3 {
  grid-column: 1 / -1;
  margin-bottom: 2px;
}

.copy-horizontal .text-panel p {
  margin-bottom: 0;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.copy-horizontal .feature-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-item,
.step-card,
.benefit-card,
.faq-card,
.metric-card,
.data-card,
.login-box,
.booking-panel,
.module-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature-item {
  padding: 18px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--teal);
  font-weight: 800;
}

.feature-item p,
.step-card p,
.benefit-card p,
.faq-card p {
  margin-bottom: 0;
  color: var(--muted);
}

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

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

.step-card,
.benefit-card,
.faq-card {
  padding: 22px;
}

.step-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 50%;
  color: var(--ink);
  background: #d8b982;
  font-weight: 800;
}

.audience-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.audience-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink-soft);
  font-weight: 650;
}

.dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gold);
}

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

.specialty-card {
  min-height: 74px;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 750;
  text-align: center;
}

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

.faq-extra {
  margin-top: 12px;
}

.faq-extra[hidden] {
  display: none;
}

.faq-more-actions {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.faq-more-button {
  min-width: min(100%, 240px);
  background: rgba(255, 255, 255, 0.55);
}

.faq-card summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 750;
}

.faq-card p {
  padding-top: 12px;
}

#certificados {
  overflow: hidden;
}

.certificate-stage {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 12px;
  align-items: center;
}

.certificate-reel {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 8px max(18px, calc((100% - 560px) / 2)) 22px;
  scrollbar-color: rgba(40, 95, 87, 0.46) rgba(40, 95, 87, 0.1);
}

.certificate-card {
  flex: 0 0 min(560px, 82vw);
  scroll-snap-align: center;
}

.certificate-image {
  height: clamp(250px, 35vw, 360px);
  display: grid;
  place-items: center;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.certificate-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 6px;
}

.certificate-arrow {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: #ffffff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.certificate-arrow:hover {
  transform: translateY(-1px);
  background: var(--surface-soft);
}

.cta-band {
  background: var(--ink);
  color: #ffffff;
}

.cta-band .lead,
.cta-band .eyebrow {
  color: rgba(255, 255, 255, 0.74);
}

.footer {
  padding: 34px 0;
  color: var(--ink-soft);
  background: #eee7dd;
  font-size: 0.94rem;
}

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

.footer-meta {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.footer-instagram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid rgba(40, 95, 87, 0.22);
  border-radius: 999px;
  color: var(--teal);
  background: rgba(255, 255, 255, 0.48);
  font-weight: 700;
  line-height: 1;
}

.footer-instagram svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.footer-instagram:hover {
  border-color: rgba(40, 95, 87, 0.42);
  background: rgba(255, 255, 255, 0.78);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  max-width: 360px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.booking-hero {
  padding: 54px 0 28px;
  background: var(--surface-soft);
}

.booking-steps {
  max-width: 980px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.booking-steps span {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-soft);
  font-weight: 720;
}

.booking-steps strong {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #ffffff;
  background: var(--teal);
}

.booking-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 22px;
  align-items: start;
  padding-bottom: 70px;
}

.booking-panel {
  padding: 24px;
  box-shadow: 0 12px 34px rgba(38, 48, 42, 0.08);
}

.panel-kicker {
  margin: 0 0 8px;
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-kicker.spaced {
  margin-top: 26px;
}

.date-grid,
.time-grid {
  display: grid;
  gap: 10px;
}

.date-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.time-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.choice {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #ffffff;
  cursor: pointer;
  font-weight: 700;
}

.choice small {
  display: block;
  color: var(--muted);
  font-weight: 600;
}

.choice.active {
  color: #ffffff;
  border-color: var(--teal);
  background: var(--teal);
}

.choice[disabled] {
  color: #9a968f;
  background: #eee9df;
  cursor: not-allowed;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.booking-form-section {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

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

.field label {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 720;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 13px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

.field textarea {
  min-height: 92px;
  padding-block: 11px;
  line-height: 1.5;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(40, 95, 87, 0.14);
}

.field [aria-invalid="true"],
.checkbox-row:has(input[aria-invalid="true"]) {
  border-color: #a33d35;
  outline: 3px solid rgba(163, 61, 53, 0.12);
}

.field label small,
.option-group legend small {
  color: var(--muted);
  font-weight: 600;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.privacy-note {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid var(--sage);
  color: var(--ink-soft);
  background: #edf3ea;
  font-size: 0.92rem;
  line-height: 1.5;
}

.anamnesis-progress {
  display: grid;
  gap: 9px;
  margin-top: 4px;
}

.anamnesis-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.anamnesis-progress-track {
  height: 7px;
  overflow: hidden;
  background: #e5dfd5;
}

.anamnesis-progress-track span {
  display: block;
  width: 16.67%;
  height: 100%;
  background: var(--teal);
  transition: width 180ms ease;
}

.anamnesis-step {
  display: grid;
  gap: 14px;
  padding-top: 8px;
}

.anamnesis-step[hidden],
#bookingConfirmationSection[hidden] {
  display: none;
}

.anamnesis-step h3 {
  margin: 0;
  font-size: 1.08rem;
}

.field-hint {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.option-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 14px;
  margin: 0;
  padding: 12px 0 2px;
  border: 0;
}

.option-group legend {
  grid-column: 1 / -1;
  padding: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 720;
}

.option-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.option-group input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.anamnesis-navigation {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}

.anamnesis-navigation .button:last-child {
  margin-left: auto;
}

.anamnesis-navigation [hidden] {
  display: none;
}

.text-link {
  width: fit-content;
  color: var(--teal);
  font-weight: 720;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.anamnesis-review {
  display: grid;
  gap: 10px;
  padding: 14px 0 2px;
  border-top: 1px solid var(--line);
}

.anamnesis-review dl,
.anamnesis-record-sections dl {
  display: grid;
  gap: 9px;
  margin: 0;
}

.anamnesis-review dl div,
.anamnesis-record-sections dl div {
  display: grid;
  grid-template-columns: minmax(130px, 0.36fr) minmax(0, 1fr);
  gap: 12px;
}

.anamnesis-review dt,
.anamnesis-record-sections dt {
  color: var(--muted);
  font-weight: 700;
}

.anamnesis-review dd,
.anamnesis-record-sections dd {
  margin: 0;
  color: var(--ink-soft);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid rgba(40, 95, 87, 0.2);
  border-radius: var(--radius);
  color: var(--ink-soft);
  background: #ffffff;
  font-size: 0.94rem;
  line-height: 1.45;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--teal);
}

.notice {
  padding: 12px 14px;
  border-radius: var(--radius);
  color: #604f24;
  background: #fff4cf;
  font-size: 0.92rem;
}

.booking-summary-card {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(40, 95, 87, 0.24);
  border-radius: var(--radius);
  background: #e9f0e7;
}

.booking-summary-card strong {
  color: var(--teal);
}

.booking-summary-card span,
.booking-summary-card small {
  color: var(--ink-soft);
}

.success-box {
  padding: 14px 16px;
  border: 1px solid rgba(126, 153, 125, 0.5);
  border-radius: var(--radius);
  color: #2f5a3b;
  background: #e9f4e7;
}

.chat-shell,
.payment-shell {
  max-width: 900px;
}

.chat-panel {
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(38, 48, 42, 0.08);
}

.chat-message {
  max-width: min(720px, 100%);
  padding: 12px 14px;
  border-radius: var(--radius);
  color: var(--ink-soft);
  background: var(--surface-soft);
  overflow-wrap: break-word;
}

.chat-message.bot {
  justify-self: start;
  border-left: 3px solid var(--teal);
}

.chat-message.user {
  justify-self: end;
  color: #ffffff;
  background: var(--teal);
}

.chat-message.strong {
  color: var(--ink);
  font-weight: 650;
}

.chat-actions,
.row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.panel-body {
  min-height: 100vh;
  color: var(--ink);
  background: #f4f0e8;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
  background:
    linear-gradient(90deg, rgba(32, 49, 45, 0.9), rgba(32, 49, 45, 0.58)),
    url("/static/images/hero-serenity.png");
  background-position: center;
  background-size: cover;
}

.client-login {
  background:
    linear-gradient(180deg, rgba(21, 40, 35, 0.05) 22%, rgba(21, 40, 35, 0.2) 58%, rgba(21, 40, 35, 0.92) 100%),
    url("/static/images/consultorio-paz-interior.jpg");
  background-position: center;
  background-size: cover;
}

.client-login .login-copy {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.login-copy {
  align-self: end;
  padding: 68px;
  color: #ffffff;
}

.login-copy p {
  max-width: 580px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
}

.login-box {
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px;
  border-radius: 0;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
}

.anamnesis-dialog {
  width: min(920px, calc(100vw - 32px));
  max-height: min(840px, calc(100vh - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fffdf9;
  box-shadow: 0 24px 70px rgba(27, 42, 37, 0.26);
}

.anamnesis-dialog::backdrop {
  background: rgba(20, 35, 31, 0.58);
}

.anamnesis-dialog-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background: #fffdf9;
}

.anamnesis-dialog-header h2 {
  margin: 3px 0 0;
}

.anamnesis-dialog-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.anamnesis-print-button {
  gap: 8px;
  white-space: nowrap;
}

.anamnesis-print-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#anamnesisDialogContent {
  padding: 22px;
}

.anamnesis-record-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.anamnesis-record-summary div {
  display: grid;
  gap: 3px;
}

.anamnesis-record-summary span,
.anamnesis-record-summary small {
  color: var(--muted);
}

.anamnesis-record-sections {
  display: grid;
  gap: 26px;
  padding-top: 22px;
}

.anamnesis-record-sections h3 {
  margin: 0 0 12px;
  color: var(--teal);
}

.login-help-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
}

.link-button {
  min-height: auto;
  padding: 0;
  color: var(--teal);
  background: transparent;
  font-size: 0.92rem;
  font-weight: 760;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-button:hover {
  color: var(--ink);
}

.error-text {
  min-height: 22px;
  color: #9b3d35;
  font-weight: 700;
}

.therapist-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
}

.client-area {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.client-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background: #fbf8f2;
}

.client-sidebar .menu-button {
  color: var(--ink-soft);
}

.client-sidebar .menu-button:hover,
.client-sidebar .menu-button.active {
  color: var(--teal);
  background: #e9f0e7;
}

.client-session-card {
  min-height: 420px;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  color: #ffffff;
  background: #20312d;
}

.sidebar-brand {
  padding: 0 8px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.sidebar-brand strong,
.sidebar-brand span {
  display: block;
}

.sidebar-brand span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
}

.panel-nav {
  display: grid;
  gap: 6px;
  margin-top: 22px;
}

.menu-button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: var(--radius);
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  text-align: left;
  font-weight: 720;
}

.menu-button:hover,
.menu-button.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.menu-glyph {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
}

.panel-main {
  min-width: 0;
  padding: 28px;
}

.panel-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.panel-title h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.08;
}

.panel-title p {
  margin: 7px 0 0;
  color: var(--muted);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  min-height: 136px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 720;
}

.metric-card strong {
  font-size: clamp(1.8rem, 3.2vw, 2.55rem);
  line-height: 1;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
  margin-top: 18px;
}

.module-panel {
  padding: 20px;
}

.module-panel h2 {
  margin-bottom: 18px;
  font-size: 1.35rem;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.data-card {
  padding: 18px;
}

.data-card span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 720;
}

.data-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.85rem;
  line-height: 1;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

td {
  color: var(--ink-soft);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--ink);
  background: #ece7dc;
  font-size: 0.82rem;
  font-weight: 760;
}

.badge.confirmada,
.badge.realizada,
.badge.convertido,
.badge.disponivel {
  color: #245439;
  background: #dfeedd;
}

.badge.agendada,
.badge.agendamento-solicitado,
.badge.sessao-agendada {
  color: #614a1e;
  background: #f6e7bd;
}

.badge.cancelada,
.badge.pausado {
  color: #8d3c35;
  background: #f1d9d5;
}

.badge.novo-contato,
.badge.em-conversa {
  color: #34546a;
  background: #dce8ef;
}

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

.agenda-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.online-row {
  grid-template-columns: 104px minmax(0, 1fr) minmax(180px, auto);
}

.agenda-time {
  color: var(--teal);
  font-weight: 820;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.calendar-toolbar h2 {
  margin: 2px 0 0;
  text-transform: capitalize;
}

.month-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(92px, 1fr));
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #fff;
}

.calendar-weekday {
  padding: 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day {
  min-height: 112px;
  padding: 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.calendar-day.outside-month {
  background: #f5f1e9;
  color: #9d998f;
}

.calendar-day-number {
  display: block;
  margin-bottom: 6px;
  font-size: .82rem;
  font-weight: 800;
}

.calendar-events {
  display: grid;
  gap: 4px;
}

.calendar-event {
  overflow: hidden;
  padding: 5px 6px;
  border-radius: 6px;
  font-size: .72rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-event { background: #dfeedd; color: #245439; }
.in-person-event { background: #f6e7bd; color: #614a1e; }

.calendar-legend {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  color: var(--muted);
  font-size: .86rem;
}

.calendar-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 5px;
  border-radius: 50%;
}

.calendar-management {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.calendar-edit-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 150px 110px auto auto;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.calendar-edit-row small {
  display: block;
  color: var(--muted);
}

.danger-button {
  color: #8d3c35;
  border-color: #d9aaa4;
}

.online-dot { background: #74a77a; }
.in-person-dot { background: #d2a64d; }

.birthday-panel {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.birthday-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.birthday-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 160px auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.birthday-row label {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.range-field input[type="range"] {
  width: 100%;
  accent-color: var(--teal);
}

.schedule-override-box {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.override-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.session-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.session-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.session-summary div {
  min-height: 96px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbf8f2;
}

.session-summary span,
.session-summary small {
  display: block;
  color: var(--muted);
}

.session-summary strong {
  display: block;
  margin: 7px 0 4px;
  font-size: 1.08rem;
}

.lead-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.lead-column {
  min-height: 260px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f9f5ee;
}

.lead-column h3 {
  font-size: 0.95rem;
}

.lead-card {
  margin-top: 10px;
  padding: 12px;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(38, 48, 42, 0.07);
}

.lead-card strong,
.lead-card span {
  display: block;
}

.lead-card span {
  color: var(--muted);
  font-size: 0.86rem;
}

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

.bar-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
}

.bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5ded2;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.settings-list {
  display: grid;
  gap: 12px;
  color: var(--ink-soft);
}

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

.settings-block {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbf8f2;
}

.weekday-grid,
.form-row {
  display: grid;
  gap: 12px;
}

.weekday-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

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

.checkbox-card {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink-soft);
  font-weight: 720;
}

.checkbox-card input {
  accent-color: var(--teal);
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.loading {
  padding: 40px;
  color: var(--muted);
  text-align: center;
}

.waiting-room {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 34px;
  background:
    linear-gradient(90deg, rgba(32, 49, 45, 0.9), rgba(32, 49, 45, 0.65)),
    url("/static/images/hero-serenity.png");
  background-position: center;
  background-size: cover;
}

.waiting-panel {
  width: min(980px, 100%);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(251, 248, 242, 0.96);
  box-shadow: var(--shadow);
}

.orientation-grid,
.device-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

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

.device-test {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.online-call {
  min-height: 100vh;
  padding: 22px;
  color: #ffffff;
  background: #16201f;
}

.call-stage {
  position: relative;
  min-height: calc(100vh - 44px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(40, 95, 87, 0.88), rgba(32, 49, 45, 0.98)),
    url("/static/images/hero-serenity.png");
  background-size: cover;
  background-position: center;
}

.video-main {
  position: relative;
  width: min(760px, 82vw);
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(20, 30, 30, 0.72);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.video-main video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 24px;
  text-align: center;
}

.video-placeholder[hidden] {
  display: none;
}

.video-placeholder span {
  font-size: clamp(2rem, 5vw, 4.2rem);
  font-weight: 800;
}

.video-placeholder small,
.call-notice {
  color: rgba(255, 255, 255, 0.72);
}

.video-self {
  position: absolute;
  right: 24px;
  bottom: 104px;
  width: min(230px, 36vw);
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(10px);
}

.video-self video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.video-self span {
  position: absolute;
}

.call-notice {
  position: absolute;
  left: 24px;
  bottom: 118px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.28);
}

.call-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.icon-button {
  min-width: 58px;
  min-height: 48px;
  border-radius: var(--radius);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 760;
}

.icon-button.danger {
  min-width: 96px;
  background: #9b3d35;
}

.icon-button.muted {
  background: rgba(155, 61, 53, 0.82);
}

@media (max-width: 1040px) {
  .nav-links {
    display: none;
  }

  .grid-4,
  .metric-grid,
  .data-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3,
  .hero-layout,
  .two-column,
  .booking-shell,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .therapist-layout {
    grid-template-columns: 1fr;
  }

  .client-area {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .client-sidebar {
    position: static;
    height: auto;
  }

  .panel-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .orientation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .birthday-row {
    grid-template-columns: 1fr 160px auto auto auto;
  }

  .calendar-edit-row {
    grid-template-columns: minmax(160px, 1fr) 150px 110px auto auto;
  }
}

@media (min-width: 1041px) {
  .section-heading-wide h2 {
    white-space: nowrap;
  }

  #sobre .section-heading {
    width: 100%;
    max-width: none;
  }

  #sobre .section-heading h2 {
    max-width: none;
    font-size: 2.5rem;
    line-height: 1.08;
    white-space: nowrap;
  }
}

@media (min-width: 761px) and (max-height: 780px) {
  .hero.hero-editable {
    padding: 14px 0;
  }

  .hero-editable-shell {
    width: min(var(--container), 900px);
  }

  .hero-editable-copy {
    top: 16%;
  }

  .hero-editable h1 {
    font-size: 3rem;
  }

  .hero-editable-subtitle {
    font-size: 1.5rem;
  }

  .hero-editable-message {
    font-size: 1.12rem;
  }
}

@media (max-width: 760px) {
  :root {
    --container: min(1120px, calc(100dvw - 28px));
  }

  .site-header-inner {
    width: 100%;
    min-height: 68px;
    gap: 10px;
    padding: 0 14px;
  }

  .container {
    width: calc(100% - 28px);
    max-width: 362px;
  }

  .site-header .brand {
    display: block;
    flex: 0 0 44px;
    max-width: 44px;
    min-width: 0;
  }

  .site-header .brand strong,
  .site-header .brand span {
    display: none;
  }

  .site-header .brand-mark {
    display: block;
    width: 42px;
    height: 42px;
    object-fit: contain;
  }

  .site-header .header-actions {
    display: flex;
    gap: 6px;
    margin-left: auto;
    visibility: visible;
  }

  .header-actions .button.primary {
    width: auto;
    min-height: 42px;
    flex: 0 0 auto;
    gap: 6px;
    overflow: visible;
    padding: 0 12px;
    font-size: 0.74rem;
  }

  .header-actions .button.primary .button-icon {
    width: 24px;
    height: 24px;
    font-size: 1rem;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.25rem, 11vw, 3rem);
    line-height: 1;
  }

  .booking-hero h1 {
    font-size: clamp(2.2rem, 10vw, 2.75rem);
  }

  .booking-hero .lead,
  .section-heading .lead,
  .chat-shell,
  .chat-panel,
  .booking-panel {
    max-width: 100%;
    min-width: 0;
  }

  .booking-hero .lead,
  .section-heading .lead {
    max-width: 320px;
  }

  .chat-message {
    max-width: 285px;
  }

  .chat-panel,
  .booking-panel {
    padding: 20px;
  }

  .field-row,
  .option-group,
  .anamnesis-record-summary,
  .anamnesis-review dl div,
  .anamnesis-record-sections dl div {
    grid-template-columns: 1fr;
  }

  .anamnesis-progress > div:first-child {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .anamnesis-navigation {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .anamnesis-navigation .button,
  .anamnesis-navigation .button:last-child {
    width: 100%;
    margin-left: 0;
  }

  .anamnesis-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .anamnesis-dialog-header,
  #anamnesisDialogContent {
    padding: 16px;
  }

  .anamnesis-dialog-header {
    align-items: center;
    gap: 12px;
  }

  .anamnesis-dialog-header h2 {
    font-size: 1.35rem;
  }

  .anamnesis-dialog-actions {
    gap: 6px;
  }

  .button.anamnesis-print-button {
    width: 42px;
    min-width: 42px;
    min-height: 42px;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }

  .anamnesis-print-button svg {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }

  .chat-actions,
  .cta-actions,
  .hero-actions {
    align-items: stretch;
    justify-content: flex-start;
  }

  .chat-actions .button,
  .cta-actions .button,
  .hero-actions .button {
    width: 100%;
    min-height: 48px;
    white-space: normal;
    text-align: center;
  }

  .booking-steps span,
  .choice,
  .notice,
  .success-box {
    min-width: 0;
    overflow-wrap: break-word;
  }

  .hero {
    min-height: auto;
  }

  .hero .container {
    padding: 62px 0 42px;
  }

  .hero-layout {
    gap: 30px;
  }

  .hero-copy,
  .hero h1,
  .hero .lead {
    width: 100%;
    max-width: min(340px, calc(100vw - 28px));
  }

  .booking-steps {
    grid-template-columns: 1fr;
  }

  .hero-profile-card {
    padding: 0;
  }

  .profile-frame {
    width: min(100%, 300px);
  }

  .hero-editable-copy {
    top: 18%;
    left: 4.5%;
    width: 48%;
    max-width: none;
  }

  .hero-editable h1 {
    width: 100%;
    max-width: none;
    font-size: clamp(1.05rem, 5vw, 2.4rem);
  }

  .hero-editable-subtitle {
    margin-bottom: 5px;
    font-size: clamp(0.62rem, 2.8vw, 1.15rem);
  }

  .hero-editable-divider {
    height: 2px;
    margin-bottom: 5px;
  }

  .hero-editable-message {
    max-width: 90%;
    margin-bottom: 5px;
    padding-left: 6px;
    border-left-width: 2px;
    font-size: clamp(0.58rem, 2.45vw, 0.98rem);
    line-height: 1.22;
  }

  .hero-proof,
  .audience-list,
  .specialty-grid,
  .grid-4,
  .copy-horizontal .text-panel,
  .copy-horizontal .feature-list,
  .date-grid,
  .time-grid,
  .metric-grid,
  .data-grid,
  .session-summary,
  .orientation-grid,
  .device-grid,
  .weekday-grid,
  .panel-nav {
    grid-template-columns: 1fr;
  }

  .benefit-card {
    min-width: 0;
  }

  .benefit-card h3 {
    overflow-wrap: anywhere;
  }

  .certificate-stage {
    grid-template-columns: 1fr;
  }

  .certificate-arrow {
    display: none;
  }

  .certificate-reel {
    padding-inline: 0;
  }

  .certificate-card {
    flex-basis: min(330px, 88vw);
  }

  .section {
    padding: 58px 0;
  }

  .footer-inner,
  .panel-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-meta {
    align-items: flex-start;
  }

  .login-screen {
    grid-template-columns: 1fr;
  }

  .login-copy {
    padding: 42px 28px 24px;
  }

  .client-login .login-copy {
    min-height: 480px;
    padding-bottom: 34px;
  }

  .login-box {
    width: 100%;
    min-height: auto;
    padding: 30px 22px 44px;
    overflow: hidden;
  }

  .login-box h2 {
    max-width: 100%;
    font-size: clamp(1.8rem, 8vw, 2.25rem);
    overflow-wrap: break-word;
    text-wrap: wrap;
  }

  .login-box form,
  .login-box .notice,
  .login-box .button {
    min-width: 0;
    max-width: 100%;
  }

  .panel-main {
    padding: 20px 14px 28px;
  }

  .agenda-row {
    grid-template-columns: 1fr;
  }

  .calendar-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .month-calendar {
    grid-template-columns: repeat(7, minmax(76px, 1fr));
  }

  .calendar-day {
    min-height: 92px;
    padding: 5px;
  }

  .calendar-event {
    max-width: 68px;
    font-size: .65rem;
  }

  .birthday-row {
    grid-template-columns: 1fr 1fr;
  }

  .birthday-row strong,
  .birthday-row input[type="date"] {
    grid-column: 1 / -1;
  }

  .calendar-edit-row {
    grid-template-columns: 1fr 1fr;
  }

  .calendar-edit-row > div {
    grid-column: 1 / -1;
  }

  .video-self,
  .call-notice {
    position: static;
    width: min(100%, 320px);
    margin: 12px;
  }

  .call-stage {
    align-content: center;
    gap: 12px;
    padding: 18px;
  }
}

@media print {
  @page {
    margin: 14mm;
  }

  body {
    background: #ffffff !important;
  }

  body * {
    visibility: hidden !important;
  }

  .anamnesis-dialog,
  .anamnesis-dialog * {
    visibility: visible !important;
  }

  .anamnesis-dialog {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }

  .anamnesis-dialog::backdrop,
  .anamnesis-dialog-actions {
    display: none !important;
  }

  .anamnesis-dialog-header {
    position: static;
    padding: 0 0 14px;
    border-bottom: 2px solid #20312d;
    background: #ffffff !important;
  }

  #anamnesisDialogContent {
    padding: 18px 0 0;
  }

  .anamnesis-record-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .anamnesis-record-summary,
  .anamnesis-record-sections section,
  .anamnesis-record-sections dl div {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .anamnesis-record-sections {
    gap: 18px;
  }

  .anamnesis-record-sections h3 {
    color: #20312d;
  }
}
