/* Палитра по ТЗ: 2 байта — технологичный стиль */
:root {
  --color-bg: #000000;
  --color-bg-deep: #030923;
  --color-bg-mid: #0a0f1f;
  --color-card: #041A53;
  --color-accent: #0059FF;
  --color-accent-soft: rgba(0, 89, 255, 0.18);
  --color-accent-glow: rgba(0, 89, 255, 0.35);
  --color-text: #FFFFFF;
  --color-text-muted: rgba(255, 255, 255, 0.82);
  --font-mono: "SF Mono", "Consolas", "Monaco", monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 40px rgba(0, 89, 255, 0.15);
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html { font-size: 16px; }
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

/* Сетка-фон для технологичности */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 89, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 89, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

main {
  flex: 1;
  position: relative;
  z-index: 1;
}

/* Шапка */
.site-header {
  background: rgba(3, 9, 35, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 89, 255, 0.15);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  color: var(--color-text);
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s, text-shadow 0.2s;
}

.site-logo:hover {
  color: var(--color-accent);
  text-shadow: 0 0 20px var(--color-accent-glow);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

/* Выпадающее меню «Услуги» */
.nav-item-dropdown {
  position: relative;
}

.nav-link-dropdown-trigger {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0.25rem 0;
}

.nav-link-dropdown-trigger:hover {
  color: var(--color-accent);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin: 0.5rem 0 0;
  padding: 0.5rem 0;
  list-style: none;
  background: var(--color-bg-deep);
  border: 1px solid rgba(0, 89, 255, 0.2);
  border-radius: var(--radius-sm);
  min-width: 160px;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 100;
}

.nav-item-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.nav-dropdown a:hover {
  color: var(--color-accent);
  background: rgba(0, 89, 255, 0.08);
}

@media (max-width: 767px) {
  .nav-item-dropdown { position: static; }
  .nav-dropdown {
    position: static;
    margin: 0.25rem 0 0 1rem;
    padding: 0.25rem 0;
    background: transparent;
    border: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s;
  }
  .nav-item-dropdown.is-open .nav-dropdown {
    max-height: 220px;
  }
  .nav-dropdown a { padding: 0.35rem 0; }
}

.btn-cta {
  background: var(--color-accent);
  color: var(--color-text) !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  border: none;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.btn-cta:hover {
  background: #0047cc;
  color: var(--color-text) !important;
  box-shadow: 0 0 24px var(--color-accent-glow);
}

/* Бургер */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--color-text);
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
}

@media (max-width: 767px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0.5rem;
  }
  .site-nav.is-open { display: flex; }
  .site-header .container { flex-direction: column; align-items: flex-start; }
}

