:root {
  --bg: #f4f1eb;
  --soft: #ebe5da;
  --dark: #141414;
  --text: #1e1e1e;
  --muted: #6b655c;
  --line: rgba(20,20,20,.14);
  --white: #ffffff;
  --accent: #b58b55;
  --accent-dark: #8a683b;
  --radius: 28px;
  --shadow: 0 24px 60px rgba(0,0,0,.16);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
button, input, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 5vw;
  color: var(--text);
  transition: background .25s ease, color .25s ease, padding .25s ease, backdrop-filter .25s ease;
}
.site-header.scrolled {
  background: rgba(20,20,20,.88);
  color: var(--white);
  backdrop-filter: blur(16px);
  padding-block: 14px;
}
.brand {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 800;
}
.nav { display: flex; gap: 26px; align-items: center; font-size: 13px; letter-spacing: .04em; }
.nav button, .footer button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: inherit;
}
.nav button { opacity: .86; }
.nav button:hover, .footer button:hover { opacity: 1; color: var(--accent); }
.burger { display: none; width: 42px; height: 42px; border: 1px solid rgba(20,20,20,.35); background: transparent; border-radius: 50%; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--text); margin: 5px 10px; transition: background .25s ease; }
.site-header.scrolled .burger { border-color: rgba(255,255,255,.4); }
.site-header.scrolled .burger span { background: var(--white); }

