:root {
  --bg: #ede4d4;
  --surface: #ffffff;
  --surface-alt: #e5d9c8;
  --text: #1d2530;
  --muted: #4d5b6c;
  --primary: #7b5d4c;
  --primary-hover: #634939;
  --border: #d4c4b0;
  --ok: #13795b;
  --error: #b42318;
  --ease-smooth: cubic-bezier(0.12, 1, 0.28, 1);
  --duration-reveal: 1.45s;
  --duration-hero: 1.55s;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

section[id] {
  scroll-margin-top: 130px;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: static;
  background: transparent;
  padding-top: 0.8rem;
}

.header-panel {
  padding: 0.7rem 1.1rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #ebe3dc;
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(82, 61, 47, 0.08);
  backdrop-filter: blur(8px);
}

.nav-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  min-height: 88px;
}

.header-nav-col {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  align-self: stretch;
  gap: 0.45rem;
  min-width: 0;
  padding-top: 1.35rem;
  padding-bottom: 0.15rem;
  grid-column: 2;
  justify-self: center;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: auto;
}

.header-telegram-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.header-telegram-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.header-telegram-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #2aabee;
  background: rgba(42, 171, 238, 0.1);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.header-telegram-icon-link:hover {
  color: #fff;
  background: #2aabee;
  transform: translateY(-1px);
}

.brand {
  flex-shrink: 0;
  grid-column: 1;
  justify-self: start;
}

.brand img {
  width: 220px;
  height: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 1.15rem;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.02rem;
  white-space: nowrap;
  line-height: 1.2;
}

.main-nav a[href="#services"] + a[href="#process"] {
  margin-left: 1.15rem;
}

.mobile-nav-icon,
.mobile-btn-icon {
  display: none;
}

.main-nav a:hover {
  color: var(--primary);
}

.mobile-menu-wrap {
  display: none;
  position: relative;
}

.mobile-menu-btn {
  border: 1px solid #d9cec6;
  background: #fff;
  color: var(--text);
  border-radius: 10px;
  width: 44px;
  height: 40px;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.mobile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  width: min(220px, 72vw);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  background: #fff;
  border: 1px solid #e6dad1;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(56, 42, 33, 0.12);
  padding: 0.45rem;
  z-index: 60;
}

.mobile-menu.hidden {
  display: none;
}

.mobile-menu a {
  display: block;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}

.mobile-menu a:hover {
  background: rgba(123, 93, 76, 0.08);
}

.hero {
  padding: 1.2rem 0 1rem;
}

