/*
Theme Name: Tolsky Direct / Editorial 2026
Theme URI: https://t.me/btmmm11
Author: Ilya Tolsky
Author URI: https://t.me/btmmm11
Description: Dark editorial WordPress theme for a Yandex Direct specialist. Preserves services, cases, calculator and landing templates.
Version: 3.7.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tolsky
Tags: landing-page, custom-menu, custom-logo, translation-ready
*/

/* ═══════════════════════════════════════════════
   DESIGN DIRECTION: Industrial Editorial
   Concept: Personal brand of a sharp B2B expert.
   Feel: A premium agency built this for a serious professional.
   Palette: Near-black + warm brass gold + off-white
   Type: Unbounded (display) + Manrope (body)
   Layout: Asymmetric, diagonal cuts, intentional whitespace
═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Unbounded:wght@500;600;700&display=swap');

:root {
  --ink:        #0d0e10;
  --ink-soft:   #141618;
  --ink-mid:    #1c1e22;
  --ink-light:  #252830;
  --ink-border: rgba(255,255,255,.08);
  --ink-border2: rgba(255,255,255,.04);

  --brass:      #c8963c;
  --brass-light:#e8b860;
  --brass-pale: rgba(200,150,60,.12);
  --brass-glow: rgba(200,150,60,.06);

  --cream:      #f0ebe2;
  --cream-dim:  #b8b0a2;
  --cream-ghost:#524d46;

  --white:      #ffffff;
  --red-alert:  #c0392b;
  --green-ok:   #1a7a52;
  --green-text: #4db882;

  --ff-display: 'Bebas Neue', 'Arial Black', sans-serif;
  --ff-body:    'IBM Plex Sans', 'Helvetica Neue', sans-serif;
  --ff-mono:    'IBM Plex Mono', 'Courier New', monospace;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;

  --shadow-lg: 0 24px 64px rgba(0,0,0,.6);
  --shadow-btn: 0 6px 28px rgba(200,150,60,.3);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }

body {
  background: var(--ink);
  color: var(--cream-dim);
  font-family: var(--ff-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width:100%; height:auto; display:block; }
a   { color:var(--brass-light); text-decoration:none; transition:opacity .18s; }
a:hover { opacity:.75; }

h1,h2,h3,h4 {
  font-family: var(--ff-display);
  font-weight: 400; /* Bebas has no weight variants */
  letter-spacing: .02em;
  line-height: 1.0;
  color: var(--white);
}

p { color: var(--cream-dim); line-height: 1.75; }
ul { list-style:none; }

/* ── LAYOUT ── */
.container { max-width:1140px; margin:0 auto; padding:0 28px; }
.container--narrow { max-width:860px; margin:0 auto; padding:0 28px; }

/* ── DIAGONAL SECTION DIVIDER ── */
.cut-bottom {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 60px), 0 100%);
  padding-bottom: 80px !important;
}
.cut-top {
  clip-path: polygon(0 60px, 100% 0, 100% 100%, 0 100%);
  margin-top: -60px;
  padding-top: 80px !important;
}

/* ── NOISE TEXTURE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: .025;
  pointer-events: none;
  z-index: 1000;
}

/* ══════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  transition: background .3s, border-color .3s;
}

.site-header.scrolled {
  background: rgba(13,14,16,.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ink-border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-name {
  font-family: var(--ff-display);
  font-size: 22px;
  color: var(--white);
  letter-spacing: .05em;
  line-height: 1;
}

.nav-logo-sep {
  width: 1px;
  height: 16px;
  background: var(--brass);
  opacity: .5;
  flex-shrink: 0;
  align-self: center;
}

.nav-logo-role {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--brass);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--cream-dim);
  text-decoration: none;
  transition: color .18s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transition: transform .25s;
  transform-origin: left;
}

.nav-links a:hover,
.nav-links a.current { color: var(--brass-light); opacity:1; }
.nav-links a:hover::after,
.nav-links a.current::after { transform: scaleX(1); }

.nav-cta-btn {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink) !important;
  background: var(--brass);
  border: none;
  padding: 11px 22px;
  border-radius: var(--r-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background .18s, box-shadow .18s;
  white-space: nowrap;
  opacity: 1 !important;
}
.nav-cta-btn:hover { background: var(--brass-light); box-shadow: var(--shadow-btn); opacity:1 !important; }

.nav-burger {
  display: none;
  position: relative;
  z-index: 1601;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.nav-burger span { display:block; width:24px; height:2px; background:var(--cream-dim); border-radius:1px; transition:.25s; pointer-events:none; }

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn {
  display: inline-block;
  font-family: var(--ff-mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  border-radius: var(--r-sm);
  padding: 16px 32px;
  cursor: pointer;
  border: none;
  transition: background .18s, box-shadow .18s, transform .14s, opacity .18s;
}
.btn:hover { transform: translateY(-2px); opacity:1; }
.btn:active { transform: translateY(0); }

.btn-brass {
  background: var(--brass);
  color: var(--ink);
  box-shadow: var(--shadow-btn);
}
.btn-brass:hover { background: var(--brass-light); box-shadow: 0 10px 36px rgba(200,150,60,.4); }

.btn-outline {
  background: transparent;
  color: var(--cream-dim);
  border: 1px solid rgba(255,255,255,.18);
}
.btn-outline:hover { border-color: var(--brass); color: var(--brass-light); }

.btn-ghost {
  background: rgba(255,255,255,.05);
  color: var(--cream-dim);
  border: 1px solid var(--ink-border);
}
.btn-ghost:hover { background: rgba(255,255,255,.09); }

.btn--lg  { font-size:13px; padding:19px 40px; }
.btn--sm  { font-size:11px; padding:11px 22px; }
.btn--full { display:block; width:100%; }

/* ══════════════════════════════════════════
   LABELS / TAGS
══════════════════════════════════════════ */
.tag {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
}
.tag-brass  { background:var(--brass-pale); color:var(--brass-light); border:1px solid rgba(200,150,60,.2); }
.tag-green  { background:rgba(26,122,82,.15); color:var(--green-text); border:1px solid rgba(77,184,130,.18); }
.tag-white  { background:rgba(255,255,255,.06); color:var(--cream-dim); border:1px solid var(--ink-border); }
.tag-red    { background:rgba(192,57,43,.12); color:#e07060; border:1px solid rgba(192,57,43,.2); }

/* ══════════════════════════════════════════
   SECTION STRUCTURE
══════════════════════════════════════════ */
.sec { padding: 96px 0; }
.sec--sm { padding: 64px 0; }
.sec--lg { padding: 128px 0; }
.sec--dark { background: var(--ink-soft); }
.sec--mid  { background: var(--ink-mid); }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

/* Left panel: deep ink with content */
.hero-left {
  background: var(--ink);
  display: flex;
  align-items: flex-end;
  padding: 120px 64px 80px 64px;
  position: relative;
  z-index: 2;
}

/* Right panel: the photo / visual */
.hero-right {
  position: relative;
  background: var(--ink-soft);
  overflow: hidden;
}

.hero-right-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: grayscale(20%) contrast(1.05);
}

