@import url(http://fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300italic,400italic,500,500italic,700,700italic,900italic,900);

html, body, html * {
  font-family: 'Roboto', sans-serif;
}

body {
  background-color: #121212;
  color: #e0e0e0;
  font-family: "Segoe UI", sans-serif;
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
}

.navbar {
  background-color: #1e1e1e;
  border-bottom: 1px solid #2c2c2c;
}

.card {
  background-color: #1a1a1a;
  border: 1px solid #2c2c2c;
  border-radius: 0.75rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}

.card-header,
.card-footer {
  background-color: #1f1f1f;
  border-color: #2c2c2c;
}

.btn {
  border-radius: 0.5rem;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.list-group-item {
  background-color: #1e1e1e;
  border: 1px solid #2a2a2a;
  color: #ddd;
}
.list-group-item:hover {
  background-color: #2a2a2a;
}
.header-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(0.5rem, 2vh, 1.5rem);
}

/* Desktop - оригинальные стили из Figma */
.studio-title {
    font-family: 'Roboto', sans-serif;
    font-style: normal;
    font-weight: 800;
    font-size: 80px;
    line-height: 94px;
    text-align: center;
    letter-spacing: 0.18em;
    margin: 0;
    padding: 0;
}

.studio-subtitle {
    font-family: 'Roboto', sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: 47px;
    line-height: 55px;
    text-align: center;
    letter-spacing: 0.19em;
    margin: 0;
    padding: 0;
}

/* iPad Pro и большие планшеты (до 1366px) */
@media (max-width: 1366px) {
    .studio-title {
        font-size: 70px;
        line-height: 82px;
    }
    .studio-subtitle {
        font-size: 41px;
        line-height: 48px;
    }
}

/* iPad и средние планшеты (до 1024px) */
@media (max-width: 1024px) {
    .studio-title {
        font-size: 60px;
        line-height: 70px;
    }
    .studio-subtitle {
        font-size: 35px;
        line-height: 41px;
    }
}

/* iPad mini и маленькие планшеты (до 820px) */
@media (max-width: 820px) {
    .studio-title {
        font-size: 50px;
        line-height: 59px;
        letter-spacing: 0.14em;
    }
    .studio-subtitle {
        font-size: 29px;
        line-height: 34px;
        letter-spacing: 0.15em;
    }
}

/* Телефоны (до 576px) */
@media (max-width: 576px) {
    .studio-title {
        font-size: 40px;
        line-height: 0px;
        letter-spacing: 0.1em;
    }
    .studio-subtitle {
        font-size: 23px;
        line-height: 27px;
        letter-spacing: 0.12em;
    }
    .header-section {
        padding: 1.5rem 0.5rem;
    }
}

/* Маленькие телефоны (до 400px) */
@media (max-width: 450px) {
    .header-section{
      display: none;
    }
}


.form-control{
  background-color: #1a1a1a;
  border: 1px solid #2c2c2c;
}
.form-control:focus {
  border-color: #66d9ef;
  box-shadow: 0 0 0 0.2rem rgba(102, 217, 239, 0.25);
  background-color: #1e1e1e;
}

.alert {
  border-radius: 0.5rem;
}

.alert-success {
  background-color: #1e3d2f;
  border-color: #1e3d2f;
  color: #a5d6a7;
}
.alert-danger {
  background-color: #3d1e1e;
  border-color: #3d1e1e;
  color: #ef9a9a;
}

body[data-theme="light"] {
  background-color: #f5f5f5;
  color: #212121;
}


body[data-theme="light"] .list-group-item {
  background-color: #ffffff;
  border: 1px solid #ccc;
  color: #212121;
}

body[data-theme="light"] .navbar {
  border: none;
}


body[data-theme="light"] .form-control,
body[data-theme="light"] .form-select {
  background-color: #fff;
  color: #000;
  border: 1px solid #ccc;
}

body[data-theme="light"] .alert-success {
  background-color: #d0f0d0;
  border-color: #b8e6b8;
  color: #2e7d32;
}

body[data-theme="light"] .alert-danger {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #c00;
}
body[data-theme="light"] .text-muted{
  color: #1e1e1e !important;
}

.alert-info {
  background-color: #1e2f3d;
  border-color: #1e2f3d;
  color: #90caf9;
}

.markdown-body img {
  max-width: 100%;
  height: auto;
}
.markdown-body {
  word-wrap: break-word;
}
