/* ==========================================================================
   Діана Лоза — персональний сайт (v2: темний hero, редакційна типографіка)
   Порядок: hero → чому я → з чим допомагаю → вартість → процес → про мене
   → фінальний заклик → footer
   ========================================================================== */

/* ---------- Токени ---------- */
:root {
  --c-ink: #121418;          /* темний фон hero, фінал, картка ціни */
  --c-ink-2: #17191E;        /* основний текст */
  --c-paper: #F5F1EA;        /* світлий фон */
  --c-white: #FFFFFF;
  --c-sand: #EDE6DC;         /* смуга процесу */
  --c-text-muted: #4A4640;
  --c-text-soft: #6B665E;
  --c-on-dark: #F5F1EA;
  --c-on-dark-muted: #BDB6AC;
  --c-on-dark-soft: #D6CFC5;
  --c-line: #E2DACF;
  --c-line-dark: #2E3036;
  --c-accent: #7A2E3B;       /* вино */
  --c-accent-on-dark: #C98B97;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 3rem + 6vw, 8rem);
  --header-h: 72px;
  --radius: 22px;
  --radius-lg: 28px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-ink-2);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; text-wrap: balance; overflow-wrap: break-word; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
:where(ul[class], ol[class]) { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
.hero :focus-visible, .final :focus-visible, .price-card :focus-visible,
.site-header :focus-visible, .mobile-menu :focus-visible { outline-color: var(--c-accent-on-dark); }

.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 100;
  padding: .75rem 1.25rem; border-radius: 999px;
  background: var(--c-paper); color: var(--c-ink); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.125rem; height: 1.125rem; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .75rem 1.75rem;
  border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn--light { background: var(--c-paper); color: var(--c-ink); }
.btn--light:hover { background: var(--c-white); }
.btn--dark { background: var(--c-ink); color: var(--c-on-dark); }
.btn--dark:hover { background: var(--c-accent); }
.btn--ghost { border-color: #5A564F; color: var(--c-on-dark); }
.btn--ghost:hover { border-color: var(--c-on-dark); }
.btn--sm { min-height: 44px; padding: .5rem 1.3rem; font-size: .9375rem; }
.btn--lg { min-height: 60px; padding: .9rem 2.1rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }

/* ---------- Header (темний, sticky) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--c-ink); color: var(--c-on-dark);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--c-line-dark); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header-h); }
.brand { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--c-on-dark); text-decoration: none; }
.nav { display: none; }
.nav__list { display: flex; gap: clamp(1.25rem, 2.4vw, 2rem); }
.nav a { color: var(--c-on-dark-muted); font-size: .9375rem; font-weight: 500; text-decoration: none; padding: .5rem 0; transition: color .2s var(--ease); }
.nav a:hover, .nav a[aria-current="true"] { color: var(--c-on-dark); }
.header__actions { display: flex; align-items: center; gap: .75rem; }
.header__cta { display: none; }
.burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -10px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--c-on-dark); cursor: pointer;
}
.burger__lines { position: relative; display: block; width: 22px; height: 12px; }
.burger__lines::before, .burger__lines::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 1.5px; border-radius: 2px;
  background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease);
}
.burger__lines::before { top: 2px; }
.burger__lines::after { top: 8.5px; }
.burger[aria-expanded="true"] .burger__lines::before { top: 5.25px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines::after { top: 5.25px; transform: rotate(-45deg); }
@media (min-width: 640px) { .header__cta { display: inline-flex; } }
@media (min-width: 1000px) { .nav { display: block; } .burger { display: none; } }

/* ---------- Мобільне меню ---------- */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 40;
  display: flex; flex-direction: column;
  padding: 1.5rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
  overflow-y: auto; background: var(--c-ink); color: var(--c-on-dark);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mobile-menu__link {
  display: block; padding: 1.1rem 0; border-bottom: 1px solid var(--c-line-dark);
  font-family: var(--font-display); font-size: 1.75rem; color: var(--c-on-dark); text-decoration: none;
}
.mobile-menu__cta { margin-top: auto; }
@media (min-width: 1000px) { .mobile-menu { display: none; } }

/* ---------- Типографіка секцій ---------- */
.section { padding-block: var(--section-y); }
.section--white { background: var(--c-white); }
.section__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.125rem, 1.5rem + 2.4vw, 3.375rem);
  line-height: 1.1; letter-spacing: -.015em;
}
.section__lead { max-width: 30em; font-size: 1.125rem; color: var(--c-text-muted); }
.label { font-size: .875rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--c-text-soft); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { background: var(--c-ink); color: var(--c-on-dark); padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(3.5rem, 7vw, 5.5rem); }
.hero__grid {
  display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
}
@media (min-width: 1000px) { .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.hero__content { display: flex; flex-direction: column; gap: 1.75rem; }
.hero__eyebrow { font-size: .875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-accent-on-dark); }
.hero__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.25rem, 1.4rem + 3.2vw, 4rem); line-height: 1.06; letter-spacing: -.02em;
}
.hero__lead { max-width: 32em; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 1.55; color: var(--c-on-dark-soft); }
.hero__offer { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; }
.hero__price { color: var(--c-on-dark-muted); }
.hero__price strong { color: var(--c-on-dark); font-weight: 600; }
.hero__creds {
  display: flex; flex-wrap: wrap; gap: .75rem 2.25rem;
  padding-top: 1.6rem; border-top: 1px solid var(--c-line-dark);
  font-size: .9375rem; color: var(--c-on-dark-muted);
}
.hero__photo img {
  width: 100%; height: auto; max-width: 520px; margin-left: auto;
  aspect-ratio: 912 / 1150; object-fit: cover;
  border-radius: var(--radius-lg); background: #2A2C31;
}
@media (max-width: 639.98px) { .hero__offer .btn { width: 100%; } }

