/* =========================================================
   Ветео — стили (mobile-first)
   Палитра: тёплый бирюзовый + мягкий коралл, светлый фон
   ========================================================= */

:root {
    --c-bg:        #f6f8f7;
    --c-surface:   #ffffff;
    --c-border:    #e6ebe9;
    --c-text:      #14201d;
    --c-muted:     #5b6b67;
    --c-primary:   #0f766e;
    --c-primary-2: #14b8a6;
    --c-accent:    #ff7a59;
    --c-warn:      #f59e0b;
    --c-danger:    #ef4444;
    --bg-glow-1:   #d6f1ec;
    --bg-glow-2:   #ffe2d8;

    --shadow-sm: 0 1px 2px rgba(15, 23, 21, .04), 0 1px 1px rgba(15, 23, 21, .03);
    --shadow-md: 0 6px 16px rgba(15, 23, 21, .07), 0 2px 4px rgba(15, 23, 21, .05);
    --shadow-lg: 0 12px 32px rgba(15, 23, 21, .12);

    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 22px;
    --r-xl: 28px;

    --header-h: 60px;
    --container: 1100px;

    --t-fast: 160ms cubic-bezier(.2,.8,.2,1);
    --t-base: 260ms cubic-bezier(.2,.8,.2,1);
    --t-slow: 420ms cubic-bezier(.2,.8,.2,1);
}

:root[data-theme="dark"] {
    --c-bg:        #0b141b;
    --c-surface:   #121d26;
    --c-border:    #223241;
    --c-text:      #e6edf3;
    --c-muted:     #9ab0c1;
    --c-primary:   #1fb7ab;
    --c-primary-2: #30d6c9;
    --c-accent:    #ff8f6c;
    --bg-glow-1:   rgba(31, 183, 171, .18);
    --bg-glow-2:   rgba(255, 143, 108, .14);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--c-bg);
    color: var(--c-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
    line-height: 1.45;
    overflow-x: hidden;
}

body {
    min-height: 100dvh;
    background:
        radial-gradient(1200px 600px at -10% -10%, var(--bg-glow-1) 0%, transparent 60%),
        radial-gradient(900px 500px at 110% 0%, var(--bg-glow-2) 0%, transparent 55%),
        var(--c-bg);
    background-attachment: fixed;
}

button { font-family: inherit; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.seo-hidden-h1 {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.noscript {
    padding: 16px;
    background: #fff3cd;
    color: #663c00;
    text-align: center;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
}

/* ===================== ЗАГРУЗКА ===================== */
.app-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60dvh;
}
.spinner {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 3px solid #d8e6e3;
    border-top-color: var(--c-primary);
    animation: spin 800ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===================== ХЕДЕР ===================== */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--c-border);
}
.header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
}
.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: -.01em;
    font-size: 1.05rem;
}
.header__logo-text {
    line-height: 1;
    white-space: nowrap;
}
/* Название бренда: капс, зелёный градиент + пульсация */
.header__logo-text--brand {
    display: inline-block;
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
    background: linear-gradient(
        118deg,
        #022c22 0%,
        #047857 18%,
        #0d9488 38%,
        #2dd4bf 52%,
        #14b8a6 68%,
        #059669 85%,
        #064e3b 100%
    );
    background-size: 240% 240%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: logoGradientFlow 5s ease-in-out infinite, logoPulse 2.4s ease-in-out infinite;
    will-change: transform;
}
.header__logo-mark {
    width: 32px; height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-2));
    display: grid; place-items: center;
    color: #fff;
    box-shadow: var(--shadow-sm);
}

@keyframes logoGradientFlow {
    0%, 100% { background-position: 0% 45%; }
    50% { background-position: 100% 55%; }
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.icon-btn {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border: 1px solid var(--c-border);
    background: var(--c-surface);
    border-radius: 12px;
    color: var(--c-text);
    cursor: pointer;
    transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}
.icon-btn:hover { background: #f1f5f4; }
.icon-btn:active { transform: scale(.96); }

.header__spacer { flex: 1; }

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.lang-switch__btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    background: var(--c-surface);
    cursor: pointer;
    opacity: .55;
    overflow: hidden;
    flex-shrink: 0;
    transition: opacity .2s, border-color .2s, transform var(--t-fast);
}
.lang-switch__btn svg {
    display: block;
    width: 100%;
    height: 100%;
}
.lang-switch__btn.is-active {
    opacity: 1;
    border-color: var(--c-primary);
}
.lang-switch__btn:hover { opacity: .9; }
.lang-switch__btn:active { transform: scale(.96); }

.header-avatar-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--c-border);
    background: var(--c-surface);
    cursor: pointer;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}
.header-avatar-btn:hover { background: #f1f5f4; }
.header-avatar-btn:active { transform: scale(.96); }
.header-avatar-btn--user {
    background: linear-gradient(135deg, #ffd9cc, #ffb89e);
    border-color: rgba(122, 58, 37, .15);
    color: #7a3a25;
}
.header-avatar-btn--user:hover {
    background: linear-gradient(135deg, #ffcdbd, #ffaa8f);
}
.header-avatar-btn__letter {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    user-select: none;
}
.header-avatar-btn--guest {
    background: #e8eceb;
    border-color: #d1d9d7;
    color: #64748b;
}
.header-avatar-btn__guest-icon {
    display: grid;
    place-items: center;
    line-height: 0;
}
.header-avatar-btn--guest:hover {
    background: #dfe5e3;
    color: #475569;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: .92rem;
    cursor: pointer;
    transition: transform var(--t-fast), background var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
    background: var(--c-surface);
    color: var(--c-text);
    border-color: var(--c-border);
}
.btn:active { transform: scale(.97); }
.btn--primary {
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-2));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(15, 118, 110, .25);
}
.btn--primary:hover { box-shadow: 0 8px 22px rgba(15, 118, 110, .35); }
.btn--ghost { background: transparent; }
.btn--block { width: 100%; justify-content: center; }

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 12px 0 6px;
    border: 1px solid var(--c-border);
    background: var(--c-surface);
    border-radius: 999px;
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    max-width: 180px;
    min-width: 0;
    flex-shrink: 1;
    overflow: hidden;
    color: var(--c-text);
}
.user-chip > span:not(.user-chip__avatar) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.user-chip__avatar {
    flex-shrink: 0;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd9cc, #ffb89e);
    color: #7a3a25;
    display: grid; place-items: center;
    font-size: .8rem;
    font-weight: 700;
}

