/* =========================
   CONTACTS PAGE
   ========================= */

.contacts-page {
  --r: #e9332b;
  --rs: #fff0ed;

  --g: #88be21;
  --gd: #66980f;
  --gs: #eff8df;

  --ink: #25211f;
  --mut: #6f6862;
  --line: #e8e1d9;

  --shadow: 0 16px 44px #4b312316;

  color: var(--ink);
  background: #fff;
}

.contacts-page * {
  box-sizing: border-box;
}


/* =========================
   HERO
   ========================= */

.contacts-hero {
  padding: 22px 0 45px;

  background:
    radial-gradient(
      circle at 85% 20%,
      #eff9dc,
      transparent 28%
    ),
    linear-gradient(
      #fffdf8,
      #fff
    );
}


.contacts-crumbs {
  margin-bottom: 15px;
}


.contacts-hero-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    390px;

  gap: 50px;

  align-items: center;

  padding: 35px 0 20px;
}


.contacts-kicker {
  display: inline-flex;
  align-items: center;

  min-height: 24px;

  padding: 4px 9px;

  border-radius: 20px;

  background: var(--rs);
  color: var(--r);

  font-size: 10px;
  line-height: 1;
  font-weight: 800;
}


.contacts-hero h1 {
  max-width: 700px;

  margin: 14px 0 12px;

  font-size: 44px;
  line-height: 1.08;
  letter-spacing: -0.045em;
}


.contacts-hero-content > p {
  max-width: 700px;

  margin: 0;

  color: var(--mut);

  font-size: 16px;
  line-height: 1.65;
}


/* =========================
   HERO DARK CARD
   ========================= */

.contacts-hero-card {
  padding: 25px;

  border-radius: 17px;

  background:
    linear-gradient(
      145deg,
      #302d2b,
      #4b3d36
    );

  color: #fff;

  box-shadow: var(--shadow);
}


.contacts-hero-card > strong {
  display: block;

  margin-bottom: 7px;

  font-size: 22px;
  line-height: 1.25;
}


.contacts-hero-card > p {
  margin: 0;

  color: #d5cbc5;

  font-size: 12px;
  line-height: 1.6;
}


.contacts-manager {
  display: flex;
  align-items: center;

  gap: 12px;

  margin-top: 19px;
  padding-top: 18px;

  border-top: 1px solid #ffffff1d;
}


.contacts-manager i {
  width: 42px;
  height: 42px;

  flex: 0 0 42px;

  display: grid;
  place-items: center;

  border-radius: 11px;

  background: var(--gs);
  color: var(--gd);

  font-style: normal;
  font-weight: 800;
}


.contacts-manager b,
.contacts-manager a {
  display: block;
}


.contacts-manager b {
  margin-bottom: 1px;

  font-size: 11px;
}


.contacts-manager a {
  color: #fff;

  font-size: 12px;
  font-weight: 700;

  text-decoration: none;
}


/* =========================
   MAIN
   ========================= */

.contacts-main {
  padding: 35px 0 70px;
}


.contacts-layout {
  display: grid;

  grid-template-columns:
    minmax(0, .8fr)
    minmax(0, 1.2fr);

  gap: 25px;

  align-items: start;
}


.contacts-left {
  min-width: 0;
}


.contacts-section-head {
  margin-bottom: 22px;
}


.contacts-section-head h2,
.contacts-form-head h2 {
  margin: 11px 0 7px;

  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}


.contacts-section-head p,
.contacts-form-head p {
  margin: 0;

  color: var(--mut);

  font-size: 12px;
  line-height: 1.6;
}


/* =========================
   CONTACT INFO CARDS
   ========================= */

.contacts-info-list {
  display: grid;

  gap: 10px;
}


.contacts-info-card {
  min-width: 0;

  display: flex;
  align-items: center;

  gap: 14px;

  padding: 17px;

  border: 1px solid var(--line);
  border-radius: 13px;

  background: #fff;

  color: var(--ink);

  text-decoration: none;

  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}