.hero .container {
  background: linear-gradient(180deg, #f2e8dc 0%, #e8ddd0 100%);
  border: 1px solid #eadfd7;
  border-radius: 26px;
  box-shadow: 0 16px 35px rgba(82, 61, 47, 0.08);
  padding: 1.8rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: 1.35rem;
  align-items: stretch;
}

.hero-copy {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

h1 {
  margin: 0.2rem 0 0.8rem;
  font-size: clamp(2rem, 2.2vw + 1rem, 3.45rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.hero-title {
  margin: 0.1rem 0 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12em;
  font-size: clamp(1.85rem, 2.1vw + 0.95rem, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: #1a222c;
}

.hero-title-line {
  display: block;
}

.hero-copy .eyebrow,
.hero-copy .hero-title-line,
.hero-copy .hero-text,
.hero-copy .cabinet-btn,
.hero-visual .hero-card-points li {
  opacity: 0;
  transform: translate3d(0, 8px, 0);
}

.hero-visual .hero-card {
  transform: translate3d(0, 10px, 0);
}

.hero-copy.is-visible .eyebrow,
.hero-copy.is-visible .hero-title-line,
.hero-copy.is-visible .hero-text,
.hero-copy.is-visible .cabinet-btn,
.hero-visual.is-visible .hero-card-points li {
  animation: hero-line-in var(--duration-hero) var(--ease-smooth) both;
}

.hero-copy.is-visible .eyebrow {
  animation-delay: 0.12s;
}

.hero-copy.is-visible .hero-title-line {
  animation-delay: calc(0.28s + var(--line-index, 0) * 0.2s);
}

.hero-copy.is-visible .hero-text {
  animation-delay: 0.62s;
}

.hero-copy.is-visible .cabinet-btn {
  animation-delay: 0.82s;
}

.hero-visual.is-visible .hero-card-points li {
  animation-delay: calc(0.72s + var(--line-index, 0) * 0.22s);
}

.hero-visual.is-visible .hero-card {
  opacity: 1;
  transform: none;
}

.hero-card-points li:nth-child(1) {
  --line-index: 0;
}

.hero-card-points li:nth-child(2) {
  --line-index: 1;
}

@keyframes hero-line-in {
  from {
    opacity: 0;
    transform: translate3d(0, 6px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.hero-text {
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 1rem;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.2rem;
}

.hero-visual {
  position: relative;
  display: grid;
  grid-template: 1fr / 1fr;
  min-height: 500px;
  background: #efe8e2;
  border: 1px solid #e3d7ce;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(79, 62, 49, 0.12);
}

.hero-visual > picture {
  display: block;
  grid-area: 1 / 1;
  min-height: 100%;
}

.doctor-hero-image {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  object-position: center 52%;
  display: block;
}

.hero-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.38rem 0.75rem;
  font-weight: 700;
  font-size: 0.88rem;
}

.hero-visual .hero-card {
  grid-area: 1 / 1;
  align-self: end;
  justify-self: end;
  z-index: 2;
  width: min(300px, calc(100% - 1.6rem));
  margin: 0.8rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(2px);
  border: 1px solid #e7ddd5;
}

.hero-card-premium {
  box-shadow: 0 8px 20px rgba(69, 50, 38, 0.12);
  padding: 0.9rem 1rem;
}

.hero-card h2 {
  margin-top: 0;
  font-size: 1.35rem;
}

.hero-card ul {
  margin: 0;
  padding-left: 1rem;
  color: #2f3f52;
}

.hero-card-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.hero-card-points li {
  position: relative;
  padding-left: 0.95rem;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  color: #3a4654;
}

.hero-card-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}

.hero-card li + li {
  margin-top: 0.22rem;
}

.hero-card-points li + li {
  margin-top: 0;
}

.section {
  padding: 2.8rem 0;
}

.section-alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

h2 {
  font-size: clamp(1.5rem, 1vw + 1rem, 2rem);
  margin: 0 0 0.9rem;
}

.section-note {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 64ch;
}

.doctor-lead {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
}

#about.section {
  padding-top: 1rem;
}

#about h2 {
  margin-bottom: 0.35rem;
}

#about .doctor-lead {
  margin-bottom: 0.35rem;
}

#about .section-note {
  margin-bottom: 0.55rem;
  max-width: none;
}

@media (min-width: 901px) {
  #about .section-note {
    text-align: center;
  }
}

#about .about-layout {
  margin-top: 0.8rem;
  width: 100%;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.cards-benefits {
  margin-top: 0.8rem;
  grid-template-columns: repeat(2, 1fr);
}

section#services.services-section {
  background: linear-gradient(165deg, #5f4738 0%, #7b5d4c 48%, #6a5042 100%);
  color: #fff;
  padding-top: 2.4rem;
  padding-bottom: 2.6rem;
  border-top: none;
  border-bottom: none;
}

.services-eyebrow {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0.35rem;
}

.services-heading {
  color: #fff;
  margin: 0 0 1.35rem;
  font-size: clamp(1.45rem, 4vw, 2rem);
}

.service-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(180deg, #fcf8f5 0%, #f3ebe4 100%);
  border: 1px solid #e8ddd4;
  border-radius: 20px;
  padding: 1.35rem 1.25rem 1.2rem;
  color: var(--text);
  text-align: center;
  box-shadow: 0 18px 40px rgba(36, 26, 18, 0.22);
}

.service-card-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.service-card-bottom {
  flex: 0 0 auto;
  width: 100%;
  margin-top: auto;
}

.service-tag {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--primary);
}

.service-tag::before {
  content: "• ";
}

.service-card-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.2rem, 2.8vw, 1.65rem);
  font-weight: 700;
  color: #3f3028;
  min-height: 3.75em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card-text {
  margin: 0 auto;
  max-width: 30rem;
  flex: 1 1 auto;
  min-height: calc(1.55em * 3);
  color: #5c4638;
  font-size: 0.95rem;
  line-height: 1.55;
}

.service-details {
  margin: 0.85rem auto 0;
  max-width: 24rem;
  flex: 0 0 auto;
  text-align: center;
}

.service-details-placeholder {
  visibility: hidden;
  pointer-events: none;
}

.service-details summary {
  display: inline-block;
  cursor: pointer;
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  list-style: none;
}

.service-details summary::-webkit-details-marker {
  display: none;
}

.service-details ul {
  margin: 0.65rem auto 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: left;
  display: inline-block;
}

.service-price {
  margin: 0 0 1rem;
  line-height: 1;
  min-height: clamp(2rem, 7vw, 2.6rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-price-value {
  font-size: clamp(2rem, 7vw, 2.6rem);
  font-weight: 700;
  color: #3f3028;
}

.service-price-text {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
}

.service-price-currency {
  font-size: 1.35rem;
  font-weight: 700;
  color: #3f3028;
  margin-left: 0.15rem;
}

.service-cta {
  width: 100%;
  min-height: 3.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999px;
  padding: 0.82rem 1rem;
}

.service-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.95rem;
}

.service-disclaimer {
  margin: 0.85rem 0 0;
  min-height: 4.2em;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #6a574b;
}

.service-disclaimer-placeholder {
  visibility: hidden;
}

.consent span {
  line-height: 1.4;
}

.consent a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}

