/* Figma-based home screen */
#view-home.page-view.active {
  display: block;
}

/* Check-up builder page from Figma reference */
.checkup-builder {
  --checkup-green: #2e6d3c;
  --checkup-line: rgba(46, 109, 60, 0.16);
  margin-top: 0;
  background:
    radial-gradient(circle at 76% 10%, rgba(213, 231, 205, 0.44), transparent 34%),
    radial-gradient(circle at 20% 88%, rgba(225, 240, 221, 0.5), transparent 28%);
}

.checkup-builder-hero {
  min-height: 490px;
}

.checkup-builder h1 {
  max-width: 560px;
  color: var(--checkup-green);
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(4.2rem, 7vw, 6.8rem);
  font-weight: 700;
  line-height: 0.98;
}

.checkup-builder-hero p:not(.checkup-builder-kicker) {
  max-width: 420px;
  color: #171b19;
  font-size: 1.22rem;
  font-weight: 500;
  line-height: 1.55;
}

.checkup-builder-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 650px;
  margin-top: 34px;
}

.checkup-builder-benefits span {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: #243029;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
}

.checkup-builder-benefits i,
.checkup-builder-steps i,
.checkup-home i,
.checkup-builder-cta i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--checkup-line);
  border-radius: 999px;
  color: var(--checkup-green);
  background: rgba(238, 246, 235, 0.8);
  font-size: 1.4rem;
}

.checkup-builder-actions {
  display: none;
}

.checkup-builder-visual {
  height: 455px;
  border-radius: 0;
  background: transparent;
}

.checkup-builder-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
}

.checkup-builder-steps {
  display: grid;
  grid-template-columns: 1fr 44px 1fr 44px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 112px;
  margin-top: 4px;
  padding: 20px 28px;
  border: 1px solid var(--checkup-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
}

.checkup-builder-steps article {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.checkup-builder-steps i {
  width: 66px;
  height: 66px;
  font-size: 1.9rem;
}

.checkup-builder-steps strong {
  color: #16211b;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.35;
}

.checkup-builder-steps article:first-child strong {
  color: var(--checkup-green);
  font-size: 1.22rem;
  font-weight: 800;
}

.checkup-builder-steps > span {
  color: #171b19;
  font-size: 2rem;
  text-align: center;
}

.checkup-builder-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 20px;
  margin-top: 26px;
}

.checkup-builder-list,
.checkup-summary,
.checkup-method,
.checkup-home,
.checkup-builder-cta {
  border: 1px solid var(--checkup-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 48px rgba(46, 109, 60, 0.07);
}

.checkup-builder-list {
  padding: 26px 16px 28px;
}

.checkup-builder-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 14px 16px;
}

.checkup-builder-list h2,
.checkup-summary h2,
.checkup-method h2,
.checkup-home h2,
.checkup-builder-cta h2 {
  margin: 0;
  color: var(--checkup-green);
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.2;
}

.checkup-builder-list-head span {
  color: #171b19;
  font-weight: 700;
}

.checkup-builder-list-head span strong {
  color: var(--checkup-green);
}

.checkup-analysis {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 84px;
  margin: 0 0 8px;
  padding: 14px 24px 14px 18px;
  border: 1px solid rgba(25, 35, 28, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
}

.checkup-analysis i {
  color: rgba(46, 109, 60, 0.36);
  font-size: 1.65rem;
}

.checkup-analysis.is-selected i {
  color: var(--checkup-green);
}

.checkup-analysis strong {
  display: block;
  color: #171b19;
  font-size: 1rem;
  font-weight: 800;
}

.checkup-analysis p {
  margin: 6px 0 0;
  color: rgba(23, 27, 25, 0.62);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}

.checkup-analysis b {
  color: var(--checkup-green);
  font-size: 1.1rem;
}

.checkup-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 230px;
  min-height: 46px;
  margin: 20px auto 0;
  border: 1px solid rgba(46, 109, 60, 0.45);
  border-radius: 12px;
  color: var(--checkup-green);
  background: rgba(255, 255, 255, 0.8);
  font-weight: 700;
}

.checkup-builder-side {
  display: grid;
  gap: 14px;
  align-content: start;
}

.checkup-summary,
.checkup-method {
  padding: 26px;
}

.checkup-summary dl {
  display: grid;
  gap: 18px;
  margin: 24px 0;
}

.checkup-summary dl div,
.checkup-summary-total,
.checkup-final,
.checkup-method footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
}

