:root {
  --bg: #fbfaf7;
  --paper: #ffffff;
  --ink: #0f0f0f;
  --muted: #707070;
  --line: rgba(15, 15, 15, .14);
  --soft: #efede8;
  --soft-2: #d9d2c8;
  --accent: #111111;
  --radius: 0px;
  --radius-soft: 18px;
  --shadow: 0 18px 55px rgba(0, 0, 0, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #e9e6df;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.42;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.site-frame {
  max-width: 520px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
  position: relative;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 18px 14px;
  background: rgba(251, 250, 247, .9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { display: grid; gap: 2px; }
.brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .08em;
}
.brand-line {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--muted);
}
.top-actions { display: flex; gap: 4px; }
.lang {
  width: 34px;
  height: 30px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}
.lang.active { background: var(--ink); color: var(--paper); }

.mini-menu {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.mini-menu a {
  min-height: 42px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.mini-menu a:last-child { border-right: 0; }

.section-pad { padding: 54px 18px; }
.hero { padding-top: 18px; }
.hero-photo { margin-bottom: 30px; }
.hero-copy { text-align: left; }

.photo-placeholder {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: end start;
  padding: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(0,0,0,.04), rgba(255,255,255,.0) 38%),
    linear-gradient(135deg, #242424 0%, #6c655f 31%, #d7d0c4 64%, #f6f1e8 100%);
  color: #fff;
}
.photo-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 20%, rgba(255,255,255,.35), transparent 24%),
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,.55) 100%);
  mix-blend-mode: screen;
  opacity: .48;
}
.photo-placeholder span {
  position: relative;
  z-index: 1;
  max-width: 180px;
  color: rgba(255,255,255,.88);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.photo-placeholder.dark { background: linear-gradient(135deg, #0d0d0d, #4c4742 44%, #b8afa0); }
.portrait { height: 590px; }
.tall { height: 470px; }
.card-photo { height: 390px; margin-bottom: 18px; }
.card-photo.small { height: 260px; }
.wide { height: 260px; }
.portfolio-photo { min-height: 380px; }
.portfolio-photo.two { min-height: 310px; }
.portfolio-photo.three { min-height: 460px; }

.eyebrow,
.section-label {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .23em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: .88;
  text-transform: uppercase;
}
h1 { font-size: clamp(58px, 16vw, 86px); }
h2 { font-size: clamp(39px, 11vw, 58px); }
h3 { font-size: 28px; line-height: .95; }
.lead,
.section-text,
.feature-content p,
.consult p {
  margin-top: 18px;
  max-width: 430px;
  color: var(--muted);
  font-size: 15px;
}
.hero-buttons { display: grid; gap: 8px; margin-top: 28px; }

.btn {
  min-height: 54px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.btn:active { transform: scale(.985); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.secondary { background: var(--paper); color: var(--ink); }
.btn.full { width: 100%; }

.split-feature {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.feature-image { margin-bottom: 24px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 28px;
  border: 1px solid var(--line);
}
.stats-grid div {
  min-height: 112px;
  padding: 14px 10px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.stats-grid div:last-child { border-right: 0; }
.stats-grid strong {
  display: block;
  font-size: 29px;
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: .9;
}
.stats-grid span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.category-cards { display: grid; gap: 16px; }
.category-card {
  display: block;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.category-card p:last-child {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.text-section {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 24px;
}
.pill-list span {
  padding: 10px 12px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.course-list { display: grid; gap: 0; margin-top: 28px; border-top: 1px solid var(--line); }
.course-card {
  padding: 22px 0;
  background: transparent;
  border-bottom: 1px solid var(--line);
}
.course-top { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; }
.course-card h3 { font-size: 30px; max-width: 285px; }
.course-price { text-align: right; white-space: nowrap; }
.course-price strong { display: block; font-size: 34px; font-weight: 900; letter-spacing: -.06em; line-height: .9; }
.course-price span { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.course-card p { margin-top: 14px; color: var(--muted); font-size: 14px; }
.course-actions { display: grid; gap: 8px; margin-top: 18px; }

.clean-list { padding: 0; margin: 26px 0 0; list-style: none; display: grid; gap: 0; border-top: 1px solid rgba(15,15,15,.18); }
.clean-list li {
  padding: 16px 0 16px 34px;
  border-bottom: 1px solid rgba(15,15,15,.18);
  position: relative;
  color: #3a3937;
  font-size: 15px;
}
.clean-list li::before {
  content: '+';
  position: absolute;
  left: 0;
  top: 11px;
  font-size: 24px;
  font-weight: 500;
}

.portfolio-grid { display: grid; gap: 12px; margin-top: 24px; }
.muted { color: var(--muted); margin-top: 14px; font-size: 14px; }
.case-list { display: grid; gap: 28px; margin-top: 26px; }
.case-card { border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.case-card h3 { margin-top: 18px; }
.case-card p { margin-top: 10px; color: var(--muted); font-size: 14px; }
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(15,15,15,.18);
  margin-top: 26px;
}
.feature-grid div {
  min-height: 118px;
  padding: 14px;
  border-right: 1px solid rgba(15,15,15,.18);
  border-bottom: 1px solid rgba(15,15,15,.18);
  display: flex;
  align-items: flex-end;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.feature-grid div:nth-child(2n) { border-right: 0; }
.feature-grid div:nth-last-child(-n+2) { border-bottom: 0; }

.consult { background: #111; color: #fff; }
.consult .section-label, .consult p, .consult .check { color: rgba(255,255,255,.65); }
.form { display: grid; gap: 9px; margin-top: 26px; }
input, textarea, select {
  width: 100%;
  min-height: 54px;
  border: 1px solid currentColor;
  border-color: rgba(15,15,15,.22);
  padding: 15px 14px;
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  outline: none;
}
.consult input,
.consult textarea,
.consult select {
  color: #fff;
  border-color: rgba(255,255,255,.28);
}
.consult input::placeholder,
.consult textarea::placeholder { color: rgba(255,255,255,.55); }
.consult select { background: #111; }
textarea { resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 12px; }
.check input { width: 17px; min-height: 17px; margin-top: 1px; accent-color: var(--ink); }
.form-status { min-height: 20px; color: var(--muted); font-size: 13px; }

.faq-list { display: grid; gap: 0; margin-top: 26px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { font-weight: 900; cursor: pointer; list-style: none; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; }
summary::-webkit-details-marker { display: none; }
details p { margin-top: 12px; color: var(--muted); font-size: 14px; }
.contact-buttons { display: grid; gap: 8px; margin-top: 24px; }
.footer {
  padding: 32px 18px 98px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--line);
}
.footer nav { display: grid; gap: 8px; margin-top: 16px; }
.footer a { text-decoration: underline; text-underline-offset: 4px; }

.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  width: min(520px, 100%);
  transform: translateX(-50%);
  padding: 10px 12px 14px;
  background: linear-gradient(180deg, transparent, rgba(251,250,247,.96) 33%);
}
.payment-dialog { border: 0; padding: 0; width: min(480px, calc(100% - 28px)); background: transparent; }
.payment-dialog::backdrop { background: rgba(0,0,0,.62); backdrop-filter: blur(5px); }
.modal-card {
  position: relative;
  padding: 24px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 9px;
}
.modal-card h2 { font-size: 42px; }
.modal-close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 26px;
}
.reveal { animation: rise .58s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 521px) {
  .site-frame { box-shadow: 0 0 70px rgba(0,0,0,.12); }
}


/* Mobile typography/layout fix v2 */
.site-frame {
  width: 100%;
  max-width: 520px;
}
.section-pad {
  padding-left: 22px;
  padding-right: 22px;
}
.topbar {
  padding-left: 22px;
  padding-right: 22px;
}
h1, h2, h3 {
  letter-spacing: -0.045em;
  line-height: 0.94;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
}
h1 {
  font-size: clamp(44px, 12vw, 68px);
}
h2 {
  font-size: clamp(34px, 9vw, 50px);
}
h3 {
  font-size: clamp(24px, 7vw, 34px);
  line-height: 1;
}
.lead,
.section-text,
.feature-content p,
.consult p,
.course-card p,
.case-card p,
.muted,
details p,
.clean-list li {
  line-height: 1.62;
  letter-spacing: 0.01em;
}
.course-list {
  gap: 0;
}
.course-card {
  padding: 34px 0 30px;
}
.course-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.course-card h3 {
  max-width: 100%;
  padding-right: 8px;
}
.course-price {
  text-align: left;
  white-space: normal;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.course-price strong {
  font-size: clamp(32px, 10vw, 46px);
  white-space: nowrap;
}
.course-price span {
  max-width: 178px;
  margin-top: 0;
  text-align: right;
  line-height: 1.35;
}
.course-card p {
  margin-top: 18px;
  font-size: 15px;
}
.course-actions {
  gap: 12px;
  margin-top: 24px;
}
.btn {
  min-height: 58px;
  padding: 0 16px;
  letter-spacing: .12em;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
}
.feature-grid div {
  min-height: 132px;
  padding: 20px 18px;
  font-size: 12px;
  letter-spacing: .09em;
  line-height: 1.35;
}
.stats-grid div {
  min-height: 124px;
  padding: 16px 12px;
}
.stats-grid strong {
  font-size: clamp(22px, 7vw, 30px);
}
.stats-grid span {
  line-height: 1.35;
}
.pill-list {
  gap: 10px;
}
.pill-list span {
  padding: 12px 14px;
  line-height: 1.25;
}
.clean-list li {
  padding-top: 20px;
  padding-bottom: 20px;
}
.mini-menu a {
  font-size: 9px;
  letter-spacing: .06em;
}
.photo-placeholder span {
  line-height: 1.45;
}

@media (max-width: 390px) {
  .section-pad {
    padding-left: 18px;
    padding-right: 18px;
  }
  h1 { font-size: clamp(40px, 11vw, 54px); }
  h2 { font-size: clamp(31px, 8.6vw, 44px); }
  h3 { font-size: clamp(22px, 6.5vw, 30px); }
  .course-price span {
    max-width: 150px;
    font-size: 9px;
  }
  .btn {
    font-size: 10px;
    letter-spacing: .10em;
  }
  .feature-grid div {
    padding: 18px 14px;
  }
}

@media (max-width: 350px) {
  .course-price {
    display: block;
  }
  .course-price span {
    display: block;
    max-width: 100%;
    text-align: left;
    margin-top: 6px;
  }
}
