/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #fafbff;
  --bg-alt:       #f1f4fc;
  --bg-dark:      #0d1526;
  --surface:      #ffffff;
  --surface-blue: #f0f4ff;
  --border:       #dae0f2;
  --border-soft:  #e8ecf7;

  --text:         #0d1526;
  --text-2:       #2d3f6b;
  --text-muted:   #6b7fa3;

  --blue:         #1a3fce;
  --blue-hov:     #1530a8;
  --blue-deep:    #0f2280;
  --blue-light:   #eef2ff;
  --blue-mid:     #b8c8f5;
  --blue-glow-lg: rgba(26, 63, 206, 0.22);

  --green:        #059669;
  --green-dot:    #22c55e;

  --font-display: 'Plus Jakarta Sans', 'Helvetica Neue', sans-serif;
  --font-body:    'Inter', 'Helvetica Neue', sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.9375rem;
  --text-base: 1.0625rem;
  --text-lg:   1.1875rem;
  --text-xl:   1.375rem;
  --text-2xl:  1.75rem;
  --text-4xl:  3rem;
  --text-hero: clamp(2.75rem, 6.5vw, 5rem);

  --s1: .25rem;  --s2: .5rem;   --s3: .75rem;  --s4: 1rem;
  --s5: 1.25rem; --s6: 1.5rem;  --s8: 2rem;    --s10: 2.5rem;
  --s12: 3rem;   --s16: 4rem;   --s20: 5rem;   --s24: 6rem;

  --max-w:        1200px;
  --max-w-narrow: 760px;

  --r-sm: 6px;  --r: 12px;  --r-lg: 18px;  --r-xl: 24px;  --r-2xl: 32px;

  --shadow-sm:   0 1px 4px rgba(13,21,38,.05), 0 1px 2px rgba(13,21,38,.04);
  --shadow:      0 4px 20px rgba(13,21,38,.08);
  --shadow-lg:   0 12px 40px rgba(13,21,38,.10);
  --shadow-blue: 0 4px 20px rgba(26,63,206,.25);
  --shadow-card: 0 2px 12px rgba(13,21,38,.06), 0 0 0 1px var(--border-soft);

  --t:      180ms cubic-bezier(.4,0,.2,1);
  --t-slow: 360ms cubic-bezier(.4,0,.2,1);
  --t-reveal: 700ms cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }
a { color: var(--blue); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--blue-hov); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: var(--s6); }
.container-narrow { max-width: var(--max-w-narrow); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,251,255,.9);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-soft);
}
/* Нужен для абсолютного позиционирования мобильного меню */
.site-header .container { position: relative; }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s6); padding-block: var(--s4);
}
.site-logo { display: flex; align-items: center; gap: var(--s3); color: var(--text); }
.site-logo:hover { color: var(--blue); }

.logo-mark {
  width: 36px; height: 36px; border-radius: var(--r);
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 12px; font-weight: 800;
  color: #fff; flex-shrink: 0; letter-spacing: -0.03em;
  transition: box-shadow var(--t), transform var(--t);
  box-shadow: 0 2px 8px rgba(26,63,206,.25);
}
.site-logo:hover .logo-mark { box-shadow: var(--shadow-blue); transform: scale(1.05); }

.logo-text { display: flex; flex-direction: column; gap: 1px; }
.logo-name { font-family: var(--font-display); font-size: var(--text-sm); font-weight: 700; letter-spacing: -0.025em; color: var(--text); line-height: 1.2; }
.logo-title { font-size: 11px; color: var(--text-muted); line-height: 1.2; }