.hero-right-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, var(--ink-mid) 0%, var(--ink) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hero-right-placeholder-letters {
  font-family: var(--ff-display);
  font-size: 140px;
  color: var(--ink-light);
  line-height: 1;
  letter-spacing: .02em;
}

/* Diagonal overlay on right panel */
.hero-right::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: -1px;
  width: 80px;
  background: linear-gradient(to right, var(--ink), transparent);
  z-index: 3;
  pointer-events: none;
}

/* Brass accent bar top */
.hero-right::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brass), var(--brass-light), transparent);
  z-index: 4;
}

/* Grid line decoration on left */
.hero-left::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--brass) 30%, var(--brass) 70%, transparent);
  opacity: .3;
}

/* Large background number */
.hero-bg-number {
  position: absolute;
  bottom: -20px;
  left: -10px;
  font-family: var(--ff-display);
  font-size: 320px;
  line-height: 1;
  color: var(--ink-mid);
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-eyebrow-line {
  width: 40px;
  height: 1px;
  background: var(--brass);
}

.hero-eyebrow-text {
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brass);
}

.hero-h1 {
  font-family: var(--ff-display);
  font-size: clamp(60px, 7vw, 100px);
  line-height: .92;
  color: var(--white);
  margin-bottom: 32px;
  letter-spacing: .02em;
}

.hero-h1 em {
  font-style: normal;
  color: var(--brass-light);
  display: block;
}

.hero-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--cream-dim);
  max-width: 400px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* Stats row inside hero */
.hero-stats {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--ink-border);
  padding-top: 32px;
}

.hero-stat {
  padding-right: 32px;
  margin-right: 32px;
  border-right: 1px solid var(--ink-border);
}
.hero-stat:last-child { border-right:none; margin-right:0; padding-right:0; }

.hero-stat-n {
  font-family: var(--ff-display);
  font-size: 36px;
  color: var(--brass-light);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat-l {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cream-ghost);
}

/* Floating badge on photo */
.hero-badge {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 5;
  background: rgba(13,14,16,.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(200,150,60,.3);
  border-radius: var(--r-md);
  padding: 16px 20px;
  min-width: 200px;
}

.hero-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-text);
  display: inline-block;
  margin-right: 8px;
  animation: breathe 2.5s ease-in-out infinite;
}

@keyframes breathe {
  0%,100% { box-shadow: 0 0 0 0 rgba(77,184,130,.5); }
  50%      { box-shadow: 0 0 0 6px rgba(77,184,130,0); }
}

.hero-badge-status {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.hero-badge-sub {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--cream-ghost);
}

/* Cert strip on right side */
.hero-cert-strip {
  position: absolute;
  top: 40px;
  left: 40px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-cert-item {
  background: rgba(13,14,16,.85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--ink-border);
  border-left: 2px solid var(--brass);
  padding: 6px 12px;
  font-family: var(--ff-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brass-light);
}

/* ══════════════════════════════════════════
   TICKER / MARQUEE
══════════════════════════════════════════ */
.ticker-wrap {
  background: var(--brass);
  overflow: hidden;
  white-space: nowrap;
  padding: 14px 0;
  position: relative;
  z-index: 2;
}

.ticker-track {
  display: inline-flex;
  animation: ticker 22s linear infinite;
}

.ticker-track:hover { animation-play-state: paused; }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker-item {
  font-family: var(--ff-display);
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--ink);
  padding: 0 32px;
}

.ticker-sep {
  color: rgba(13,14,16,.35);
  padding: 0 4px;
}

/* ══════════════════════════════════════════
   ABOUT / PHILOSOPHY SECTION
══════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-overline {
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brass);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.about-overline::before { content:''; display:block; width:32px; height:1px; background:var(--brass); }

.about-h2 {
  font-family: var(--ff-display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: .95;
  color: var(--white);
  margin-bottom: 28px;
}
.about-h2 span { color: var(--brass-light); }

.about-body p {
  font-size: 15px;
  color: var(--cream-dim);
  line-height: 1.8;
  margin-bottom: 18px;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--ink-border);
  border: 1px solid var(--ink-border);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-top: 48px;
}

.af-item {
  background: var(--ink-mid);
  padding: 24px 22px;
  transition: background .2s;
}
.af-item:hover { background: var(--ink-light); }

.af-num {
  font-family: var(--ff-display);
  font-size: 40px;
  color: var(--brass);
  line-height: 1;
  margin-bottom: 8px;
}
.af-label {
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 6px;
}
.af-desc { font-size: 12px; color: var(--cream-ghost); line-height: 1.55; }

/* Certs row */
.cert-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.cert-chip {
  font-family: var(--ff-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid rgba(200,150,60,.25);
  color: var(--brass-light);
  border-radius: 2px;
  background: var(--brass-pale);
}

/* ══════════════════════════════════════════
   CASES SECTION
══════════════════════════════════════════ */
.cases-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
}

