/* AJ Beauty Studio · „Огледалната зала“
   Черно като визитката, пудра като стените на салона, сребро като рамките на огледалата. */

@font-face { font-family: "Oranienbaum"; src: url(fonts/oranienbaum-cyrillic-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oranienbaum"; src: url(fonts/oranienbaum-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; src: url(fonts/jost-cyrillic-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Jost"; src: url(fonts/jost-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; src: url(fonts/jost-cyrillic-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Jost"; src: url(fonts/jost-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; src: url(fonts/jost-cyrillic-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Jost"; src: url(fonts/jost-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --black: #000;          /* визитката и логото */
  --ink: #1c1718;         /* текст върху светло */
  --powder: #e8d6cf;      /* стените в салона */
  --powder-soft: #f3e9e5;
  --ivory: #fbf9f7;       /* белите бюра */
  --silver: #b8b4b1;      /* рамките на огледалата */
  --silver-dark: #6f6b68;
  --oxblood: #7a1626;     /* любимият лак */
  --metal: linear-gradient(135deg, #f8f7f5 0%, #a8a4a1 17%, #efedeb 33%, #8e8a87 51%, #f4f2f0 67%, #9d9996 84%, #e7e4e1 100%);

  --f-display: "Oranienbaum", "Didot", "Bodoni 72", Georgia, serif;
  --f-body: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;

  --gut: clamp(1.25rem, 5vw, 4rem);
  --max: 76rem;
}

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body { font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--black); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; margin: 0; line-height: 1.05; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
::selection { background: var(--powder); color: var(--black); }

.demo-bar { background: #2a2526; color: #e9e3e0; font-size: .8rem; }

/* ——— бутони ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .7rem 1.6rem; border: 0; border-radius: 2px;
  font: 500 .95rem/1.2 var(--f-body); letter-spacing: .06em; text-decoration: none; cursor: pointer;
  transition: background-position .6s ease, color .2s, border-color .2s;
}
.btn--silver { color: var(--black); background: var(--metal); background-size: 220% 100%; background-position: 0 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 0 0 1px var(--silver-dark); }
.btn--silver:hover { background-position: 100% 0; }
.btn--ghost { color: #fff; background: transparent; box-shadow: inset 0 0 0 1px var(--silver); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px #fff; }
.btn--dark { color: #fff; background: var(--black); }
.btn--dark:hover { background: #2b2526; }

/* ——— хедър ——— */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .6rem var(--gut); background: rgba(0,0,0,.92);
  border-bottom: 1px solid #2c2829; color: #fff;
}
.top__logo img { height: 2.1rem; width: auto; }
.top__nav { display: none; gap: 2rem; font-size: .95rem; }
.top__nav a { text-decoration: none; color: #d8d3d0; }
.top__nav a:hover { color: #fff; text-decoration: underline; }
.top__cta { min-height: 2.5rem; padding: .5rem 1.1rem; font-size: .85rem; }
@media (min-width: 52rem) { .top__nav { display: flex; } }

/* ——— огледалата (запомнящият се елемент) ——— */
.mirror {
  --fw: clamp(12px, 2.4vw, 20px);   /* дебелина на рамката */
  --r: 4px;
  position: relative; margin: 0; padding: var(--fw);
  background: var(--metal); border-radius: calc(var(--r) + var(--fw));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), inset 0 0 0 2px var(--silver-dark), 0 22px 40px -24px rgba(0,0,0,.55);
}
/* перлен кант по рамката */
.mirror::before {
  content: ""; position: absolute; inset: calc(var(--fw) * .32); border-radius: inherit;
  border: 2px dotted rgba(80,75,72,.55); pointer-events: none;
}
/* стъклото проблясва при посочване */
.mirror::after {
  content: ""; position: absolute; inset: var(--fw); border-radius: var(--r); pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.38) 47%, rgba(255,255,255,.08) 53%, transparent 62%) no-repeat;
  background-size: 260% 100%; background-position: 130% 0;
  transition: background-position 1.1s ease;
}
.mirror:hover::after { background-position: -40% 0; }
.mirror img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r);
  box-shadow: 0 0 0 2px var(--silver-dark), 0 0 0 3px rgba(255,255,255,.7);
}
.mirror--oval { --r: 50%; border-radius: 50%; }
.mirror--arch { --r: 999px 999px 4px 4px; border-radius: 999px 999px 8px 8px; }
.mirror--arch img { aspect-ratio: 3 / 4; }
.mirror--arch::after { border-radius: 999px 999px 4px 4px; }

.mirror__corner { position: absolute; width: clamp(34px, 6vw, 52px); height: clamp(34px, 6vw, 52px); z-index: 1; pointer-events: none; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.mirror__corner:nth-of-type(1) { top: -6px; left: -6px; }
.mirror__corner:nth-of-type(2) { top: -6px; right: -6px; transform: scaleX(-1); }
.mirror__corner:nth-of-type(3) { bottom: -6px; left: -6px; transform: scaleY(-1); }
.mirror__corner:nth-of-type(4) { bottom: -6px; right: -6px; transform: scale(-1, -1); }

.mirror__crest { position: absolute; z-index: 1; left: 50%; top: 0; width: clamp(110px, 22vw, 170px); aspect-ratio: 120 / 52; transform: translate(-50%, -62%); filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }

/* табелка под огледалото */
.mirror figcaption {
  position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%); z-index: 2;
  padding: .2rem .9rem; white-space: nowrap;
  font: 400 1rem/1.3 var(--f-display); color: var(--black);
  background: var(--metal); border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 0 0 0 1px var(--silver-dark), 0 6px 12px -8px rgba(0,0,0,.5);
}

/* ——— първи екран ——— */
.hero {
  display: grid; gap: 4.5rem; align-items: center;
  padding: clamp(3rem, 8vw, 6rem) var(--gut) clamp(4rem, 9vw, 7rem);
  max-width: var(--max); margin: 0 auto; color: #fff;
}
.hero__title { margin: 0; }
.hero__logo { width: min(100%, 34rem); height: auto; margin-inline: -2%; }
.hero__lead { max-width: 30rem; margin: 2rem 0 0; font-size: 1.15rem; color: #d9d4d1; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.mirror--hero { width: min(100%, 30rem); justify-self: center; }
.mirror--hero img { aspect-ratio: 4 / 5; object-position: 42% 50%; }
@media (min-width: 60rem) {
  .hero { grid-template-columns: 1.1fr 1fr; gap: 4rem; min-height: min(calc(100svh - 7rem), 52rem); }
  .mirror--hero { justify-self: end; }
}

/* еднократен момент при зареждане: логото изплува, огледалото проблясва */
@media (prefers-reduced-motion: no-preference) {
  .hero__logo { animation: appear 1.4s ease-out both; }
  .hero__lead, .hero .hero__actions { animation: appear 1.2s .5s ease-out both; }
  .mirror--hero::after { animation: glint 1.6s 1s ease-in-out both; }
}
@keyframes appear { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: none; } }
@keyframes glint { from { background-position: 130% 0; } to { background-position: -40% 0; } }

/* ——— общи заглавия на секции ——— */
.section-head { max-width: 40rem; margin: 0 auto clamp(3rem, 6vw, 4.5rem); text-align: center; }
.section-head h2 { font-size: clamp(2.8rem, 8vw, 5rem); }
.section-head p { margin: 1rem auto 0; max-width: 32rem; }

/* ——— стената с огледала ——— */
.works { background: var(--powder); padding: clamp(4rem, 9vw, 7rem) var(--gut); }
.wall-title {
  display: flex; align-items: center; gap: 1.2rem; max-width: var(--max); margin: 0 auto 3rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}
.wall-title::before, .wall-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--silver-dark)); }
.wall-title::after { background: linear-gradient(90deg, var(--silver-dark), transparent); }
.wall {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 3.2rem clamp(1rem, 3vw, 2.5rem);
  max-width: 64rem; margin: 0 auto 5rem; align-items: start;
}
.wall:last-child { margin-bottom: 1rem; }
.wall .mirror:nth-child(even) { margin-top: 2.5rem; }
@media (min-width: 48rem) {
  .wall { grid-template-columns: repeat(3, 1fr); gap: 4rem 3rem; }
  .wall .mirror:nth-child(even) { margin-top: 0; }
  .wall .mirror:nth-child(3n+2) { margin-top: 3.5rem; }
}