/* ===================== БОКОВОЕ МЕНЮ ===================== */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 21, .35);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-base);
    z-index: 60;
}
.drawer-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}
.drawer {
    position: fixed;
    top: 0; bottom: 0; left: 0;
    width: min(86vw, 340px);
    background: var(--c-surface);
    z-index: 70;
    transform: translateX(-102%);
    transition: transform var(--t-slow);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
}
.drawer.is-open { transform: translateX(0); }
.drawer__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--c-border);
}
.drawer__nav {
    list-style: none;
    margin: 0;
    padding: 8px;
    flex: 1;
    overflow-y: auto;
}
.drawer__nav li a {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--c-text);
    font-weight: 500;
    transition: background var(--t-fast);
}
.drawer__nav li a:hover { background: #f1f5f4; }
.drawer__nav li a .nav-ic {
    width: 32px; height: 32px;
    border-radius: 9px;
    display: grid; place-items: center;
    background: #ecfdf5;
    color: var(--c-primary);
}
.drawer__search {
    display: flex;
    align-items: center;
    gap: 12px;
    width: calc(100% - 16px);
    margin: 4px 8px 8px;
    padding: 12px 14px;
    border: 1px solid var(--c-border);
    background: #f6f8f7;
    border-radius: 12px;
    color: var(--c-text);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: background var(--t-fast), border-color var(--t-fast);
}
.drawer__search:hover  { background: #ecfdf5; border-color: #c8eee2; }
.drawer__search:active { transform: scale(.99); }
.drawer__search .nav-ic {
    width: 32px; height: 32px;
    border-radius: 9px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-2));
    color: #fff;
}
.drawer__theme {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 4px 8px 0;
    padding: 10px 12px;
    border: 1px solid var(--c-border);
    border-radius: 12px;
    background: var(--c-surface);
}
.drawer__theme-label {
    font-size: .86rem;
    color: var(--c-muted);
    font-weight: 600;
}
.drawer__theme-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.drawer__theme-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--c-border);
    background: var(--c-surface);
    color: var(--c-muted);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.drawer__theme-btn:hover { color: var(--c-text); background: #f1f5f4; }
.drawer__theme-btn:active { transform: scale(.97); }
.drawer__theme-btn.is-active {
    color: var(--c-primary);
    border-color: var(--c-primary-2);
    background: #ecfdf5;
}
.drawer__foot {
    padding: 14px 16px;
    border-top: 1px solid var(--c-border);
    color: var(--c-muted);
    font-size: .82rem;
}

:root[data-theme="dark"] .header {
    background: rgba(11, 20, 27, .84);
}
:root[data-theme="dark"] .user-chip__avatar {
    background: linear-gradient(135deg, #f5bca8, #e58d74);
    color: #3e1f16;
}
:root[data-theme="dark"] .header-avatar-btn--user {
    background: linear-gradient(135deg, #f5bca8, #e58d74);
    border-color: rgba(62, 31, 22, .35);
    color: #3e1f16;
}
:root[data-theme="dark"] .header-avatar-btn--user:hover {
    background: linear-gradient(135deg, #ffc9b5, #ef9a7a);
}
:root[data-theme="dark"] .header-avatar-btn--guest {
    background: #2a3540;
    border-color: #3d4d5c;
    color: #94a3b8;
}
:root[data-theme="dark"] .header-avatar-btn--guest:hover {
    background: #334155;
    color: #cbd5e1;
}
:root[data-theme="dark"] .lang-switch__btn {
    background: var(--c-surface);
}
:root[data-theme="dark"] .icon-btn:hover,
:root[data-theme="dark"] .drawer__theme-btn:hover,
:root[data-theme="dark"] .search-modal__close:hover {
    background: #1a2733;
}
:root[data-theme="dark"] .drawer__nav li a:hover {
    background: #1a2733;
}
:root[data-theme="dark"] .drawer__nav li a .nav-ic {
    background: #18302c;
}
:root[data-theme="dark"] .drawer__search {
    background: #0f1922;
}
:root[data-theme="dark"] .drawer__search:hover {
    background: #182733;
    border-color: #2b4250;
}
:root[data-theme="dark"] .drawer__theme-btn.is-active {
    background: #173631;
    border-color: #2fbeb1;
}
:root[data-theme="dark"] .search-modal__head {
    background: #0f1922;
}
:root[data-theme="dark"] .tile {
    --tile-icon-bg: #162430;
}
:root[data-theme="dark"] .tile:hover,
:root[data-theme="dark"] .sign-card:hover,
:root[data-theme="dark"] .pet-tile:hover {
    border-color: #355060;
}
:root[data-theme="dark"] .health-disease-card:hover {
    border-color: #355060;
}
:root[data-theme="dark"] .tile--health { --tile-bg: #15362e; --tile-icon-color: #30d6c9; }
:root[data-theme="dark"] .tile--pharm  { --tile-bg: #3a271d; --tile-icon-color: #ffb088; }
:root[data-theme="dark"] .tile--care   { --tile-bg: #232d4b; --tile-icon-color: #b6bcff; }
:root[data-theme="dark"] .tile--clinic { --tile-bg: #3a331d; --tile-icon-color: #f4c96f; }
:root[data-theme="dark"] .tile--feed   { --tile-bg: #3b1f34; --tile-icon-color: #f3a5d6; }
:root[data-theme="dark"] .sign-card__icon {
    background: linear-gradient(135deg, #173a33, #204b42);
}
:root[data-theme="dark"] .health-disease-card__icon {
    background: #173631;
    color: #8df1e7;
}
:root[data-theme="dark"] .disease-photo {
    background: #13212a;
    border-color: #2b4250;
}
:root[data-theme="dark"] .page-note {
    background: #13212a;
    border-color: #2b4250;
    color: #b7c8d5;
}
:root[data-theme="dark"] .detail-card--norm {
    background: linear-gradient(180deg, #0f2d26 0%, #132430 72%);
}
:root[data-theme="dark"] .detail-card--alarm {
    background: linear-gradient(180deg, #311f25 0%, #132430 72%);
}
:root[data-theme="dark"] .cta-bar {
    background: linear-gradient(135deg, #14303a 0%, #12212c 78%);
    border-color: #2c4654;
}
:root[data-theme="dark"] .cta-bar--warn {
    background: linear-gradient(135deg, #3a2529 0%, #1e222e 82%);
    border-color: #7b3d4a;
}
:root[data-theme="dark"] .cta-bar--warn .cta-bar__title {
    color: #ffb4b4;
}
:root[data-theme="dark"] .clinic-card__main:hover,
:root[data-theme="dark"] .qa-card__a--toggle:hover {
    background: #1a2733;
}
:root[data-theme="dark"] .search-chip {
    background: #13212a;
    border-color: #2b4250;
}
:root[data-theme="dark"] .search-chip:hover {
    background: #173631;
    border-color: #2fbeb1;
}
:root[data-theme="dark"] .search-group__count {
    background: #173631;
    color: #8df1e7;
}
:root[data-theme="dark"] .search-result:hover {
    background: #182733;
    border-color: #355060;
}
:root[data-theme="dark"] .search-result mark {
    background: #4a3f1f;
}
:root[data-theme="dark"] .ask textarea,
:root[data-theme="dark"] .field input {
    background: #0f1922;
}
:root[data-theme="dark"] .ask__pet-modal {
    border-color: #2b4250;
    background:
        radial-gradient(560px 220px at 100% -10%, rgba(48, 214, 201, .12) 0%, transparent 58%),
        var(--c-surface);
}
:root[data-theme="dark"] .ask textarea:focus,
:root[data-theme="dark"] .field input:focus {
    background: #132430;
}
:root[data-theme="dark"] .ask--guest textarea {
    background: #111f29;
}
:root[data-theme="dark"] .ask__media-btn {
    border-color: #2b4250;
    background: #13212a;
    color: #56d9cd;
}
:root[data-theme="dark"] .ask__media-btn:hover {
    border-color: #2fbeb1;
    background: #173631;
}
:root[data-theme="dark"] .ask__media-btn.is-disabled,
:root[data-theme="dark"] .ask__media-btn:disabled,
:root[data-theme="dark"] .ask--guest .ask__media-btn {
    color: #617b8f;
    border-color: #2b4250;
    background: #162430;
}
:root[data-theme="dark"] .ask__media-btn.is-recording {
    color: #ffb4b4;
    border-color: #8b4b56;
    background: #39252c;
}
:root[data-theme="dark"] .ask__pet-age-col input {
    background: #132430;
}
:root[data-theme="dark"] .ask__pet-sex-option {
    border-color: #2b4250;
    background: #13212a;
}
:root[data-theme="dark"] .ask__pet-sex-option:hover {
    border-color: #2fbeb1;
    background: #173631;
}
:root[data-theme="dark"] .ask__pet-sex-option.is-active {
    border-color: #30d6c9;
    background: #1e5a53;
    color: #e6fffc;
}
:root[data-theme="dark"] .ask__photo-attached {
    color: #84b7ff;
}
:root[data-theme="dark"] .badge--free {
    background: #2a3744;
    color: #d3dde8;
}
:root[data-theme="dark"] .badge--premium {
    background: #1e3a63;
    color: #a9cbff;
}
:root[data-theme="dark"] .ask__answer {
    background: linear-gradient(180deg, #143127 0%, #132430 82%);
    border-color: #2b5a4f;
}
:root[data-theme="dark"] .ask__msg--ok {
    background: #143127;
    color: #a5f3cb;
    border-color: #2b5a4f;
}
:root[data-theme="dark"] .ask__msg--err {
    background: #39252c;
    color: #ffc0c0;
    border-color: #8b4b56;
}
:root[data-theme="dark"] .profile-card__row {
    background: #13212a;
}
:root[data-theme="dark"] .profile-action {
    background: #111f29;
}
:root[data-theme="dark"] .profile-action:hover {
    background: #1a2733;
}
:root[data-theme="dark"] .profile-action--logout {
    border-color: #8b4b56;
    background: #39252c;
    color: #ffc0c0;
}
:root[data-theme="dark"] .profile-action--logout:hover {
    background: #4a2d36;
}
:root[data-theme="dark"] .qa-card__num {
    background: #173631;
    color: #8df1e7;
}
:root[data-theme="dark"] .qa-card__a {
    background: #13212a;
}
:root[data-theme="dark"] .feed-type-tab {
    border-color: #2b4250;
    background: #13212a;
    color: var(--c-text);
}
:root[data-theme="dark"] .feed-type-tab:hover {
    border-color: #2fbeb1;
    background: #173631;
    color: #a8fff6;
}
:root[data-theme="dark"] .feed-type-tab.is-active {
    border-color: #30d6c9;
    background: #1e5a53;
    color: #e6fffc;
}
:root[data-theme="dark"] .feed-card:hover {
    border-color: #355060;
}
:root[data-theme="dark"] .feed-card__pic,
:root[data-theme="dark"] .feed-detail__pic {
    background: #162430;
}
:root[data-theme="dark"] .feed-card__price {
    color: #56d9cd;
}
:root[data-theme="dark"] .clinic-page-hint--err {
    color: #ffb4b4;
}
:root[data-theme="dark"] .clinic-city-select {
    background-color: #0f1922;
    border-color: #2b4250;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%239ab0c1' stroke-width='2'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}
:root[data-theme="dark"] .clinic-card {
    background: #121d26;
    border-color: #2b4250;
    box-shadow: 0 2px 12px rgba(2, 8, 16, .45);
}
:root[data-theme="dark"] .clinic-card--featured {
    border-color: #7e6731;
    box-shadow: 0 2px 16px rgba(126, 103, 49, .35);
}
:root[data-theme="dark"] .clinic-card__photo {
    background: #1a2733;
}
:root[data-theme="dark"] .clinic-card__photo--empty {
    background: linear-gradient(135deg, #253342, #1a2733);
}
:root[data-theme="dark"] .clinic-badge {
    background: #4a3f1f;
    color: #ffd67a;
}
:root[data-theme="dark"] .clinic-card__stars {
    color: #f7c26c;
}
:root[data-theme="dark"] .clinic-card__contacts {
    border-top-color: #2b4250;
}
:root[data-theme="dark"] .clinic-card__link {
    color: #5de7db;
}
:root[data-theme="dark"] .clinic-map {
    background: #1a2733;
}
:root[data-theme="dark"] .clinic-map--placeholder {
    background: #13212a;
    border-color: #2b4250;
}
:root[data-theme="dark"] .clinic-modal {
    background: #121d26;
    color: var(--c-text);
}
:root[data-theme="dark"] .clinic-modal__head {
    border-bottom-color: #2b4250;
}
:root[data-theme="dark"] .clinic-modal__x {
    background: #1a2733;
    color: #9ab0c1;
}
:root[data-theme="dark"] .clinic-modal__x:hover {
    background: #223646;
}
:root[data-theme="dark"] .clinic-review-list__item {
    border-bottom-color: #2b4250;
}
:root[data-theme="dark"] .clinic-review-list__author,
:root[data-theme="dark"] .clinic-review-list__text {
    color: var(--c-text);
}
:root[data-theme="dark"] .clinic-review-list__stars {
    color: #f7c26c;
}

/* ===================== ПОИСК ПО САЙТУ ===================== */
.search-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(15, 23, 21, .55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 0;
    display: flex;
    flex-direction: column;
    animation: fadeUp 200ms ease both;
}
.search-modal__panel {
    background: var(--c-surface);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.search-modal__head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--c-border);
    background: #fff;
}
.search-modal__icon {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    color: var(--c-primary);
}
.search-modal__input {
    flex: 1;
    height: 46px;
    border: 0;
    background: transparent;
    outline: none;
    font: inherit;
    font-size: 1rem;
    color: var(--c-text);
}
.search-modal__clear,
.search-modal__close {
    border: 1px solid var(--c-border);
    background: var(--c-surface);
    border-radius: 999px;
    cursor: pointer;
    color: var(--c-muted);
    transition: background var(--t-fast), color var(--t-fast);
}
.search-modal__clear {
    width: 36px; height: 36px;
    display: grid; place-items: center;
}
.search-modal__close {
    height: 36px;
    padding: 0 12px;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.search-modal__clear:hover,
.search-modal__close:hover { background: #f1f5f4; color: var(--c-text); }

.search-modal__body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 12px 32px;
}

.search-hint {
    padding: 10px 4px;
    color: var(--c-muted);
    font-size: .9rem;
}
.search-hint p { margin: 0 0 8px; }
.search-hint__note { font-size: .82rem; }
.search-chip {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    margin: 2px 2px 0 0;
    border-radius: 999px;
    border: 1px solid var(--c-border);
    background: #f6f8f7;
    color: var(--c-text);
    font: inherit;
    font-size: .82rem;
    cursor: pointer;
    transition: background var(--t-fast), border-color var(--t-fast);
}
.search-chip:hover { background: #ecfdf5; border-color: #c8eee2; }

.search-empty {
    text-align: center;
    padding: 40px 16px;
    color: var(--c-muted);
}
.search-empty__icon { font-size: 38px; }
.search-empty p     { margin: 6px 0; font-size: .95rem; }
.search-empty__hint { font-size: .82rem; }

.search-results {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.search-group__title {
    margin: 4px 4px 6px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--c-muted);
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}
.search-group__count {
    color: var(--c-primary);
    background: #ecfdf5;
    border-radius: 999px;
    padding: 1px 8px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
}
.search-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.search-result {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--c-border);
    border-radius: var(--r-sm);
    background: var(--c-surface);
    color: var(--c-text);
    text-align: left;
    cursor: pointer;
    font: inherit;
    transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.search-result:hover  { background: #ecfdf5; border-color: #c8eee2; }
.search-result:active { transform: scale(.99); }
.search-result__title {
    font-weight: 700;
    font-size: .96rem;
    line-height: 1.3;
}
.search-result__sub {
    color: var(--c-muted);
    font-size: .82rem;
    line-height: 1.4;
    word-break: break-word;
}
.search-result mark {
    background: #fef3c7;
    color: inherit;
    padding: 0 2px;
    border-radius: 3px;
}

/* На больших экранах поиск — по центру, как карточка */
@media (min-width: 720px) {
    .search-modal {
        align-items: flex-start;
        padding: 60px 16px 16px;
    }
    .search-modal__panel {
        max-width: 640px;
        margin: 0 auto;
        height: auto;
        max-height: calc(100dvh - 80px);
        border-radius: var(--r-lg);
        box-shadow: var(--shadow-lg);
    }
}

/* ===================== СЛАЙДЕР ===================== */
.slider {
    margin-top: 16px;
    width: 100%;
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #0b3b36;
    aspect-ratio: 32 / 9;
    max-height: 130px;
}
.slider__track {
    display: flex;
    height: 100%;
    transition: transform var(--t-slow);
    will-change: transform;
}
.slide {
    flex: 0 0 100%;
    position: relative;
    color: #fff;
    display: flex;
    align-items: flex-end;
    padding: 12px 14px;
    background-size: cover;
    background-position: center;
}
.slide__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
a.slide {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.slide::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.55));
}
.slide--image::before { content: none; }
.slide__inner {
    position: relative;
    z-index: 1;
    max-width: 80%;
}
.slide__tag {
    display: inline-block;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(6px);
    margin-bottom: 4px;
}
.slide__title {
    font-size: .98rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.slide__sub {
    margin: 2px 0 0;
    font-size: .78rem;
    opacity: .9;
}

.slider__dots {
    position: absolute;
    bottom: 10px;
    right: 14px;
    display: flex;
    gap: 6px;
    z-index: 2;
}
.slider__dot {
    width: 7px; height: 7px;
    border-radius: 999px;
    background: rgba(255,255,255,.5);
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: width var(--t-base), background var(--t-base);
}
.slider__dot.is-active {
    width: 22px;
    background: #fff;
}

/* ===================== СЕКЦИИ ===================== */
.section {
    margin-top: 28px;
}
.section__head {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 12px;
}
.section__title {
    font-size: 1.12rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -.01em;
}
.section__sub {
    margin: 0;
    color: var(--c-muted);
    font-size: .85rem;
}

/* ===================== ПЛИТКИ ===================== */
.tiles {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.tile {
    position: relative;
    overflow: hidden;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    padding: 14px;
    text-align: left;
    cursor: pointer;
    color: var(--c-text);
    box-shadow: var(--shadow-sm);
    transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
    min-height: 96px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    isolation: isolate;
}

.tile:last-child {
    grid-column: 1 / -1;
}
.tile::after {
    content: '';
    position: absolute;
    width: 140px; height: 140px;
    border-radius: 50%;
    right: -40px; top: -40px;
    background: var(--tile-bg, #e6f7f3);
    z-index: -1;
    transition: transform var(--t-slow);
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #d4e0dd; }
.tile:hover::after { transform: scale(1.15); }
.tile:active { transform: translateY(0) scale(.99); }

.tile__icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--tile-icon-bg, #ffffff);
    color: var(--tile-icon-color, var(--c-primary));
    display: grid; place-items: center;
    box-shadow: var(--shadow-sm);
}
.tile__title {
    margin: 8px 0 2px;
    font-size: .98rem;
    font-weight: 700;
    letter-spacing: -.01em;
}
.tile__desc {
    margin: 0;
    color: var(--c-muted);
    font-size: .8rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* индивидуальные акценты для плиток */
.tile--health { --tile-bg: #e9f7ef; --tile-icon-color: #0f766e; }
.tile--pharm  { --tile-bg: #ffeae0; --tile-icon-color: #c2410c; }
.tile--care   { --tile-bg: #eef2ff; --tile-icon-color: #4338ca; }
.tile--clinic { --tile-bg: #fef3c7; --tile-icon-color: #92400e; }
.tile--feed   { --tile-bg: #fce7f3; --tile-icon-color: #9d174d; }

/* ===================== ПОДСТРАНИЦЫ ===================== */
.page-head {
    margin: 18px 0 14px;
}
.page-head__row {
    display: flex;
    align-items: center;
    gap: 14px;
}
.page-head__icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 30px;
    line-height: 1;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}
.page-head__crumb {
    margin: 0 0 2px;
    color: var(--c-muted);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.page-head__title {
    margin: 0 0 4px;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.25;
}
.page-head__sub {
    margin: 0;
    color: var(--c-muted);
    font-size: .88rem;
}

/* ===== Карточки признаков здоровья ===== */
.signs-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
    margin-top: 4px;
}
.sign-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 2px;
    align-items: center;
    transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.sign-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    border-color: #d4e0dd;
}
.sign-card__icon {
    grid-row: 1 / 3;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    display: grid;
    place-items: center;
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
}
.sign-card__title {
    margin: 0;
    font-size: .98rem;
    font-weight: 700;
    align-self: end;
    letter-spacing: -.005em;
    text-align: left;
}
.sign-card__desc {
    margin: 0;
    color: var(--c-muted);
    font-size: .85rem;
    line-height: 1.4;
    align-self: start;
    text-align: left;
}
.sign-card { cursor: pointer; text-align: left; font-family: inherit; color: var(--c-text); position: relative; }
.sign-card__chev {
    position: absolute;
    top: 12px;
    right: 14px;
    color: var(--c-muted);
    font-size: 1.1rem;
    transition: transform var(--t-base), color var(--t-base);
}
.sign-card:hover .sign-card__chev {
    color: var(--c-primary);
    transform: translateX(4px);
}
.sign-card:active { transform: scale(.99); }

.health-diseases-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 6px;
}
.health-disease-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    background: var(--c-surface);
    box-shadow: var(--shadow-sm);
    padding: 12px;
    text-align: left;
    color: var(--c-text);
    cursor: pointer;
    transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}
.health-disease-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    border-color: #d4e0dd;
}
.health-disease-card:active {
    transform: scale(.99);
}
.health-disease-card__icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: #ecfdf5;
    color: #0f766e;
    font-size: 1rem;
}
.health-disease-card__title {
    font-weight: 700;
    font-size: .9rem;
    line-height: 1.3;
}
.health-disease-card__desc {
    color: var(--c-muted);
    font-size: .78rem;
    line-height: 1.35;
}

.disease-photos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 8px;
}
.disease-photo {
    margin: 0;
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--c-surface);
    box-shadow: var(--shadow-sm);
    cursor: zoom-in;
}
.disease-photo img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}
.disease-photo figcaption {
    padding: 8px 10px;
    font-size: .78rem;
    color: var(--c-muted);
    line-height: 1.35;
}
.disease-photo.is-expanded {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh;
    border-radius: 0;
    border: 0;
    margin: 0 !important;
    z-index: 10000;
    background: rgba(2, 8, 23, .72);
    display: grid;
    grid-template-rows: 1fr auto;
    align-items: stretch;
    cursor: zoom-out;
    animation: diseasePhotoOverlayIn .48s ease-out both;
}
.disease-photo.is-expanded img {
    width: 100%;
    height: 100%;
    max-height: 100dvh;
    aspect-ratio: auto;
    object-fit: contain;
    background: transparent;
    transform-origin: 50% 50%;
    animation: diseasePhotoImageIn .48s cubic-bezier(.2,.8,.2,1) both;
}
.disease-photo.is-expanded figcaption {
    color: #e2e8f0;
    background: rgba(2, 6, 23, .5);
    padding: 12px 16px;
    animation: diseasePhotoCaptionIn .48s ease-out both;
}
.disease-photo.is-expanded.is-closing {
    animation: diseasePhotoOverlayOut .48s ease-in both;
}
.disease-photo.is-expanded.is-closing img {
    animation: diseasePhotoImageOut .48s ease-in both;
}
.disease-photo.is-expanded.is-closing figcaption {
    animation: diseasePhotoCaptionOut .48s ease-in both;
}
@keyframes diseasePhotoOverlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes diseasePhotoImageIn {
    from { opacity: 0; transform: scale(.88); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes diseasePhotoCaptionIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes diseasePhotoOverlayOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
@keyframes diseasePhotoImageOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(.88); }
}
@keyframes diseasePhotoCaptionOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(8px); }
}
.disease-list {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--c-text);
    line-height: 1.5;
}
.disease-list li {
    margin-bottom: 8px;
}

.page-note {
    margin: 18px 0 8px;
    padding: 12px 14px;
    color: var(--c-muted);
    font-size: .82rem;
    line-height: 1.4;
    background: #f1f5f4;
    border-radius: var(--r-sm);
    border: 1px dashed #d4e0dd;
}

/* ===== Страница признака: инфографика и блоки ===== */
.block-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 22px 0 12px;
    letter-spacing: -.01em;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 6px;
}
.stat-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    padding: 14px 10px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.stat-card__value {
    font-size: 1.35rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
    letter-spacing: -.02em;
}
.stat-card__label {
    color: var(--c-muted);
    font-size: .75rem;
    line-height: 1.3;
}

.detail-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
    margin-top: 18px;
}
.detail-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--detail-color, var(--c-border));
}
.detail-card--norm  { --detail-color: #10b981; background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 70%); }
.detail-card--alarm { --detail-color: #ef4444; background: linear-gradient(180deg, #fef2f2 0%, #ffffff 70%); }
.detail-card__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.detail-card__badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--detail-color);
    color: #fff;
    font-weight: 800;
    font-size: .9rem;
    flex-shrink: 0;
}
.detail-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}
.detail-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.detail-list li {
    position: relative;
    padding: 5px 0 5px 22px;
    font-size: .9rem;
    line-height: 1.45;
}
.detail-list li::before {
    position: absolute;
    left: 0;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
}
.detail-list--norm  li::before { content: '✓'; background: #10b981; }
.detail-list--alarm li::before { content: '!'; background: #ef4444; }

.steps {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
}
.step-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 14px;
    align-items: start;
}
.step-card__num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-2));
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.05rem;
    box-shadow: 0 4px 10px rgba(15,118,110,.25);
}
.step-card__title {
    margin: 0 0 2px;
    font-size: .98rem;
    font-weight: 700;
}
.step-card__text {
    margin: 0;
    color: var(--c-muted);
    font-size: .87rem;
    line-height: 1.45;
}

.watch-list {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.watch-row {
    display: grid;
    grid-template-columns: 38% 1fr;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--c-border);
    align-items: center;
}
.watch-row:last-child { border-bottom: 0; }
.watch-row__period {
    font-weight: 700;
    color: var(--c-primary);
    font-size: .87rem;
}
.watch-row__what {
    color: var(--c-text);
    font-size: .87rem;
    line-height: 1.4;
}

.cta-bar {
    margin: 22px 0 8px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #e6f7f3 0%, #ffffff 70%);
    border: 1px solid #d4e0dd;
    border-radius: var(--r-lg);
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}
.cta-bar--warn {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 80%);
    border-color: #fecaca;
}
.cta-bar--warn .cta-bar__title { color: #b91c1c; }
.pharm-text {
    margin: 0;
    color: var(--c-text);
    font-size: .92rem;
    line-height: 1.55;
    white-space: pre-wrap;
}
.cta-bar__title { margin: 0 0 2px; font-weight: 700; font-size: 1rem; }
.cta-bar__sub   { margin: 0; color: var(--c-muted); font-size: .85rem; line-height: 1.4; }
.cta-bar .btn { align-self: flex-start; }
.cta-bar .btn[disabled] { opacity: .65; cursor: not-allowed; }

.pets-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pet-tile {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    padding: 16px 12px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--c-text);
    box-shadow: var(--shadow-sm);
    transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.pet-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #d4e0dd;
}
.pet-tile:active { transform: scale(.98); }

.pet-tile__pic {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.4), var(--shadow-sm);
    transition: transform var(--t-base);
}
.pet-tile:hover .pet-tile__pic { transform: scale(1.04); }
.pet-tile__pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pet-tile__emoji {
    font-size: 44px;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.08));
}
.pet-tile__title {
    font-size: .95rem;
    font-weight: 600;
    text-align: center;
}

/* ===================== ПОЛЕ ВОПРОСА ===================== */
.ask {
    margin-top: 28px;
    margin-bottom: 28px;
    padding: 18px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
}
.ask__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.ask__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    box-shadow: 0 4px 14px rgba(239, 68, 68, .34);
    line-height: 0;
    animation: askPulse 1.6s ease-in-out infinite;
}
@keyframes askPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 14px rgba(239, 68, 68, .32);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 8px 22px rgba(239, 68, 68, .48);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 14px rgba(239, 68, 68, .32);
    }
}
.ask__title {
    margin: 0 0 2px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.2;
}
.ask__sub {
    margin: 0;
    color: var(--c-muted);
    font-size: .87rem;
    line-height: 1.4;
}
.ask__row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ask__field-wrap {
    position: relative;
}
.ask__field-tools {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}
.ask textarea {
    width: 100%;
    resize: vertical;
    min-height: 96px;
    border: 1px solid var(--c-border);
    border-radius: var(--r-sm);
    background: #fafcfb;
    padding: 12px 92px 46px 14px;
    color: var(--c-text);
    font: inherit;
    transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.ask textarea:focus {
    outline: none;
    border-color: var(--c-primary-2);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, .12);
}