.cases-header-left {}
.section-overline {
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brass);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.section-overline::before { content:''; display:block; width:28px; height:1px; background:var(--brass); }

.section-h2 {
  font-family: var(--ff-display);
  font-size: clamp(36px, 4.5vw, 58px);
  color: var(--white);
  line-height: .95;
}
.section-h2 span { color: var(--brass-light); }

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink-border);
  border: 1px solid var(--ink-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.case-item {
  background: var(--ink-soft);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: background .22s;
}

.case-item:hover { background: var(--ink-light); }

.case-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brass), transparent);
  opacity: 0;
  transition: opacity .22s;
}
.case-item:hover::before { opacity:1; }

.case-emo { font-size: 28px; margin-bottom: 16px; }

.case-niche {
  font-family: var(--ff-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cream-ghost);
  margin-bottom: 12px;
}

.case-metric {
  font-family: var(--ff-display);
  font-size: 56px;
  color: var(--brass-light);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: .01em;
}

.case-desc {
  font-size: 13px;
  color: var(--cream-dim);
  line-height: 1.55;
  margin-bottom: 14px;
}

.case-bg-label {
  position: absolute;
  bottom: -8px;
  right: -4px;
  font-family: var(--ff-display);
  font-size: 80px;
  color: var(--ink-mid);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transition: color .22s;
}
.case-item:hover .case-bg-label { color: var(--ink-light); }

/* ══════════════════════════════════════════
   LEAD MAGNET SECTION
══════════════════════════════════════════ */
.lm-section {
  background: var(--ink-soft);
  position: relative;
  overflow: hidden;
}

.lm-section::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,150,60,.05) 0%, transparent 70%);
}

.lm-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 80px;
  align-items: center;
}

.lm-free-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green-text);
  background: rgba(26,122,82,.12);
  border: 1px solid rgba(77,184,130,.2);
  padding: 7px 14px;
  border-radius: 2px;
  margin-bottom: 24px;
}

.lm-h2 {
  font-family: var(--ff-display);
  font-size: clamp(38px, 5vw, 64px);
  color: var(--white);
  line-height: .95;
  margin-bottom: 20px;
}
.lm-h2 span { color: var(--brass-light); }

.lm-body {
  font-size: 15px;
  color: var(--cream-dim);
  line-height: 1.8;
  margin-bottom: 32px;
}

.lm-checklist {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 40px;
}

.lm-check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ink-border2);
}
.lm-check-item:last-child { border-bottom:none; }

.lm-check-icon {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(77,184,130,.15);
  border: 1px solid rgba(77,184,130,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 9px;
  color: var(--green-text);
}

.lm-check-text {
  font-size: 14px;
  color: var(--cream-dim);
  line-height: 1.55;
}

.lm-urgency {
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #e07060;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Contact card */
.contact-block {
  background: var(--ink-mid);
  border: 1px solid var(--ink-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.cb-head {
  background: linear-gradient(135deg, var(--ink-light), var(--ink-mid));
  padding: 28px 28px 24px;
  border-bottom: 1px solid var(--ink-border);
  position: relative;
}
.cb-head::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--brass);
}

.cb-label {
  font-family: var(--ff-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cream-ghost);
  margin-bottom: 8px;
}

.cb-name {
  font-family: var(--ff-display);
  font-size: 32px;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}

.cb-role {
  font-size: 13px;
  color: var(--brass);
}

.cb-body { padding: 24px 28px; }

.cb-contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ink-border2);
}
.cb-contact-row:last-child { border-bottom: none; }

.cb-contact-ico {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--brass-pale);
  border: 1px solid rgba(200,150,60,.18);
  display: flex; align-items:center; justify-content:center;
  font-size: 14px;
  flex-shrink: 0;
}

.cb-contact-val {
  font-family: var(--ff-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--cream-dim);
}

.cb-contact-lbl {
  font-size: 11px;
  color: var(--cream-ghost);
}

.cb-footer { padding: 16px 28px 24px; }

