/* ===== Сам себе визажист — styles ===== */
:root {
  --cream: #FBF6F0;
  --white: #FFFFFF;
  --gold: #B39058;
  --gold-l: #D6BA80;
  --rose-l: #F1D9D6;
  --rose: #C48088;
  --green: #1F3A2E;
  --text: #46302E;
  --text-2: #7d5f58;
  --ink-on-gold: #3a2624;

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

  --r: 24px;
  --shadow: 0 18px 40px -22px rgba(70, 48, 46, .35);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font: 400 16px/1.65 var(--font-body);
  overflow-x: hidden;
  padding-bottom: 76px; /* место под закреплённую кнопку */
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-style: italic; font-weight: 500; line-height: 1.15; margin: 0; color: var(--text); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; position: relative; z-index: 1; }
.wrap--narrow { width: min(760px, 100% - 40px); }

.ico { width: 1em; height: 1em; fill: currentColor; flex: none; }
.ico--lg { width: 28px; height: 28px; color: var(--gold); }

/* ----- декор ----- */
.blob { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; z-index: 0; }
.blob--rose { background: var(--rose-l); opacity: .85; }
.blob--sand { background: #EFE0CB; opacity: .9; }

.orn { display: flex; align-items: center; gap: 14px; width: min(420px, 100% - 40px); margin: 0 auto; color: var(--gold); }
.orn span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-l) 40%, var(--gold-l) 60%, transparent); }
.orn .ico { width: 16px; height: 16px; }

.eyebrow { font-size: 13px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 14px; }
.eyebrow--light { color: var(--gold-l); }

/* арка для фото */
.arch { position: relative; width: 100%; max-width: 380px; margin-inline: auto; padding: 10px; }
.arch::before {
  content: ""; position: absolute; inset: 0; border: 1px solid var(--gold-l);
  border-radius: 999px 999px 28px 28px; transform: translate(10px, 10px); pointer-events: none;
}
.arch .ph {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--rose-l);
  border-radius: 999px 999px 20px 20px; box-shadow: var(--shadow);
}
.arch--sm { max-width: 320px; }

