* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

body {
  color: #111;
  background: #fff;
  line-height: 1.5;
}

body > main {
  padding: 40px 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: bold;
  font-size: 20px;

  a {
    color: black;
    text-decoration: none;
  }
}

.hero {
  padding: 80px 0;
  background: #f5f5f5;
  text-align: center;
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 15px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 30px;
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

section {
  padding: 60px 0;
}

h2 {
  text-align: center;
  margin-bottom: 40px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card,
.service {
  padding: 25px;
  border: 1px solid #eee;
  text-align: center;
}

.steps {
  max-width: 600px;
  margin: 0 auto;
  list-style: decimal;
  padding-left: 20px;
}

.form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form input,
.form textarea {
  padding: 12px;
  border: 1px solid #ccc;
}

/* Контейнер формы */
.wpcf7 .form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* CF7 оборачивает поля в <p> — убираем мусор */
.wpcf7 .form p {
  margin: 0;
}

/* Инпуты и textarea */
.wpcf7 input[type="text"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ccc;
  font-size: 16px;
  background: #fff;
  transition: border-color 0.2s ease;
}

/* Фокус */
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: #111;
}

/* Textarea */
.wpcf7 textarea {
  min-height: 120px;
  resize: vertical;
}

/* Кнопка */
.wpcf7 .wpcf7-submit.btn {
  width: 100%;
  padding: 14px 20px;
  font-size: 16px;
  cursor: pointer;
}

/* Спиннер */
.wpcf7 .wpcf7-spinner {
  display: block;
  margin: 10px auto 0;
}

/* Сообщение об успехе */
.wpcf7 form.sent .wpcf7-response-output {
  border: none;
  padding: 15px;
  margin-top: 20px;
  background: #e8f5e9;
  color: #2e7d32;
  text-align: center;
}

/* Ошибки */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
  border: none;
  padding: 15px;
  margin-top: 20px;
  background: #fdecea;
  color: #b71c1c;
}

/* Ошибки под полями */
.wpcf7-not-valid-tip {
  font-size: 13px;
  margin-top: 5px;
}


.btn {
  padding: 12px 20px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-weight: bold;
  text-align: center;
}

.btn--primary {
  background: #111;
  color: #fff;
}

.btn--secondary {
  background: transparent;
  border: 1px solid #111;
  color: #111;
}

.footer {
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid #eee;
}

/* Адаптив */
@media (max-width: 900px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 28px;
  }
}

/* Навигация в футере */
footer .header-menu {
  margin-top: 20px;
}

/* Список */
footer .header-menu .menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* Пункты */
footer .header-menu .menu-item {
  margin: 0;
}

/* Ссылки */
footer .header-menu a {
  font-size: 14px;
  color: #777;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Hover */
footer .header-menu a:hover {
  color: #111;
}

/* Мобилка */
@media (max-width: 576px) {
  footer .header-menu .menu {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