/* ==========================================================================
   ЧОМУ Я
   ========================================================================== */
.cards {
  display: grid; gap: 1.5rem; margin-top: clamp(2.5rem, 4vw, 4rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}
.card {
  display: flex; flex-direction: column; gap: .9rem;
  padding: 2rem 1.75rem; border-radius: var(--radius); background: var(--c-white);
}
.card__num { font-size: .875rem; font-weight: 700; color: var(--c-accent); }
.card h3 { font-size: 1.3125rem; font-weight: 700; line-height: 1.3; }
.card p:last-child { font-size: 1rem; color: var(--c-text-muted); }

/* ==========================================================================
   З ЧИМ ДОПОМАГАЮ
   ========================================================================== */
.help {
  display: grid; gap: clamp(2.5rem, 5vw, 5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
}
.help__col { display: flex; flex-direction: column; gap: 1.25rem; }
.help__col--end { justify-content: flex-end; }
.help__col .label { margin-top: .5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li { padding: .6rem 1rem; border-radius: 999px; background: var(--c-paper); font-size: .9375rem; line-height: 1.3; }
.chips--outline li { background: transparent; border: 1px solid var(--c-line); }

/* ==========================================================================
   ВАРТІСТЬ
   ========================================================================== */
.price {
  display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
}
.checks { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 1.75rem; }
.checks li { display: flex; gap: .85rem; align-items: flex-start; font-size: 1.0625rem; }
.checks .icon { width: 1.5rem; height: 1.5rem; margin-top: .05rem; color: var(--c-accent); stroke-width: 2; }
.price-card {
  display: flex; flex-direction: column; gap: 1.1rem;
  padding: clamp(2rem, 4vw, 3rem); border-radius: var(--radius-lg);
  background: var(--c-ink); color: var(--c-on-dark);
}
.price-card__label { font-size: .9375rem; font-weight: 600; color: var(--c-on-dark-muted); }
.price-card__value { font-family: var(--font-display); font-size: clamp(3rem, 2.2rem + 3vw, 4rem); line-height: 1; }
.price-card__meta { font-size: 1.125rem; }
.price-card__note { font-size: .9375rem; color: var(--c-on-dark-muted); }
.price-card .btn { margin-top: .5rem; }
.price-card__small { font-size: .875rem; color: var(--c-on-dark-muted); }
.price-card__small a { color: var(--c-on-dark); text-underline-offset: .2em; }

/* ==========================================================================
   ПРОЦЕС
   ========================================================================== */
.process { background: var(--c-sand); padding-block: clamp(3.5rem, 6vw, 5rem); }
.process__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.process__title { font-family: var(--font-display); font-weight: 500; font-size: 1.875rem; line-height: 1.15; }
.step__head { margin-bottom: .35rem; font-size: .875rem; font-weight: 700; color: var(--c-accent); }
.step p:last-child { font-size: 1rem; color: var(--c-text-muted); }

/* ==========================================================================
   ПРО МЕНЕ
   ========================================================================== */
.about {
  display: grid; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
}
.about__photo img {
  width: 100%; height: auto; max-width: 480px; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius-lg); background: #DDD5CA;
}
.about__body { display: flex; flex-direction: column; gap: 1.35rem; }
.about__body p { color: var(--c-text-muted); max-width: 36em; }
.about__body .about__lead { font-size: 1.1875rem; line-height: 1.55; color: var(--c-ink-2); }
.about__body a { color: var(--c-ink-2); text-underline-offset: .2em; }
.about__body a:hover { color: var(--c-accent); }
.about__body .about__small { font-size: .9375rem; color: var(--c-text-soft); }

/* ==========================================================================
   ФІНАЛЬНИЙ ЗАКЛИК
   ========================================================================== */
.final { background: var(--c-ink); color: var(--c-on-dark); padding-block: clamp(4.5rem, 3rem + 6vw, 7.5rem); text-align: center; }
.final__inner { max-width: 54rem; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.final h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.625rem); line-height: 1.08; }
.final p { max-width: 34em; font-size: 1.125rem; color: var(--c-on-dark-soft); }
.final .final__small { font-size: .9375rem; color: var(--c-on-dark-muted); }
.final__small a { color: var(--c-on-dark); text-underline-offset: .2em; }
@media (max-width: 639.98px) { .final .btn { width: 100%; } }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(2.5rem, 5vw, 3.5rem) 0 2rem; font-size: .9375rem; }
.footer__top { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .footer__top { grid-template-columns: 1fr auto; align-items: start; } }
.footer__name { font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; }
.footer__links { display: grid; gap: .5rem; }
@media (min-width: 768px) { .footer__links { justify-items: end; } }
.footer__links a { text-decoration: underline; text-decoration-color: var(--c-line); text-underline-offset: .25em; overflow-wrap: anywhere; }
.footer__links a:hover { color: var(--c-accent); text-decoration-color: var(--c-accent); }
.footer__legal {
  display: grid; gap: .4rem; margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--c-line); font-size: .8125rem; color: var(--c-text-soft);
}
.footer__legal p { max-width: 90ch; }
.footer__legal a { text-underline-offset: .2em; }

