/* ===== MJ Consulting – Apple-style light theme ===== */
:root {
  --bg:        #ffffff;
  --bg-alt:    #f5f5f7;
  --ink:       #1d1d1f;
  --ink-soft:  #6e6e73;
  --line:      #d2d2d7;
  --accent:    #0071e3;
  --accent-dk: #0058b9;
  --radius:    20px;
  --radius-sm: 12px;
  --maxw:      1080px;
  --ease:      cubic-bezier(.4, 0, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

a { color: inherit; text-decoration: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 500; line-height: 1;
  padding: 14px 26px; border-radius: 980px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), opacity .25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dk); }
.btn--primary:disabled { background: var(--line); color: #fff; cursor: not-allowed; opacity: .7; }
.btn--ghost { color: var(--accent); padding-left: 8px; padding-right: 8px; }
.btn--ghost:hover { text-decoration: underline; }
.btn--block { width: 100%; }

/* ===== Navigation ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .07);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.nav__logo { display: flex; align-items: center; gap: 7px; font-size: 19px; letter-spacing: -.01em; }
.nav__mark {
  font-weight: 700; color: #fff; background: var(--ink);
  padding: 3px 8px; border-radius: 8px; font-size: 15px; letter-spacing: .02em;
}
.nav__word { font-weight: 500; color: var(--ink); }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: 15px; color: var(--ink-soft); transition: color .2s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  color: #fff !important; background: var(--accent);
  padding: 8px 16px; border-radius: 980px; font-weight: 500;
}
.nav__cta:hover { background: var(--accent-dk); }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { padding: 96px 0 72px; text-align: center; background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%); }
.hero__eyebrow { font-size: 17px; font-weight: 500; color: var(--accent); margin-bottom: 14px; }
.hero__title {
  font-size: clamp(40px, 7vw, 72px); font-weight: 700; line-height: 1.05;
  letter-spacing: -.025em; color: var(--ink); margin-bottom: 22px;
}
.hero__sub {
  max-width: 620px; margin: 0 auto 34px; font-size: clamp(18px, 2.4vw, 22px);
  color: var(--ink-soft); line-height: 1.45;
}
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Stats ===== */
.stats { background: var(--bg-alt); padding: 0 0 64px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  background: #fff; border-radius: var(--radius); padding: 30px 20px; text-align: center;
  border: 1px solid rgba(0, 0, 0, .05);
}
.stat__num { display: block; font-size: clamp(32px, 4vw, 44px); font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.stat__label { display: block; margin-top: 6px; font-size: 15px; color: var(--ink-soft); }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section__eyebrow { font-size: 16px; font-weight: 500; color: var(--accent); margin-bottom: 12px; }
.section__title { font-size: clamp(30px, 4.5vw, 46px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.section__lead { margin-top: 16px; font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); }

/* ===== Cards ===== */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid rgba(0, 0, 0, .07); border-radius: var(--radius);
  padding: 32px 26px; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0, 0, 0, .08); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(0, 113, 227, .1); color: var(--accent); margin-bottom: 20px;
}
.card__icon svg { width: 26px; height: 26px; }
.card__title { font-size: 20px; font-weight: 600; margin-bottom: 10px; letter-spacing: -.01em; }
.card__text { font-size: 15.5px; color: var(--ink-soft); line-height: 1.5; }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; counter-reset: none; }
.step {
  background: #fff; border-radius: var(--radius); padding: 36px 30px;
  border: 1px solid rgba(0, 0, 0, .06);
}
.step__num { font-size: 15px; font-weight: 700; color: var(--accent); letter-spacing: .08em; }
.step__title { font-size: 23px; font-weight: 600; margin: 12px 0 10px; letter-spacing: -.01em; }
.step__text { font-size: 16px; color: var(--ink-soft); line-height: 1.55; }

/* ===== About ===== */
.about { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: center; }
.about__media { display: grid; place-items: center; }
.about__avatar {
  width: 240px; height: 240px; border-radius: 50%;
  background: linear-gradient(150deg, var(--accent), #34c0ff);
  color: #fff; font-size: 86px; font-weight: 700; letter-spacing: .02em;
  display: grid; place-items: center; box-shadow: 0 20px 50px rgba(0, 113, 227, .28);
}
.about__body .section__eyebrow,
.about__body .section__title { text-align: left; }
.about__text { font-size: 18px; color: var(--ink-soft); line-height: 1.6; margin: 18px 0; max-width: 560px; }
.about__body .btn { margin-top: 10px; }

/* ===== Booking ===== */
.booking {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
  background: #fff; border: 1px solid rgba(0, 0, 0, .07); border-radius: var(--radius);
  padding: 32px; max-width: 940px; margin: 0 auto;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .06);
}
.booking__panel { border-right: 1px solid var(--line); padding-right: 28px; }

