/* =============================================
   АНДРЕЙ СЕРВИС — style.css
   Ремонт стиральных машин в Алматы
   ============================================= */

/* ----- Variables ----- */
:root {
  --blue-primary: #1a56db;
  --blue-dark: #1e3a8a;
  --blue-light: #dbeafe;
  --blue-mid: #2563eb;
  --white: #ffffff;
  --gray-bg: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
}

/* ----- Reset & Base ----- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: 'Nunito', sans-serif;
  color: #1e293b;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ----- Layout ----- */
.app-wrapper {
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
  background: var(--gray-bg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ----- Navbar ----- */
.navbar {
  background: white;
  box-shadow: 0 1px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-mid));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-name {
  font-size: 17px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.1;
}

.logo-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.desktop-nav {
  display: none;
  gap: 4px;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-link {
  padding: 8px 14px;
  color: #334155;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.nav-link:hover {
  background: #eff6ff;
  color: var(--blue-primary);
}

.nav-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-phone-text {
  display: none;
}

@media (min-width: 640px) {
  .nav-phone-text {
    display: inline;
  }
}

.burger-btn {
  background: none;
  border: none;
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  padding: 12px 0 16px;
  border-top: 1px solid #f1f5f9;
}

.mobile-menu.open {
  display: block;
}

.mobile-link {
  display: block;
  padding: 10px 8px;
  color: #334155;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.2s;
}

.mobile-link:hover {
  background: #eff6ff;
}

.mobile-cta {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* ----- Buttons ----- */
.btn-call {
  background: var(--white);
  color: var(--blue-primary);
  font-weight: 800;
  border-radius: 12px;
  padding: 14px 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  border: none;
}

.btn-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.btn-whatsapp {
  background: #25d366;
  color: white;
  font-weight: 800;
  border-radius: 12px;
  padding: 14px 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
  border: none;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  background: #22c55e;
  box-shadow: 0 8px 30px rgba(37,211,102,0.4);
}

.btn-call-sm {
  background: var(--blue-primary);
  color: white;
  font-weight: 700;
  border-radius: 10px;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  transition: opacity 0.2s;
  border: none;
}

.btn-call-sm:hover {
  opacity: 0.9;
}

.btn-whatsapp-sm {
  background: #25d366;
  color: white;
  font-weight: 700;
  border-radius: 10px;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  transition: background 0.2s;
  border: none;
}

.btn-whatsapp-sm:hover {
  background: #22c55e;
}

/* ----- Trust Bar ----- */
.trust-bar {
  background: linear-gradient(90deg, #1e3a8a, #1a56db);
  padding: 10px 0;
}

.trust-items {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: white;
  font-size: 13px;
  font-weight: 600;
}

/* ----- Hero ----- */
.hero-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #1a56db 50%, #2563eb 100%);
  position: relative;
  overflow: hidden;
  padding: 60px 20px 70px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: white;
  margin-bottom: 20px;
}

.dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

.hero-title {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 900;
  color: white;
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.hero-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.pill {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  padding: 8px 16px;
  color: white;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ----- Stats Bar ----- */
.stats-bar {
  background: white;
  padding: 32px 20px;
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat-num {
  font-size: 36px;
  font-weight: 900;
  color: var(--blue-primary);
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

/* ----- Sections ----- */
.section {
  padding: 64px 20px;
}

.bg-gray {
  background: var(--gray-bg);
}

.bg-white {
  background: white;
}

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

.section-badge {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue-primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.2;
}

.section-sub {
  color: var(--text-muted);
  font-size: 16px;
  margin-top: 10px;
}

/* ----- Services Grid ----- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.service-card {
  background: white;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border: 2px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  border-color: var(--blue-primary);
  box-shadow: 0 6px 24px rgba(26,86,219,0.1);
}

.service-icon {
  width: 44px;
  height: 44px;
  background: #eff6ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.service-card h3 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-main);
}

.service-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.service-price {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-primary);
}

/* ----- CTA Band ----- */
.cta-band {
  background: linear-gradient(135deg, #1e3a8a, #1a56db);
  padding: 40px 20px;
  text-align: center;
}

.cta-title {
  color: white;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
  margin-bottom: 10px;
}

.cta-sub {
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
  font-size: 16px;
}

.cta-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ----- Brands ----- */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}

.brand-chip {
  background: white;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 15px;
  color: #334155;
  text-align: center;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.brand-chip:hover {
  border-color: var(--blue-primary);
  color: var(--blue-primary);
  background: #eff6ff;
}

/* ----- Problems ----- */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.problem-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.problem-card:hover {
  border-color: var(--blue-primary);
  box-shadow: 0 4px 16px rgba(26,86,219,0.1);
}

.problem-emoji {
  font-size: 28px;
  margin-bottom: 10px;
}

.problem-title {
  font-weight: 800;
  font-size: 14px;
  color: var(--text-main);
}

.problem-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ----- Steps ----- */
.steps-wrapper {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-mid));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  color: white;
  flex-shrink: 0;
}

.step-line {
  width: 2px;
  height: 50px;
  background: linear-gradient(to bottom, #bfdbfe, transparent);
  margin: 4px 0;
}

.step-body {
  padding: 4px 0 24px;
}

.step-body h3 {
  font-weight: 800;
  font-size: 17px;
  color: var(--text-main);
  margin-bottom: 4px;
}

.step-body p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ----- Features ----- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.feature-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(26,86,219,0.12);
  border-color: #bfdbfe;
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-weight: 800;
  font-size: 16px;
  color: var(--text-main);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ----- Reviews ----- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.review-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
}

.stars {
  color: #f59e0b;
  font-size: 18px;
  letter-spacing: 2px;
}

.review-card p {
  margin: 12px 0;
  color: #334155;
  font-size: 14px;
  line-height: 1.7;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.reviewer-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.reviewer-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main);
}

.reviewer-loc {
  font-size: 12px;
  color: var(--text-muted);
}

/* ----- Contacts ----- */
.contact-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
}

.contact-phone-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.contact-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-mid));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.contact-number {
  font-size: 26px;
  font-weight: 900;
  color: var(--text-main);
}

.contact-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-info-row {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ----- Sub Pages ----- */
.page {
  display: none;
}

.page.active {
  display: block;
}

.page-back-bar {
  background: #eff6ff;
  padding: 20px 20px 10px;
}

.back-btn {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-primary);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 0;
}

.back-btn:hover {
  opacity: 0.8;
}

.page-content {
  padding: 32px 20px 64px;
  max-width: 900px;
}

.page-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 16px;
}

/* ----- Prose Content ----- */
.prose-content {
  line-height: 1.8;
  color: #334155;
}

.prose-content h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin: 24px 0 12px;
}

