/*
Theme Name: УФ-Точка
Theme URI: https://uftochka.ru
Author: УФ-Точка Team
Version: 1.0
Text Domain: uf-tochka
*/

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@700;800&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@500;600&display=swap');

/* ============================================================
   ДИЗАЙН-ТОКЕНЫ (светлая версия сайта, одобренный макет 02.09.2026)
   Фирменный синий #2563EB сохранён без изменений. Тёмными
   остаются только hero, блок калькулятора и футер — точечные
   акценты, а не общий тон сайта.
   ============================================================ */
:root {
  --paper:      #FFFFFF;
  --paper-tint: #F4F7FC;
  --paper-deep: #EEF2FA;
  --ink:        #10182B;
  --ink-soft:   #57647D;
  --ink-faint:  #8996AD;
  --line:       #E3E8F2;
  --line-soft:  #EDF1F8;
  --brand:      #2563EB;
  --brand-deep: #1D4ED8;
  --brand-wash: #EAF1FF;
  --brand-wash-deep: #DCE9FF;
  --on-dark-accent: #7EA6FF;
  --ok:         #16A34A;
  --shadow-sm: 0 1px 2px rgba(16,24,43,0.04);
  --shadow-md: 0 8px 24px -8px rgba(37,99,235,0.16), 0 2px 6px rgba(16,24,43,0.05);
  --shadow-lg: 0 24px 48px -16px rgba(37,99,235,0.20), 0 4px 12px rgba(16,24,43,0.06);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Manrope', 'IBM Plex Sans', sans-serif;
  letter-spacing: -0.01em;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ===== CONTAINER ===== */
.wp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== BUTTONS ===== */
.wp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'IBM Plex Sans', sans-serif;
  border: 1.5px solid transparent;
  transition: all 0.2s;
}

.wp-btn-primary {
  background: var(--brand);
  color: white;
  box-shadow: var(--shadow-md);
}
.wp-btn-primary:hover { background: var(--brand-deep); transform: translateY(-1px); }

.wp-btn-outline {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.wp-btn-outline:hover { background: rgba(255,255,255,0.1); }

/* Тот же контур, но для светлого фона (вне hero и тёмных секций) */
.wp-btn-outline-dark {
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.wp-btn-outline-dark:hover { border-color: var(--brand); color: var(--brand); }

.wp-btn-lg { padding: 14px 28px; font-size: 16px; }

/* ===== TOP HEADER ===== */
.wp-top-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 1100;
  display: flex;
  align-items: center;
}

.wp-top-header-inner {
  max-width: 1250px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.wp-top-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.wp-top-logo-img {
  height: 50px;
  width: auto;
  display: block;
}

.wp-top-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.wp-top-nav a {
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  transition: color 0.2s;
  white-space: nowrap;
}

.wp-top-nav a:hover { color: #fff; }

.wp-top-nav-sep { color: rgba(255,255,255,0.3); font-size: 14px; }

.wp-top-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.wp-top-phone-num {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.wp-top-phone-hours {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}

.wp-top-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 22px;
  background: var(--brand);
  color: white;
  border: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.wp-top-cta:hover {
  background: var(--brand-deep);
}

.wp-top-mobile-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  padding: 8px;
}

.wp-top-mobile-menu {
  display: none;
  position: absolute;
  top: 60px; left: 0; right: 0;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 16px;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-lg);
}

.wp-top-mobile-menu.active { display: flex; }

.wp-top-mobile-menu a {
  padding: 10px 16px;
  color: rgba(255,255,255,0.72);
  font-size: 14px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.wp-top-mobile-menu a:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* ===== POPUP ===== */
.wp-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.wp-popup-overlay.active { display: flex; }

.wp-popup-content {
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 420px;
  width: 100%;
  position: relative;
  animation: popupFadeIn 0.3s ease-out;
}

@keyframes popupFadeIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.wp-popup-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #F1F5F9;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748B;
}

.wp-popup-close:hover { background: #E2E8F0; color: #0F172A; }

/* ===== MAIN ===== */
.wp-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 60px;
}

.wp-content { flex: 1; }

/* ===== HERO =====
   Единственный тёмный акцент вверху страницы — держит фирменный
   тон компании, всё, что ниже, светлое. */
.wp-hero {
  min-height: calc((100vh - 60px) * 0.7);
  background: var(--ink);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.wp-hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.3;
}

.wp-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.wp-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 60px 24px;
}

.wp-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.wp-hero h1 {
  font-size: 52px;
  font-weight: 700;
  color: white;
  line-height: 1.15;
  margin-bottom: 20px;
}

.wp-hero h1 span { color: var(--on-dark-accent); }

.wp-hero p {
  font-size: 18px;
  color: #CBD5E1;
  margin-bottom: 32px;
  max-width: 500px;
}

.wp-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.wp-hero-slider {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

.wp-hero-slider img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.wp-hero-slider-controls {
  position: absolute;
  bottom: 16px; left: 16px; right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wp-slider-dots { display: flex; gap: 6px; }

.wp-slider-dot {
  width: 8px; height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.5);
  border: none;
  transition: all 0.3s;
}

.wp-slider-dot.active { background: #2563EB; width: 24px; }

.wp-slider-arrows { display: flex; gap: 8px; }

.wp-slider-arrow {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wp-slider-arrow:hover { background: rgba(255,255,255,0.3); }

/* ===== STATS ===== */
.wp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

.wp-stat-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.wp-stat-icon { margin-bottom: 10px; color: var(--on-dark-accent); display: flex; justify-content: center; }

.wp-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: white;
}

.wp-stat-icon-text {
  font-size: 20px;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
}

.wp-stat-label {
  font-size: 12px;
  color: #94A3B8;
  margin-top: 4px;
}

/* ===== SECTIONS ===== */
.wp-section { padding: 80px 24px; }
.wp-section-white { background: white; }
.wp-section-gray { background: #F1F5F9; }

.wp-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.wp-section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 12px;
}

.wp-section-header p {
  color: #64748B;
  max-width: 600px;
  margin: 0 auto;
}

.wp-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  color: var(--brand);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 0;
  border-radius: 0;
  margin-bottom: 16px;
}
.wp-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

/* ===== SERVICES ===== */
.wp-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.wp-service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.wp-service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--brand-wash-deep);
  transform: translateY(-3px);
}