.about-layout > .card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  text-align: left;
}

.about-layout > .card h3 {
  margin: 0 0 0.65rem;
  line-height: 1.25;
}

.about-layout > .card .approach-chain {
  margin: 0 0 0.65rem;
}

.about-layout > .card > p {
  margin: 0 0 0.65rem;
}

.about-layout > .card > p:last-child {
  margin-bottom: 0;
}

.about-results-photo {
  margin: 0;
  width: 100%;
  min-width: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(79, 62, 49, 0.1);
  background: var(--surface);
}

.about-results-photo img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 901px) {
  .about-layout {
    grid-template-columns: minmax(0, 1fr) clamp(220px, 24vw, 280px) minmax(0, 1fr);
    gap: 1.15rem;
    align-items: stretch;
  }

  .about-results-photo {
    display: flex;
    align-items: stretch;
  }

  .about-results-photo img {
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}

.reviews-carousel {
  margin-top: 1rem;
}

.reviews-carousel-track {
  display: grid;
  position: relative;
}

.reviews-slide {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
  pointer-events: none;
}

.reviews-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.review-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.review-pair-photo,
.review-pair-text {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  padding: 0.5rem;
  box-shadow: 0 6px 18px rgba(82, 61, 47, 0.07);
}

.review-pair img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: contain;
  display: block;
  border-radius: 10px;
  background: #fff;
}

.reviews-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.reviews-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: #d4c4b0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.reviews-carousel-dot.is-active {
  background: var(--primary);
  transform: scale(1.15);
}

.reviews-carousel-dot:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity var(--duration-reveal) var(--ease-smooth),
    transform var(--duration-reveal) var(--ease-smooth);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.hero .hero-copy.reveal,
.hero .hero-visual.reveal {
  transform: none;
  transition: opacity 1.75s var(--ease-smooth);
}

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

.hero-visual.reveal.is-visible .doctor-hero-image {
  animation: hero-image-in 2.1s var(--ease-smooth) 0.35s both;
}

.hero-visual.reveal.is-visible .hero-card {
  animation: hero-card-in 1.65s var(--ease-smooth) 0.95s both;
}