.checkup-summary dt,
.checkup-summary dd {
  margin: 0;
  color: #171b19;
  font-size: 0.9rem;
  font-weight: 600;
}

.checkup-summary dd,
.checkup-summary-total b,
.checkup-method footer b {
  font-weight: 800;
}

.checkup-summary-total {
  padding: 18px 0;
  border-top: 1px solid rgba(23, 27, 25, 0.16);
  border-bottom: 1px solid rgba(23, 27, 25, 0.16);
}

.checkup-summary-total span,
.checkup-method footer span {
  color: #171b19;
  font-weight: 600;
}

.checkup-summary-total b:nth-of-type(2) {
  color: var(--checkup-green);
}

.checkup-final {
  margin-top: 18px;
}

.checkup-final span {
  color: #171b19;
  font-size: 1.1rem;
  font-weight: 800;
}

.checkup-final strong {
  color: var(--checkup-green);
  font-size: 2rem;
  line-height: 1;
}

.checkup-summary > p {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 22px 0 0;
  padding: 12px 16px;
  border-radius: 10px;
  color: #17231b;
  background: #edf4ea;
  font-size: 0.9rem;
  font-weight: 600;
}

.checkup-summary > p i {
  color: var(--checkup-green);
  font-size: 1.7rem;
}

.checkup-method > div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 20px;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(46, 109, 60, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.74);
}

.checkup-method > div::after {
  content: "";
  width: 17px;
  height: 17px;
  border: 2px solid rgba(46, 109, 60, 0.4);
  border-radius: 999px;
}

.checkup-method > div.is-active {
  border-color: rgba(46, 109, 60, 0.82);
}

.checkup-method > div.is-active::after {
  background: radial-gradient(circle, var(--checkup-green) 42%, transparent 46%);
}

.checkup-method > div i {
  grid-row: span 2;
  width: 58px;
  height: 58px;
  border-radius: 10px;
  font-size: 1.8rem;
}

.checkup-method strong {
  color: #171b19;
  font-size: 1rem;
  font-weight: 800;
}

.checkup-method p {
  margin: 4px 0 0;
  color: rgba(23, 27, 25, 0.66);
  font-size: 0.82rem;
  font-weight: 600;
}

.checkup-method footer {
  margin-top: 16px;
}

.checkup-home {
  display: grid;
  grid-template-columns: minmax(220px, 0.82fr) 1.8fr;
  gap: 34px;
  margin-top: 26px;
  padding: 28px;
}

.checkup-home article {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.checkup-home article i {
  grid-row: span 2;
  width: 86px;
  height: 86px;
  border-radius: 0;
  font-size: 2.8rem;
  background: transparent;
}

.checkup-home p,
.checkup-builder-cta p {
  margin: 12px 0 0;
  color: rgba(23, 27, 25, 0.7);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
}

.checkup-home ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checkup-home li {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  border-left: 1px solid rgba(23, 27, 25, 0.12);
}

.checkup-home li i {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 2rem;
}

.checkup-home li strong {
  color: var(--checkup-green);
  font-weight: 800;
}

.checkup-home li span {
  color: rgba(23, 27, 25, 0.64);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.45;
}

.checkup-builder-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 28px;
  align-items: center;
  margin-top: 30px;
  padding: 30px 34px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.checkup-builder-cta > div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 20px;
}

.checkup-builder-cta > div i {
  grid-row: span 2;
  width: 72px;
  height: 72px;
  font-size: 2rem;
}

.checkup-builder-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 58px;
  border-radius: 10px;
  color: #fff;
  background: var(--checkup-green);
  font-size: 1rem;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .checkup-builder-main,
  .checkup-home,
  .checkup-builder-cta {
    grid-template-columns: 1fr;
  }

  .checkup-builder-benefits,
  .checkup-home ul {
    grid-template-columns: 1fr;
  }

  .checkup-builder-visual {
    height: 360px;
  }

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

  .checkup-builder-steps > span {
    display: none;
  }
}