.site-nav { display: flex; align-items: center; gap: var(--s4); }
.nav-menu { display: flex; align-items: center; gap: 2px; }
.nav-menu li { position: relative; }
.nav-menu li a {
  display: block; padding: var(--s2) var(--s3);
  font-size: var(--text-sm); font-weight: 500; color: var(--text-2);
  border-radius: var(--r-sm); transition: color var(--t);
}
.nav-menu li a:hover { color: var(--blue); }
.nav-menu li a.active { color: var(--blue); font-weight: 600; }
.nav-menu li a.active::after {
  content: ''; position: absolute; bottom: -1px;
  left: var(--s3); right: var(--s3); height: 2px;
  background: var(--blue); border-radius: 2px 2px 0 0;
}

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: var(--s2); border-radius: var(--r-sm);
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-2); border-radius: 2px; transition: transform var(--t), opacity var(--t); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: .75rem 1.625rem;
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600;
  border-radius: var(--r); border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; transition: all var(--t);
  white-space: nowrap; letter-spacing: .01em;
}
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: var(--shadow-blue); }
.btn-primary:hover { background: var(--blue-hov); border-color: var(--blue-hov); color: #fff; box-shadow: 0 6px 24px rgba(26,63,206,.4); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--blue); border-color: var(--blue-mid); }
.btn-secondary:hover { background: var(--blue-light); border-color: var(--blue); color: var(--blue-hov); }
.btn-white { background: #fff; color: var(--blue); border-color: rgba(255,255,255,.25); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.btn-white:hover { background: #f0f5ff; color: var(--blue-hov); transform: translateY(-1px); }
.btn-sm { padding: .45rem 1rem; font-size: 13px; border-radius: var(--r-sm); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: var(--s24) 0 var(--s20);
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--border-soft);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 85% -10%, rgba(26,63,206,.09) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 100% 50%, rgba(26,63,206,.05) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 0% 100%, rgba(26,63,206,.04) 0%, transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(26,63,206,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,63,206,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: 5px var(--s4); border: 1px solid var(--blue-mid); border-radius: 100px;
  background: var(--blue-light); font-family: var(--font-display); font-size: 11px;
  font-weight: 700; color: var(--blue); letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: var(--s8);
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--blue);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.35;transform:scale(.75)} }

.hero-heading {
  font-family: var(--font-display); font-size: var(--text-hero); font-weight: 800;
  letter-spacing: -0.05em; line-height: 1.02; max-width: 860px; margin-bottom: var(--s6);
  color: var(--text); /* fallback для браузеров без background-clip:text */
  background: linear-gradient(135deg, var(--text) 0%, #1a3fce 55%, #5b82f5 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub { font-size: var(--text-lg); color: var(--text-2); max-width: 540px; margin-bottom: var(--s10); line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; }

/* ============================================================
   SECTION DIVIDER
   ============================================================ */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--blue-mid) 40%, var(--blue-mid) 60%, transparent 100%);
  border: none; opacity: .4; position: relative;
}
.section-divider::after {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 6px; height: 6px; border-radius: 50%; background: var(--blue-mid); opacity: .8;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: var(--s24) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }

.section-dotted { position: relative; }
.section-dotted::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(26,63,206,.10) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 100% at 50% 50%, black 30%, transparent 100%);
  pointer-events: none; opacity: .5;
}
.section-dotted > * { position: relative; }

.section-dark { background: var(--bg-dark); border-top: none; border-bottom: none; position: relative; overflow: hidden; }
.section-dark::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(26,63,206,.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 20% 50%, rgba(26,63,206,.10) 0%, transparent 55%);
  pointer-events: none;
}
.section-dark > * { position: relative; }
.section-dark .section-label { color: var(--blue-mid); }
.section-dark .section-label::before { background: var(--blue-mid); }
.section-dark .section-title { color: #e8eef8; }
.section-dark .section-sub { color: #7a90b8; }

.section-label {
  display: flex; align-items: center; gap: var(--s3);
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: var(--s4);
}
.section-label::before {
  content: ''; display: block; width: 20px; height: 2px;
  background: var(--blue); border-radius: 2px; flex-shrink: 0;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; margin-bottom: var(--s4); color: var(--text);
}
.section-sub { font-size: var(--text-lg); color: var(--text-muted); max-width: 520px; line-height: 1.75; margin-bottom: var(--s12); }
.section-cta { margin-top: var(--s12); text-align: center; }

/* ============================================================
   PAGE HEADERS
   ============================================================ */
.page-header {
  padding: var(--s12) 0 var(--s10); border-bottom: 1px solid var(--border-soft);
  background: var(--bg-alt); position: relative; overflow: hidden;
}
.page-title {
  font-family: var(--font-display); font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: 800; letter-spacing: -0.04em; line-height: 1.1;
  margin-bottom: var(--s4); margin-top: var(--s3); color: var(--text); position: relative;
}
.page-lead { font-size: var(--text-lg); color: var(--text-muted); max-width: 600px; line-height: 1.75; }

.page-header--services::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(26,63,206,.05) 1px,transparent 1px), linear-gradient(90deg,rgba(26,63,206,.05) 1px,transparent 1px);
  background-size: 40px 40px; pointer-events: none;
}
.page-header--services::after {
  content: ''; position: absolute; right: -60px; top: -60px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,63,206,.10) 0%, transparent 60%); pointer-events: none;
}
.page-header--blog::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(26,63,206,.06) 79px, rgba(26,63,206,.06) 80px);
  pointer-events: none;
}
.page-header--blog::after {
  content: ''; position: absolute; left: -40px; bottom: -40px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,63,206,.07) 0%, transparent 60%); pointer-events: none;
}
.page-header--contacts::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 80% 50%, rgba(26,63,206,.08) 0%,transparent 50%), radial-gradient(circle at 20% 80%, rgba(26,63,206,.05) 0%,transparent 40%);
  pointer-events: none;
}
.page-header--contacts::after {
  content: ''; position: absolute; right: 5%; top: 50%; transform: translateY(-50%);
  width: 180px; height: 180px; border: 1.5px solid rgba(26,63,206,.10); border-radius: 50%;
  box-shadow: 0 0 0 30px rgba(26,63,206,.04), 0 0 0 60px rgba(26,63,206,.02); pointer-events: none;
}
.page-header--service-detail { background: linear-gradient(135deg, var(--bg-alt) 0%, #e8eeff 100%); }
.page-header--service-detail::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(26,63,206,.05) 1px,transparent 1px), linear-gradient(90deg,rgba(26,63,206,.05) 1px,transparent 1px);
  background-size: 56px 56px; pointer-events: none;
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: var(--s5); }

