/* ==========================================================================
   MAIN.CSS
   Точка входа. Порядок импорта = порядок каскада Atomic Design:
   variables -> reset -> atoms -> molecules -> organisms -> templates
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@1,500;1,600;1,700&family=Golos+Text:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

@import 'variables.css';
@import 'atoms.css';
@import 'molecules.css';
@import 'organisms.css';
@import 'templates.css';

/* — Reset —————————————————————————————————————————————— */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-secondary);
  background: var(--color-bg-main);
  color: var(--color-text-main);
  line-height: var(--lh-body);
  min-height: 100svh;
}
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul[class], ol[class] { list-style: none; padding: 0; }

/* Видимый фокус для клавиатурной навигации — сохраняется везде */
:focus-visible {
  outline: 2px solid var(--color-accent-primary);
  outline-offset: 2px;
}

html, body {
  /* Жестко обрезаем всё, что шире экрана */
  overflow-x: hidden;
  /* Гарантируем, что body не растянется больше мобилки */
  width: 100%;
  position: relative;
}