/* Минимальная утилитарная CSS — замена Tailwind CDN.
   Покрывает только классы, реально используемые в проекте. */

/* ===== Display & layout ===== */
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }

/* Flex */
.flex-1 { flex: 1 1 0%; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.shrink-0 { flex-shrink: 0; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-stretch { align-items: stretch; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.self-center { align-self: center; }
.min-w-0 { min-width: 0; }

/* Gap */
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-x-2 { column-gap: 0.5rem; }
.gap-x-3 { column-gap: 0.75rem; }
.gap-x-8 { column-gap: 2rem; }
.gap-y-0\.5 { row-gap: 0.125rem; }
.gap-y-4 { row-gap: 1rem; }

/* Grid */
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }

/* Spacing - padding */
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.pt-2 { padding-top: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.pb-24 { padding-bottom: 6rem; }

/* Spacing - margin */
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-1\.5 { margin-top: 0.375rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-10 { margin-bottom: 2.5rem; }
.ml-1 { margin-left: 0.25rem; }
.mr-1 { margin-right: 0.25rem; }

/* Sizes */
.w-9 { width: 2.25rem; }
.w-10 { width: 2.5rem; }
.w-11 { width: 2.75rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-full { width: 100%; }
.h-9 { height: 2.25rem; }
.h-10 { height: 2.5rem; }
.h-11 { height: 2.75rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.min-h-screen { min-height: 100vh; min-height: 100dvh; }
.max-w-md { max-width: 28rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-\[160px\] { max-width: 160px; }
.max-h-64 { max-height: 16rem; }

/* Typography */
.text-xs { font-size: 0.75rem; line-height: 1.4; }
.text-sm { font-size: 0.875rem; line-height: 1.5; }
.text-base { font-size: 1rem; line-height: 1.5; }
.text-lg { font-size: 1.125rem; line-height: 1.4; }
.text-xl { font-size: 1.25rem; line-height: 1.35; }
.text-2xl { font-size: 1.5rem; line-height: 1.3; }
.text-3xl { font-size: 1.875rem; line-height: 1.2; }
.font-medium { font-weight: 500; }
.leading-tight { line-height: 1.2; }
.tracking-tight { letter-spacing: -0.015em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.uppercase { text-transform: uppercase; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.break-words { overflow-wrap: anywhere; word-break: break-word; }
.whitespace-pre-wrap { white-space: pre-wrap; }

/* Colors (используют var() из styles.css) */
.text-white { color: #fff; }

/* Borders */
.border { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* Position / overflow */
.sticky { position: sticky; }
.fixed { position: fixed; }
.top-0 { top: 0; }
.z-30 { z-index: 30; }
.overflow-hidden { overflow: hidden; }

/* Hover helpers */
.hover\:text-ink:hover { color: var(--ink); }
.hover\:text-primary:hover { color: var(--primary); }

/* ===== Responsive (sm: prefix - >=640px) ===== */
@media (min-width: 640px) {
    .sm\:block { display: block; }
    .sm\:inline { display: inline; }
    .sm\:inline-block { display: inline-block; }
    .sm\:flex-row { flex-direction: row; }
    .sm\:items-center { align-items: center; }
    .sm\:hidden { display: none; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .sm\:col-span-2 { grid-column: span 2 / span 2; }
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:p-8 { padding: 2rem; }
    .sm\:py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
    .sm\:py-8 { padding-top: 2rem; padding-bottom: 2rem; }
    .sm\:pb-8 { padding-bottom: 2rem; }
    .sm\:p-6 { padding: 1.5rem; }
    .sm\:gap-3 { gap: 0.75rem; }
    .sm\:gap-4 { gap: 1rem; }
    .sm\:gap-5 { gap: 1.25rem; }
    .sm\:gap-2 { gap: 0.5rem; }
    .sm\:gap-x-3 { column-gap: 0.75rem; }
    .sm\:ml-2 { margin-left: 0.5rem; }
    .sm\:mb-4 { margin-bottom: 1rem; }
    .sm\:mb-5 { margin-bottom: 1.25rem; }
    .sm\:mb-6 { margin-bottom: 1.5rem; }
    .sm\:mt-1 { margin-top: 0.25rem; }
    .sm\:mt-3 { margin-top: 0.75rem; }
    .sm\:text-sm { font-size: 0.875rem; line-height: 1.5; }
    .sm\:text-xl { font-size: 1.25rem; line-height: 1.35; }
    .sm\:text-2xl { font-size: 1.5rem; line-height: 1.3; }
    .sm\:w-11 { width: 2.75rem; }
    .sm\:h-11 { height: 2.75rem; }
    .sm\:w-16 { width: 4rem; }
    .sm\:h-16 { height: 4rem; }
}

@media (min-width: 768px) {
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

/* space-y-4 (вертикальный gap для блочных детей) */
.space-y-4 > * + * { margin-top: 1rem; }
