.contact {
  position: relative;
  background-color: var(--color-bg);
  margin-bottom: 150px;
}

.contact > img:first-child {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  opacity: 0.1;
  z-index: 0;
}

.container-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  gap: 100px;
}

.heading {
  margin-top: 100px;
  z-index: 1;
}

.contact-content {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--color-bg-second);
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
  z-index: 1;
}

.contact-form {
  flex: 1 1 62%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form .form-group {
  display: grid;
  gap: 0px;
}

.contact-form label {
  font-family: var(--font-user);
  font-size: 14px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="search"],
.contact-form input[type="password"],
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  color: var(--color-text);
  border: 1px solid #e0e2e9;
  border-radius: 10px;
  padding: 12px 12px;
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease, transform 0.05s ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #969ab8;
  opacity: 0.95;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px
    color-mix(in oklab, var(--color-accent) 25%, transparent);
  background: #fff;
}

.form-consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  font-size: 14px;
  font-family: var(--font-user);
  font-weight: 500;
  line-height: 1.45;
  color: rgba(36, 12, 3, 0.85);
  margin-top: 2px;
}

.form-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--color-accent);
}

.contact-form .btn {
  align-self: center;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 28px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.contact-form .btn:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.contact-form .btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12) inset;
}

.contact-info {
  flex: 1 1 38%;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 40px;
}

.elipse {
  width: 48px;
  height: 48px;
  background: var(--color-bg-second);
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.elipse img {
  width: 26px;
  height: auto;
}

.info-time-card,
.info-mail-card {
  width: 210px;
  background: #fff;
  border: 1px solid #e0e2e9;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  text-align: center;
  color: rgba(36, 12, 3, 0.85);
  font-size: 13px;
  line-height: 1.35;
}

.title-info {
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--color-bg-headerfooter);
}

@media (max-width: 1023px) {
  .container-contact {
    max-width: 800px;
    margin: 0 auto;
    padding-inline: 16px;
    gap: 48px;
  }
  .heading {
    margin-top: 60px;
  }
  .contact-content {
    width: auto;
    max-width: 100%;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px;
    border-radius: 16px;
  }
  .contact-form {
    gap: 12px;
  }
  .contact-form .btn {
    width: 100%;
    padding: 12px 18px;
    border-radius: 10px;
  }
  .form-consent {
    grid-template-columns: 18px 1fr;
    gap: 8px;
    font-size: 13px;
  }
  .contact-info {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 16px;
  }
  .elipse {
    width: 42px;
    height: 42px;
  }
  .elipse img {
    width: 22px;
  }
  .info-time-card,
  .info-mail-card {
    padding: 12px;
    font-size: 12.5px;
    max-width: none;
    border-radius: 12px;
  }
  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form input[type="tel"],
  .contact-form input[type="search"],
  .contact-form input[type="password"],
  .contact-form textarea {
    font-size: 16px;
    padding: 12px 12px;
  }
}
