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

body {
  font-family: Arial, sans-serif;
  background: #050506;
  color: #ffffff;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

.badge {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.05);
  border-radius: 999px;
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  margin-bottom: 28px;
}

h1 {
  font-size: 72px;
  line-height: 0.95;
  font-weight: 700;
  margin-bottom: 24px;
}

.muted-title {
  color: rgba(255,255,255,0.6);
}

.hero-text {
  font-size: 22px;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
}

.form-wrap {
  position: relative;
}

.form-wrap::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -1;
  border-radius: 40px;
  background:
    radial-gradient(90% 70% at 20% 0%, rgba(255,255,255,0.16), transparent 70%),
    radial-gradient(80% 60% at 100% 100%, rgba(52,152,219,0.22), transparent 72%);
  filter: blur(8px);
}

.form-card {
  background: linear-gradient(155deg, #131419 0%, #0e1013 100%);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 32px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.form-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.88);
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.form-card h2 {
  font-size: 32px;
  margin-bottom: 8px;
}

.form-card p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  margin-bottom: 20px;
}

.bitrix-box {
  position: relative;
  min-height: 240px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.16);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.03) 100%),
    rgba(255,255,255,0.02);
  overflow: hidden;
}

.bitrix-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 35%);
  pointer-events: none;
}

.bitrix-box iframe {
  width: 100% !important;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
}

.bitrix-box .b24-form,
.bitrix-box [class*="b24-form"] {
  border-radius: 14px;
}

.portfolio-title,
.steps-title {
  font-size: 52px;
  line-height: 1.05;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-subtitle {
  color: rgba(255,255,255,0.6);
  max-width: 620px;
  margin-bottom: 40px;
  font-size: 18px;
}

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

.portfolio-card {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
}

.portfolio-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: rgba(255,255,255,0.04);
}

.portfolio-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.portfolio-price span:first-child {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
}

.portfolio-price span:last-child {
  font-weight: 700;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.steps-title .muted-title {
  display: inline;
}

.step-card {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 32px;
  padding: 32px;
  background: rgba(255,255,255,0.03);
}

.step-card h3 {
  font-size: 30px;
  margin-bottom: 16px;
}

.step-card p {
  color: rgba(255,255,255,0.6);
  font-size: 18px;
}

.cta-box {
  margin-top: 40px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  border-radius: 40px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-box h3 {
  font-size: 40px;
  line-height: 1.1;
  max-width: 700px;
}

.cta-button {
  display: inline-block;
  padding: 16px 32px;
  background: #ffffff;
  color: #000000;
  text-decoration: none;
  border-radius: 18px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .section {
    padding: 56px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .hero-grid,
  .portfolio-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 28px;
  }

  h1 {
    font-size: 48px;
    line-height: 1.02;
  }

  .portfolio-title,
  .steps-title {
    font-size: 38px;
  }

  .cta-box h3 {
    font-size: 28px;
  }

  .form-card {
    padding: 22px;
    border-radius: 24px;
  }

  .bitrix-box {
    min-height: 0;
    padding: 12px;
    border-radius: 16px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .badge {
    font-size: 12px;
    margin-bottom: 18px;
  }

  h1 {
    font-size: 42px;
    margin-bottom: 16px;
  }

  .hero-text {
    font-size: 18px;
    margin-bottom: 18px;
  }

  .hero-meta {
    gap: 12px;
    font-size: 13px;
  }

  .form-kicker {
    font-size: 11px;
    padding: 7px 10px;
  }

  .form-card h2 {
    font-size: 30px;
  }

  .form-card p {
    font-size: 15px;
    margin-bottom: 14px;
  }

  .bitrix-box {
    padding: 10px;
  }

  .portfolio-title,
  .steps-title,
  .cta-box h3 {
    font-size: 32px;
  }

  .step-card {
    padding: 22px;
    border-radius: 24px;
  }

  .step-card h3 {
    font-size: 24px;
  }

  .step-card p {
    font-size: 16px;
  }

  .cta-box {
    padding: 24px;
    border-radius: 24px;
  }

  .cta-button {
    width: 100%;
    text-align: center;
  }
}
