
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 20px 0px 20px;
  position: relative;

  overflow: hidden;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.hero__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  position: relative;
  padding: 40px 40px 20px 40px;
  background-color: var(--yellow-color--);
  border-radius: 15px;
}

.hero__content {
  max-width: 450px;
  padding-right: 20px;
  z-index: 2;
}

.hero__title {
  font-size: 44px;
  margin-bottom: 15px;
  line-height: 1.15;
  font-weight: bold;
  color: #ffffff;
}

.hero__text {
  font-size: 20px;
  margin-bottom: 25px;
  line-height: 1.5;
  color: #ffffff;
}

.hero__image-wrapper {
  max-width: 550px;
  flex-shrink: 0;
  z-index: 1;
}

.hero__image {
  width: 100%;
  height: auto;
  display: block;
}


.arrow {
  position: absolute;
  top: 50%; 
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.3);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10; 
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow:hover {
  background-color: rgba(0, 0, 0, 0.5);
}


.arrow--prev {
  left: 20px;
}

.arrow--next {
  right: 20px;
}


.arrow::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--white-color--);
  border-right: 2px solid var(--white-color--);
}

.arrow--prev::after {

  transform: rotate(225deg) translate(2px, -2px);
}

.arrow--next::after {

  transform: rotate(45deg) translate(2px, -2px);
}

.hero__regions-all-promos {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  align-items: center;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 15px 40px;
  position: sticky;
}

.hero__dots {
  display: flex;
  gap: 8px;
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
}
.hero__dot {
  width: 8px;
  height: 8px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
}
.hero__dot--active {
  background-color: var(--black-color--);
}

.hero__regions {
  display: flex;
  gap: 30px;
  margin-left: 60px;
}

.region-link {
  cursor: pointer;
  font-size: 14px;
  color: var(--gray-color--);
  padding-bottom: 2px;
  position: relative;
  transition: color 0.3s ease;
}

.region-link--active {
  color: var(--black-color--);
  font-weight: bold;
}

.region-link--active::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--red-color--);
}

.hero__all-promos {
  color: var(--blue-color--);
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  padding-bottom: 1px;
  border-bottom: 1px solid var(--blue-color--);
}

.tariffs {
  padding: 60px 0;
  background-color: var(--background-color--);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 50px;
  justify-content: center;
  align-items: center;
}

.tariffs__regions {
  display: flex;
  gap: 30px;
  margin-left: 60px;
  flex-wrap: wrap;
  padding: 0 30px;
}

.tariffs__container {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.tariff-card {
  flex-basis: 33.333%;
  background-color: var(--white-color--);
  border: 1px solid var(--lines-color--);
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.tariff-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--green-color--);
}

.tariff-card--family::before {
  background-color: var(--blue-color--);
}

.tariff-card--game::before {
  background-color: var(--orange-color--);
}

.tariff-card__title {
  font-size: 20px;
  color: var(--black-color--);
  margin-bottom: 15px;
  font-weight: bold;
}

.tariff-card__description {
  font-size: 14px;
  color: var(--gray-color--);
  margin-bottom: 25px;
  min-height: 42px;
  line-height: 1.5;
  flex-grow: 1;
}

.tariff-card__details {
  margin-bottom: 25px;
  padding: 15px 0;
  border-top: 1px solid var(--lines-color--);
  border-bottom: 1px solid var(--lines-color--);
  text-align: left;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 5px 0;
}

.detail-item__label {
  color: var(--gray-color--);
}

.detail-item__value {
  font-weight: bold;
  color: var(--black-color--);
}

.tariff-card__price {
  margin-bottom: 25px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  color: var(--red-color--);
  flex-shrink: 0;
}

.price__label {
  font-size: 14px;
  font-weight: normal;
  color: var(--gray-color--);
  line-height: 3.5;
}

.price__value {
  font-size: 48px;
  font-weight: bold;
  line-height: 1;
  color: var(--red-color--);
}

