/*
Theme Name: Super SEO
Theme URI: https://super-seo.com
Author: Super SEO
Author URI: https://super-seo.com
Description: SEO-инженерия и практические кейсы. Технический, доказательный подход.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: super-seo
Tags: seo, business, dark, modern, one-page
*/

/* ============================================
   DESIGN SYSTEM — Super SEO Theme
   Aesthetic: Industrial / Technical / Dark
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

:root {
  /* Palette */
  --bg:          #0a0a0f;
  --bg2:         #10101a;
  --bg3:         #16162a;
  --surface:     #1c1c30;
  --border:      #2a2a42;
  --accent:      #00e5a0;
  --accent2:     #5b5bff;
  --accent3:     #ff4d6d;
  --text:        #e8e8f0;
  --text-muted:  #7070a0;
  --text-dim:    #4a4a70;

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-mono:    'Space Mono', monospace;
  --font-body:    'DM Sans', sans-serif;

  /* Spacing */
  --section-pad: clamp(60px, 10vw, 120px);
  --container:   1280px;
  --radius:      4px;
  --radius-lg:   12px;

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

.mono { font-family: var(--font-mono); }

.label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

section { padding: var(--section-pad) 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ============================================
   COMPONENTS: BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  transition: all 0.25s var(--ease);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: #00ffb3;
  color: var(--bg);
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,229,160,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  opacity: 1;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding: 0;
  gap: 6px;
  font-size: 13px;
}
.btn-ghost::after { content: '→'; transition: transform 0.2s; }
.btn-ghost:hover::after { transform: translateX(4px); }
.btn-ghost:hover { opacity: 1; }

/* ============================================
   COMPONENTS: CARDS
   ============================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,229,160,0.03) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover { border-color: var(--accent2); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }

.card-accent { border-top: 2px solid var(--accent); }
.card-accent2 { border-top: 2px solid var(--accent2); }
.card-accent3 { border-top: 2px solid var(--accent3); }

/* ============================================
   COMPONENTS: BADGE / TAG
   ============================================ */
.badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0,229,160,0.1);
  border: 1px solid rgba(0,229,160,0.25);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
}

/* ============================================
   COMPONENTS: SECTION HEADER
   ============================================ */
.section-header {
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-header.centered { text-align: center; }

.section-title {
  font-size: clamp(32px, 5vw, 56px);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
}
.section-header.centered .section-sub { margin: 0 auto; }

/* ============================================
   COMPONENTS: DIVIDER
   ============================================ */
.divider {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 20px 0;
}
.centered .divider { margin: 20px auto; }

/* ============================================
   NOISE TEXTURE OVERLAY
   ============================================ */
body::after {
  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='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,229,160,0.08);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* ============================================
   HEADER / NAV
   ============================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background 0.3s, padding 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

#site-header.scrolled {
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: var(--border);
  padding: 14px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-logo .logo-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

.main-nav { display: flex; align-items: center; gap: 32px; }

.main-nav a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--accent); }

.nav-cta {
  margin-left: 16px;
}

/* Mobile nav toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

/* ============================================
   FOOTER
   ============================================ */
