/* ══════════════════════════════════════════════════════════════════
   Wire Products Landing — CSS (vintajj-2025 theme palette)
   Палитра: #004a4a primary, #edf5f5 light, #78716C neutral, #f5f5f4 bg
   Шрифт: Inter (уже загружен темой)
   ══════════════════════════════════════════════════════════════════ */

.wp-landing,
.wp-landing p,
.wp-landing li,
.wp-landing td,
.wp-landing div {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  text-align: left;               /* защита от theme'вого justify */
  font-style: normal;             /* защита от theme'вого italic */
}
.wp-landing {
  color: #1C1917;
  /* убираем двойной inset — тема Vintajj уже имеет свой container;
     наш контент теперь флашится с краями темы (совпадает с заголовком вверху) */
  max-width: none;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* H1/H2 — серифный акцент темы vintajj (родной стиль бренда), цвет приводим */
.wp-landing h1, .wp-landing h2 {
  color: #004a4a;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: left;
}
.wp-landing h1 { font-size: 44px; line-height: 1.1; margin: 0 0 18px; }
.wp-landing h2 { font-size: 30px; line-height: 1.2; margin: 0 0 20px; }

/* H3 в карточках и формах — Inter sans-serif (чтобы не лезло курсивом-сериф из темы) */
.wp-landing h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-style: normal !important;
  font-weight: 600;
  font-size: 17px;
  color: #004a4a;
  margin: 0 0 8px;
  letter-spacing: 0;
  text-align: left;
}

.wp-landing section { padding: 24px 0; border-bottom: 1px solid #E7E5E4; }   /* было 32, ужали стыки между секциями */
.wp-landing section:last-child { border-bottom: none; }
/* убрать border у галереи перед формой — серый блок сам её разделяет */
.wp-gallery { border-bottom: none; padding-bottom: 8px; }
.wp-section-lead {
  font-size: 16px; color: #57534E; max-width: 720px; margin: 0 0 32px;
}

/* ── CTA button — воздушный минимализм (как card-кнопки «Заказать/Обсудить») ── */
.wp-cta-primary {
  display: inline-block;
  background: #edf5f5;
  color: #004a4a !important;
  padding: 12px 28px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  letter-spacing: 0.2px;
  transition: background 0.18s ease;
  border: none;
  cursor: pointer;
}
.wp-cta-primary:hover {
  background: #d7ecec;
}
.wp-cta-primary:active {
  background: #c6e0e0;
}
.wp-cta-primary:disabled {
  opacity: 0.55; cursor: not-allowed;
}

/* ══ 1. HERO ══ */
.wp-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.wp-hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: stretch;
  padding: 16px 0 32px !important;
}
.wp-hero-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;                                 /* убрали gap, space-between сам распределит */
  padding: 4px 0;                         /* микро-инсет чтобы первая строка совпала с радиусом фото */
}
.wp-hero-text .wp-lead {
  font-size: 17px;
  color: #44403C;
  margin: 0;                              /* убрали browser-default margin-top/bottom */
  line-height: 1.6;
  padding: 0;
}
.wp-hero-text .wp-cta-primary {
  align-self: flex-start;
}
.wp-hero-text .wp-hero-meta {
  margin: 0 !important;                   /* не должно давить вниз */
}
.wp-hero-meta {
  display: flex; flex-wrap: wrap; gap: 20px 28px;
  margin-top: 0;                          /* убираем, т.к. flex-column gap уже есть */
  font-size: 14px; color: #78716C;
}
.wp-hero-meta span::before { content: "✓ "; color: #004a4a; font-weight: 700; }
.wp-hero-image {
  background: #ffffff;                    /* чистый белый под фото */
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  min-height: 340px;
}
/* плейсхолдер «Фото работ» — только если img нет в разметке */
.wp-hero-image:not(:has(img))::after {
  content: "Фото работ";
  font-size: 15px; font-weight: 500; color: #004a4a;
  letter-spacing: 0.08em; text-transform: uppercase;
  opacity: 0.5;
}
.wp-hero-image img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 48px 56px;                     /* больше воздуха — подставка не обрезается */
  box-sizing: border-box;
  position: absolute; inset: 0;
  color: transparent;
  font-size: 0;
  z-index: 1;
}
.wp-hero-image img[alt]::before {
  content: "";                     /* прячем иконку "broken image" */
  display: block; width: 100%; height: 100%; background: transparent;
}