/* ══════════════════════════════════════════
   SERVICES GRID (home preview)
══════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.svc-card {
  background: var(--ink-soft);
  border: 1px solid var(--ink-border);
  border-radius: var(--r-md);
  padding: 28px 24px 22px;
  position: relative;
  overflow: hidden;
  transition: border-color .22s, transform .22s;
  display: flex;
  flex-direction: column;
}

.svc-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}

.svc-card:hover { border-color: rgba(200,150,60,.25); transform: translateY(-4px); }
.svc-card:hover::after { transform: scaleX(1); }

.svc-num {
  font-family: var(--ff-display);
  font-size: 48px;
  color: var(--ink-light);
  line-height: 1;
  margin-bottom: 16px;
  transition: color .22s;
}
.svc-card:hover .svc-num { color: var(--ink-border); }

.svc-ico { font-size: 26px; margin-bottom: 12px; }
.svc-title { font-family: var(--ff-display); font-size: 22px; color: var(--white); margin-bottom: 10px; line-height:1.1; }
.svc-desc { font-size: 13px; color: var(--cream-ghost); line-height: 1.6; flex:1; }

.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 20px;
  text-decoration: none;
  transition: gap .2s;
}
.svc-card:hover .svc-link { gap: 14px; opacity:1; }

/* ══════════════════════════════════════════
   CTA SECTION (editorial full-width)
══════════════════════════════════════════ */
.cta-full {
  background: var(--brass);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-full::before {
  content: 'ДИРЕКТ';
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--ff-display);
  font-size: 200px;
  color: rgba(13,14,16,.08);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.cta-full-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.cta-full-text h2 {
  font-family: var(--ff-display);
  font-size: clamp(36px, 5vw, 64px);
  color: var(--ink);
  line-height: .95;
  margin-bottom: 10px;
}

.cta-full-text p {
  font-size: 16px;
  color: rgba(13,14,16,.65);
  max-width: 480px;
  line-height: 1.65;
}

.cta-full-actions {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}

.btn-dark {
  background: var(--ink);
  color: var(--brass-light);
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: var(--r-sm);
  text-decoration: none;
  display: inline-block;
  transition: background .18s, transform .14s;
}
.btn-dark:hover { background: #1c1e22; transform: translateY(-2px); opacity:1; }

.btn-ink-outline {
  background: transparent;
  color: var(--ink);
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: var(--r-sm);
  text-decoration: none;
  display: inline-block;
  border: 1.5px solid rgba(13,14,16,.35);
  transition: border-color .18s, transform .14s;
}
.btn-ink-outline:hover { border-color: var(--ink); transform: translateY(-2px); opacity:1; }

/* ══════════════════════════════════════════
   ═══ SERVICE PAGE ═══
══════════════════════════════════════════ */

/* Service hero: split like main hero */
.service-hero {
  padding: 100px 0 0;
  background: var(--ink);
  position: relative;
}

.sh-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.sh-eyebrow-line { width:32px; height:1px; background:var(--brass); }
.sh-eyebrow-text {
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brass);
}

.sh-h1 {
  font-family: var(--ff-display);
  font-size: clamp(44px, 6vw, 84px);
  color: var(--white);
  line-height: .92;
  margin-bottom: 24px;
}
.sh-h1 em { font-style:normal; color:var(--brass-light); display:block; }

.sh-desc {
  font-size: 16px;
  color: var(--cream-dim);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 36px;
}

.sh-quick-stats {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--ink-border);
  padding-top: 24px;
  margin-bottom: 0;
}
.sh-stat {
  padding-right: 28px;
  margin-right: 28px;
  border-right: 1px solid var(--ink-border);
}
.sh-stat:last-child { border-right:none; }
.sh-stat-n { font-family:var(--ff-display); font-size:30px; color:var(--brass-light); line-height:1; margin-bottom:3px; }
.sh-stat-l { font-family:var(--ff-mono); font-size:9px; letter-spacing:.1em; text-transform:uppercase; color:var(--cream-ghost); }

/* Price card */
.price-card {
  background: var(--ink-mid);
  border: 1px solid rgba(200,150,60,.25);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: sticky;
  top: 88px;
}

.pc-head {
  background: linear-gradient(135deg, var(--ink-light), var(--ink-mid));
  padding: 28px;
  border-bottom: 1px solid var(--ink-border);
  position: relative;
}
.pc-head::before {
  content:'';
  position:absolute;
  top:0; left:0; right:0;
  height:2px;
  background:var(--brass);
}

.pc-lbl {
  font-family: var(--ff-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cream-ghost);
  margin-bottom: 12px;
}

.pc-price {
  font-family: var(--ff-display);
  font-size: 52px;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}
.pc-price sub {
  font-size: 24px;
  color: var(--brass-light);
  vertical-align: baseline;
  margin-right: 4px;
}

.pc-note { font-size: 13px; color: var(--cream-ghost); }

.pc-gift {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-text);
  background: rgba(26,122,82,.12);
  border: 1px solid rgba(77,184,130,.18);
  border-radius: 2px;
  padding: 6px 12px;
  margin-top: 14px;
}

.pc-body { padding: 24px 28px; }
.pc-includes-lbl {
  font-family: var(--ff-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cream-ghost);
  margin-bottom: 14px;
}

.pc-list li {
  font-size: 13px;
  color: var(--cream-dim);
  padding: 9px 0 9px 22px;
  position: relative;
  border-bottom: 1px solid var(--ink-border2);
  line-height: 1.45;
}
.pc-list li:last-child { border-bottom:none; }
.pc-list li::before { content:'✓'; position:absolute; left:0; color:var(--green-text); font-weight:700; font-size:12px; }

.pc-actions { padding: 0 28px 24px; display:flex; flex-direction:column; gap:10px; }

.pc-urgency {
  margin: 0 28px 20px;
  padding: 12px 14px;
  background: rgba(192,57,43,.08);
  border: 1px solid rgba(192,57,43,.18);
  border-radius: var(--r-sm);
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  color: #e07060;
  text-align: center;
}

/* Service page layout */
.service-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: start;
  padding: 64px 0 96px;
}

.service-body h2 {
  font-family: var(--ff-display);
  font-size: clamp(30px, 3.5vw, 46px);
  color: var(--white);
  margin: 48px 0 16px;
  line-height: 1.0;
}
.service-body h2:first-child { margin-top:0; }
.service-body h2 span { color: var(--brass-light); }

.service-body p { font-size:15px; line-height:1.8; margin-bottom:16px; }

/* Steps */
.steps-list { margin:32px 0; display:flex; flex-direction:column; gap:0; }
.step-item {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--ink-border2);
}
.step-item:last-child { border-bottom:none; }

