/*
Theme Name: Автоняня
Theme URI: https://автоняня.москва
Author: Автоняня
Description: Редактируемая ACF-тема сервиса «Автоняня».
Version: 1.4.2
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: avtonyanya
*/

:root {
  --rose: #fd83a6;
  --mint: #63ccb5;
  --cream: #fff8f1;
  --surface: #fffaf5;
  --ink: #484848;
  --muted: #7a7a7a;
  --page: #ffffff;
  --radius-lg: 30px;
  --radius-md: 20px;
  --container: 1160px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Geologica", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.2;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-shell { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { margin-top: clamp(72px, 7.5vw, 110px); }
.section-title { margin: 0; font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.section-lead { margin: 14px 0 0; font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 500; line-height: 1.1; }
.button { display: inline-flex; min-height: 49px; align-items: center; justify-content: center; padding: 10px 24px; border: 0; border-radius: 999px; background: var(--rose); color: var(--cream); font-size: 18px; font-weight: 500; cursor: pointer; transition: transform .25s var(--ease), filter .25s var(--ease); }
.button:hover { transform: translateY(-2px); filter: saturate(1.08); }
.button--cream { background: var(--cream); color: var(--rose); }
.button--wide { min-width: 274px; }

.site-header { padding-top: 40px; }
.header-inner { min-height: 69px; display: flex; align-items: center; gap: 36px; padding: 10px 10px 10px 30px; border-radius: 999px; background: var(--surface); }
.site-logo { width: 192px; margin-right: auto; }
.site-nav ul { display: flex; gap: 34px; margin: 0; padding: 0; list-style: none; }
.site-nav a { font-size: 16px; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 6px; }

.hero { display: grid; grid-template-columns: 1.41fr 1fr; gap: 20px; margin-top: 70px; }
.hero-main { min-height: 586px; display: flex; flex-direction: column; align-items: flex-start; padding: 30px; border-radius: var(--radius-lg); background: var(--rose); color: var(--cream); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 18px; }
.badge { padding: 5px 15px; border-radius: 999px; background: var(--cream); color: var(--rose); font-size: 20px; font-weight: 500; white-space: nowrap; }
.hero h1 { max-width: 570px; margin: 96px 0 44px; font-size: clamp(2.5rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -.02em; }
.hero-copy { max-width: 535px; margin: 0 0 62px; font-size: 24px; font-weight: 500; line-height: 1.1; }
.hero-side { display: grid; grid-template-rows: 317px 1fr; gap: 20px; }
.media-card, .image-card { overflow: hidden; border-radius: var(--radius-lg); }
.media-card img, .image-card img { width: 100%; height: 100%; object-fit: cover; }
.media-card picture, .image-card picture { display: block; width: 100%; height: 100%; }
.promo-card { position: relative; min-height: 249px; padding: 30px; border-radius: var(--radius-lg); background: var(--mint); color: var(--surface); }
.promo-card h2 { max-width: 330px; margin: 0 0 28px; font-size: 32px; line-height: 1.1; }
.promo-card p { max-width: 360px; margin: 0; font-size: 22px; font-weight: 500; }
.round-link { position: absolute; top: 30px; right: 30px; width: 60px; height: 60px; border-radius: 50%; background: var(--cream) url(assets/icons/arrow.svg) center/35px no-repeat; }

.story-grid { display: grid; grid-template-columns: 1fr 2.06fr; gap: 20px; align-items: stretch; }
.story-grid .image-card { min-height: 363px; }
.story-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; align-content: start; }
.story-copy .section-title, .story-copy .section-lead, .story-copy .button { grid-column: 1 / -1; }
.story-copy p { margin: 0; font-weight: 300; }

.formats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.format-card { position: relative; min-height: 300px; padding: 30px; border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.format-card h3 { max-width: 470px; margin: 0 0 10px; font-size: 32px; line-height: 1.1; }
.format-card p { max-width: 310px; margin: 0; font-size: 24px; font-weight: 500; }
.format-card .badge { position: absolute; left: 30px; bottom: 35px; font-size: 16px; background: #ffe6c0; color: var(--ink); }
.format-card .round-link { top: auto; right: 24px; bottom: 24px; background-color: var(--rose); }
.format-card--image { color: var(--cream); background: linear-gradient(0deg, rgba(72,72,72,.28), rgba(72,72,72,.05)), var(--format-image) center/cover; }

.safety-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.safety-card { min-height: 272px; padding: 30px; border-radius: var(--radius-lg); background: var(--surface); }
.safety-card h3 { margin: 0 0 12px; font-size: 24px; line-height: 1.12; }
.safety-card p { margin: 0; font-weight: 300; }

.care-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.care-grid > .image-card { grid-row: span 2; min-height: 459px; }
.care-heading { grid-column: 2 / -1; }
.features { grid-column: 2 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.feature { padding: 20px 24px; border-radius: var(--radius-md); background: var(--surface); }
.feature h3 { margin: 0 0 12px; padding-left: 40px; min-height: 29px; background: url(assets/icons/check.svg) left top/29px no-repeat; font-size: 20px; font-weight: 400; }
.feature p { margin: 0; font-weight: 300; }

.app-card { display: grid; grid-template-columns: 1.5fr .9fr; min-height: 338px; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); }
.app-copy { padding: 40px 50px; }
.app-copy p { max-width: 640px; font-size: 24px; }
.app-copy strong { font-weight: 500; }
.app-visual { display: grid; place-items: end center; padding-top: 30px; }
.app-visual img { max-height: 306px; object-fit: contain; }

.cta-band { display: grid; grid-template-columns: 1.04fr 1fr 1fr; gap: 20px; }
.cta-band .image-card { min-height: 327px; }
.cta-copy { display: flex; flex-direction: column; align-items: flex-start; padding: 16px; border-radius: var(--radius-lg); background: var(--mint); color: var(--cream); }
.cta-copy .eyebrow { margin: 16px 0 auto; }
.cta-copy h2 { margin: 20px 0; font-size: 24px; }

.reviews { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 30px; }
.review { min-height: 327px; display: flex; flex-direction: column; padding: 24px 16px; border-radius: var(--radius-lg); background: var(--surface); }
.review h3 { margin: 0; font-size: 24px; line-height: 1.1; }
.review blockquote { margin: auto 0 20px; font-weight: 300; }
.review cite { font-size: 12px; font-style: normal; }
.review--image { padding: 0; overflow: hidden; }
.review--image img { width: 100%; height: 100%; object-fit: cover; }

.faq-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
.faq-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.faq-intro p { margin: 0; max-width: 460px; font-size: 20px; font-weight: 500; }
.faq-list { display: grid; gap: 10px; }
.faq-item { border-radius: 10px; background: var(--surface); overflow: clip; }
.faq-question { width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 14px 12px 20px; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; list-style: none; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { content: ""; width: 30px; height: 30px; flex: 0 0 30px; background: url(assets/icons/plus.svg) center/contain no-repeat; transition: transform .3s var(--ease); }
.faq-item[open] .faq-question::after { transform: rotate(45deg); }
.faq-answer p { margin: 0; padding: 0 56px 20px 20px; font-weight: 300; }

.posts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 28px; margin-top: 30px; }
.post-card { display: grid; grid-template-columns: 177px 1fr; gap: 20px; }
.post-card img { width: 177px; height: 177px; border-radius: var(--radius-md); object-fit: cover; }
.post-card time { color: var(--muted); font-size: 12px; }
.post-card h3 { margin: 12px 0; font-size: 24px; line-height: 1.1; }
.post-card p { margin: 0; font-weight: 300; }

.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 30px; }
.partner { min-height: 97px; display: grid; place-items: center; padding: 20px; border-radius: var(--radius-lg); background: var(--surface); }
.partner img { max-height: 40px; }

.footer { position: relative; margin: 90px 0 40px; padding: 50px 60px 30px; overflow: hidden; border-radius: var(--radius-lg); background: linear-gradient(rgba(0,0,0,.2), rgba(0,0,0,.2)), var(--footer-image) center/cover; color: var(--cream); }
.footer-top { display: grid; grid-template-columns: 1fr auto; gap: 40px; }
.footer-logo { width: 340px; filter: brightness(0) invert(1); }
.footer-tagline { max-width: 420px; font-size: 20px; font-weight: 500; }
.footer-contacts { display: grid; gap: 16px; justify-items: end; font-size: 20px; }
.footer-bottom { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; margin-top: 70px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 30px; font-size: 14px; }
.footer-legal { font-size: 12px; }

.quizzle-slot { position: fixed; z-index: 100; inset: 0; display: none; place-items: center; padding: 20px; background: rgba(72,72,72,.62); }
.quizzle-slot.is-open { display: grid; }
.quizzle-dialog { position: relative; width: min(760px, 100%); max-height: calc(100dvh - 40px); overflow: auto; padding: 30px; border-radius: var(--radius-lg); background: var(--page); }
.dialog-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface); font-size: 28px; cursor: pointer; }

@media (max-width: 800px) {
  .safety-card h3 {

    font-size: 23px;}
  .header-inner { height: 36px; min-height: 36px; }
  .menu-toggle { width: 24px; height: 24px; }
  .hero { margin-top: 8px; }
  .site-shell { width: min(calc(100% - 20px), 350px); }
  .section { margin-top: 72px; }
  .section-title { font-size: 32px; }
  .site-header { padding-top: 20px; }
  .header-inner { min-height: 36px; padding: 6px 11px; }
  .site-logo { width: 133px; }
  .site-nav, .header-cta { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .menu-toggle span { display: block; width: 19px; height: 2px; margin: 4px 0; background: var(--ink); }
  .site-header.is-open .site-nav { position: absolute; z-index: 20; top: 66px; left: 10px; right: 10px; display: block; padding: 24px; border-radius: 20px; background: var(--surface); box-shadow: 0 16px 40px rgba(72,72,72,.12); }
  .site-header.is-open .site-nav ul { flex-direction: column; gap: 20px; }
  .hero { grid-template-columns: 1fr; gap: 20px; margin-top: 20px; }
  .hero-main { min-height: 353px; padding: 20px; }
  .hero-badges { flex-wrap: nowrap; gap: 6px; }
  .badge { padding: 5px 10px; font-size: 10px; }
  .hero h1 { margin: 46px 0 22px; font-size: 24px; }
  .hero-copy { margin: 0 0 22px; font-size: 20px; }
  .hero .button { width: 100%; margin-top: auto; }
  .hero-side { grid-template-rows: 350px 182px; }
  .promo-card { min-height: 182px; padding: 20px;         min-height: 195px;}
  .promo-card h2 { max-width: 270px; font-size: 24px; }
  .promo-card p { font-size: 20px; }
  .round-link { top: 20px; right: 20px; }
  .story-grid { grid-template-columns: 1fr; }
  .story-grid .image-card { order: 2; min-height: 341px; }
  .story-copy { display: contents; }
  .story-copy .section-title { order: 1; }
  .story-copy .section-lead { order: 3; }
  .story-copy p { order: 4; }
  .story-copy .button { order: 5; width: 100%; }
  .formats, .safety-grid, .care-grid, .features, .reviews, .faq-layout, .posts-grid, .partners, .footer-top, .footer-bottom { grid-template-columns: 1fr; }
  .format-card { min-height: 260px; }
  .format-card h3 { font-size: 24px; }
  .format-card p { font-size: 20px; }
  .safety-grid { gap: 10px; }
  .safety-card { min-height: auto; padding: 20px; }
  .care-grid > .image-card { grid-row: auto; min-height: 350px; }
  .care-heading, .features { grid-column: auto; }
  .app-card { grid-template-columns: 1fr; }
  .app-copy { padding: 20px; }
  .app-copy p { font-size: 16px; }
  .app-visual { min-height: 300px; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .image-card { min-height: 350px; }
  .cta-copy { min-height: 314px; padding: 20px; }
  .reviews { gap: 10px; }
  .review { min-height: 204px; padding: 20px; }
  .review--image { min-height: 350px; }
  .faq-layout { gap: 30px; }
  .faq-list { order: -1; }
  .faq-intro .button { width: 100%; }
  .post-card { grid-template-columns: 1fr; }
  .post-card img { width: 100%; height: 200px; }
  .partners { grid-template-columns: 1fr 1fr; gap: 10px; }
  .partner { min-height: 61px; border-radius: 20px; }
  .footer { margin-top: 40px; padding: 30px 20px 20px; }
  .footer-logo { width: 220px; }
  .footer-contacts { justify-items: start; }
  .footer-bottom { margin-top: 34px; }
}

/* Final Figma pass: inner pages, footer alignment and motion. */
.footer.site-shell { margin-left: auto; margin-right: auto; }
.promo-card .round-link {
  background-color: var(--cream);
  background-image: url(assets/icons/arrow.svg);
  background-position: center;
  background-size: 35px;
  background-repeat: no-repeat;
}

.page-hero { height: 362px; display: grid; grid-template-columns: 570px 570px; gap: 20px; }
.page-hero__image { height: 362px; }
.page-hero__copy { display: flex; flex-direction: column; }
.page-hero__copy h1 { min-height: 106px; font-size: 48px; }
.page-hero__copy h2 { margin: 24px 0 0; font-size: 24px; line-height: 1.1; font-weight: 500; }
.page-hero__copy p { margin: 34px 0 0; font-weight: 300; }
.page-hero__copy p + p { margin-top: 16px; }

.about-page > .section,
.services-page > .section,
.partner-hero + .section { margin-top: 90px; }
.about-page .inner-cards--3 article { min-height: 280px; }
.cta-panel { min-height: 327px; display: flex; flex-direction: column; align-items: flex-start; padding: 30px; border-radius: 30px; background: var(--rose); color: var(--cream); }
.cta-panel > p { margin: 0; }
.cta-panel h2 { max-width: 560px; margin: auto 0 20px; font-size: 32px; line-height: 1.1; }
.nanny-section { display: grid; grid-template-columns: 570px 570px; gap: 20px; }
.nanny-section__copy > p:not(.section-lead) { margin: 20px 0 0; max-width: 570px; font-weight: 300; }
.nanny-section .image-card { height: 473px; }
.nanny-section .inner-cards { margin-top: 20px; }
.nanny-section .inner-cards article { min-height: 246px; padding: 24px; }
.preparation-section { display: grid; grid-template-columns: 373px 767px; gap: 20px; }
.preparation-section > .image-card { height: 365px; }
.feature-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 56px; }
.feature-pair .feature { min-height: 184px; }

.service-block .section-title { margin-bottom: 30px; }
.service-mosaic { display: grid; grid-template-columns: 767px 373px; gap: 20px; }
.service-block--regular .service-mosaic { grid-template-columns: 373px 767px; }
.service-block--regular .service-photo { grid-column: 1; grid-row: 1; }
.service-block--regular .service-facts { grid-column: 2; }
.service-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.service-facts article { min-height: 213px; padding: 24px; border-radius: 30px; background: var(--surface); }
.service-facts p { margin: 30px 0 0; font-weight: 300; }
.service-photo { position: relative; height: 446px; }
.service-photo .button { position: absolute; left: 24px; right: 24px; bottom: 24px; }
.conditions-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.conditions-columns h3 { margin: 0 0 24px; font-size: 32px; }
.conditions-columns p { min-height: 84px; margin: 0 0 12px; padding: 20px 20px 20px 61px; border-radius: 20px; background: var(--surface) url(assets/icons/check.svg) 20px 20px/29px no-repeat; }

.partner-types article::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,rgba(35,35,35,.58),transparent 55%); }
.partner-types h3 { position: relative; }
.partner-contact { min-height: 331px; }

