/* ============================================================
   Sofya Razuvaeva — psychologist site
   Design tokens
   ============================================================ */
:root {
  --ink: #262521;
  --ink-soft: #55524A;
  --paper: #F7F4EE;
  --paper-alt: #EFEAE0;
  --deep: #3D4F49;      /* deep slate-green — grounding, calm */
  --deep-dark: #2C3B36;
  --accent: #C1694A;    /* warm clay-coral — human warmth */
  --accent-soft: #E7C9B9;
  --line: #DCD5C6;
  --card: #FFFFFF;
  --shadow: 0 12px 30px -18px rgba(44, 45, 40, 0.35);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --maxw: 780px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", "Public Sans", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; margin: 0; }

a { color: inherit; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Signature element: the winding path ---------- */
.path-track {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(
    to bottom,
    var(--line) 0,
    var(--line) 6px,
    transparent 6px,
    transparent 14px
  );
  z-index: 0;
  pointer-events: none;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 244, 238, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.topbar-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar-name {
  font-family: "Fraunces", serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 15px;
  text-decoration: none;
  color: var(--deep-dark);
}
.lang-switch {
  display: flex;
  gap: 6px;
  background: var(--paper-alt);
  border-radius: 999px;
  padding: 3px;
}
.lang-switch a {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink-soft);
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-switch a.active {
  background: var(--deep);
  color: #fff;
}
.lang-switch a:not(.active):hover {
  background: #fff;
}

.main-nav {
  display: none;
  gap: 16px;
  align-items: center;
}
@media (max-width: 767px) {
  .main-nav {
    display: none;
  }
}
@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }
}
.nav-item {
  position: relative;
}
.nav-link {
  text-decoration: none;
  color: var(--deep-dark);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
}
.nav-link:hover {
  color: var(--accent);
}
.dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  padding: 0;
}
.dropdown-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}
.dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 8px 0;
  display: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 50;
  pointer-events: none;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--deep-dark);
  font-size: 14px;
  transition: background 0.15s ease;
}
.dropdown-menu a:hover {
  background: var(--paper-alt);
  color: var(--accent);
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 56px 0 20px;
  text-align: center;
  overflow: hidden;
}
.hero-content {
  text-align: left;
  margin-top: 40px;
}
.hero-blob {
  position: absolute;
  top: -80px;
  right: -100px;
  width: 320px;
  height: 320px;
  border-radius: 46% 54% 60% 40% / 45% 40% 60% 55%;
  background: linear-gradient(135deg, var(--accent-soft), var(--paper-alt));
  opacity: 0.7;
  z-index: 0;
}
.hero-circle-dashed {
  position: absolute;
  bottom: 40px;
  left: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px dashed var(--accent-soft);
  opacity: 0.5;
  z-index: 0;
}
.hero-circle-striped {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    var(--accent-soft) 10px,
    var(--accent-soft) 12px
  );
  opacity: 0.15;
  z-index: 0;
}
.hero-photo {
  position: relative;
  width: 148px;
  height: 148px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow);
  z-index: 1;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero h1 {
  position: relative;
  z-index: 1;
  font-size: 28px;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--deep-dark);
  margin-bottom: 18px;
}
.role-card {
  position: relative;
  z-index: 1;
  background: var(--deep);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin: 0 0 18px;
}
.role-card .role-line1 {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 15px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.role-card .role-line2 {
  font-style: italic;
  font-family: "Fraunces", serif;
  font-size: 16px;
  opacity: 0.92;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  display: inline-block;
  padding-bottom: 4px;
  margin-bottom: 6px;
}
.role-card .role-line3 { font-size: 14.5px; opacity: 0.9; }

.greeting {
  position: relative;
  z-index: 1;
  font-family: "Fraunces", serif;
  font-style: italic;
  color: var(--ink-soft);
  margin: 6px 0 20px;
  font-size: 16px;
}

.social-row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
}
.social-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}
.social-circle:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.social-circle svg { width: 24px; height: 24px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: var(--deep); color: #fff; }
.btn-secondary { background: var(--card); color: var(--deep-dark); border: 1.5px solid var(--line); }
.btn small { display: block; font-weight: 500; opacity: 0.8; font-size: 12.5px; margin-top: 2px; }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.btn-icon svg { width: 18px; height: 18px; flex-shrink: 0; }

.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 28px auto;
  width: 60px;
}

