.qs {
  --forest: #093f2b;
  --ink: #112e20;
  --paper: #faf9f5;
  --line: #d7ddd3;
  color: var(--ink);
}
.qs h1, .qs h2, .qs h3 { color: inherit; margin: 0; font-weight: 700; text-wrap: balance; }
.qs h1 { font-size: clamp(50px, 5.25vw, 80px); line-height: 1.035; letter-spacing: -.063em; }
.qs h2 { font-size: clamp(32px, 3.5vw, 52px); line-height: 1.1; letter-spacing: -.05em; }
.qs h3 { font-size: clamp(22px, 2vw, 31px); line-height: 1.22; letter-spacing: -.038em; }
.qs p { font-size: 16px; line-height: 1.65; }
.qs .i { width: 18px; height: 18px; flex: none; }
.qs-wrap, .qs-cover-inner { width: min(1248px, calc(100% - 96px)); margin-inline: auto; }
.qs-cover { background: var(--forest); color: #fff; }
.qs-cover-inner { display: grid; grid-template-columns: .96fr 1.04fr; align-items: stretch; gap: clamp(30px,5vw,88px); padding: 142px 0 56px; }
.qs-cover-copy { padding: 24px 0 28px; align-self: center; }
.qs-cover-copy p, .qs-shop-copy > p { max-width: 490px; margin: 22px 0 30px; font-size: clamp(17px,1.4vw,20px); }
.qs-cover-copy p { color: #e3efe4; }
.qs-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.qs-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 11px 19px; border: 1px solid transparent; border-radius: 999px; background: #a9edbb; color: #0a3923; font-size: 14px; font-weight: 750; text-decoration: none; }
.qs-button:hover { background: #c9f5d4; }
.qs-outline { border-color: #83ae97; color: white; background: transparent; }
.qs-outline:hover { background: #254f3e; }
.qs-close, .pharmacy-workflow { padding-block: clamp(56px,7.5vw,108px); }
.qs-intro { margin-bottom: 40px; max-width: 780px; }
.qs-intro p, .qs-decisions p, .qs-shop-copy p { color: #4c6052; }
.qs-decisions a { display: flex; align-items: center; gap: 14px; color: #125830; text-decoration: none; font-weight: 700; font-size: 15px; }
.qs-decisions a:hover { text-decoration: underline; text-underline-offset: 4px; }
.qs-shop { background: var(--paper); }
.qs-shop-grid { display: grid; grid-template-columns: minmax(0,.83fr) minmax(0,1.2fr); gap: clamp(30px,4vw,66px); padding: 150px 0 72px; align-items: center; }
.qs-shop-stage { min-width: 0; }
.qs-shop-copy .qs-button { background: #0b6535; color: white; }
.qs-shop-copy .qs-button:hover { background: var(--forest); }
.qs-crumb { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 25px; }
.qs-crumb a { color: #28563a; text-underline-offset: 3px; }
.qs-decisions { display: grid; grid-template-columns: repeat(3,1fr); gap: 36px; }
.qs-decisions article { display: flex; flex-direction: column; align-items: start; border-top: 1px solid var(--line); padding-top: 25px; }
.qs-decisions p { margin: 12px 0 18px; }
.qs-decisions a { padding-block: 8px; margin-top: auto; }
.qs-project-next { background: var(--forest); color: white; }
.qs-project-next .qs-wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 68px; }
.qs-project-next p { margin: 12px 0 0; color: #ddeddf; }
.qs-project-next .qs-button { flex: none; }
@media(max-width: 880px) {
  .qs-wrap, .qs-cover-inner { width: calc(100% - 48px); }
  .qs-cover-inner, .qs-shop-grid { grid-template-columns: 1fr; padding-top: 112px; gap: 30px; }
  .qs-cover-copy { padding: 0; }
  .qs-cover-copy h1 { max-width: 680px; }
  .qs-shop-stage { width: min(100%,680px); justify-self: center; }
  .qs-shop-copy > p { margin-bottom: 20px; }
  .qs-decisions { gap: 20px; }
}
@media(max-width: 640px) {
  .qs-wrap, .qs-cover-inner { width: calc(100% - 40px); }
  .qs-cover-inner, .qs-shop-grid { padding-bottom: 36px; }
  .qs h1 { font-size: clamp(42px,10.8vw,57px); }
  .qs-decisions { grid-template-columns: 1fr; gap: 26px; }
  .qs-project-next .qs-wrap { display: grid; justify-items: start; gap: 21px; padding-block: 42px; }
}

.qs-cover .qs-industry-cover { padding: clamp(112px, 12vw, 156px) 0 60px; }
.qs-industry-cover p { max-width: 650px; margin-bottom: 0; }
.qs-industry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.3vw, 34px);
  padding-block: clamp(32px, 5vw, 76px) clamp(56px, 7vw, 102px);
}
.qs-industry-card {
  --stage: #ddebdf;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}
.qs-industry-card[data-industry="construction"] { --stage: #efeadc; }
.qs-industry-card[data-industry="pharmacy"] { --stage: #d4efdf; }
.qs-industry-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: inherit;
  color: inherit;
  text-decoration: none;
}
.qs-industry-card a:is(:hover, :focus-visible) h2 { text-decoration: underline; text-underline-offset: 5px; }
.qs-industry-image {
  height: clamp(164px, 20vw, 250px);
  overflow: hidden;
  border-radius: 21px 21px 0 0;
  background: var(--stage);
}
.qs-industry-image img {
  display: block;
  width: min(68%, 245px);
  height: auto;
  margin: 21px auto 0;
  border: 3px solid #254338;
  border-radius: 19px 19px 0 0;
  box-shadow: 0 14px 24px #102d2233;
}
.qs-industry-copy { padding: clamp(17px, 2vw, 28px); }
.qs-industry-copy h2 { font-size: clamp(24px, 2.65vw, 36px); letter-spacing: -.02em; }
.qs-industry-copy p { color: #4c6052; margin: 10px 0 0; }

.pharmacy-crumb { color: #e3efe4; }
.pharmacy-crumb a { color: inherit; }
.pharmacy-cover .qs-cover-copy { min-width: 0; }
.pharmacy-cover-figure { min-width: 0; margin: 0; align-self: center; }
.pharmacy-cover-stage {
  height: clamp(300px, 36vw, 440px);
  overflow: hidden;
  border-radius: 24px 52px 9px 9px;
  background: #c7ead4;
}
.pharmacy-cover-stage .pharmacy-screen { width: min(70%, 300px); margin: 24px auto 0; }
.pharmacy-cover-figure figcaption { padding-top: 10px; color: #e3efe4; font-size: 14px; }
.pharmacy-screen {
  display: block;
  overflow: hidden;
  border: 4px solid #233933;
  border-radius: 25px;
  background: #f5f7f3;
  box-shadow: 0 10px 24px #16362a1c;
}
.pharmacy-screen img { display: block; width: 100%; height: auto; }
.pharmacy-workflow { scroll-margin-top: 92px; }
.pharmacy-workflow .qs-intro p { max-width: 610px; }
.pharmacy-screens {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 46px);
}
.pharmacy-screens figure { margin: 0; min-width: 0; }
.pharmacy-screens .pharmacy-screen { width: min(100%, 308px); }
.pharmacy-screens figcaption { padding-top: 24px; }
.pharmacy-screens p { margin: 10px 0 0; color: #4c6052; }
.pharmacy .qs-button:focus-visible,
.pharmacy-screen:focus-visible,
.pharmacy-home-image:focus-visible,
.qs-industry-card a:focus-visible { outline: 3px solid #2b8655; outline-offset: 5px; }
.pharmacy .qs-cover :is(.qs-button, .pharmacy-screen):focus-visible { outline-color: #c7ead4; }
.pharmacy-cover-stage .pharmacy-screen:focus-visible { outline-offset: -7px; outline-color: #0d7841; }

.pharmacy-home { background: #eef6ee; color: #112e20; }
.pharmacy-home-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(30px, 7vw, 100px);
  padding-block: clamp(44px, 6vw, 82px);
}
.pharmacy-home h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 58px);
  font-weight: 600;
  line-height: 1.14;
  text-wrap: balance;
}
.pharmacy-home p { max-width: 470px; margin: 16px 0 24px; font-size: 18px; line-height: 1.55; }
.pharmacy-home .qs-button { background: #0a6535; color: #fff; }
.pharmacy-home .qs-button:hover { background: #093f2b; }
.pharmacy-home-image {
  display: block;
  height: clamp(214px, 25vw, 322px);
  overflow: hidden;
  border-radius: 20px 44px 20px 20px;
  background: #c7e8d2;
}
.pharmacy-home-image img {
  display: block;
  width: min(72%, 282px);
  height: auto;
  margin: 23px auto 0;
  border: 3px solid #233933;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 12px 22px #10312424;
}

@media (prefers-reduced-motion: no-preference) {
  .qs-industry-image img { transition: scale .25s ease; transform-origin: center top; }
  .qs-industry-card a:is(:hover, :focus-visible) img { scale: 1.04; }
}
@media (max-width: 700px) {
  .qs-cover .qs-industry-cover { padding-bottom: 40px; }
  .qs-industry-grid, .pharmacy-screens, .pharmacy-home-inner { grid-template-columns: 1fr; }
  .qs-industry-image { height: clamp(170px, 54vw, 250px); }
  .pharmacy-screen { border-width: 3px; }
  .pharmacy-cover-stage { height: clamp(266px, 84vw, 350px); }
  .pharmacy-screens { gap: 38px; }
  .pharmacy-screens figure { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
  .pharmacy-screens figure:last-child { border-bottom: 0; padding-bottom: 0; }
  .pharmacy-screens .pharmacy-screen { margin-inline: auto; }
  .pharmacy-home-image { height: clamp(202px, 59vw, 300px); }
}
