.hosting {
  padding: 173px 0 50px;
  color: var(--theme-text-color);
}

@media screen and (max-width: 1240px) {
  .hosting {
    padding: 150px 0 50px;
  }
}

@media screen and (max-width: 767px) {
  .hosting {
    padding: 123px 0 50px;
  }
}

.hosting__title {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 61px;
  line-height: 71px;
  color: var(--theme-primary-text);
  text-align: center;
  margin-bottom: 25px;
}

@media screen and (max-width: 1240px) {
  .hosting__title {
    font-size: 55px;
  }
}

@media screen and (max-width: 767px) {
  .hosting__title {
    font-size: 40px;
    line-height: 45px;
  }
}

.hosting__text {
  font-size: 18px;
  line-height: 175%;
  max-width: 606px;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 47px;
}

@media screen and (max-width: 1240px) {
  .hosting__text {
    font-size: 17px;
  }
}

@media screen and (max-width: 767px) {
  .hosting__text {
    font-size: 16px;
    margin-bottom: 37px;
  }
}

.hosting__blocks {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  -moz-column-gap: 20px;
  column-gap: 20px;
  row-gap: 20px;
}

@media screen and (max-width: 991px) {
  .hosting__blocks {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 767px) {
  .hosting__blocks {
    grid-template-columns: 1fr;
  }
}

.hosting__block {
  padding: 24px 32px 41px;
  background: #1a1832;
  border-radius: var(--border-radius-large);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media screen and (max-width: 767px) {
  .hosting__block {
    padding: 24px 20px 30px;
  }
}

.hosting__img {
  width: 245px;
  height: 197px;
  margin: 0 auto;
  margin-bottom: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hosting__img img {
  width: 197px;
  height: 197px;
}

@media screen and (max-width: 1240px) {
  .hosting__img {
    width: 180px;
    height: 180px;
  }
}

@media screen and (max-width: 767px) {
  .hosting__img {
    width: 180px;
    height: 180px;
  }
}

.hosting__usluga {
  text-align: center;
  margin-bottom: 10px;
}

.hosting__usluga span {
  font-weight: 600;
}

.hosting__list {
  font-size: 20px;
  line-height: 175%;
  margin-bottom: 6px;
  position: relative;
}

.hosting__list::before {
  content: "";
  position: absolute;
  width: 376.5px;
  height: 1px;
  background-color: var(--theme-border-color);
  bottom: -2px;
  left: -32px;
}

@media screen and (max-width: 1240px) {
  .hosting__list::before {
    width: 310px;
    bottom: -2px;
  }
}

@media screen and (max-width: 991px) {
  .hosting__list::before {
    width: 365px;
  }
}

@media screen and (max-width: 767px) {
  .hosting__list::before {
    width: calc(100% + 40px);
    max-width: 737px;
    left: -20px;
  }
}

@media screen and (max-width: 1240px) {
  .hosting__list {
    font-size: 18px;
  }
}

.hosting__list li {
  display: flex;
  align-items: center;
}

.hosting__list svg {
  margin-right: 19px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hosting__amount {
  padding-left: 3px;
  font-size: 14px;
  line-height: 175%;
  display: flex;
  align-items: center;
  margin-bottom: 17px;
}

.hosting__amount svg {
  width: 15px;
  height: 15px;
  margin-right: 23px;
}

.hosting__price {
  font-weight: 600;
  font-size: 30px;
  line-height: 36px;
  text-align: center;
}

.hosting__popular {
  width: 260px;
  height: 35px;
  background: var(--color-primary);
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--theme-primary-text);
  position: absolute;
  top: 21px;
  left: 50%;
  transform: translate(-50%, 0);
}

@media screen and (max-width: 767px) {
  .hosting__popular {
    width: 220px;
  }
}

.hosting__why {
  background-image: url(../images/hosting-why.png);
}

.hosting__control {
  padding: 8px 0 70px;
}

.hosting__block-info {
  margin-bottom: 21px;
}

.wrapper.active .hosting {
  color: var(--theme-text-color);
}

.wrapper.active .hosting__title {
  color: var(--theme-title-color);
}

.wrapper.active .hosting__text {
  color: var(--theme-text-color);
}

.wrapper.active .hosting svg path {
  fill: var(--color-secondary);
}

.wrapper.active .hosting__popular {
  background: var(--color-secondary);
}

.wrapper.active .hosting__block {
  background: #fbfbfb;
}

.wrapper.active .hosting__block:before {
  background-color: var(--theme-border-color);
}

.wrapper.active .hosting__amount {
  color: var(--theme-text-color);
}

.wrapper.active .hosting__list {
  color: var(--theme-text-color);
}

.wrapper.active .hosting__list:before {
  background-color: var(--theme-border-color);
}

/* Стили для карточек тарифов (адаптированы из garrysmod.css) */
.hosting__block.gmod__block {
  padding: 28px 32px 41px;
}

@media screen and (max-width: 1240px) {
  .hosting__block.gmod__block {
    padding: 24px 20px 30px;
  }
}

.hosting__block.gmod__block::before {
  bottom: 310px;
}

@media screen and (max-width: 1240px) {
  .hosting__block.gmod__block::before {
    bottom: 290px;
  }
}

@media screen and (max-width: 767px) {
  .hosting__block.gmod__block::before {
    bottom: 280px;
  }
}

.gmod__list {
  margin-bottom: 24px;
}

.gmod__list::before {
  display: none;
}

.gmod__list li {
  display: flex;
  align-items: center;
}

.gmod__list svg,
.gmod__list img {
  margin-right: 19px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gmod__player {
  font-size: 25px;
  font-weight: 600;
  line-height: 30px;
  color: #ffffff;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
}

@media screen and (max-width: 1240px) {
  .gmod__player {
    font-size: 21px;
  }
}

.gmod__player span {
  font-size: 38px;
  line-height: 45px;
}

@media screen and (max-width: 1240px) {
  .gmod__player span {
    font-size: 32px;
  }
}

.gmod__head {
  font-size: 18px;
  line-height: 175%;
  margin-bottom: 13px;
  height: 95px;
}

@media screen and (max-width: 1240px) {
  .gmod__head {
    font-size: 16px;
  }
}

@media screen and (max-width: 767px) {
  .gmod__head {
    height: auto;
  }
}

.gmod__block-item {
  margin-bottom: 38px;
  position: relative;
}

.gmod__block-item::before {
  content: "";
  position: absolute;
  width: 376.5px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  bottom: -20px;
  left: -32px;
}

@media screen and (max-width: 1240px) {
  .gmod__block-item::before {
    width: 310px;
    left: -20px;
    bottom: -15px;
  }
}

@media screen and (max-width: 991px) {
  .gmod__block-item::before {
    width: 365px;
  }
}

@media screen and (max-width: 767px) {
  .gmod__block-item::before {
    width: calc(100% + 40px);
    max-width: 737px;
    left: -20px;
  }
}

@media screen and (max-width: 1240px) {
  .gmod__block-item {
    margin-bottom: 30px;
  }
}

.gmod__block .gmod__price {
  text-align: left;
}

.gmod__advantage {
  font-size: 20px;
  line-height: 175%;
  margin-bottom: 10px;
}

.gmod__list svg {
  color: var(--color-primary);
}

.gmod__list svg path {
  fill: var(--color-primary);
}

/* Стили для светлой темы */
.wrapper.active .gmod__player {
  color: var(--theme-title-color);
}

.wrapper.active .gmod__head {
  color: var(--theme-text-color);
}

.wrapper.active .hosting__block.gmod__block .gmod__block-item:before {
  background-color: var(--theme-border-color);
}

.wrapper.active .gmod__advantage {
  color: var(--theme-text-color);
}

.wrapper.active .gmod__list svg {
  color: var(--color-secondary);
}

.wrapper.active .gmod__list svg path {
  fill: var(--color-secondary);
}

/* Стили для блока контроля сервера */
.hosting__control {
  padding: 8px 0 120px;
}

.control__blocks {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

@media screen and (max-width: 991px) {
  .control__blocks {
    justify-content: center;
  }
}

.control__block {
  max-width: 519px;
}

@media screen and (max-width: 991px) {
  .control__block {
    max-width: none;
    text-align: center;
  }
}

.control__text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  line-height: 175%;
  margin-bottom: 51px;
}

@media screen and (max-width: 1240px) {
  .control__text {
    font-size: 17px;
    margin-bottom: 40px;
  }
}

@media screen and (max-width: 767px) {
  .control__text {
    margin-bottom: 28px;
  }
}

.control__img {
  width: 550px;
  height: 260px;
  border-radius: 21px;
}

.control__img img {
  border-radius: 3px;
}

@media screen and (max-width: 991px) {
  .control__img {
    display: none;
  }
}

.lang-tariff {
  align-self: flex-start;
}

/* Стили для светлой темы для блока контроля */
.wrapper.active .control__title {
  color: var(--theme-title-color);
}

.wrapper.active .control__text {
  color: var(--theme-text-color);
}