/* ============================================================
   Polina Istomina — site styles
   Mobile-first. Apple-style minimalism.
   To tweak: most adjustments happen via :root variables below.
   ============================================================ */

:root {
  /* colors */
  --bg: #ffffff;
  --surface: #f5f5f7;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --border: #d2d2d7;
  --border-strong: #86868b;
  --accent: #7d8a72;          /* muted sage — wellness, restrained */
  --primary: #e87a3d;         /* warm terracotta-orange, ties to fruit tones in photos */
  --primary-hover: #d4682f;
  --primary-active: #c25b25;
  --button-bg: var(--primary);
  --button-text: #ffffff;
  --button-hover: var(--primary-hover);

  /* type */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "Inter", "Helvetica Neue", Arial, sans-serif;

  /* layout */
  --container: 1120px;
  --container-narrow: 760px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 24px;

  /* motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.1;
  color: var(--text);
}
h1 { font-size: clamp(2.25rem, 7vw, 3.75rem); font-weight: 400; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 4.5vw, 2.5rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.375rem); font-weight: 500; }
.muted { color: var(--text-muted); }
.lead { font-size: clamp(1.0625rem, 2vw, 1.25rem); color: var(--text-muted); line-height: 1.5; }

/* lang-specific: russian wraps tighter on small screens */
html[lang="ru"] h1 { letter-spacing: -0.02em; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { width: 100%; max-width: var(--container-narrow); margin: 0 auto; padding: 0 1.25rem; }
section { padding: 4rem 0; }
@media (min-width: 768px) { section { padding: 6rem 0; } .container, .container-narrow { padding: 0 2rem; } }
@media (min-width: 1024px) { section { padding: 8rem 0; } }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
  gap: 1rem;
}
@media (min-width: 768px) { .nav { height: 64px; } }

.brand {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand:hover { color: var(--accent); transition: color 0.2s var(--ease); }

.nav-links { display: none; gap: 2rem; }
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-links a {
    font-size: 0.9375rem;
    color: var(--text-muted);
    transition: color 0.2s var(--ease);
  }
  .nav-links a:hover, .nav-links a.is-active { color: var(--text); }
}

.lang-toggle {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 2px;
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--bg);
}
.lang-toggle button {
  padding: 6px 12px;
  border-radius: 9999px;
  color: var(--text-muted);
  transition: all 0.2s var(--ease);
  min-width: 36px;
}
.lang-toggle button.is-active {
  background: var(--primary);
  color: var(--button-text);
}
.lang-toggle button:not(.is-active):hover { color: var(--text); }

/* social icon link (Instagram in header / footer) */
.icon-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 8px;
  color: var(--text-muted);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.icon-link:hover { color: var(--primary); background: var(--surface); }
.icon-link svg { width: 20px; height: 20px; }

/* hamburger for mobile (3 nav links + lang toggle is tight on small screens) */
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 8px;
}
.nav-toggle:hover { background: var(--surface); }
@media (min-width: 768px) { .nav-toggle { display: none; } }
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--text); }

/* mobile drawer */
.mobile-menu {
  display: none;
  position: absolute; top: 56px; left: 0; right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem 1.5rem;
}
.mobile-menu.is-open { display: block; }
.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 1.0625rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu .mobile-social {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 14px 0;
  color: var(--text);
  font-size: 1.0625rem;
}
.mobile-menu .mobile-social svg { width: 22px; height: 22px; }

/* ---------- hero ---------- */
.hero {
  padding: 1.5rem 0 3rem;
}
@media (min-width: 768px) { .hero { padding: 2.5rem 0 5rem; } }
@media (min-width: 1024px) { .hero { padding: 3rem 0 6rem; } }

.hero-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 5rem; }
}

.hero-text { order: 2; text-align: center; }
.hero-image { order: 1; }
@media (min-width: 900px) {
  .hero-text { order: 1; text-align: left; }
  .hero-image { order: 2; }
}

.hero h1 { margin-bottom: 0.75rem; }
.hero .role {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 1.25rem;
}
.hero .tagline {
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  color: var(--text);
  font-weight: 400;
  max-width: 38ch;
  margin: 0 auto 2.25rem;
  line-height: 1.4;
}
@media (min-width: 900px) { .hero .tagline { margin: 0 0 2.5rem; } }

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center;
}
@media (min-width: 900px) { .hero-actions { justify-content: flex-start; } }