.contacts-info-card:hover {
  transform: translateY(-2px);

  border-color: #d8cec6;

  box-shadow: 0 10px 30px #4b31230d;
}


.contacts-info-icon {
  width: 45px;
  height: 45px;

  flex: 0 0 45px;

  display: grid;
  place-items: center;

  border-radius: 11px;

  background: var(--gs);
  color: var(--gd);

  font-weight: 800;
}


.contacts-info-body {
  min-width: 0;

  display: block;

  flex: 1;
}


.contacts-info-body small,
.contacts-info-body strong,
.contacts-info-body em {
  display: block;
}


.contacts-info-body small {
  margin-bottom: 2px;

  color: var(--mut);

  font-size: 9px;
}


.contacts-info-body strong {
  overflow: hidden;

  color: var(--ink);

  font-size: 14px;

  white-space: nowrap;
  text-overflow: ellipsis;
}


.contacts-info-body em {
  margin-top: 2px;

  color: var(--mut);

  font-size: 9px;
  font-style: normal;
}


.contacts-info-arrow {
  flex: 0 0 auto;

  color: var(--r);

  font-size: 18px;
}


/* =========================
   SOCIAL
   ========================= */

.contacts-social {
  display: flex;
  align-items: center;

  gap: 20px;

  margin-top: 12px;
  padding: 19px;

  border: 1px solid var(--line);
  border-radius: 13px;

  background:
    linear-gradient(
      145deg,
      #f7fbef,
      #fff
    );
}


.contacts-social > div:first-child {
  min-width: 0;

  flex: 1;
}


.contacts-social h3 {
  margin: 0;

  font-size: 14px;
}


.contacts-social p {
  margin: 3px 0 0;

  color: var(--mut);

  font-size: 10px;
}


.contacts-social-links {
  display: flex;

  gap: 7px;

  flex: 0 0 auto;

  margin-left: auto;
}


.contacts-social-links a {
  width: 43px;
  height: 43px;

  display: grid;
  place-items: center;

  border-radius: 10px;

  background: var(--r);
  color: #fff;

  text-decoration: none;

  transition:
    transform .18s ease,
    background .18s ease;
}


.contacts-social-links a:hover {
  transform: translateY(-2px);

  background: #cc2822;
}


.contacts-social-links svg {
  width: 22px;
  height: 22px;

  display: block;
}


/* =========================
   WORK NOTE
   ========================= */

.contacts-work {
  display: flex;
  align-items: flex-start;

  gap: 12px;

  margin-top: 12px;
  padding: 16px;

  border: 1px solid #f4e7c8;
  border-radius: 12px;

  background: #fff8e8;
}


.contacts-work-icon {
  width: 34px;
  height: 34px;

  flex: 0 0 34px;

  display: grid;
  place-items: center;

  border-radius: 9px;

  background: var(--gs);
  color: var(--gd);

  font-size: 11px;
  font-weight: 800;
}


.contacts-work strong {
  display: block;

  font-size: 11px;
}


.contacts-work p {
  margin: 3px 0 0;

  color: var(--mut);

  font-size: 9px;
  line-height: 1.5;
}


/* =========================
   FORM CARD
   ========================= */

.contacts-form-card {
  min-width: 0;

  padding: 27px;

  border: 1px solid #dfd8d1;
  border-radius: 16px;

  background: #f1efec;

  box-shadow:
    0 12px 34px #4b31230b;
}


.contacts-form-head {
  margin-bottom: 22px;
  padding-bottom: 18px;

  border-bottom: 1px solid #dcd5ce;
}


.contacts-form-head h2 {
  margin-top: 11px;
}


.contacts-form {
  width: 100%;
}


/* =========================
   CONTACT FORM
   ========================= */

.contacts-form-inner {
  width: 100%;

  margin: 0;
}


.contacts-form-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 13px;
}


.contacts-form-field {
  min-width: 0;
}


.contacts-form-field-full {
  grid-column: 1 / -1;
}