@media (max-width: 640px) {
  .checkup-builder h1 {
    font-size: clamp(3.4rem, 17vw, 4.8rem);
  }

  .checkup-builder-visual {
    height: 260px;
  }

  .checkup-builder-visual img {
    transform: none;
  }

  .checkup-builder-steps,
  .checkup-builder-list,
  .checkup-summary,
  .checkup-method,
  .checkup-home {
    border-radius: 16px;
  }

  .checkup-analysis {
    grid-template-columns: 28px minmax(0, 1fr);
    padding: 14px;
  }

  .checkup-analysis b {
    grid-column: 2;
  }

  .checkup-home article,
  .checkup-builder-cta > div {
    grid-template-columns: 1fr;
  }
}

/* Final interactive check-up overrides */
.checkup-builder-visual img {
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}

.checkup-analysis,
.checkup-method > div,
.checkup-more {
  cursor: pointer;
}

.checkup-analysis[hidden] {
  display: none !important;
}

.checkup-analysis:hover,
.checkup-method > div:hover,
.checkup-more:hover {
  border-color: rgba(46, 109, 60, 0.55);
}

.checkup-analysis:focus-visible,
.checkup-method > div:focus-visible,
.checkup-more:focus-visible,
.checkup-builder-cta a:focus-visible {
  outline: 3px solid rgba(46, 109, 60, 0.22);
  outline-offset: 3px;
}

.checkup-builder-list-head span {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .checkup-builder-visual img {
    transform: none !important;
  }

  .checkup-builder h1 {
    font-size: clamp(2.9rem, 16vw, 4.2rem);
  }
}

/* Figma alignment pass */
.checkup-builder {
  background:
    radial-gradient(circle at 76% 10%, rgba(213, 231, 205, 0.32), transparent 32%),
    radial-gradient(circle at 20% 92%, rgba(225, 240, 221, 0.28), transparent 26%);
}

.checkup-builder-kicker {
  display: none;
}

.checkup-builder h1 {
  max-width: 640px !important;
  font-size: clamp(4rem, 5.8vw, 5rem) !important;
  line-height: 1.02 !important;
  white-space: nowrap;
}

.checkup-builder-hero {
  min-height: 490px !important;
  align-items: center !important;
}

.checkup-builder-visual {
  height: 430px !important;
}

.checkup-builder-visual img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}

.checkup-builder-main {
  align-items: start !important;
}

.checkup-builder-list,
.checkup-builder-side,
.checkup-summary,
.checkup-method {
  align-self: start !important;
}

.checkup-method > div {
  grid-template-columns: 64px minmax(0, 1fr) 22px !important;
  align-items: center !important;
}

.checkup-method > div::after {
  grid-column: 3 !important;
  grid-row: 1 / span 2 !important;
  align-self: center !important;
  justify-self: center !important;
}

.checkup-method > div i {
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
}

.checkup-method strong,
.checkup-method p {
  grid-column: 2 !important;
}

.checkup-method strong {
  grid-row: 1 !important;
}

.checkup-method p {
  grid-row: 2 !important;
  max-width: 220px;
}

@media (max-width: 640px) {
  .checkup-builder h1 {
    max-width: 100% !important;
    font-size: clamp(3.05rem, 15vw, 4.05rem) !important;
    white-space: normal;
  }

  .checkup-builder-visual {
    height: 280px !important;
  }

  .checkup-method p {
    max-width: none;
  }
}

/* Interactive check-up corrections */
.checkup-builder-visual img {
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}

.checkup-analysis,
.checkup-method > div,
.checkup-more {
  cursor: pointer;
}

.checkup-analysis:hover,
.checkup-method > div:hover,
.checkup-more:hover {
  border-color: rgba(46, 109, 60, 0.55);
}

.checkup-analysis:focus-visible,
.checkup-method > div:focus-visible,
.checkup-more:focus-visible,
.checkup-builder-cta a:focus-visible {
  outline: 3px solid rgba(46, 109, 60, 0.22);
  outline-offset: 3px;
}

