/* ===== Mastermind M. Bibishev — light business site ===== */
:root {
  --bg: #FFFFFF;
  --bg-cream: #FAF7F1;
  --bg-soft: #F4F1EA;
  --ink: #1A1A1A;
  --ink-2: #3A3A3A;
  --ink-3: #6B6B6B;
  --gold: #B8914E;
  --gold-dark: #8E6E3C;
  --line: #E6E2D8;
  --line-soft: #EFECE3;
}

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

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  font-family: 'Inter', 'Golos Text', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'Inter', 'Golos Text', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
}
h1 { font-size: clamp(32px, 4vw, 52px); margin-bottom: 18px; }
h2 { font-size: clamp(26px, 2.8vw, 36px); margin-bottom: 16px; }
h3 { font-size: clamp(19px, 1.8vw, 22px); margin-bottom: 10px; }
h4 { font-size: 17px; margin-bottom: 8px; }

p { color: var(--ink-2); }
.lead {
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 680px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.gold-bar {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 20px;
  border-radius: 2px;
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 12px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav .logo {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav .logo span { color: var(--gold); }
.nav ul { list-style: none; display: flex; gap: 32px; align-items: center; }
.nav ul a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.15s;
}
.nav ul a:hover, .nav ul a.active { color: var(--ink); }
.nav ul a.active { color: var(--gold-dark); font-weight: 600; }
.nav-cta {
  padding: 11px 22px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--gold-dark); }

.nav-toggle { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; }

/* ===== LAYOUT ===== */
.section { padding: 64px 40px; }
.section--cream { background: var(--bg-cream); }
.section--soft { background: var(--bg-soft); }
.container { max-width: 1140px; margin: 0 auto; }
.container--narrow { max-width: 780px; margin: 0 auto; }

/* ===== HERO (light, no photo bg) ===== */
.hero {
  padding: 56px 40px 56px;
  background: var(--bg);
  position: relative;
}
.hero .container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.4vw, 56px); margin-bottom: 16px; }
.hero .lead { margin-top: 4px; }
.hero .meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-cream);
  border: 1px solid var(--line);
  border-radius: 100px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.hero .meta::before {
  content: ""; width: 8px; height: 8px; background: var(--gold);
  border-radius: 50%; box-shadow: 0 0 0 4px rgba(184,145,78,0.18);
}
.hero .hero-image {
  width: 100%;
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(26,26,26,0.14);
  max-height: 540px;
}
.hero .actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

/* ===== buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.18s;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--ink); }
.btn .arr { transition: transform 0.2s; }
.btn:hover .arr { transform: translateX(3px); }

/* ===== STATS ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.stat { padding-top: 18px; border-top: 1px solid var(--line); }
.stat .num {
  font-size: clamp(32px, 3.2vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}
.stat .num span { color: var(--gold); }
.stat .lab { color: var(--ink-3); font-size: 13px; line-height: 1.4; }

/* ===== TWO COLUMNS ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.two-col .text-block { text-align: left; }
.two-col .text-block .bullets li { text-align: left; }
.two-col img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 10px;
  max-height: 540px;
}
.two-col--reverse .text-block { order: 2; }
.two-col--reverse img { order: 1; }

/* ===== FACTS / DEFINITION LIST ===== */
.facts {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 18px;
}
.facts li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts li .k {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold-dark);
  text-transform: uppercase;
}
.facts li .v {
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.45;
}

/* ===== BULLETS ===== */
.bullets { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.bullets li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; line-height: 1.5; color: var(--ink-2);
}
.bullets li::before {
  content: ""; min-width: 6px; width: 6px; height: 6px;
  background: var(--gold); border-radius: 50%;
  margin-top: 9px; flex-shrink: 0;
}
.bullets li strong { color: var(--ink); font-weight: 600; }

