body, html {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  box-sizing: border-box;
}

.hero {
  position: relative;
  color: white;
  text-align: center;
  padding: 0px 40px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../images/background.jpg') no-repeat center center;
  background-size: cover; /* ✅ Меняем с contain на cover */
  background-color: rgba(0, 0, 0, 1); /* fallback */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 1);
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75); /* ← тёмно-прозрачный фон */
  z-index: 0;
}

.hero * {
  position: relative;
  z-index: 1; /* чтобы контент был над затемнением */
}

.hero-content {
  max-width: 400px;
  width: 100%;
}

.hero-title {
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 60px;
}

.title-line {
  display: block;
  font-size: 25px;
  font-weight: 900;
  margin: -15px 0;
}

.title-line.white {
  color: white;
}

.title-line.red {
  color: #FF0000;
}

.hero-logo {
  max-width: 150px;
  margin: 40px auto;
  display: block;
}

.hero-subtitle {
  font-weight: 900;
  color: rgb(255, 255, 255);
  font-size: 18px;
  line-height: 1;
  margin: 10px 0 30px;
  letter-spacing: 0.5px;
}

.hero-subtitle strong {
    font-weight: 900;
  color: #FF0000;
  font-size: 18px;
  line-height: 1;
  margin: 10px 0 30px;
  letter-spacing: 0.5px;
  }

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff0000, #ad0000);
  color: #ffffff;
  font-weight: 900;
  padding: 14px 32px;
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 1px;
  border-radius: 15px;
  gap: 10px; /* расстояние между текстом и иконкой */
}

.hero-button-icon {
  width: 2em;
  height: 2em;
  object-fit: contain;
  filter: brightness(0) invert(1); /* белая заливка */
}


/* Адаптивность */
@media (max-width: 600px) {
  .hero {
  min-height: 80vh;
}

.hero-content {
  max-width: 300px;
  width: 100%;
}

  .title-line.white {
    font-size: 24px;
  }
	  .title-line {
    font-size: 26px;
  }

  .hero-subtitle {
    font-size: 22px;
  }
	
	.hero-subtitle strong {
    font-size: 22px;
  }

  .hero-button {
    width: 100%;
    font-size: 16px;
    padding: 12px 0;
  }

  .hero-logo {
    max-width: 200px;
  }
}

.problems {
  background-color: #ffffff;
  padding: 20px 20px;
  text-align: center;
}

.problems-container {
  max-width: 1000px;
  margin: 0 auto;
}

.problems-title {
  font-size: 28px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 30px;
  letter-spacing: 0.5px;
}

.problem-item {
  margin-bottom: 40px;
  text-align: center;
}

.problem-heading {
  font-size: 18px;
  font-weight: 700;
  color: #920000;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.problem-text {
  font-size: 14px;
  font-weight: 700;
  color: #330000;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  letter-spacing: 0.5px;
}

/* Адаптивность */
@media (max-width: 600px) {
  .problems-title {
    font-size: 22px;
    padding: 0 10px;
  }

  .problem-heading {
    font-size: 20px;
    padding: 0 20px;
  }

  .problem-text {
    font-size: 17px;
    padding: 0 5px;
  }
}

.divider {
  width: 60%;
  height: 1.5px;
  background-color: #00000027;
  margin: 30px auto;
}

/* На мобильных экранах — чуть короче линия */
@media (max-width: 600px) {
  .divider {
    width: 80%;
  }
}

.how-we-work {
  background-color: #1a1a1a;
  padding: 40px 20px;
  text-align: center;
}

.work-container {
  max-width: 1100px;
  margin: 0 auto;
}

.work-title {
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 50px;
  letter-spacing: 1px;
}

.work-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.step-number {
  font-size: 36px;
  font-weight: 900;
  color: #FF0000;
  margin-bottom: 10px;
}

.step-title {
  font-size: 18px;
  font-weight: 900;
  color: #000000;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 15px;
  font-weight: 700;
  color: #333333;
  line-height: 1.5;
  letter-spacing: 0.3px;
}

/* Адаптивность */
@media (max-width: 900px) {
  .work-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .work-steps {
    grid-template-columns: 1fr;
  }

  .step {
    padding: 25px 15px;
  }

  .step-number {
    font-size: 36px;
  }

  .step-title {
    font-size: 20px;
  }

  .step-desc {
    font-size: 18px;
  }
}

.advantages {
  background-color: #1a1a1a;
  padding: 20px 20px;
  text-align: center;
}

.advantages-container {
  max-width: 1100px;
  margin: 0 auto;
}

.advantages-title {
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 50px;
  letter-spacing: 0.5px;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.advantage-item {
  padding: 5px;
}

.advantage-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 0px;
  filter: brightness(0) invert(1); /* белая заливка */
}

.advantage-heading {
  font-size: 18px;
  font-weight: 900;
  color: #ff0000;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.advantage-text {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.5;
  letter-spacing: 0.3px;
}