/* Hero */
.hero {
  background: linear-gradient(165deg, var(--color-bg-deep) 0%, var(--color-bg) 50%, var(--color-bg-mid) 100%);
  padding: 5rem 0 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 89, 255, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(0, 89, 255, 0.06) 0%, transparent 45%),
    radial-gradient(ellipse 50% 30% at 20% 80%, rgba(0, 89, 255, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(0, 89, 255, 0.4);
  border-radius: 999px;
  background: rgba(0, 89, 255, 0.08);
}

.hero-title {
  font-size: clamp(1.85rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title-accent {
  color: var(--color-accent);
  text-shadow: 0 0 40px var(--color-accent-glow);
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.55;
}

.btn-cta-hero {
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px rgba(0, 89, 255, 0.25);
}

.btn-cta-hero:hover {
  box-shadow: 0 6px 28px rgba(0, 89, 255, 0.35);
  transform: translateY(-2px);
}

/* Секции — появление при скролле (класс вешает JS) */
.section.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.section.reveal.is-visible { opacity: 1; transform: translateY(0); }

.hero.reveal { opacity: 0; transition: opacity 0.6s ease; }
.hero.reveal.is-visible { opacity: 1; }

/* Секции: eyebrow + title */
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 2.5rem;
  text-align: center;
  letter-spacing: -0.01em;
}

.section-sub {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Лендинги услуг: ровная ширина текста и списков */
.service-landing-text {
  max-width: 640px;
  margin: 0 auto;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.service-landing-list {
  max-width: 560px;
  margin: 0 auto;
}

.service-landing-list li {
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
  background: rgba(4, 26, 83, 0.25);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-accent);
  line-height: 1.5;
}

.service-landing-list li:last-child {
  margin-bottom: 0;
}

.service-cross-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-cross-links a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s, text-decoration 0.2s;
}

.service-cross-links a:hover {
  color: var(--color-text);
  text-decoration: underline;
}

/* Арена: услуги вокруг калькулятора по центру */
.services-arena {
  display: grid;
  grid-template-columns: 1fr 1.55fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.25rem;
  align-items: stretch;
  max-width: 1040px;
  margin: 0 auto;
}

.services-arena .service-card:nth-child(1) { grid-column: 1; grid-row: 1; }
.services-arena .service-card:nth-child(2) { grid-column: 2; grid-row: 1; }
.services-arena .service-card:nth-child(3) { grid-column: 3; grid-row: 1; }
.services-arena .service-card:nth-child(4) { grid-column: 1; grid-row: 2; }
.services-arena .services-calc-cell { grid-column: 2; grid-row: 2; }
.services-arena .service-card:nth-child(6) { grid-column: 3; grid-row: 2; }

@media (max-width: 767px) {
  .services-arena {
    grid-template-columns: 1fr;
    grid-template-rows: unset;
    gap: 1rem;
  }
  .services-arena .service-card:nth-child(1),
  .services-arena .service-card:nth-child(2),
  .services-arena .service-card:nth-child(3),
  .services-arena .service-card:nth-child(4),
  .services-arena .services-calc-cell,
  .services-arena .service-card:nth-child(6) {
    grid-column: 1;
    grid-row: unset;
  }
}

.services-calc-cell {
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 0;
}

.services-arena-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 1.25rem;
  margin-bottom: 0;
}

.service-card {
  background: linear-gradient(180deg, rgba(4, 26, 83, 0.5) 0%, rgba(4, 26, 83, 0.25) 100%);
  border: 1px solid rgba(0, 89, 255, 0.22);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.25s ease, border-color 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 89, 255, 0.45);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.2rem;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.service-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.service-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-card-more {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--color-accent);
  transition: transform 0.2s;
}

.service-card-link:hover .service-card-more {
  transform: translateX(4px);
}

/* Калькулятор (в т.ч. внутри request-section) */
.calculator-wrap {
  background: linear-gradient(180deg, rgba(4, 26, 83, 0.4) 0%, rgba(4, 26, 83, 0.2) 100%);
  border: 1px solid rgba(0, 89, 255, 0.22);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  max-width: 440px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Калькулятор в центре арены — крупнее */
.calculator-wrap-center {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-height: 320px;
  border: 1px solid rgba(0, 89, 255, 0.35);
  box-shadow: var(--shadow-glow), 0 8px 32px rgba(0, 0, 0, 0.25);
}

.calculator-wrap-center .calculator-wrap-badge {
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
}

.calculator-wrap-center .calculator-fields {
  margin-bottom: 1.75rem;
  gap: 1.25rem;
}

.calculator-wrap-center .calc-label {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.calculator-wrap-center .form-select-site {
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
}

.calculator-wrap-center .calc-result-wrap {
  padding: 1.5rem;
  margin-bottom: 1.75rem;
}

.calculator-wrap-center .calc-result {
  font-size: 1.85rem;
}

.calculator-wrap-center .btn-cta-block {
  padding: 0.8rem 1.25rem;
  font-size: 1rem;
}

.calculator-wrap-badge {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: 1rem;
  text-align: center;
}

.calculator-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 480px) {
  .calculator-fields { grid-template-columns: 1fr; }
}

.calc-field {
  display: flex;
  flex-direction: column;
}

.calculator-wrap .calc-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.form-select-site {
  background: var(--color-bg-deep) !important;
  color: var(--color-text) !important;
  border: 1px solid rgba(0, 89, 255, 0.35) !important;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-select-site:focus {
  border-color: var(--color-accent) !important;
  box-shadow: 0 0 0 3px var(--color-accent-soft) !important;
  outline: none;
}

.calc-result-wrap {
  text-align: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 89, 255, 0.2);
}

.calc-result-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 0.35rem;
}