.checkup-analysis[hidden] {
  display: none !important;
}

.checkup-builder-list-head span {
  white-space: nowrap;
}

.checkup-summary dl:empty::before {
  content: "Выберите анализы слева";
  color: rgba(23, 27, 25, 0.66);
  font-weight: 600;
}

@media (max-width: 640px) {
  .checkup-builder {
    width: min(100%, calc(100vw - 32px));
  }

  .checkup-builder-hero {
    padding-top: 0;
  }

  .checkup-builder-visual {
    height: 240px;
  }
}

header nav {
  gap: clamp(18px, 2.2vw, 40px) !important;
}

header a[href="/glavnaya"] img {
  max-width: min(180px, 18vw);
}

.home-figma {
  --home-green: #326c4b;
  width: min(1470px, calc(100vw - 32px));
  max-width: none;
  margin: -36px 0 0 50%;
  padding: 0 0 56px;
  color: #111;
  font-family: "Montserrat", "Inter", Arial, sans-serif;
  transform: translateX(-50%);
}

.home-figma-hero {
  display: grid;
  grid-template-columns: minmax(520px, 0.82fr) minmax(520px, 1fr);
  gap: clamp(28px, 4vw, 58px);
  align-items: center;
  min-height: 430px;
}

.home-figma-copy h1 {
  margin: 0;
  color: #000;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(2.15rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

.home-figma-copy h1 span,
.home-figma-lead {
  color: var(--home-green);
}

.home-figma-copy p {
  max-width: 620px;
  margin: 12px 0 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.38;
}

.home-figma-lead {
  margin-top: 26px !important;
  font-size: 1.18rem !important;
}

.home-figma-actions {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 3vw, 44px);
  margin-top: 54px;
}

.home-figma-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 231px;
  min-height: 59px;
  padding: 14px 26px;
  border: 1px solid #111;
  color: var(--home-green);
  background: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.home-figma-actions a:first-child {
  border-color: var(--home-green);
  color: #fff;
  background: var(--home-green);
}

.home-figma-banner {
  display: block;
  overflow: hidden;
  border-radius: 34px;
  background: #f5f7f2;
}

.home-figma-banner img,
.home-figma-promo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-figma-promo img {
  object-fit: contain;
}

.home-figma-info {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 14px -18px 0;
  border-radius: 0 0 8px 8px;
  background: #e7eee9;
  box-shadow: 0 8px 18px rgba(7, 30, 21, 0.08);
  overflow: hidden;
}

.home-figma-info article {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  column-gap: 14px;
  align-items: center;
  min-height: 98px;
  padding: 18px 24px;
  background: #fff;
}

.home-figma-info i {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  color: var(--home-green);
  background: #f3faf6;
  font-size: 1.45rem;
}

.home-figma-info span {
  color: #26342d;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.home-figma-info strong {
  margin-top: 6px;
  color: #111;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
}

.home-figma-section {
  margin-top: 16px;
}

.home-figma-section h2 {
  margin: 0 0 28px;
  color: var(--home-green);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(2rem, 3.3vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

.home-figma-doctors {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 26px;
  padding: 0 42px;
}

.home-figma-doctor-card {
  position: relative;
  display: block;
  min-height: 318px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(135deg, transparent 42%, rgba(50, 108, 75, 0.96) 43%),
    #eef4ef;
  box-shadow: -5px 4px 8px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.home-figma-doctor-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transform: scale(1.12);
  transform-origin: center bottom;
}

.home-figma-doctor-card span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  min-height: 78px;
  padding: 12px 14px;
  color: #fff;
  background: #2f3330;
  border-radius: 12px 12px 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.08;
  text-align: left;
}

.home-figma-promos {
  margin-top: 36px;
}

.home-figma-promo-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.84fr) minmax(520px, 1.16fr);
  gap: 40px;
  align-items: stretch;
}

.home-figma-promo {
  display: block;
  min-height: 360px;
  overflow: hidden;
  border-radius: 45px;
  background: #f7faf7;
}