/* Адаптивность */
@media (max-width: 900px) {
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .advantage-icon {
    width: 80px;
    height: 80px;
  }

  .advantage-heading {
    font-size: 22px;
  }

  .advantage-text {
    font-size: 20px;
  }
}

.cases {
  background-color: #f8f8f8;
  padding: 20px 20px;
  text-align: center;
}

.cases-container {
  max-width: 1100px;
  margin: 0 auto;
}

.cases-title {
  font-size: 28px;
  font-weight: 900;
  color: #000000;
  margin-bottom: 30px;
  letter-spacing: 0.5px;
}

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

.case-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 25px 20px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.case-name {
  font-size: 18px;
  font-weight: 900;
  color: #000000;
  margin-bottom: 10px;
}

.case-goal,
.case-action,
.case-result {
  font-size: 15px;
  font-weight: 700;
  color: #333333;
  line-height: 1.5;
  margin-bottom: 10px;
}

/* Адаптивность */
@media (max-width: 900px) {
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cases-grid {
    grid-template-columns: 1fr;
  }

  .case-card {
    padding: 20px 15px;
  }

  .case-name {
    font-size: 20px;
  }

  .case-goal,
  .case-action,
  .case-result {
    font-size: 18px;
  }
}

.case-image {
  width: 100%;
  height: auto;
  margin: 15px 0;
  border-radius: 10px;
  object-fit: cover;
}

.testimonials {
  background-color: #f8f8f8;
  padding: 40px 20px;
  text-align: center;
}

.testimonials-container {
  max-width: 1100px;
  margin: 0 auto;
}

.testimonials-title {
  font-size: 28px;
  font-weight: 900;
  color: #000000;
  margin-bottom: 30px;
  letter-spacing: 0.5px;
}

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

.testimonial-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.testimonial-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0px;
}

.testimonial-name {
  font-size: 16px;
  font-weight: 900;
  color: #000000;
  margin-bottom: 10px;
}

.testimonial-text {
  font-size: 15px;
  font-weight: 700;
  color: #333333;
  line-height: 1.5;
}

/* Адаптивность */
@media (max-width: 900px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    padding: 25px 15px;
  }

  .testimonial-photo {
    width: 125px;
    height: 125px;
  }

  .testimonial-name {
    font-size: 18px;
  }

  .testimonial-text {
    font-size: 16px;
  }
}

/* === 6 Блок: Цены и рассрочка === */
.pricing-upgrade {
  background-color: #ffffff;
  padding: 0px 0px;
  font-family: 'Poppins', sans-serif;
  text-align: center;
}

/* ===== ЦЕНЫ ===== */
.price-box h2 {
  font-size: 2rem;
  color: #000;
  margin-bottom: 20px;
  font-weight: 800;
}

.price-box .price {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 30px;
  display: inline-block;
  padding: 12px 24px;
  border-radius: 12px;
}

.price-box .new {
  color: #ffffff;
  background: linear-gradient(135deg, #ff0000, #ad0000);
  box-shadow: 0 5px 15px rgba(255, 0, 0, 0.2);
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */
@media (max-width: 768px) {
  .price-box h2 {
    font-size: 1.6rem;
  }

  .price-box .price {
    font-size: 2.4rem;
    padding: 15px 20px;
  }
}

.custom-pricing {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(145deg, #333333, #222222);
  padding: 10px 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: #ff0000;
  margin: 14px auto 0;
  border-radius: 2px;
}

.pricing-item {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.pricing-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: brightness(0) invert(1); /* белая заливка */
}

.pricing-item p {
  font-size: 18px;
  color: #ffffff;
  margin: 0;
  line-height: 1.6;
  max-width: 600px;
  font-weight: 800;
}

.pricing-item strong {
  font-size: 22px;
  color: #ff0000;
  font-weight: 800;
}

.sub {
  display: block;
  color: #ffffff;
  font-size: 18px;
  margin-top: 5px;
}

.form-section {
  background-color: #000;
  color: #fff;
  padding: 30px 20px;
  display: flex;
  justify-content: center;
}

.form-container {
  max-width: 500px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-group {
  position: relative;
}

.form-group input {
  width: 85%;
  height: 75%;
  padding: 12px 12px 12px 45px;
  border: none;
  border-radius: 6px;
  background-color: #fff;
  color: #000;
  font-size: 16px;
}

.form-group input::placeholder {
  color: #666;
}

.form-icon {
  position: absolute;
  top: 60%;
  left: 12px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.contact-methods {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.method-card {
  background-color: #fff;
  flex: 1;
  padding: 6px;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  margin-bottom: -10px;
  border: 2px solid transparent;
}

.method-card img {
  width: 32px;
  height: 32px;
  margin-bottom: 0px;
}

.method-card span {
  color: #000;
  font-weight: 500;
  font-size: 14px;
}

.method-card.selected {
  border: 2px solid #ff0000;
}

.submit-button {
  background-color: #ff0400;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  width: 100%;
  margin-top: 0px;
}

.submit-button:hover {
  background-color: #3b0000;
}

.form-heading {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: -10px;
  color: #ffffff;
}
