:root {
  --fit-ink: #101716;
  --fit-muted: #5f6762;
  --fit-cream: #fbf8f0;
  --fit-line: rgba(17, 24, 22, 0.14);
  --fit-green: #64733b;
  --fit-blue: #dfeff7;
  --fit-orange: #ff3d21;
}

body.kit-page {
  background: var(--fit-cream);
}

.kit-page .main-nav a:nth-child(3) {
  position: relative;
}

.kit-page .main-nav a:nth-child(3)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -20px;
  height: 3px;
  border-radius: 99px;
  background: var(--orange);
}

.fit-hero {
  min-height: 750px;
  position: relative;
  overflow: hidden;
  background: #eee7db;
}

.fit-hero__image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(251, 248, 240, 0.98) 0%, rgba(251, 248, 240, 0.92) 34%, rgba(251, 248, 240, 0.25) 56%, rgba(251, 248, 240, 0) 82%),
    url("../pawtrail-home/assets/images/hero-walk.webp") center right / cover;
}

.fit-hero__copy {
  position: absolute;
  left: max(64px, calc((100vw - 1440px) / 2 + 64px));
  top: 84px;
  z-index: 1;
  width: min(720px, calc(100% - 360px));
}

.fit-hero h1 {
  margin: 0 0 20px;
  color: var(--fit-ink);
  font-size: 64px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
  white-space: nowrap;
}

.fit-hero p {
  max-width: 560px;
  margin: 0;
  color: #18211f;
  font-size: 21px;
  line-height: 1.45;
  font-weight: 520;
}

.hero-promises {
  display: flex;
  gap: 74px;
  margin-top: 54px;
}

.hero-promises span {
  width: 126px;
  display: grid;
  justify-items: center;
  gap: 14px;
  color: #18211f;
  text-align: center;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 760;
}

.hero-promises svg {
  width: 37px;
  height: 37px;
  color: var(--fit-green);
}

.why-card {
  position: absolute;
  right: max(48px, calc((100vw - 1440px) / 2 + 48px));
  top: 78px;
  z-index: 2;
  width: 260px;
  padding: 28px 32px;
  border-radius: 8px;
  background: rgba(33, 80, 101, 0.92);
  color: #fff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14);
}

.why-card h2 {
  margin: 0 0 22px;
  font-size: 21px;
}

.why-card p {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  margin: 0 0 18px;
  color: #fff;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
}

.why-card svg {
  width: 24px;
  height: 24px;
}

.fit-shell {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.step-row {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.steps {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--fit-muted);
}

.steps span {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(17, 24, 22, 0.28);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fffaf1;
  font-weight: 800;
}

.steps span.active {
  border-color: var(--fit-green);
  background: var(--fit-green);
  color: #fff;
}

.steps b {
  font-size: 13px;
  color: inherit;
}

.steps b:first-of-type {
  color: var(--fit-green);
}

.steps i {
  width: 34px;
  height: 1px;
  background: rgba(17, 24, 22, 0.22);
}

.step-row > strong {
  font-size: 18px;
}

.builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 565px;
  gap: 36px;
}

.builder-grid > * {
  min-width: 0;
}

.profile-panel,
.recommend-panel,
.fit-guide,
.reviews-panel {
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--fit-line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: 0 10px 28px rgba(17, 24, 22, 0.04);
}

.profile-panel {
  padding: 30px 26px 42px;
}

.profile-panel h2,
.recommend-panel h2,
.fit-guide h2,
.reviews-panel h2 {
  margin: 0;
  color: var(--fit-ink);
  font-size: 26px;
  line-height: 1.1;
}

.form-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(250px, 1fr);
  column-gap: 42px;
  row-gap: 28px;
}

label {
  display: block;
  margin-bottom: 13px;
  color: var(--fit-ink);
  font-size: 18px;
  font-weight: 850;
}

label em {
  color: var(--fit-muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 550;
}

label small {
  width: 19px;
  height: 19px;
  margin-left: 6px;
  border: 1px solid rgba(17, 24, 22, 0.35);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: var(--fit-muted);
  font-size: 12px;
}

.segmented {
  display: flex;
  gap: 10px;
}

.segmented button {
  min-width: 148px;
  min-height: 60px;
  border: 1px solid rgba(17, 24, 22, 0.16);
  border-radius: 6px;
  background: #fffdf8;
  color: var(--fit-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 800;
  cursor: pointer;
}

.segmented .selected {
  border-color: var(--fit-green);
  background: #5f6e31;
  color: #fff;
}

.segmented svg {
  width: 21px;
  height: 21px;
}

.search-field,
.split-input,
.unit-input {
  height: 60px;
  border: 1px solid rgba(17, 24, 22, 0.16);
  border-radius: 6px;
  background: #fffdf8;
  display: flex;
  align-items: center;
}

.search-field input,
.split-input input,
.unit-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--fit-ink);
  padding: 0 18px;
  font-weight: 760;
}

.search-field input::placeholder {
  color: #9a9f9a;
  font-weight: 500;
}