.price__currency {
  font-size: 16px;
  align-self: flex-end;
  font-weight: normal;
  color: var(--gray-color--);
  margin-bottom: 5px;
}

.info-blocks {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 20px 0;
  background-color: var(--background-color--);
}
.info-blocks__container {
  gap: 40px;
}
.info-block {
  flex-basis: 50%;
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  color: var(--white-color--);
  align-items: stretch;
  min-height: 280px;
  position: relative;
}

.info-block--red,
.info-block--blue {
  display: flex;
  justify-content: start;
  align-items: start;
  flex-direction: column;
  position: relative;
  overflow: visible;
  z-index: 1;
  border-radius: 15px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0px 2px 10px #0000004a;
  row-gap: 20px;
  padding-bottom: 20px;
  max-height: 300px;
  height: 100%;
}

.info-block__content {
  padding: 30px 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
  flex-grow: 1;
  background: #ed6e44;
  background: linear-gradient(
    162deg,
    rgba(237, 110, 68, 1) 0%,
    rgba(252, 189, 20, 1) 69%
  );
  border-radius: 15px 15px 0 0;
  width: 100%;
  padding: 17px 27px;
}
.info-block__content-blue {
  background: #2fa56c;
  background: linear-gradient(
    162deg,
    rgba(47, 165, 108, 1) 0%,
    rgba(35, 137, 202, 1) 69%
  );
}

.info-block__content-info {
  z-index: 4;
}
.info-block__title {
  font-size: 24px;
  font-weight: 400;
  max-width: 212px;
  margin-bottom: 44px;
}
.button--white {
  border: 1px solid var(--green-color--);
  border-radius: 10px;
  margin-left: 20px;
  font-weight: 400;
}
.info-block__text {
  position: relative;
  font-size: 14px;
  z-index: 3;
  max-width: 275px;
}

.info-block__image {
  position: absolute;
  right: 0;
  bottom: 35%;
  max-height: 255px;
  width: auto;
  max-width: 45%;
  z-index: 3;
}

.application-form {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 0;
  background-color: var(--white-color--);
}

.application-form__container {
  flex-direction: column;
  max-width: 900px;
  padding: 0 20px;
}

.application-form__title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 30px;
  font-weight: bold;
}

.form {
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
}

.form__row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form__row input[type="text"],
.form__row input[type="email"] {
  flex-grow: 1;
  padding: 14px 20px;
  border: 1px solid var(--lines-color--);
  font-family: ABeeZee, sans-serif;
  font-size: 16px;
  color: var(--black-color--);
  height: 50px;
  border: none;
  border-bottom: 2px solid #7dbce4;
}

.input-label {
  display: flex;
  flex-direction: column;
}

.form__row--names-contacts div:first-child {
  flex-basis: 60%;
}

.form__row--names-contacts div:nth-child(2) {
  flex-basis: 40%;
}

.form__row--address div:first-child {
  flex-basis: 30%;
}
.form__row--address div:nth-child(2) {
  flex-basis: 10%;
}
.form__row--address div:nth-child(3) {
  flex-basis: 10%;
}
.form__row--address div:nth-child(4) {
  flex-basis: 5%;
}

.form__row input::placeholder {
  color: var(--gray-color--);
}

.form__tariffs-label {
  font-weight: bold;
  display: block;
  margin-bottom: 15px;
  font-size: 18px;
}

.form__radio-group {
  display: flex;
  gap: 40px;
  margin-bottom: 30px;
}

.radio-option {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
}

.radio-option input[type="radio"] {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--lines-color--);
  border-radius: 50%;
  margin-right: 10px;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
  cursor: pointer;
}

.radio-option input[type="radio"]:checked {
  color: var(--radio-color--);
}

.radio-option input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--radio-color--);
}

.radio-option__text {
  font-weight: bold;
  white-space: nowrap;
}

.radio-option .price {
  color: var(--gray-color--);
  font-size: 14px;
  font-weight: normal;
  margin-left: 5px;
}

