/* ============================================================
   Фреймворк — скелет страницы
   Сброс, типографика, сетка, утилиты, иконки
   Без дизайн-системы (цвета, радиусы, тени)
   ============================================================ */

/* ---------- СБРОС ---------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

ul, ol {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

li {
    display: list-item;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* ---------- ТИПОГРАФИКА ---------- */
body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-size: clamp(0.9375rem, 0.9rem + 0.25vw, 1.0625rem);
}

h1, .h1 {
    font-size: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}
h2, .h2 {
    font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.4rem);
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
h3, .h3 {
    font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.8rem);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
h4, .h4 {
    font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
    font-weight: 600;
    line-height: 1.35;
}
h5, .h5 {
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
    font-weight: 600;
    line-height: 1.4;
}
h6, .h6 {
    font-size: clamp(0.9rem, 0.875rem + 0.125vw, 1rem);
    font-weight: 550;
    line-height: 1.4;
}
small, .small { font-size: 0.85rem; }

/* ---------- ИКОНКИ (ICMS SVG) ---------- */
.icms-svg-icon {
    display: inline-block;
    font-size: inherit;
    height: 1em;
    overflow: visible;
    vertical-align: -0.125em;
    fill: currentColor;
    width: 1em;
}

/* ---------- СЕТКА ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -12px;
    margin-left: -12px;
}

[class*="col-"] {
    position: relative;
    width: 100%;
    padding-right: 12px;
    padding-left: 12px;
}

.col, .col-sm, .col-md, .col-lg {
    flex-basis: 0;
    flex-grow: 1;
    max-width: 100%;
}
.col-sm-12 { flex: 0 0 100%; max-width: 100%; }
.col-lg-3 { flex: 0 0 25%; max-width: 25%; }
.col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-md-3 { flex: 0 0 25%; max-width: 25%; }
.col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; }
.col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-md-9 { flex: 0 0 75%; max-width: 75%; }
.col-md-12 { flex: 0 0 100%; max-width: 100%; }
.col-md-auto { flex: 0 0 auto; width: auto; max-width: 100%; }
.col-lg { flex-basis: 0; flex-grow: 1; max-width: 100%; }

@media (min-width: 576px) {
    .col-sm { flex-basis: 0; flex-grow: 1; max-width: 100%; }
    .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
}
@media (min-width: 768px) {
    .col-md { flex-basis: 0; flex-grow: 1; max-width: 100%; }
}
@media (min-width: 992px) {
    .col-lg { flex-basis: 0; flex-grow: 1; max-width: 100%; }
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
    .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
}

/* ---------- УТИЛИТЫ ---------- */
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-none { display: none !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-block { display: block !important; }
.d-table { display: table !important; }

.flex-column { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }
.flex-fill { flex: 1 1 auto !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }

.justify-content-start { justify-content: flex-start !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-center { align-items: center !important; }
.align-items-baseline { align-items: baseline !important; }
.align-items-stretch { align-items: stretch !important; }
.align-self-center { align-self: center !important; }
.align-content-end { align-content: flex-end !important; }

.collapse { display: none; }
.collapse.show { display: block; }
.show { display: block !important; }

.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-break { word-break: break-word; overflow-wrap: break-word; }
.text-nowrap { white-space: nowrap !important; }

.float-left { float: left !important; }
.float-right { float: right !important; }
.clearfix::after { content: ''; display: block; clear: both; }

.w-25 { width: 25% !important; }
.w-50 { width: 50% !important; }
.w-75 { width: 75% !important; }
.w-100 { width: 100% !important; }
.w-auto { width: auto !important; }
.h-100 { height: 100% !important; }
.min-vh-100 { min-height: 100vh !important; }

.overflow-auto { overflow: auto !important; }
.overflow-hidden { overflow: hidden !important; }
.overflow-visible { overflow: visible !important; }

.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !important; }
.position-static { position: static !important; }
.fixed-bottom { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; }
.fixed-top { position: fixed; top: 0; left: 0; right: 0; z-index: 50; }
.sticky-top { position: sticky; top: 0; z-index: 50; }

.img-fluid { max-width: 100%; height: auto; }
.img-thumbnail { padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.invisible { visibility: hidden !important; }
.stretched-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.gap-2 { gap: 8px !important; }
.gap-3 { gap: 12px !important; }
.gap-4 { gap: 16px !important; }