.step-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(200,150,60,.3);
  display: flex; align-items:center; justify-content:center;
  font-family: var(--ff-display);
  font-size: 20px;
  color: var(--brass-light);
}

.step-h { font-family:var(--ff-display); font-size:20px; color:var(--white); margin-bottom:4px; line-height:1.1; }
.step-p { font-size:13px; color:var(--cream-ghost); line-height:1.6; }

/* Check list */
.check-list li {
  font-size: 14px;
  color: var(--cream-dim);
  padding: 10px 0 10px 26px;
  position: relative;
  border-bottom: 1px solid var(--ink-border2);
}
.check-list li:last-child { border-bottom:none; }
.check-list li::before { content:'✓'; position:absolute; left:0; color:var(--green-text); font-weight:700; font-size:13px; }

/* LM strip */
.lm-strip {
  background: linear-gradient(135deg, #0c1f18, #0a1a12);
  border: 1px solid rgba(77,184,130,.15);
  border-radius: var(--r-md);
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 40px 0;
}
.lm-strip-ico { font-size:32px; flex-shrink:0; }
.lm-strip-h { font-family:var(--ff-display); font-size:22px; color:var(--white); margin-bottom:4px; line-height:1.1; }
.lm-strip-h span { color:var(--brass-light); }
.lm-strip-p { font-size:13px; color:var(--cream-ghost); line-height:1.55; }
.lm-strip .btn { flex-shrink:0; }

/* Pain list */
.pain-list li {
  font-size: 14px;
  color: var(--cream-dim);
  padding: 10px 0 10px 24px;
  position: relative;
  border-bottom: 1px solid var(--ink-border2);
}
.pain-list li:last-child { border-bottom:none; }
.pain-list li::before { content:'—'; position:absolute; left:0; color:var(--brass); font-family:var(--ff-mono); font-weight:600; }

/* ══════════════════════════════════════════
   CONTACTS PAGE
══════════════════════════════════════════ */
.contacts-hero {
  padding: 140px 0 80px;
  background: var(--ink);
  border-bottom: 1px solid var(--ink-border);
}
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.contact-card {
  background: var(--ink-soft);
  border: 1px solid var(--ink-border);
  border-radius: var(--r-md);
  padding: 28px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.contact-card:hover { border-color: rgba(200,150,60,.3); transform: translateY(-3px); opacity:1; }
.cc-ico { width:44px;height:44px;border-radius:var(--r-sm);background:var(--brass-pale);border:1px solid rgba(200,150,60,.18);display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0; }
.cc-lbl { font-family:var(--ff-mono);font-size:9px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--cream-ghost);margin-bottom:4px; }
.cc-val { font-family:var(--ff-display);font-size:22px;color:var(--white);line-height:1.1;margin-bottom:3px; }
.cc-desc { font-size:12px;color:var(--cream-ghost); }

/* form */
.contact-form-wrap {
  background: var(--ink-mid);
  border: 1px solid var(--ink-border);
  border-radius: var(--r-lg);
  padding: 40px 36px;
}
.form-label {
  display:block;
  font-family:var(--ff-mono);
  font-size:10px;
  font-weight:600;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--cream-ghost);
  margin-bottom:7px;
}
.form-input {
  width:100%;
  background:var(--ink);
  border:1px solid var(--ink-border);
  color:var(--cream-dim);
  border-radius:var(--r-sm);
  padding:13px 14px;
  font-family:var(--ff-body);
  font-size:14px;
  outline:none;
  transition:border-color .18s;
}
.form-input:focus { border-color:var(--brass); }
.form-input::placeholder { color:var(--cream-ghost); }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.site-footer {
  background: var(--ink-soft);
  border-top: 1px solid var(--ink-border);
  padding: 64px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(280px, 1.65fr) repeat(3, minmax(150px, 1fr));
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 48px;
  border-bottom: 1px solid var(--ink-border);
  margin-bottom: 32px;
}

.footer-brand-name {
  font-family: var(--ff-display);
  font-size: 28px;
  color: var(--white);
  letter-spacing: .03em;
  margin-bottom: 2px;
}
.footer-brand-role {
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 14px;
}
.footer-brand-desc { font-size:13px;color:var(--cream-ghost);line-height:1.7; }

.footer-col-title {
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cream-ghost);
  margin-bottom: 20px;
}
.footer-links { display:flex;flex-direction:column;gap:12px; }
.footer-links a { font-size:14px;color:var(--cream-ghost);text-decoration:none;transition:color .18s; }
.footer-links a:hover { color:var(--brass-light);opacity:1; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy { font-size:12px;color:var(--cream-ghost); }
.footer-legal { font-size:11px;color:var(--ink-light);max-width:440px;text-align:right;line-height:1.6; }

.footer-copy,
.footer-legal,
.footer-links a { overflow-wrap: anywhere; }

.form-input + a,
.diag-privacy a,
#tolsky-contact-form p a {
  color: var(--brass-light);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media(max-width:1180px) and (min-width:769px){
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile menu */
.mobile-menu {
  display:none;
  position:fixed;
  top:72px;left:0;right:0;
  background:var(--ink-soft);
  border-bottom:1px solid var(--ink-border);
  padding:20px 28px 28px;
  z-index:1599;
  flex-direction:column;
  gap:4px;
}
.mobile-menu.is-open { display:flex; }
.mobile-menu a {
  font-family:var(--ff-mono);
  font-size:13px;
  font-weight:600;
  color:var(--cream-dim);
  padding:13px 0;
  border-bottom:1px solid var(--ink-border);
  text-transform:uppercase;
  letter-spacing:.1em;
  text-decoration:none;
}
.mobile-menu a:last-child { border-bottom:none; }
.mobile-menu a:hover { color:var(--brass-light);opacity:1; }

/* Animations */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(28px); }
  to   { opacity:1; transform:translateY(0); }
}
.anim-up { opacity:0; animation:fadeUp .7s ease forwards; }
.anim-up:nth-child(1){animation-delay:.1s}
.anim-up:nth-child(2){animation-delay:.2s}
.anim-up:nth-child(3){animation-delay:.3s}
.anim-up:nth-child(4){animation-delay:.4s}
.anim-up:nth-child(5){animation-delay:.5s}

