/* ==========================================================================
   AVTO.ARENDA — Премиальный дизайн в эстетике Apple (apple.com)
   Глубокий темный фон (Deep Obsidian & Pitch Black), фоновое видео авто,
   матовое стекло (Frosted Glassmorphism), типографика SF Pro, кинематографичные
   микроанимации и 100% адаптивность.
   ========================================================================== */

:root {
  /* Палитра в стиле Apple Dark Mode */
  --bg-page: #000000;
  --bg-subtle: #08080a;
  --bg-surface: #101014;
  --bg-surface-elevated: #16161c;
  --bg-surface-glass: rgba(18, 18, 24, 0.75);
  --bg-surface-card: rgba(22, 22, 28, 0.8);
  
  --border-color: rgba(255, 255, 255, 0.1);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.22);
  --border-focus: #2997ff;

  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-muted: #6e6e73;
  --text-inverted: #000000;

  /* Акценты Apple */
  --accent-primary: #2997ff;
  --accent-hover: #0077ed;
  --accent-active: #0062cc;
  --accent-gold: #f5a623;
  --accent-emerald: #30d158;

  --status-available-bg: rgba(48, 209, 88, 0.16);
  --status-available-text: #30d158;
  --status-available-border: rgba(48, 209, 88, 0.4);

  --status-busy-bg: rgba(255, 255, 255, 0.08);
  --status-busy-text: #86868b;
  --status-busy-border: rgba(255, 255, 255, 0.14);

  --status-busy-until-bg: rgba(245, 166, 35, 0.16);
  --status-busy-until-text: #f5a623;
  --status-busy-until-border: rgba(245, 166, 35, 0.4);

  --error-color: #ff453a;
  --error-bg: rgba(255, 69, 58, 0.16);
  --error-border: rgba(255, 69, 58, 0.4);

  --whatsapp-color: #25d366;
  --whatsapp-hover: #1ebd56;
  --telegram-color: #2aabee;
  --telegram-hover: #1f9ad8;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.7);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 0 35px rgba(41, 151, 255, 0.25);

  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Plus Jakarta Sans", Roboto, sans-serif;
  --container-width: 1220px;
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-page);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--bg-page);
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   Типографика
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

p {
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
}

@media (max-width: 640px) {
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* --------------------------------------------------------------------------
   Кнопки в стиле Apple
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  padding: 14px 26px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  user-select: none;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.97) !important;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 4px 20px rgba(41, 151, 255, 0.35);
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 6px 28px rgba(41, 151, 255, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.btn-secondary:hover:not(:disabled) {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.32);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-secondary);
  border-color: rgba(255, 255, 255, 0.1);
}

.btn-ghost:hover:not(:disabled) {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-whatsapp {
  background-color: var(--whatsapp-color);
  color: #ffffff;
  border-color: var(--whatsapp-color);
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover:not(:disabled) {
  background-color: var(--whatsapp-hover);
  border-color: var(--whatsapp-hover);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  transform: translateY(-2px);
}

.btn-telegram {
  background-color: var(--telegram-color);
  color: #ffffff;
  border-color: var(--telegram-color);
  box-shadow: 0 4px 18px rgba(42, 171, 238, 0.3);
}

.btn-telegram:hover:not(:disabled) {
  background-color: var(--telegram-hover);
  border-color: var(--telegram-hover);
  box-shadow: 0 6px 24px rgba(42, 171, 238, 0.45);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 16px 34px;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none !important;
  transform: none !important;
}

/* Эффект мерцающего блика на кнопках Apple */
.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 0%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 100%
  );
  transform: rotate(25deg);
  animation: shimmer 4s infinite linear;
  pointer-events: none;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) rotate(25deg); }
  30%, 100% { transform: translateX(100%) rotate(25deg); }
}

/* --------------------------------------------------------------------------
   Шапка (Header) в стиле Apple Translucent Glass
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-base);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

.brand-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-emerald);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 18px var(--accent-emerald); }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
  letter-spacing: -0.01em;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: #ffffff;
}

.header-action {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Кнопка гамбургер-меню */
.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.menu-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 1px;
  transition: all var(--transition-fast);
}

.mobile-nav-drawer {
  display: none;
  background-color: rgba(12, 12, 16, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 24px 24px;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-xl);
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background-color var(--transition-fast);
}

.mobile-nav-link:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.mobile-admin-link {
  margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

@media (max-width: 820px) {
  .nav-menu {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .mobile-nav-drawer:not(.is-hidden) {
    display: flex;
  }
}

/* --------------------------------------------------------------------------
   Первый экран (Hero) в стиле Apple с видео на фоне
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 110px 0 90px;
  background-color: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

/* Контейнер фонового видео */
.hero-video-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero-video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  transform: scale(1.02);
  filter: brightness(0.72) contrast(1.1);
  transition: opacity 1s ease;
}

/* Кинематографичный оверлей (градиент + виньетка) для идеальной читаемости текста */
.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 50% 45%, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.75) 75%, #000000 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 30%, rgba(0, 0, 0, 0.65) 75%, #000000 100%);
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 880px;
}

