/* ==========================================================================
   Ремонт цифровой техники в Рязани | Мастер Константин
   Ultra-modern, mobile-responsive CSS styles
   Version: 2.0 (Strict Viewport & Responsive Alignment)
   ========================================================================== */

:root {
  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Colors */
  --bg-primary: #0a0f1d;
  --bg-secondary: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.7);
  --bg-card-hover: rgba(51, 65, 85, 0.8);
  --border-subtle: rgba(148, 163, 184, 0.12);
  --border-focus: #38bdf8;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;

  --gradient-brand: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
  --gradient-glow: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.15), transparent 70%);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.25);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

body {
  font-family: var(--font-base);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  padding-bottom: 72px; /* space for mobile sticky bar */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

/* Ensure all semantic blocks stretch to 100% full width */
.top-bar,
.header,
main,
section,
.section,
.footer {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

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

/* Responsive Containers */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

.container--sm {
  max-width: 860px;
}

/* Typography Helpers */
.text-center { text-align: center; }
.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  word-break: break-word;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
}

@media (max-width: 768px) {
  .btn {
    white-space: normal;
    word-break: break-word;
  }
}

.btn--primary {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
.btn--primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
  transform: translateY(-1px);
}
.btn--primary:active {
  transform: translateY(0);
}

.btn--glass {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.btn--accent {
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.3);
}
.btn--accent:hover {
  background: rgba(6, 182, 212, 0.25);
  border-color: rgba(6, 182, 212, 0.5);
}

.btn--lg {
  padding: 14px 24px;
  font-size: 0.98rem;
  border-radius: var(--radius-lg);
}

@media (max-width: 480px) {
  .btn--lg {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
}

.btn--sm {
  padding: 8px 14px;
  font-size: 0.82rem;
}

.btn--block {
  width: 100%;
}

.btn--tg {
  background: #229ed9;
  color: white;
}
.btn--wa {
  background: #25d366;
  color: white;
}

/* ==========================================================================
   TOP BAR
   ========================================================================== */
.top-bar {
  background: #060913;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 8px 0;
  width: 100%;
}

.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar__location {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot-online {
  width: 7px;
  height: 7px;
  background-color: var(--accent-green);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px var(--accent-green);
  flex-shrink: 0;
}

.top-bar__contacts {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-phone {
  color: #38bdf8;
  font-weight: 600;
  white-space: nowrap;
}
.top-phone:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .work-time, .fast-reply {
    display: none;
  }
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 29, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
  width: 100%;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.logo__icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.2));
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  flex-shrink: 0;
}

.logo__text {
  min-width: 0;
}

.logo__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  display: block;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo__subtitle {
  font-size: 0.72rem;
  color: var(--text-dim);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav__link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
}
.nav__link:hover {
  color: var(--text-main);
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-cyan);
  transition: width var(--transition-fast);
}
.nav__link:hover::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #38bdf8;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.btn-icon:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.burger span {
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: all var(--transition-normal);
}
.burger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  width: 100%;
  height: calc(100vh - 68px);
  background: #0a0f1d;
  padding: 24px 20px;
  flex-direction: column;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  overflow-y: auto;
  z-index: 99;
  box-sizing: border-box;
}
.mobile-nav.open {
  display: flex;
}
.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-nav__link {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 8px 0;
  display: block;
}
.mobile-nav__footer {
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-phone-link {
  font-size: 1.2rem;
  font-weight: 700;
  color: #38bdf8;
  text-align: center;
}
.mobile-socials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 960px) {
  .nav { display: none; }
  .burger { display: flex; }
  .header-call-btn { display: none; }
}

/* ==========================================================================
   HERO SECTION & DEVICE DETECTOR
   ========================================================================== */
.hero {
  position: relative;
  padding: 28px 0 44px;
  background: radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.12) 0%, transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
  width: 100%;
  box-sizing: border-box;
}

/* Detected Badge - Mobile-first flexible layout */
.device-detector-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 8px 16px;
  border-radius: var(--radius-lg);
  margin-bottom: 22px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
  max-width: 100%;
  box-sizing: border-box;
  flex-wrap: wrap;
}

.radar-pulse {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.radar-pulse::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.4);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.device-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}
.device-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.35;
  word-break: break-word;
}
.device-chip {
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 32px;
  align-items: center;
  width: 100%;
}

