:root {
  --navy: #1a3a5c;
  --blue: #2563eb;
  --green: #0f766e;
  --amber: #b45309;
  --red: #b42318;
  --ink: #182230;
  --text: #2f3a45;
  --muted: #626f7b;
  --paper: #ffffff;
  --tint: #f4f7f6;
  --line: #d8e0e7;
  --footer: #0f2040;
  --radius: 8px;
  --shadow: 0 14px 34px rgba(24, 34, 48, 0.1);
  --shadow-soft: 0 4px 16px rgba(24, 34, 48, 0.08);
  --max-width: 1120px;
  --transition: 180ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p,
blockquote,
figure {
  margin: 0;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 500;
  transform: translateY(-140%);
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--green);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-weight: 700;
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
}

.container,
.nav__inner,
.footer__inner {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.section {
  padding: 84px 0;
}

.section--tint {
  background: var(--tint);
}

.section--ink {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.76);
}

.section__header {
  max-width: 690px;
  margin: 0 auto 44px;
  text-align: center;
}

.section__header h2,
.why-copy h2 {
  color: var(--ink);
  font-size: 2.35rem;
  line-height: 1.15;
  margin-top: 8px;
  margin-bottom: 12px;
}

.section--ink h2,
.section--ink h3 {
  color: var(--paper);
}

.eyebrow {
  color: #9bd8d0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow--dark {
  color: var(--green);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 2px solid var(--green);
  border-radius: var(--radius);
  background: var(--green);
  color: var(--paper);
  padding: 10px 20px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}

.button:hover {
  transform: translateY(-1px);
  background: #0b6059;
  border-color: #0b6059;
}

.button:focus-visible,
.nav a:focus-visible,
.nav__toggle:focus-visible,
.footer a:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.36);
  outline-offset: 3px;
}

.button--small {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 0.9rem;
}

.button--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.78);
}

.button--ghost:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.button--ghost-dark {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.76);
}

.button--ghost-dark:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.button--block {
  width: 100%;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid rgba(216, 224, 231, 0.8);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.nav.nav--scrolled {
  border-color: transparent;
  box-shadow: 0 10px 26px rgba(24, 34, 48, 0.12);
}

.nav__inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
  white-space: nowrap;
}

.brand__mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--paper);
  font-size: 0.82rem;
  line-height: 1;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__links a {
  color: var(--ink);
  font-weight: 750;
  font-size: 0.94rem;
}

.nav__links a:not(.button):hover {
  color: var(--green);
}

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform var(--transition), opacity var(--transition);
}

.nav__toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(590px, calc(100svh - 96px));
  padding: 48px 0;
  background-image: url("https://commons.wikimedia.org/wiki/Special:FilePath/Desk-office-workspace-coworking_%2823699033283%29.jpg?width=1800");
  background-position: center;
  background-size: cover;
  color: var(--paper);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(8, 16, 26, 0.68);
}

.hero__content {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
  max-width: 760px;
}

.hero h1 {
  max-width: 720px;
  margin-top: 12px;
  color: var(--paper);
  font-size: 3.35rem;
  line-height: 1.08;
}

.hero__intro {
  max-width: 640px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.18rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

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

.issue-card,
.service-card,
.rate-card,
.plan-card,
.why-card,
.testimonial-card,
.contact-item {
  border-radius: var(--radius);
}

.issue-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 5px solid var(--green);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.issue-card:nth-child(2) {
  border-top-color: var(--blue);
}

.issue-card:nth-child(3) {
  border-top-color: var(--amber);
}

.issue-card__code {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.issue-card h3,
.service-card h3,
.why-card h3,
.testimonial-card figcaption,
.contact-item a,
.contact-item strong {
  color: var(--ink);
}

.issue-card h3 {
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.services-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: 28px;
  align-items: stretch;
}

.service-photo {
  min-height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--tint);
}

.service-photo img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 196px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.service-card__tag {
  align-self: flex-start;
  min-width: 48px;
  border-radius: var(--radius);
  background: #e2f4f1;
  color: var(--green);
  padding: 4px 9px;
  font-size: 0.74rem;
  font-weight: 900;
  text-align: center;
}

.service-card h3 {
  margin-top: 18px;
  margin-bottom: 7px;
  font-size: 1.02rem;
}

.rate-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 760px;
  margin: 0 auto 52px;
}