/* ——— услуги ——— */
.services { background: var(--ivory); padding: clamp(4rem, 9vw, 7rem) var(--gut); }
.services__grid { display: grid; gap: 3rem; max-width: var(--max); margin: 0 auto; }
.service h3 { font-size: 2.2rem; padding-bottom: .8rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--silver); }
.service ul { list-style: none; margin: 0; padding: 0; }
.service li { position: relative; padding: .45rem 0 .45rem 1.4rem; }
.service li::before { content: ""; position: absolute; left: .1rem; top: 1.02rem; width: .45rem; height: .45rem; transform: rotate(45deg); background: var(--metal); box-shadow: 0 0 0 1px var(--silver-dark); }
.services__cta { text-align: center; margin: 3.5rem 0 0; }
@media (min-width: 56rem) {
  .services__grid { grid-template-columns: 1.35fr 1fr 1fr; gap: 4rem; }
}

/* ——— салонът ——— */
.salon {
  display: grid; gap: 4rem; align-items: center; color: #e9e4e1;
  max-width: var(--max); margin: 0 auto; padding: clamp(4.5rem, 10vw, 8rem) var(--gut);
}
.salon h2 { font-size: clamp(2.6rem, 7vw, 4.4rem); color: #fff; margin-bottom: 1.6rem; }
.salon__text p { max-width: 34rem; }
.salon__score { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid #3a3536; color: #cfc9c6; }
.salon__num { font-family: var(--f-display); font-size: 2.4rem; color: #fff; margin-right: .4rem; vertical-align: -.15em; }
.salon__pics { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.5rem; align-items: end; }
.salon__pics .mirror--oval { margin-bottom: 3rem; }
.salon__pics .mirror--oval img { aspect-ratio: 4 / 5; }
@media (min-width: 60rem) { .salon { grid-template-columns: 1fr 1.1fr; gap: 5rem; } }

/* ——— контакти ——— */
.contacts { background: var(--powder-soft); }
.contacts {
  display: grid; gap: 3rem; padding: clamp(4rem, 9vw, 7rem) max(var(--gut), calc((100% - var(--max)) / 2));
}
.contacts h2 { font-size: clamp(2.4rem, 6vw, 3.8rem); margin-bottom: 1.6rem; }
.contacts address { font-style: normal; font-size: 1.15rem; }
.hours { margin: 1.8rem 0; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; max-width: 22rem; padding: .5rem 0; border-bottom: 1px solid var(--silver); }
.hours dt, .hours dd { margin: 0; }
.contacts__links { font-size: 1.15rem; }
.map-box { background: var(--ivory); border: 1px solid var(--silver); min-height: 22rem; font-size: .95rem; }
.map-box p { max-width: 26rem; margin: 0 auto; }
@media (min-width: 56rem) { .contacts { grid-template-columns: 1fr 1.3fr; align-items: center; } }

/* ——— финал ——— */
.finale { padding: clamp(5rem, 11vw, 8rem) var(--gut); text-align: center; color: #fff; }
.finale h2 { font-size: clamp(2.5rem, 7vw, 4.6rem); max-width: 16ch; margin: 0 auto; }
.finale p { color: #cfc9c6; margin: 1.2rem auto 0; }
.finale .hero__actions { justify-content: center; }

/* ——— футър ——— */
.foot { border-top: 1px solid #2c2829; padding: 3.5rem var(--gut) 3rem; text-align: center; color: #bdb6b3; font-size: .92rem; }
.foot__logo { width: 11rem; height: auto; margin: 0 auto 1.5rem; opacity: .9; }
.foot a { color: #e9e4e1; }
.foot__links { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem 1.6rem; }

:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 3px; }
.top :focus-visible, .hero :focus-visible, .salon :focus-visible, .finale :focus-visible, .foot :focus-visible { outline-color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mirror::after, .btn { transition: none; }
}

/* ——— поверителност ——— */
.page-legal { background: var(--ivory); }
.page-legal .legal h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); margin: 1rem 0; }
.page-legal .legal h2 { font-family: var(--f-display); font-size: 1.5rem; }
.map-box .btn { justify-self: center; }
