/* crystal.tax — shell add-ons (package 2 «Оболочка», 22.09.2026)
   Header CTA + tel link, mobile sticky action bar, compact cookie banner, footer credit/tagline.
   Tokens mirror style.min.css: primary #005e8a, hover #00a7f3, pressed #00537b, ink #012333,
   line #e8e9ee, muted #74757f, paper #f5f6fa. Display face = Oswald (theme buttons), body = OpenSans. */
:root {
  --ct-primary: #005e8a;
  --ct-primary-hover: #00a7f3;
  --ct-primary-down: #00537b;
  --ct-ink: #012333;
  --ct-line: #e8e9ee;
  --ct-muted: #74757f;
  --ct-paper: #f5f6fa;
  --ct-cookie-link: #7dd6ff;
  --ct-display: "Oswald", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ct-bar-h: 0px;
  --ct-cookie-h: 0px;
}
@media (max-width: 991px) {
  :root { --ct-bar-h: calc(60px + env(safe-area-inset-bottom, 0px)); }
  body { padding-bottom: var(--ct-bar-h); }
}

/* ---------- header: phone + CTA ---------- */
.ct-hdr-tel {
  display: inline-block;
  color: #111;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.3;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.ct-hdr-tel:hover, .ct-hdr-tel:focus-visible { color: var(--ct-primary); border-bottom-color: var(--ct-primary); text-decoration: none; outline: none; }
.ct-hdr-tel + .mes_head_new { margin-top: 8px; }

.ct-hdr-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  font-family: var(--ct-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.2;
  color: #fff;
  background: var(--ct-primary);
  border: 2px solid var(--ct-primary);
  border-radius: 0;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .2s cubic-bezier(.2, .7, .2, 1);
}
.ct-hdr-cta:hover, .ct-hdr-cta:focus-visible { color: #fff; background: var(--ct-primary-hover); border-color: var(--ct-primary-hover); text-decoration: none; outline: none; }
.ct-hdr-cta:focus-visible { box-shadow: 0 0 0 3px rgba(0, 167, 243, .35); }
.ct-hdr-cta:active { background: var(--ct-primary-down); border-color: var(--ct-primary-down); transform: translateY(1px); }
.ct-hdr-cta svg { width: 16px; height: 16px; fill: currentColor; flex: 0 0 auto; }
.ct-hdr-cta-wrap { margin: 0 0 10px; }
@media (min-width: 992px) {
  /* right column of the header: CTA on its own row, socials + language side by side under it */
  .ct-hdr-side { flex-direction: row !important; flex-wrap: wrap; justify-content: flex-end; align-items: center; column-gap: 16px; }
  .ct-hdr-side .ct-hdr-cta-wrap { flex: 0 0 100%; display: flex; justify-content: flex-end; margin: 0 0 6px; }
  .ct-hdr-side .socials-wrap { margin: 0; }
}
@media (max-width: 991px) {
  .ct-hdr-cta-wrap { display: block; width: 100%; margin: 0 0 18px; }
  .ct-hdr-cta { display: flex; width: 100%; }
}

/* ---------- mobile sticky action bar ---------- */
.ct-bar { display: none; }
@media (max-width: 991px) {
  .ct-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 1050;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: var(--ct-bar-h);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #fff;
    border-top: 1px solid var(--ct-line);
    box-shadow: 0 -6px 18px rgba(1, 35, 51, .10);
  }
  .ct-bar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 44px;
    padding: 0 4px;
    color: var(--ct-ink);
    font-family: var(--ct-display);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .15s ease;
  }
  .ct-bar__item svg { width: 22px; height: 22px; fill: var(--ct-primary); }
  .ct-bar__item:hover, .ct-bar__item:focus-visible { color: var(--ct-ink); text-decoration: none; outline: none; }
  .ct-bar__item:active { background: var(--ct-paper); }
  .ct-bar__item--lead { background: var(--ct-primary); color: #fff; }
  .ct-bar__item--lead svg { fill: #fff; }
  .ct-bar__item--lead:hover, .ct-bar__item--lead:focus-visible { color: #fff; background: var(--ct-primary-hover); }
  .ct-bar__item--lead:active { background: var(--ct-primary-down); }
  .ct-bar__label { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.modal-open .ct-bar { display: none; }

}
@media (max-width: 991px) {
  .ct-bar--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991px) and (min-width: 576px) {
  .ct-bar { grid-template-columns: repeat(4, minmax(0, 200px)); justify-content: center; }
  .ct-bar--3 { grid-template-columns: repeat(3, minmax(0, 200px)); }
}

/* ---------- cookie banner (chunk 87): one row, bottom-right on desktop ---------- */
#cookie-banner {
  position: fixed;
  right: 100px;
  left: auto;
  bottom: 0;
  z-index: 1000;
  width: auto;
  max-width: calc(100% - 120px);
  margin: 0;
  padding: 0;
  color: #fff;
  background: var(--ct-ink);
  text-align: left;
  box-shadow: 0 -4px 18px rgba(1, 35, 51, .18);
  opacity: 0;
  transition: opacity .4s ease;
}
#cookie-banner.show { bottom: 0; opacity: 1; }
.ct-cookie__in {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  max-height: 48px;
  padding: 0 6px 0 16px;
}
.ct-cookie__text { margin: 0; font-size: 13px; line-height: 1.3; color: #fff; }
.ct-cookie__text a, .ct-cookie__link { color: var(--ct-cookie-link); text-decoration: underline; }
.ct-cookie__text a:hover { color: #fff; }
.ct-cookie__btn {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 14px;
  margin: 0;
  font-family: var(--ct-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--ct-ink);
  background: #fff;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: background-color .2s ease;
}
.ct-cookie__btn:hover, .ct-cookie__btn:focus-visible { background: var(--ct-cookie-link); outline: none; }
@media (max-width: 991px) {
  /* banner sits on top of the sticky bar; chat bubble above both */
  #cookie-banner, #cookie-banner.show { left: 0; right: 0; bottom: var(--ct-bar-h); width: 100%; max-width: none; }
  .ct-cookie__in { max-height: none; gap: 10px; padding: 8px 8px 8px 14px; }
  .ct-cookie__text { font-size: 12px; line-height: 1.35; }
  .chat { bottom: calc(var(--ct-bar-h) + var(--ct-cookie-h) + 14px); }
}

/* ---------- footer: tagline + agency credit ---------- */
.ct-tagline { color: #c5c6cd; }
.ct-tagline strong { color: #fff; font-weight: 600; }
.ct-credit {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #c5c6cd;
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
  opacity: .85;
  transition: opacity .3s ease;
}
.ct-credit:hover, .ct-credit:focus-visible { opacity: 1; color: #fff; text-decoration: none; }
.ct-credit img { height: 72px; width: auto; flex: 0 0 auto; }

@media (prefers-reduced-motion: reduce) {
  .ct-hdr-cta, .ct-bar__item, .ct-cookie__btn, .ct-credit, #cookie-banner { transition: none; }
}
