/*
Theme Name: Miele Support 24
Theme URI: https://miele-support24.ru
Author: Miele Support 24
Description: Custom dark theme for Miele appliance repair service
Version: 1.0.0
Text Domain: miele-support24
*/

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  font-family: 'Manrope', sans-serif;
  background: #111827;
  color: #e5e7eb;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-weight: 400;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

/* ===== Container ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.header-banner {
  background: #0d1117;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 7px 16px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.01em;
}
.header-banner span { opacity: 0.3; margin: 0 8px; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; max-width: 1200px; margin: 0 auto;
}
.site-logo {
  background: #8C0014; padding: 8px 16px; border-radius: 2px;
  color: #fff; font-weight: 700; font-size: 18px; font-style: italic;
  font-family: 'Playfair Display', serif;
}
.header-nav { display: flex; align-items: center; gap: 24px; }
.header-nav a {
  color: #d1d5db; font-size: 14px; transition: color 0.2s;
}
.header-nav a:hover { color: #fff; }
.header-phone {
  display: flex; align-items: center; gap: 8px;
  color: #fff; font-weight: 600; font-size: 15px;
}
.header-phone-icon {
  background: #22c55e; width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; font-size: 16px;
}
.header-cta {
  padding: 10px 20px; border: 1px solid #6b7280; border-radius: 6px;
  color: #fff; font-size: 13px; font-weight: 500; transition: all 0.2s;
}
.header-cta:hover { background: rgba(255,255,255,0.1); border-color: #9ca3af; }

/* Mobile menu toggle */
.menu-toggle {
  display: none; background: none; border: none; color: #fff;
  font-size: 24px; cursor: pointer; padding: 8px;
}
.mobile-menu {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: #fff; z-index: 9999; padding: 60px 20px 20px;
  overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu-close {
  position: absolute; top: 16px; right: 16px; background: none;
  border: none; font-size: 28px; cursor: pointer; color: #111827;
}
.mobile-menu a {
  display: block; padding: 12px 0; color: #111827; font-size: 16px;
  border-bottom: 1px solid #f3f4f6;
}
.mobile-menu .menu-section-title {
  font-size: 11px; font-weight: 700; color: #9ca3af;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 16px 0 4px; margin-top: 0;
}
.mobile-menu .menu-grid {
  display: grid; grid-template-columns: 1fr; gap: 4px;
}

/* ===== Hero ===== */
.hero {
  padding-top: 140px; padding-bottom: 40px;
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  position: relative; overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: flex-start;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 9999px;
  background: rgba(197,160,89,0.1); border: 1px solid rgba(197,160,89,0.3);
  color: rgb(197 160 89); font-size: 13px; font-weight: 600;
  margin-bottom: 16px;
}
.hero-badge-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgb(197 160 89);
}
.hero h1 { margin-bottom: 16px; }
.hero h1 span { color: #8C0014; }
.hero-subtitle {
  font-size: 18px; color: #9ca3af; margin-bottom: 24px;
  max-width: 500px; line-height: 1.6;
}
.hero-cta {
  display: inline-block; padding: 16px 32px;
  background: linear-gradient(to right, #15803d, #16a34a);
  color: #fff; font-weight: 700; font-size: 16px;
  border-radius: 12px; border: none; cursor: pointer;
  box-shadow: 0 4px 15px rgba(34,197,94,0.3);
  transition: all 0.2s; font-family: inherit;
}
.hero-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(34,197,94,0.4); }
.hero-pricing-hint {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: rgba(255,255,255,0.5); margin-top: 8px;
}
.hero-pricing-hint strong { color: #22c55e; font-weight: 600; }
.hero-social-proof {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hero-sp-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: rgba(255,255,255,0.55); white-space: nowrap;
}
.hero-sp-item strong { color: #fff; font-weight: 600; }
.hero-sp-stars { color: #f59e0b; font-size: 13px; letter-spacing: -1px; }
.hero-maybe {
  color: #fff; background: rgba(255,255,255,0.05);
  border-left: 4px solid #8C0014;
  padding: 0.75rem 1.25rem; margin-top: 16px;
  border-radius: 0 0.5rem 0.5rem 0;
  display: inline-block; backdrop-filter: blur(4px);
  font-size: 14px; font-weight: 500;
}

/* ===== Smart Form ===== */
.smart-form-card {
  padding: 20px; background: rgba(15,23,42,0.8);
  border: 1px solid rgba(220,38,38,0.2); border-radius: 16px;
  backdrop-filter: blur(8px);
  animation: formGlow 4s ease-in-out infinite;
}
@keyframes formGlow {
  0%,100% { box-shadow: 0 0 15px rgba(220,38,38,0.15), 0 0 40px rgba(220,38,38,0.05); }
  50% { box-shadow: 0 0 25px rgba(220,38,38,0.3), 0 0 60px rgba(220,38,38,0.1); }
}
.sf-header { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.sf-header-icon {
  background: rgba(220,38,38,0.15); padding: 10px; border-radius: 12px;
}
.sf-header h3 {
  font-family: 'Manrope', sans-serif; font-size: 18px; font-weight: 700;
  color: #fff; line-height: 1.2; margin: 0;
}
.sf-header p { font-size: 13px; color: #94a3b8; margin-top: 2px; }
.sf-label {
  display: block; font-size: 10px; font-weight: 700; color: #64748b;
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px;
}
.sf-input-wrap {
  background: rgba(2,6,23,0.5); padding: 14px; border-radius: 10px;
  border: 1px solid #334155; margin-bottom: 12px; cursor: pointer;
  transition: border-color 0.2s; position: relative;
}
.sf-input-wrap:focus-within { border-color: rgba(220,38,38,0.4); }
.sf-select-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; background: none; border: none; color: #94a3b8;
  font-size: 14px; font-family: inherit; cursor: pointer; outline: none; padding: 0;
}
.sf-select-btn.has-value { color: #e2e8f0; }
.sf-panel {
  display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  z-index: 9999; background: #1e293b; border: 1px solid rgba(100,116,139,0.3);
  border-radius: 8px; max-height: 260px; overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}
.sf-panel button {
  display: block; width: 100%; padding: 12px 16px; background: none;
  border: none; border-bottom: 1px solid rgba(255,255,255,0.05);
  color: #e2e8f0; font-size: 14px; font-family: inherit;
  text-align: left; cursor: pointer;
}
.sf-panel button:hover { background: rgba(255,255,255,0.05); }
.sf-textarea {
  width: 100%; background: none; border: none; color: #e2e8f0;
  font-size: 14px; font-family: inherit; resize: none; outline: none;
  min-height: 48px;
}
.sf-textarea::placeholder { color: #475569; }
.sf-btn {
  width: 100%; padding: 16px;
  background: linear-gradient(to right, #15803d, #16a34a);
  color: white; font-weight: 700; font-size: 16px;
  border: none; border-radius: 12px; cursor: pointer;
  font-family: inherit; transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(34,197,94,0.3);
}
.sf-btn:hover { background: linear-gradient(to right, #16a34a, #22c55e); transform: translateY(-1px); }
.sf-btn:active { transform: scale(0.98); }
.sf-btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.sf-sev {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 20px;
}
.sf-hint { font-size: 11px; color: #64748b; margin-top: 3px; }
.sf-trust {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: #94a3b8;
}
.sf-trust svg { width: 13px; height: 13px; flex-shrink: 0; color: #22c55e; }

/* ===== Services ===== */
.services { padding: 60px 0; background: #111827; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { margin-bottom: 8px; }
.section-title h2 span { color: #8C0014; }
.section-title p { color: #9ca3af; font-size: 16px; }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.service-card {
  background: rgba(31,41,55,0.6); border: 1px solid #374151;
  border-radius: 12px; padding: 24px; text-align: center;
  transition: all 0.2s; cursor: pointer;
}
.service-card:hover {
  border-color: rgba(220,38,38,0.4); transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}
.service-icon { font-size: 40px; margin-bottom: 12px; }
.service-card h3 {
  font-family: 'Manrope', sans-serif; font-size: 15px;
  font-weight: 600; color: #fff; margin-bottom: 4px;
}
.service-card p { font-size: 13px; color: #9ca3af; }

/* ===== Reviews ===== */
.reviews { padding: 60px 0; background: #0d1117; }
.reviews-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.review-card {
  background: rgba(31,41,55,0.6); border: 1px solid #374151;
  border-radius: 12px; padding: 24px;
}
.review-stars { color: #f59e0b; font-size: 16px; margin-bottom: 12px; }
.review-text { font-size: 14px; color: #d1d5db; line-height: 1.6; margin-bottom: 12px; font-style: italic; }
.review-author { font-size: 13px; color: #9ca3af; font-weight: 600; }

/* ===== FAQ ===== */
.faq { padding: 60px 0; background: #111827; }
.faq-item {
  border: 1px solid #374151; border-radius: 12px;
  margin-bottom: 12px; overflow: hidden;
}
.faq-question {
  width: 100%; padding: 20px 24px; background: rgba(31,41,55,0.6);
  border: none; color: #fff; font-size: 16px; font-weight: 600;
  font-family: inherit; text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-question:hover { background: rgba(31,41,55,0.8); }
.faq-answer {
  padding: 0 24px; max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #9ca3af; font-size: 14px; line-height: 1.6;
}
.faq-item.open .faq-answer {
  max-height: 300px; padding: 0 24px 20px;
}

/* ===== CTA Section ===== */
.cta-section {
  padding: 60px 0; text-align: center;
  background: linear-gradient(135deg, rgba(34,197,94,0.1), rgba(22,163,74,0.05));
  border-top: 1px solid rgba(34,197,94,0.2);
  border-bottom: 1px solid rgba(34,197,94,0.2);
}
.cta-section h2 { margin-bottom: 12px; }
.cta-section p { color: #9ca3af; font-size: 16px; margin-bottom: 24px; }

/* ===== Footer ===== */
.site-footer {
  background: #0b0f19; padding: 60px 0 24px;
  border-top: 1px solid #1f2937;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 2fr 1fr 1.2fr;
  gap: 32px; margin-bottom: 40px;
}
.footer-logo {
  background: #8C0014; padding: 6px 12px; border-radius: 2px;
  color: #fff; font-weight: 700; font-size: 16px; font-style: italic;
  font-family: 'Playfair Display', serif; display: inline-block;
  margin-bottom: 12px;
}
.footer-desc { color: #6b7280; font-size: 13px; line-height: 1.6; }
.footer-title { color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 12px; font-family: 'Manrope', sans-serif; }
.footer-services { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-services a {
  padding: 4px 10px; background: rgba(55,65,81,0.5);
  border: 1px solid #374151; border-radius: 6px;
  color: #9ca3af; font-size: 12px; transition: all 0.2s;
}
.footer-services a:hover { color: #fff; border-color: #6b7280; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: #9ca3af; font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-phone { color: #22c55e; font-size: 15px; font-weight: 600; display: block; margin-bottom: 8px; }
.footer-email { color: #6b7280; font-size: 13px; margin-bottom: 4px; }
.footer-hours { color: #6b7280; font-size: 13px; }
.footer-bottom {
  border-top: 1px solid #1f2937; padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: #4b5563; font-size: 12px; }
.footer-bottom p { color: #4b5563; font-size: 12px; margin: 0; }

/* ===== Modal ===== */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); z-index: 10000;
  justify-content: center; align-items: flex-start;
  padding: 16px; padding-top: 40px; font-family: 'Manrope', sans-serif;
  overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal-form {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: 20px; padding: 24px; color: #fff;
  max-width: 420px; width: 100%;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
  position: relative; max-height: calc(100vh - 80px);
  overflow-y: auto; margin: auto 0;
}
.modal-form input, .modal-form select, .modal-form textarea {
  width: 100%; padding: 10px 14px; border-radius: 10px;
  border: 1px solid #374151; background: #111827; color: #fff;
  margin-bottom: 10px; font-size: 14px; outline: none;
  font-family: 'Manrope', sans-serif;
}
.modal-form select { color: #9ca3af; }
.modal-form input:focus, .modal-form select:focus, .modal-form textarea:focus {
  border-color: #22c55e;
}
.modal-form textarea { resize: none; }
.modal-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none; color: #6b7280;
  font-size: 28px; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: #fff; }
.modal-submit {
  width: 100%; padding: 14px; border-radius: 10px;
  background: #22c55e; color: #fff; font-size: 16px;
  font-weight: 700; border: none; cursor: pointer;
  transition: background 0.2s; font-family: 'Manrope', sans-serif;
}
.modal-submit:hover { background: #16a34a; }

/* ===== FAB ===== */
#fab-contact {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  font-family: 'Manrope', sans-serif;
  display: flex; flex-direction: column; align-items: flex-end;
}
#fab-btn {
  width: 56px; height: 56px; border-radius: 50%;
  background: #22c55e; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(34,197,94,0.4); transition: all 0.3s;
  position: relative; flex-shrink: 0;
}
#fab-btn:hover { transform: scale(1.1); }
.fab-badge {
  position: absolute; top: -2px; right: -2px;
  width: 18px; height: 18px; background: #ef4444;
  border-radius: 50%; border: 2px solid #111827;
  animation: fabPulse 2s infinite;
}
.fab-badge.read { display: none; }
@keyframes fabPulse { 0%,100%{transform:scale(1);} 50%{transform:scale(1.2);} }
#fab-menu {
  display: none; flex-direction: column; gap: 10px;
  margin-bottom: 12px; align-items: flex-end;
}
#fab-menu.open { display: flex; }
.fab-item {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; background: rgba(17,24,39,0.95);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 40px;
  padding: 10px 16px 10px 12px; color: #fff;
  font-size: 14px; font-weight: 500; white-space: nowrap;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3); transition: transform 0.15s;
}
.fab-item:hover { transform: scale(1.03); }
#fab-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 9998;
  backdrop-filter: blur(2px);
}
#fab-overlay.open { display: block; }
#fab-icon-chat { display: flex; }
#fab-icon-x { display: none; }
#fab-btn.open #fab-icon-chat { display: none; }
#fab-btn.open #fab-icon-x { display: flex; }

/* ===== Mobile Sticky CTA ===== */
#mob-sticky-cta {
  display: none;
}

/* ===== Blog ===== */
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.blog-card {
  background: rgba(31,41,55,0.6); border: 1px solid #374151;
  border-radius: 12px; overflow: hidden; transition: all 0.2s;
}
.blog-card:hover { border-color: rgba(220,38,38,0.4); transform: translateY(-2px); }
.blog-card-content { padding: 20px; }
.blog-card h3 {
  font-family: 'Manrope', sans-serif; font-size: 16px;
  font-weight: 600; color: #fff; margin-bottom: 8px; line-height: 1.4;
}
.blog-card p { font-size: 13px; color: #9ca3af; line-height: 1.5; }
.blog-card-date { font-size: 12px; color: #6b7280; margin-bottom: 8px; }

/* ===== Error Pages ===== */
.error-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px; margin-top: 24px;
}
.error-card {
  display: block; padding: 20px 24px;
  background: rgba(31,41,55,0.8); border-radius: 12px;
  text-decoration: none; color: #fff; border: 1px solid #374151;
  transition: all 0.2s;
}
.error-card:hover { border-color: #8C0014; transform: translateY(-2px); }
.error-code {
  font-family: 'Playfair Display', serif; font-size: 28px;
  font-weight: 600; color: #8C0014; display: block; margin-bottom: 4px;
}
.error-desc { font-size: 14px; color: #9ca3af; }

/* ===== Content Pages ===== */
.content-page { padding: 140px 0 60px; min-height: 80vh; }
.content-page h1 { margin-bottom: 24px; }
.content-page h1 span { color: #8C0014; }
.content-page .prose { color: #d1d5db; font-size: 15px; line-height: 1.8; }
.content-page .prose p { margin-bottom: 16px; }
.content-page .prose h2 { margin-top: 32px; margin-bottom: 16px; font-size: 1.5rem; }
.content-page .prose ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; }
.content-page .prose li { margin-bottom: 8px; }

/* ===== Device Grid (Diagnosis page) ===== */
.device-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.device-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px 12px; background: rgba(31,41,55,0.6); border: 1px solid #374151;
  border-radius: 12px; cursor: pointer; transition: all 0.2s;
  color: #fff; font-family: 'Manrope', sans-serif;
}
.device-card:hover {
  border-color: rgba(220,38,38,0.4); transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}
.device-icon { font-size: 32px; }
.device-name { font-size: 13px; font-weight: 500; text-align: center; }

/* ===== Responsive ===== */
@media (max-width: 767px) {
  .header-nav { display: none; }
  .menu-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 100px; padding-bottom: 20px; }
  .hero-social-proof { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .reviews-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .error-grid { grid-template-columns: 1fr; }
  .modal-form { padding: 20px; border-radius: 16px; max-height: calc(100vh - 40px); }
  .modal-form input, .modal-form select, .modal-form textarea {
    padding: 10px 12px; margin-bottom: 8px; font-size: 14px;
  }
  #mob-sticky-cta {
    display: block; position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 9990; background: #111827;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 10px 16px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
  #mob-sticky-cta button {
    width: 100%; padding: 14px; border-radius: 10px;
    background: #22c55e; color: #fff; font-size: 15px;
    font-weight: 700; border: none; cursor: pointer;
    font-family: 'Manrope', sans-serif;
  }
  #fab-contact { bottom: 80px !important; }
  header a[href^="tel:"] .header-phone { display: none; }
  main { padding-bottom: 72px; }
  .content-page { padding: 100px 0 40px; }
}
@media (min-width: 768px) {
  #mob-sticky-cta { display: none !important; }
}
