/* ============================================
   ДомОК — base.css
   Reset, переменные дизайн-системы, типографика, утилиты
   ============================================ */

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

:root {
  /* Цвета */
  --c-bg: #fffaf3;
  --c-cream: #fff5eb;
  --c-soft: #ffd9c2;
  --c-soft-2: #fff0e6;
  --c-text: #2d2418;
  --c-text-soft: #5a4a3a;
  --c-text-muted: #7a6a5a;
  --c-text-faded: #a09080;
  --c-border: #ffd9c2;
  --c-border-soft: #fff0e6;
  --c-white: #ffffff;

  --c-primary: #ff5722;
  --c-primary-soft: #ff7849;
  --c-primary-dark: #e64a19;
  --c-stars: #ffa726;

  --c-success: #16a34a;
  --c-info: #06b6d4;
  --c-warning: #f59e0b;
  --c-danger: #ef4444;

  /* Радиусы */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 40px;
  --r-pill: 50px;
  --r-circle: 50%;

  /* Тени */
  --shadow-xs: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-sm: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-md: 0 10px 25px rgba(255,87,34,0.2);
  --shadow-lg: 0 20px 50px rgba(255,87,34,0.25);
  --shadow-xl: 0 30px 60px rgba(255,87,34,0.3);

  /* Типографика */
  --font: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --line: 1.65;

  /* Размеры */
  --container-max: 1180px;
  --container-pad: 24px;

  /* Анимация */
  --t-fast: 0.15s ease;
  --t: 0.25s ease;
  --t-slow: 0.4s ease;
}

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

body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: var(--line);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 { color: var(--c-text); font-weight: 900; line-height: 1.15; letter-spacing: -0.5px; }
h1 { font-size: clamp(36px, 5.5vw, 64px); letter-spacing: -2px; line-height: 1.05; }
h2 { font-size: clamp(28px, 4vw, 48px); letter-spacing: -1.5px; line-height: 1.1; }
h3 { font-size: clamp(22px, 3vw, 32px); letter-spacing: -1px; }
h4 { font-size: 20px; }
h5 { font-size: 16px; }

p { color: var(--c-text-soft); }

/* ============================================
   Контейнер и сетка
   ============================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.container-wide { max-width: 1320px; margin: 0 auto; padding: 0 var(--container-pad); }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 var(--container-pad); }

.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }

/* ============================================
   Утилиты
   ============================================ */
.text-center { text-align: center; }
.text-primary { color: var(--c-primary); }
.text-muted { color: var(--c-text-muted); }
.text-soft { color: var(--c-text-soft); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.gap-20 { gap: 20px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; }

.hidden { display: none !important; }
.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 (max-width: 900px) {
  .section { padding: 60px 0; }
  .section-sm { padding: 40px 0; }
}
@media (max-width: 600px) {
  :root { --container-pad: 18px; }
  .section { padding: 48px 0; }
}
