/* Формы */
.form{ display: grid; gap: var(--sp-3); }
.form__group{ display: grid; gap: 6px; }
label{ font-weight: 700; }
input[type="text"], input[type="tel"], textarea{
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff; color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease;
  box-shadow: inset 0 1px 0 rgba(2,6,23,.03);
}
input::placeholder, textarea::placeholder{ color: color-mix(in oklab, var(--muted) 60%, #fff); }
input:focus-visible, textarea:focus-visible{
  border-color: color-mix(in oklab, var(--primary) 45%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--primary) 20%, #ffffff);
}
textarea{ resize: vertical; }

.form__actions{ display: flex; flex-wrap: wrap; gap: var(--sp-2); }

.form__note{
  font-size: 14px; color: var(--muted);
}
.form__note a{
  color: var(--primary);
  border-bottom: 1px dashed color-mix(in oklab, var(--primary) 40%, white);
}
.hp-field{ position: absolute !important; left: -9999px !important; }

/* Сервисы */
.service__title{ margin-bottom: 6px; }
.service__text{ color: var(--muted); }

/* Хедер — активный линк при скролле (опционально, JS может добавлять .is-active) */
.site-nav a.is-active{ color: var(--primary); border-bottom: 2px solid var(--accent); padding-bottom: 4px; }

/* Лого */
.logo img{ filter: drop-shadow(0 2px 4px rgba(0,0,0,.08)); }

/* Мелочи */
.section .btn + .btn{ margin-left: 4px; }
hr{ border: 0; height: 1px; background: var(--line); margin: var(--sp-5) 0; }

/* Footer (если добавишь) */
.site-footer{ border-top: 1px solid var(--line); padding-block: var(--sp-5); color: var(--muted); }

/* === Lead Modal (popup form) === */
.modal{
  position: fixed; inset: 0;
  display: none;                 /* скрыта по умолчанию */
  place-items: center;           /* центрируем содержимое */
  background: rgba(0,0,0,.55);
  z-index: 1000;
  padding: 24px;
}
.modal.is-open{ display: grid; }

.modal__dialog{
  width: min(100%, 480px);
  background: #fff; color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--sp-5);
  position: relative;
  display: grid; gap: var(--sp-4);
}

.modal__close{
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); color: var(--muted);
  display: grid; place-items: center; cursor: pointer;
}
.modal__close:hover{ background: var(--primary); color:#fff; border-color: var(--primary); }

body.modal-open{ overflow: hidden; }

@media (prefers-reduced-motion: no-preference){
  .modal__dialog{ transform: translateY(10px); opacity: 0; transition: transform .25s ease, opacity .25s ease; }
  .modal.is-open .modal__dialog{ transform: translateY(0); opacity: 1; }
}

/* Стили для Success Modal */
.success-dialog {
  text-align: center;
  padding-top: 40px;
}

.success__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.success__image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

/* Анимация появления картинки */
@keyframes popIn {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  80% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

.success__image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  animation: popIn 0.6s ease forwards;
}

