/* ═══════════════════════════════════════════════════════════
   🎨 BRAND TOKENS — редактирай само тук, за да преоблечеш сайта
   ═══════════════════════════════════════════════════════════
   --paper / --surface  → фонове
   --ink / --ink-soft    → текст
   --gold                → цвят на избор/маркиране
   --stamp                → цвят на действие/потвърждение (CTA, печат)
   Смени тези 6 стойности и целият сайт се преоблича.
   ════════════════════════════════════════════════════════════ */


@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}

/* ═══════════════════════════════════════════════════
   RESET
   ═══════════════════════════════════════════════════ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid var(--stamp);
    outline-offset: 2px;
    border-radius: 4px;
}

input,
select {
    width: 100%;
    font-family: var(--font-body);
    font-size: 15px;
    padding: 13px 14px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink);
    transition: var(--t);
}

input::placeholder {
    color: var(--ink-faint);
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-soft);
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.hidden {
    display: none !important;
}

/* ═══════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════ */

.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: rgba(238, 239, 234, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: var(--t);
}

.nav.scrolled {
    border-bottom-color: var(--line);
    background: rgba(238, 239, 234, 0.96);
}

.nav__inner {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 19px;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--ink);
}

.nav__mark {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav__links a {
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-soft);
    transition: var(--t);
}

.nav__links a:hover {
    color: var(--ink);
}

.nav__cta {
    background: var(--ink);
    color: var(--paper);
    border: none;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 100px;
    transition: var(--t);
}

.nav__cta:hover {
    background: var(--stamp);
}

@media (max-width: 720px) {
    .nav__links {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════ */

.hero {
    max-width: 780px;
    margin: 0 auto;
    padding: 76px 24px 64px;
}

.hero__eyebrow {
    margin-bottom: 18px;
}

.hero h1 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.02;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.hero h1 em {
    font-style: italic;
    color: var(--stamp);
}

.hero__sub {
    margin-top: 20px;
    max-width: 46ch;
    font-size: 16px;
    color: var(--ink-soft);
    line-height: 1.65;
}

.hero__actions {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.btn-primary {
    background: var(--ink);
    color: var(--paper);
    border: none;
    font-weight: 600;
    font-size: 14px;
    padding: 15px 26px;
    border-radius: 100px;
    transition: var(--t);
}

.btn-primary:hover {
    background: var(--stamp);
    transform: translateY(-1px);
}

.hero__meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-soft);
}

/* decorative stub preview in hero */
.hero__stub {
    justify-self: end;
    width: 100%;
    max-width: 300px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 22px 22px 18px;
    transform: rotate(2.5deg);
    box-shadow: 0 30px 60px -20px rgba(27, 36, 48, 0.25);
}

.hero__stub-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-faint);
    padding: 7px 0;
    border-bottom: 1px dashed var(--line);
}

.hero__stub-row:last-child {
    border-bottom: none;
}

.hero__stub-row b {
    font-family: var(--font-body);
    color: var(--ink);
    font-weight: 500;
}



/* ═══════════════════════════════════════════════════
   SECTION SHELL / STEPS
   ═══════════════════════════════════════════════════ */

.booking {
    max-width: 680px;
    margin: 0 auto;
    padding: 20px 24px 100px;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.step__head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 18px;
}

.step__num {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--stamp);
    font-weight: 600;
}

.step__title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
}

.step__hint {
    font-size: 12.5px;
    color: var(--ink-faint);
    margin-left: auto;
}

/* ═══════════════════════════════════════════════════
   PROVIDER CARDS
   ═══════════════════════════════════════════════════ */

.providers {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}

.provider-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 14px;
    text-align: center;
    cursor: pointer;
    transition: var(--t);
}

.provider-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
}

.provider-card.active {
    border-color: var(--stamp);
    background: var(--stamp-soft);
    box-shadow: 0 0 0 1px var(--stamp);
}

.provider-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

.provider-name {
    font-size: 13.5px;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════════ */

.services {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.services-placeholder,
.services p {
    font-size: 13px;
    color: var(--ink-faint);
    padding: 14px 0;
}

.service-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 15px 18px;
    cursor: pointer;
    transition: var(--t);
}

.service-card:hover {
    border-color: var(--gold);
}

.service-card.active {
    border-color: var(--stamp);
    background: var(--stamp-soft);
}

.service-card p {
    font-weight: 600;
    font-size: 14.5px;
    padding: 0;
    color: var(--ink);
}

.service-card .service-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-soft);
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════════
   DATE + SLOTS
   ═══════════════════════════════════════════════════ */

#date {
    max-width: 280px;
    font-family: var(--font-mono);
}

.slots-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 8px;
}

.slot {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    padding: 11px 6px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    transition: var(--t);
}

.slot:hover {
    border-color: var(--gold);
}

.slot.active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

/* ═══════════════════════════════════════════════════
   CONTACT FORM
   ═══════════════════════════════════════════════════ */

.form-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
}

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 6px;
    cursor: pointer;
}

.consent-row input {
    display: none;
}