.calculator-wrap .calc-result {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-accent);
  text-shadow: 0 0 24px var(--color-accent-glow);
  font-family: var(--font-mono);
}

.btn-cta-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-sm);
}

/* Блок «Почему мы» */
.why-us {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-deep) 100%);
  padding: 4.5rem 0;
}

.why-us .section-eyebrow { margin-bottom: 0.5rem; }
.why-us .section-title { margin-bottom: 1.5rem; }

.why-us-intro {
  max-width: 580px;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--color-text-muted);
  line-height: 1.7;
  font-size: 1.05rem;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3rem;
  margin-bottom: 2.5rem;
}

.stat-item {
  text-align: center;
  padding: 1.25rem 1.75rem;
  min-width: 140px;
  background: rgba(4, 26, 83, 0.3);
  border: 1px solid rgba(0, 89, 255, 0.2);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.stat-item:hover {
  border-color: rgba(0, 89, 255, 0.4);
  box-shadow: var(--shadow-glow);
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-accent);
  display: block;
  font-family: var(--font-mono);
  text-shadow: 0 0 24px var(--color-accent-glow);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
  display: block;
}

.why-us .theses {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-text-muted);
  line-height: 1.7;
  font-size: 1.05rem;
}

.why-us .theses p {
  margin: 0 0 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(4, 26, 83, 0.25);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-accent);
}

.why-us .theses p:last-child {
  margin-bottom: 0;
}

/* FAQ на главной */
.section-faq .section-title { margin-bottom: 2rem; }

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

.faq-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(0, 89, 255, 0.15);
}

.faq-item:last-child { border-bottom: none; }

.faq-q {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 0.5rem;
}

.faq-a {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.cta-section-after-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: -0.5rem auto 1.5rem;
  max-width: 520px;
}

.text-accent { color: var(--color-accent) !important; }

/* ——— Секция «Оставить заявку» внизу ——— */
.cta-section {
  position: relative;
  padding: 4rem 0 5rem;
  overflow: hidden;
}