.section { padding: 110px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--dark); color: var(--white); }
.section-head { max-width: 900px; margin-bottom: 46px; }
.section-head h2, .section-title h2, .content h2, .center h2 {
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1;
  margin: 0;
  letter-spacing: -.04em;
}
.section-head .lead {
  margin: 22px 0 8px;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #2e2a24;
}
.section-head p:not(.lead) {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}
.center { text-align: center; max-width: 840px; margin: 0 auto 56px; }

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 90px;
}
.business-hero {
  color: var(--text);
  background:
    radial-gradient(circle at 18% 28%, rgba(255,255,255,.72), transparent 32%),
    linear-gradient(90deg, #d9d4cc 0%, #e8e2d7 45%, #f4f1eb 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(216,210,199,.32) 0%, rgba(244,241,235,.85) 72%),
    radial-gradient(circle at 88% 18%, rgba(181,139,85,.18), transparent 28%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 78px;
  align-items: center;
}
.hero-card {
  min-height: 640px;
  border-radius: 38px;
  overflow: hidden;
  box-shadow: 30px 28px 70px rgba(42,35,26,.18);
}
.hero-card img {
  width: 100%;
  height: 680px;
  object-fit: cover;
  object-position: 35% center;
}
.hero-copy h1 {
  margin: 0 0 28px;
  max-width: 720px;
  color: var(--text);
  font-size: clamp(46px, 5.5vw, 82px);
  line-height: .98;
  letter-spacing: -.055em;
}
.hero-credentials {
  display: inline-flex;
  align-items: center;
  margin: -12px 0 26px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.56);
  border: 1px solid rgba(20,20,20,.1);
  color: #3d3830;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .02em;
}
.hero-expertise { max-width: 760px; margin-bottom: 28px; }
.hero-expertise p { margin: 0 0 16px; font-size: 22px; font-weight: 800; }
.hero-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 34px; }
.hero-lists ul { margin: 0; padding: 0; list-style: none; }
.hero-lists li { position: relative; padding-left: 22px; margin: 10px 0; font-size: 19px; color: #2d2a25; }
.hero-lists li::before { content: ""; position: absolute; left: 0; top: .68em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero-experience {
  max-width: 720px;
  margin: 0 0 34px;
  padding: 24px 26px;
  border-left: 4px solid var(--accent);
  border-radius: 0 20px 20px 0;
  background: rgba(255,255,255,.52);
  color: #3d3830;
  font-size: 21px;
  font-weight: 700;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--accent-dark); }
.btn-dark { background: var(--dark); }
.btn-dark:hover { background: #000; }

.toggle-grid { display: grid; gap: 22px; }
.toggle-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.62);
  box-shadow: 0 18px 44px rgba(0,0,0,.07);
  overflow: hidden;
}
.toggle-card summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(190px, .52fr) 1fr;
  gap: 24px;
  align-items: start;
  padding: 30px 88px 30px 34px;
}
.toggle-card summary::-webkit-details-marker { display: none; }
.toggle-card summary span, .process-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  color: var(--white);
  font-size: 13px;
  letter-spacing: .08em;
  font-weight: 800;
}
.toggle-card summary strong {
  display: block;
  font-size: clamp(25px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -.035em;
}
.toggle-card summary em {
  display: block;
  font-style: normal;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}
.toggle-card summary::after {
  content: "+";
  position: absolute;
  right: 34px;
  top: 30px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
  font-weight: 900;
  font-size: 20px;
  background: rgba(255,255,255,.62);
  transition: transform .25s ease, background .25s ease;
}
.toggle-card[open] summary::after { content: "−"; transform: rotate(180deg); }
.toggle-body { height: 0; overflow: hidden; opacity: 0; transition: height .36s ease, opacity .28s ease; }
.toggle-card[open] .toggle-body { opacity: 1; }
.toggle-inner { padding: 0 34px 34px 130px; }
.toggle-inner table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
.toggle-inner th, .toggle-inner td { text-align: left; vertical-align: top; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.toggle-inner th { width: 42%; color: var(--accent-dark); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; background: #fbfaf7; }
.toggle-inner tr:last-child td { border-bottom: 0; }
.toggle-result { margin: 22px 0 0; padding: 22px 24px; border-left: 4px solid var(--accent); border-radius: 0 18px 18px 0; background: rgba(181,139,85,.1); color: #3d3830; font-size: 18px; }

.process-route {
  position: relative;
  background:
    radial-gradient(circle at 14% 18%, rgba(181,139,85,.16), transparent 24%),
    radial-gradient(circle at 86% 84%, rgba(20,20,20,.05), transparent 28%),
    linear-gradient(180deg, #f7f3ec 0%, #ede6da 100%);
  overflow: hidden;
}
.process-route::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.3), transparent 34%, transparent 66%, rgba(255,255,255,.18)); pointer-events: none; }
.process-route .container { position: relative; z-index: 1; }
.process-intro { max-width: 920px; margin: 22px auto 0; color: var(--muted); font-size: 19px; }
.process-thesis-track { position: relative; max-width: 980px; margin: 0 auto; display: grid; gap: 18px; }
.process-thesis-track::before { content: ""; position: absolute; left: 38px; top: 34px; bottom: 34px; width: 2px; border-radius: 999px; background: linear-gradient(180deg, rgba(181,139,85,.18), rgba(181,139,85,.95), rgba(181,139,85,.18)); }
.process-thesis-card { position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 24px; align-items: start; padding: 26px 30px 26px 0; border-radius: 30px; background: rgba(255,255,255,.72); border: 1px solid rgba(20,20,20,.1); box-shadow: 0 18px 46px rgba(28,23,17,.07); backdrop-filter: blur(10px); overflow: hidden; }
.process-thesis-card::after { content: ""; position: absolute; left: 37px; bottom: -16px; width: 10px; height: 10px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateX(-50%) rotate(45deg); }
.process-thesis-card:last-child::after { display: none; }
.process-thesis-card .process-num { position: relative; z-index: 1; margin-left: 10px; width: 56px; height: 56px; box-shadow: 0 0 0 8px #f0e9de, 0 14px 28px rgba(0,0,0,.12); }
.process-thesis-card h3 { margin: 2px 0 10px; font-size: clamp(24px, 3vw, 36px); line-height: 1; letter-spacing: -.035em; }
.process-thesis-card p { max-width: 760px; margin: 0; color: #474139; font-size: 18px; }
@media (min-width: 981px) { .process-thesis-card:nth-child(even) { margin-left: 72px; } }

.answers { background: var(--bg); }
.faq-grid { max-width: 980px; margin: 0 auto; }
.answer-card summary { grid-template-columns: 72px 1fr; }
.answer-card .toggle-inner { padding-right: 88px; }
.answer-card .toggle-inner p { margin: 0; color: #474139; font-size: 18px; }

.case-accordion { max-width: 980px; margin: 0 auto; }
.case-toggle { background: #202020; border-color: rgba(255,255,255,.08); box-shadow: 0 18px 44px rgba(0,0,0,.2); }
.case-toggle summary span { background: var(--accent); color: var(--white); }
.case-toggle summary strong { color: var(--white); }
.case-toggle summary em { color: rgba(255,255,255,.66); }
.case-toggle summary::after { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.08); color: var(--white); }
.case-toggle .toggle-inner { display: grid; gap: 14px; }
.case-toggle .toggle-inner p { margin: 0; color: rgba(255,255,255,.78); }
.case-toggle .toggle-inner b { color: var(--white); }

.price-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: center; }
.price-card { background: var(--white); border-radius: var(--radius); padding: 44px; box-shadow: var(--shadow); }
.price-card p { margin-top: 0; color: var(--muted); }
.price-card strong { display: block; font-size: clamp(42px, 6vw, 76px); line-height: .95; letter-spacing: -.06em; margin: 12px 0 24px; }
.price-card span { display: block; color: var(--muted); margin-bottom: 28px; }
.price-note { margin: 0 0 28px; color: var(--accent-dark) !important; font-weight: 800; }
.contact-simple { max-width: 880px; }
.contact-links { display: grid; gap: 12px; margin-top: 28px; font-size: 20px; }
.contact-links-large { margin-top: 34px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.contact-links-large a { display: flex; min-height: 86px; align-items: center; padding: 20px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(0,0,0,.07); font-weight: 800; }
.contact-ps { margin-top: 28px; color: var(--muted); font-size: 18px; }
.footer { background: #101010; color: var(--white); padding: 42px 0; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; align-items: center; }
.footer p { color: rgba(255,255,255,.55); margin: 6px 0 0; }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; color: rgba(255,255,255,.72); font-size: 14px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }

@media (max-width: 980px) {
  .burger { display: block; }
  .nav {
    position: fixed;
    top: 74px;
    left: 20px;
    right: 20px;
    display: grid;
    gap: 0;
    padding: 16px;
    border-radius: 22px;
    background: rgba(20,20,20,.96);
    color: var(--white);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
    box-shadow: 0 24px 60px rgba(0,0,0,.28);
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav button { padding: 13px 8px; text-align: left; color: var(--white); }
  .hero-grid, .price-grid { grid-template-columns: 1fr; gap: 38px; }
  .business-hero .hero-card { order: 1; min-height: auto; }
  .business-hero .hero-copy { order: 2; }
  .business-hero .hero-card img { height: 540px; }
  .toggle-card summary { grid-template-columns: 56px 1fr; gap: 16px; }
  .toggle-card summary em { grid-column: 2; }
  .toggle-inner { padding-left: 34px; }
  .contact-links-large { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1180px); }
  .section { padding: 78px 0; }
  .hero { min-height: auto; padding-bottom: 70px; }
  .hero-copy h1 { font-size: 42px; }
  .hero-credentials { font-size: 14px; border-radius: 18px; padding: 10px 14px; }
  .business-hero .hero-card img { height: 430px; }
  .hero-lists { display: block; }
  .hero-lists ul { margin: 0; padding: 0; }
  .hero-lists li { margin: 8px 0; font-size: 16px; }
  .hero-lists ul + ul { margin-top: 0; }
  .hero-experience { font-size: 17px; padding: 18px; }
  .section-head { margin-bottom: 30px; }
  .section-head p:not(.lead), .process-intro { font-size: 16px; }
  .toggle-card summary { grid-template-columns: 46px 1fr; padding: 22px 64px 22px 22px; }
  .toggle-card summary::after { right: 22px; top: 21px; width: 30px; height: 30px; }
  .toggle-card summary span { width: 38px; height: 38px; font-size: 11px; }
  .toggle-card summary strong { font-size: 26px; }
  .toggle-card summary em { grid-column: 1 / -1; font-size: 15px; }
  .toggle-inner { padding: 0 18px 22px; }
  .toggle-inner table, .toggle-inner thead, .toggle-inner tbody, .toggle-inner tr, .toggle-inner th, .toggle-inner td { display: block; width: 100%; }
  .toggle-inner thead { display: none; }
  .toggle-inner table { background: transparent; border: 0; border-radius: 0; }
  .toggle-inner tr { margin-bottom: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
  .toggle-inner td { border: 0; padding: 14px 16px; }
  .toggle-inner td:first-child { background: #fbfaf7; color: var(--accent-dark); font-weight: 800; }
  .toggle-inner td:first-child::before { content: "Что разбираем"; display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; }
  .toggle-inner td:nth-child(2)::before { content: "Планируемый результат"; display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; }
  .toggle-result { margin-top: 16px; padding: 18px; font-size: 15px; }
  .answer-card .toggle-inner, .case-toggle .toggle-inner { padding-right: 18px; }
  .answer-card .toggle-inner p { font-size: 16px; }
  .case-toggle summary strong { font-size: 24px; }
  .process-thesis-track::before { left: 29px; }
  .process-thesis-card { grid-template-columns: 58px 1fr; gap: 16px; padding: 22px 18px 22px 0; border-radius: 22px; }
  .process-thesis-card .process-num { width: 48px; height: 48px; margin-left: 5px; box-shadow: 0 0 0 6px #f0e9de, 0 12px 24px rgba(0,0,0,.1); }
  .process-thesis-card::after { left: 29px; }
  .process-thesis-card h3 { font-size: 22px; }
  .process-thesis-card p { font-size: 15px; }
  .price-card { padding: 26px; }
  .footer-grid { display: grid; }
}


/* Final publishing fixes */
.mastery .section-head h2 {
  margin-bottom: 24px;
}
.contact-links-large a.contact-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  line-height: 1.25;
}
.contact-label {
  display: block;
}
.contact-value {
  display: block;
  white-space: nowrap;
  font-weight: 800;
}
@media (max-width: 980px) {
  .site-header .nav.open,
  .site-header:not(.scrolled) .nav.open,
  .site-header.scrolled .nav.open {
    background: rgba(20,20,20,.97);
    color: var(--white);
  }
  .site-header .nav.open button {
    color: var(--white);
  }
  .business-hero .hero-copy.reveal,
  .business-hero .hero-card.reveal {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 640px) {
  .hero-lists {
    gap: 0;
  }
  .hero-lists ul + ul {
    margin-top: 0 !important;
  }
  .hero-lists ul:first-child li:last-child {
    margin-bottom: 8px;
  }
  .hero-lists ul:nth-child(2) li:first-child {
    margin-top: 8px;
  }
  .contact-links-large a.contact-link {
    min-height: 96px;
  }
}

/* Final content updates */
.business-hero .hero-card img {
  object-position: 38% center;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}
.review-card {
  padding: 34px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(0,0,0,.07);
}
.review-card p {
  margin: 0 0 16px;
  color: #474139;
  font-size: 17px;
}
.review-card strong {
  display: block;
  margin-top: 24px;
  color: var(--accent-dark);
  font-size: 18px;
}
.contact-title {
  font-size: clamp(30px, 3.4vw, 50px) !important;
  text-transform: none;
}
/* Mobile: reviews horizontal slider */
.reviews-slider-outer { overflow: hidden; }
@media (max-width: 980px) {
  .reviews-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    padding-bottom: 6px;
    will-change: transform;
  }
  .review-card {
    flex: 0 0 82%;
  }
}
@media (max-width: 640px) {
  .review-card {
    padding: 24px;
    flex: 0 0 88%;
  }
  .review-card p {
    font-size: 16px;
  }
}

/* Reviews slider dots */
.reviews-dots {
  display: none;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
@media (max-width: 980px) {
  .reviews-dots { display: flex; }
}
.reviews-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(20,20,20,.2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}
.reviews-dot.active {
  background: var(--accent);
  transform: scale(1.35);
}

/* Mobile: fix portrait photo — cut off door handle on the right */
@media (max-width: 980px) {
  .business-hero .hero-card img {
    object-position: 22% center;
  }
}
