:root {
  --bg: #f7f8fa;
  --bg-soft: #f0f2f5;
  --panel: #ffffff;
  --panel-soft: #f2f4f7;
  --primary: #315b8a;
  --primary-strong: #24496f;
  --accent: #dce9f5;
  --text: #202a35;
  --muted: #667482;
  --shadow: 0 8px 24px rgba(25, 42, 58, 0.07);
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 max(1.5rem, calc((100% - 1270px) / 2));
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e6e9ed;
}

.main-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
  font-size: 1rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  background: var(--primary);
  color: #fff;
  box-shadow: none;
  font-size: 0.95rem;
}

.main-nav {
  display: flex;
  align-items: center;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav_item {
  list-style: none;
}

.main-nav_item a {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.25rem;
  border-radius: 0;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.18s ease;
}

.main-nav_item a:hover,
.main-nav_item a:active,
.main-nav_item a:focus-visible {
  color: var(--primary);
  outline: none;
}

.main-nav_item a[aria-current="page"] {
  color: var(--primary);
  box-shadow: inset 0 -2px 0 var(--primary);
}

.main-nav_item_cta a {
  padding: 0.65rem 1rem;
  border-radius: 7px;
  background: var(--primary);
  color: #fff;
  box-shadow: none;
}

.main-nav_item_cta a:hover,
.main-nav_item_cta a:active,
.main-nav_item_cta a:focus-visible {
  background: var(--primary-strong);
  color: #fff;
}

.nav-toggle {
  display: none;
}

#product-overview {
  background:
    linear-gradient(120deg, rgba(247, 248, 250, 0.94), rgba(247, 248, 250, 0.86)),
    url('./img/background.jpg') center/cover no-repeat;
  min-height: 420px;
  display: grid;
  place-items: center;
  padding: 4rem 1.5rem;
  text-align: center;
}

.product-overview__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  width: 100%;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #e1e5e9;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary);
}

#product-overview h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4.5rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
  color: #1f3348;
}

#product-overview p {
  margin: 1rem auto 0;
  max-width: 620px;
  font-size: 1.08rem;
  color: #526273;
  border: none;
  padding: 0;
}

.cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.5rem;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(106, 124, 255, 0.25);
  outline: none;
}

.button--primary {
  background: var(--primary);
  color: #fff;
}

.button--secondary {
  background: #fff;
  color: var(--text);
  border-color: #d8dee5;
}

#plans {
  padding: 4.5rem 4vw 5rem;
}

.section-title {
  margin: 0 0 2rem;
  text-align: center;
  color: var(--text);
  font-size: clamp(2rem, 3vw, 2.7rem);
  letter-spacing: -0.04em;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

.plan {
  position: relative;
  background: var(--panel);
  border: 1px solid #e3e8ed;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(25, 42, 58, 0.04);
  padding: 2rem 1.4rem 1.5rem;
  text-align: center;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.plan:hover {
  border-color: #c6d4e1;
  box-shadow: var(--shadow);
}

.plan--highlighted {
  background: #f0f5f9;
  color: var(--text);
  border-color: #cddbe7;
}

.plan__annotation {
  position: absolute;
  top: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: #dce9f5;
  color: var(--primary-strong);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan h1.plan__annotation {
  font-size: 0.7rem;
}

.plan h1,
.plan h2,
.plan h3 {
  margin: 0;
}

.plan h1 {
  font-size: 1.6rem;
  padding-top: 0;
  color: var(--text);
}

.plan h2 {
  margin-top: 0.8rem;
  font-size: clamp(2rem, 3vw, 2.5rem);
  letter-spacing: -0.04em;
  color: var(--text);
}

.plan h3 {
  margin-top: 0.8rem;
  color: inherit;
  opacity: 0.82;
  font-size: 0.98rem;
  line-height: 1.55;
}

.plan ul {
  list-style: none;
  margin: 1.5rem 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.plan li {
  padding: 0.3rem 0;
  border-bottom: 1px solid #edf0f3;
  color: var(--muted);
}

.plan--highlighted li {
  border-color: #dfe7ee;
  color: var(--muted);
}

.plan button {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  background: #edf2f6;
  color: var(--text);
  transition: background 0.18s ease, color 0.18s ease;
}

.plan button:hover,
.plan button:focus-visible {
  background: #dfe8ef;
  outline: none;
}

.plan--highlighted button {
  background: var(--primary);
  color: #fff;
}

.site-note {
  padding: 0 1.5rem 4rem;
}

.site-note__content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2.25rem;
  background: #fff;
  border: 1px solid #e3e8ed;
  border-left: 3px solid var(--primary);
  border-radius: 4px var(--radius) var(--radius) 4px;
}

.site-note__eyebrow {
  margin: 0 0 0.5rem;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-note__content h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: -0.025em;
}

.site-note__content > p:last-child {
  max-width: 850px;
  margin: 0.65rem 0 0;
  color: var(--muted);
}

.site-note__content > p:not(.site-note__eyebrow) {
  max-width: 850px;
  margin: 0.9rem 0 0;
  color: var(--muted);
}

footer {
  background: #eef1f4;
  color: var(--muted);
  border-top: 1px solid #e2e7eb;
  padding: 1.5rem 1rem;
  text-align: center;
}

footer p {
  margin: 0;
  padding: 0;
  border: none;
  color: inherit;
}

@media (max-width: 820px) {
  .main-header {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 1.25rem;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.32rem;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 0.8rem;
    background: var(--panel-soft);
    border: 1px solid #e2e7eb;
    cursor: pointer;
    transition: background 0.18s ease;
  }

  .nav-toggle span {
    display: block;
    width: 1.4rem;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
    margin: 0 auto;
  }

  .nav-toggle:focus-visible {
    outline: 3px solid rgba(49, 91, 138, 0.3);
    outline-offset: 2px;
  }

  .main-nav {
    display: none;
    width: 100%;
    padding: 0.25rem 0 0.75rem;
  }

  .main-nav ul {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .main-nav_item a {
    width: 100%;
    justify-content: flex-start;
    padding: 0.95rem 1rem;
    border-radius: 6px;
  }

  .main-nav.is-open {
    display: flex;
  }

  .plans-grid {
    grid-template-columns: 1fr;
  }

  .plan--highlighted {
    transform: none;
  }

}

@media (max-width: 520px) {
  .main-header {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #product-overview {
    min-height: 380px;
  }

  .cta-group {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .site-note {
    padding: 0 1rem 2.5rem;
  }

  .site-note__content {
    padding: 1.5rem;
  }
}
