@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope_regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope_medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope_semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bebas Neue Regular";
  src: url("../fonts/bebas_neue_regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

/* ОБЩИЙ ФОН САЙТА */
body {
  position: relative;
  font-family: var(--font-main);
  color: var(--color-text);
  margin: 0;
  background-color: #fff9f3;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url(../images/pattern.svg);
  background-repeat: no-repeat;
  background-size: cover;
  object-fit: contain;
  opacity: 1;
  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);
  font-family: var(--font-accent);
}

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;
  }

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url(../images/pattern-mob.svg);
    background-repeat: no-repeat;
    background-size: cover;
    object-fit: contain;
    opacity: 1;
    z-index: -1;
    pointer-events: none;
  }

  .wpcf7-list-item {
    display: inline-block;
    margin: 0;
  }

  p {
    max-width: 100%;
  }
}

@media (max-width: 380px) {
  :root {
    --side-pad: 1rem;
  }

  .container {
    width: 100%;
    max-width: var(--container-max);
    margin: 45px auto;
    padding-left: var(--side-pad);
    padding-right: var(--side-pad);
  }
}
