@import url("https://fonts.googleapis.com/css2?family=Geologica:wght@100..900&display=swap");

body {
  margin: 0;
  font-family: Geologica;
  background-color: #f5f6fa;
  color: #1e1e1e;
}

.telegram-bot-link {
  color: #000;
  text-decoration: underline;
}
.telegram-bot-link:hover {
  color: #333;
  text-decoration: underline;
}

.container {
  max-width: 900px;
  margin: 40px auto;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

h1 {
  font-size: 28px;
  margin-bottom: 20px;
}

.company-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.content-block {
  display: block;
}

.logo {
  float: left;
  margin-right: 30px;
  margin-bottom: 20px;
  shape-outside: margin-box;
}

.logo img {
  width: 300px;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  border-radius: 8px;
  shape-outside: margin-box;
  shape-margin: 10px;
}

.details {
  text-align: left;
  line-height: 1.6;
}

.details p {
  margin: 8px 0;
  text-align: left;
  line-height: 1.7;
  clear: none;
}

.details p:first-child {
  margin-top: 0;
}

.details p:last-child {
  margin-bottom: 0;
}

.details strong {
  color: #1760a4;
  font-weight: 600;
}

.section {
  clear: both;
}

.section p {
  margin: 8px 0;
  text-align: left;
  line-height: 1.7;
}

.section strong {
  color: #1760a4;
  font-weight: 600;
}

.section h2 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #333;
}

.section ul {
  padding-left: 20px;
}

.vote-section {
  margin-top: 30px;
}

.vote-section input {
  width: 200px;
  padding: 10px;
  margin-top: 8px;
  margin-bottom: 10px;
  border: 2px solid #124b7d;
  border-radius: 5px;
}

.vote-section button {
  display: block;
  width: 223px;
  padding: 10px 25px;
  background-color: #1760a4;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.vote-section button:hover {
  background-color: #124b7d;
}

@media (max-width: 900px) {
  .logo {
    float: none;
    margin: 0 auto 20px auto;
    text-align: center;
    width: 100%;
  }

  .logo img {
    width: 250px;
    max-width: 90%;
    display: block;
    margin: 0 auto;
  }

  .details {
    text-align: left;
  }

  .section p {
    text-align: left;
  }

  .vote-section input {
    width: 100%;
  }

  .info-content {
    text-align: left;
  }

  .content-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
  }
}

/* Стили для сообщений о голосовании */
.vote-message {
  padding: 15px 20px;
  border-radius: 8px;
  margin: 20px 0;
  font-weight: 500;
  text-align: center;
  animation: fadeIn 0.5s ease-in-out;
}

.vote-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.vote-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.error-message {
  color: #dc3545;
  font-size: 14px;
  margin-top: 5px;
  display: block;
}

.vote-section textarea {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  margin-bottom: 10px;
  border: 2px solid #124b7d;
  border-radius: 5px;
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

.vote-section textarea:focus,
.vote-section input:focus {
  outline: none;
  border-color: #1760a4;
  box-shadow: 0 0 0 3px rgba(23, 96, 164, 0.1);
}
