/* Hair Shine: photographic salon layout, scoped to the home page. */
body:has(.hero) {
  --wrap: 1280px;
  --pad: clamp(22px, 4vw, 64px);
  background: var(--cream);
}
body:has(.hero) .sec { padding-block: 88px; }
body:has(.hero) .h2 {
  font: 400 clamp(32px, 3.4vw, 49px)/1.12 var(--f-body);
  letter-spacing: -.035em;
  max-width: 850px;
}
body:has(.hero) .eyebrow { margin-bottom: 18px; font-size: 11px; letter-spacing: .1em; }
body:has(.hero) .sec__lead { font-size: 16px; line-height: 1.65; color: var(--ink-soft); max-width: 620px; }
body:has(.hero) .sec__head { margin-bottom: 38px; }
body:has(.hero) .btn { border-radius: 999px; min-height: 49px; box-shadow: none; font-size: 14px; letter-spacing: .01em; }
body:has(.hero) .btn--gold { background: var(--gold); color: var(--ink); }
body:has(.hero) .btn--gold:hover { background: var(--gold-deep); color: white; transform: translateY(-1px); }
body:has(.hero) .btn--gold::after { display: none; }
body:has(.hero) :is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 4px; }

/* Navigation and the permanent booking action. */
body:has(.hero) .marquee { height: 28px; background: var(--ink); color: var(--cream); }
body:has(.hero) .marquee__track { height: 28px; }
body:has(.hero) .marquee__item { height: 28px; }
body:has(.hero) .marquee::after { background: linear-gradient(90deg, transparent, var(--ink) 60%); }
body:has(.hero) .marquee__item { color: var(--cream); font-size: 10px; }
body:has(.hero) .marquee__item a { color: var(--cream); }
body:has(.hero) .hdr { top: 28px; padding-block: 15px; background: var(--cream); box-shadow: 0 1px 0 var(--line); }
body.mq-off:has(.hero) .hdr { top: 0; }
body:has(.hero) .logo__img { filter: none; }
body:has(.hero) .nav a { color: var(--ink); font-weight: 400; }
body:has(.hero) .hdr__ig { background: var(--gold); border: 0; color: var(--ink); padding-inline: 22px; }
body:has(.hero) .hdr__act { gap: 14px; }
body:has(.hero) .burger { border-color: var(--line); }
body:has(.hero) .burger span { background: var(--ink); }
body:has(.hero) .mcta { display: none; }

