/* ============================================================
   Дариза-Астана — styles.css
   Аудитория: владельцы ИП/ТОО в Астане, консервативная B2B-ниша
   (доверяют финансовые данные). Палитра "Navy Trust": холодный
   нейтральный фон + тёмно-синий текст/акцент + один тёплый
   акцент (золото/охра) — читается как банк/бухгалтерия, не
   generic AI-фиолетовый.
   ============================================================ */

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-dark: #10233f;
  --surface-dark-2: #16305a;
  --text: #16202b;
  --text-muted: #57636f;
  --text-on-dark: #eef1f5;
  --text-on-dark-muted: #a9b6c8;
  --accent: #10233f;
  --accent-strong: #0b1a30;
  --gold: #b8862c;
  --gold-strong: #8a6620;
  --border: #e2e6ea;
  --border-dark: rgba(255, 255, 255, 0.14);

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

  --container: 1140px;
  --gap-section: clamp(3rem, 6vw, 5.5rem);

  --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", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -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.01em; line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
p { margin: 0; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-strong);
  margin-bottom: 0.6rem;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 62ch;
  margin-top: 0.75rem;
}

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

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

.btn-primary {
  background: var(--gold);
  color: #1a1206;
}
.btn-primary:hover { background: var(--gold-strong); color: #fff; transform: translateY(-1px); }

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 247, 249, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.85rem;
  gap: 1rem;
}

.nav-logo {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
}

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

@media (min-width: 960px) {
  .nav-links { display: flex; }
}

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

.nav-phone {
  display: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
@media (min-width: 640px) {
  .nav-phone { display: inline; }
}

.lang-switch {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
}
.lang-switch:hover { border-color: var(--accent); }

.nav-cta { display: none; }
@media (min-width: 640px) {
  .nav-cta { display: inline-flex; padding: 0.6rem 1.1rem; font-size: 0.85rem; }
}

.nav-toggle {
  display: inline-flex;
  border: none;
  background: transparent;
  color: var(--text);
  padding: 0.3rem;
}
@media (min-width: 960px) {
  .nav-toggle { display: none; }
}

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

/* ---------- Sections ---------- */

section { padding-block: var(--gap-section); }
section > .container > *:not(:first-child) { margin-top: 1rem; }

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

.hero {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
}
.hero-copy { max-width: 46rem; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.75rem !important;
}

/* ---------- Trust bar ---------- */

#trust { padding-block: clamp(2rem, 4vw, 3rem); background: var(--surface-dark); color: var(--text-on-dark); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (min-width: 720px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}
.trust-item { text-align: center; }
.trust-value { display: block; font-size: 1.4rem; font-weight: 800; color: #fff; }
.trust-label { display: block; font-size: 0.82rem; color: var(--text-on-dark-muted); margin-top: 0.25rem; }

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin-top: 1.5rem !important;
}
@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.4rem;
}
.service-card p { color: var(--text-muted); font-size: 0.92rem; margin-top: 0.35rem; }

.price-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: #fbf3e3;
  border: 1px solid #eddcb8;
  border-radius: var(--radius-card);
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
  color: #5a4213;
  margin-top: 1.5rem !important;
}
.price-note svg { flex-shrink: 0; margin-top: 0.15rem; color: var(--gold-strong); }

/* ---------- Process ---------- */

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem !important;
}
@media (min-width: 720px) {
  .process-grid { grid-template-columns: repeat(4, 1fr); }
}
.process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.process-step p { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Why ---------- */

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem !important;
}
@media (min-width: 720px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
.why-item {
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
}
.why-item p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Testimonials placeholder ---------- */

.testimonials-placeholder {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  text-align: center;
}
.testimonials-placeholder a { color: var(--gold-strong); font-weight: 600; text-decoration: underline; }

/* ---------- FAQ ---------- */

.faq-list { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.25rem !important; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1rem 1.25rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; font-weight: 700; color: var(--gold-strong); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--text-muted); font-size: 0.92rem; margin-top: 0.6rem; }

/* ---------- Contacts ---------- */

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1.5rem !important;
}
@media (min-width: 900px) {
  .contacts-grid { grid-template-columns: 1fr 1fr; }
}
.contacts-list { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1.25rem; }
.contact-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
}
.contact-row svg { color: var(--accent); flex-shrink: 0; }
.contact-whatsapp { margin-top: 1.25rem; }
.map-embed { margin-top: 1.25rem; border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--border); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 480px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
}
.form-field.full { grid-column: 1 / -1; }
.form-field label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 0.3rem; color: var(--text-muted); }
.form-field input, .form-field textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-submit-row { display: flex; align-items: center; gap: 1rem; margin-top: 1.25rem !important; flex-wrap: wrap; }
.form-status { font-size: 0.85rem; }
.form-status.success { color: #1f7a4d; }
.form-status.error { color: #b3261e; }

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

.site-footer {
  background: var(--surface-dark);
  color: var(--text-on-dark-muted);
  padding-block: 1.75rem;
}
.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
}
.footer-brand { color: #fff; font-weight: 700; }

/* ---------- WhatsApp FAB ---------- */

.fab-whatsapp {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  z-index: 50;
  text-decoration: none;
}
.fab-whatsapp:hover { transform: scale(1.05); }

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