.consent-box {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 1px;
    border-radius: 5px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    position: relative;
    transition: var(--t);
}

.consent-row input:checked+.consent-box {
    background: var(--stamp);
    border-color: var(--stamp);
}

.consent-box::after {
    content: "✓";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--surface);
    opacity: 0;
}

.consent-row input:checked+.consent-box::after {
    opacity: 1;
}

.consent-text {
    font-size: 12.5px;
    color: var(--ink-soft);
    line-height: 1.5;
}

.consent-text a {
    color: var(--gold);
    font-weight: 600;
    text-decoration: none;
}

/* ═══════════════════════════════════════════════════
   🎫 THE TICKET — signature component
   ═══════════════════════════════════════════════════ */

.ticket-rail {
    margin-top: 40px;
}

.ticket {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: 0 24px 50px -24px rgba(27, 36, 48, 0.25);
    overflow: visible;
}

.ticket__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
}

.ticket__head .eyebrow {
    margin: 0;
}

.ticket__code {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-faint);
}

.ticket__perf {
    position: relative;
    height: 0;
    border-top: 2px dashed var(--line);
    margin: 0;
}

.ticket__perf::before,
.ticket__perf::after {
    content: "";
    position: absolute;
    top: -11px;
    width: 22px;
    height: 22px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 50%;
}

.ticket__perf::before {
    left: -12px;
}

.ticket__perf::after {
    right: -12px;
}

.ticket__body {
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ticket__row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--paper);
    font-size: 13.5px;
}

.ticket__row:last-child {
    border-bottom: none;
}

.ticket__label {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-faint);
    padding-top: 2px;
}

.ticket__value {
    font-weight: 600;
    text-align: right;
    color: var(--ink);
}

.ticket__value.muted {
    color: var(--ink-faint);
    font-weight: 500;
}

.ticket__foot {
    padding: 18px 22px 22px;
}

.ticket__price {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
}

.ticket__price-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ticket__price-value {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    color: var(--ink);
}

.btn-submit {
    width: 100%;
    background: var(--stamp);
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: 14.5px;
    padding: 16px;
    border-radius: 100px;
    transition: var(--t);
}

.btn-submit:disabled {
    background: var(--line-strong);
    color: var(--ink-faint);
    cursor: not-allowed;
}

.btn-submit:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -8px var(--stamp);
}

.ticket__inline-msg {
    margin-top: 10px;
    font-size: 12.5px;
    text-align: center;
    color: var(--danger);
}

/* stamp overlay on confirm */
.ticket__stamp {
    position: absolute;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-14deg) scale(0.6);
    opacity: 0;
    pointer-events: none;
    width: 168px;
    height: 168px;
    border: 4px solid var(--stamp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--stamp);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.06em;
    line-height: 1.3;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.ticket__stamp::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid var(--stamp);
    border-radius: 50%;
}

.ticket.confirmed .ticket__stamp {
    opacity: 0.92;
    transform: translate(-50%, -50%) rotate(-14deg) scale(1);
}

.ticket.confirmed .ticket__body,
.ticket.confirmed .ticket__foot>.btn-submit {
    opacity: 0.5;
}

.ticket__reset {
    display: none;
    width: 100%;
    margin-top: 10px;
    background: none;
    border: 1px solid var(--line-strong);
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 13px;
    padding: 12px;
    border-radius: 100px;
}

.ticket.confirmed .ticket__reset {
    display: block;
}

.ticket.confirmed .btn-submit {
    display: none;
}



/* ═══════════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════════ */

.toast {
    position: fixed;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--ink);
    color: var(--paper);
    font-size: 13.5px;
    font-weight: 500;
    padding: 13px 20px;
    border-radius: 100px;
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: var(--t);
    z-index: 999;
    max-width: 90vw;
    text-align: center;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.error {
    background: var(--danger);
}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */

.footer {
    border-top: 1px solid var(--line);
    padding: 40px 24px;
}

.footer__inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12.5px;
    color: var(--ink-faint);
}

.footer__inner a {
    color: var(--ink-soft);
    text-decoration: none;
}

.footer__inner a:hover {
    color: var(--stamp);
}

/* ═══════════════════════════════════════════════════
   FLATPICKR THEMING
   ═══════════════════════════════════════════════════ */

.flatpickr-calendar {
    background: var(--surface);
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    box-shadow: 0 20px 40px -16px rgba(27, 36, 48, 0.3);
    font-family: var(--font-body);
}

.flatpickr-day.selected {
    background: var(--stamp) !important;
    border-color: var(--stamp) !important;
}

.flatpickr-day.today {
    border-color: var(--gold);
}

.flatpickr-day:hover {
    background: var(--gold-soft);
}

.flatpickr-current-month,
.flatpickr-monthDropdown-months {
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════
   MOBILE
   ═══════════════════════════════════════════════════ */

@media (max-width: 560px) {
    .hero {
        padding: 40px 18px 40px;
    }

    .booking {
        padding: 12px 18px 80px;
        gap: 28px;
    }

    .steps {
        gap: 42px;
    }

    .nav__inner {
        padding: 0 18px;
    }
}