/* ============================================================
   Алиса Бабаева — психолог. Сайт-визитка.
   ============================================================ */

:root {
  /* Палитра — вытащена из агатовых картин на фото */
  --bg:          #F4EFE6;   /* основной кремовый */
  --bg-warm:     #ECE3D2;   /* секции потеплее */
  --bg-deep:     #1F1B16;   /* тёмные секции */
  --ink:         #1E1A15;   /* основной текст */
  --ink-muted:   #5C544A;   /* приглушённый */
  --ink-soft:    #837A6C;   /* мета, подписи */
  --accent:      #B07252;   /* терракота — главный акцент */
  --accent-deep: #8B5640;
  --accent-soft: #E8C9B5;
  --sage:        #7A8472;   /* шалфейный — вспомогательный */
  --line:        #D5CBB8;
  --line-soft:   #E2DAC9;

  /* Типографика */
  --display: "Cormorant Garamond", "Times New Roman", serif;
  --body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* Радиусы и тени */
  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* Сетка */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

::selection { background: var(--accent); color: #fff; }

/* ============================================================
   Утилиты
   ============================================================ */

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

.eyebrow {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--ink-soft);
  display: inline-block;
}

.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.04;
  color: var(--ink);
  text-wrap: balance;
}

.display em {
  font-style: italic;
  color: var(--accent-deep);
}

h2.display {
  font-size: clamp(34px, 5vw, 64px);
  margin: 0 0 24px;
}

h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 28px;
  margin: 0 0 12px;
  letter-spacing: -0.005em;
}

p { margin: 0 0 1em; }

.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 62ch;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--r-pill);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  line-height: 1;
}

.btn .arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--bg);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-light {
  background: var(--bg);
  color: var(--ink);
}
.btn-light:hover {
  background: var(--accent-soft);
}

/* ============================================================
   Header
   ============================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.header.scrolled {
  border-bottom-color: var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
}

.nav {
  display: flex;
  gap: 36px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
}
.nav a {
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--ink); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.nav a:hover::after { width: 100%; }

.header .btn {
  padding: 12px 22px;
  font-size: 14px;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--ink);
  position: relative;
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1px;
  background: var(--ink);
}
.menu-toggle span::before { top: -5px; }
.menu-toggle span::after { top: 5px; }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  padding: clamp(40px, 6vw, 90px) 0 clamp(60px, 8vw, 120px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.hero-eyebrow {
  margin-bottom: 36px;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(52px, 8vw, 104px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent-deep);
}

.hero-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 48ch;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-meta {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
  color: var(--ink-muted);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 10px; }
.hero-meta span::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

/* Портрет */
.hero-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-warm);
}
.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(31,27,22,0.18));
  pointer-events: none;
}
.hero-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 16px 20px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-muted);
}
.hero-badge strong { color: var(--ink); font-weight: 500; }
.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: #5BAA7A;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(91,170,122,0.18);
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}

/* ============================================================
   Sections common
   ============================================================ */

section {
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(40px, 6vw, 90px);
  margin-bottom: clamp(50px, 7vw, 90px);
  align-items: end;
}
.section-head .eyebrow { margin-bottom: 24px; display: flex; }

.section-head-text { max-width: 56ch; }

/* ============================================================
   About
   ============================================================ */

.about { background: var(--bg-warm); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.about-portrait {
  position: sticky;
  top: 120px;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-md);
  overflow: hidden;
}
.about-portrait img {
  width: 100%; height: 100%; object-fit: cover;
}

.about-text { color: var(--ink); }
.about-text p { font-size: 18px; line-height: 1.65; color: var(--ink-muted); }
.about-text p strong { color: var(--ink); font-weight: 500; }

.creds {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.creds-title {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 24px;
  font-weight: 500;
}
.creds-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
}
.creds-list li {
  display: flex;
  gap: 14px;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.45;
}
.creds-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border: 1px solid var(--accent);
  background: var(--accent);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

/* ============================================================
   Requests (С чем работаю)
   ============================================================ */

.requests-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.request-card {
  background: var(--bg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.25s ease;
  min-height: 220px;
}
.request-card:hover { background: var(--bg-warm); }

.request-num {
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 8px;
}

.request-title {
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0;
}

.request-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0;
}

/* ============================================================
   Approach (Подход / методы)
   ============================================================ */

.approach { background: var(--bg-deep); color: var(--bg); }
.approach .eyebrow { color: rgba(244,239,230,0.55); }
.approach .eyebrow::before { background: rgba(244,239,230,0.55); }
.approach .display, .approach h2.display { color: var(--bg); }
.approach .display em { color: var(--accent-soft); }
.approach .lede { color: rgba(244,239,230,0.7); }

.methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: rgba(244,239,230,0.12);
  border: 1px solid rgba(244,239,230,0.12);
  border-radius: var(--r-md);
  overflow: hidden;
}

.method {
  background: var(--bg-deep);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
  transition: background 0.25s ease;
}
.method:hover { background: #28231C; }

.method-tag {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-soft);
  font-weight: 500;
  margin-bottom: 8px;
}

