:root {
  color-scheme: light;
  --paper: #f7f1e3;
  --paper-deep: #e8decf;
  --paper-bright: #fffdf7;
  --ink: #2c1c17;
  --ink-soft: #6a5146;
  --emerald: #4a2f27;
  --emerald-deep: #2c1c17;
  --emerald-soft: #ddcfc3;
  --emerald-mist: #efe3d8;
  --gold: #7a4c37;
  --gold-soft: #c4a48d;
  --line: rgba(74, 47, 39, 0.2);
  --line-dark: rgba(255, 253, 247, 0.27);
  --error: #9c2f26;
  --success: #245e43;
  --radius: 3px;
  --header-height: 76px;
  --container: 1380px;
  --page-pad: clamp(24px, 4vw, 64px);
  --section-space: clamp(88px, 9vw, 144px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Literata", Georgia, serif;
  --font-ui: "Onest", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  overflow-x: clip;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

::selection {
  background: var(--gold-soft);
  color: var(--emerald-deep);
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--paper-deep);
}

::-webkit-scrollbar-thumb {
  border: 3px solid var(--paper-deep);
  border-radius: 8px;
  background: var(--emerald);
}

a,
button,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
}

img {
  display: block;
  max-width: 100%;
}

figure,
h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.032em;
}

h1 {
  max-width: 12.5ch;
  font-size: clamp(3.3rem, 4.65vw, 5.25rem);
  line-height: 1.02;
}

h2 {
  max-width: 17ch;
  font-size: clamp(2.7rem, 4.15vw, 4.65rem);
  line-height: 1.04;
}

h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.024em;
}

p {
  max-width: 70ch;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 12px 18px;
  transform: translateY(-160%);
  border-radius: var(--radius);
  background: var(--emerald);
  color: var(--paper-bright);
  text-decoration: none;
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - (var(--page-pad) * 2)), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-space);
}

.section-heading {
  display: grid;
  gap: 28px;
  margin-bottom: clamp(52px, 6vw, 88px);
}

.section-heading > p {
  max-width: 50ch;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.18vw, 1.2rem);
  line-height: 1.65;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 14px 27px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 220ms var(--ease-out),
    background-color 220ms var(--ease-out),
    border-color 220ms var(--ease-out),
    transform 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out);
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(1px);
}

.button:disabled {
  opacity: 0.56;
  transform: none;
}

.button-primary {
  background: var(--emerald);
  color: var(--paper-bright);
  box-shadow: 0 12px 28px rgba(44, 28, 23, 0.14);
}

.button-primary:hover {
  background: var(--emerald-deep);
  box-shadow: 0 16px 34px rgba(44, 28, 23, 0.19);
}

.button-paper {
  border-color: var(--paper-bright);
  background: var(--paper-bright);
  color: var(--emerald-deep);
}

.button-paper:hover {
  background: var(--paper-deep);
}

.button-compact {
  min-height: 46px;
  padding-inline: 20px;
  font-size: 0.9rem;
}

.text-action {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--emerald);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.text-action::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  transform: scaleX(0.64);
  transform-origin: left;
  transition: transform 260ms var(--ease-out);
}

.text-action:hover::after {
  transform: scaleX(1);
}

.text-action-light {
  color: var(--paper-bright);
}

.status-note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.54);
}

.status-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 6px 9px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  color: var(--emerald-deep);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1;
}

.status-label-light {
  border-color: var(--gold-soft);
  color: var(--paper-bright);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 241, 227, 0.98);
}

.header-inner {
  display: flex;
  width: min(calc(100% - 48px), 1496px);
  height: 100%;
  align-items: center;
  gap: clamp(20px, 2.1vw, 40px);
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: block;
  width: 78px;
  height: 54px;
  overflow: visible;
  background: transparent;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
}

.brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.17rem;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.brand-descriptor {
  color: var(--ink-soft);
  font-size: 0.67rem;
  line-height: 1.25;
}

.desktop-nav {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 1.65vw, 31px);
}

.desktop-nav a {
  position: relative;
  flex: 0 0 auto;
  font-size: 0.87rem;
  text-decoration: none;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease-out);
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 20px;
}

.header-phone {
  color: var(--emerald-deep);
  font-size: 1.02rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.015em;
  text-decoration: none;
  white-space: nowrap;
}

.header-phone:hover,
.header-phone:focus-visible {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  margin: 5px auto;
  background: var(--emerald-deep);
  transition: transform 200ms var(--ease-out);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.mobile-nav {
  position: absolute;
  top: var(--header-height);
  right: 0;
  left: 0;
  max-height: calc(100dvh - var(--header-height));
  padding: 24px var(--page-pad) 32px;
  overflow-y: auto;
  border-bottom: 1px solid var(--line);
  background: var(--paper-bright);
}

.mobile-nav:not([hidden]) {
  display: grid;
  gap: 2px;
}

.mobile-nav > a:not(.button) {
  min-height: 46px;
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.mobile-phone {
  padding-block: 18px 12px;
  font-variant-numeric: tabular-nums;
}

/* Hero */
.hero {
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  width: min(calc(100% - (var(--page-pad) * 2)), var(--container));
  height: clamp(560px, calc(100svh - 226px), 742px);
  min-height: 560px;
  grid-template-columns: minmax(0, 52fr) minmax(0, 48fr);
  margin-inline: auto;
}

.hero-copy {
  display: flex;
  min-height: 0;
  align-items: center;
  padding: clamp(50px, 5vw, 86px) clamp(36px, 3.5vw, 64px) clamp(50px, 5vw, 86px) 0;
}

.hero-copy > div,
.hero-copy {
  min-width: 0;
}

.hero-copy {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.hero-copy > p {
  max-width: 43ch;
  margin-top: 30px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.3vw, 1.24rem);
  line-height: 1.55;
}

.hero h1 {
  width: 100%;
  max-width: 100%;
  font-size: clamp(3rem, 3.4vw, 3.85rem);
}

.hero h1 span {
  display: block;
}

@media (min-width: 1281px) {
  .hero h1 span {
    white-space: nowrap;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px 46px;
  margin-top: 38px;
}

.hero-media {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--paper-deep);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right 44%;
}

.hero-media figcaption {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 7px 10px;
  color: var(--emerald-deep);
  background: rgba(255, 253, 248, 0.94);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-media img {
    animation: hero-image-settle 980ms var(--ease-out) 120ms both;
  }

  .hero-media::after {
    position: absolute;
    inset: 0;
    background: var(--gold);
    content: "";
    pointer-events: none;
    transform: scaleX(0);
    transform-origin: right;
    animation: hero-gold-registration 980ms var(--ease-out) 120ms both;
  }
}

@keyframes hero-image-settle {
  from {
    filter: saturate(0.82);
    clip-path: inset(0 4% 0 0);
  }
  to {
    filter: saturate(1);
    clip-path: inset(0);
  }
}

@keyframes hero-gold-registration {
  0% {
    transform: scaleX(0.012);
  }
  100% {
    transform: scaleX(0);
  }
}

/* Facts */
.facts {
  border-bottom: 1px solid var(--line);
  background: var(--paper-bright);
}

.facts-grid {
  display: grid;
  min-height: 168px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fact {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 30px clamp(20px, 2.7vw, 44px);
  text-align: center;
}

.fact + .fact::before {
  position: absolute;
  top: 25%;
  bottom: 25%;
  left: 0;
  width: 1px;
  background: var(--gold-soft);
  content: "";
}

.fact-line {
  display: block;
  width: 32px;
  height: 1px;
  margin: 0 auto 15px;
  background: var(--emerald);
}

.fact h2 {
  max-width: none;
  color: var(--emerald-deep);
  font-family: var(--font-ui);
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.fact p {
  margin: 8px auto 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.42;
}

.fact-value {
  margin: 0 auto 2px !important;
  color: var(--emerald) !important;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3vw, 3.5rem) !important;
  letter-spacing: -0.04em;
  line-height: 0.95 !important;
}

.fact-experience h2 {
  margin-top: 5px;
}

/* Services */
.services {
  background: var(--paper);
}

.services-heading,
.process-heading {
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.82fr);
  align-items: end;
  column-gap: clamp(52px, 7vw, 108px);
}

.section-heading-copy {
  display: grid;
  gap: 28px;
}

.section-heading-copy > p {
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.18vw, 1.2rem);
  line-height: 1.65;
}

.section-context {
  display: grid;
  gap: 16px;
  align-self: stretch;
  padding: 28px 30px;
  border-top: 1px solid var(--gold);
  background: var(--paper-bright);
}

.section-context-title {
  max-width: 18ch;
  color: var(--emerald-deep);
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2vw, 2.2rem);
  line-height: 1.12;
}