.service-card {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-lg);
  padding: var(--s8) var(--s6) var(--s6); display: flex; flex-direction: column; gap: var(--s4);
  position: relative; overflow: hidden;
  transition: box-shadow var(--t), border-color var(--t);
  box-shadow: var(--shadow-card);
}
.service-card::before {
  content: attr(data-num); position: absolute; top: var(--s4); right: var(--s5);
  font-family: var(--font-display); font-size: 3.5rem; font-weight: 800;
  color: var(--blue); opacity: 0.06; line-height: 1; letter-spacing: -0.06em;
  pointer-events: none; transition: opacity var(--t-slow);
}
.service-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), #5b82f5);
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-slow);
}
/* .service-card:hover { box-shadow: 0 0 0 1.5px var(--blue), 0 8px 32px var(--blue-glow-lg); border-color: transparent; } */
.service-card:hover::after { transform: scaleX(1); }
.service-card:hover::before { opacity: 0.10; }

.service-card-icon {
  width: 40px; height: 40px; border-radius: var(--r);
  background: var(--blue-light); border: 1px solid var(--blue-mid);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); flex-shrink: 0; transition: background var(--t), transform var(--t), color var(--t);
}
.service-card-icon svg { width: 20px; height: 20px; }
.service-card:hover .service-card-icon { background: var(--blue); color: #fff; transform: scale(1.05); }

.service-card-title { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; letter-spacing: -0.025em; line-height: 1.3;}
.service-card-title a { color: var(--text); }
.service-card-title a:hover { color: var(--blue); }
.service-card-desc { font-size: var(--text-sm); color: var(--text-muted); flex: 1; line-height: 1.75; }
/* .service-card-large { padding: var(--s8); } */

/* ============================================================
   BLOG META / CATEGORY
   ============================================================ */
.post-card-meta, .post-header-meta {
  display: flex; align-items: center; gap: var(--s3);
  font-size: var(--text-xs); color: var(--text-muted);
}
.post-category {
  display: inline-flex; align-items: center;
  background: var(--blue-light); color: var(--blue);
  padding: 3px var(--s3); border-radius: 100px; font-weight: 700;
  text-decoration: none; font-size: 11px; font-family: var(--font-display);
  letter-spacing: .05em; border: 1px solid var(--blue-mid);
  transition: background var(--t), color var(--t); text-transform: uppercase;
}
.post-category:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ============================================================
   LINK ARROWS
   ============================================================ */
.link-arrow { font-size: var(--text-sm); font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: var(--s1); font-family: var(--font-display); transition: gap var(--t), color var(--t); }
.link-arrow:hover { gap: var(--s2); color: var(--blue-hov); }
.link-arrow-back { font-size: var(--text-sm); font-weight: 500; color: var(--text-muted); }
.link-arrow-back:hover { color: var(--blue); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb { margin-bottom: var(--s6); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--s2); font-size: var(--text-sm); color: var(--text-muted); }
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li:not(:last-child)::after { content: '/'; margin-left: var(--s2); opacity: .4; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--blue); }