.hero-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--surface);
}
@media (min-width: 900px) {
  .hero-image img { aspect-ratio: 4 / 5; max-height: 640px; object-position: center top; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px;                            /* mobile tap target */
  padding: 12px 28px;
  border-radius: 9999px;
  font-size: 0.9375rem; font-weight: 500;
  transition: transform 0.15s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--button-bg); color: var(--button-text); }
.btn-primary:hover { background: var(--button-hover); }
.btn-primary:active { transform: scale(0.98); }
.btn-secondary { border: 1px solid var(--border-strong); color: var(--text); }
.btn-secondary:hover { background: var(--surface); border-color: var(--text); }
.btn-tg { background: #229ED9; color: #fff; }
.btn-tg:hover { background: #1c8bc1; }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1fbb59; }
.btn svg { width: 18px; height: 18px; }

/* ---------- section heading ---------- */
.section-head { text-align: center; margin-bottom: 3rem; }
@media (min-width: 768px) { .section-head { margin-bottom: 4rem; } }
.section-head h2 { margin-bottom: 0.75rem; }
.section-head p { max-width: 50ch; margin: 0 auto; }

/* ---------- services ---------- */
.services { background: var(--surface); }
.services-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

.service-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
@media (min-width: 768px) {
  .service-card { padding: 2.5rem; }
  .service-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.06); }
}
.service-card .price {
  font-size: 1.875rem; font-weight: 500; letter-spacing: -0.02em;
  margin: 0.5rem 0 1.25rem;
}
.service-card .desc { color: var(--text-muted); flex: 1; margin-bottom: 1.5rem; font-size: 0.9375rem; line-height: 1.55; }
.service-card .btn { width: 100%; }

/* ---------- testimonials carousel ---------- */
.carousel { position: relative; }

.carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.25rem 0 1rem;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline: none; }
.carousel-track:focus-visible .testimonial-slide { box-shadow: 0 0 0 2px var(--primary); }

.testimonial-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  display: flex; flex-direction: column; justify-content: center;
  min-height: 220px;
  border: 1px solid var(--border);
  margin: 0;
}
@media (min-width: 768px) {
  .testimonial-slide {
    flex-basis: 72%;
    padding: 2.5rem 3rem;
    min-height: 260px;
  }
}
@media (min-width: 1024px) {
  .testimonial-slide { flex-basis: 62%; min-height: 280px; }
}
.testimonial-slide blockquote {
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 1.25rem;
  /* opening quote mark */
  position: relative;
}
.testimonial-slide blockquote::before {
  content: "“";
  position: absolute;
  top: -0.6em;
  left: -0.15em;
  font-size: 3.5rem;
  color: var(--primary);
  opacity: 0.18;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
  pointer-events: none;
}
.testimonial-slide .author {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* prev / next buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  display: none;
  align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.carousel-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.carousel-btn:active { transform: translateY(-50%) scale(0.95); }
.carousel-btn:disabled { opacity: 0.35; cursor: default; }
.carousel-btn:disabled:hover { background: var(--bg); color: var(--text); border-color: var(--border); }
.carousel-btn svg { width: 22px; height: 22px; }
.carousel-prev { left: -8px; }
.carousel-next { right: -8px; }
@media (min-width: 768px) {
  .carousel-btn { display: flex; }
  .carousel-prev { left: -22px; }
  .carousel-next { right: -22px; }
}

/* dot indicators */
.carousel-dots {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 8px;
  margin-top: 1.5rem;
}
.carousel-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
  border: none; padding: 0;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), width 0.25s var(--ease);
  opacity: 0.45;
}
.carousel-dots button.is-active {
  background: var(--primary);
  width: 24px; border-radius: 4px;
  opacity: 1;
}

/* ---------- CTA strip ---------- */
.cta-strip {
  background: var(--text);
  color: var(--button-text);
}
.cta-strip .container-narrow { text-align: center; }
.cta-strip h2 { color: var(--button-text); margin-bottom: 0.75rem; }
.cta-strip p { color: rgba(255,255,255,0.7); margin-bottom: 2rem; }
.cta-strip .btn-secondary {
  border-color: rgba(255,255,255,0.3); color: var(--button-text);
}
.cta-strip .btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* ---------- about ---------- */
.about-hero { padding: 1.5rem 0 2.5rem; }
@media (min-width: 768px) { .about-hero { padding: 2.5rem 0 4rem; } }
@media (min-width: 1024px) { .about-hero { padding: 3rem 0 4.5rem; } }