.rate-card {
  position: relative;
  min-height: 240px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.rate-card--featured {
  border: 2px solid var(--green);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: var(--radius);
  background: var(--green);
  color: var(--paper);
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.badge--warm {
  background: var(--amber);
}

.rate-card .badge,
.plan-card .badge {
  position: absolute;
  top: -14px;
  left: 24px;
}

.rate-card__label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rate-card__price {
  margin-top: 8px;
  color: var(--ink);
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
}

.rate-card__price span {
  margin-left: 4px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.rate-card__extra {
  margin: 14px 0 18px;
  color: var(--red);
  font-weight: 800;
}

.rate-card--featured .rate-card__extra {
  color: var(--amber);
}

.pricing__subhead {
  margin-bottom: 22px;
  color: var(--ink);
  font-size: 1.28rem;
  text-align: center;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.plan-card--featured {
  background: var(--navy);
  border-color: var(--navy);
  color: rgba(255, 255, 255, 0.78);
}

.plan-card h4 {
  color: var(--ink);
  font-size: 1.18rem;
}

.plan-card--featured h4,
.plan-card--featured .plan-card__price {
  color: var(--paper);
}

.plan-card__price {
  margin-top: 14px;
  color: var(--ink);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.plan-card__price span {
  margin-left: 3px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.plan-card--featured .plan-card__price span,
.plan-card--featured .plan-card__users {
  color: rgba(255, 255, 255, 0.68);
}

.plan-card__users {
  margin: 8px 0 20px;
  color: var(--muted);
  font-weight: 700;
}

.check-list {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}

.check-list li {
  position: relative;
  padding-left: 22px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--green);
}

.plan-card--featured .check-list li::before {
  background: #8dded5;
}

.plan-card .button {
  margin-top: auto;
}

.why-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.why-copy p:not(.eyebrow) {
  max-width: 520px;
}

.why-copy img {
  width: 100%;
  height: 260px;
  margin-top: 30px;
  border-radius: var(--radius);
  object-fit: cover;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.why-card {
  min-height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  padding: 22px;
}

.why-card span {
  color: #8dded5;
  font-size: 0.8rem;
  font-weight: 900;
}

.why-card h3 {
  color: var(--paper);
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: 1.02rem;
}

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

.testimonial-card {
  min-height: 250px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--green);
  background: var(--paper);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.testimonial-card:nth-child(2) {
  border-top-color: var(--blue);
}

.stars {
  color: var(--amber);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.testimonial-card blockquote {
  color: var(--text);
  font-style: italic;
}

.testimonial-card figcaption {
  margin-top: 18px;
  font-weight: 800;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 44px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--ink);
  font-weight: 800;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--tint);
  color: var(--ink);
  padding: 12px 14px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--green);
  background: var(--paper);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.contact-info {
  display: grid;
  gap: 16px;
}

.contact-item {
  min-height: 128px;
  display: grid;
  align-content: start;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--tint);
  padding: 20px;
}

.contact-item span {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-item a,
.contact-item strong {
  overflow-wrap: anywhere;
  font-size: 1.02rem;
  font-weight: 900;
}

.footer {
  background: var(--footer);
  color: rgba(255, 255, 255, 0.64);
  padding: 30px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.brand--footer {
  color: var(--paper);
}

.brand--footer .brand__mark {
  background: var(--green);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer__links a:hover {
  color: var(--paper);
}

@media (max-width: 980px) {
  .section {
    padding: 72px 0;
  }

  .services-layout,
  .why-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .service-photo img {
    height: 360px;
    min-height: 0;
  }

  .contact-info {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body.menu-open {
    overflow: hidden;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .nav__links {
    position: fixed;
    inset: 64px 0 auto 0;
    display: grid;
    gap: 0;
    padding: 10px 20px 22px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 30px rgba(24, 34, 48, 0.14);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__links li {
    width: 100%;
  }

  .nav__links a {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
  }

  .nav__links .button {
    margin-top: 8px;
    justify-content: center;
  }

  .hero {
    min-height: min(560px, calc(100svh - 96px));
  }

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

  .hero__intro {
    font-size: 1.06rem;
  }

  .pain-grid,
  .rate-compare,
  .plan-grid,
  .testimonial-grid,
  .contact-info {
    grid-template-columns: 1fr;
  }

  .issue-card,
  .rate-card,
  .plan-card,
  .testimonial-card,
  .contact-item {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .container,
  .nav__inner,
  .footer__inner,
  .hero__content {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .brand__name {
    font-size: 0.98rem;
  }

  .hero {
    padding: 34px 0;
    min-height: min(520px, calc(100svh - 88px));
    background-position: 52% center;
  }

  .hero h1 {
    font-size: 2.14rem;
    line-height: 1.12;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 0;
  }

  .section__header {
    margin-bottom: 32px;
    text-align: left;
  }

  .section__header h2,
  .why-copy h2 {
    font-size: 1.86rem;
  }

  .services-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .service-photo img,
  .why-copy img {
    height: 260px;
  }

  .footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-height: 560px) {
  .hero {
    padding: 24px 0;
    min-height: min(460px, calc(100svh - 76px));
  }

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

  .hero__intro {
    margin-top: 12px;
    font-size: 1rem;
  }

  .hero__actions {
    margin-top: 20px;
  }
}
