:root {
  --bg: #0a0f1a;
  --bg-card: #111827;
  --bg-muted: #0f172a;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --brand: #dc2626;
  --brand-hover: #ef4444;
  --brand-soft: rgba(220, 38, 38, 0.15);
  --border: rgba(255, 255, 255, 0.1);
  --radius: 12px;
  --max-width: 1152px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 26, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo > span {
  line-height: normal;
}

.logo__mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: block;
  flex-shrink: 0;
}

.logo__title {
  font-weight: 600;
  display: block;
}

.logo__sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.nav {
  display: none;
  gap: 0.25rem;
}

.nav a {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: 0.2s;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.header__phone {
  display: none;
  font-weight: 500;
}

.header__phone:hover {
  color: var(--brand-hover);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.2s;
  border: none;
  cursor: pointer;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
}

.btn--primary:hover {
  background: var(--brand-hover);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: #fff;
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn--white {
  background: #fff;
  color: var(--brand);
}

.btn--white:hover {
  background: #fef2f2;
}

/* Hero */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(127, 29, 29, 0.3), transparent 60%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  max-width: 720px;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f87171;
}

.hero h1 {
  margin-top: 1rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  font-weight: 800;
}

.hero__lead {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: var(--text-muted);
}

.hero__actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Stats */
.stats {
  border-block: 1px solid var(--border);
  background: rgba(17, 24, 39, 0.5);
  padding: 2.5rem 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat__value {
  font-size: 2rem;
  font-weight: 700;
  color: #f87171;
}

.stat__label {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section--muted {
  background: var(--bg-muted);
}

.section__head {
  max-width: 720px;
  margin-bottom: 3rem;
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section h2 {
  margin-top: 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.2;
}

.section__lead {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Grid */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--2 {
  grid-template-columns: 1fr;
}

.grid--3 {
  grid-template-columns: 1fr;
}

.grid--4 {
  grid-template-columns: 1fr;
}

/* Cards */
.card {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: 0.2s;
}

.card:hover {
  border-color: rgba(220, 38, 38, 0.3);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-soft);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}

.card h3 {
  margin-top: 1rem;
  font-size: 1.1rem;
}

.card p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.card__list {
  margin-top: 1rem;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.card__list li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  background: rgba(10, 15, 26, 0.6);
  border-radius: 8px;
}

.card__list li::before {
  content: "✓ ";
  color: #f87171;
}

/* Clients */
.clients-list {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  gap: 0.75rem;
}

.clients-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #cbd5e1;
}

.clients-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

.highlight-box {
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.4), rgba(17, 24, 39, 1));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}

.highlight-box h3 {
  font-size: 1.5rem;
}

.highlight-box p {
  margin-top: 1rem;
  color: var(--text-muted);
}

.highlight-box .btn {
  margin-top: 1.5rem;
}

/* FAQ */
.faq {
  max-width: 720px;
  margin-inline: auto;
}

.faq details {
  background: rgba(17, 24, 39, 0.5);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.faq details + details {
  margin-top: 1rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details p {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* CTA */
.cta {
  background: linear-gradient(90deg, #b91c1c, #7f1d1d);
  border-radius: 24px;
  padding: 3rem 2rem;
  text-align: center;
}

.cta h2 {
  font-size: 1.75rem;
}

.cta p {
  margin-top: 1rem;
  color: #fecaca;
  max-width: 560px;
  margin-inline: auto;
}

.cta__actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.cta__phone {
  color: rgba(255, 255, 255, 0.9);
}

.cta__phone:hover {
  color: #fff;
}

/* Contacts */
.contact-grid {
  display: grid;
  gap: 2rem;
}

.contact-block h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.contact-item + .contact-item {
  margin-top: 1.25rem;
}

.contact-item__label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-item a,
.contact-item p {
  margin-top: 0.25rem;
  font-size: 1.1rem;
}

.contact-item a:hover {
  color: #f87171;
}

.contact-item__phone {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.5rem;
  font-weight: 600;
}

/* About requisites */
.requisites {
  margin-top: 1.5rem;
}

.requisites dt {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.requisites dd {
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-muted);
  padding: 3rem 0 1.5rem;
}

.footer__grid {
  display: grid;
  gap: 2rem;
}

.footer h4 {
  margin-bottom: 1rem;
}

.footer ul {
  list-style: none;
}

.footer li + li {
  margin-top: 0.5rem;
}

.footer a,
.footer p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #64748b;
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

/* Responsive */
@media (min-width: 640px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .header__phone {
    display: block;
  }

  .header .btn--primary {
    display: inline-flex;
  }

  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (max-width: 767px) {
  .header .btn--primary {
    display: none;
  }
}