/* плейсхолдер/картинка */
.ph { display: block; position: relative; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph.is-missing img, .ph.is-missing picture { display: none; }
.ph.is-missing {
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px;
  background:
    radial-gradient(circle at 30% 20%, var(--rose-l), transparent 60%),
    radial-gradient(circle at 80% 90%, #EFE0CB, transparent 60%),
    var(--cream);
  border: 1px dashed var(--gold-l);
  color: var(--text-2); font-size: 14px; line-height: 1.4;
}
.ph.is-missing::before { content: attr(data-label); font-family: var(--font-head); font-style: italic; font-size: 18px; }
.arch .ph.is-missing { border-radius: 999px 999px 20px 20px; }

/* ----- шапка ----- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px;
  background: rgba(251, 246, 240, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(214, 186, 128, .35);
}
.topbar__logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--font-head); font-style: italic; font-size: 18px; color: var(--text); white-space: nowrap; }
.topbar__logo .ico { color: var(--gold); width: 14px; height: 14px; }
.topbar__nav { display: none; }

/* ----- кнопки ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 30px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; letter-spacing: .02em; text-decoration: none; text-align: center;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn--gold { background: linear-gradient(135deg, var(--gold-l), var(--gold)); color: var(--ink-on-gold); box-shadow: 0 12px 24px -14px rgba(179, 144, 88, .9); }
.btn--ghost { background: transparent; border-color: var(--gold); color: var(--text); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { min-height: 60px; padding: 0 40px; font-size: 18px; }
.btn--block { width: 100%; }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn--gold:hover { box-shadow: 0 16px 28px -14px rgba(179, 144, 88, 1); }
  .btn--ghost:hover { background: var(--rose-l); border-color: var(--rose); }
}

/* ----- секции ----- */
.section { position: relative; padding: 72px 0; overflow: hidden; }
.section__head { text-align: center; margin-bottom: 40px; }
.section__head h2, .about h2 { font-size: clamp(30px, 8vw, 44px); }
.section__lead { margin-top: 14px; color: var(--text-2); }

/* ----- hero ----- */
.hero { position: relative; overflow: hidden; padding: 96px 0 56px; }
.hero__grid { display: grid; gap: 40px; }
.hero__text { text-align: center; }
.hero h1 { font-size: clamp(44px, 13vw, 84px); }
.hero__sub { margin: 20px auto 0; max-width: 28em; color: var(--text-2); font-size: 16px; }
.hero__actions { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; max-width: 340px; margin-inline: auto; }
.hero__photo { padding-right: 10px; }

/* ----- обо мне ----- */
.about__grid { display: grid; gap: 40px; align-items: center; }
.about__text { text-align: center; }
.about__text p:not(.eyebrow) { margin-top: 18px; font-size: 17px; }
.stats { display: flex; justify-content: center; gap: 36px; margin-top: 28px; }
.stats li { display: flex; flex-direction: column; align-items: center; }
.stats b { font-family: var(--font-head); font-style: italic; font-weight: 500; font-size: 40px; color: var(--gold); line-height: 1.1; }
.stats span { font-size: 14px; color: var(--text-2); }

/* ----- шаги ----- */
.steps { background: var(--white); }
.steps__list { display: grid; gap: 28px; max-width: 520px; margin-inline: auto; counter-reset: s; }
.steps__list li { display: flex; align-items: center; gap: 18px; }
.num {
  flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--gold); color: var(--gold); background: var(--cream);
  font-family: var(--font-head); font-style: italic; font-size: 26px; box-shadow: 0 0 0 5px var(--cream), 0 0 0 6px var(--gold-l);
}
.steps__list p { font-size: 17px; }

/* ----- тарифы ----- */
.tariffs { background: var(--green); }
.tariffs h2 { color: var(--cream); }
.tariffs .section__lead { color: #cfc3b2; }
.cards { display: grid; gap: 24px; }
.card {
  background: var(--white); border: 1px solid var(--gold-l); border-radius: var(--r); padding: 28px 22px 24px;
  display: flex; flex-direction: column; box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .6);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
@media (hover: hover) { .card:hover { transform: translateY(-4px); box-shadow: 0 36px 64px -34px rgba(0, 0, 0, .7); } }
.card h3 { font-size: 28px; }
.card__price { font-family: var(--font-head); font-style: italic; font-size: 34px; color: var(--gold); margin: 6px 0 18px; line-height: 1.2; }
.card__price small { font-family: var(--font-body); font-style: normal; font-size: 14px; color: var(--text-2); }
.list li { position: relative; padding-left: 26px; margin-bottom: 12px; font-size: 15.5px; line-height: 1.55; }
.list li::before {
  content: ""; position: absolute; left: 3px; top: .5em; width: 9px; height: 9px;
  background: var(--gold); transform: rotate(45deg); border-radius: 1px;
}
.collapsible { position: relative; overflow: hidden; transition: max-height .5s var(--ease); }
.collapsible.is-collapsed { max-height: 190px; }
.collapsible.is-collapsed::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 70px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--white)); pointer-events: none;
}
.more {
  align-self: flex-start; background: none; border: 0; padding: 6px 0; margin: 2px 0 14px;
  color: var(--gold); font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--gold-l);
}
.gift {
  display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 22px; padding: 14px 16px;
  background: var(--rose-l); border-radius: 16px; font-size: 15px; line-height: 1.5;
}
.gift .ico { color: var(--gold); margin-top: 4px; width: 14px; height: 14px; }
.card .btn { margin-top: auto; }

/* ----- галереи ----- */
.gallery { display: grid; gap: 20px; align-items: start; }
.shot {
  display: block; width: 100%; padding: 8px; border: 1px solid var(--gold-l); background: var(--white);
  border-radius: 20px; box-shadow: var(--shadow); text-align: left;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.shot .ph { border-radius: 14px; overflow: hidden; }
.shot .ph img { height: auto; }
.shot .ph.is-missing { aspect-ratio: 4 / 5; }
.gallery--reviews .shot .ph.is-missing { aspect-ratio: 9 / 14; }
@media (hover: hover) { .shot:hover { transform: translateY(-4px); box-shadow: 0 26px 44px -24px rgba(70, 48, 46, .45); } }
.gallery--reviews { max-width: 960px; margin-inline: auto; }

/* ----- FAQ ----- */
.acc__item { border-bottom: 1px solid var(--gold-l); }
.acc__item:first-child { border-top: 1px solid var(--gold-l); }
.acc__item h3 { font-size: inherit; font-style: normal; font-family: var(--font-body); font-weight: inherit; }
.acc__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 4px; background: none; border: 0; text-align: left;
  font-family: var(--font-head); font-style: italic; font-size: 21px; line-height: 1.3;
}
.acc__ico { position: relative; flex: none; width: 22px; height: 22px; border: 1px solid var(--gold); border-radius: 50%; }
.acc__ico::before, .acc__ico::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--gold); transition: transform .35s var(--ease); }
.acc__ico::before { width: 10px; height: 1.5px; margin: -.75px 0 0 -5px; }
.acc__ico::after { width: 1.5px; height: 10px; margin: -5px 0 0 -.75px; }
.acc__btn[aria-expanded="true"] .acc__ico::after { transform: scaleY(0); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.acc__panel > div { overflow: hidden; }
.acc__panel p { padding: 0 4px 22px; color: var(--text); font-size: 16.5px; }
.acc__btn[aria-expanded="true"] + * { }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }

