/* ============================================================
   Надія Жарська — Міністерство Романтичних Справ
   Палітра: папір / чорнило / сургучева печатка / золото
   ============================================================ */
:root{
  --paper:      #F7F1E5;   /* старий бланк */
  --paper-deep: #EFE6D3;
  --ink:        #2B2126;   /* чорнило */
  --wine:       #6E1F31;   /* бордо, офіційна стрічка */
  --seal:       #C22B45;   /* сургуч / печатка */
  --gold:       #B8893B;   /* гербове золото */
  --gold-lt:    #E4C98F;

  --f-display: "Oranienbaum", serif;
  --f-body:    "Manrope", system-ui, sans-serif;
  --f-mono:    "PT Mono", monospace;
  --f-script:  "Marck Script", cursive;
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
}
body{
  font-family:var(--f-body);
  color:var(--ink);
  background:var(--paper);
  background-image:
    radial-gradient(circle at 15% 10%, rgba(194,43,69,.06), transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(184,137,59,.08), transparent 45%);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
a{color:inherit}
.wrap{max-width:1120px;margin:0 auto;padding:0 24px}

:focus-visible{outline:3px solid var(--seal);outline-offset:3px;border-radius:4px}

/* ---------- Кнопки ---------- */
.btn{
  display:inline-flex;align-items:center;gap:.5em;
  font-family:var(--f-body);font-weight:700;text-decoration:none;
  border:2px solid transparent;border-radius:999px;cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space:nowrap;
}
.btn:hover{transform:translateY(-2px)}
.btn-sm{padding:.55em 1.2em;font-size:.9rem}
.btn-lg{padding:.9em 1.7em;font-size:1.05rem}
.btn-red{background:var(--seal);color:#fff;box-shadow:0 6px 18px rgba(194,43,69,.35)}
.btn-red:hover{background:#a92038;box-shadow:0 10px 24px rgba(194,43,69,.45)}
.btn-gold{background:var(--gold);color:#fff;box-shadow:0 6px 18px rgba(184,137,59,.4)}
.btn-gold:hover{background:#9e7430}
.btn-white{background:#fff;color:var(--seal);box-shadow:0 6px 18px rgba(0,0,0,.2)}
.btn-white:hover{background:var(--paper)}
.btn-ghost{border-color:var(--ink);color:var(--ink);background:transparent}
.btn-ghost:hover{background:var(--ink);color:var(--paper)}
.btn-ghost-light{border-color:rgba(255,255,255,.75);color:#fff;background:transparent}
.btn-ghost-light:hover{background:rgba(255,255,255,.14)}

/* ---------- Шапка ---------- */
.topbar{
  position:fixed;top:0;left:0;right:0;z-index:60;
  background:rgba(247,241,229,.9);backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(43,33,38,.12);
  transition:box-shadow .25s ease;
}
.topbar.scrolled{box-shadow:0 4px 20px rgba(43,33,38,.12)}
.topbar-in{display:flex;align-items:center;gap:24px;height:72px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;margin-right:auto}
.brand-seal{font-size:1.6rem}
.brand-name{display:block;font-family:var(--f-display);font-size:1.25rem;line-height:1.1}
.brand-sub{display:block;font-family:var(--f-mono);font-size:.6rem;letter-spacing:.14em;text-transform:uppercase;color:var(--wine)}
.nav{display:flex;gap:26px}
.nav a{text-decoration:none;font-weight:600;font-size:.95rem;position:relative;padding:4px 0}
.nav a::after{content:"";position:absolute;left:0;bottom:0;height:2px;width:0;background:var(--seal);transition:width .2s ease}
.nav a:hover::after{width:100%}
.burger{display:none;background:none;border:none;width:40px;height:40px;cursor:pointer;flex-direction:column;justify-content:center;gap:6px;align-items:center}
.burger span{display:block;width:24px;height:2.5px;background:var(--ink);border-radius:2px;transition:transform .25s ease,opacity .25s ease}
.burger.open span:nth-child(1){transform:translateY(8.5px) rotate(45deg)}
.burger.open span:nth-child(2){opacity:0}
.burger.open span:nth-child(3){transform:translateY(-8.5px) rotate(-45deg)}

.mobile-menu{
  position:fixed;inset:72px 0 0 0;z-index:55;background:var(--paper);
  display:flex;flex-direction:column;align-items:center;gap:26px;padding-top:48px;
  transform:translateX(105%);transition:transform .3s ease;
}
.mobile-menu.open{transform:translateX(0)}
.mobile-menu a{font-family:var(--f-display);font-size:1.6rem;text-decoration:none}
.mobile-menu .btn{font-family:var(--f-body);font-size:1rem}

/* ---------- Герой ---------- */
.hero{padding:150px 0 90px;position:relative;overflow:hidden}
.hero-in{position:relative}
.hero-doc{
  background:#FCF8EF;
  border:1px solid rgba(43,33,38,.18);
  box-shadow:0 24px 60px rgba(43,33,38,.14);
  border-radius:6px;
  padding:56px 48px 52px;
  max-width:780px;margin:0 auto;text-align:center;position:relative;
}
.hero-doc::before,.hero-doc::after{
  content:"";position:absolute;left:14px;right:14px;height:1px;background:repeating-linear-gradient(90deg,var(--gold) 0 8px,transparent 8px 14px);
}
.hero-doc::before{top:10px}
.hero-doc::after{bottom:10px}
.doc-head{display:flex;align-items:center;gap:14px;justify-content:center;margin-bottom:10px}
.doc-line{flex:1;max-width:110px;height:1px;background:var(--wine);opacity:.5}
.doc-org{font-family:var(--f-mono);font-size:.68rem;letter-spacing:.22em;text-transform:uppercase;color:var(--wine)}
.doc-no{font-family:var(--f-mono);font-size:.72rem;letter-spacing:.12em;color:rgba(43,33,38,.55);margin-bottom:24px}
.hero-name{
  font-family:var(--f-display);font-weight:400;
  font-size:clamp(2.8rem,7vw,4.6rem);line-height:1.02;letter-spacing:.01em;
}
.hero-role{
  font-family:var(--f-display);font-size:clamp(1.3rem,3vw,1.8rem);
  color:var(--wine);margin-top:8px;
}
.hero-script{font-family:var(--f-script);font-size:1.5rem;color:var(--gold);margin-top:2px}
.hero-motto{font-size:clamp(1.05rem,2vw,1.25rem);margin:26px auto 0;max-width:560px;color:rgba(43,33,38,.85)}
.hero-motto b{color:var(--ink)}
.heart{color:var(--seal)}
.hero-cta{display:flex;flex-wrap:wrap;gap:14px;justify-content:center;margin-top:32px}
.hero-socials{margin-top:26px;font-family:var(--f-mono);font-size:.8rem;letter-spacing:.08em;display:flex;gap:12px;justify-content:center;color:rgba(43,33,38,.5)}
.hero-socials a{color:var(--wine);text-decoration:none;border-bottom:1px dotted var(--wine)}
.hero-socials a:hover{color:var(--seal);border-color:var(--seal)}

/* Печатка */
.hero-stamp{
  position:absolute;right:2%;top:-30px;width:170px;height:170px;
  color:var(--seal);opacity:.85;transform:rotate(12deg);
  filter:drop-shadow(0 4px 10px rgba(194,43,69,.25));
  pointer-events:none;
}
.stamp-svg{width:100%;height:100%;animation:spin 40s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.stamp-text{font-family:var(--f-mono);font-size:12.5px;letter-spacing:2px;fill:currentColor}
.stamp-heart{font-size:34px}

/* ---------- Секції ---------- */
.section{padding:96px 0}
.section-alt{background:var(--paper-deep)}
.eyebrow{
  font-family:var(--f-mono);font-size:.72rem;letter-spacing:.24em;text-transform:uppercase;
  color:var(--seal);margin-bottom:14px;
}
.eyebrow-light{color:var(--gold-lt)}
.h2{
  font-family:var(--f-display);font-weight:400;
  font-size:clamp(1.9rem,4.5vw,2.9rem);line-height:1.15;margin-bottom:34px;max-width:760px;
}

/* Про мене */
.about-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:56px;align-items:start}
.about-txt p{margin-bottom:18px;font-size:1.06rem;color:rgba(43,33,38,.88)}
.about-vows{
  list-style:none;background:#FCF8EF;border:1px solid rgba(43,33,38,.15);
  border-left:5px solid var(--seal);border-radius:6px;padding:28px 26px;
  box-shadow:0 12px 34px rgba(43,33,38,.1);
}
.about-vows li{padding:11px 0;border-bottom:1px dashed rgba(43,33,38,.18);font-size:.98rem}
.about-vows li:last-child{border-bottom:none}
.about-vows b{color:var(--wine)}

/* Послуги */
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
.card{
  background:#FCF8EF;border:1px solid rgba(43,33,38,.15);border-radius:8px;
  padding:36px 30px;position:relative;overflow:hidden;
  transition:transform .2s ease, box-shadow .2s ease;
}
.card:hover{transform:translateY(-6px);box-shadow:0 18px 44px rgba(43,33,38,.16)}
.card-stamp{
  position:absolute;top:18px;right:-34px;transform:rotate(35deg);
  background:var(--seal);color:#fff;font-family:var(--f-mono);
  font-size:.62rem;letter-spacing:.2em;text-transform:uppercase;
  padding:4px 40px;opacity:.9;
}
.card-ico{font-size:2.2rem;margin-bottom:16px}
.card h3{font-family:var(--f-display);font-weight:400;font-size:1.5rem;margin-bottom:10px}
.card p{color:rgba(43,33,38,.8);font-size:.97rem}

/* Кроки */
.steps{list-style:none;max-width:820px;counter-reset:s}
.steps li{
  display:flex;gap:26px;padding:26px 0;border-bottom:1px solid rgba(43,33,38,.14);
  align-items:flex-start;
}
.steps li:last-child{border-bottom:none}
.step-no{
  font-family:var(--f-mono);font-size:1.4rem;color:var(--gold);
  border:1.5px solid var(--gold);border-radius:50%;
  min-width:58px;height:58px;display:flex;align-items:center;justify-content:center;
}
.steps h3{font-family:var(--f-display);font-weight:400;font-size:1.4rem;margin-bottom:4px}
.steps p{color:rgba(43,33,38,.82)}

/* Книга */
.section-dark{background:var(--wine);color:#F5EBDD}
.book-grid{display:grid;grid-template-columns:1fr 1.3fr;gap:64px;align-items:center}
.book-visual{display:flex;justify-content:center}
.book-cover{
  width:270px;height:380px;border-radius:4px 10px 10px 4px;
  background:linear-gradient(150deg,#8A2A3E, #5C1828);
  border:1px solid rgba(228,201,143,.5);
  box-shadow:14px 18px 40px rgba(0,0,0,.35), inset 6px 0 0 rgba(0,0,0,.25);
  display:flex;flex-direction:column;align-items:center;justify-content:space-between;
  padding:34px 24px;text-align:center;
  transform:rotate(-4deg);transition:transform .3s ease;
}
.book-cover:hover{transform:rotate(-1deg) scale(1.02)}
.book-cover-org{font-family:var(--f-mono);font-size:.6rem;letter-spacing:.2em;text-transform:uppercase;color:var(--gold-lt)}
.book-cover-title{font-family:var(--f-display);font-size:1.9rem;line-height:1.15;color:#FBF4E6}
.book-cover-heart{font-size:2.4rem}
.book-cover-author{font-family:var(--f-script);font-size:1.35rem;color:var(--gold-lt)}
.book-txt .h2{color:#FBF4E6}
.book-txt p{margin-bottom:16px;color:rgba(245,235,221,.88);font-size:1.05rem;max-width:520px}
.book-txt .hero-cta{justify-content:flex-start}
.book-free{font-family:var(--f-mono);font-size:.78rem;letter-spacing:.06em;color:var(--gold-lt);margin-top:18px}

/* Соцмережі */
.soc-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
.soc{
  text-decoration:none;background:#FCF8EF;border:1px solid rgba(43,33,38,.15);
  border-radius:8px;padding:30px 26px;display:flex;flex-direction:column;gap:4px;
  transition:transform .2s ease, box-shadow .2s ease;
}
.soc:hover{transform:translateY(-6px);box-shadow:0 18px 44px rgba(43,33,38,.16)}
.soc-ico{width:52px;height:52px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.5rem;color:#fff;margin-bottom:12px}
.soc-ig{background:linear-gradient(135deg,#7b2ff7,#f107a3,#fd8a3b)}
.soc-tt{background:#161616}
.soc-tg{background:#2AABEE}
.soc-name{font-family:var(--f-display);font-size:1.35rem}
.soc-handle{font-family:var(--f-mono);font-size:.8rem;color:var(--wine)}
.soc-note{font-size:.9rem;color:rgba(43,33,38,.65);margin-top:6px}

/* Контакти */
.section-red{background:linear-gradient(140deg,var(--seal),#8F1D33);color:#fff;text-align:center}
.contact-in .h2{color:#fff;margin-left:auto;margin-right:auto}
.contact-sub{font-size:1.15rem;max-width:560px;margin:0 auto 30px;color:rgba(255,255,255,.92)}
.contact-sub b{background:rgba(255,255,255,.18);padding:.1em .45em;border-radius:6px}
.contact-fine{margin-top:30px;font-family:var(--f-mono);font-size:.75rem;letter-spacing:.1em;color:rgba(255,255,255,.75)}
.section-red .hero-cta{justify-content:center}

/* Підвал */
.footer{background:var(--ink);color:rgba(247,241,229,.85);padding:48px 0 26px}
.footer-in{display:flex;flex-wrap:wrap;gap:28px;justify-content:space-between;align-items:center}
.footer-brand{font-family:var(--f-display);font-size:1.5rem;color:#F7F1E5}
.footer-sub{font-family:var(--f-mono);font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;color:rgba(247,241,229,.55);margin-top:4px}
.footer-links{display:flex;flex-wrap:wrap;gap:22px}
.footer-links a{text-decoration:none;font-weight:600;font-size:.92rem}
.footer-links a:hover{color:var(--gold-lt)}
.footer-copy{text-align:center;font-size:.8rem;color:rgba(247,241,229,.5);margin-top:36px;padding:0 24px}

/* ---------- Reveal-анімація ---------- */
.reveal{opacity:0;transform:translateY(22px);transition:opacity .6s ease, transform .6s ease}
.reveal.on{opacity:1;transform:none}
@media (prefers-reduced-motion: reduce){.reveal{opacity:1;transform:none}}

/* ---------- Адаптив ---------- */
@media (max-width: 960px){
  .about-grid,.book-grid{grid-template-columns:1fr;gap:40px}
  .cards,.soc-cards{grid-template-columns:1fr 1fr}
  .hero-stamp{width:120px;height:120px;right:0;top:-20px}
}
@media (max-width: 680px){
  .nav,.nav-cta{display:none}
  .burger{display:flex}
  .cards,.soc-cards{grid-template-columns:1fr}
  .hero{padding-top:120px}
  .hero-doc{padding:44px 22px 40px}
  .hero-stamp{width:96px;height:96px;top:-28px;right:-6px}
  .section{padding:68px 0}
  .steps li{gap:16px}
  .step-no{min-width:46px;height:46px;font-size:1.1rem}
  .book-cover{width:225px;height:320px}
}

/* ============================================================
   ОНОВЛЕННЯ v2: двомовність, анімації, соцмережі, фото
   ============================================================ */

/* Прогрес скролу */
.scroll-progress{
  position:fixed;top:0;left:0;height:3px;width:0;z-index:70;
  background:linear-gradient(90deg,var(--seal),var(--gold));
  transition:width .1s linear;
}

/* Перемикач мов */
.lang-toggle{
  display:flex;align-items:center;gap:5px;
  font-family:var(--f-mono);font-size:.78rem;letter-spacing:.06em;
  background:transparent;border:1.5px solid rgba(43,33,38,.35);
  border-radius:999px;padding:.45em 1em;cursor:pointer;color:var(--ink);
  transition:border-color .2s ease, box-shadow .2s ease;
}
.lang-toggle:hover{border-color:var(--seal);box-shadow:0 3px 12px rgba(194,43,69,.18)}
.lang-toggle [data-lang]{opacity:.4;transition:opacity .2s ease, color .2s ease}
.lang-toggle [data-lang].active{opacity:1;color:var(--seal);font-weight:700}
.lang-sep{opacity:.3}

/* Летючі сердечка */
.hero{position:relative}
.hearts{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0}
.hero-in{position:relative;z-index:1}
.heart-float{
  position:absolute;bottom:-8%;opacity:0;
  animation-name:heartUp;animation-timing-function:linear;animation-iteration-count:infinite;
  filter:saturate(.85);
}
@keyframes heartUp{
  0%{transform:translateY(0) rotate(-8deg);opacity:0}
  8%{opacity:.5}
  60%{opacity:.35}
  100%{transform:translateY(-115vh) rotate(10deg);opacity:0}
}

/* Біжучий рядок */
.marquee{
  background:var(--ink);color:var(--gold-lt);overflow:hidden;
  padding:12px 0;border-top:1px solid rgba(228,201,143,.3);border-bottom:1px solid rgba(228,201,143,.3);
}
.marquee-track{
  display:flex;white-space:nowrap;width:max-content;
  font-family:var(--f-mono);font-size:.8rem;letter-spacing:.24em;
  animation:marquee 28s linear infinite;
}
@keyframes marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion: reduce){.marquee-track{animation:none}}

/* Фото у «Про мене» */
.about-grid{grid-template-columns:.85fr 1.4fr}
.about-photo{position:relative;margin:0}
.about-photo img{
  width:100%;border-radius:10px;aspect-ratio:4/5;object-fit:cover;
  border:1px solid rgba(43,33,38,.18);
  box-shadow:0 22px 50px rgba(43,33,38,.2);
  transform:rotate(-2deg);transition:transform .35s ease;
}
.about-photo:hover img{transform:rotate(0deg) scale(1.015)}
.photo-stamp{
  position:absolute;bottom:16px;right:-10px;transform:rotate(-6deg);
  background:var(--seal);color:#fff;font-family:var(--f-mono);
  font-size:.62rem;letter-spacing:.16em;text-transform:uppercase;
  padding:6px 14px;border-radius:3px;box-shadow:0 6px 16px rgba(194,43,69,.4);
}
.about-vows{margin-top:26px}

/* Соцкартки: іконки-SVG, сітка на 6 */
.soc-cards{grid-template-columns:repeat(3,1fr)}
.soc-ico svg{width:26px;height:26px}
.soc-th{background:#1a1a1a}
.soc-mail{background:var(--gold)}
.soc-heart{background:var(--seal);font-size:1.4rem}
.soc-cta{border:2px dashed var(--seal);background:rgba(194,43,69,.05)}
.soc-cta .soc-name{color:var(--seal)}
.soc-cta:hover{background:rgba(194,43,69,.1)}

/* Печатка-водяний знак у контактах */
.section-red{position:relative;overflow:hidden}
.contact-seal{
  position:absolute;right:-70px;bottom:-70px;width:320px;opacity:.14;
  filter:brightness(0) invert(1);
  animation:spin 60s linear infinite;pointer-events:none;
}
.contact-in{position:relative;z-index:1}

/* Натискання кнопок */
.btn.pressed{transform:translateY(1px) scale(.97)}
.btn{-webkit-tap-highlight-color:transparent}

/* Пульс головної CTA */
@keyframes pulse{
  0%,100%{box-shadow:0 6px 18px rgba(194,43,69,.35)}
  50%{box-shadow:0 6px 18px rgba(194,43,69,.35), 0 0 0 10px rgba(194,43,69,.08)}
}
.hero .btn-red{animation:pulse 2.6s ease-in-out infinite}
@media (prefers-reduced-motion: reduce){.hero .btn-red{animation:none}}

/* ---------- Мобільна оптимізація v2 ---------- */
@media (max-width: 960px){
  .soc-cards{grid-template-columns:1fr 1fr}
  .about-grid{grid-template-columns:1fr}
  .about-photo{max-width:340px;margin:0 auto}
}
@media (max-width: 680px){
  .topbar-in{gap:12px}
  .lang-toggle{padding:.35em .75em;font-size:.72rem}
  .soc-cards{grid-template-columns:1fr}
  .btn-lg{width:100%;justify-content:center}
  .hero-cta{width:100%}
  .contact-seal{width:200px;right:-50px;bottom:-50px}
  .marquee-track{font-size:.7rem}
  .hero-motto{font-size:1.02rem}
  .footer-in{flex-direction:column;text-align:center}
  .footer-links{justify-content:center}
}
@media (max-width: 380px){
  .brand-name{font-size:1.05rem}
  .brand-sub{font-size:.5rem}
}

/* ============================================================
   ОНОВЛЕННЯ v3: посвідчення замість фото-заглушки, джерело книги
   ============================================================ */
.id-card{
  background:linear-gradient(155deg,#FCF8EF, #F1E7D2);
  border:1.5px solid var(--gold);
  border-radius:12px;
  aspect-ratio:4/5;
  padding:26px 24px;
  display:flex;flex-direction:column;align-items:center;justify-content:space-between;
  text-align:center;
  box-shadow:0 22px 50px rgba(43,33,38,.2), inset 0 0 0 6px rgba(184,137,59,.12);
  transform:rotate(-2deg);transition:transform .35s ease;
  position:relative;overflow:hidden;
}
.about-photo:hover .id-card{transform:rotate(0deg) scale(1.015)}
.id-card::before{
  content:"МРС";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  font-family:var(--f-display);font-size:9rem;color:rgba(184,137,59,.07);pointer-events:none;
}
.id-head{display:flex;align-items:center;gap:12px}
.id-seal{width:52px;height:52px;animation:spin 45s linear infinite}
.id-org{font-family:var(--f-mono);font-size:.6rem;letter-spacing:.18em;text-transform:uppercase;color:var(--wine);text-align:left;line-height:1.5}
.id-mono{
  font-family:var(--f-display);font-size:4.6rem;line-height:1;color:var(--wine);
  border:2px solid var(--gold);border-radius:50%;
  width:130px;height:130px;display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.5);
}
.id-name{font-family:var(--f-display);font-size:1.7rem;margin-top:6px}
.id-role{font-family:var(--f-script);font-size:1.25rem;color:var(--seal)}
.id-meta{
  display:flex;gap:16px;flex-wrap:wrap;justify-content:center;
  font-family:var(--f-mono);font-size:.62rem;letter-spacing:.1em;color:rgba(43,33,38,.6);
}
.id-bar{
  width:70%;height:26px;
  background:repeating-linear-gradient(90deg,var(--ink) 0 2px,transparent 2px 5px,var(--ink) 5px 6px,transparent 6px 11px);
  opacity:.65;border-radius:2px;
}
.about-photo-img{
  width:100%;border-radius:10px;aspect-ratio:auto;object-fit:cover;
  border:1px solid rgba(43,33,38,.18);
  box-shadow:0 22px 50px rgba(43,33,38,.2);
  transform:rotate(-2deg);transition:transform .35s ease;
}
.about-photo:hover .about-photo-img{transform:rotate(0deg) scale(1.015)}

/* Джерело книги */
.book-src{font-size:.92rem;color:rgba(245,235,221,.8);margin-top:4px}
.book-src a{color:var(--gold-lt);font-weight:700;text-decoration:none;border-bottom:1px dotted var(--gold-lt)}
.book-src a:hover{color:#fff;border-color:#fff}

@media (max-width:680px){
  .id-mono{width:104px;height:104px;font-size:3.6rem}
  .id-card::before{font-size:6.5rem}
}
