/* Pulso — публичният сайт. Палитра „Монитор“ (токените --pulso-* от темата на продукта),
   шрифт Lato (SIL OFL 1.1, локално). Без вградени стилове: CSP default-src 'self'. */

@font-face {
  font-family: "Lato";
  src: url("/assets/fonts/lato-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("/assets/fonts/lato-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --pulso-bg: #F2F5F9;
  --pulso-surface: #FFFFFF;
  --pulso-surface-2: #E4EAF2;
  --pulso-text: #0E1C31;
  --pulso-muted: #4B5B70;
  --pulso-border: #C9D3E0;
  --pulso-primary: #173A63;
  --pulso-on-primary: #FFFFFF;
  --pulso-accent: #08935A;
  --pulso-success: #1B7A4B;
  --pulso-error: #C02F3C;
  --paper: url("/assets/paper-light.svg");
  --shadow: 0 1px 2px rgba(14, 28, 49, .06), 0 8px 24px rgba(14, 28, 49, .08);
  --shadow-lg: 0 2px 6px rgba(14, 28, 49, .08), 0 24px 60px rgba(14, 28, 49, .16);
  --radius: 14px;
  --wrap: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --pulso-bg: #07111E;
    --pulso-surface: #0D1A2C;
    --pulso-surface-2: #14243A;
    --pulso-text: #E3EBF5;
    --pulso-muted: #8E9FB5;
    --pulso-border: #223550;
    --pulso-primary: #74A9E6;
    --pulso-on-primary: #06101E;
    --pulso-accent: #2EE08C;
    --pulso-success: #4CC58A;
    --pulso-error: #FF7482;
    --paper: url("/assets/paper-dark.svg");
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 24px 60px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--pulso-bg);
  color: var(--pulso-text);
  font: 400 17px/1.6 "Lato", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--pulso-primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--pulso-accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.muted { color: var(--pulso-muted); font-size: .95rem; }
.paper { background-color: var(--pulso-bg); background-image: var(--paper); background-size: 50px 50px; }

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

/* ── бутони ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--pulso-primary); color: var(--pulso-on-primary);
  border: 0; border-radius: 10px; padding: .7em 1.2em;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn:hover { filter: brightness(1.1); box-shadow: 0 6px 18px rgba(23, 58, 99, .25); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-sm { padding: .45em .9em; font-size: .95rem; }
.btn-lg { padding: .85em 1.6em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }

/* ── горна лента ── */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--pulso-surface) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--pulso-border);
}
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand img { height: 36px; width: auto; }
.top-nav { display: flex; align-items: center; gap: 28px; }
.top-nav a:not(.btn) { color: var(--pulso-text); text-decoration: none; font-weight: 700; font-size: .95rem; }
.top-nav a:not(.btn):hover { color: var(--pulso-primary); }

/* ── начало ── */
.hero { padding: 72px 0 88px; border-bottom: 1px solid var(--pulso-border); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; color: var(--pulso-accent); font-weight: 700; font-size: .95rem;
  letter-spacing: .02em; margin-bottom: 1em;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 26px; height: 2px; margin-right: 10px;
  vertical-align: middle; background: var(--pulso-accent);
}
.lead { font-size: 1.18rem; color: var(--pulso-muted); max-width: 34em; }
.hero-cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 28px; }
.hero-visual { position: relative; padding-bottom: 40px; }
.hero-visual .frame-browser { box-shadow: var(--shadow-lg); }
.hero-visual .frame-phone {
  position: absolute; right: -8px; bottom: 0; width: 26%; min-width: 120px;
  box-shadow: var(--shadow-lg);
}

