:root {
  --ts-red: #e30613;
  --ts-text: #090909;
  --ts-border: #c7c7c7;
}

.ts-contact-page,
.ts-contact-page * { box-sizing: border-box; }
.ts-contact-page {

  color: var(--ts-text);
  font-family: Arial, Helvetica, sans-serif;
}
.ts-contact-title {
  margin: 0 0 31px;
  color: var(--ts-text);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.05;
}
.ts-contact-intro h2,
.ts-contact-company h2,
.ts-contact-form-wrap h2 {
  margin: 0;
  color: var(--ts-text);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}
.ts-contact-intro { margin-bottom: 35px; }
.ts-contact-intro h2 { margin-bottom: 17px; }
.ts-contact-line {
  display: flex;
  align-items: center;
  min-height: 25px;
  color: #262626;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
}
.ts-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 31px;
  width: 31px;
  height: 25px;
  margin-right: 11px;
  color: var(--ts-red);
}
.ts-icon--phone::before {
  position: absolute;
  top: 1px;
  left: 6px;
  width: 13px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 1px;
  content: '';
}
.ts-icon--phone::after {
  position: absolute;
  left: 10px;
  bottom: 4px;
  width: 5px;
  border-top: 1px solid currentColor;
  content: '';
}
.ts-icon--mail::before {
  position: absolute;
  top: 4px;
  left: 2px;
  width: 23px;
  height: 16px;
  border: 2px solid currentColor;
  content: '';
}
.ts-icon--mail::after {
  position: absolute;
  top: 2px;
  left: 5px;
  width: 16px;
  height: 13px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  content: '';
}
.ts-icon--pin::before {
  position: absolute;
  top: 1px;
  left: 5px;
  width: 17px;
  height: 21px;
  border: 2px solid currentColor;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  content: '';
}
.ts-icon--pin::after {
  position: absolute;
  top: 7px;
  left: 10px;
  width: 6px;
  height: 6px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  content: '';
}
.ts-contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 31px 30px;
}
.ts-contact-card {
  display: block;
  height: 170px;
  padding: 28px 20px 20px;
  border: 1px solid var(--ts-border);
  color: var(--ts-text) !important;
  text-decoration: none !important;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ts-contact-card:hover,
.ts-contact-card:focus { border-color: var(--ts-red); box-shadow: 0 0 0 1px var(--ts-red); }
.ts-contact-card h3 {
  min-height: 25px;
  margin: 0 0 8px;
  color: var(--ts-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}
.ts-contact-card .ts-contact-line + .ts-contact-line { margin-top: 7px; }
.ts-contact-detail {
  display: grid;
  grid-template-columns: 34.1% 65.9%;
}
.ts-contact-company {
  min-height: 400px;
  padding-right: 30px;
  border-right: 1px solid #c8c8c8;
}
.ts-contact-company h2 { margin-bottom: 27px; }
.ts-contact-company .ts-contact-line + .ts-contact-line { margin-top: 10px; }
.ts-contact-form-wrap { padding-left: 31px; }
.ts-contact-form-wrap h2 { margin: -1px 0 29px; }
.ts-contact-form { width: 100%; }
.ts-form-group { margin-bottom: 25px; }
.ts-form-group--email { width: 48.4%; }
.ts-form-group label {
  display: block;
  margin: 0 0 7px;
  color: var(--ts-text);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}
.ts-contact-form b { color: var(--ts-red); }
.ts-contact-form input[type='email'],
.ts-contact-form textarea {
  display: block;
  width: 100%;
  border: 1px solid #c8c8c8;
  border-radius: 25px;
  background: #fff;
  box-shadow: none;
  color: var(--ts-text);
  font: 14px Arial, Helvetica, sans-serif;
  outline: 0;
}
.ts-contact-form input[type='email'] { height: 41px; padding: 8px 18px; }
.ts-contact-form textarea { height: 100px; padding: 13px 18px; resize: vertical; }
.ts-contact-form input[type='email']:focus,
.ts-contact-form textarea:focus { border-color: var(--ts-red); }
.ts-privacy {
  display: flex;
  align-items: center;
  width: max-content;
  margin: 1px 0 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
}
.ts-privacy input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.ts-checkbox {
  position: relative;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border: 1px solid var(--ts-red);
}
.ts-privacy input:checked + .ts-checkbox::after {
  position: absolute;
  top: 2px;
  left: 5px;
  width: 7px;
  height: 12px;
  border-right: 2px solid var(--ts-red);
  border-bottom: 2px solid var(--ts-red);
  transform: rotate(45deg);
  content: '';
}
.ts-privacy strong { color: var(--ts-text); font-weight: 700; }
.ts-required { margin: 0 0 10px; font-size: 14px; }
.ts-contact-form button {
  width: 210px;
  height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: 22px;
  background: var(--ts-red);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: background .15s ease;
}
.ts-contact-form button:hover,
.ts-contact-form button:focus { background: #bd0010; }
.ts-contact-hp { position: absolute !important; left: -10000px !important; }

@media (max-width: 767px) {

  .ts-contact-title { margin-bottom: 35px; font-size: 36px; }
  .ts-contact-intro { margin-bottom: 31px; }
  .ts-contact-intro h2,
  .ts-contact-company h2,
  .ts-contact-form-wrap h2 { font-size: 23px; }
  .ts-contact-intro h2 { margin-bottom: 14px; }
  .ts-contact-grid { display: block; }
  .ts-contact-card {
    height: 170px;
    margin-bottom: 30px;
    padding: 29px 19px 20px;
  }
  .ts-contact-card h3 { margin-bottom: 8px; font-size: 16px; }
  .ts-contact-line { font-size: 14px; }
  .ts-contact-detail { display: block; }
  .ts-contact-company {
    min-height: 0;
    padding: 0 0 55px;
    border: 0;
  }
  .ts-contact-company h2 { margin-bottom: 28px; }
  .ts-contact-company .ts-contact-line + .ts-contact-line { margin-top: 10px; }
  .ts-contact-form-wrap { padding: 0; }
  .ts-contact-form-wrap h2 { margin: 0 0 29px; font-size: 24px; }
  .ts-form-group { margin-bottom: 28px; }
  .ts-form-group--email { width: 100%; }
  .ts-form-group label { margin-bottom: 8px; }
  .ts-contact-form input[type='email'] { height: 41px; }
  .ts-contact-form textarea { height: 100px; }
  .ts-privacy { margin-top: -1px; font-size: 14px; }
  .ts-contact-form button { width: 100%; }
}
