/* Минимальные стили формы и иконок — только страница с has-lead-form */

.has-lead-form .incl__icon,
.has-lead-form .srv__icon,
.has-lead-form .adv__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0;
  color: var(--gold, #c9a84c);
}

.has-lead-form .incl__icon svg,
.has-lead-form .srv__icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.has-lead-form .adv__icon {
  font-size: 0;
  color: var(--gold, #c9a84c);
}

.has-lead-form .adv__icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.has-lead-form .guarantee__icon {
  font-size: 0;
  color: var(--gold, #c9a84c);
}

.has-lead-form .guarantee__icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.has-lead-form .legal-block__icon {
  font-size: 0;
  color: var(--gold, #c9a84c);
}

.has-lead-form .legal-block__icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.has-lead-form .lh__btns {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 1.5rem;
}

.has-lead-form .lh__messengers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
  margin-top: 1.125rem;
}

.has-lead-form .lh__messengers .btn--msg {
  justify-content: center;
  padding-left: 0.65rem;
  padding-right: 0.65rem;
  font-size: 0.82rem;
}

.has-lead-form .lh__trust {
  gap: 0.875rem 1.5rem;
}

.has-lead-form .lh__trust-ico {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--gold, #c9a84c);
}

.has-lead-form .lh__trust-ico svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.has-lead-form .btn--msg {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  border: 1px solid rgba(201, 168, 76, 0.4);
  color: inherit;
  font-size: 0.9rem;
  padding: 0.55rem 1rem;
  min-height: calc(1.1rem + 20px);
  box-sizing: border-box;
  line-height: 1;
}

.has-lead-form button.btn--msg {
  font-family: inherit;
  appearance: none;
}

.has-lead-form .btn--msg:hover {
  border-color: var(--gold, #c9a84c);
  color: var(--gold, #c9a84c);
}

.has-lead-form .btn--msg svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.has-lead-form .btn--msg svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.has-lead-form .btn--msg svg.ico-max path {
  stroke-width: 2;
}

.has-lead-form .btn--msg svg.ico-brand path,
.has-lead-form .sticky-cta__btns .contact-btns__ico svg.ico-brand path {
  fill: currentColor;
  stroke: none;
}

/* Форма — компактная компоновка */
.has-lead-form #lead.cta {
  padding: clamp(2rem, 5vw, 3rem) 0;
}

.has-lead-form #lead .cta__box {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  padding: 1.35rem 2rem 1.25rem;
}

.has-lead-form #lead .cta__title {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.has-lead-form #lead .cta__text {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  opacity: 0.85;
  line-height: 1.45;
}

.has-lead-form .lead-form__promo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.85rem;
  border-radius: 10px;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.22);
}

.has-lead-form .lead-form__promo-badge {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.95rem;
  color: #14120c;
  background: var(--gold, #c9a84c);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  line-height: 1.3;
}

.has-lead-form .lead-form__promo-text {
  font-size: 0.875rem;
  line-height: 1.35;
  opacity: 0.9;
}

.has-lead-form .lead-form {
  text-align: left;
}

.has-lead-form .lead-form__grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.has-lead-form .lead-form__field label,
.has-lead-form .lead-form__file-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  opacity: 0.8;
  margin-bottom: 0.2rem;
  letter-spacing: 0.01em;
}

.has-lead-form .lead-form__optional {
  font-weight: 400;
  opacity: 0.65;
}

.has-lead-form .lead-form__field input[type="tel"],
.has-lead-form .lead-form__field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(201, 168, 76, 0.22);
  background: rgba(0, 0, 0, 0.18);
  color: inherit;
  font: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.has-lead-form .lead-form__field input[type="tel"]:focus,
.has-lead-form .lead-form__field textarea:focus {
  outline: none;
  border-color: var(--gold, #c9a84c);
}

.has-lead-form .lead-form__field textarea {
  min-height: 72px;
  max-height: 180px;
  resize: vertical;
  line-height: 1.4;
}

.has-lead-form .lead-form__field--file {
  margin-top: 0;
}

.has-lead-form .lead-form__file-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.has-lead-form .lead-form__file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.has-lead-form .lead-form__file-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: inherit;
  background: transparent;
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  margin: 0;
}