.ask__hint { color: var(--c-muted); font-size: .8rem; }

.ask__controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.ask__controls-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.ask__media-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0f766e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.ask__media-btn:hover {
    border-color: #99f6e4;
    background: #f0fdfa;
}
.ask__media-btn:active { transform: scale(.96); }
.ask__media-btn.is-disabled,
.ask__media-btn:disabled {
    color: #cbd5e1;
    border-color: #e5e7eb;
    background: #f3f4f6;
    cursor: not-allowed;
}
.ask__media-btn.is-recording {
    color: #dc2626;
    border-color: #fca5a5;
    background: #fff1f2;
}
.ask__photo-attached {
    font-size: .84rem;
    color: #2563eb;
    font-weight: 600;
}
.ask__pet-modal {
    border: 1px solid var(--c-border);
    background:
        radial-gradient(560px 220px at 100% -10%, rgba(20, 184, 166, .14) 0%, transparent 55%),
        var(--c-surface);
}
.ask__pet-modal .modal__title {
    margin-bottom: 4px;
}
.ask__pet-modal .modal__sub {
    line-height: 1.45;
}
.ask__pet-age-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.ask__pet-age-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ask__pet-age-col input {
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
}
.ask__pet-age-caption {
    font-size: .76rem;
    color: var(--c-muted);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.ask__pet-sex-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.ask__pet-sex-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    border: 1px solid var(--c-border);
    border-radius: 12px;
    background: #fafcfb;
    color: var(--c-text);
    font-weight: 600;
    cursor: pointer;
    transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.ask__pet-sex-option:hover {
    border-color: #99f6e4;
    background: #f0fdfa;
}
.ask__pet-sex-option:active {
    transform: scale(.98);
}
.ask__pet-sex-option input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--c-primary-2);
}
.ask__pet-sex-option.is-active {
    border-color: var(--c-primary-2);
    background: #ecfdf5;
    color: #0f766e;
}
.ask__pet-modal .modal__actions {
    margin-top: 12px;
}
.ask__pet-modal .modal__actions .btn {
    flex: 1;
    justify-content: center;
}
@media (max-width: 420px) {
    .ask__pet-age-row,
    .ask__pet-sex-row {
        grid-template-columns: 1fr;
    }
}

