/* ==========================================================================
   ДРУГИТЕ СТРАНИ — услуги, проекти, контакт, приватност, благодарност
   Тука е само она што го нема почетната страна. Боите, фонтовите, менито,
   подножјето и копчињата доаѓаат од zaednicko.css.
   ========================================================================== */

/* ---------- Наслов на страната ---------- */

.hero--page { padding-block: clamp(40px, 6vw, 92px) clamp(44px, 6vw, 84px); }
.hero--page .h1 { font-size: clamp(2.3rem, 4.8vw + .5rem, 4.4rem); }
.phead { display: grid; gap: clamp(20px, 2.4vw, 30px); justify-items: start; max-width: 54rem; }

/* Кратки линкови до деловите на страната */
.jump { display: flex; flex-wrap: wrap; gap: 10px; }
.jump a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1.5px solid var(--line); border-radius: 999px;
  font-weight: 500; font-size: .95rem; text-decoration: none;
  transition: border-color .25s, background-color .25s, color .25s;
}
.jump a:hover { border-color: var(--deep); background: var(--deep); color: #fff; }

.band { background: var(--sand); }
.sec--flush { padding-top: 0; }
.pill {
  display: inline-flex; align-items: center; padding: 3px 12px; border-radius: 999px;
  background: var(--sand); color: var(--deep); font-size: .82rem; font-weight: 600;
}
.band .pill { background: var(--white); }
.num { font: 700 1rem/1.5 var(--font-d); color: var(--teal); font-variant-numeric: tabular-nums; }

/* ---------- Услуги: што работи асистентот ---------- */

.sec-head--row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }

.roles {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--white); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
}
.role { display: grid; gap: 14px; align-content: start; padding: clamp(24px, 3vw, 40px); }
.role + .role { border-left: 1px solid var(--line); }
.role > p { color: var(--muted); }
.role .ticks { font-size: .98rem; margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--line-soft); }

.roles__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px;
  margin-top: clamp(24px, 3vw, 36px);
}

.who { margin-top: clamp(48px, 7vw, 96px); display: grid; gap: clamp(22px, 3vw, 34px); }
.who__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 36px); }
.who__item { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 1.5px solid var(--ink); }
.who__item h4 { margin: 0; font: 700 1.08rem/1.3 var(--font-d); letter-spacing: -.01em; }
.who__item p { color: var(--muted); font-size: .97rem; }

@media (max-width: 899px) {
  .roles { grid-template-columns: minmax(0, 1fr); }
  .role + .role { border-left: 0; border-top: 1px solid var(--line); }
  .who__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 479px) { .who__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Услуги: рачно наспроти автоматски ---------- */

.swap { display: grid; gap: 12px; margin-top: clamp(28px, 4vw, 48px); }
.swap__cols, .swap__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(14px, 2.6vw, 44px); }
.swap__cols { font: 700 .95rem/1.3 var(--font-d); color: var(--muted); }
.swap__rows { display: grid; gap: 12px; }
.swap__old, .swap__new {
  display: flex; align-items: center; min-height: 62px; padding: 12px 20px; border-radius: 12px;
}
.swap__old {
  border: 1.5px dashed rgba(16, 41, 43, .3); color: var(--muted);
  text-decoration: line-through; text-decoration-color: transparent;
  transition: text-decoration-color .5s ease .35s;
}
.swap__new { background: var(--deep); color: #fff; font-weight: 500; }
.js .swap__new { opacity: 0; transform: translateX(calc(-100% - clamp(14px, 2.6vw, 44px))); transition: transform .85s var(--ease), opacity .35s ease; }
.js .swap__row.is-in .swap__new { opacity: 1; transform: none; }
.swap__row.is-in .swap__old, html:not(.js) .swap__old { text-decoration-color: currentColor; }
.svc-price { margin-top: clamp(22px, 3vw, 32px); color: var(--muted); }

@media (max-width: 699px) {
  .swap__cols { display: none; }
  .swap__row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .swap__rows { gap: 22px; }
  .swap__old, .swap__new { min-height: 0; padding: 14px 16px; }
  .js .swap__new { transform: translateY(-14px); }
}

/* ---------- Два столба: наслов лево, содржина десно ---------- */

.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.split__body { display: grid; gap: clamp(18px, 2.2vw, 26px); justify-items: start; }
@media (max-width: 899px) { .split { grid-template-columns: minmax(0, 1fr); } }

.custom p.custom__t { margin-top: 14px; color: var(--muted); max-width: 34em; }

/* ---------- Споредба на пакетите ---------- */

.cmp-wrap {
  margin-top: clamp(28px, 4vw, 48px); overflow-x: auto;
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
}
.cmp { width: 100%; border-collapse: collapse; font-size: .97rem; }
.cmp caption { text-align: left; padding: 20px clamp(14px, 2.4vw, 28px) 6px; font: 700 1.15rem/1.3 var(--font-d); letter-spacing: -.015em; }
.cmp th, .cmp td { padding: 14px clamp(8px, 2.4vw, 28px); text-align: center; border-top: 1px solid var(--line-soft); }
.cmp thead th { border-top: 0; font: 700 1rem/1.3 var(--font-d); vertical-align: bottom; }
.cmp th:first-child { text-align: left; width: 40%; font-weight: 500; }
.cmp tbody th { font-family: var(--font-t); }
.cmp td:nth-child(3), .cmp thead th:nth-child(3) { background: rgba(239, 229, 214, .55); }
.cmp .big td { font: 800 1.1rem/1.2 var(--font-d); letter-spacing: -.02em; }
.yes { display: inline-block; width: 14px; height: 8px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg) translateY(-3px); }
.no { color: rgba(16, 41, 43, .45); }
@media (max-width: 559px) {
  .cmp { font-size: .86rem; }
  .cmp thead th { font-size: .88rem; }
  .cmp .big td { font-size: .95rem; }
  .cmp th:first-child { width: 36%; }
}

