/*
 * rabotno-vreme.mk — промотивна страница за WorkingTime.
 * Визуелниот јазик ја следи апликацијата (_knowledge/uiUxGuidelines.md):
 * остри агли, 1px линии, без сенки, статус = обоена точка, slate палета.
 */

:root {
    --ink: #0f172a;        /* slate-900 — наслови, primary копче */
    --text: #334155;       /* slate-700 */
    --muted: #64748b;      /* slate-500 */
    --line: #e2e8f0;       /* slate-200 */
    --line-soft: #f1f5f9;  /* slate-100 */
    --bg: #f8fafc;         /* slate-50 — позадина како во апликацијата */
    --surface: #ffffff;
    --accent: #2563eb;     /* blue-600 — линкови */
    --ok: #10b981;         /* emerald-500 — работа / присутен */
    --warn: #f59e0b;       /* amber-500 — пауза / внимание */
    --bad: #ef4444;        /* red-500 — неправилност */
    --ph: #b45309;         /* amber-700 — означува место што треба да се пополни */

    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
    --wrap: 1200px;
    --gutter: 16px;
    --header-h: 64px;
}

@media (min-width: 768px) {
    :root { --gutter: 32px; }
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

h1, h2, h3 {
    margin: 0;
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -0.015em;
}

p { margin: 0; }

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 100;
    background: var(--ink);
    color: #fff;
    padding: 8px 12px;
}
.skip:focus { left: 8px; }

/* ---------- Ознаки за место што треба да се пополни ---------- */

.ph {
    outline: 1px dashed var(--ph);
    outline-offset: 2px;
    color: var(--ph);
    background: #fffbeb;
}

/* ---------- Копчиња (h-9 во апликацијата; тука h-11/48 за допир) ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #1e293b; }

.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: #cbd5e1; background: var(--bg); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--line-soft); }

.btn-ghost-light { color: #fff; border-color: #64748b; }
.btn-ghost-light:hover { border-color: #cbd5e1; }

.contact :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

.btn-lg { min-height: 48px; padding: 0 24px; font-size: 17px; }

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(1.4) blur(8px);
    -webkit-backdrop-filter: saturate(1.4) blur(8px);
    border-bottom: 1px solid var(--line);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 100%;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }

.brand-mark {
    position: relative;
    width: 28px;
    height: 28px;
    background: var(--ink);
    flex: none;
}
.brand-mark::after {
    content: "";
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ok);
}

.nav {
    display: none;
    gap: 28px;
    margin-left: 16px;
}
.nav a { color: var(--text); font-size: 15px; }
.nav a:hover { color: var(--ink); text-decoration: none; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.lang {
    display: inline-flex;
    border: 1px solid var(--line);
    background: var(--surface);
}
.lang a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    line-height: 1.4;
}
.lang a:hover { color: var(--ink); text-decoration: none; }
.lang a[aria-current="page"] { background: var(--ink); color: #fff; }

.header-cta { min-height: 40px; padding: 0 14px; font-size: 15px; }
.header-cta .long { display: none; }

@media (min-width: 900px) {
    .nav { display: flex; }
}
@media (min-width: 640px) {
    .header-cta { padding: 0 16px; }
    .header-cta .long { display: inline; }
    .header-cta .short { display: none; }
}
@media (max-width: 359px) {
    .header-cta { display: none; }
}

/* ---------- Секции ---------- */