.wp-service-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-wash);
  color: var(--brand);
  border-radius: 12px;
  margin-bottom: 14px;
}

.wp-service-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.wp-service-card p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 16px;
  line-height: 1.5;
}

.wp-price-tag {
  display: inline-block;
  background: var(--paper-tint);
  color: var(--ink);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}

/* ===== PORTFOLIO ===== */
.wp-portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.wp-filter-btn {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  background: white;
  color: #64748B;
  cursor: pointer;
  transition: all 0.2s;
}

.wp-filter-btn:hover { background: #F1F5F9; }

.wp-filter-btn.active {
  background: #2563EB;
  color: white;
}

.wp-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.wp-portfolio-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.wp-portfolio-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.wp-portfolio-item:hover img { transform: scale(1.05); }

.wp-portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.wp-portfolio-item:hover .wp-portfolio-overlay { opacity: 1; }

.wp-portfolio-overlay span { color: white; font-weight: 500; }

/* ===== CLIENTS ===== */
.wp-clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.wp-client-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  text-align: left;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.wp-client-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--brand-wash-deep);
  transform: translateY(-3px);
}

.wp-client-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand);
  margin-bottom: 14px;
}

.wp-client-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.wp-client-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ===== CALCULATOR ===== */
.uf-calculator-page {
  background: var(--paper-tint);
  min-height: calc(100vh - 60px);
}

/* ===== CALC PROMO ===== */
@media (max-width: 768px) {
  #calculator .wp-container > div:first-child {
    grid-template-columns: 1fr !important;
  }
  #calculator .wp-container > div:first-child > div:last-child {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* ===== ADVANTAGES ===== */
.wp-adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.wp-adv-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  transition: all 0.2s;
}

.wp-adv-card:hover { box-shadow: var(--shadow-md); }

.wp-adv-number {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 28px;
  font-weight: 600;
  color: var(--brand-wash-deep);
}

.wp-adv-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 8px 0;
}

.wp-adv-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }

/* ===== TESTIMONIALS ===== */
.wp-testimonial-card {
  background: #F1F5F9;
  border-radius: 16px;
  padding: 32px;
  max-width: 700px;
  margin: 0 auto;
}

.wp-stars { display: flex; gap: 4px; margin-bottom: 16px; }

.wp-stars svg { fill: #FBBF24; color: #FBBF24; }

.wp-testimonial-text {
  font-size: 16px;
  color: #0F172A;
  line-height: 1.6;
  margin-bottom: 24px;
}

.wp-testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wp-testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #2563EB;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
}