.form__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.checkbox-option {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  color: var(--gray-color--);
  line-height: 1.4;
  max-width: 400px;
  text-align: center;
  margin: 0 auto;
}

.checkbox-option input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--lines-color--);
  border-radius: 4px;
  margin-right: 10px;
  flex-shrink: 0;
  position: relative;
  background-color: var(--light-gray--);
}

.checkbox-option input[type="checkbox"]:checked {
  background-color: var(--green-color--);
  border-color: var(--green-color--);
}

.checkbox-option input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 7px;
  border: solid var(--white-color--);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}



.promo-slider {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 0;
  background: linear-gradient(135deg, #f8fafd 0%, #e8eef7 100%);
  margin-top: 40px;
}

.promo-slider__container {
  display: flex;
  align-items: stretch;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.promo-slider__container::-webkit-scrollbar {
  display: none;
}

.promo-slider__container > .arrow--promo {
  position: static;
  transform: none;
  flex-shrink: 0;
  align-self: center;
  background: none;
  width: 30px;
  height: 30px;
  border: 1px solid var(--gray-color--);
  opacity: 1;
  margin: 0 10px;
}

.promo-slider__container > .arrow--promo::after {
  border-color: var(--gray-color--);
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--gray-color--);
  border-right: 2px solid var(--gray-color--);
}

.promo-card {
  flex: 0 0 270px;
  background-color: var(--white-color--);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-5px);
}

.promo-card__image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.promo-card__content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.promo-card__title {
  font-size: 18px;
  font-weight: bold;
  min-height: 44px;
  line-height: 1.2;
}

.promo-card__text {
  font-size: 14px;
  color: var(--gray-color--);
  flex-grow: 1;
  line-height: 1.4;
}

.promo-card__link {
  font-size: 14px;
  color: var(--blue-color--);
  text-decoration: none;
  font-weight: bold;
  align-self: flex-start;
  border-bottom: 1px solid var(--blue-color--);
  padding-bottom: 1px;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}

.promo-card__link--violet {
  color: var(--violet-color--);
  border-bottom-color: var(--violet-color--);
}

.promo-card__link--red {
  color: var(--red-color--);
  border-bottom-color: var(--red-color--);
}