.section {
    padding: 72px 0;
    border-top: 1px solid var(--line);
}
@media (min-width: 768px) {
    .section { padding: 104px 0; }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { margin-top: 16px; font-size: 18px; color: var(--muted); }

/* ---------- Hero ---------- */

.hero { padding: 56px 0 72px; }
@media (min-width: 768px) {
    .hero { padding: 96px 0 104px; }
}

.hero-copy { max-width: 820px; }

.hero h1 {
    font-size: clamp(36px, 6.4vw, 64px);
    letter-spacing: -0.025em;
}
.hero h1 span { color: var(--muted); }

.hero-lead {
    max-width: 640px;
    margin-top: 24px;
    font-size: clamp(18px, 2.2vw, 21px);
    color: var(--text);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
    font-size: 15px;
    color: var(--muted);
}

/* Статус-точка — истиот знак како во апликацијата */
.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ok);
    flex: none;
}
.dot-warn { background: var(--warn); }
.dot-bad { background: var(--bad); }
.dot-muted { background: #cbd5e1; }

.hero-points li { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Screenshot рамка ---------- */

.shot {
    margin: 0;
    background: var(--surface);
    border: 1px solid var(--line);
}
.shot a { display: block; cursor: zoom-in; }
.shot img { width: 100%; }

.hero-shot { margin-top: 24px; }

/* ---------- Екрани ---------- */

.screens { display: grid; gap: 64px; }

.screen {
    display: grid;
    gap: 24px;
    align-items: center;
}
.screen-copy .num {
    display: block;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}
.screen-copy h3 { font-size: 24px; }
.screen-copy p { margin-top: 12px; font-size: 17px; color: var(--muted); }

@media (min-width: 1024px) {
    .screens { gap: 96px; }
    .screen { grid-template-columns: 4fr 8fr; gap: 56px; }
    .screen:nth-child(even) { grid-template-columns: 8fr 4fr; }
    .screen:nth-child(even) .screen-copy { order: 2; }
}

/* ---------- Уреди ---------- */

.split {
    display: grid;
    gap: 40px;
}
@media (min-width: 900px) {
    .split { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
}

.split .section-head { margin-bottom: 0; }

@media (min-width: 900px) {
    .split .section-head {
        position: sticky;
        top: calc(var(--header-h) + 32px);
    }
}

.facts {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}
.facts li {
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 16px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}
.facts .dot { margin-top: 9px; }
.facts .chip .dot { margin-top: 0; }
.facts strong { display: block; color: var(--ink); font-size: 17px; }
.facts span.txt { display: block; margin-top: 4px; color: var(--muted); }

.brands {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

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

.contact {
    padding: 80px 0;
    background: var(--ink);
    color: #cbd5e1;
}
@media (min-width: 768px) {
    .contact { padding: 112px 0; }
}
.contact .eyebrow { color: #94a3b8; }
.contact h2 { color: #fff; font-size: clamp(32px, 5vw, 48px); }
.contact-lead { max-width: 600px; margin-top: 16px; font-size: 19px; }

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.contact-lines {
    display: grid;
    gap: 0;
    margin: 48px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid #1e293b;
}
.contact-lines li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 24px;
    padding: 18px 0;
    border-bottom: 1px solid #1e293b;
}
.contact-lines .k { color: #94a3b8; font-size: 14px; }
.contact-lines .v { color: #fff; font-weight: 600; }
.contact-lines a.v:hover { text-decoration: underline; }

@media (min-width: 768px) {
    .contact-lines { grid-template-columns: repeat(2, 1fr); }
    .contact-lines li { display: block; padding: 20px 24px 20px 0; }
    .contact-lines li + li { padding-left: 24px; border-left: 1px solid #1e293b; }
    .contact-lines .v { display: block; margin-top: 4px; }
}

.contact .ph { background: transparent; color: #fcd34d; outline-color: #fcd34d; }

/* Лево текст и телефон, десно формата */
.contact-grid {
    display: grid;
    gap: 48px;
}
@media (min-width: 960px) {
    .contact-grid { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
}

/* ---------- Контакт форма (на темна позадина) ---------- */

.contact-form {
    display: grid;
    gap: 20px;
    padding: 28px;
    border: 1px solid #1e293b;
    background: #0b1222;
}
@media (max-width: 479px) {
    .contact-form { padding: 20px 16px; }
}

.contact-form .honey {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.form-row {
    display: grid;
    gap: 20px;
}
@media (min-width: 600px) {
    .form-row { grid-template-columns: 1fr 1fr; }
}

.form-group { display: grid; gap: 6px; min-width: 0; }

.contact-form label,
.contact-form legend {
    color: #e2e8f0;
    font-size: 15px;
    font-weight: 600;
}
.contact-form .opt { color: #94a3b8; font-weight: 400; }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #334155;
    border-radius: 0;
    background: #0f172a;
    color: #fff;
    font: inherit;
    font-size: 16px; /* без зум на iOS */
}
.contact-form textarea { min-height: 112px; resize: vertical; }
.contact-form ::placeholder { color: #94a3b8; }
.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 0;
    border-color: #fff;
}
.contact-form [aria-invalid="true"] { border-color: #f87171; }

.field-error { min-height: 0; color: #fca5a5; font-size: 14px; }
.field-error:empty { display: none; }

.contact-form .btn[disabled] { opacity: .55; cursor: not-allowed; }

.form-note { color: #94a3b8; font-size: 14px; }
.form-note:empty { display: none; }
.form-note a { color: #cbd5e1; text-decoration: underline; }

.form-status:empty { display: none; }
.form-status {
    padding: 12px 14px;
    border-left: 2px solid currentColor;
    font-size: 15px;
}
.form-status.success { color: #6ee7b7; background: rgba(16, 185, 129, .08); }
.form-status.error { color: #fca5a5; background: rgba(239, 68, 68, .08); }

/* ---------- Footer ---------- */

.site-footer {
    padding: 28px 0;
    background: var(--ink);
    border-top: 1px solid #1e293b;
    color: #94a3b8;
    font-size: 14px;
}
.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
}
.site-footer a { display: inline-block; padding: 4px 0; color: #cbd5e1; }
.site-footer .ph { background: transparent; color: #fcd34d; outline-color: #fcd34d; }

/* ---------- Lightbox ---------- */

.lightbox {
    width: min(1440px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100vh - 32px);
    padding: 0;
    border: 1px solid var(--line);
    background: var(--surface);
}
.lightbox::backdrop { background: rgba(15, 23, 42, .78); }
.lightbox img { width: 100%; height: auto; }
.lightbox-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 8px 8px 16px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    color: var(--ink);
    font-weight: 600;
}
.lightbox-close {
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.lightbox-close:hover { background: var(--bg); }