.about-hero-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .about-hero-grid { grid-template-columns: 1fr 0.9fr; gap: 4.5rem; }
}

.about-hero-text { order: 2; text-align: center; }
.about-hero-image { order: 1; }
@media (min-width: 900px) {
  .about-hero-text { order: 1; text-align: left; }
  .about-hero-image { order: 2; }
}

.about-photo {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  margin: 0 auto;
  object-fit: cover;
  background: var(--surface);
  display: block;
}
@media (min-width: 900px) { .about-photo { max-width: none; max-height: 560px; } }

.about-hero h1 { margin-bottom: 1rem; }
.about-hero .lead { max-width: 50ch; margin: 0 auto; }
@media (min-width: 900px) { .about-hero .lead { margin: 0; } }

.about-section { margin-bottom: 3.5rem; }
.about-section:last-of-type { margin-bottom: 0; }
.about-section h2 { margin-bottom: 1.25rem; font-size: clamp(1.5rem, 3vw, 1.875rem); }
.about-section p { color: var(--text); margin-bottom: 1rem; max-width: 62ch; }
.about-section p:last-child { margin-bottom: 0; }

.about-secondary-img {
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius-md);
  object-fit: cover;
  margin: 2rem 0 3rem;
  background: var(--surface);
}
@media (min-width: 768px) { .about-secondary-img { aspect-ratio: 16 / 9; margin: 3rem 0 4rem; } }

/* practice stat callout */
.stat {
  display: flex; align-items: baseline; gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.stat-number {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 500;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-label {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.credentials-list { display: flex; flex-direction: column; gap: 0.75rem; }
.credentials-list li {
  padding: 1.125rem 1.25rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  line-height: 1.45;
  border-left: 3px solid var(--primary);
}

/* ---------- legal page (privacy) ---------- */
.legal-page { padding: 2rem 0 5rem; }
@media (min-width: 768px) { .legal-page { padding: 3rem 0 7rem; } }

.legal-hero { text-align: center; margin-bottom: 3rem; }
.legal-hero h1 { margin-bottom: 0.75rem; font-size: clamp(2rem, 5vw, 2.75rem); }
.legal-hero .updated { color: var(--text-muted); font-size: 0.875rem; }

.legal-content h2 {
  margin-top: 2.75rem; margin-bottom: 0.875rem;
  font-size: 1.25rem; font-weight: 500;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { margin-bottom: 1rem; color: var(--text); line-height: 1.65; }
.legal-content ul { margin: 0 0 1rem 0; padding-left: 1.25rem; }
.legal-content li { margin-bottom: 0.5rem; line-height: 1.55; list-style: disc; color: var(--text); }
.legal-content li::marker { color: var(--text-muted); }

/* ---------- contact ---------- */
.contact-hero { padding: 2rem 0 2rem; text-align: center; }
@media (min-width: 768px) { .contact-hero { padding: 3.5rem 0 3rem; } }
.contact-hero h1 { margin-bottom: 1rem; }
.contact-hero .lead { max-width: 50ch; margin: 0 auto; }

.contact-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
  padding-bottom: 6rem;
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; padding-bottom: 8rem; } }

.contact-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
@media (min-width: 768px) { .contact-card { padding: 2.5rem; } }
.contact-card h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.contact-card .handle { font-size: 1.0625rem; color: var(--text-muted); margin-bottom: 1.75rem; font-weight: 500; }
.contact-card .btn { width: 100%; max-width: 280px; margin-bottom: 1.75rem; }

.qr-wrap { display: none; }                     /* hidden on mobile */
@media (min-width: 768px) {
  .qr-wrap { display: block; padding-top: 0.5rem; border-top: 1px solid var(--border); width: 100%; }
  .qr-wrap img { width: 180px; height: 180px; margin: 1.5rem auto 0.75rem; background: #fff; padding: 8px; border-radius: 12px; }
  .qr-wrap .qr-caption { font-size: 0.8125rem; color: var(--text-muted); }
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center;
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-links { display: flex; gap: 1.5rem; align-items: center; }
.footer-links a:hover { color: var(--text); }
.footer-links .icon-link { width: 36px; height: 36px; }
.footer-links .icon-link svg { width: 18px; height: 18px; }

/* ---------- (reveal class kept as a no-op for future use) ---------- */
.reveal { opacity: 1; transform: none; }

/* ---------- a11y / utility ---------- */
.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;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px; border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