/* ---------- Sticky CTA (mobile) ---------- */
.sticky-cta {
  position: fixed; left: 1rem; right: 1rem; bottom: calc(.75rem + env(safe-area-inset-bottom)); z-index: 45;
  transition: transform .35s var(--ease), opacity .35s var(--ease), visibility 0s linear 0s;
}
.sticky-cta .btn { min-height: 56px; box-shadow: 0 12px 32px -8px rgba(18, 20, 24, .45); }
.js .sticky-cta:not(.is-visible), .nav-open .sticky-cta {
  opacity: 0; visibility: hidden; transform: translateY(calc(100% + 1.5rem));
  transition: transform .35s var(--ease), opacity .35s var(--ease), visibility 0s linear .35s;
}
@media (max-width: 767.98px) { .site-footer { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); } }
@media (min-width: 768px) { .sticky-cta { display: none; } }

/* ---------- Рух ---------- */
.intro { animation: intro-up .9s var(--ease) both; }
.hero__content > .intro:nth-child(2) { animation-delay: .05s; }
.hero__content > .intro:nth-child(3) { animation-delay: .1s; }
.hero__content > .intro:nth-child(n + 4) { animation-delay: .16s; }
.hero__photo.intro { animation-delay: .1s; }
@keyframes intro-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .stagger > .reveal:nth-child(2) { transition-delay: .07s; }
.js .stagger > .reveal:nth-child(3) { transition-delay: .14s; }
.js .stagger > .reveal:nth-child(4) { transition-delay: .21s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