@keyframes hero-image-in {
  from {
    opacity: 0.88;
    transform: scale(1.025);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes hero-card-in {
  from {
    transform: translate3d(0, 10px, 0);
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reviews-slide {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-visual.reveal.is-visible .doctor-hero-image,
  .hero-visual.reveal.is-visible .hero-card,
  .hero-copy.is-visible .eyebrow,
  .hero-copy.is-visible .hero-title-line,
  .hero-copy.is-visible .hero-text,
  .hero-copy.is-visible .cabinet-btn,
  .hero-visual.is-visible .hero-card-points li {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero-copy .eyebrow,
  .hero-copy .hero-title-line,
  .hero-copy .hero-text,
  .hero-copy .cabinet-btn,
  .hero-visual .hero-card,
  .hero-visual .hero-card-points li {
    opacity: 1;
    transform: none;
  }
}

.diploma-grid {
  margin-top: 0.9rem;
  align-items: stretch;
}

.diploma-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 330px;
}

.diploma-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #177ec2 0%, #75b4df 100%);
}

.diploma-card h3 {
  margin: 0.15rem 0 0.45rem;
  min-height: 2.8em;
}

.diploma-card p {
  margin: 0;
  color: var(--muted);
}

.diploma-card picture {
  display: block;
  margin-top: 0.7rem;
}

.diploma-preview {
  margin-top: 0;
  width: 100%;
  height: 200px;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e4d8cf;
  padding: 0.25rem;
}

.feature-list {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.38rem;
  color: #2f3f52;
}

.approach-chain {
  margin: 0.35rem 0 0.65rem;
  font-weight: 700;
  color: var(--primary);
}

.diploma-year {
  margin: 0;
  color: var(--primary);
  font-weight: 700;
}

.steps {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}

.step h3 {
  margin: 0.45rem 0 0.35rem;
}

.step p,
.step ul {
  margin: 0;
  color: var(--muted);
}

.step ul {
  padding-left: 1.2rem;
}

.step li + li {
  margin-top: 0.35rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #e3f0fb;
  color: var(--primary);
  font-weight: 700;
}

.form {
  max-width: 720px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.2rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

label,
legend {
  font-weight: 600;
}

input {
  width: 100%;
  padding: 0.72rem 0.78rem;
  border: 1px solid #c8d6e6;
  border-radius: 10px;
  font: inherit;
}

select {
  width: 100%;
  padding: 0.72rem 0.78rem;
  border: 1px solid #c8d6e6;
  border-radius: 10px;
  font: inherit;
  background: #fff;
}

textarea {
  width: 100%;
  min-height: 82px;
  padding: 0.72rem 0.78rem;
  border: 1px solid #c8d6e6;
  border-radius: 10px;
  font: inherit;
  resize: vertical;
}

input:focus {
  outline: 2px solid rgba(23, 126, 194, 0.2);
  border-color: var(--primary);
}

select:focus {
  outline: 2px solid rgba(23, 126, 194, 0.2);
  border-color: var(--primary);
}

textarea:focus {
  outline: 2px solid rgba(23, 126, 194, 0.2);
  border-color: var(--primary);
}

.visit-type label,
.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 500;
}

.consent + .consent {
  margin-top: 0.55rem;
}

.visit-type input,
.consent input {
  width: auto;
}

.questionnaire {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem;
  margin: 0.65rem 0 1rem;
  background: #f8fbff;
}

.dynamic-fields {
  border-left: 2px solid rgba(23, 126, 194, 0.28);
  padding-left: 0.75rem;
  margin-bottom: 0.55rem;
}

.security-block {
  margin: 1rem 0 0.75rem;
  border: 1px dashed #b7cbe1;
  border-radius: 12px;
  padding: 0.85rem;
}

.security-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.bot-trap {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hidden {
  display: none;
}

.btn {
  display: inline-block;
  border: 0;
  border-radius: 10px;
  padding: 0.68rem 1.1rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  width: fit-content;
  border-radius: 12px;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.form-hint {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

.visit-calendar-row,
.visit-slot-row {
  margin-bottom: 0.65rem;
}

.visit-calendar-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}

.visit-field-label {
  font-weight: 600;
  font-size: 0.92rem;
}

.visit-date-selected {
  min-height: 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  text-align: right;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(123, 93, 76, 0.08);
}

.visit-date-selected:empty {
  display: none;
}

.visit-calendar {
  border: 1px solid rgba(196, 176, 154, 0.55);
  border-radius: 16px;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255, 255, 255, 0.95) 0%, transparent 55%),
    linear-gradient(165deg, #fffdf9 0%, #f8f1e8 100%);
  padding: 0.65rem 0.7rem 0.7rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 10px 28px rgba(92, 70, 56, 0.07);
}

.visit-calendar--loading {
  opacity: 0.65;
  pointer-events: none;
}

.visit-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(212, 196, 176, 0.45);
}

.visit-calendar-month {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05rem;
  flex: 1;
  line-height: 1.1;
}

.visit-calendar-month-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.visit-calendar-month-year {
  font-size: 0.68rem;
  font-weight: 600;
  color: #9a8576;
  letter-spacing: 0.04em;
}

.visit-calendar-nav {
  width: 1.85rem;
  height: 1.85rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--primary);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(92, 70, 56, 0.1);
  transition: transform 0.15s var(--ease-smooth), box-shadow 0.15s var(--ease-smooth);
}

.visit-calendar-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(92, 70, 56, 0.14);
}

.visit-calendar-nav:active {
  transform: translateY(0);
}

.visit-calendar-weekdays,
.visit-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.28rem;
}