.prose-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1e40af;
  margin: 20px 0 8px;
}

.prose-content p {
  margin-bottom: 12px;
}

.prose-content ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.prose-content ul li {
  margin-bottom: 6px;
}

/* ----- Footer ----- */
footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 20px 24px;
}

footer a {
  color: #60a5fa;
}

footer a:hover {
  color: #93c5fd;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-heading {
  color: white;
  font-weight: 800;
  margin-bottom: 16px;
  font-size: 14px;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-list a {
  font-size: 13px;
}

.footer-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 13px;
  padding: 0;
  text-align: left;
  transition: color 0.2s;
}

.footer-btn:hover {
  color: #60a5fa;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-phone {
  font-size: 16px;
  font-weight: 800;
  color: white !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-wa {
  font-size: 13px;
  color: #94a3b8 !important;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.footer-wa:hover {
  color: #4ade80 !important;
}

.footer-address {
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 13px;
}

/* ----- Floating WhatsApp ----- */
.float-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  z-index: 999;
  transition: transform 0.2s;
}

.float-wa:hover {
  transform: scale(1.1);
}

/* ----- Animations ----- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

.fade-in-delay-1 {
  animation: fadeInUp 0.6s ease 0.1s both;
}

.fade-in-delay-2 {
  animation: fadeInUp 0.6s ease 0.2s both;
}

.fade-in-delay-3 {
  animation: fadeInUp 0.6s ease 0.3s both;
}

/* ----- Focus styles (accessibility) ----- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ----- Print ----- */
@media print {
  .float-wa,
  .navbar,
  .trust-bar,
  .hero-btns,
  .cta-band,
  .contact-btns {
    display: none !important;
  }
}