/* ==========================================================================
   AutomatAI — основні стилі
   ========================================================================== */

:root {
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-dark: #0f172a;
  --color-dark-soft: #1e293b;
  --color-text: #334155;
  --color-text-light: #64748b;
  --color-border: #e2e8f0;
  --color-primary: #6d28d9;
  --color-primary-light: #8b5cf6;
  --color-accent: #06b6d4;
  --gradient-primary: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 50%, #06b6d4 100%);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.16);
  --max-width: 1180px;
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  color: var(--color-dark);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { color: var(--color-text); }

.section {
  padding: 88px 0;
}

.section--tight {
  padding: 56px 0;
}

.section--alt {
  background: var(--color-surface);
}

.section--dark {
  background: var(--color-dark);
  color: #cbd5e1;
}

.section--dark h2,
.section--dark h3 {
  color: #ffffff;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: #f1e8fe;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section--dark .eyebrow {
  background: rgba(139, 92, 246, 0.18);
  color: #c4b5fd;
}

.section-head p {
  color: var(--color-text-light);
  margin-top: 12px;
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-dark);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-light {
  background: #ffffff;
  color: var(--color-dark);
}

.btn-light:hover {
  box-shadow: var(--shadow-md);
}

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-dark);
}

.nav-brand .logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}

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

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--color-primary);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 96px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy p.lead {
  font-size: 1.15rem;
  color: var(--color-text-light);
  margin: 20px 0 32px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.hero-trust {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-trust div strong {
  display: block;
  font-size: 1.5rem;
  color: var(--color-dark);
}

.hero-trust div span {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}

.hero-badge {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 220px;
}

.hero-badge .dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gradient-primary);
  flex-shrink: 0;
}

.hero-badge strong {
  display: block;
  font-size: 0.95rem;
  color: var(--color-dark);
}

.hero-badge span {
  font-size: 0.78rem;
  color: var(--color-text-light);
}

/* ---------- Logos strip ---------- */
.logo-strip {
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.logo-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.logo-strip span.label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-light);
  font-weight: 700;
}

.logo-strip-marks {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.logo-strip-marks span {
  font-weight: 800;
  font-size: 1.1rem;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

/* ---------- Cards grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 20px;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--color-text-light);
  font-size: 0.96rem;
}

.card ul {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card ul li {
  font-size: 0.92rem;
  color: var(--color-text);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.card ul li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-accent);
}

/* ---------- Service image card ---------- */
.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.service-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.service-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.service-card-body p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.service-card-body .tag-row {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
}

.tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-primary);
  background: #f1e8fe;
  padding: 5px 12px;
  border-radius: 999px;
}

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  position: relative;
  padding: 28px 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.step .step-num {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
  display: block;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ---------- Stats ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stats-row strong {
  display: block;
  font-size: 2.3rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stats-row span {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.section--dark .stats-row span {
  color: #94a3b8;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
}

.testimonial-card .stars {
  color: #f59e0b;
  margin-bottom: 14px;
  font-size: 0.95rem;
  letter-spacing: 2px;
}

.testimonial-card p.quote {
  font-size: 0.97rem;
  color: var(--color-text);
  margin-bottom: 20px;
}

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-person img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-person strong {
  display: block;
  font-size: 0.92rem;
  color: var(--color-dark);
}

.testimonial-person span {
  font-size: 0.82rem;
  color: var(--color-text-light);
}

/* ---------- Team ---------- */
.team-card {
  text-align: center;
}

.team-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.team-card strong {
  display: block;
  color: var(--color-dark);
  font-size: 1.02rem;
}

.team-card span {
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 600;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  color: #fff;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 8px;
}

.cta-band p {
  color: rgba(255,255,255,0.85);
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 7px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--color-dark);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.12);
}

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

.field-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.field-check input {
  width: auto;
  margin-top: 3px;
}

.form-note {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 14px;
}

.form-note a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* honeypot field - hidden from humans, visible to bots */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 22px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--color-dark);
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--color-primary);
  font-weight: 400;
  margin-left: 16px;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin-top: 14px;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  padding: 56px 0 64px;
  background: var(--color-dark);
  color: #fff;
}

.page-header .eyebrow {
  background: rgba(139, 92, 246, 0.18);
  color: #c4b5fd;
}

.page-header h1 {
  color: #fff;
  margin-bottom: 14px;
}

.page-header p {
  color: #94a3b8;
  max-width: 620px;
  font-size: 1.05rem;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 18px;
}

.breadcrumbs a {
  color: #c4b5fd;
}

/* ---------- Contact split ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.contact-info-card {
  background: var(--color-dark);
  color: #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.contact-info-card img {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  height: 180px;
  object-fit: cover;
}

.contact-info-card h3 {
  color: #fff;
  margin-bottom: 20px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.92rem;
}

.contact-list strong {
  color: #fff;
  display: block;
  font-size: 0.88rem;
}

.contact-list .icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #c4b5fd;
}

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.social-row a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.15s ease;
}

.social-row a:hover {
  background: var(--gradient-primary);
}

.map-placeholder {
  margin-top: 28px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.map-static {
  width: 100%;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #1e293b;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* ---------- Alert ---------- */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ---------- Thank you page ---------- */
.thankyou-box {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.thankyou-icon {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin: 0 auto 28px;
}

/* ---------- Legal pages ---------- */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 36px;
  margin-bottom: 14px;
  font-size: 1.3rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--color-text-light);
  margin-bottom: 12px;
  font-size: 0.97rem;
}

.legal-content ul {
  padding-left: 4px;
}

.legal-content ul li {
  position: relative;
  padding-left: 20px;
}

.legal-content ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

.legal-content .updated {
  color: var(--color-text-light);
  font-size: 0.88rem;
  margin-bottom: 32px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-dark);
  color: #94a3b8;
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 14px;
}

.footer-brand .logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.92rem;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col a {
  font-size: 0.9rem;
  color: #94a3b8;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.82rem;
}

.footer-bottom a {
  color: #94a3b8;
}

.footer-bottom a:hover {
  color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: -1;
  }

  .grid-3,
  .steps,
  .stats-row,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-links,
  .nav-cta .btn-outline {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  body.nav-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }

  .hero {
    padding: 48px 0 64px;
  }

  .hero-badge {
    display: none;
  }

  .grid-3,
  .steps,
  .stats-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: 36px 28px;
    flex-direction: column;
    text-align: center;
  }

  .section {
    padding: 56px 0;
  }

  .form-card {
    padding: 24px;
  }
}
