.card-img-top {
  object-fit: cover;
  padding: 5px;
}

.card-container {
  display: flex;
  width: 100%;
  max-width: 1000px;
  /* ограничение, чтобы не расползалось */
  margin: 0 auto;
  /* фиксируем пропорции */
  background: url("/images/card_bg.png") no-repeat center/cover;
  background-size: contain !important;
  /* картинка целиком */
  background-position: center right !important;
  background-repeat: no-repeat !important;
  aspect-ratio: 5 / 3;
  /* точное соотношение (800x480) */
  min-height: auto;
}

.card-left {
  flex: 1;
  max-width: 50%;
  
}

.card-right {
  flex: 1;
  /* правая половина */
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* делим на верх и низ */
  padding-top: 4.5rem;
  padding-right: 0.5rem;
  box-sizing: border-box;
  color: white;

}
.card-control {
  width: 80%;
  margin: 0.2vh;
}

.card-title {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  color: white;
  height: 25%;
  /* если нужен текст поверх фона */
}

.card-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* форма справа */
  gap: 10px;
}

.card-form select,
.card-form button {
  max-width: 90%;
  margin: 6px 0;
}

.scroll-container {
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE и Edge */
}

.scroll-container::-webkit-scrollbar {
  display: none;
}

h2 {
  font-family: "Times New Roman", serif;
  font-style: italic;
  font-size: 1.5em;
}

.our-salons {
  font-family: "Calibri", serif;
  font-size: 2em;
  color: black;
}

.cities-tbl {
  display: flex;
  gap: 40px;
  margin-top: 37px;
  padding-top: 50px;
  width: 100%;
  justify-content: center;
  padding-bottom: 50px;
  background-color: rgba(0, 0, 0, 0.5);
}

.cities-ul {
  list-style-type: disc;
  margin: 0;
  padding-left: 20px;
}

.cities-img {
  width: 100%;
}

.cert-bar {
  margin: 0;
}

.cities-tab {
  height: 100px;
  background-image: url("/images/lemongrass.png");
  background-position: center;
  position: absolute;
  font-family: "Calibri", serif;
  font-size: 1.5em;
  color: white;
  width: 100%;
  height: 100%;
}

.city-item {
  transition: color 0.3s ease;
  cursor: pointer;
}

.cities-blk {
  height: 250px;
}

.city-item:hover {
  color: #ffc107;
  /* Жёлтый акцент из Bootstrap (warning) */
  text-decoration: underline;
}

.container {
  background-color: white;
  padding-left: 0px;
  padding-right: 0px;
  min-width: 200px;
  max-width: 800px;
}

.header {
  padding-top: 5px;
  padding-inline: 1em;
  text-align: end;
  color: white;
  background-color: black;
  font-family: "Times New Roman", serif;
}

.header-btn {
  padding-top: 5px;
  color: white;
  background-color: black;
  font-family: "Times New Roman", serif;
}

a {
  color: white;
}

.cert_select {
  color: black;
  font-family: "Times New Roman", serif;
  font-size: 1.3em;
  font-style: italic;
  text-align: left;
  padding-inline: 1em;
}

.textj {
  text-align: justify;
  font-size: 1.2em;
  font-style: italic;
}

footer {
  background: #000;
  color: black;
  padding: 15px 0;
  border-radius: 15px 15px 0 0;
}

footer a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
}

footer a:hover {
  text-decoration: underline;
}

body {
  line-height: 1;
  background-color: #f8f9fa;
}

.card_validate {
  border-radius: 15px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  margin: 25px;
  margin-top: 0px;
  justify-self: center;
}

.status-valid {
  color: green;
  font-weight: bold;
}

.status-invalid {
  color: red;
  font-weight: bold;
}

.cert-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  /* справа */
  align-items: center;
  /* по центру по вертикали */
  padding-right: clamp(20px, 4vw, 50px);
  z-index: 1;
}

.cert-form {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  /* всё выравнено по правому краю */
  gap: 12px;
  max-width: 280px;
}

.form-label {
  color: #000;
  font-size: 16px;
  text-align: left;
  width: 100%;
}