.search-field svg {
  width: 22px;
  height: 22px;
  margin-right: 18px;
  color: #a99b68;
}

.split-input {
  width: 210px;
}

.split-input button {
  align-self: stretch;
  min-width: 76px;
  border: 0;
  border-left: 1px solid rgba(17, 24, 22, 0.14);
  background: transparent;
  color: var(--fit-ink);
  cursor: pointer;
}

.range-line {
  height: 4px;
  margin: 40px 0 15px;
  position: relative;
  background: #c2c0b9;
}

.range-line::before,
.range-line::after {
  content: "";
  position: absolute;
  top: -9px;
  bottom: -9px;
  width: 1px;
  background: #aaa8a1;
}

.range-line::before {
  left: 26%;
}

.range-line::after {
  right: 6%;
}

.range-line span {
  position: absolute;
  top: 50%;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--fit-green);
  transform: translate(-50%, -50%);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  color: #101716;
  font-size: 13px;
  font-weight: 700;
}

.narrow {
  margin-bottom: 24px;
}

.narrow button {
  min-width: 103px;
}

.unit-input {
  width: 210px;
  margin-bottom: 30px;
}

.unit-input span {
  padding-right: 18px;
  font-weight: 700;
}

.age button {
  flex-direction: column;
  gap: 2px;
  min-width: 146px;
}

.age small {
  font-size: 12px;
  font-weight: 700;
}

.dog-diagram {
  align-self: end;
  min-height: 220px;
  display: grid;
  place-items: center;
}

.dog-diagram svg {
  width: min(420px, 100%);
}

.dog-line,
.mini-dog path {
  fill: none;
  stroke: #8a918c;
  stroke-width: 3.1;
}

.measure-line {
  fill: none;
  stroke: #ff5b35;
  stroke-width: 3;
  stroke-dasharray: 8 7;
}

.next-button {
  width: 100%;
  height: 72px;
  margin-top: 28px;
  border: 0;
  border-radius: 7px;
  background: var(--fit-orange);
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  cursor: pointer;
}

.next-button span {
  margin-left: 10px;
  font-size: 25px;
}

.recommend-panel {
  padding: 28px 24px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.panel-head span {
  padding: 12px 18px;
  border-radius: 17px;
  background: #eee9dc;
  color: #6f704f;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.kit-items {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.kit-items article {
  min-height: 268px;
  padding: 14px;
  border: 1px solid rgba(17, 24, 22, 0.12);
  border-radius: 8px;
  background: #fffdf8;
}

.kit-items img {
  height: 165px;
  object-fit: cover;
  object-position: var(--pos, center);
  border-radius: 6px;
  mix-blend-mode: multiply;
}

.kit-items article:nth-child(1) img { object-position: 0% 35%; }
.kit-items article:nth-child(2) img { object-position: 78% 50%; }
.kit-items article:nth-child(3) img { object-position: 70% 22%; }
.kit-items article:nth-child(4) img { object-position: 91% 80%; }

.kit-items h3 {
  margin: 14px 0 5px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 16px;
  line-height: 1.15;
}

.kit-items small {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(17, 24, 22, 0.32);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 13px;
}

.kit-items p {
  margin: 0;
  color: #25302d;
  font-size: 13px;
  line-height: 1.45;
}

.why-recommend {
  margin-top: 20px;
  padding: 22px 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f6fbfd, #deedf7);
}

.why-recommend h3 {
  margin: 0 0 11px;
  font-size: 15px;
}

.why-recommend p {
  margin: 7px 0;
  color: #2c5d81;
  font-size: 14px;
  font-weight: 650;
}

.why-recommend p::before {
  content: "✓";
  margin-right: 10px;
  color: #1d6c99;
  font-weight: 900;
}

.why-recommend a,
.section-title a,
.tip-band a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: #1e668d;
  font-weight: 850;
}

.guarantee {
  min-height: 104px;
  margin-top: 16px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 48px 1fr 54px;
  align-items: center;
  gap: 18px;
  border-radius: 8px;
  background: #f5f0e6;
}

.guarantee svg {
  width: 46px;
  height: 46px;
  color: var(--fit-green);
}

.guarantee p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.guarantee strong {
  display: block;
  font-size: 16px;
}

.ribbon {
  width: 48px;
  height: 58px;
  position: relative;
  display: block;
}

.ribbon::before {
  content: "";
  position: absolute;
  inset: 2px 4px 14px;
  border: 4px solid #d6921c;
  border-radius: 50%;
  background: #ffc64b;
}

.ribbon::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 0;
  height: 25px;
  background: linear-gradient(135deg, transparent 45%, #d6921c 46% 55%, transparent 56%), #ffc64b;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 70%, 0 100%);
}

.fit-guide,
.reviews-panel {
  margin-top: 30px;
  padding: 26px;
}

.section-title,
.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.section-title p {
  margin: 5px 0 0;
  color: #25302d;
  font-size: 14px;
}

