/**
 * Minimal grid + reset for ALSamandar.uz
 *
 * Replaces Bootstrap's CSS, whose vendored copy was destroyed by the same disk
 * corruption that hit the images (71% of bootstrap.min.css was zeroed and it is
 * not recoverable). This covers exactly the classes the site uses — the 12-column
 * grid, gutters and the handful of flex/display utilities — in ~4 KB instead of
 * 814 KB. Breakpoints and class names match Bootstrap 5, so re-adding the real
 * thing later is a drop-in swap.
 */

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

body {
  margin: 0;
}

/*--------------------------------------------------------------
# Container
--------------------------------------------------------------*/
.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: 15px;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1280px;
  }
}

/*--------------------------------------------------------------
# Row & columns
--------------------------------------------------------------*/
.row {
  --gap-x: 1.5rem;
  --gap-y: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(var(--gap-y) * -1);
  margin-inline: calc(var(--gap-x) * -0.5);
}

.row>* {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  margin-top: var(--gap-y);
  padding-inline: calc(var(--gap-x) * 0.5);
}

/* Vertical gutters */
.gy-1 { --gap-y: 0.25rem; }
.gy-2 { --gap-y: 0.5rem; }
.gy-3 { --gap-y: 1rem; }
.gy-4 { --gap-y: 1.5rem; }
.gy-5 { --gap-y: 3rem; }

/* Base (xs) columns */
.col { flex: 1 0 0%; }
.col-1  { width: 8.33333333%; }
.col-2  { width: 16.66666667%; }
.col-3  { width: 25%; }
.col-4  { width: 33.33333333%; }
.col-5  { width: 41.66666667%; }
.col-6  { width: 50%; }
.col-7  { width: 58.33333333%; }
.col-8  { width: 66.66666667%; }
.col-9  { width: 75%; }
.col-10 { width: 83.33333333%; }
.col-11 { width: 91.66666667%; }
.col-12 { width: 100%; }

@media (min-width: 576px) {
  .col-sm-1  { width: 8.33333333%; }
  .col-sm-2  { width: 16.66666667%; }
  .col-sm-3  { width: 25%; }
  .col-sm-4  { width: 33.33333333%; }
  .col-sm-5  { width: 41.66666667%; }
  .col-sm-6  { width: 50%; }
  .col-sm-7  { width: 58.33333333%; }
  .col-sm-8  { width: 66.66666667%; }
  .col-sm-9  { width: 75%; }
  .col-sm-10 { width: 83.33333333%; }
  .col-sm-11 { width: 91.66666667%; }
  .col-sm-12 { width: 100%; }
}

@media (min-width: 768px) {
  .col-md-1  { width: 8.33333333%; }
  .col-md-2  { width: 16.66666667%; }
  .col-md-3  { width: 25%; }
  .col-md-4  { width: 33.33333333%; }
  .col-md-5  { width: 41.66666667%; }
  .col-md-6  { width: 50%; }
  .col-md-7  { width: 58.33333333%; }
  .col-md-8  { width: 66.66666667%; }
  .col-md-9  { width: 75%; }
  .col-md-10 { width: 83.33333333%; }
  .col-md-11 { width: 91.66666667%; }
  .col-md-12 { width: 100%; }
}

@media (min-width: 992px) {
  .col-lg-1  { width: 8.33333333%; }
  .col-lg-2  { width: 16.66666667%; }
  .col-lg-3  { width: 25%; }
  .col-lg-4  { width: 33.33333333%; }
  .col-lg-5  { width: 41.66666667%; }
  .col-lg-6  { width: 50%; }
  .col-lg-7  { width: 58.33333333%; }
  .col-lg-8  { width: 66.66666667%; }
  .col-lg-9  { width: 75%; }
  .col-lg-10 { width: 83.33333333%; }
  .col-lg-11 { width: 91.66666667%; }
  .col-lg-12 { width: 100%; }
}

@media (min-width: 1200px) {
  .col-xl-1  { width: 8.33333333%; }
  .col-xl-2  { width: 16.66666667%; }
  .col-xl-3  { width: 25%; }
  .col-xl-4  { width: 33.33333333%; }
  .col-xl-5  { width: 41.66666667%; }
  .col-xl-6  { width: 50%; }
  .col-xl-7  { width: 58.33333333%; }
  .col-xl-8  { width: 66.66666667%; }
  .col-xl-9  { width: 75%; }
  .col-xl-10 { width: 83.33333333%; }
  .col-xl-11 { width: 91.66666667%; }
  .col-xl-12 { width: 100%; }
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/
.d-flex { display: flex !important; }
.d-block { display: block !important; }
.d-none { display: none !important; }

.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }

.justify-content-start { justify-content: flex-start !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }

.align-items-start { align-items: flex-start !important; }
.align-items-center { align-items: center !important; }

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

.img-fluid {
  max-width: 100%;
  height: auto;
}

@media (max-width: 1199.98px) {
  .d-xl-none { display: block !important; }
}

@media (min-width: 1200px) {
  .d-xl-none { display: none !important; }
}