.ask--guest textarea {
    background: #f1f5f4;
    color: var(--c-muted);
    cursor: pointer;
    border-style: dashed;
}
.ask--guest textarea::placeholder { color: var(--c-muted); opacity: .85; }
.ask--guest .ask__hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--c-primary);
    font-weight: 600;
}
.ask--guest .ask__hint::before {
    content: '🔒';
    font-size: .9rem;
}
.ask--guest .ask__media-btn {
    color: #cbd5e1;
    border-color: #e5e7eb;
    background: #f3f4f6;
}

.ask__usage {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: .85rem;
    color: var(--c-text);
}
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.badge--free    { background: #e5e7eb; color: #374151; }
.badge--premium { background: #dbeafe; color: #1d4ed8; }

.ask__answer {
    margin-top: 14px;
    padding: 14px 16px;
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 80%);
    border: 1px solid #bbf7d0;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
}
.ask__answer-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.ask__answer-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #10b981, #34d399);
    color: #fff;
    font-size: 18px;
    line-height: 1;
}
.ask__answer-title { font-weight: 700; font-size: .95rem; }
.ask__answer-meta  { color: var(--c-muted); font-size: .76rem; }
.ask__answer-q { margin: 6px 0 8px; color: var(--c-muted); font-size: .85rem; }
.ask__answer-a {
    margin: 0;
    color: var(--c-text);
    font-size: .92rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.ask__msg {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: var(--r-sm);
    font-size: .88rem;
}
.ask__msg--ok   { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.ask__msg--err  { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ===================== МОДАЛКА АВТОРИЗАЦИИ ===================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(15, 23, 21, .42);
    display: grid;
    place-items: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-base);
}
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal__card {
    width: 100%;
    max-width: 380px;
    background: var(--c-surface);
    border-radius: var(--r-lg);
    padding: 22px;
    box-shadow: var(--shadow-lg);
    transform: translateY(8px) scale(.98);
    transition: transform var(--t-base);
}
.modal.is-open .modal__card { transform: translateY(0) scale(1); }
.modal__title { margin: 0 0 6px; font-size: 1.15rem; font-weight: 700; }
.modal__sub { margin: 0 0 14px; color: var(--c-muted); font-size: .88rem; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: .82rem; color: var(--c-muted); }
.field input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--c-border);
    border-radius: var(--r-sm);
    font: inherit;
    background: #fafcfb;
    transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.field input:focus {
    outline: none;
    border-color: var(--c-primary-2);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, .12);
}
.field--checkbox { margin-bottom: 14px; }
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .82rem;
    line-height: 1.45;
    color: var(--c-text);
    cursor: pointer;
    margin: 0;
}
.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--c-primary-2);
    cursor: pointer;
}
.link-inline {
    display: inline;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 600;
    color: var(--c-primary-2);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}