/* ── RESPONSIVE ── */
@media(max-width:1024px){
  .hero { grid-template-columns:1fr; min-height:auto; }
  .hero-left { padding:120px 40px 60px; }
  .hero-right { height:420px; }
  .about-grid { grid-template-columns:1fr; gap:48px; }
  .lm-grid { grid-template-columns:1fr; gap:48px; }
  .cta-full-inner { flex-direction:column; align-items:flex-start; }
  .service-layout { grid-template-columns:1fr; }
  .price-card { position:static; }
}
@media(max-width:768px){
  .cases-grid { grid-template-columns:minmax(0, 1fr); }
  .services-grid { grid-template-columns:1fr; }
  .footer-inner { grid-template-columns:1fr; gap:32px; }
  .nav-links,.nav-cta-btn { display:none; }
  .nav-burger { display:flex; }
  .contacts-grid { grid-template-columns:1fr; }
  .lm-strip { flex-direction:column; text-align:center; }
  .lm-strip .btn { width:100%; }
  .sh-quick-stats { flex-wrap:wrap; gap:20px; }
  .sh-stat { border-right:none; padding-right:0; margin-right:0; }
}
@media(max-width:540px){
  .hero-left { padding:110px 24px 48px; }
  .hero-h1 { font-size:52px; }
  .cases-grid { grid-template-columns:1fr; }
  .hero-stats { flex-direction:column; gap:16px; }
  .hero-stat { border-right:none; padding-right:0; margin-right:0; }
  .cta-full-actions { flex-direction:column; width:100%; }
  .about-features { grid-template-columns:1fr; }
  .contact-form-wrap { padding:24px 18px; }
}

/* WordPress specifics */
.aligncenter{text-align:center;margin:0 auto;}
.alignleft{float:left;margin-right:24px;}
.alignright{float:right;margin-left:24px;}
.wp-block-image img{border-radius:var(--r-md);}

/* ══════════════════════════════════════════
   HERO RIGHT — INFO PANEL
══════════════════════════════════════════ */
.hero-info-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 44px;
  background: linear-gradient(160deg, var(--ink-light) 0%, var(--ink-mid) 60%, var(--ink) 100%);
  z-index: 4;
}

/* When photo exists, panel becomes semi-transparent overlay at bottom */
.hero-info-panel--overlay {
  justify-content: flex-end;
  background: linear-gradient(to top,
    rgba(13,14,16,.97) 0%,
    rgba(13,14,16,.92) 35%,
    rgba(13,14,16,.5) 65%,
    transparent 100%);
  padding: 40px 36px;
}

/* TAG */
.hip-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brass-light);
  background: rgba(200,150,60,.1);
  border: 1px solid rgba(200,150,60,.25);
  border-radius: 2px;
  padding: 6px 12px;
  margin-bottom: 20px;
  align-self: flex-start;
}

.hip-tag-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brass);
}

/* CERTS */
.hip-certs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.hip-cert {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--cream-dim);
  padding: 8px 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--ink-border);
  border-left: 2px solid var(--brass);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

/* DIVIDER */
.hip-divider {
  height: 1px;
  background: var(--ink-border);
  margin: 16px 0;
}

/* OFFER LIST */
.hip-offer-title {
  font-family: var(--ff-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cream-ghost);
  margin-bottom: 12px;
}

.hip-offer-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--ink-border2);
  font-size: 13px;
  color: var(--cream-dim);
  line-height: 1.45;
}
.hip-offer-item:last-child { border-bottom: none; }

.hip-offer-check {
  color: var(--green-text);
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* STATUS */
.hip-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.hip-status-text {
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: .05em;
}

.hip-note {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--cream-ghost);
  margin-top: 6px;
  letter-spacing: .08em;
}

/* Override hero-right min height to show content */
.hero-right {
  min-height: 560px;
}

/* ══════════════════════════════════════════
   IMAGES — Responsive & optimised
══════════════════════════════════════════ */

/* ── About section photo ── */
.about-photo-wrap {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
}

.about-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: var(--r-lg);
  filter: brightness(.92) contrast(1.05);
  transition: transform .5s ease, filter .5s ease;
}

.about-photo-wrap:hover img {
  transform: scale(1.02);
  filter: brightness(1) contrast(1.05);
}

.about-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(200,150,60,.2);
  border-radius: var(--r-lg);
  pointer-events: none;
}

/* ── Analytics strip image ── */
.analytics-img-wrap {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
}

.analytics-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(.85) saturate(1.1);
}

.analytics-img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,14,16,.5) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.analytics-img-caption {
  position: absolute;
  bottom: 20px;
  left: 24px;
  z-index: 2;
}

/* ── Service card thumbnail ── */
.svc-thumbnail {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--r-md) var(--r-md) 0 0;
  position: relative;
}

.svc-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease, filter .4s ease;
  filter: brightness(.85) saturate(1.1);
}

.svc-card:hover .svc-thumbnail img {
  transform: scale(1.05);
  filter: brightness(.95) saturate(1.15);
}

.svc-card-body {
  padding: 20px 22px 18px;
}

/* ── Service hero background image ── */
.service-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.service-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  filter: brightness(.35) saturate(.8);
}

