/* =========================================================
   Elena – студио за красота
   Единна дизайн система за целия сайт.
   Източници: webdesign.psd (хедър, колаж) и двата
   инфографични листа „Процедури“ (карти, декорации).
   ========================================================= */

/* ---------- Дизайн токени ---------- */
:root {
  /* цветове */
  --bg:          #f9f6f3;   /* фон (слой "fon" от PSD) */
  --bg-alt:      #f3ece6;   /* редуващ се фон на секции */
  --surface:     #e8dcd2;   /* бежов фон на надписите в картите */
  --brand:       #684749;   /* заглавия, икони */
  --brand-dark:  #4f3436;
  --brand-soft:  #b98f86;   /* акценти, линии */
  --text:        #3d2f30;
  --muted:       #7a6667;
  --line:        rgba(104, 71, 73, .18);
  --shadow:      0 8px 24px rgba(104, 71, 73, .10);
  --shadow-lg:   0 16px 40px rgba(104, 71, 73, .18);

  /* типография */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Open Sans", "Segoe UI", Arial, sans-serif;

  /* размери */
  --container: 1200px;
  --radius: 18px;
  --header-h: 96px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Базови ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
strong { font-weight: 700; color: var(--brand); }

h1, h2, h3 { font-family: var(--serif); color: var(--brand); font-weight: 500; line-height: 1.1; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px;
  padding: 10px 16px; background: var(--brand); color: #fff; border-radius: 8px; z-index: 100;
}
.skip-link:focus { top: 16px; }

/* ---------- Бутони ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 28px;
  border-radius: 999px;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  border: 1.5px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--brand-dark); box-shadow: var(--shadow-lg); }
.btn--ghost { border-color: var(--brand); color: var(--brand); }
.btn--ghost:hover { background: var(--brand); color: #fff; }
.btn--insta img { width: 26px; height: 26px; border-radius: 7px; }

/* ---------- Появяване при скрол ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal--delay { transition-delay: .15s; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* =========================================================
   Хедър
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(249, 246, 243, .85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.is-scrolled {
  background: rgba(249, 246, 243, .95);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px rgba(104, 71, 73, .08);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h);
}
.brand img { height: 78px; width: auto; transition: height .3s var(--ease); }
.site-header.is-scrolled .brand img { height: 64px; }

.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav ul { display: flex; gap: 36px; }
.site-nav a {
  position: relative;
  font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); padding: 6px 0;
}
.site-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px; background: var(--brand-soft);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav ul a:hover::after, .site-nav ul a.is-active::after { transform: scaleX(1); }

.site-nav__insta { display: inline-flex; align-items: center; gap: 10px; }
.site-nav__insta img { width: 30px; height: 30px; border-radius: 8px; transition: transform .25s var(--ease); }
.site-nav__insta:hover img { transform: scale(1.1) rotate(-4deg); }
.site-nav__insta span { display: none; }

/* хамбургер */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 8px;
  background: transparent; border: 0; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--brand); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Хиро
   ========================================================= */
.hero { position: relative; overflow: hidden; padding: 48px 0 80px; }
.hero__leaf {
  position: absolute; top: -12px; left: 0; width: clamp(140px, 13vw, 260px);
  pointer-events: none; opacity: .95;
}
.hero__branch {
  position: absolute; top: 40px; right: 0; width: clamp(120px, 12vw, 230px);
  pointer-events: none; opacity: .8;
}
.hero__inner { position: relative; }

.hero__text { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.eyebrow {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase; color: var(--brand-soft);
}
.hero__title {
  font-size: clamp(64px, 9vw, 120px); font-weight: 500; letter-spacing: .04em;
  line-height: .95; margin-top: 10px;
}
.hero__tagline {
  font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.4vw, 32px);
  color: var(--brand-soft); margin-top: 6px;
}
.hero__lead { font-size: 17px; color: var(--muted); max-width: 560px; margin: 20px auto 0; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }

.hero__collage {
  max-width: 1152px; margin: 0 auto;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero__collage img { width: 100%; }

/* =========================================================
   Секции – общ шаблон
   ========================================================= */
.section { position: relative; padding: 96px 0; }
.section--alt, .about, .contacts { background: var(--bg-alt); }

.section-head { text-align: center; margin: 0 auto 52px; }
.section-head__title {
  font-size: clamp(42px, 5.2vw, 68px); letter-spacing: .04em; text-transform: uppercase;
}
.section-head__subtitle {
  font-family: var(--serif); font-size: clamp(24px, 3vw, 40px); letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand); margin-top: 6px; line-height: 1.1;
}
.section-head__divider { width: min(439px, 80%); margin: 14px auto 0; }

/* =========================================================
   За нас
   ========================================================= */
.about__grid {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center;
  max-width: 1036px; margin: 0 auto;
}
.about__text p { font-size: 17px; color: var(--text); }
.about__text p + p { margin-top: 16px; }

.about__values { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.about__values li {
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--brand); padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, .5);
}

