/* --------------------------------------------------------------------------
   Контактна страница + Contact Form 7 (бранд)
   -------------------------------------------------------------------------- */

.webtik-cf7-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
}

.webtik-contact-hero {
  padding: clamp(28px, 5vw, 56px) 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 78, 0, 0.28), transparent 42%),
    radial-gradient(circle at 88% 0%, rgba(21, 89, 167, 0.14), transparent 38%),
    var(--webtik-color-night);
  color: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.webtik-contact-hero__inner {
  max-width: min(52ch, 100%);
}

.webtik-contact-hero .webtik-kicker {
  color: var(--webtik-color-accent);
}

.webtik-contact-hero h1 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: var(--webtik-type-h1);
  letter-spacing: -0.03em;
}

body.webtik-stenik-inner .webtik-contact-hero h1 {
  color: #ffffff;
}

.webtik-contact-hero__lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.76);
}

.webtik-contact-section {
  padding-top: var(--webtik-space-lg);
  padding-bottom: var(--webtik-space-xl);
}

.webtik-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: var(--webtik-space-lg);
  align-items: start;
}

.webtik-contact-aside__title {
  margin: 0 0 16px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(22, 22, 31, 0.45);
}

body.webtik-stenik-inner .webtik-contact-aside__title {
  color: rgba(22, 22, 31, 0.45);
}

.webtik-contact-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.webtik-contact-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--webtik-radius-md);
  border: 1px solid var(--webtik-color-line);
  background: var(--webtik-color-paper);
  box-shadow: var(--webtik-shadow-card);
}

.webtik-contact-card__icon {
  flex-shrink: 0;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 78, 0, 0.1);
  color: var(--webtik-color-accent);
  font-size: 1.15rem;
}

.webtik-contact-card__label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(22, 22, 31, 0.45);
}

.webtik-contact-card__value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--webtik-color-ink);
  text-decoration: none;
  transition: color 0.15s ease;
}

a.webtik-contact-card__value:hover {
  color: var(--webtik-color-accent);
}

.webtik-contact-card__value--multiline {
  display: block;
  font-weight: 500;
  line-height: 1.45;
}

.webtik-contact-aside-socials {
  margin-top: var(--webtik-space-md);
  padding-top: var(--webtik-space-md);
  border-top: 1px solid var(--webtik-color-line);
}

.webtik-contact-aside-socials__label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(22, 22, 31, 0.45);
}

.webtik-contact-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.webtik-contact-social-links__a {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--webtik-color-line);
  color: var(--webtik-color-ink);
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    background-color 0.15s ease,
    transform 0.15s ease;
}

.webtik-contact-social-links__a:hover {
  border-color: var(--webtik-color-accent);
  color: var(--webtik-color-accent);
  transform: translateY(-1px);
}

.webtik-contact-form-card {
  position: relative;
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--webtik-radius-lg);
  border: 1px solid var(--webtik-color-line);
  background: var(--webtik-color-paper);
  box-shadow: var(--webtik-shadow-soft);
}

.webtik-contact-form-card__title {
  margin: 0 0 10px;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  color: var(--webtik-color-ink);
}

body.webtik-stenik-inner .webtik-contact-form-card__title {
  color: var(--webtik-color-ink);
}

.webtik-contact-form-card__intro {
  margin: 0 0 22px;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(22, 22, 31, 0.62);
}

.webtik-contact-form-card__empty {
  margin: 0;
  padding: 16px;
  border-radius: var(--webtik-radius-sm);
  background: var(--webtik-color-surface);
  color: rgba(22, 22, 31, 0.65);
  font-size: 0.95rem;
}

.webtik-contact-form-wrap {
  position: relative;
}

.webtik-contact-form-wrap .wpcf7 {
  margin: 0;
}

.webtik-contact-form-wrap .wpcf7-form {
  display: grid;
  gap: 18px;
}

.webtik-contact-form-wrap .wpcf7-form label {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--webtik-color-ink);
}

.webtik-contact-form-wrap .wpcf7-form-control-wrap {
  display: block;
}

.webtik-contact-form-wrap .wpcf7-text,
.webtik-contact-form-wrap .wpcf7-textarea,
.webtik-contact-form-wrap .wpcf7-select,
.webtik-contact-form-wrap input[type="text"],
.webtik-contact-form-wrap input[type="email"],
.webtik-contact-form-wrap input[type="tel"],
.webtik-contact-form-wrap input[type="url"],
.webtik-contact-form-wrap textarea,
.webtik-contact-form-wrap select {
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--webtik-color-line);
  border-radius: var(--webtik-radius-sm);
  background: #ffffff;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--webtik-color-ink);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
  box-sizing: border-box;
}

.webtik-contact-form-wrap textarea {
  min-height: 140px;
  resize: vertical;
}

.webtik-contact-form-wrap .wpcf7-text:focus,
.webtik-contact-form-wrap .wpcf7-textarea:focus,
.webtik-contact-form-wrap .wpcf7-select:focus,
.webtik-contact-form-wrap input:focus,
.webtik-contact-form-wrap textarea:focus,
.webtik-contact-form-wrap select:focus {
  outline: none;
  border-color: rgba(255, 78, 0, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 78, 0, 0.12);
}

.webtik-contact-form-wrap .wpcf7-not-valid-tip {
  margin-top: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #c62828;
}

.webtik-contact-form-wrap .wpcf7-not-valid {
  border-color: rgba(198, 40, 40, 0.45) !important;
}

.webtik-contact-form-wrap .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  margin-top: 4px;
  border: none;
  border-radius: 999px;
  background: var(--webtik-color-accent);
  color: #ffffff !important;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    background-color 0.16s ease;
}

.webtik-contact-form-wrap .wpcf7-submit:hover {
  background: var(--webtik-color-accent-dark);
  transform: translateY(-1px);
}

.webtik-contact-form-wrap .wpcf7-spinner {
  margin: 0 0 0 10px;
}

.webtik-contact-form-wrap .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: var(--webtik-radius-sm);
  font-size: 0.9rem;
  line-height: 1.45;
}

.webtik-contact-form-wrap .wpcf7-mail-sent-ok {
  border: 1px solid rgba(60, 142, 15, 0.35);
  background: rgba(60, 142, 15, 0.08);
  color: #2e7d1f;
}

.webtik-contact-form-wrap .wpcf7-validation-errors,
.webtik-contact-form-wrap .wpcf7-acceptance-missing,
.webtik-contact-form-wrap .wpcf7-spam-blocked {
  border: 1px solid rgba(198, 40, 40, 0.35);
  background: rgba(198, 40, 40, 0.06);
  color: #8b1c1c;
}

@media (max-width: 900px) {
  .webtik-contact-layout {
    grid-template-columns: 1fr;
    gap: var(--webtik-space-md);
  }

  .webtik-contact-main {
    order: 1;
  }

  .webtik-contact-aside {
    order: 2;
  }
}