/* ===== CARDS ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 22px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(26,26,26,0.07); border-color: #d8d2c3; }
.section--cream .card { background: #fff; }
.card .num {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--ink-3); line-height: 1.5; }

/* ===== CASE CARDS (with metrics) ===== */
.case {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.section--cream .case { background: #fff; }
.case .head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.case .head .who { font-weight: 600; font-size: 14px; color: var(--ink); }
.case .head .who .role { color: var(--ink-3); font-weight: 400; font-size: 12px; display: block; margin-top: 2px; }
.case .head .when {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  color: var(--gold-dark); text-transform: uppercase;
  background: var(--bg-cream); padding: 4px 10px; border-radius: 100px;
}
.case h3 { font-size: 18px; }
.case .ba { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.case .ba .b, .case .ba .a {
  background: var(--bg-cream);
  border-radius: 8px;
  padding: 12px 14px;
}
.case .ba .a { background: rgba(184,145,78,0.10); }
.case .ba .lab {
  font-size: 10px; font-weight: 700; letter-spacing: 0.18em;
  color: var(--ink-3); text-transform: uppercase; margin-bottom: 4px;
}
.case .ba .a .lab { color: var(--gold-dark); }
.case .ba .v { font-size: 14px; font-weight: 500; color: var(--ink); line-height: 1.4; }
.case .insight {
  font-size: 13px; line-height: 1.5; color: var(--ink-2);
  border-left: 3px solid var(--gold); padding: 2px 0 2px 14px;
}
.case .insight strong { color: var(--ink); font-weight: 600; }

/* ===== QUOTE ===== */
.quote-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  margin-top: 28px;
}
.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.section--cream .quote { background: #fff; }
.quote p {
  font-size: 15px; line-height: 1.5; color: var(--ink); font-weight: 500;
}
.quote p::before {
  content: "“"; color: var(--gold);
  font-family: Georgia, serif;
  font-size: 36px; line-height: 0;
  vertical-align: -0.4em; margin-right: 4px;
}
.quote .who {
  display: flex; align-items: center; gap: 10px;
  padding-top: 10px; border-top: 1px solid var(--line-soft);
}
.quote .who .av {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-cream);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px; color: var(--gold-dark);
  letter-spacing: 0.04em;
}
.quote .who .meta { font-size: 12px; color: var(--ink-3); }
.quote .who .meta .name { color: var(--ink); font-weight: 600; font-size: 13px; }

/* ===== SCHEDULE TIMELINE ===== */
.timeline {
  display: flex; flex-direction: column;
  margin-top: 22px;
}
.timeline .day {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.timeline .day:last-child { border-bottom: 1px solid var(--line); }
.timeline .day .date {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--gold-dark); text-transform: uppercase;
  margin-bottom: 6px;
}
.timeline .day .title { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.timeline .day .slots { display: flex; flex-direction: column; gap: 6px; }
.timeline .day .slot {
  display: grid; grid-template-columns: 96px 1fr; gap: 18px;
  font-size: 14px; line-height: 1.45; color: var(--ink-2);
}
.timeline .day .slot .t { color: var(--ink); font-weight: 600; }

/* ===== GALLERY ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 24px;
}
.gallery img {
  aspect-ratio: 4/5; object-fit: cover;
  border-radius: 8px;
}
.gallery img.wide { grid-column: span 2; aspect-ratio: 8/5; }

/* ===== HERO ALT (page header light) ===== */
.page-head {
  padding: 56px 40px 36px;
  background: var(--bg-cream);
  border-bottom: 1px solid var(--line);
}
.page-head .container { max-width: 940px; }
.page-head h1 { font-size: clamp(30px, 3.6vw, 46px); margin-bottom: 14px; }

/* ===== CTA ===== */
.cta-block {
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  padding: 40px 36px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
  align-items: center;
  margin-top: 40px;
}
.cta-block h2 { color: #fff; margin-bottom: 10px; font-size: clamp(22px, 2.4vw, 30px); }
.cta-block p { color: rgba(255,255,255,0.78); font-size: 15px; }
.cta-block .actions { display: flex; flex-direction: column; gap: 8px; }
.cta-block .btn-primary { background: var(--gold); color: var(--ink); }
.cta-block .btn-primary:hover { background: var(--gold-dark); color: #fff; }
.cta-block .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.cta-block .btn-ghost:hover { background: #fff; color: var(--ink); }

/* ===== FOOTER ===== */
.footer {
  padding: 36px 40px 28px;
  background: var(--bg-cream);
  border-top: 1px solid var(--line);
}
.footer .row {
  max-width: 1180px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
}
.footer .logo { font-weight: 700; color: var(--ink); }
.footer .logo span { color: var(--gold); }
.footer .copy { font-size: 13px; color: var(--ink-3); }
.footer .socials { display: flex; gap: 24px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.footer .socials a:hover { color: var(--gold-dark); }

/* ===== HELPERS ===== */
.section-header { max-width: 720px; margin-bottom: 4px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.row-3 .item h4 { font-size: 16px; margin-bottom: 6px; }
.row-3 .item p { font-size: 14px; color: var(--ink-3); }

/* ===== FORM ===== */
.form { display: flex; flex-direction: column; gap: 18px; margin-top: 32px; }
.form .field { display: flex; flex-direction: column; gap: 6px; }
.form label {
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--ink); text-transform: none;
}
.form input, .form textarea, .form select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,145,78,0.14);
}
.form textarea { resize: vertical; min-height: 130px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .submit-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.form .note { font-size: 13px; color: var(--ink-3); line-height: 1.5; }

.google-form-wrap {
  margin-top: 32px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
}
.google-form-wrap iframe {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
}
.form-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.55;
}
.form-note a {
  color: var(--gold-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .nav { padding: 14px 22px; }
  .nav ul { display: none; }
  .nav-toggle { display: block; }
  .nav.open { flex-wrap: wrap; }
  .nav.open ul {
    display: flex; flex-direction: column; gap: 4px;
    flex-basis: 100%; padding: 16px 0 8px;
    border-top: 1px solid var(--line); margin-top: 14px;
  }
  .nav.open ul a { padding: 12px 0; font-size: 16px; }

  .section { padding: 44px 18px; }
  .hero { padding: 36px 18px 40px; }
  .page-head { padding: 40px 18px 28px; }
  .hero .container { grid-template-columns: 1fr; gap: 24px; }
  .hero .hero-image { aspect-ratio: 4/5; max-height: 380px; }

  .stats { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .cards { grid-template-columns: 1fr; gap: 12px; }
  .quote-grid { grid-template-columns: 1fr; gap: 12px; }
  .row-3 { grid-template-columns: 1fr; gap: 18px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery img.wide { grid-column: span 2; }

  .two-col { grid-template-columns: 1fr; gap: 24px; }
  .two-col img { max-height: 380px; }
  .two-col--reverse .text-block { order: 0; }
  .two-col--reverse img { order: 0; }

  .facts li { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }

  .case .ba { grid-template-columns: 1fr; gap: 8px; }
  .case .head { flex-direction: column; align-items: flex-start; gap: 8px; }

  .timeline .day .slot { grid-template-columns: 80px 1fr; gap: 10px; font-size: 13px; }
  .timeline .day { padding: 16px 0; }

  .cta-block { grid-template-columns: 1fr; padding: 24px 18px; gap: 16px; margin-top: 28px; }

  .footer .row { flex-direction: column; text-align: center; }
}

/* ===== CONTACT PERSON ===== */
.contact-person {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: 24px;
  margin-bottom: 8px;
}
.contact-person-ava {
  width: 56px; height: 56px;
  border-radius: 50%;
  background-color: #ece4cf;
  background-size: cover;
  background-position: center;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; color: var(--gold-dark);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.contact-person-name {
  font-weight: 700; font-size: 16px; color: var(--ink);
}
.contact-person-role {
  font-size: 13px; color: var(--ink-3); margin-top: 2px;
}

/* ===== PEOPLE GRID ===== */
.people-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.person {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.section--cream .person { background: #fff; }
.person:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 14px 30px rgba(26,26,26,0.07);
}
.person-ph {
  width: 72px; height: 72px;
  border-radius: 50%;
  background-color: #ece4cf;
  background-size: cover;
  background-position: center;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 20px; color: var(--gold-dark);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.person-name {
  font-weight: 700; font-size: 16px; color: var(--ink);
  line-height: 1.2;
}
.person-niche {
  font-size: 13px; color: var(--ink-3); line-height: 1.35;
  min-height: 36px;
}
.person-stat {
  font-size: 13px; font-weight: 600; color: var(--gold-dark);
  background: var(--bg-cream);
  padding: 4px 10px;
  border-radius: 100px;
  margin-top: 4px;
}
@media (max-width: 980px) {
  .people-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .person { padding: 18px 14px; }
  .person-ph { width: 60px; height: 60px; font-size: 18px; }
}

/* ===== SLIDER ===== */
.slider { position: relative; margin-top: 32px; }
.slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 16px;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }
.slide-quote {
  flex: 0 0 calc(50% - 8px);
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-height: 180px;
}
.slide-quote p {
  font-size: 16px; line-height: 1.55; color: var(--ink); font-weight: 500;
  margin: 0;
}
.slide-quote .author {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; color: var(--ink);
  justify-content: flex-end;
  flex-direction: row-reverse;
}
.slide-quote .author .ava {
  width: 36px; height: 36px;
  border-radius: 50%;
  background-color: var(--bg-cream);
  background-size: cover;
  background-position: center;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px; color: var(--gold-dark);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.slider-controls {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-top: 22px;
}
.slider-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.slider-btn:hover { border-color: var(--gold); color: var(--gold-dark); }
.slider-dots { display: flex; gap: 8px; }
.slider-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line);
  transition: background 0.15s;
}
.slider-dots span.active { background: var(--gold); }

@media (max-width: 720px) {
  .slide-quote { flex: 0 0 calc(100% - 8px); }
}

/* ===== reveal animation ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