.faq-answer { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .38s var(--ease), opacity .25s ease; }
.faq-answer > * { min-height: 0; overflow: hidden; }
.faq-item[open] .faq-answer { grid-template-rows: 1fr; opacity: 1; }
.faq-question { transition: color .2s ease; }
.faq-question:hover { color: var(--rose); }

body.motion-ready .reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
body.motion-ready .reveal.is-visible { opacity: 1; transform: none; }
body.motion-ready .stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--stagger-index, 0) * 70ms); }
body.motion-ready .reveal.is-visible .stagger > *, body.motion-ready .stagger.is-visible > * { opacity: 1; transform: none; }
.round-link { transition: transform .28s var(--ease), background-color .28s ease; }
.round-link:hover { transform: rotate(7deg) scale(1.05); }
.faq-question::after { transition: transform .35s var(--ease); }

@media (max-width: 800px) {
  .promo-card .round-link { background-image: url(assets/icons/arrow.svg); }
  .page-hero { height: auto; grid-template-columns: 1fr; }
  .page-hero__image { height: 350px; }
  .page-hero__copy h1 { min-height: 0; margin-top: 20px; font-size: 32px; }
  .page-hero__copy h2 { margin-top: 20px; font-size: 20px; }
  .page-hero__copy p { margin-top: 20px; }
  .about-page .inner-cards--3 article { min-height: 0; }
  .nanny-section, .preparation-section { grid-template-columns: 1fr; }
  .nanny-section .image-card { height: 350px; }
  .nanny-section .inner-cards article { min-height: 0; }
  .preparation-section > .image-card { height: 350px; }
  .feature-pair { grid-template-columns: 1fr; gap: 10px; margin-top: 30px; }
  .service-mosaic, .service-block--regular .service-mosaic { grid-template-columns: 1fr; }
  .service-block--regular .service-photo, .service-block--regular .service-facts { grid-column: auto; grid-row: auto; }
  .service-facts { grid-template-columns: 1fr; gap: 10px; }
  .service-facts article { min-height: 0; padding: 20px; }
  .service-photo { height: 350px; }
  .conditions-columns { grid-template-columns: 1fr; }
  .conditions-columns h3 { font-size: 24px; }
  .footer.site-shell { margin-left: auto; margin-right: auto; }
}

