/* =========================================================
   Curly.kz — Base Styles
   ========================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  font-size: var(--fs-text);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Typography ---------- */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--space-m);
  font-weight: 600;
  line-height: var(--lh-tight);
}

h1 {
  font-size: var(--fs-h1);
}

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

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

p {
  margin: 0 0 var(--space-m);
  color: var(--color-text-muted);
}

strong {
  color: var(--color-text);
  font-weight: 600;
}

/* ---------- Links ---------- */

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

a:hover {
  color: var(--color-accent);
}

/* ---------- Images ---------- */

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

/* ---------- Buttons ---------- */

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-m);
  font-size: var(--fs-text);
  font-weight: 500;
  transition:
    background var(--transition-base),
    color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-accent-contrast);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  box-shadow: 0 0 50px rgba(139, 92, 246, 0.5);
}

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

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-large {
  padding: 1rem 1.5rem;
  font-size: 1.05rem;
}

/* ---------- Lists ---------- */

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

/* ---------- Sections ---------- */

section {
  padding: var(--space-xxl) 0;
}

/* ---------- Selection ---------- */

::selection {
  background: var(--color-accent);
  color: #fff;
}