@media (max-width: 1024px) {
  .hero {
    border-radius: 12px;
  }
  
  .hero__container {
    padding: 30px 25px 15px 25px;
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  
  .hero__content {
    max-width: 100%;
    padding-right: 0;
  }
  
  .hero__title {
    font-size: 36px;
  }
  
  .hero__text {
    font-size: 18px;
  }
  
  .hero__image-wrapper {
    max-width: 450px;
  }
  
  .hero__regions-all-promos {
    padding: 12px 25px;
    flex-direction: column;
    gap: 15px;
  }
  
  .hero__dots {
    position: static;
    transform: none;
    justify-content: center;
  }
  
  .hero__regions {
    margin-left: 0;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .tariffs__container {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }
  
  .tariff-card {
    flex-basis: 100%;
    max-width: 400px;
  }
  
  .info-blocks__container {
    flex-direction: column;
    align-items: center;
  }
  
  .info-block {
    max-width: 100%;
  }
  
  .form__row {
    flex-direction: column;
    gap: 15px;
  }
  
  .form__row--names-contacts div,
  .form__row--address div {
    flex-basis: 100% !important;
  }
  
  .form__radio-group {
    flex-direction: column;
    gap: 20px;
  }
  
  .form__submit {
    flex-direction: column;
    gap: 20px;
  }
  
  .checkbox-option {
    max-width: 100%;
    text-align: left;
  }
}


@media (max-width: 767px) {
  .hero {
    border-radius: 10px;
    padding-top: 15px;
  }
  
  .hero__container {
    padding: 20px 15px 10px 15px;
    gap: 25px;
  }
  
  .hero__title {
    font-size: 28px;
    margin-bottom: 12px;
  }
  
  .hero__text {
    font-size: 16px;
    margin-bottom: 20px;
  }
  
  .hero__image-wrapper {
    max-width: 320px;
  }
  .hero__image{
    display: none;
  }
  
  .arrow {
    width: 35px;
    height: 35px;
  }
  
  .arrow--prev {
    left: 10px;
  }
  
  .arrow--next {
    right: 10px;
  }
  
  .hero__regions-all-promos {
    padding: 10px 15px;
  }
  
  .region-link {
    font-size: 13px;
  }
  
  .tariffs {
    padding: 40px 0;
    gap: 30px;
  }
  
  .tariffs__regions {
    margin-left: 0;
    padding: 0 15px;
    gap: 15px;
    justify-content: center;
  }
  
  .tariff-card {
    padding: 20px;
    margin: 0 15px;
  }
  
  .tariff-card__title {
    font-size: 18px;
  }
  
  .price__value {
    font-size: 36px;
  }
  
  .info-block {
    min-height: 250px;
  }
  
  .info-block__title {
    font-size: 20px;
    margin-bottom: 30px;
  }
  
  .info-block__image {
    max-height: 200px;
    bottom: 40%;
  }
  
  .application-form {
    padding: 40px 0;
  }
  
  .application-form__title {
    font-size: 24px;
    margin-bottom: 25px;
  }
  
  .form {
    padding: 0 15px;
  }
  
  .form__row input[type="text"],
  .form__row input[type="email"] {
    padding: 12px 15px;
    font-size: 14px;
  }
  
  .promo-slider {
    padding: 40px 0;
    margin-top: 30px;
  }
  
  .promo-slider__container {
    gap: 15px;
    padding: 15px 5px;
  }
  
  .promo-card {
    flex: 0 0 240px;
  }
  
  .promo-card__content {
    padding: 12px;
  }
  
  .promo-card__title {
    font-size: 16px;
    min-height: 38px;
  }
  
  .header__container {
    padding: 15px 20px;
  }
  
  .user-actions__phone-mail {
    display: none;
  }
}


@media (max-width: 479px) {
  .hero__title {
    font-size: 24px;
  }
  
  .hero__text {
    font-size: 14px;
  }
  
  .hero__image-wrapper {
    max-width: 280px;
  }
  
  .button {
    padding: 12px 24px;
    font-size: 14px;
  }
  
  .hero__regions {
    gap: 15px;
  }
  
  .region-link {
    font-size: 12px;
  }
  
  .hero__all-promos {
    font-size: 13px;
  }
  
  .tariff-card {
    padding: 15px;
    margin: 0 10px;
  }
  
  .tariff-card__details {
    margin-bottom: 20px;
    padding: 12px 0;
  }
  
  .detail-item {
    font-size: 13px;
  }
  
  .price__value {
    font-size: 32px;
  }
  
  .price__currency {
    font-size: 14px;
  }
  
  .info-block {
    min-height: 220px;
  }
  
  .info-block__content {
    padding: 15px 20px;
  }
  
  .info-block__title {
    font-size: 18px;
    margin-bottom: 25px;
  }
  
  .info-block__text {
    font-size: 13px;
  }
  
  .info-block__image {
    max-height: 180px;
  }
  
  .application-form__title {
    font-size: 22px;
  }
  
  .form__tariffs-label {
    font-size: 16px;
  }
  
  .radio-option {
    font-size: 14px;
  }
  
  .radio-option .price {
    font-size: 12px;
  }
  
  .checkbox-option {
    font-size: 12px;
  }
  
  .promo-card {
    flex: 0 0 220px;
  }
  
  .promo-card__title {
    font-size: 15px;
  }
  
  .promo-card__text {
    font-size: 13px;
  }
  
  .footer__container {
    flex-direction: column;
    gap: 25px;
    text-align: center;
  }
  
  .footer__right {
    order: -1;
  }
  
  .footer__nav {
    justify-content: center;
    flex-wrap: wrap;
  }
}