/* ==========================================================================
   DDL DETAILING STUDIO — Icy High-Tech & Hydrophobic Studio Styles
   ========================================================================== */

:root {
  --bg-dark: #090d16;
  --bg-deep: #06090f;
  --bg-glass: rgba(17, 24, 39, 0.65);
  --bg-glass-hover: rgba(22, 32, 52, 0.85);
  
  --cyan-ice: #38bdf8;
  --cyan-glow: rgba(56, 189, 248, 0.35);
  --cyan-light: #e0f2fe;
  --cyan-gradient: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 50%, #0284c7 100%);
  --cyan-gradient-hover: linear-gradient(135deg, #bae6fd 0%, #38bdf8 50%, #0369a1 100%);
  
  --border-ice: rgba(56, 189, 248, 0.18);
  --border-ice-hover: rgba(56, 189, 248, 0.5);
  
  --text-white: #f8fafc;
  --text-silver: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-tech: 'Space Grotesk', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-white);
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient Icy Aurora & Clean Hydrophobic Glow */
.ice-glow-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(circle at 50% -10%, rgba(56, 189, 248, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 10% 40%, rgba(14, 165, 233, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 90% 70%, rgba(56, 189, 248, 0.08) 0%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 40px 40px, 40px 40px;
}

.font-heading {
  font-family: var(--font-heading);
}

.font-tech {
  font-family: var(--font-tech);
}

.text-ice-gradient {
  background: var(--cyan-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Icy Glassmorphism Card */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-ice);
  border-radius: 18px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-ice-hover);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(56, 189, 248, 0.15);
}

/* Icy Cyan Neon Button */
.btn-cyan {
  background: var(--cyan-gradient);
  color: #04101c;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: 12px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 20px var(--cyan-glow);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn-cyan::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.5s;
}

.btn-cyan:hover::after {
  left: 100%;
}

.btn-cyan:hover {
  background: var(--cyan-gradient-hover);
  box-shadow: 0 6px 30px rgba(56, 189, 248, 0.55);
  transform: translateY(-2px);
  color: #020b14;
}

.btn-outline-ice {
  background: rgba(17, 24, 39, 0.7);
  color: var(--text-white);
  border: 1px solid var(--border-ice);
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 12px;
  padding: 13px 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.btn-outline-ice:hover {
  border-color: var(--cyan-ice);
  background: rgba(22, 33, 54, 0.85);
  color: var(--cyan-ice);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.2);
  transform: translateY(-2px);
}

/* Telegram / Viber Buttons */
.btn-telegram {
  background: linear-gradient(135deg, #2aabee 0%, #229ed9 100%);
  color: #ffffff;
  font-weight: 600;
  border-radius: 10px;
  padding: 11px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-telegram:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(34, 158, 217, 0.4);
}

.btn-viber {
  background: linear-gradient(135deg, #7360f2 0%, #665cac 100%);
  color: #ffffff;
  font-weight: 600;
  border-radius: 10px;
  padding: 11px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-viber:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(115, 96, 242, 0.4);
}

/* High-Tech Badges */
.ice-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cyan-ice);
}

/* Interactive Package Selector Card */
.package-card {
  border: 1px solid var(--border-ice);
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.package-card.active,
.package-card:hover {
  border-color: var(--cyan-ice);
  background: rgba(23, 35, 59, 0.9);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5), 0 0 30px rgba(56, 189, 248, 0.2);
  transform: translateY(-4px);
}

.package-card.active::before {
  content: 'ОБРАНО';
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--cyan-ice);
  color: #06111e;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.08em;
}

/* iPhone Fixed Bottom Action Bar */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(9, 13, 22, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--border-ice);
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  display: flex;
  gap: 10px;
}

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

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.25);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cyan-ice);
}
