/* Mind & Soul Guide — plain HTML version (no React/Vite) */

:root {
  --background: 0 0% 100%;
  --foreground: 265 4% 12.9%;
  --primary: 266 4% 20.8%;
  --primary-foreground: 248 0.3% 98.4%;
  --muted-foreground: 257 4.6% 55.4%;
  --accent: 248 0.7% 96.8%;
  --accent-foreground: 266 4% 20.8%;
  --border: 256 1.3% 92.9%;

  --radius: 16px;
  --radius-lg: 24px;

  --container: 72rem; /* ~ max-w-6xl */
  --px: 24px;
  --header-h: 64px;
}

p{
  margin-top: 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin-left: 1rem;
  margin-right: 1rem;
  background: #FAF8F5;
  color: hsl(var(--foreground));
  font-family: 'Onest', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 300;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 600;
}

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

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

/* Utility */
.muted { color: #425F54; }

.section {
  padding: 24px 0;
  margin-bottom: 10rem;
}

section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 50;
  background: hsla(var(--background), 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid hsla(var(--border), 0.6);
}

.header-row {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
}

.nav {
  display: none;
  align-items: center;
  gap: 32px;
  margin-right: 1rem;
}

.nav button {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  color: #425F54;
  cursor: pointer;
  padding: 6px 0;
  transition: color 160ms ease;
}

.nav button:hover { color: hsl(var(--foreground)); }

.mobile-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;
}

.mobile-toggle svg { display: block; }

.mobile-nav {
  display: none;
  padding: 0 var(--px) 16px;
  background: hsl(var(--background));
  border-bottom: 1px solid hsla(var(--border), 0.6);
}

.mobile-nav.open { display: block; }

.mobile-nav button {
  width: 100%;
  text-align: left;
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  padding: 10px 0;
  transition: color 160ms ease;
}

.mobile-nav button:hover { color: hsl(var(--foreground)); }

@media (min-width: 768px) {
  .nav { display: flex; }
  .mobile-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  margin: calc(0rem + var(--header-h)) 0rem 10rem 0rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
}

.kicker {
  color: #425F54;
  font-size: 16px;
}

.title {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.85;
  font-weight: 100;
}

.lead {
  color: #425F54;
  font-size: 16px;
  margin-top: 0.9rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #dee5e2a1;
  color: #425F54;
  font-size: 16px;
}

.chip svg { width: 15px; height: 15px; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 16px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn-primary {
  background: #5B7A6E;
  color: hsl(var(--primary-foreground));
}

.btn-primary:hover { opacity: 0.5; }

.btn-outline {
  background: transparent;
  border-color: #DEE5E2;
  color: #5B7A6E;
}

.btn-outline:hover { opacity: 0.5; }

.hero-photo {
  width: 100%;
  max-width: 28rem;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 54px;
}

.photo-wrap { display: flex; justify-content: flex-end; }

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: stretch;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  border-radius: 54px;
  aspect-ratio: 4 / 5;
  max-width: 28rem;
}

.section-title {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 100;
}

.paragraphs {
  display: grid;
  gap: 16px;
  margin-top: 4rem;
  color: hsl(var(--muted-foreground));
  font-size: 16px;
}

@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}

/* Specialization */
.circles {
  margin-top: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}



.circle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.circle-row + .circle-row { margin-top: -48px; }

.circle {
  width: 18vw;
  height: 18vw;
  border-radius: 9999px;
  border: 2px solid black;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.circle + .circle { margin-left: -32px; }

.circle span {
  padding: 0 16px;
  text-align: center;
  font-size: 20px;
  font-weight: 300;
  color: #425F54;
}

/* Reviews */
.review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 5rem;
}

.card {
  background: #DEE5E2;
  border-radius: 36px;
  padding: 40px;
}

.stars {
  display: flex;
  gap: 6px;
  color: hsl(28.31deg 100% 58.41%);
}

.stars svg { width: 20px; height: 20px; fill: currentColor !important; }

