.velora-home-services {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.velora-home-services--draft-hidden {
  opacity: 0.55;
}

.velora-home-services__draft-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  padding: 0.2rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  border-radius: 4px;
}

.velora-home-services__title {
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
  text-align: center;
}

body.velora-design-active .velora-home-services__title {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

body.velora-design-active .velora-home-services__title.velora-design-editing {
  display: block;
  text-align: center;
}

.velora-home-services__grid {
  display: grid;
  grid-template-columns: repeat(var(--velora-services-cols-desktop, 3), minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 1.5rem);
}

body.velora-design-active .velora-home-services__grid {
  grid-template-columns: repeat(var(--velora-services-cols, var(--velora-services-cols-desktop, 3)), minmax(0, 1fr));
}

body.velora-design-active.velora-design-preview-tablet .velora-home-services__grid,
body.velora-design-active.velora-design-preview-mobile .velora-home-services__grid {
  grid-template-columns: repeat(var(--velora-services-cols, var(--velora-services-cols-mobile, 1)), minmax(0, 1fr));
}

@media (max-width: 899px) {
  body:not(.velora-design-active) .velora-home-services__grid {
    grid-template-columns: repeat(var(--velora-services-cols-mobile, 1), minmax(0, 1fr));
  }
}

.velora-home-services__card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--velora-radius, var(--radius, 6px));
  box-sizing: border-box;
  padding: clamp(0.5rem, 1.2vw, 0.75rem);
  gap: clamp(0.65rem, 1.5vw, 0.85rem);
  min-height: 100%;
}

.velora-home-services__card-media {
  aspect-ratio: 4 / 3;
  background: #f4f4f5;
  overflow: hidden;
  border-radius: var(--velora-radius, var(--radius, 6px));
  flex-shrink: 0;
}

.velora-home-services__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.velora-home-services__card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 2.5rem;
  font-weight: 700;
  color: #a1a1aa;
}

.velora-home-services__card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0 0.15rem 0.15rem;
  gap: 0.65rem;
  background: transparent;
}

.velora-home-services__card-title {
  margin: 0;
  font-size: var(--velora-services-card-title-size, 0.8rem);
  color: var(--velora-services-card-title-color, inherit);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.35;
}

.velora-home-services__card-price {
  margin: 0;
  font-weight: 700;
  font-size: var(--velora-services-card-price-size, 1rem);
  color: var(--velora-services-card-price-color, inherit);
}

.velora-home-services__card-desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #52525b;
  flex: 1;
}

.velora-home-services__card-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

/* Цвета и скругление — .velora-btn → color_button_*, radius_button в theme_tokens_style */
.velora-home-services__cta.velora-btn {
  padding: 0.55rem 1.1rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.velora-home-services__cta--preview {
  pointer-events: none;
}

.velora-service-lead-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.velora-service-lead-modal[hidden] {
  display: none;
}

.velora-service-lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.velora-service-lead-modal__dialog {
  position: relative;
  width: min(100%, 28rem);
  padding: 1.75rem 1.85rem 1.85rem;
  z-index: 1;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
}

.velora-service-lead-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

.velora-service-lead-modal__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.velora-service-lead-modal__close {
  border: none;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
}

.velora-service-lead-modal__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.velora-service-lead-modal__label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #52525b;
}

.velora-service-lead-modal__field input {
  padding: 0.7rem 0.85rem;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  font: inherit;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
}

.velora-service-lead-modal__field input:focus,
.velora-service-lead-modal__field input:focus-visible {
  outline: none;
  border-color: #18181b;
  box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.08);
}

.velora-service-lead-modal__field input:-webkit-autofill,
.velora-service-lead-modal__field input:-webkit-autofill:hover,
.velora-service-lead-modal__field input:-webkit-autofill:focus,
.velora-service-lead-modal__field input:-webkit-autofill:active,
.velora-service-lead-modal__phone-wrap input:-webkit-autofill,
.velora-service-lead-modal__phone-wrap input:-webkit-autofill:hover,
.velora-service-lead-modal__phone-wrap input:-webkit-autofill:focus,
.velora-service-lead-modal__phone-wrap input:-webkit-autofill:active {
  -webkit-text-fill-color: #18181b;
  caret-color: #18181b;
  box-shadow: 0 0 0 1000px #fff inset;
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  transition: background-color 99999s ease-out 0s;
}

.velora-service-lead-modal__phone-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.85rem;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  background: #fff;
}

.velora-service-lead-modal__phone-prefix {
  font-size: 0.95rem;
  font-weight: 600;
  color: #18181b;
  flex-shrink: 0;
}

.velora-service-lead-modal__phone-wrap:focus-within {
  border-color: #18181b;
  box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.08);
}

.velora-service-lead-modal__phone-wrap input {
  border: none;
  padding: 0.7rem 0;
  flex: 1;
  min-width: 0;
  background: transparent;
  outline: none;
  box-shadow: none;
}

.velora-service-lead-modal__phone-wrap input:focus,
.velora-service-lead-modal__phone-wrap input:focus-visible {
  outline: none;
  box-shadow: none;
}

.velora-service-lead-modal__consents {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem 1rem 1.05rem;
  margin-bottom: 1rem;
  background: #f4f4f5;
  border-radius: 12px;
}

.velora-service-lead-modal__consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #3f3f46;
  cursor: pointer;
}

.velora-service-lead-modal__consent input {
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.velora-service-lead-modal__doc-link {
  display: inline;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.velora-service-lead-modal__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.velora-service-lead-modal__error {
  color: #b91c1c;
  font-size: 0.875rem;
}

.velora-service-lead-modal__success {
  color: #15803d;
  font-size: 0.875rem;
}

.velora-service-lead-modal__submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
}
