/* Страницата за записване - тя се отваря от стикера в сторито, значи първо телефон. */
/* hero на телефон: снимката (остра, цяла) се стопява плавно в черното отдолу,
   а заглавието започва още върху долната ѝ част */
.hero { position: relative; isolation: isolate; }
.hero-img { display: block; }
.hero-img img { display: block; width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(#000 42%, rgba(0, 0, 0, .55) 72%, transparent 100%); mask-image: linear-gradient(#000 42%, rgba(0, 0, 0, .55) 72%, transparent 100%); }
.hero-panel { position: relative; margin-top: -15vw; }
.hero-sheet { padding: 0 0 18px; }
.hero .tagline, .hero h1 { text-shadow: 0 2px 18px rgba(0, 0, 0, .95); }
.hero-content { text-align: left; }
.tagline { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-2); }
.hero h1 { font-family: var(--display); margin: 8px 0 14px; letter-spacing: -.01em; }
.h1-big { display: block; font-weight: 900; font-size: clamp(42px, 12.5vw, 60px); line-height: 1; }
.h1-big em { font-style: normal; position: relative; z-index: 0; padding: 0 .06em; }
.h1-big em::before { content: ''; position: absolute; z-index: -1; left: -.04em; right: -.08em; top: .5em; bottom: .02em; background: var(--accent); transform: skew(-14deg) rotate(-2deg); border-radius: 3px; }
.h1-sub { display: block; margin-top: 10px; font-weight: 800; font-size: clamp(19px, 5.4vw, 24px); line-height: 1.25; color: var(--text-2); }
.lead { margin: 0 0 16px; color: var(--text-2); font-size: 17px; max-width: 30em; }
.info { display: grid; gap: 8px; margin-bottom: 18px; justify-items: start; }
.hero-cta { display: flex; width: 100%; margin: 6px 0; font-size: 17px; box-shadow: 0 10px 30px rgba(227, 38, 47, .35); }
/* на компютър снимката пълни целия hero, листът с текста е долу вляво, а #STF вдясно остава открит */
@media (min-width: 720px) {
  .hero { min-height: min(92vh, 900px); display: flex; flex-direction: column; justify-content: flex-end; }
  .hero-img { position: absolute; inset: 0; z-index: -1; }
  .hero-img img { height: 100%; object-fit: cover; object-position: 50% 20%; -webkit-mask-image: none; mask-image: none; }
  .hero::after { content: ''; position: absolute; inset: auto 0 0; height: 140px; z-index: -1; background: linear-gradient(transparent, var(--bg)); }
  /* на компютър текстът е на тъмен „скъсан“ лист с червен ръб и сянка, долу вляво */
  .hero-panel { margin: 0 0 0 max(24px, calc((100% - 1120px) / 2 - 20px)); width: 660px; filter: drop-shadow(0 -3px 0 var(--accent)) drop-shadow(0 -16px 24px rgba(0, 0, 0, .6)); }
  .hero-sheet { padding: 42px 0 26px;
    background: radial-gradient(80% 55% at 100% 0, rgba(227, 38, 47, .16), transparent 70%), var(--bg);
    clip-path: polygon(0 24px, 5% 12px, 10% 20px, 16% 5px, 22% 16px, 29% 7px, 35% 18px, 42% 3px, 49% 14px, 56% 6px, 62% 19px, 69% 8px, 76% 16px, 83% 2px, 89% 13px, 95% 5px, 100% 15px, 100% 100%, 0 100%); }
  .hero .tagline, .hero h1 { text-shadow: none; }
  .hero-content { padding: 0 36px; max-width: none; }
  .h1-big { font-size: 54px; }
  .hero .info { display: flex; flex-wrap: wrap; gap: 8px 22px; }
  .hero-cta { display: inline-flex; width: auto; min-width: 260px; }
}
.info-item { display: flex; gap: 10px; align-items: center; color: var(--text-2); font-size: 15px; }
.info-item a { color: var(--text); font-weight: 600; text-underline-offset: 3px; }
.info-link { text-decoration: none; color: var(--text-2); }
.info-link .addr { color: var(--text); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
.info-link .go { color: var(--accent-2); font-weight: 700; font-size: 14px; white-space: nowrap; }
.info-link:hover .addr { text-decoration-color: var(--text); }

/* прозорецът „Упътване“ - отдолу на телефон, като менюто за избор на приложение в iPhone */
.sheet { border: 1.5px solid var(--line-2); border-radius: 18px; background: var(--surface); color: var(--text); padding: 20px; width: min(440px, calc(100% - 24px)); box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.sheet::backdrop { background: rgba(0, 0, 0, .65); }
@media (max-width: 600px) { .sheet { margin: auto auto 12px; } }
.sheet h2 { margin-bottom: 4px; }
.sheet p { margin: 0 0 16px; }
.sheet-list { display: grid; gap: 8px; margin-bottom: 12px; }
.sheet-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface-2); color: var(--text); font-weight: 600; font-size: 16px; text-decoration: none; text-align: left; }
.sheet-opt:hover { border-color: var(--accent); }
.sheet-opt .ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--bg); color: var(--text-2); }
.sheet-opt .ico svg { width: 20px; height: 20px; }
.ico-g { color: #ea4335 !important; }
.ico-a { color: #3d9bff !important; }
.ico-w { color: #33ccff !important; }
.info-item svg { width: 18px; height: 18px; flex: none; color: var(--accent); }

/* стъпките */
.steps { list-style: none; padding: 0; margin: 26px 0 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; counter-reset: s; }
.steps li { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-3); padding-top: 10px; border-top: 3px solid var(--surface-2); }
.steps li span { display: none; }
.steps li.is-done { color: var(--text-2); border-top-color: rgba(227, 38, 47, .55); }
.steps li.is-current { color: var(--text); border-top-color: var(--accent); }

.step h2 { margin: 4px 0 16px; }
.step h2:focus { outline: none; }
.back { margin: -6px 0 6px; }

/* услугите */
/* всички карти с еднакъв размер: редовете са равни, а минутите стоят винаги най-долу */
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-auto-rows: 1fr; }
.services li { display: flex; }
.svc { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; width: 100%; height: 100%; text-align: left; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r); padding: 16px; transition: border-color .15s, background .15s; }
.svc:hover { border-color: var(--accent); }
.svc:active { background: var(--surface-2); }
.svc-main { display: flex; flex-direction: column; gap: 3px; align-self: stretch; }
.svc-main b { font-size: 17px; font-weight: 600; }
.svc-desc { color: var(--text-2); font-size: 14px; }
.svc-dur { color: var(--text-3); font-size: 14px; margin-top: auto; padding-top: 4px; }
/* цената е червен „скъсан тиксо“ етикет, леко накриво, като „час“ горе - всяка карта под различен ъгъл */
.svc-price { position: relative; z-index: 0; flex: none; margin: 2px 2px 0 0; padding: 4px 11px 5px; font-family: var(--display); font-weight: 900; font-size: 20px; line-height: 1.1; white-space: nowrap; color: #fff; transform: rotate(-3deg); }
.svc-price::before { content: ''; position: absolute; z-index: -1; inset: 0; background: var(--accent); transform: skew(-12deg); clip-path: polygon(3% 10%, 28% 0, 55% 7%, 80% 1%, 100% 6%, 97% 50%, 100% 94%, 72% 100%, 45% 93%, 20% 100%, 0 92%, 3% 52%); }
.services li:nth-child(2n) .svc-price { transform: rotate(2.5deg); }
.services li:nth-child(3n) .svc-price { transform: rotate(-1.5deg); }
.svc:hover .svc-price { transform: rotate(0) scale(1.06); transition: transform .15s; }
.pay-note { margin: 14px 0 0; }

/* вече записан час на това устройство */
.mine { margin: -4px 0 22px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 1.5px solid rgba(98, 201, 143, .55); background: var(--ok-tint); border-radius: var(--r); padding: 14px 16px; }
.mine b { display: block; }
.mine span { color: var(--text-2); font-size: 14px; }

/* избраната услуга над дните */
.picked { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); border: 1.5px solid var(--accent); background: var(--accent-tint); margin-bottom: 20px; }
.picked b { display: block; }
.picked span { color: var(--text-2); font-size: 14px; }