.service-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,15,28,.92) 0%,
    rgba(10,15,28,.75) 50%,
    rgba(10,15,28,.5) 100%
  );
}

.service-hero { position: relative; }
.service-hero .container { position: relative; z-index: 2; }

/* ── Lazy load fade in ── */
img[loading="lazy"] { opacity: 0; transition: opacity .4s ease; }
img[loading="lazy"].loaded { opacity: 1; }

/* ── Mobile responsive adjustments ── */
@media (max-width: 768px) {
  .about-photo-wrap {
    max-height: 300px;
    margin-bottom: 32px;
  }
  .analytics-img-wrap {
    aspect-ratio: 4/3;
  }
  .svc-thumbnail {
    aspect-ratio: 16/9;
  }
  .service-hero-bg img {
    object-position: center 20%;
  }
}

@media (max-width: 480px) {
  .about-photo-wrap { max-height: 240px; }
}

/* ══════════════════════════════════════════
   v2.1 — calculator, stable icons and mobile hardening
══════════════════════════════════════════ */
html,
body {
  width: 100%;
  max-width: 100%;
}

body,
#main-content,
.hero,
.hero-left,
.hero-right,
section,
.container,
.container--narrow {
  min-width: 0;
}

svg,
iframe,
video,
table,
pre {
  max-width: 100%;
}

.tolsky-icon {
  display: block;
  width: 1em;
  height: 1em;
  color: currentColor;
  flex: 0 0 auto;
}

.tolsky-icon--inline {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  margin-right: .35em;
  vertical-align: -.2em;
}

.svc-ico,
.case-emo,
.af-num,
.cb-contact-ico,
.lm-strip-ico {
  color: var(--brass-light);
}

.svc-ico .tolsky-icon { width: 30px; height: 30px; }
.case-emo .tolsky-icon { width: 34px; height: 34px; }
.af-num .tolsky-icon { width: 26px; height: 26px; }
.cb-contact-ico .tolsky-icon { width: 18px; height: 18px; }
.lm-strip-ico .tolsky-icon { width: 32px; height: 32px; }
.sh-eyebrow-text .tolsky-icon { color: var(--brass); }
.pc-gift .tolsky-icon { color: var(--green-text); }

.btn-calculator {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--white);
}
.btn-calculator:hover {
  color: var(--ink);
  background: var(--brass-light);
  border-color: var(--brass-light);
}

.calculator-teaser {
  position: relative;
  padding: 72px 0;
  overflow: clip;
  background: var(--ink-soft);
  border-top: 1px solid var(--ink-border);
  border-bottom: 1px solid var(--ink-border);
}

.calculator-teaser__card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  padding: 38px 42px;
  border: 1px solid rgba(200,150,60,.25);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--ink-light), var(--ink-mid));
  box-shadow: var(--shadow-lg);
}

.calculator-teaser__icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  color: var(--brass-light);
  border: 1px solid rgba(200,150,60,.25);
  border-radius: 50%;
  background: var(--brass-pale);
}
.calculator-teaser__icon .tolsky-icon { width: 34px; height: 34px; }
.calculator-teaser__content .section-overline { margin-bottom: 10px; }
.calculator-teaser__content h2 {
  margin-bottom: 12px;
  color: var(--white);
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: .95;
}
.calculator-teaser__content h2 span { color: var(--brass-light); }
.calculator-teaser__content p {
  max-width: 650px;
  margin: 0;
  color: var(--cream-ghost);
  font-size: 14px;
}
.calculator-teaser__button { white-space: nowrap; }

.services-more {
  display: flex;
  justify-content: center;
  margin-top: 42px;
}

.services-archive {
  min-height: 70vh;
  padding: 138px 0 96px;
  background: var(--ink);
}
.services-archive__head {
  max-width: 790px;
  margin-bottom: 54px;
}
.services-archive__head h1 {
  margin: 14px 0 20px;
  color: var(--white);
  font-size: clamp(48px, 7vw, 88px);
}
.services-archive__head h1 span { color: var(--brass-light); }
.services-archive__head p { max-width: 660px; font-size: 16px; }
.services-grid--archive { align-items: stretch; }
.svc-price {
  margin-top: 14px;
  color: var(--brass-light);
  font-family: var(--ff-display);
  font-size: 18px;
}
.services-archive__empty {
  padding: 28px;
  border: 1px solid var(--ink-border);
  border-radius: var(--r-md);
  background: var(--ink-soft);
}

.service-intro-copy {
  margin-bottom: 48px;
}
.service-intro-copy > *:last-child { margin-bottom: 0; }

.calculator-home {
  position: relative;
  z-index: 3;
  padding: 88px 0 96px;
  overflow: clip;
  background: #eef1f5;
}

.calculator-home__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: 48px;
  align-items: end;
  margin-bottom: 30px;
}

