/* ============================================
   ГРАНДШИНА — Hero Block Styles
   Tire selector with form and tabs
   ============================================ */

/* ============================================
   Hero Block Container
   ============================================ */

.hero-block {
  position: relative;
  width: 100%;
  min-height: 550px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #0a0a0a;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, var(--hero-overlay-opacity, 0.55));
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px var(--hero-padding-x, 30px);
  width: 100%;
}

/* ============================================
   Hero Title
   ============================================ */

.hero-title {
  font-size: var(--hero-title-size, 42px);
  font-weight: var(--hero-title-weight, 700);
  color: var(--hero-title-color, #ffffff);
  letter-spacing: var(--hero-title-spacing, 1px);
  line-height: 1.2;
  margin-bottom: var(--hero-title-margin-bottom, 40px);
  max-width: 700px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Hero Form
   ============================================ */

.hero-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.hero-form-group {
  flex: 1;
  min-width: 180px;
  position: relative;
}

/* Reset Button */
.hero-form-group--reset {
  flex: 0 0 auto;
  min-width: 50px;
}

.hero-reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: rgba(255, 255, 255, 0.6);
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--hero-transition, 0.3s ease);
  text-decoration: none;
}

.hero-reset-btn svg {
  width: 20px;
  height: 20px;
}

.hero-reset-btn:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
}

.hero-form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-form-group select {
  width: 100%;
  padding: 14px 40px 14px 16px;
  font-size: 15px;
  font-family: var(--header-font, 'Roboto', sans-serif);
  font-weight: 500;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: all var(--hero-transition, 0.3s ease);
  backdrop-filter: blur(10px);
}

.hero-form-group select:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-form-group select:focus {
  outline: none;
  border-color: var(--hero-accent-color, #e94560);
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.2);
}

.hero-form-group select option {
  background-color: #1a1a2e;
  color: #ffffff;
  padding: 10px;
}

/* Custom select arrow */
.hero-form-group::after {
  content: '';
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

/* Submit Button */
.hero-submit {
  flex-shrink: 0;
}

.hero-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--header-font, 'Roboto', sans-serif);
  color: var(--hero-btn-text-color, #ffffff);
  background-color: var(--hero-btn-bg-color, #e94560);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--hero-transition, 0.3s ease);
  white-space: nowrap;
  min-width: 140px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.hero-submit-btn:hover {
  background-color: var(--hero-btn-hover-bg, #d63a52);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 69, 96, 0.4);
}

.hero-submit-btn:active {
  transform: translateY(0);
}

.hero-submit-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.4), 0 4px 15px rgba(233, 69, 96, 0.3);
}

/* ============================================
   Hero Tabs
   ============================================ */

.hero-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--header-font, 'Roboto', sans-serif);
  color: rgba(255, 255, 255, 0.7);
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  cursor: pointer;
  transition: all var(--hero-transition, 0.3s ease);
  text-decoration: none;
  user-select: none;
}

.hero-tab:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-tab.is-active {
  color: var(--hero-accent-color, #e94560);
  background-color: rgba(233, 69, 96, 0.15);
  border-color: var(--hero-accent-color, #e94560);
}

.hero-tab svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ============================================
   Tablet Styles (768px – 1024px)
   ============================================ */

@media (max-width: 1024px) {
  :root {
    --hero-title-size: 36px;
    --hero-padding-x: 25px;
  }

  .hero-block {
    min-height: 480px;
  }

  .hero-content {
    padding: 50px var(--hero-padding-x, 25px);
  }

  .hero-form-group {
    min-width: 160px;
  }

  .hero-submit-btn {
    padding: 12px 28px;
    font-size: 15px;
  }
}

/* ============================================
   Mobile Styles (<768px)
   ============================================ */

@media (max-width: 768px) {
  :root {
    --hero-title-size: 28px;
    --hero-padding-x: 15px;
    --hero-title-margin-bottom: 25px;
  }

  .hero-block {
    min-height: auto;
  }

  .hero-content {
    padding: 40px 15px;
  }

  .hero-title {
    font-size: var(--hero-title-size, 28px);
    margin-bottom: var(--hero-title-margin-bottom, 25px);
  }

  /* Vertical form layout */
  .hero-form {
    flex-direction: column;
    gap: 10px;
  }

  .hero-form-group {
    width: 100%;
    min-width: auto;
  }

  .hero-submit {
    width: 100%;
  }

  .hero-submit-btn {
    width: 100%;
    padding: 16px 32px;
    font-size: 16px;
  }

  .hero-form-group--reset {
    min-width: auto;
  }

  .hero-reset-btn {
    width: 100%;
    height: 44px;
  }

  .hero-reset-btn svg {
    width: 22px;
    height: 22px;
  }

  /* Tabs under form */
  .hero-tabs {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    padding-top: 20px;
  }

  .hero-tab {
    padding: 8px 16px;
    font-size: 13px;
  }

  .hero-tab svg {
    width: 16px;
    height: 16px;
  }
}

/* ============================================
   Small Mobile (<480px)
   ============================================ */

@media (max-width: 480px) {
  :root {
    --hero-title-size: 24px;
  }

  .hero-content {
    padding: 30px 12px;
  }

  .hero-title {
    font-size: 22px;
  }

  .hero-form-group select {
    padding: 12px 35px 12px 12px;
    font-size: 14px;
  }

  .hero-tab {
    padding: 7px 14px;
    font-size: 12px;
  }
}

/* ============================================
   Accessibility
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .hero-submit-btn,
  .hero-tab,
  .hero-form-group select {
    transition: none;
  }
}

/* High contrast mode support */
@media (forced-colors: active) {
  .hero-submit-btn {
    border: 2px solid ButtonText;
  }

  .hero-tab {
    border: 1px solid ButtonText;
  }
}
