/* ============================================================
   QADAM Transformation Group — styles.css
   Design read: B2B-лендинг для консервативной квазигос/
   корпоративной аудитории + растущий МСБ. Сдержанный язык,
   один уверенный акцент, mobile-first.
   Dials: VARIANCE 4 / MOTION 3 / DENSITY 4
   ============================================================ */

:root {
  /* Palette — "Forest" family: нейтральный холодный фон + один тёмно-зелёный акцент.
     Сознательно не AI-фиолетовый/синий и не warm-beige+brass (premium-consumer tell). */
  --bg: #f5f6f4;
  --surface: #ffffff;
  --surface-dark: #11201b;
  --surface-dark-2: #16271f;
  --text: #14181a;
  --text-muted: #4b5550;
  --text-on-dark: #f3f5f3;
  --text-on-dark-muted: #aab8b1;
  --accent: #1f6f54;
  --accent-strong: #16523e;
  --accent-on-dark: #4fcb9f;
  --border: #dee3de;
  --border-dark: rgba(255, 255, 255, 0.12);

  --radius-card: 12px;
  --radius-input: 8px;
  --radius-pill: 999px;

  --container: 1180px;
  --gap-section: clamp(3.5rem, 7vw, 6rem);

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

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Golos Text", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

@media (min-width: 768px) {
  .container { padding-inline: 2rem; }
}

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

p { margin: 0; }

a { color: inherit; }

button { font-family: inherit; cursor: pointer; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}
.btn-primary:hover { background: var(--accent-strong); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-strong); }

.btn-on-dark {
  background: var(--accent-on-dark);
  color: #0b1a14;
}
.btn-on-dark:hover { background: #6fdcb3; }

.btn-ghost-on-dark {
  background: transparent;
  color: var(--text-on-dark);
  border-color: var(--border-dark);
}
.btn-ghost-on-dark:hover { border-color: var(--accent-on-dark); }

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 246, 244, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}

.nav-logo {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s var(--ease);
}
.nav-links a:hover { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-cta { display: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-input);
  border: 1px solid var(--border);
  background: var(--surface);
}
.nav-toggle svg { width: 18px; height: 18px; }

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 0 1.25rem;
  border-top: 1px solid var(--border);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  padding: 0.7rem 0.25rem;
  border-bottom: 1px solid var(--border);
}
.mobile-menu .btn { margin-top: 0.75rem; }

@media (min-width: 1024px) {
  .mobile-menu { display: none !important; }
}

/* ---------- Section scaffolding ---------- */

section { padding-block: var(--gap-section); }

.section-head {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.eyebrow.on-dark { color: var(--accent-on-dark); }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(2.5rem, 6vw, 5.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

.hero-content h1 {
  font-size: clamp(2.25rem, 5vw, 3.4rem);
  max-width: 16ch;
}

.hero-content .subtitle {
  margin-top: 1.25rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 46ch;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem 1.5rem;
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  max-width: 30rem;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hero-trust-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent);
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--surface-dark);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 32, 27, 0) 40%, rgba(17, 32, 27, 0.55) 100%);
}

.hero-visual-caption {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  right: 1.25rem;
  color: var(--text-on-dark);
  font-size: 0.85rem;
  z-index: 1;
  font-weight: 500;
}

/* ---------- Подход ---------- */

.approach-quote {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.55;
  color: var(--text);
  max-width: 56ch;
  font-weight: 500;
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin-bottom: 3rem;
}

.approach-points {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

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

.approach-point {
  padding: 1.5rem;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--border);
}

.approach-point h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.approach-point p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ---------- Решения ---------- */

.solutions-groups {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.solution-group-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.solution-group-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.solution-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .solution-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .solution-cards[data-count="4"] { grid-template-columns: repeat(4, 1fr); }
  .solution-cards[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
  .solution-cards[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
}

.solution-card {
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.solution-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.solution-card h4 {
  font-size: 1rem;
  margin: 0;
  font-weight: 700;
}

.solution-card .desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.solution-card .result {
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 500;
}

.solution-card .result span {
  color: var(--text-muted);
  font-weight: 400;
}

/* ---------- Процесс ---------- */

.process-note {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 56ch;
  margin-bottom: 2.5rem;
}

.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

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

.process-step {
  padding: 1.5rem 1.25rem 1.5rem 0;
  border-top: 1px solid var(--border);
  position: relative;
}

.process-step.is-key {
  border-top-color: var(--accent);
}

.process-step-index {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.process-step.is-key .process-step-index { color: var(--accent); }

.process-step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.process-step p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.process-step-badge {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-strong);
  background: rgba(31, 111, 84, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
}

/* ---------- AI block ---------- */

.ai-section {
  background: var(--surface-dark);
  color: var(--text-on-dark);
  padding-block: var(--gap-section);
}

.ai-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .ai-grid { grid-template-columns: 1.1fr 0.9fr; }
}

.ai-section h2 {
  color: var(--text-on-dark);
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  max-width: 20ch;
}

.ai-section .ai-text {
  margin-top: 1.25rem;
  color: var(--text-on-dark-muted);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 52ch;
}

.ai-section .btn { margin-top: 2rem; }

.ai-visual {
  border-radius: var(--radius-card);
  border: 1px solid var(--border-dark);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.ai-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Доверие ---------- */

.trust-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 58ch;
  line-height: 1.65;
}

/* ---------- CTA ---------- */

.cta-section {
  background: var(--accent-strong);
  border-radius: var(--radius-card);
  margin-inline: 1.25rem;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4rem);
  color: var(--text-on-dark);
  text-align: left;
}

@media (min-width: 768px) {
  .cta-section { margin-inline: 2rem; }
}

.cta-inner {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
}

.cta-section h2 {
  color: #ffffff;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  max-width: 22ch;
}

.cta-section p {
  margin-top: 0.75rem;
  color: rgba(243, 245, 243, 0.82);
  max-width: 44ch;
  font-size: 0.95rem;
}

.cta-section .btn { flex-shrink: 0; }

/* ---------- Контакты ---------- */

.contacts-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .contacts-grid { grid-template-columns: 0.85fr 1.15fr; }
}

.contacts-info p.subtitle {
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.55;
}

.contacts-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}

.contact-row svg {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-row .label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.1rem;
}

.contact-row .value {
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-whatsapp {
  margin-top: 1.75rem;
}

/* Form */

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

@media (min-width: 640px) {
  .form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-field.full { grid-column: 1 / -1; }

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-input);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.15s var(--ease);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #8a938e;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-field textarea { resize: vertical; min-height: 96px; }

.form-error {
  font-size: 0.78rem;
  color: #b3261e;
  min-height: 1em;
}

.form-submit-row {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-status {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.form-status.success { color: var(--accent-strong); font-weight: 600; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-brand { font-weight: 700; color: var(--text); }

.footer-legal { font-size: 0.78rem; }

/* ---------- Floating WhatsApp button ---------- */

.fab-whatsapp {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(20, 24, 26, 0.25);
  transition: transform 0.15s var(--ease), background-color 0.2s var(--ease);
  text-decoration: none;
}
.fab-whatsapp:hover { background: var(--accent-strong); transform: translateY(-2px); }
.fab-whatsapp svg { width: 26px; height: 26px; color: #ffffff; }

@media (min-width: 1024px) {
  .fab-whatsapp { display: none; }
}
