/* ============================================
   aios.kz — AI-outsource-Almaty
   Корпоративные цвета: бирюза + янтарь + бумага
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

:root {
  --bg:         #ffffff;
  --surface:    #F4F1EA;
  --border:     #DDD8CC;
  --text:       #16181A;
  --muted:      #6B7280;
  --accent:     #14876A;
  --accent-lt:  #E8F5F1;
  --accent-dk:  #0D5C47;
  --amber:      #D69A4B;
  --amber-lt:   #F5DDB8;
  --radius:     12px;
  --shadow:     0 4px 24px rgba(0,0,0,.08);
  --container:  1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

/* ── Utilities ── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -.01em;
  flex-shrink: 0;
}
.logo img.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: block;
}
.logo-name { white-space: nowrap; }

/* Nav — общие стили для ссылок */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a:not(.btn) {
  text-decoration: none;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.site-nav a:not(.btn):hover {
  background: var(--surface);
  color: var(--text);
}

/* ── Кнопки — все варианты ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #ffffff !important; /* фиксируем белый против any override */
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dk);
  border-color: var(--accent-dk);
  color: #ffffff !important;
}
.btn-outline {
  background: transparent;
  color: var(--accent-dk);
  border-color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent-lt);
  border-color: var(--accent-dk);
  color: var(--accent-dk);
}
/* Белая кнопка для тёмного фона (CTA-баннер) */
.btn-white {
  background: #ffffff;
  color: var(--accent-dk);
  border-color: #ffffff;
}
.btn-white:hover {
  background: var(--surface);
  border-color: var(--surface);
  color: var(--accent-dk);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}

/* ── Hero ── */
.hero {
  padding: 100px 0 80px;
  background: linear-gradient(140deg, var(--surface) 0%, var(--accent-lt) 100%);
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -160px; right: -160px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(20,135,106,.14) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  color: var(--accent-dk);
  font-size: .8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}
.hero-badge .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.03em;
  margin-bottom: 20px;
  color: var(--text);
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 36px;
  max-width: 460px;
  line-height: 1.7;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.stat-card .value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.03em;
  line-height: 1.1;
}
.stat-card .label {
  font-size: .85rem;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.45;
}
.stat-card.wide { grid-column: 1 / -1; }

/* ── Section ── */
.section { padding: 80px 0; }
.section.alt { background: var(--surface); }
.section-tag {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 14px;
  color: var(--text);
}
.section-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 48px;
  line-height: 1.7;
}

/* ── Services grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow .2s, transform .2s;
}
.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.service-icon {
  width: 48px; height: 48px;
  background: var(--accent-lt);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 16px;
}
.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.service-card p { font-size: .875rem; color: var(--muted); line-height: 1.6; }
.service-price {
  margin-top: 16px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--amber);
}

/* ── Steps ── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.step { text-align: center; }
.step-num {
  width: 48px; height: 48px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 16px;
}
.step h3 { font-size: .95rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.step p { font-size: .875rem; color: var(--muted); line-height: 1.55; }

/* ── CTA banner ── */
.cta-section { padding: 0 0 80px; }
.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dk) 100%);
  border-radius: 20px;
  padding: 56px 48px;
  text-align: center;
  color: #fff;
}
.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 14px;
}
.cta-banner p { font-size: 1rem; opacity: .88; margin-bottom: 32px; }

/* ── Page hero (внутренние страницы) ── */
.page-hero {
  background: linear-gradient(140deg, var(--surface) 0%, var(--accent-lt) 100%);
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 10px;
  color: var(--text);
}
.page-hero p { font-size: 1rem; color: var(--muted); }

/* ── Prose (правовые страницы) ── */
.prose { max-width: 780px; margin: 0 auto; padding: 60px 24px; }
.prose h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 40px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.prose h3 { font-size: 1rem; font-weight: 700; margin: 24px 0 8px; color: var(--text); }
.prose p { margin-bottom: 14px; line-height: 1.7; }
.prose ul { margin: 10px 0 14px 24px; }
.prose li { margin-bottom: 7px; line-height: 1.65; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose .meta-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 32px;
  font-size: .9rem;
  line-height: 1.7;
}

