/* 4detki.ru — mobile portal homepage visual and UX 1.48.0 */
.home-mobile-v3 {
  display: none;
}

@media (max-width: 720px) {
  body.home-page-v3 {
    --home-ink: #081233;
    --home-muted: #38517d;
    --home-pink: #f40061;
    --home-line: #dfe8f3;
    --home-card: #ffffff;
    --home-shadow: 0 10px 30px rgba(37, 76, 126, 0.09);
    --mobile-dock-height: 58px;
    padding-bottom: calc(var(--mobile-dock-height) + env(safe-area-inset-bottom, 0px));
    color: var(--home-ink);
    background:
      radial-gradient(circle at 8% 8%, rgba(124, 214, 255, 0.19), transparent 26rem),
      radial-gradient(circle at 100% 35%, rgba(255, 174, 210, 0.15), transparent 22rem),
      linear-gradient(180deg, #f7fbff 0%, #ffffff 46%, #f5faff 100%);
  }

  body.home-page-v3 .site-header {
    position: relative;
    top: auto;
    width: min(calc(100% - 20px), 520px);
    margin: 8px auto 0;
    overflow: hidden;
    border: 1px solid rgba(217, 230, 243, 0.9);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 7px 24px rgba(35, 71, 117, 0.08);
    backdrop-filter: blur(18px);
  }

  body.home-page-v3 .site-header__inner {
    width: 100%;
    min-height: 66px;
    padding: 0 10px;
  }

  body.home-page-v3 .site-header .brand {
    gap: 9px;
    color: var(--home-ink);
    font-size: 1.32rem;
    font-weight: 900;
    letter-spacing: -0.055em;
  }

  body.home-page-v3 .site-header .brand__mark {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 12px;
    background: linear-gradient(145deg, #ff0870, #ea0058);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    font-size: 1.75rem;
  }

  body.home-page-v3 .site-header .brand__dot {
    color: inherit;
  }

  body.home-page-v3 .mobile-header-actions {
    gap: 6px;
  }

  body.home-page-v3 .mobile-header-button {
    min-width: 44px;
    min-height: 44px;
    border-color: #e5edf6;
    border-radius: 12px;
    color: var(--home-ink);
    background: #f6faff;
    font-size: 0.76rem;
    font-weight: 850;
  }

  body.home-page-v3 .mobile-header-button svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.2;
  }

  body.home-page-v3 main#main > :not(.home-mobile-v3) {
    display: none !important;
  }

  .home-mobile-v3 {
    display: block;
    overflow: hidden;
    padding: 18px 0 26px;
  }

  .home-mobile-v3__inner {
    width: min(calc(100% - 24px), 500px);
    margin-inline: auto;
  }

  .home-mobile-v3__inner section {
    min-width: 0;
  }

  .home-mobile-v3__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .home-mobile-v3__eyebrow {
    margin: 0 0 2px;
    color: var(--home-pink);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .home-mobile-v3 h1,
  .home-mobile-v3 h2,
  .home-mobile-v3 h3,
  .home-mobile-v3 strong {
    color: var(--home-ink);
    font-family: "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  }

  .home-mobile-v3 h1 {
    margin: 0;
    font-size: clamp(2.05rem, 9.2vw, 2.65rem);
    font-weight: 950;
    letter-spacing: -0.06em;
    line-height: 1.04;
  }

  .home-mobile-v3__lead {
    margin: 5px 0 13px;
    color: #243f70;
    font-size: clamp(0.98rem, 4.3vw, 1.2rem);
    line-height: 1.3;
  }

  .home-mobile-search {
    position: relative;
    display: flex;
    align-items: center;
    height: 52px;
    margin: 0 0 15px;
    border: 1px solid var(--home-line);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 7px 20px rgba(38, 78, 126, 0.07);
  }

  .home-mobile-search > svg {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    margin-left: 14px;
    fill: none;
    stroke: #365788;
    stroke-linecap: round;
    stroke-width: 2;
  }

  .home-mobile-search input {
    min-width: 0;
    height: 100%;
    flex: 1;
    padding: 0 8px 0 12px;
    border: 0;
    outline: 0;
    color: var(--home-ink);
    background: transparent;
    font-size: 1rem;
  }

  .home-mobile-search input::placeholder {
    color: #7890b2;
    opacity: 1;
  }

  .home-mobile-search__submit {
    width: 38px;
    height: 38px;
    display: grid;
    flex: 0 0 38px;
    place-items: center;
    margin-right: 6px;
    padding: 0;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: var(--home-pink);
    opacity: 1;
    transition: opacity 150ms ease, transform 150ms ease;
  }

  .home-mobile-search input:placeholder-shown + .home-mobile-search__submit {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.86);
  }

  .home-mobile-search__submit svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
  }

  .home-activity-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .home-activity-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--home-line);
    border-radius: 15px;
    color: var(--home-ink);
    background: var(--home-card);
    box-shadow: 0 7px 22px rgba(38, 78, 126, 0.06);
    text-decoration: none;
    transition: transform 150ms ease, box-shadow 150ms ease;
  }

  .home-activity-card:active,
  .home-situation-card:active,
  .home-popular-card:active,
  .home-parent-card:active,
  .home-favorites-callout:active {
    transform: scale(0.985);
  }

  .home-activity-card__media {
    aspect-ratio: 1.46 / 1;
    display: block;
    overflow: hidden;
  }

  .home-activity-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .home-activity-card__copy {
    min-height: 67px;
    display: grid;
    align-content: center;
    gap: 1px;
    padding: 8px 25px 9px 11px;
    background: #fff;
  }

  .home-activity-card__copy strong {
    overflow: hidden;
    font-size: clamp(1rem, 4.25vw, 1.16rem);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-activity-card__copy > span {
    overflow: hidden;
    color: var(--home-muted);
    font-size: clamp(0.77rem, 3.4vw, 0.91rem);
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-card-chevron {
    color: var(--home-ink);
    font-family: system-ui, sans-serif;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
  }

  .home-activity-card > .home-card-chevron {
    position: absolute;
    right: 8px;
    bottom: 20px;
  }

  .home-quick,
  .home-mobile-directions,
  .home-mobile-lesson,
  .home-resume,
  .home-popular,
  .home-parents {
    margin-top: 27px;
  }

  .home-mobile-section-heading {
    margin-bottom: 11px;
  }

  .home-mobile-section-heading h2 {
    margin-bottom: 0;
  }

  .home-mobile-section-heading p {
    margin: 0 0 3px;
    color: var(--home-pink);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .home-mobile-section-heading h2 + p,
  .home-mobile-section-heading h2 ~ p {
    margin: 5px 0 0;
    color: var(--home-muted);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.35;
    text-transform: none;
  }

  .home-mobile-directions__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .home-direction-card {
    position: relative;
    min-width: 0;
    display: block;
    overflow: hidden;
    border: 1px solid var(--home-line);
    border-radius: 15px;
    color: var(--home-ink);
    background: #fff;
    box-shadow: 0 7px 22px rgba(38, 78, 126, 0.06);
    text-decoration: none;
    transition: transform 150ms ease, box-shadow 150ms ease;
  }

  .home-direction-card:active {
    transform: scale(0.985);
  }

  .home-direction-card .home-direction-art {
    width: 100%;
    height: 132px;
  }

  .home-direction-card > span:nth-child(2) {
    min-height: 78px;
    display: grid;
    align-content: center;
    gap: 3px;
    padding: 9px 25px 10px 11px;
  }

  .home-direction-card strong {
    font-size: clamp(0.9rem, 3.9vw, 1.04rem);
    font-weight: 950;
    letter-spacing: -0.03em;
    line-height: 1.08;
  }

  .home-direction-card small {
    color: var(--home-muted);
    font-size: clamp(0.68rem, 3vw, 0.79rem);
    line-height: 1.25;
  }

  .home-direction-card > i {
    position: absolute;
    right: 8px;
    bottom: 27px;
    font-family: system-ui, sans-serif;
    font-size: 1.7rem;
    font-style: normal;
    font-weight: 350;
    line-height: 1;
  }

  .home-direction-card--songs {
    grid-column: 1 / -1;
    min-height: 132px;
    display: grid;
    grid-template-columns: 42% minmax(0, 1fr);
    align-items: stretch;
    border-color: #d8e4ff;
    background: linear-gradient(110deg, #fff 0%, #f7f3ff 100%);
  }

  .home-direction-card--songs .home-direction-art {
    width: 100%;
    height: 142px;
  }

  .home-direction-card--songs > span:nth-child(2) {
    min-height: 142px;
    padding: 14px 34px 14px 14px;
  }

  .home-direction-card--songs > i {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }

  .home-mobile-lesson__card {
    min-height: 126px;
    display: grid;
    grid-template-columns: 38% minmax(0, 1fr);
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #dce8f4;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff3f8, #f2f9ff);
    box-shadow: var(--home-shadow);
  }

  .home-mobile-lesson__card > img {
    width: 100%;
    height: 100%;
    min-height: 126px;
    object-fit: cover;
  }

  .home-mobile-lesson nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: center;
    gap: 7px;
    padding: 12px;
  }

  .home-mobile-lesson nav a {
    min-height: 42px;
    display: grid;
    place-items: center;
    padding: 7px 5px;
    border: 1px solid #d9e5f1;
    border-radius: 12px;
    color: var(--home-ink);
    background: rgba(255, 255, 255, 0.96);
    font-size: 0.76rem;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
  }

  .home-mobile-v3 h2 {
    margin: 0 0 11px;
    font-size: clamp(1.6rem, 7vw, 2rem);
    font-weight: 950;
    letter-spacing: -0.055em;
    line-height: 1.05;
  }

  .home-mobile-v3 h3 {
    margin: 19px 0 10px;
    font-size: clamp(1.32rem, 5.7vw, 1.65rem);
    font-weight: 950;
    letter-spacing: -0.045em;
    line-height: 1.1;
  }

  .home-age-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .home-age-link {
    min-width: 0;
    min-height: 45px;
    display: grid;
    place-items: center;
    border: 1px solid var(--home-line);
    border-radius: 14px;
    color: var(--home-ink);
    background: #f3f8fe;
    font-size: 1rem;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
  }

  .home-age-link--accent {
    border-color: var(--home-pink);
    color: #fff;
    background: linear-gradient(145deg, #ff086c, #ed005b);
    box-shadow: 0 8px 18px rgba(244, 0, 97, 0.16);
  }

  .home-situation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .home-situation-card {
    position: relative;
    min-width: 0;
    min-height: 94px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    padding: 8px 25px 8px 9px;
    border: 1px solid var(--home-line);
    border-radius: 14px;
    color: var(--home-ink);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 20px rgba(38, 78, 126, 0.05);
    font-size: 0.94rem;
    font-weight: 850;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
  }

  .home-situation-card > .home-card-chevron {
    position: absolute;
    right: 8px;
    bottom: 32px;
    font-size: 1.85rem;
  }

  .home-situation-card__icon {
    width: 48px;
    height: 48px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 5;
  }

  .home-situation-card__icon--sleep {
    color: #a66be8;
    fill: currentColor;
    stroke: none;
  }

  .home-situation-card__icon--road {
    color: #188fd3;
    fill: currentColor;
    stroke: #188fd3;
  }

  .home-situation-card__icon--short {
    color: var(--home-pink);
  }

  .home-situation-card__icon--useful {
    color: #34aa62;
    fill: currentColor;
    stroke: #fff;
    stroke-width: 2.3;
  }

  .home-resume[hidden] {
    display: none !important;
  }

  .home-resume-card,
  .home-popular-card {
    position: relative;
    min-width: 0;
    display: grid;
    grid-template-columns: 43% minmax(0, 1fr) 18px;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--home-line);
    border-radius: 15px;
    color: var(--home-ink);
    background: #fff;
    box-shadow: var(--home-shadow);
    text-decoration: none;
  }

  .home-resume-card > img,
  .home-popular-card > img {
    width: 100%;
    height: 106px;
    object-fit: cover;
  }

  .home-resume-card__copy,
  .home-popular-card__copy {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 9px 9px 9px 12px;
  }

  .home-resume-card__copy strong,
  .home-popular-card__copy > strong {
    overflow: hidden;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-resume-card__copy > span {
    display: grid;
    gap: 5px;
    color: var(--home-muted);
    font-size: 0.78rem;
    line-height: 1.2;
  }

  .home-resume-card__copy i {
    height: 5px;
    display: block;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eef6;
  }

  .home-resume-card__copy i b {
    width: 0;
    height: 100%;
    display: block;
    border-radius: inherit;
    background: var(--home-pink);
  }

  .home-popular-list {
    display: grid;
    gap: 9px;
  }

  .home-popular-card__meta {
    overflow: hidden;
    color: var(--home-muted);
    font-size: 0.78rem;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-popular-card__meta i {
    margin-inline: 5px;
    font-style: normal;
  }

  .home-popular-card__play {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--home-pink);
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1;
  }

  .home-popular-card__play b {
    width: 34px;
    height: 34px;
    display: grid;
    flex: 0 0 34px;
    place-items: center;
    padding-left: 2px;
    border-radius: 50%;
    color: #fff;
    background: var(--home-pink);
    font-size: 0.73rem;
    box-shadow: 0 6px 13px rgba(244, 0, 97, 0.2);
  }

  .home-parent-list {
    display: grid;
    gap: 10px;
  }

  .home-parent-card {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid var(--home-line);
    border-radius: 15px;
    color: var(--home-ink);
    background: #fff;
    box-shadow: var(--home-shadow);
    text-decoration: none;
  }

  .home-parent-card > img {
    width: 100%;
    height: auto;
    aspect-ratio: 2.35 / 1;
    object-fit: cover;
  }

  .home-parent-card__copy {
    min-height: 66px;
    display: grid;
    align-content: center;
    gap: 2px;
    padding: 8px 40px 9px 12px;
  }

  .home-parent-card__copy strong {
    font-size: 1.12rem;
    font-weight: 950;
    letter-spacing: -0.035em;
    line-height: 1.08;
  }

  .home-parent-card__copy span {
    color: var(--home-muted);
    font-size: 0.86rem;
    line-height: 1.25;
  }

  .home-parent-card > .home-card-chevron {
    position: absolute;
    right: 12px;
    bottom: 18px;
  }

  .home-favorites-callout {
    position: relative;
    min-height: 83px;
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 9px;
    margin-top: 16px;
    padding: 10px 12px;
    border: 0;
    border-radius: 15px;
    color: var(--home-ink);
    background: linear-gradient(135deg, #fff0f6, #ffe6f0);
    text-decoration: none;
  }

  .home-favorites-callout__icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--home-pink);
    background: #fff;
  }

  .home-favorites-callout__icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
  }

  .home-favorites-callout > span:nth-child(2) {
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  .home-favorites-callout strong {
    font-size: 0.97rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.15;
  }

  .home-favorites-callout small {
    color: var(--home-muted);
    font-size: 0.74rem;
    line-height: 1.25;
  }

  body.home-page-v3 .site-footer {
    margin-top: 0;
    padding: 14px 0;
    background: #102c4c;
  }

  body.home-page-v3 .site-footer::before,
  body.home-page-v3 .site-footer p,
  body.home-page-v3 .footer-bottom {
    display: none;
  }

  body.home-page-v3 .site-footer__inner {
    width: min(calc(100% - 24px), 500px);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }

  body.home-page-v3 .site-footer .brand {
    gap: 8px;
    color: #fff;
    font-size: 0.94rem;
  }

  body.home-page-v3 .site-footer .brand__mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--home-pink);
    box-shadow: none;
    font-size: 1.15rem;
    transform: none;
  }

  body.home-page-v3 .footer-nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 10px;
  }

  body.home-page-v3 .footer-nav a {
    display: none;
    color: #d8e7f7;
    font-size: 0.61rem;
    font-weight: 500;
    line-height: 1.15;
    text-decoration: none;
    white-space: nowrap;
  }

  body.home-page-v3 .footer-nav a[href="/o-proekte/"],
  body.home-page-v3 .footer-nav a[href="/prava/"],
  body.home-page-v3 .footer-nav a[href="/obratnaya-svyaz/"] {
    display: inline;
  }

  body.home-page-v3 .scroll-top {
    display: none !important;
  }

  body.home-page-v3 .mobile-dock {
    position: fixed;
    z-index: 220;
    inset: auto 0 0;
    width: 100%;
    min-height: var(--mobile-dock-height);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    padding: 4px max(5px, env(safe-area-inset-right, 0px)) max(4px, env(safe-area-inset-bottom, 0px)) max(5px, env(safe-area-inset-left, 0px));
    border-top: 1px solid #dfe8f3;
    color: #173864;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -8px 26px rgba(25, 61, 105, 0.09);
    backdrop-filter: blur(18px);
  }

  body.home-page-v3 .mobile-dock > a,
  body.home-page-v3 .mobile-dock > button {
    min-width: 0;
    min-height: 46px;
    display: grid;
    grid-template-rows: 23px auto;
    place-items: center;
    align-content: center;
    gap: 1px;
    padding: 2px 0;
    border: 0;
    border-radius: 10px;
    color: inherit;
    background: transparent;
    font: inherit;
    text-decoration: none;
  }

  body.home-page-v3 .mobile-dock svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
  }

  body.home-page-v3 .mobile-dock svg circle[r="1.3"] {
    fill: currentColor;
    stroke: none;
  }

  body.home-page-v3 .mobile-dock span {
    overflow: hidden;
    max-width: 100%;
    font-size: 0.62rem;
    font-weight: 650;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.home-page-v3 .mobile-dock [aria-current="page"],
  body.home-page-v3 .mobile-dock [aria-pressed="true"] {
    color: var(--home-pink);
  }

  body.home-page-v3 .mobile-dock [aria-current="page"]::after,
  body.home-page-v3 .mobile-dock [aria-pressed="true"]::after,
  body.home-page-v3 .mobile-dock [aria-current="page"] span::after,
  body.home-page-v3 .mobile-dock [aria-pressed="true"] span::after {
    display: none !important;
    content: none !important;
  }

  body.home-page-v3.home-quick-search-open {
    overflow: hidden;
  }

  .home-quick-search[hidden] {
    display: none !important;
  }

  .home-quick-search {
    position: fixed;
    z-index: 210;
    inset: 0;
    display: grid;
    align-items: end;
    padding-bottom: calc(var(--mobile-dock-height) + env(safe-area-inset-bottom, 0px) + var(--home-search-keyboard, 0px));
  }

  .home-quick-search__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(7, 22, 49, 0.38);
    backdrop-filter: blur(3px);
  }

  .home-quick-search__panel {
    position: relative;
    width: min(100%, 520px);
    max-height: min(72dvh, 590px);
    display: grid;
    gap: 12px;
    margin-inline: auto;
    overflow: hidden;
    padding: 9px 14px 14px;
    border: 1px solid #dce7f2;
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
    background: #fff;
    box-shadow: 0 -16px 48px rgba(13, 42, 80, 0.18);
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 170ms ease, transform 190ms ease;
  }

  .home-quick-search.is-open .home-quick-search__panel {
    opacity: 1;
    transform: translateY(0);
  }

  .home-quick-search__handle {
    width: 54px;
    height: 5px;
    margin: 0 auto 1px;
    border-radius: 99px;
    background: #c8d8ea;
  }

  .home-quick-search__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }

  .home-quick-search__header h2 {
    margin: 0;
    font-size: 1.48rem;
    font-weight: 950;
    letter-spacing: -0.045em;
  }

  .home-quick-search__close {
    width: 38px;
    height: 38px;
    display: grid;
    flex: 0 0 38px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 11px;
    color: var(--home-ink);
    background: #f2f7fc;
  }

  .home-quick-search__close svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2.2;
  }

  .home-quick-search__form {
    min-height: 54px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 8px;
    padding: 0 8px 0 14px;
    border: 1px solid #d8e5f2;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(31, 72, 119, 0.08);
  }

  .home-quick-search__form > svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: #254b7a;
    stroke-linecap: round;
    stroke-width: 2.1;
  }

  .home-quick-search__form input {
    width: 100%;
    min-width: 0;
    height: 50px;
    padding: 0;
    border: 0;
    outline: 0;
    color: var(--home-ink);
    background: transparent;
    font: inherit;
    font-size: 1rem;
  }

  .home-quick-search__clear {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 10px;
    color: #456384;
    background: #eef5fb;
    font-size: 1.2rem;
  }

  .home-quick-search__clear[hidden] {
    display: none !important;
  }

  .home-quick-search__chips {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .home-quick-search__chips::-webkit-scrollbar {
    display: none;
  }

  .home-quick-search__chips button {
    min-height: 36px;
    flex: 0 0 auto;
    padding: 7px 12px;
    border: 1px solid #dce7f2;
    border-radius: 12px;
    color: #204574;
    background: #f1f7fd;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 750;
  }

  .home-quick-search__status {
    min-height: 18px;
    color: #607693;
    font-size: 0.76rem;
    font-weight: 700;
  }

  .home-quick-search__results {
    min-height: 64px;
    max-height: min(34dvh, 285px);
    display: grid;
    gap: 7px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .home-quick-search__result {
    min-width: 0;
    min-height: 62px;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 10px;
    padding: 6px 8px 6px 6px;
    border: 1px solid #e1eaf3;
    border-radius: 14px;
    color: var(--home-ink);
    background: #fff;
    text-decoration: none;
  }

  .home-quick-search__result:is(:hover, :focus-visible, .is-active) {
    border-color: #f5a6c6;
    outline: 0;
    background: #fff8fb;
    box-shadow: 0 5px 15px rgba(244, 0, 97, 0.08);
  }

  .home-quick-search__result-media {
    width: 52px;
    height: 48px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 11px;
    color: var(--home-pink);
    background: linear-gradient(145deg, #fff0f6, #edf8ff);
    font-size: 1.25rem;
    font-weight: 950;
  }

  .home-quick-search__result-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .home-quick-search__result-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
  }

  .home-quick-search__result-copy strong,
  .home-quick-search__result-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-quick-search__result-copy strong {
    font-size: 0.9rem;
    line-height: 1.15;
  }

  .home-quick-search__result-copy small {
    color: #607693;
    font-size: 0.72rem;
  }

  .home-quick-search__result-chevron {
    color: #173864;
    font-size: 1.45rem;
  }

  .home-quick-search__empty {
    min-height: 74px;
    display: grid;
    place-items: center;
    padding: 14px;
    border-radius: 14px;
    color: #607693;
    background: #f5f9fd;
    font-size: 0.84rem;
    text-align: center;
  }

  .home-quick-search__all {
    min-height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(145deg, #ff0870, #ed005a);
    font-size: 0.85rem;
    font-weight: 850;
    text-decoration: none;
  }

  .home-quick-search__all[hidden] {
    display: none !important;
  }
}

@media (max-width: 374px) {
  body.home-page-v3 .site-header .brand {
    font-size: 1.18rem;
  }

  body.home-page-v3 .site-header .brand__mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    font-size: 1.55rem;
  }

  body.home-page-v3 .mobile-header-button--menu {
    width: 44px;
    padding: 0;
  }

  body.home-page-v3 .mobile-header-button--menu span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .home-mobile-v3__inner {
    width: calc(100% - 18px);
  }

  .home-activity-grid,
  .home-situation-grid {
    gap: 8px;
  }

  .home-activity-card__copy {
    min-height: 64px;
    padding-left: 9px;
  }

  .home-activity-card__copy strong {
    font-size: 0.98rem;
  }

  .home-activity-card__copy > span {
    font-size: 0.75rem;
  }

  .home-age-links {
    gap: 6px;
  }

  .home-age-link {
    min-height: 42px;
    font-size: 0.9rem;
  }

  .home-situation-card {
    padding-right: 21px;
    font-size: 0.88rem;
  }

  body.home-page-v3 .site-footer__inner {
    width: calc(100% - 18px);
    gap: 8px;
  }

  body.home-page-v3 .footer-nav {
    gap: 7px;
  }

  body.home-page-v3 .footer-nav a {
    font-size: 0.56rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-mobile-v3 *,
  .home-mobile-v3 *::before,
  .home-mobile-v3 *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .home-mobile-v3 {
    display: none !important;
  }
}
