/* Home page styles — clean rewrite */

/* HERO ------------------------------------------------------------ */
.home-hero {
  padding: 48px 0 56px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: start;
}
.hero-lead {
  font-size: 15px; color: var(--text-muted); margin-bottom: 24px;
  line-height: 1.55; max-width: none;
  padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.hero-h1 {
  font-size: clamp(32px, 3.6vw, 56px);
  line-height: 1.08; letter-spacing: -0.03em;
  font-weight: 500; margin: 0;
  max-width: 20ch;
}
.hero-h1 em { font-style: normal; color: var(--accent); }
.hero-sub {
  font-size: 18px; line-height: 1.5; color: var(--ink-2);
  margin-top: 20px; max-width: 48ch;
}
.hero-sub__lead { margin: 0; }
.hero-sub__checks {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-sub__checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
}
.hero-sub__checks .check-ico {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--text-muted);
}
.hero-actions {
  display: flex; gap: 16px; align-items: center;
  margin-top: 32px;
}
.hero-sidebar {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 28px 28px 24px;
  display: flex; flex-direction: column; gap: 20px;
}
.hero-sidebar .sidebar-title {
  font-size: 18px; letter-spacing: -0.01em; font-weight: 500;
  line-height: 1.2; margin: 0;
}
.sidebar-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0;
}
.sidebar-list li {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0; border-bottom: 1px dashed var(--border);
  font-size: 14px;
}
.sidebar-list li:last-child { border-bottom: 0; }
.sidebar-list li span { color: var(--text-muted); }
.sidebar-list li b { font-weight: 500; font-variant-numeric: tabular-nums; }
.sidebar-cta {
  margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--border);
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-sidebar { max-width: 420px; }
}

/* TRUST BAR ------------------------------------------------------- */
.trust-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  margin-top: 48px;
  padding-top: 8px;
}
.trust-cell {
  padding: 20px 20px 20px 0;
}
.trust-val {
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 500; letter-spacing: -0.03em;
  line-height: 1; font-variant-numeric: tabular-nums;
}
.trust-val small { font-size: 0.5em; color: var(--accent); vertical-align: super; margin-left: 1px; }
.trust-lbl { font-size: 13px; color: var(--text-muted); margin-top: 8px; line-height: 1.4; }
@media (max-width: 700px) {
  .trust-bar { grid-template-columns: repeat(2, 1fr); }
}

/* PROPOSITION (Сайт+SEO) ----------------------------------------- */
.proposition {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
.prop-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start;
}
.prop-eyebrow {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 500; color: var(--accent); margin-bottom: 16px;
}
.prop-h2 {
  font-size: clamp(26px, 2.8vw, 42px);
  line-height: 1.08; letter-spacing: -0.025em; font-weight: 500;
  margin: 0;
}
.prop-desc {
  font-size: 16px; line-height: 1.6; color: var(--ink-2);
  margin-top: 16px; max-width: 48ch;
}
.prop-points {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: flex; flex-direction: column; gap: 0;
}
.prop-points li {
  padding: 12px 0; border-bottom: 1px solid var(--border);
  font-size: 15px; display: flex; gap: 12px; align-items: baseline;
}
.prop-points li:first-child { border-top: 1px solid var(--border); }
.prop-points .pp-num {
  font-size: 12px; color: var(--text-muted);
  min-width: 22px; font-variant-numeric: tabular-nums;
}
.prop-card {
  background: var(--ink); color: white; padding: 32px;
  display: flex; flex-direction: column; gap: 24px;
}
.pc-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.15);
  font-size: 14px; color: rgba(255,255,255,.7);
}
.pc-row:last-child { border-bottom: 0; }
.pc-row b { color: white; font-weight: 500; font-size: 18px; font-variant-numeric: tabular-nums; }
.pc-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15);
}
.pc-foot span { font-size: 13px; color: rgba(255,255,255,.5); }
.btn-white { background: white; color: var(--ink); border-color: white; text-align: center; justify-content: center; }
.btn-white:hover { background: var(--accent); color: white; border-color: var(--accent); }
@media (max-width: 900px) {
  .prop-grid { grid-template-columns: 1fr; }
  .prop-card { max-width: 480px; }
}

