@charset "UTF-8";

/* =========================================================
   «Моя лапочка» — Natural Sage с акцентами Soft Rose
   ========================================================= */
:root {
    --cream: #f8f5ed;
    --ivory: #fdfbf6;
    --sage: #dce7d6;
    --sage-light: #ebf0e5;
    --moss: #526b49;
    --deep: #344630;
    --text: #29321f;
    --muted: #4f5a48;
    --on-moss: #fdfbf6;
    --on-moss-muted: #dce6d3;
    --rose: #e7d3ce;
    --rose-light: #f4e9e5;
    --rose-ink: #8c5f55;
    --line: #d7ddcf;
    --shadow:
        0 1px 2px rgba(51, 61, 48, 0.05),
        0 14px 34px -18px rgba(51, 61, 48, 0.28);
    --serif: Georgia, 'Times New Roman', serif;
    --brand: 'Kurale', Georgia, serif;
    --sans:
        'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, Arial,
        sans-serif;
    --header: 84px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header) + 12px);
    -webkit-text-size-adjust: 100%;
}
html,
body {
    overflow-x: clip;
}
body {
    margin: 0;
    background: var(--cream);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
}
body.is-locked {
    overflow: hidden;
}
h1,
h2,
h3,
p {
    margin: 0;
}
h1,
h2,
h3 {
    font-family: var(--serif);
    font-weight: 400;
    text-wrap: balance;
}
h1 {
    font-size: clamp(38px, 4.6vw, 63px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}
h1 em {
    color: var(--moss);
}
h2 {
    font-size: clamp(32px, 3.4vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}
h3 {
    font-size: 24px;
    line-height: 1.25;
}
a {
    color: inherit;
    text-decoration: none;
}
button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}
button {
    cursor: pointer;
}
button,
a {
    -webkit-tap-highlight-color: transparent;
}
img {
    display: block;
    max-width: 100%;
}
svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linejoin: round;
    stroke-linecap: round;
    flex: none;
}
:focus-visible {
    outline: 3px solid #a77c71;
    outline-offset: 3px;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--moss);
    outline-offset: 1px;
}
[hidden] {
    display: none !important;
}

.wrap {
    width: min(1160px, calc(100% - 96px));
    margin-inline: auto;
}
.eyebrow {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 600;
    color: var(--moss);
    margin-bottom: 16px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    padding: 12px 24px;
    background: var(--moss);
    color: var(--on-moss);
    border: 1px solid var(--moss);
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    transition:
        background 0.2s,
        transform 0.2s,
        border-color 0.2s;
}
.button:hover {
    background: var(--deep);
    border-color: var(--deep);
    transform: translateY(-1px);
}
.button svg {
    width: 20px;
    height: 20px;
}
.button.secondary {
    background: transparent;
    color: var(--moss);
    border-color: #a9b79f;
}
.button.secondary:hover {
    background: var(--sage-light);
    border-color: var(--moss);
}
.button.soft {
    background: var(--sage-light);
    color: var(--deep);
    border-color: var(--sage);
}
.button.soft:hover {
    border-color: var(--moss);
    background: var(--sage-light);
}
.button.small {
    min-height: 44px;
    padding: 8px 16px;
    font-size: 14px;
}
.text-link {
    background: none;
    border: 0;
    border-bottom: 1px solid #9daa91;
    padding: 4px 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    display: inline-block;
}
.text-link:hover {
    color: var(--moss);
    border-color: var(--moss);
}

/* ---------- Шапка ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: color-mix(in srgb, var(--cream) 90%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.header.is-scrolled {
    border-bottom-color: var(--line);
}
.header-in {
    height: var(--header);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}
.header-in .desktop-nav {
    grid-column: 2;
}
.header-in .order-button {
    grid-column: 3;
    justify-self: end;
}
.brand-banner {
    width: 100%;
    padding: 26px 20px 24px;
    background: var(--sage);
    text-align: center;
}
.logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--brand);
    font-weight: 400;
    font-size: 31px;
    line-height: 1;
    white-space: nowrap;
    color: var(--deep);
}
.logo span {
    display: block;
    font-family: var(--sans);
    font-style: normal;
    font-weight: 600;
    font-size: 23px;
    letter-spacing: 0;
    line-height: 1.15;
    margin-top: 2px;
    color: var(--deep);
}
.brand-banner .logo {
    align-items: flex-start;
    font-size: 46px;
}
.brand-banner .logo span {
    font-family: var(--sans);
    font-style: normal;
    font-weight: 400;
    font-size: 19.2px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 1px;
    color: var(--muted);
}
.desktop-nav {
    display: flex;
    gap: 6px;
    font-weight: 600;
    font-size: 15px;
}
.desktop-nav a {
    padding: 8px 14px;
    border-radius: 999px;
    color: #000;
    transition:
        background 0.2s,
        color 0.2s;
}
.desktop-nav a:hover,
.desktop-nav a.is-active {
    color: #000;
    background: var(--sage-light);
}
.order-button {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    background: var(--ivory);
    border: 1px solid var(--line);
    padding: 8px 10px 8px 16px;
    border-radius: 999px;
    font-size: 15px;
    transition: border-color 0.2s;
}
.order-button:hover {
    border-color: var(--moss);
}
.order-button svg {
    color: var(--moss);
}
/* круглые кнопки-иконки: заказ и меню в шапке телефона */
.icon-button {
    position: relative;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--deep);
    transition: background 0.2s;
}
.icon-button:hover {
    background: rgba(253, 251, 246, 0.7);
}
.icon-button svg {
    width: 25px;
    height: 25px;
}
.icon-button .count {
    position: absolute;
    right: 0;
    top: 3px;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    font-size: 11px;
}
.icon-button .count[data-zero='1'] {
    display: none;
}
.banner-actions,
.bar-logo,
.bar-only {
    display: none;
}

/* меню на телефоне: панель справа */
.menu-sheet {
    position: fixed;
    inset: 0 0 0 auto;
    margin: 0;
    width: min(360px, 86%);
    height: 100dvh;
    max-height: none;
    max-width: none;
    padding: 14px 20px calc(22px + env(safe-area-inset-bottom));
    border: 0;
    background: var(--cream);
    color: var(--text);
    box-shadow: -20px 0 60px rgba(47, 57, 43, 0.2);
}
.menu-sheet[open] {
    display: flex;
    flex-direction: column;
    animation: slide-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.menu-sheet::backdrop {
    background: rgba(41, 52, 34, 0.42);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.menu-logo {
    font-family: var(--brand);
    font-size: 25px;
    line-height: 1;
    color: var(--deep);
}
.menu-links {
    display: grid;
}
.menu-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 4px;
    border-bottom: 1px solid var(--line);
    font-family: var(--serif);
    font-weight: 400;
    font-size: 21px;
    line-height: 1.25;
}
.menu-links a.is-active {
    color: var(--moss);
}
.menu-links svg {
    width: 18px;
    height: 18px;
    color: var(--moss);
}
.menu-tg {
    margin-top: auto;
    background: #229ed9;
    border-color: #229ed9;
    color: #fff;
}
.menu-tg:hover {
    background: #1688bf;
    border-color: #1688bf;
}
.count {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--moss);
    color: var(--on-moss);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}
.count[data-zero='1'] {
    background: var(--sage);
    color: var(--muted);
}
.count.bump {
    animation: bump 0.35s ease;
}
@keyframes bump {
    40% {
        transform: scale(1.25);
    }
}

/* ---------- Арки для фото ----------
   Верх арки — ровный полукруг: радиус считается от ширины контейнера (cqw),
   поэтому не искажается при любых пропорциях. Без поворотов. */
.arch-host {
    display: block;
    width: 100%;
    container-type: inline-size;
}
.arch {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--sage);
    border-radius: 50% 50% 22px 22px / 40% 40% 22px 22px;
    border-radius: 50cqw 50cqw 22px 22px;
}
.arch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Первый экран ---------- */
.hero {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 56px;
    padding-block: 36px 72px;
}
.hero-copy > p {
    margin-top: 24px;
    max-width: 460px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 26px;
    margin-top: 30px;
}
.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}
.hero-facts li {
    font-size: 13px;
    color: var(--muted);
    background: var(--ivory);
    border: 1px solid var(--line);
    padding: 5px 13px;
    border-radius: 999px;
}
.hero-facts li::before {
    content: '✳';
    color: #8a9d7f;
    margin-right: 7px;
}

