/* =========================================================
   COMPETENT — GLOBAL SITE STYLES
   Глобальные стили для всех страниц сайта
   ========================================================= */

/* Подключение шрифтов */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Manrope:wght@400;500;600;700;800&display=swap");


/* =========================================================
   ПЕРЕМЕННЫЕ САЙТА
   ========================================================= */

:root {
  --cmp-bg: #070809;
  --cmp-bg-secondary: #0b0d0e;
  --cmp-surface: rgba(255, 255, 255, 0.035);
  --cmp-surface-hover: rgba(215, 255, 66, 0.045);

  --cmp-text: #f5f6f7;
  --cmp-text-soft: rgba(245, 246, 247, 0.72);
  --cmp-text-muted: rgba(245, 246, 247, 0.44);

  --cmp-border: rgba(255, 255, 255, 0.1);
  --cmp-border-hover: rgba(215, 255, 66, 0.24);

  --cmp-accent: #d7ff42;
  --cmp-accent-dark: #070809;

  --cmp-container: 1380px;
  --cmp-header-height: 100px;

  --cmp-radius-small: 12px;
  --cmp-radius-medium: 18px;
  --cmp-radius-large: 24px;
  --cmp-radius-xlarge: 30px;

  --cmp-transition:
    0.25s
    cubic-bezier(0.22, 1, 0.36, 1);

  --cmp-shadow:
    0 30px 90px
    rgba(0, 0, 0, 0.28);

  --cmp-accent-shadow:
    0 22px 60px
    rgba(215, 255, 66, 0.16);
}


/* =========================================================
   ОСНОВА СТРАНИЦЫ
   ========================================================= */

