/* ================= BASE ================= */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ================= CONTAINERS ================= */

.container-wide,
.container-lux {
  width: 100%;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-wide {
  max-width: 1320px;
}

.container-lux {
  max-width: 1200px;
}

.container-narrow {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* ================= SECTIONS ================= */

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

.section-lg {
  padding: var(--space-10) 0;
}

.section-sm {
  padding: var(--space-6) 0;
}

/* ================= GRID ================= */

.grid-2,
.grid-3 {
  display: grid;
}

/* GRID-2 */
.grid-2 {
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 64px;
    align-items: center;
  }
}

.grid-2.spaced {
  margin-bottom: 80px;
}

/* GRID-3 */
.grid-3 {
  gap: 40px;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ================= FLEX HELPERS ================= */

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ================= TEXT ================= */

.text-center {
  text-align: center;
}

/* ================= SPACING ================= */

.spacing-sm {
  margin-top: 16px;
}

.spacing-md {
  margin-top: 32px;
}

/* ❗ залишаю як є щоб не ламати layout */
.spacing-lg {
  height: 64px;
}

/* ================= WIDTH ================= */

.narrow {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ================= REVERSE ================= */

.reverse {
  direction: rtl;
}

.reverse * {
  direction: ltr;
}

/* ================= SECTION SYSTEM ================= */

.section-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-7);
}

.section-text {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section-actions {
  margin-top: var(--space-6);
}

.shop-grid {
  margin-top: 24px;
}

/* ================= CARD ================= */

.card-padding-lg {
  padding: 32px;
}

.mb-lg {
  margin-bottom: 24px;
}

/* ================= CONTENT LAYOUT ================= */

.content-col {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 768px) {

  .grid-2:nth-of-type(odd) .content-col {
    margin-top: 40px;
  }

  .grid-2:nth-of-type(even) .content-col {
    margin-top: 20px;
  }

}

/* ================= LINKS ================= */

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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