/* Calendar */
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal__month { font-size: 18px; font-weight: 600; }
.cal__nav {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; font-size: 20px; color: var(--ink); cursor: pointer; line-height: 1;
  transition: background .2s var(--ease);
}
.cal__nav:hover { background: var(--bg-alt); }
.cal__nav:disabled { opacity: .3; cursor: not-allowed; }
.cal__weekdays, .cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal__weekdays { margin-bottom: 8px; }
.cal__weekdays span { text-align: center; font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.cal__day {
  aspect-ratio: 1; border: 0; background: none; border-radius: 50%;
  font-size: 15px; color: var(--ink); cursor: pointer; font-family: inherit;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.cal__day:hover:not(:disabled) { background: var(--bg-alt); }
.cal__day:disabled { color: var(--line); cursor: default; }
.cal__day.is-selected { background: var(--accent); color: #fff; font-weight: 600; }
.cal__day.is-empty { visibility: hidden; }
.cal__hint { margin-top: 14px; font-size: 13px; color: var(--ink-soft); text-align: center; }

/* Slots */
.slots { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.slots__label { font-size: 14px; font-weight: 600; color: var(--ink-soft); margin-bottom: 12px; }
.slots__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot {
  border: 1px solid var(--line); background: #fff; border-radius: 10px;
  padding: 10px 0; font-size: 15px; font-family: inherit; color: var(--ink); cursor: pointer;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.slot:hover { border-color: var(--accent); }
.slot.is-selected { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

/* Form */
.booking__summary {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-alt); border-radius: var(--radius-sm);
  padding: 14px 16px; font-size: 15px; color: var(--ink); margin-bottom: 22px;
}
.booking__summary.is-set { background: rgba(0, 113, 227, .1); color: var(--accent-dk); font-weight: 500; }
.booking__summaryIcon { font-size: 18px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 7px; }
.field__opt { color: var(--ink-soft); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0, 113, 227, .15);
}
.field textarea { resize: vertical; min-height: 80px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.booking__note { margin-top: 14px; font-size: 15px; text-align: center; }
.booking__note.is-ok { color: #1a8a3c; }
.booking__note.is-err { color: #d93025; }

/* ===== Footer ===== */
.footer { background: var(--bg-alt); padding: 56px 0 30px; border-top: 1px solid rgba(0, 0, 0, .06); }
.footer__inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer__brand { display: flex; flex-direction: column; gap: 12px; }
.footer__tag { font-size: 15px; color: var(--ink-soft); max-width: 280px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: flex-start; }
.footer__nav a { font-size: 15px; color: var(--ink-soft); transition: color .2s var(--ease); }
.footer__nav a:hover { color: var(--ink); }
.footer__bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-soft); }

/* ===== Legal pages ===== */
.legal { padding: 120px 0 80px; }
.legal__wrap { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: clamp(32px, 5vw, 46px); font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.legal__updated { font-size: 14px; color: var(--ink-soft); margin-bottom: 40px; }
.legal h2 { font-size: 22px; font-weight: 600; margin: 36px 0 12px; letter-spacing: -.01em; }
.legal h3 { font-size: 17px; font-weight: 600; margin: 24px 0 8px; }
.legal p, .legal li { font-size: 16px; color: #424245; line-height: 1.65; }
.legal p { margin-bottom: 14px; }
.legal ul { margin: 0 0 14px 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); }
.legal a:hover { text-decoration: underline; }
.legal mark { background: #fff4c8; padding: 1px 5px; border-radius: 4px; }
.legal__back { display: inline-block; margin-top: 40px; font-size: 16px; color: var(--accent); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .about__body .section__eyebrow, .about__body .section__title { text-align: center; }
  .about__text { margin-left: auto; margin-right: auto; }
  .booking { grid-template-columns: 1fr; }
  .booking__panel { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; padding-bottom: 28px; }
}

@media (max-width: 640px) {
  .nav__links {
    position: fixed; inset: 56px 0 auto 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: rgba(255, 255, 255, .98); backdrop-filter: blur(20px);
    padding: 8px 0; border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform .35s var(--ease);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: 14px 22px; font-size: 17px; }
  .nav__cta { margin: 8px 22px; text-align: center; }
  .nav__burger { display: flex; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 64px 0; }
  .cards { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .booking { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
