/* ==========================================================================
   Teenusepakkuja veebileht (pakkujaleht.js). Kõik reeglid on .psite all, et
   sama markup sobiks nii eraldi lehele (teenusepakkuja.html) kui partneri
   eelvaatesse (partner.html) ega lekiks ümbritsevale lehele.
   Värvid/raadiused/varjud tulevad sobo.css tokenitest — tume teema töötab ise.
   ========================================================================== */
html { scroll-behavior: smooth; }
.psite { --ps-max: 1080px; color: var(--text); background: var(--bg, var(--surface-alt)); }
/* Laial ekraanil laiem (founder 2026-10-20), samm-sammult nagu sobo.css --maxw */
@media (min-width: 1600px) { .psite { --ps-max: 1240px; } }
@media (min-width: 1880px) { .psite { --ps-max: 1360px; } }
@media (min-width: 2300px) { .psite { --ps-max: 1560px; } }
.psite section, .psite header { scroll-margin-top: 72px; }

/* ---------- Menüüriba ---------- */
.psite .ps-nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px;
  padding: 12px max(16px, calc((100% - var(--ps-max)) / 2));
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.psite.is-preview { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.psite.is-preview .ps-nav { position: static; }
.psite .ps-brand {
  display: inline-flex; align-items: center; gap: 10px; min-width: 0;
  font-family: var(--display); font-weight: 800; font-size: 1.15rem;
  color: var(--text); text-decoration: none; letter-spacing: -.01em;
}
.psite .ps-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.psite .ps-logo { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; flex: none; }
.psite .ps-links { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.psite .ps-links::-webkit-scrollbar { display: none; }
.psite .ps-links a {
  padding: 8px 12px; border-radius: var(--pill); white-space: nowrap;
  color: var(--text-muted); font-weight: 600; font-size: .92rem; text-decoration: none;
}
.psite .ps-links a:hover { color: var(--text); background: var(--surface-alt); }
.psite .langsel {
  font: inherit; font-size: 1rem; padding: 6px 8px; flex: none;
  border: 1px solid var(--border); border-radius: var(--pill);
  background: var(--surface); color: var(--text);
}
.psite .ps-theme {
  flex: none; width: 38px; height: 38px; display: grid; place-items: center; padding: 0;
  border: 1px solid var(--border); border-radius: 50%; cursor: pointer;
  background: var(--surface); color: var(--text);
}
.psite .ps-theme:hover { color: var(--primary); border-color: var(--border-strong); }
.psite .ps-theme svg { width: 18px; height: 18px; }
.psite .ps-sun { display: none; }
[data-theme="dark"] .psite .ps-sun { display: block; }
[data-theme="dark"] .psite .ps-moon { display: none; }
@media (max-width: 760px) {
  .psite .ps-nav { flex-wrap: wrap; gap: 8px 12px; }
  .psite .ps-links { order: 3; width: 100%; margin: 0 -4px; }
  .psite .langsel { margin-left: auto; }
}

/* ---------- Päis ---------- */
.psite .ps-hero {
  position: relative; display: grid; place-items: center;
  min-height: min(78vh, 720px); padding: 72px 16px;
  background-size: cover; background-position: center;
  /* Neli kaanepilti (pakkujaleht.js coverSet — tühjad on seal juba täidetud) */
  background-image: var(--cv);
  color: #fff; text-align: center; isolation: isolate;
}
:root[data-theme="dark"] .psite .ps-hero { background-image: var(--cv-d); }
@media (max-width: 760px) {
  .psite .ps-hero { background-image: var(--cv-m); }
  :root[data-theme="dark"] .psite .ps-hero { background-image: var(--cv-md); }
}
/* Partneri lehe eelvaate telefonivaade (partner.html .pvw-in on konteiner): samad
   telefonireeglid kasti, mitte ekraani laiuse järgi. Avalikul lehel konteinerit
   pole, seega seal see plokk ei rakendu ja kehtivad ülal olevad @media reeglid.
   Pealkirjade cqi: konteinerita = ekraani laius (nagu vw), eelvaates kasti laius. */
@container (max-width: 760px) {
  .psite .ps-nav { flex-wrap: wrap; gap: 8px 12px; }
  .psite .ps-links { order: 3; width: 100%; margin: 0 -4px; }
  .psite .langsel { margin-left: auto; }
  .psite .ps-hero { background-image: var(--cv-m); }
  :root[data-theme="dark"] .psite .ps-hero { background-image: var(--cv-md); }
}
/* Tumedus (cover_dim / cover_dim_dark, cover-dim.sql): --dim = alumise serva katvus,
   ülemine 73% sellest. Vaikimisi .6 → .44/.6 (enne seadet .45/.62). */
.psite .ps-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 10, 12, calc(var(--dim, .6) * .73)), rgba(10, 10, 12, var(--dim, .6)));
}
:root[data-theme="dark"] .psite .ps-hero::before {
  background: linear-gradient(180deg, rgba(10, 10, 12, calc(var(--dim-d, .6) * .73)), rgba(10, 10, 12, var(--dim-d, .6)));
}
.psite.is-preview .ps-hero { min-height: 420px; }
.psite .ps-hero-in { max-width: 760px; }
.psite .ps-hero h1 {
  margin: 0; font-family: var(--display); font-weight: 800;
  font-size: clamp(2rem, 5.2cqi, 3.6rem); line-height: 1.08; letter-spacing: -.02em;
  text-wrap: balance;
}
.psite .ps-hero p { margin: 16px auto 0; max-width: 620px; font-size: 1.12rem; line-height: 1.55; opacity: .94; text-wrap: pretty; }
.psite .ps-rate .stars { color: var(--star, #F5A623); letter-spacing: 1px; }
.psite .ps-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }

/* ---------- Nupud ---------- */
.psite .ps-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: var(--pill); border: 0; cursor: pointer;
  font: inherit; font-weight: 700; text-decoration: none;
  background: linear-gradient(140deg, var(--brand-500, var(--primary)), var(--brand-800, var(--primary-dark)));
  color: #fff; box-shadow: var(--shadow-brand, none);
  transition: transform var(--t-fast, .15s) ease;
}
.psite .ps-btn:hover { transform: translateY(-2px); }
.psite .ps-btn.ghost { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.psite .ps-btn.ghost.dark { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--border); }

