:root {
  --navy: #082235;
  --navy-2: #0d3148;
  --orange: #ff7a1a;
  --orange-2: #ff9b22;
  --cyan: #00afd7;
  --green: #18b56b;
  --bg: #f4f8fb;
  --surface: #ffffff;
  --soft: #e8f0f5;
  --line: #d8e3ea;
  --text: #102f43;
  --muted: #5f7482;
  --shadow: 0 18px 48px rgba(8, 34, 53, .12);
  --radius: 8px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, #ffffff 0%, #f4f8fb 38%, #edf5f9 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding-bottom: 74px;
}

a { color: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px clamp(14px, 4vw, 46px);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 126px;
  text-decoration: none;
}

.brand img {
  display: block;
  width: clamp(118px, 13vw, 176px);
  height: auto;
}

.quick-links {
  margin-left: auto;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0;
}

.quick-links::-webkit-scrollbar,
.filter-scroll::-webkit-scrollbar { display: none; }

.quick-links a,
.filter,
.primary-action,
.secondary-action,
.hero-panel a,
.bottom-cta a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 800;
  letter-spacing: 0;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.quick-links a {
  padding: 0 13px;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  font-size: .8rem;
}

.quick-links a:nth-child(2) {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.quick-links a:hover,
.filter:hover,
.primary-action:hover,
.secondary-action:hover,
.hero-panel a:hover,
.bottom-cta a:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(8, 34, 53, .12);
}

.hero {
  position: relative;
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: clamp(18px, 5vw, 58px);
  padding: clamp(34px, 6vw, 66px) clamp(18px, 6vw, 76px) clamp(28px, 5vw, 48px);
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .92) 45%, rgba(224, 243, 250, .88) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 6%, rgba(0, 175, 215, .18), transparent 26rem),
    radial-gradient(circle at 8% 16%, rgba(255, 122, 26, .12), transparent 23rem);
}

.hero::before {
  content: "";
  position: absolute;
  right: clamp(16px, 7vw, 120px);
  top: 54px;
  width: min(520px, 45vw);
  height: 190px;
  background: url("assets/next-logo.png") center / contain no-repeat;
  opacity: .08;
  pointer-events: none;
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.55rem, 6vw, 4.8rem);
  line-height: .9;
  letter-spacing: 0;
}

.hero-contact-grid {
  max-width: 790px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.hero-contact-grid a {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(8, 34, 53, .07);
  text-decoration: none;
}

.hero-contact-grid span {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero-contact-grid strong {
  margin-top: 8px;
  color: var(--navy);
  font-size: clamp(.9rem, 1.6vw, 1.08rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.hero-panel {
  padding: 22px;
  color: #fff;
  background: linear-gradient(160deg, var(--navy), var(--navy-2));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel span,
.hero-panel small {
  display: block;
  color: rgba(255, 255, 255, .76);
}

.hero-panel strong {
  display: block;
  margin: 8px 0 10px;
  font-size: clamp(1.65rem, 3.3vw, 2.45rem);
  line-height: 1;
}

.hero-panel a {
  margin-top: 18px;
  padding: 0 15px;
  color: #fff;
  background: var(--orange);
}

.sticky-filter {
  position: sticky;
  top: 74px;
  z-index: 30;
  padding: 10px clamp(12px, 4vw, 46px);
  background: rgba(244, 248, 251, .92);
  border-block: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.filter-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.filter {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  padding: 0 14px;
  cursor: pointer;
}

.filter.active {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.section {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: clamp(26px, 5vw, 54px) 0 0;
}

.section-heading {
  display: flex;
  align-items: end;
  gap: 14px;
  margin-bottom: 16px;
}

.section h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: 0;
}

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

.plan-card {
  position: relative;
  min-height: 292px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(8, 34, 53, .08);
}

.plan-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--accent, var(--cyan));
}

.plan-card::after {
  content: "";
  position: absolute;
  right: -52px;
  top: -52px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent, var(--cyan)) 14%, transparent);
}

.plan-card.is-hidden { display: none; }

.plan-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.category {
  color: var(--accent, var(--cyan));
  font-size: .7rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.badge {
  border-radius: 999px;
  padding: 5px 8px;
  background: #fff2e8;
  color: #b84d06;
  font-size: .68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.plan-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.2rem, 2.3vw, 1.62rem);
  letter-spacing: 0;
}

.price {
  position: relative;
  z-index: 1;
  margin: -3px 0 0;
  color: var(--navy);
  font-size: clamp(1.78rem, 4vw, 2.42rem);
  font-weight: 950;
  line-height: 1;
}

.price small {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 750;
}

.note {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
}

.features {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.features li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #28475a;
  font-size: .9rem;
  line-height: 1.25;
}

.features li::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--accent, var(--cyan));
}