.contacts-form-field label {
  display: block;

  margin: 0 0 6px;

  color: var(--ink);

  font-size: 10px;
  line-height: 1.3;
  font-weight: 700;
}


.contacts-form-field .input {
  width: 100%;

  border: 1px solid #d8d0c9;
  border-radius: 10px;

  background: #fff;
  color: var(--ink);

  outline: none;

  font: inherit;

  transition:
    border-color .15s ease,
    box-shadow .15s ease,
    background .15s ease;
}


.contacts-form-field input.input {
  height: 50px;

  padding: 0 14px;
}


.contacts-form-field textarea.input {
  min-height: 145px;

  display: block;

  padding: 13px 14px;

  resize: vertical;
}


.contacts-form-field .input::placeholder {
  color: #a49c96;

  opacity: 1;
}


.contacts-form-field .input:hover {
  border-color: #cfc5bd;
}


.contacts-form-field .input:focus {
  border-color: var(--g);

  background: #fff;

  box-shadow:
    0 0 0 3px #88be2117;
}


/* Autofill */

.contacts-form-field input:-webkit-autofill,
.contacts-form-field input:-webkit-autofill:hover,
.contacts-form-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);

  box-shadow:
    0 0 0 1000px #fff inset;
}


/* =========================
   FORM BOTTOM
   ========================= */

.contacts-form-bottom {
  display: flex;
  align-items: center;

  gap: 25px;

  margin-top: 15px;
}


.contacts-form-policy {
  max-width: 430px;

  margin: 0;

  color: var(--mut);

  font-size: 9px;
  line-height: 1.55;
}


.contacts-submit {
  min-width: 150px;
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 10px;

  flex: 0 0 auto;

  margin-left: auto;

  padding: 0 17px;

  border: 0;
  border-radius: 9px;

  background: var(--r);
  color: #fff;

  cursor: pointer;

  font: inherit;
  font-size: 11px;
  font-weight: 800;

  transition:
    background .15s ease,
    transform .15s ease,
    box-shadow .15s ease;
}


.contacts-submit i {
  font-style: normal;

  font-size: 15px;

  transition: transform .15s ease;
}


.contacts-submit:hover {
  transform: translateY(-1px);

  background: #cc2822;

  box-shadow:
    0 7px 18px #e9332b26;
}


.contacts-submit:hover i {
  transform: translateX(2px);
}


.contacts-submit:active {
  transform: translateY(0);
}


/* =========================
   FORM MESSAGES
   ========================= */

.contacts-alert {
  width: 100%;

  margin-top: 15px;
  padding: 12px 14px;

  border-radius: 9px;

  font-size: 10px;
  line-height: 1.5;
  font-weight: 700;
}


.contacts-alert-success {
  border: 1px solid #dcebc1;

  background: var(--gs);
  color: var(--gd);
}


.contacts-alert-error {
  border: 1px solid #ffd2ce;

  background: var(--rs);
  color: var(--r);
}


/* FormIt validation */

.contacts-form-field .input.error,
.contacts-form-field .input.invalid {
  border-color: var(--r);

  box-shadow:
    0 0 0 3px #e9332b0d;
}


/* =========================
   CTA
   ========================= */

.contacts-bottom {
  padding: 0 0 70px;
}


.contacts-cta {
  display: flex;
  align-items: center;

  gap: 25px;

  padding: 26px 28px;

  border-radius: 15px;

  background:
    linear-gradient(
      135deg,
      var(--r),
      #c8241e
    );

  color: #fff;
}


.contacts-cta > div {
  min-width: 0;
}


.contacts-cta h2 {
  margin: 0;

  font-size: 23px;
  line-height: 1.2;
}


.contacts-cta p {
  margin: 4px 0 0;

  color: #ffe3df;

  font-size: 11px;
  line-height: 1.55;
}


.contacts-cta a {
  height: 45px;

  flex: 0 0 auto;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-left: auto;
  padding: 0 17px;

  border-radius: 9px;

  background: #fff;
  color: var(--r);

  text-decoration: none;

  font-size: 12px;
  font-weight: 800;

  transition:
    transform .15s ease,
    box-shadow .15s ease;
}