.section-context > p:not(.section-context-title) {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.section-context-topics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: auto;
  border-top: 1px solid var(--line);
}

.section-context-topics span {
  padding: 12px 8px 0;
  color: var(--emerald);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
}

.section-context-topics span + span {
  border-left: 1px solid var(--line);
}

.services-grid {
  display: grid;
  min-height: 960px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(5, minmax(176px, auto));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 3vw, 46px);
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service h3 {
  color: var(--emerald-deep);
  font-size: clamp(1.55rem, 2.1vw, 2.55rem);
  line-height: 1.07;
}

.service p {
  max-width: 28ch;
  margin-top: 13px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.service-nanny {
  grid-column: 1 / span 5;
  grid-row: 1 / span 3;
  padding: 0;
  background: var(--emerald-soft);
}

.service-photo {
  position: relative;
  height: 73%;
  min-height: 420px;
  overflow: hidden;
}

.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-photo figcaption,
.difference-media figcaption,
.applicants-media figcaption,
.team-figure figcaption,
.certificate-figure figcaption {
  padding-top: 12px;
  color: var(--ink-soft);
  font-size: 0.74rem;
  line-height: 1.35;
}

.service-photo figcaption {
  position: absolute;
  right: 18px;
  bottom: 14px;
  padding: 6px 9px;
  border-radius: 2px;
  background: rgba(251, 248, 240, 0.91);
  color: var(--ink);
}

.service-copy {
  padding: clamp(28px, 3vw, 46px);
}

.service-governess {
  grid-column: 6 / span 4;
  grid-row: 1;
  justify-content: center;
  background: var(--paper-bright);
}

.service-housekeeper {
  grid-column: 10 / span 3;
  grid-row: 1;
  background: var(--emerald);
}

.service-housekeeper h3,
.service-housekeeper p {
  color: var(--paper-bright);
}

.service-driver {
  grid-column: 6 / span 3;
  grid-row: 2;
  background: var(--paper-deep);
}

.service-gardener {
  grid-column: 9 / span 4;
  grid-row: 2;
  justify-content: center;
  padding-inline: 22px;
  background: var(--emerald-mist);
}

.service-gardener h3 {
  font-size: clamp(1.35rem, 1.7vw, 2rem);
}

.service-gardener p {
  font-size: 0.9rem;
}

.service-couple {
  grid-column: 6 / span 4;
  grid-row: 3;
  background: var(--paper-bright);
}

.service-carer {
  grid-column: 10 / span 3;
  grid-row: 3;
  background: var(--gold-soft);
}

.service-wardrobe {
  grid-column: 1 / span 5;
  grid-row: 4;
  background: var(--emerald);
}

.service-wardrobe h3,
.service-wardrobe p {
  color: var(--paper-bright);
}

.service-chef {
  grid-column: 6 / span 7;
  grid-row: 4;
  justify-content: center;
  background: var(--gold-soft);
}

.service-chef p {
  max-width: 48ch;
}

.service-manager {
  grid-column: 1 / span 6;
  grid-row: 5;
  background: var(--paper-deep);
}

.service-assistant {
  grid-column: 7 / span 6;
  grid-row: 5;
  background: var(--paper-bright);
}

.service-wardrobe h3,
.service-manager h3,
.service-assistant h3 {
  font-size: clamp(1.35rem, 1.85vw, 2.2rem);
}

.services .status-note {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-top: 28px;
  padding: 22px 24px;
}

.services .status-note p {
  max-width: 74ch;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Process */
.process {
  border-top: 1px solid var(--line);
  background: var(--paper-bright);
}

.process-heading {
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.82fr);
}

.process-route {
  display: grid;
  min-height: 176px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 28px 30px;
  border-top: 1px solid var(--gold);
  background: var(--paper-deep);
}

.process-route span {
  color: var(--emerald-deep);
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.3vw, 1.3rem);
  line-height: 1.25;
  text-align: center;
}

.process-route span[aria-hidden="true"] {
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 1.1rem;
}

.process-board {
  display: grid;
  min-height: 600px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(240px, auto));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.process-status {
  position: relative;
  display: flex;
  grid-column: 1 / span 4;
  grid-row: 1 / span 2;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(32px, 4vw, 60px);
  background: var(--emerald-deep);
  color: var(--paper-bright);
  isolation: isolate;
  overflow: hidden;
}

.process-status::before {
  position: absolute;
  right: -16%;
  bottom: -5%;
  z-index: -1;
  width: 92%;
  aspect-ratio: 1110 / 776;
  background: url("./shared/assets/logo-magpie-client.png") center / contain no-repeat;
  content: "";
  filter: brightness(0) invert(1);
  opacity: 0.07;
  pointer-events: none;
}

.process-status p {
  max-width: 18ch;
  color: rgba(251, 248, 240, 0.78);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.25vw, 2.5rem);
  line-height: 1.15;
}

.process-item {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(30px, 4vw, 58px);
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.process-item::before,
.process-item::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.process-item::before {
  z-index: -2;
  background: var(--process-visual) var(--process-position, center) / cover no-repeat;
  filter: grayscale(0.22) saturate(0.62);
  opacity: 0.18;
}

.process-item::after {
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.48), rgba(255, 253, 247, 0.92));
}

.process-item:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.process-item h3 {
  max-width: 13ch;
  color: var(--emerald-deep);
  font-size: clamp(1.55rem, 2vw, 2.3rem);
  line-height: 1.08;
}