/* ---------- Проекти ---------- */

.proj__head { display: grid; gap: 18px; justify-items: start; max-width: 50rem; margin-bottom: clamp(32px, 5vw, 60px); }
.proj__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); }
.duo__item { display: grid; gap: 12px; align-content: start; padding-top: 24px; border-top: 1.5px solid var(--ink); }
.duo__item p { color: var(--muted); }

.feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); margin-top: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line-soft); }
.feat > div { display: grid; gap: 4px; align-content: start; padding: 18px 0 20px; border-top: 1px solid var(--line-soft); }
.feat dt { font: 700 1.05rem/1.4 var(--font-d); letter-spacing: -.01em; }
.feat dd { color: var(--muted); font-size: .98rem; }

.warn { font-size: .92rem; color: var(--muted); max-width: 30em; }

.plist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.pcard {
  display: grid; gap: 12px; align-content: start; justify-items: start;
  padding: clamp(22px, 2.6vw, 32px); border-radius: 20px;
  background: var(--white); border: 1px solid var(--line);
}
.pcard p { color: var(--muted); font-size: .98rem; }
.pcard .link { margin-top: 6px; }
.pcard--soon { background: transparent; border: 1.5px dashed rgba(16, 41, 43, .3); }

@media (max-width: 899px) {
  .feat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .duo, .feat, .plist { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Контакт ---------- */

.kgrid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (max-width: 899px) { .kgrid { grid-template-columns: minmax(0, 1fr); } }

.form {
  display: grid; gap: 22px; padding: clamp(22px, 3.4vw, 46px);
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 44px 70px -52px rgba(16, 41, 43, .5);
}
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 599px) { .form__grid { grid-template-columns: minmax(0, 1fr); } }
.fld { display: grid; gap: 8px; align-content: start; }
.fld label { font-weight: 600; font-size: .95rem; }
.fld .opt { font-weight: 400; color: var(--muted); }
.inp {
  width: 100%; min-height: 54px; padding: 0 16px;
  border: 1.5px solid rgba(16, 41, 43, .38); border-radius: 12px;
  background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem;
  transition: border-color .2s, background-color .2s;
}
.inp::placeholder { color: #6B7B7D; opacity: 1; }
.inp:hover { border-color: var(--ink); }
.inp:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-color: var(--deep); background: var(--white); border-radius: 12px; }
textarea.inp { min-height: 150px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
select.inp {
  -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310292B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--deep); }
.check label { font-size: .95rem; color: var(--muted); }
.form .btn { justify-self: start; }
@media (max-width: 479px) { .form .btn { justify-self: stretch; } }

.kside { display: grid; gap: clamp(24px, 3vw, 36px); }
.cinfo > div { display: grid; gap: 2px; padding: 16px 0; border-top: 1px solid var(--line); }
.cinfo > div:first-child { border-top: 1.5px solid var(--ink); }
.cinfo dt { font-size: .86rem; color: var(--muted); }
.cinfo dd { font-weight: 600; }

.next { padding: clamp(24px, 3vw, 36px); border-radius: 20px; background: var(--deep); color: #fff; display: grid; gap: 20px; }
.next ol { display: grid; gap: 16px; }
.next li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: baseline; color: #C7DAD8; }
.next li > span:first-child { font: 800 1.3rem/1 var(--font-d); color: #A9CFCB; }
.next .ph { background: rgba(255, 255, 255, .1); outline-color: rgba(255, 255, 255, .55); color: #fff; }

/* ---------- Приватност (долг текст) ---------- */

.legal { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.toc { position: sticky; top: calc(var(--top) + 28px); display: grid; gap: 14px; }
.toc p { font: 700 .95rem/1.3 var(--font-d); color: var(--muted); }
.toc ol { display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 16px; font-size: .92rem; line-height: 1.35; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--teal); }
@media (max-width: 899px) {
  .legal { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
}

.notice {
  padding: 16px 20px; border-radius: 12px; max-width: 44rem;
  background: rgba(181, 84, 26, .08); outline: 1px dashed rgba(181, 84, 26, .6);
  font-size: .97rem;
}
.prose { display: grid; gap: clamp(32px, 4vw, 48px); max-width: 44rem; }
.prose section { display: grid; gap: 12px; scroll-margin-top: calc(var(--top) + 20px); }
.prose h2 { font: 700 clamp(1.3rem, 1vw + 1rem, 1.6rem)/1.2 var(--font-d); letter-spacing: -.02em; margin-bottom: 2px; }
.prose p, .prose li { color: #2B4245; }
.prose ul { display: grid; gap: 8px; }
.prose li { position: relative; padding-left: 22px; }
.prose li::before { content: ""; position: absolute; left: 4px; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--deep); font-weight: 600; text-underline-offset: 4px; }

/* ---------- Благодарност ---------- */

.hero--thanks { min-height: calc(100vh - var(--top) - 220px); display: grid; align-items: center; }
.log__t--txt { font-size: .9rem; line-height: 1.7; }

/* На тесен екран долгите [PLACEHOLDER] ознаки смеат да се прекршат во два реда */
.kside .ph, .log .ph, .faq .ph, .pcard .ph, .cmp .ph, .prose .ph { white-space: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero--thanks .h1 { font-size: clamp(2.3rem, 4.8vw + .5rem, 4.4rem); }

/* Копчиња за Viber и јавување (контакт) */
.kbtns { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .kbtns .btn { flex: 1 1 100%; } }

/* „Кој ќе ви одговори“ */
.me { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 20px; align-items: start; padding-top: 24px; border-top: 1.5px solid var(--ink); }
.me__pic { position: relative; width: 88px; height: 88px; border-radius: 50%; overflow: hidden; background: var(--sand); display: grid; place-items: center; }
.me__pic span { font: 800 1.6rem/1 var(--font-d); color: var(--deep); letter-spacing: -.03em; }
.me__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.me__txt { display: grid; gap: 8px; }
.me__txt p { color: var(--muted); font-size: .97rem; }
.me__txt strong { color: var(--ink); font-weight: 600; }
.me .ph { white-space: normal; }

/* Слика од админ панелот (проекти) */
.shotwrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; margin-top: clamp(48px, 7vw, 96px); }
.shotwrap__txt { display: grid; gap: 16px; align-content: start; }
.shotwrap__txt p { color: var(--muted); }
.shot img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 44px 70px -52px rgba(16, 41, 43, .5); background: #EEF2F6; }
.shot figcaption { margin-top: 12px; font-size: .86rem; color: var(--muted); }
@media (max-width: 899px) { .shotwrap { grid-template-columns: minmax(0, 1fr); } }

/* За нас */
.who__item h3 { margin: 0; font: 700 1.08rem/1.3 var(--font-d); letter-spacing: -.01em; }
.me--big { border-top: 0; padding-top: 0; align-items: center; }
.me--big .me__txt { gap: 2px; }
.split__body .ph { white-space: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.split__body > .lead .ph { font-size: .9rem; }

/* На телефон: споредбената табела ги повторува картичките, па ја криеме */
@media (max-width: 699px) { .cmp-wrap { display: none; } }

/* Слика од админ панелот: на телефон се отвора поголема со допир */
.shot__link { display: block; border-radius: 16px; }
.shot__tap { display: none; }
@media (max-width: 699px) { .shot__tap { display: inline; } }

/* ==========================================================================
   СТРАНИ ПО ДЕЈНОСТ (ordinacii, saloni, apartmani, prodavnici)
   ========================================================================== */

.crumb { font-size: .95rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; }
.crumb a { color: var(--teal); text-decoration: none; font-weight: 600; }
.crumb a:hover { text-decoration: underline; text-underline-offset: 4px; }
.h1 .ln--o { color: var(--orange); }

/* Демо со пример: пораките се појавуваат една по една */
.chat--seq { min-height: 0; }
.js .ui--seq .chat--seq .msg { opacity: 0; transform: translateY(8px); }
.js .ui--seq.is-in .chat--seq .msg {
  opacity: 1; transform: none;
  transition: opacity .5s ease, transform .6s var(--ease);
  transition-delay: calc(300ms + var(--i, 0) * 550ms);
}
.mail { display: grid; gap: 14px; padding: 18px; }
.mail__from { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: #0C3A33; padding: 10px 12px; border-radius: 10px; background: #F0F7F5; }
.mail__from svg { width: 18px; height: 18px; flex: none; }
.mail__dl { margin: 0; }
.mail__dl div { display: grid; grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr); gap: 4px 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: .94rem; }
.mail__dl dt { color: var(--muted); }
.mail__dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.js .ui--seq .mail { opacity: 0; transform: translateY(10px); }
.js .ui--seq.is-in .mail { opacity: 1; transform: none; transition: opacity .6s ease 3.3s, transform .7s var(--ease) 3.3s; }

/* Што добивате */
.feat { margin-top: clamp(28px, 4vw, 48px); }

/* Препорачан пакет */
.pick {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 24px clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(24px, 3.4vw, 44px); background: var(--sand); border-radius: 20px;
}
.pick__lbl { font-size: .86rem; font-weight: 600; color: var(--teal); margin-bottom: 6px; }
.pick .tier__price { margin-top: 14px; }
.pick__cta { display: grid; gap: 14px; justify-items: start; }
@media (max-width: 899px) {
  .pick { grid-template-columns: minmax(0, 1fr); }
}