.hero__content {
  width: 100%;
  min-width: 0;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.hero__subtitle {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 22px;
  max-width: 620px;
  word-break: break-word;
}

.hero__features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  width: 100%;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--text-main);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  width: 100%;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #38bdf8;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-dim);
}
.stat-divider {
  width: 1px;
  height: 28px;
  background: var(--border-subtle);
}

/* Hero Visual Device Card */
.hero__visual {
  width: 100%;
  min-width: 0;
}

.device-card-glow {
  position: relative;
  width: 100%;
}
.device-card-glow::before {
  content: '';
  position: absolute;
  inset: -8px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(59, 130, 246, 0.2));
  filter: blur(20px);
  border-radius: var(--radius-xl);
  z-index: 0;
}

.device-card-visual {
  position: relative;
  z-index: 1;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-xl);
  padding: 18px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
}

.visual-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}
.pulse-green {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
  flex-shrink: 0;
}

.visual-illustration {
  background: rgba(2, 6, 23, 0.6);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
  box-sizing: border-box;
}

.svg-device-wrapper {
  color: #38bdf8;
  filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.4));
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}
.svg-device-wrapper svg {
  max-width: 100%;
  height: auto;
}

.visual-info-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.visual-model {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  word-break: break-word;
}
.visual-specs {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  word-break: break-word;
}

@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .hero__title {
    font-size: 2.1rem;
  }
  .hero__visual {
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 18px 0 32px;
  }
  .hero__title {
    font-size: 1.6rem;
    line-height: 1.25;
    margin-bottom: 12px;
  }
  .hero__subtitle {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 16px;
  }
  .hero__ctas {
    flex-direction: column;
    gap: 8px;
  }
  .hero__ctas .btn {
    width: 100%;
  }
  .hero__stats {
    gap: 12px;
  }
  .stat-number {
    font-size: 1.15rem;
  }
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */
.section {
  padding: 56px 0;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.section-header {
  margin-bottom: 32px;
  width: 100%;
}

.section-tag {
  display: inline-block;
  background: rgba(6, 182, 212, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  word-break: break-word;
}

.section-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  word-break: break-word;
}

@media (max-width: 768px) {
  .section {
    padding: 40px 0;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .section-desc {
    font-size: 0.9rem;
  }
}

/* ==========================================================================
   SERVICES TABS & GRID
   ========================================================================== */
.device-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
  width: 100%;
}

.device-tab {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition-normal);
  position: relative;
  text-align: center;
  min-width: 0;
}

.device-tab:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(148, 163, 184, 0.3);
  color: var(--text-main);
}

.device-tab.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.2));
  border-color: #38bdf8;
  color: var(--text-main);
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.2);
}

.tab-icon {
  font-size: 1.35rem;
}
.tab-title {
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.tab-badge {
  font-size: 0.65rem;
  background: #0284c7;
  color: #ffffff;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  font-weight: 600;
  white-space: nowrap;
}
.tab-badge:empty {
  display: none;
}

@media (max-width: 768px) {
  .device-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .device-tabs {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .device-tab {
    padding: 10px 6px;
    border-radius: var(--radius-md);
  }
  .tab-title {
    font-size: 0.8rem;
  }
}

/* Brands Marquee / Wrap */
.brands-marquee {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 24px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.brands-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
}
.brands-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.brand-item {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
  width: 100%;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  position: relative;
  box-sizing: border-box;
  width: 100%;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.4);
  background: var(--bg-card-hover);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.service-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.service-icon {
  font-size: 1.6rem;
  background: rgba(255, 255, 255, 0.05);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.service-time {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
  word-break: break-word;
}

.service-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
  flex-grow: 1;
  word-break: break-word;
}

.service-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  gap: 10px;
}

.service-price {
  display: flex;
  flex-direction: column;
}
.service-price-label {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
}
.service-price-val {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #38bdf8;
  white-space: nowrap;
}

/* Custom Problem Card */
.custom-problem-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.8));
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
}
.custom-problem-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}
.custom-problem-content {
  flex: 1 1 220px;
}
.custom-problem-content h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.custom-problem-content p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   INTERACTIVE CALCULATOR
   ========================================================================== */
.calculator-section {
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.7) 100%);
}

.calc-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-xl);
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.calc-steps {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-right: 1px solid var(--border-subtle);
  box-sizing: border-box;
}

.calc-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.calc-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.calc-pills {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
  width: 100%;
}

.calc-pill {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}
.calc-pill:hover {
  background: rgba(51, 65, 85, 0.8);
  color: var(--text-main);
}
.calc-pill.active {
  background: #0284c7;
  border-color: #38bdf8;
  color: white;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.3);
}