/* дните: седмица по седмица, понеделник е първи */
.week-nav { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; margin-bottom: 10px; }
.wk-arrow { height: 44px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); font-size: 24px; line-height: 1; padding: 0 0 3px; }
.wk-arrow:hover:not(:disabled) { border-color: var(--text-2); }
.wk-arrow:disabled { opacity: .3; cursor: default; }
.wk-label { text-align: center; }
.wk-label b { display: block; font-family: var(--display); font-weight: 800; font-size: 19px; font-variant-numeric: tabular-nums; }
.wk-label span { color: var(--text-2); font-size: 13px; }
.weeks { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; margin-bottom: 18px; }
.weeks::-webkit-scrollbar { display: none; }
.week { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day { min-width: 0; display: grid; gap: 1px; justify-items: center; padding: 9px 0 7px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; }
.day .wd { font-size: 12px; color: var(--text-2); }
.day .dn { font-family: var(--display); font-size: 19px; font-weight: 800; }
.day .mo { font-size: 10px; line-height: 14px; min-height: 14px; color: var(--text-3); white-space: nowrap; }
.day:hover:not(:disabled) { border-color: var(--text-2); }
.day.is-today .wd { color: var(--accent-2); font-weight: 700; }
.day.is-today:not([aria-pressed=true]) { border-color: var(--accent); }
.day[aria-pressed=true] { background: var(--accent); border-color: var(--accent); }
.day[aria-pressed=true] .wd, .day[aria-pressed=true] .dn, .day[aria-pressed=true] .mo { color: var(--accent-ink); }
.day:disabled { cursor: default; background: transparent; border-style: dashed; }
.day:disabled .dn { color: var(--text-3); }
.day.is-past { opacity: .4; border-style: solid; }
.empty .btn { margin-top: 14px; }

/* часовете */
.slot-group { margin-bottom: 18px; }
.slot-group h3 { font-size: 14px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 359px) { .slots { grid-template-columns: repeat(3, 1fr); } }
.slot { min-height: 48px; background: var(--surface); border: 1.5px solid var(--line-2); border-radius: 10px; font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; }
.slot:hover { border-color: var(--accent); background: var(--accent-tint); }
.empty { text-align: center; padding: 26px 16px; border: 1.5px dashed var(--line-2); border-radius: var(--r); color: var(--text-2); }
.empty b { display: block; color: var(--text); margin-bottom: 4px; }

/* обобщението */
.summary { margin-bottom: 20px; }
.summary dl { margin: 0; display: grid; gap: 10px; }
.summary .row { display: flex; justify-content: space-between; gap: 16px; }
.summary dt { color: var(--text-2); }
.summary dd { margin: 0; font-weight: 600; text-align: right; }
.summary .total { border-top: 1.5px solid var(--line); padding-top: 10px; }
.summary .total dd { position: relative; z-index: 0; font-family: var(--display); font-weight: 900; font-size: 19px; color: #fff; padding: 2px 10px 3px; transform: rotate(-2deg); }
.summary .total dd::before { content: ''; position: absolute; z-index: -1; inset: 0; background: var(--accent); transform: skew(-12deg); clip-path: polygon(3% 10%, 28% 0, 55% 7%, 80% 1%, 100% 6%, 97% 50%, 100% 94%, 72% 100%, 45% 93%, 20% 100%, 0 92%, 3% 52%); }
.center { text-align: center; }
#form .small { margin-top: 12px; }

/* готово */
#step-done { text-align: center; }
.done-icon { width: 72px; height: 72px; margin: 6px auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-tint); border: 2px solid var(--ok); color: var(--ok); }
.done-icon svg { width: 38px; height: 38px; }
.done-text { font-size: 17px; color: var(--text-2); margin: 0 0 20px; display: grid; gap: 6px; }
.done-text b { color: var(--text); font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.3; }
.done-text .small { color: var(--text-3); }
body.is-done .steps { display: none; }
#step-done .summary { text-align: left; }
.done-actions { display: grid; gap: 10px; }
.done-actions .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* галерията от Instagram */
.gallery { margin-top: 40px; }
.gallery-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.gallery-head a { color: var(--text-2); font-weight: 600; font-size: 15px; text-underline-offset: 3px; }
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gal img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; display: block; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); }

