:root {
  --color-black: #202733;
  --color-grey-text: #5D6A80;
  --color-grey-border: #E5E9EC;
  --color-grey-bg: #EFF3F6;
  --color-white: #FFFFFF;
  --color-tg: #039BE5;
  --color-max: #2B0A63;
  --color-tg-hover: #007DC7;
  --color-max-hover: #191D86;
}

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

body {
  background-color: var(--color-grey-bg);
  font-family: 'Proxima Nova', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ── Block 1 ── */
.block-1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.heading__title {
  font-weight: 600;
  font-size: 28px;
  line-height: 28px;
  letter-spacing: -1.12px;
  color: var(--color-black);
  white-space: nowrap;
}

.heading__logo {
  flex-shrink: 0;
  width: 33px;
  height: 24px;
}

.heading__logo img {
  display: block;
}

.sim-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.sim-block__wave {
  flex-shrink: 0;
  display: block;
}

.sim-block__card {
  flex-shrink: 0;
  width: 86px;
  height: 140px;
}

.sim-block__card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Blocks wrapper ── */
.blocks {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

/* ── Tariff card ── */
.tariff-card {
  background-color: var(--color-white);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.tariff-card__title {
  font-weight: 600;
  font-size: 24px;
  line-height: 24px;
  letter-spacing: -0.96px;
  color: var(--color-black);
  width: 100%;
}

.tariff-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.tariff-details__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-grey-border);
}

.tariff-details__item--last {
  padding-bottom: 0;
  border-bottom: none;
}

.tariff-details__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  font-size: 16px;
  line-height: 16px;
  color: var(--color-grey-text);
  white-space: nowrap;
}

.tariff-details__icon {
  flex-shrink: 0;
  display: block;
}

.tariff-details__value {
  font-weight: 600;
  font-size: 16px;
  line-height: 16px;
  color: var(--color-black);
  white-space: nowrap;
}

/* ── Devices row ── */
.devices {
  display: flex;
  gap: 8px;
  width: 100%;
}

.devices__item {
  flex: 1 0 0;
  background-color: var(--color-white);
  border-radius: 8px;
  padding: 12px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.devices__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.devices__icon img {
  display: block;
}

.devices__label {
  font-weight: 400;
  font-size: 12px;
  line-height: 12px;
  color: var(--color-grey-text);
  text-align: center;
  width: 100%;
}

/* ── Block 2 ── */
.block-2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.block-2__title {
  font-weight: 600;
  font-size: 24px;
  line-height: 24px;
  letter-spacing: -0.96px;
  color: var(--color-black);
  text-align: center;
  width: 100%;
}

.buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px 36px;
  border: none;
  border-radius: 28px;
  cursor: pointer;
  text-decoration: none;
}

.btn__icon {
  flex-shrink: 0;
  display: block;
}

.btn__text {
  font-weight: 600;
  font-size: 16px;
  line-height: 16px;
  color: var(--color-white);
  white-space: nowrap;
}

.btn--telegram {
  background-color: var(--color-tg);
  transition: background-color 0.2s ease;
}

.btn--telegram:hover {
  background-color: var(--color-tg-hover);
}

.btn--max {
  background-color: var(--color-max);
  transition: background-color 0.2s ease;
}

.btn--max:hover {
  background-color: var(--color-max-hover);
}

.block-2__caption {
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  color: var(--color-grey-text);
  text-align: center;
  width: 100%;
}

/* ── Footer ── */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding-top: 16px;
}

.footer__logo {
  width: 44px;
  height: 32px;
}

.footer__logo img {
  display: block;
  width: 100%;
  height: 100%;
}

.footer__group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.footer__title {
  font-weight: 600;
  font-size: 16px;
  line-height: 16px;
  color: var(--color-black);
  text-align: center;
}

.footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.footer__list-item {
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  color: var(--color-grey-text);
  text-align: center;
}

.footer__link {
  color: var(--color-grey-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: var(--color-black);
}

.footer__legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding-top: 8px;
  border-top: 1px solid var(--color-grey-border);
}

.footer__legal-item {
  font-weight: 400;
  font-size: 13px;
  line-height: 18px;
  color: var(--color-grey-text);
  text-align: center;
}

.footer__legal-item--link {
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__legal-item--link:hover {
  color: var(--color-black);
}

/* ── Modal ── */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(32, 39, 51, 0.5);
}

.modal__dialog {
  position: relative;
  background-color: var(--color-white);
  border-radius: 16px;
  padding: 32px 24px;
  max-width: 560px;
  width: 100%;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--color-grey-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.modal__close:hover {
  color: var(--color-black);
}

.modal__title {
  font-weight: 700;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -1.28px;
  color: var(--color-black);
  text-align: center;
  margin-bottom: 24px;
}

.modal__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal__row {
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  color: var(--color-black);
}

/* ── Wave animation ── */
@keyframes signal-pulse {
  0%   { opacity: 0.15; }
  40%  { opacity: 1; }
  60%  { opacity: 1; }
  100% { opacity: 0.15; }
}

.wave-arc {
  animation: signal-pulse 1.8s ease-in-out infinite;
  opacity: 0.15;
}

.wave-arc--3 { animation-delay: 0s; }
.wave-arc--2 { animation-delay: 0.3s; }
.wave-arc--1 { animation-delay: 0.6s; }
