/* ── ПЕРЕМЕННЫЕ ── */
:root {
  --white: #ffffff;
  --off-white: #f8f7f4;
  --light-gray: #f0eeea;
  --border: #e2ddd6;
  --text-primary: #1a1714;
  --text-secondary: #4a4540;
  --text-muted: #8a837a;
  --accent: #c0392b;
  --accent-light: #e8d5d3;
  --accent-dark: #96231c;
  --blue: #2c4a7c;
  --blue-light: #e8edf5;
  --green: #2d6a4f;
  --green-light: #e8f0ec;
  --gold: #b8860b;
  --gold-light: #f5edd8;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--white);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  box-shadow: var(--shadow-sm);
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.nav-contacts {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  line-height: 1.2;
  text-align: right;
}

.nav-contacts a {
  text-decoration: none;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-contacts a:hover {
  color: var(--accent);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: white;
  font-size: 18px;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.3px;
}

.logo-text span { color: var(--accent); }

nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.2s;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s;
}

nav a:hover { color: var(--accent); }
nav a:hover::after { width: 100%; }

.nav-cta {
  background: var(--accent);
  color: white !important;
  padding: 8px 20px;
  border-radius: 4px;
  transition: background 0.2s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--accent-dark) !important; color: white !important; }

/* ── ПРАВЫЙ БЛОК ── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ── TELEGRAM КНОПКА ── */
.tg-btn {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.tg-btn svg {
  width: 18px;
  height: 18px;
  fill: var(--accent);
}

.tg-btn:hover {
  background: var(--accent);
}

.tg-btn:hover svg {
  fill: white;
}

/* ── ТЕЛЕФОН ── */
.nav-phone {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-phone:hover {
  color: var(--accent);
}

/* ── АДАПТИВ (чтобы не ломалось) ── */
@media (max-width: 900px) {
  .nav-phone { display: none; }
}




/* ── HERO ── */
.hero {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  padding: 80px 40px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--accent);
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 36px;
  font-family: 'Libre Baskerville', serif;
}

.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

.btn-primary {
  background: var(--accent);
  color: white;
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }

.btn-secondary {
  color: var(--text-secondary);
  padding: 14px 0;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  border-bottom: 1.5px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}

.btn-secondary:hover { color: var(--accent); border-color: var(--accent); }

/* Hero visual */
.hero-visual {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.risk-matrix-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.risk-matrix {
  display: grid;
  grid-template-columns: 24px repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr) 24px;
  gap: 3px;
  aspect-ratio: 1;
  margin-bottom: 16px;
}

.matrix-cell {
  border-radius: 3px;
  aspect-ratio: 1;
}

.cell-low  { background: #d4edda; }
.cell-med  { background: #fff3cd; }
.cell-high { background: #f8d7da; }
.cell-crit { background: #f5c6cb; }

.matrix-label {
  font-size: 10px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.matrix-risk-dot { position: relative; }

.risk-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid white;
  box-shadow: 0 0 0 1px var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 1px var(--accent); }
  50%       { box-shadow: 0 0 0 4px rgba(192,57,43,0.2); }
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.hero-stat {
  background: var(--off-white);
  border-radius: 8px;
  padding: 12px 16px;
}

.hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.hero-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── TOPICS BAR ── */
.topics-bar {
  background: var(--text-primary);
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.topics-bar::-webkit-scrollbar { display: none; }

.topics-bar a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 14px 20px;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.1);
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.2px;
}

.topics-bar a:hover { color: white; background: rgba(255,255,255,0.07); }
.topics-bar a:first-child { padding-left: 0; }

/* ── SECTION WRAPPER ── */
.section-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-tag::before, .section-tag::after {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
}

/* ── MAIN TEXT CONTENT ── */
.main-content { padding: 80px 0; }

.content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: start;
}

.content-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.content-text p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-family: 'Libre Baskerville', serif;
}

.content-text ul { list-style: none; margin: 24px 0; }

.content-text ul li {
  padding: 10px 0 10px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-secondary);
  position: relative;
  font-family: 'Libre Baskerville', serif;
}

.content-text ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: sans-serif;
}

/* Sidebar */
.sidebar-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  margin-bottom: 24px;
}

.sidebar-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.sidebar-link-list { list-style: none; }

.sidebar-link-list li { border-bottom: 1px solid var(--border); }
.sidebar-link-list li:last-child { border-bottom: none; }

.sidebar-link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.2s;
}

.sidebar-link-list a:hover { color: var(--accent); }
.sidebar-link-list a::after { content: '›'; font-size: 18px; color: var(--border); }
.sidebar-link-list a:hover::after { color: var(--accent); }

/* ── LEGAL SERVICES ── */
.legal-services {
  padding: 80px 0;
  border-top: 3px solid var(--text-primary);
  background: var(--white);
}

.legal-intro {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: start;
  margin-bottom: 56px;
}

.legal-lead {
  font-family: 'Libre Baskerville', serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-style: italic;
}

.legal-body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.legal-competences {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.competence-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: box-shadow 0.2s;
}

.competence-item:hover { box-shadow: var(--shadow-md); }

.competence-icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.competence-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.competence-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Services 4-card grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.service-card {
  padding: 36px 28px;
  text-decoration: none;
  color: inherit;
  border-right: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
  display: block;
  position: relative;
  background: var(--white);
}

.service-card:last-child { border-right: none; }

