:root {
  --bg: #f4f7fb;
  --card: rgba(255, 255, 255, 0.78);
  --text: #0f172a;
  --muted: #475569;
  --line: rgba(148, 163, 184, 0.25);
  --primary: #0f172a;
  --accent: #2563eb;
  --accent-2: #06b6d4;
  --success: #16a34a;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.12), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 3vw, 3.1rem);
}

h2 {
  font-size: clamp(1.7rem, 2.5vw, 2.4rem);
}

h3 {
  font-size: 1.1rem;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 50px;
}

.page {
  display: none;
}

.page.active {
  display: block;
  animation: fadeUp 0.55s ease;
}

.hidden {
  display: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(20px, -14px);
  }
}

.card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero {
  overflow: hidden;
  position: relative;
}

.hero-top {
  min-height: 170px;
  background: linear-gradient(120deg, #0f172a 0%, #1d4ed8 48%, #06b6d4 100%);
  position: relative;
}

.orb,
.orb-2 {
  position: absolute;
  border-radius: 999px;
  filter: blur(20px);
  opacity: 0.55;
  animation: float 10s ease-in-out infinite;
}

.orb {
  right: -30px;
  top: 10px;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.18);
}

.orb-2 {
  left: 32%;
  top: 14px;
  width: 120px;
  height: 120px;
  background: rgba(34, 211, 238, 0.18);
  animation-duration: 12s;
}

.hero-body {
  padding: 0 32px 34px;
  margin-top: -58px;
  display: flex;
  gap: 22px;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
}

.profile-group {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.avatar {
  width: 126px;
  height: 126px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  border: 4px solid white;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  background: #dcfce7;
  color: #166534;
  margin-left: 10px;
}

.title {
  margin-top: 10px;
  font-size: 1.1rem;
  color: #334155;
}

.meta {
  margin-top: 8px;
  color: #64748b;
  font-size: 0.95rem;
}

.tagline,
.hint,
.lead-text {
  line-height: 1.8;
}

.tagline {
  margin-top: 18px;
  max-width: 760px;
  color: var(--muted);
}

.actions,
.success-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, #111827, #1d4ed8);
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.28);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.btn-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.stat {
  padding: 22px;
  transition: transform 0.25s ease;
}

.stat:hover {
  transform: translateY(-5px);
}

.icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  font-weight: 700;
  margin-bottom: 14px;
}

.stat p {
  margin-top: 8px;
  line-height: 1.8;
  color: var(--muted);
}

.section {
  margin-top: 20px;
  padding: 30px;
}

.about-text {
  line-height: 1.95;
  color: var(--muted);
  margin-top: 16px;
  max-width: 900px;
}

.skills {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.pill {
  background: #eef2ff;
  border: 1px solid rgba(99, 102, 241, 0.12);
  color: #312e81;
  padding: 14px 16px;
  text-align: center;
  border-radius: 18px;
  font-weight: 600;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  margin-top: 20px;
}

.dark {
  background: linear-gradient(180deg, #020617 0%, #0f172a 100%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dark p,
.dark li {
  color: rgba(255, 255, 255, 0.8);
}

.small-label {
  display: inline-block;
  color: #7dd3fc;
  font-size: 0.92rem;
  margin-bottom: 14px;
  font-weight: 600;
}

.steps {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex: none;
}

.section-subtitle {
  font-size: 1.45rem;
}

.topic-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.topic {
  background: #f8fafc;
  border-radius: 18px;
  padding: 16px;
  color: var(--muted);
  border: 1px solid rgba(148, 163, 184, 0.18);
  line-height: 1.7;
}

.section-action {
  margin-top: 20px;
}

.back-wrap {
  margin-bottom: 14px;
}

.consult-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 20px;
  align-items: start;
}

.form-card {
  padding: 30px;
}

.sidebar-card {
  padding: 28px;
}

.sidebar-spacing {
  margin-top: 18px;
}

.sidebar-title {
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.top-spacing {
  margin-top: 22px;
}

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

.full {
  grid-column: 1 / -1;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.98rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  padding: 14px 16px;
  font-size: 0.98rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.7;
}

.group {
  margin-top: 24px;
}

.group-title {
  margin-bottom: 14px;
  font-size: 1.02rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: white;
  color: #334155;
  padding: 12px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  user-select: none;
}

.chip:hover {
  border-color: #64748b;
  transform: translateY(-1px);
}

.chip.active {
  background: #0f172a;
  color: white;
  border-color: #0f172a;
}

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

.booking-box {
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 24px;
  padding: 18px;
}

.booking-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 14px;
}

.slot-list {
  display: grid;
  gap: 10px;
}

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

.slot {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: white;
  cursor: pointer;
  text-align: left;
  font-weight: 600;
  transition: all 0.2s ease;
}

.slot:hover {
  border-color: #64748b;
}

.slot.active {
  background: #0f172a;
  color: white;
  border-color: #0f172a;
}

.submit-row {
  margin-top: 26px;
}

.success {
  text-align: center;
  padding: 70px 20px;
}

.success-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: #dcfce7;
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
}

.success-copy {
  max-width: 620px;
  margin: 12px auto 0;
}

.summary {
  margin: 28px auto 0;
  max-width: 700px;
  text-align: left;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  padding: 22px;
}

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

.summary-label {
  color: #94a3b8;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.summary-value {
  margin-top: 6px;
  font-weight: 700;
  color: #1e293b;
}

.hint {
  margin-top: 18px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .grid-3,
  .skills,
  .split,
  .consult-layout,
  .field-grid,
  .booking-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .hero-body {
    padding: 0 20px 24px;
  }

  .section,
  .form-card,
  .sidebar-card {
    padding: 22px;
  }

  .container {
    width: min(100% - 18px, 1180px);
  }
}

@media (max-width: 640px) {
  .hero-top {
    min-height: 150px;
  }

  .hero-body {
    margin-top: -4px;
    padding: 0 16px 22px;
  }

  .profile-group {
    gap: 14px;
    align-items: flex-start;
  }

  .avatar {
    width: 110px;
    height: 110px;
  }
}

.booking-message {
  margin-top: 0;
}

.timezone-note {
  margin-top: 10px;
}

.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 600;
}

.form-status-info {
  background: #dbeafe;
  color: #1d4ed8;
}

.form-status-error {
  background: #fee2e2;
  color: #b91c1c;
}