.has-lead-form .lead-form__file-btn:hover {
  border-color: var(--gold, #c9a84c);
  color: var(--gold, #c9a84c);
  background: rgba(201, 168, 76, 0.06);
}

.has-lead-form .lead-form__file-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
}

.has-lead-form .lead-form__file-names {
  font-size: 0.8125rem;
  opacity: 0.6;
  line-height: 1.3;
  word-break: break-word;
}

.has-lead-form .lead-form__file-names.has-files {
  opacity: 0.85;
  color: var(--gold, #c9a84c);
}

.has-lead-form .lead-form__hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.has-lead-form .lead-form__actions {
  margin-top: 0.85rem;
  text-align: center;
}

.has-lead-form .lead-form__actions .btn {
  width: 100%;
  padding: 0.7rem 1.15rem;
  font-size: 0.9rem;
}

.has-lead-form .lead-form__note {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  opacity: 0.55;
  line-height: 1.35;
}

.has-lead-form .lead-form__messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(201, 168, 76, 0.12);
  justify-content: center;
}

.has-lead-form .lead-form__messengers-label {
  width: 100%;
  font-size: 0.9375rem;
  opacity: 0.85;
  margin-bottom: 0.25rem;
  text-align: center;
}

.has-lead-form .lead-form__messengers .btn--msg {
  font-size: 0.9375rem;
  padding: 0.6rem 1.05rem;
  min-height: calc(1.1rem + 24px);
}

.has-lead-form .lead-form__messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.has-lead-form .lead-form__messengers .btn--msg svg {
  width: 20px;
  height: 20px;
}

.has-lead-form .lead-form__error {
  color: #e07070;
  font-size: 0.8125rem;
  margin-top: 0.65rem;
  display: none;
  text-align: center;
}

.has-lead-form .lead-form__error.is-visible {
  display: block;
}

.has-lead-form .lead-form.is-hidden {
  display: none;
}

.has-lead-form .lead-form__success {
  display: none;
  padding: 1.25rem 0 0.5rem;
  text-align: center;
}

.has-lead-form .lead-form__success.is-visible {
  display: block;
}

.has-lead-form .lead-form__success-title {
  font-size: 1.25rem;
  color: var(--gold, #c9a84c);
  margin-bottom: 0.5rem;
}

.has-lead-form .lead-form__success-text {
  opacity: 0.85;
  line-height: 1.5;
  font-size: 0.9375rem;
}

.has-lead-form #lead .contact-copy {
  margin-top: 0.9rem;
  justify-content: center;
  gap: 8px 16px;
}

.has-lead-form #lead .contact-copy__text {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.has-lead-form #lead .contact-copy__btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.has-lead-form #lead .contact-copy__glyph {
  width: 15px;
  height: 15px;
}

.has-lead-form #lead .contact-copy__gap {
  height: 16px;
}