/* ----- финал ----- */
.final { position: relative; overflow: hidden; padding: 84px 0; background: linear-gradient(180deg, var(--cream), var(--rose-l)); text-align: center; }
.final__box { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.final h2 { font-size: clamp(30px, 8vw, 46px); }

/* ----- футер ----- */
.footer { background: var(--green); color: #e9dfd0; padding: 48px 0 40px; text-align: center; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.footer__brand { font-family: var(--font-head); font-style: italic; font-size: 26px; color: var(--cream); }
.social { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; }
.social a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--gold-l); padding: 8px 4px; min-height: 44px; transition: color .3s var(--ease); }
.social .ico { width: 22px; height: 22px; }
@media (hover: hover) { .social a:hover { color: #fff; } }
.footer__copy { font-size: 14px; }
.footer__made { font-size: 13px; opacity: .8; }
.footer__made a { color: var(--gold-l); }

/* ----- закреплённая кнопка ----- */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(251, 246, 240, .96) 60%, rgba(251, 246, 240, 0));
  transform: translateY(110%); transition: transform .45s var(--ease); pointer-events: none;
}
.sticky.is-on { transform: none; pointer-events: auto; }

/* ----- лайтбокс ----- */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(31, 22, 20, .92); display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.lb[hidden] { display: none; }
.lb__stage { max-width: 100%; max-height: 100%; padding: 56px 12px; display: flex; align-items: center; justify-content: center; }
.lb__img { max-width: 100%; max-height: calc(100vh - 112px); max-height: calc(100dvh - 112px); border-radius: 12px; object-fit: contain; }
.lb__ph { width: min(80vw, 420px); aspect-ratio: 4 / 5; display: grid; place-items: center; text-align: center; padding: 24px; border-radius: 12px; border: 1px dashed var(--gold-l); color: var(--cream); font-family: var(--font-head); font-style: italic; font-size: 20px; }
.lb__ph[hidden] { display: none; }
.lb__btn {
  position: absolute; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(214, 186, 128, .6);
  background: rgba(31, 22, 20, .5); color: var(--cream); font-size: 30px; line-height: 1; display: grid; place-items: center; padding: 0 0 4px;
  transition: background-color .3s var(--ease);
}
.lb__close { top: 12px; right: 12px; }
.lb__prev { left: 8px; top: 50%; margin-top: -24px; }
.lb__next { right: 8px; top: 50%; margin-top: -24px; }
.lb__count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: var(--gold-l); font-size: 14px; letter-spacing: .1em; }
@media (hover: hover) { .lb__btn:hover { background: rgba(179, 144, 88, .5); } }

/* ----- появление при скролле ----- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* ===== ≥ 768px ===== */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .sticky { display: none; }
  .topbar { padding: 0 32px; }
  .topbar__nav { display: flex; gap: 28px; font-size: 15px; }
  .topbar__nav a { text-decoration: none; color: var(--text); position: relative; padding: 6px 0; }
  .topbar__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .35s var(--ease); }
  .topbar__nav a:hover::after { transform: scaleX(1); }

  .section { padding: 104px 0; }
  .hero { padding: 140px 0 96px; }
  .hero__grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px; }
  .hero__text { text-align: left; }
  .hero__sub { margin-inline: 0; font-size: 18px; }
  .hero__actions { flex-direction: row; max-width: none; margin-inline: 0; }
  .about__grid { grid-template-columns: .8fr 1.2fr; gap: 72px; }
  .about__text { text-align: left; }
  .stats { justify-content: flex-start; }

  .steps__list { grid-template-columns: repeat(4, 1fr); max-width: none; gap: 24px; }
  .steps__list li { flex-direction: column; text-align: center; gap: 20px; }

  .cards { grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
  .card { padding: 40px 36px 34px; }
  .collapsible.is-collapsed { max-height: none; }
  .collapsible.is-collapsed::after { display: none; }
  .more { display: none; }

  .gallery--works { grid-template-columns: repeat(2, 1fr); }
  .gallery--reviews { grid-template-columns: repeat(3, 1fr); }
  .acc__btn { font-size: 24px; }
  .lb__prev { left: 24px; } .lb__next { right: 24px; }
}

@media (min-width: 1100px) {
  .gallery--works { grid-template-columns: repeat(3, 1fr); }
  .hero__grid { gap: 96px; }
}