.visit-calendar-weekdays {
  margin-bottom: 0.35rem;
  font-size: 0.66rem;
  font-weight: 700;
  color: #a8b0ba;
  text-align: center;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.visit-calendar-weekdays .is-consult-day {
  color: var(--primary);
}

.visit-calendar-body {
  padding: 0.15rem 0.05rem 0;
}

.visit-calendar-day,
.visit-calendar-pad {
  width: 100%;
  aspect-ratio: 1;
  max-width: 2.15rem;
  max-height: 2.15rem;
  margin: 0 auto;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  position: relative;
}

.visit-calendar-pad {
  visibility: hidden;
}

.visit-calendar-day {
  border: 1.5px solid transparent;
  background: transparent;
  color: #c9d1d9;
  cursor: default;
}

.visit-calendar-day.is-muted {
  color: #d8dee5;
}

.visit-calendar-day.is-consult-day.is-muted {
  color: #d0ccc6;
  background: rgba(123, 93, 76, 0.04);
}

.visit-calendar-day.is-available {
  background: linear-gradient(180deg, #f7fdf9 0%, #e8f7ee 100%);
  border-color: rgba(86, 168, 124, 0.35);
  color: #247a52;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(36, 122, 82, 0.08);
  transition:
    transform 0.15s var(--ease-smooth),
    box-shadow 0.15s var(--ease-smooth),
    border-color 0.15s var(--ease-smooth);
}

.visit-calendar-day.is-available::after {
  content: "";
  position: absolute;
  bottom: 0.18rem;
  width: 0.22rem;
  height: 0.22rem;
  border-radius: 999px;
  background: #5cb88a;
}

.visit-calendar-day.is-available:hover {
  transform: translateY(-1px);
  border-color: rgba(86, 168, 124, 0.55);
  box-shadow: 0 4px 10px rgba(36, 122, 82, 0.14);
}

.visit-calendar-day.is-selected {
  background: linear-gradient(145deg, #8a6754 0%, #6f5243 100%);
  border-color: #6f5243;
  color: #fff;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 3.5px rgba(123, 93, 76, 0.35),
    0 6px 14px rgba(92, 70, 56, 0.22);
  transform: scale(1.04);
}

.visit-calendar-day.is-selected::after {
  background: rgba(255, 255, 255, 0.9);
}

.visit-calendar-day.is-today:not(.is-selected) {
  border-color: rgba(123, 93, 76, 0.45);
  color: #8a7365;
}

.visit-calendar-empty {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  text-align: center;
}

.visit-slot-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.38rem;
}

.visit-slot-picker:empty {
  display: none;
}

.visit-slot-chip {
  border: 1px solid rgba(212, 196, 176, 0.75);
  border-radius: 10px;
  background: linear-gradient(180deg, #fff 0%, #faf7f2 100%);
  padding: 0.44rem 0.25rem;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(92, 70, 56, 0.05);
  transition:
    border-color 0.15s var(--ease-smooth),
    background 0.15s var(--ease-smooth),
    transform 0.15s var(--ease-smooth);
}

.visit-slot-chip:hover {
  border-color: #c4b29c;
  background: #fff;
  transform: translateY(-1px);
}

.visit-slot-chip.is-selected {
  border-color: #6f5243;
  background: linear-gradient(145deg, #8a6754 0%, #6f5243 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(92, 70, 56, 0.18);
}

.visit-slot-placeholder {
  margin: 0;
  font-size: 0.78rem;
}

.visit-slot-placeholder[hidden],
.visit-calendar-empty[hidden] {
  display: none;
}

@media (max-width: 520px) {
  .visit-slot-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.visit-intake-validation {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(180, 35, 24, 0.35);
  background: rgba(180, 35, 24, 0.06);
}

.visit-intake-validation-title {
  margin: 0 0 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #9f1d1d;
}

.visit-intake-validation-hint {
  margin: 8px 0 0;
  font-size: 0.78rem;
}

.visit-intake-validation-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.visit-intake-validation-jump {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 1px solid rgba(180, 35, 24, 0.22);
  border-radius: 8px;
  background: #fff;
  color: #9f1d1d;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.visit-intake-validation-jump:hover {
  background: rgba(180, 35, 24, 0.08);
}

.visit-intake-field-error {
  outline: 2px solid rgba(180, 35, 24, 0.45);
  outline-offset: 2px;
  border-radius: 10px;
}

.visit-intake-validation-target {
  animation: visit-intake-validation-pulse 1.2s ease;
}

@keyframes visit-intake-validation-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(180, 35, 24, 0.35);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(180, 35, 24, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(180, 35, 24, 0);
  }
}

.visit-intake-validation-mount:empty {
  display: none;
}

.form-message {
  margin-top: 0.9rem;
  min-height: 1.4rem;
}

.form-message.success {
  color: var(--ok);
}

.form-message.error {
  color: var(--error);
}

.site-footer {
  padding: 1.4rem 0;
  color: var(--muted);
  background: #edf2f7;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.footer-inner a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.footer-inner a:hover {
  text-decoration: underline;
}

.legal-page {
  padding: 2rem 0 3rem;
}

.legal-page-full .legal-doc {
  max-width: 760px;
}

.legal-subtitle {
  margin: -0.35rem 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.legal-doc h2 {
  margin-top: 1.75rem;
  font-size: 1.12rem;
  color: var(--primary);
}

.legal-doc ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
  color: var(--muted);
}

.legal-doc li {
  margin-bottom: 0.35rem;
}

.legal-page h1 {
  margin-top: 0;
}

.legal-page h2 {
  margin-top: 1.6rem;
  font-size: 1.15rem;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
}

.legal-page ol {
  padding-left: 1.2rem;
}

.legal-back {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.legal-back:hover {
  text-decoration: underline;
}

.legal-meta {
  font-size: 0.92rem;
  color: var(--muted);
}

.mobile-bottom-nav {
  display: none;
}

@media (min-width: 901px) {
  .nav-wrap {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .brand {
    align-self: center;
  }

  .header-nav-col {
    grid-column: 2;
    align-self: stretch;
    justify-content: center;
    justify-self: stretch;
    width: 100%;
    padding-top: 0;
    padding-bottom: 0;
  }

  .mobile-menu-wrap {
    display: none !important;
  }

  .mobile-menu {
    display: none !important;
  }

  .mobile-bottom-nav {
    display: none !important;
  }

  body {
    padding-bottom: 0 !important;
  }
}

.cta-section {
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
}

.cta-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-radius: 18px;
  border: 1px solid #e7dbd2;
  background: linear-gradient(130deg, #fbf7f3 0%, #f2e9e2 100%);
  padding: 1.2rem 1.3rem;
  box-shadow: 0 10px 24px rgba(83, 63, 49, 0.08);
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.auth-modal.hidden {
  display: none !important;
  pointer-events: none;
  visibility: hidden;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(48, 36, 28, 0.55);
  cursor: pointer;
}

.auth-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  padding: 1.35rem 1.25rem 1.15rem;
  box-shadow: 0 24px 64px rgba(48, 36, 28, 0.28);
}

.auth-modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: #f4ebe4;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.auth-modal-form .form-row {
  margin-bottom: 0.75rem;
}

.auth-modal-form .btn-block {
  width: 100%;
  margin-top: 0.35rem;
}

.auth-form-title {
  margin: 0 2rem 0.35rem 0;
  font-size: 1.25rem;
}

.auth-form-lead {
  margin: 0 0 0.95rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.auth-switch {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
  text-align: center;
}

.auth-switch-btn {
  border: 0;
  padding: 0;
  background: none;
  color: var(--primary);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cabinet-guest {
  border: 1px solid #e7dbd2;
  border-radius: 18px;
  background: linear-gradient(130deg, #fbf7f3 0%, #f2e9e2 100%);
  padding: 1.25rem 1.3rem;
  box-shadow: 0 10px 24px rgba(83, 63, 49, 0.08);
}

.cabinet-guest-text {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 42rem;
}

.cabinet-guest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

body.modal-open {
  overflow: hidden;
}

.cabinet {
  margin-top: 1rem;
}

.cabinet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.cabinet-head h3 {
  margin: 0;
}

.cabinet-password-details {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(92, 70, 56, 0.12);
}

.cabinet-password-details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent, #c45c3e);
  list-style: none;
}

.cabinet-password-details summary::-webkit-details-marker {
  display: none;
}

.cabinet-password-form {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cabinet-grid {
  margin-bottom: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.data-list {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.5rem;
}

.muted {
  color: var(--muted);
}

.faq-list {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.75rem;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-list p,
.faq-list ul {
  margin: 0.6rem 0 0;
  color: var(--muted);
}

.faq-list ul {
  padding-left: 1.2rem;
}

.faq-list li + li {
  margin-top: 0.35rem;
}

@media (max-width: 1120px) and (min-width: 901px) {
  .brand img {
    width: 190px;
  }

  .main-nav {
    gap: 0.75rem;
  }

  .main-nav a {
    font-size: 0.94rem;
  }
}

@media (max-width: 900px) {
  section[id] {
    scroll-margin-top: 24px;
  }

  .site-header {
    position: static;
    padding-top: 0.45rem;
  }

  .header-panel {
    padding: 0.8rem;
    border-radius: 14px;
  }

  .site-header {
    position: relative;
    z-index: 50;
  }

  .header-panel {
    overflow: visible;
  }

  .nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    min-height: 0;
  }

  .header-nav-col {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.55rem;
    flex: 0 0 auto;
    margin-left: auto;
    padding: 0;
    grid-column: auto;
    align-self: auto;
  }

  .brand {
    display: flex;
    justify-content: flex-start;
    flex: 1 1 auto;
    min-width: 0;
    grid-column: auto;
    justify-self: auto;
  }

  .brand img {
    width: 170px;
  }

  .header-telegram-row {
    margin: 0;
    flex: 0 0 auto;
  }

  .header-telegram-label {
    display: none;
  }

  .header-telegram-icon-link {
    width: 48px;
    height: 48px;
  }

  .header-telegram-icon-link svg {
    width: 28px;
    height: 28px;
  }

  .main-nav {
    display: none;
  }

  .mobile-nav-icon {
    display: none;
  }

  .nav-row {
    position: relative;
    width: auto;
    justify-content: flex-end;
    margin-left: 0;
    flex: 0 0 auto;
  }

  .mobile-menu-wrap {
    display: block;
    position: relative;
  }

  .mobile-menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    left: auto;
    width: min(240px, 78vw);
    border-radius: 12px;
    border: 1px solid #e6dad1;
    padding: 0.45rem;
    z-index: 120;
    box-shadow: 0 12px 28px rgba(56, 42, 33, 0.16);
  }

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

  .hero-copy {
    min-height: auto;
  }

  .hero-visual {
    min-height: 460px;
  }

  .doctor-hero-image {
    min-height: 460px;
  }

  .hero .container {
    padding: 1rem;
    border-radius: 18px;
  }

  h1 {
    font-size: clamp(1.9rem, 7vw, 2.5rem);
  }

  .hero-title {
    font-size: clamp(1.85rem, 7vw, 2.55rem);
    letter-spacing: -0.015em;
  }

  .hero-card-points li {
    font-size: 0.86rem;
  }


  .hero-text {
    font-size: 1.03rem;
  }

  .hero-copy .btn-primary {
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
  }

  .mobile-btn-icon {
    display: inline-block;
    line-height: 1;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 35;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #fff;
    border-top: 1px solid #e8ddd6;
    box-shadow: 0 -8px 20px rgba(56, 42, 33, 0.08);
    padding: 0.35rem 0.35rem calc(0.35rem + env(safe-area-inset-bottom));
  }

  .mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.12rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.3rem 0.2rem;
    border-radius: 10px;
  }

  .mobile-bottom-nav a span[aria-hidden="true"] {
    font-size: 1.06rem;
    line-height: 1;
  }

  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .cta-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-visual .hero-card {
    justify-self: stretch;
    width: auto;
    margin: 0.65rem;
  }

  .about-layout {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .about-results-photo {
    width: min(100%, 280px);
    margin: 0 auto;
  }

  .about-results-photo img {
    height: auto;
    object-fit: contain;
  }

  .service-showcase {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .service-card-text {
    min-height: 0;
  }

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

  .review-pair {
    grid-template-columns: 1fr;
  }

  .review-pair img {
    min-height: 200px;
  }

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

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

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

.visit-intake-check-group legend {
  padding: 0 4px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
}

.visit-intake-check-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  min-width: 0;
  max-width: 100%;
}

.visit-intake-check-group {
  min-width: 0;
  max-width: 100%;
}

.visit-intake-concern-matrix {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  min-width: 0;
}

.visit-intake-concern-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-width: 0;
}

.visit-intake-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.84rem;
  line-height: 1.35;
  color: var(--text);
  cursor: pointer;
  min-width: 0;
}

.visit-intake-check input[type="checkbox"],
.visit-intake-check input[type="radio"],
.visit-intake-mount .visit-intake-checkbox {
  width: 1.1rem;
  max-width: 1.1rem;
  min-width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  flex: 0 0 auto;
  padding: 0;
}

.visit-intake-check span {
  flex: 1 1 auto;
  min-width: 0;
}

.visit-intake-check-group {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(92, 70, 56, 0.12);
  border-radius: 12px;
  background: #faf8f5;
  min-width: 0;
}

.visit-intake-card {
  border: 1px solid rgba(92, 70, 56, 0.14);
}

.visit-intake-lead {
  margin: 0 0 10px;
  font-size: 0.9rem;
}

.visit-booking-note {
  margin: 0 0 12px;
  font-size: 0.88rem;
  line-height: 1.4;
}

.cabinet-visit-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cabinet-visit-item .btn-sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
}

@media (max-width: 720px) {
  .visit-intake-concern-row {
    grid-template-columns: 1fr;
  }
}

.visit-intake-specialist-details {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid rgba(92, 70, 56, 0.12);
  border-radius: 12px;
  background: #fbf9f6;
}

.visit-intake-specialist-details.hidden {
  display: none;
}

.visit-intake-specialist-group + .visit-intake-specialist-group {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(92, 70, 56, 0.14);
}

.visit-intake-specialist-group-title {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--primary);
}

.visit-intake-specialist-field textarea {
  width: 100%;
}

.visit-intake-inline-choice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.visit-intake-inline-choice select {
  flex: 0 0 auto;
  min-width: 120px;
}

.visit-intake-inline-detail {
  flex: 1 1 220px;
  min-width: 220px;
}

.visit-intake-inline-detail.hidden {
  display: none;
}

.visit-intake-self-treatment-details {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid rgba(92, 70, 56, 0.12);
  border-radius: 12px;
  background: #fbf9f6;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.visit-intake-self-treatment-details.hidden {
  display: none;
}

.visit-intake-self-treatment-meds {
  margin: 0;
}

.visit-intake-check-other-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-left: calc(1.1rem + 8px);
}

.visit-intake-check-other-wrap .visit-intake-other-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
}

.visit-intake-consents {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.visit-intake-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 500;
  font-size: 0.84rem;
  line-height: 1.4;
}

.visit-intake-consent + .visit-intake-consent {
  margin-top: 0.65rem;
}

.visit-intake-consent-checkbox {
  width: 1.1rem;
  min-width: 1.1rem;
  max-width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  margin-top: 0.15rem;
}

.visit-intake-consent span {
  flex: 1 1 0;
  min-width: 0;
}

.visit-intake-consent a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.visit-intake-self-treatment-usage {
  margin-top: 12px;
  margin-bottom: 0;
}

.visit-intake-conditional-details {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid rgba(92, 70, 56, 0.12);
  border-radius: 12px;
  background: #fbf9f6;
}

.visit-intake-conditional-details.hidden {
  display: none;
}

.visit-intake-conditional-details .form-row {
  margin-bottom: 0;
}

.visit-booking-card .visit-intake-mount {
  margin-top: 4px;
}

.visit-intake-form {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.form-row.visit-intake-row {
  min-width: 0;
  max-width: 100%;
}

.visit-intake-date-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.visit-intake-row input.visit-intake-date-input,
.visit-intake-row input[type="date"] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0;
}

.visit-intake-row textarea,
.visit-intake-row input[type="text"],
.visit-intake-row input[type="date"],
.visit-intake-row select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.visit-intake-title {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--primary);
}

@media (max-width: 720px) {
  .visit-intake-row input.visit-intake-date-input,
  .visit-intake-row input[type="date"] {
    font-size: 16px;
    min-height: 2.75rem;
    padding: 0.65rem 0.75rem;
  }
}

.visit-intake-hint {
  display: block;
  margin: 0 0 6px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}

.visit-intake-photos {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(92, 70, 56, 0.15);
}

.visit-intake-photo-sample {
  margin: 0 0 10px;
  padding: 8px;
  border: 1px solid rgba(92, 70, 56, 0.12);
  border-radius: 10px;
  background: #faf8f5;
}

.visit-intake-photo-sample-label {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
}

.visit-intake-photo-sample img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 8px;
}

.visit-intake-photo-row input[type="file"].visit-intake-photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.visit-intake-photo-picker {
  margin-top: 8px;
  min-width: 0;
  max-width: 100%;
}

.visit-intake-photo-add-btn {
  width: 100%;
  margin: 12px 0 0;
}

.visit-intake-photo-count {
  margin: 0 0 8px;
  font-size: 0.82rem;
}

.visit-intake-photo-previews {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 0;
  min-width: 0;
}

.visit-intake-photo-previews:empty {
  display: none;
}

@media (min-width: 560px) {
  .visit-intake-photo-previews {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.visit-intake-photo-preview-item {
  position: relative;
  margin: 0;
  min-width: 0;
}

.visit-intake-photo-preview-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(92, 70, 56, 0.16);
  background: #f3efe9;
}

.visit-intake-photo-preview-item--pdf .visit-intake-photo-pdf-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px dashed rgba(92, 70, 56, 0.28);
  background: #faf8f5;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.visit-intake-photo-preview-item figcaption {
  margin-top: 6px;
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--muted);
  word-break: break-word;
}