.hero-visual {
    position: relative;
    width: min(100%, 430px);
    margin-inline: auto;
    container-type: inline-size;
}
.hero-arch {
    z-index: 1;
    border-radius: 50% 50% 26px 26px / 40% 40% 26px 26px;
    border-radius: 50cqw 50cqw 26px 26px;
    box-shadow: var(--shadow);
}
.hero-arch img {
    object-position: 55% 60%;
}
/* паспарту: концентричная арка на 16px шире фото */
.arch-back {
    position: absolute;
    inset: -16px;
    background: var(--sage);
    border-radius: calc(50cqw + 16px) calc(50cqw + 16px) 42px 42px;
}
.rose-dot {
    position: absolute;
    z-index: 0;
    right: -38px;
    top: 64px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--rose);
}
.sprig {
    position: absolute;
    z-index: 2;
    left: -54px;
    top: 18%;
    width: 74px;
    height: auto;
    color: #8fa584;
    fill: currentColor;
    stroke: none;
    opacity: 0.75;
}
.sprig path:first-child {
    fill: none;
    stroke: currentColor;
}
.photo-note small {
    display: block;
    font-family: var(--sans);
    font-style: normal;
    font-weight: 400;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--moss);
    margin-bottom: 2px;
}
.photo-note {
    position: absolute;
    z-index: 3;
    left: -46px;
    bottom: 34px;
    background: var(--ivory);
    padding: 12px 22px 14px;
    font-family: var(--brand);
    font-weight: 400;
    font-size: 24px;
    line-height: 1.15;
    color: var(--deep);
    box-shadow: var(--shadow);
    border-radius: 14px;
    border-left: 3px solid var(--rose);
}

/* ---------- Ботанический декор ----------
   Веточки лежат под контентом, бледные и не мешают кликам. */
.decor {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    width: auto;
    height: auto;
    stroke: none;
    fill: none;
}
.hero-branch {
    z-index: 3;
    width: 170px;
    height: 60px;
    right: -64px;
    bottom: -34px;
    color: #8fa584;
}
.how-section {
    position: relative;
    overflow: hidden;
}
.how-section > .wrap {
    position: relative;
    z-index: 1;
}
.how-sprig {
    width: 230px;
    height: 306px;
    right: -46px;
    bottom: -56px;
    color: var(--on-moss);
    opacity: 0.08;
}
.faq-branch {
    position: static;
    display: block;
    width: 190px;
    height: 66px;
    margin-top: 30px;
    color: #a9b79f;
}
.footer-quote {
    position: relative;
}

/* ---------- Секция-заголовок ---------- */
.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 34px;
}
.section-heading > p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.65;
    max-width: 340px;
}

/* ---------- Уход ---------- */
.care-section {
    background: var(--sage);
    padding: 64px 0 68px;
}
.pets {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}
.pet {
    display: grid;
    gap: 10px;
    justify-items: center;
    background: none;
    border: 0;
    padding: 0;
    text-align: center;
}
.pet .arch {
    width: 100%;
    border-radius: 50% 50% 18px 18px / 40% 40% 18px 18px;
    border-radius: 50cqw 50cqw 18px 18px;
    outline: 2px solid transparent;
    outline-offset: 5px;
    transition:
        outline-color 0.2s,
        transform 0.25s;
}
.pet .arch img {
    filter: saturate(0.85);
    transition:
        filter 0.2s,
        transform 0.4s;
}
.pet:hover .arch img {
    transform: scale(1.04);
}
/* высота подписи — на две строки у всех, текст по центру: плашка выбранного не «прыгает» */
.pet-name {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: calc(2 * 1.2em + 10px);
    font-family: var(--serif);
    font-weight: 400;
    font-size: 19px;
    line-height: 1.2;
}
.pet-name > span {
    padding: 5px 12px;
    border-radius: 14px;
    transition:
        background 0.2s,
        color 0.2s;
}
.pet[aria-pressed='true'] .arch {
    outline-color: var(--moss);
}
.pet[aria-pressed='true'] .arch img {
    filter: none;
}
.pet[aria-pressed='true'] .pet-name > span {
    background: var(--moss);
    color: var(--on-moss);
}
.pet:focus-visible {
    outline: none;
}
body[data-page='pets'] .care-section h1 {
    font-size: clamp(32px, 3.4vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}
body[data-page='pets'] .pets {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 56px;
    margin-inline: auto;
    margin-bottom: 44px;
}
body[data-page='pets'] .pet-name {
    font-size: 25px;
    min-height: 0;
}
.pet:focus-visible .arch {
    outline-color: #a77c71;
}

/* ряд малышей выбранного вида — между карточками питомцев и рамкой guide */
.pet-babies {
    margin-bottom: 28px;
    padding: 24px 26px 26px;
    background: var(--ivory);
    border-radius: 26px;
    box-shadow: var(--shadow);
}
.pet-babies-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.pet-babies-head h3 {
    font-size: 30px;
}
.pet-babies-head span {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 600;
    color: var(--moss);
}
.pet-babies .baby {
    background: var(--cream);
    box-shadow: none;
    border: 1px solid var(--line);
}
.pet-babies .babies-empty {
    background: var(--cream);
}
.guide {
    display: grid;
    grid-template-columns: 360px 1fr;
    background: var(--ivory);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.guide-top {
    position: relative;
    overflow: hidden;
    background: var(--moss);
    color: var(--on-moss);
    padding: 34px 30px;
}
.guide-top .eyebrow {
    color: var(--on-moss-muted);
    margin-bottom: 10px;
}
.guide-top h3 {
    font-size: 34px;
    line-height: 1.1;
    position: relative;
}
.guide-top > p {
    margin-top: 14px;
    color: var(--on-moss-muted);
    font-size: 15px;
    line-height: 1.7;
    position: relative;
}
.guide-top .sprig-bg {
    position: absolute;
    right: -22px;
    top: -12px;
    width: 140px;
    height: auto;
    opacity: 0.14;
    color: var(--on-moss);
    fill: currentColor;
    stroke: none;
}
.guide-top .sprig-bg path:first-child {
    fill: none;
    stroke: currentColor;
}
.source-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    font-size: 13px;
    color: var(--on-moss-muted);
    border-bottom: 1px solid rgba(220, 230, 211, 0.4);
    position: relative;
}
.source-link:hover {
    color: var(--on-moss);
}

.memos {
    padding: 12px 26px 14px;
}
.memo {
    border-bottom: 1px solid var(--line);
    scroll-margin-top: calc(var(--header) + 16px);
}
.memo:last-child {
    border-bottom: 0;
}
.memo summary {
    list-style: none;
    display: grid;
    grid-template-columns: 46px 1fr 24px;
    gap: 16px;
    align-items: center;
    padding: 18px 4px;
    cursor: pointer;
}
.memo summary::-webkit-details-marker {
    display: none;
}
.memo-ico {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    background: var(--sage-light);
    color: var(--moss);
    display: grid;
    place-items: center;
    transition: background 0.2s;
}
.memo summary:hover .memo-ico,
.memo[open] .memo-ico {
    background: var(--sage);
}
.memo-t strong {
    display: block;
    font-family: var(--serif);
    font-weight: 400;
    font-size: 23px;
    line-height: 1.25;
}
.memo-t small {
    display: block;
    font-size: 14px;
    color: var(--muted);
    margin-top: 2px;
}
.chev {
    color: var(--moss);
    transition: transform 0.25s;
}
.memo[open] .chev,
.faq-list details[open] .chev {
    transform: rotate(180deg);
}
.memo-body {
    display: grid;
    gap: 14px;
    padding: 0 4px 24px 66px;
}
.memo-body .lead {
    font-size: 17px;
    line-height: 1.65;
}
.memo-body ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}
.memo-body li {
    position: relative;
    padding-left: 24px;
    color: var(--muted);
}
.memo-body li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.6em;
    width: 9px;
    height: 9px;
    border-radius: 50% 0;
    background: #8fa584;
    transform: rotate(-10deg);
}
.avoid {
    background: var(--rose-light);
    border: 1px solid var(--rose);
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 15px;
}
.avoid b {
    display: block;
    color: var(--rose-ink);
    margin-bottom: 4px;
    font-weight: 600;
}
.memo-note {
    font-size: 15px;
    color: var(--muted);
    font-style: italic;
}
.memo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}
.guide-foot {
    grid-column: 1 / -1;
    padding: 15px 26px 17px;
    font-size: 14px;
    color: var(--muted);
    background: var(--sage-light);
    border-top: 1px solid var(--line);
}

