*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --white:  #ffffff;
  --off:    #f8f9fc;
  --off2:   #eef0f8;
  --border: #e3e6f0;
  --blue:   #1a56db;
  --blue-h: #0f3da0;
  --blue-l: #ebf0ff;
  --ink:    #0d1224;
  --ink2:   #2c344f;
  --muted:  #6b7494;
  --muted2: #a8aec8;
  --green:  #12b76a;
  --amber:  #f59e0b;
  --r: 10px;
}

body {
  background: var(--white);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── UTILS ── */
.container { max-width: 1060px; margin: 0 auto; padding: 0 24px; }
.serif { font-family: 'Playfair Display', serif; }
.tag {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--muted); background: var(--off);
  letter-spacing: 0.02em;
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1060px; margin: 0 auto; padding: 0 24px;
  height: 58px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 19px; font-weight: 700; color: var(--ink);
  text-decoration: none;
}
.nav-logo span { color: var(--blue); }
.nav-links {
  display: flex; align-items: center; gap: 28px;
}
.nav-links a {
  font-size: 13px; font-weight: 500; color: var(--muted);
  text-decoration: none; transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--blue); color: #fff !important;
  font-size: 13px !important; font-weight: 600 !important;
  padding: 9px 20px; border-radius: 7px;
  transition: background .2s, transform .2s !important;
}
.nav-cta:hover { background: var(--blue-h) !important; transform: translateY(-1px); }

/* ── HERO ── */
.hero {
  padding: 72px 0 64px;
  position: relative; overflow: hidden;
}
.hero-glow {
  position: absolute; top: -100px; right: -150px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(26,86,219,.07) 0%, transparent 68%);
  pointer-events: none;
}

.hero-layout {
  display: grid; grid-template-columns: 1fr 380px;
  gap: 64px; align-items: center;
}
@media(max-width:840px){ .hero-layout { grid-template-columns: 1fr; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-l); border: 1px solid rgba(26,86,219,.2);
  border-radius: 20px; padding: 5px 14px;
  font-size: 12px; font-weight: 600; color: var(--blue);
  letter-spacing: .04em; margin-bottom: 24px;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100%{ opacity:1; transform:scale(1); }
  50%{ opacity:.4; transform:scale(1.4); }
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 5.5vw, 62px);
  font-weight: 900; line-height: 1.06;
  letter-spacing: -.03em; color: var(--ink);
  margin-bottom: 20px;
}
.hero h1 em { font-style: italic; color: var(--blue); display: block; }

.hero-sub {
  font-size: 17px; font-weight: 400; color: var(--ink2);
  max-width: 480px; line-height: 1.7; margin-bottom: 12px;
}

/* positioning statement */
.hero-position {
  font-size: 14px; color: var(--muted); font-style: italic;
  padding-left: 16px; border-left: 2px solid var(--border);
  margin-bottom: 32px; line-height: 1.6;
}
.hero-position strong { color: var(--ink2); font-style: normal; font-weight: 600; }

/* ICP chips */
.hero-icp {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px;
}
.icp-label { font-size: 12px; color: var(--muted); align-self: center; margin-right: 4px; }

.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 600;
  padding: 15px 30px; border-radius: 8px;
  text-decoration: none; letter-spacing: .01em;
  box-shadow: 0 4px 20px rgba(26,86,219,.28);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-primary:hover {
  background: var(--blue-h); transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(26,86,219,.38);
}
.btn-ghost {
  font-size: 14px; font-weight: 500; color: var(--muted);
  text-decoration: none; transition: color .2s;
  display: flex; align-items: center; gap: 6px;
}
.btn-ghost:hover { color: var(--ink); }

