:root {
  color-scheme: dark;
  --page: #101012;
  --band: #18181b;
  --card: #3a3a3d;
  --text: #ffffff;
  --muted: #c7c7cc;
  --soft: #8c8c96;
  --accent: #ff545b;
  --accent-strong: #ff3f48;
  --max: 820px;
  font-family:
    "Avenir Next", Avenir, Montserrat, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background: var(--page);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 0 clamp(18px, 3.5vw, 56px);
  background: rgba(83, 83, 83, 0.027);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-logo {
  display: inline-flex;
  align-items: center;
}

.header-logo img {
  display: block;
  width: clamp(112px, 7vw, 136px);
  height: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(26px, 4vw, 70px);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem;
}

.primary-nav > a,
.primary-nav > button,
.nav-item > a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
}

.nav-item {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  display: grid;
  min-width: 150px;
  padding: 12px 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #18181b;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.dropdown-menu::before {
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 12px;
  content: "";
}

.dropdown-menu a {
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  white-space: nowrap;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  color: var(--accent);
}

.nav-item--dropdown:hover .dropdown-menu,
.nav-item--dropdown:focus-within .dropdown-menu {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.header-button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 5px;
  color: inherit;
  background: transparent;
  cursor: default;
}

.section-inner {
  width: min(100% - 42px, var(--max));
  margin: 0 auto;
}

.hero {
  display: grid;
  min-height: 760px;
  place-items: center;
  padding: 140px 20px 260px;
  background:
    linear-gradient(180deg, rgba(16, 16, 18, 0.3), rgba(16, 16, 18, 0.2) 55%, #101012 100%),
    url("img/hero.avif") center 58% / cover;
  text-align: center;
}

.hero__content {
  width: min(100%, 780px);
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 4vw, 4rem);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: 0;
}

.hero p {
  margin: 32px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.08rem;
  line-height: 1.7;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: clamp(18px, 3vw, 28px);
  width: min(100% - 42px, 820px);
  margin: -58px auto 0;
  padding-bottom: 120px;
}

.service-card {
  position: relative;
  display: grid;
  min-height: clamp(210px, 25vw, 280px);
  overflow: hidden;
  align-items: end;
  justify-items: center;
  padding: 0 16px 74px;
  border-radius: 18px;
  isolation: isolate;
  background-position: center;
  background-size: cover;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.34);
}

.service-card::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 25%, rgba(0, 0, 0, 0.58) 100%);
  content: "";
}

.service-card span {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

.service-card--mobile {
  background-image: url("img/mobile.avif");
}

.service-card--internet {
  background-image: url("img/internet.avif");
}

.service-card--network {
  background-image: url("img/gaming.avif");
}

.why {
  padding: 0 0 76px;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 70px 98px;
  margin-top: 56px;
}

.feature {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 20px;
}

.feature__icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--accent);
  font-size: 1rem;
  line-height: 1;
}

.feature h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 500;
}

.feature p {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.75;
}

.plans-band {
  padding: 43px 0 104px;
  background: var(--band);
}

.plans-band h2 {
  font-size: clamp(1.65rem, 4vw, 2.05rem);
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.plan-card {
  display: flex;
  min-height: 500px;
  flex-direction: column;
  gap: 22px;
  padding: 36px 22px;
  background: var(--card);
}

.plan-card__topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 1.22rem;
}

.plan-card__topline strong {
  font-size: 1.16rem;
  font-weight: 500;
  white-space: nowrap;
}

.plan-card__topline small {
  font-size: 0.55rem;
}

.plan-card p {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.55;
}

.plan-card__term {
  color: var(--muted);
}

.bonus {
  width: max-content;
  max-width: 100%;
  padding: 2px 4px;
  color: #ffffff;
  background: var(--accent);
  font-weight: 700;
}

.cta {
  display: grid;
  justify-items: center;
  gap: 25px;
  padding: 88px 20px;
  text-align: center;
}

.cta p {
  margin: 0;
  font-size: 1.24rem;
}

.button {
  display: inline-grid;
  min-width: 96px;
  min-height: 43px;
  place-items: center;
  padding: 0 24px;
  border: 0;
  border-radius: 4px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: default;
}

.button:hover {
  background: var(--accent-strong);
}

.network {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(100% - 84px, 1120px);
  margin: 0 auto 86px;
  background: #ffffff;
}

.network__image {
  min-height: 335px;
  background:
    linear-gradient(90deg, rgba(8, 15, 28, 0.25), transparent),
    url("img/about.avif") center / cover;
}

