* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Подключение шрифтов */
@font-face {
  font-family: 'MTS Wide';
  src: url('../fonts/MTSWide-Medium.woff') format('woff');
  font-weight: 500;
}

@font-face {
  font-family: 'MTS Wide';
  src: url('../fonts/MTSWide-Regular.woff') format('woff');
  font-weight: 400;
}

:root {
  --font-wide: 'MTS Wide';
}

body {
  background: #F9F9F9;
  color: №000;
  padding: 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-wide);
}

input,
textarea,
select,
button {
  font-family: var(--font-wide);
}

h1 {
  margin-bottom: 30px;
  font-size: 24px;
  text-align: center;
}

/* Стили общей страницы */
.page {
  padding-left: 24px;
  padding-right: 24px;

  width: 100%;
  min-height: 100vh;
  height: 100%;
  min-height: min-content;
}

@media (max-width: 400px) {
  .page {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Заголовок */
.page-title {
  font-size: 32px;
  margin-bottom: 24px;
  color: #000;
  text-align: center;
}

/* Блок страницы */
.screen {
  display: none;
  max-width: 375px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.screen.show {
  opacity: 1;
  visibility: visible;
}


/* Кнопка */
.button {
  width: 100%;
  max-width: 320px;
  padding: 15px;
  margin: 10px 0;
  background: var(--tg-theme-button-color);
  color: var(--tg-theme-button-text-color);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.button:hover {
  opacity: 0.9;
}


/* Кнопка "Назад" */
.back-button {
  margin-top: 20px;
  margin-bottom: 40px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  color: #158DDC;
  padding: 0;
}

.back-button img {
  width: 16px;
  height: 16px;
}

.back-button span {
  margin-left: 8px;
  color: #158DDC;
  font-size: 16px;
  font-weight: 500;
}


/* Инпуты */
.input,
.textarea {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: none;
  border-radius: 40px;
  box-shadow: 2px 2px 4px 0 rgba(0, 0, 0, 0.07);
  font-size: 16px;
  color: #333;
  opacity: 1;
  padding: 20px 24px;
  outline: none;
  transition: box-shadow 0.2s;
}

.input::placeholder,
.textarea::placeholder {
  color: #333;
  opacity: 0.5;
}

.textarea {

  height: 200px;
  border-radius: 24px;
  resize: none;
}

/* Кнопка */
.submit {
  width: 100%;
  background: #158DDC;
  color: #F9F9F9;
  border: none;
  border-radius: 40px;
  box-shadow: 2px 2px 4px 0 rgba(0, 0, 0, 0.07);
  font-family: 'MTS Wide Medium', sans-serif;
  font-size: 18px;
  font-weight: 500;
  padding: 18px 0;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 32px;
  transition: background 0.2s, color 0.2s;
}

.submit:active {
  background: #F9F9F9;
  color: #FF0032;
}


/* PAGES STYLE */

#main-screen {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  margin-bottom: 24px;
}

.logo img {
  width: 230px;
  margin-bottom: 10px;
}

.menu-button {
  width: 100%;
  border-radius: 40px;
  background: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 15px 0;
  box-shadow: 2px 2px 4px rgba(217, 217, 217, 0.25);
  cursor: pointer;
}

.menu-button__icon {
  width: 40px;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;

  &._tariff {
    width: 50;
    height: 48px;
  }

  & img {
    height: 100% !important;
    object-fit: cover;
    width: 100% !important;
  }
}

.menu-button span,
h2 {
  flex: 1;
  margin: 0 12px;
  text-align: left;
  font-size: 16px;
  color: #222;
  font-family: var(--font-wide);
  font-weight: 500;
}

.menu-button img {
  width: 24px;
  height: 24px;
}

.menu-button .arrow {
  margin-left: auto;
  width: 16px;
  height: 16px;
}

.main-button {
  margin: 24px 0;
  width: 100%;
  padding: 16px;
  border-radius: 40px;
  background-color: #158DDC;
  color: white;
  font-weight: medium;
  font-size: 18px;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

.main-button:hover {
  opacity: 0.9;
}

.banner {
  width: 100%;
}

.banner img {
  width: 100%;
  border-radius: 16px;
  object-fit: contain;
}

.card-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tariff-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0px 0 2px 0px rgba(110, 110, 110, 0.4);
  display: flex;
  flex-direction: column;

}

.tariff-header {
  padding: 26px 24px;
  background: linear-gradient(90deg, #E8F0FE, #FEE8F3);
  border-radius: 24px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.tariff-title {
  font-family: var(--font-wide);
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.tariff-title__img {
  position: absolute;
  top: -23%;
  right: 0;

  height: 110px;
  width: 150px;

  & img {
    width: 100%;
    object-fit: contain;
  }
}



.tariff-desc {
  font-size: 14px;
  padding: 0 12px;
  margin-bottom: 12px;
  color: #333333;
}

.tariff-card hr {
  border: none;
  border-top: 1px solid #e2e3e8;
  margin: 12px 0;

  height: 1px;
}

.section {
  margin-bottom: 12px;
}

.section-title {
  display: flex;
  align-items: center;
  margin-bottom: 8px;

}

.section-titl__img {
  background-color: #F2F3F7;
  border-radius: 100%;
  width: 28px;
  height: 28px;
  padding: 6px;

  & img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

.section-title span {
  margin-left: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #333333;
}

.section-list {
  list-style: none;
  padding-left: 40px;
  margin: 0;
}

.section-list li {
  position: relative;
  padding-left: 12px;
  margin-bottom: 4px;
  font-size: 14px;
  color: #555555;
}

.section-list li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  top: 0;
  color: #ff0032;
}

.card-footer {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.card-footer__img {
  width: 36px;
  height: 36px;
  border-radius: 5px;
  overflow: hidden;
  margin-right: 8px;

  & img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.card-footer p {
  font-size: 12px;
  font-weight: 500;
  color: #555555;
  flex: 1;
}

/* Для страницы роутеры */
/* Обёртка экрана роутеров */
#routers-screen {
  width: 100%;
  min-height: 100vh;
  background: #F9F9F9;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Главное! Добавляем паддинг слева и справа */
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

.tariff-button {
  margin-top: 40px;
}


/* Список карточек */
.routers-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

/* Карточка роутера */
.router-card {
  width: 100%;
  /* Растягивается на всю ширину обёртки */
  /* Но не больше макета */
  background: #FFF;
  border-radius: 24px;
  padding: 24px;
  box-sizing: border-box;
  box-shadow: 2px 2px 4px rgba(217, 217, 217, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.router-img {
  width: 100%;
  max-width: 279px;
  height: 160px;
  border-radius: 24px;
  margin-bottom: 16px;
  overflow: hidden;

  & img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
  }
}

.router-info {
  width: 100%;
}

.router-name {
  font-family: var(--font-wide);
  font-weight: 500;
  font-size: 20px;
  color: #232323;
  margin-bottom: 12px;
}

.router-label {
  font-family: var(--font-wide);
  font-size: 13px;
  color: #333333;
  margin-bottom: 4px;
}

.router-price {
  font-family: var(--font-wide);
  font-weight: 500;
  font-size: 16px;
  margin-bottom: 12px;
  color: #232323;
}

.installment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.installment-price {
  font-weight: 500;
  font-size: 16px;
  color: #232323;
}

.installment-period {
  font-size: 16px;
  color: #232323;
  opacity: 0.4;
}

.router-divider {
  width: 279px;
  border: none;
  height: 1px;
  background: #F2F3F7;
  margin: 0 auto 8px auto;
}

@media (max-width: 375px) {
  #routers-screen {
    padding-left: 12px;
    padding-right: 12px;
  }

  .router-card {
    padding: 16px;
  }
}

/* Форма */
.consultation-form, .tariffs-form {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.consultation-notice {
  margin-top: 8px;
  max-width: 90%;
}

.consultation-form__title {
  margin-top: 40px;

}


/* Мобильная адаптация */


/* Обёртка страницы */
#application-screen {

  width: 100%;
  min-height: 100vh;
  display: block;
}


/* Основная обёртка формы */
.application-form-wrapper {
  width: 100%;
  max-width: 327px;
  margin: 0 auto;
  padding: 0 25px 39px 25px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Заголовок */
.application-title {
  color: #000;
  text-align: center;
  margin-top: 40px;
  font-weight: 500;
  font-size: 28px;
}


/* Форма */
.application-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Поля */
.application-input {
  width: 100%;
  background: #fff;
  border: none;
  border-radius: 40px;
  box-shadow: 2px 2px 4px 0 rgba(0, 0, 0, 0.07);
  font-size: 16px;
  color: #333;
  opacity: 1;
  padding: 20px 24px;
  outline: none;
  transition: box-shadow 0.2s;
  appearance: none;
  box-sizing: border-box;
}

.application-input::placeholder {
  color: #333;
  opacity: 1;
}

/* Стилизация select */
.application-input:has(option:checked:not([disabled])) {
  color: #333;
  opacity: 1;
}

.application-input option {
  color: #333;
  opacity: 1;
}

/* Стрелка select */
.select-wrapper {
  position: relative;
  width: 100%;
}

.select-wrapper select.application-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  padding-right: 44px;
  /* чтобы текст не залез на стрелку */
}

.arrow-down {
  position: absolute;
  top: 50%;
  right: 20px;
  width: 18px;
  height: 18px;
  pointer-events: none;
  transform: translateY(-50%);
}

/* Widget-карта */
.yandex-map-widget {
  width: 100%;
  margin: 0 auto 40px auto;
  border-radius: 10px;
  overflow: hidden;
}

.yandex-map-widget iframe {
  width: 100%;
  min-height: 200px;
  border-radius: 20px;
  border: none;
  display: block;
}

/* Кнопка отправить */
.application-submit {
  width: 100%;
  background: #158DDC;
  color: #F9F9F9;
  border: none;
  border-radius: 40px;
  box-shadow: 2px 2px 4px 0 rgba(0, 0, 0, 0.07);
  font-size: 18px;
  font-weight: 500;
  padding: 18px 0;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 0;
  margin-bottom: 0;
  transition: background 0.2s, color 0.2s;
margin-top: 32px;
}

.application-submit:active {
  background: #F9F9F9;
  color: #FF0032;
}

/* Адаптив для мобилки */
@media (max-width: 400px) {
  .application-form-wrapper {
    padding-left: 12px;
    padding-right: 12px;
  }
}


.thanks {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80vh;
}

.thanks__close {
  position: absolute;
  top: 36px;
  right: 27px;
}

.thanks__info {
  background-color: white;
  box-shadow: 2px 2px 4px rgba(217, 217, 217, 0.25);
  border-radius: 16px;
  padding: 22px 10px 16px 10px;
}

.thanks__info-icon {
  width: fit-content;
  margin: 0 auto 14px auto;
  cursor: pointer;
}

.thanks__info-text {}