/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--white);
  overflow: hidden;
  padding-bottom: 60px;
}

.hero .container {
  position: relative;
}


.hero__top{
   display: flex;
  flex-direction: row;
  align-items: flex-end;
  margin-top:30px;
}



/* --- Rating bar --- */
.hero__rating {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 593px;
  background: rgba(255, 255, 255, 0.37);
  backdrop-filter: blur(3.6px);
  border-radius: 8px;
  padding: 8px 20px;
  margin-bottom: 28px;
}

.hero__rating-score {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 12px;
}

.hero__rating-num {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: #000;
  line-height: 110%;
}

.hero__rating-star {
  margin-bottom: 2px;
}

.hero__rating-divider {
  width: 1px;
  height: 23px;
  background: #707070;
}

.hero__rating-reviews {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero__rating-count {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: #263b80;
}

.hero__rating-label {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--main);
  text-transform: uppercase;
}

.hero__rating-platforms {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}

.hero__rating-platform {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: flex-end;
}

.hero__rating-platform-name {
  font-size: 22px;
  font-weight: 500;
  color: #000;
  line-height: 120%;
}

.hero__rating-platform-score {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 26px;
  font-weight: 400;
  color: #000;
  line-height: 110%;
}

/* --- Layout --- */
.hero__content {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 60px;
  margin-top:33px;
}

.hero__left {
  flex: 0 0 655px;
  max-width: 655px;
}

.hero__right {
  flex: 1;
  display: flex;
  align-items: flex-start;
  padding-top: 20px;
}

/* --- Title --- */
.hero__title {
  font-family: var(--font-base);
  font-size: var(--h1-size);
  line-height: var(--h1-line-height);
  font-weight: var(--h1-weight);
  margin-bottom: 16px;
}

.hero__title-accent {
  color: var(--main);
}

.hero__title-dark {
  color: var(--dark);
}

/* --- Desc --- */
.hero__desc {
  font-size: var(--text-size);
  line-height: var(--text-line-height);
  color: var(--dark);
  margin-bottom: 30px;
  max-width: 551px;
}

/* --- Photo --- */
.hero__photo {
  border-radius: 30px;
  overflow: hidden;
  width: 100%;
  max-width: 909px;
}

.hero__photo img {
  width: 100%;
  height: 498px;
  object-fit: cover;
  display: block;
}

.hero__photo-placeholder {
  width: 100%;
  height: 498px;
  background: var(--fon);
  border-radius: 30px;
}

/* ============================================================
   CALCULATOR
   ============================================================ */
.hero__calc {
  background: var(--fon);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.hero__calc-title {
  font-family: var(--font-base);
  font-size: 22px;
  line-height: 130%;
  font-weight: 700;
  color: var(--dark);
}

.hero__calc-body {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* Label */
.hero__calc-label {
  display: block;
  font-size: 18px;
  line-height: 130%;
  font-weight: 500;
  color: var(--text2);
  margin-bottom: 12px;
}

/* Area tabs */
.hero__calc-tabs {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
}

.hero__calc-tab {
  background: transparent;
  border: 1px solid #a8a8a8;
  padding: 10px 32px;
  font-family: var(--font-base);
  font-size: 18px;
  line-height: 130%;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.hero__calc-tab:first-child {
  border-radius: 4px 0 0 4px;
}


.hero__calc-tab.is-active {
  background: var(--main);
  color: #fff;
  border-color: var(--main);
}

.hero__calc-tab--input {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 0 4px 4px 0;
  border-left: none;
  min-width: 77px;
  cursor: default;
}

.hero__calc-input {
  width: 40px;
  border: none;
  background: transparent;
  font-family: var(--font-base);
  font-size: 18px;
  font-weight: 500;
  color: var(--dark);
  outline: none;
  -moz-appearance: textfield;
}

.hero__calc-input::-webkit-outer-spin-button,
.hero__calc-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.hero__calc-unit {
  font-size: 16px;
  font-weight: 500;
  color: var(--dark);
  line-height: 1;
}

/* Selects */
.hero__calc-selects {
  display: flex;
  flex-direction: row;
  gap: 9px;
  align-items: flex-start;
}

.hero__calc-select-wrap {
  flex: 1;
}

.hero__calc-select {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--text2);
  border-radius: 4px;
  padding: 12px;
  cursor: pointer;
  position: relative;
  background: var(--white);
  user-select: none;
}

.hero__calc-select-val {
  font-size: 18px;
  line-height: 130%;
  font-weight: 500;
  color: var(--dark);
}

.hero__calc-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--text2);
  border-radius: 4px;
  z-index: 10;
  list-style: none;
  margin: 0;
  padding: 0;
  box-shadow: var(--shadow-card);
}

.hero__calc-dropdown li {
  padding: 10px 12px;
  font-size: 16px;
  color: var(--dark);
  cursor: pointer;
  transition: background 0.15s;
}

.hero__calc-dropdown li:hover {
  background: var(--fon);
}

.hero__calc-select.is-open .hero__calc-dropdown {
  display: block;
}

.hero__calc-select.is-open svg {
  transform: rotate(180deg);
}

/* Price */
.hero__calc-price-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.hero__calc-price-label {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
}

.hero__calc-price-val {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
}

/* Button */
.hero__calc-btn {
  width: 100%;
  font-size: 18px;
  padding: 12px 20px 14px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1440px) {
  .hero__left {
    flex: 0 0 580px;
    max-width: 580px;
  }
  
  .hero__top { gap: 20px;}
  .hero__title {font-size: 50px;}

 .hero__calc-select-val { font-size: 16px;} 
    .hero__calc-tabs { flex-wrap: wrap; }
  
}


@media (max-width: 1366px) {
  .hero__title {font-size: 48px;}

  
  
}


@media (max-width: 1200px) {
  .hero__content {
    gap: 30px;
  }
  .hero__left {
    flex: 0 0 500px;
    max-width: 500px;
  }
  .hero__rating {
    width: 100%;
  }
  .hero__title {font-size: 36px;}
}

@media (max-width: 992px) {
  .hero__content {
    flex-direction: column-reverse;
  }
  .hero__left {
    flex: none;
    max-width: 100%;
    width: 100%;
  }
  .hero__right {
    width: 100%;
  }
  .hero__photo img,
  .hero__photo-placeholder {
    height: 480px;
  }
  .hero__rating {
    width: 100%;
    flex-wrap: wrap;
    gap: 12px;
  }
}

@media (max-width: 768px) {

 .hero__top {  flex-direction: column; margin-top:60px;}
 .hero__desc { max-width: 100%; margin-bottom:0px;}
 .hero__calc-tab--input { justify-content: center;}
 
  .hero__calc-tab:first-child {
    border-radius: 4px;
  }
  .hero__calc-tab {
    border-left: 1px solid #a8a8a8;
    border-radius: 4px;
    flex: 1 0 auto;
  }
  .hero__calc-selects {
    flex-direction: column;
  }
  .hero__calc-select-wrap {
    width: 100%;
  }
}




@media (max-width: 480px) {
 .hero__rating { justify-content: flex-start;}
  }