.guide-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.guide-grid article {
  height: 260px;
  padding: 18px 18px 0;
  border: 1px solid rgba(17, 24, 22, 0.12);
  border-radius: 8px;
  overflow: hidden;
  background: #fffdf8;
}

.guide-grid h3 {
  margin: 0 0 7px;
  font-size: 16px;
}

.guide-grid p {
  min-height: 57px;
  margin: 0;
  color: #17211e;
  font-size: 13px;
  line-height: 1.38;
}

.guide-grid img {
  height: 155px;
  object-fit: cover;
  object-position: center;
}

.guide-grid article:nth-child(1) img {
  object-position: center 30%;
}

.guide-grid article:nth-child(2) img {
  object-position: 62% center;
}

.guide-grid article:nth-child(3) img {
  object-position: 0% 45%;
  mix-blend-mode: multiply;
}

.mini-dog {
  height: 150px;
  display: grid;
  place-items: center;
}

.mini-dog svg {
  width: 100%;
  color: #8a918c;
}

.tip-band {
  min-height: 126px;
  margin-top: 28px;
  padding: 22px 34px;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1.1fr 0.75fr 0.45fr;
  gap: 32px;
  align-items: center;
  background: linear-gradient(90deg, #eaf5fb, #dbeef8);
}

.tip-band > div,
.tip-band a {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.tip-band > div:not(:last-child) {
  border-right: 1px solid rgba(48, 98, 124, 0.18);
}

.tip-band svg {
  width: 50px;
  height: 50px;
  color: #2381b5;
  flex: 0 0 auto;
}

.tip-band p {
  margin: 0;
  color: #1c445a;
  font-size: 13px;
  line-height: 1.45;
}

.tip-band strong {
  display: block;
  margin-bottom: 4px;
  color: #10212a;
  font-size: 17px;
}

.tip-band span {
  display: block;
}

.tip-band span::before {
  content: "✓";
  margin-right: 8px;
  color: #1f7aac;
}

.tip-band a {
  color: #1f6f9c;
  font-size: 15px;
}

.tip-band a span::before {
  content: "";
  margin: 0;
}

.review-head {
  justify-content: flex-start;
}

.review-head span,
.review-grid span {
  color: #ff9700;
  letter-spacing: 2px;
  font-weight: 900;
}

.review-head p {
  margin: 0;
  color: var(--fit-muted);
  font-size: 14px;
}

.review-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review-grid article {
  min-height: 210px;
  padding: 22px;
  border: 1px solid rgba(17, 24, 22, 0.12);
  border-radius: 8px;
  background: #fffdf8;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 22px;
  align-items: center;
}

.review-grid img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
}

.review-grid h3 {
  margin: 8px 0 8px;
  font-size: 17px;
  line-height: 1.2;
}

.review-grid p,
.review-grid small {
  color: #26302d;
  font-size: 13px;
  line-height: 1.4;
}

.kit-page .service-strip {
  margin-top: 30px;
}

@media (max-width: 1180px) {
  .fit-shell {
    width: calc(100% - 48px);
  }

  .fit-hero__copy {
    left: 36px;
    width: min(660px, calc(100% - 360px));
  }

  .why-card {
    right: 28px;
  }

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

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

  .tip-band {
    grid-template-columns: 1fr;
  }

  .tip-band > div:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid rgba(48, 98, 124, 0.18);
    padding-bottom: 18px;
  }
}

@media (max-width: 760px) {
  .fit-hero {
    min-height: 620px;
  }

  .fit-hero__image {
    background:
      linear-gradient(180deg, rgba(251, 248, 240, 0.98) 0%, rgba(251, 248, 240, 0.82) 48%, rgba(251, 248, 240, 0.08) 100%),
      url("../pawtrail-home/assets/images/hero-walk.webp") center bottom / cover;
  }

  .fit-hero__copy {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    padding: 48px 24px 0;
  }

  .fit-hero h1 {
    font-size: 46px;
    white-space: normal;
  }

  .fit-hero p {
    font-size: 17px;
  }

  .hero-promises {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 38px;
  }

  .hero-promises span {
    width: auto;
    font-size: 11px;
  }

  .hero-promises svg {
    width: 30px;
    height: 30px;
  }

  .why-card {
    left: 24px;
    right: 24px;
    top: auto;
    bottom: 28px;
    width: auto;
  }

  .fit-shell {
    width: calc(100% - 28px);
  }

  .step-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 18px 0;
  }

  .steps {
    flex-wrap: wrap;
  }

  .steps i {
    display: none;
  }

  .form-grid,
  .kit-items,
  .guide-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .profile-panel,
  .recommend-panel,
  .fit-guide,
  .reviews-panel {
    padding: 20px;
  }

  .profile-panel h2,
  .recommend-panel h2,
  .fit-guide h2,
  .reviews-panel h2 {
    font-size: 24px;
  }

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

  .segmented {
    flex-wrap: wrap;
  }

  .segmented button,
  .split-input,
  .unit-input {
    min-width: 0;
    width: 100%;
  }

  .review-grid article {
    grid-template-columns: 1fr;
  }
}
