/* Спермлаб — дизайн-система v2 */

:root {
  --brand-deep: #0a5f73;
  --brand-primary: #0d7a94;
  --brand-light: #16b3c6;
  --brand-accent: #1a6eb5;
  --grad: linear-gradient(135deg, #0d7a94 0%, #1a6eb5 55%, #2d8fd4 100%);
  --grad-soft: linear-gradient(160deg, rgba(13, 122, 148, 0.08) 0%, rgba(26, 110, 181, 0.06) 100%);
  --hero-pattern: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.12) 0%, transparent 45%);
  --teal: var(--brand-light);
  --accent: var(--brand-accent);
  --coral-soft: rgba(232, 93, 93, 0.12);
  --green-soft: rgba(46, 158, 91, 0.12);
  --bg: #f0f4f7;
  --elevated: #ffffff;
  --text-h: #0f2430;
  --text: #4a5c68;
  --text-muted: #8a9aa6;
  --border: rgba(15, 36, 48, 0.08);
  --border-strong: rgba(15, 36, 48, 0.14);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-lg: 17px;
  --text-xl: 21px;
  --text-2xl: 26px;
  --radius-full: 999px;
  --shadow-sm: 0 1px 3px rgba(15, 36, 48, 0.06), 0 1px 2px rgba(15, 36, 48, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 36, 48, 0.10), 0 4px 8px rgba(15, 36, 48, 0.05);
  --shadow-lg: 0 16px 40px rgba(15, 36, 48, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 150ms;
  --dur: 250ms;
  --dur-slow: 400ms;
}

.icon { display: block; flex-shrink: 0; }

.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm, 12px);
  flex-shrink: 0;
}

.icon-wrap--teal { background: var(--teal-soft); color: var(--brand-primary); }
.icon-wrap--blue { background: var(--accent-soft); color: var(--brand-accent); }
.icon-wrap--coral { background: var(--coral-soft); color: #c45c5c; }
.icon-wrap--green { background: var(--green-soft); color: var(--ok); }
.icon-wrap--sm { width: 36px; height: 36px; }
.icon-wrap--lg { width: 56px; height: 56px; border-radius: var(--radius, 16px); }

.screen { animation: screenIn var(--dur) var(--ease) both; }

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

@keyframes popIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.action-card, .service-list__item, .service-card, .req {
  box-shadow: var(--shadow-sm) !important;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease) !important;
}

.action-card:active, .service-list__item:active { transform: scale(0.98); }
.action-card:hover, .service-list__item:hover, .service-card:hover { box-shadow: var(--shadow-md) !important; }

.hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-6) var(--space-5) !important;
  box-shadow: var(--shadow-md) !important;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-pattern);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero > * { position: relative; z-index: 1; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--space-2);
  padding: 4px 10px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
}

.hero__title { font-size: var(--text-2xl) !important; letter-spacing: -0.02em; }

.hero__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  box-sizing: border-box;
  margin-top: 4px;
  padding: 14px 20px;
  font-size: var(--text-base);
  font-weight: 700;
  font-family: inherit;
  color: var(--brand-primary);
  background: #fff;
  border: none;
  border-radius: var(--radius-sm, 12px);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.hero__cta:active { transform: scale(0.97); }

.badge { display: inline-flex; align-items: center; gap: 4px; }

.catalog__filters {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-4);
  scrollbar-width: none;
}

.catalog__filters::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0;
  padding: 8px 14px;
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: inherit;
  color: var(--text);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.chip--active {
  color: #fff;
  background: var(--grad);
  border-color: transparent;
}

.catalog__search-wrap { position: relative; margin-bottom: var(--space-4); }

.catalog__search-wrap .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.catalog__search-wrap .catalog__search { padding-left: 42px !important; }

.service-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }

.tag {
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-radius: var(--radius-full);
}

.tag--cito { color: #b45309; background: var(--warn-soft); }
.tag--pack { color: var(--brand-accent); background: var(--accent-soft); }
.tag--consult { color: var(--brand-primary); background: var(--teal-soft); }

.service-card__actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}

.service-card__add, .service-card__book {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.service-card__add { color: var(--brand-accent); background: var(--accent-soft); }
.service-card__book { color: #fff; background: var(--grad); }

.booking-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--space-5);
  padding: var(--space-3);
  background: var(--card-bg);
  border-radius: var(--radius, 16px);
  box-shadow: var(--shadow-sm);
}

.booking-stepper__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.booking-stepper__dot {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 50%;
}

.booking-stepper__step--done .booking-stepper__dot,
.booking-stepper__step--active .booking-stepper__dot {
  color: #fff;
  background: var(--grad);
  border-color: transparent;
}

