/* Load after the original public-page styles. Navigation and content use their existing markup. */
@import url("/fonts/onest.css");

body.w {
  --text: Onest, system-ui, sans-serif;
  --display: var(--text);
  --page-title-size: 32px;
  --section-title-size: 24px;
  --action-size: 32px;
  --intro-space: 32px;
  font-family: var(--text);
  zoom: 1;
}

html[lang] body.w main h1 {
  font: 600 var(--page-title-size)/1.15 var(--display);
  color: #15283f;
  letter-spacing: -.035em;
  text-wrap: pretty;
}
body.w main :is(h2.h2, .marketing-section-head h2, .w-sec-head h2) {
  font: 600 var(--section-title-size)/1.2 var(--display);
  letter-spacing: -.025em;
}
body.w main :is(.lead, .marketing-section-head > p, .request-intro > p:first-of-type) {
  font: 400 16px/1.55 var(--text);
}
body.w .marketing-hero, body.w .hero > .wrap,
body.w .w-hero > .w-hero-grid, body.w main > .demo-choice:first-child {
  padding-block: var(--intro-space);
}
/* The original integrations page sets its heading padding directly on the wrapper. */
body.w .w-hero > .w-sec[style*="padding-block"] { padding-block: var(--intro-space) !important; }
body.w :is(.marketing-copy, .hero-copy, .w-hero-copy) { gap: 14px; }
body.w .marketing-preview { padding: 16px; border-radius: 12px; }
body.w .marketing-preview .preview-top { margin-bottom: 10px; }
body.w .marketing-preview a { margin-top: 6px; padding: 10px 12px; gap: 10px; border-radius: 7px; }
body.w .marketing-preview a > span:first-child { width: 26px; height: 26px; border-radius: 6px; font-size: 14px; }
body.w .marketing-preview small { margin-top: 2px; }
body.w .w-nav { min-height: 60px; }

body.w .w-head :is(.w-links > a, .w-login, .w-menu-btn) {
  font: 550 14px/1.3 var(--text);
}
body.w .w-nav .brand-name { font: 700 24px/1 var(--display); letter-spacing: -.045em; }
body.w .w-nav .brand svg { width: 32px; height: 32px; }
body.w .w-head .w-links > a[aria-current="page"] { color: #163e9e; }
body.w :is(main, .w-head) .btn, body.w .w-head .w-menu-btn,
body.w main button[type="submit"], body.w .ff-cookie-actions button,
body.w .w-head .w-links > a[href="/demo"] {
  box-sizing: border-box;
  min-height: var(--action-size);
  padding: 5px 12px;
  border-radius: 7px;
  box-shadow: none;
  font: 600 14px/1.3 var(--text);
  text-decoration: none;
}
body.w :is(main, .w-head) a.btn-ghost { color: #24426c; background: #fff; border: 1px solid #bdcadc; }
body.w :is(main, .w-head) a.btn-ghost:hover { background: #f2f6fd; border-color: #7994bf; }
body.w :is(main, .w-head) a.btn:is([href*="/demo"], [href*="-demo"]),
body.w .w-head .w-links > a[href="/demo"], body.w :is(main, .w-head) .btn-demo {
  background: #b94b00; color: white; border: 1px solid #b94b00;
}
body.w :is(main, .w-head) a.btn:is([href*="/demo"], [href*="-demo"]):hover,
body.w .w-head .w-links > a[href="/demo"]:hover, body.w :is(main, .w-head) .btn-demo:hover {
  background: #983e00; border-color: #983e00;
}
body.w .w-head .w-request { color: #163e9e; background: #f0f4fc; border: 1px solid #c5d2e8; }
body.w .w-head .w-request:hover { background: #e5edfb; border-color: #7994bf; }
body.w main .form > button[type="submit"] { align-self: center; }
body.w :is(.w-head a, .w-head button, main .btn, main button[type="submit"]):focus-visible {
  outline: 3px solid #2459d3; outline-offset: 3px;
}

@media (max-width: 760px) {
  body.w { --page-title-size: 26px; --section-title-size: 21px; --intro-space: 24px; }
  body.w .w-nav { min-height: 56px; padding-block: 6px; }
  body.w main h1 .nowrap { white-space: normal; }
}
@media (pointer: coarse), (max-width: 600px) {
  body.w { --action-size: 44px; }
  body.w .w-head.open .w-links > a { min-height: 44px; box-sizing: border-box; align-content: center; }
}

/* 23.11.2026: в меню шапки пункт «Juhendid» — шапка в одну строку на 1161–1320 px (русская была в две уже на 1161–1200):
   кнопка «Saada päring» прячется до 1320 px (до 1100 px её и так нет), промежутки меню чуть уже до 1240 px. */
@media (max-width: 1320px) { body.w .w-head .w-right .w-request { display: none; } }
@media (max-width: 1240px) { body.w .w-head .w-links { gap: 4px 14px; } }