/* ---------- Каталог ---------- */
.catalog-section {
    padding: 72px 0;
}
.chip {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--ivory);
    font-size: 14px;
    transition:
        border-color 0.2s,
        background 0.2s;
}
.chip:hover {
    border-color: var(--moss);
}
.chip[aria-pressed='true'] {
    background: var(--sage);
    border-color: var(--moss);
    color: var(--deep);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.group-title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 26px;
}
.group-title span {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--muted);
}
.pet-food .product-group + .product-group {
    margin-top: 40px;
}
.product {
    display: flex;
    flex-direction: column;
    background: var(--ivory);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    animation: fade-in 0.3s ease both;
}
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
}
.product-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--sage-light);
    overflow: hidden;
}
.product-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.product:hover .product-visual img {
    transform: scale(1.03);
}
.product-tag {
    position: absolute;
    left: 12px;
    top: 12px;
    background: rgba(248, 245, 237, 0.92);
    border-radius: 999px;
    padding: 4px 11px;
    font-size: 12px;
}
.product-copy {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
    padding: 20px 22px 22px;
}
.product-copy h3 {
    font-size: 25px;
    line-height: 1.18;
}
.product-purpose {
    font-size: 15px;
    color: var(--muted);
    margin-top: -6px;
}
.spec {
    display: grid;
    gap: 8px;
    margin: 0;
    font-size: 14px;
}
.spec div {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}
.spec dt {
    color: var(--muted);
}
.spec dd {
    margin: 0;
}
.spec .missing {
    color: var(--muted);
    font-style: italic;
}
.spec .spec-wide {
    grid-template-columns: 1fr;
    gap: 4px;
}
.composition {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    cursor: pointer;
    line-height: 1.55;
}
.composition.is-open {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: none;
    cursor: auto;
}
.more-button {
    margin-top: 4px;
    padding: 2px 0;
    background: none;
    border: 0;
    border-bottom: 1px dashed var(--moss);
    color: var(--moss);
    font-size: 13px;
    font-weight: 600;
}
.more-button:hover {
    color: var(--deep);
}
.variants {
    border: 0;
    margin: 0;
    padding: 0;
}
.variants legend {
    font-size: 14px;
    color: var(--muted);
    padding: 0;
    margin-bottom: 8px;
}
.vopts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.vopt {
    position: relative;
}
.vopt input {
    position: absolute;
    inset: 0;
    opacity: 0;
    margin: 0;
    cursor: pointer;
}
.vopt span {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 44px;
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--cream);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    transition:
        border-color 0.2s,
        background 0.2s;
}
.vopt small {
    font-weight: 400;
    font-size: 12px;
    color: var(--muted);
}
.vopt input:checked + span {
    border-color: var(--moss);
    background: var(--sage);
}
.vopt input:focus-visible + span {
    outline: 3px solid #a77c71;
    outline-offset: 2px;
}
.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.price {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.35;
}
.price svg {
    width: 18px;
    height: 18px;
    color: var(--moss);
}
.price span {
    color: var(--text);
    font-size: 14px;
}
.price b {
    display: block;
    font-family: var(--serif);
    font-weight: 400;
    font-size: 22px;
    line-height: 1.15;
    color: var(--deep);
}
.price b.none {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--text);
}
.price small {
    display: block;
    font-size: 13px;
    color: var(--muted);
}
.add-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 8px 16px;
    flex-shrink: 0;
    border: 1px solid var(--moss);
    border-radius: 999px;
    background: transparent;
    color: var(--moss);
    font-size: 14px;
    font-weight: 600;
    transition:
        background 0.2s,
        color 0.2s;
}
.add-button svg {
    width: 18px;
    height: 18px;
}
.add-button:hover {
    background: var(--sage-light);
}
.add-button.in-list {
    background: var(--moss);
    color: var(--on-moss);
}
.add-button.in-list:hover {
    background: var(--deep);
}
.empty-cat {
    grid-column: 1 / -1;
    padding: 34px;
    text-align: center;
    color: var(--muted);
    background: var(--ivory);
    border: 1px dashed var(--line);
    border-radius: 20px;
}
.empty-cat .button {
    margin-top: 14px;
}
.catalog-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 28px;
}
.catalog-bottom p {
    font-size: 15px;
    color: var(--muted);
}

/* ---------- Как заказать ---------- */
.how-section {
    background: var(--moss);
    color: var(--on-moss);
    padding: 68px 0;
}
.how-section .eyebrow {
    color: var(--on-moss-muted);
}
.how-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
}
.how-layout > div > p {
    color: var(--on-moss-muted);
    font-size: 16px;
    margin: 20px 0 26px;
    max-width: 420px;
}
.light-button {
    background: var(--ivory);
    border-color: var(--ivory);
    color: var(--deep);
}
.light-button:hover {
    background: var(--sage);
    border-color: var(--sage);
}
.steps {
    list-style: none;
    padding: 0;
    margin: 0;
}
.steps li {
    display: flex;
    gap: 26px;
    padding: 22px 0;
    border-bottom: 1px solid rgba(238, 245, 227, 0.22);
}
.steps li:first-child {
    padding-top: 4px;
}
.steps li:last-child {
    border-bottom: 0;
}
.steps li > span {
    flex: none;
    min-width: 38px;
    font-family: var(--serif);
    font-weight: 400;
    font-style: italic;
    font-size: 27px;
    color: #cedbc2;
}
.steps p {
    font-size: 15px;
    color: var(--on-moss-muted);
    margin-top: 6px;
    line-height: 1.7;
}

/* ---------- Вопросы ---------- */
.faq-section {
    display: grid;
    grid-template-columns: 0.85fr 1.4fr;
    gap: 80px;
    padding-block: 76px;
}
.faq-intro {
    align-self: start;
    position: sticky;
    top: calc(var(--header) + 24px);
}
.faq-intro p {
    margin-top: 20px;
    color: var(--muted);
    font-size: 16px;
}
.faq-list details {
    border-bottom: 1px solid var(--line);
}
.faq-list summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.45;
}
.faq-list summary::-webkit-details-marker {
    display: none;
}
.faq-list details p {
    font-size: 15px;
    color: var(--muted);
    margin: -4px 40px 20px 0;
    line-height: 1.7;
}

/* ---------- Подвал ---------- */
.footer {
    background: var(--sage-light);
    border-top: 1px solid var(--line);
    padding: 40px 0 22px;
}
.footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
}
.footer-brand {
    display: grid;
    gap: 18px;
}
.socials {
    display: flex;
    gap: 8px;
}
.social {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ivory);
    border: 1px solid var(--line);
    color: var(--moss);
    transition:
        background 0.2s,
        color 0.2s,
        border-color 0.2s;
}
a.social:hover {
    background: var(--moss);
    border-color: var(--moss);
    color: var(--on-moss);
}
.social.is-soon {
    cursor: default;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    font-size: 14px;
    margin-top: 8px;
}
.footer-links a:hover {
    color: var(--moss);
    text-decoration: underline;
}
.footer-top > p {
    font-family: var(--serif);
    font-weight: 400;
    font-style: italic;
    font-size: 20px;
    line-height: 1.4;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
}

.telegram-contact,
.floating-order {
    position: fixed;
    bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 25;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}
.telegram-contact {
    right: 18px;
    background: #229ed9;
    color: #fff;
}
/* заказ на компьютере — в шапке; плавающая кнопка только до 1100 px */
.floating-order {
    display: none;
    right: 18px;
    background: #fff;
    color: var(--deep);
    border-color: var(--line);
}
.floating-order:hover {
    background: var(--ivory);
    border-color: var(--moss);
}
.floating-order > svg {
    width: 27px;
    height: 27px;
}
.floating-order .count {
    position: absolute;
    right: -3px;
    top: -3px;
    border: 2px solid var(--cream);
    background: var(--moss);
    color: var(--on-moss);
}
.floating-order .count[data-zero='1'] {
    display: none;
}
.telegram-contact svg {
    width: 29px;
    height: 29px;
}
.telegram-contact:hover {
    background: #1688bf;
}
.skip-link {
    position: fixed;
    top: -100px;
    left: 20px;
    z-index: 50;
    padding: 12px 16px;
    background: var(--deep);
    color: white;
    border-radius: 12px;
}
.skip-link:focus {
    top: 10px;
}