.calculator-home__intro .section-overline,
.calculator-page .section-overline { color: #8a6500; }
.calculator-home__intro .section-h2 { color: #172033; }
.calculator-home__intro p {
  margin: 0;
  color: #596378;
  font-size: 15px;
}

.calculator-home__shell {
  width: min(1240px, calc(100% - 40px));
  min-width: 0;
  margin: 0 auto;
}

.calculator-home__shell .bdc {
  width: 100%;
  min-width: 0;
  margin: 0 auto;
}

.calculator-home__shell .bdc,
.calculator-home__shell .bdc * {
  min-inline-size: 0;
}

.calculator-home__shell .bdc input,
.calculator-home__shell .bdc select,
.calculator-home__shell .bdc textarea,
.calculator-home__shell .bdc button {
  max-width: 100%;
}

.calculator-home__unavailable {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px;
  color: #172033;
  border: 1px solid #d9dee7;
  border-radius: 18px;
  background: #fff;
}

.calculator-page {
  min-height: 70vh;
  padding: 128px 0 90px;
  overflow: clip;
  background: #eef1f5;
}
.calculator-page__heading { margin-bottom: 28px; }
.calculator-page__heading h1 {
  margin: 10px 0 16px;
  color: #172033;
  font-size: clamp(42px, 7vw, 84px);
}
.calculator-page__heading .page-content,
.calculator-page__heading .page-content p { color: #596378; }

/* Readable spacing for all editor-authored articles without changing their text. */
.page-content,
.service-body,
.entry-content {
  line-height: 1.8;
}
.page-content > * + *,
.service-body > * + *,
.entry-content > * + * {
  margin-top: 1.15em;
}
.page-content p,
.service-body p,
.entry-content p {
  margin-bottom: 1.15em;
}
.page-content h2,
.page-content h3,
.page-content h4,
.service-body h2,
.service-body h3,
.service-body h4,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 1.65em;
  margin-bottom: .6em;
}
.page-content li,
.service-body li,
.entry-content li {
  margin-bottom: .45em;
}
.page-content ul,
.page-content ol,
.service-body ul,
.service-body ol,
.entry-content ul,
.entry-content ol {
  margin: 1em 0 1.25em;
  padding-left: 1.35em;
}
.page-content ul,
.service-body ul,
.entry-content ul { list-style: disc; }
.page-content ol,
.service-body ol,
.entry-content ol { list-style: decimal; }

.back-to-top {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 850;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: var(--brass-light);
  box-shadow: 0 10px 34px rgba(0,0,0,.35);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .2s, visibility .2s, transform .2s, background .2s;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: #fff; }
.back-to-top .tolsky-icon { width: 22px; height: 22px; }

@media (max-width: 1024px) {
  .calculator-teaser__card {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .calculator-teaser__button {
    grid-column: 2;
    justify-self: start;
  }
  .home-process-grid,
  .home-comparison-grid,
  .service-hero-grid,
  .service-steps-grid,
  .service-final-grid,
  .contact-main-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 36px !important;
  }

  .home-comparison-grid > div {
    border-radius: var(--r-lg) !important;
  }

  .home-comparison-grid > div:nth-child(2) {
    padding: 0 !important;
  }

  .service-case-grid,
  .service-audience-grid,
  .home-stats-grid,
  .contact-secondary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  .container,
  .container--narrow {
    width: 100%;
    padding-right: 20px;
    padding-left: 20px;
  }

  .sec { padding: 68px 0; }
  .sec--sm { padding: 52px 0; }
  .sec--lg { padding: 82px 0; }

  .nav-wrap { gap: 12px; }
  .mobile-menu {
    width: 100%;
    max-height: calc(100dvh - 72px);
    padding-right: 20px;
    padding-left: 20px;
    overflow-y: auto;
  }

  .hero-left {
    width: 100%;
    padding: 112px 24px 54px;
  }
  .hero-right {
    width: 100%;
    height: auto;
    min-height: 420px;
  }
  .hero-right::before { display: none; }
  .hero-content { width: 100%; }
  .hero-h1 {
    max-width: 100%;
    font-size: clamp(48px, 15vw, 72px);
    overflow-wrap: anywhere;
  }
  .hero-eyebrow-text { letter-spacing: .12em; }

  .calculator-home { padding: 68px 0 76px; }
  .calculator-home__intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .calculator-home__shell { width: calc(100% - 24px); }
  .calculator-home__shell .bdc__funnel { max-width: 100%; }

  .calculator-teaser { padding: 56px 0; }
  .calculator-teaser__card {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 30px 24px;
  }
  .calculator-teaser__icon { width: 58px; height: 58px; }
  .calculator-teaser__icon .tolsky-icon { width: 28px; height: 28px; }
  .calculator-teaser__button {
    grid-column: auto;
    justify-self: stretch;
    white-space: normal;
  }
  .services-archive { padding: 112px 0 72px; }
  .services-archive__head { margin-bottom: 38px; }

  .analytics-copy {
    right: 0;
    padding: 0 24px !important;
  }

  .home-process-grid,
  .service-pain-grid,
  .contact-primary-grid,
  .contact-main-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .home-process-grid svg { height: auto; }
  .service-hero-grid { padding-bottom: 48px !important; }

  .page-content,
  .service-body {
    overflow-wrap: anywhere;
  }
  .page-content table,
  .service-body table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 560px) {
  .nav-logo { min-width: 0; }
  .nav-logo-role,
  .nav-logo-sep { display: none; }
  .nav-logo-name { font-size: 20px; }

  .hero-actions,
  .hero-actions .btn,
  .cta-full-actions .btn-dark,
  .cta-full-actions .btn-ink-outline {
    width: 100%;
  }

  .hero-actions .btn { padding-right: 18px; padding-left: 18px; }
  .hero-stats { width: 100%; }

  .home-stats-grid,
  .service-case-grid,
  .service-audience-grid,
  .contact-secondary-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .contact-primary-grid a {
    min-width: 0;
    padding: 22px 18px !important;
  }

  .contact-primary-grid a > div:last-child,
  .contact-primary-grid a > div:last-child > div {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .calculator-home__shell { width: calc(100% - 16px); }
  .calculator-home__shell .bdc__hero,
  .calculator-home__shell .bdc__step,
  .calculator-home__shell .bdc__results,
  .calculator-home__shell .bdc__modal-card {
    max-width: 100%;
  }
  .calculator-home__shell .bdc__compare dd,
  .calculator-home__shell .bdc__forecast strong,
  .calculator-home__shell .bdc__payback strong {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .back-to-top {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