/* Кинематографичное появление текста сразу при загрузке сайта (в стиле презентаций Apple) */
.hero-badge-wrap {
  margin-bottom: 22px;
  animation: appleHeroEntrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

.hero-title {
  font-size: clamp(2.35rem, 5.2vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  color: #ffffff;
  font-weight: 800;
  animation: appleHeroEntrance 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}

.hero-title-gradient {
  display: inline-block;
  background: linear-gradient(180deg, #ffffff 40%, rgba(255, 255, 255, 0.65) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 760px;
  letter-spacing: -0.015em;
  animation: appleHeroEntrance 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.32s both;
}

.hero-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 54px;
  animation: appleHeroEntrance 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.46s both;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  animation: appleHeroEntrance 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

@keyframes appleHeroEntrance {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f5f5f7;
  background-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(48, 209, 88, 0.5);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(48, 209, 88, 0); }
  100% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0); }
}

.hero-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background-color: rgba(18, 18, 24, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.hero-stat-card:hover {
  transform: translateY(-3px);
  background-color: rgba(26, 26, 34, 0.85);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: var(--shadow-md);
}

.stat-emoji {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stat-text-wrap {
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.25;
}

@media (max-width: 900px) {
  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding: 70px 0 50px;
    min-height: auto;
  }
  .hero-buttons {
    margin-bottom: 36px;
  }
  .hero-stats-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 24px;
  }
}

/* --------------------------------------------------------------------------
   Секции общие
   -------------------------------------------------------------------------- */
.section {
  padding: 100px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.section-header {
  margin-bottom: 54px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-primary);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  letter-spacing: -0.035em;
  margin-bottom: 12px;
  color: #ffffff;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 680px;
  letter-spacing: -0.01em;
}

@media (max-width: 640px) {
  .section {
    padding: 65px 0;
  }
}

/* --------------------------------------------------------------------------
   Каталог автомобилей (Apple Product Grid с реальными фото)
   -------------------------------------------------------------------------- */
.catalog-section {
  background: radial-gradient(circle at 50% 0%, #101018 0%, #000000 70%);
}

.cars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

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

@media (max-width: 680px) {
  .cars-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.car-card {
  background-color: rgba(18, 18, 24, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.4s ease, 
              box-shadow 0.4s ease;
}

.car-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(41, 151, 255, 0.15);
}

.car-card.is-busy {
  opacity: 0.75;
}

.car-image-box {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: radial-gradient(circle at center, #181822 0%, #0a0a0f 100%);
  position: relative;
  overflow: hidden;
}

.car-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.car-card:hover .car-image {
  transform: scale(1.06);
}

.car-image-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, transparent 40%, rgba(18, 18, 24, 0.95) 100%);
  pointer-events: none;
}

.car-status-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: currentColor;
  border-radius: 50%;
}

.badge-available {
  background-color: rgba(48, 209, 88, 0.18);
  color: #30d158;
  border: 1px solid rgba(48, 209, 88, 0.4);
}

.badge-busy {
  background-color: rgba(255, 255, 255, 0.1);
  color: #a1a1a6;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.badge-busy-until {
  background-color: rgba(245, 166, 35, 0.18);
  color: #f5a623;
  border: 1px solid rgba(245, 166, 35, 0.4);
}