/* hero right card */
.hero-card {
  background: var(--off); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.hero-card-title {
  font-size: 12px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .1em;
}
.hc-stat {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: box-shadow .2s, transform .2s;
}
.hc-stat:hover { box-shadow: 0 4px 16px rgba(13,18,36,.07); transform: translateY(-2px); }
.hc-left { display: flex; flex-direction: column; gap: 2px; }
.hc-val {
  font-family: 'Playfair Display', serif;
  font-size: 26px; font-weight: 700; line-height: 1;
  letter-spacing: -.02em;
}
.hc-lbl { font-size: 11px; color: var(--muted); }
.hc-badge {
  font-size: 10px; font-weight: 600; padding: 3px 9px;
  border-radius: 20px; white-space: nowrap;
}
.hc-blue  { color: var(--blue);  background: var(--blue-l); }
.hc-green { color: var(--green); background: #f0fdf6; }
.hc-amber { color: var(--amber); background: #fffbeb; }

/* ── PROBLEM ── */
.problem {
  padding: 72px 0;
  background: var(--ink);
  color: #fff;
}
.sec-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 14px;
}
.sec-label-light { color: rgba(255,255,255,.4); }
.sec-label-blue  { color: var(--blue); }

.problem h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px,3.8vw,40px);
  font-weight: 700; line-height: 1.2;
  margin-bottom: 40px; max-width: 520px;
}
.problem h2 em { font-style: italic; color: #6b9fff; }

.prob-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 1px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px; overflow: hidden;
}
.prob-item {
  background: rgba(255,255,255,.03);
  padding: 24px 20px;
}
.prob-icon { font-size: 22px; margin-bottom: 12px; display: block; }
.prob-item h3 { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.prob-item p  { font-size: 13px; color: rgba(255,255,255,.45); line-height: 1.6; }

/* differentiation bar */
.diff-bar {
  margin-top: 40px; padding: 20px 24px;
  background: rgba(26,86,219,.2);
  border: 1px solid rgba(26,86,219,.35);
  border-radius: 10px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.diff-bar p {
  font-size: 14px; color: rgba(255,255,255,.85); line-height: 1.5; flex: 1;
}
.diff-bar p strong { color: #fff; }

/* ── HOW ── */
.how { padding: 88px 0; background: var(--off); }

.sec-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px,3.8vw,40px);
  font-weight: 700; line-height: 1.2; color: var(--ink);
  margin-bottom: 10px;
}
.sec-sub {
  font-size: 15px; color: var(--muted); font-weight: 400;
  max-width: 460px; margin-bottom: 48px; line-height: 1.65;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 16px;
}
.step {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); padding: 24px 20px;
  transition: box-shadow .25s, transform .25s;
}
.step:hover { box-shadow: 0 8px 28px rgba(13,18,36,.08); transform: translateY(-3px); }
.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 40px; font-weight: 900;
  color: var(--off2); line-height: 1; margin-bottom: 14px;
}
.step h3 { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.step p  { font-size: 13px; color: var(--muted); line-height: 1.6; }
.step-chip {
  display: inline-block; margin-top: 12px;
  background: var(--blue-l); color: var(--blue);
  font-size: 10px; font-weight: 700; padding: 3px 10px;
  border-radius: 20px; letter-spacing: .04em; text-transform: uppercase;
}

/* ── CASES ── */
.cases { padding: 88px 0; background: var(--white); }

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 18px; margin-top: 48px;
}

.case-card {
  border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column;
  cursor: default;
  transition: box-shadow .25s, transform .25s;
}
.case-card:hover { box-shadow: 0 12px 40px rgba(13,18,36,.09); transform: translateY(-4px); }