.process-item p {
  max-width: 40ch;
  margin-top: 18px;
  color: var(--ink-soft);
}

.process-task {
  --process-visual: url("./shared/assets/hero-moscow-consultation-v2.webp");
  --process-position: center 42%;
  grid-column: 5 / span 3;
  grid-row: 1;
  background: var(--paper);
}

.process-candidates {
  --process-visual: url("./shared/assets/applicant-moscow-v2.webp");
  --process-position: center 26%;
  grid-column: 8 / span 5;
  grid-row: 1;
  background: var(--emerald-mist);
}

.process-meeting {
  --process-visual: url("./shared/assets/hero-conversation.webp");
  --process-position: center 42%;
  grid-column: 5 / span 5;
  grid-row: 2;
  background: var(--paper-bright);
}

.process-start {
  --process-visual: url("./shared/assets/service-nanny-moscow-v2.webp");
  --process-position: center 38%;
  grid-column: 10 / span 3;
  grid-row: 2;
  background: var(--paper-deep);
}

/* Checks */
.checks {
  padding-top: calc(var(--section-space) * 0.84);
  background: var(--emerald-mist);
}

.checks-heading h2 {
  max-width: 19ch;
}

.checks-panel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--emerald);
  border-bottom: 1px solid var(--emerald);
}

.checks-panel article {
  min-height: 330px;
  padding: clamp(42px, 5vw, 74px);
}

.checks-panel article + article {
  border-left: 1px solid var(--line);
}

.checks-panel h3 {
  max-width: 14ch;
  color: var(--emerald-deep);
  font-size: clamp(1.75rem, 2.5vw, 2.75rem);
  line-height: 1.08;
}

.checks-panel p {
  max-width: 48ch;
  margin-top: 28px;
  color: var(--ink-soft);
}

.checks-status {
  position: absolute;
  top: -15px;
  right: 32px;
  padding-inline: 9px;
  background: var(--emerald-mist);
}

/* Difference */
.difference {
  background: var(--paper);
  color: var(--paper-bright);
}

.difference-grid {
  display: grid;
  width: min(calc(100% - (var(--page-pad) * 2)), var(--container));
  min-height: 680px;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  margin-inline: auto;
  background: var(--emerald-deep);
}

.difference-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(64px, 7vw, 112px) clamp(42px, 6vw, 96px);
}

.difference-copy h2 {
  max-width: 12.5ch;
  color: var(--paper-bright);
  font-size: clamp(2.9rem, 4.4vw, 4.9rem);
}

.difference-copy p {
  max-width: 42ch;
  margin-top: 32px;
  color: rgba(251, 248, 240, 0.78);
  font-size: 1.05rem;
}

.difference-copy .text-action {
  margin-top: 34px;
}

.difference-media {
  position: relative;
  min-height: 560px;
  overflow: hidden;
}

.difference-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.difference-media figcaption {
  position: absolute;
  right: 20px;
  bottom: 18px;
  padding: 6px 9px;
  border-radius: 2px;
  background: rgba(44, 28, 23, 0.88);
  color: var(--paper-bright);
}

/* Training */
.training {
  background: var(--paper);
}

.training-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  column-gap: clamp(56px, 8vw, 128px);
  row-gap: 54px;
}

.training-heading {
  align-content: start;
  margin-bottom: 0;
}

.training-heading h2 {
  max-width: 11ch;
}

.training-heading .button {
  justify-self: start;
}

.program-list {
  border-top: 1px solid var(--emerald);
}

.program {
  display: flex;
  min-height: 150px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 34px 0 30px;
  border-bottom: 1px solid var(--line);
}

.program h3 {
  max-width: 16ch;
  color: var(--emerald-deep);
  font-size: clamp(2rem, 3.1vw, 3.65rem);
  line-height: 1.04;
}

.program span {
  max-width: 12ch;
  color: var(--ink-soft);
  font-size: 0.82rem;
  text-align: right;
}

.program-main {
  min-height: 220px;
  padding: 48px 38px 38px;
  background: var(--emerald-soft);
}

.training-note {
  display: grid;
  grid-column: 2;
  gap: 14px;
  padding: 24px;
}

.training-note p {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* Applicants */
.applicants {
  padding-block: var(--section-space);
  overflow: hidden;
  background: var(--emerald);
  color: var(--paper-bright);
}

.applicants-grid {
  display: grid;
  align-items: stretch;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.68fr);
  gap: clamp(48px, 7vw, 112px);
}

.applicants-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 26px;
}

.applicants-copy h2 {
  color: var(--paper-bright);
}

.applicants-copy > p {
  max-width: 53ch;
  margin-top: 28px;
  color: rgba(251, 248, 240, 0.82);
  font-size: 1.08rem;
}

.channel-list {
  display: grid;
  margin-top: 42px;
  border-top: 1px solid var(--line-dark);
}

.channel-button {
  display: grid;
  min-height: 78px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px 2px;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  background: transparent;
  color: var(--paper-bright);
  text-align: left;
  text-decoration: none;
  transition: color 200ms var(--ease-out), transform 200ms var(--ease-out);
}

.channel-button:hover {
  color: var(--gold-soft);
  transform: translateX(10px);
}

.channel-button > span {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.channel-button small {
  color: rgba(251, 248, 240, 0.65);
  font-size: 0.76rem;
  text-align: right;
}

.applicant-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 38px;
  margin-top: 38px;
}

.applicants-media {
  position: relative;
  min-height: 620px;
  border: 1px solid var(--line-dark);
  overflow: hidden;
}

.applicants-media::before {
  position: absolute;
  top: 24px;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 1;
  border: 1px solid rgba(251, 248, 240, 0.33);
  content: "";
  pointer-events: none;
}

.applicants-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.applicants-media figcaption {
  position: absolute;
  right: 26px;
  bottom: 24px;
  z-index: 2;
  padding: 6px 9px;
  background: rgba(44, 28, 23, 0.9);
  color: var(--paper-bright);
}

/* About */
.about {
  background: var(--paper-bright);
}

.about-heading {
  max-width: 850px;
}

.about-heading h2 {
  max-width: 15ch;
}

.about-mosaic {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.65fr);
  grid-template-rows: minmax(300px, 0.7fr) minmax(310px, 0.78fr);
  gap: 24px;
}

.team-figure {
  position: relative;
  grid-column: 1;
  grid-row: 1 / span 2;
  min-height: 720px;
  overflow: hidden;
}

.team-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-figure figcaption {
  position: absolute;
  right: 20px;
  bottom: 18px;
  padding: 6px 9px;
  background: rgba(251, 248, 240, 0.92);
}

.team-figure figcaption,
.team-partner figcaption {
  display: grid;
  gap: 3px;
  color: var(--ink);
}

.team-figure figcaption strong,
.team-partner figcaption strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
}

