html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

.section {
  padding: 20px;
  padding-top: 120px;
  margin: 20px auto;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  max-width: 960px;
}

.section h2 {
  margin-top: 0;
}

.contact-info p {
  font-size: 16px;
  line-height: 1.6;
}

.socials {
  margin-top: 15px;
}

.socials a {
  text-decoration: none;
  color: #1a1a2e;
  margin-right: 15px;
  font-size: 18px;
}

.socials a:hover {
  text-decoration: underline;
}

.rating-form {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #ccc;
}

.rating-form label {
  margin-right: 10px;
}

.stars {
  display: flex;
  gap: 10px;
  margin: 10px 0;
}

.stars input {
  display: none;
}

.stars label {
  font-size: 24px;
  cursor: pointer;
  color: #ccc;
  transition: color 0.2s;
}

.stars input:checked ~ label,
.stars label:hover,
.stars label:hover ~ label {
  color: gold;
}

.stars label:before {
  content: "★";
}

textarea {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  resize: vertical;
}

.rating-form button {
  margin-top: 10px;
  padding: 10px 20px;
  border: none;
  background-color: #1a1a2e;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}

.rating-form button:hover {
  background-color: #2e2e50;
}

@media (max-width: 600px) {
  .navbar .menu a {
    margin: 0 8px;
    font-size: 16px;
  }

  .section {
    margin: 10px;
    padding: 15px;
  }

  .socials a {
    display: block;
    margin-bottom: 10px;
  }
}

body {
  background: url("images/colaguy.png") no-repeat center center fixed;
  background-size: cover;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #d9e4ff;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.section {
  flex: 1 1 100%;
  background: rgba(10, 25, 55, 0.9);
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 90, 200, 0.6);
  max-width: 900px;
  margin-top: 120px;
}

.section h2 {
  font-size: 3.6rem;
  margin-bottom: 25px;
  color: #ffffff;
  border-bottom: 3px solid #3399ff;
  padding-bottom: 6px;
}

/* Контактная информация */
.contact-info p {
  font-size: 2.4rem;
  margin-bottom: 14px;
  color: #ffffff;
}

.contact-info strong {
  color: #ffffff;
}

/* Социальные сети */
.socials {
  margin-top: 25px;
}

.socials p {
  font-weight: 600;
  margin-bottom: 14px;
  color: #ffffff;
}

.socials a {
  color: #ffffff;
  margin-right: 20px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.3s ease;
}

.socials a:hover,
.socials a:focus {
  border-color: #4979a7;
  outline: none;
}

/* Форма оценки */
.rating-form {
  margin-top: 50px;
  background: rgba(20, 40, 80, 0.6);
  padding: 30px 25px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 90, 200, 0.4);
}

.rating-form h3 {
  color: #ffffff;
  margin-bottom: 25px;
  font-size: 1.8rem;
  text-align: center;
}

form {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Звезды рейтинга */
.stars {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.stars input[type="radio"] {
  display: none;
}

.stars label {
  font-size: 2.4rem;
  color: #567ea6;
  cursor: pointer;
  transition: color 0.3s ease;
  user-select: none;
}

.stars label:hover,
.stars label:hover ~ label,
.stars input[type="radio"]:checked ~ label {
  color: #f5c518;
}

/* Текстовое поле */
textarea {
  resize: vertical;
  padding: 12px 10px;
  font-size: 1.1rem;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #eef7ff;
  font-family: inherit;
  box-shadow: inset 0 0 5px rgba(0, 90, 200, 0.7);
  transition: background-color 0.3s ease;
}

textarea::placeholder {
  color: #ffffff;
}

textarea:focus {
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

button[type="submit"] {
  background-color: #3399ff;
  color: #eef7ff;
  font-weight: 600;
  padding: 12px 0;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover,
button[type="submit"]:focus {
  background-color: #007acc;
  outline: none;
}

/* Адаптивность */
@media (max-width: 768px) {
  .page-wrapper {
    margin: 40px 15px 60px 15px;
  }

  .section {
    padding: 25px 20px;
  }
}