/* ── Contact page ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 56px;
  align-items: start;
  padding: 60px 0;
}
.contact-info h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--text);
}
.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.contact-item-icon {
  width: 44px; height: 44px;
  background: var(--accent-lt);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.contact-item-text .label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 4px;
}
.contact-item-text a, .contact-item-text div {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  line-height: 1.5;
}
.contact-item-text a:hover { color: var(--accent); }
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
}
.contact-form h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 24px; color: var(--text); }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: .95rem;
  background: var(--bg);
  color: var(--text);
  transition: border .15s;
  outline: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 110px; }
.btn-submit {
  width: 100%;
  padding: 13px;
  font-size: 1rem;
}
.form-note { font-size: .78rem; color: var(--muted); margin-top: 12px; line-height: 1.55; }
.form-note a { color: var(--accent); }

/* ── About page ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
}
.about-img {
  background: linear-gradient(135deg, var(--accent-lt) 0%, var(--surface) 100%);
  border-radius: 20px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-img img {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  opacity: .9;
}
.about-text h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -.02em;
  color: var(--text);
}
.about-text p { color: var(--muted); margin-bottom: 16px; line-height: 1.7; }
.legal-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-top: 24px;
  font-size: .875rem;
}
.legal-info h4 {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 700;
}
.legal-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: .85rem;
}
.legal-row:last-child { border-bottom: none; }
.legal-row .key { color: var(--muted); flex-shrink: 0; }
.legal-row .val { font-weight: 600; color: var(--text); text-align: right; }

/* ── Footer ── */
.site-footer {
  background: var(--text);
  color: #94a3b8;
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .logo {
  color: #f1f5f9;
  margin-bottom: 14px;
}
.footer-brand p {
  font-size: .875rem;
  line-height: 1.6;
  max-width: 260px;
  color: #94a3b8;
}
.footer-col h4 {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: #e2e8f0;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: #94a3b8;
  text-decoration: none;
  font-size: .875rem;
  margin-bottom: 9px;
  transition: color .15s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #1e2d28;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  flex-wrap: wrap;
  gap: 12px;
  color: #64748b;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: #64748b; text-decoration: none; transition: color .15s; }
.footer-legal a:hover { color: #fff; }

/* ══════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════ */

/* Tablet: ≤1024px */
@media (max-width: 1024px) {
  .hero-inner { gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 24px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet portrait + small laptop: ≤900px */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { grid-template-columns: repeat(3, 1fr); }
  .hero .stat-card.wide { grid-column: 1 / -1; }
  .hero { padding: 72px 0 60px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-img { height: 200px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* Mobile: ≤640px */
@media (max-width: 640px) {
  .container { padding: 0 16px; }

  /* Header */
  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 20px;
    z-index: 99;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
  }
  .site-nav.open a:not(.btn) {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 1rem;
  }
  .site-nav.open .btn {
    margin-top: 8px;
    padding: 13px;
    font-size: 1rem;
    justify-content: center;
  }
  .nav-toggle { display: flex; }

  /* Hero */
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 1.875rem; }
  .hero p { font-size: 1rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; padding: 14px; font-size: 1rem; }
  .hero-visual { grid-template-columns: 1fr 1fr; }
  .hero .stat-card.wide { grid-column: 1 / -1; }

  /* Sections */
  .section { padding: 56px 0; }
  .section-sub { margin-bottom: 32px; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }

  /* Steps */
  .steps { grid-template-columns: 1fr 1fr; gap: 20px; }
  .step-num { width: 40px; height: 40px; font-size: 1rem; }

  /* CTA */
  .cta-section { padding: 0 0 56px; }
  .cta-banner { padding: 36px 24px; border-radius: 16px; }
  .cta-banner h2 { font-size: 1.5rem; }

  /* Contact */
  .contact-grid { padding: 32px 0; }
  .contact-form { padding: 24px; }

  /* About */
  .about-grid { padding: 32px 0; }
  .legal-row { flex-direction: column; gap: 2px; }
  .legal-row .val { text-align: left; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; margin-bottom: 32px; }
  .footer-brand p { max-width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-legal { flex-wrap: wrap; gap: 14px; }

  /* Logo name shorter on tiny screens */
  .logo-name { font-size: .9rem; }
}

/* Extra small: ≤380px */
@media (max-width: 380px) {
  .steps { grid-template-columns: 1fr; }
  .hero-visual { grid-template-columns: 1fr; }
  .hero .stat-card.wide { grid-column: auto; }
}

/* Gzip hint: не дублировать text/html */
