/* ========================================
   BASE.CSS — Reset, Typography, Utilities
   ======================================== */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--color-gray-800);
  background-color: var(--color-primary-dark);
  background-image: url('https://rostov.sclad.ru/images/banners/banner-01.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11, 29, 58, 0.88) 0%,
    rgba(6, 15, 31, 0.92) 100%
  );
  z-index: -1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol { list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* === Container === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* === Section Base === */
section {
  padding: var(--space-4xl) 0;
  position: relative;
}

/* === Typography === */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.section__title {
  font-size: var(--fs-4xl);
  text-align: center;
  margin-bottom: var(--space-md);
  color: var(--color-gray-800);
}

.section__title--white {
  color: var(--color-white);
}

.section__subtitle {
  font-size: var(--fs-lg);
  text-align: center;
  color: var(--color-gray-600);
  margin-bottom: var(--space-3xl);
}

.text--accent {
  color: var(--color-accent);
}

/* === Section Backgrounds === */
.section--light {
  background-color: var(--color-white);
}

.section--transparent {
  background: transparent;
}

.section--image-bg {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* === Skip link === */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-accent);
  color: var(--color-white);
  padding: var(--space-sm) var(--space-md);
  z-index: 9999;
}

.skip-link:focus { top: 0; }

/* === Selection === */
::selection {
  background: var(--color-accent);
  color: var(--color-white);
}