.cta-section-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-deep) 100%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(0, 89, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.cta-section-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-section .section-eyebrow-light {
  color: var(--color-text-muted);
}

.cta-section-title {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.cta-section-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .lead-form-card {
  max-width: 440px;
  margin: 0 auto 2rem;
  text-align: left;
}

.cta-section-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.request-trust {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.request-trust i {
  color: var(--color-accent);
  font-size: 1rem;
}

/* Сообщения формы */
.lead-success-msg {
  display: inline-flex;
  align-items: center;
  padding: 1rem 1.25rem;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: var(--radius-sm);
  color: #86efac;
  font-weight: 500;
  font-size: 0.95rem;
}

.lead-error-msg {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: var(--radius-sm);
  color: #fca5a5;
  font-size: 0.9rem;
}

.form-control-site {
  background: var(--color-bg-deep) !important;
  border: 1px solid rgba(0, 89, 255, 0.35) !important;
  color: var(--color-text) !important;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lead-form-card .form-label {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.lead-form-card .form-control,
.lead-form-card textarea.form-control {
  background: var(--color-bg-deep);
  border: 1px solid rgba(0, 89, 255, 0.35);
  color: var(--color-text);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lead-form-card .form-control:focus,
.lead-form-card textarea.form-control:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
  outline: none;
}

.lead-form-card .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.lead-form-card .form-select {
  background: var(--color-bg-deep);
  border: 1px solid rgba(0, 89, 255, 0.35);
  color: var(--color-text);
  border-radius: var(--radius-sm);
}
.lead-form-card .form-select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
  outline: none;
}

.lead-form-card {
  background: linear-gradient(180deg, rgba(4, 26, 83, 0.5) 0%, rgba(4, 26, 83, 0.3) 100%);
  border: 1px solid rgba(0, 89, 255, 0.25);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.lead-form-card .btn-cta {
  margin-top: 0.5rem;
}

/* Футер */
.site-footer {
  background: var(--color-bg-deep);
  border-top: 1px solid rgba(0, 89, 255, 0.12);
  padding: 2rem 0 1.5rem;
  margin-top: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-contact {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.footer-contact a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: var(--color-accent);
}

.footer-contact-sep {
  color: var(--color-text-muted);
  opacity: 0.6;
  margin: 0 0.5rem;
}

.site-footer .copyright {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Секции */
.section {
  padding: 3rem 0;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 1rem; }

/* Страницы Проекты / Отзывы */
.page-header {
  padding: 2.5rem 0 2rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card-dark {
  background: rgba(4, 26, 83, 0.5);
  border: 1px solid rgba(0, 89, 255, 0.15);
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card-dark:hover {
  border-color: rgba(0, 89, 255, 0.3);
  box-shadow: 0 0 18px rgba(0, 89, 255, 0.06);
}

.card-dark h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.card-dark p { color: var(--color-text-muted); font-size: 0.9rem; margin: 0; }

/* Карточка проекта — кликабельна */
.project-card { cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.project-card:hover { transform: translateY(-2px); box-shadow: 0 4px 24px rgba(0, 89, 255, 0.12); }
.project-card-hint { display: block; font-size: 0.8rem; }

/* Модальное окно проекта — тёмная тема */
.project-modal-content {
  background: var(--color-bg-deep);
  border: 1px solid rgba(0, 89, 255, 0.25);
  color: var(--color-text);
  border-radius: var(--radius);
}
.project-modal-content .modal-header { border-color: rgba(255, 255, 255, 0.1); }
.project-modal-content .modal-title { color: var(--color-text); }
.project-modal-content .modal-body { color: var(--color-text-muted); line-height: 1.6; }
.project-modal-content .project-modal-description { white-space: pre-wrap; }
.project-modal-content .project-modal-gallery { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.project-modal-content .project-modal-gallery img { max-height: 180px; object-fit: cover; border-radius: var(--radius-sm); }
.project-modal-content .modal-header { position: relative; z-index: 1; }
.project-modal-content .btn-close { filter: invert(1) grayscale(1) brightness(2); opacity: 0.9; }
.project-modal-content .btn-close:hover { opacity: 1; }

/* Свой бэкдроп и показ модалки проектов (без Bootstrap JS) */
#projectModal.show { display: block !important; }
.project-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}
#projectModal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
  padding: 5rem 1rem 1.5rem;
  box-sizing: border-box;
}
#projectModal .modal-dialog {
  position: relative;
  width: auto;
  max-width: 640px;
  margin: 0 auto;
  max-height: calc(100vh - 6rem);
  display: flex;
  flex-direction: column;
  pointer-events: none;
}
#projectModal .modal-content {
  pointer-events: auto;
  max-height: calc(100vh - 6rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#projectModal .modal-content .modal-header { flex-shrink: 0; }
#projectModal .modal-body {
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}
body.modal-open { overflow: hidden; }

.btn:focus, .btn:active:focus, .form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 89, 255, 0.4);
}

.text-muted { color: var(--color-text-muted) !important; }
.badge.bg-secondary { background: var(--color-card) !important; color: var(--color-text-muted); }
.img-fluid { max-width: 100%; height: auto; }

.review-rating { font-size: 1.1rem; letter-spacing: 0.05em; }