/* ---------- Sektsioonid ---------- */
.psite .ps-sec { padding: 72px max(16px, calc((100% - var(--ps-max)) / 2)); text-align: center; }
.psite .ps-sec h2 {
  margin: 0; font-family: var(--display); font-weight: 800;
  font-size: clamp(1.7rem, 3.4cqi, 2.4rem); letter-spacing: -.02em;
}
.psite .ps-lead { margin: 8px auto 0; max-width: 620px; color: var(--text-muted); }
.psite .ps-sub { margin: 36px 0 0; font-size: 1.05rem; }
.psite .ps-kicker { margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; color: var(--primary-dark); }

.psite .ps-cards {
  display: grid; gap: 16px; margin-top: 32px; text-align: left;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.psite .ps-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
}
.psite .ps-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-alt); }
.psite .ps-card-b { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.psite .ps-card h3 { margin: 0; font-size: 1.08rem; }
.psite .ps-card p { margin: 0; color: var(--text-muted); font-size: .94rem; line-height: 1.5; }
.psite .ps-card b { margin-top: auto; padding-top: 6px; color: var(--primary-dark); }

/* Suuremad pildid (founder 2026-10-20): kataloogi 180 px veerg andis laial ekraanil
   7–8 pisipilti ritta. Arvutis 3–4 reas, telefonis 2 (min(…, 45%)). */
.psite .ps-shots {
  margin-top: 28px; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 45%), 1fr));
}
/* Ruudustik flexiga (mitte grid auto-fit: see arvutab veerud max-laiuse järgi ja
   andis 1080 px peal 2 veergu): 4 reas (~260 px), väga laial 5, telefonis 2; mittetäis rida
   keskel. 3 reas oli founderi hinnangul arvutis liiga suur (2026-10-20). */