/* ============================================================
   CONTENT LAYOUT (service detail)
   ============================================================ */
.content-layout { display: grid; grid-template-columns: 1fr 280px; gap: var(--s12); align-items: start; }
.content-main { min-width: 0; }
.content-sidebar { position: sticky; top: calc(64px + var(--s6)); }
.sidebar-widget { background: var(--bg-alt); border: 1px solid var(--border-soft); border-radius: var(--r-lg); padding: var(--s6); }
.sidebar-heading { font-family: var(--font-display); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .10em; color: var(--text-muted); margin-bottom: var(--s4); }
.sidebar-list { display: flex; flex-direction: column; gap: var(--s1); }
.sidebar-list a { font-size: var(--text-sm); color: var(--text-2); padding: var(--s3); border-radius: var(--r-sm); display: block; border-left: 2px solid transparent; transition: background var(--t), color var(--t), padding-left var(--t), border-color var(--t); }
.sidebar-list a:hover { color: var(--blue); background: var(--blue-light); padding-left: var(--s4); border-left-color: var(--blue); }

/* Value block */
.value-block { margin: var(--s10) 0; background: var(--blue-light); border: 1px solid var(--blue-mid); border-radius: var(--r-lg); padding: var(--s8) var(--s10); }
.value-heading { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; letter-spacing: -0.025em; margin-bottom: var(--s6); color: var(--text); }
.value-list { display: flex; flex-direction: column; gap: var(--s4); }
.value-list li { position: relative; padding-left: var(--s8); font-size: var(--text-base); color: var(--text-2); line-height: 1.7; }
.value-list li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 14px; height: 8px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg) translateY(-2px); border-radius: 1px; }