.foot { margin-top: 48px; padding: 22px 0 36px; border-top: 1px solid var(--line); font-size: 15px; }
.foot p { margin: 0 0 6px; }
/* картата долу: тъмна, за да е в тона на сайта; цялата е бутон към „Упътване“ */
/* долу: картата вляво, текстът вдясно */
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; align-items: stretch; }
.foot-text { display: grid; align-content: center; gap: 2px; }
.foot-text p { margin: 0 0 6px; }
.foot-name { font-family: var(--display); font-weight: 800; font-size: 18px; }
.map { position: relative; min-height: 190px; border-radius: var(--r); overflow: hidden; border: 1.5px solid var(--line-2); background: var(--surface); }
.map iframe { width: 100%; height: 100%; border: 0; pointer-events: none; filter: invert(.92) hue-rotate(180deg) saturate(.6) contrast(.95); }
.map-link { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 14px; text-decoration: none; }
.map-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 99px; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 8px 22px rgba(0, 0, 0, .5); }
.map-pill svg { width: 18px; height: 18px; }
.map-link:hover .map-pill { background: #f23e46; }
.foot .motto { margin-top: 8px; font-family: var(--display); font-weight: 900; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; color: var(--text-3); }
.foot .motto span { color: var(--accent-2); }

/* компютър: страницата се разтваря до 1120 px - услугите в колони, денят вляво, часовете вдясно */
@media (min-width: 960px) {
  .wrap { max-width: 1120px; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #step-time:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; align-items: start; }
  #step-time > * { grid-column: 1; }
  #step-time > #slots { grid-column: 2; grid-row: 1 / span 6; padding-top: 8px; }
  #step-details:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; align-items: start; }
  #step-details > .back, #step-details > h2 { grid-column: 1 / -1; }
  #step-done { max-width: 560px; margin: 0 auto; }
  .gal { grid-template-columns: repeat(6, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 36px; }
  .map { min-height: 280px; }
  .foot-name { font-size: 22px; }
}
@media (min-width: 1100px) {
  .services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
