/* ============================================================
   Reset + базовые стили + утилиты раскладки
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  line-height: var(--lh-base);
  color: var(--c-text);
  background-color: var(--c-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

address {
  font-style: normal;
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Раскладка ---------- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-gap);
}

.visually-hidden {
  position: absolute;
  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;
}

.no-scroll {
  overflow: hidden;
}

/* ---------- Типографика ---------- */

.h1,
.h2,
.h3,
.h4 {
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
}

.h1 {
  font-size: var(--fs-h1);
  letter-spacing: var(--tracking-h1);
}

.h2 {
  font-size: var(--fs-h2);
}

.h3 {
  font-size: var(--fs-h3);
}

.h4 {
  font-size: var(--fs-h4);
}

.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-base);
}

.text-muted {
  color: var(--c-text-muted);
}

/* Текст, залитый фирменным градиентом */
.text-gradient {
  background-image: var(--grad-brand-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 55px;
  padding: 0.75rem 1.75rem;
  font-size: var(--fs-lead);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-base);
  text-align: center;
  border-radius: var(--radius-sm);
  transition: transform var(--transition), box-shadow var(--transition),
    background-color var(--transition), color var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  color: var(--c-text-invert);
  background-image: var(--grad-brand);
}

.btn--outline {
  color: var(--c-text);
  background-color: transparent;
  border: 1px solid var(--c-border);
}

.btn--outline:hover {
  color: var(--c-green-dark);
  border-color: var(--c-green);
}

.btn--light {
  color: var(--c-text);
  background-color: var(--c-surface);
}

.btn--block {
  width: 100%;
}

@media (min-width: 768px) {
  .btn--hero {
    min-height: 74px;
    min-width: 311px;
  }
}