.about__facts { display: grid; gap: 16px; }
.about__facts li {
  display: flex; align-items: center; gap: 20px;
  background: #fff; border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow);
}
.about__fact-num {
  font-family: var(--serif); font-size: 40px; font-weight: 600; color: var(--brand);
  min-width: 96px; line-height: 1;
}
.about__fact-label { font-size: 14px; color: var(--muted); letter-spacing: .02em; }

/* =========================================================
   Процедури – карти (нарязани от инфографиките)
   Оригинал: карта 332px, снимка ≈239px, надпис ≈104px, икона Ø62px.
   ========================================================= */
.procedures { overflow: hidden; }
.procedures--face { padding-top: 24px; }

.procedures__branch { position: absolute; top: 40px; width: 200px; pointer-events: none; opacity: .85; z-index: 0; }
.procedures__branch--left  { left: 0; }
.procedures__branch--right { right: 0; width: 210px; }

.cards {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 20px;
  max-width: 1036px; margin: 0 auto;
}
.card--wide   { grid-column: span 2; }
.card--center { grid-column: 2; }

.card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), opacity .7s var(--ease);
}
.card.is-visible:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.card__media { position: relative; aspect-ratio: 332 / 239; }
.card--wide .card__media { aspect-ratio: 685 / 237; }
.card__media > img:first-child {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.card:hover .card__media > img:first-child { transform: scale(1.04); }

.card__media .card__icon {
  position: absolute; left: 50%; bottom: 0;
  width: clamp(48px, 18.7%, 62px); height: auto;
  transform: translate(-50%, 50%);
  z-index: 2; filter: drop-shadow(0 4px 8px rgba(104, 71, 73, .25));
}
.card--wide .card__media .card__icon { width: 62px; }

.card__body {
  min-height: 104px; padding: 42px 16px 18px; text-align: center;
  text-transform: uppercase; color: var(--brand);
}
.card__body h3 { font-family: var(--sans); font-size: 17px; font-weight: 700; letter-spacing: .03em; line-height: 1.25; }
.card__body p { font-size: 13px; letter-spacing: .05em; color: var(--muted); margin-top: 4px; line-height: 1.4; }

.slogan {
  position: relative; z-index: 1; margin: 56px auto 0; text-align: center;
  font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.35; color: var(--muted);
}
.slogan img { display: block; margin: 12px auto 0; width: 22px; }

/* =========================================================
   Контакти
   ========================================================= */
.contacts { overflow: hidden; }
.contacts__leaf {
  position: absolute; right: -30px; bottom: -30px; width: clamp(140px, 14vw, 260px);
  transform: scaleX(-1) rotate(180deg); opacity: .5; pointer-events: none;
}
.contacts__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: 1036px; margin: 0 auto;
}
.contact {
  background: #fff; border-radius: var(--radius); padding: 34px 24px 30px; text-align: center;
  box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease), opacity .7s var(--ease);
}
.contact.is-visible:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.contact__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--brand); color: #fff; margin-bottom: 16px;
}
.contact__icon svg { width: 28px; height: 28px; }
.contact h3 { font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.contact p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.contact p a:hover { color: var(--brand); }

.contacts__cta { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 44px; }

/* =========================================================
   Футър
   ========================================================= */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 36px; }
.site-footer__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.site-footer__brand img { height: 90px; width: auto; }
.site-footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
.site-footer__nav a { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.site-footer__nav a:hover { color: var(--brand-soft); }
.site-footer__copy { font-size: 13px; color: var(--muted); }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; font-size: 20px; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease), background .3s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--brand-dark); }

/* =========================================================
   Адаптивност
   ========================================================= */
@media (max-width: 1000px) {
  .about__grid { grid-template-columns: 1fr; gap: 36px; }
  .about__facts { grid-template-columns: repeat(3, 1fr); }
  .about__facts li { flex-direction: column; text-align: center; gap: 8px; }
  .about__fact-num { min-width: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card--center { grid-column: auto; }
  .procedures__branch { width: 120px; opacity: .6; }
  .procedures__branch--right { width: 126px; }
}

@media (max-width: 800px) {
  :root { --header-h: 76px; }
  .brand img, .site-header.is-scrolled .brand img { height: 58px; }
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(104, 71, 73, .12);
    padding: 8px 24px 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .3s var(--ease), opacity .3s, visibility .3s;
  }
  .nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
  .site-nav ul a::after { display: none; }
  .site-nav__insta { padding: 16px 0 0; }
  .site-nav__insta span { display: inline; font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

  .hero { padding: 32px 0 56px; }
  .hero__leaf { width: 120px; opacity: .7; }
  .hero__branch { display: none; }
  .hero__lead { font-size: 16px; }

  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .about__facts { grid-template-columns: 1fr; }
  .about__facts li { flex-direction: row; text-align: left; }
  .about__fact-num { min-width: 84px; font-size: 32px; }
  .contacts__grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .cards { grid-template-columns: 1fr; gap: 18px; }
  .card--wide { grid-column: auto; }
  .card--wide .card__media { aspect-ratio: 332 / 239; }
  .card--wide .card__media .card__icon { width: clamp(48px, 18.7%, 62px); }
  .procedures__branch { display: none; }
  .btn { width: 100%; }
  .hero__actions, .contacts__cta { flex-direction: column; align-items: stretch; }
}
