:root {
  --bg: #f4ede4;
  --bg-deep: #e8ddcf;
  --surface: rgba(255, 248, 241, 0.78);
  --surface-strong: #fffaf4;
  --ink: #2f241f;
  --muted: #6d5a50;
  --line: rgba(83, 57, 43, 0.14);
  --accent: #b35c3f;
  --accent-dark: #8f4329;
  --sage: #7f8f78;
  --shadow: 0 24px 80px rgba(84, 52, 37, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(179, 92, 63, 0.15), transparent 34%),
    radial-gradient(circle at 85% 20%, rgba(127, 143, 120, 0.2), transparent 28%),
    linear-gradient(180deg, #f7f2eb 0%, #efe5d8 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 80%);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto;
}

.hero,
.section,
.contact-box {
  backdrop-filter: blur(18px);
}

.hero {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 250, 244, 0.95), rgba(247, 239, 230, 0.72));
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -80px;
  top: -80px;
  background: radial-gradient(circle, rgba(179, 92, 63, 0.22), transparent 68%);
  pointer-events: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.brand,
.topbar-link,
.button,
.chip,
.session-box span,
.profile-meta span {
  letter-spacing: 0.02em;
}

.brand {
  font-weight: 700;
}

.topbar-link {
  text-decoration: none;
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.16em;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
}

h1,
h2 {
  font-family: "Cormorant Garamond", serif;
}

h1 {
  font-size: clamp(3.1rem, 7vw, 5.8rem);
  max-width: 10ch;
}

h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  max-width: 12ch;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.lead,
.feature-card p,
.format-card p,
.profile-card p,
.contact-copy p,
.contact-form label,
.quote-block p,
.hero-card li,
.session-box strong,
.check-list li {
  color: var(--muted);
  line-height: 1.7;
}

.lead {
  font-size: 1.08rem;
  max-width: 60ch;
  margin: 24px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

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

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.button-primary {
  background: var(--accent);
  color: #fff8f1;
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.hero-points,
.hero-card ul,
.check-list,
.profile-meta {
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-points li,
.profile-meta span {
  padding: 11px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid var(--line);
  font-size: 0.95rem;
}

.hero-card,
.feature-card,
.format-card,
.profile-card,
.contact-box,
.quote-block,
.list-panel {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(57, 43, 36, 0.95), rgba(93, 66, 55, 0.94));
  color: #fff6ef;
  min-height: 100%;
}

.hero-card-tag {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 243, 233, 0.82);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-glow {
  position: absolute;
  inset: auto -10% 78% auto;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255, 221, 195, 0.45), transparent 65%);
}

.card-caption {
  margin: 0 0 18px;
  max-width: 16ch;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: #fff8f1;
}

.hero-card ul {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.hero-card li {
  position: relative;
  padding: 14px 16px 14px 48px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 250, 244, 0.08);
  color: rgba(255, 243, 233, 0.92);
}

.hero-card li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe7d9, #d98762 70%);
  box-shadow: 0 0 0 6px rgba(255, 221, 195, 0.12);
}

.hero-card-note {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 250, 244, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 243, 233, 0.76);
  line-height: 1.6;
}

.session-box {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 250, 244, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.session-box span {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: rgba(255, 243, 233, 0.72);
  margin-bottom: 6px;
}

.section {
  margin-top: 24px;
  padding: 32px;
  border-radius: 32px;
}

.section-soft {
  background: rgba(255, 251, 245, 0.72);
  border: 1px solid var(--line);
}

.section-accent {
  background: linear-gradient(135deg, #7f8f78, #5e6d59);
  color: #f9f3eb;
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.formats-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: start;
}

.formats-heading {
  margin-bottom: 0;
}

.feature-grid,
.format-grid {
  display: grid;
  gap: 18px;
}

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

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

.feature-card,
.format-card,
.profile-card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 252, 248, 0.8);
}

.featured {
  background: linear-gradient(180deg, rgba(179, 92, 63, 0.1), rgba(255, 252, 248, 0.94));
}

.format-card-highlight {
  position: relative;
  padding: 28px;
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.96), rgba(244, 234, 223, 0.88));
}

.format-details {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.format-details li {
  position: relative;
  padding: 14px 16px 14px 52px;
  border-radius: 18px;
  border: 1px solid rgba(83, 57, 43, 0.1);
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  line-height: 1.6;
}

.format-details li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffd9c8, var(--accent) 62%);
  box-shadow: 0 0 0 7px rgba(179, 92, 63, 0.14);
  transform: translateY(-50%);
}

.chip {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(179, 92, 63, 0.12);
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.format-card strong {
  display: inline-block;
  margin-top: 16px;
}

.quote-block {
  padding: 36px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
}

.quote-block p {
  margin: 0;
  max-width: 22ch;
  color: #fff9f3;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 0.98;
}

.list-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 250, 244, 0.72);
  align-items: stretch;
}

.check-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(179, 92, 63, 0.14);
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.document-card,
.photo-card {
  display: flex;
  flex-direction: column;
}

.certificate-preview {
  position: relative;
  display: block;
  width: 100%;
  margin-top: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(83, 57, 43, 0.1);
  border-radius: 20px;
  background: #f6eee5;
  cursor: pointer;
}

.certificate-frame {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
  pointer-events: none;
}

.certificate-overlay {
  position: absolute;
  inset: auto 16px 16px 16px;
  display: inline-flex;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(47, 36, 31, 0.72);
  color: #fff8f1;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.photo-card {
  padding: 0;
}

.specialist-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border-radius: 24px;
  object-fit: cover;
}

.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 19, 16, 0.6);
  backdrop-filter: blur(10px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  height: min(88vh, 980px);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 28px;
  background: rgba(255, 250, 244, 0.96);
  box-shadow: 0 30px 90px rgba(25, 19, 16, 0.25);
}

.modal-title {
  margin-bottom: 16px;
  padding-right: 48px;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(47, 36, 31, 0.08);
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.modal-document {
  width: 100%;
  height: calc(100% - 64px);
  border: 0;
  border-radius: 18px;
}

.contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 28px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 250, 244, 0.95), rgba(245, 235, 224, 0.8));
}

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

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 0.96rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(83, 57, 43, 0.15);
  border-radius: 18px;
  padding: 15px 16px;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  outline: none;
}

.contact-form textarea {
  resize: none;
  overflow-y: hidden;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(179, 92, 63, 0.5);
  box-shadow: 0 0 0 4px rgba(179, 92, 63, 0.12);
}

.form-status {
  min-height: 24px;
  margin: 4px 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-status[data-state="pending"] {
  color: #7a513e;
}

.form-status[data-state="success"] {
  color: #4e6b47;
}

.form-status[data-state="error"] {
  color: #9a3d2e;
}

@media (max-width: 920px) {
  .hero-grid,
  .feature-grid,
  .format-grid,
  .list-panel,
  .contact-box {
    grid-template-columns: 1fr;
  }

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

  .modal {
    padding: 16px;
  }

  .modal-dialog {
    height: min(82vh, 900px);
    padding: 18px;
  }

  h1 {
    max-width: 12ch;
  }

  h2,
  .quote-block p {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    margin: 10px auto 24px;
  }

  .hero,
  .section,
  .contact-box {
    padding: 22px;
    border-radius: 24px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 28px;
  }

  .hero-actions,
  .hero-points,
  .profile-meta {
    flex-direction: column;
  }

  .button,
  .topbar-link {
    width: 100%;
  }
}
