*{padding:0;margin:0;border:0}*,:after,:before{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}:active,:focus,a:active,a:focus{outline:0}aside,footer,hero,nav{display:block}body,html{height:100%;width:100%;line-height:1;font-size:14px;-ms-text-size-adjust:100%;-moz-text-size-adjust:100%;-webkit-text-size-adjust:100%}button,input,textarea{font-family:inherit}input::-ms-clear{display:none}button{cursor:pointer}button::-moz-focus-inner{padding:0;border:0}a,a:hover,a:visited{text-decoration:none}ul li{list-style:none}img{vertical-align:top}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}

:root {
    --main-bg: #F7F8FA;
    --white-bg: #FFFFFF;
    --main-color: #1E1E1E;
    --title-font: Raleway-Light, sans-serif;
    --semibold: NunitoSans_10pt-SemiBold, sans-serif;
    --light: NunitoSans_10pt-Light, sans-serif;
}

@font-face {
    font-family: NunitoSans_10pt-Light;
    src: url("../../fonts/NunitoSans_10pt-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: NunitoSans_10pt-SemiBold;
    src: url("../../fonts/NunitoSans_10pt-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Raleway-Light;
    src: url("../../fonts/Raleway-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

* {
    color: var(--main-color);
    font-size: 14px;
    font-family: var(--light);
    line-height: 135%;

}
::selection{
  background: #d5d5d585; /* фон выделения */
  color: var(--main-color);
}

::-moz-selection{
  background: #d5d5d585; /* фон выделения */
  color: var(--main-color);
}
img::selection,
svg::selection,
video::selection,
canvas::selection{
  background: transparent;
  color: inherit;
}
img::-moz-selection,
svg::-moz-selection,
video::-moz-selection,
canvas::-moz-selection{
  background: transparent;
  color: inherit;
}

/* Опционально – чтобы картинки вообще не выделялись и не тащились мышью */
img, svg, video, canvas{
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}



html {
    scroll-behavior: smooth;
}

a,
button,
.burger {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
    position: relative;
    background: var(--main-bg);
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    position: relative;
    overflow: visible;
}

.main {
    flex: 1 1 auto;
    position: relative;
    z-index: 1;
}

.container {
    padding: 0 10px;
    margin: 0 auto;
    max-width: 1400px;
}

.element-animation {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.element-show {
    opacity: 1;
    transform: translateY(0);
}
/* Включаем скрытие системного курсора только когда JS активировал кастом */
html.has-custom-cursor,
html.has-custom-cursor *{
  cursor: none !important;
}

/* База */
.cursor{
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;

  /* Позицию и масштаб крутим через CSS variables, чтобы hover не ломал transform */
  --x: -9999px;
  --y: -9999px;
  --scale: 1;

  transform: translate3d(var(--x), var(--y), 0) translate(-50%, -50%) scale(var(--scale));
  will-change: transform, opacity;
  opacity: 1;
}

/* Точка */
.cursor-dot{
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.9);
}

/* Кольцо */
.cursor-ring{
  width: 25px;
  height: 25px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.26);
  background: rgba(0, 0, 0, 0.03);
  
}

/* Hover состояния (по кликабельным) */
.cursor-dot.is-hover{
  --scale: 0.95;
  opacity: 0.95;
}

.cursor-ring.is-hover{
  --scale: 1.18;
  border-color: rgba(0, 0, 0, 0.36);
  background: rgba(0, 0, 0, 0.05);
}

/* Скрытие при уходе курсора с окна */
.cursor.is-hidden{
  opacity: 0;
}
.cursor-dot{
  box-shadow: 0 0 0 1px rgba(255,255,255,0.35);
}

.cursor-ring{
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.12),
    0 10px 30px rgba(139, 137, 137, 0.12);
}
.is-safari .cursor-ring{
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.12),
    0 6px 18px rgba(0, 0, 0, 0.12);
}
/* Жесткое отключение на мобилке/тачах и узких экранах */
@media (hover: none), (pointer: coarse), (max-width: 1023px){
  .cursor{
    display: none !important;
  }

  html.has-custom-cursor,
  html.has-custom-cursor *{
    cursor: auto !important;
  }
}