.service-card:hover {
  z-index: 2;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card--blue  { border-top: 4px solid var(--blue); }
.service-card--red   { border-top: 4px solid var(--accent); }
.service-card--gold  { border-top: 4px solid var(--gold); }
.service-card--green { border-top: 4px solid var(--green); }

.service-card-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.service-card-icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-card p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.service-list {
  list-style: none;
  margin-bottom: 20px;
}

.service-list li {
  font-size: 12.5px;
  color: var(--text-secondary);
  padding: 5px 0 5px 14px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.service-list li:last-child { border-bottom: none; }

.service-list li::before {
  content: '·';
  position: absolute;
  left: 2px;
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
}

.service-card--blue  .service-list li::before { color: var(--blue); }
.service-card--gold  .service-list li::before { color: var(--gold); }
.service-card--green .service-list li::before { color: var(--green); }

.service-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
}

.service-card--blue  .service-link { color: var(--blue); }
.service-card--gold  .service-link { color: var(--gold); }
.service-card--green .service-link { color: var(--green); }

.service-link span { transition: transform 0.2s; }
.service-card:hover .service-link span { transform: translateX(4px); }

/* ── RISK TYPES ── */
.risk-types {
  background: var(--off-white);
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.risk-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.risk-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  transition: box-shadow 0.25s, transform 0.25s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.risk-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.risk-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.icon-red   { background: var(--accent-light); }
.icon-blue  { background: var(--blue-light); }
.icon-green { background: var(--green-light); }
.icon-gold  { background: var(--gold-light); }

.risk-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.risk-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.risk-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--light-gray);
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ── PROCESS STEPS ── */
.process { padding: 80px 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--border);
  z-index: 0;
}

.step {
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.3s;
}

.step:hover .step-num {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.step h4 {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.step p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ── TOOLS / INSTRUMENTS ── */
.tools {
  background: var(--text-primary);
  padding: 80px 0;
}

.tools .section-title { color: white; }
.tools .section-desc  { color: rgba(255,255,255,0.6); }
.tools .section-tag   { color: #e8a89e; }
.tools .section-tag::before, .tools .section-tag::after { background: #e8a89e; }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
}

.tool-item {
  background: rgba(255,255,255,0.03);
  padding: 32px 28px;
  transition: background 0.25s;
  cursor: pointer;
}

.tool-item:hover { background: rgba(255,255,255,0.08); }

.tool-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 16px;
}

.tool-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.tool-desc {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
}

/* ── FAQ ── */
.faq {
  padding: 80px 0;
  background: var(--off-white);
  border-top: 1px solid var(--border);
}

.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item { border-bottom: 1px solid var(--border); }

.faq-q {
  padding: 22px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.2s;
  user-select: none;
}

.faq-q:hover { color: var(--accent); }

.faq-icon {
  font-size: 24px;
  line-height: 1;
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 16px;
  color: var(--text-muted);
}

.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--accent); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
}

.faq-item.open .faq-a { max-height: 400px; }

.faq-a-inner {
  padding-bottom: 22px;
  font-family: 'Libre Baskerville', serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* ── GLOSSARY ── */
.glossary {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.glossary-item {
  border-left: 3px solid var(--border);
  padding-left: 20px;
  transition: border-color 0.2s;
}

.glossary-item:hover { border-left-color: var(--accent); }

.glossary-term {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.glossary-def {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ── CTA BAND ── */
.cta-band {
  background: var(--accent);
  padding: 56px 40px;
  text-align: center;
}

.cta-band h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.cta-band p {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 28px;
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
}

.cta-band .btn-white {
  background: white;
  color: var(--accent);
  padding: 14px 36px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
}

.cta-band .btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ── FOOTER ── */
footer {
  background: #111;
  color: rgba(255,255,255,0.6);
  padding: 56px 40px 32px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.footer-logo span { color: #e8a89e; }

.footer-tagline {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: white;
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }

.footer-col a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col a:hover { color: white; }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

/* ── POPUP ── */

.popup input, .popup textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
}

.popup textarea {
  min-height: 120px;
  resize: vertical;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.popup {
  background: white;
  padding: 30px;
  border-radius: 10px;
  width: 340px;
  max-width: calc(100vw - 32px);
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  box-sizing: border-box;
}

.popup h3 {
  margin-bottom: 10px;
  font-family: 'Playfair Display', serif;
}

.popup p {
  font-size: 14px;
  margin-bottom: 20px;
}

/* popup input consolidated above */

.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
}

/* ── АДАПТИВ ── */
@media (max-width: 900px) {
  header { padding: 0 16px; height: 56px; flex-wrap: nowrap; gap: 0; }
  nav.nav-right .nav-contacts { display: none !important; }
  .nav-right { gap: 0; }
  .nav-cta { padding: 8px 16px; font-size: 14px; white-space: nowrap; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 48px 20px; }
  .hero-visual { display: none; }
  .hero h1 { font-size: 36px; }
  .content-grid { grid-template-columns: 1fr; }
  .legal-intro { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card:nth-child(2) { border-right: none; }
  .service-card { border-right: none; border-bottom: 1px solid var(--border); }
  .service-card:last-child { border-bottom: none; }
  .risk-cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .steps::before { display: none; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .glossary-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-wrap { padding: 0 20px; }
  .topics-bar { padding: 0 20px; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .logo-text { font-size: 17px; }
  .logo-icon { width: 30px; height: 30px; font-size: 15px; }
  .hero h1 { font-size: 28px; }
  .hero-lead { font-size: 15px; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .cta-band { padding: 40px 20px; }
  .cta-band h2 { font-size: 24px; }
  .topics-bar a { padding: 12px 14px; font-size: 12px; }
  .popup { padding: 24px 20px; }
  .section-header { margin-bottom: 36px; }
}

/* Дополнительные утилиты, перенесённые из inline-стилей */
.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

.matrix-influence-label {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 900px) {
  .hide-mobile { display: none !important; }
}
