/* ================================================
   BRANDMAKERS — Base Styles
   Reset, body, container, typography
   ================================================ */

/* === Reset === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--bm-font-body);
  color: var(--bm-dark);
  background-color: var(--bm-bg);
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Body opacity transition — для плавного появления после загрузки header/footer */
body.loading {
  opacity: 0;
}
body.loaded {
  opacity: 1;
  transition: opacity 0.2s ease;
}

img, video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* === Layout Container === */
.container {
  max-width: var(--bm-container);
  margin: 0 auto;
  padding: 0 var(--bm-container-pad);
}

/* === Section Wrapper === */
.section {
  padding: var(--bm-space-2xl) 0;
}

.section--sm {
  padding: var(--bm-space-xl) 0;
}

.section--dark {
  background-color: var(--bm-dark);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  color: var(--bm-white);
}

.section--dark .section__subtitle {
  color: rgba(255, 255, 255, 0.75);
}

/* === Section Header === */
.section__label {
  display: inline-block;
  font-family: var(--bm-font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bm-orange);
  background: rgba(255, 79, 0, 0.08);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section__title {
  font-family: var(--bm-font-heading);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section__subtitle {
  font-size: 17px;
  color: var(--bm-gray);
  line-height: 1.6;
  max-width: 560px;
}

.section__head {
  margin-bottom: 56px;
}

.section__head--center {
  text-align: center;
}

.section__head--center .section__subtitle {
  margin: 0 auto;
}

/* === Typography === */
h1, h2, h3, h4 {
  font-family: var(--bm-font-heading);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  line-height: 1.7;
}

/* === Scrollbar === */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bm-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--bm-gray-mid);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--bm-gray);
}

/* === Utilities === */
.text-orange { color: var(--bm-orange); }
.text-center { text-align: center; }
.text-white  { color: var(--bm-white); }
.text-gray   { color: var(--bm-gray); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