html {
  width: 100%;
  max-width: 100%;

  scroll-behavior: smooth;
  scroll-padding-top: var(--cmp-header-height);

  color-scheme: dark;

  background: var(--cmp-bg);
  background-color: var(--cmp-bg);

  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body,
body.t-body {
  width: 100%;
  max-width: 100%;
  min-height: 100%;

  margin: 0;
  padding: 0;

  overflow-x: clip;

  color: var(--cmp-text);

  font-family:
    Inter,
    Manrope,
    Arial,
    sans-serif;

  font-weight: 400;
  line-height: 1.5;

  background: var(--cmp-bg) !important;
  background-color: var(--cmp-bg) !important;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@supports not (overflow: clip) {
  html,
  body,
  body.t-body {
    overflow-x: hidden;
  }
}

#allrecords {
  width: 100%;
  max-width: 100%;

  color: var(--cmp-text);

  background: var(--cmp-bg);
  background-color: var(--cmp-bg);
}


/* =========================================================
   ГЛОБАЛЬНЫЙ BOX-SIZING
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}


/* =========================================================
   ТЕКСТ
   ========================================================= */

body,
button,
input,
textarea,
select {
  font-family:
    Inter,
    Manrope,
    Arial,
    sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.t-title,
.t-name,
.t-heading {
  margin-top: 0;

  color: var(--cmp-text);

  font-family:
    Inter,
    Manrope,
    Arial,
    sans-serif;

  font-weight: 700;

  text-wrap: balance;
  overflow-wrap: break-word;
}

p,
.t-text,
.t-descr {
  color: var(--cmp-text-soft);

  font-family:
    Inter,
    Manrope,
    Arial,
    sans-serif;

  text-wrap: pretty;
  overflow-wrap: break-word;
}

strong,
b {
  font-weight: 700;
}

small {
  font-family:
    Inter,
    Manrope,
    Arial,
    sans-serif;
}

::selection {
  color: var(--cmp-accent-dark);
  background: var(--cmp-accent);
}


/* =========================================================
   ССЫЛКИ
   ========================================================= */

a {
  color: inherit;

  text-decoration: none;

  -webkit-tap-highlight-color: transparent;
}

a,
button {
  touch-action: manipulation;
}

a[href^="#"] {
  scroll-behavior: smooth;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline:
    2px solid
    var(--cmp-accent);

  outline-offset: 4px;
}


/* =========================================================
   ИЗОБРАЖЕНИЯ И SVG
   ========================================================= */

img,
picture,
video,
canvas,
svg {
  max-width: 100%;
}

img,
video {
  height: auto;
}

svg {
  display: block;
}

img {
  image-rendering: auto;
}


/* =========================================================
   ЯКОРЯ
   ========================================================= */

[id^="cmp"],
#audit,
#services,
#cases,
#prices,
#contacts,
#faq {
  scroll-margin-top:
    calc(
      var(--cmp-header-height) + 20px
    );
}


/* =========================================================
   ПОЛЬЗОВАТЕЛЬСКИЕ БЛОКИ COMPETENT
   ========================================================= */

:where(
  section[class^="cmp-"],
  section[class*=" cmp-"],
  #cmpHeader,
  #cmpFooterBlock,
  #audit
) {
  position: relative;

  width: 100%;
  max-width: 100%;

  color: var(--cmp-text);

  font-family:
    Inter,
    Manrope,
    Arial,
    sans-serif;

  background-color: var(--cmp-bg);
}

:where(
  section[class^="cmp-"],
  section[class*=" cmp-"],
  #cmpHeader,
  #cmpFooterBlock,
  #audit
) *,
:where(
  section[class^="cmp-"],
  section[class*=" cmp-"],
  #cmpHeader,
  #cmpFooterBlock,
  #audit
) *::before,
:where(
  section[class^="cmp-"],
  section[class*=" cmp-"],
  #cmpHeader,
  #cmpFooterBlock,
  #audit
) *::after {
  box-sizing: border-box;
}


/* Основные контейнеры блоков */

:where(
  section[class^="cmp-"],
  section[class*=" cmp-"],
  #cmpFooterBlock,
  #audit
) > [class$="__container"] {
  width: 100%;
  max-width: var(--cmp-container);

  margin-right: auto;
  margin-left: auto;
}


/* Запрещаем элементам растягивать страницу */

:where(
  section[class^="cmp-"],
  section[class*=" cmp-"],
  #cmpHeader,
  #cmpFooterBlock,
  #audit
) > *,
:where(
  section[class^="cmp-"],
  section[class*=" cmp-"],
  #cmpHeader,
  #cmpFooterBlock,
  #audit
) [class*="__container"] > *,
:where(
  section[class^="cmp-"],
  section[class*=" cmp-"],
  #cmpHeader,
  #cmpFooterBlock,
  #audit
) [class*="__layout"] > *,
:where(
  section[class^="cmp-"],
  section[class*=" cmp-"],
  #cmpHeader,
  #cmpFooterBlock,
  #audit
) [class*="__grid"] > *,
:where(
  section[class^="cmp-"],
  section[class*=" cmp-"],
  #cmpHeader,
  #cmpFooterBlock,
  #audit
) [class*="__cards"] > *,
:where(
  section[class^="cmp-"],
  section[class*=" cmp-"],
  #cmpHeader,
  #cmpFooterBlock,
  #audit
) [class*="__main"] > *,
:where(
  section[class^="cmp-"],
  section[class*=" cmp-"],
  #cmpHeader,
  #cmpFooterBlock,
  #audit
) [class*="__heading"] > *,
:where(
  section[class^="cmp-"],
  section[class*=" cmp-"],
  #cmpHeader,
  #cmpFooterBlock,
  #audit
) [class*="__row"] > * {
  min-width: 0;
  max-width: 100%;
}


/* Перенос длинного текста */

:where(
  section[class^="cmp-"],
  section[class*=" cmp-"],
  #cmpHeader,
  #cmpFooterBlock,
  #audit
) :is(
  h1,
  h2,
  h3,
  h4,
  p,
  strong,
  a
) {
  overflow-wrap: break-word;
  word-break: normal;
}


/* =========================================================
   ЗАЩИТА ОТ ПУСТЫХ БЛОКОВ
   Элементы остаются видимыми, даже если JS-анимация не загрузилась
   ========================================================= */

:where(
  section[class^="cmp-"],
  section[class*=" cmp-"],
  #audit
) [class*="__reveal"] {
  opacity: 1 !important;

  visibility: visible !important;

  transform: none !important;
}


/* =========================================================
   КНОПКИ ПОЛЬЗОВАТЕЛЬСКИХ БЛОКОВ
   ========================================================= */

:where(
  section[class^="cmp-"],
  section[class*=" cmp-"],
  #cmpHeader,
  #cmpFooterBlock,
  #audit
) :is(
  [class*="__button"],
  [class*="__submit"],
  [class*="__cta-primary"],
  [class*="__cta-button"]
) {
  position: relative;

  cursor: pointer;

  border: 0;

  -webkit-tap-highlight-color: transparent;

  transition:
    transform var(--cmp-transition),
    border-color var(--cmp-transition),
    background-color var(--cmp-transition),
    box-shadow var(--cmp-transition),
    opacity var(--cmp-transition);
}

:where(
  section[class^="cmp-"],
  section[class*=" cmp-"],
  #cmpHeader,
  #cmpFooterBlock,
  #audit
) :is(
  [class*="__button"],
  [class*="__submit"],
  [class*="__cta-primary"],
  [class*="__cta-button"]
):hover {
  transform: translateY(-3px);
}

:where(
  section[class^="cmp-"],
  section[class*=" cmp-"],
  #cmpHeader,
  #cmpFooterBlock,
  #audit
) :is(
  [class*="__button"],
  [class*="__submit"],
  [class*="__cta-primary"],
  [class*="__cta-button"]
):active {
  transform: translateY(-1px) scale(0.99);
}


/* =========================================================
   КАРТОЧКИ
   ========================================================= */

:where(
  section[class^="cmp-"],
  section[class*=" cmp-"],
  #audit
) :is(
  article,
  [class*="__card"],
  [class*="-card"]
) {
  background-clip: padding-box;
}

:where(
  section[class^="cmp-"],
  section[class*=" cmp-"],
  #audit
) :is(
  [class*="__card"],
  [class*="-card"]
) {
  transition:
    transform var(--cmp-transition),
    border-color var(--cmp-transition),
    background-color var(--cmp-transition),
    box-shadow var(--cmp-transition);
}


/* =========================================================
   ФОРМЫ
   ========================================================= */

input,
textarea,
select,
button {
  max-width: 100%;
}

input,
textarea,
select {
  color: var(--cmp-text);

  border:
    1px solid
    var(--cmp-border);

  outline: none;

  background-color:
    rgba(5, 6, 7, 0.7);

  caret-color: var(--cmp-accent);

  transition:
    border-color var(--cmp-transition),
    background-color var(--cmp-transition),
    box-shadow var(--cmp-transition);
}

input::placeholder,
textarea::placeholder {
  color:
    rgba(245, 246, 247, 0.3);

  opacity: 1;
}

input:hover,
textarea:hover,
select:hover {
  border-color:
    rgba(255, 255, 255, 0.17);
}

input:focus,
textarea:focus,
select:focus {
  border-color:
    rgba(215, 255, 66, 0.48);

  background-color:
    rgba(215, 255, 66, 0.035);

  box-shadow:
    0 0 0 3px
    rgba(215, 255, 66, 0.06);
}

textarea {
  resize: vertical;
}


/* Убираем белый фон автозаполнения */

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-text-fill-color:
    var(--cmp-text);

  caret-color:
    var(--cmp-accent);

  box-shadow:
    0 0 0 1000px
    #0a0c0d
    inset !important;

  transition:
    background-color
    99999s ease-out;
}


