.hosting {
  padding: 173px 0 50px;
  color: rgba(255, 255, 255, 0.6);
}

@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: rgba(255, 255, 255, 0.1);
  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;
  color: #A065FF;
}

.hosting__list svg path {
  fill: currentColor;
}

.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: rgba(0, 0, 0, 0.1);
}

.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: rgba(0, 0, 0, 0.1);
}

.tariff-premium svg,
.tariff-premium svg path {
  color: #a065ff;
  fill: currentColor;
}

.wrapper.active .tariff-premium svg,
.wrapper.active .tariff-premium svg path {
  color: #a065ff;
  fill: currentColor;
}

.why {
  background-image: url(../images/paper.png);
  background-size: cover;
  background-repeat: no-repeat;
}


.why__img svg {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 6px rgba(var(--theme-icon-glow-rgb), 0.5))
          drop-shadow(0 0 12px rgba(var(--theme-icon-glow-rgb), 0.3))
          drop-shadow(0 0 20px rgba(var(--theme-icon-glow-rgb), 0.15));
}

.why__img svg path {
  fill: #a065ff;
}

.why__img::before {
  content: "";
  position: absolute;
  background-image: url(../images/why.png);
  background-size: cover;
  background-repeat: no-repeat;
  -webkit-filter: blur(8px);
  filter: blur(8px);
  width: 100%;
  height: 100%;
  z-index: 1;
}

.why__blocks {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding-right: 59px;
  -moz-column-gap: 100px;
  column-gap: 100px;
}

@media screen and (max-width: 1240px) {
  .why__blocks {
    padding-right: 0;
    -moz-column-gap: 40px;
    column-gap: 40px;
  }
}

@media screen and (max-width: 991px) {
  .why__blocks {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }
}

@media screen and (max-width: 991px) {
  .why__block {
    text-align: center;
  }
}

.why__img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 65px;
  margin-bottom: 26px;
  position: relative;
}

@media screen and (max-width: 991px) {
  .why__img {
    margin: 0 auto 23px auto;
  }
}

.why__high {
  font-weight: 600;
  font-size: 25px;
  line-height: 162%;
  color: var(--theme-primary-text);
  margin-bottom: 10px;
}

@media screen and (max-width: 1240px) {
  .why__high {
    font-size: 22px;
  }
}

@media screen and (max-width: 767px) {
  .why__high {
    font-size: 19px;
    margin-bottom: 8px;
  }
}

.why__text {
  font-size: 17px;
  line-height: 162%;
  color: var(--theme-text-color);
}

.wrapper.active .why {
  background-image: url(../images/whitepaper.png);
}

.wrapper.active .why__img svg path {
  fill: #78a1f2;
}

.wrapper.active .why__img::before {
  background-image: url(../images/why2.png);
}


.lang-yourControl .control__text {
  margin-bottom: 51px;
}

.control {
  padding: 70px 0;
}

@media screen and (max-width: 1240px) {
  .control {
    padding: 55px 0;
  }
}

@media screen and (max-width: 767px) {
  .control {
    padding: 28px 0;
  }
}

.control__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-weight: 600;
  font-size: 35px;
  line-height: 42px;
  color: var(--theme-primary-text);
  margin-bottom: 49px;
}

@media screen and (max-width: 1240px) {
  .control__title {
    font-size: 33px;
    margin-bottom: 30px;
  }
}

@media screen and (max-width: 991px) {
  .control__title {
    justify-content: center;
    margin-bottom: 20px;
  }
}

@media screen and (max-width: 767px) {
  .control__title {
    margin-bottom: 10px;
  }
}

.control__blocks {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

@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: var(--theme-text-color);
  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: 599px;
  height: 287px;
  border-radius: 21px;
}

.control__img img {
  border-radius: 3px;
}

@media screen and (max-width: 991px) {
  .control__img {
    display: none;
  }
}

.control__btn {
  margin: 0;
}

@media screen and (max-width: 991px) {
  .control__btn {
    margin: 0 auto;
  }
}

@media screen and (max-width: 991px) {
  .lang-yourControl .control__text {
    margin-bottom: 40px;
  }
}

/* Tariff Switcher */
.tariff-switcher {
  margin: 30px 0;
  padding: 20px;
  background-color: #1A1832;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: var(--theme-text-color);
}

.tariff-switcher__title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--theme-primary-text);
}

.tariff-switcher__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.tariff-switcher__button {
  padding: 10px 15px 20px;
  background-color: #2A2842;
  border: 2px solid #3A3852;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  color: var(--theme-text-color);
  position: relative;
}

.tariff-switcher__button::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 15px;
  right: 15px;
  height: 4px;
  border-radius: 2px;
}

.tariff-switcher__button[data-tariff="Spark"]::after {
  background-color: #808080;
}

.tariff-switcher__button[data-tariff="Ember"]::after {
  background-color: #2AAA8A;
}

.tariff-switcher__button[data-tariff="Flare"]::after {
  background-color: #FF9800;
}

.tariff-switcher__button[data-tariff="Glow"]::after {
  background-color: #FFF176;
}

.tariff-switcher__button[data-tariff="Forge"]::after {
  background-color: #2196F3;
}

.tariff-switcher__button[data-tariff="Anvil"]::after {
  background-color: #7E57C2;
}