.home-figma-promo-small {
  border-radius: 54px;
}

.checkup-builder {
  max-width: 1470px;
  margin: -36px auto 0;
  padding-bottom: 64px;
  font-family: "Montserrat", "Inter", Arial, sans-serif;
  color: #111;
}

.checkup-builder-hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(520px, 1.1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  min-height: 520px;
}

.checkup-builder-kicker {
  margin: 0 0 18px;
  color: #326c4b;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.checkup-builder h1 {
  max-width: 760px;
  margin: 0;
  color: #111;
  font-size: clamp(2.4rem, 4.6vw, 4.7rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0;
}

.checkup-builder-hero p:not(.checkup-builder-kicker) {
  max-width: 640px;
  margin: 24px 0 0;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.5;
}

.checkup-builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.checkup-builder-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  min-width: 220px;
  padding: 14px 26px;
  border: 1px solid #326c4b;
  color: #fff;
  background: #326c4b;
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
}

.checkup-builder-actions a + a {
  color: #326c4b;
  background: #fff;
}

.checkup-builder-visual {
  overflow: hidden;
  border-radius: 46px;
  background: #f8fbf8;
}

.checkup-builder-visual img,
.checkup-builder-banners img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkup-builder-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.checkup-builder-grid article {
  min-height: 230px;
  padding: 26px;
  border: 1px solid rgba(50, 108, 75, 0.18);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 36px rgba(7, 30, 21, 0.08);
}

.checkup-builder-grid i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  border-radius: 14px;
  color: #326c4b;
  background: #eef8f2;
  font-size: 1.8rem;
}

.checkup-builder-grid h2 {
  margin: 0;
  color: #326c4b;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.15;
}

.checkup-builder-grid p {
  margin: 12px 0 0;
  color: #27342d;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
}

.checkup-builder-banners {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(520px, 1.14fr);
  gap: 38px;
  margin-top: 42px;
}

.checkup-builder-banners img {
  min-height: 360px;
  border-radius: 44px;
  background: #f8fbf8;
}

@media (max-width: 1100px) {
  .home-figma {
    margin-top: -22px;
  }

  .home-figma-hero,
  .home-figma-promo-grid,
  .checkup-builder-hero,
  .checkup-builder-banners {
    grid-template-columns: 1fr;
  }

  .home-figma-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-left: 0;
    margin-right: 0;
  }

  .home-figma-doctors {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0;
  }

  .checkup-builder {
    margin-top: -22px;
  }

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

@media (max-width: 640px) {
  .home-figma {
    margin-top: -38px;
    padding-bottom: 32px;
  }

  .home-figma-hero {
    gap: 28px;
    min-height: 0;
  }

  .home-figma-actions {
    gap: 12px;
    margin-top: 30px;
  }

  .home-figma-actions a {
    width: 100%;
    min-width: 0;
  }

  .home-figma-banner {
    border-radius: 22px;
  }

  .home-figma-info {
    grid-template-columns: 1fr;
  }

  .home-figma-doctors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .home-figma-doctor-card {
    min-height: 260px;
  }

  .home-figma-promo {
    min-height: 230px;
    border-radius: 26px;
  }

  .checkup-builder {
    margin-top: -38px;
    padding-bottom: 36px;
  }

  .checkup-builder-hero {
    min-height: 0;
  }

  .checkup-builder-actions a {
    width: 100%;
    min-width: 0;
  }

  .checkup-builder-visual,
  .checkup-builder-banners img {
    border-radius: 24px;
  }

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

  .checkup-builder-grid article {
    min-height: 0;
  }
}

/* Final overrides for the Figma check-up page. Kept last intentionally. */
.checkup-builder {
  --checkup-green: #2e6d3c;
  --checkup-line: rgba(46, 109, 60, 0.16);
  background:
    radial-gradient(circle at 76% 10%, rgba(213, 231, 205, 0.44), transparent 34%),
    radial-gradient(circle at 20% 88%, rgba(225, 240, 221, 0.5), transparent 28%);
}

.checkup-builder h1 {
  max-width: 560px;
  color: var(--checkup-green);
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(4.2rem, 7vw, 6.8rem);
  font-weight: 700;
  line-height: 0.98;
}