@media (prefers-reduced-motion: reduce) {
  body.motion-ready .reveal, body.motion-ready .stagger > * { opacity: 1; transform: none; }
}

/* Inner pages */
.inner-page { padding-top: 70px; }
.inner-page h1 { margin: 0; font-size: clamp(2.5rem,4vw,3rem); line-height: 1.1; letter-spacing: -.02em; }
.inner-hero { min-height: 362px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.inner-hero > div:first-child { display: flex; flex-direction: column; align-items: flex-start; padding: 30px; border-radius: var(--radius-lg); color: var(--cream); }
.inner-hero--mint > div:first-child { background: var(--mint); }
.inner-hero p { max-width: 520px; font-size: 20px; }
.inner-hero .button { margin-top: auto; }
.inner-cards { display: grid; gap: 20px; margin-top: 30px; }
.inner-cards--3 { grid-template-columns: repeat(3,1fr); }
.inner-cards--2 { grid-template-columns: repeat(2,1fr); }
.inner-cards article { padding: 30px; border-radius: var(--radius-lg); background: var(--surface); }
.inner-cards h3 { margin: 0 0 14px; font-size: 24px; line-height: 1.1; }
.inner-cards p { margin: 0; font-weight: 300; }
.mini-cta { min-height: 327px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 30px; border-radius: var(--radius-lg); background: var(--rose); color: var(--cream); }
.mini-cta p { margin: 0 0 auto; }
.mini-cta h2 { max-width: 520px; margin: 20px 0; font-size: 32px; line-height: 1.1; }
.avatar-row { display: flex; margin-bottom: 16px; }
.avatar-row span { width: 53px; height: 53px; margin-right: -14px; border: 3px solid var(--rose); border-radius: 50%; background: url(assets/images/cta-12.webp) center/cover; }
.split-section { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; }
.split-section > .image-card { min-height: 500px; }
.stack-list { display: grid; gap: 10px; margin-top: 30px; }
.stack-list article { padding: 20px; border-radius: var(--radius-md); background: var(--surface); }
.stack-list h3 { margin: 0 0 8px; font-size: 20px; }
.stack-list p { margin: 0; font-weight: 300; }
.check-list { display: grid; gap: 10px; margin-top: 30px; }
.check-list p { min-height: 54px; margin: 0; padding: 16px 16px 16px 60px; border-radius: var(--radius-md); background: var(--surface) url(assets/icons/check.svg) 20px center/29px no-repeat; }
.service-intro { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; align-items: end; }
.service-intro p { margin: 0; font-size: 20px; }
.service-format-grid { display: grid; grid-template-columns: 373px 1fr; gap: 20px; margin-top: 30px; }
.service-image { position: relative; min-height: 459px; }
.service-image .button { position: absolute; left: 16px; right: 16px; bottom: 16px; }
.service-format .inner-cards { margin: 0; }
.service-format .inner-cards article { padding: 20px; }
.yellow-label { display: inline-block; padding: 5px 12px; border-radius: 999px; background: #ffd75e; font-size: 14px; }
.conditions { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.conditions > div { padding: 24px; border-radius: var(--radius-lg); background: var(--surface); }
.conditions p { padding-left: 40px; background: url(assets/icons/check.svg) left top/29px no-repeat; }
.partner-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
.partner-hero .image-card { height: 354px; }
.partner-hero h2 { margin: 28px 0; font-size: 24px; line-height: 1.1; }
.partner-types { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 30px; }
.partner-types article { position: relative; min-height: 330px; display: flex; align-items: flex-end; padding: 24px; overflow: hidden; border-radius: var(--radius-lg); color: var(--cream); background: linear-gradient(0deg,rgba(30,30,30,.45),transparent 60%),var(--partner-photo) center/cover; }
.partner-types h3 { margin: 0; font-size: 20px; }
.partner-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.partner-contact > div:first-child { display: flex; flex-direction: column; align-items: flex-start; }
.partner-contact p { margin-top: auto; font-size: 20px; }
.partner-contact .image-card { height: 330px; }
.blog-page { padding-bottom: 0; }
.blog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px 28px; }
.blog-card { display: grid; grid-template-columns: 177px 1fr; column-gap: 20px; align-content: start; }
.blog-card img { grid-row: 1/5; width: 177px; height: 177px; border-radius: var(--radius-md); object-fit: cover; }
.blog-card time { color: var(--muted); font-size: 12px; }
.blog-card h2 { margin: 12px 0; font-size: 24px; line-height: 1.1; }
.blog-card p { margin: 0; font-weight: 300; }
.blog-card--featured { grid-column: 1; display: block; }
.blog-card--featured img { width: 570px; height: 265px; }
.blog-card--featured h2 { font-size: 24px; }
.blog-page .navigation.pagination { height: 48px; margin-top: 60px; }
.blog-page .nav-links { height: 48px; display: flex; justify-content: center; align-items: center; gap: 8px; }
.blog-page .page-numbers { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); }
.blog-page .page-numbers.current { background: var(--rose); color: var(--cream); }

@media (min-width: 801px) {
  .blog-page .blog-grid { grid-template-columns: 570px 570px; grid-template-rows: repeat(6,177px); gap: 60px 20px; }
  .blog-page .blog-card { width: 570px; height: 177px; }
  .blog-page .blog-card--featured { height: 414px; }
  .blog-page .blog-card:nth-child(1) { grid-column:1; grid-row:1 / 3; }
  .blog-page .blog-card:nth-child(2) { grid-column:2; grid-row:1; }
  .blog-page .blog-card:nth-child(3) { grid-column:2; grid-row:2; }
  .blog-page .blog-card:nth-child(4) { grid-column:1; grid-row:3; }
  .blog-page .blog-card:nth-child(5) { grid-column:2; grid-row:3; }
  .blog-page .blog-card:nth-child(6) { grid-column:1; grid-row:4; }
  .blog-page .blog-card:nth-child(7) { grid-column:2; grid-row:4; }
  .blog-page .blog-card:nth-child(8) { grid-column:1; grid-row:5; }
  .blog-page .blog-card:nth-child(9) { grid-column:1; grid-row:6; }
  .blog-page .blog-card:nth-child(10) { grid-column:2; grid-row:5 / 7; }
}

@media(max-width:800px){
 .inner-page { padding-top: 20px; }
 .inner-page h1 { font-size: 32px; }
 .inner-hero,.split-section,.service-intro,.service-format-grid,.conditions,.partner-hero,.partner-contact { grid-template-columns: 1fr; }
 .inner-hero > div:first-child { min-height: 470px; padding: 20px; }
 .inner-hero > .image-card { min-height: 350px; }
 .inner-cards--3,.inner-cards--2 { grid-template-columns: 1fr; gap: 10px; }
 .inner-cards article { padding: 20px; }
 .mini-cta { min-height: 314px; padding: 20px; }
 .split-section--reverse > .image-card { order: 2; }
 .split-section > .image-card { min-height: 350px; }
 .service-intro { gap: 20px; }
 .service-format-grid { margin-top: 20px; }
 .service-image { min-height: 350px; }
 .partner-hero .image-card { height: 350px; }
 .partner-types { grid-template-columns: 1fr; gap: 10px; }
 .partner-types article { min-height: 300px; }
 .partner-contact .image-card { height: 350px; }
 .blog-grid { grid-template-columns: 1fr; gap: 40px; }
 .blog-card,.blog-card--featured { grid-column:auto;display:block; }
 .blog-card img,.blog-card--featured img { width:100%;height:200px;margin-bottom:10px; }
 .blog-card h2 { font-size:20px; }
 .blog-page .blog-grid { gap: 40px; }
 .blog-page .blog-card,.blog-page .blog-card--featured { height: 363px; overflow: hidden; }
 .blog-page .blog-card:nth-child(n+8) { display: none; }
 .blog-page .navigation.pagination { margin-top: 40px; }
}

@media (max-width: 800px) {
  .hero { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Figma fidelity pass: exact component geometry for 1200px and 370px frames. */
@media (min-width: 801px) {
  .hero { height: 586px; }
  .hero-main,.hero-side { height: 586px; min-height: 0; }
  .section { margin-top: 90px; }
  .story-grid { height: 363px; }
  .formats { height: 300px; }
  .safety-grid { height: 272px; }
  .care-grid { height: 459px; }
  .app-card { height: 338px; }
  .cta-band { height: 327px; }
  .cta-band--primary { grid-template-columns: 570px 275px 275px; }
  .cta-band--bottom { grid-template-columns: 275px 275px 570px; }
  .reviews { height: 327px; }
  .faq-layout { min-height: 380px; }
  .footer { height: 381px; }
  .formats-section { height: 425px; }
  .safety-section { height: 397px; }
  .blog-section { height: 260px; }
  .about-page .approach-section { height: 405px; }
  .about-page .nanny-section + .preparation-section { margin-top: 70px; height: 365px; }
  .service-block--single .service-facts { grid-column: 1; grid-row: 1; }
  .service-block--single .service-photo { grid-column: 2; grid-row: 1; }
  .services-page .conditions-section { height: 594px; }
  .partner-hero + .section { height: 410px; }
  .partner-hero + .section + .section { height: 325px; }
}

.promo-card .round-link { background-image: none; }
.format-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(52,45,44,.20), rgba(52,45,44,.04)); pointer-events: none; }
.format-card > * { position: relative; z-index: 1; }
.format-card .round-link { background-image: url(assets/icons/arrow.svg); }
.format-card .round-link,
.format-card .round-link:hover { border: 2px solid var(--cream); background: transparent; }
.format-card .round-link::after { inset: 18px; background: var(--cream); }

.app-card { position: relative; display: grid; grid-template-columns: 638px 1fr; grid-template-rows: auto 1fr; padding: 40px 50px; overflow: hidden; }
.app-title { position: absolute; left: 50px; top: 40px; width: 567px; max-width: none; }
.app-copy { display: contents; }
.app-copy p { position: absolute; left: 50px; top: 170px; width: 638px; margin: 0; font-size: 24px; line-height: 1.1; }
.app-copy strong { position: absolute; left: 50px; top: 272px; display: block; margin: 0; font-size: 24px; font-weight: 400; }
.app-visual { position: absolute; inset: 0 0 0 auto; width: 457px; min-height: 338px; display: block; padding: 0; overflow: hidden; }
.app-visual picture { display: contents; }
.app-visual img { position: absolute; z-index: 2; top: 41px; left: 0; width: 364px; height: 306px; max-height: none; object-fit: fill; }
.app-dots { position: absolute; z-index: 1; top: 137px; right: 46px; width: 165px; height: 96px; background: radial-gradient(circle, #ffd158 0 9px, transparent 10px) 0 0/48px 38px; }

.footer { position: relative; padding: 0; }
.footer-top { display: contents; }
.footer-top > div:first-child { display: contents; }
.footer-logo { position: absolute; top: 50px; left: 60px; width: 339px; height: auto; }
.footer-tagline { position: absolute; top: 109px; left: 60px; width: 420px; margin: 0; }
.footer-contacts { position: absolute; top: 65px; right: 60px; display: grid; gap: 16px; justify-items: end; }
.footer-site-links { position: absolute; top: 225px; right: 60px; width: 309px; display: grid; grid-template-columns: repeat(3, max-content); gap: 8px 30px; font-size: 16px; }
.footer-bottom { display: contents; }
.footer-legal { position: absolute; left: 60px; top: 296px; width: 505px; font-size: 12px; }
.footer-legal p { margin: 0 0 10px; }
.footer-links { position: absolute; top: 225px; left: 60px; width: 650px; display: grid; grid-template-columns: max-content max-content; gap: 8px 30px; font-size: 16px; }

@media (max-width: 800px) {
  .review blockquote {
    margin: 30px 0 20px;}
  .review h3 {

    font-size: 20px;}
  .section { margin-top: 40px; }
  .site-logo { width: 133px; height: 14px; }
  .site-logo picture, .site-logo img { display: block; width: 133px; height: 14px; object-fit: contain; }
  .menu-toggle { width: 38px; height: 36px; display: grid; place-items: center; padding: 0; }
  .menu-toggle img { width: 19px; height: 14px; }
  .site-header.is-open .menu-toggle { position: relative; }
  .site-header.is-open .menu-toggle img { opacity: 0; }
  .site-header.is-open .menu-toggle::before,
  .site-header.is-open .menu-toggle::after { content: ""; position: absolute; left: 9px; top: 17px; width: 20px; height: 2px; border-radius: 2px; background: var(--rose); }
  .site-header.is-open .menu-toggle::before { transform: rotate(45deg); }
  .site-header.is-open .menu-toggle::after { transform: rotate(-45deg); }
  .site-header.is-open .site-nav { top: 66px; }
  .promo-card .round-link { background-image: none; }
  .format-card { min-height: 250px; color: var(--cream); }
  .format-card .badge { font-size: 12px; }
  .app-card { display: flex;  padding: 0; overflow: visible; background: transparent; flex-direction: column; }
  .app-title { order: 1; height: 70px; flex: 0 0 70px; }
  .app-visual { position: relative; inset: auto; order: 2; width: 350px; height: 170px; min-height: 170px; margin-top: 47px; border-radius: 30px; overflow: hidden; background: var(--surface); }
  .app-visual > img { top: -27px; left: 86px; width: 179px; height: auto; }
  .app-dots { top: 49px; right: 22px; width: 124px; height: 72px; background-size: 37px 29px; }
  .app-copy { order: 3; }
  .app-copy p { margin: 20px 0 0; font-size: 16px; line-height: 1.2; }
  .app-copy strong { display: inline; margin: 0; font-size: 16px; font-weight: 300; }
  .footer { height: 466px; min-height: 466px; margin-bottom: 20px; }
  .footer-logo { top: 30px; left: 20px; width: 218px; }
  .footer-tagline { top: 64px; left: 20px; width: 302px; font-size: 12px; }
  .footer-contacts { top: 102px; left: 20px; right: auto; gap: 8px; justify-items: start; font-size: 16px; }
  .footer-site-links { top: 164px; left: 20px; right: auto; width: 210px; grid-template-columns: max-content max-content; gap: 6px 54px; font-size: 16px; }
  .footer-links { top: 276px; left: 20px; width: 260px; grid-template-columns: 1fr; gap: 0; font-size: 12px; line-height: 28px; }
  .footer-legal { top: 390px; left: 20px; width: 266px; font-size: 10px; line-height: 12px; }
  .footer-legal p:last-child { margin-top: 12px; font-size: 8px; }
  .story-section { height: 793px; }
  .formats-section { height: 584px; overflow: hidden; }
  .formats-section .formats { height: 440px; margin-top: 20px; gap: 10px; }
  .formats-section .format-card { height: 215px; min-height: 215px; padding: 20px; }
  .formats-section .format-card .badge { left: 20px; bottom: 20px; }
  .formats-section .format-card .round-link { right: 20px; bottom: 20px; }

  .care-section { height: 1162px; overflow: hidden; }
  .reviews-section { height: 1104px; overflow: hidden; }
  .faq-section { height: 587px; overflow: hidden; }
  .blog-section {        /* height: 836px; */
        overflow: hidden;
        margin-bottom: 60px; }
  .blog-section + .section { height: 187px; overflow: hidden; }
  .cta-band:not(.cta-band--bottom) > .image-card { display: none; }
  .cta-band:not(.cta-band--bottom) { display: block; height: 314px; }
  .cta-band:not(.cta-band--bottom) .cta-copy { height: 314px; min-height: 314px; }
  .cta-band--bottom { display: grid; grid-template-columns: 1fr; gap: 40px; }
  .cta-band--bottom > .image-card:first-child { display: block; height: 350px; min-height: 350px; }
  .cta-band--bottom > .image-card:last-child { display: none; }
  .cta-band--bottom .cta-copy { height: 314px; min-height: 314px; }
  .faq-layout { display: flex; flex-direction: column; gap: 10px; }
  .faq-intro { display: contents; }
  .faq-intro .section-title { order: 1; margin-bottom: 20px; }
  .faq-list { order: 2; }
  .faq-intro p { order: 3; margin-top: 20px; }
  .faq-intro .button { order: 4; margin-top: 10px; }
}

/* Must remain last: these selectors override the pixel-fidelity compatibility layer above. */
body .promo-card .round-link,
body .promo-card .round-link:hover {
  background-image: none;
}
.round-link::after { content: ""; position: absolute; inset: 20px; background: var(--cream); -webkit-mask: url(assets/icons/arrow.svg) center/contain no-repeat; mask: url(assets/icons/arrow.svg) center/contain no-repeat; }
.promo-card .round-link::after { background: var(--rose); }
footer.footer.site-shell { margin-left: auto; margin-right: auto; }
@media (max-width: 800px) {
  body .faq-section { height: auto; min-height: 587px; overflow: visible; }
}

/* Exact CTA component from Figma. */
.cta-showcase { height: 327px; display: grid; grid-template-columns: 570px 275px 275px; gap: 20px; }
.cta-showcase > .image-card { height: 327px; }
.cta-showcase__card { display: flex; flex-direction: column; align-items: flex-start; padding: 16px; border-radius: 30px; background: var(--mint); color: var(--cream); }
.cta-showcase__card > p { margin: 12px 0 0; }
.cta-showcase__card h2 { margin: auto 0 26px; font-size: 24px; line-height: 1.1; }
.cta-showcase__card .button { width: 100%; }
.cta-avatars { display: flex; height: 53px; }
.cta-avatars i { width: 53px; height: 53px; margin-right: -15px; border: 2px solid var(--mint); border-radius: 50%; background: var(--surface) center/cover no-repeat; }
.cta-avatars i:nth-child(1) { background-image: url(assets/images/avatar-1.webp); }
.cta-avatars i:nth-child(2) { background-image: url(assets/images/avatar-2.webp); }
.cta-avatars i:nth-child(3) { background-image: url(assets/images/avatar-3.webp); }
.cta-avatars i:nth-child(4) { background-image: url(assets/images/avatar-4.webp); }
.services-mobile-photo { display: none; }

.service-mosaic { position: relative; }
.service-cta { z-index: 2; grid-column: 2; grid-row: 1; align-self: end; margin: 0 24px 24px; }
.service-block--regular .service-cta { grid-column: 1; }

/* The Figma arrow is an outlined 60px control with a cream down-right arrow. */
body .promo-card .round-link { border: 2px solid var(--cream); background: transparent; transform:rotate(280deg);}
body .promo-card .round-link::after { inset: 18px; background: var(--cream); }

/* Format cards: self-contained outlined quiz control. */
.format-card > a.round-link,
.format-card > a.round-link:hover {
  position: absolute !important;
  top: auto !important;
  right: 24px !important;
  bottom: 24px !important;
  display: grid;
  place-items: center;
  z-index: 3;
  opacity: 1;
  visibility: visible;
  border: 0;
  background: transparent !important;
  box-shadow: inset 0 0 0 2px var(--cream);
  color: var(--cream);
      transform: rotate(280deg);
}
.format-card > a.round-link::after { display: none; }
.format-card > a.round-link svg { display: block; width: 26px; height: 26px; }
.format-card > a.round-link path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 800px) {
  .format-card > a.round-link,
  .format-card > a.round-link:hover {
    right: 20px !important;
    bottom: 20px !important;
  }
}

@keyframes hero-copy-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
body.motion-ready .hero-main > *, body.motion-ready .hero-side > * { opacity: 0; animation: hero-copy-in .7s var(--ease) forwards; }
body.motion-ready .hero-main > *:nth-child(2) { animation-delay: .08s; }
body.motion-ready .hero-main > *:nth-child(3) { animation-delay: .16s; }
body.motion-ready .hero-main > *:nth-child(4) { animation-delay: .24s; }
body.motion-ready .hero-side > *:nth-child(1) { animation-delay: .12s; }
body.motion-ready .hero-side > *:nth-child(2) { animation-delay: .22s; }

@media (max-width: 800px) {
  .site-header { position: relative; z-index: 100; }
  .site-header .header-inner { position: relative; z-index: 102; }
  .site-header .site-nav {
    position: absolute;
    z-index: 110;
    top: 46px;
    left: 0;
    right: 0;
    display: block;
    padding: 54px 24px 24px;
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 16px 40px rgba(72,72,72,.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px) scale(.98);
    transform-origin: top center;
    transition: opacity .28s var(--ease), transform .32s var(--ease), visibility 0s linear .32s;
  }
  .site-header .site-nav ul { flex-direction: column; gap: 20px; }
  .site-header.is-open .site-nav {
    z-index: 110;
    top: 46px;
    left: 0;
    right: 0;
    display: block;
    padding: 54px 24px 24px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition-delay: 0s;
  }
  .site-header .menu-toggle,
  .site-header.is-open .menu-toggle { position: relative; z-index: 130; }
  .hero { width: 350px; grid-template-columns: minmax(0, 1fr); margin-top: 20px; }
  .hero-main, .hero-side, .media-card, .promo-card { min-width: 0; width: 350px; }
  body .faq-section { height: 587px; min-height: 587px; overflow: hidden; }
  .format-card--image { background-image: linear-gradient(0deg, rgba(72,72,72,.28), rgba(72,72,72,.05)), var(--format-image-mobile); }
  .app-title { position: static; width: auto; max-width: 100%; }
  .app-copy { display: block; }
  .app-copy p { position: static; width: auto; }
  .app-copy strong { position: static; }
  .app-visual picture { display: contents; }
  .app-visual img { top: -27px; left: 86px; width: 179px; height: 197px; object-fit: fill; }
  .reviews .review--image { min-height: 350px; padding: 0; background: transparent; }
  .review--image picture { display: block; width: 100%; height: 100%; }
  .review--image picture img { display: block; width: 100%; height: 100%; object-fit: fill; }
  .reviews .review:nth-child(1) { order: 1;  min-height: 204px; }
  .reviews .review:nth-child(3) { order: 2; height: 242px; min-height: 242px; }
  .reviews .review:nth-child(2) { order: 3; height: 350px; min-height: 350px; }
  .reviews .review:nth-child(4) { order: 4; height: 223px; min-height: 223px; }
  .about-page, .services-page { display: flex; flex-direction: column; padding-top: 20px; }
  .about-page .page-hero, .services-page .page-hero { order: 1; display: flex; flex-direction: column; width: 350px; }
  .about-page .page-hero__copy, .services-page .page-hero__copy { order: 1; min-height: 0; padding: 20px; border-radius: 30px; background: var(--surface); }
  .about-page .page-hero__copy { height: 516px; }
  .services-page .page-hero__copy { height: 459px; }
  .about-page .page-hero__copy h1, .services-page .page-hero__copy h1 { margin: 0; }
  .about-page .page-hero__copy h2, .services-page .page-hero__copy h2 { margin-top: 10px; }
  .about-page .page-hero__copy p, .services-page .page-hero__copy p { margin-top: 20px; }
  .about-page .page-hero__image { order: 2; height: 350px; margin-top: 40px; }
  .services-page .page-hero__image { display: none; }

  .about-page .approach-section { order: 2; }
  .about-page .about-secondary-cta { order: 3; }
  .about-page .nanny-section { order: 4; }
  .about-page .preparation-section { order: 5; }
  .about-page .cta-primary { order: 6; }
  .about-page .faq-layout { order: 7; }

  .cta-showcase { width: 350px; height: 314px; display: block; }
  .cta-showcase__wide, .cta-showcase__side { display: none; }
  .cta-showcase__card { height: 314px; padding: 20px; }
  .cta-showcase__card > p { margin-top: 12px; }
  .cta-showcase__card h2 { margin: auto 0 26px; }

  .service-block { display: flex; flex-direction: column; width: 350px; }
  .service-block--single { order: 2; }
  .service-block--regular { order: 3; }
  .service-block .service-mosaic { display: contents; }
  .service-block .service-photo { order: 1; width: 350px; height: 350px; }
  .service-block .section-title { order: 2; margin: 20px 0 10px; }
  .service-block .service-facts { order: 3; display: grid; grid-template-columns: 1fr; gap: 10px; }
  .service-block .service-facts article { min-height: 187px; }
  .service-block .service-cta { order: 4; width: 350px; margin: 20px 0 0; }
  .services-mobile-photo { order: 4; display: block; width: 350px; height: 350px; margin-top: 40px; }
  .services-page .conditions-section { order: 5; }
  .services-page .cta-primary, .services-page .services-secondary-cta { order: 6; }
  .services-page .faq-layout { order: 7; }

  .about-page .approach-section .inner-cards article { min-height: 256px; }
  .about-page .approach-section { height: 932px; }
  .about-page .nanny-section { display: flex; flex-direction: column; }
  .about-page .nanny-section__copy { display: contents; }
  .about-page .nanny-section .section-title { order: 1; }
  .about-page .nanny-section .section-lead { order: 2; }
  .about-page .nanny-section__copy > p:not(.section-lead) { order: 3; }
  .about-page .nanny-section .image-card { order: 4; margin-top: 20px; }
  .about-page .nanny-section .inner-cards { order: 5; }
  .about-page .preparation-section { display: flex; flex-direction: column; }
  .about-page .preparation-section > div:last-child { display: contents; }
  .about-page .preparation-section .section-title { order: 1; }
  .about-page .preparation-section .section-lead { order: 2; }
  .about-page .preparation-section > .image-card { order: 3; margin-top: 20px; }
  .about-page .preparation-section .feature-pair { order: 4; }
}

@media (prefers-reduced-motion: reduce) {
  body.motion-ready .hero-main > *, body.motion-ready .hero-side > * { opacity: 1; animation: none; }
}

/* Fluid bridge between the supplied 370px and 1200px artboards. */
@media (min-width: 801px) and (max-width: 1199px) {
  .cta-showcase, .cta-band--primary { grid-template-columns: minmax(0,2.08fr) minmax(0,1fr) minmax(0,1fr); }
  .cta-band--bottom { grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,2.08fr); }
  .app-card { grid-template-columns: minmax(0,1.4fr) minmax(280px,1fr); }
  .app-title, .app-copy { max-width: calc(100% - 20px); }
  .nanny-section, .page-hero, .partner-hero, .partner-contact { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .preparation-section { grid-template-columns: minmax(280px,.49fr) minmax(0,1fr); }
  .service-mosaic { grid-template-columns: minmax(0,2.05fr) minmax(280px,1fr); }
  .service-block--regular .service-mosaic { grid-template-columns: minmax(280px,1fr) minmax(0,2.05fr); }
  .blog-page .blog-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .blog-page .blog-card { width: 100%; }
}

@media (max-width: 800px) {
  .about-page .page-hero, .services-page .page-hero { gap: 0; }
  .about-page .approach-section { margin-top: 20px; }
  .about-page .approach-section .inner-cards { margin-top: 20px; gap: 10px; }
  .about-page .about-secondary-cta { display: block; height: 314px; margin-top: 40px; }
  .about-page .about-secondary-cta > .image-card { display: none; }
  .about-page .about-secondary-cta .cta-copy { display: flex; height: 314px; min-height: 314px; }
  .about-page .nanny-section, .about-page .preparation-section, .about-page .cta-primary, .about-page .faq-layout { margin-top: 40px; }

  .services-page .service-block--single { margin-top: 20px; }
  .services-page .service-block--regular { margin-top: 40px; }
  .services-page .service-block--regular { padding-bottom: 8px; }
  .services-page .service-block .section-title { font-size: 32px; line-height: 1.1; }
  .services-page .service-facts article { height: 187px; min-height: 187px; }
  .services-page .service-facts article:nth-child(3) { height: 206px; min-height: 206px; }
  .services-page .conditions-section { margin-top: 20px; }
  .services-page .conditions-columns { gap: 20px; margin-top: 20px; }
  .services-page .conditions-columns h3 { margin: 0 0 10px; font-size: 20px; line-height: 1.1; }
  .services-page .conditions-columns p { min-height: 0; margin-bottom: 10px; padding: 10px 10px 10px 46px; background-position: 10px 10px; background-size: 24px; }
  .services-page .conditions-columns > div:first-child p:nth-of-type(1),
  .services-page .conditions-columns > div:first-child p:nth-of-type(3),
  .services-page .conditions-columns > div:first-child p:nth-of-type(4),
  .services-page .conditions-columns > div:last-child p { height: 74px; }
  .services-page .conditions-columns > div:first-child p:nth-of-type(2) { height: 56px; }
  .services-page .conditions-columns > div:first-child p:nth-of-type(5) { height: 44px; }
  .services-page .cta-primary, .services-page .faq-layout { margin-top: 40px; }
  .services-page .services-secondary-cta { display: block; height: 314px; margin-top: 40px; }
  .services-page .services-secondary-cta > .image-card { display: none; }
  .services-page .services-secondary-cta .cta-copy { display: flex; height: 314px; min-height: 314px; }

  .partner-hero.page-hero { display: block; height: 478px; }
  .partner-hero .page-hero__image { display: none; }
  .partner-hero .page-hero__copy { height: 478px; padding: 20px; border-radius: 30px; background: var(--surface); }
  .partner-hero .page-hero__copy h1 { margin: 0; font-size: 32px; }
  .partner-hero .page-hero__copy h2 { margin: 10px 0 0; font-size: 20px; }
  .partner-hero .page-hero__copy p { margin-top: 20px; }
  .partner-types { margin-top: 20px; }
  .partner-types article { min-height: 250px; }
  .partner-contact { display: flex; flex-direction: column; }
  .partner-contact > .image-card { order: 1; height: 350px; }
  .partner-contact > div:first-child { display: contents; }
  .partner-contact .section-title { order: 2; margin-top: 20px; }
  .partner-contact p { order: 3; margin: 10px 0 20px; font-size: 20px; }
  .partner-contact .button { order: 4; width: 100%; }
  .faq-layout { gap: 0; }
  .faq-layout { min-height: 587px; }
  .faq-question { height: 56px; min-height: 56px; padding-top: 10px; padding-bottom: 10px; line-height: 18px;         font-size: 14px;}

  /* About mobile frame 370px: exact artboard geometry. */
  .about-page .nanny-section { height: 901px; }
  .about-page .nanny-section .section-title { height: 35px; }
  .about-page .nanny-section .section-lead { height: 44px; margin: 10px 0 0; }
  .about-page .nanny-section__copy > p:not(.section-lead) { height: 57px; margin: 10px 0 0; }
  .about-page .nanny-section .image-card { width: 350px; height: 350px; min-height: 350px; }
  .about-page .nanny-section .inner-cards { margin-top: 11px; gap: 10px; }
  .about-page .nanny-section .inner-cards article { height: 177px; min-height: 177px; padding: 20px; }
  .about-page .preparation-section { height: 909px; }
  .about-page .preparation-section .section-title { height: 70px; }
  .about-page .preparation-section .section-lead { height: 88px; margin: 10px 0 0; }
  .about-page .preparation-section > .image-card { width: 350px; height: 350px; min-height: 350px; }
  .about-page .preparation-section .feature-pair { margin-top: 11px; gap: 10px; }
  .about-page .preparation-section .feature { min-height: 0; padding: 20px; }
  .about-page .preparation-section .feature:nth-child(1) { height: 166px; }
  .about-page .preparation-section .feature:nth-child(2) { height: 184px; }
  .services-page .conditions-section { height: 862px; }

  .partner-hero + .section { margin-top: 40px; }
  .partner-hero + .section { height: 1120px; }
  .partner-hero + .section + .section { height: 745px; }
  .partner-contact { height: 585px; min-height: 585px; }
}

/* Blog archive, matched to the 1200px and 370px Figma frames. */
.blog-page .blog-card__image { grid-row: 1 / 5; display: block; width: 177px; height: 177px; overflow: hidden; border-radius: 20px; }
.blog-page .blog-card__image img { width: 100%; height: 100%; border-radius: 0; object-fit: cover; transition: transform .45s var(--ease); }
.blog-page .blog-card:hover .blog-card__image img { transform: scale(1.025); }
.blog-page .blog-card h2 a { transition: color .2s ease; }
.blog-page .blog-card h2 a:hover { color: var(--rose); }
.blog-page .blog-card--featured .blog-card__image { width: 570px; height: 265px; margin-bottom: 13px; }
.blog-page .blog-card--featured time { display: block; margin-left: 2px; }
.blog-page .blog-card--featured h2 { margin: 12px 0 0; }
.blog-page .blog-card--featured p { margin-top: 8px; }
.blog-page .navigation.pagination { width: 332px; margin-right: auto; margin-left: auto; }
.blog-page .nav-links { width: 332px; gap: 0; }
.blog-page .page-numbers { width: 38px; height: 48px; padding: 0; border-radius: 0; background: transparent; color: #9e9e9e; font-size: 24px; font-weight: 500; line-height: 48px; text-align: center; }
.blog-page .page-numbers.current { width: 48px; border-radius: 50%; background: #c378cd; color: var(--cream); }
.blog-page .page-numbers.prev,.blog-page .page-numbers.next { width: 18px; font-size: 32px; font-weight: 300; }
.blog-page .page-numbers.prev { margin-right: 10px; }
.blog-page .page-numbers.next { margin-left: 10px; }

@media (max-width: 800px) {
  .blog-page .blog-card__image,.blog-page .blog-card--featured .blog-card__image { width: 350px; height: 200px; margin: 0 0 10px; }
  .blog-page .blog-card__image img,.blog-page .blog-card--featured .blog-card__image img { height: 200px; margin: 0; }
  .blog-page .blog-card--featured time { margin-left: 0; }
  .blog-page .blog-card h2,.blog-page .blog-card--featured h2 { margin: 10px 0 0; line-height: 1.1; }
  .blog-page .blog-card p,.blog-page .blog-card--featured p { margin-top: 6px; line-height: 1.125; }
  .blog-page .navigation.pagination,.blog-page .nav-links { width: 252px; }
  .blog-page .page-numbers { width: 28px; font-size: 16px; }
  .blog-page .page-numbers.current { width: 48px; }
  .blog-page .page-numbers.prev,.blog-page .page-numbers.next { width: 18px; margin: 0; font-size: 28px; }
}

/* Blog content must grow naturally with real WordPress copy. */
.blog-page .blog-grid { grid-template-rows: none; align-items: start; }
.blog-page .blog-card,
.blog-page .blog-card--featured { height: auto; min-height: 0; overflow: visible; }
@media (max-width: 800px) {
  .blog-page .blog-card:nth-child(n) { display: block; }
}