.team-figure figcaption span,
.team-partner figcaption span {
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.team-figure figcaption small,
.team-partner figcaption small {
  color: var(--ink-soft);
  font-size: 0.65rem;
}

.team-copy {
  display: flex;
  grid-column: 2;
  grid-row: 1;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 17px;
  padding: clamp(28px, 3vw, 46px);
}

.team-copy h3 {
  color: var(--emerald-deep);
  font-size: clamp(1.75rem, 2.3vw, 2.6rem);
}

.team-copy p {
  color: var(--ink-soft);
  font-size: 0.91rem;
}

.team-partner {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  min-height: 300px;
  margin: 0;
  overflow: hidden;
  background: var(--paper-deep);
}

.team-partner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.team-partner figcaption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 13px 15px;
  background: rgba(255, 253, 247, 0.94);
}

.certificate-figure {
  display: grid;
  grid-column: 2;
  grid-row: 2;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.certificate-figure img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  object-position: center;
}

.certificate-figure figcaption {
  max-width: none;
  padding-bottom: 4px;
  color: var(--ink-soft);
  text-align: center;
}

/* Agency presentation */
.agency-presentation {
  padding-block: clamp(64px, 7vw, 102px);
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.agency-presentation-grid {
  display: grid;
  min-height: 360px;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  border: 1px solid var(--line);
  background: var(--paper-bright);
}

.agency-presentation-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(42px, 5vw, 76px);
}

.agency-presentation-copy h2 {
  max-width: 16ch;
  font-size: clamp(2.5rem, 3.8vw, 4.35rem);
}

.agency-presentation-copy p {
  max-width: 57ch;
  margin-top: 24px;
  color: var(--ink-soft);
}

.agency-presentation-copy .button {
  margin-top: 32px;
}

.agency-presentation-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(36px, 4vw, 58px);
  overflow: hidden;
  background: var(--paper-deep);
  isolation: isolate;
}

.agency-presentation-visual::before {
  position: absolute;
  top: -8%;
  right: -12%;
  z-index: -1;
  width: 104%;
  aspect-ratio: 1110 / 776;
  background: url("./shared/assets/logo-magpie-client.png") center / contain no-repeat;
  content: "";
  opacity: 0.13;
}

.agency-presentation-visual > span {
  color: var(--emerald);
  font-family: var(--font-display);
  font-size: clamp(4.8rem, 8vw, 8rem);
  letter-spacing: -0.04em;
  line-height: 0.82;
}

.agency-presentation-visual p {
  max-width: 19ch;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* Referral */
.referral {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--emerald-deep);
  isolation: isolate;
}

.referral::before,
.referral::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.referral::before {
  z-index: -2;
  background: url("./shared/assets/referral-recommendation-background.webp") center / cover no-repeat;
}

.referral::after {
  z-index: -1;
  background: linear-gradient(90deg, rgba(44, 28, 23, 0.92), rgba(44, 28, 23, 0.73) 52%, rgba(44, 28, 23, 0.9));
}

.referral-grid {
  display: grid;
  min-height: 310px;
  grid-template-columns: minmax(170px, 0.55fr) minmax(230px, 0.65fr) minmax(360px, 1.2fr);
  align-items: center;
  gap: clamp(32px, 6vw, 92px);
  padding-block: clamp(58px, 7vw, 96px);
}

.referral-label {
  color: rgba(255, 253, 247, 0.74);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.referral-value {
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 5vw, 5.8rem);
  letter-spacing: -0.05em;
  line-height: 0.9;
  white-space: nowrap;
}

.referral-copy {
  border-left: 1px solid var(--line-dark);
  padding-left: clamp(28px, 4vw, 64px);
}

.referral-copy h2 {
  color: var(--paper-bright);
}

.referral-copy h2 {
  max-width: 16ch;
  font-size: clamp(2rem, 3vw, 3.3rem);
}

.referral-copy p {
  margin-top: 20px;
  color: rgba(255, 253, 247, 0.78);
}

.referral-copy .text-action {
  color: var(--paper-bright);
}

.referral-copy .text-action::after {
  background: var(--gold-soft);
}

.referral-copy small {
  display: block;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

/* FAQ */
.faq {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.62fr) minmax(0, 1.38fr);
  column-gap: clamp(56px, 8vw, 128px);
  row-gap: 40px;
}

.faq-heading {
  align-self: start;
  margin-bottom: 0;
}

.faq-heading h2 {
  max-width: 8ch;
}

.faq-list {
  border-top: 1px solid var(--emerald);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item h3 {
  font-family: var(--font-ui);
}

.faq-trigger {
  display: grid;
  width: 100%;
  min-height: 88px;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center;
  gap: 24px;
  padding: 24px 2px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: clamp(1.04rem, 1.4vw, 1.24rem);
  font-weight: 500;
  text-align: left;
}

.faq-trigger:hover {
  color: var(--emerald);
}

.faq-sign {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
}

.faq-sign::before,
.faq-sign::after {
  position: absolute;
  top: 11px;
  left: 3px;
  width: 18px;
  height: 1px;
  background: currentColor;
  content: "";
  transition: transform 220ms var(--ease-out);
}

.faq-sign::after {
  transform: rotate(90deg);
}

.faq-trigger[aria-expanded="true"] .faq-sign::after {
  transform: rotate(0deg);
}

.faq-panel {
  padding: 0 50px 30px 2px;
}

.faq-panel p {
  max-width: 56ch;
  color: var(--ink-soft);
}

.faq-pending {
  display: grid;
  grid-column: 2;
  gap: 15px;
  padding: 26px;
}

.faq-pending h3 {
  color: var(--emerald-deep);
  font-size: 1.35rem;
}

.faq-pending p {
  color: var(--ink-soft);
  font-size: 0.91rem;
}

/* Request form */
.request {
  padding-block: var(--section-space);
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
}

.request-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(60px, 9vw, 142px);
}

.request-copy h2 {
  max-width: 12ch;
}

.request-copy > p {
  max-width: 42ch;
  margin-top: 28px;
  color: var(--ink-soft);
}

.request-phone {
  display: block;
  margin-top: 46px;
  color: var(--emerald-deep);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.2vw, 2.35rem);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.request-copy small {
  display: block;
  margin-top: 7px;
  color: var(--ink-soft);
}

.request-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
  padding: clamp(30px, 4.2vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-bright);
}

.request-form[aria-busy="true"] {
  cursor: wait;
}