/* A single photographic opening, rather than stacked editorial cards. */
body:has(.hero) .hero { padding: 107px 0 0; min-height: 0; background: var(--cream); overflow: hidden; }
body.mq-off:has(.hero) .hero { padding-top: 79px; }
body:has(.hero) .hero__in { padding: 0; max-width: 1600px; display: grid; grid-template-columns: 43% 57%; gap: 0; align-items: stretch; }
body:has(.hero) .hero__txt { padding: clamp(40px, 5vw, 85px) clamp(28px, 4.5vw, 72px); background: var(--blush); display: flex; flex-direction: column; justify-content: center; }
body:has(.hero) .hero .eyebrow { color: var(--ink-soft); font-size: 11px; letter-spacing: .06em; }
.hero__headline { font: 500 clamp(43px, 4.3vw, 66px)/1.05 var(--f-body); letter-spacing: -.055em; margin: 0 0 26px; white-space: pre-line; }
.hero__promise { font-size: 17px; line-height: 1.5; color: var(--ink-2); margin-bottom: 16px; }
body:has(.hero) .hero__lead { font-size: 14px; line-height: 1.7; color: var(--ink-2); margin-bottom: 26px; max-width: 390px; }
body:has(.hero) .hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
body:has(.hero) .hero__cta .btn { padding-inline: 21px; }
body:has(.hero) .hero__cta .btn--line { border-color: #9b807b; background: transparent; }
.hero__portfolio { display: inline-flex; gap: 10px; align-items: center; color: var(--ink); font-size: 13px; text-underline-offset: 5px; }
.hero__portfolio:hover { text-decoration: underline; }
body:has(.hero) .hero__photograph { position: relative; margin: 0; padding: 0; width: 100%; min-height: 0; height: clamp(610px, 46vw, 720px); }
body:has(.hero) .hero__photograph .ph--hero { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
body:has(.hero) .hero__photograph img { object-fit: cover; object-position: center 55%; }
body:has(.hero) .hero__photograph figcaption { display: none; }
.hero__film { position: absolute; z-index: 4; top: 22px; right: 22px; display: flex; align-items: center; gap: 10px; padding: 11px 16px; border: 1px solid #fbf7f4bb; border-radius: 999px; background: #fbf7f4ed; color: var(--ink); font: 400 12px/1.4 var(--f-body); cursor: pointer; }
.hero__film > span[aria-hidden] { color: var(--gold-deep); font-size: 10px; }

/* Transformation photographs remain whole, with explicit gallery navigation. */
.realizations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px 22px; }
.realization { min-width: 0; }
.realization__open { display: block; padding: 0; border: 0; width: 100%; overflow: hidden; background: var(--blush-2); cursor: zoom-in; }
.realization__photo { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.realization__video { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--blush-2); }
.realization__video .gal__vid { width: 100%; height: 100%; object-fit: cover; }
.realization__video .gal__mute { opacity: 1; top: 14px; bottom: auto; }
.realization__video .gal__ov { pointer-events: none; bottom: 55px; }
.realization__copy { padding-top: 17px; }
.realization__copy h3 { font: 400 22px/1.25 var(--f-body); letter-spacing: -.025em; margin-bottom: 11px; }
.realization__details { display: flex; flex-wrap: wrap; gap: 7px 12px; list-style: none; padding: 0; margin: 0 0 12px; font-size: 12px; line-height: 1.5; color: #68564f; }
.realization__details li + li { padding-left: 12px; border-left: 1px solid var(--line); }
.realization .linkish { color: #735422; font-size: 12px; text-underline-offset: 4px; }
.gallery-controls { display: none; }
.comparison { margin: 0; }
.comparison__stage { position: relative; aspect-ratio: 3 / 4; isolation: isolate; overflow: hidden; background: var(--blush-2); }
.comparison--composite .comparison__stage { aspect-ratio: 1 / 2; }
.comparison__image { position: absolute; inset: 0; overflow: hidden; }
.comparison__image img { position: absolute; top: 0; height: 100%; max-width: none; object-fit: cover; object-position: center; }
.comparison__image--before img { left: 0; width: var(--before-width); }
.comparison__image--after img { right: 0; width: var(--after-width); }
.comparison__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--position)) 0 0); pointer-events: none; }
.comparison__label { position: absolute; top: 12px; padding: 6px 10px; color: white; background: #2b2220e6; border-radius: 999px; font-size: 11px; pointer-events: none; }
.comparison__label--before { left: 12px; }.comparison__label--after { right: 12px; }
.comparison__divider { position: absolute; top: 0; bottom: 0; left: var(--position); width: 2px; transform: translateX(-50%); background: var(--cream); pointer-events: none; }
.comparison__divider span { position: absolute; top: 52%; left: 50%; transform: translate(-50%,-50%); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--ink); font-size: 22px; box-shadow: 0 2px 10px #2b22202b; }
.comparison input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.comparison__stage:focus-within { outline: 3px solid var(--gold-deep); outline-offset: 4px; }
.comparison figcaption { font-size: 11px; color: #68564f; line-height: 1.5; padding-top: 10px; }

/* Services and prices are supporting information, not competing hero sections. */
body:has(.hero) #uslugi { background: var(--blush-2); }
body:has(.hero) .cards { gap: 16px; background: none; border: 0; }
body:has(.hero) .card { padding: 28px; min-height: 230px; border: 1px solid var(--line); border-radius: 16px; background: var(--cream); box-shadow: none; transform: none !important; }
body:has(.hero) .card::before,body:has(.hero) .card__num { display: none; }
body:has(.hero) .card__t { font: 400 25px/1.15 var(--f-body); letter-spacing: -.025em; }
body:has(.hero) .card__d { font-size: 14px; line-height: 1.65; color: #68564f; }
body:has(.hero) .card__price { background: none; border: 0; padding: 0; color: #735422; font-size: 13px; }
body:has(.hero) #cennik { background: var(--cream); }
body:has(.hero) .price-grid { gap: 22px; }
body:has(.hero) .price-col { border-radius: 16px; padding: 30px; border: 1px solid var(--line); background: white; box-shadow: none; }
body:has(.hero) .price-col:hover { transform: none; box-shadow: none; }
.price-col__head { list-style: none; }
.price-col__head::-webkit-details-marker,.service-row summary::-webkit-details-marker { display: none; }
body:has(.hero) .price-col__head h3 { font: 400 25px/1.2 var(--f-body); letter-spacing: -.025em; }
body:has(.hero) .packs { box-shadow: none; background: var(--blush-2); border: 0; border-radius: 16px; }
body:has(.hero) .calc { border-radius: 20px; background: white; }
body:has(.hero) .calc__res { box-shadow: none; border-radius: 16px; }
body:has(.hero) .plists__i { border-radius: 10px; box-shadow: none; }
.visit-process { padding-bottom: 80px; }
body:has(.hero) .visit-process .h2 { margin-bottom: 35px; }
.visit-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; border-top: 1px solid var(--line); }
.visit-steps li { padding-top: 24px; }
.visit-steps__number { color: var(--gold-deep); font-size: 12px; }
.visit-steps h3 { margin: 15px 0 10px; font: 400 22px/1.2 var(--f-body); }
.visit-steps p { font-size: 14px; line-height: 1.65; color: #68564f; }
body:has(.hero) .about__p { font-size: 16px; line-height: 1.7; }
body:has(.hero) .about__badge { display: none; }
body:has(.hero) .ph--about,body:has(.hero) .ph--szk { border-radius: 16px; box-shadow: none; }
body:has(.hero) #opinie { background: var(--blush-2); }
body:has(.hero) .rev { gap: 18px; }
body:has(.hero) .rev__i { border: 0; border-radius: 16px; background: var(--cream); padding: 30px; box-shadow: none; }
body:has(.hero) .rev__i blockquote { font-size: 23px; line-height: 1.4; }
.rev__mark { display: block; font: 64px/.8 var(--f-disp); color: var(--gold-deep); margin-bottom: 17px; }
body:has(.hero) .rev__i figcaption { display: flex; flex-direction: column; gap: 12px; }
.rev__i figcaption a { color: #735422; text-decoration: underline; text-underline-offset: 4px; }
body:has(.hero) .szk__note { border-radius: 12px; }
body:has(.hero) .book__form { border-radius: 20px; border: 1px solid var(--line); box-shadow: none; background: white; }
body:has(.hero) .bk__est { background: var(--blush-2); padding: 20px; border-radius: 12px; border: 0; margin: 0 0 26px; }
.bk__est b { display: block; font-size: 13px; margin-bottom: 10px; }
.bk__est p { font-size: 15px; line-height: 1.6; margin-bottom: 10px; }
.bk__est small { display: block; font-size: 12px; line-height: 1.5; color: #68564f; }
.bk__est .linkish { display: block; margin-top: 12px; color: #735422; }
.bk__request-note { font-size: 12px; color: #68564f; line-height: 1.6; margin-top: 15px; }
body:has(.hero) #kontakt { background: var(--blush-2); }
body:has(.hero) .cont__block { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; padding: 20px 0; }
body:has(.hero) .cont__v { font-size: 25px; }
body:has(.hero) .cont__map { border-radius: 16px; box-shadow: none; }

@media (max-width: 1080px) and (min-width: 761px) {
  body:has(.hero) .hero__in { grid-template-columns: 46% 54%; }
  body:has(.hero) .hero__txt { padding: 40px 28px; }
  .hero__headline { font-size: 44px; }
  body:has(.hero) .hero__photograph { min-height: 610px; }
  body:has(.hero) .hdr__ig { padding-inline: 16px; }
  .visit-steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  body:has(.hero) { --pad: 22px; padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  body:has(.hero) :is(.progress,.fab,.totop) { display: none; }
  body:has(.hero) .hdr { top: 28px; padding-block: 11px; }
  body.mq-off:has(.hero) .hdr { top: 0; }
  body:has(.hero) .hdr__in { min-height: 42px; }
  body:has(.hero) .logo__img { width: 84px; height: auto; }
  body:has(.hero) .hdr__ig { display: none; }
  body:has(.hero) .lang.is-in-head { position: relative; inset: auto; margin: 0; }
  body:has(.hero) .burger { width: 40px; height: 40px; }
  body:has(.hero) .nav .nav__book { margin-top: 12px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--gold-deep); }
  body:has(.hero) .hero { padding: 92px 0 0; }
  body.mq-off:has(.hero) .hero { padding-top: 64px; }
  body:has(.hero) .hero__in { position: relative; display: block; padding: 0; }
  body:has(.hero) .hero__photograph { min-height: 0; height: clamp(360px, calc(100svh - 188px), 700px); }
  body.mq-off:has(.hero) .hero__photograph { height: clamp(360px, calc(100svh - 160px), 700px); }
  body:has(.hero) .hero__photograph .ph--hero { height: 100%; }
  body:has(.hero) .hero__photograph img { object-position: center 52%; }
  body:has(.hero) .ph--hero::after { content: ''; position: absolute; inset: 0; z-index: 2; display: block; background: linear-gradient(0deg, #211b19ed 0%, #211b19b8 27%, transparent 78%); pointer-events: none; }
  body:has(.hero) .hero__txt { position: absolute; inset: auto 0 0; z-index: 3; padding: 0 24px 30px; background: none; color: white; }
  body:has(.hero) .hero .eyebrow { color: #f2e4ce; font-size: 10px; letter-spacing: .04em; margin-bottom: 13px; }
  .hero__headline { font-size: clamp(29px, 8.5vw, 40px); line-height: 1.08; letter-spacing: -.04em; margin-bottom: 14px; }
  .hero__promise { color: #f5e9de; font-size: 13px; margin-bottom: 18px; }
  body:has(.hero) :is(.hero__lead,.hero__cta) { display: none; }
  .hero__portfolio { color: white; font-size: 12px; text-decoration: underline; text-underline-offset: 5px; }
  .hero__film { top: 15px; right: 15px; padding: 9px 13px; font-size: 11px; }
  body:has(.hero) .hero :is(a,button):focus-visible { outline-color: var(--gold-pale); }
  body:has(.hero) .mcta { display: flex; position: fixed; left: 16px; right: 16px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 150; min-height: 54px; padding: 14px 20px; border: 1px solid #a17b3c; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: 15px; font-weight: 400; box-shadow: 0 7px 24px #2b222026; }
  body:has(.hero) .sec { padding-block: 49px; }
  body:has(.hero) .h2 { font-size: 29px; letter-spacing: -.035em; line-height: 1.14; }
  body:has(.hero) .eyebrow { font-size: 10px; margin-bottom: 13px; }
  body:has(.hero) .sec__head { margin-bottom: 25px; }
  body:has(.hero) .sec__lead { margin-top: 14px; font-size: 14px; line-height: 1.6; }
  .realizations { position: relative; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(85%,250px); gap: 17px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; padding: 4px 0 14px; }
  .realization { scroll-snap-align: start; }
  .comparison figcaption { display: none; }
  .realization__photo,.realization__video { height: 390px; aspect-ratio: auto; }
  .realization__copy h3 { font-size: 20px; }
  .realization__details { font-size: 11px; }
  .gallery-controls { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #68564f; margin-bottom: 15px; }
  .gallery-controls div { display: flex; gap: 8px; }
  .gallery-controls button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); font-size: 20px; cursor: pointer; }
  .gallery-controls button:disabled { opacity: .3; }
  body:has(.hero) .sec__foot { margin-top: 22px; }
  body:has(.hero) .cards { gap: 0; border-top: 1px solid var(--line); }
  .service-row { border-bottom: 1px solid var(--line); }
  .service-row summary { position: relative; list-style: none; cursor: pointer; padding: 17px 24px 17px 0; font-size: 17px; line-height: 1.35; }
  .service-row summary::after { content: '+'; position: absolute; right: 0; top: 18px; color: var(--gold-deep); }
  .service-row[open] summary::after { content: '−'; }
  .service-row__price { display: block; font-size: 12px; color: #735422; margin-top: 5px; }
  .service-row p { font-size: 14px; line-height: 1.65; color: #68564f; padding-bottom: 17px; margin: 0; }
  body:has(.hero) .price-grid { gap: 12px; }
  body:has(.hero) .price-col { padding: 0 18px; }
  body:has(.hero) .price-col__head { position: relative; min-height: 64px; margin: 0; padding: 19px 24px 19px 0; cursor: pointer; }
  body:has(.hero) .price-col__head h3 { font-size: 20px; }
  body:has(.hero) .price-col__head::after { content: '+'; position: absolute; right: 0; top: 19px; color: var(--gold-deep); }
  body:has(.hero) .price-col[open] .price-col__head::after { content: '−'; }
  body:has(.hero) .price-col__tag { display: none; }
  body:has(.hero) .price-col__note { font-size: 12px; padding-bottom: 12px; }
  body:has(.hero) .packs { padding: 23px; margin-top: 24px; }
  body:has(.hero) .packs__t { font-size: 25px; }
  body:has(.hero) .packs__list { font-size: 13px; }
  .price-sheets { margin-top: 25px; font-size: 14px; color: #735422; }
  .price-sheets summary { cursor: pointer; }
  .visit-process { padding-bottom: 45px; }
  body:has(.hero) .visit-process .h2 { font-size: 29px; margin-bottom: 22px; }
  .visit-steps { grid-template-columns: 1fr; gap: 0; }
  .visit-steps li { position: relative; padding: 18px 0 18px 32px; border-bottom: 1px solid var(--line); }
  .visit-steps__number { position: absolute; left: 0; top: 24px; font-size: 11px; }
  .visit-steps h3 { margin: 0 0 7px; font-size: 19px; }
  .visit-steps p { font-size: 13px; margin: 0; }
  body:has(.hero) .about,body:has(.hero) .szk,body:has(.hero) .book { gap: 25px; }
  body:has(.hero) .about__p { font-size: 14px; }
  body:has(.hero) .ph--about,body:has(.hero) .ph--szk { max-height: 330px; }
  body:has(.hero) .szk__note { display: none; }
  body:has(.hero) .szk__lead,body:has(.hero) .szk__list { font-size: 14px; }
  body:has(.hero) .rev { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 90%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 14px; }
  body:has(.hero) .rev__i { padding: 25px; scroll-snap-align: start; }
  body:has(.hero) .rev__i blockquote { font-size: 20px; line-height: 1.4; }
  .rev__mark { font-size: 45px; margin-bottom: 12px; }
  body:has(.hero) .book__form { padding: 23px 18px; }
  body:has(.hero) .book__perks { font-size: 13px; }
  body:has(.hero) .cont__map { height: 260px; }
  body:has(.hero) .cont__v { font-size: 22px; }
  body:has(.hero) .ftr__in { gap: 24px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__photograph { animation: salon-photo-in .8s ease both; }
  @keyframes salon-photo-in { from { opacity: .4; } to { opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  body:has(.hero) *,body:has(.hero) *::before,body:has(.hero) *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  body:has(.hero) [data-anim] { opacity: 1; transform: none; }
}
