/* =========================================================================
   Юлия Урасова — Minimalist Monochrome
   Hero как v5 (один экран: имя + тэглайн + фото + био + контакты)
   + три секции (Консультации / Образовательные проекты / Мой опыт)
   без нумерованных мета-шапок, hover-инверсий, левой полосы, CTA и подвала.
   ========================================================================= */

:root {
  --bg:           #ffffff;
  --fg:           #000000;
  --muted:        #525252;
  --border-light: #e5e5e5;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container:   1100px;
  --page-pad-x:  1.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

::selection {
  background: var(--fg);
  color: var(--bg);
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-thickness 100ms linear;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.skip-link:focus {
  top: 1rem;
}

/* =========================================================================
   HERO — первый экран
   ========================================================================= */

.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: 3rem var(--page-pad-x);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.hero h1 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--fg);
  max-width: 14ch;
}

.tagline {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
  max-width: 48ch;
}

.portrait {
  margin: 0;
}

.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 70%;
}

.bio {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--fg);
  max-width: 60ch;
}

.contacts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 1.0625rem;
  font-weight: 500;
}

.contacts a {
  display: inline-block;
}

@media (min-width: 720px) {
  .hero {
    padding: 4.5rem 2.5rem;
    display: grid;
    grid-template-columns: 1fr 340px;
    column-gap: 4rem;
    row-gap: 2rem;
    align-items: start;
  }

  .hero h1     { grid-column: 1; grid-row: 1; }
  .tagline     { grid-column: 1; grid-row: 2; max-width: 38ch; }
  .portrait    { grid-column: 2; grid-row: 1 / span 4; align-self: start; }
  .bio         { grid-column: 1; grid-row: 3; }
  .contacts    { grid-column: 1; grid-row: 4; margin-top: 0.5rem; }
}

@media (min-width: 1024px) {
  .hero {
    padding: 6rem 3rem;
    grid-template-columns: 1fr 380px;
    column-gap: 5rem;
  }
}

/* =========================================================================
   Section base — разделитель сверху + общий padding
   ========================================================================= */

.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 4rem var(--page-pad-x);
  border-top: 1px solid var(--fg);
}

@media (min-width: 720px) {
  .section { padding: 5rem 2.5rem; }
}

@media (min-width: 1024px) {
  .section { padding: 6rem 3rem; }
}

.section__title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 1.5rem;
  max-width: 18ch;
}

.section__intro {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 50ch;
  margin-bottom: 2rem;
}

.section__quote {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.4;
  font-weight: 500;
  color: var(--fg);
  max-width: 42ch;
  margin-bottom: 2.5rem;
}

/* =========================================================================
   КОНСУЛЬТАЦИИ — список тем
   ========================================================================= */

.topics {
  list-style: none;
  margin: 0;
  padding: 0;
}

.topics li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.25rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
}

.topics__index {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.topics__text {
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--fg);
}

/* Standalone feature card (Трекинг in Консультации) — отделяем от списка */
.topics + .program {
  margin-top: 2.5rem;
}

@media (min-width: 720px) {
  .topics li {
    grid-template-columns: 3rem 1fr;
    padding: 1.125rem 0;
  }
  .topics__text { font-size: 1.125rem; }
}

/* =========================================================================
   ОБРАЗОВАТЕЛЬНЫЕ ПРОЕКТЫ — карточки
   ========================================================================= */

.programs {
  display: grid;
  grid-template-columns: 1fr;
}

.program {
  position: relative;
  background: var(--bg);
  color: var(--fg);
  padding: 2rem;
  border-bottom: 1px solid var(--fg);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.program__label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.program__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0;
}

.program__body {
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
}

.program--feature {
  background: var(--fg);
  color: var(--bg);
  border-bottom: none;
}

.program--feature .program__label { color: #aaaaaa; }
.program--feature .program__body { color: #cccccc; }

@media (min-width: 880px) {
  .programs {
    grid-template-columns: 1fr 1fr;
  }
  .program {
    border-right: 1px solid var(--fg);
    padding: 2.5rem;
  }
  .program:nth-child(2n) { border-right: none; }
  .program--feature {
    grid-column: 1 / -1;
    border-right: none;
  }
}

/* =========================================================================
   МОЙ ОПЫТ
   ========================================================================= */

.experience {
  max-width: 64ch;
}

.experience p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fg);
  margin-bottom: 1.25rem;
}

.experience p:last-child {
  margin-bottom: 0;
}

.experience strong {
  font-weight: 700;
  color: var(--fg);
}

/* =========================================================================
   Entrance animation — hero (на загрузке)
   Деликатный stagger fade-up: opacity 0→1 + translateY(16→0)
   ========================================================================= */

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero > * {
  animation: fade-rise 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero h1        { animation-delay: 150ms; }
.hero .tagline  { animation-delay: 320ms; }
.hero .portrait { animation-delay: 460ms; }
.hero .bio      { animation-delay: 580ms; }
.hero .contacts { animation-delay: 740ms; }

/* =========================================================================
   Scroll reveal — секции ниже первого экрана
   Каждая .section всплывает как unit, дети staggered внутри
   Запускается JS через IntersectionObserver → класс .is-visible
   ========================================================================= */

.section > * {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.section.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.section.is-visible > *:nth-child(2) { transition-delay: 140ms; }
.section.is-visible > *:nth-child(3) { transition-delay: 280ms; }
.section.is-visible > *:nth-child(4) { transition-delay: 420ms; }
.section.is-visible > *:nth-child(5) { transition-delay: 560ms; }

.section.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero > * { animation: none; }
  .section > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================================
   Print
   ========================================================================= */

@media print {
  .skip-link { display: none; }
  .hero { display: block; }
  .portrait { max-width: 320px; }
  .program--feature { background: #fff; color: #000; border: 1px solid #000; }
}