.network__copy {
  display: grid;
  min-height: 335px;
  place-items: center;
  padding: clamp(36px, 6vw, 84px);
  color: #33343a;
}

.network__copy p {
  max-width: 410px;
  margin: 0;
  font-size: 0.73rem;
  line-height: 1.85;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  width: min(100% - 84px, 860px);
  margin: 0 auto;
  padding-top: 30px;
  padding-bottom: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 22px;
}

.brand img {
  width: 118px;
  height: auto;
  display: block;
}

.site-footer p,
.site-footer address {
  color: var(--muted);
  font-size: 0.75rem;
  font-style: normal;
  line-height: 1.8;
}

.site-footer p {
  max-width: 300px;
  margin: 0 0 22px;
}

.site-footer strong {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 500;
}

.sim-page {
  background: var(--page);
}

.sim-hero {
  display: grid;
  min-height: 270px;
  align-items: center;
  padding: 58px 20px 64px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.12)),
    url("img/mobile-background.avif") center / cover;
}

.sim-hero__content {
  width: min(100% - 42px, var(--max));
  margin: 0 auto;
}

.sim-hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.15rem, 3.55vw, 3rem);
  font-weight: 500;
  line-height: 1.08;
}

.sim-hero p {
  max-width: 390px;
  margin: 16px 0 0;
  color: #ffffff;
  font-size: 0.78rem;
  line-height: 1.85;
}

.sim-benefits {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: clamp(48px, 9vw, 150px);
  padding: 12px 20px;
  background: #3f444a;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.8rem;
}

.sim-benefits div {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.sim-benefits i {
  width: 18px;
  color: #ffffff;
  font-size: 0.72rem;
  text-align: center;
}

.sim-plans {
  width: min(100% - 64px, 1182px);
  margin: 32px auto 0;
  padding: 40px 0 54px;
  background: #171719;
}

.sim-plans__inner {
  width: min(100% - 42px, 810px);
  margin: 0 auto;
}

.sim-plans h2 {
  font-size: clamp(1.45rem, 2.2vw, 1.75rem);
}

.sim-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.sim-plan-card {
  min-height: 338px;
  padding: 22px 24px 28px;
  background: var(--card);
}

.sim-plan-card__price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.sim-plan-card__price span {
  font-size: 1.35rem;
}

.sim-plan-card__price strong {
  font-size: 1.25rem;
  font-weight: 500;
  white-space: nowrap;
}

.sim-plan-card__price small {
  font-size: 0.58rem;
}

.sim-plan-card__label {
  display: inline-block;
  margin: 74px 0 44px;
  padding: 2px 8px 3px;
  background: var(--accent);
  font-size: 0.86rem;
  line-height: 1.2;
}

.sim-plan-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.72rem;
  line-height: 1.45;
}

.student-deals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(100% - 64px, 1182px);
  margin: 0 auto 116px;
  background: #ffffff;
}

.student-deals__image {
  min-height: 296px;
  background: url("img/mobilesim.avif") center / cover;
}

.student-deals__copy {
  display: grid;
  align-content: center;
  min-height: 296px;
  padding: clamp(36px, 5vw, 72px);
  color: #363740;
}

.student-deals h2 {
  margin: 0 0 28px;
  color: var(--accent);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  text-align: center;
}

.student-deals p {
  margin: 0;
  font-size: 0.66rem;
  line-height: 1.55;
}

.help-cta {
  display: grid;
  justify-items: center;
  gap: 34px;
  padding: 78px 20px 82px;
  background: var(--band);
  text-align: center;
}

.help-cta h2,
.help-cta h3 {
  font-size: clamp(2.55rem, 3.9vw, 3.65rem);
  line-height: 1.35;
}

.prepaid-page {
  background: var(--page);
}

.prepaid-hero {
  display: grid;
  min-height: 315px;
  align-items: center;
  padding: 54px 20px 62px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6)),
    url("img/prepaid-background.avif") center / cover;
}

.prepaid-hero__content {
  width: min(100% - 42px, 840px);
  margin: 0 auto;
}

.prepaid-hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 4.2vw, 3.6rem);
  font-weight: 500;
  line-height: 1.08;
}

.prepaid-hero p {
  max-width: 700px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.86rem;
  line-height: 1.8;
}

.prepaid-plans {
  padding: 48px 20px 86px;
  background: var(--page);
}

.prepaid-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(100%, 885px);
  margin: 0 auto;
}