#site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 16px;
  max-width: 260px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 12px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(91,91,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(0,229,160,0.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(42,42,66,0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,42,66,0.3) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-content { position: relative; z-index: 2; max-width: 800px; }

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}
.hero-label .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
.hero-label span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero h1 {
  font-size: clamp(42px, 7vw, 88px);
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero h1 .accent-text {
  color: var(--accent);
  position: relative;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 48px;
  line-height: 1.6;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-visual {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 40%;
  opacity: 0.15;
  pointer-events: none;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 20px;
  letter-spacing: 0.1em;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(0,229,160,0.08);
  border: 1px solid rgba(0,229,160,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.service-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

.service-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  background: rgba(91,91,255,0.08);
  border: 1px solid rgba(91,91,255,0.2);
  border-radius: 3px;
  color: var(--accent2);
}

/* ============================================
   CASES SECTION
   ============================================ */
.cases-section { background: var(--bg2); }

.case-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.case-card:hover { border-color: var(--accent); transform: translateY(-4px); }

.case-header {
  padding: 28px 28px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.case-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.case-badge.wordpress { background: rgba(0,229,160,0.1); color: var(--accent); border: 1px solid rgba(0,229,160,0.2); }
.case-badge.ecom { background: rgba(91,91,255,0.1); color: var(--accent2); border: 1px solid rgba(91,91,255,0.2); }
.case-badge.recovery { background: rgba(255,77,109,0.1); color: var(--accent3); border: 1px solid rgba(255,77,109,0.2); }

.case-body { padding: 20px 28px 28px; }

.case-problem {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.case-card h3 { font-size: 19px; margin-bottom: 12px; }

.case-card p { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }

.case-result {
  display: flex;
  gap: 20px;
  padding: 16px 20px;
  background: rgba(0,229,160,0.04);
  border: 1px solid rgba(0,229,160,0.12);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.case-metric {
  text-align: center;
}

.case-metric-num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.case-metric-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ============================================
   LAB SECTION
   ============================================ */
.lab-section {
  background: var(--bg3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.lab-section::before {
  content: 'LAB';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-family: var(--font-display);
  font-size: 200px;
  font-weight: 800;
  color: rgba(91,91,255,0.03);
  letter-spacing: -10px;
  pointer-events: none;
  user-select: none;
}

.lab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.lab-items { display: flex; flex-direction: column; gap: 12px; }

.lab-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
  cursor: default;
}
.lab-item:hover { border-color: var(--accent2); }

.lab-item-icon { font-size: 20px; flex-shrink: 0; }

.lab-item-text strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

.lab-item-text span {
  font-size: 13px;
  color: var(--text-muted);
}

.terminal {
  background: #080c10;
  border: 1px solid #1e2d20;
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13px;
}

.terminal-bar {
  background: #111816;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #1e2d20;
}

.term-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.term-dot.red   { background: #ff5f57; }
.term-dot.yellow{ background: #febc2e; }
.term-dot.green { background: #28c840; }

.terminal-title {
  font-size: 11px;
  color: #4a6650;
  margin-left: 8px;
  letter-spacing: 0.05em;
}

.terminal-body {
  padding: 24px;
  line-height: 1.9;
}

.term-line { display: flex; gap: 12px; }
.term-prompt { color: #00e5a0; user-select: none; }
.term-cmd { color: #e8e8f0; }
.term-comment { color: #3a5a40; font-style: italic; }
.term-out { color: #7aad82; padding-left: 24px; }
.term-err { color: #ff4d6d; padding-left: 24px; }
.term-ok  { color: #00e5a0; padding-left: 24px; }
.term-cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--accent);
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ============================================
   TOOLS SECTION
   ============================================ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.tool-card {
  padding: 28px 24px;
  text-align: center;
  cursor: pointer;
}

.tool-card:hover { border-color: var(--accent); }

.tool-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}

.tool-card h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.tool-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.tool-badge {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(0,229,160,0.08);
  border: 1px solid rgba(0,229,160,0.2);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.08em;
}

/* ============================================
   WHY US SECTION
   ============================================ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.why-items { display: flex; flex-direction: column; gap: 8px; }

.why-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.why-item:hover { background: var(--surface); }

.why-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.why-item h4 { font-size: 17px; margin-bottom: 6px; }
.why-item p { font-size: 14px; color: var(--text-muted); }

.why-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.metric-card:nth-child(2) { margin-left: 40px; }

.metric-chart { position: relative; width: 64px; height: 64px; flex-shrink: 0; }

.metric-chart svg { width: 100%; height: 100%; transform: rotate(-90deg); }

.metric-chart-bg { fill: none; stroke: var(--border); stroke-width: 5; }
.metric-chart-fill { fill: none; stroke-width: 5; stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease); }

.metric-info strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.metric-info span { font-size: 13px; color: var(--text-muted); }

/* ============================================
   CONTACT / CTA SECTION
   ============================================ */
.cta-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.cta-text h2 { font-size: clamp(28px, 4vw, 48px); margin-bottom: 16px; }
.cta-text p { color: var(--text-muted); margin-bottom: 32px; }

.cta-items { display: flex; flex-direction: column; gap: 12px; }

.cta-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
}
.cta-item::before {
  content: '✓';
  width: 20px; height: 20px;
  background: rgba(0,229,160,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ============================================
   BLOG PREVIEW
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.post-card { padding: 0; overflow: hidden; }

.post-image {
  height: 180px;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}

.post-body { padding: 24px; }

.post-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.post-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent2);
}

.post-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.post-card h3 { font-size: 17px; margin-bottom: 10px; line-height: 1.4; }
.post-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  padding: 140px 0 80px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 { font-size: clamp(36px, 5vw, 64px); margin-bottom: 16px; }
.page-hero p { color: var(--text-muted); font-size: 18px; max-width: 600px; }

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.fade-up:nth-child(1) { transition-delay: 0.05s; }
.fade-up:nth-child(2) { transition-delay: 0.12s; }
.fade-up:nth-child(3) { transition-delay: 0.19s; }
.fade-up:nth-child(4) { transition-delay: 0.26s; }
.fade-up:nth-child(5) { transition-delay: 0.33s; }
.fade-up:nth-child(6) { transition-delay: 0.40s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-pad: 60px; }

  .main-nav { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,10,15,0.98); flex-direction: column; justify-content: center;
    align-items: center; gap: 32px; z-index: 999; }
  .main-nav.open { display: flex; }
  .main-nav a { font-size: 18px; }

  .menu-toggle { display: flex; z-index: 1001; position: relative; }

  .grid-2, .grid-3, .hero-stats, .lab-grid, .why-grid, .cta-inner, .footer-grid,
  .blog-grid { grid-template-columns: 1fr; gap: 32px; }

  .hero-stat { flex-direction: column; }
  .hero-visual { display: none; }
  .metric-card:nth-child(2) { margin-left: 0; }
  .case-result { flex-wrap: wrap; }

  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; }
  .btn { justify-content: center; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   WORDPRESS SPECIFICS
   ============================================ */
.wp-block-image { margin: 2em 0; }
.alignnone, .aligncenter, .alignleft, .alignright { margin: 1em 0; }
.aligncenter { margin: 0 auto; display: block; }
.wp-caption { max-width: 100%; }

/* Comments */
.comment-form input,
.comment-form textarea { background: var(--bg2); border: 1px solid var(--border); color: var(--text); border-radius: var(--radius); padding: 10px 14px; width: 100%; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--accent); }
#submit { background: var(--accent); color: var(--bg); padding: 12px 24px; border: none; border-radius: var(--radius); font-family: var(--font-mono); cursor: pointer; font-weight: 700; }

/* Screen reader text */
.screen-reader-text { position: absolute; left: -9999em; }

/* ============================================
   CLICK / Z-INDEX FIXES
   Декоративные слои не должны перехватывать клики
   ============================================ */
.hero-bg,
.hero-grid-lines,
.hero-visual,
.cases-hero-bg,
.srv-hero-bg,
.srv-hero-grid,
.srv-cta-glow,
.lab-section::before,
.srv-card-watermark {
  pointer-events: none !important;
}

/* Блог и кейсы — поверх всего */
.blog-grid,
.blog-grid article,
.blog-grid a,
.blog-grid .btn,
.post-card .post-body,
.post-card .btn-ghost {
  position: relative;
  z-index: 10;
}

/* Картинки в карточках — правильное соотношение */
.post-image img,
.post-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Вложенный <p> из wp_autop в excerpt */
.post-card p p { margin: 0; display: inline; }

/* ============================================
   BLOG ALL-ARTICLES LINK (лендинг → блог)
   ============================================ */
.blog-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
  flex-shrink: 0;
  margin-bottom: 4px; /* выравнивание с baseline текста */
}

.blog-all-link:hover {
  color: var(--accent);
  opacity: 1;
}

.blog-all-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  margin-left: 14px;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
  flex-shrink: 0;
}

.blog-all-link:hover .blog-all-arrow {
  border-color: var(--accent);
  background: rgba(0,229,160,0.08);
  transform: translateX(4px);
}