.field {
  display: grid;
  align-content: start;
  gap: 9px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label,
.consent label {
  color: var(--ink);
  font-size: 0.87rem;
  font-weight: 500;
}

.field input,
.field select {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid rgba(44, 28, 23, 0.34);
  border-radius: var(--radius);
  background: var(--paper-bright);
  color: var(--ink);
  caret-color: var(--emerald);
  transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.field input::placeholder {
  color: #6a5146;
  opacity: 1;
}

.field input:hover,
.field select:hover {
  border-color: var(--emerald);
}

.field input:focus,
.field select:focus {
  border-color: var(--emerald);
  outline: 2px solid rgba(122, 76, 55, 0.76);
  outline-offset: 2px;
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 1px var(--error);
}

.field small,
.legal-note {
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.field-error {
  min-height: 1.2em;
  color: var(--error) !important;
}

.consent {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.consent input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--emerald);
}

.consent input[aria-invalid="true"] {
  outline: 2px solid var(--error);
  outline-offset: 2px;
}

.form-submit {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px 28px;
  margin-top: 4px;
}

.form-status {
  min-height: 1.5em;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.form-status.is-error {
  color: var(--error);
}

.form-status.is-loading {
  color: var(--emerald);
}

.form-status.is-success {
  color: var(--success);
}

/* Contacts */
.contacts {
  padding-top: var(--section-space);
  background: var(--paper-bright);
}

.contacts-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(58px, 8vw, 124px);
  padding-bottom: var(--section-space);
}

.contacts-copy h2 {
  max-width: none;
}

.contacts-name {
  max-width: 36ch;
  margin-top: 38px;
  color: var(--emerald-deep);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 2rem);
  line-height: 1.25;
}

.contacts-copy address {
  max-width: 34ch;
  margin-top: 30px;
  font-style: normal;
}

.contacts-phone {
  display: grid;
  width: fit-content;
  gap: 5px;
  margin-top: 18px;
  color: var(--emerald-deep);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

.contacts-phone span {
  font-size: 1.05rem;
  font-weight: 600;
}

.contacts-phone:hover,
.contacts-phone:focus-visible,
.footer-phone:hover,
.footer-phone:focus-visible {
  color: var(--gold);
}

.contact-channel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 26px;
  font-size: 0.84rem;
}

.contact-channel-links span {
  width: 100%;
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 600;
}

.contact-channel-links a {
  color: var(--emerald);
  font-weight: 600;
}

.contacts-pending {
  display: grid;
  gap: 12px;
  margin-top: 34px;
  padding: 20px;
}

.contacts-pending p {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.requisites {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.requisites summary {
  min-height: 52px;
  padding: 14px 2px;
  color: var(--emerald-deep);
  cursor: pointer;
  font-weight: 600;
}

.requisites-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0 0 20px;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.requisites-list div {
  display: grid;
  grid-template-columns: minmax(118px, 0.65fr) minmax(0, 1.35fr);
  gap: 14px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.requisites-list dt {
  color: var(--ink-soft);
}

.requisites-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.static-map {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--emerald-mist);
}

.map-road {
  position: absolute;
  height: 12px;
  border: 1px solid rgba(74, 47, 39, 0.16);
  background: var(--paper-bright);
  transform-origin: center;
}

.road-one {
  top: 26%;
  right: -8%;
  left: -10%;
  transform: rotate(-9deg);
}

.road-two {
  top: 10%;
  bottom: -20%;
  left: 56%;
  width: 12px;
  height: auto;
  transform: rotate(16deg);
}

.road-three {
  right: 8%;
  bottom: 27%;
  left: 14%;
  transform: rotate(19deg);
}

.map-marker {
  position: absolute;
  top: 42%;
  left: 54%;
  width: 44px;
  height: 44px;
  border: 2px solid var(--paper-bright);
  border-radius: 50% 50% 50% 3px;
  background: var(--emerald);
  box-shadow: 0 12px 24px rgba(44, 28, 23, 0.2);
  transform: translate(-50%, -50%) rotate(-45deg);
}

.map-marker span {
  position: absolute;
  top: 13px;
  left: 13px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold-soft);
}

.map-caption {
  position: absolute;
  right: 26px;
  bottom: 24px;
  left: 26px;
  display: grid;
  gap: 7px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--paper-bright);
}

.map-caption strong {
  color: var(--emerald-deep);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
}

.map-caption span {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.site-footer {
  border-top: 1px solid var(--line-dark);
  background: var(--emerald-deep);
  color: var(--paper-bright);
}

.footer-inner {
  display: grid;
  min-height: 150px;
  grid-template-columns: 0.75fr 1.5fr 0.75fr;
  align-items: center;
  gap: 32px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-decoration: none;
}

.footer-inner p {
  justify-self: center;
  color: rgba(251, 248, 240, 0.66);
  font-size: 0.78rem;
  text-align: center;
}

.footer-top {
  justify-self: end;
  color: var(--gold-soft);
  font-size: 0.86rem;
}

/* Responsive fallback */
@media (max-width: 1280px) {
  .desktop-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 49fr) minmax(0, 51fr);
  }

  .hero-copy {
    padding-inline: 0 var(--page-pad);
  }
}

@media (max-width: 980px) {
  :root {
    --header-height: 72px;
  }

  .header-actions .header-phone,
  .header-actions .button {
    display: none;
  }

  .hero-grid {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 520px;
    padding-block: 78px;
  }

  .hero-media {
    min-height: 560px;
  }

  .services-grid {
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .service {
    min-height: 250px;
    grid-column: auto;
    grid-row: auto;
  }

  .service-nanny {
    grid-column: 1 / -1;
    min-height: 680px;
  }

  .service-photo {
    min-height: 500px;
  }

  .process-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .process-status {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 260px;
  }

  .process-item {
    grid-column: auto;
    grid-row: auto;
    min-height: 280px;
    border-bottom: 1px solid var(--line);
  }

  .process-item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

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

  .difference-copy {
    min-height: 580px;
  }

  .training-layout,
  .faq-layout,
  .request-grid,
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .training-note,
  .faq-pending {
    grid-column: 1;
  }

  .applicants-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
    gap: 42px;
  }

  .about-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .team-figure {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 620px;
  }

  .team-partner {
    grid-column: 1;
    grid-row: 2;
  }

  .certificate-figure {
    grid-column: 2;
    grid-row: 2;
  }

  .referral-grid {
    grid-template-columns: minmax(180px, 0.7fr) minmax(300px, 1.3fr);
  }

  .referral-copy {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-top: 30px;
    padding-left: 0;
  }

  .faq-heading,
  .training-heading {
    margin-bottom: 16px;
  }

  .static-map {
    min-height: 480px;
  }
}

