:root {
  --night: #10272d;
  --teal: #143943;
  --ice: #d9f0f3;
  --coral: #ef7352;
  --cloud: #f6f8f5;
  --line: rgba(16, 39, 45, .16);
}

* {
  box-sizing: border-box;
}

body {
  background: linear-gradient(180deg, var(--cloud), #edf6f5 36%, var(--cloud));
  color: var(--night);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  margin: 0;
}

.quick-contact {
  background: rgba(16, 39, 45, .94);
  border-radius: 8px;
  bottom: 1rem;
  box-shadow: 0 1rem 3rem rgba(16, 39, 45, .25);
  display: flex;
  gap: .45rem;
  padding: .45rem;
  position: fixed;
  right: 1rem;
  z-index: 6;
}

.quick-contact a {
  border-radius: 6px;
  color: #fff;
  font-weight: 950;
  padding: .72rem .85rem;
}

.quick-contact a:last-child {
  background: var(--coral);
}

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

header {
  align-items: center;
  background: rgba(246, 248, 245, .94);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: .9rem clamp(1rem, 4vw, 3.5rem);
  position: sticky;
  top: 0;
  z-index: 5;
}

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

.logo {
  font-size: 1.2rem;
  font-weight: 950;
  gap: .7rem;
}

.logo span {
  aspect-ratio: 1;
  background: conic-gradient(from 45deg, var(--coral), var(--ice), var(--teal), var(--coral));
  border-radius: 7px;
  width: 2.2rem;
}

nav {
  gap: .45rem;
  font-weight: 800;
}

nav a {
  border-radius: 6px;
  padding: .72rem .9rem;
}

nav a:last-child,
.hero a,
button {
  background: var(--coral);
  color: #fff;
}

.hero {
  display: grid;
  min-height: min(82vh, 52rem);
  overflow: hidden;
}

.hero > * {
  grid-area: 1 / 1;
}

.hero img {
  height: 100%;
  min-height: min(82vh, 52rem);
  object-fit: cover;
  width: 100%;
}

.hero-copy {
  align-self: stretch;
  background: linear-gradient(90deg, rgba(16, 39, 45, .9), rgba(16, 39, 45, .7) 45%, rgba(16, 39, 45, .12));
  color: #fff;
  display: grid;
  max-width: 100%;
  padding: clamp(2rem, 8vw, 7rem) clamp(1rem, 5vw, 4rem);
  place-content: center start;
}

p {
  line-height: 1.65;
}

.hero p,
.rail p,
.matrix p:first-child,
.faq > p,
.quote p {
  color: var(--ice);
  font-weight: 950;
  margin: 0 0 .7rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.25rem, 4.8vw, 5.2rem);
  line-height: 1;
  margin-bottom: 1rem;
  max-width: 50rem;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 3.1rem);
  line-height: 1.05;
  text-wrap: balance;
}

.hero strong {
  display: block;
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  line-height: 1.55;
  max-width: 39rem;
}

.hero a,
button {
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
  justify-self: start;
  margin-top: 1.4rem;
  min-height: 3rem;
  padding: .9rem 1rem;
}

.packages,
.matrix,
.routes,
.faq,
.quote {
  margin-inline: auto;
  max-width: 84rem;
  width: calc(100% - 2rem);
}

.packages {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(16rem, .8fr) 2fr;
  padding-top: clamp(3.5rem, 7vw, 6rem);
}

.rail {
  background: var(--teal);
  border-radius: 8px;
  color: #fff;
  min-height: 24rem;
  padding: clamp(1.1rem, 3vw, 2rem);
  background-image: repeating-linear-gradient(135deg, rgba(217, 240, 243, .14) 0 1px, transparent 1px 24px);
}

.rail span {
  color: var(--ice);
  line-height: 1.6;
}

.package-grid,
.matrix-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.package-grid article,
.matrix-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1rem, 2vw, 1.5rem);
  box-shadow: 0 .9rem 2.3rem rgba(16, 39, 45, .07);
}

.package-grid article {
  display: grid;
  min-height: 24rem;
}

.package-grid small {
  color: var(--coral);
  font-size: 2.5rem;
  font-weight: 950;
}

.package-grid b {
  align-self: end;
  border-top: 1px solid var(--line);
  padding-top: .8rem;
}

.matrix {
  background: var(--ice);
  border-radius: 8px;
  display: grid;
  gap: clamp(1rem, 4vw, 3rem);
  grid-template-columns: .8fr 1.2fr;
  margin-top: 1rem;
  padding: clamp(1rem, 4vw, 3rem);
}

.matrix p:first-child,
.faq > p,
.quote p {
  color: var(--coral);
}

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

.builder,
.seo-copy {
  display: grid;
  gap: clamp(1rem, 4vw, 3rem);
  grid-template-columns: .92fr 1.25fr;
  margin-inline: auto;
  max-width: 84rem;
  padding-top: clamp(3.5rem, 7vw, 6rem);
  width: calc(100% - 2rem);
}

.builder > div:first-child p:first-child,
.seo-copy > div p {
  color: var(--coral);
  font-weight: 950;
  margin-bottom: .7rem;
  text-transform: uppercase;
}

.builder-grid {
  display: grid;
  gap: .9rem;
  grid-template-columns: repeat(2, 1fr);
}

.builder-grid article {
  background: var(--night);
  border-radius: 8px;
  color: #fff;
  min-height: 10rem;
  padding: 1rem;
}

.builder-grid article:nth-child(2n) {
  background: var(--ice);
  color: var(--night);
}

.builder-grid b {
  color: var(--coral);
  display: block;
  font-size: 1.2rem;
  margin-bottom: .45rem;
}

.seo-copy {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: clamp(1rem, 4vw, 3rem);
}

.routes {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
  margin-top: clamp(3.5rem, 7vw, 6rem);
  padding-block: clamp(1.5rem, 4vw, 3rem);
}

.faq {
  padding-top: clamp(3.5rem, 7vw, 6rem);
}

details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: .8rem;
  padding: 1rem;
}

summary {
  cursor: pointer;
  font-weight: 950;
}

details p {
  margin: .8rem 0 0;
}

.quote {
  align-items: start;
  display: grid;
  gap: clamp(1rem, 4vw, 3rem);
  grid-template-columns: 1fr 1fr;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1rem;
}

.contact-links a {
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 950;
  min-height: 3rem;
  padding: .9rem 1rem;
}

.contact-links a:last-child {
  background: var(--teal);
  color: #fff;
}

form {
  background: var(--night);
  border-radius: 8px;
  color: #fff;
  display: grid;
  gap: .9rem;
  padding: clamp(1rem, 3vw, 2rem);
}

label {
  display: grid;
  font-weight: 800;
  gap: .4rem;
}

input,
textarea {
  border: 0;
  border-radius: 6px;
  font: inherit;
  padding: .9rem;
  width: 100%;
}

@media (max-width: 780px) {
  nav a:not(:last-child) {
    display: none;
  }

  .packages,
  .matrix,
  .routes,
  .quote,
  .builder,
  .seo-copy {
    grid-template-columns: 1fr;
  }

  .package-grid,
  .matrix-grid,
  .builder-grid {
    grid-template-columns: 1fr;
  }
}
