@import url("../css/reset.css");

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PT Sans Caption", sans-serif;
  line-height: 1.45;
  font-size: 16px;
  color: #fff;
  background: #18181d;
  padding: 24px;
}

input,
select,
button {
  font-family: "PT Sans Caption", sans-serif;
  color: #fff;
  font-size: 16px;
}

a {
  text-decoration: none;
  color: #fff;
}

.wrapper {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  border-radius: 16px;
  background: #222229;
  overflow: hidden;
  padding: 24px;
  min-height: calc(100vh - 48px);
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
}

h1 {
  font-size: 26px;
  font-weight: 700;
}

.side-info {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.side-info img {
  position: absolute;
  left: 50%;
  top: 50%;
  min-height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  width: 100%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  z-index: 0;
}

.side-info:after {
  content: "";
  background: linear-gradient(
    180deg,
    rgba(34, 34, 41, 0.2) 0%,
    rgb(34 34 41 / 90%) 100%
  );
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.text-info {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  height: 100%;
}

.text-info .links {
  display: flex;
  gap: 20px;
}

.text-info .links a {
  font-weight: 700;
  font-size: 18px;
}

.download {
  display: inline-flex;
  background: rgb(0 0 0 / 40%);
  width: max-content;
  padding: 8px 16px;
  border-radius: 8px;
  transition: 0.3s;
}

.download:hover {
  background: rgb(0 0 0 / 60%);
}

label {
  display: block;
  margin: 24px 0 12px;
}

input,
select {
  display: block;
  background: #18181d;
  padding: 14px 24px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: 0.3s;
  width: 100%;
}

input:focus,
input:hover,
select:focus,
select:hover {
  border: 1px solid #4d4d5d;
}

button {
  padding: 14px 24px;
  background: #147b78;
  margin-top: 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #0f6663;
}

.side-form .form-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.result {
  padding: 14px 24px;
  background: rgb(46 83 0);
  margin-top: 24px;
  border-radius: 8px;
}

.side-form h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 24px 0 12px;
}

blockquote {
  padding: 14px 24px;
  background: rgb(255 101 0 / 22%);
  margin-top: 24px;
  border-radius: 8px;
}

.side-form .info p {
  margin: 6px 0 6px 24px;
}

@media (max-width: 768px) {
  body {
    padding: 12px;
  }

  .wrapper {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .text-info {
    gap: 48px;
  }
}

input[type="text"] {
    width: 100%; /* Занимает 100% ширины родительского элемента */
    max-width: 100%; /* Ограничение максимальной ширины */
    padding: 14px 24px; /* Отступы внутри поля */
    border-radius: 8px;
    border: 1px solid transparent;
    transition: 0.3s;
    box-sizing: border-box; /* Учитывает отступы и границы в ширине */
}

input[type="text"]:focus,
input[type="text"]:hover {
    border: 1px solid #4d4d5d; /* Цвет границы при фокусе */
}