/* ---------- Список заказа (выдвижная панель) ---------- */
.drawer {
    position: fixed;
    inset: 0 0 0 auto;
    margin: 0;
    width: min(480px, 100%);
    height: 100dvh;
    max-height: none;
    max-width: none;
    padding: 0;
    border: 0;
    background: var(--cream);
    color: var(--text);
    box-shadow: -20px 0 60px rgba(47, 57, 43, 0.2);
    border-radius: 26px 0 0 26px;
    overflow: hidden;
}
.drawer[open] {
    display: flex;
    flex-direction: column;
    animation: slide-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.drawer::backdrop {
    background: rgba(41, 52, 34, 0.42);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
@keyframes slide-in {
    from {
        transform: translateX(100%);
    }
}
.drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 24px 18px;
    border-bottom: 1px solid var(--line);
}
.drawer-head .eyebrow {
    margin-bottom: 6px;
}
.drawer-head h2 {
    font-size: 34px;
}
.close-button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--ivory);
}
.close-button:hover {
    border-color: var(--moss);
}
.drawer-body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 24px 22px;
    display: grid;
    gap: 18px;
    align-content: start;
}
.drawer-foot {
    padding: 14px 24px calc(18px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--ivory);
    display: grid;
    gap: 10px;
}

.items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 14px;
    background: var(--ivory);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 12px;
}
.item > img {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    object-fit: cover;
}
.item-top {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    justify-content: space-between;
}
.item-top strong {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 19px;
    line-height: 1.25;
}
.item-top small {
    display: block;
    font-size: 13px;
    color: var(--muted);
}
.item-top small b {
    color: var(--deep);
    font-weight: 600;
}
.order-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--ivory);
    border: 1px dashed #a9b79f;
}
.order-total span {
    font-size: 15px;
    font-weight: 600;
}
.order-total small {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
}
.order-total b {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 26px;
    color: var(--deep);
    white-space: nowrap;
}
.del {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    margin: -4px -4px 0 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--rose-ink);
}
.del:hover {
    background: var(--rose-light);
}
.del svg {
    width: 18px;
    height: 18px;
}
.item-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}
.sel {
    flex: 1;
    min-width: 130px;
    min-height: 42px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--cream);
    padding: 0 10px;
    font-size: 14px;
}
.qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: var(--cream);
}
.qty button {
    width: 42px;
    height: 40px;
    border: 0;
    background: none;
    font-size: 20px;
    line-height: 1;
    color: var(--moss);
}
.qty button:hover:not(:disabled) {
    background: var(--sage-light);
}
.qty button:disabled {
    opacity: 0.35;
    cursor: default;
}
.qty output {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
}

.field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}
.field .optional {
    font-size: 12px;
    color: var(--muted);
    font-weight: 400;
    margin-left: 4px;
}
.field input,
.field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--ivory);
    padding: 11px 13px;
    font-size: 16px;
    line-height: 1.5;
}
.field textarea {
    resize: vertical;
    min-height: 84px;
}
.fields {
    display: grid;
    gap: 14px;
}

/* превью сообщения в Telegram */
.tg-preview {
    background: var(--sage);
    border-radius: 20px;
    padding: 14px 14px 16px;
}
.tg-preview-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    padding: 0 4px;
}
.tg-preview-head label {
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.tg-preview-head label svg {
    width: 17px;
    height: 17px;
    color: var(--moss);
}
.tg-preview-head span {
    font-size: 12px;
    color: var(--muted);
}
.tg-bubble {
    position: relative;
    margin: 0 0 0 auto;
    max-width: 94%;
    background: var(--ivory);
    border-radius: 16px 16px 4px 16px;
    box-shadow: 0 1px 1px rgba(51, 61, 48, 0.08);
}
.tg-bubble:focus-within {
    box-shadow: 0 0 0 2px var(--moss);
}
.tg-bubble textarea {
    display: block;
    width: 100%;
    min-height: 120px;
    padding: 12px 14px 22px;
    border: 0;
    border-radius: inherit;
    background: transparent;
    resize: none;
    overflow: hidden;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.5;
}
.tg-bubble textarea:focus-visible {
    outline: none;
}
.msg-edited {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    margin-top: 10px;
    padding: 0 4px;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--muted);
}
.msg-edited.warn {
    color: var(--rose-ink);
}
.msg-edited .linkish {
    font-size: 12.5px;
}
.tg-bubble::after {
    content: 'черновик';
    position: absolute;
    right: 12px;
    bottom: 5px;
    font-size: 11px;
    color: var(--muted);
}

.drawer-note {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}
.drawer-actions {
    display: grid;
    gap: 8px;
}
.drawer-actions .button {
    padding-inline: 14px;
}
.status {
    display: none;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 14px;
    padding: 10px 12px;
    background: var(--sage-light);
    border: 1px solid var(--sage);
}
.status.show {
    display: block;
}
.status.warn {
    background: var(--rose-light);
    border-color: var(--rose);
    color: var(--rose-ink);
}
.linkish {
    justify-self: start;
    background: none;
    border: 0;
    padding: 6px 0;
    font-size: 14px;
    color: var(--muted);
    text-decoration: underline;
}
.linkish:hover {
    color: var(--rose-ink);
}

.order-empty {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 24px 10px;
    text-align: center;
}
.order-empty .arch-host {
    width: 150px;
}
.order-empty h3 {
    font-size: 26px;
}
.order-empty p {
    color: var(--muted);
    max-width: 30ch;
}

/* ---------- Уведомление ---------- */
/* ширина — по тексту, а не половина экрана (иначе left: 50% сжимает плашку) */
.toast {
    position: fixed;
    z-index: 60;
    left: 50%;
    bottom: 28px;
    transform: translate(-50%, 16px);
    width: max-content;
    max-width: calc(100% - 32px);
    background: var(--deep);
    color: white;
    border-radius: 999px;
    padding: 11px 20px;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.2s,
        transform 0.2s;
    text-align: center;
}
.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}
.drawer .toast {
    position: absolute;
    bottom: 150px;
}

/* ---------- Меню «Питомцы» в шапке ---------- */
.nav-pets {
    position: relative;
}
.nav-pets summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 10px 8px 14px;
    border-radius: 999px;
    color: #000;
    cursor: pointer;
    transition:
        background 0.2s,
        color 0.2s;
}
.nav-pets summary::-webkit-details-marker {
    display: none;
}
.nav-pets summary svg {
    width: 18px;
    height: 18px;
}
.nav-pets summary:hover,
.nav-pets summary.is-active,
.nav-pets[open] summary {
    color: #000;
    background: var(--sage-light);
}
.nav-pets[open] .chev {
    transform: rotate(180deg);
}
.nav-pop {
    position: absolute;
    left: 0;
    top: calc(100% + 10px);
    z-index: 40;
    display: grid;
    gap: 2px;
    min-width: 260px;
    padding: 8px;
    background: var(--ivory);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
}
.desktop-nav .nav-pop a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 10px 6px 6px;
    border-radius: 14px;
    color: #000;
}
.desktop-nav .nav-pop a:hover,
.desktop-nav .nav-pop a[aria-current] {
    background: var(--sage-light);
}
.nav-thumb {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 50%;
    overflow: hidden;
    background: var(--sage);
}
.nav-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nav-thumb .photo-placeholder small,
.useful-thumb .photo-placeholder small {
    display: none;
}
.desktop-nav .nav-pop .nav-all {
    justify-content: space-between;
    margin-top: 4px;
    padding: 10px 12px;
    border-top: 1px solid var(--line);
    border-radius: 0 0 14px 14px;
    color: #000;
    font-size: 14px;
}
.nav-all svg {
    width: 18px;
    height: 18px;
}

/* заглушка, пока нет фото вида */
.photo-placeholder {
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 6px;
    width: 100%;
    height: 100%;
    color: var(--moss);
    background: radial-gradient(
        circle at 50% 40%,
        var(--sage-light),
        var(--sage)
    );
}
.photo-placeholder svg {
    width: 42cqw;
    height: auto;
    max-width: 120px;
    min-width: 22px;
    stroke-width: 1.1;
}
.photo-placeholder small {
    font-size: 12px;
    color: var(--muted);
}
.nav-thumb .photo-placeholder svg,
.useful-thumb .photo-placeholder svg {
    width: 24px;
    min-width: 0;
}

/* ---------- Главная: краткая карточка питомца ---------- */
.guide-toc {
    padding: 18px 26px 20px;
}
.toc-head {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 600;
    color: var(--moss);
    padding: 6px 4px 8px;
}
.toc-item {
    display: grid;
    grid-template-columns: 46px 1fr 22px;
    gap: 16px;
    align-items: center;
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
}
.toc-item:last-child {
    border-bottom: 0;
}
.toc-item:hover .memo-ico {
    background: var(--sage);
}
.toc-item:hover .memo-t strong {
    color: var(--moss);
}
.toc-arrow {
    color: var(--moss);
    width: 20px;
    height: 20px;
    transition: transform 0.2s;
}
.toc-item:hover .toc-arrow {
    transform: translateX(3px);
}
.guide-toc .memo-t strong {
    font-size: 21px;
}