.contacts-cta a:hover {
  transform: translateY(-1px);

  box-shadow:
    0 7px 18px #6f18182b;
}


/* =========================
   TABLET
   ========================= */

@media (max-width: 900px) {

  .contacts-hero-grid {
    grid-template-columns:
      minmax(0, 1fr)
      330px;

    gap: 30px;
  }


  .contacts-hero h1 {
    font-size: 38px;
  }


  .contacts-layout {
    grid-template-columns:
      minmax(0, .9fr)
      minmax(0, 1.1fr);

    gap: 18px;
  }


  .contacts-form-card {
    padding: 22px;
  }


  .contacts-social {
    align-items: flex-start;
  }

}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 650px) {

  .contacts-hero {
    padding: 14px 0 32px;
  }


  .contacts-crumbs {
    margin-bottom: 8px;
  }


  .contacts-hero-grid {
    display: block;

    padding: 25px 0 10px;
  }


  .contacts-hero h1 {
    margin-top: 12px;

    font-size: 31px;
  }


  .contacts-hero-content > p {
    font-size: 14px;
  }


  .contacts-hero-card {
    margin-top: 22px;

    padding: 20px;
  }


  .contacts-hero-card > strong {
    font-size: 19px;
  }


  .contacts-main {
    padding: 25px 0 45px;
  }


  .contacts-layout {
    display: block;
  }


  .contacts-left {
    margin-bottom: 25px;
  }


  .contacts-section-head {
    margin-bottom: 17px;
  }


  .contacts-section-head h2,
  .contacts-form-head h2 {
    font-size: 23px;
  }


  .contacts-info-card {
    padding: 14px;
  }


  .contacts-info-icon {
    width: 40px;
    height: 40px;

    flex-basis: 40px;
  }


  .contacts-info-body strong {
    font-size: 12px;
  }


  .contacts-social {
    display: block;

    padding: 16px;
  }


  .contacts-social-links {
    margin: 13px 0 0;
  }


  .contacts-work {
    padding: 14px;
  }


  /* FORM CARD */

  .contacts-form-card {
    padding: 18px;

    border-radius: 14px;
  }


  .contacts-form-head {
    margin-bottom: 18px;
    padding-bottom: 15px;
  }


  /* FORM */

  .contacts-form-grid {
    grid-template-columns: 1fr;

    gap: 11px;
  }


  .contacts-form-field-full {
    grid-column: auto;
  }


  .contacts-form-field input.input {
    height: 48px;
  }


  .contacts-form-field textarea.input {
    min-height: 125px;
  }


  .contacts-form-bottom {
    display: block;

    margin-top: 13px;
  }


  .contacts-form-policy {
    max-width: none;

    margin-bottom: 13px;
  }


  .contacts-submit {
    width: 100%;

    margin: 0;
  }


  /* CTA */

  .contacts-bottom {
    padding-bottom: 45px;
  }


  .contacts-cta {
    display: block;

    padding: 22px;
  }


  .contacts-cta h2 {
    font-size: 20px;
  }


  .contacts-cta a {
    width: max-content;

    margin: 17px 0 0;
  }

}


/* =========================
   SMALL MOBILE
   ========================= */

@media (max-width: 420px) {

  .contacts-hero h1 {
    font-size: 29px;
  }


  .contacts-form-card {
    margin-left: -2px;
    margin-right: -2px;

    padding: 16px;
  }


  .contacts-info-body strong {
    white-space: normal;
    overflow: visible;
  }


  .contacts-cta a {
    width: 100%;
  }

}


/* =========================
   ACCESSIBILITY
   ========================= */

@media (prefers-reduced-motion: reduce) {

  .contacts-info-card,
  .contacts-social-links a,
  .contacts-submit,
  .contacts-submit i,
  .contacts-cta a,
  .contacts-form-field .input {
    transition: none !important;
  }

}