.prepaid-plan-card {
  min-height: 480px;
  padding: 58px 44px 44px;
  background: #18191b;
}

.prepaid-plan-card__data {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 18px;
}

.prepaid-plan-card__data strong {
  font-size: 3rem;
  font-weight: 500;
  line-height: 0.95;
}

.prepaid-plan-card__data span {
  font-size: 1rem;
}

.prepaid-plan-card__bonus,
.prepaid-plan-card__term,
.prepaid-plan-card li {
  color: rgba(255, 255, 255, 0.58);
}

.prepaid-plan-card__bonus {
  min-height: 50px;
  margin: 0 0 34px;
  font-size: 0.78rem;
}

.prepaid-plan-card__price {
  margin: 0;
  color: #ffffff;
  font-size: 1.42rem;
  line-height: 1.1;
}

.prepaid-plan-card__term {
  margin: 4px 0 38px;
  font-size: 0.78rem;
}

.prepaid-plan-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.76rem;
  line-height: 1.4;
}

.prepaid-flex {
  min-height: 580px;
  padding: 0 20px 150px;
  background: var(--page);
}

.prepaid-flex h2 {
  margin: 0 0 48px;
  font-size: clamp(1.9rem, 3vw, 2.45rem);
  line-height: 1.35;
  text-align: center;
}

.prepaid-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(48px, 8vw, 170px);
  width: min(100%, 1020px);
  margin: 0 auto;
}

.prepaid-feature-card {
  display: grid;
  min-height: 395px;
  align-content: center;
  padding: 56px 36px;
  background: #ffffff;
  color: #242428;
  text-align: center;
}

.prepaid-feature-card h3 {
  margin: 0 0 46px;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  font-weight: 700;
  line-height: 1.1;
}

.prepaid-feature-card p {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding-block: 22px;
  }

  .primary-nav {
    flex-wrap: wrap;
    gap: 16px 26px;
    font-size: 0.98rem;
  }

  .dropdown-menu {
    left: 0;
    transform: translate(0, 8px);
  }

  .nav-item--dropdown:hover .dropdown-menu,
  .nav-item--dropdown:focus-within .dropdown-menu {
    transform: translate(0, 0);
  }

  .hero {
    min-height: 500px;
    padding-bottom: 130px;
  }

  .services {
    grid-template-columns: 1fr;
    width: min(100% - 56px, 250px);
    margin-top: -72px;
    padding-bottom: 86px;
  }

  .service-card {
    min-height: 250px;
  }

  .features,
  .plans,
  .network,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .features {
    gap: 44px;
  }

  .plan-card {
    min-height: auto;
  }

  .network,
  .site-footer {
    width: min(100% - 42px, var(--max));
  }

  .network__image,
  .network__copy {
    min-height: 275px;
  }

  .sim-benefits {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 14px 24px;
  }

  .sim-plans,
  .student-deals {
    width: min(100% - 42px, var(--max));
  }

  .sim-plan-grid,
  .student-deals {
    grid-template-columns: 1fr;
  }

  .sim-plan-card {
    min-height: auto;
  }

  .sim-plan-card__label {
    margin: 44px 0 32px;
  }

  .prepaid-plan-grid {
    grid-template-columns: 1fr;
    width: min(100%, 420px);
  }

  .prepaid-plan-card {
    min-height: auto;
  }

  .prepaid-feature-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    width: min(100%, 420px);
  }

  .prepaid-feature-card {
    min-height: 280px;
  }
}

@media (max-width: 430px) {
  .section-inner {
    width: min(100% - 30px, var(--max));
  }

  .hero {
    min-height: 460px;
    padding-inline: 15px;
  }

  .hero h1 {
    font-size: 2.15rem;
  }

  .services {
    width: min(100% - 60px, 220px);
  }

  .service-card {
    min-height: 220px;
  }

  .feature {
    grid-template-columns: 24px 1fr;
    gap: 14px;
  }

  .site-footer {
    gap: 42px;
  }

  .sim-hero {
    min-height: 250px;
    padding: 52px 15px;
  }

  .sim-hero__content {
    width: min(100% - 30px, var(--max));
  }

  .sim-hero h1 {
    font-size: 2.2rem;
  }

  .sim-benefits div {
    white-space: normal;
  }

  .help-cta h2 {
    font-size: 2.45rem;
  }

  .prepaid-hero h1 {
    font-size: 2.3rem;
  }

  .prepaid-hero p {
    font-size: 0.8rem;
  }

  .prepaid-plan-card {
    padding: 38px 28px;
  }
}