.link-inline:hover { color: #0d9488; }

.modal__actions {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

/* ===================== МОДАЛКА ПРОФИЛЯ ===================== */
.profile-card__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.profile-card__avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd9cc, #ffb89e);
    color: #7a3a25;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}
.profile-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #f6f8f7;
    border: 1px solid var(--c-border);
    border-radius: var(--r-sm);
    margin-bottom: 16px;
    font-size: .9rem;
    color: var(--c-muted);
}
.profile-card__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.profile-action {
    justify-content: flex-start;
    text-align: left;
    border: 1px solid var(--c-border);
    background: #fafcfb;
    height: 48px;
    padding: 0 14px;
}
.profile-action:hover { background: #f0f4f3; }
.profile-action--logout {
    color: var(--c-danger);
    border-color: #fecaca;
    background: #fff5f5;
}
.profile-action--logout:hover { background: #fee2e2; }

/* ===================== СТРАНИЦА «МОИ ВОПРОСЫ И ОТВЕТЫ» ===================== */
.qa-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 14px 0 22px;
}
.qa-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
}
.qa-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: .78rem;
    color: var(--c-muted);
}
.qa-card__num {
    background: #f0fdfa;
    color: var(--c-primary);
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 600;
}
.qa-card__date { letter-spacing: .2px; }
.qa-card__q {
    margin: 0 0 8px;
    color: var(--c-text);
    font-size: .92rem;
    line-height: 1.4;
}
.qa-card__a {
    margin: 0;
    padding: 10px 12px;
    background: #f6f8f7;
    border-left: 3px solid var(--c-primary-2);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    color: var(--c-text);
    font-size: .92rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.qa-card__a--toggle {
    width: 100%;
    border: 0;
    text-align: left;
    cursor: pointer;
    font: inherit;
}
.qa-card__a--toggle:hover { background: #eef3f1; }
.qa-card__a-text {
    display: block;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.qa-card__a--toggle.is-collapsed .qa-card__a-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.qa-card__a-hint {
    display: block;
    margin-top: 8px;
    font-size: .78rem;
    color: var(--c-primary);
}
/* ===================== РАЗДЕЛ «КОРМИМ ПРАВИЛЬНО» ===================== */
.feeds-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 12px 0 22px;
}
.feed-type-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 12px;
}
.feed-type-tab {
    border: 1px solid #d1d5db;
    background: #fff;
    color: var(--c-text);
    border-radius: 999px;
    padding: 7px 11px;
    font: inherit;
    font-size: .82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.feed-type-tab:hover {
    border-color: #99f6e4;
    background: #f0fdfa;
    color: #0f766e;
}
.feed-type-tab.is-active {
    border-color: #14b8a6;
    background: #ccfbf1;
    color: #0f766e;
}
.feed-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    padding: 0;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    color: var(--c-text);
    transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}
.feed-card:hover  { transform: translateY(-1px); box-shadow: var(--shadow-md); border-color: #c8d6d2; }
.feed-card:active { transform: scale(.99); }
.feed-card__pic {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f4f6f5;
    overflow: hidden;
    padding: 10px;
}
.feed-card__pic img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}
.feed-card__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    padding: 10px 12px 14px;
}
.feed-card__brand {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--c-muted);
    font-weight: 700;
}
.feed-card__name {
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.3;
}
.feed-card__price {
    margin-top: auto;
    align-self: flex-end;
    font-weight: 800;
    font-size: .9rem;
    color: #0f766e;
}