/* CTA block */
.cta-block { margin-top: var(--s10); padding: var(--s10); border-radius: var(--r-xl); background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%); text-align: center; position: relative; overflow: hidden; }
.cta-block::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px), linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px); background-size: 24px 24px; pointer-events: none; }
.cta-text { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 800; letter-spacing: -0.03em; margin-bottom: var(--s6); color: #fff; position: relative; }
.cta-block .btn { position: relative; }

/* ============================================================
   PROSE
   ============================================================ */
.prose { color: var(--text-2); line-height: 1.85; font-size: var(--text-base); }
.prose p { margin-bottom: var(--s5); }
.prose h2 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 700; letter-spacing: -0.03em; margin: var(--s12) 0 var(--s5); color: var(--text); }
.prose h3 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; letter-spacing: -0.025em; margin: var(--s8) 0 var(--s4); color: var(--text); }
.prose ul, .prose ol { margin: var(--s4) 0; padding-left: var(--s6); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: var(--s2); }
.prose strong { font-weight: 700; color: var(--text); }
.prose code { font-family: 'SF Mono','Fira Code',monospace; font-size: .85em; background: var(--bg-alt); border: 1px solid var(--border); color: var(--blue-hov); padding: 2px 6px; border-radius: var(--r-sm); }
.prose pre { background: var(--bg-dark); color: #e2e8f0; padding: var(--s6); border-radius: var(--r-lg); overflow-x: auto; margin: var(--s6) 0; }
.prose pre code { background: none; border: none; padding: 0; color: inherit; font-size: var(--text-sm); }
.prose blockquote { border-left: 3px solid var(--blue); padding-left: var(--s6); margin: var(--s8) 0; color: var(--text-muted); font-style: italic; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   FILTER BAR / PAGINATION
   ============================================================ */
.filter-bar { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s8); }
.filter-tag { padding: var(--s2) var(--s4); border: 1.5px solid var(--border); border-radius: 100px; font-size: var(--text-xs); font-family: var(--font-display); font-weight: 700; color: var(--text-muted); background: var(--bg); cursor: pointer; transition: all var(--t); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; display: inline-block; }
.filter-tag:hover { border-color: var(--blue-mid); color: var(--blue); background: var(--blue-light); }
.filter-tag.active { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: var(--shadow-blue); }
.pagination { display: flex; align-items: center; justify-content: center; gap: var(--s4); margin-top: var(--s12); }
.page-link { padding: var(--s2) var(--s4); border: 1.5px solid var(--border); border-radius: var(--r); font-size: var(--text-sm); color: var(--text-2); transition: all var(--t); }
.page-link:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.page-info { font-size: var(--text-sm); color: var(--text-muted); }

/* ============================================================
   CONTACTS
   ============================================================ */
.contacts-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s12); align-items: start; }
.contacts-intro { font-size: var(--text-lg); color: var(--text-2); line-height: 1.75; margin-bottom: var(--s8); }
.contacts-col-heading { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 800; letter-spacing: -0.035em; color: var(--text); margin-bottom: var(--s8); line-height: 1.2; }
.contact-items { display: flex; flex-direction: column; gap: var(--s5); }
.contact-item { display: flex; align-items: center; gap: var(--s4); padding: var(--s2) 0; }
.contact-item-icon { width: 40px; height: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--blue); background: var(--blue-light); border: 1px solid var(--blue-mid); border-radius: var(--r); transition: background var(--t), color var(--t); }
.contact-item:hover .contact-item-icon { background: var(--blue); color: #fff; }
.contact-item-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-label { font-family: var(--font-display); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .10em; color: var(--text-muted); }
.contact-value { font-size: var(--text-lg); font-weight: 600; color: var(--text); word-break: break-all; }
a.contact-value:hover { color: var(--blue); }
.contacts-schedule { margin-top: var(--s8); padding: var(--s6); background: var(--bg-alt); border: 1px solid var(--border-soft); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: var(--s4); }
.contacts-schedule-row { display: flex; flex-direction: column; gap: var(--s1); }
.contacts-schedule-label { font-family: var(--font-display); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .10em; color: var(--text-muted); }
.contacts-schedule-value { font-size: var(--text-base); font-weight: 600; color: var(--text); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--bg-dark); border-top: none; padding: var(--s12) 0 var(--s6); margin-top: auto; position: relative; overflow: hidden; }
.site-footer::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 90% 50%, rgba(26,63,206,.12) 0%, transparent 60%); pointer-events: none; }
.site-footer > * { position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--s8); margin-bottom: var(--s10); }
.footer-name { font-family: var(--font-display); font-weight: 700; font-size: var(--text-base); color: #e8eef8; margin-bottom: var(--s1); letter-spacing: -0.025em; }
.footer-sub { font-size: var(--text-sm); color: #4a5f8a; margin-bottom: var(--s4); }
.footer-desc { font-size: var(--text-sm); color: #4a5f8a; line-height: 1.7; max-width: 280px; }

.footer-status { display: inline-flex; align-items: center; gap: var(--s2); margin-top: var(--s4); padding: 5px var(--s3); background: rgba(34,197,94,.10); border: 1px solid rgba(34,197,94,.20); border-radius: 100px; font-size: 12px; font-family: var(--font-display); font-weight: 600; color: #4ade80; letter-spacing: .03em; }
.footer-status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-dot); animation: pulse 2.5s ease-in-out infinite; }

.footer-heading { font-family: var(--font-display); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: #2d4070; margin-bottom: var(--s4); }
.footer-col ul { display: flex; flex-direction: column; gap: var(--s3); }
.footer-col ul a { font-size: var(--text-sm); color: #4a5f8a; transition: color var(--t); line-height: normal; }
.footer-col ul a:hover { color: #93c5fd; }
.footer-bottom { padding-top: var(--s6); border-top: 1px solid rgba(255,255,255,.05); display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.footer-copy { font-size: 12px; color: #2d4070; font-family: var(--font-display); }

/* ============================================================
   ADVANTAGES
   ============================================================ */
.advantages-section { background: var(--bg); }
.advantages-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s5); margin-top: var(--s10); }
.advantage-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-lg); padding: var(--s8) var(--s6); display: flex; flex-direction: column; gap: var(--s3); box-shadow: var(--shadow-card); transition: box-shadow var(--t), border-color var(--t), transform var(--t); }
.advantage-card:hover { box-shadow: 0 0 0 1.5px var(--blue-mid), var(--shadow); transform: translateY(-2px); }
.advantage-icon { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; color: var(--blue); background: var(--blue-light); border-radius: var(--r); margin-bottom: var(--s2); }
.advantage-icon svg { width: 36px; height: 36px; }
.advantage-title { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; letter-spacing: -0.025em; color: var(--text); line-height: 1.3; }
.advantage-subtitle { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.7; }

/* ============================================================
   MISC
   ============================================================ */
.post-footer { margin-top: var(--s12); padding-top: var(--s6); border-top: 1px solid var(--border-soft); }
.article-body { margin-top: var(--s4); }
.empty-state { color: var(--text-muted); font-size: var(--text-sm); }

/* ============================================================
   ABOUT WITH PHOTO
   ============================================================ */
.about-layout { display: grid; grid-template-columns: 1fr 350px; gap: var(--s16); align-items: center; }
.about-content { display: flex; flex-direction: column; gap: var(--s4); min-width: 0; }
.about-photo-wrap { min-width: 0; }
.about-photo { width: 100%; aspect-ratio: 4.25/5; object-fit: cover; border-radius: var(--r-2xl); /* box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-soft); */ }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid > .footer-col:first-child { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .contacts-layout { grid-template-columns: 1fr; }
  .content-layout { grid-template-columns: 1fr; }
  .content-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > .footer-col:first-child { grid-column: 1 / -1; }
  .page-header--contacts::after { display: none; }
  /* About: одна колонка, фото сверху по центру */
  .about-layout { grid-template-columns: 1fr; gap: var(--s10); }
  .about-photo-wrap { order: -1; max-width: 280px; margin-inline: auto; width: 100%; }
}
@media (max-width: 640px) {
  .container { padding-inline: var(--s4); }
  .hero { padding: var(--s16) 0; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border-soft); flex-direction: column; align-items: stretch; padding: var(--s4); gap: var(--s1); box-shadow: var(--shadow); }
  .nav-menu.is-open { display: flex; }
  .nav-menu li a { padding: var(--s3) var(--s4); }
  .nav-menu li a.active::after { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .section { padding: var(--s12) 0; }
  .page-header { padding: var(--s8) 0; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .page-header--services::after, .page-header--blog::after { display: none; }
  .reviews-grid { grid-template-columns: 1fr; }
  .tech-row { gap: var(--s2); }
  .certs-btn { display: none; }
  .cert-slide { width: 180px; }
  .cert-img { width: 180px; height: 254px; }
  .blog-cards-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--s5); margin-top: var(--s10); }
.review-card { background: var(--surface); border-radius: var(--r-lg); padding: var(--s8); display: flex; flex-direction: column; gap: var(--s5); box-shadow: var(--shadow-card); border: 1px solid var(--border-soft); transition: box-shadow var(--t), transform var(--t); }
.review-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.review-quote-icon { display: flex; gap: 3px; color: var(--blue); flex-shrink: 0; }
.review-quote-icon svg { width: 22px; height: 22px; }
.review-text { font-size: var(--text-base); color: var(--text-2); line-height: 1.75; flex: 1; font-style: italic; }
.review-author { display: flex; flex-direction: column; gap: 2px; padding-top: var(--s4); border-top: 1px solid var(--border-soft); }
.review-author-name { font-family: var(--font-display); font-size: var(--text-sm); font-weight: 700; color: var(--text); }
.review-author-title { font-size: var(--text-xs); color: var(--text-muted); }

/* ============================================================
   TECHNOLOGIES
   ============================================================ */
.tech-row { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s10); }
.tech-item { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s5); background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); transition: border-color var(--t), box-shadow var(--t), transform var(--t); }
.tech-item:hover { border-color: var(--blue-mid); box-shadow: 0 0 0 1px var(--blue-mid), var(--shadow-sm); transform: translateY(-2px); }
.tech-logo { width: 28px; height: 28px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.tech-logo svg { width: 100%; height: 100%; }
.tech-logo img { width: 100%; height: 100%; object-fit: contain; }
.tech-name { font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600; color: var(--text-2); white-space: nowrap; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--t-reveal), transform var(--t-reveal); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   READING TIME
   ============================================================ */
.post-reading-time { display: inline-flex; align-items: center; gap: 4px; font-size: var(--text-xs); color: var(--text-muted); }
.post-reading-time::before { content: '·'; opacity: .5; }

/* ============================================================
   CONTACTS — «Как я работаю»
   ============================================================ */
.contacts-steps-col { padding-top: var(--s2); }
.work-steps { display: flex; flex-direction: column; gap: 0; margin-top: var(--s6); position: relative; }
.work-steps::before { content: ''; position: absolute; left: 22px; top: 44px; bottom: 20px; width: 2px; background: linear-gradient(to bottom, var(--blue-mid), transparent); border-radius: 2px; }
.work-step { display: flex; gap: var(--s5); align-items: flex-start; padding-bottom: var(--s8); position: relative; }
.work-step:last-child { padding-bottom: 0; }
.work-step-num { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--blue-light); border: 2px solid var(--blue-mid); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 12px; font-weight: 800; color: var(--blue); letter-spacing: .04em; position: relative; z-index: 1; transition: background var(--t), border-color var(--t), transform var(--t); }
.work-step:hover .work-step-num { background: var(--blue); border-color: var(--blue); color: #fff; transform: scale(1.08); }
.work-step-body { padding-top: 10px; }
.work-step-title { font-family: var(--font-display); font-size: var(--text-base); font-weight: 700; color: var(--text); margin-bottom: var(--s2); letter-spacing: -0.01em; }
.work-step-desc { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.7; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-block { margin-top: var(--s12); }
.faq-heading { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 700; color: var(--text); letter-spacing: -0.025em; margin-bottom: var(--s6); }
.faq-list { display: flex; flex-direction: column; gap: var(--s3); }
.faq-item { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; transition: border-color var(--t), box-shadow var(--t); }
.faq-item[open] { border-color: var(--blue-mid); box-shadow: var(--shadow-sm); }
.faq-question { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s5) var(--s6); font-family: var(--font-display); font-size: var(--text-base); font-weight: 600; color: var(--text); cursor: pointer; list-style: none; user-select: none; transition: color var(--t); }
.faq-question::-webkit-details-marker { display: none; }
.faq-item[open] .faq-question { color: var(--blue); }
.faq-chevron { width: 20px; height: 20px; flex-shrink: 0; color: var(--text-muted); transition: transform var(--t); }
.faq-item[open] .faq-chevron { transform: rotate(180deg); color: var(--blue); }
.faq-answer { padding: 0 var(--s6) var(--s5); color: var(--text-2); font-size: var(--text-sm); line-height: 1.75; border-top: 1px solid var(--border-soft); padding-top: var(--s4); }
.faq-answer p { margin-bottom: var(--s3); }
.faq-answer p:last-child { margin-bottom: 0; }

/* ============================================================
   CERTIFICATES
   ============================================================ */
.certificates-section { background: var(--bg-alt); }
.certs-carousel-wrap { position: relative; display: flex; align-items: center; gap: var(--s4); margin-top: var(--s10); }
.certs-carousel { display: flex; gap: var(--s6); overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; padding-bottom: var(--s2); flex: 1; scroll-snap-type: x mandatory; }
.certs-carousel::-webkit-scrollbar { display: none; }
.cert-slide { flex-shrink: 0; width: 220px; scroll-snap-align: start; }
.cert-link { display: flex; flex-direction: column; gap: var(--s3); text-decoration: none; }
.cert-img { width: 220px; height: 310px; object-fit: cover; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); transition: box-shadow var(--t), transform var(--t); display: block; }
.cert-link:hover .cert-img { box-shadow: var(--shadow); transform: translateY(-3px); }
.cert-title { font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600; color: var(--text-2); text-align: center; transition: color var(--t); }
.cert-link:hover .cert-title { color: var(--blue); }
.certs-btn { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-2); transition: background var(--t), border-color var(--t), color var(--t), box-shadow var(--t); }
.certs-btn svg { width: 18px; height: 18px; }
.certs-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }

/* ============================================================
   BLOG CARDS GRID
   ============================================================ */
.blog-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s6); }
.blog-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-xl); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-card); transition: box-shadow var(--t), transform var(--t), border-color var(--t); }
.blog-card:hover { box-shadow: 0 0 0 1.5px var(--blue-mid), var(--shadow); transform: translateY(-3px); border-color: transparent; }
.blog-card-cover-link { display: block; overflow: hidden; aspect-ratio: 16/9; background: var(--bg-alt); }
.blog-card-cover { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--t-slow); }
.blog-card:hover .blog-card-cover { transform: scale(1.03); }
.blog-card-cover--placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--bg-alt) 0%, var(--surface-blue) 100%); }
.blog-card-cover--placeholder svg { width: 40px; height: 40px; color: var(--blue-mid); }
.blog-card-body { padding: var(--s5) var(--s6) var(--s6); display: flex; flex-direction: column; gap: var(--s3); flex: 1; }
.blog-card-title { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; color: var(--text); letter-spacing: -0.025em; line-height: 1.35; }
.blog-card-title a { color: inherit; transition: color var(--t); }
.blog-card-title a:hover { color: var(--blue); }
.blog-card-lead { color: var(--text-muted); font-size: var(--text-sm); line-height: 1.7; flex: 1; }
#heading-0 {margin-top: 0;}