/* =============================================
   Городское бюро переводов — стили сайта
   Цветовая схема: красно-белая (на основе логотипа)
   ============================================= */

:root {
  --red: #bd1522;
  --red-dark: #8f0f19;
  --red-light: #fdecee;
  --black: #1b1b1b;
  --gray-900: #262626;
  --gray-700: #555555;
  --gray-400: #9a9a9a;
  --gray-200: #e6e6e6;
  --gray-100: #f6f6f6;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(0,0,0,0.08);
  --container-w: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 16px; font-weight: 700; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-block;
  border-radius: 999px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .15s ease;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover { background: var(--red-dark); }
.btn-outline {
  background: transparent;
  border-color: var(--black);
  color: var(--black);
}
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-large { padding: 16px 32px; font-size: 17px; }
.btn-small { padding: 10px 20px; font-size: 14px; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo img { height: 56px; width: auto; }

.main-nav { display: flex; gap: 24px; flex: 1; justify-content: center; }
.main-nav a { font-weight: 600; font-size: 15px; color: var(--gray-900); }
.main-nav a:hover { color: var(--red); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone { font-weight: 700; white-space: nowrap; }
.header-phone:hover { color: var(--red); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}
.burger span { display: block; height: 2px; background: var(--black); border-radius: 2px; }

/* ---------- Герой ---------- */
.hero {
  background: linear-gradient(180deg, var(--red-light) 0%, var(--white) 100%);
  padding: 72px 0 56px;
  text-align: center;
}
.hero-inner { max-width: 820px; margin: 0 auto; }
.hero h1 { font-size: 40px; }
.hero-subtitle {
  font-size: 18px;
  color: var(--gray-700);
  margin: 0 0 32px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-badges {
  list-style: none;
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  font-size: 14px;
  color: var(--gray-700);
}
.hero-badges li::before { content: "● "; color: var(--red); }

/* ---------- Секции ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--gray-100); }
.section-title { font-size: 30px; text-align: center; }
.section-lead {
  text-align: center;
  color: var(--gray-700);
  max-width: 640px;
  margin: 0 auto 40px;
}

/* ---------- Карточки услуг ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--red-light);
  color: var(--red);
  font-size: 20px;
  margin-bottom: 16px;
}
.card h3 { font-size: 18px; }
.card p { color: var(--gray-700); margin: 0; font-size: 15px; }

/* ---------- Языки ---------- */
.lang-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.lang-grid span {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Шаги ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step { text-align: center; }
.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin: 0 auto 16px;
}
.step h3 { font-size: 17px; }
.step p { color: var(--gray-700); font-size: 14px; margin: 0; }

/* ---------- О нас ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-grid p { color: var(--gray-700); }
.about-facts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.fact {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
}
.fact-num { font-size: 26px; font-weight: 700; color: var(--red); }

/* ---------- Форма заявки ---------- */
.order-form {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: var(--font);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--red);
}
.langs-inline { display: flex; align-items: center; gap: 8px; }
.langs-inline input { flex: 1; }

.dropzone {
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--red);
  background: var(--red-light);
}
.dropzone p { margin: 4px 0; }
.dropzone-hint { color: var(--gray-400); font-size: 13px; }

.file-list { list-style: none; padding: 0; margin: 12px 0 0; }
.file-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--gray-100);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  margin-bottom: 8px;
}
.file-list button {
  background: none;
  border: none;
  color: var(--red);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

/* honeypot — скрыто визуально, но не через display:none (чтобы фильтровать ботов) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-700);
}
.checkbox-label input { margin-top: 3px; }
.checkbox-label a { color: var(--red); text-decoration: underline; }

.form-submit-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.progress-wrap { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 160px; }
.progress-wrap[hidden] { display: none; }
.progress-bar {
  flex: 1;
  height: 8px;
  background: var(--gray-200);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--red);
  transition: width .15s ease;
}
.form-message {
  margin-top: 18px;
  font-size: 15px;
  font-weight: 600;
}
.form-message.success { color: #147a3c; }
.form-message.error { color: var(--red-dark); }

/* ---------- Подвал ---------- */
.site-footer {
  background: var(--black);
  color: var(--gray-200);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
}
.footer-logo { height: 48px; margin-bottom: 12px; filter: brightness(0) invert(1); }
.footer-col h4 { color: var(--white); margin: 0 0 14px; font-size: 15px; }
.footer-col p { margin: 0 0 10px; font-size: 14px; color: var(--gray-400); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  color: var(--gray-400);
}

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .burger { display: flex; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 24px;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .cards-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .header-phone { display: none; }
  .order-form { padding: 20px; }
}