.feed-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 10px 0 18px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}
.feed-detail__pic {
    background: #f4f6f5;
    border-radius: var(--r-md);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: 14px;
    width: 100%;
}
.feed-detail__pic img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}
.feed-detail__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.feed-detail__desc {
    margin: 0;
    color: var(--c-text);
    font-size: .94rem;
    line-height: 1.5;
    white-space: pre-wrap;
}
.feed-detail__buy {
    align-self: flex-start;
    height: 48px;
    padding: 0 22px;
    font-size: 1rem;
    text-decoration: none;
}
.feed-detail__note {
    margin: 0;
    font-size: .82rem;
    color: var(--c-muted);
}

@media (min-width: 640px) {
    .feeds-grid { grid-template-columns: repeat(3, 1fr); }
    .feed-detail { grid-template-columns: 320px 1fr; }
}
@media (min-width: 960px) {
    .feeds-grid { grid-template-columns: repeat(4, 1fr); }
}

.empty-card {
    text-align: center;
    background: var(--c-surface);
    border: 1px dashed var(--c-border);
    border-radius: var(--r-lg);
    padding: 32px 18px;
    margin: 20px 0;
}
.empty-card__icon {
    display: inline-block;
    font-size: 40px;
    margin-bottom: 6px;
}
.empty-card__title {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 700;
}
.empty-card__text {
    margin: 0;
    color: var(--c-muted);
    font-size: .9rem;
}

