/* ============================================================
   vchera.digital — main.css
   Mobile-first. Breakpoints: 375 / 768 / 1280
   ============================================================ */

:root{
  --bg:             #080C0A;
  --bg-soft:        #0D1310;
  --accent:         #00FF87;
  --accent-muted:   #10B981;
  --text:           #F0F0F0;
  --text-muted:     #6B7B74;
  --border:         rgba(0, 255, 135, 0.12);
  --border-strong:  rgba(0, 255, 135, 0.28);
  --glow:           rgba(0, 255, 135, 0.15);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;
  --font-body:    'Space Grotesk', system-ui, sans-serif;

  --container-w: 1200px;
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --radius-sm: 0.6rem;

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

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul,ol{ margin: 0; padding: 0; list-style: none; }
button{ font-family: inherit; }
::selection{ background: var(--accent); color: var(--bg); }

.container{
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 1280px){
  .container{ padding: 0 2.5rem; }
}

.skip-link{
  position: absolute;
  left: -9999px;
}
.skip-link:focus{
  left: 1rem;
  top: 1rem;
  background: var(--accent);
  color: var(--bg);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 200;
}

/* ---------- Fixed background layer ---------- */
.bg-fixed{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.bg-fixed__grid{
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0,255,135,0.10) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}
.bg-fixed__glow{
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
  filter: blur(40px);
}

/* ---------- Glassmorphism ---------- */
.glass{
  background: rgba(15, 22, 18, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
}

/* ---------- Light section variant (alternates with dark sections, ref. intensa.ru) ---------- */
.section--light{
  --bg:            #F3F5F1;
  --text:          #11140F;
  --text-muted:    #5C6B5F;
  --border:        rgba(17, 20, 15, 0.10);
  --border-strong: rgba(17, 20, 15, 0.22);
  --accent:        #00C46C;
  --accent-muted:  #0E7A47;
  --glow:          rgba(0, 255, 135, 0.18);
  background: var(--bg);
  color: var(--text);
}
.section--light .glass{
  background: #FFFFFF;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(17, 20, 15, 0.05);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
/* Terminal-style widget stays dark even inside a light section — deliberate accent, not an oversight */
.section--light .process-monitor{
  --text:       #F0F0F0;
  --text-muted: #6B7B74;
  --border:     rgba(0, 255, 135, 0.14);
  background: #0D1310;
  color: var(--text);
  box-shadow: 0 24px 48px -24px rgba(0,0,0,0.35);
}
/* faq-item has its own hardcoded dark background that wins over .glass by source order — patch it explicitly */
.section--light .faq-item{
  background: #FFFFFF;
}
/* form inputs default to a translucent dark fill tuned for dark sections — needs a light-section equivalent */
.section--light .form-field input,
.section--light .form-field textarea,
.section--light .form-field select{
  background: #FFFFFF;
  border-color: var(--border);
}

/* ---------- Typography ---------- */
h1,h2,h3{
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
}
p{ margin: 0; }

.section-kicker{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.6rem;
}
.section-title{
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
}
.section-head{ margin-bottom: 2.5rem; }

.accent-text{ color: var(--accent); }

/* ---------- Buttons & links ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  will-change: transform;
}
.btn:active{ transform: scale(0.97); }

.btn--accent{
  background: var(--accent);
  color: #04140C;
}
.btn--accent:hover{
  box-shadow: 0 0 0 1px var(--accent), 0 8px 24px -8px var(--glow);
  transform: translateY(-1px);
}
.btn--lg{ padding: 1rem 2rem; font-size: 1rem; }
.btn--nav{ display: none; }
.btn--ghost{
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover{ border-color: var(--accent); color: var(--accent); }

.link-arrow{
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-muted);
  transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}
.link-arrow:hover{ color: var(--accent); gap: 0.55rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled{
  background: rgba(8, 12, 10, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.site-header__inner{
  max-width: var(--container-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
}
.logo{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.logo__dot{ color: var(--accent); }

.main-nav{ display: none; }

.burger{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 0;
}
.burger span{
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu{
  position: fixed;
  inset: 0;
  top: 0;
  z-index: 90;
  background: rgba(8, 12, 10, 0.98);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.mobile-menu.is-open{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mobile-menu nav{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}
.mobile-menu nav a{
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
}
.mobile-menu nav a.btn{ font-size: 1rem; margin-top: 0.5rem; }

@media (min-width: 768px){
  .main-nav{
    display: flex;
    gap: 2rem;
    font-size: 0.92rem;
    color: var(--text-muted);
  }
  .main-nav a{ transition: color 0.25s var(--ease); }
  .main-nav a:hover{ color: var(--accent); }
  .btn--nav{ display: inline-flex; }
  .burger{ display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 6rem 0 3rem;
}
.hero__inner{
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.tag-label{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin: 0 0 1.5rem;
}
.tag-label__dot{
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.cursor-blink{
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink{ 50%{ opacity: 0; } }

.hero__title{
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  margin-bottom: 1.5rem;
}
.hero__subtitle{
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 42ch;
  margin-bottom: 2.25rem;
}
.hero__actions{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.hero__visual{ display: flex; flex-direction: column; gap: 1.5rem; }

.terminal{
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(10, 16, 13, 0.7);
  backdrop-filter: blur(12px);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.terminal__bar{
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
}
.terminal__dot{ width: 9px; height: 9px; border-radius: 50%; opacity: 0.7; }
.terminal__dot--r{ background: #FF5F57; }
.terminal__dot--y{ background: #FEBC2E; }
.terminal__dot--g{ background: #28C840; }
.terminal__title{
  margin-left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}
.terminal__body{
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--accent-muted);
  padding: 1rem 1.1rem;
  min-height: 9.5rem;
  white-space: pre-wrap;
  word-break: break-word;
}
.terminal__body .line-done{ color: var(--text-muted); }
.terminal__body .line-current::after{
  content: '▍';
  animation: blink 1s steps(1) infinite;
  color: var(--accent);
}

.hero__stats{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.stat-chip{
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: center;
}
.stat-chip__value{
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--accent);
}
.stat-chip__label{
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

@media (min-width: 768px){
  .hero__stats{ grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px){
  .hero__inner{
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
  }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services{ padding: 5rem 0; position: relative; z-index: 1; }

.services-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px){
  .services-grid{ grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

.service-card{
  position: relative;
  padding: 2rem;
  --mx: 50%;
  --my: 50%;
}
.service-card::before{
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  padding: 1px;
  background: radial-gradient(220px circle at var(--mx) var(--my), var(--accent), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.service-card:hover::before{ opacity: 1; }

.service-card__icon{
  width: 2.5rem; height: 2.5rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.service-card__icon svg{ width: 100%; height: 100%; }
.service-card__title{
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}
.service-card__desc{
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 60ch;
  margin-bottom: 1.25rem;
}

/* ============================================================
   PROCESS
   ============================================================ */
.process{ padding: 5rem 0; position: relative; z-index: 1; }

.process-steps{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.process-step{
  padding: 1.5rem 0;
}
.process-step__num{
  display: block;
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}
.process-step__title{
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.process-step__desc{
  color: var(--text-muted);
  max-width: 38ch;
}
.process-step__connector{
  display: none;
}

@media (min-width: 768px){
  .process-steps{
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: start;
  }
  .process-step__connector{
    display: block;
    height: 1px;
    margin-top: 2.2rem;
    background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
    position: relative;
    overflow: hidden;
  }
  .process-step__connector::after{
    content: '';
    position: absolute;
    top: 0; left: -30%;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: travel 2.8s linear infinite;
  }
}
@keyframes travel{
  to{ left: 130%; }
}

/* ============================================================
   WHY FAST
   ============================================================ */
.why-fast{ padding: 5rem 0; position: relative; z-index: 1; }
.why-fast__inner{
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1280px){
  .why-fast__inner{ grid-template-columns: 1fr 1fr; gap: 5rem; }
}

.thesis-list{
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 2rem;
}
.thesis-list__item{
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  font-size: 0.98rem;
  color: var(--text);
}
.thesis-list__icon{
  flex-shrink: 0;
  width: 1.4rem; height: 1.4rem;
  color: var(--accent);
  margin-top: 0.1rem;
}
.thesis-list__icon svg{ width: 100%; height: 100%; }

.process-monitor{
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.process-monitor__row{
  display: grid;
  grid-template-columns: minmax(0,1fr) 2fr auto;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.process-monitor__row > span:first-child{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bar{
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.bar__fill{
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent-muted);
  border-radius: 999px;
  transition: width 1.2s var(--ease);
}
.bar__fill.is-visible{ width: var(--w); }
.process-monitor__pct{ color: var(--accent); }
.process-monitor__log{
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-muted);
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

/* ============================================================
   NUMBERS
   ============================================================ */
.numbers{ padding: 4rem 0; position: relative; z-index: 1; }
.numbers-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
  text-align: left;
}
@media (min-width: 768px){
  .numbers-grid{ grid-template-columns: repeat(4, 1fr); }
}
.number-item{
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.number-item__value{
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
}
.number-item__label{
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================================
   CASES
   ============================================================ */
.cases{ padding: 5rem 0; position: relative; z-index: 1; }
.cases-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px){
  .cases-grid{
    grid-template-columns: repeat(2, 1fr);
  }
  .case-card--lg{ grid-column: span 2; }
  .case-card--lg .case-card__media{ aspect-ratio: 16/8; }
}
@media (min-width: 1280px){
  .cases-grid{ grid-template-columns: 2fr 3fr; }
  .case-card--lg{ grid-column: auto; }
}

.case-card__media{
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}
.case-card__media img{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.case-card__media:hover img{ transform: scale(1.04); }
.case-card__tag{
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(8,12,10,0.75);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  backdrop-filter: blur(6px);
}
.case-card__title{ font-size: 1.15rem; margin-bottom: 0.4rem; }
.case-card__result{
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
  max-width: 50ch;
}
.cases-cta{ margin-top: 2.5rem; text-align: center; }

/* ---------- .case-card as a glass link card (inner pages: amocrm, sites, marketing, branding, cases) ---------- */
a.case-card{
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
a.case-card:hover{ transform: translateY(-3px); }
a.case-card img{
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
a.case-card.case-card--lg img{ aspect-ratio: 16/9; }
.case-card__body{ padding: 1.5rem; }
.case-card__body .case-card__tag{
  position: static;
  display: inline-block;
  margin-bottom: 0.6rem;
  backdrop-filter: none;
  background: rgba(0,255,135,0.08);
}

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews{ padding: 5rem 0; position: relative; z-index: 1; }
.reviews-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px){
  .reviews-grid{ grid-template-columns: repeat(3, 1fr); }
}
.review-card{
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.review-card blockquote{
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
}
.review-card figcaption{
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.85rem;
}
.review-card__name{ font-weight: 600; }
.review-card__role{ color: var(--text-muted); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta{ padding: 6rem 0; position: relative; z-index: 1; }
.final-cta__inner{
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.final-cta__title{
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.75rem;
}
.final-cta__subtitle{
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.contact-form{
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}
.contact-form__row{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px){
  .contact-form__row{ grid-template-columns: 1fr 1fr; }
}
.form-field{
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-field label{
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.form-field input,
.form-field textarea{
  background: rgba(15,22,18,0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,255,135,0.12);
}
.form-field input::placeholder,
.form-field textarea::placeholder{ color: var(--text-muted); }
.form-field.has-error input,
.form-field.has-error textarea{ border-color: #FF6B6B; }
.form-field__error{
  font-size: 0.78rem;
  color: #FF6B6B;
  min-height: 1em;
}

.btn--submit{
  align-self: flex-start;
  position: relative;
  justify-content: center;
  min-width: 10rem;
}
.btn__spinner{
  display: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(4,20,12,0.3);
  border-top-color: #04140C;
  animation: spin 0.7s linear infinite;
}
.btn--submit.is-loading .btn__label{ opacity: 0.6; }
.btn--submit.is-loading .btn__spinner{ display: inline-block; }
@keyframes spin{ to{ transform: rotate(360deg); } }

.form-status{
  font-size: 0.9rem;
  min-height: 1.2em;
  font-family: var(--font-mono);
}
.form-status.is-success{ color: var(--accent); }
.form-status.is-error{ color: #FF6B6B; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}
.site-footer__inner{
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer__tagline{
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  max-width: 32ch;
}
.site-footer__nav{
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.site-footer__nav a:hover{ color: var(--accent); }
.site-footer__contacts{
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.site-footer__contacts a:hover{ color: var(--accent); }
.site-footer__copy{
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

@media (min-width: 768px){
  .site-footer__inner{
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}

/* ============================================================
   GENERIC SECTION + UTILITIES (inner pages)
   ============================================================ */
.section{
  padding: 4rem 0;
  position: relative;
  z-index: 1;
}
.visually-hidden{
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   NAV DROPDOWN — «Услуги»
   ============================================================ */
.nav-dropdown{ position: relative; }
.nav-dropdown__trigger{
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
}
.nav-dropdown__trigger:hover,
.nav-dropdown__trigger.is-active{ color: var(--accent); }
.nav-dropdown__caret{
  font-size: 0.7rem;
  transition: transform 0.25s var(--ease);
}
.nav-dropdown.is-open .nav-dropdown__caret{ transform: rotate(180deg); }
.nav-dropdown__panel{
  position: absolute;
  top: calc(100% + 0.9rem);
  left: 50%;
  transform: translate(-50%, -6px);
  min-width: 220px;
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
  background: rgba(10, 16, 13, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 16px 32px -16px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.nav-dropdown.is-open .nav-dropdown__panel{
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav-dropdown__panel a{
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-dropdown__panel a:hover,
.nav-dropdown__panel a.is-active{
  background: rgba(0,255,135,0.08);
  color: var(--accent);
}
.main-nav a.is-active{ color: var(--accent); }
.mobile-menu nav a.is-active{ color: var(--accent); }

/* ============================================================
   INNER PAGE HERO (amocrm, sites, marketing, branding, ...)
   ============================================================ */
.page-hero{
  padding: 7.5rem 0 3.5rem;
  position: relative;
  z-index: 1;
}
.page-hero__inner{
  max-width: 50rem;
}
.page-hero__title{
  font-size: clamp(2rem, 6vw, 3.4rem);
  margin-bottom: 1.25rem;
}
.page-hero__subtitle{
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--text-muted);
  max-width: 50ch;
  margin-bottom: 2rem;
}
.page-hero__actions{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.breadcrumbs a{ color: var(--text-muted); transition: color 0.2s var(--ease); }
.breadcrumbs a:hover{ color: var(--accent); }
.breadcrumbs span[aria-hidden]{ opacity: 0.5; }
.breadcrumbs .is-current{ color: var(--accent-muted); }

/* ============================================================
   PAIN POINTS ("боли клиента")
   ============================================================ */
.pain-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
@media (min-width: 768px){
  .pain-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1280px){
  .pain-grid{ grid-template-columns: repeat(3, 1fr); }
}
.pain-card{
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.pain-card__icon{
  flex-shrink: 0;
  width: 2rem; height: 2rem;
  color: #FF8A65;
  opacity: 0.9;
}
.pain-card__icon svg{ width: 100%; height: 100%; }
.pain-card__title{ font-size: 1.02rem; margin-bottom: 0.35rem; }
.pain-card__desc{ color: var(--text-muted); font-size: 0.88rem; }

/* ============================================================
   CHECKLIST / HORIZONTAL STEPPER (что входит)
   ============================================================ */
.checklist{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px){
  .checklist{ grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
}
.checklist-item{
  padding: 1.5rem;
  border-top: 2px solid var(--border-strong);
}
.checklist-item__num{
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.8rem;
  display: block;
  margin-bottom: 0.6rem;
}
.checklist-item__title{ font-size: 1.05rem; margin-bottom: 0.4rem; }
.checklist-item__desc{ color: var(--text-muted); font-size: 0.85rem; }

/* ============================================================
   PRICING — карточки и табы
   ============================================================ */
.tabs-bar{
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}
.tabs-bar [data-tab]{
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.tabs-bar [data-tab]:hover{ color: var(--text); }
.tabs-bar [data-tab].is-active{
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0,255,135,0.08);
}
[data-tab-panel]{ display: none; }
[data-tab-panel].is-active{ display: block; }

.pricing-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px){
  .pricing-grid{ grid-template-columns: repeat(3, 1fr); }
}
.pricing-card{
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
}
.pricing-card--featured{
  border-color: var(--border-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 0 0 1px var(--accent), 0 20px 40px -20px var(--glow);
}
.pricing-card__badge{
  position: absolute;
  top: -0.7rem;
  left: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--accent);
  color: #04140C;
}
.pricing-card__name{ font-size: 1.1rem; margin-bottom: 0.6rem; }
.pricing-card__price{
  font-family: var(--font-mono);
  font-size: 1.9rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.pricing-card__period{
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.pricing-card__features{
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.75rem;
  flex: 1;
}
.pricing-card__features li{
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.pricing-card__features li::before{
  content: '';
  flex-shrink: 0;
  width: 14px; height: 14px;
  margin-top: 0.15rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-muted));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ============================================================
   COMPARISON TABLE (фикс vs KPI)
   ============================================================ */
.compare-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.compare-table th,
.compare-table td{
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare-table th{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.compare-table td{ color: var(--text-muted); }
.compare-table tr:last-child td{ border-bottom: none; }
.table-scroll{ overflow-x: auto; }

/* ============================================================
   TECH STACK GRID
   ============================================================ */
.tech-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 768px){
  .tech-grid{ grid-template-columns: repeat(4, 1fr); }
}
.tech-chip{
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}
.tech-chip__icon{ width: 1.8rem; height: 1.8rem; color: var(--accent); }
.tech-chip__icon svg{ width: 100%; height: 100%; }
.tech-chip__label{ font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); }

/* ============================================================
   GALLERY — masonry / горизонтальный скролл
   ============================================================ */
.gallery-masonry{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 768px){
  .gallery-masonry{ grid-template-columns: repeat(4, 1fr); }
}
.gallery-masonry__item{
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}
.gallery-masonry__item img{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.gallery-masonry__item:hover img{ transform: scale(1.05); }
.gallery-masonry__item--tall{ grid-row: span 2; }

/* ============================================================
   FAQ — аккордеон
   ============================================================ */
.faq-list{
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 48rem;
}
.faq-item{
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(15,22,18,0.4);
}
.faq-item__q{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.faq-item__icon{
  flex-shrink: 0;
  width: 1.1rem; height: 1.1rem;
  position: relative;
}
.faq-item__icon::before,
.faq-item__icon::after{
  content: '';
  position: absolute;
  background: var(--accent);
  transition: transform 0.25s var(--ease);
}
.faq-item__icon::before{ top: 50%; left: 0; width: 100%; height: 1.5px; transform: translateY(-50%); }
.faq-item__icon::after{ top: 0; left: 50%; width: 1.5px; height: 100%; transform: translateX(-50%); }
.faq-item.is-open .faq-item__icon::after{ transform: translateX(-50%) scaleY(0); }
.faq-item__a{
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease);
}
.faq-item__a p{
  padding: 0 1.25rem 1.1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 60ch;
}
.faq-item.is-open .faq-item__a{ max-height: 480px; }

/* ============================================================
   TEAM
   ============================================================ */
.team-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (min-width: 768px){
  .team-grid{ grid-template-columns: repeat(4, 1fr); }
}
.team-card{ text-align: left; }
.team-card__photo{
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 0.9rem;
  border: 1px solid var(--border);
}
.team-card__photo img{ width: 100%; height: 100%; object-fit: cover; }
.team-card__name{ font-size: 0.98rem; margin-bottom: 0.15rem; }
.team-card__role{ font-size: 0.82rem; color: var(--text-muted); }

/* ============================================================
   MANIFESTO (about)
   ============================================================ */
.manifest-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px){
  .manifest-grid{ grid-template-columns: repeat(2, 1fr); }
}
.manifest-item{
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.manifest-item__num{
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.8rem;
  display: block;
  margin-bottom: 0.6rem;
}
.manifest-item__title{ font-size: 1.1rem; margin-bottom: 0.4rem; }
.manifest-item__desc{ color: var(--text-muted); font-size: 0.9rem; max-width: 48ch; }

/* ============================================================
   REPORT MOCKUP (marketing)
   ============================================================ */
.report-mock{
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.report-mock__metrics{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.report-mock__metric{
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.report-mock__metric-value{
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--accent);
}
.report-mock__metric-label{ font-size: 0.72rem; color: var(--text-muted); }
.report-mock__chart{
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  height: 80px;
}
.report-mock__bar{
  flex: 1;
  background: linear-gradient(180deg, var(--accent), var(--accent-muted));
  border-radius: 3px 3px 0 0;
  opacity: 0.85;
}

/* ============================================================
   CASES — FILTER BAR
   ============================================================ */
.filter-bar{
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}
.filter-bar [data-filter]{
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.filter-bar [data-filter]:hover{ color: var(--text); }
.filter-bar [data-filter].is-active{
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0,255,135,0.08);
}
.case-grid-full{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px){
  .case-grid-full{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1280px){
  .case-grid-full{ grid-template-columns: repeat(3, 1fr); }
}
.load-more-wrap{ text-align: center; margin-top: 2.5rem; }

/* ============================================================
   CASE DETAIL PAGE
   ============================================================ */
.case-detail-hero{
  padding: 7.5rem 0 3rem;
  position: relative;
  z-index: 1;
}
.case-detail-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.case-detail-meta strong{ color: var(--text); font-weight: 500; }
.case-detail-section{ padding: 3rem 0; position: relative; z-index: 1; }
.case-detail-section__title{ font-size: 1.6rem; margin-bottom: 1.25rem; }
.case-detail-section__body{ color: var(--text-muted); max-width: 64ch; }
.case-detail-stats{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.75rem;
}
@media (min-width: 768px){
  .case-detail-stats{ grid-template-columns: repeat(3, 1fr); }
}
.case-detail-gallery{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
@media (min-width: 768px){
  .case-detail-gallery{ grid-template-columns: repeat(2, 1fr); }
}
.case-detail-gallery img{
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

/* ============================================================
   ALTERNATIVE CONTACTS (contact.html)
   ============================================================ */
.contact-alt{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px){
  .contact-alt{ grid-template-columns: repeat(3, 1fr); }
}
.contact-alt__btn{
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.25rem 1.5rem;
}
.contact-alt__icon{ width: 1.6rem; height: 1.6rem; color: var(--accent); flex-shrink: 0; }
.contact-alt__icon svg{ width: 100%; height: 100%; }
.contact-alt__label{ font-size: 0.95rem; }
.contact-alt__value{ font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); }

/* ============================================================
   LEGAL DETAILS (реквизиты)
   ============================================================ */
.legal-card{
  padding: 1.5rem 1.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 40rem;
}
.legal-card strong{ color: var(--text); }

/* ============================================================
   SELECT FIELD
   ============================================================ */
.form-field select{
  background: rgba(15,22,18,0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%236B7B74' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.1rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.form-field select:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,255,135,0.12);
}

/* ============================================================
   404
   ============================================================ */
.error-page{
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 6rem 0;
}
.error-page__code{
  font-family: var(--font-mono);
  font-size: clamp(4rem, 16vw, 8rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
}
.error-page__title{ font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 0.75rem; }
.error-page__desc{ color: var(--text-muted); margin-bottom: 2rem; max-width: 42ch; }