.booking-stepper__label { font-size: 10px; font-weight: 600; color: var(--text-muted); text-align: center; }
.booking-stepper__step--active .booking-stepper__label { color: var(--brand-accent); }
.booking-stepper__line { flex: 0 0 20px; height: 2px; margin-top: 13px; background: var(--border); }
.booking-stepper__line--done { background: var(--brand-light); }

.booking-summary {
  margin: var(--space-4) 0;
  padding: var(--space-3) var(--space-4);
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius, 16px);
  box-shadow: var(--shadow-md);
  animation: slideUp var(--dur) var(--ease);
}

.booking-summary__title {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.booking-summary__text { font-size: var(--text-sm); font-weight: 600; color: var(--text-h); line-height: 1.4; }
.booking-summary__price { margin-top: 4px; font-size: var(--text-base); font-weight: 800; color: var(--brand-accent); }

.slot--active { animation: pulse 2s var(--ease) infinite; }
.booking__success-icon { animation: popIn 0.5s var(--ease) both; }

.profile__empty {
  text-align: center;
  padding: var(--space-8) var(--space-4) !important;
  background: var(--grad-soft) !important;
  border: 1px dashed var(--border-strong) !important;
  border-radius: var(--radius, 16px) !important;
}

.profile__empty-title { margin: 0 0 var(--space-2); font-size: var(--text-lg); font-weight: 700; color: var(--text-h); }
.profile__empty-text { margin: 0 0 var(--space-5); font-size: var(--text-sm); color: var(--text-muted); }

.req__status--new { color: var(--brand-accent); background: var(--accent-soft); }
.profile__coming { padding: var(--space-4); text-align: center; background: var(--card-bg); border-radius: var(--radius, 16px); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.profile__coming-text { margin: 0; font-size: var(--text-sm); color: var(--text-muted); }

.bottom-nav { box-shadow: 0 -4px 20px rgba(15, 36, 48, 0.08) !important; backdrop-filter: blur(12px); background: rgba(255,255,255,0.92) !important; }
.bottom-nav__item--active { color: var(--brand-accent) !important; }
.bottom-nav__item--active .icon { color: var(--brand-accent); transform: scale(1.08); }

.onboarding {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(15, 36, 48, 0.55);
  backdrop-filter: blur(4px);
}

.onboarding__sheet {
  width: 100%;
  max-width: 640px;
  padding: var(--space-6) var(--space-5) calc(var(--space-6) + env(safe-area-inset-bottom, 0));
  background: var(--card-bg);
  border-radius: var(--radius, 16px) var(--radius, 16px) 0 0;
  box-shadow: var(--shadow-lg);
  animation: slideUp var(--dur-slow) var(--ease);
}

.onboarding__icon { display: flex; justify-content: center; margin-bottom: var(--space-4); }
.onboarding__title { margin: 0 0 var(--space-2); font-size: var(--text-xl); font-weight: 800; text-align: center; color: var(--text-h); }
.onboarding__text { margin: 0 0 var(--space-6); font-size: var(--text-base); text-align: center; color: var(--text); line-height: 1.55; }

.onboarding__dots { display: flex; justify-content: center; gap: var(--space-2); margin-bottom: var(--space-5); }
.onboarding__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.onboarding__dot--active { width: 24px; border-radius: var(--radius-full); background: var(--grad); }

.onboarding__actions { display: flex; gap: var(--space-3); }
.onboarding__skip { flex: 1; padding: 14px; font-size: var(--text-base); font-weight: 600; font-family: inherit; color: var(--text-muted); background: transparent; border: 1px solid var(--border); border-radius: var(--radius-sm, 12px); cursor: pointer; }
.onboarding__next { flex: 2; padding: 14px; font-size: var(--text-base); font-weight: 700; font-family: inherit; color: #fff; background: var(--grad); border: none; border-radius: var(--radius-sm, 12px); cursor: pointer; }

.home__share { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); }

.theme-dark {
  --bg: #0f1a22;
  --card-bg: #1a2832;
  --elevated: #223340;
  --text-h: #eef3f6;
  --text: #a8b8c4;
  --text-muted: #6a8090;
  --border: rgba(255, 255, 255, 0.08);
}

.theme-dark .bottom-nav { background: rgba(26, 40, 50, 0.95) !important; }
.theme-dark .hero__cta { color: var(--brand-deep); }
.theme-dark .chip:not(.chip--active) { background: var(--elevated); }

.brand__logo {
  color: #fff !important;
}

.brand__logo .icon {
  color: #fff;
}

.booking__anon {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text);
  background: var(--warn-soft);
  border-radius: var(--radius-sm, 12px);
}

.booking__success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  color: var(--ok);
  background: var(--ok-soft);
  border-radius: 50%;
}

.profile__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.service-list__chevron {
  display: flex;
  color: var(--text-muted);
}

.action-card__tile .icon-wrap {
  background: transparent !important;
}

.booking__address {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  justify-content: center;
}

.booking__notify {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.booking__ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.booking__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