/* ---------- Полезное ---------- */
.useful-section {
    padding-block: 8px 76px;
}
.useful-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.useful-card {
    display: grid;
    grid-template-columns: 64px 1fr 22px;
    gap: 16px;
    align-items: center;
    padding: 16px 18px 16px 16px;
    background: var(--ivory);
    border: 1px solid var(--line);
    border-radius: 20px;
    transition:
        border-color 0.2s,
        transform 0.2s;
}
.useful-card:hover {
    border-color: var(--moss);
    transform: translateY(-2px);
}
.useful-thumb {
    display: grid;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--sage);
}
.useful-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.useful-copy {
    display: grid;
    gap: 2px;
}
.useful-pet {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--moss);
}
.useful-copy strong {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 19px;
    line-height: 1.25;
}
.useful-copy small {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.45;
}
.useful-arrow {
    color: var(--moss);
    width: 20px;
    height: 20px;
}

/* ---------- Карточка товара: одна фасовка и пометки ---------- */
.single-variant {
    display: flex;
    gap: 10px;
    font-size: 14px;
}
.single-variant span {
    color: var(--muted);
}
.product-note {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--deep);
    background: var(--sage-light);
    border-radius: 12px;
    padding: 10px 12px;
}

/* ---------- Страница питомца ---------- */
.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 18px;
    font-size: 14px;
    color: var(--muted);
}
.crumbs a:hover {
    color: var(--moss);
    text-decoration: underline;
}
.crumbs [aria-current] {
    color: var(--text);
}
.pet-hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 56px;
    padding-block: 28px 56px;
}
.pet-hero h1 {
    font-size: clamp(42px, 5vw, 66px);
}
.pet-hero-sub {
    margin-top: 8px;
    font-family: var(--serif);
    font-weight: 400;
    font-style: italic;
    font-size: 24px;
    color: var(--moss);
}
.pet-hero-copy > p:not(.pet-hero-sub) {
    margin-top: 18px;
    max-width: 480px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
}
.pet-hero-visual {
    position: relative;
    width: min(100%, 400px);
    margin-inline: auto;
    container-type: inline-size;
}

.article-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 56px;
    align-items: start;
    padding-bottom: 72px;
}
.toc {
    position: sticky;
    top: calc(var(--header) + 20px);
}
.toc-box {
    background: var(--ivory);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 6px 8px 10px;
}
.toc-box summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 600;
    color: var(--moss);
    cursor: pointer;
}
.toc-box summary::-webkit-details-marker {
    display: none;
}
.toc-box[open] summary .chev {
    transform: rotate(180deg);
}
.toc-box ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 2px;
}
.toc-box a {
    display: block;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.35;
    color: var(--muted);
    border-left: 2px solid transparent;
    transition:
        background 0.2s,
        color 0.2s;
}
.toc-box a:hover {
    background: var(--sage-light);
    color: var(--text);
}
.toc-box a.is-active {
    color: var(--deep);
    background: var(--sage-light);
    border-left-color: var(--moss);
    border-radius: 4px 12px 12px 4px;
}

.article {
    display: grid;
    gap: 20px;
    min-width: 0;
}
.article-section {
    background: var(--ivory);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 28px 32px 30px;
    scroll-margin-top: calc(var(--header) + 16px);
}
.article-head {
    position: relative;
    display: grid;
    grid-template-columns: 46px 1fr 44px 22px;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}
.article-head h2 {
    font-size: clamp(26px, 2.6vw, 32px);
}
/* весь заголовок раздела нажимается: кнопка растянута на него псевдоэлементом */
.article-toggle {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.article-toggle::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 16px;
}
.article-toggle:focus-visible {
    outline: none;
}
.article-toggle:focus-visible::after {
    outline: 2px solid var(--moss);
    outline-offset: 2px;
}
.article-head:hover h2 {
    color: var(--moss);
}
.article-head .copy-link {
    position: relative;
    z-index: 1;
}
.article-chev {
    width: 22px;
    height: 22px;
    color: var(--moss);
    transition: transform 0.2s;
}
.article-section.is-open .article-chev {
    transform: rotate(180deg);
}
/* свёрнутый раздел: только заголовок, без кнопки ссылки */
.article-section:has(.article-toggle):not(.is-open) {
    padding-block: 20px;
}
.article-section:has(.article-toggle):not(.is-open) .article-head {
    grid-template-columns: 46px 1fr 22px;
    margin-bottom: 0;
}
.article-section:has(.article-toggle):not(.is-open) .copy-link {
    display: none;
}
.article-body[hidden]:not([hidden='until-found']) {
    display: none;
}
.article-head p {
    font-size: 14px;
    color: var(--muted);
    margin-top: 2px;
}
.copy-link {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--moss);
    transition:
        border-color 0.2s,
        background 0.2s;
}
.copy-link:hover {
    border-color: var(--moss);
    background: var(--sage-light);
}
.copy-link svg {
    width: 19px;
    height: 19px;
}
.article-body {
    display: grid;
    gap: 14px;
    max-width: 720px;
    padding-left: 62px;
}
.article-body .lead {
    font-size: 18px;
    line-height: 1.65;
}
.article-body p {
    line-height: 1.75;
}
.article-body h3 {
    margin-top: 10px;
    font-size: 22px;
}
.article-body ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}
.article-body li {
    position: relative;
    padding-left: 24px;
    line-height: 1.65;
}
.article-body li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.62em;
    width: 9px;
    height: 9px;
    border-radius: 50% 0;
    background: #8fa584;
    transform: rotate(-10deg);
}
.article-body li b,
.article-body p b {
    font-weight: 700;
    color: var(--deep);
}
.article-body .note {
    font-size: 15px;
    color: var(--muted);
    font-style: italic;
}
.article-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.callout {
    display: grid;
    gap: 8px;
    border-radius: 16px;
    padding: 16px 18px;
    font-size: 15.5px;
}
.callout > b {
    font-weight: 600;
}
.callout.avoid,
.callout.warn {
    background: var(--rose-light);
    border: 1px solid var(--rose);
}
.callout.avoid > b,
.callout.warn > b {
    color: var(--rose-ink);
}
.callout.tip {
    background: var(--sage-light);
    border: 1px solid var(--sage);
}
.callout.tip > b {
    color: var(--moss);
}
.callout li::before {
    background: var(--rose-ink);
    opacity: 0.55;
}
.callout.tip li::before {
    background: #8fa584;
    opacity: 1;
}
.article-foot {
    font-size: 14px;
    color: var(--muted);
    padding: 4px 8px;
}
.article-foot a {
    display: inline-block;
    margin-top: 6px;
    color: var(--moss);
    text-decoration: underline;
}

.babies-section {
    position: relative;
    overflow: hidden;
    background: var(--sage);
    padding: 64px 0 68px;
    scroll-margin-top: var(--header);
}
.babies-section > .wrap {
    position: relative;
    z-index: 1;
}
.babies-branch {
    width: 300px;
    height: 105px;
    right: -50px;
    top: -10px;
    color: #c4d4ba;
    --berry: #e3cbc5;
}
.babies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.baby {
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 14px 14px 18px;
    background: var(--ivory);
    border-radius: 22px;
    box-shadow: var(--shadow);
}
.baby-photo {
    position: relative;
}
.baby-photo .arch {
    border-radius: 50% 50% 16px 16px / 40% 40% 16px 16px;
    border-radius: 50cqw 50cqw 16px 16px;
}
.baby-status {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    background: var(--moss);
    color: var(--on-moss);
}
.baby.is-reserved .baby-status {
    background: var(--rose);
    color: #5e4540;
}
.baby.is-reserved .arch img {
    filter: grayscale(0.35);
}
.baby h3 {
    font-size: 26px;
    padding: 4px 4px 0;
}
.baby-facts {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0 4px;
    font-size: 14px;
}
.baby-facts div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 4px;
    border-bottom: 1px dashed var(--line);
}
.baby-facts dt {
    color: var(--muted);
}
.baby-facts dd {
    margin: 0;
    text-align: right;
}
.baby-price {
    padding: 2px 4px;
    font-family: var(--serif);
    font-weight: 400;
    font-size: 18px;
    color: var(--deep);
    text-align: center;
}
.baby .button {
    width: 100%;
}
/* несколько фото малыша: листаются пальцем, колесом или стрелками */
.baby-slides {
    display: flex;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}