/* =========================================================
   DETAILS / FAQ
   ========================================================= */

details summary {
  -webkit-tap-highlight-color: transparent;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::marker {
  content: "";
}


/* =========================================================
   TILDA — СБРОС ОТСТУПОВ ДЛЯ ПОЛЬЗОВАТЕЛЬСКИХ T123-БЛОКОВ
   ========================================================= */

#allrecords
.t-rec:has(
  :is(
    section[class^="cmp-"],
    section[class*=" cmp-"],
    #cmpHeader,
    #cmpFooterBlock,
    #audit
  )
) {
  width: 100% !important;
  max-width: 100% !important;

  margin: 0 !important;
  padding: 0 !important;

  background:
    var(--cmp-bg) !important;

  background-color:
    var(--cmp-bg) !important;

  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

#allrecords
.t-rec:has(
  :is(
    section[class^="cmp-"],
    section[class*=" cmp-"],
    #cmpHeader,
    #cmpFooterBlock,
    #audit
  )
)
.t123,

#allrecords
.t-rec:has(
  :is(
    section[class^="cmp-"],
    section[class*=" cmp-"],
    #cmpHeader,
    #cmpFooterBlock,
    #audit
  )
)
.t123__wrapper {
  width: 100% !important;
  max-width: 100% !important;

  margin: 0 !important;
  padding: 0 !important;

  background:
    transparent !important;

  background-color:
    transparent !important;

  border: 0 !important;
  outline: 0 !important;
}


/* Fallback для блоков, которым класс добавляется через JavaScript */

#allrecords
.t-rec[class*="-tilda-record"] {
  width: 100% !important;
  max-width: 100% !important;

  margin: 0 !important;
  padding: 0 !important;

  background:
    var(--cmp-bg) !important;

  background-color:
    var(--cmp-bg) !important;

  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

#allrecords
.t-rec[class*="-tilda-record"]
.t123,

#allrecords
.t-rec[class*="-tilda-record"]
.t123__wrapper {
  width: 100% !important;
  max-width: 100% !important;

  margin: 0 !important;
  padding: 0 !important;

  background:
    transparent !important;

  background-color:
    transparent !important;

  border: 0 !important;
  outline: 0 !important;
}


/* =========================================================
   ШАПКА
   ========================================================= */

#cmpHeader {
  position: relative;
  z-index: 9999;

  width: 100%;
  max-width: 100%;
}

#cmpHeader a,
#cmpHeader button {
  -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   СКРОЛЛБАР
   ========================================================= */

@media (min-width: 769px) {
  html {
    scrollbar-width: thin;

    scrollbar-color:
      rgba(215, 255, 66, 0.55)
      #090b0c;
  }

  body::-webkit-scrollbar {
    width: 10px;
  }

  body::-webkit-scrollbar-track {
    background: #090b0c;
  }

  body::-webkit-scrollbar-thumb {
    border:
      3px solid
      #090b0c;

    border-radius: 999px;

    background:
      rgba(215, 255, 66, 0.55);
  }

  body::-webkit-scrollbar-thumb:hover {
    background:
      rgba(215, 255, 66, 0.8);
  }
}


/* =========================================================
   ПЛАНШЕТ
   ========================================================= */

@media (max-width: 980px) {
  :root {
    --cmp-header-height: 88px;
  }

  :where(
    section[class^="cmp-"],
    section[class*=" cmp-"],
    #audit
  ) [class*="__layout"] {
    max-width: 100%;
  }

  :where(
    section[class^="cmp-"],
    section[class*=" cmp-"],
    #audit
  ) [class*="__sidebar"] {
    max-width: 100%;
  }
}


/* =========================================================
   МОБИЛЬНЫЕ
   ========================================================= */

@media (max-width: 620px) {
  :root {
    --cmp-header-height: 76px;
  }

  body,
  body.t-body {
    min-width: 320px;
  }

  :where(
    section[class^="cmp-"],
    section[class*=" cmp-"],
    #audit
  ) {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  :where(
    section[class^="cmp-"],
    section[class*=" cmp-"],
    #audit
  ) h1 {
    hyphens: auto;

    overflow-wrap: break-word;
  }

  :where(
    section[class^="cmp-"],
    section[class*=" cmp-"],
    #audit
  ) h2 {
    hyphens: auto;

    overflow-wrap: break-word;
  }

  input,
  textarea,
  select {
    /*
    16px предотвращает автоматическое увеличение
    страницы при фокусе на iPhone
    */
    font-size: 16px !important;
  }

  button,
  a {
    -webkit-tap-highlight-color:
      transparent;
  }
}


/* =========================================================
   ОЧЕНЬ УЗКИЕ ЭКРАНЫ
   ========================================================= */

@media (max-width: 390px) {
  :where(
    section[class^="cmp-"],
    section[class*=" cmp-"],
    #audit
  ) {
    padding-right: 10px !important;
    padding-left: 10px !important;
  }

  :where(
    section[class^="cmp-"],
    section[class*=" cmp-"],
    #audit
  ) :is(
    [class*="__button"],
    [class*="__submit"],
    [class*="__cta-primary"],
    [class*="__cta-button"]
  ) {
    max-width: 100%;
  }
}


/* =========================================================
   УМЕНЬШЕНИЕ АНИМАЦИЙ
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    animation-duration:
      0.01ms !important;

    animation-iteration-count:
      1 !important;

    transition-duration:
      0.01ms !important;
  }
}


/* =========================================================
   ПЕЧАТЬ
   ========================================================= */

@media print {
  body,
  body.t-body,
  #allrecords {
    color: #000 !important;
    background: #fff !important;
  }

  #cmpHeader,
  #cmpFooterBlock,
  [class*="__background"],
  [class*="__decor"],
  [class*="__grid-bg"] {
    display: none !important;
  }
}