.case-accent { height: 3px; }
.c1 .case-accent { background: var(--blue); }
.c2 .case-accent { background: var(--green); }
.c3 .case-accent { background: var(--amber); }
.c4 .case-accent { background: #8b5cf6; }
.c4 .case-hero-num { color: #8b5cf6; }
.c4 .cstat-val { color: #8b5cf6; }
.c5 .case-accent { background: #06b6d4; }
.c5 .case-hero-num { color: #06b6d4; }
.c5 .cstat-val { color: #06b6d4; }
.c6 .case-accent { background: #0ea5e9; }
.c6 .case-hero-num { color: #0ea5e9; }
.c6 .cstat-val { color: #0ea5e9; }

.case-body { padding: 22px; flex:1; display:flex; flex-direction:column; gap:14px; }

.case-tags { display:flex; gap:6px; flex-wrap:wrap; }

/* BIG number first */
.case-hero-num {
  font-family: 'Playfair Display', serif;
  font-size: 52px; font-weight: 900; line-height: 1;
  letter-spacing: -.03em;
}
.c1 .case-hero-num { color: var(--blue); }
.c2 .case-hero-num { color: var(--green); }
.c3 .case-hero-num { color: var(--amber); }

.case-hero-label {
  font-size: 13px; color: var(--muted); margin-top: 2px;
}

.case-title {
  font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.4;
}

.case-mini-stats {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.cms {
  background: var(--off); border-radius: 6px;
  padding: 6px 10px; font-size: 12px; color: var(--ink2);
}
.cms span { color: var(--muted); font-size: 11px; display: block; }

.case-context {
  font-size: 13px; color: var(--muted); line-height: 1.6;
}

/* before/after */
.ba-toggle { display:flex; gap:6px; }
.ba-btn {
  font-size: 11px; font-weight: 600; padding: 4px 12px;
  border-radius: 20px; border: 1px solid var(--border);
  background: transparent; color: var(--muted); cursor: pointer;
  transition: all .18s;
}
.ba-btn.active { background: var(--amber); border-color: var(--amber); color: #fff; }
.ba-content { display:none; flex-direction:column; gap:4px; }
.ba-content.active { display:flex; }
.ba-row { display:flex; gap:7px; font-size:12px; color:var(--muted); line-height:1.5; }
.ba-x { color:#f87171; flex-shrink:0; }
.ba-v { color:var(--green); flex-shrink:0; }

.case-insight {
  margin-top:auto; padding-top:14px; border-top:1px solid var(--border);
  font-size:12px; color:var(--muted); font-style:italic; line-height:1.6;
}

/* ── ABOUT ── */
.about { padding: 88px 0; background: var(--off); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 60px; align-items: center;
}
@media(max-width:700px){ .about-grid { grid-template-columns:1fr; gap:36px; } }


/* grid texture */


.photo-badge {
  position: absolute; bottom: -12px; right: -12px;
  background: var(--blue); color: #fff;
  border-radius: 12px; padding: 12px 16px; text-align: center;
  box-shadow: 0 8px 24px rgba(26,86,219,.32);
  border: 3px solid var(--white);
}
.photo-badge-num {
  font-family: 'Playfair Display', serif;
  font-size: 24px; font-weight: 700; line-height: 1;
}
.photo-badge-lbl { font-size: 10px; opacity: .8; margin-top: 2px; }

.about-content {}
.about-content .sec-label-blue { margin-bottom: 10px; }
.about-content .sec-title { margin-bottom: 18px; }
.about-text { font-size: 14px; color: var(--ink2); line-height: 1.75; margin-bottom: 14px; }

.about-principles {
  list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 20px;
}
.about-principles li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--ink2); line-height: 1.5;
}
.ap-arrow { color: var(--blue); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* social proof strip */
.trust-strip {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px;
}
.trust-chip {
  display: flex; align-items: center; gap: 7px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 8px; padding: 9px 13px;
  font-size: 12px; font-weight: 500; color: var(--ink2);
}
.trust-chip span { font-size: 15px; }

/* ── BRIEF ── */
.brief-section { padding: 88px 0; background: var(--white); }

.brief-wrap {
  max-width: 640px; margin: 0 auto;
  background: var(--off); border: 1px solid var(--border);
  border-radius: 20px; padding: 48px 44px;
}
@media(max-width:560px){ .brief-wrap { padding: 28px 18px; } }

.brief-header { text-align: center; margin-bottom: 32px; }
.brief-header .sec-title { margin-bottom: 8px; }
.brief-header p { font-size: 14px; color: var(--muted); font-weight: 400; line-height: 1.65; }

/* 2-step form */
.form-step { display: none; }
.form-step.active { display: block; }

.form-progress {
  display: flex; gap: 8px; align-items: center; justify-content: center;
  margin-bottom: 28px;
}
.fp-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); transition: background .3s;
}
.fp-dot.done { background: var(--blue); }
.fp-line {
  flex: 1; max-width: 60px; height: 1px; background: var(--border);
  transition: background .3s;
}
.fp-line.done { background: var(--blue); }

.field { margin-bottom: 14px; }
label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--ink2); margin-bottom: 5px; letter-spacing: .02em;
}
input, select, textarea {
  width: 100%; font-family: 'DM Sans', sans-serif;
  font-size: 14px; color: var(--ink);
  background: var(--white); border: 1px solid var(--border);
  border-radius: 9px; padding: 13px 16px;
  transition: border-color .2s, box-shadow .2s;
  outline: none; appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,86,219,.1);
}
textarea { resize: vertical; min-height: 80px; line-height: 1.5; }

.btn-step {
  width: 100%; background: var(--blue); color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 600;
  padding: 15px; border-radius: 8px; border: none;
  cursor: pointer; letter-spacing: .01em;
  box-shadow: 0 4px 18px rgba(26,86,219,.25);
  transition: background .2s, transform .2s, box-shadow .2s;
  margin-top: 4px;
}
.btn-step:hover {
  background: var(--blue-h); transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(26,86,219,.35);
}
.btn-back {
  background: none; border: none; color: var(--muted);
  font-size: 13px; cursor: pointer; padding: 8px 0;
  display: flex; align-items: center; gap: 6px;
  transition: color .2s;
}
.btn-back:hover { color: var(--ink); }

.form-note { text-align:center; margin-top:12px; font-size:12px; color:var(--muted2); }

.thank-you {
  display:none; text-align:center; padding:12px 0;
}
.ty-icon { font-size:48px; margin-bottom:14px; }
.ty-title {
  font-family:'Playfair Display',serif;
  font-size:24px; font-weight:700; color:var(--ink); margin-bottom:8px;
}
.ty-sub { font-size:14px; color:var(--muted); line-height:1.6; }

/* ── FAQ ── */
.faq { padding: 72px 0; background: var(--off); }
.faq-list { max-width:640px; margin-top:40px; }
.faq-item { border-bottom:1px solid var(--border); }
.faq-q {
  width:100%; background:none; border:none; text-align:left;
  cursor:pointer; display:flex; justify-content:space-between; align-items:center;
  padding:18px 0; gap:16px;
  font-family:'DM Sans',sans-serif;
  font-size:14px; font-weight:600; color:var(--ink);
  transition:color .2s;
}
.faq-q:hover { color:var(--blue); }
.faq-icon {
  flex-shrink:0; width:20px; height:20px;
  border-radius:50%; border:1.5px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  font-size:13px; color:var(--muted);
  transition:transform .25s, background .2s;
}
.faq-item.open .faq-icon { transform:rotate(45deg); background:var(--blue); border-color:var(--blue); color:#fff; }
.faq-a { max-height:0; overflow:hidden; transition:max-height .3s ease, padding .3s; }
.faq-item.open .faq-a { max-height:180px; padding-bottom:16px; }
.faq-a p { font-size:13px; color:var(--muted); line-height:1.7; }

/* ── FOOTER ── */
footer {
  padding:28px 0; border-top:1px solid var(--border);
  background:var(--white);
}
.footer-inner {
  max-width:1060px; margin:0 auto; padding:0 24px;
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px;
}
.footer-logo {
  font-family:'Playfair Display',serif;
  font-size:17px; font-weight:700; color:var(--ink); text-decoration:none;
}
.footer-logo span { color:var(--blue); }
.footer-links { display:flex; gap:20px; align-items:center; }
.footer-links a {
  font-size:13px; color:var(--muted); text-decoration:none; transition:color .2s;
}
.footer-links a:hover { color:var(--ink); }
.footer-copy { font-size:12px; color:var(--muted2); }


/* ── CASE ILLUSTRATIONS ── */
.case-illustration {
  height: 120px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  border-radius: 10px; margin-bottom: 14px;
  background: var(--off);
}
.case-illustration svg {
  width: 100%; height: 100%;
  position: absolute; inset: 0;
}
.case-illustration .ill-icon {
  font-size: 36px; position: relative; z-index: 2;
  animation: floatIcon 3s ease-in-out infinite;
}
@keyframes floatIcon {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ── HOVER EFFECTS ── */
.case-card {
  transition: box-shadow .3s, transform .3s;
  position: relative; overflow: hidden;
}
.case-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.04) 100%);
  opacity: 0; transition: opacity .3s;
  pointer-events: none;
}
.case-card:hover::after { opacity: 1; }
.case-card:hover .case-hero-num {
  transform: scale(1.06);
  transition: transform .3s ease;
}
.case-hero-num { display: inline-block; transition: transform .3s ease; }

/* shimmer on accent line */
.case-accent {
  position: relative; overflow: hidden;
}
.case-accent::after {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  animation: shimmer 2.5s infinite;
}
@keyframes shimmer {
  0%   { left: -60%; }
  100% { left: 160%; }
}

/* ── COUNTER ANIMATION ── */
.counter { display: inline-block; }

/* ── STICKY MOBILE CTA ── */
.sticky-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
  padding: 12px 16px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(13,18,36,.08);
}
.sticky-cta a {
  display: block; width: 100%; text-align: center;
  background: var(--blue); color: #fff;
  font-size: 15px; font-weight: 600;
  padding: 14px; border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(26,86,219,.28);
}
@media(max-width:640px){
  .sticky-cta { display: block; }
  body { padding-bottom: 72px; }
  .nav-links { display: none; }
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }

/* ── VALIDATION ── */
.req-star { color: var(--blue); font-size: 12px; }
.field-error {
  display: block; font-size: 12px; color: #e53e3e;
  margin-top: 4px; min-height: 16px;
  opacity: 0; transform: translateY(-4px);
  transition: opacity .2s, transform .2s;
}
.field-error.visible { opacity: 1; transform: translateY(0); }
input.invalid, select.invalid, textarea.invalid {
  border-color: #e53e3e !important;
  box-shadow: 0 0 0 3px rgba(229,62,62,.1) !important;
}
input.valid { border-color: var(--green) !important; }
/* ===== ABOUT PHOTO FINAL FIX ===== */

.photo-wrap{
    width:100%;
    display:flex;
    justify-content:center;
    position:relative;
}

.photo-box{
    width:100%;
    max-width:380px;
    aspect-ratio:4/5;
    height:auto;

    overflow:hidden;

    border-radius:20px;

    position:relative;

    background:#f3f4f6;
}

/* отключаем старый overlay */
.photo-box::before{
    display:none !important;
}

.about-photo{
    width:100% !important;
    height:100% !important;

    display:block;

    object-fit:cover !important;
    object-position:center top;

    max-width:none !important;
    max-height:none !important;
}

/* MOBILE */

@media(max-width:768px){

    .photo-box{
        max-width:300px;
        height:400px;
    }

}

@media(max-width:480px){

    .photo-box{
        max-width:260px;
        height:340px;
    }

}