/* Шрифты: Roboto — основной, Bebas Neue — большие заголовки. Manrope подключается только на КЭМП (camps.css) */
@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;
}

@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Thin.woff") format("woff");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-ThinItalic.woff") format("woff");
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}

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

@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-LightItalic.woff") format("woff");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@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-Italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  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-MediumItalic.woff") format("woff");
  font-weight: 500;
  font-style: italic;
  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-BoldItalic.woff") format("woff");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Black.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-BlackItalic.woff") format("woff");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* Текст только для скринридеров (визуально скрыт) */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

* {
  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.svg);
  background-size: 100% auto;
  background-repeat: repeat-y;
  background-position: top center;
  opacity: 1;
  z-index: -1;
  pointer-events: none;
}

button,
input,
textarea {
  font-family: inherit;
}

html {
  overflow-x: hidden;
}

/* Ничто не расширяет страницу вбок (на iPhone иначе можно отдалить и ширина «едет»).
   clip, а не hidden: не ломает position: sticky */
html,
body {
  overflow-x: clip;
}

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(--fs-h1);
  line-height: var(--lh-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;
  }

  .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: 0 auto 45px;
    padding-left: var(--side-pad);
    padding-right: var(--side-pad);
  }
}

/* Хлебные крошки — общие для всех страниц (раньше дублировались в blog.css и single.css) */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: #7b7b7b;
  font-size: 14px;
  line-height: 1.5;
}

.breadcrumbs a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: #c62828;
}

.breadcrumbs__sep {
  color: #b3b3b3;
  opacity: 0.55;
}

@media (max-width: 1024px) {
  .breadcrumbs {
    margin-bottom: 20px;
    font-size: 13px;
    gap: 6px;
  }
}

@media (max-width: 768px) {
  .breadcrumbs {
    margin-bottom: 18px;
    gap: 6px;
    font-size: 13px;
    line-height: 1.45;
  }
}

/* Отступ под чекбоксом согласия в формах CF7 (раньше был в exhibitor.css) */
.wpcf7-acceptance {
  margin-bottom: 15px;
}