.tariff-switcher__button[data-tariff="Hammer"]::after {
  background-color: #EC407A;
}

.tariff-switcher__button[data-tariff="Foundry"]::after {
  background-color: #EF5350;
}

.tariff-switcher__button[data-tariff="Eternity"]::after {
  background-color: #FFEB3B;
}

.tariff-switcher__button:hover {
  background-color: #3A3852;
  border-color: #4A4862;
}

.tariff-switcher__button.active {
  background-color: #8655D7;
  border-color: #9665E7;
  color: var(--theme-primary-text);
}

.tariff-popular {
  border-bottom: 3px solid #FF9800;
}

.tariff-optimal {
  border-bottom: 3px solid #2196F3;
}

.tariff-premium {
  border-bottom: 3px solid #F44336;
}

.tariff-popular.active {
  border-bottom: 3px solid #FF9800;
}

.tariff-optimal.active {
  border-bottom: 3px solid #2196F3;
}

.tariff-premium.active {
  border-bottom: 3px solid #F44336;
}

.tariff-switcher__details {
  background-color: #252441;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.tariff-info-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.tariff-info {
  flex: 1;
  min-width: 250px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
}

.tariff-info__item {
  padding: 12px 15px;
  border-radius: 5px;
  background-color: #1A1832;
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.tariff-info__item:hover {
  transform: translateY(-2px);
}

.tariff-info__item--full {
  grid-column: 1 / -1;
}

.tariff-info__icon {
  color: #a065ff;
  margin-right: 10px;
  font-size: 18px;
  width: 20px;
  text-align: center;
}

.tariff-switcher .tariff-info__label {
  font-weight: 600;
  color: #abaab5 !important;
  margin-right: auto;
}

.tariff-switcher .tariff-info__value {
  font-weight: 500;
  color: #abaab5 !important;
  margin-left: 10px;
}

.tariff-price-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 220px;
}

.tariff-price-info {
  background-color: #1A1832;
  border-radius: 8px;
  padding: 15px;
  border-left: 4px solid var(--theme-accent);
  margin-bottom: 15px;
}

.tariff-price-info__item {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.tariff-price-info__item:last-child {
  margin-bottom: 0;
}

.tariff-price-info__label {
  font-weight: 600;
  color: var(--theme-text-color);
  margin-bottom: 5px;
  font-size: 14px;
}

.tariff-price-info__value {
  font-weight: 700;
  color: var(--theme-accent);
  font-size: 24px;
}

.tariff-discount-badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--theme-accent);
  color: var(--theme-primary-text);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
}

.tariff-order-btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 12px;
  background-color: var(--theme-accent);
  color: var(--theme-primary-text) !important;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.tariff-order-btn:hover {
  background-color: var(--theme-accent-hover);
}

.tariff-switcher__custom-tariff {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--theme-border-color);
  text-align: center;
}

.tariff-custom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--theme-accent);
  color: var(--theme-primary-text) !important;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  border: none;
}

.tariff-custom-btn span {
  color: var(--theme-primary-text) !important;
}

.tariff-custom-btn:hover {
  background: var(--theme-accent-hover);
  transform: translateY(-2px);
}

.tariff-custom-btn:hover span {
  color: var(--theme-primary-text) !important;
}

.tariff-custom-btn i {
  font-size: 18px;
  animation: gearSpin 6s ease-in-out infinite;
}

@keyframes gearSpin {
  0% { transform: rotate(0deg); }
  15% { transform: rotate(0deg); }
  20% { transform: rotate(45deg); }
  25% { transform: rotate(45deg); }
  35% { transform: rotate(90deg); }
  40% { transform: rotate(90deg); }
  85% { transform: rotate(90deg); }
  90% { transform: rotate(135deg); }
  95% { transform: rotate(135deg); }
  100% { transform: rotate(180deg); }
}

/* Light theme styles */
.wrapper.active .tariff-switcher {
  background-color: #f8f9fa;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.wrapper.active .tariff-switcher__button {
  background-color: #e9ecef;
  border-color: #dee2e6;
}

.wrapper.active .tariff-switcher__button:hover {
  background-color: #f8f9fa;
  border-color: #ced4da;
}

.wrapper.active .tariff-switcher__details {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wrapper.active .tariff-info__item {
  background-color: #f8f9fa;
}

.wrapper.active .tariff-price-info {
  background-color: #f8f9fa;
}

.wrapper.active .tariff-switcher__button.active {
  background-color: #8655D7;
  border-color: #9665E7;
}

.wrapper.active .tariff-switcher .tariff-info__label {
  color: #abaab5 !important;
}

.wrapper.active .tariff-switcher .tariff-info__value {
  color: #abaab5 !important;
}

.wrapper.active .tariff-info__icon {
  color: #a065ff;
}


@media (max-width: 768px) {
  .tariff-switcher__buttons {
    justify-content: center;
  }
  
  .tariff-switcher__button {
    flex-basis: calc(33.333% - 10px);
    text-align: center;
  }
  
  .tariff-info {
    grid-template-columns: 1fr;
  }
  
  .tariff-price-container {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .tariff-switcher__button {
    flex-basis: calc(50% - 10px);
  }
  
  .tariff-custom-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .tariff-custom-btn i {
    font-size: 16px;
  }
}