.car-card-body {
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.car-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.car-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.car-year-tag {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
}

.car-specs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.spec-pill {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.car-prices-row {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}

.car-price-item {
  display: flex;
  flex-direction: column;
}

.car-price-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 3px;
}

.car-price-val {
  font-size: 1.1875rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.car-price-day {
  color: #ffffff;
}

.skeleton-card {
  min-height: 440px;
  background-color: rgba(22, 22, 28, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  animation: pulseCard 1.5s infinite ease-in-out;
}

@keyframes pulseCard {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* --------------------------------------------------------------------------
   Калькулятор стоимости (Modern Apple Card Layout)
   -------------------------------------------------------------------------- */
.calculator-section {
  background: linear-gradient(180deg, #000000 0%, #0a0a0f 50%, #000000 100%);
}

.calc-wrapper {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 36px;
  align-items: start;
}

@media (max-width: 980px) {
  .calc-wrapper {
    grid-template-columns: 1fr;
  }
}

.calc-form {
  background-color: rgba(18, 18, 24, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 640px) {
  .calc-form {
    padding: 24px 18px;
  }
}

.form-group {
  margin-bottom: 26px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.sub-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 13px 18px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all var(--transition-fast);
}

.form-control:focus {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(41, 151, 255, 0.25);
}

select.form-control {
  cursor: pointer;
  background-color: #16161e;
}

select.form-control option {
  background-color: #121218;
  color: #ffffff;
  padding: 8px;
}

.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 540px) {
  .grid-2col {
    grid-template-columns: 1fr;
  }
}

/* Переключатель Часы / Дни в стиле Apple Segmented Control */
.segmented-control {
  display: flex;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 14px;
}

.segmented-btn {
  flex: 1;
  padding: 11px 16px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  background: transparent;
  border: none;
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.segmented-btn.active {
  background-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.input-with-label {
  position: relative;
}

.input-with-label .input-unit {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  pointer-events: none;
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.field-error {
  font-size: 0.8125rem;
  color: var(--error-color);
  margin-top: 5px;
  min-height: 18px;
}

.required {
  color: var(--error-color);
}

.optional {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Интерактивные плашки скидок */
.discount-pills {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.discount-pill {
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.discount-pill:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-1px);
}

.discount-pill.active {
  background-color: rgba(48, 209, 88, 0.18);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
  box-shadow: 0 2px 12px rgba(48, 209, 88, 0.3);
  transform: translateY(-1px);
}

/* Дополнительные услуги */
.extra-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 580px) {
  .extra-services-grid {
    grid-template-columns: 1fr;
  }
}

.extra-service-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-fast);
}

.extra-service-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background-color: rgba(255, 255, 255, 0.07);
}

.extra-service-card.selected {
  border-color: var(--accent-primary);
  background-color: rgba(41, 151, 255, 0.12);
  box-shadow: 0 0 16px rgba(41, 151, 255, 0.2);
}

.extra-service-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

.service-card-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
}

.service-card-price {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Радио-карточки способа получения */
.radio-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.04);
  transition: all var(--transition-fast);
}

.radio-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background-color: rgba(255, 255, 255, 0.07);
}

.radio-card input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

.radio-card-content {
  display: flex;
  flex-direction: column;
}

.radio-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #ffffff;
}

.radio-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.delivery-details {
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.delivery-calc-info {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.45;
}

/* Сводка стоимости справа (Apple Sticky Glass Card) */
.calc-summary-card {
  background-color: rgba(18, 18, 24, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 36px;
  position: sticky;
  top: 96px;
  box-shadow: var(--shadow-xl);
}

@media (max-width: 640px) {
  .calc-summary-card {
    padding: 26px 20px;
    position: static;
  }
}

.summary-title {
  font-size: 1.375rem;
  color: #ffffff;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.summary-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.summary-row-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.summary-row-value {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

.discount-row {
  color: var(--accent-emerald);
}

.discount-value {
  color: var(--accent-emerald) !important;
  font-weight: 800 !important;
}

.summary-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin: 24px 0;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 26px;
}

.total-label {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #ffffff;
}

.total-value {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.035em;
}

.summary-footnote {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 16px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Условия аренды (Apple Terms Cards)
   -------------------------------------------------------------------------- */
.terms-section {
  background: radial-gradient(circle at 50% 100%, #101018 0%, #000000 70%);
}

.terms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

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

.term-card {
  background-color: rgba(18, 18, 24, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 34px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.term-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow-lg);
}

.term-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.term-number {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  background-color: rgba(41, 151, 255, 0.12);
  border: 1px solid rgba(41, 151, 255, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.term-icon {
  font-size: 1.5rem;
}

.term-title {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.term-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Контакты
   -------------------------------------------------------------------------- */
.contacts-section {
  background-color: #000000;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

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

.contact-box {
  background-color: rgba(18, 18, 24, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.contact-box:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow-md);
}

.contact-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 18px;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.contact-value {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #ffffff;
}

.contacts-links {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

/* --------------------------------------------------------------------------
   Подвал (Footer) в стиле Apple Minimal
   -------------------------------------------------------------------------- */
.footer {
  margin-top: auto;
  background-color: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 36px 0;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-brand {
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-links-group {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.changelog-link-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.3);
  transition: color var(--transition-fast);
}

.changelog-link-btn:hover {
  color: #ffffff;
}

.footer-admin-link {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  border-bottom: 1px dotted rgba(255, 255, 255, 0.3);
  font-weight: 500;
}

.footer-admin-link:hover {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Модальные окна (Заявка и Журнал изменений)
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  opacity: 1;
  transition: opacity var(--transition-base);
}

.modal-window {
  background-color: rgba(20, 20, 26, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-header {
  padding: 24px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-title {
  font-size: 1.375rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.order-num-badge {
  display: inline-block;
  background-color: var(--accent-primary);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-left: 8px;
  vertical-align: middle;
}

.modal-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 4px;
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: #ffffff;
}

.modal-body {
  padding: 30px;
  overflow-y: auto;
}

.message-preview-container {
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 20px;
}

.message-preview-text {
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.65;
  color: #ffffff;
  white-space: pre-wrap;
  word-break: break-word;
}

.toast-notice {
  margin-top: 14px;
  padding: 10px 14px;
  font-size: 0.875rem;
  background-color: rgba(48, 209, 88, 0.16);
  border: 1px solid rgba(48, 209, 88, 0.4);
  color: #30d158;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 600;
}

.modal-footer {
  padding: 22px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
  background-color: rgba(14, 14, 18, 0.8);
}

.modal-actions-primary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 520px) {
  .modal-actions-primary {
    grid-template-columns: 1fr;
  }
}

.modal-actions-secondary {
  display: flex;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   Журнал изменений карточки
   -------------------------------------------------------------------------- */
.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.changelog-card {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 20px;
}

.changelog-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.changelog-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: #ffffff;
}

.changelog-date {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.changelog-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.changelog-items {
  margin-left: 20px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Утилиты
   -------------------------------------------------------------------------- */
.is-hidden {
  display: none !important;
}
