/* ==========================================================================
   Система пересборки бизнеса — terekulov.com
   Mobile-first-friendly layout: desktop ≥1024 · tablet 640–1023 · mobile <640
   ========================================================================== */
:root {
  --bg: #ffffff;
  --bg-muted: #f6f6f6;
  --hero-panel: #efefef;
  --ink: #111111;
  --ink-soft: #555555;
  --ink-muted: #7a7a7a;
  --accent: #b42318;
  --line: rgba(0, 0, 0, 0.08);
  --radius-xl: 20px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --gutter: clamp(16px, 2vw, 32px);
  --shell-max: 1760px;
  --shell: min(var(--shell-max), calc(100% - 2 * var(--gutter)));
  --header-h: 72px;
  --gap: clamp(20px, 2vw, 28px);
  --section-y: clamp(64px, 7vw, 112px);
  --card-pad: clamp(18px, 1.8vw, 28px);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; overflow-wrap: break-word; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }


.shell,
.pageCol {
  width: var(--shell);
  max-width: var(--shell);
  margin-inline: auto;
  box-sizing: border-box;
}
.shell.narrow { width: min(860px, calc(100% - 2 * var(--gutter))); }

/* Shared block surface — cases / audience / method / offer / FAQ */
.surface {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}


/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.siteHeader {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.siteHeader .shell {
  width: var(--shell);
  max-width: var(--shell);
}
.headerInner {
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .32em;
  min-height: 44px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  justify-self: start;
}
.brand span { color: var(--accent); }
.brand em { font-style: normal; }
.nav {
  display: flex;
  gap: 4px;
  justify-content: center;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--ink); background: var(--bg-muted); }
