body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f8f9fa;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

header {
  background-color: #004080;
  color: white;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

header .logo {
  font-size: 22px;
  font-weight: bold;
}

header nav a {
  margin: 0 10px;
  color: white;
  text-decoration: none;
  font-weight: 500;
}

header .contacts {
  font-size: 14px;
  text-align: right;
}
header .contacts a {
  color: rgb(247, 250, 75);
  text-decoration: none;
}

main {
  padding: 1rem;
}

h1, h2 {
  margin: 0.5em 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.item {
  background: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  text-align: center;
}

.item strong {
  display: block;
  margin-bottom: 0.5rem;
}

.form {
  margin-top: 2rem;
  align-items: center;
  text-align: center;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-width: 400px;
  margin: auto;
}

form input, form textarea {
  padding: 0.7rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  resize: vertical;
}

form button {
  background: #ffb700;
  color: #000;
  border: none;
  padding: 0.8rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

form button:hover {
  background: #e6a300;
}

footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  background: #eee;
  margin-top: 3rem;
}

.chat-widgets {
  position: fixed;
  right: 10px;
  bottom: 20px;
  max-width: calc(100vw - 20px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.chat-widget {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  color: black;
  padding: 0.5rem 0.8rem;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s;
}

.chat-widget:hover {
  transform: scale(1.05);
}

.chat-widget .icon {
  width: 24px;
  height: 24px;
}

.chat-widget span {
  font-size: 0.9rem;
  white-space: nowrap;
}

.telegram {
  border-left: 4px solid #0088cc;
}

.whatsapp {
  border-left: 4px solid #25d366;
}
.phone {
  border-left: 4px solid #0a84ff;
}
.item img {
  width: 100%;
  max-height: 150px;
  object-fit: contain;
  margin-bottom: 0.5rem;
  border-radius: 8px;
}
@media (max-width: 600px) {
  h1 {
    font-size: 1.5rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  form {
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
  }
  .chat-widgets {
  right: 10px;
  left: auto;
  transform: none;
  
  }

  .chat-widget {
    font-size: 0.8rem;
    max-width: 90vw; /* или 85vw */
    overflow: hidden;
    box-sizing: border-box;
  }
}