.calc-problems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  width: 100%;
}

.calc-problem-btn {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-main);
  text-align: left;
  transition: all var(--transition-fast);
  min-width: 0;
}
.calc-problem-btn:hover {
  background: rgba(51, 65, 85, 0.7);
}
.calc-problem-btn.active {
  background: rgba(6, 182, 212, 0.15);
  border-color: #38bdf8;
}
.calc-prob-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}
.calc-prob-text {
  font-size: 0.8rem;
  font-weight: 600;
  word-break: break-word;
}

.form-select {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-fast);
  width: 100%;
  box-sizing: border-box;
}
.form-select:focus {
  border-color: var(--border-focus);
}

/* Calc Summary */
.calc-summary {
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.8), rgba(15, 23, 42, 0.9));
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  box-sizing: border-box;
}

.calc-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.calc-device-info {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  word-break: break-word;
}

.calc-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.price-label, .time-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-bottom: 2px;
}
.price-val {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #38bdf8;
}
.time-val {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #34d399;
}

.calc-bonuses {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.form-input, .form-textarea {
  width: 100%;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-main);
  outline: none;
  transition: all var(--transition-fast);
  box-sizing: border-box;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.form-privacy {
  display: block;
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 6px;
  line-height: 1.4;
}

@media (max-width: 960px) {
  .calc-card {
    grid-template-columns: 1fr;
  }
  .calc-steps {
    padding: 18px 14px;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .calc-summary {
    padding: 18px 14px;
  }
}

@media (max-width: 600px) {
  .calc-problems-grid {
    grid-template-columns: 1fr;
  }
  .calc-pills {
    grid-template-columns: 1fr 1fr;
  }
  .calc-price-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ==========================================================================
   ADVANTAGES GRID
   ========================================================================== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  width: 100%;
}

.adv-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-sizing: border-box;
}
.adv-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.4);
  background: var(--bg-card-hover);
}
.adv-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}
.adv-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
  word-break: break-word;
}
.adv-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  word-break: break-word;
}

@media (max-width: 600px) {
  .advantages-grid {
    grid-template-columns: 1fr;
  }
  .adv-card {
    padding: 16px;
  }
}

/* ==========================================================================
   WORKFLOW STEPS
   ========================================================================== */
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  width: 100%;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  position: relative;
  transition: all var(--transition-normal);
  box-sizing: border-box;
}
.step-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-2px);
}
.step-num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: rgba(56, 189, 248, 0.35);
  margin-bottom: 6px;
}
.step-card h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-main);
  word-break: break-word;
}
.step-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  word-break: break-word;
}

@media (max-width: 600px) {
  .workflow-steps {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ABOUT MASTER KOSTYA
   ========================================================================== */
.about-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-xl);
  padding: 30px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  width: 100%;
  box-sizing: border-box;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: center;
}

.about-photo-wrapper {
  display: flex;
  justify-content: center;
}

.about-photo {
  position: relative;
  width: 100%;
  max-width: 260px;
}

.master-avatar-mock {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(37, 99, 235, 0.2));
  border: 2px solid rgba(56, 189, 248, 0.4);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.master-illustration {
  color: #38bdf8;
  filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.4));
}

.master-badge-experience {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #0284c7;
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.about-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 10px;
  word-break: break-word;
}

.about-lead {
  font-size: 1rem;
  color: #38bdf8;
  font-weight: 600;
  margin-bottom: 10px;
  word-break: break-word;
}

.about-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 10px;
  word-break: break-word;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0 20px;
}

.about-feat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-main);
}
.feat-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .about-card {
    padding: 20px 16px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ==========================================================================
   REVIEWS SECTION
   ========================================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  width: 100%;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all var(--transition-normal);
  box-sizing: border-box;
  width: 100%;
}
.review-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-2px);
}

.review-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}

.review-author-avatar {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #0284c7, #3b82f6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.review-author-info {
  flex: 1 1 0%;
  min-width: 0;
}
.review-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  word-break: break-word;
}
.review-meta {
  font-size: 0.7rem;
  color: var(--text-dim);
  word-break: break-word;
}

