/* ===== Юридическая Группа Таран — общий CSS для всех лендингов ===== */

:root {
  --color-primary: #0f4c75;      /* тёмно-синий, юридический */
  --color-primary-dark: #0a3553;
  --color-accent: #3282b8;       /* средний синий */
  --color-accent-light: #bbe1fa;
  --color-cta: #ff6b35;          /* оранжевый CTA */
  --color-cta-hover: #e85a2a;
  --color-bg: #f8fafc;
  --color-white: #ffffff;
  --color-text: #1a2332;
  --color-text-muted: #5a6c7d;
  --color-border: #e2e8f0;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #dc2626;
  --shadow-sm: 0 2px 8px rgba(15, 76, 117, 0.08);
  --shadow-md: 0 4px 20px rgba(15, 76, 117, 0.12);
  --shadow-lg: 0 10px 40px rgba(15, 76, 117, 0.16);
  --radius: 12px;
  --radius-lg: 20px;
  --container: 1200px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--color-primary);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.header {
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 20px;
  flex-wrap: wrap;
}
.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}
.logo span {
  color: var(--color-cta);
}
.logo-subtitle {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 400;
  margin-top: 2px;
}
.header-contact {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.header-phone {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
}
.header-phone:hover {
  color: var(--color-cta);
}
.header-phone-sub {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: inherit;
  text-decoration: none;
  line-height: 1.2;
}
.btn-cta {
  background: var(--color-cta);
  color: white;
  box-shadow: var(--shadow-md);
}
.btn-cta:hover {
  background: var(--color-cta-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-primary {
  background: var(--color-primary);
  color: white;
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  color: white;
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: white;
}
.btn-lg {
  padding: 20px 40px;
  font-size: 18px;
}
.btn-block {
  display: block;
  width: 100%;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: white;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-block;
  background: rgba(255, 107, 53, 0.18);
  color: #ffcdb5;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 107, 53, 0.3);
}
.hero h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero h1 em {
  color: #ffcdb5;
  font-style: normal;
}
.hero-subtitle {
  font-size: 18px;
  line-height: 1.5;
  opacity: 0.92;
  margin-bottom: 32px;
}
.hero-points {
  list-style: none;
  margin-bottom: 36px;
}
.hero-points li {
  padding: 10px 0 10px 34px;
  position: relative;
  font-size: 16px;
}
.hero-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 10px;
  width: 24px;
  height: 24px;
  background: var(--color-success);
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
  font-size: 14px;
  font-weight: 700;
}
.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-cta-note {
  font-size: 13px;
  opacity: 0.8;
  margin-top: 16px;
}

.hero-visual {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  backdrop-filter: blur(8px);
}
.hero-visual-title {
  font-size: 18px;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 24px;
}
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.hero-stat {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: var(--radius);
}
.hero-stat-num {
  font-size: 36px;
  font-weight: 800;
  color: #ffcdb5;
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stat-label {
  font-size: 13px;
  opacity: 0.85;
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
}
.section-sm {
  padding: 50px 0;
}
.section-bg {
  background: var(--color-white);
}
.section-dark {
  background: var(--color-primary);
  color: white;
}
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}
.section-eyebrow {
  display: inline-block;
  background: var(--color-accent-light);
  color: var(--color-primary);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.section-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.section-subtitle {
  font-size: 18px;
  color: var(--color-text-muted);
  line-height: 1.5;
}
.section-dark .section-title { color: white; }
.section-dark .section-subtitle { color: rgba(255,255,255,0.85); }

/* ===== Cards ===== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  border: 1px solid var(--color-border);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--color-accent-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
  font-weight: 800;
}
.card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}
.card-text {
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===== Form ===== */
.form-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  padding: 70px 0;
  color: white;
}
.form-box {
  background: white;
  color: var(--color-text);
  border-radius: var(--radius-lg);
  padding: 50px;
  max-width: 620px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.form-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
  text-align: center;
}
.form-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 30px;
}
.form-required-mark {
  color: #b91c1c;
  font-weight: 800;
  text-decoration: none;
  cursor: help;
  margin-left: 2px;
}

.form-field {
  margin-bottom: 16px;
}
.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
  line-height: 1.45;
  max-width: 100%;
}

/* Длинная подпись к полю: на мобильных весь текст переносится и читается целиком */
.form-label-multiline {
  cursor: pointer;
}
.form-label-multiline__title {
  display: block;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
  margin-bottom: 6px;
}
.form-label-multiline__optional {
  font-weight: 600;
  color: var(--color-text-muted);
}
.form-label-multiline__body {
  display: block;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-muted);
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s;
  background: var(--color-bg);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--color-accent);
  background: white;
}
.form-field textarea {
  min-height: 90px;
  resize: vertical;
}
.form-agreement {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 14px;
  line-height: 1.5;
  text-align: center;
}
.form-agreement a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* ===== Reviews ===== */
.review {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.review::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 24px;
  font-size: 80px;
  color: var(--color-accent-light);
  font-family: Georgia, serif;
  line-height: 1;
}
.review-text {
  margin-bottom: 20px;
  font-style: italic;
  color: var(--color-text);
  position: relative;
  z-index: 1;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}
.review-name {
  font-weight: 600;
}
.review-meta {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: white;
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}
.faq-question {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s;
  user-select: none;
}
.faq-question:hover {
  background: var(--color-bg);
}
.faq-question::after {
  content: '+';
  font-size: 28px;
  color: var(--color-accent);
  font-weight: 300;
  transition: transform 0.2s;
}
.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}
.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s, padding 0.3s;
  color: var(--color-text-muted);
  line-height: 1.7;
}
.faq-item.open .faq-answer {
  padding: 0 24px 24px;
  max-height: 600px;
}

/* ===== Steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: steps;
}
.step {
  background: white;
  padding: 30px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: relative;
  border-top: 4px solid var(--color-accent);
}
.step-num {
  position: absolute;
  top: -18px;
  left: 24px;
  width: 40px;
  height: 40px;
  background: var(--color-cta);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  box-shadow: var(--shadow-md);
}
.step-title {
  font-size: 17px;
  font-weight: 700;
  margin: 12px 0 8px;
}
.step-text {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ===== Footer / Disclaimer ===== */
.disclaimer {
  background: #fff8e6;
  border-top: 3px solid var(--color-warning);
  padding: 30px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text);
}
.disclaimer strong {
  color: var(--color-danger);
}
.footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 40px 0 30px;
  font-size: 14px;
  line-height: 1.6;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}
.footer-title {
  color: white;
  font-weight: 700;
  margin-bottom: 14px;
  font-size: 15px;
}
.footer-requisites {
  margin-top: 12px;
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.68);
}
.footer a {
  color: rgba(255,255,255,0.75);
}
.footer a:hover {
  color: white;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  text-align: center;
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mt-40 { margin-top: 40px; }

.image-placeholder {
  background: linear-gradient(135deg, #e2e8f0 25%, #cbd5e1 50%, #e2e8f0 75%);
  border: 2px dashed #94a3b8;
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.image-placeholder::before {
  content: '📷';
  font-size: 40px;
  display: block;
  margin-bottom: 10px;
  filter: grayscale(1);
  opacity: 0.6;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero {
    padding: 50px 0 40px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero h1 {
    font-size: 30px;
  }
  .section {
    padding: 50px 0;
  }
  .section-title {
    font-size: 26px;
  }
  .grid-2, .grid-3, .grid-4, .steps {
    grid-template-columns: 1fr;
  }
  .form-box {
    padding: 30px 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