.checkup-builder-hero {
  grid-template-columns: minmax(420px, 0.9fr) minmax(520px, 1.1fr);
  min-height: 490px;
  padding-top: 24px;
}

.checkup-builder-hero p:not(.checkup-builder-kicker) {
  max-width: 420px;
  color: #171b19;
  font-size: 1.22rem;
  font-weight: 500;
  line-height: 1.55;
}

.checkup-builder-actions {
  display: none;
}

.checkup-builder-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 650px;
  margin-top: 34px;
}

.checkup-builder-benefits span {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: #243029;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
}

.checkup-builder-benefits i,
.checkup-builder-steps i,
.checkup-home i,
.checkup-builder-cta i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--checkup-line);
  border-radius: 999px;
  color: var(--checkup-green);
  background: rgba(238, 246, 235, 0.8);
  font-size: 1.4rem;
}

.checkup-builder-visual {
  height: 455px;
  border-radius: 0;
  background: transparent;
}

.checkup-builder-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 6%;
  transform: scale(1.38);
}

.checkup-builder-steps {
  display: grid;
  grid-template-columns: 1fr 44px 1fr 44px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 112px;
  margin-top: 4px;
  padding: 20px 28px;
  border: 1px solid var(--checkup-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
}

.checkup-builder-steps article {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.checkup-builder-steps i {
  width: 66px;
  height: 66px;
  font-size: 1.9rem;
}

.checkup-builder-steps strong {
  color: #16211b;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.35;
}

.checkup-builder-steps article:first-child strong {
  color: var(--checkup-green);
  font-size: 1.22rem;
  font-weight: 800;
}

.checkup-builder-steps > span {
  color: #171b19;
  font-size: 2rem;
  text-align: center;
}

.checkup-builder-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 20px;
  margin-top: 26px;
}

.checkup-builder-list,
.checkup-summary,
.checkup-method,
.checkup-home,
.checkup-builder-cta {
  border: 1px solid var(--checkup-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 48px rgba(46, 109, 60, 0.07);
}

.checkup-builder-list {
  padding: 26px 16px 28px;
}

.checkup-builder-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 14px 16px;
}

.checkup-builder-list h2,
.checkup-summary h2,
.checkup-method h2,
.checkup-home h2,
.checkup-builder-cta h2 {
  margin: 0;
  color: var(--checkup-green);
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.2;
}

.checkup-analysis {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 84px;
  margin: 0 0 8px;
  padding: 14px 24px 14px 18px;
  border: 1px solid rgba(25, 35, 28, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
}

.checkup-analysis i {
  color: rgba(46, 109, 60, 0.36);
  font-size: 1.65rem;
}

.checkup-analysis.is-selected i,
.checkup-analysis b,
.checkup-summary-total b:nth-of-type(2),
.checkup-final strong {
  color: var(--checkup-green);
}

.checkup-analysis strong {
  display: block;
  color: #171b19;
  font-size: 1rem;
  font-weight: 800;
}

.checkup-analysis p {
  margin: 6px 0 0;
  color: rgba(23, 27, 25, 0.62);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}

.checkup-analysis b {
  font-size: 1.1rem;
}

.checkup-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 230px;
  min-height: 46px;
  margin: 20px auto 0;
  border: 1px solid rgba(46, 109, 60, 0.45);
  border-radius: 12px;
  color: var(--checkup-green);
  background: rgba(255, 255, 255, 0.8);
  font-weight: 700;
}

.checkup-builder-side {
  display: grid;
  gap: 14px;
  align-content: start;
}

.checkup-summary,
.checkup-method {
  padding: 26px;
}

.checkup-summary dl {
  display: grid;
  gap: 18px;
  margin: 24px 0;
}

.checkup-summary dl div,
.checkup-summary-total,
.checkup-final,
.checkup-method footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
}

.checkup-summary dt,
.checkup-summary dd {
  margin: 0;
  color: #171b19;
  font-size: 0.9rem;
  font-weight: 600;
}

.checkup-summary dd,
.checkup-summary-total b,
.checkup-method footer b {
  font-weight: 800;
}

