/* Форма заявки + блоки статей/отзывов (подключение к Supabase) */

.site-extras {
  position: relative;
  z-index: 4;
  padding: clamp(32px, 6vw, 72px) 0 clamp(48px, 8vw, 96px);
  background: transparent;
}

.site-extras .container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 40px);
}

.site-extras__title {
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  color: var(--soft);
}

.site-extras__lead {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 42rem;
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

.lead-form {
  display: grid;
  gap: 0.85rem;
  max-width: 28rem;
}

.lead-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.lead-form input,
.lead-form textarea {
  font: inherit;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.lead-form input:focus,
.lead-form textarea:focus {
  border-color: rgba(110, 200, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(110, 200, 255, 0.12);
}

.lead-form textarea {
  min-height: 6rem;
  resize: vertical;
}

.lead-form__submit {
  justify-self: start;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: none;
  color: var(--void);
  background: linear-gradient(120deg, var(--neon-blue), var(--neon-pink));
  margin-top: 0.25rem;
}

.lead-form__submit:disabled {
  opacity: 0.55;
  cursor: wait;
}

.lead-form__msg {
  font-size: 0.88rem;
  margin-top: 0.35rem;
}

.lead-form__msg--ok {
  color: rgba(130, 220, 180, 0.95);
}

.lead-form__msg--err {
  color: rgba(255, 150, 150, 0.95);
}

.site-extras__block {
  margin-top: clamp(40px, 7vw, 72px);
}

.site-extras__block[hidden] {
  display: none !important;
}

.feed-grid {
  display: grid;
  gap: clamp(16px, 3vw, 22px);
}

@media (min-width: 720px) {
  .feed-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feed-card {
  background: var(--glass2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(16px, 2.5vw, 22px);
  backdrop-filter: blur(12px);
}

.feed-card__img {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  border: 1px solid var(--line);
}

.feed-card__img img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
}

.feed-card__title {
  font-family: "Unbounded", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feed-card__body {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

.reviews-grid {
  display: grid;
  gap: clamp(14px, 2.5vw, 20px);
}

@media (min-width: 900px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.review-card {
  margin: 0;
  padding: clamp(14px, 2.2vw, 20px);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left: 3px solid rgba(110, 200, 255, 0.55);
}

.review-card__text {
  font-size: 0.92rem;
  color: var(--soft);
  line-height: 1.55;
  margin-bottom: 0.65rem;
}

.review-card__author {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Модальное окно заявки */
.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  min-height: 100vh;
  min-height: 100dvh;
  display: none;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  place-items: center;
  padding: clamp(12px, 4vw, 28px);
  box-sizing: border-box;
}

.lead-modal__backdrop {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: 100%;
  min-height: 100%;
  align-self: stretch;
  justify-self: stretch;
  background: rgba(2, 4, 12, 0.72);
  cursor: pointer;
}

.lead-modal__panel {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 1;
  justify-self: center;
  align-self: center;
  width: min(100%, 28rem);
  max-height: min(92vh, 640px);
  overflow-y: auto;
  padding: clamp(22px, 4vw, 30px) clamp(18px, 3vw, 26px);
  background: #0d1b3e;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.lead-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 12px;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease, color 0.2s ease;
}

.lead-modal__close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.lead-modal__title {
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  margin: 0 40px 0.65rem 0;
  letter-spacing: 0.02em;
  color: #fff;
}

.lead-modal__intro {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 1rem;
}

.lead-form--modal {
  max-width: none;
}

.lead-form--modal label {
  color: rgba(255, 255, 255, 0.72);
}

.lead-form--modal input,
.lead-form--modal textarea {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
}

.lead-form--modal input::placeholder,
.lead-form--modal textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.lead-form--modal input:focus,
.lead-form--modal textarea:focus {
  border-color: rgba(110, 200, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(110, 200, 255, 0.15);
}

.lead-form--modal .lead-form__submit {
  color: #030208;
}