/* ===================== ВЕТКЛИНИКИ ===================== */
.clinic-page-hint {
    margin: 0 0 16px;
    color: var(--c-muted);
    font-size: .88rem;
}
.clinic-page-hint--err { color: #b91c1c; }
.clinic-city-field {
    margin-bottom: 24px;
    max-width: 420px;
}
.clinic-city-field__label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--c-muted);
    margin-bottom: 8px;
}
.clinic-city-select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--c-border, #e2e8f0);
    border-radius: var(--r-sm, 10px);
    font: inherit;
    font-size: .95rem;
    color: var(--c-text, #0f172a);
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
.clinic-city-select:focus {
    outline: none;
    border-color: var(--c-primary-2, #14b8a6);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, .12);
}
.clinic-card-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}
.clinic-card {
    border: 1px solid var(--c-border, #e2e8f0);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(15, 23, 42, .06);
}
.clinic-card--featured {
    border-color: #fcd34d;
    box-shadow: 0 2px 16px rgba(245, 158, 11, .12);
}
.clinic-card__main {
    display: flex;
    gap: 14px;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 14px;
    cursor: pointer;
    font: inherit;
    color: inherit;
}
.clinic-card__main:hover { background: #fafafa; }
.clinic-card__photo-wrap { flex-shrink: 0; }
.clinic-card__photo {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    background: #f1f5f9;
}
.clinic-card__photo--empty {
    width: 88px;
    height: 88px;
    border-radius: 10px;
    background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
}
.clinic-card__body { flex: 1; min-width: 0; }
.clinic-card__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.clinic-card__name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
}
.clinic-badge {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 4px 8px;
    border-radius: 6px;
    background: #fef3c7;
    color: #92400e;
}
.clinic-card__stars {
    display: inline-block;
    font-size: .85rem;
    font-weight: 600;
    color: #b45309;
    margin-bottom: 6px;
}
.clinic-card__stars--muted {
    color: var(--c-muted);
    font-weight: 500;
}
.clinic-card__stars-ic { margin-right: 2px; }
.clinic-card__addr {
    margin: 0;
    font-size: .85rem;
    color: var(--c-muted);
    line-height: 1.4;
}
.clinic-card__contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 0 14px 14px;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
    font-size: .82rem;
}
.clinic-card__link {
    color: #0d9488;
    font-weight: 600;
    text-decoration: none;
}
.clinic-card__link:hover { text-decoration: underline; }
.clinic-card__hours { color: var(--c-muted); }
.clinic-map-section { margin-bottom: 32px; }
.clinic-map-section__title {
    margin: 0 0 12px;
    font-size: 1.15rem;
    font-weight: 700;
}
.clinic-map {
    width: 100%;
    height: 280px;
    border-radius: 14px;
    overflow: hidden;
    background: #e2e8f0;
}
.clinic-map--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
}
.clinic-map--placeholder p {
    margin: 0;
    max-width: 360px;
    color: var(--c-muted);
    font-size: .88rem;
    line-height: 1.45;
}
.clinic-modal-bd {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 16px;
    animation: fadeUp .15s ease both;
}
.clinic-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    max-height: min(85vh, 560px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(15, 23, 42, .25);
}
.clinic-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 10px;
    border-bottom: 1px solid #f1f5f9;
}
.clinic-modal__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
}
.clinic-modal__x {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: #f1f5f9;
    cursor: pointer;
    display: grid;
    place-items: center;
    color: #475569;
}
.clinic-modal__x:hover { background: #e2e8f0; }
.clinic-modal__body {
    padding: 14px 16px 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.clinic-modal__body--loading {
    color: var(--c-muted);
    font-size: .9rem;
}
.clinic-modal__reviews {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.clinic-review-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}
.clinic-review-list__item {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}
.clinic-review-list__item:last-child { border-bottom: 0; }
.clinic-review-list__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin-bottom: 6px;
    font-size: .78rem;
    color: var(--c-muted);
}
.clinic-review-list__author { font-weight: 600; color: #334155; }
.clinic-review-list__stars {
    margin-left: auto;
    letter-spacing: 1px;
    color: #b45309;
    font-size: .75rem;
}
.clinic-review-list__text {
    margin: 0;
    font-size: .88rem;
    line-height: 1.45;
    color: #1e293b;
    white-space: pre-wrap;
}

/* ===================== ПОЛИТИКА ПДН ===================== */
.legal-page {
    max-width: 720px;
    margin: 0 auto 32px;
    padding-bottom: 8px;
}
.legal-page__section {
    margin-top: 20px;
}
.legal-page__h2 {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--c-text);
}
.legal-page p {
    margin: 0 0 10px;
    font-size: .88rem;
    line-height: 1.55;
    color: var(--c-muted);
}
.legal-page__list {
    margin: 0 0 12px;
    padding-left: 1.2rem;
    font-size: .88rem;
    line-height: 1.5;
    color: var(--c-muted);
}
.legal-page__list li { margin-bottom: 6px; }

/* ===================== ФУТЕР ===================== */
.footer {
    margin: 32px 0 24px;
    color: var(--c-muted);
    font-size: .82rem;
    text-align: center;
}
.footer__copy {
    margin-bottom: 10px;
}
.footer-sitemap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
    max-width: 820px;
    margin: 0 auto;
    padding: 8px 0 0;
}
.footer-sitemap a {
    color: var(--c-muted);
    border-bottom: 1px dashed transparent;
    transition: color var(--t-fast), border-color var(--t-fast);
}
.footer-sitemap a:hover {
    color: var(--c-text);
    border-color: currentColor;
}

