@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-BoldItalic.woff") format("woff");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

/* ОБЩИЙ ФОН САЙТА */
body {
  position: relative;
  font-family: var(--font-main);
  color: var(--color-text);
  margin: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../images/pattern.png");
  background-repeat: repeat;
  background-size: auto;
  opacity: 0.2;
  z-index: -1;
  pointer-events: none;
}

button,
input,
textarea {
  font-family: inherit;
}

html {
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

svg {
  display: block;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

p {
  margin: 0;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-regular);
}

h1,
.h1 {
  margin: 0;
  font-size: var(--h1);
  line-height: var(--h1);
  font-weight: var(--semibold);
  letter-spacing: var(--ls-tight);
}

h2,
.h2 {
  margin: 0;
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
}

h3,
.h3 {
  margin: 0;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: var(--fw-bold);
}

h4,
.h4 {
  margin: 0;
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  font-weight: var(--fw-bold);
}

.text-subtitle {
  font-size: var(--fs-subtitle);
  line-height: var(--lh-subtitle);
  font-weight: var(--fw-medium);
}

.text-overline {
  font-size: var(--fs-overline);
  line-height: var(--lh-overline);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.text-small {
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  font-weight: var(--fw-regular);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--side-pad);
  padding-right: var(--side-pad);
}

.accent {
  color: var(--color-accent);
}

.bg-soft {
  background: var(--color-bg-soft);
}

/* АДАПТИВ */
@media (max-width: 1024px) {
  :root {
    --container-max: 960px;
    --side-pad: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --container-max: 100%;
    --side-pad: 1.5rem;
  }

  p {
    max-width: 100%;
  }
}

@media (max-width: 380px) {
  :root {
    --side-pad: 1rem;
  }
}