.psite .ps-gal .ps-shots:not(.ps-car-track) { display: flex; flex-wrap: wrap; justify-content: center; }
.psite .ps-gal .ps-shots:not(.ps-car-track) > * { flex: 0 0 calc((100% - 48px) / 4); min-width: 0; }
@media (min-width: 1880px) {
  .psite .ps-gal .ps-shots:not(.ps-car-track) > * { flex-basis: calc((100% - 64px) / 5); }
}
@media (max-width: 760px) {
  .psite .ps-gal .ps-shots:not(.ps-car-track) > * { flex-basis: calc((100% - 16px) / 2); }
}
@container (max-width: 760px) {
  .psite .ps-gal .ps-shots:not(.ps-car-track) > * { flex-basis: calc((100% - 16px) / 2); }
}
/* Karussell: üks rida, kerib külgsuunas, järgmine pilt paistab servast */
.psite .ps-car { position: relative; margin-top: 28px; }
.psite .ps-car .ps-car-track {
  display: flex; gap: 16px; margin: 0; overflow-x: auto; scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain; scrollbar-width: none; padding-bottom: 4px;
}
.psite .ps-car-track::-webkit-scrollbar { display: none; }
/* Pilt sama lai kui ruudustikus (4 reas, väga laial 5, telefonis 2) ja esimene vasakus
   servas (founder 2026-10-20): kuni rida pole täis, on see lihtsalt rida — kerimine ja
   nooled (wireCarousel) alles siis, kui pilte on rohkem, kui ritta mahub. */
.psite .ps-car-track > * { flex: 0 0 calc((100% - 48px) / 4); min-width: 0; scroll-snap-align: start; }
@media (min-width: 1880px) {
  .psite .ps-car-track > * { flex-basis: calc((100% - 64px) / 5); }
}
@media (max-width: 760px) {
  .psite .ps-car-track > * { flex-basis: calc((100% - 16px) / 2); }
}
@container (max-width: 760px) {
  .psite .ps-car-track > * { flex-basis: calc((100% - 16px) / 2); }
}
.psite .ps-car-btn {
  position: absolute; top: calc(50% - 22px); z-index: 1; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); box-shadow: var(--shadow-md);
}
.psite .ps-car-btn[hidden] { display: none; }
.psite .ps-car-btn.prev { left: -10px; }
.psite .ps-car-btn.next { right: -10px; }
.psite .ps-car-btn svg { width: 20px; height: 20px; }
/* Muutja nupud galerii kohal */
.psite .ps-ed-galbar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 16px; }
.psite .ps-seg {
  display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--pill);
  border: 1px solid var(--border); background: var(--surface);
}
.psite .ps-seg button {
  display: inline-flex; align-items: center; justify-content: center; padding: 6px 10px; cursor: pointer;
  border: 0; border-radius: var(--pill); background: none; color: var(--text-muted);
}
.psite .ps-seg button svg { width: 17px; height: 17px; }
.psite .ps-seg button[aria-pressed="true"] { background: var(--text); color: var(--surface); }
/* Pildiallkiri (avalik leht + muutja) */
.psite .ps-ph { margin: 0; display: grid; gap: 8px; align-content: start; }
.psite .ps-ph figcaption, .psite .ps-ph-cap {
  margin: 0; font-size: .9rem; line-height: 1.45; color: var(--text-muted); text-wrap: pretty;
}
.psite .ps-ed-ph { display: grid; gap: 8px; align-content: start; }
.psite .ps-ph-cap { min-height: 1.45em; }