/* ══ 2. ЧТО ДЕЛАЕМ ══ */
.wp-what-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.wp-what-item {
  background: #ffffff; border: 1px solid #E7E5E4; border-radius: 14px;
  padding: 24px; text-align: left;
}
.wp-what-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: #edf5f5; color: #004a4a;
  display: grid; place-items: center;
  font-size: 22px; font-weight: 700; margin-bottom: 14px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-style: normal !important;
  line-height: 1;
}
.wp-what-item p { font-size: 14px; color: #57534E; margin: 0; }

/* ══ 3. ГАЛЕРЕЯ ══ */
.wp-gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.wp-card {
  background: #ffffff; border: 1px solid #E7E5E4; border-radius: 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.wp-card-img {
  aspect-ratio: 4 / 3;
  background: #ffffff;                    /* чистый белый под фото */
  overflow: hidden;
  display: grid; place-items: center;
  position: relative;
}
/* плейсхолдер «Фото» — только если img нет */
.wp-card-img:not(:has(img))::after {
  content: "Фото";
  font-size: 12px; font-weight: 500; color: #78716C;
  letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6;
}
/* для placeholder-карточек без img — тёплый градиент плейсхолдер */
.wp-card-placeholder .wp-card-img:not(:has(img)) {
  background: linear-gradient(135deg, #f0e8dc 0%, #d9c7ab 100%);
}
.wp-card-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 28px;
  box-sizing: border-box;
  position: absolute; inset: 0;
  color: transparent; font-size: 0;
  z-index: 1;
}
/* Первая карточка (реальное фото Vintajj) — аggressivный padding чтобы стенд не обрезался */
.wp-card-real .wp-card-img img {
  padding: 56px 60px;
}
.wp-card-img-empty {
  background: linear-gradient(135deg, #edf5f5 0%, #d7ecec 100%);
  position: relative;
}
.wp-card-coming {
  font-size: 12px; font-weight: 600; color: #004a4a;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(255,255,255,0.88);
  padding: 5px 12px;
  border-radius: 9999px;
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;                              /* поверх фото */
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.wp-card-body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.wp-card-body p { font-size: 13px; color: #57534E; margin: 0 0 14px; flex: 1; }
.wp-card-cta {
  align-self: flex-start;
  font-size: 14px; font-weight: 600; color: #004a4a !important;
  padding: 8px 16px; border-radius: 9999px;
  background: #edf5f5; text-decoration: none !important;
  transition: background 0.15s ease;
}
.wp-card-cta:hover { background: #d7ecec; }
.wp-card-cta-ghost { background: transparent; border: 1px solid #b3d9d9; }

/* ══ 4. ФОРМА ══ */
.wp-form-section {
  background: #fafaf9;
  margin: 0;
  padding: 20px 0 28px !important;  /* минимальный зазор сверху — прилипает к галерее */
}
.wp-form-section > h2 { margin-top: 0; }
.wp-form-section > .wp-section-lead { margin-bottom: 20px; }
.wp-form {
  max-width: 960px; margin: 0 auto;   /* было 760 — расширили */
  background: #ffffff;
  border: 1px solid #E7E5E4; border-radius: 16px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.wp-honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wp-form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.wp-field {
  display: flex; flex-direction: column; gap: 6px;
}
.wp-field-span-2 { grid-column: span 2; }
.wp-field > span:first-child {
  font-size: 13px; font-weight: 500; color: #44403C;
}
.wp-req { color: #c0443d; font-style: normal; }
.wp-field input[type="text"],
.wp-field input[type="tel"],
.wp-field input[type="email"],
.wp-field input[type="number"],
.wp-field select,
.wp-field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 10px 14px;
  border: 1px solid #D7D3D0;
  border-radius: 10px;
  background: #ffffff;
  color: #1C1917;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.wp-field input:focus,
.wp-field select:focus,
.wp-field textarea:focus {
  outline: none;
  border-color: #004a4a;
  box-shadow: 0 0 0 3px rgba(0, 74, 74, 0.12);
}
.wp-field input.wp-invalid,
.wp-field select.wp-invalid,
.wp-field textarea.wp-invalid {
  border-color: #c0443d;
  box-shadow: 0 0 0 3px rgba(192, 68, 61, 0.08);
}
.wp-consent {
  flex-direction: row !important;
  align-items: flex-start; gap: 10px;
  font-size: 13px; color: #57534E;
  padding-top: 4px;
}
.wp-consent input[type="checkbox"] {
  width: 18px; height: 18px; margin-top: 2px;
  accent-color: #004a4a;
}

/* Upload zone */
.wp-upload-wrap { display: flex; flex-direction: column; gap: 6px; }
.wp-upload {
  display: block;
  border: 2px dashed #b3d9d9; border-radius: 12px;
  background: #edf5f5;
  padding: 20px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.wp-upload:hover { background: #d7ecec; border-color: #004a4a; }
.wp-upload.wp-dragover { background: #c6e0e0; border-color: #004a4a; }
.wp-upload input[type="file"] { display: none; }
.wp-upload-label {
  display: flex; align-items: center; gap: 14px;
}
.wp-upload-icon { font-size: 24px; }
.wp-upload-text { font-size: 14px; color: #44403C; }
.wp-upload-hint { font-size: 12px; color: #78716C; }
.wp-upload-status {
  font-size: 13px; color: #004a4a;
  padding: 4px 0;
}
.wp-upload-status.wp-error { color: #c0443d; }

/* Submit row */
.wp-form-submit-row {
  margin-top: 24px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.wp-submit-btn { font-size: 15px; }
.wp-form-note { font-size: 13px; color: #78716C; }

.wp-form-result {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  display: none;
}
.wp-form-result.wp-success {
  display: block; background: #edf5f5; border: 1px solid #b3d9d9; color: #004a4a;
}
.wp-form-result.wp-error {
  display: block; background: #fbeceb; border: 1px solid #e6b7b3; color: #8b322c;
}

/* ══ 5. TIMELINE ══ */
.wp-steps {
  list-style: none; padding: 0; margin: 0;
  counter-reset: step;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.wp-steps li {
  counter-increment: step;
  position: relative;
  padding: 64px 24px 24px;                /* больше воздуха: left/right по 24, верх 64 под цифру */
  background: #ffffff; border: 1px solid #E7E5E4; border-radius: 12px;
  font-size: 14px; color: #57534E;
}
.wp-steps li::before {
  content: counter(step);
  position: absolute;
  top: 24px; left: 24px;                  /* одинаковый отступ и совпадает с padding текста */
  color: #004a4a;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  opacity: 0.65;
}
.wp-steps li strong { color: #1C1917; }

/* ══ 6. MATERIALS ══ */
.wp-materials-table {
  width: 100%; border-collapse: collapse;
  background: #ffffff; border: 1px solid #E7E5E4; border-radius: 12px;
  overflow: hidden;
  font-size: 14px;
}
.wp-materials-table th {
  background: #edf5f5; text-align: left;
  padding: 12px 18px; color: #004a4a; font-weight: 600;
  border-bottom: 1px solid #E7E5E4;
}
.wp-materials-table td {
  padding: 12px 18px; border-bottom: 1px solid #f0eee9;
}
.wp-materials-table tr:last-child td { border-bottom: none; }
.wp-materials-note {
  margin: 16px 0 0; font-size: 13px; color: #78716C;
}

/* ══ 7. FAQ ══ */
.wp-faq details {
  background: #ffffff; border: 1px solid #E7E5E4;
  border-radius: 10px; padding: 12px 18px; margin-bottom: 10px;
  transition: border-color 0.15s ease;
}
.wp-faq details[open] { border-color: #b3d9d9; }
.wp-faq summary {
  cursor: pointer; font-weight: 500;
  font-size: 15px; color: #1C1917;
  list-style: none; position: relative; padding-right: 28px;
}
.wp-faq summary::-webkit-details-marker { display: none; }
.wp-faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%);
  font-size: 22px; color: #004a4a; line-height: 1;
}
.wp-faq details[open] summary::after { content: "−"; }
.wp-faq p {
  margin: 12px 0 0; font-size: 14px; color: #57534E;
}

/* ══ 8. FINAL CTA ══ */
.wp-cta-finale {
  text-align: center;
  background: linear-gradient(135deg, #edf5f5 0%, #ffffff 100%);
  border-radius: 16px;
  padding: 28px 24px !important;          /* было 64 — −56%, тексты подтянулись вверх */
  border-bottom: none !important;
  margin-top: 16px;
}
.wp-cta-finale h2 { margin-top: 0; margin-bottom: 12px; }
.wp-cta-finale p { color: #44403C; margin: 0 0 20px; font-size: 16px; }

/* ══ Responsive ══ */
@media (max-width: 960px) {
  .wp-hero { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 !important; }
  .wp-hero h1 { font-size: 34px; }
  .wp-what-grid { grid-template-columns: repeat(2, 1fr); }
  .wp-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .wp-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .wp-landing { padding: 0 16px; }
  .wp-landing h1 { font-size: 28px; }
  .wp-landing h2 { font-size: 24px; }
  .wp-landing section { padding: 40px 0; }
  .wp-what-grid { grid-template-columns: 1fr; }
  .wp-gallery-grid { grid-template-columns: 1fr; }
  .wp-steps { grid-template-columns: 1fr; }
  .wp-form { padding: 20px; }
  .wp-form-grid { grid-template-columns: 1fr; }
  .wp-field-span-2 { grid-column: span 1; }
  .wp-hero-image { order: -1; }
  .wp-materials-table { font-size: 13px; }
  .wp-materials-table th, .wp-materials-table td { padding: 10px 12px; }
}