@media (max-width: 720px) {
  :root {
    --page-pad: 20px;
    --section-space: 78px;
  }

  h1 {
    font-size: clamp(2.55rem, 12.2vw, 3.55rem);
    line-height: 1.03;
  }

  h2 {
    font-size: clamp(2.25rem, 10.3vw, 3.25rem);
  }

  .header-inner {
    width: calc(100% - 32px);
  }

  .brand-mark {
    width: 54px;
    height: 38px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-descriptor {
    display: none;
  }

  .hero-copy {
    min-height: 515px;
    padding-block: 64px;
  }

  .hero-copy > p {
    margin-top: 24px;
  }

  .hero-actions {
    align-items: flex-start;
    margin-top: 32px;
  }

  .hero-media {
    min-height: 420px;
  }

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

  .fact {
    min-height: 128px;
  }

  .fact + .fact::before {
    top: 0;
    right: 22%;
    bottom: auto;
    left: 22%;
    width: auto;
    height: 1px;
  }

  .section-heading {
    gap: 22px;
    margin-bottom: 46px;
  }

  .services-grid {
    display: block;
    border-left: 1px solid var(--line);
  }

  .service {
    min-height: 230px;
  }

  .service-nanny {
    min-height: 570px;
  }

  .service-photo {
    min-height: 400px;
  }

  .services .status-note {
    display: grid;
  }

  .process-board {
    grid-template-columns: 1fr;
  }

  .process-status,
  .process-item {
    grid-column: 1;
  }

  .process-item {
    min-height: 240px;
    border-left: 0;
    border-bottom: 1px solid var(--line) !important;
  }

  .process-item:last-child {
    border-bottom: 0 !important;
  }

  .checks-panel {
    grid-template-columns: 1fr;
  }

  .checks-panel article {
    min-height: 280px;
  }

  .checks-panel article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .checks-status {
    right: 16px;
  }

  .difference-copy {
    min-height: 0;
    padding: 78px var(--page-pad);
  }

  .difference-media {
    min-height: 420px;
  }

  .training-layout {
    row-gap: 38px;
  }

  .program,
  .program-main {
    min-height: 136px;
    padding: 30px 0;
  }

  .program-main {
    padding-inline: 24px;
  }

  .program span {
    display: none;
  }

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

  .channel-button {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .channel-button small {
    text-align: left;
  }

  .applicants-media {
    min-height: 560px;
  }

  .about-mosaic {
    display: grid;
    grid-template-columns: 1fr;
  }

  .team-figure,
  .team-partner,
  .certificate-figure {
    grid-column: 1;
    grid-row: auto;
  }

  .team-figure {
    min-height: 480px;
  }

  .team-partner {
    min-height: 360px;
  }

  .certificate-figure {
    grid-template-columns: 1fr;
  }

  .certificate-figure img {
    height: 360px;
  }

  .certificate-figure figcaption {
    max-width: none;
  }

  .referral-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .referral-value {
    font-size: clamp(3.4rem, 16vw, 5rem);
  }

  .referral-copy {
    grid-column: 1;
  }

  .requisites-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .request-form {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: 1;
  }

  .form-submit {
    grid-template-columns: 1fr;
  }

  .form-submit .button {
    width: 100%;
  }

  .static-map {
    min-height: 420px;
  }

  .footer-inner {
    min-height: 220px;
    grid-template-columns: 1fr;
    gap: 18px;
    padding-block: 38px;
    text-align: center;
  }

  .footer-inner p,
  .footer-top {
    justify-self: center;
  }
}

@media (max-width: 430px) {
  .brand-name {
    font-size: 0.92rem;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
  }

  .hero-actions,
  .applicant-actions {
    display: grid;
    width: 100%;
    justify-items: start;
  }

  .hero-actions .button,
  .applicant-actions .button {
    width: 100%;
  }

  .request-phone {
    font-size: 1.42rem;
  }

  .map-caption {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }
}

/* September content and layout refinement */
.header-inner {
  width: min(calc(100% - (var(--page-pad) * 2)), var(--container));
}

.brand-mark {
  flex: 0 0 78px;
}

.brand-mark img {
  object-position: left center;
}

.desktop-nav a {
  font-size: 1.04rem;
  line-height: 1.2;
}

.services-grid {
  grid-template-rows: repeat(5, minmax(220px, auto));
}

.service {
  padding: clamp(24px, 2.45vw, 38px);
}

.service h3 {
  font-size: clamp(1.42rem, 1.85vw, 2.2rem);
}

.service p {
  max-width: 34ch;
  font-size: 0.9rem;
}

.service-wardrobe h3,
.service-manager h3,
.service-assistant h3 {
  font-size: clamp(1.35rem, 1.65vw, 1.95rem);
}

.services-help {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  margin-top: 28px;
  padding: 28px 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-bright);
}

.services-help h3 {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
}

.services-help p {
  max-width: 76ch;
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.process-status h3 {
  max-width: 11ch;
  color: var(--paper-bright);
  font-size: clamp(2rem, 2.8vw, 3.3rem);
  line-height: 1.04;
}

.process-status p {
  max-width: 24ch;
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.55;
}

.process-item {
  justify-content: space-between;
}

.process-item p {
  font-size: 0.92rem;
}

.checks-panel {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.checks-panel article {
  min-height: 360px;
  padding: clamp(34px, 3.6vw, 56px);
}

.checks-panel h3 {
  font-size: clamp(1.55rem, 2vw, 2.25rem);
}

.training-layout {
  grid-template-columns: minmax(0, 1fr);
  row-gap: 42px;
}

.training-heading {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(360px, 1fr) auto;
  align-items: end;
  gap: clamp(28px, 4vw, 64px);
}

.training-heading h2 {
  max-width: 14ch;
}

.training-heading p {
  max-width: 62ch;
  color: var(--ink-soft);
}

.program-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-left: 1px solid var(--line);
}

.program,
.program-main {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
  padding: clamp(30px, 3vw, 48px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-bright);
}

.program-main {
  background: var(--emerald-soft);
}

.program h3 {
  max-width: 15ch;
  font-size: clamp(1.75rem, 2.45vw, 2.85rem);
}

.program p {
  max-width: 39ch;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.training-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  padding: 30px 34px;
  border: 1px solid var(--line);
  background: var(--paper-deep);
}

.training-contact h3 {
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.training-contact p {
  max-width: 70ch;
  margin-top: 8px;
  color: var(--ink-soft);
}

.training-contact nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.training-contact a {
  color: var(--emerald);
  font-weight: 600;
}

.applicants-detail {
  max-width: 60ch;
  margin-top: 16px;
  color: rgba(251, 248, 240, 0.72);
  font-size: 0.95rem;
}

.applicant-actions {
  flex-wrap: wrap;
}

.about-heading {
  max-width: none;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  align-items: start;
  column-gap: clamp(48px, 7vw, 108px);
  row-gap: 18px;
}

.about-heading h2 {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.about-heading > p {
  grid-column: 2;
  max-width: 62ch;
}

.about-heading p + p {
  margin-top: 0;
}

.about-mosaic {
  grid-template-columns: minmax(520px, 0.78fr) minmax(0, 1fr);
  grid-template-rows: 190px 450px;
  gap: 20px;
}

.team-figure {
  grid-column: 1;
  grid-row: 1 / 3;
  height: 660px;
  min-height: 0;
}

.team-figure img {
  object-position: center top;
}

.certificate-figure {
  grid-column: 2;
  grid-row: 1;
  grid-template-columns: minmax(0, 1fr) 170px;
  align-items: center;
  align-content: center;
  gap: 18px;
  padding: 22px 24px;
}

.certificate-figure img {
  width: 170px;
  max-height: 125px;
  justify-self: end;
}

.certificate-figure figcaption {
  display: grid;
  gap: 6px;
  padding: 0;
  text-align: left;
}

.certificate-figure figcaption strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
}

.certificate-figure figcaption span {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.team-partner {
  grid-column: 2;
  grid-row: 2;
  height: 450px;
  min-height: 0;
}

.team-partner img {
  object-position: center 28%;
}

.referral-detail {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.referral-copy .text-action {
  margin-top: 18px;
}

.contacts-grid {
  align-items: stretch;
}

.contacts-intro {
  max-width: 58ch;
  margin-top: 18px;
  color: var(--ink-soft);
}

.contacts-copy address {
  display: grid;
  gap: 5px;
}

.contacts-copy address strong,
.contacts-phone strong {
  font-size: 0.78rem;
  font-style: normal;
}

.requisites {
  margin-top: 32px;
  padding-block: 22px;
}

.requisites h3 {
  margin: 0 0 14px;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 600;
}

.requisites-list {
  padding-bottom: 0;
}

.static-map {
  min-height: 650px;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(250px, 1.25fr) minmax(150px, 0.65fr) minmax(220px, 0.95fr) minmax(190px, 0.8fr);
  align-items: start;
  gap: clamp(28px, 3vw, 48px);
  padding-block: 64px 48px;
}

.footer-about {
  display: grid;
  gap: 16px;
}

.footer-about p,
.footer-about address {
  max-width: 38ch;
  color: rgba(251, 248, 240, 0.68);
  font-size: 0.82rem;
  font-style: normal;
}

.footer-nav {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-nav strong {
  margin-bottom: 6px;
  color: var(--gold-soft);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-nav a,
.footer-nav button {
  width: fit-content;
  padding: 0;
  border: 0;
  color: var(--paper-bright);
  background: transparent;
  font-size: 0.84rem;
  line-height: 1.45;
  text-align: left;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav button:hover {
  color: var(--gold-soft);
}

.footer-phone {
  width: fit-content;
  color: var(--paper-bright);
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

.footer-bottom {
  display: grid;
  min-height: 88px;
  grid-template-columns: auto auto minmax(240px, 1fr) auto;
  align-items: center;
  gap: 24px 34px;
  border-top: 1px solid var(--line-dark);
  color: rgba(251, 248, 240, 0.62);
  font-size: 0.72rem;
}

@media (max-width: 1180px) {
  .training-heading {
    grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1fr);
  }

  .training-heading .button {
    grid-column: 1;
  }

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

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

@media (max-width: 980px) {
  .services-heading,
  .process-heading {
    grid-template-columns: 1fr;
  }

  .about-heading {
    grid-template-columns: 1fr;
  }

  .about-heading h2,
  .about-heading > p {
    grid-column: auto;
    grid-row: auto;
  }

  .process-route {
    min-height: 0;
  }

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

  .agency-presentation-grid {
    grid-template-columns: 1fr;
  }

  .agency-presentation-visual {
    min-height: 280px;
  }

  .checks-panel {
    grid-template-columns: 1fr;
  }

  .checks-panel article {
    min-height: 0;
  }

  .checks-panel article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .program-list {
    grid-template-columns: 1fr;
  }

  .program,
  .program-main {
    min-height: 0;
  }

  .about-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 560px 360px;
  }

  .team-figure {
    grid-column: 1 / -1;
    grid-row: 1;
    height: 560px;
    min-height: 0;
  }

  .certificate-figure {
    grid-column: 1;
    grid-row: 2;
  }

  .team-partner {
    grid-column: 2;
    grid-row: 2;
    height: 360px;
  }
}

@media (max-width: 720px) {
  .header-inner {
    width: min(calc(100% - (var(--page-pad) * 2)), var(--container));
  }

  .brand-mark {
    flex-basis: 54px;
  }

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

  .process-route {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .process-route span {
    text-align: left;
  }

  .process-route span[aria-hidden="true"] {
    transform: rotate(90deg);
  }

  .agency-presentation-copy,
  .agency-presentation-visual {
    padding: 30px 24px;
  }

  .referral::after {
    background: rgba(44, 28, 23, 0.88);
  }

  .services-help,
  .training-contact {
    grid-template-columns: 1fr;
  }

  .training-heading {
    grid-template-columns: 1fr;
  }

  .training-heading .button {
    grid-column: auto;
  }

  .about-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .team-figure,
  .certificate-figure,
  .team-partner {
    grid-column: 1;
    grid-row: auto;
  }

  .team-figure {
    width: 100%;
    height: 520px;
    min-height: 0;
  }

  .certificate-figure {
    grid-template-columns: 1fr 140px;
  }

  .certificate-figure img {
    width: 140px;
    height: auto;
    max-height: 104px;
  }

  .team-partner {
    height: 380px;
    min-height: 0;
  }

  .footer-main,
  .footer-bottom {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .footer-bottom {
    padding-block: 28px;
  }

  .footer-top {
    justify-self: start;
  }
}

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

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

/* Quiet premium motion layer */
.header-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.motion-page .site-header {
  transition:
    height 420ms var(--ease-out),
    background-color 420ms var(--ease-out),
    box-shadow 420ms var(--ease-out);
}

@media (min-width: 981px) {
  .motion-page .site-header.is-compact {
    height: 64px;
    background: rgba(247, 241, 227, 0.91);
    box-shadow: 0 14px 34px rgba(44, 28, 23, 0.07);
    backdrop-filter: blur(16px) saturate(112%);
    -webkit-backdrop-filter: blur(16px) saturate(112%);
  }

}

.motion-page .hero-gallery {
  isolation: isolate;
}

.motion-page .hero-gallery::after {
  display: none;
}

.motion-page .hero-slides {
  position: absolute;
  inset: 0;
}

.motion-page .hero-gallery .hero-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.015);
  animation: none;
  transition: opacity 1400ms var(--ease-out);
  will-change: opacity, transform;
}

.motion-page .hero-gallery .hero-slide:first-child {
  object-position: right 44%;
}

.motion-page .hero-gallery .hero-slide:nth-child(2) {
  object-position: center 46%;
}

.motion-page .hero-gallery .hero-slide:nth-child(3) {
  object-position: center 48%;
}

.motion-page .hero-gallery .hero-slide.is-active {
  z-index: 1;
  opacity: 1;
}

.hero-motion-toggle {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 3;
  display: inline-flex;
  min-width: 76px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 253, 247, 0.5);
  border-radius: 2px;
  padding: 10px 14px;
  background: rgba(44, 28, 23, 0.68);
  color: var(--paper-bright);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1;
  opacity: 0.78;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    opacity 180ms var(--ease-out),
    background-color 180ms var(--ease-out),
    transform 180ms var(--ease-out);
}

.hero-motion-toggle:hover,
.hero-motion-toggle:focus-visible {
  background: rgba(44, 28, 23, 0.86);
  opacity: 1;
}

.hero-motion-toggle:active {
  transform: translateY(1px);
}

.hero-motion-toggle[hidden] {
  display: none;
}

@keyframes quiet-hero-drift {
  from {
    transform: scale(1.015);
  }
  to {
    transform: scale(1.055);
  }
}

@keyframes quiet-copy-enter {
  from {
    opacity: 0;
    filter: blur(4px);
    clip-path: inset(0 0 12% 0);
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    clip-path: inset(0);
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .motion-page .hero-gallery .hero-slide.is-active {
    animation: quiet-hero-drift 9s linear both;
  }

  .motion-page .hero-gallery.is-paused .hero-slide.is-active {
    animation-play-state: paused;
  }

  .motion-page .hero-copy h1 {
    animation: quiet-copy-enter 720ms var(--ease-out) 80ms both;
  }

  .motion-page .hero-copy > p {
    animation: quiet-copy-enter 700ms var(--ease-out) 170ms both;
  }

  .motion-page .hero-actions {
    animation: quiet-copy-enter 620ms var(--ease-out) 260ms both;
  }

  .motion-page.motion-enhanced .motion-reveal--mask,
  .motion-page.motion-enhanced .motion-reveal--media {
    opacity: 0;
    transform: translateY(16px);
    transition:
      opacity 760ms var(--ease-out),
      transform 760ms var(--ease-out),
      clip-path 900ms var(--ease-out);
  }

  .motion-page.motion-enhanced .motion-reveal--mask {
    clip-path: inset(0 0 12% 0);
  }

  .motion-page.motion-enhanced .motion-reveal--media {
    clip-path: inset(0 7% 0 0);
    transform: translateX(18px);
  }

  .motion-page.motion-enhanced .motion-reveal--mask.is-visible,
  .motion-page.motion-enhanced .motion-reveal--media.is-visible {
    opacity: 1;
    clip-path: inset(0);
    transform: translate(0);
  }

  .motion-page.motion-enhanced .motion-reveal--sequence > * {
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity 620ms var(--ease-out),
      transform 620ms var(--ease-out);
  }

  .motion-page.motion-enhanced .motion-reveal--sequence.is-visible > * {
    opacity: 1;
    transform: translateY(0);
  }

  .motion-page.motion-enhanced .motion-reveal--sequence.is-visible > *:nth-child(2) {
    transition-delay: 70ms;
  }

  .motion-page.motion-enhanced .motion-reveal--sequence.is-visible > *:nth-child(3) {
    transition-delay: 140ms;
  }

  .motion-page.motion-enhanced .motion-reveal--sequence.is-visible > *:nth-child(4) {
    transition-delay: 210ms;
  }

  .motion-page.motion-enhanced .motion-reveal--sequence.is-visible > *:nth-child(5) {
    transition-delay: 280ms;
  }
}

@media (max-width: 720px) {
  .hero-motion-toggle {
    right: 12px;
    bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-page .site-header,
  .motion-page .hero-gallery .hero-slide,
  .motion-page .motion-reveal,
  .motion-page .motion-reveal > * {
    transition-duration: 0.01ms !important;
    animation: none !important;
  }

  .motion-page .hero-gallery .hero-slide {
    opacity: 0;
    transform: none;
  }

  .motion-page .hero-gallery .hero-slide:first-child {
    z-index: 1;
    opacity: 1;
  }

  .motion-page .motion-reveal,
  .motion-page .motion-reveal > * {
    opacity: 1 !important;
    clip-path: none !important;
    transform: none !important;
  }

  .hero-motion-toggle {
    display: none;
  }
}

/* Current team composition and contact details */
.about-mosaic {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: 156px auto;
  gap: 20px;
}

.certificate-figure {
  grid-column: 1 / -1;
  grid-row: 1;
  grid-template-columns: minmax(0, 1fr) 230px;
  align-items: center;
  align-content: center;
  gap: 32px;
  padding: 20px 26px;
}

.certificate-figure img {
  width: 230px;
  max-height: 112px;
  justify-self: end;
}

.certificate-figure figcaption {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  text-align: left;
}

.certificate-figure figcaption strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
}

.certificate-figure figcaption span {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.team-person {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
}

.team-person img {
  width: 100%;
  height: clamp(440px, 40vw, 580px);
  min-height: 0;
  flex: 0 0 auto;
  object-fit: cover;
  object-position: center top;
}

.team-person figcaption {
  display: flex;
  min-width: 0;
  min-height: 150px;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(24px, 2.4vw, 34px);
}

.team-person figcaption strong {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
}

.team-person figcaption span {
  display: block;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.45;
}

.team-maryana {
  grid-column: 1;
  grid-row: 2;
  background: var(--paper-deep);
}

.team-maryana img {
  object-position: center top;
}

.team-maryana figcaption strong {
  font-size: clamp(1.4rem, 1.8vw, 2.1rem);
}

.team-zinaida {
  grid-column: 2;
  grid-row: 2;
  background: var(--paper-bright);
}

.team-zinaida img {
  object-position: center 18%;
}

.team-zinaida figcaption,
.team-snezhana figcaption {
  padding: clamp(22px, 2.5vw, 34px);
}

.team-zinaida figcaption strong {
  font-size: clamp(1.4rem, 1.8vw, 2.1rem);
}

.team-snezhana {
  grid-column: 3;
  grid-row: 2;
  color: var(--paper-bright);
  background: var(--emerald-deep);
}

.team-snezhana img {
  object-position: center 12%;
}

.team-snezhana figcaption strong {
  font-size: clamp(1.4rem, 1.8vw, 2.1rem);
}

.team-snezhana figcaption span {
  color: rgba(255, 253, 247, 0.72);
}

.contacts-phone-group,
.contacts-email {
  display: grid;
  width: fit-content;
  gap: 5px;
  margin-top: 18px;
}

.contacts-phone-group > strong,
.contacts-email strong {
  color: var(--ink);
  font-size: 0.78rem;
  font-style: normal;
}

.contacts-phone-group .contacts-phone {
  margin-top: 0;
}

.contacts-email {
  color: var(--emerald-deep);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

.contacts-email span {
  font-size: 1rem;
  font-weight: 600;
}

.contacts-email:hover,
.contacts-email:focus-visible,
.footer-email:hover,
.footer-email:focus-visible {
  color: var(--gold);
}

.footer-contact-list {
  display: grid;
  gap: 8px;
}

.footer-email {
  width: fit-content;
  color: var(--paper-bright);
  font-size: 0.9rem;
  text-decoration: none;
}

@media (max-width: 1080px) {
  .about-mosaic {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: 150px auto;
  }

  .certificate-figure {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .team-maryana {
    grid-column: 1;
    grid-row: 2;
  }

  .team-zinaida {
    grid-column: 2;
    grid-row: 2;
  }

  .team-snezhana {
    grid-column: 3;
    grid-row: 2;
  }

  .team-person img {
    height: clamp(400px, 50vw, 520px);
  }
}

@media (max-width: 720px) {
  .about-mosaic {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
  }

  .certificate-figure,
  .team-maryana,
  .team-zinaida,
  .team-snezhana {
    min-width: 0;
    grid-column: 1;
    grid-row: auto;
  }

  .certificate-figure {
    grid-template-columns: 1fr 140px;
  }

  .certificate-figure img {
    width: 140px;
    height: auto;
    max-height: 100px;
  }

  .team-person {
    height: auto;
  }

  .team-person img {
    height: clamp(400px, 118vw, 500px);
  }

  .team-person figcaption {
    min-height: 116px;
    padding: 24px 22px;
  }

  .team-zinaida img {
    object-position: center top;
  }

  .team-snezhana img {
    object-position: center top;
  }
}
