.about {
    width: 100%;
    height: auto;
    min-height: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background-image: url('../../image/ChatGPT Image 23 мая 2025 г., 15_26_48.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-sizing: border-box;
}

.about-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    background-color: rgba(255, 255, 255, 0.30);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    padding: 20px;
    backdrop-filter: blur(6px);
    gap: 30px;
    box-sizing: border-box;
}

.about-text {
    width: 48%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 10%;
}

.about-text-title {
    width: 95%;
    font-size: 2.5rem;
    font-weight: 500;
    text-align: right;
}

.about-text-subtitle {
    width: 95%;
    font-size: 1.1rem;
    color: #000;
    text-align: justify;
}

.card {
    width: 48%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.card-block-one,
.card-block-two,
.card-block-three,
.card-block-for {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
}

.card-image-icon {
    width: 50px;
    height: 50px;
    filter: brightness(0) invert(1);
}

.card-image-one,
.card-image-two,
.card-image-three,
.card-image-for {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: -5px -5px 9px rgba(255,255,255,0.45), 5px 5px 9px rgba(94,104,121,0.3);
}

.card-image-one { background-color: #3B2A1A; }
.card-image-two { background-color: #2B5C6B; }
.card-image-three { background-color: #4DA6C2; }
.card-image-for { background-color: #B2E2DD; }

.card-text {
    padding-left: 5px;
}

.card-text-title {
    font-size: 36px;
    font-weight: 500;
}

.card-text-subtitle {
    font-size: 20px;
    color: #444;
}

/* --- Media Queries --- */

/* Широкие экраны */
@media(min-width: 1440px) and (max-width: 2024px){
    .about-text-title { font-size: 40px; }
    .about-text-subtitle { font-size: 18px; }
}

/* Планшеты */
@media (max-width: 1024px) {
  .about-container {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .about-text,
  .card {
    width: 100%;
    text-align: center;
    align-items: center;
  }

  .about-text-title {
    font-size: 32px;
    text-align: center;
    line-height: 1.3;
  }

  .about-text-subtitle {
    font-size: 16px;
    text-align: justify;
    max-width: 90%;
    margin: 0 auto;
  }

  .card {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .card-block-one,
  .card-block-two,
  .card-block-three,
  .card-block-for {
    width: 45%;
    min-width: 200px;
    justify-content: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .card-text {
    padding-left: 0;
    text-align: center;
  }
}


/* Смартфоны */
@media (max-width: 768px) {
  .about {
    padding: 30px 15px;
    background-position: center;
    background-size: cover;
  }

  .about-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 20px;
  }

  .about-text,
  .card {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .about-text-title {
    font-size: 30px;
    line-height: 1.4;
    width: 90%;
    margin: 0 auto;
  }

  .about-text-subtitle {
    font-size: 16px;
    width: 90%;
    margin: 0 auto;
    text-align: justify;
  }

  .card {
    flex-direction: column;
    gap: 30px;
  }

  .card-block-one,
  .card-block-two,
  .card-block-three,
  .card-block-for {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .card-image-one,
  .card-image-two,
  .card-image-three,
  .card-image-for {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
  }

  .card-image-icon {
    width: 40px;
    height: 40px;
  }

  .card-text-title {
    font-size: 26px;
    font-weight: 600;
  }

  .card-text-subtitle {
    font-size: 16px;
    max-width: 90%;
    margin: 0 auto;
    line-height: 1.6;
  }
}

@media (max-width: 490px) {
  .about {
    padding: 30px 15px;
    background-position: center;
    background-size: cover;
  }

  .about-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 20px;
  }

  .about-text,
  .card {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .about-text-title {
    font-size: 25px;
    line-height: 1.4;
    width: 90%;
    margin: 0 auto;
  }

  .about-text-subtitle {
    font-size: 13px;
    width: 90%;
    margin: 0 auto;
    text-align: justify;
  }

  .card {
    flex-direction: column;
    gap: 30px;
    width: 100%;
  }

  .card-block-one,
  .card-block-two,
  .card-block-three,
  .card-block-for {
    width: 30%;
    display: flex;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .card-image-one,
  .card-image-two,
  .card-image-three,
  .card-image-for {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
  }

  .card-image-icon {
    width: 30px;
    height: 30px;
  }
  .card-text{
    width: 100%;
    padding: 0;
  }

  .card-text-title {
    font-size: 20px;
    font-weight: 600;
  }

  .card-text-subtitle {
    font-size: 13px;
    margin: 0 auto;
    line-height: 1.6;
  }
}