.quote {
  margin-top: 14px;
  color: #425F54;
  font-size: 16px;
}

.author {
  margin-top: 14px;
  font-weight: 500;
}

.review-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
}

.review-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: hsl(var(--muted-foreground));
  font-size: 16px;
  transition: color 160ms ease;
}

.review-links a:hover { color: hsl(var(--primary)); }

.review-links svg { width: 16px; height: 16px; }

@media (min-width: 768px) {
  .review-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Contacts */
.contacts-card {
  background: #DEE5E2;
  border-radius: 54px;
  padding: 32px;
  margin-top: 5rem;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.icon-link {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-bubble {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: white;
  display: grid;
  place-items: center;
  transition: background 160ms ease;
}

.icon-bubble svg { width: 18px; height: 18px; color: hsl(var(--primary)); }

.icon-link:hover .icon-bubble { opacity: 0.5; }

.pill-links { display: flex; gap: 12px; flex-wrap: wrap; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 999px;
  background: white;
  color: hsl(var(--primary));
  font-size: 16px;
  transition: background 160ms ease, color 160ms ease;
}

.pill:hover {
  opacity: 0.5;
}

.pill svg { width: 16px; height: 16px; }

.form label {
  display: block;
  font-size: 16px;
  color: #425F54;
  margin-bottom: 6px;
}

.field {
  width: 100%;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  padding: 20px 20px;
  border-radius: 999px;
  font-size: 16px;
  outline: none;
  transition: border-color 160ms ease;
  font-family: onest;
  }
}

.field:focus { border-color: hsl(var(--primary)); }

.field.textarea {
  border-radius: 18px;
  resize: none;
}

.submit {
  width: 100%;
}

@media (min-width: 768px) {
  .contacts-card { padding: 48px; }
}

@media (min-width: 1024px) {
  .contacts-grid { grid-template-columns: 1fr 1fr; }
}

/* Footer */
.footer {
  padding: 40px 0;
}

.footer-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-row .muted { margin-top: 4px; }

.social {
  display: flex;
  gap: 12px;
}

.social a { color: hsl(var(--muted-foreground)); transition: color 160ms ease; }
.social a:hover { color: hsl(var(--primary)); }
.social svg { width: 18px; height: 18px; }

@media (min-width: 768px) {
  .footer-row {
    flex-direction: row;
    align-items: center;
  }
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  padding: 12px 16px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  display: none;
  gap: 10px;
  align-items: center;
  max-width: min(560px, calc(100vw - 24px));
}

.toast.show { display: inline-flex; }
.toast strong { font-weight: 600; }
.toast .small { opacity: .85; font-size: 14px; }

/* ===== Mobile tweaks ===== */
@media (max-width: 767px) {
  /* HERO photo: 1:1 + круглая */
  .photo-wrap {
    justify-content: center; /* чтобы фотка не прижималась вправо */
  }

  .hero {
    margin: calc(0rem + var(--header-h)) 0rem 0rem 0rem;
  }

  .hero-photo {
    aspect-ratio: 1 / 1;
    border-radius: 3333px;
    max-width: 420px;       /* можно убрать/поменять под твой вкус */
  }

  /* ABOUT photo: скрыть */
  .about-photo {
    display: none;
  }
  
  .brand {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.2;
    margin-left: 1rem;
  }
  
  .section {
  margin-bottom: 4rem;

  /* CIRCLES: пересчитать/разложить нормально */
  .circles {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px; /* расстояние между кругами */
    margin-top: 5rem;
  }

  /* убираем “строки” и отрицательные отступы */
  .circle-row {
    display: contents; /* элементы внутри ведут себя как будто без обёртки */
  }

  .circle-row + .circle-row {
    margin-top: 0;
  }

  /* сами круги: адекватный размер + без наложений */
  .circle {
    width: min(44vw, 160px);
    height: min(44vw, 160px);
  }

  .circle + .circle {
    margin-left: 0;
  }

  .circle span {
    font-size: 16px;
    padding: 0 12px;
  }
}
