/* components.css — шапка, кнопки, карточки, шаги, FAQ, форма, подвал */
/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-secondary);
  border-block-end: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-block: 8px;
}
.brand {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-primary);
  text-decoration: none;
}
.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
}
.site-nav a {
  display: inline-block;
  padding: 8px 0;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  border-block-end: 2px solid transparent;
}
.site-nav a:hover { border-block-end-color: var(--border); }
.site-nav a[aria-current="page"] {
  color: var(--accent);
  border-block-end-color: var(--accent);
}

/* ---------- переключатель языка ---------- */
.header-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 24px;
}
.lang-switch {
  display: flex;
  gap: 4px;
  font-family: var(--font-head);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
}
.lang-switch a,
.lang-switch span {
  display: inline-block;
  min-width: 40px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  text-align: center;
}
.lang-switch a {
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color 0.2s ease;
}
.lang-switch a:hover { border-color: var(--border); }
.lang-switch [aria-current="true"] {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  min-height: 48px;
  padding: 12px 24px;
  background: var(--btn-bg);
  color: var(--bg-primary);
  border: 1px solid var(--btn-bg);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.btn:hover {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--bg-primary);
}
.btn:focus-visible { outline-offset: 4px; }

.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  transition: border-color 0.2s ease;
}
.card:hover { border-color: var(--accent); }
.card h3 { margin-block-end: 8px; }
.meta {
  font-family: var(--font-head);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--accent);
  margin-block-end: 8px;
}

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; }
.step {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px 24px;
  padding-block: 32px;
  border-block-start: 1px solid var(--border);
}
.step:last-child { border-block-end: 1px solid var(--border); }
.step h3 { display: flex; gap: 16px; align-items: baseline; }
.num {
  font-family: var(--font-head);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--accent);
}
.step-summary { margin-block-start: 8px; }
.step-note { margin-block-end: 16px; }
.step-note strong, .step dt {
  font-family: var(--font-head);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
}
.step dl { display: grid; gap: 16px; }
.step dt { color: var(--accent); margin-block-end: 4px; }
.step dd { margin: 0; }

.short-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 0;
  max-width: 736px;
}
.short-steps li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding-block: 16px;
  border-block-start: 1px solid var(--border);
}
.short-steps li:last-child { border-block-end: 1px solid var(--border); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 8px; max-width: 736px; }
.faq details {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.faq details[open] { background: var(--bg-primary); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 24px;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
.faq summary h3 { font-size: 20px; line-height: 1.3; font-weight: 600; }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-head);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--accent);
}
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 24px 24px; }
.footnote {
  margin-block-start: 32px;
  max-width: 736px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}

/* ---------- form ---------- */
.order { scroll-margin-top: 80px; }
.order-title { margin-block-end: 24px; }
.order-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px 24px;
}
.order-form {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  display: grid;
  gap: 24px;
}
.field { display: grid; gap: 8px; }
.field label {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}
.field input, .field textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--text-primary);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}
.field textarea { min-height: 144px; resize: vertical; }
.hint { font-size: 14px; line-height: 1.4; font-weight: 500; }
.order-form .btn { justify-self: start; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--bg-secondary);
  padding-block: 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px 24px;
}
.footer-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  margin-block-end: 8px;
}
.site-footer address { font-style: normal; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.footer-nav a { display: inline-block; padding: 4px 0; font-size: 14px; font-weight: 500; }
.copy {
  margin-block-start: 32px;
  padding-block-start: 16px;
  border-block-start: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}