.nav .navPhone { display: none; }
.headerActions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}
.iconBtn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink);
  background: #fff;
  transition: background .2s, color .2s, border-color .2s;
}
.iconBtn:hover { background: #111; color: #fff; }
.iconBtn.wa { background: #128C7E; border-color: #128C7E; color: #fff; }
.iconBtn.wa:hover { background: #0e7065; }
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0;
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .2s, opacity .2s;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.siteHeader.isOpen .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.siteHeader.isOpen .burger span:nth-child(2) { opacity: 0; }
.siteHeader.isOpen .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.heroWrap {
  width: var(--shell);
  max-width: var(--shell);
  margin: 12px auto clamp(28px, 4vw, 48px);
  padding-inline: 0;
  box-sizing: border-box;
}
.heroCard {
  width: 100%;
  background: var(--hero-panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  min-height: clamp(480px, 42vw, 580px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
}
.heroPhoto {
  position: relative;
  min-height: 420px;
}
.echo {
  position: absolute;
  inset: 32px 0 0 0;
}
.echoLayer {
  position: absolute;
  bottom: 0;
  left: 56%;
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: bottom center;
}
.echoLayer.e1 { transform: translateX(-50%); z-index: 3; filter: drop-shadow(0 18px 28px rgba(0,0,0,.10)); }
.echoLayer.e2 { transform: translateX(calc(-50% - 13%)); z-index: 2; opacity: .26; filter: grayscale(.2); }
.echoLayer.e3 { transform: translateX(calc(-50% - 26%)); z-index: 1; opacity: .1; filter: grayscale(.3); }

.photoBadge {
  position: absolute;
  z-index: 5;
  left: clamp(16px, 6%, 48px);
  bottom: clamp(16px, 10%, 72px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(40, 40, 40, 0.74);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  max-width: 230px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
}
.badgeDot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.25);
}

.heroCopy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(28px, 4vw, 56px) var(--card-pad);
  gap: 16px;
  min-width: 0;
}
.overline {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.heroCopy h1 {
  font-size: clamp(32px, 4.3vw, 56px);
  font-weight: 800;
  max-width: 13ch;
}
.lead {
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--ink);
  max-width: 40ch;
}
.stats {
  font-size: 14px;
  color: var(--ink-muted);
  font-weight: 500;
}
.pillCta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 56px;
  margin-top: 6px;
  padding: 12px 14px 12px 24px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
  transition: transform .15s ease, background .15s ease;
}
.pillCta:hover { transform: translateY(-1px); background: #000; }
.pillCta .arrow {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  display: grid;
  place-items: center;
  font-size: 15px;
  flex-shrink: 0;
}
.pillCta.invert { background: #fff; color: #111; }
.pillCta.invert:hover { background: #f2f2f2; }
.pillCta.invert .arrow { background: rgba(0,0,0,.07); }
.ctaNote {
  font-size: 13px;
  color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section {
  padding: var(--section-y) 0;
  position: relative;
  z-index: 0;
}
.section + .section { /* clear stack — no collapse into previous */
  margin-top: 0;
}
.section.muted { background: var(--bg-muted); }
.section > .shell {
  width: var(--shell);
  max-width: var(--shell);
  padding-inline: 0;
  box-sizing: border-box;
}
.sectionHead {
  margin-bottom: clamp(20px, 2.5vw, 28px);
  max-width: none;
  width: 100%;
  padding-inline: 0;
}
.sectionHead > * { max-width: min(760px, 52ch); }
/* Outer cards share exact shell edges with hero */
.caseFeature,
.caseGrid,
.situationGrid,
.methodGrid,
.offerCard,
.faqList {
  width: 100%;
  box-sizing: border-box;
}
.sectionHead h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 800;
  margin-top: 8px;
}
.sectionLead {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.3vw, 18px);
}

/* --------------------------------------------------------------------------
   Cases
   -------------------------------------------------------------------------- */
.caseFeature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(20px, 2.4vw, 36px);
  align-items: stretch;
  margin-bottom: clamp(20px, 2.5vw, 32px);
  padding: var(--card-pad);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  width: 100%;
  box-sizing: border-box;
}
/* Screens are pre-framed images: show them whole, at their own ratio */
.frameMedia {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #141210;
  line-height: 0;
  width: 100%;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 14px 34px -18px rgba(0,0,0,.35);
}
.frameMedia img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}
.caseFeature .frameMedia {
  display: grid;
  place-items: center;
  background: #0b0807; /* matches the KazBeef screen edge */
}
.caseBody {
  padding: 4px 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.caseBody .casePoints { align-self: stretch; }
.caseTag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 10px;
}
.caseBody h3, .caseCardBody h3 {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
  margin-bottom: 12px;
}
.caseBody p, .caseCardBody p {
  color: var(--ink-soft);
  margin-bottom: 14px;
  font-size: 15.5px;
}
.casePoints {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.casePoints li {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-muted);
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.casePoints b { color: var(--ink); font-weight: 700; }
.textLink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}
.textLink:hover { text-decoration: underline; text-underline-offset: 3px; }

.caseGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  align-items: stretch;
}
.caseGrid > .caseCard { height: 100%; min-height: 100%; }
.caseCard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: var(--card-pad);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.caseCardBody {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.caseCardBody .textLink { margin-top: auto; align-self: flex-start; }

/* --------------------------------------------------------------------------
   Audience
   -------------------------------------------------------------------------- */
.situationGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  align-items: stretch;
  counter-reset: sit;
}
.situationGrid > article { height: 100%; }
.situationGrid article {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--card-pad);
  padding-left: calc(var(--card-pad) + 44px);
  counter-increment: sit;
}
.situationGrid article::before {
  content: "0" counter(sit);
  position: absolute;
  left: var(--card-pad);
  top: var(--card-pad);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(180, 35, 24, .08);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}
.situationGrid h3 {
  font-size: clamp(17px, 1.5vw, 19px);
  font-weight: 800;
  margin-bottom: 8px;
}
.situationGrid p { color: var(--ink-soft); font-size: 15px; }

/* --------------------------------------------------------------------------
   Method
   -------------------------------------------------------------------------- */
.methodGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  align-items: stretch;
}
.methodGrid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--card-pad);
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}
.stepNum {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(180, 35, 24, .08);
}
.methodGrid h3 { font-size: 19px; font-weight: 800; }
.methodGrid p { font-size: 15px; color: var(--ink-soft); }
.methodGrid .result {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Offer
   -------------------------------------------------------------------------- */
.offerCard {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(20px, 2.4vw, 36px);
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--card-pad);
}
.offerLabel {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 14px;
}
.offerList {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.offerList li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
  font-size: 16px;
}
.offerList li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}
.offerNote { font-size: 14px; color: var(--ink-muted); }
.offerAside {
  background: var(--bg-muted);
  border-radius: var(--radius-lg);
  padding: var(--card-pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
.offerAside p { font-size: clamp(16px, 1.4vw, 18px); font-weight: 600; line-height: 1.45; }
.offerAside .pillCta { align-self: stretch; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faqList { display: grid; gap: 10px; }
.faqList details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0 var(--card-pad);
  transition: border-color .15s;
}
.faqList details[open] { border-color: rgba(0,0,0,.14); }
.faqList summary {
  cursor: pointer;
  list-style: none;
  min-height: 56px;
  padding: 14px 40px 14px 0;
  position: relative;
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
}
.faqList summary::-webkit-details-marker { display: none; }
.faqList summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border-radius: 999px;
  background: var(--bg-muted);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  transition: transform .2s;
}
.faqList details[open] summary::after { transform: rotate(45deg); }
.faqList details p {
  padding: 0 0 18px;
  color: var(--ink-soft);
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */
.final {
  width: var(--shell);
  max-width: var(--shell);
  margin: clamp(28px, 4vw, 48px) auto clamp(40px, 5vw, 64px);
  box-sizing: border-box;
}
.final .finalInner { width: 100%; }
.finalInner {
  background: #111;
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px) var(--card-pad);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 14px;
}
.overline.light { color: #f0a39a; }
.finalInner h2 {
  font-size: clamp(26px, 3.4vw, 42px);
  max-width: 20ch;
}
.finalInner > p { color: rgba(255,255,255,.72); }
.finalPhone { font-size: 14px; color: rgba(255,255,255,.6); }
.finalPhone a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.siteFooter {
  border-top: 1px solid var(--line);
  padding: 24px 0 36px;
}
.footerInner {
  display: flex;
  justify-content: space-between;
  gap: 12px 24px;
  align-items: center;
  flex-wrap: wrap;
}
.footerInner b { display: block; font-size: 15px; }
.footerInner span { color: var(--ink-muted); font-size: 13px; }
.footerLinks { display: flex; gap: 4px 20px; flex-wrap: wrap; }
.footerLinks a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}
.footerLinks a:hover { color: var(--ink); }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Small desktop / large tablet */

@media (min-width: 1280px) {
  .heroCopy h1 { max-width: 14ch; }
  .lead { max-width: 44ch; }
  .caseGrid { gap: var(--gap); }
}

@media (max-width: 1100px) {
  .nav a { padding: 0 9px; font-size: 11px; }
  .methodGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tablet: burger menu, stacked feature case & offer */
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .siteHeader .shell {
  width: var(--shell);
  max-width: var(--shell);
}
.headerInner { grid-template-columns: minmax(0, 1fr) auto; }
  .burger { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -20px rgba(0,0,0,.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s linear .2s;
  }
  .siteHeader.isOpen .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .2s, transform .2s;
  }
  .siteHeader.isOpen { border-bottom-color: var(--line); }
  .nav a {
    min-height: 52px;
    padding: 0 4px;
    border-radius: 0;
    font-size: 14px;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .nav a:hover { background: transparent; color: var(--accent); }
  .nav .navPhone {
    display: inline-flex;
    border-bottom: 0;
    letter-spacing: 0.02em;
    color: var(--accent);
  }

  .caseFeature { grid-template-columns: 1fr; }
  .caseFeature .frameMedia { display: block; }
  .caseBody { padding: 4px 6px 4px; }
  .offerCard { grid-template-columns: 1fr; }
}

@media (min-width: 721px) and (max-width: 900px) {
  .heroCopy { padding-right: 24px; }
  .heroCopy .pillCta { font-size: 14px; padding-left: 20px; gap: 10px; white-space: nowrap; }
}

/* Hero stacks */
@media (max-width: 720px) {
  .heroCard { grid-template-columns: 1fr; min-height: 0; }
  .heroPhoto { min-height: clamp(320px, 78vw, 440px); }
  .echo {
    inset: 24px 0 0 0;
    -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  }
  .echoLayer { left: 58%; }
  .heroCopy {
    padding: 8px clamp(20px, 5vw, 32px) clamp(28px, 6vw, 40px);
  }
  .heroCopy h1 { max-width: 14ch; }
}

/* Mobile */
@media (max-width: 640px) {
  :root { --radius-xl: 26px; --radius-lg: 20px; }
  .brand { font-size: 11px; }
  .iconBtn.phone { display: none; }
  .caseGrid, .situationGrid, .methodGrid { grid-template-columns: 1fr; }
  .methodGrid article { padding: 22px 20px; }
  .pillCta { width: 100%; }
  .heroCopy .pillCta { align-self: stretch; }
  .finalInner .pillCta { max-width: 420px; }
  .footerInner { flex-direction: column; align-items: flex-start; }
  .footerLinks { gap: 0 18px; }
}

@media (max-width: 400px) {
  .photoBadge { font-size: 12px; padding: 10px 12px; max-width: 200px; }
  .badgeDot { width: 18px; height: 18px; box-shadow: inset 0 0 0 4px rgba(255,255,255,.25); }
  .heroCopy h1 { font-size: 31px; }
  .caseBody h3, .caseCardBody h3 { font-size: 20px; }
  .faqList details { padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