/* ── рамки за екраните ── */
.frame { background: var(--pulso-surface); border: 1px solid var(--pulso-border); overflow: hidden; }
.frame img { width: 100%; height: auto; }
.frame-browser { border-radius: 12px; }
.frame-bar { display: flex; gap: 6px; padding: 9px 12px; background: var(--pulso-surface-2); border-bottom: 1px solid var(--pulso-border); }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--pulso-border); }
.frame-phone { border-radius: 26px; border: 6px solid #0E1C31; background: #0E1C31; }
.frame-phone img { border-radius: 18px; }
@media (prefers-color-scheme: dark) {
  .frame-phone { border-color: #223550; background: #223550; }
}

/* ── секции ── */
.section { padding: 88px 0; }
.section-alt { background: var(--pulso-surface); border-top: 1px solid var(--pulso-border); border-bottom: 1px solid var(--pulso-border); }
.section-lead { color: var(--pulso-muted); font-size: 1.08rem; margin-bottom: 36px; max-width: 42em; }
#produkt p { font-size: 1.1rem; }

/* ── модули ── */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card { background: var(--pulso-surface); border: 1px solid var(--pulso-border); border-radius: var(--radius); }
.cards .card { padding: 24px; background: var(--pulso-bg); transition: border-color .15s ease, transform .15s ease; }
.cards .card:hover { border-color: var(--pulso-accent); transform: translateY(-2px); }
.cards .card p { color: var(--pulso-muted); margin: 0; font-size: .98rem; }
.card-ico {
  width: 44px; height: 44px; padding: 10px; margin-bottom: 14px; border-radius: 12px;
  color: var(--pulso-accent); background: var(--pulso-surface); border: 1px solid var(--pulso-border);
}

/* ── екрани ── */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.shot { margin: 0; }
.shot .frame { box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.shot:hover .frame { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.shot figcaption { margin-top: 14px; color: var(--pulso-muted); font-size: .98rem; }
.shot figcaption strong { display: block; color: var(--pulso-text); font-size: 1.05rem; }

/* ── защо ── */
.why { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 40px; }
.why li { border-top: 3px solid var(--pulso-accent); padding-top: 18px; }
.why p { color: var(--pulso-muted); margin: 0; }

/* ── формата ── */
.cta-section { border-top: 1px solid var(--pulso-border); }
.form-wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.form-intro p { font-size: 1.1rem; }
.form-intro .muted { font-size: .95rem; }
.form { padding: 32px; box-shadow: var(--shadow-lg); }
.field { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.req { color: var(--pulso-error); }
.opt { font-weight: 400; color: var(--pulso-muted); }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--pulso-text);
  background: var(--pulso-bg); border: 1px solid var(--pulso-border); border-radius: 10px;
  padding: .65em .8em; transition: border-color .12s ease, box-shadow .12s ease;
}
select { appearance: none; -webkit-appearance: none; padding-right: 2.2em;
  background-image: url("/assets/chevron.svg"); background-repeat: no-repeat; background-position: right .8em center; background-size: 12px; }
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pulso-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pulso-primary) 25%, transparent); }
[aria-invalid="true"] { border-color: var(--pulso-error) !important; }
.field-err { color: var(--pulso-error); font-size: .88rem; margin: 4px 0 0; min-height: 0; }
.field-err:empty { display: none; }
.hint { color: var(--pulso-muted); font-size: .9rem; margin: -4px 0 14px; }
.field-check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; margin-top: 6px; }
.field-check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--pulso-primary); }
.field-check label { font-weight: 400; font-size: .93rem; color: var(--pulso-muted); margin: 0; }
.form-msg { background: color-mix(in srgb, var(--pulso-error) 12%, var(--pulso-surface)); color: var(--pulso-text);
  border-left: 4px solid var(--pulso-error); border-radius: 8px; padding: 10px 14px; font-size: .95rem; }
.form button[type="submit"] { margin-top: 12px; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.thanks { text-align: center; padding: 56px 32px; }
.thanks:focus { outline: none; }
.thanks-ico { width: 64px; height: 64px; margin: 0 auto 16px; color: var(--pulso-accent); }
.thanks p { color: var(--pulso-muted); margin: 0; }
[hidden] { display: none !important; }

/* ── долу ── */
.foot { border-top: 1px solid var(--pulso-border); background: var(--pulso-surface); padding: 28px 0; font-size: .95rem; color: var(--pulso-muted); }
.foot-in { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.foot-in span { margin-right: auto; }
.foot a { color: var(--pulso-muted); }

/* ── текстови страници (поверителност, благодарим) ── */
.doc { padding: 56px 0 88px; }
.doc h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.doc h2 { font-size: 1.3rem; margin-top: 1.8em; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .4em; }
.doc .card { padding: 32px; }
.placeholder { background: color-mix(in srgb, var(--pulso-accent) 16%, transparent); padding: 0 .3em; border-radius: 4px; font-weight: 700; }

/* ── адаптивност ── */
@media (max-width: 960px) {
  .hero-in, .form-wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 48px 0 64px; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .top-nav a:not(.btn) { display: none; }
  .brand img { height: 30px; }
  .section { padding: 60px 0; }
  .shots, .why { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form { padding: 22px 18px; }
  .hero-visual { padding-bottom: 28px; margin-right: 12px; }
  .hero-visual .frame-phone { right: -12px; width: 30%; min-width: 96px; border-width: 4px; border-radius: 18px; }
  .hero-visual .frame-phone img { border-radius: 13px; }
  .hero-cta { gap: 18px; }
  .lead { font-size: 1.08rem; }
}

/* ── доработки след прегледа на снимките ── */
.hero-in { grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.cards .card-note { background: var(--pulso-primary); border-color: var(--pulso-primary); color: var(--pulso-on-primary); display: flex; flex-direction: column; }
.cards .card-note p { color: var(--pulso-on-primary); opacity: .85; margin-bottom: 14px; }
.cards .card-note .link-arrow { color: var(--pulso-on-primary); margin-top: auto; }
.cards .card-note:hover { border-color: var(--pulso-accent); }
@media (max-width: 960px) { .hero-in { grid-template-columns: 1fr; } }
@media (prefers-color-scheme: dark) { .frame-browser img { filter: brightness(.82) contrast(1.05); } }