.baby-slides::-webkit-scrollbar {
    display: none;
}
.baby-slides img {
    flex: 0 0 100%;
    scroll-snap-align: start;
}
.baby-slides:focus-visible {
    outline-offset: -4px;
}
.slide-button {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-top: -17px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(248, 245, 237, 0.92);
    color: var(--deep);
    box-shadow: var(--shadow);
    cursor: pointer;
}
.slide-button svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}
.slide-button.prev {
    left: 8px;
}
.slide-button.prev svg {
    transform: rotate(90deg);
}
.slide-button.next {
    right: 8px;
}
.slide-button.next svg {
    transform: rotate(-90deg);
}
.slide-button:disabled {
    opacity: 0;
    pointer-events: none;
}
.slide-count {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(248, 245, 237, 0.92);
    font-size: 12px;
}
/* каталог не загрузился */
.load-error {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    margin-block: 20px;
    padding: 16px 20px;
    background: var(--rose-light);
    border: 1px solid var(--rose);
    border-radius: 18px;
    color: var(--rose-ink);
}
.load-error p {
    margin: 0;
}

.babies-empty {
    display: grid;
    justify-items: start;
    gap: 16px;
    padding: 28px;
    background: var(--ivory);
    border-radius: 22px;
}

.pet-food {
    padding-block: 64px 76px;
    scroll-margin-top: var(--header);
}

/* ---------- Поиск (главная и каталог) ---------- */
.search-field {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}
.search-field svg {
    position: absolute;
    left: 16px;
    width: 20px;
    height: 20px;
    color: var(--moss);
    pointer-events: none;
}
.search-field input {
    width: 100%;
    min-height: 50px;
    padding: 0 18px 0 46px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--ivory);
    font-size: 16px;
    transition: border-color 0.2s;
}
.search-field input:hover {
    border-color: #a9b79f;
}
.search-field input:focus-visible {
    outline: 2px solid var(--moss);
    outline-offset: 1px;
    border-color: var(--moss);
}

/* ---------- Витрина каталога на главной ---------- */
.catalog-search {
    display: flex;
    gap: 10px;
    max-width: 620px;
    margin-bottom: 28px;
}
.cat-tiles {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.cat-tile {
    position: relative;
    display: grid;
    align-content: start;
    background: var(--ivory);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    transition:
        border-color 0.2s,
        transform 0.2s;
}
.cat-tile:hover {
    border-color: var(--moss);
    transform: translateY(-2px);
}
.cat-tile-img {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--sage-light);
}
.cat-tile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.cat-tile:hover .cat-tile-img img {
    transform: scale(1.04);
}
.cat-tile-copy {
    display: grid;
    gap: 2px;
    padding: 14px 44px 16px 16px;
}
.cat-tile-copy strong {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 19px;
    line-height: 1.2;
}
.cat-tile-copy small {
    font-size: 13px;
    color: var(--muted);
}
.cat-tile-arrow {
    position: absolute;
    right: 14px;
    bottom: 18px;
    width: 20px;
    height: 20px;
    color: var(--moss);
    transition: transform 0.2s;
}
.cat-tile:hover .cat-tile-arrow {
    transform: translateX(3px);
}
/* плитка «Весь каталог» — на планшете и телефоне вместо кнопки у заголовка */
.cat-tile-all {
    display: none;
    align-content: end;
    min-height: 100%;
    background: var(--moss);
    border-color: var(--moss);
    color: var(--on-moss);
}
.cat-tile-all .cat-tile-copy strong {
    font-size: 22px;
}
.cat-tile-all .cat-tile-copy small,
.cat-tile-all .cat-tile-arrow {
    color: var(--on-moss-muted);
}
.cat-tile-all:hover {
    border-color: var(--deep);
    background: var(--deep);
}
.pet-picks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 14px;
    color: var(--muted);
}
.pet-picks > span {
    margin-right: 4px;
}
.pet-picks .chip {
    display: inline-flex;
    align-items: center;
    color: var(--text);
}

/* ---------- Страница каталога ---------- */
.mobile-product-preview,
.mobile-catalog-link,
.mobile-useful-more {
    display: none;
}
.articles-section {
    padding-block: 20px 64px;
}
.articles-list {
    grid-template-columns: 1fr;
    gap: 0;
}
.articles-list .useful-card {
    grid-template-columns: minmax(0, 1fr) 22px;
    padding: 18px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: none;
}
.articles-list .useful-thumb {
    display: none;
}
.articles-list .useful-card:hover {
    transform: none;
    background: var(--sage-light);
}
.general-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-bottom: 24px;
}
.general-articles {
    margin-bottom: 24px;
}
.general-articles .article-body {
    padding: 18px 0 0;
}
.articles-section > p {
    margin-bottom: 24px;
}
.article-rubrics {
    margin: -12px 0 18px;
}
.articles-empty {
    padding: 28px 0;
    color: var(--muted);
}
.pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 28px;
}
.pager button {
    display: grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--ivory);
    font-size: 15px;
    font-weight: 600;
    transition:
        border-color 0.2s,
        background 0.2s;
}
.pager button:hover:not(:disabled) {
    border-color: var(--moss);
}
.pager button[aria-current='page'] {
    background: var(--moss);
    border-color: var(--moss);
    color: var(--on-moss);
}
.pager button:disabled {
    opacity: 0.35;
    cursor: default;
}
.pager svg {
    width: 18px;
    height: 18px;
}
.pager-prev {
    transform: rotate(90deg);
}
.pager-next {
    transform: rotate(-90deg);
}
.shop-hero {
    padding-block: 20px 28px;
}
.shop-hero h1 {
    font-size: clamp(38px, 4.6vw, 58px);
}
.shop-hero p {
    margin-top: 14px;
    max-width: 580px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}
.shop {
    padding-bottom: 72px;
}
.shop-tools {
    display: flex;
    align-items: center;
    gap: 12px;
}
.shop-tools .search-field {
    max-width: 560px;
}
.shop-filters {
    display: grid;
    gap: 10px;
    margin: 20px 0 8px;
}
.filter-row {
    display: grid;
    grid-template-columns: 96px 1fr;
    align-items: center;
    gap: 12px;
}
.filter-label {
    font-size: 14px;
    color: var(--muted);
}
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.chip .n {
    margin-left: 6px;
    font-size: 12px;
    opacity: 0.6;
}
.chip.is-empty {
    opacity: 0.45;
}
.shop-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 40px;
    margin: 10px 0 16px;
}
.shop-status p {
    font-size: 14px;
    color: var(--muted);
}

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 1100px) {
    :root {
        --header: 58px;
    }
    .wrap {
        width: calc(100% - 56px);
    }
    /* большое название слева, справа заказ и меню */
    .brand-banner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 20px 12px 18px 28px;
        text-align: left;
    }
    .banner-actions {
        display: flex;
        gap: 2px;
        flex: none;
    }
    /* полоска спрятана над экраном и выезжает при прокрутке вверх */
    .header {
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        transform: translateY(-100%);
        visibility: hidden;
        border-bottom-color: var(--line);
        transition:
            transform 0.25s,
            visibility 0s 0.25s;
    }
    html.bar-shown .header {
        transform: none;
        visibility: visible;
        box-shadow: 0 8px 20px -12px rgba(51, 61, 48, 0.35);
        transition: transform 0.25s;
    }
    .header-in {
        display: flex;
        align-items: center;
        gap: 2px;
        height: var(--header);
    }
    .bar-logo {
        display: block;
        margin-right: auto;
        font-family: var(--brand);
        font-size: 25px;
        line-height: 1;
        white-space: nowrap;
        color: var(--deep);
    }
    .bar-only {
        display: grid;
    }
    .desktop-nav,
    .order-button {
        display: none;
    }
    .floating-order {
        display: grid;
    }
    .telegram-contact {
        right: 84px;
    }
    .toc {
        top: 8px;
        transition: top 0.25s;
    }
    html.bar-shown .toc {
        top: calc(var(--header) + 8px);
    }
    .toast {
        bottom: calc(84px + env(safe-area-inset-bottom));
        border-radius: 18px;
        padding: 12px 18px;
    }
    .hero {
        gap: 48px;
    }
    .pets {
        gap: 12px;
    }
    .pet-name {
        font-size: 17px;
    }
    .guide {
        grid-template-columns: 300px 1fr;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .useful-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cat-tiles {
        grid-template-columns: repeat(3, 1fr);
    }
    .cat-tile-all {
        display: grid;
    }
    .catalog-all {
        display: none;
    }
    .babies-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .article-layout {
        grid-template-columns: 220px 1fr;
        gap: 32px;
    }
    .article-body {
        padding-left: 0;
    }
    .sprig {
        left: -40px;
        width: 60px;
    }
}