/* ===================== АНИМАЦИИ ВХОДА ===================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.reveal { animation: fadeUp var(--t-slow) both; }
.reveal--d1 { animation-delay: 60ms; }
.reveal--d2 { animation-delay: 120ms; }
.reveal--d3 { animation-delay: 180ms; }
.reveal--d4 { animation-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
    .header__logo-text--brand {
        animation: none !important;
        background-size: 100% 100%;
        background-position: 50% 50%;
    }
}

/* На очень узких экранах оставляем чипу совсем мало места */
@media (max-width: 380px) {
    .header-avatar-btn { width: 36px; height: 36px; }
    .header-avatar-btn__letter { font-size: .9rem; }
    .lang-switch__btn { width: 36px; height: 36px; }
}

/* ===================== ПЛАНШЕТЫ И ДЕСКТОП ===================== */
@media (min-width: 640px) {
    .header__inner { gap: 16px; }
    .user-chip { max-width: 220px; }
    .tiles { grid-template-columns: repeat(3, 1fr); }
    .pets-grid { grid-template-columns: repeat(3, 1fr); }
    .signs-grid { grid-template-columns: repeat(2, 1fr); }
    .slider { max-height: 160px; }
    .slide { padding: 16px 22px; }
    .slide__title { font-size: 1.15rem; }
    .section__title { font-size: 1.25rem; }
    .page-head__title { font-size: 1.5rem; }
    .detail-grid { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: repeat(3, 1fr); }
    .stat-card__value { font-size: 1.6rem; }
    .cta-bar { flex-direction: row; align-items: center; justify-content: space-between; }
    .cta-bar .btn { align-self: center; }
}

@media (min-width: 960px) {
    :root { --header-h: 72px; }
    .container { padding: 0 24px; }
    .tiles { grid-template-columns: repeat(5, 1fr); }
    .pets-grid { grid-template-columns: repeat(5, 1fr); }
    .signs-grid { grid-template-columns: repeat(3, 1fr); }
    .tile { min-height: 118px; padding: 18px; }
    .tile:last-child { grid-column: auto; }
    .tile__title { font-size: 1.05rem; }
    .slider {
        max-height: none;
    }
    .slide__title { font-size: 1.3rem; }
    .pet-tile__pic { width: 96px; height: 96px; }
    .pet-tile__emoji { font-size: 48px; }
    .page-head__title { font-size: 1.7rem; }
    .stat-card__value { font-size: 1.85rem; }
    .stat-card { padding: 18px 14px; }
}