.review-source {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.review-source.yandex {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}
.review-source.avito {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}
.review-source.gis {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.review-stars {
  color: #fbbf24;
  letter-spacing: 2px;
  font-size: 0.95rem;
}

.review-device-tag {
  font-size: 0.75rem;
  color: #38bdf8;
  font-weight: 600;
  background: rgba(6, 182, 212, 0.1);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
  word-break: break-word;
}

.review-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  word-break: break-word;
}

@media (max-width: 600px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   MAP & DISTRICTS
   ========================================================================== */
.map-card-wrapper {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  width: 100%;
  box-sizing: border-box;
}

.districts-list-box {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
}

.districts-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  word-break: break-word;
}

.districts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

.district-badge {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-subtle);
  padding: 6px 8px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  color: var(--text-main);
  word-break: break-word;
}

.workshop-address-card {
  display: flex;
  gap: 10px;
  background: rgba(2, 6, 23, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 12px;
}

.address-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.address-info strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 2px;
}
.address-info p {
  font-size: 0.85rem;
  color: #38bdf8;
  font-weight: 600;
  word-break: break-word;
}
.bus-stops {
  font-size: 0.72rem;
  color: var(--text-dim);
  display: block;
  margin-top: 4px;
}

.workshop-hours {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.hours-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-green);
  flex-shrink: 0;
}

.map-frame-box {
  position: relative;
  min-height: 280px;
  width: 100%;
}

.osm-iframe {
  width: 100%;
  height: 100%;
  border: none;
  min-height: 280px;
  filter: invert(90%) hue-rotate(180deg) contrast(90%);
}

.map-overlay-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 6px 10px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@media (max-width: 860px) {
  .map-card-wrapper {
    grid-template-columns: 1fr;
  }
  .districts-list-box {
    padding: 18px 14px;
  }
  .map-frame-box {
    height: 240px;
    min-height: 240px;
  }
}

@media (max-width: 600px) {
  .districts-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
}

.faq-icon {
  font-size: 1.2rem;
  color: #38bdf8;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
  padding: 0 18px;
}

.faq-item.active .faq-answer {
  padding-bottom: 14px;
}

.faq-answer p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  word-break: break-word;
}

/* ==========================================================================
   CONTACTS & MAIN ORDER FORM
   ========================================================================== */
.contacts-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-xl);
  padding: 30px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  width: 100%;
  box-sizing: border-box;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.contacts-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
  word-break: break-word;
}

.contacts-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  word-break: break-word;
}

.contacts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  transition: all var(--transition-fast);
}
.contact-row:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.3);
}

.c-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}
.c-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-dim);
}
.c-val {
  font-size: 0.92rem;
  color: var(--text-main);
  word-break: break-word;
}

/* Main Form Box */
.contacts-form-box {
  background: rgba(10, 15, 29, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-sizing: border-box;
}

.form-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.form-discount-tag {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.main-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-agreement {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.4;
  margin-top: 6px;
}

@media (max-width: 900px) {
  .contacts-card {
    padding: 18px 14px;
  }
  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .contacts-form-box {
    padding: 16px 12px;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: #050811;
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0 20px;
  width: 100%;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 10px 0;
}

.legal-info {
  display: block;
  font-size: 0.7rem;
  color: var(--text-dim);
  line-height: 1.4;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-links a:hover {
  color: #38bdf8;
}

.footer-contact {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.footer-contact a {
  color: #38bdf8;
  font-weight: 600;
}

.footer__bottom {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

@media (max-width: 860px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ==========================================================================
   MOBILE STICKY ACTION BAR - 100% Viewport Alignment
   ========================================================================== */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  height: 60px;
  background: rgba(10, 15, 29, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  z-index: 999;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  padding: 4px 6px;
  gap: 4px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .mobile-sticky-bar {
    display: grid;
  }
}

.sticky-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 2px 2px;
}

.sticky-action-btn:hover, .sticky-action-btn:active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
}

.sticky-icon {
  font-size: 1.15rem;
  line-height: 1;
  margin-bottom: 2px;
}

.sticky-action-btn.sticky-order {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: white;
}

/* ==========================================================================
   MODAL POPUP
   ========================================================================== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.modal.active {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal__dialog {
  position: relative;
  z-index: 2;
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: var(--radius-xl);
  max-width: 440px;
  width: 100%;
  padding: 22px 18px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

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

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}
.modal__close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.modal__header {
  margin-bottom: 14px;
}
.modal-badge {
  display: inline-block;
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
}
.modal__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
}
.modal__subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

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

.modal__success {
  text-align: center;
  padding: 16px 0;
}
.success-icon {
  font-size: 2.6rem;
  margin-bottom: 10px;
}
.modal__success h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.modal__success p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.success-discount-box {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 10px;
  border-radius: var(--radius-md);
  color: #34d399;
  font-size: 0.85rem;
  margin-bottom: 18px;
}