.wp-testimonial-author-name { font-weight: 600; color: #0F172A; }

.wp-testimonial-author-company { font-size: 14px; color: #64748B; }

/* ===== TESTIMONIAL DOTS ===== */
.wp-testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

/* ===== CONTACT FORM ===== */
.wp-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.wp-contact-form-wrap {
  background: #F1F5F9;
  border-radius: 16px;
  padding: 32px;
}

.wp-form-row { margin-bottom: 16px; }

.wp-form-row label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #64748B;
  margin-bottom: 6px;
}

.wp-form-row input,
.wp-form-row textarea,
.wp-form-row select {
  width: 100%;
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  color: #0F172A;
}

.wp-form-row input:focus,
.wp-form-row textarea:focus,
.wp-form-row select:focus { border-color: #2563EB; }

.wp-form-row textarea { resize: vertical; min-height: 100px; }

.wp-file-upload {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 2px dashed #E2E8F0;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.wp-file-upload:hover { border-color: #2563EB; }

.wp-file-upload input { display: none; }

.wp-form-submit {
  width: 100%;
  background: #2563EB;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.wp-form-submit:hover { background: #1D4ED8; }

.wp-form-privacy {
  font-size: 12px;
  color: #64748B;
  text-align: center;
  margin-top: 12px;
}

.wp-form-privacy a { color: #2563EB; text-decoration: underline; }

/* ===== HERO UPDATES ===== */
.wp-hero-text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wp-hero-badge {
  display: inline-block;
  background: rgba(37, 99, 235, 0.15);
  color: #60A5FA;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  width: fit-content;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.wp-hero-accent {
  color: #2563EB;
}

.wp-hero-desc {
  font-size: 16px;
  color: #CBD5E1;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 480px;
}

.wp-hero-trust {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.wp-hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94A3B8;
  font-size: 14px;
}

.wp-btn-xl {
  padding: 14px 32px;
  font-size: 16px;
}

/* ===== FOOTER =====
   Второй тёмный акцент страницы — тот же тон, что и hero. */
.wp-footer-main {
  background: var(--ink);
  padding: 56px 24px 0;
}

.wp-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.wp-footer-logo-img {
  height: 36px;
  width: auto;
  display: block;
  margin-bottom: 16px;
}

.wp-footer-desc {
  color: #64748B;
  font-size: 14px;
  line-height: 1.6;
  max-width: 260px;
}

.wp-footer-title {
  color: white;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.wp-footer-links,
.wp-footer-contacts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wp-footer-links a,
.wp-footer-contacts li {
  color: #94A3B8;
  font-size: 14px;
  transition: color 0.2s;
}

.wp-footer-links a:hover {
  color: white;
}

.wp-footer-contacts li a {
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.2s;
}

.wp-footer-contacts li a:hover {
  color: white;
}

.wp-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 48px;
  padding: 20px 24px;
}

.wp-footer-bottom .wp-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wp-footer-bottom p,
.wp-footer-bottom span {
  color: #475569;
  font-size: 13px;
}

@media (max-width: 768px) {
  .wp-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .wp-footer-col:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .wp-footer-grid {
    grid-template-columns: 1fr;
  }
  .wp-footer-bottom .wp-container {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ===== PAGE HERO ===== */
.wp-page-hero {
  padding-top: 120px;
  padding-bottom: 48px;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  text-align: center;
}

.wp-page-hero h1 {
  font-size: 40px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.wp-page-hero p {
  color: #94A3B8;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== CATALOG ===== */
.wp-catalog-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.wp-catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.wp-catalog-card {
  background: #F1F5F9;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s;
}

.wp-catalog-card:hover {
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.wp-catalog-card-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 240px;
}

.wp-catalog-img-wrap {
  overflow: hidden;
  background: #E2E8F0;
}

.wp-catalog-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.wp-catalog-card:hover .wp-catalog-img-wrap img { transform: scale(1.05); }

.wp-catalog-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.wp-catalog-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 8px;
}

.wp-catalog-body > p {
  font-size: 14px;
  color: #64748B;
  line-height: 1.5;
  margin-bottom: 12px;
}

.wp-catalog-details { list-style: none; margin-bottom: 16px; }

.wp-catalog-details li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #475569;
  margin-bottom: 6px;
}

.wp-catalog-details li svg {
  color: #2563EB;
  flex-shrink: 0;
  margin-top: 2px;
}

.wp-catalog-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wp-catalog-price {
  font-size: 20px;
  font-weight: 700;
  color: #2563EB;
}

/* ===== DELIVERY / PAYMENT ===== */
.wp-payment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.wp-delivery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.wp-method-card {
  background: #F1F5F9;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s;
}

.wp-method-card:hover { box-shadow: 0 10px 40px rgba(0,0,0,0.1); }

.wp-method-card-white { background: white; }

.wp-method-icon {
  width: 56px; height: 56px;
  background: rgba(37,99,235,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #2563EB;
}

.wp-method-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 8px;
}

.wp-method-card p { font-size: 14px; color: #64748B; }

.wp-method-card p:last-child {
  font-size: 14px;
  color: #2563EB;
  font-weight: 500;
  margin-top: 8px;
}

.wp-timing-note {
  max-width: 700px;
  margin: 24px auto 0;
  background: #FEF9C3;
  border: 1px solid #FDE68A;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: #92400E;
}

.wp-timing-note svg { flex-shrink: 0; color: #B45309; }

.wp-timing-table {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  border-collapse: collapse;
}

.wp-timing-table th {
  text-align: left;
  padding: 16px;
  border-bottom: 2px solid #0F172A;
  font-weight: 600;
}

.wp-timing-table th:nth-child(2),
.wp-timing-table th:nth-child(3) { text-align: center; }

.wp-timing-table td {
  padding: 16px;
  border-bottom: 1px solid #E2E8F0;
}

.wp-timing-table td:nth-child(2),
.wp-timing-table td:nth-child(3) { text-align: center; }

.wp-timing-table td:nth-child(3) { color: #2563EB; font-weight: 500; }

/* ===== MAP ===== */
.wp-map-placeholder {
  background: #E2E8F0;
  border-radius: 16px;
  aspect-ratio: 21/9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wp-map-placeholder-inner { text-align: center; }

.wp-map-placeholder-inner svg {
  color: #2563EB;
  margin: 0 auto 12px;
}

/* ===== CART ===== */
.wp-cart-empty {
  text-align: center;
  padding: 80px 24px;
  max-width: 400px;
  margin: 0 auto;
}

.wp-cart-empty-icon {
  width: 80px; height: 80px;
  background: #F1F5F9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: #64748B;
}

.wp-cart-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.wp-cart-item {
  background: white;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.wp-cart-item-info { flex: 1; }

.wp-cart-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.wp-cart-item-header h4 {
  font-size: 16px;
  font-weight: 600;
  color: #0F172A;
}

.wp-cart-item-header p { font-size: 13px; color: #64748B; }

.wp-cart-item-remove {
  background: none;
  border: none;
  color: #EF4444;
  padding: 4px;
  opacity: 0.6;
  transition: opacity 0.2s;
  cursor: pointer;
}

.wp-cart-item-remove:hover { opacity: 1; }

.wp-cart-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.wp-cart-item-tag {
  font-size: 12px;
  background: #F1F5F9;
  color: #64748B;
  padding: 2px 8px;
  border-radius: 4px;
}

.wp-cart-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wp-cart-qty {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wp-cart-qty button {
  width: 32px; height: 32px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #0F172A;
  cursor: pointer;
}

.wp-cart-qty span { font-weight: 600; min-width: 24px; text-align: center; }

.wp-cart-item-price { text-align: right; }

.wp-cart-item-price .unit { font-size: 13px; color: #64748B; }

.wp-cart-item-price .total { font-size: 18px; font-weight: 600; color: #0F172A; }

.wp-cart-summary {
  background: white;
  border-radius: 12px;
  padding: 24px;
  height: fit-content;
}

.wp-cart-summary h3 { font-size: 18px; font-weight: 600; margin-bottom: 20px; }

.wp-cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
}

.wp-cart-summary-row .label { color: #64748B; }

.wp-cart-summary-row .value { font-weight: 500; }

.wp-cart-summary-total {
  border-top: 1px solid #E2E8F0;
  padding-top: 16px;
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wp-cart-summary-total .label { font-size: 16px; font-weight: 600; }

.wp-cart-summary-total .value { font-size: 28px; font-weight: 700; color: #2563EB; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .wp-top-nav, .wp-top-phone { display: none; }
  .wp-top-cta { display: none; }
  .wp-top-mobile-btn { display: block; margin-left: auto; }

  .wp-hero h1 { font-size: 36px; }
  .wp-hero-slider { display: none; }
  .wp-hero-grid { grid-template-columns: 1fr; }
  .wp-stats { grid-template-columns: repeat(2, 1fr); }
  .wp-services-grid { grid-template-columns: repeat(2, 1fr); }
  .wp-portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .wp-clients-grid { grid-template-columns: repeat(2, 1fr); }
  .wp-adv-grid { grid-template-columns: repeat(2, 1fr); }
  .wp-contact-grid { grid-template-columns: 1fr; }
  .wp-cta-section h2 { font-size: 28px; }
  .wp-catalog-card-grid { grid-template-columns: 200px 1fr; }
  .wp-payment-grid { grid-template-columns: repeat(2, 1fr); }
  .wp-delivery-grid { grid-template-columns: 1fr; }
  .wp-cart-grid { grid-template-columns: 1fr; }
  .wp-features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .wp-hero h1 { font-size: 28px; }
  .wp-stats { grid-template-columns: 1fr 1fr; }
  .wp-services-grid { grid-template-columns: 1fr; }
  .wp-portfolio-grid { grid-template-columns: 1fr; }
  .wp-clients-grid { grid-template-columns: 1fr; }
  .wp-adv-grid { grid-template-columns: 1fr; }
  .wp-cta-buttons { flex-direction: column; align-items: center; }
  .wp-cta-buttons .wp-btn { width: 100%; max-width: 300px; }
  .wp-catalog-card-grid { grid-template-columns: 1fr; }
  .wp-catalog-img-wrap { max-height: 200px; }
  .wp-payment-grid { grid-template-columns: 1fr; }
  .wp-section { padding: 60px 16px; }
  .wp-page-hero h1 { font-size: 28px; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }

/* ================================================================
   MOBILE PATCH — правит найденные проблемы адаптива
   ================================================================ */

/* Fix 1: iOS Safari зумит страницу при тапе на инпут < 16px.
   Убираем зум для ВСЕХ форм на мобильных. */
@media (max-width: 768px) {
    input[type="text"],
    input[type="tel"],
    input[type="email"],
    input[type="number"],
    input[type="search"],
    input[type="url"],
    input[type="password"],
    input[type="date"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* Fix 2: Двухколоночные inline-грид'ы схлопываем в одну колонку.
   Целимся по атрибуту style — работает для inline-стилей. */
@media (max-width: 768px) {
    [style*="grid-template-columns:1fr 1fr"],
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns:1.2fr 1fr"],
    [style*="grid-template-columns: 1.2fr 1fr"],
    [style*="grid-template-columns:1fr 1.2fr"],
    [style*="grid-template-columns: 1fr 1.2fr"] {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
}

/* Fix 3: Талисман-hero — уменьшаем ещё больше на маленьких экранах,
   чтобы не наезжал на CTA-кнопки в hero */
@media (max-width: 480px) {
    .uf-mascot-hero {
        width: 70px !important;
        bottom: 6px !important;
        right: 6px !important;
    }
}

/* Fix 4: Талисманы каталога — на мобильном карточка занимает всю ширину,
   лисёнок с top:-15px;right:-15px может вылезать за viewport. Прижимаем. */
@media (max-width: 480px) {
    .uf-mascot-catalog {
        width: 70px !important;
        top: 0 !important;
        right: 0 !important;
    }
}

/* Fix 5: Уменьшаем избыточный padding больших SEO-секций на мобильных */
@media (max-width: 480px) {
    .wp-section { padding: 40px 16px !important; }
    .wp-page-hero { padding: 48px 16px 32px !important; }
    .wp-hero { padding-top: 56px !important; padding-bottom: 28px !important; }
    .wp-section-header { margin-bottom: 24px !important; }
    .wp-section-header h2 { font-size: 24px !important; }
}

/* Fix 6: Hero-кнопки в столбик на очень узких экранах */
@media (max-width: 480px) {
    .wp-hero-buttons { flex-direction: column; align-items: stretch; }
    .wp-hero-buttons .wp-btn { width: 100%; justify-content: center; }
}

/* Fix 7: Талисман mascot-write — на самом узком экране прижать ближе,
   чтобы не выпрыгивал за форму (у формы padding 28px) */
@media (max-width: 480px) {
    .uf-mascot-write {
        width: 75px !important;
        top: -42px !important;
        right: -4px !important;
    }
}