/* ---------- Sections ---------- */
main { position: relative; }
section { padding: 6px 0 36px; position: relative; z-index: 1; }
.eyebrow {
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  display: block;
}
.section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--deep-dark);
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}
.lead-list { list-style: none; margin: 0; padding: 0; }
.lead-list li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15.5px;
}
.lead-list li:last-child { border-bottom: none; }
.lead-list .leaf { flex-shrink: 0; }

p.body-text { margin: 0 0 10px; color: var(--ink); }
.note-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-style: italic;
  font-family: "Fraunces", serif;
  color: var(--deep);
  margin: 16px 0;
  font-size: 15px;
}
.note-line svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--accent); }

/* ---------- Accordion ---------- */
.accordion { margin-top: 14px; border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 14px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font: inherit;
  color: var(--deep-dark);
  font-weight: 600;
  font-size: 15px;
}
.accordion-trigger .chev {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}
.accordion-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); background: var(--paper-alt); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}
.accordion-panel-inner { padding: 0 4px 16px; font-size: 15px; color: var(--ink-soft); }
.accordion-panel-inner ul { margin: 0; padding-left: 18px; }
.accordion-panel-inner li { padding: 4px 0; }

.small-notes { margin-top: 12px; font-size: 13.5px; color: var(--ink-soft); }
.small-notes p { margin: 4px 0; }

/* ---------- Pricing ---------- */
.price-card {
  background: var(--deep);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 26px 24px;
}
.price-card .section-title { color: #fff; text-align: center; margin-bottom: 18px; font-family: "IBM Plex Mono", monospace; letter-spacing: 0.1em; font-size: 16px; text-transform: uppercase; }
.price-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dotted rgba(255,255,255,0.3);
  font-size: 14.5px;
}
.price-row:last-of-type { border-bottom: none; }
.price-row .label { max-width: 70%; }
.price-row .value { font-weight: 700; white-space: nowrap; }
.price-terms { margin-top: 18px; border-top: 1px solid rgba(255,255,255,0.25); padding-top: 4px; }
.price-terms .accordion-trigger { color: #fff; }
.price-terms .accordion-trigger .chev { border-color: rgba(255,255,255,0.4); }
.price-terms .accordion-panel-inner { color: rgba(255,255,255,0.85); }
.price-terms .accordion-item { border-color: rgba(255,255,255,0.25); }

/* ---------- Gallery / slider ---------- */
.gallery {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
}
.gallery-frame { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; }
.gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.gallery-slide.is-active { opacity: 1; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-caption {
  padding: 14px 18px;
  font-size: 14.5px;
  color: var(--ink-soft);
  min-height: 24px;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.88);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  z-index: 2;
}
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.gallery-nav svg { width: 20px; height: 20px; color: var(--deep-dark); }
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 12px 0 16px;
}
.gallery-dots button {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: var(--line);
  padding: 0;
  cursor: pointer;
}
.gallery-dots button.is-active { background: var(--deep); width: 18px; border-radius: 4px; transition: width 0.2s ease; }

/* ---------- Education list ---------- */
.edu-entry {
  display: flex;
  gap: 12px;
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-top: 16px;
}
.edu-entry svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.edu-group { margin-top: 14px; }
.edu-group-title { font-weight: 600; color: var(--deep-dark); font-size: 14.5px; margin-bottom: 6px; }
.edu-group ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 14.5px; }
.edu-group li { padding: 3px 0; }
.edu-etc { font-size: 14px; color: var(--ink-soft); margin-top: 8px; font-style: italic; }

/* ---------- About ---------- */
.about-lead {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 18px;
  color: var(--deep-dark);
  text-align: center;
  margin: 0 0 6px;
}

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 40px 0 60px;
  position: relative;
  z-index: 1;
}
.footer-wish {
  font-family: "Fraunces", serif;
  font-style: italic;
  color: var(--deep-dark);
  font-size: 16px;
  margin-bottom: 26px;
}
.made-with { font-size: 12px; color: var(--ink-soft); opacity: 0.6; margin-top: 30px; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  body { font-size: 18px; }
  .hero h1 { font-size: 32px; }
  .btn { width: auto; display: inline-block; min-width: 320px; }
  .btn-row { display: flex; flex-direction: column; align-items: center; }
}

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

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