@font-face { font-family: "Yeseva One"; src: url(fonts/yeseva-one-cyrillic-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Yeseva One"; src: url(fonts/yeseva-one-latin-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Sofia Sans"; src: url(fonts/sofia-sans-cyrillic-wght-normal.woff2) format("woff2"); font-weight: 1 1000; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Sofia Sans"; src: url(fonts/sofia-sans-latin-wght-normal.woff2) format("woff2"); font-weight: 1 1000; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }

:root {
  --vizon: #c6b0a6;     /* стените */
  --vizon-lt: #e6dad4;
  --white: #fff;        /* нишите и плочките */
  --kamak: #4a382e;     /* каменната стена */
  --ink: #241915;
  --led: #3a2bc4;       /* светлината под огледалата */
  --lampa: #ffe3a6;
  --pad: clamp(1.1rem, 4vw, 4rem);
}
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { font-family: "Sofia Sans", "Segoe UI", sans-serif; font-size: 1.12rem; line-height: 1.5; color: var(--ink); background: var(--vizon); }
h1, h2 { font-family: "Yeseva One", Georgia, serif; font-weight: 400; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 5.2vw, 5rem); }
h2 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); }
p { margin: 0 0 1em; }
a { color: inherit; text-underline-offset: .18em; }
figure { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--led); outline-offset: 3px; }
.demo-bar { background: var(--kamak); }
.btn { display: inline-block; padding: .7em 1.3em; border: 0; border-radius: 1.5em .3em .3em .3em; background: var(--led); color: #fff; font-weight: 650; text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn:hover { background: #281c96; }
.tel { font-weight: 700; font-size: 1.2em; text-decoration: none; white-space: nowrap; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.5rem; margin: 1.5rem 0; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 1.8rem; padding: .7rem var(--pad); background: var(--vizon); }
.brand { margin-right: auto; font-family: "Yeseva One", Georgia, serif; font-size: 1.3rem; text-decoration: none; white-space: nowrap; }
.nav { display: flex; gap: 1.5rem; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; }

/* ---- къщата ---- */
.hero { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding: 1.2rem var(--pad) 0; overflow: hidden; border-bottom: 10px solid #fff; }
.hero-text { padding-bottom: 3rem; }
.lead { font-size: 1.35rem; line-height: 1.35; margin: 1.3rem 0 0; min-height: 4.1em; max-width: 24rem; }
.lead a { white-space: nowrap; }
.small { max-width: 22rem; margin: 0; }
.house { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: clamp(6.5rem, 15vw, 12.5rem) clamp(6rem, 10.5vw, 9.4rem) clamp(7.5rem, 14.5vw, 13rem) clamp(6rem, 10.5vw, 9.4rem); gap: 10px; padding: 0 10px; max-width: 46rem; width: 100%; justify-self: end; }
.house::before { content: ""; grid-area: 2 / 1 / 5 / -1; margin: 0 -10px; background: #fff; }
.roof { grid-row: 1; box-shadow: 0 0 0 10px #fff; }
/* таванът е извит само от едната страна, като нишите в салона */
.roof { grid-column: 1 / -1; background: #000; margin: 10px 0 0; border-radius: 46% 46% 0 0 / 100% 100% 0 0; overflow: hidden; display: grid; place-items: center; }
.roof img { height: 100%; min-height: 0; width: auto; object-fit: contain; padding: 3.5% 0 2.5%; -webkit-mask: linear-gradient(to right, transparent, #000 14%); mask: linear-gradient(to right, transparent, #000 14%); }
.room { position: relative; overflow: hidden; border: 0; padding: 0; background: #17120f; cursor: pointer; text-align: left; }
.room img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.42) saturate(.4) sepia(.35) hue-rotate(195deg); transition: filter .35s; }
.room[aria-pressed=true] img { filter: none; animation: flick .5s; }
@keyframes flick { 0% { filter: brightness(.3); } 18% { filter: brightness(1.25); } 30% { filter: brightness(.45); } 55% { filter: brightness(1.15); } }
.room::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(20,12,8,.72), transparent 48%); }
.rn { position: absolute; left: .8rem; bottom: .45rem; z-index: 1; color: #fff; font-family: "Yeseva One", Georgia, serif; font-size: clamp(1.1rem, 2vw, 1.6rem); }
.room:focus-visible { outline-color: #fff; outline-offset: -6px; }
.r-lice { grid-area: 2 / 1 / 3 / 7; border-top-left-radius: 2.8rem; }
.r-tyalo { grid-area: 2 / 7 / 3 / 13; border-top-right-radius: 2.8rem; }
.r-kosa { grid-area: 3 / 1 / 4 / 13; border-top-left-radius: 4.5rem; }
.r-nokti { grid-area: 4 / 1 / 5 / 8; border-top-left-radius: 2.8rem; }
.r-epil { grid-area: 4 / 8 / 5 / 13; border-top-right-radius: 2.8rem; }
/* ключ за лампа */
.sw { position: absolute; right: .7rem; bottom: .7rem; z-index: 1; width: 1.5rem; height: 2.3rem; border-radius: .3rem; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.sw::before { content: ""; position: absolute; left: .32rem; right: .32rem; top: .3rem; height: .85rem; border-radius: .16rem; background: #8d7c73; transform: translateY(.82rem); transition: transform .15s; }
[aria-pressed=true] > .sw::before { transform: none; background: var(--led); }
.no-js .sw { display: none; }
.no-js .room img { filter: none; }

/* ---- коса ---- */
.head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem 2.5rem; margin-bottom: 2rem; }
.head p { margin: 0; max-width: 34rem; }
.kosa { background: #fff; padding: clamp(3rem, 7vw, 6rem) var(--pad); }
.pairs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 2vw, 2rem); }
.pair button { position: relative; display: block; width: 100%; padding: 0; border: 0; overflow: hidden; background: var(--kamak); border-radius: 6rem 0 0 0; aspect-ratio: .72; cursor: pointer; }
.pair img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pair .sled { opacity: 0; transition: opacity .25s; }
.pair [aria-pressed=true] .sled { opacity: 1; }
.pair img:first-child { filter: brightness(.82) saturate(.85); }
.pair .sw { width: 2.4rem; height: 3.6rem; right: 1rem; bottom: 1rem; border-radius: .4rem; }
.pair .sw::before { left: .5rem; right: .5rem; top: .45rem; height: 1.35rem; transform: translateY(1.32rem); }
.pair .sw::after { content: "преди"; position: absolute; right: calc(100% + .6rem); top: 50%; transform: translateY(-50%); padding: .2em .7em; border-radius: .3rem; background: #fff; font-style: normal; font-weight: 650; line-height: 1.4; }
.pair [aria-pressed=true] .sw::after { content: "след"; background: var(--led); color: #fff; }
.pair [aria-pressed=true] .sw::before { transform: none; }
.pair figcaption { padding-top: .6rem; font-weight: 650; }
.looks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: clamp(2rem, 5vw, 4rem); }
.looks img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.looks img:first-child { border-top-left-radius: 4rem; }
.looks img:last-child { border-top-right-radius: 4rem; }

/* ---- нокти ---- */
.nokti { background: var(--vizon-lt); padding: clamp(3rem, 7vw, 6rem) var(--pad); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.nokti img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.nokti .wide { grid-column: span 2; aspect-ratio: 2.02; border-top-right-radius: 5rem; object-position: 50% 35%; }
.nokti-text { grid-column: span 2; padding-right: 2rem; align-self: end; }
.nokti-text h2 { margin-bottom: .35em; }
.nokti-text p { max-width: 26rem; }

/* ---- лице, тяло, епилация ---- */
.spa { padding: clamp(3rem, 7vw, 6rem) var(--pad); }
.niches { display: grid; grid-template-columns: 1.2fr 1.35fr 1fr; gap: clamp(.8rem, 2vw, 2rem); }
.niches img { width: 100%; height: clamp(13rem, 24vw, 21rem); object-fit: cover; border-top-left-radius: 6rem; border: 10px solid #fff; border-bottom-width: 10px; }
.niches figcaption { padding-top: .7rem; }
.niches b { display: block; font-size: 1.2em; }

/* ---- ваучер ---- */
.vaucher { background: var(--kamak); color: #fff; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; }
.vaucher img { width: 100%; height: 100%; max-height: 36rem; object-fit: cover; object-position: 40% 75%; }
.vaucher > div { padding: 3rem var(--pad); }
.vaucher h2 { margin-bottom: .4em; }
.vaucher p { max-width: 27rem; }
.vaucher .btn { background: #fff; color: var(--ink); }
.vaucher .btn:hover { background: var(--lampa); }
.vaucher :focus-visible { outline-color: #fff; }

/* ---- контакти ---- */
.contact { background: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); padding: clamp(3rem, 7vw, 6rem) var(--pad); align-items: center; }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.doors img { width: 100%; border-top-left-radius: 5rem; }
.doors img + img { border-radius: 0 5rem 0 0; }
address { font-style: normal; font-size: 1.15em; margin: 1.1rem 0; }
.hours { margin: 0; max-width: 24rem; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: .15rem 0; }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.map-box { background: var(--vizon-lt); min-height: 260px; justify-items: center; }
.map-box p { max-width: 26rem; }
.map-box iframe { height: 300px; }
.maps { margin: .7rem 0 0; }

.foot { background: #000; color: #fff; display: grid; grid-template-columns: 1fr auto auto; gap: 1.5rem 4rem; padding: 2.5rem var(--pad); align-items: center; }
.foot p { margin: 0; }
.foot-name { font-family: "Yeseva One", Georgia, serif; font-size: 1.7rem; color: #dcb45a; }
.foot :focus-visible { outline-color: #fff; }

body:has(.legal) { background: #fff; }
.legal { max-width: 44rem; }
.legal h1 { font-size: clamp(2rem, 6vw, 3rem); margin: .4em 0; }
.legal h2 { font-family: inherit; font-weight: 700; font-size: 1.25rem; margin: 2rem 0 .4rem; }

@media (max-width: 1000px) { .nav { display: none; } }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: .6rem; }
  .hero-text { padding-bottom: 0; display: contents; }
  .hero h1 { order: 1; }
  .house { order: 2; grid-template-rows: 27vw 27vw 36vw 27vw; justify-self: center; }
  .hero { padding-bottom: 1.6rem; }
  .hero .small { display: none; }
  .hero .cta { order: 4; margin: 0; }
  .house + * { margin: 0; }
  .room .sw { width: 1.1rem; height: 1.7rem; right: .5rem; bottom: .5rem; }
  .room .sw::before { left: .24rem; right: .24rem; top: .22rem; height: .62rem; transform: translateY(.62rem); }
  .room[aria-pressed=true] > .sw::before { transform: none; }
  .rn { left: .6rem; font-size: 1.05rem; }
  .hero .lead { order: 3; margin: 0; min-height: 4.1em; }
  .house { margin-bottom: 0; }
  .nokti { grid-template-columns: 1fr 1fr; }
  .nokti-text, .nokti .wide { grid-column: 1 / -1; }
  .nokti-text { padding: 0 0 1rem; }
  .pairs { grid-template-columns: repeat(3, 72%); overflow-x: auto; margin-right: calc(-1 * var(--pad)); padding: 0 var(--pad) .6rem 0; scroll-snap-type: x proximity; }
  .pair { scroll-snap-align: start; }
  .looks { grid-template-columns: 1fr 1fr; }
  .looks img:nth-child(2) { border-top-right-radius: 4rem; }
  .looks img:last-child { border-radius: 0; }
  .niches { grid-template-columns: 1fr; }
  .niches img { height: 60vw; }
  .vaucher, .contact, .foot { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .room img, .pair .sled, .sw::before { transition: none; }
  .room[aria-pressed=true] img { animation: none; }
}
