main {
  margin-top: 0;
}

@media (max-width: 1200px) {
  main {
    margin-top: 80px;
  }
}

@media (max-width: 1000px) {
  main {
    margin-top: 130px;
  }
}

.header-section {
  background-color: #f4f7fa;
  padding: 60px 0;
  overflow: hidden;
  position: relative;
}

.header-section-container {
  max-width: 80%;
  margin: 0 auto;
  padding: 0 20px;
}

.header-section-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-bottom: 78px;
  min-height: 600px;
}

.header-section-left {
  max-width: 600px;
  flex: 1;
}

.header-section-title {
  margin-bottom: 30px;
}

.header-section-title .title-main {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 60px;
  line-height: 65px;
  color: #161c2d;
  margin: 0 0 5px 0;
}

.header-section-title .title-accent {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 60px;
  line-height: 65px;
  color: #473bf0;
  text-transform: uppercase;
  margin: 0;
}

.header-section-title .title-city {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 60px;
  line-height: 65px;
  color: #473bf0;
  text-transform: uppercase;
  margin: 0;
}

.header-section-subtitle {
  margin-bottom: 30px;
}

.header-section-subtitle p {
  font-family: "Manrope", sans-serif;
  font-weight: 500;
  font-size: 26px;
  line-height: normal;
  letter-spacing: 1px;
  color: #666666;
  margin: 0;
}

/* Форма */
.header-section-form {
  margin-top: 30px;
}

.form-wrapper {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  height: 64px;
  margin-bottom: 15px;
}

.form-input {
  flex: 1;
  border: none;
  padding: 12px 15px;
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  color: #666666;
  outline: none;
  height: 100%;
}

.form-input::placeholder {
  color: #666666;
}

.form-button {
  background: #f64b4b;
  color: white;
  border: none;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.3s;
  width: 100%;
}

.form-button:hover {
  background: #d93f3f;
}

.form-privacy {
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  color: #666666;
  margin: 0;
}

.form-privacy a {
  color: #473bf0;
  text-decoration: none;
}

.header-section-form p {
  display: inline-block;
  padding: 0;
  margin: 0;
}

.header-section-form .wpcf7-spinner {
  display: none;
}

@media (max-width: 768px) {
  .header-section-form {
    margin-top: 20px;
  }

  .form-wrapper {
    flex-direction: column;
    height: auto;
    border-radius: 0px;
    margin-bottom: 12px;
    align-items: center;
  }

  .form-input {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    /* Убираем zoom на iOS */
    border-radius: 0;
    border-bottom: 1px solid #eeeeee;
    height: 52px;
    box-sizing: border-box;
    border-radius: 5px;
  }

  .form-button {
    width: 70%;
    padding: 16px;
    border-radius: 0;
    height: 52px;
    font-size: 16px;
    margin-top: 30px;
    border-radius: 12px;
  }

  .form-privacy {
    font-size: 11px;
    text-align: center;
    line-height: 1.4;
    padding: 0 10px;
  }
}

@media (max-width: 360px) {
  .form-input,
  .form-button {
    height: 48px;
    padding: 14px;
  }

  .form-privacy {
    font-size: 10px;
  }
}

.form-button {
  -webkit-tap-highlight-color: transparent;
}

.form-input:focus {
  border-color: #f64b4b;
}

/* Правая часть */
.header-section-right {
  position: relative;
  width: 50%;
  height: 600px;
  flex-shrink: 0;
}

.decorative-circle {
  position: absolute;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  width: 534px;
  height: 534px;
  z-index: 1;
}

.ornament {
  position: absolute;
  display: flex;
  gap: 16px;
  opacity: 0.5;
  z-index: 2;
}

.ornament-left {
  left: 100px;
  top: 50%;
  transform: translateY(-50%);
}

.ornament-top-right {
  top: 0;
  right: 100px;
  transform: rotate(90deg);
}