.has-lead-form .sticky-cta__lead.btn--gold {
  flex-shrink: 0;
  padding: 10px 16px;
  font-size: 13px;
  line-height: 1.2;
  box-sizing: border-box;
  background: var(--gold, #c9a84c);
  box-shadow: none;
  filter: none;
}

.has-lead-form .sticky-cta__lead.btn--gold:hover {
  transform: none;
  background: var(--gold, #c9a84c);
  box-shadow: none;
  filter: none;
}

.has-lead-form .sticky-cta__btns .btn--msg {
  padding: 10px 16px;
  font-size: 13px;
  line-height: 1.2;
}

.has-lead-form .contact-copy--sticky .contact-copy__item {
  display: flex;
}

.has-lead-form .contact-copy--sticky .contact-copy__gap {
  display: none;
}

.has-lead-form .sticky-cta__btns .contact-btns__ico svg:not(.ico-brand) path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.has-lead-form .sticky-cta__btns .contact-btns__ico svg.ico-brand path {
  fill: currentColor;
  stroke: none;
}

@media (min-width: 769px) {
  .has-lead-form .sticky-cta {
    padding: 18px 0;
  }

  .has-lead-form .sticky-cta .container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .has-lead-form .sticky-cta .container::-webkit-scrollbar {
    display: none;
  }

  .has-lead-form .sticky-cta__inner {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    justify-content: flex-start !important;
    width: 100%;
    min-width: 0;
  }

  .has-lead-form .sticky-cta__text {
    display: inline-block;
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 600;
  }

  .has-lead-form .sticky-cta__text span {
    display: inline;
    white-space: nowrap;
  }

  /* Старый HTML: почта внутри .sticky-cta__text — не показывать */
  .has-lead-form .sticky-cta__text > .contact-copy--sticky {
    display: none !important;
  }

  .has-lead-form .sticky-cta__inner > .contact-copy--sticky {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    margin: 0;
    gap: 8px;
    min-width: 0;
  }

  .has-lead-form .sticky-cta__inner > .contact-copy--sticky .contact-copy__text {
    white-space: nowrap;
    font-size: 13px;
  }

  .has-lead-form .sticky-cta__inner > .contact-copy--sticky .contact-copy__btn {
    width: 32px;
    height: 32px;
  }

  .has-lead-form .sticky-cta__inner > .contact-copy--sticky .contact-copy__glyph {
    width: 16px;
    height: 16px;
  }

  .has-lead-form .sticky-cta__actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    margin-left: 0;
    flex: 0 0 auto;
    flex-shrink: 0;
    min-width: 0;
  }

  .has-lead-form .sticky-cta__btns {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    flex-shrink: 0;
  }

  /* Одинаковая высота всех кнопок в sticky */
  .has-lead-form .sticky-cta__lead,
  .has-lead-form .sticky-cta__btns .btn--msg {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    height: 40px;
    padding: 0 14px;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    gap: 0;
  }

  .has-lead-form .sticky-cta__lead.btn--gold {
    padding: 0 16px;
    border: 2px solid transparent;
    background: var(--gold, #c9a84c);
    box-shadow: none;
    filter: none;
  }

  .has-lead-form .sticky-cta__lead.btn--gold:hover {
    background: var(--gold-dark, #b8943f);
    box-shadow: none;
    filter: none;
  }

  .has-lead-form .sticky-cta__btns .btn--msg {
    padding: 0 12px;
  }

  .has-lead-form .sticky-cta__btns.contact-btns .contact-btns__ico {
    display: none !important;
  }

  .has-lead-form .sticky-cta__btns.contact-btns .contact-btns__txt {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
    border: 0;
  }
}

.has-lead-form .landing-seo__check-icon {
  font-size: 0;
}

.has-lead-form .landing-seo__check-icon svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 768px) {
  .has-lead-form .lh__btns {
    flex-direction: column;
    align-items: stretch;
  }

  .has-lead-form .lh__messengers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .has-lead-form #lead .cta__box {
    max-width: none;
    padding: 1.5rem 1.15rem;
  }

  /* Sticky CTA — «Прислать задачу» + 4 квадратные кнопки с иконками */
  .has-lead-form .sticky-cta {
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .has-lead-form .sticky-cta__text {
    display: none;
  }

  .has-lead-form .sticky-cta__inner {
    flex-direction: row;
    align-items: center;
    gap: 0;
    text-align: left;
  }

  .has-lead-form .sticky-cta__actions {
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .has-lead-form .sticky-cta__lead {
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
  }

  .has-lead-form .sticky-cta__btns {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    width: auto;
    justify-content: flex-end;
  }

  .has-lead-form .sticky-cta__btns.contact-btns .btn,
  .has-lead-form .sticky-cta__btns .btn--msg {
    position: relative;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    min-width: 44px;
    max-width: 44px;
    padding: 0;
    border-radius: 12px;
    font-size: 0;
    line-height: 0;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
  }

  .has-lead-form .sticky-cta__btns.contact-btns .btn:hover,
  .has-lead-form .sticky-cta__btns .btn--msg:hover {
    color: #fff;
    border-color: var(--gold, #c9a84c);
    background: rgba(255, 255, 255, 0.04);
  }

  .has-lead-form .sticky-cta__btns.contact-btns .contact-btns__ico {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  .has-lead-form .sticky-cta__btns.contact-btns .contact-btns__txt {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .has-lead-form .sticky-cta__btns .contact-btns__ico svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }

  .has-lead-form .sticky-cta__btns .contact-btns__ico svg:not(.ico-brand) path {
    fill: none;
    stroke: #fff;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .has-lead-form .sticky-cta__btns .contact-btns__ico svg.ico-brand path {
    fill: #fff;
    stroke: none;
  }

  .has-lead-form .contact-copy--sticky {
    display: none;
  }
}

@media (max-width: 480px) {
  .has-lead-form .sticky-cta__actions {
    gap: 6px;
  }

  .has-lead-form .sticky-cta__lead {
    padding: 11px 10px;
    font-size: 12px;
  }

  .has-lead-form .sticky-cta__btns {
    gap: 5px;
  }

  .has-lead-form .sticky-cta__btns.contact-btns .btn,
  .has-lead-form .sticky-cta__btns .btn--msg {
    width: 40px;
    height: 40px;
    min-width: 40px;
    max-width: 40px;
    border-radius: 10px;
  }

  .has-lead-form .sticky-cta__btns .contact-btns__ico svg {
    width: 20px;
    height: 20px;
  }
}
