/* ==========================================================================
   AVTO.ARENDA — Премиальный дизайн сервиса проката автомобилей
   Стиль: Luxury Business, плавные микроанимации, адаптивность 100%
   ========================================================================== */

:root {
  --bg-page: #f8fafc;
  --bg-subtle: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  
  --border-color: #e2e8f0;
  --border-subtle: #edf2f7;
  --border-focus: #0f172a;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverted: #ffffff;

  --accent-primary: #0f172a;
  --accent-hover: #1e293b;
  --accent-active: #020617;
  --accent-gold: #d97706;
  --accent-emerald: #059669;

  --status-available-bg: #ecfdf5;
  --status-available-text: #065f46;
  --status-available-border: #a7f3d0;

  --status-busy-bg: #f8fafc;
  --status-busy-text: #64748b;
  --status-busy-border: #cbd5e1;

  --status-busy-until-bg: #fffbeb;
  --status-busy-until-text: #92400e;
  --status-busy-until-border: #fde68a;

  --error-color: #dc2626;
  --error-bg: #fef2f2;
  --error-border: #fecaca;

  --whatsapp-color: #16a34a;
  --whatsapp-hover: #15803d;
  --telegram-color: #0284c7;
  --telegram-hover: #0369a1;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px -1px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 16px 32px -4px rgba(15, 23, 42, 0.1), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 24px 48px -8px rgba(15, 23, 42, 0.14);

  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container-width: 1180px;
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s 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;
}

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

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

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

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

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

/* --------------------------------------------------------------------------
   Кнопки и интерактивные элементы
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  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.98);
}

.btn-primary {
  background-color: var(--accent-primary);
  color: var(--text-inverted);
  border-color: var(--accent-primary);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-color);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--bg-subtle);
  border-color: #94a3b8;
  color: var(--text-primary);
  transform: translateY(-1px);
}

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

.btn-ghost:hover:not(:disabled) {
  color: var(--text-primary);
  background-color: var(--bg-subtle);
}

.btn-whatsapp {
  background-color: var(--whatsapp-color);
  color: #ffffff;
  border-color: var(--whatsapp-color);
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.25);
}

.btn-whatsapp:hover:not(:disabled) {
  background-color: var(--whatsapp-hover);
  border-color: var(--whatsapp-hover);
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.35);
  transform: translateY(-1px);
}

.btn-telegram {
  background-color: var(--telegram-color);
  color: #ffffff;
  border-color: var(--telegram-color);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

.btn-telegram:hover:not(:disabled) {
  background-color: var(--telegram-hover);
  border-color: var(--telegram-hover);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8125rem;
  border-radius: var(--radius-xs);
}

.btn-lg {
  padding: 16px 30px;
  font-size: 1rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

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

/* Эффект мерцающего блика на кнопках */
.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.18) 50%,
    transparent 100%
  );
  transform: rotate(25deg);
  animation: shimmer 4s infinite linear;
  pointer-events: none;
}

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

/* --------------------------------------------------------------------------
   Шапка (Header) с эффектом матового стекла (Frosted Glass)
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all var(--transition-base);
}

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

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.brand-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
}

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

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent-primary);
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

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

/* Кнопка гамбургер-меню для смартфонов */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

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

.mobile-nav-drawer {
  display: none;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 24px 20px;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  animation: slideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.mobile-nav-link:hover {
  background-color: var(--bg-subtle);
}

.mobile-admin-link {
  margin-top: 6px;
  border-top: 1px solid var(--border-color);
  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)
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding: 88px 0 80px;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-subtle) 100%);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.hero-ambient-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.glow-top {
  top: -150px;
  right: -100px;
  background: radial-gradient(circle, #38bdf8 0%, #818cf8 100%);
}

.glow-bottom {
  bottom: -150px;
  left: -100px;
  background: radial-gradient(circle, #a7f3d0 0%, #34d399 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 840px;
}

.hero-badge-wrap {
  margin-bottom: 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(203, 213, 225, 0.8);
  box-shadow: var(--shadow-xs);
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: 3.125rem;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 720px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Полоса преимуществ Hero */
.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
}

.hero-stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.hero-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  background-color: #ffffff;
}

.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: var(--text-primary);
}

.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: 50px 0 45px;
  }
  .hero-title {
    font-size: 2.15rem;
  }
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 26px;
  }
  .hero-stats-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 24px;
  }
}

/* --------------------------------------------------------------------------
   Секции общие
   -------------------------------------------------------------------------- */
.section {
  padding: 90px 0;
  border-bottom: 1px solid var(--border-color);
}

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

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

