/* Booking CTAs: inline card + banners, mobile sticky bar, slide-in card, booking modal.
   Light (paper / white, black text, site blue). Everything outside the flow is position:fixed,
   so nothing shifts the layout (CLS). Order of the rules: shared, inline, sticky, slide-in, drawer. */
:root {
  --cta-ink: #111;
  --cta-body: #2b2b2b;
  --cta-blue: #0050c9;
  --cta-blue-dark: #003f9f;
  --cta-paper: #f6f6f3;
  --cta-line: #e2e2dd;
  --cta-wa: #128c4a;
}

.cta-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 24px;
  border: 0; border-radius: 6px; background: var(--cta-blue); color: #fff; font: 700 16px/1 var(--font-sans, Arimo, sans-serif);
  cursor: pointer; transition: background-color .15s ease;
}
.cta-btn:hover { background: var(--cta-blue-dark); }
.cta-btn:focus-visible, .cta-sticky__wa:focus-visible, .cta-sticky__x:focus-visible, .cta-slidein__x:focus-visible {
  outline: 2px solid var(--cta-ink); outline-offset: 2px;
}
.cta-card .cta-card__title { margin: 0; font-size: 22px; line-height: 1.25; font-weight: 700; color: var(--cta-ink); letter-spacing: -.01em; }
.cta-card .cta-card__text, .cta-slidein .cta-card__text { margin: 8px 0 0; font-size: 16px; line-height: 1.55; color: var(--cta-body); }
.cta-card .cta-card__note, .cta-slidein .cta-card__note { margin: 10px 0 0; font-size: 13px; line-height: 1.4; color: #6b6b6b; }

/* ---- inline card (article body) ---- */
.cta-inline {
  display: flex; align-items: center; gap: 24px; margin: 40px 0; padding: 24px 28px;
  border: 1px solid var(--cta-line); border-radius: 6px; background: var(--cta-paper); text-align: start;
}
.cta-inline .cta-card__img { flex: none; width: 120px; height: auto; border-radius: 4px; object-fit: cover; }
.cta-inline .cta-card__body { flex: 1; min-width: 0; }
.cta-inline .cta-btn { margin-top: 16px; }
@media (max-width: 600px) {
  .cta-inline { flex-direction: column; align-items: stretch; gap: 14px; margin: 28px 0; padding: 20px; }
  .cta-inline .cta-card__img { width: 100%; max-height: 160px; }
  .cta-inline .cta-btn { width: 100%; }
}

/* ---- sticky bar: phones only ---- */
.cta-sticky { display: none; }
@media (max-width: 768px) {
  .cta-sticky {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 2000; display: flex; align-items: center; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--cta-line);
    box-shadow: 0 -4px 18px rgba(0, 0, 0, .08); transform: translateY(105%); visibility: hidden;
    transition: transform .25s ease, visibility 0s linear .25s;
  }
  .cta-sticky.is-visible { transform: none; visibility: visible; transition: transform .25s ease; }
  .cta-sticky__btn { flex: 1; min-height: 48px; }
  .cta-sticky__wa {
    display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; border: 1px solid var(--cta-line);
    border-radius: 6px; color: var(--cta-wa); background: #fff;
  }
  .cta-sticky__x { flex: none; width: 32px; height: 48px; border: 0; background: none; color: #6b6b6b; font-size: 26px; line-height: 1; cursor: pointer; }
}

/* ---- slide-in / exit-intent card ---- */
.cta-slidein {
  position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 2000; width: 340px; max-width: calc(100vw - 24px);
  padding: 20px 20px 18px; background: #fff; border: 1px solid var(--cta-line); border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .16); text-align: start; opacity: 0; transform: translateY(16px); visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.cta-slidein.is-visible { opacity: 1; transform: none; visibility: visible; transition: opacity .25s ease, transform .25s ease; }
.cta-slidein .cta-card__title { padding-inline-end: 24px; font-size: 17px; }
.cta-slidein__row { display: flex; align-items: center; gap: 12px; }
.cta-slidein__img { flex: none; width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.cta-slidein .cta-btn { width: 100%; margin-top: 14px; }
.cta-slidein__x {
  position: absolute; top: 6px; inset-inline-end: 8px; width: 32px; height: 32px; border: 0; background: none;
  color: #6b6b6b; font-size: 24px; line-height: 1; cursor: pointer;
}
@media (max-width: 768px) {
  /* small card, never more than 30% of the screen, never full screen */
  .cta-slidein {
    inset-inline: 12px; bottom: 12px; width: auto; max-width: none; max-height: 30vh; overflow: hidden; padding: 12px 14px;
  }
  .cta-slidein .cta-card__title { font-size: 16px; }
  .cta-slidein .cta-card__text { display: none; }
  .cta-slidein .cta-btn { min-height: 42px; margin-top: 10px; }
  .cta-slidein .cta-card__note { margin-top: 6px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-sticky, .cta-slidein, .cta-btn { transition: none !important; }
}

/* ---- arrow after the label (points forward: left in RTL, right in LTR) ---- */
.cta-btn--arrow::after { content: "\2190"; margin-inline-start: 10px; font-weight: 700; }
:lang(en) .cta-btn--arrow::after, :lang(ru) .cta-btn--arrow::after { content: "\2192"; }
.cta-btn--white { background: #fff; color: #111; }
.cta-btn--white:hover { background: #ededed; }
.cta-btn--wide { width: 100%; min-height: 52px; margin-top: 6px; font-size: 17px; }
.cta-btn { border-radius: 999px; }

/* ---- visual banners (inline, in articles): risk / projects / map / brand ---- */
.cta-b { position: relative; margin: 40px 0; border-radius: 20px; overflow: hidden; text-align: start; font-family: var(--font-sans, Arimo, sans-serif); }
.cta-b p { margin: 0; }
.cta-b .cta-b__h, .cta-b .cta-b__h strong, .cta-b .cta-b__h span { text-wrap: balance; }
/* each headline line is its own block so it balances on its own (no orphan last word on phones) */
.cta-b .cta-b__h strong, .cta-b .cta-b__h span { display: block; }
.cta-b .cta-b__h br { display: none; }
.cta-b .cta-b__h { font-size: clamp(26px, 5.6vw, 40px); line-height: 1.12; font-weight: 700; letter-spacing: -.4px; color: var(--cta-ink); }
.cta-b .cta-b__p { margin-top: 12px; font-size: 17px; line-height: 1.5; color: #4a4a4a; max-width: 32em; }
.cta-b__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 22px; }
.cta-b__fine { font-size: 13px; color: #6b6b6b; }
.cta-b .cta-btn { min-height: 52px; padding: 0 26px; font-size: 17px; }

.cta-b--risk { display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px; padding: 30px; color: #fff; background: #1a1a1a; }
.cta-b.cta-b--risk .cta-b__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; }
.cta-b--risk::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 10, 10, .92) 0%, rgba(10, 10, 10, .6) 50%, rgba(10, 10, 10, .12) 88%); }
.cta-b--risk .cta-b__in { position: relative; z-index: 1; }
.cta-b--risk .cta-b__kick { margin-bottom: 10px; font-size: 14px; font-weight: 700; letter-spacing: .2px; color: #fff; }
.cta-b--risk .cta-b__h, .cta-b--risk .cta-b__h strong { color: #fff; }
.cta-b--risk .cta-b__h span { font-weight: 400; }
.cta-b--risk .cta-b__p { color: #fff; }
.cta-b--risk .cta-b__fine { color: #fff; }

.cta-b--projects { background: #fff; border: 1px solid var(--cta-line); box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .3); }
.cta-b--projects .cta-b__top { height: 170px; }
.cta-b.cta-b--projects .cta-b__top img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 65%; }
.cta-b--projects .cta-b__body { padding: 24px 26px 26px; }
.cta-b--projects .cta-b__h { font-size: clamp(24px, 5vw, 34px); }
.cta-b--projects .cta-b__p { margin-top: 6px; font-size: 16px; }
.cta-b__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cta-chip {
  /* inline-block, not flex: numbers are wrapped in <span class="n"> and flex items drop the spaces around them */
  display: inline-block; min-height: 42px; padding: 10px 18px; border: 1.5px solid #cfcfcf; border-radius: 999px; background: #fff; color: var(--cta-ink);
  font: 700 16px/1.2 var(--font-sans, Arimo, sans-serif); cursor: pointer; transition: background-color .15s ease, border-color .15s ease;
}
.cta-chip:hover { border-color: var(--cta-blue); }
.cta-chip[aria-pressed="true"] { border-color: var(--cta-blue); background: var(--cta-blue); color: #fff; }
.cta-chip:focus-visible { outline: 2px solid var(--cta-ink); outline-offset: 2px; }

.cta-b--map { display: grid; grid-template-columns: 1fr 1fr; min-height: 340px; background: #f5f2ea; border: 1px solid #e6e0d3; }
.cta-b__map { position: relative; min-height: 240px; overflow: hidden; }
.cta-b .cta-b__map img { position: absolute; width: 190%; max-width: none; left: -62%; top: -30%; height: auto; }
.cta-b__map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta-b__note { position: absolute; top: 12px; right: 14px; font-size: 18px; font-weight: 700; color: #d23b2b; }
.cta-b--map .cta-b__tx { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; padding: 30px 26px; }
.cta-b--map .cta-b__h { font-size: clamp(24px, 4.6vw, 32px); }
.cta-b--map .cta-b__p { margin: 0; font-size: 16px; }

.cta-b--brand { display: grid; grid-template-columns: 52% 1fr; min-height: 340px; background: #fff; border: 1px solid #e4e7ec; }
.cta-b__ph { position: relative; min-height: 200px; overflow: hidden; }
.cta-b .cta-b__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 60%; }
.cta-b--brand .cta-b__tx { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; padding: 34px 28px; }
.cta-b .cta-b__logo { display: block; width: auto; height: 24px; margin-bottom: 6px; }
.cta-b--brand .cta-b__h { font-size: clamp(22px, 3.6vw, 30px); line-height: 1.18; }
.cta-b--brand .cta-b__h span { color: var(--cta-blue); }
.cta-b--brand .cta-b__p { margin: 0; font-size: 16px; }
.cta-b--brand .cta-b__row { margin-top: 10px; }

@media (max-width: 600px) {
  .cta-b { margin: 28px 0; border-radius: 16px; }
  .cta-b--risk { min-height: 360px; padding: 22px; }
  .cta-b--projects .cta-b__top { height: 130px; }
  .cta-b--projects .cta-b__body { padding: 20px 18px 22px; }
  .cta-b--map, .cta-b--brand { grid-template-columns: 1fr; }
  .cta-b--brand .cta-b__ph { order: -1; height: 190px; min-height: 0; }
  .cta-b--brand .cta-b__tx { padding: 24px 20px 26px; }
  .cta-b__map { height: 250px; }
  .cta-b--map .cta-b__tx { padding: 24px 20px 26px; }
  .cta-b .cta-btn { width: 100%; }
  .cta-b__row { flex-direction: column; align-items: stretch; text-align: center; gap: 10px; }
}

/* ---- booking modal: centered card; above the cookie bar (z-index 2147483000) while open, display:none after ---- */
.cta-modal {
  position: fixed; inset: 0; z-index: 2147483001; display: none; overflow-y: auto; overscroll-behavior: contain;
  padding: 16px; font-family: var(--font-sans, Arimo, sans-serif);
}
.cta-modal.is-open { display: grid; place-items: center; }
.cta-modal__scrim { position: fixed; inset: 0; background: rgba(12, 12, 12, .55); }
.cta-modal__card {
  position: relative; width: 100%; max-width: 440px; margin: auto; background: #fff; border-radius: 24px; overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .35); text-align: start; outline: 0;
}
.cta-modal__x {
  position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
  background: #fff; color: #3d3d3d; font-size: 15px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .14);
}
.cta-modal__x:focus-visible, .cta-done__back:focus-visible { outline: 2px solid var(--cta-ink); outline-offset: 2px; }
.cta-modal__hd { display: flex; align-items: center; justify-content: center; height: 76px; background: #fff; border-bottom: 1px solid #eceef2; }
.cta-modal__hd img { display: block; width: auto; height: 28px; }
.cta-modal__cb { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px 22px; }
.cta-modal .cta-modal__title { margin: 0; padding: 0; border: 0; font-size: 24px; line-height: 1.15; font-weight: 700; color: var(--cta-ink); letter-spacing: 0; }
.cta-modal .cta-sub { margin: -4px 0 0; font-size: 15px; line-height: 1.45; color: #5a5a5a; }
.cta-field { position: relative; }
.cta-modal .cta-field input {
  display: block; width: 100%; height: 56px; margin: 0; padding: 22px 14px 6px; border: 1.5px solid #dcdfe4; border-radius: 14px;
  background: #fff; color: var(--cta-ink); font: 400 16px var(--font-sans, Arimo, sans-serif); box-sizing: border-box; outline: none;
}
.cta-modal .cta-field input:focus { border-color: var(--cta-blue); box-shadow: 0 0 0 4px rgba(0, 80, 201, .12); }
.cta-field label {
  position: absolute; inset-inline-start: 15px; top: 8px; margin: 0; font: 700 12px var(--font-sans, Arimo, sans-serif); color: #7a7f87;
  pointer-events: none; transition: top .12s ease, font-size .12s ease;
}
.cta-modal .cta-field input:placeholder-shown:not(:focus) + label { top: 19px; font-size: 16px; font-weight: 400; }
.cta-modal .cta-opt { margin: 2px 0 -4px; font: 700 14px var(--font-sans, Arimo, sans-serif); color: var(--cta-ink); }
.cta-modal .cta-opt i { font-style: normal; font-weight: 400; color: #8a8f97; }
.cta-modal .cta-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cta-modal .cta-chip { min-height: 38px; padding: 8px 14px; font-size: 14px; }
.cta-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: #f1f3f6; }
.cta-seg__opt { position: relative; margin: 0; cursor: pointer; }
.cta-seg__opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.cta-seg__opt span { display: block; padding: 10px 0; border-radius: 9px; text-align: center; font: 700 14px var(--font-sans, Arimo, sans-serif); color: #3d3d3d; }
.cta-seg__opt input:checked + span { background: #fff; color: var(--cta-blue); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.cta-seg__opt input:focus-visible + span { outline: 2px solid var(--cta-blue); outline-offset: 1px; }
.cta-modal .cta-fail { display: none; margin: 0; padding: 10px 12px; border-radius: 10px; background: #fdecea; color: #a1281c; font-size: 14px; }
.cta-modal .cta-tiny { margin: 0; text-align: center; font-size: 12px; color: #8a8f97; }
.cta-modal .cf-turnstile-box { display: flex; justify-content: center; min-height: 0; }

.cta-done { outline: 0; }
.cta-done[hidden] { display: none; }
.cta-modal__cb--done { align-items: center; padding-top: 34px; text-align: center; }
.cta-done__ok { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--cta-blue); box-shadow: 0 10px 24px -8px rgba(0, 80, 201, .6); }
.cta-done__ok svg { width: 30px; height: 30px; }
.cta-done__what { display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 14px; border-radius: 14px; background: #f6f7f9; text-align: start; font-size: 15px; color: var(--cta-ink); }
.cta-done__what b { font-size: 13px; color: #5a5a5a; }
.cta-done__what span::before { content: "\00B7"; margin-inline-end: 8px; color: var(--cta-blue); font-weight: 700; }
.cta-modal .cta-btn--wa { width: 100%; min-height: 52px; background: #fff; color: #1f8f4e; border: 1.5px solid #1f8f4e; text-decoration: none; text-align: center; font-size: 16px; }
.cta-modal .cta-btn--wa:hover { background: #f1faf4; }
.cta-done__back { padding: 6px; border: 0; background: none; color: #5a5a5a; font: 400 14px var(--font-sans, Arimo, sans-serif); text-decoration: underline; cursor: pointer; }
@media (max-width: 480px) {
  .cta-modal__cb { padding: 18px 18px 20px; }
}

/* the page body is direction:ltr (Webflow); fixed widgets follow the document language */
html[dir="rtl"] .cta-modal, html[dir="rtl"] .cta-sticky, html[dir="rtl"] .cta-slidein { direction: rtl; }
html:not([dir="rtl"]) .cta-modal, html:not([dir="rtl"]) .cta-sticky, html:not([dir="rtl"]) .cta-slidein { direction: ltr; }
