/* ==========================================================================
   Publyz SELECT landing page
   Route: /select/index
   Layout from the 1440px Figma design; refined type scale, parallax
   collage bands, card hover states and scroll-reveal motion.
   ========================================================================== */

:root {
  --select-green: #08aa77;
  --select-green-dark: #078d66;
  --select-green-pale: #b1e1d2;
  --select-grey: #f9f9f9;
  --select-ink: #0f1011;
  --select-body: #3c3d40;
  --select-muted: #8e8e93;
  --select-white: #ffffff;
  --select-shadow: 0 14px 34px rgba(15, 16, 17, 0.09);
  --select-serif: "PT Serif", Georgia, "Times New Roman", serif;
  --select-sans: "PT Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --select-collage: url("/assets/img/banner/select.webp");
}

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

html {
  scroll-behavior: smooth;
}

body.select-page {
  margin: 0;
  background: var(--select-white);
  color: var(--select-body);
  font-family: var(--select-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.select-page a:not(.select-btn) {
  color: inherit;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.select-header {
  width: 100%;
  background: var(--select-grey);
  padding: 18px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.select-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-height: 44px;
}

.select-brand img {
  display: block;
  width: auto;
  height: 24px;
}

.select-header-actions,
.select-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.select-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 5px;
  border: 1px solid transparent;
  padding: 10px 18px;
  font: 600 14px/1 var(--select-sans);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.select-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.select-btn:focus-visible {
  outline: 2px solid var(--select-green);
  outline-offset: 3px;
}

.select-btn:active {
  transform: translateY(0);
}

.select-btn--ink {
  background: var(--select-ink);
  border-color: var(--select-ink);
  color: var(--select-white);
}

.select-btn--ink:hover {
  background: #26272a;
  border-color: #26272a;
  color: var(--select-white);
  box-shadow: 0 10px 22px rgba(15, 16, 17, 0.18);
}

.select-btn--outline {
  background: var(--select-white);
  border-color: var(--select-ink);
  color: var(--select-ink);
}

.select-btn--outline:hover {
  background: var(--select-ink);
  color: var(--select-white);
}

.select-btn--green {
  background: var(--select-green);
  border-color: var(--select-green);
  color: var(--select-white);
}

.select-btn--green:hover {
  background: var(--select-green-dark);
  border-color: var(--select-green-dark);
  color: var(--select-white);
  box-shadow: 0 12px 26px rgba(8, 170, 119, 0.28);
}

.select-cta-row .select-btn {
  min-height: 44px;
  padding: 12px 24px;
  font-size: 15px;
}

.select-cta-row .select-btn--outline {
  background: var(--select-white);
  border-color: var(--select-green);
  color: var(--select-green);
}

.select-cta-row .select-btn--outline:hover {
  background: var(--select-green);
  color: var(--select-white);
  box-shadow: 0 12px 26px rgba(8, 170, 119, 0.28);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.select-hero {
  background: var(--select-white);
  overflow: hidden;
  padding-bottom: 56px;
}

.select-collage {
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.select-collage img {
  display: block;
  width: 100%;
  min-width: 900px;
  height: auto;
}

.select-collage--top {
  height: 340px;
  --select-parallax-y: 0px;
}

.select-collage--top img {
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: translate3d(0, var(--select-parallax-y), 0);
  will-change: transform;
}

.select-hero-content {
  width: min(100% - 48px, 880px);
  margin: 48px auto 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.select-hero h1,
.select-section h2 {
  font-family: var(--select-serif);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--select-ink);
  margin: 0;
}

.select-hero h1 {
  font-size: clamp(38px, 3.9vw, 56px);
  line-height: 1.15;
  max-width: 860px;
  margin: 0 auto;
}

.select-hero h1 span {
  color: var(--select-green);
  font-style: italic;
}

.select-hero p {
  width: min(100%, 680px);
  margin: 22px auto 0;
  color: var(--select-body);
  font-size: 17px;
  line-height: 1.7;
}

.select-hero-actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.select-hero-actions .select-btn {
  min-height: 48px;
  padding-left: 24px;
  padding-right: 24px;
}

.select-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  color: var(--select-green);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease, gap 160ms ease;
}

.select-hero-link:hover {
  color: var(--select-green-dark);
}

.select-scroll-cue {
  width: 24px;
  height: 24px;
  margin: 34px auto 0;
  color: #c4c4c4;
  animation: select-bob 2.2s ease-in-out infinite;
}

@keyframes select-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.select-scroll-cue svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   Sections — shared
   -------------------------------------------------------------------------- */

.select-section {
  padding: 120px 32px;
  background: var(--select-white);
}

.select-section--grey {
  background: #fafaf9;
}

.select-section--how {
  background: #f7fcfa;
}

.select-section--pricing {
  background: var(--select-white);
}

.select-section--cities {
  background: #fafaf9;
}

.select-section--faq {
  background: var(--select-white);
}

.select-narrow,
.select-section-head {
  width: min(100%, 780px);
  margin: 0 auto;
  text-align: center;
}

.select-section h2 {
  font-size: clamp(28px, 2.8vw, 38px);
  line-height: 1.15;
}

.select-eyebrow {
  margin: 0 0 6px;
  color: var(--select-green);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.select-section-head p,
.select-narrow p {
  color: var(--select-body);
  font-size: 17px;
  line-height: 1.7;
  margin: 16px 0 0;
}

.select-narrow .select-lede {
  font-family: var(--select-serif);
  font-weight: 700;
  font-size: 19px;
  color: var(--select-green);
  margin-top: 18px;
}

.select-narrow p + p {
  margin-top: 18px;
}

/* --------------------------------------------------------------------------
   Who can participate — city cards
   -------------------------------------------------------------------------- */

.select-city-grid {
  width: min(100%, 620px);
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.select-city-card {
  min-height: 180px;
  background: var(--select-white);
  border-radius: 10px;
  padding: 24px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  box-shadow: 0 10px 24px rgba(15, 16, 17, 0.04);
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.select-city-card:hover {
  transform: translateY(-8px);
  background: var(--select-white);
  box-shadow: 0 18px 34px rgba(15, 16, 17, 0.08);
}

.select-city-image {
  width: 92px;
  height: 92px;
  display: block;
  object-fit: contain;
  transition: transform 220ms ease;
}

.select-city-card:hover .select-city-image {
  transform: scale(1.06);
}

.select-city-card h3 {
  margin: 0;
  color: var(--select-green);
  font-family: var(--select-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.select-supporting {
  width: min(100%, 760px);
  margin: 26px auto 0;
  text-align: center;
  color: var(--select-muted);
  font-size: 13px;
}

.select-supporting--wide {
  color: var(--select-body);
  font-size: 15px;
  line-height: 1.7;
}

.select-section--about .select-section-head {
  width: min(100%, 720px);
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.select-cta-band {
  background: var(--select-grey);
  padding: 48px 32px;
  text-align: center;
}

.select-deadline {
  margin: 18px auto 0;
  color: var(--select-ink);
  font-size: 16px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Benefits + How to participate — cards
   -------------------------------------------------------------------------- */

.select-benefit-grid,
.select-step-grid {
  width: min(100%, 900px);
  margin: 36px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 22px;
}

.select-benefit-card,
.select-step-card {
  min-height: 210px;
  background: var(--select-grey);
  border-radius: 10px;
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 250ms ease, box-shadow 250ms ease, background-color 250ms ease;
}

.select-benefit-card {
  min-height: 278px;
}

.select-benefit-card:hover,
.select-step-card:hover {
  transform: translateY(-8px);
  background: var(--select-white);
  box-shadow: 0 20px 42px rgba(15, 16, 17, 0.1);
}

.select-check-icon {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--select-green-pale);
  transition: transform 220ms ease, background-color 220ms ease;
}

.select-step-number {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--select-green-pale);
  transition: transform 220ms ease, background-color 220ms ease;
}

.select-benefit-card:hover .select-check-icon,
.select-step-card:hover .select-step-number {
  transform: scale(1.08);
}

.select-check-icon {
  color: var(--select-green);
}

.select-check-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.select-check-icon--line svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.select-step-number {
  color: var(--select-ink);
  font-family: var(--select-serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
}

.select-benefit-card h3,
.select-step-card h3 {
  margin: 16px 0 0;
  color: var(--select-ink);
  font-family: var(--select-serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}

.select-benefit-card p,
.select-step-card p {
  margin: 10px 0 0;
  color: var(--select-body);
  font-size: 15px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */

.select-price-block {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 52px 48px;
  text-align: center;
  background: var(--select-white);
  border: 1px solid #e7e5e1;
  border-radius: 24px;
  box-shadow: 0 26px 60px rgba(15, 16, 17, 0.08), 0 0 44px rgba(8, 170, 119, 0.1);
}

.select-price-block h2 {
  font-family: var(--select-serif);
  font-size: clamp(30px, 2.8vw, 42px);
  font-weight: 700;
  color: var(--select-ink);
}

.select-price-bar {
  width: min(100%, 560px);
  min-height: 84px;
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 20px;
  padding: 18px 34px;
  background: var(--select-green);
  color: var(--select-white);
  box-shadow: 0 18px 40px rgba(8, 170, 119, 0.22);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.select-price-bar:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(8, 170, 119, 0.3);
}

.select-price-bar span {
  font-family: var(--select-sans);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.select-price-bar small {
  color: var(--select-white);
  font-size: 15px;
  font-weight: 500;
}

.select-price-block p {
  width: min(100%, 640px);
  margin: 22px auto 0;
  color: var(--select-body);
  font-size: 17px;
  line-height: 1.7;
}

.select-price-support {
  width: min(100%, 620px) !important;
  margin-top: 12px !important;
  color: var(--select-muted) !important;
  font-size: 15px !important;
}

.select-trust-row {
  margin: 28px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--select-muted);
  font-size: 13px;
  font-weight: 700;
}

.select-trust-row > span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e7e5e1;
  border-radius: 999px;
  padding: 8px 14px;
  background: #fafaf9;
}

.select-trust-row > span > span {
  color: var(--select-green);
}

/* --------------------------------------------------------------------------
   Parallax collage bands
   -------------------------------------------------------------------------- */

.select-collage-section,
.select-final-cta {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 88px 32px;
  background-image: linear-gradient(rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.18)), var(--select-collage);
  background-size: cover;
  background-position: center 24%;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.select-collage-section {
  min-height: 260px;
  background-image: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)), var(--select-collage);
  background-position: center 30%;
}

.select-collage-section img,
.select-collage--final {
  display: none;
}

/* --------------------------------------------------------------------------
   Top 10 specialists
   -------------------------------------------------------------------------- */

.select-section--top10 {
  padding: 120px 32px;
}

.select-top10-tabs {
  width: min(100%, 520px);
  margin: 30px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  border-bottom: 1px solid #eeeeec;
}

.select-top10-tab {
  min-height: 48px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--select-muted);
  font-family: var(--select-sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.select-top10-tab.is-active {
  color: var(--select-green);
  border-bottom-color: var(--select-green);
}

.select-top10-tab:hover {
  color: var(--select-green-dark);
}

.select-top10-tab:focus-visible {
  outline: 2px solid var(--select-green);
  outline-offset: 2px;
}

.select-doctor-panel[hidden] {
  display: none;
}

.select-doctor-panel {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.select-doctor-panel.is-active {
  opacity: 1;
  transform: none;
}

.select-tab-description {
  width: min(100%, 820px);
  margin: 22px auto 0;
  color: var(--select-body);
  font-size: 15px;
  line-height: 1.65;
  text-align: center;
}

.select-doctor-grid {
  width: min(100%, 1200px);
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.select-doctor-card {
  min-height: 238px;
  background: var(--select-grey);
  border-radius: 14px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: transform 250ms ease, box-shadow 250ms ease, background-color 250ms ease;
}

.select-doctor-card:hover {
  transform: translateY(-8px);
  background: var(--select-white);
  box-shadow: 0 20px 42px rgba(15, 16, 17, 0.1);
}

.select-doctor-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.select-avatar {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 50%;
  background-image: url("/assets/img/banner/select/doctors-strip.png");
  background-size: 900% 200%;
  background-repeat: no-repeat;
  background-color: #ececea;
  color: transparent;
  overflow: hidden;
}

.select-avatar--photo {
  background-image: none;
  color: transparent;
}

.select-avatar--photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.select-avatar--1 { background-position: 12.5% 0; }
.select-avatar--2 { background-position: 37.5% 0; }
.select-avatar--3 { background-position: 0 100%; }
.select-avatar--4 { background-position: 50% 0; }
.select-avatar--5 { background-position: 25% 100%; }
.select-avatar--6 { background-position: 62.5% 0; }
.select-avatar--7 { background-position: 62.5% 100%; }
.select-avatar--8 { background-position: 50% 100%; }
.select-avatar--9 { background-position: 87.5% 100%; }

.select-doctor-card h3 {
  margin: 0;
  color: var(--select-ink);
  font-family: var(--select-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.select-doctor-meta {
  margin: 3px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: var(--select-body);
  font-size: 13px;
  line-height: 1.25;
}

.select-meta-dot {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  display: inline-block;
  background: var(--select-green);
}

.select-case-title {
  display: block;
  margin: 14px 0 0;
  color: var(--select-ink);
  font-family: var(--select-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.select-read-story {
  margin-top: auto;
  padding-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--select-green);
  font-size: 13px;
  font-weight: 700;
  transition: color 180ms ease, gap 180ms ease;
}

.select-doctor-card--link:hover .select-read-story {
  gap: 11px;
  color: var(--select-green-dark);
}

.select-doctor-card--link:focus-visible {
  outline: 2px solid var(--select-green);
  outline-offset: 4px;
}

.select-deadline-block {
  margin: 34px auto 0;
  text-align: center;
}

.select-deadline-block p {
  margin: 0;
  color: var(--select-muted);
  font-size: 14px;
  font-weight: 600;
}

.select-deadline-block strong {
  display: block;
  margin-top: 6px;
  color: var(--select-green);
  font-family: var(--select-serif);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.select-section--faq {
  padding: 80px 32px 112px;
}

.select-faq-list {
  width: min(100%, 860px);
  margin: 40px auto 0;
  display: grid;
  gap: 18px;
}

.select-faq {
  background: var(--select-white);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.select-faq:hover {
  box-shadow: var(--select-shadow);
  transform: translateY(-2px);
}

.select-faq summary {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 28px;
  cursor: pointer;
  list-style: none;
  color: var(--select-ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.select-faq summary::-webkit-details-marker {
  display: none;
}

.select-faq summary:focus-visible {
  outline: 2px solid var(--select-green);
  outline-offset: 4px;
}

.select-faq summary svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 220ms ease;
}

.select-faq[open] summary svg {
  transform: rotate(180deg);
}

.select-faq p {
  margin: -4px 0 0;
  padding: 0 28px 22px;
  color: var(--select-body);
  font-size: 15px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Final CTA (parallax band with button)
   -------------------------------------------------------------------------- */

.select-final-content {
  width: min(100%, 760px);
  position: relative;
  inset: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(15, 16, 17, 0.18);
  backdrop-filter: blur(16px);
}

.select-final-content::before {
  content: none;
}

.select-final-content .select-final-title {
  margin: 0;
  width: min(100%, 760px);
  position: relative;
  z-index: 1;
  color: var(--select-ink);
  font-family: var(--select-serif);
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.16;
}

.select-final-content p {
  width: min(100%, 620px);
  margin: 16px auto 0;
  position: relative;
  z-index: 1;
  color: var(--select-body);
  font-size: 17px;
  line-height: 1.65;
}

.select-final-actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.select-final-content .select-btn {
  min-height: 48px;
  min-width: 170px;
}

.select-final-content .select-btn:hover {
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.select-footer {
  background: var(--select-white);
  border-top: 1px solid #efefee;
  padding: 18px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.select-footer p {
  margin: 0;
  color: var(--select-ink);
  font-size: 14px;
}

.select-footer nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.select-footer a {
  text-decoration: none;
  color: var(--select-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 160ms ease;
}

.select-footer a:hover {
  color: var(--select-ink);
}

/* --------------------------------------------------------------------------
   Scroll-reveal motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .select-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 300ms ease, transform 300ms ease;
  }

  .select-reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .select-city-grid > *:nth-child(2),
  .select-benefit-grid > *:nth-child(2),
  .select-step-grid > *:nth-child(2) {
    transition-delay: 90ms;
  }

  .select-city-grid > *:nth-child(3),
  .select-benefit-grid > *:nth-child(3),
  .select-step-grid > *:nth-child(3) {
    transition-delay: 180ms;
  }

  .select-doctor-grid > *:nth-child(3n+2) {
    transition-delay: 90ms;
  }

  .select-doctor-grid > *:nth-child(3n) {
    transition-delay: 180ms;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .select-header,
  .select-footer {
    padding-left: 32px;
    padding-right: 32px;
  }

  .select-collage--top {
    height: 280px;
  }
}

@media (max-width: 980px) {
  .select-city-grid,
  .select-benefit-grid,
  .select-step-grid,
  .select-doctor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .select-city-grid {
    width: min(100%, 420px);
  }

  .select-section {
    padding: 96px 24px;
  }

  .select-collage--top {
    height: 230px;
  }

  /* fixed backgrounds are unreliable on touch devices */
  .select-collage-section {
    background-attachment: scroll;
    background-position: center 25%;
  }

  .select-final-cta {
    background-attachment: scroll;
    background-position: center 25%;
    padding: 72px 24px;
  }
}

@media (max-width: 720px) {
  .select-header {
    padding: 14px 20px;
    align-items: center;
  }

  .select-brand img {
    height: 21px;
  }

  .select-header-actions {
    gap: 8px;
  }

  .select-header-actions .select-btn {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .select-collage img {
    min-width: 780px;
    margin-left: 50%;
    transform: translateX(-50%);
  }

  .select-collage--top {
    height: auto;
  }

  .select-collage--top img {
    height: auto;
    object-fit: contain;
    transform: translate3d(-50%, var(--select-parallax-y), 0);
  }

  .select-hero-content {
    margin-top: 32px;
  }

  .select-hero h1 {
    font-size: 32px;
    line-height: 1.12;
  }

  .select-hero p {
    font-size: 16px;
  }

  .select-section {
    padding: 72px 20px;
  }

  .select-hero-actions,
  .select-final-actions {
    width: min(100%, 420px);
    margin-left: auto;
    margin-right: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .select-hero-actions .select-btn,
  .select-final-actions .select-btn {
    width: 100%;
  }

  .select-section h2 {
    font-size: 26px;
  }

  .select-section-head p,
  .select-narrow p,
  .select-price-block p {
    font-size: 15px;
  }

  .select-city-grid,
  .select-benefit-grid,
  .select-step-grid,
  .select-doctor-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .select-city-grid {
    width: min(100%, 280px);
  }

  .select-benefit-card,
  .select-step-card,
  .select-doctor-card {
    min-height: auto;
  }

  .select-top10-tabs {
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
    padding: 0 20px;
    justify-content: flex-start;
    gap: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .select-top10-tabs::-webkit-scrollbar {
    display: none;
  }

  .select-top10-tab {
    flex: 0 0 auto;
  }

  .select-cta-band {
    padding: 40px 20px;
  }

  .select-cta-row {
    width: min(100%, 420px);
    margin-left: auto;
    margin-right: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .select-cta-row .select-btn {
    width: 100%;
  }

  .select-price-bar {
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    text-align: center;
  }

  .select-price-block {
    padding: 36px 22px;
  }

  .select-trust-row {
    align-items: stretch;
    flex-direction: column;
    width: min(100%, 320px);
  }

  .select-trust-row > span {
    justify-content: center;
  }

  .select-collage-section,
  .select-final-cta {
    min-height: 420px;
    height: auto;
  }

  .select-faq summary {
    min-height: 56px;
    padding: 16px 18px;
    font-size: 15px;
  }

  .select-faq p {
    padding: 0 18px 18px;
    font-size: 14px;
  }

  .select-final-content {
    padding: 28px;
  }

  .select-footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .select-footer p,
  .select-footer a {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .select-scroll-cue {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