.checkup-summary-total {
  padding: 18px 0;
  border-top: 1px solid rgba(23, 27, 25, 0.16);
  border-bottom: 1px solid rgba(23, 27, 25, 0.16);
}

.checkup-final {
  margin-top: 18px;
}

.checkup-final span {
  color: #171b19;
  font-size: 1.1rem;
  font-weight: 800;
}

.checkup-final strong {
  font-size: 2rem;
  line-height: 1;
}

.checkup-summary > p {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 22px 0 0;
  padding: 12px 16px;
  border-radius: 10px;
  color: #17231b;
  background: #edf4ea;
  font-size: 0.9rem;
  font-weight: 600;
}

.checkup-summary > p i {
  color: var(--checkup-green);
  font-size: 1.7rem;
}

.checkup-method > div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 20px;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(46, 109, 60, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.74);
}

.checkup-method > div::after {
  content: "";
  width: 17px;
  height: 17px;
  border: 2px solid rgba(46, 109, 60, 0.4);
  border-radius: 999px;
}

.checkup-method > div.is-active {
  border-color: rgba(46, 109, 60, 0.82);
}

.checkup-method > div.is-active::after {
  background: radial-gradient(circle, var(--checkup-green) 42%, transparent 46%);
}

.checkup-method > div i {
  grid-row: span 2;
  width: 58px;
  height: 58px;
  border-radius: 10px;
  font-size: 1.8rem;
}

.checkup-method strong {
  color: #171b19;
  font-size: 1rem;
  font-weight: 800;
}

.checkup-method p {
  margin: 4px 0 0;
  color: rgba(23, 27, 25, 0.66);
  font-size: 0.82rem;
  font-weight: 600;
}

.checkup-method footer {
  margin-top: 16px;
}

.checkup-home {
  display: grid;
  grid-template-columns: minmax(220px, 0.82fr) 1.8fr;
  gap: 34px;
  margin-top: 26px;
  padding: 28px;
}

.checkup-home article {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.checkup-home article i {
  grid-row: span 2;
  width: 86px;
  height: 86px;
  border-radius: 0;
  font-size: 2.8rem;
  background: transparent;
}

.checkup-home p,
.checkup-builder-cta p {
  margin: 12px 0 0;
  color: rgba(23, 27, 25, 0.7);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
}

.checkup-home ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checkup-home li {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  border-left: 1px solid rgba(23, 27, 25, 0.12);
}

.checkup-home li i {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 2rem;
}

.checkup-home li strong {
  color: var(--checkup-green);
  font-weight: 800;
}

.checkup-home li span {
  color: rgba(23, 27, 25, 0.64);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.45;
}

.checkup-builder-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 28px;
  align-items: center;
  margin-top: 30px;
  padding: 30px 34px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.checkup-builder-cta > div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 20px;
}

.checkup-builder-cta > div i {
  grid-row: span 2;
  width: 72px;
  height: 72px;
  font-size: 2rem;
}

.checkup-builder-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 58px;
  border-radius: 10px;
  color: #fff;
  background: var(--checkup-green);
  font-size: 1rem;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .checkup-builder-hero,
  .checkup-builder-main,
  .checkup-home,
  .checkup-builder-cta {
    grid-template-columns: 1fr;
  }

  .checkup-builder-benefits,
  .checkup-home ul {
    grid-template-columns: 1fr;
  }

  .checkup-builder-visual {
    height: 360px;
  }

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

  .checkup-builder-steps > span {
    display: none;
  }
}

@media (max-width: 640px) {
  .checkup-builder h1 {
    font-size: clamp(3.4rem, 17vw, 4.8rem);
  }

  .checkup-builder-visual {
    height: 260px;
  }

  .checkup-builder-visual img {
    transform: scale(1.55);
  }

  .checkup-analysis {
    grid-template-columns: 28px minmax(0, 1fr);
    padding: 14px;
  }

  .checkup-analysis b {
    grid-column: 2;
  }

  .checkup-home article,
  .checkup-builder-cta > div {
    grid-template-columns: 1fr;
  }
}