@media (max-width: 900px) {
    html {
        scroll-padding-top: calc(var(--header) + 8px);
    }
    .wrap {
        width: calc(100% - 40px);
    }
    .logo {
        font-size: 28px;
    }
    .logo span {
        font-size: 20px;
    }
    .brand-banner {
        padding: 18px 8px 16px 20px;
    }
    .brand-banner .logo {
        font-size: 36px;
    }
    .brand-banner .logo span {
        font-size: 15px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 44px;
        padding-block: 20px 52px;
    }
    .hero-visual {
        width: min(78%, 360px);
    }
    .hero-copy > p {
        font-size: 16px;
    }

    .section-heading {
        display: block;
        margin-bottom: 24px;
    }
    .section-heading > p {
        margin-top: 12px;
        max-width: 100%;
    }
    .section-heading > p br {
        display: none;
    }

    .care-section {
        padding: 44px 0 48px;
    }
    .pets {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px 12px;
        margin-bottom: 28px;
    }
    .guide {
        grid-template-columns: 1fr;
        border-radius: 22px;
    }
    .guide-top {
        padding: 26px 22px;
    }
    .memos {
        padding: 6px 16px 10px;
    }
    .memo-body {
        padding-left: 4px;
    }
    .guide-foot {
        padding: 14px 18px 16px;
    }

    .guide-toc {
        padding: 8px 16px 12px;
    }
    .toc-item {
        grid-template-columns: 40px 1fr 20px;
        gap: 12px;
    }
    .toc-item .memo-ico {
        width: 40px;
        height: 40px;
    }
    .guide-toc .memo-t strong {
        font-size: 19px;
    }
    .useful-section {
        padding-block: 0 48px;
    }
    .useful-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .pet-hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-block: 16px 40px;
    }
    .pet-hero-visual {
        width: min(72%, 320px);
        order: -1;
    }
    .pet-hero-copy > p:not(.pet-hero-sub) {
        font-size: 16px;
    }
    .article-layout {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-bottom: 48px;
    }
    .toc {
        z-index: 5;
    }
    .toc-box {
        box-shadow: var(--shadow);
    }
    .toc-box ol {
        max-height: 55vh;
        overflow-y: auto;
    }
    .article-section {
        padding: 22px 18px 24px;
        border-radius: 20px;
    }
    .article-head {
        grid-template-columns: 40px 1fr 44px 20px;
        gap: 12px;
    }
    .article-section:has(.article-toggle):not(.is-open) {
        padding-block: 16px;
    }
    .article-section:has(.article-toggle):not(.is-open) .article-head {
        grid-template-columns: 40px 1fr 20px;
    }
    .article-head .memo-ico {
        width: 40px;
        height: 40px;
    }
    .article-head h2 {
        font-size: 22px;
        line-height: 1.25;
    }
    .article-body .lead {
        font-size: 17px;
    }
    .babies-section {
        padding: 44px 0 48px;
    }
    .babies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .babies-branch {
        width: 190px;
        height: 66px;
        right: -30px;
        top: 0;
    }
    .pet-food {
        padding-block: 44px 48px;
    }
    .pet-food .section-heading .text-link {
        margin-top: 12px;
    }

    .catalog-section {
        padding: 48px 0;
    }
    .catalog-search .button {
        padding-inline: 18px;
    }
    .cat-tiles {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .cat-tile-copy {
        padding: 10px 36px 12px 12px;
    }
    .cat-tile-copy strong {
        font-size: 17px;
    }
    .cat-tile-arrow {
        right: 10px;
        bottom: 14px;
    }
    .pet-picks {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        margin-inline: -20px;
        padding: 2px 20px;
    }
    .pet-picks::-webkit-scrollbar {
        display: none;
    }
    .pet-picks > * {
        flex: none;
    }

    .shop-tools {
        flex-direction: column;
        align-items: stretch;
    }
    .shop-tools .search-field {
        max-width: none;
    }
    .filter-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        margin-inline: -20px;
        padding: 2px 20px;
    }
    .chips::-webkit-scrollbar {
        display: none;
    }
    .chips > * {
        flex: none;
    }
    .catalog-bottom {
        display: block;
    }
    .catalog-bottom .text-link {
        margin-top: 10px;
    }

    .how-section {
        padding: 48px 0;
    }
    .how-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .faq-section {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-block: 48px;
    }
    .faq-intro {
        position: static;
    }
    .faq-branch {
        display: none;
    }
    .faq-intro p br {
        display: none;
    }

    .footer-top {
        display: grid;
        gap: 22px;
    }
    .footer-top > p br {
        display: none;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 4px;
    }

    .drawer {
        inset: auto 0 0 0;
        width: 100%;
        height: calc(100dvh - 24px);
        border-radius: 24px 24px 0 0;
    }
    .drawer[open] {
        animation-name: slide-up;
    }
    @keyframes slide-up {
        from {
            transform: translateY(100%);
        }
    }
    .drawer-head {
        padding: 18px 18px 14px;
    }
    .drawer-head h2 {
        font-size: 30px;
    }
    .drawer-body {
        padding: 16px 18px 20px;
    }
    .drawer-foot {
        padding: 12px 18px calc(14px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 640px) {
    /* кнопки первого экрана — во всю ширину */
    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .hero-actions .button {
        width: 100%;
    }
    .hero-actions .text-link {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 50px;
        border: 1px solid #a9b79f;
        border-radius: 999px;
        color: var(--moss);
    }
    .product-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    /* на телефоне карточки идут одна под другой — делаем их заметно темнее фона */
    .product {
        border: 3px solid #98a28c;
        box-shadow: 0 8px 18px -12px rgba(51, 61, 48, 0.45);
    }
    .product .vopt span {
        background: var(--ivory);
    }
    .product-visual {
        aspect-ratio: 4 / 3;
    }
    .product-bottom {
        flex-direction: column;
        align-items: stretch;
    }
    .add-button {
        justify-content: center;
    }
    .photo-note {
        left: -22px;
        bottom: 22px;
        font-size: 19px;
        padding: 10px 15px;
    }
    .sprig {
        left: -30px;
        width: 46px;
    }
    .rose-dot {
        right: -20px;
        width: 40px;
        height: 40px;
        top: 40px;
    }
    .hero-branch {
        width: 120px;
        height: 42px;
        right: -34px;
        bottom: -22px;
    }
    .babies-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .baby {
        padding: 10px 10px 14px;
        border-radius: 18px;
    }
    .baby h3 {
        font-size: 21px;
    }
    .baby-facts {
        font-size: 13px;
    }
    .baby .button {
        padding-inline: 8px;
        font-size: 13px;
    }
    .drawer-actions .button {
        min-height: 46px;
    }
}

@media (max-width: 400px) {
    .wrap {
        width: calc(100% - 32px);
    }
    .chips {
        margin-inline: -16px;
        padding-inline: 16px;
    }
    h1 {
        font-size: 34px;
    }
    .pets {
        gap: 14px 8px;
    }
    .pet-name {
        font-size: 15px;
    }
    .pet-name > span {
        padding-inline: 8px;
    }
    .spec div {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .memo summary {
        grid-template-columns: 40px 1fr 22px;
        gap: 12px;
    }
    .memo-ico {
        width: 40px;
        height: 40px;
    }
    .memo-t strong {
        font-size: 20px;
    }
}

/* Мобильная главная: питомцы, товары и статьи без длинного первого экрана. */
@media (max-width: 640px) {
    .brand-banner .logo {
        font-size: 31px;
    }
    .brand-banner .logo span {
        font-size: 13px;
    }
    .shop-filters .chips {
        flex-wrap: wrap;
        overflow: visible;
        margin-inline: 0;
        padding-inline: 0;
        gap: 8px;
    }
    .shop-filters .chips > .chip {
        min-height: 42px;
    }
    #shop-cats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    #shop-cats .chip {
        min-width: 0;
        padding: 8px 6px;
        line-height: 1.3;
    }
    #shop-cats [data-shop-cat='treats'] {
        grid-column: 2 / 4;
    }
    #shop-cats [data-shop-cat='accessories'] {
        grid-column: 1 / -1;
    }
    body:is([data-page='home'], [data-page='pets']) .guide {
        display: none;
    }
    /* первый экран: заголовок слева, маленькая арка справа, ниже текст и две кнопки */
    .hero {
        grid-template-columns: minmax(0, 1fr) 118px;
        grid-template-areas: 'eyebrow eyebrow' 'title photo' 'text text' 'actions actions';
        gap: 0 16px;
        align-items: center;
        padding-block: 20px 26px;
    }
    .hero-copy {
        display: contents;
    }
    .hero .eyebrow {
        grid-area: eyebrow;
        margin-bottom: 10px;
        font-size: 10.5px;
    }
    .hero h1 {
        grid-area: title;
        font-size: 31px;
        line-height: 1.1;
    }
    .hero-copy > p {
        grid-area: text;
        margin-top: 16px;
        font-size: 15px;
        line-height: 1.65;
    }
    .hero-actions {
        grid-area: actions;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 18px;
    }
    .hero-actions .button,
    .hero-actions .text-link {
        min-height: 46px;
        padding-inline: 10px;
        font-size: 14px;
    }
    .hero-visual {
        grid-area: photo;
        width: 100%;
        margin: 8px 0 0;
    }
    .hero .arch-back {
        inset: -7px;
        border-radius: calc(50cqw + 7px) calc(50cqw + 7px) 22px 22px;
    }
    .hero .hero-arch {
        border-radius: 50cqw 50cqw 16px 16px;
    }
    .hero-facts,
    .hero .sprig,
    .hero .photo-note,
    .hero .hero-branch {
        display: none;
    }
    .hero .rose-dot {
        right: -10px;
        top: 10px;
        width: 24px;
        height: 24px;
    }
    body:is([data-page='home'], [data-page='pets']) .care-section {
        padding: 24px 0 28px;
        background: var(--sage-light);
    }
    body:is([data-page='home'], [data-page='pets'])
        .care-section
        .section-heading {
        margin-bottom: 18px;
    }
    body:is([data-page='home'], [data-page='pets'])
        .care-section
        .section-heading
        > p,
    body:is([data-page='home'], [data-page='pets']) .care-section .eyebrow {
        display: none;
    }
    body:is([data-page='home'], [data-page='pets']) .pets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 14px;
        margin-bottom: 0;
    }
    body:is([data-page='home'], [data-page='pets']) .pet {
        gap: 6px;
    }
    body:is([data-page='home'], [data-page='pets']) .pet .arch {
        aspect-ratio: 1 / 1;
    }
    body:is([data-page='home'], [data-page='pets']) .pet-name {
        font-size: 18px;
        min-height: 44px;
        font-weight: 600;
    }
    body:is([data-page='home'], [data-page='pets'])
        .pet[aria-pressed='true']
        .arch {
        outline-color: transparent;
    }
    body:is([data-page='home'], [data-page='pets'])
        .pet[aria-pressed='true']
        .pet-name
        > span {
        background: none;
        color: var(--deep);
    }
    body:is([data-page='home'], [data-page='pets']) .catalog-section {
        padding: 28px 0 32px;
    }
    body:is([data-page='home'], [data-page='pets']) .catalog-section > .wrap {
        display: flex;
        flex-direction: column;
    }
    body:is([data-page='home'], [data-page='pets'])
        .catalog-section
        .section-heading {
        order: 0;
        margin-bottom: 16px;
    }
    body:is([data-page='home'], [data-page='pets']) .catalog-section .eyebrow {
        margin-bottom: 8px;
        font-size: 10px;
    }
    body:is([data-page='home'], [data-page='pets']) .pet-picks {
        order: 1;
        flex-wrap: wrap;
        overflow: visible;
        margin: 0 0 18px;
        padding: 0;
        gap: 7px;
        color: #000;
    }
    body:is([data-page='home'], [data-page='pets']) .pet-picks > span {
        flex-basis: 100%;
        margin: 0 0 2px;
        font-weight: 600;
    }
    body:is([data-page='home'], [data-page='pets']) .pet-picks .chip {
        padding: 8px 12px;
        min-height: 40px;
    }
    body:is([data-page='home'], [data-page='pets']) .catalog-search {
        order: 2;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 18px;
    }
    body:is([data-page='home'], [data-page='pets']) .catalog-search .button {
        min-height: 44px;
    }
    body:is([data-page='home'], [data-page='pets']) .cat-tiles {
        display: none;
    }
    .mobile-product-preview {
        display: grid;
        order: 3;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .preview-product {
        display: flex;
        flex-direction: column;
        min-width: 0;
        overflow: hidden;
        background: var(--ivory);
        border: 1px solid var(--line);
        border-radius: 16px;
    }
    .preview-product > img {
        width: 100%;
        aspect-ratio: 1;
        height: auto;
        object-fit: cover;
    }
    .preview-product-copy {
        display: flex;
        flex: 1;
        flex-direction: column;
        gap: 10px;
        padding: 12px;
    }
    .preview-product-copy strong {
        font-size: 15px;
        font-weight: 600;
        line-height: 1.35;
    }
    .preview-product-copy > span {
        margin-top: auto;
        font-weight: 700;
        color: var(--deep);
        font-size: 14px;
    }
    .mobile-catalog-link {
        display: flex;
        order: 4;
        margin-top: 16px;
        padding-inline: 12px;
    }
    body:is([data-page='home'], [data-page='pets']) .useful-section {
        padding-block: 0 32px;
    }
    body:is([data-page='home'], [data-page='pets'])
        .useful-section
        .section-heading {
        margin-bottom: 16px;
    }
    body:is([data-page='home'], [data-page='pets'])
        .useful-section
        .section-heading
        > p {
        display: none;
    }
    body:is([data-page='home'], [data-page='pets']) .useful-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    body:is([data-page='home'], [data-page='pets'])
        .useful-card:nth-child(n + 4) {
        display: none;
    }
    .useful-card {
        grid-template-columns: 48px minmax(0, 1fr) 16px;
        gap: 10px;
        padding: 14px 12px;
    }
    .useful-thumb {
        width: 48px;
        height: 48px;
    }
    .useful-copy strong {
        font-size: 18px;
    }
    .useful-copy small {
        font-size: 13px;
    }
    .useful-pet {
        font-size: 10px;
        letter-spacing: 0.06em;
    }
    .useful-arrow {
        width: 16px;
        height: 16px;
    }
    .mobile-useful-more {
        display: flex;
        margin-top: 16px;
    }
    body:is([data-page='home'], [data-page='pets']) h2 {
        font-size: 29px;
        line-height: 1.2;
    }
    body:is([data-page='home'], [data-page='pets']) .how-section {
        padding: 28px 0;
    }
    body:is([data-page='home'], [data-page='pets']) .how-layout {
        gap: 20px;
    }
    body:is([data-page='home'], [data-page='pets']) .how-layout > div > p {
        font-size: 14px;
        line-height: 1.6;
        margin: 14px 0 18px;
    }
    body:is([data-page='home'], [data-page='pets']) .how-layout .button {
        width: 100%;
    }
    body:is([data-page='home'], [data-page='pets']) .how-sprig {
        display: none;
    }
    body:is([data-page='home'], [data-page='pets']) .steps li {
        gap: 12px;
        padding: 14px 0;
    }
    body:is([data-page='home'], [data-page='pets']) .steps h3 {
        font-size: 21px;
    }
    body:is([data-page='home'], [data-page='pets']) .steps p {
        font-size: 14px;
        line-height: 1.55;
    }
    body:is([data-page='home'], [data-page='pets']) .faq-section {
        padding-block: 28px;
        gap: 12px;
    }
    body:is([data-page='home'], [data-page='pets']) .faq-intro .eyebrow,
    body:is([data-page='home'], [data-page='pets']) .faq-intro > p {
        display: none;
    }
    body:is([data-page='home'], [data-page='pets']) .faq-list summary {
        font-size: 15px;
        padding-block: 15px;
    }
    body:is([data-page='home'], [data-page='pets']) .faq-list details > p {
        font-size: 14px;
        line-height: 1.6;
    }
    .articles-section {
        padding-block: 16px 32px;
    }
    .articles-section h1 {
        font-size: 32px;
    }
    body[data-page='pet'] #main {
        display: flex;
        flex-direction: column;
    }
    body[data-page='pet'] .babies-section {
        order: 1;
        margin-bottom: 24px;
    }
    body[data-page='pet'] .article-layout {
        order: 2;
    }
    body[data-page='pet'] .pet-food {
        order: 3;
    }
}

/* самые узкие телефоны: название и кнопки в одну строку */
@media (max-width: 400px) {
    .brand-banner {
        padding-left: 16px;
    }
    .brand-banner .logo {
        font-size: 27px;
    }
    .bar-logo {
        font-size: 23px;
    }
    .hero-actions .button,
    .hero-actions .text-link {
        padding-inline: 6px;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}