.ornament-row {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ornament .dot {
  width: 8px;
  height: 8px;
  background: #183953;
  border-radius: 50%;
  display: block;
}

.car-image-blur {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  filter: blur(3px);
  opacity: 0.7;
  width: 80%;
  z-index: 1;
}

.car-image-blur img {
  width: 100%;
  height: auto;
}

.car-image-main {
  position: absolute;
  top: 50%;
  right: -100px;
  transform: translateY(-50%);
  width: 70%;
  z-index: 3;
}

.car-image-main img {
  width: 100%;
  height: auto;
}

.person-image {
  position: absolute;
  z-index: 5;
  right: -50px;
  bottom: 0;
  height: 500px;
  width: auto;
}

.person-image img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 6;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.badge-rating {
  align-items: center;
}

.badge-owner {
  align-items: center;
}

.badge-icon {
  width: 48px;
  height: 48px;
  background: #473bf0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-rating .badge-icon {
  background: transparent;
  width: auto;
  height: auto;
  font-size: 20px;
}

.badge-owner .badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.badge-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.badge-title {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #161c2d;
}

.badge-info {
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  color: #666666;
}

.header-section-features {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.feature-icon {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon img {
  max-width: 100%;
  max-height: 100%;
}

.default-icon {
  width: 60px;
  height: 60px;
  background: #473bf0;
  border-radius: 8px;
  opacity: 0.3;
}

.feature-text {
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  line-height: 1.25;
  color: #161c2d;
  margin: 0;
  max-width: 160px;
}

@media (max-width: 1200px) {
  .header-section-container {
    max-width: 90%;
  }

  .header-section-content {
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
    min-height: auto;
  }

  .header-section-left {
    max-width: 100%;
    text-align: left;
    margin-bottom: 40px;
  }

  .header-section-right {
    width: 100%;
    height: 400px;
    margin-top: 20px;
  }

  .decorative-circle {
    width: 400px;
    height: 400px;
  }

  .ornament-left {
    left: 50px;
  }

  .ornament-top-right {
    right: 50px;
  }

  .ornament .dot {
    width: 6px;
    height: 6px;
  }

  .ornament-row {
    gap: 20px;
  }

  .person-image {
    height: 350px;
    right: -20px;
  }

  .car-image-main {
    right: 0 !important;
    width: 80% !important;
  }

  .car-image-blur {
    width: 90% !important;
  }

  .badge {
    position: absolute !important;
  }

  .badge.badge-1 {
    top: 20px !important;
    right: 20px !important;
    left: auto !important;
    bottom: auto !important;
  }

  .badge.badge-2 {
    top: 80px !important;
    left: 20px !important;
    right: auto !important;
    bottom: auto !important;
  }

  .badge.badge-3 {
    bottom: 20px !important;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .header-section {
    padding: 40px 0;
  }

  .header-section-title .title-main,
  .header-section-title .title-accent,
  .header-section-title .title-city {
    font-size: 36px;
    line-height: 40px;
  }

  .header-section-subtitle p {
    font-size: 18px;
  }

  .header-section-right {
    height: 300px;
    position: relative;
  }

  .decorative-circle {
    width: 250px;
    height: 250px;
  }

  .ornament-left {
    left: 20px;
    top: 40%;
  }

  .ornament-top-right {
    right: 20px;
    top: 10%;
  }

  .ornament .dot {
    width: 4px;
    height: 4px;
  }

  .ornament-row {
    gap: 12px;
  }

  .ornament {
    gap: 8px;
  }

  .person-image {
    height: 180px;
    right: 10px;
    bottom: 10px;
    z-index: 7;
  }

  .car-image-main {
    width: 85% !important;
    right: 0 !important;
  }

  .car-image-blur {
    width: 90% !important;
    left: 0 !important;
  }

  .badge {
    position: absolute !important;
    padding: 10px;
    z-index: 8;
  }

  .badge.badge-1 {
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    bottom: auto !important;
  }

  .badge.badge-2 {
    top: 10px !important;
    left: 10px !important;
    right: auto !important;
    bottom: auto !important;
  }

  .badge.badge-3 {
    bottom: 60px !important;
    left: 10px !important;
    right: auto !important;
    top: auto !important;
    transform: none;
  }

  .header-section-features {
    flex-wrap: wrap;
    gap: 20px;
  }

  .feature-item {
    flex-basis: 100%;
  }

  .feature-text {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .header-section-title .title-main,
  .header-section-title .title-accent,
  .header-section-title .title-city {
    font-size: 28px;
    line-height: 32px;
  }

  .header-section-subtitle p {
    font-size: 16px;
  }

  .header-section-right {
    height: 250px;
  }

  .decorative-circle {
    width: 200px;
    height: 200px;
  }

  .ornament-left {
    left: 10px;
  }

  .ornament-top-right {
    right: 10px;
  }

  .ornament .dot {
    width: 3px;
    height: 3px;
  }

  .ornament-row {
    gap: 8px;
  }

  .person-image {
    height: 140px;
    right: 5px;
    bottom: 5px;
  }

  .feature-item {
    flex-basis: 100%;
  }

  .header-section-features {
    gap: 15px;
  }

  .badge {
    max-width: max-content;
    padding: 8px;
  }

  .badge-icon {
    width: 32px;
    height: 32px;
  }

  .badge-owner .badge-icon {
    width: 28px;
    height: 28px;
  }

  .badge-title {
    font-size: 12px;
  }

  .badge-info {
    font-size: 10px;
  }
}

@media (max-width: 360px) {
  .header-section-right {
    height: 220px;
  }

  .decorative-circle {
    width: 180px;
    height: 180px;
  }

  .ornament {
    display: none;
  }

  .person-image {
    height: 120px;
  }

  .badge.badge-3 {
    bottom: 50px !important;
  }
}

@media (min-width: 1600px) {
  .header-section-container {
    max-width: 80%;
  }

  .header-section-content {
    min-height: 700px;
  }

  .header-section-right {
    height: 700px;
  }

  .person-image {
    height: 550px;
  }
}

@media (max-width: 1024px) and (orientation: portrait) {
  .header-section-content {
    min-height: 500px;
  }

  .header-section-right {
    height: 350px;
  }

  .person-image {
    height: 280px;
    right: -10px;
  }
}

@media (max-width: 896px) and (orientation: landscape) {
  .header-section-content {
    min-height: 400px;
  }

  .header-section-right {
    height: 280px;
  }

  .person-image {
    height: 200px;
    right: 5px;
    bottom: 5px;
  }

  .badge {
    max-width: 130px;
  }
}
