.contact-intro {
  height: 180px;
  background: #f5f5f5;
}

.contact-intro-inner {
  padding-top: 37px;
}

.contact-breadcrumb {
  display: flex;
  gap: 4px;
  align-items: center;
  margin: 0 0 22px;
  color: #333;
  font-size: 14px;
  line-height: 1;
}

.contact-breadcrumb a:hover,
.contact-breadcrumb a:focus-visible {
  color: var(--green-dark);
}

.contact-intro h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
}

.contact-intro p {
  margin: 11px 0 0;
  color: #666;
  font-size: 16px;
  line-height: 1.45;
}

.contact-overview {
  min-height: 682px;
  padding: 72px 0 65px;
  background: #fff;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1200px;
  margin-inline: auto;
}

.contact-method {
  min-width: 0;
  color: #111;
  text-align: center;
}

.contact-method-icon {
  width: 98px;
  height: 98px;
  display: grid;
  place-items: center;
  margin: 0 auto 25px;
  border: 0;
  border-radius: 50%;
  color: #056bc8;
  background: radial-gradient(circle, #b7d2f0 0 55%, #cde0f4 56% 100%);
  box-shadow: 0 0 24px 13px rgba(151, 192, 234, 0.25), 0 0 42px 22px rgba(198, 220, 244, 0.22);
  font-size: 50px;
  line-height: 1;
}

.contact-method h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.contact-method a,
.contact-method address {
  display: block;
  margin-top: 2px;
  font-size: 20px;
  font-style: normal;
  line-height: 1.25;
}

.contact-method a:hover,
.contact-method a:focus-visible {
  color: var(--green-dark);
}

.expert-support {
  margin-top: 61px;
}

.expert-heading {
  text-align: center;
}

.expert-heading h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
}

.expert-heading p {
  margin: 24px 0 0;
  color: #666;
  font-size: 20px;
  line-height: 1.25;
}

.expert-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 27px;
}

.expert-grid article {
  min-width: 0;
  min-height: 145px;
  padding: 36px 27px 26px;
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 8px 13px rgba(22, 31, 26, 0.13), 0 0 28px rgba(128, 154, 191, 0.07);
}

.expert-grid h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
}

.expert-grid p {
  margin: 16px 0 0;
  color: #666;
  font-size: 15px;
  line-height: 1.4;
}

.inquiry-section {
  min-height: 882px;
  padding: 56px 0 61px;
  background: #f5f5f5;
  scroll-margin-top: 100px;
}

.inquiry-section h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.inquiry-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 58px;
  row-gap: 23.5px;
  margin-top: 47px;
}

/* Contact Form 7 keeps its generated controls inside a paragraph and wraps
 * each control in a span. Flatten those wrappers so the existing inquiry
 * grid and responsive spacing remain identical to the static design. */
.inquiry-form > p {
  display: contents;
}

.inquiry-form > br {
  display: none;
}

.inquiry-form .wpcf7-form-control-wrap {
  display: block;
  min-width: 0;
}

.inquiry-form .wpcf7-response-output {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 18px;
  border: 1px solid #d9e5df;
  border-radius: 10px;
  color: #087847;
  background: #f4fbf7;
  font-size: 15px;
  line-height: 1.4;
}

.inquiry-form .wpcf7-spinner {
  grid-column: 1 / -1;
  margin: -8px auto 0;
}

.inquiry-form .wpcf7-submit::before {
  content: "\e619";
  display: inline-block;
  margin-right: 13px;
  font-family: "iconfont";
  font-size: 50px;
  font-weight: 400;
  line-height: 1;
  vertical-align: middle;
}

.inquiry-field {
  min-width: 0;
  display: grid;
  gap: 13px;
  font-size: 18px;
  line-height: 1.2;
}

.inquiry-field input,
.inquiry-field select,
.inquiry-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 15px;
  outline: none;
  color: #222;
  background: #fff;
  box-shadow: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.inquiry-field input,
.inquiry-field select {
  height: 60px;
  padding: 0 27px;
}