.section-title {
  font-size: 2rem;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 640px;
}

@media (max-width: 640px) {
  .section {
    padding: 55px 0;
  }
  .section-title {
    font-size: 1.625rem;
  }
}

/* --------------------------------------------------------------------------
   Каталог автомобилей (Luxury Cards)
   -------------------------------------------------------------------------- */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

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

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

.car-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.car-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

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

.car-image-box {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: #f1f5f9;
  position: relative;
  overflow: hidden;
}

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

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

.car-status-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
  border: 1px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.badge-available {
  background-color: rgba(236, 253, 245, 0.95);
  color: var(--status-available-text);
  border-color: var(--status-available-border);
}

.badge-busy {
  background-color: rgba(241, 245, 249, 0.95);
  color: var(--status-busy-text);
  border-color: var(--status-busy-border);
}

.badge-busy-until {
  background-color: rgba(254, 243, 199, 0.95);
  color: #92400e;
  border-color: #fde68a;
}

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

.car-name {
  font-size: 1.1875rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.car-specs {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 22px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.car-specs span {
  background-color: var(--bg-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-color);
  font-weight: 500;
}

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

.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: 2px;
}

.car-price-val {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-primary);
}

.skeleton-card {
  min-height: 400px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  animation: pulseCard 1.5s infinite ease-in-out;
}

@keyframes pulseCard {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* --------------------------------------------------------------------------
   Калькулятор стоимости (Modern Card Layout)
   -------------------------------------------------------------------------- */
.calculator-section {
  background-color: var(--bg-subtle);
}

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

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

.calc-form {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

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

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

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

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

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text-primary);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

select.form-control {
  cursor: pointer;
}

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

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

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

.segmented-btn {
  flex: 1;
  padding: 10px 14px;
  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: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

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

.input-with-label .input-unit {
  position: absolute;
  right: 16px;
  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: 6px 14px;
  border-radius: var(--radius-full);
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.discount-pill:hover {
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.discount-pill.active {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: #10b981;
  color: #065f46;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
  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: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-fast);
}

.extra-service-card:hover {
  border-color: var(--text-secondary);
  background-color: #f8fafc;
}

.extra-service-card.selected {
  border-color: var(--accent-primary);
  background-color: #f8fafc;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.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: var(--text-primary);
}

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

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

.radio-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background-color: var(--bg-surface);
  transition: all var(--transition-fast);
}

.radio-card:hover {
  border-color: var(--text-secondary);
}

.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: var(--text-primary);
}

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

.delivery-details {
  padding: 18px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  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;
}

/* Сводка стоимости справа (Sticky Card) */
.calc-summary-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: sticky;
  top: 92px;
  box-shadow: var(--shadow-md);
}

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

.summary-title {
  font-size: 1.375rem;
  margin-bottom: 24px;
}

.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: var(--text-primary);
  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: var(--border-color);
  margin: 22px 0;
}

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

.total-label {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
}

.total-value {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

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

/* --------------------------------------------------------------------------
   Условия аренды (Terms Cards)
   -------------------------------------------------------------------------- */
.terms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

.term-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.term-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

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

.term-number {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  background-color: #fef3c7;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
}

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

.term-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.term-text {
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Контакты
   -------------------------------------------------------------------------- */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.contact-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition-base);
}

.contact-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.contact-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.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: var(--text-primary);
}

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

/* --------------------------------------------------------------------------
   Подвал (Footer)
   -------------------------------------------------------------------------- */
.footer {
  margin-top: auto;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 32px 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: 16px;
  flex-wrap: wrap;
}

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

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

.footer-links-group {
  display: flex;
  align-items: center;
  gap: 20px;
  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 var(--text-muted);
  transition: color var(--transition-fast);
}

.changelog-link-btn:hover {
  color: var(--text-primary);
}

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

.footer-admin-link:hover {
  color: var(--text-primary);
}

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

.modal-window {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-header {
  padding: 22px 28px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

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

.order-num-badge {
  display: inline-block;
  background-color: var(--accent-primary);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-xs);
  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: var(--text-primary);
}

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

.message-preview-container {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 18px;
}

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

.toast-notice {
  margin-top: 14px;
  padding: 10px 14px;
  font-size: 0.875rem;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 600;
}

.modal-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 14px;
  background-color: #fafbfc;
}

.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: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 18px 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: #e2e8f0;
  border-radius: var(--radius-full);
  color: var(--text-primary);
}

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

.changelog-title {
  font-size: 0.9375rem;
  font-weight: 700;
  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;
}