.visit-intake-photo-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.72);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.visit-intake-photo-remove:hover {
  background: rgba(180, 35, 24, 0.9);
}

@media (max-width: 720px) {
  .visit-intake-photo-previews {
    grid-template-columns: 1fr;
  }

  .visit-intake-photo-preview-item img,
  .visit-intake-photo-preview-item--pdf .visit-intake-photo-pdf-icon {
    aspect-ratio: 4 / 3;
    max-height: 220px;
  }
}

.visit-intake-draft-note,
.visit-intake-save-status {
  margin: 0 0 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(139, 94, 60, 0.08);
  border: 1px solid rgba(139, 94, 60, 0.18);
  font-size: 0.85rem;
  line-height: 1.35;
}

.visit-intake-save-status.error {
  color: #b42318;
  background: rgba(180, 35, 24, 0.06);
  border-color: rgba(180, 35, 24, 0.2);
}

.visit-intake-photo-note {
  margin: 8px 0 0;
  font-size: 0.8rem;
  line-height: 1.35;
}

.invite-page {
  background: var(--bg, #f7f3ee);
  min-height: 100vh;
  padding: 24px 0 48px;
}

.invite-container {
  max-width: 720px;
}

.invite-header {
  text-align: center;
  margin-bottom: 20px;
}

.invite-header img {
  max-width: 160px;
  height: auto;
  margin: 0 auto 12px;
}

.invite-header h1 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.invite-lead {
  margin: 0;
  font-size: 0.95rem;
}

.invite-form,
.invite-success,
.invite-error {
  padding: 20px;
  overflow-x: hidden;
}

.visit-intake-mount {
  min-width: 0;
  overflow-x: hidden;
}

.invite-section-title {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--primary);
}

.invite-patient-section {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.invite-success h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.invite-success-text strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary, #8b5e3c);
}

.invite-success-text {
  margin: 0;
  line-height: 1.45;
}

.invite-photo-retry {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.invite-photo-retry-lead {
  margin: 0 0 12px;
  line-height: 1.45;
}

.invite-photo-retry-mount .visit-intake-form > :not(.visit-intake-photos) {
  display: none !important;
}

.invite-photo-retry-mount .visit-intake-photos {
  margin-top: 0;
}

.invite-success-signoff {
  margin: 14px 0 0;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text, #1d2530);
}

.invite-success-heart {
  display: inline-block;
  margin-left: 2px;
  animation: invite-heart-beat 1.5s ease-in-out infinite;
  transform-origin: center center;
  will-change: transform;
}

@keyframes invite-heart-beat {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  20% {
    transform: scale(1.2);
    opacity: 1;
  }
  40% {
    transform: scale(1);
    opacity: 0.95;
  }
  60% {
    transform: scale(1.12);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .invite-success-heart {
    animation: none;
  }
}

.invite-form .btn-primary {
  width: 100%;
  margin-top: 8px;
}

.invite-link-url {
  width: 100%;
  font-size: 0.85rem;
  margin-top: 8px;
}