.plan-action {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 43px;
  margin-top: auto;
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  background: var(--orange);
  font-weight: 900;
  cursor: pointer;
}

.plan-action:hover { background: #e9660c; }

.compact-contact { padding-top: 28px; }

.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.contact-cards a {
  min-height: 84px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(8, 34, 53, .07);
}

.contact-cards span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 850;
}

.contact-cards strong {
  margin-top: 6px;
  color: var(--navy);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.footer {
  width: min(1180px, calc(100% - 28px));
  margin: 44px auto 18px;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
}

.footer img {
  width: 112px;
  display: block;
}

.bottom-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 50;
  display: none;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.bottom-cta a {
  flex: 1;
  min-height: 46px;
  color: #fff;
  background: var(--navy);
}

.bottom-cta a:last-child { background: var(--green); }

.plan-modal {
  width: min(620px, calc(100% - 24px));
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  color: var(--text);
  background: #fff;
  box-shadow: var(--shadow);
}

.plan-modal::backdrop {
  background: rgba(8, 34, 53, .58);
  backdrop-filter: blur(4px);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--navy);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.modal-inner { padding: 28px; }

.modal-inner h3 {
  margin: 0 42px 10px 0;
  color: var(--navy);
  font-size: clamp(1.5rem, 6vw, 2.2rem);
}

.modal-inner .price { margin-bottom: 8px; }

.modal-list {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.modal-list li {
  padding: 12px;
  border-radius: var(--radius);
  background: #f3f8fb;
  color: #28475a;
  font-weight: 750;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-panel { max-width: 520px; }

  .plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { padding-bottom: 76px; }

  .topbar {
    min-height: 0;
    align-items: flex-start;
    padding: 8px 12px;
    gap: 8px;
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .brand {
    min-width: 0;
    width: 82px;
    padding-top: 3px;
  }

  .brand img {
    width: 82px;
  }

  .quick-links {
    gap: 6px;
    width: 100%;
    min-width: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 0 2px 4px;
  }

  .quick-links a {
    min-height: 30px;
    padding: 0 8px;
    font-size: .66rem;
  }

  .hero {
    padding: 34px 14px 26px;
  }

  .hero::before {
    top: 22px;
    right: -44px;
    width: 260px;
    height: 120px;
  }

  .hero h1 {
    font-size: clamp(2.18rem, 12.5vw, 3.55rem);
  }

  .hero-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
  }

  .hero-contact-grid a {
    min-height: 80px;
    padding: 12px;
  }

  .sticky-filter {
    top: 54px;
    padding: 7px 10px;
  }

  .filter-scroll {
    gap: 6px;
    padding-bottom: 2px;
  }

  .filter {
    min-height: 32px;
    padding: 0 9px;
    font-size: .72rem;
  }

  .section {
    width: min(100% - 20px, 1180px);
    padding-top: 34px;
  }

  .section-heading {
    display: block;
  }

  .plans-grid,
  .contact-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .plan-card {
    min-height: 262px;
    padding: 13px;
    gap: 9px;
  }

  .category { font-size: .62rem; }
  .badge { display: none; }
  .plan-card h3 { font-size: 1.06rem; }
  .price { font-size: 1.5rem; }
  .note { font-size: .73rem; }
  .features li { font-size: .78rem; }
  .features li:nth-child(n+4) { display: none; }

  .contact-cards a {
    min-height: 78px;
    padding: 12px;
  }

  .contact-cards strong {
    font-size: .95rem;
  }

  .footer {
    margin-bottom: 94px;
  }

  .footer img {
    width: 96px;
  }

  .bottom-cta { display: flex; }
}

@media (max-width: 380px) {
  .plans-grid,
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .plan-card { min-height: auto; }
  .features li:nth-child(n+4) { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
