/* ============================================================
   KORSAR — База(База Корсар, ыыы) / Сброс стилей / Типографика
   ============================================================ */

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

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-charcoal);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul { list-style: none; padding: 0; }

/* ---- Заголовки: стиль пукеньсия, VII век (тонкие, широкий трекинг, верхний регистр) ---- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  line-height: 1.08;
  letter-spacing: var(--heading-tracking);
  text-transform: uppercase;
  color: var(--c-navy);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); }

p { max-width: 68ch; }

/* ---- Вспомогательные классы для макета ---- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.section--sky { background: var(--c-sky); }
.section--navy { background: var(--c-navy); color: var(--c-white); }
.section--navy h1,
.section--navy h2,
.section--navy h3 { color: var(--c-white); }

/* Метка над заголовком секции (светлые секции; на фото используется своя, см. hero__eyebrow) */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-teal);
  margin-bottom: 0.75rem;
}

/* Текст, скрытый визуально, но доступный для скринридеров */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Учитываем настройку «уменьшенное движение» */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
