body {
  background-color: #000;
}

.form {
  background-color: #15172b;
  border-radius: 20px;
  box-sizing: border-box;
  padding: 20px;
  width:100%;
}

.title {
  color: #eee;
  font-family: sans-serif;
  font-size: 36px;
  font-weight: 600;
  margin-top: 30px;
  border-bottom: 2px solid #1161ed;
}

.subtitle {
  color: #eee;
  font-family: sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-top: 10px;
}

.input-container {
  height: 50px;
  position: relative;
  width: 100%;
}

.ic1 {
  margin-top: 65px;
}

.ic2 {
  margin-top: 30px;
}

.input {
  background-color: #303245;
  border-radius: 12px;
  border: 0;
  box-sizing: border-box;
  color: #eee;
  font-size: 18px;
  height: 100%;
  outline: 0;
  padding: 4px 20px 0;
  width: 100%;
}
textarea{
  resize: none;
}


.cut {
  background-color: #15172b;
  border-radius: 10px;
  height: 20px;
  left: 20px;
  position: absolute;
  top: -20px;
  transform: translateY(0);
  transition: transform 200ms;
  width: 76px;
}
.cut1{
  width: 55px;
}
.cut2{
  width: 120px;
}
.cut3{
  width: 102px;
}
.cut4{
  width: 90px;
}
.cut5{
  width: 217px;
}
.cut6{
  width: 163px;
}
.cut7{
  width: 118px;
}
.cut8{
  width: 157px;
}

.cut-short {
  width: 50px;
}

.input:focus ~ .cut,
.input:not(:placeholder-shown) ~ .cut {
  transform: translateY(8px);
}

.placeholder {
  color: #65657b;
  font-family: sans-serif;
  left: 20px;
  line-height: 14px;
  pointer-events: none;
  position: absolute;
  transform-origin: 0 50%;
  transition: transform 200ms, color 200ms;
  top: 20px;
}

.input:focus ~ .placeholder,
.input:not(:placeholder-shown) ~ .placeholder {
  transform: translateY(-30px) translateX(10px) scale(0.75);
}

.input:not(:placeholder-shown) ~ .placeholder {
  color: #808097;
}

.input:focus ~ .placeholder {
  color: #1161ed;
}

.submit {
  background-color: #1161ed;
  border-radius: 12px;
  border: 0;
  box-sizing: border-box;
  color: #eee;
  cursor: pointer;
  font-size: 18px;
  height: 50px;
  margin-top: 38px;
  text-align: center;
  width: 100%;
}

.submit:active {
  background-color: #06b;
}


.place {
  margin-top: 40px;
  background: #303245;
  color: #fff;
  border: 1px solid #1161ed;
  padding: 20px;
  border-radius: 10px;
}
.form-link { background: #1161ed; color: #fff; padding: 10px 20px; display: inline-block; border-radius: 5px; text-decoration: none; }

.card { background: #fff; padding: 15px; border-radius: 10px; margin-bottom: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.details { display: none; margin-top: 10px; }
.show-details { color: #007BFF; cursor: pointer; }
#results {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center; /* або space-between */
  padding: 0;
  margin: 0 auto;
  box-sizing: border-box;
  max-width: 1200px;
}

/* Картка */
.org-card {
  background: #303245;
  color: #fff;
  border: 1px solid #1161ed;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s;
  box-sizing: border-box;
  flex: 1 1 200px; /* Мінімум 200px, максимум — вільний простір */
  max-width: 220px; /* обмеження максимальної ширини */
}


.org-card:hover {
  transform: translateY(-4px);
}

.org-logo {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
}

.org-card h3 {
  font-size: 16px;
  margin: 10px 0;
  min-height: 42px; /* щоб не стрибали */
}

.org-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 12px;
  background-color: #1161ed;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
}

.org-btn:hover, .form-link:hover, .submit:hover, .btn:hover {
  background-color: #0044ba;
}

@media (max-width: 768px) {
  .org-card {
    max-width: 45%;
    flex: 1 1 45%;
  }
}

@media (max-width: 480px) {
  .org-card {
    max-width: 100%;
    flex: 1 1 100%;
  }
}

.card-plate {
  background: #303245;
  color: #fff;
  margin: 0 auto;
  padding: 30px;
  max-width: 900px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 30px;
  border: 1px solid #1161ed;
}

.card-plate img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #e0e0e0;
}

.info {
  max-width: 515px;
  width: 100%;
}

.info h1 {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 600;
}

a {
  color: #5a96ff;
}
a:hover {
  color: #84b1ff;
}
.handle {
  display: inline-block;
  background: #23253f;
  border: 1px solid #1161ed;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 5px;
}

.info .desc {
  border-top: 1px solid #575757;
  margin-top: 15px;
  padding-top: 15px;
  line-height: 1.5;
  color: #c5c5c5;
  font-size: 15px;
}

.actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  max-width: 220px;
}

a.btn {
  background: #1161ed;
  color: white;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  transition: background 0.2s;
}

.copy-link {
  word-break: break-all;
  background: #9d9d9d;
  padding: 5px 8px;
  margin-top: 4px;
  font-size: 13px;
  border-radius: 4px;
  color: #000000;
  border: 1px solid #1161ed;
}

@media (max-width: 768px) {
  .card-plate {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .actions {
    align-items: center;
  }
}

.site-footer {
  color: #c0c0c0;
  padding: 20px 0;
  font-size: 0.9rem;
}
.site-footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer-info,
.developer-info {
  margin-bottom: 10px;
}
.developer-info p {
  margin: 4px 0;
}
.developer-info a {
  color: #8ab4f8;
  text-decoration: none;
}
.developer-info a:hover {
  text-decoration: underline;
}
@media (max-width: 600px) {
  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
}