.inquiry-field select {
  appearance: none;
  color-scheme: light;
  accent-color: var(--green-dark);
  background-image: linear-gradient(45deg, transparent 50%, #a9a9a9 50%), linear-gradient(135deg, #a9a9a9 50%, transparent 50%);
  background-position: calc(100% - 25px) 27px, calc(100% - 20px) 27px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.inquiry-field select option {
  color: #202a33;
  background: #fff;
}

.inquiry-field select option:disabled {
  color: #68727c;
  background: #eef2f4;
}

.inquiry-field select option:checked {
  color: #fff;
  background: #087f4d linear-gradient(0deg, #087f4d 0%, #087f4d 100%);
}

.inquiry-field textarea {
  min-height: 175px;
  padding: 19px 27px;
  resize: vertical;
}

.inquiry-field input::placeholder,
.inquiry-field textarea::placeholder {
  color: #cfcfcf;
  opacity: 1;
}

.inquiry-field select:invalid {
  color: #68727c;
}

.inquiry-field input:focus,
.inquiry-field select:focus,
.inquiry-field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 190, 94, 0.12);
}

.inquiry-field--message {
  grid-column: 1 / -1;
  gap: 11px;
}

.inquiry-submit {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-top: 14px;
  padding: 12px 24px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: #08c565;
  cursor: pointer;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.inquiry-submit .iconfont {
  font-size: 50px;
  font-weight: 400;
}

.inquiry-submit:hover,
.inquiry-submit:focus-visible {
  background: var(--green-dark);
  box-shadow: 0 12px 26px rgba(0, 149, 87, 0.24);
  transform: translateY(-2px);
}

.contact-faq {
  min-height: 756px;
  padding: 95px 0 110px;
  background: #fff;
}

.faq-heading {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin: 0;
  color: #090909;
  line-height: 1;
  transform: translateX(-8px);
}

.faq-heading span {
  display: inline-block;
  font-size: 34px;
  font-weight: 700;
  background-image: linear-gradient(var(--green), var(--green));
  background-repeat: no-repeat;
  background-position: 0 calc(100% - 5px);
  background-size: 100% 4px;
}

.faq-heading strong {
  font-size: 66px;
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 0;
  margin-top: 47px;
}

.faq-list details {
  border: 1px solid #dedede;
  border-radius: 28px;
  background: #fafafa;
  overflow: hidden;
}

.faq-list details + details {
  margin-top: 32px;
}

.faq-list details[open] + details {
  margin-top: 14px;
}

.faq-list summary {
  position: relative;
  min-height: 55px;
  display: flex;
  align-items: center;
  padding: 0 70px 0 50px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 24px;
  color: #08c565;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-53%);
}

.faq-list details[open] summary {
  min-height: 52px;
}

.faq-list details[open] summary::after {
  content: "−";
  font-size: 35px;
}

.faq-list p {
  margin: 0;
  padding: 0 70px 11px 50px;
  color: #666;
  font-size: 20px;
  line-height: 1.25;
}

.contact-page .contact-panel > div:first-child p {
  margin: 18px 0 0;
  color: #666;
  font-size: 20px;
  line-height: 1.25;
}

.contact-page .contact-panel {
  background: #e1e1e1;
}

@media (min-width: 1161px) {
  .contact-page .contact-panel h2 {
    transform: translate(-6px, 3px);
  }

  .contact-page .contact-panel > div:first-child p {
    transform: translateY(-1px);
  }

  .contact-page .contact-actions {
    margin-top: 33px;
    transform: translate(-5px, 3px);
  }

  .contact-page .contact-actions .button {
    min-height: 32px;
  }

  .contact-page .contact-actions .button:first-child {
    width: 209px;
    min-width: 209px;
    padding-inline: 14px;
  }
}

@media (min-width: 769px) {
  .inquiry-submit {
    gap: 10px;
    padding-right: 108px;
  }

  .inquiry-submit .iconfont {
    font-size: 56px;
  }

  .inquiry-form .wpcf7-submit::before {
    font-size: 56px;
  }
}

@media (min-width: 1161px) and (max-width: 1239px) {
  .expert-grid article {
    padding-inline: 22px;
  }

  .expert-grid h3 {
    font-size: 18px;
  }

  .expert-grid p {
    margin-top: 14px;
    font-size: 14px;
  }
}

@media (max-width: 1160px) {
  .contact-intro {
    height: auto;
    min-height: 168px;
  }

  .contact-intro-inner {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .contact-overview,
  .inquiry-section,
  .contact-faq {
    min-height: 0;
  }

  .contact-overview {
    padding: 60px 0 68px;
  }

  .expert-support {
    margin-top: 70px;
  }

  .expert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .inquiry-section {
    padding: 60px 0 70px;
    scroll-margin-top: 80px;
  }

  .inquiry-form {
    column-gap: 30px;
  }

  .contact-faq {
    padding: 70px 0 120px;
  }

  .contact-page .contact-panel {
    padding-block: 32px;
  }
}

@media (max-width: 768px) {
  .contact-methods {
    gap: 24px;
  }

  .contact-method-icon {
    width: 78px;
    height: 78px;
    margin-bottom: 20px;
    border-width: 10px;
    font-size: 35px;
  }

  .contact-method h2 {
    font-size: 15px;
  }

  .contact-method a,
  .contact-method address {
    font-size: 13px;
  }

  .inquiry-form {
    grid-template-columns: 1fr;
  }

  .inquiry-field--message,
  .inquiry-submit {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .contact-intro {
    min-height: 0;
  }

  .contact-intro-inner {
    padding-top: 25px;
    padding-bottom: 27px;
  }

  .contact-breadcrumb {
    margin-bottom: 12px;
  }

  .contact-intro h1,
  .expert-heading h2,
  .inquiry-section h2 {
    font-size: 26px;
  }

  .contact-intro p {
    margin-top: 10px;
    font-size: 13px;
  }

  .contact-overview {
    padding: 43px 0 52px;
  }

  .contact-methods {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-method-icon {
    width: 82px;
    height: 82px;
    margin-bottom: 18px;
    font-size: 37px;
  }

  .contact-method h2 {
    font-size: 16px;
  }

  .contact-method a,
  .contact-method address {
    font-size: 14px;
  }

  .expert-support {
    margin-top: 58px;
  }

  .expert-heading p {
    margin-top: 16px;
    font-size: 14px;
  }

  .expert-heading p br {
    display: none;
  }

  .expert-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 25px;
  }

  .expert-grid article {
    min-height: 0;
    padding: 24px 22px;
    border-radius: 20px;
  }

  .expert-grid h3 {
    font-size: 16px;
  }

  .expert-grid p {
    margin-top: 9px;
  }

  .inquiry-section {
    padding: 49px 0 58px;
  }

  .inquiry-form {
    gap: 17px;
    margin-top: 35px;
  }

  .inquiry-field {
    gap: 8px;
    font-size: 14px;
  }

  .inquiry-field input,
  .inquiry-field select {
    height: 54px;
    padding-inline: 18px;
    border-radius: 11px;
  }

  .inquiry-field textarea {
    min-height: 150px;
    padding: 16px 18px;
    border-radius: 11px;
  }

  .inquiry-submit {
    min-height: 62px;
    gap: 9px;
    margin-top: 8px;
    border-radius: 11px;
    font-size: 18px;
  }

  .inquiry-submit .iconfont {
    font-size: 37px;
  }

  .inquiry-form .wpcf7-submit::before {
    margin-right: 9px;
    font-size: 37px;
  }

  .contact-faq {
    padding: 56px 0 65px;
  }

  .contact-page .contact-panel {
    padding-block: 32px;
  }

  .faq-heading span {
    font-size: 20px;
  }

  .faq-heading strong {
    font-size: 42px;
  }

  .faq-heading {
    transform: none;
  }

  .faq-list {
    gap: 12px;
    margin-top: 36px;
  }

  .faq-list details {
    border-radius: 18px;
  }

  .faq-list details + details,
  .faq-list details[open] + details {
    margin-top: 0;
  }

  .faq-list summary {
    min-height: 58px;
    padding: 12px 48px 12px 18px;
    font-size: 14px;
  }

  .faq-list summary::after {
    right: 16px;
    font-size: 32px;
  }

  .faq-list details[open] summary {
    min-height: 48px;
  }

  .faq-list p {
    padding: 0 20px 17px 18px;
    font-size: 13px;
  }

  .contact-page .contact-panel > div:first-child p {
    margin-top: 12px;
    font-size: 14px;
  }

  .contact-page .contact-actions {
    margin-top: 20px;
  }
}