.method-name {
  font-family: var(--display);
  font-size: 34px;
  line-height: 1.1;
  margin: 0;
  color: var(--bg);
}
.method-name em { font-style: italic; color: var(--accent-soft); }

.method-desc {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(244,239,230,0.72);
  margin: 0;
}

/* ============================================================
   Services / Pricing
   ============================================================ */

.services .section-head { margin-bottom: 60px; }

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tier {
  background: var(--bg-warm);
  border-radius: var(--r-lg);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid transparent;
}
.tier:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -32px rgba(31,27,22,0.25);
}
.tier.featured {
  background: var(--ink);
  color: var(--bg);
}
.tier.featured .tier-meta,
.tier.featured .tier-feature { color: rgba(244,239,230,0.72); }
.tier.featured .tier-feature::before {
  border-color: var(--accent-soft);
  background: var(--accent-soft);
}
.tier.featured .tier-title { color: var(--bg); }
.tier.featured .tier-price-num { color: var(--accent-soft); }

.tier-flag {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-soft);
  padding: 6px 12px;
  border: 1px solid rgba(232,201,181,0.4);
  border-radius: var(--r-pill);
}

.tier-meta {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}

.tier-title {
  font-family: var(--display);
  font-size: 34px;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.005em;
}

.tier-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 8px 0 4px;
}
.tier-price-num {
  font-family: var(--display);
  font-size: 56px;
  line-height: 1;
  color: var(--accent-deep);
}
.tier-price-unit {
  font-size: 14px;
  color: var(--ink-soft);
}

.tier-features {
  list-style: none;
  margin: 8px 0 24px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.tier.featured .tier-features { border-top-color: rgba(244,239,230,0.18); }

.tier-feature {
  display: flex;
  gap: 12px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-muted);
}
.tier-feature::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  border: 1px solid var(--accent);
  margin-top: 8px;
  flex-shrink: 0;
}

.tier .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* ============================================================
   Certificates
   ============================================================ */

.certs { background: var(--bg-warm); }

.cert-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cert {
  aspect-ratio: 1 / 1.4;
  background: var(--bg);
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: zoom-in;
}
.cert:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -24px rgba(31,27,22,0.3);
}
.cert img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15,12,8,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 40px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--r-sm);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 18px;
}

/* ============================================================
   Final CTA / Contacts
   ============================================================ */

.contact {
  background: var(--ink);
  color: var(--bg);
}
.contact .eyebrow { color: rgba(244,239,230,0.55); }
.contact .eyebrow::before { background: rgba(244,239,230,0.55); }

.contact-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.contact-head h2 {
  font-family: var(--display);
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0 0 28px;
  color: var(--bg);
}
.contact-head h2 em { font-style: italic; color: var(--accent-soft); }
.contact-head p {
  color: rgba(244,239,230,0.7);
  font-size: 18px;
  line-height: 1.55;
  max-width: 46ch;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.channel {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 28px;
  background: rgba(244,239,230,0.04);
  border: 1px solid rgba(244,239,230,0.12);
  border-radius: var(--r-md);
  color: var(--bg);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}
.channel:hover {
  background: rgba(244,239,230,0.08);
  border-color: var(--accent-soft);
  transform: translateY(-1px);
}
.channel-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.channel-icon svg { width: 22px; height: 22px; }
.channel-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.channel-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244,239,230,0.55);
  font-weight: 500;
}
.channel-value {
  font-family: var(--display);
  font-size: 22px;
  color: var(--bg);
  line-height: 1.2;
}
.channel-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(244,239,230,0.08);
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.25s ease;
}
.channel:hover .channel-arrow { background: var(--accent); transform: rotate(-45deg); }
.channel-arrow svg { width: 14px; height: 14px; color: var(--bg); }

.phone-line {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(244,239,230,0.12);
  font-size: 14px;
  color: rgba(244,239,230,0.55);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.phone-line strong {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  color: var(--bg);
  letter-spacing: 0.01em;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  padding: 36px 0 40px;
  background: var(--ink);
  color: rgba(244,239,230,0.5);
  font-size: 13px;
  border-top: 1px solid rgba(244,239,230,0.08);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ============================================================
   Reveal animation
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 520px; margin: 0 auto; }
  .section-head { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { position: relative; top: 0; max-width: 480px; }
  .requests-grid { grid-template-columns: repeat(2, 1fr); }
  .methods { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .cert-rail { grid-template-columns: repeat(4, 1fr); }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header .btn-primary { display: none; }
  .header-inner { padding: 16px 0; }
  .hero { padding-top: 28px; padding-bottom: 60px; }
  .hero h1 { font-size: clamp(44px, 11vw, 64px); }
  .hero-meta { gap: 14px 20px; }
  .requests-grid { grid-template-columns: 1fr; }
  .cert-rail { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tier { padding: 32px 26px; }
  .channel-value { font-size: 18px; }
  .channel { padding: 18px 20px; gap: 14px; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 40;
  padding: 100px 32px 40px;
  display: none;
  flex-direction: column;
  gap: 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--display);
  font-size: 36px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
}
.mobile-menu .btn-primary {
  margin-top: 32px;
  align-self: flex-start;
}