.psite .ps-about { background: var(--surface); }
.psite .ps-avatar {
  width: 132px; height: 132px; margin: 0 auto 18px; font-size: 2.6rem;
  border: 5px solid var(--surface); box-shadow: var(--shadow-md);
}
.psite .ps-meta { margin: 8px 0 0; color: var(--text-muted); font-size: .95rem; line-height: 1.6; }
.psite .ps-text { max-width: 680px; margin: 22px auto 0; text-align: center; }
.psite .ps-p { margin: 0 0 14px; line-height: 1.7; }
.psite .ps-quals { max-width: 680px; margin: 28px auto 0; text-align: left; display: grid; gap: 8px; }
.psite .ps-quals h3 { margin: 0 0 4px; font-size: 1.05rem; }
.psite .ps-quals .qual b { color: var(--text-muted); font-weight: 600; margin-left: auto; }

.psite .ps-faq-l { max-width: 760px; margin: 28px auto 0; text-align: left; }
.psite .ps-faq details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px; margin-bottom: 10px;
}
.psite .ps-faq summary { cursor: pointer; font-weight: 700; }
.psite .ps-faq-a { margin: 10px 0 0; color: var(--text-muted); line-height: 1.6; }

.psite .ps-reviews { background: var(--surface-alt); }
.psite .ps-reviews .ps-lead .ps-rate { font-size: 1.05rem; color: var(--text); }
.psite .ps-rev {
  display: grid; gap: 14px; margin: 28px auto 0; max-width: 980px; text-align: left;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.psite .ps-rev article {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.psite .ps-rev article[hidden] { display: none; }
.psite .ps-rev .stars { color: var(--star, #F5A623); letter-spacing: 1px; }
.psite .ps-rev p { margin: 8px 0 0; line-height: 1.55; }
.psite .ps-more { margin-top: 22px; }

.psite .ps-contact .ps-btn { margin-top: 24px; }
.psite .ps-social { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.psite .ps-social a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border); color: var(--text); background: var(--surface);
}
.psite .ps-social svg { width: 20px; height: 20px; }

/* ---------- Jalus ---------- */
.psite .ps-foot {
  padding: 40px 16px 44px; text-align: center;
  background: #0f0e0e; color: rgba(255, 255, 255, .78); font-size: .9rem;
}
.psite .ps-foot .ps-social { margin: 0 0 18px; }
.psite .ps-foot .ps-social a { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .25); }
.psite .ps-foot p { margin: 0; }
.psite .ps-made { display: inline-block; margin-top: 10px; color: rgba(255, 255, 255, .5); font-size: .8rem; text-decoration: none; }
.psite .ps-made:hover { color: #fff; }

/* ---------- Teenuste kaardid broneerimisega ---------- */
.psite .ps-card-btn { font: inherit; color: inherit; text-align: left; cursor: pointer; padding: 0; transition: transform var(--t-fast, .15s) ease, border-color var(--t-fast, .15s) ease; }
.psite .ps-card-btn:hover { transform: translateY(-3px); border-color: var(--primary); }
.psite .ps-card-f { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; }
.psite .ps-card-f span { color: var(--text-muted); font-size: .9rem; }
.psite .ps-card-f b { margin: 0; padding: 0; font-size: 1.15rem; }
.psite .ps-card-cta { font-weight: 700; color: var(--primary-dark); font-size: .92rem; }

/* ---------- Broneerimine (broneeri.js) ---------- */
.psite .ps-book { background: var(--surface-alt); }
.psite .bk { max-width: 780px; margin: 28px auto 0; text-align: left; }
.psite .bk-svcs { display: grid; gap: 10px; }
.psite .bk-svc {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; width: 100%;
  padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer;
  transition: border-color var(--t-fast, .15s) ease, transform var(--t-fast, .15s) ease;
}
.psite button.bk-svc:hover { border-color: var(--primary); transform: translateY(-1px); }
.psite .bk-svc-t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.psite .bk-svc-t em { font-style: normal; color: var(--text-muted); font-size: .9rem; }
.psite .bk-svc-d { grid-column: 1; color: var(--text-muted); font-size: .92rem; line-height: 1.5; }
.psite .bk-svc-p { grid-column: 2; grid-row: 1 / span 2; font-weight: 800; color: var(--primary-dark); font-size: 1.1rem; }

/* Üks kaart: päis + kalender | ajad */
.psite .bk-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 22px 24px 26px; box-shadow: var(--shadow-sm);
}
.psite .bk-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.psite .bk-backbtn {
  width: 36px; height: 36px; flex: none; border: 0; border-radius: 50%; background: transparent;
  color: var(--text); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.psite .bk-backbtn:hover { background: var(--surface-alt); }
.psite .bk-thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; border: 1.5px solid var(--border); }
.psite .bk-head-t { display: grid; gap: 2px; min-width: 0; }
.psite .bk-head-t b { font-size: 1.02rem; }
.psite .bk-head-t span { color: var(--text-muted); font-size: .85rem; font-weight: 600; }

.psite .bk-cols { display: grid; grid-template-columns: 1fr 1fr; }
.psite .bk-left { padding-right: 26px; border-right: 1px solid var(--border); }
.psite .bk-right { padding-left: 26px; }
@media (max-width: 720px) {
  .psite .bk-card { padding: 18px 14px 22px; }
  .psite .bk-cols { grid-template-columns: 1fr; }
  .psite .bk-left { padding: 0 0 18px; border-right: 0; border-bottom: 1px solid var(--border); }
  .psite .bk-right { padding: 18px 0 0; }
}
.psite .bk-h { margin: 0 0 14px; font-weight: 700; font-size: .95rem; }
.psite .bk-mon { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.psite .bk-mon b { font-size: .95rem; }
.psite .bk-nav {
  width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent;
  color: var(--text); font-size: 1.35rem; cursor: pointer;
}
.psite .bk-nav:hover:not(:disabled) { background: var(--surface-alt); }
.psite .bk-nav:disabled { opacity: .3; cursor: default; }
.psite .bk-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 6px; justify-items: center; }
.psite .bk-wd { font-size: .75rem; font-weight: 700; color: var(--text-muted); padding: 4px 0 8px; text-transform: uppercase; }
.psite .bk-day {
  position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid transparent;
  background: transparent; color: var(--text); font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer;
}
.psite .bk-day:hover:not(:disabled) { background: var(--surface-alt); }
.psite .bk-day.off { color: var(--text-muted); opacity: .45; font-weight: 500; cursor: default; }
.psite .bk-day.today { border-color: var(--text); }
.psite .bk-day.on { background: var(--primary); border-color: var(--primary); color: #fff; }
/* Täitumas: täpp numbri all */
.psite .bk-day.few::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: currentColor; opacity: .7;
}
.psite .bk-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.psite .bk-time {
  height: 44px; border-radius: 10px; border: 1px solid var(--border); background: transparent;
  color: var(--text); font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer;
  transition: border-color var(--t-fast, .15s) ease, background var(--t-fast, .15s) ease;
}
.psite .bk-time:hover { border-color: var(--primary); }
.psite .bk-time.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.psite .bk-time.sk { display: block; background: var(--surface-alt); border-color: transparent; animation: bkPulse 1.2s ease-in-out infinite; }
@keyframes bkPulse { 50% { opacity: .5; } }
.psite .bk-muted { color: var(--text-muted); font-size: .9rem; margin: 10px 0 0; }

/* Andmed */
.psite .bk-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.psite .bk-full { grid-column: 1 / -1; }
@media (max-width: 600px) { .psite .bk-form { grid-template-columns: 1fr; } }
.psite .bk-f { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.psite .bk-f input, .psite .bk-f textarea {
  font: inherit; font-weight: 400; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--border); background: var(--bg); color: var(--text);
}
.psite .bk-f textarea { resize: vertical; }
.psite .bk-f input:focus, .psite .bk-f textarea:focus { outline: none; border-color: var(--primary); }
.psite .bk-wide { width: 100%; }

/* Kood */
.psite .bk-codebox { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 6px 0; }
.psite .bk-mail {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary-light, var(--surface-alt)); color: var(--primary-dark); font-size: 1.6rem;
}
.psite .bk-codebox h3 { margin: 0; font-size: 1.25rem; font-family: var(--display); }
.psite .bk-codebox p { margin: 0; color: var(--text-muted); max-width: 440px; }
.psite .bk-otps { display: flex; gap: 8px; margin: 8px 0; }
.psite .bk-otp {
  width: 48px; height: 58px; border-radius: 12px; border: 1.5px solid var(--border);
  background: var(--bg); color: var(--text); font: inherit; font-size: 1.6rem; font-weight: 800; text-align: center;
  caret-color: var(--primary);
}
.psite .bk-otp:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--brand-a24, rgba(186, 142, 73, .24)); }
@media (max-width: 400px) { .psite .bk-otp { width: 42px; height: 52px; } .psite .bk-otps { gap: 6px; } }
.psite .bk-codebox .bk-wide { max-width: 340px; }
.psite .bk-link { border: 0; background: none; color: var(--primary-dark); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.psite .bk-link:disabled { color: var(--text-muted); cursor: default; }

/* Makse ja kinnitus */
.psite .bk-pay { display: grid; gap: 16px; }
.psite .bk-rows { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--border); }
.psite .bk-rows span { color: var(--text-muted); }
.psite .bk-rows .tot { color: var(--text); font-weight: 800; font-size: 1.05rem; }
.psite .bk-err { margin: 14px 0 0; color: var(--danger, #c0392b); font-weight: 600; }
.psite .bk-done { text-align: center; display: grid; gap: 12px; justify-items: center; }
.psite .bk-done h3 { margin: 0; font-size: 1.5rem; font-family: var(--display); }
.psite .bk-done .bk-rows { width: 100%; text-align: left; }
.psite .bk-check {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: #fff; font-size: 2.2rem; font-weight: 800;
}
.psite .ps-btn:disabled { opacity: .45; cursor: default; transform: none; box-shadow: none; }
.psite [hidden] { display: none !important; }

/* ---------- Muutja (muuda-lehte.html, opts.edit) ----------
   Leht näeb välja täpselt nagu avalik — muudetav tekst saab ainult katkendjoone
   ümber ja kursori. Tühi lahter näitab halli vihjet (data-ph). */
.psite.is-editing .ps-nav { top: var(--ed-bar-h, 0px); }
.psite [data-ed] {
  outline: 1.5px dashed transparent; outline-offset: 4px; border-radius: 6px;
  cursor: text; transition: outline-color var(--t-fast, .15s) ease;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.psite [data-ed]:hover { outline-color: var(--brand-a40); }
.psite [data-ed]:focus { outline: 2px solid var(--primary); }
.psite [data-ed]:empty::before { content: attr(data-ph); color: var(--text-faint); pointer-events: none; }
.psite .ps-hero [data-ed]:hover { outline-color: rgba(255, 255, 255, .55); }
.psite .ps-hero [data-ed]:focus { outline-color: #fff; }
.psite .ps-hero [data-ed]:empty::before { color: rgba(255, 255, 255, .6); }
.psite [data-ed].is-over { outline: 2px solid var(--danger); }
.psite .ps-brand [data-ed] { min-width: 4ch; white-space: nowrap; }
.psite .ps-ed-area { min-height: 6em; line-height: 1.7; }

.psite .ps-ed-logo {
  display: grid; place-items: center; padding: 0; overflow: hidden; cursor: pointer;
  border: 1.5px dashed var(--border-strong); background: var(--surface-alt); color: var(--text-muted);
}
.psite .ps-ed-logo img { width: 100%; height: 100%; object-fit: cover; }
/* Logo eemaldamise „×" logo nurgas (muutja) */
.psite .ps-ed-logow { position: relative; display: inline-flex; flex: none; }
.psite .ps-ed-logow .ps-ed-logo-x { top: -8px; right: -8px; width: 22px; height: 22px; }
.psite .ps-ed-logow .ps-ed-logo-x svg { width: 13px; height: 13px; }
.psite .ps-ed-logo:hover { border-color: var(--primary); color: var(--primary-dark); }

.psite .ps-ed-cover { position: absolute; top: 16px; right: 16px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; z-index: 2; }
.psite .ps-ed-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; cursor: pointer;
  border: 0; border-radius: var(--pill); font: inherit; font-size: .9rem; font-weight: 700;
  background: rgba(15, 14, 14, .62); color: #fff; backdrop-filter: blur(8px);
}
.psite .ps-ed-chip:hover { background: rgba(15, 14, 14, .82); }

/* Kaanepiltide paneel (muutja): arvuti/telefon × hele/tume */
.psite .ps-ed-covers { position: relative; text-align: left; }
.psite .ps-ed-covers > summary { list-style: none; }
.psite .ps-ed-covers > summary::-webkit-details-marker { display: none; }
.psite .ps-cv-panel {
  position: absolute; top: calc(100% + 8px); right: 0; width: min(440px, calc(100cqi - 32px));
  padding: 14px; border-radius: var(--radius); background: var(--surface); color: var(--text);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.psite .ps-cv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.psite .ps-cv { display: grid; gap: 6px; }
.psite .ps-cv b { font-size: .84rem; }
.psite .ps-cv-img {
  aspect-ratio: 16 / 10; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--surface-alt); border: 1px solid var(--border);
}
.psite .ps-cv-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.psite .ps-cv-img.is-empty {
  display: grid; place-items: center; padding: 8px; text-align: center;
  border-style: dashed; font-size: .76rem; color: var(--text-faint);
}
.psite .ps-cv-btns { display: flex; flex-wrap: wrap; gap: 6px; }
/* Läbipaistvuse liugurid paneeli all: päike = hele teema, kuu = tume teema;
   rada tumedast heledaks — paremale = heledam (läbipaistvam) kaas. */
.psite .ps-dim { display: grid; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.psite .ps-dim-h { font-size: .84rem; }
.psite .ps-dim-row { display: grid; grid-template-columns: 28px 1fr 46px; gap: 10px; align-items: center; }
.psite .ps-dim-ic {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-alt); color: var(--text);
}
.psite .ps-dim-ic svg { width: 16px; height: 16px; }
.psite .ps-dim output { text-align: right; font-size: .84rem; font-weight: 700; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.psite .ps-dim { -webkit-user-select: none; user-select: none; cursor: default; caret-color: transparent; }
/* Liuguri ala sama kõrge kui nupp (24 px): muidu läks nupu serva klikk sildile ja
   brauser alustas seal tekstivalikut — tekkis kirjutamiskursor (founder 2026-10-20).
   Rada joonistatakse eraldi (::-webkit-slider-runnable-track / ::-moz-range-track). */
.psite .ps-dim input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 24px; margin: 0;
  background: transparent; cursor: pointer;
}
.psite .ps-dim input[type=range]::-webkit-slider-runnable-track {
  height: 10px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: linear-gradient(90deg, #0a0a0c, #9a9aa3 55%, #f4f4f6);
}
.psite .ps-dim input[type=range]::-moz-range-track {
  height: 10px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: linear-gradient(90deg, #0a0a0c, #9a9aa3 55%, #f4f4f6);
}
.psite .ps-dim input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin-top: -7px; border-radius: 50%;
  background: #fff; border: 3px solid var(--primary); box-shadow: var(--shadow-md); cursor: grab;
}
.psite .ps-dim input[type=range]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--primary);
  box-shadow: var(--shadow-md); cursor: grab;
}
.psite .ps-dim input[type=range]:active::-webkit-slider-thumb { cursor: grabbing; }
.psite .ps-dim input[type=range]:active::-moz-range-thumb { cursor: grabbing; }
.psite .ps-dim input[type=range]:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.psite .ps-cv-btns .ps-ed-chip { padding: 6px 10px; font-size: .78rem; gap: 5px; }
.psite .ps-cv-btns .ps-ed-chip svg { width: 14px; height: 14px; }

.psite .ps-ed-ph { position: relative; }
.psite .ps-ed-ph img { cursor: default; }
.psite .ps-ed-ph img:hover { transform: none; box-shadow: none; }
.psite .ps-ed-x {
  position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; padding: 0;
  display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(15, 14, 14, .66); color: #fff;
}
.psite .ps-ed-x:hover { background: var(--danger); }
.psite .ps-ed-add {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  aspect-ratio: 4 / 3; border-radius: var(--radius-sm); cursor: pointer; font: inherit; font-weight: 700;
  border: 1.5px dashed var(--brand-a40); background: var(--brand-a08); color: var(--primary-dark);
}
.psite .ps-ed-add:hover { border-color: var(--primary); background: var(--brand-a14); }
.psite .ps-ed-add .ico { font-size: 1.6rem; }

.psite .ps-ed-faq {
  display: grid; gap: 10px; text-align: left; margin-bottom: 10px; padding: 16px 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.psite .ps-ed-q { font-weight: 700; }
.psite .ps-ed-faq .ps-faq-a { margin: 0; }
.psite .ps-ed-link {
  justify-self: start; border: 0; background: none; padding: 0; cursor: pointer;
  font: inherit; font-size: .88rem; font-weight: 600; color: var(--danger);
}
.psite .ps-faq-l > [data-add] { margin-top: 8px; gap: 6px; }

/* Hinnakirja kaart muutjas: kestus ja hind väljadena kaardi jaluses */
.psite .ps-ed-offer { position: relative; }
.psite .ps-ed-of-f { align-items: center; flex-wrap: wrap; }
.psite .ps-ed-of-f select,
.psite .ps-ed-price input {
  font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 7px 9px;
}
.psite .ps-ed-of-f select { font-size: .9rem; }
/* Kus teenust osutatakse (kliendi juures / minu juures / digitaalselt) — oma rida kaardi all */
.psite .ps-ed-loc {
  display: block; width: 100%; margin-top: 8px; font: inherit; font-size: .9rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 7px 9px;
}
.psite .ps-ed-loc:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.psite .ps-ed-price { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--primary-dark); }
.psite .ps-ed-price input { width: 88px; text-align: right; font-weight: 800; font-size: 1.05rem; color: var(--primary-dark); }
.psite .ps-ed-of-f select:focus,
.psite .ps-ed-price input:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.psite .ps-ed-price input.is-over { border-color: var(--danger); }
.psite .ps-cards > .ps-ed-add { aspect-ratio: auto; min-height: 220px; }

/* Teenuse pildi kategooria — kiip pildi peal (vasak ülanurk) */
.psite .ps-ed-catpick {
  position: absolute; top: 8px; left: 8px; right: 48px; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px; width: max-content; max-width: calc(100% - 56px);
  padding: 6px 10px; border-radius: var(--pill); cursor: pointer;
  background: rgba(15, 14, 14, .66); color: #fff; backdrop-filter: blur(8px);
}
.psite .ps-ed-catpick:hover { background: rgba(15, 14, 14, .82); }
.psite .ps-ed-catpick select {
  min-width: 0; max-width: 100%; border: 0; background: transparent; color: #fff; cursor: pointer;
  font: inherit; font-size: .88rem; font-weight: 700; text-overflow: ellipsis;
}
.psite .ps-ed-catpick select:focus { outline: none; }
.psite .ps-ed-catpick option, .psite .ps-ed-catpick optgroup { color: var(--text); background: var(--surface); }
/* Teenuse oma pilt — kiibid kategooria valiku all */
.psite .ps-ed-offup { position: absolute; top: 48px; left: 8px; right: 8px; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.psite .ps-ed-offup .ps-ed-chip { padding: 6px 10px; font-size: .85rem; }

/* "Paku juurde" (AI) ja AI soovitatud teenuse märk */
.psite .ps-ed-aioffers { margin-top: 24px; gap: 8px; }
.psite .ps-ed-aioffers[disabled] { opacity: .6; cursor: progress; transform: none; }
.psite .ps-ed-aibadge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: var(--pill); font-size: .78rem; font-weight: 700;
  background: var(--brand-a14); color: var(--primary-dark);
}