/* SERVICES -------------------------------------------------------- */
.services-sec {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
.services-sec h2 {
  font-size: clamp(24px, 2.4vw, 36px);
  letter-spacing: -0.02em; font-weight: 500; margin-bottom: 32px;
}
.srv-list {
  list-style: none; padding: 0; margin: 0;
  border-top: 1px solid var(--ink);
}
.srv-item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 20px; align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
}
.srv-item:hover .srv-info .srv-title { color: var(--accent); }
.srv-num { font-size: 13px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.srv-info .srv-title { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; margin: 0; }
.srv-info p { font-size: 14px; color: var(--text-muted); margin-top: 4px; line-height: 1.5; max-width: 56ch; }
.srv-info .srv-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.srv-info .srv-tags span {
  font-size: 11px; padding: 3px 8px;
  border: 1px solid var(--border); color: var(--text-muted);
}
.srv-price-col {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 10px;
}
.srv-price {
  font-size: 15px; font-weight: 500; text-align: right;
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.srv-price small { display: block; font-size: 12px; color: var(--text-muted); font-weight: 400; }
.srv-title-link { color: inherit; text-decoration: none; }
.srv-title-link:hover { color: var(--accent); }
.srv-order {
  font-size: 13px; padding: 8px 16px; line-height: 1.1;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .srv-item { grid-template-columns: 1fr; gap: 6px; }
  .srv-num { display: none; }
  .srv-price-col { align-items: flex-start; }
  .srv-price { text-align: left; }
  .srv-order { align-self: flex-start; }
}

/* VERTICALS ------------------------------------------------------- */
.vert-sec {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
.vert-sec h2 {
  font-size: clamp(24px, 2.4vw, 36px);
  letter-spacing: -0.02em; font-weight: 500;
}
.vert-sec .lead { margin-top: 12px; margin-bottom: 32px; max-width: none; }
.vert-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; list-style: none; padding: 0; margin: 0;
}
.vert-card {
  display: flex; flex-direction: column;
  padding: 22px 20px;
  border: 1px solid var(--border); background: var(--bg-elevated);
  text-decoration: none; color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}
.vert-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.vert-card .vc-num { font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; margin-bottom: 12px; }
.vert-card .vc-ttl { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.vert-card .vc-desc { font-size: 13px; color: var(--text-muted); margin-top: 6px; line-height: 1.5; flex: 1; }
.vert-card .vc-foot { font-size: 13px; color: var(--accent); margin-top: 14px; font-weight: 500; }
@media (max-width: 1000px) { .vert-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .vert-row { grid-template-columns: 1fr; } }

/* PROCESS --------------------------------------------------------- */
.process-sec {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
.process-sec h2 {
  font-size: clamp(24px, 2.4vw, 36px);
  letter-spacing: -0.02em; font-weight: 500; margin-bottom: 32px;
}
.steps-row {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  border-top: 1px solid var(--ink);
  padding-top: 8px;
  list-style: none; padding-left: 0; margin: 0;
}
.step {
  padding: 20px 20px 20px 0;
}
.step:last-child { padding-right: 0; }
.step-num { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.step .step-ttl { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; margin-top: 4px; line-height: 1.2; }
.step p { font-size: 13.5px; color: var(--text-muted); margin-top: 6px; line-height: 1.5; }
@media (max-width: 900px) {
  .steps-row { grid-template-columns: 1fr; }
  .step { padding: 16px 0; border-bottom: 1px solid var(--border); }
}

/* CASES ----------------------------------------------------------- */
.cases-sec {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
.cases-sec h2 {
  font-size: clamp(24px, 2.4vw, 36px);
  letter-spacing: -0.02em; font-weight: 500; margin-bottom: 32px;
}
.cases-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  list-style: none; padding: 0; margin: 0;
}
.case-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.case-card > a.case-link {
  display: flex; flex-direction: column; gap: 14px;
  color: inherit; text-decoration: none; min-width: 0;
}
.case-thumb {
  aspect-ratio: 16/10; position: relative; overflow: hidden;
  border: 1px solid var(--border);
  width: 100%;
}
.case-thumb-1 { background: linear-gradient(135deg, #0F1B3D, #0337FE); }
.case-thumb-2 { background: #F4F2EC; }
.case-thumb-3 { background: #0A0A0A; }
.case-inner {
  position: absolute; inset: 14% 10% 10% 10%;
  background: rgba(255,255,255,.92);
  box-shadow: 0 12px 32px -10px rgba(0,0,0,.2);
}
.case-thumb-3 .case-inner { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.case-label { font-size: 12px; color: var(--text-muted); }
.case-ttl { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.case-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }
@media (max-width: 800px) { .cases-grid { grid-template-columns: 1fr; } }

/* FAQ wrapper (используется FAQ-компонентом — повторяем правило из pages.css,
   чтобы секция FAQ на главной имела отступы и верхнюю границу). */
.srv-section { padding: 48px 0; border-top: 1px solid var(--border); }
.srv-section h2 {
  font-size: clamp(24px, 2.4vw, 36px);
  letter-spacing: -0.02em; font-weight: 500; margin-bottom: 24px;
}

/* OFFERS «Что мы предлагаем» ------------------------------------- */
.offers-sec {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}
.offers-sec .seo-eyebrow { color: var(--accent); }
.offers-sec .seo-head h2 {
  font-size: clamp(24px, 2.6vw, 38px);
  letter-spacing: -0.02em;
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
}
.offers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 64px;
  row-gap: 48px;
}
.offer-card {
  position: relative;
  padding-right: 16px;
}
.offer-card .offer-ttl {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--ink);
  line-height: 1.2;
}
.offer-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
  max-width: 56ch;
}
/* dashed vertical divider between the two columns */
.offers-grid > .offer-card:nth-child(odd)::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  right: -32px;
  width: 1px;
  border-right: 1px dashed var(--border-strong);
}
@media (max-width: 800px) {
  .offers-grid { grid-template-columns: 1fr; column-gap: 0; row-gap: 28px; }
  .offers-grid > .offer-card::after { display: none; }
  .offer-card { padding-right: 0; }
}

/* BRIEF FORM SECTION (inline) ------------------------------------- */
.brief-sec {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
.brief-sec .brief-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 36px 32px;
  border: 1px solid var(--ink);
}
@media (max-width: 700px) {
  .brief-sec { padding: 40px 0; }
  .brief-sec .brief-card { padding: 28px 22px 24px; }
}

/* CTA ------------------------------------------------------------- */
.cta-sec {
  background: var(--ink); color: white;
  padding: 56px 0;
  margin-top: 56px;
}
.cta-inner {
  display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: end;
}
.cta-inner .cta-h2 {
  color: white;
  font-size: clamp(28px, 3.4vw, 48px);
  letter-spacing: -0.025em; font-weight: 500;
  line-height: var(--lh-h); margin: 0;
}
.cta-inner p { color: rgba(255,255,255,.65); margin-top: 12px; }
.cta-right { display: flex; flex-direction: column; gap: 12px; align-items: stretch; min-width: 200px; }
.cta-right a.link-on-dark { font-size: 15px; }
@media (max-width: 760px) { .cta-inner { grid-template-columns: 1fr; gap: 28px; } }

/* SEO content blocks — editorial 2-column text sections ----------- */
.seo-block {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.seo-block.on-soft {
  background: var(--bg-soft);
}
.seo-block__intro {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: none;
  margin: 0 0 32px;
}
.seo-block__intro:last-child { margin-bottom: 0; }
.seo-block__intro p { margin: 0 0 12px; }
.seo-block__intro p:last-child { margin-bottom: 0; }
.seo-block__intro a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.seo-block .seo-grid + .seo-grid { margin-top: 56px; }
.seo-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 56px;
  align-items: start;
}
.seo-head h2 {
  font-size: clamp(22px, 2.2vw, 32px);
  letter-spacing: -0.02em;
  font-weight: 500;
  line-height: 1.15;
  max-width: 14ch;
  margin: 0;
}
.seo-head .seo-eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 12px;
}
.seo-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.seo-body p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 68ch;
  margin: 0;
}
.seo-body ul,
.seo-body ol {
  margin: 4px 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.seo-body ul li,
.seo-body ol li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  padding: 10px 0 10px 24px;
  border-bottom: 1px dashed var(--border);
  position: relative;
}
.seo-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 14px;
  height: 14px;
  background-color: var(--accent);
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M4 10.5l4 4 8-9' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M4 10.5l4 4 8-9' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.seo-body ol { counter-reset: seo-ol; }
.seo-body ol li::before {
  counter-increment: seo-ol;
  content: counter(seo-ol, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 10px;
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.seo-body ol li { padding-left: 32px; }
.seo-body li:last-child { border-bottom: 0; }
.seo-body strong { font-weight: 500; color: var(--ink); }
.seo-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.seo-body a:hover { text-decoration: none; }
.seo-body br + br { display: none; }
.seo-body li p { margin: 0; display: inline; }

@media (max-width: 900px) {
  .seo-grid { grid-template-columns: 1fr; gap: 24px; }
  .seo-head h2 { max-width: none; }
  .seo-block__intro { margin-bottom: 32px; }
}
