/* Fluffary — сайт приложения. Светлая и тёмная тема, телефон и компьютер */
:root {
  --bg: #f4f8f2; --bg-2: #eaf2e7; --card: #ffffff; --text: #1d2a22; --text-2: #55645b; --text-3: #8a978f;
  --accent: #379a6f; --accent-2: #2b7d59; --accent-soft: #dff0e6; --warm: #fff3e6; --line: #e2eadf;
  --shadow: 0 10px 30px rgba(31, 64, 45, .08); --radius: 24px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1411; --bg-2: #151c17; --card: #1b241e; --text: #edf3ee; --text-2: #b0bdb4; --text-3: #7f8d84;
    --accent: #4fb684; --accent-2: #6cc898; --accent-soft: #1f3a2c; --warm: #2a2219; --line: #26322a; --shadow: 0 10px 30px rgba(0, 0, 0, .35); color-scheme: dark; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
img { max-width: 100%; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Шапка */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.top nav { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
.top nav a.navlink { color: var(--text-2); font-size: 15px; padding: 6px 10px; border-radius: 999px; }
.top nav a.navlink:hover { background: var(--bg-2); text-decoration: none; }
.lang { display: inline-flex; background: var(--bg-2); border-radius: 999px; padding: 3px; }
.lang button { font: inherit; font-size: 13px; font-weight: 600; border: 0; background: none; color: var(--text-2); padding: 5px 10px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--card); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; border-radius: 999px; padding: 12px 22px; border: 0; cursor: pointer; background: var(--accent); color: #fff; }
.btn:hover { background: var(--accent-2); text-decoration: none; }
.btn.small { padding: 8px 16px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--accent-2); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); }

/* Первый экран */
.hero { text-align: center; padding: 56px 20px 24px; }
.hero .appicon { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 18px; box-shadow: var(--shadow); }
.hero h1 { font-size: clamp(44px, 9vw, 76px); line-height: 1.02; letter-spacing: -.03em; margin: 0; font-weight: 800; }
.hero h1 span { color: var(--accent); }
.hero .tag { font-size: clamp(21px, 3.4vw, 28px); font-weight: 600; margin: 14px 0 10px; }
.hero .lead { color: var(--text-2); max-width: 640px; margin: 0 auto; font-size: 18px; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 26px 0 8px; }
.hero .note { color: var(--text-3); font-size: 14px; }
.phones { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 18px; margin: 36px auto 0; max-width: 900px; }
.phone { width: 250px; border-radius: 40px; padding: 10px; background: #111; box-shadow: 0 24px 60px rgba(20, 40, 30, .25); flex: none; }
.phone img { border-radius: 31px; width: 100%; aspect-ratio: 780 / 1688; object-fit: cover; object-position: top; background: var(--bg-2); }
.phones .phone.side { width: 210px; opacity: .97; }
.phones .pet { position: absolute; width: 120px; }
.phones .pet.l { left: 2%; bottom: 8%; transform: rotate(-8deg); }
.phones .pet.r { right: 2%; top: 6%; transform: rotate(8deg); }
@media (max-width: 760px) { .phones .phone.side { display: none; } .phone { width: 240px; } .phones .pet { width: 84px; } .phones .pet.l { left: 0; } .phones .pet.r { right: 0; } }

/* Разделы */
section { padding: 72px 0; }
section.alt { background: var(--bg-2); }
.center { text-align: center; }
.kicker { color: var(--accent-2); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 8px; }
h2 { font-size: clamp(30px, 5vw, 42px); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 14px; font-weight: 800; }
h3 { font-size: 24px; line-height: 1.2; margin: 0 0 10px; }
.intro { max-width: 720px; margin: 0 auto; color: var(--text-2); font-size: 19px; }
.feature { display: grid; grid-template-columns: 1fr 300px; gap: 56px; align-items: center; padding: 44px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip { grid-template-columns: 300px 1fr; }
.feature.flip .ftext { order: 2; }
.feature p { color: var(--text-2); margin: 0 0 12px; }
.feature ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.feature li { display: flex; gap: 10px; color: var(--text); }
.feature li::before { content: '✓'; color: var(--accent); font-weight: 800; flex: none; }
.feature .phone { width: 280px; margin: 0 auto; }
@media (max-width: 820px) { .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; padding: 36px 0; } .feature.flip .ftext { order: 0; } .feature .phone { width: 250px; } }

/* Карточки */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 36px; }
.card { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; background: var(--accent-soft); margin-bottom: 14px; }
.card h4 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--text-2); font-size: 15px; }

/* Питомцы */
.pets { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 30px; }
.pets figure { margin: 0; text-align: center; width: 120px; }
.pets img { width: 120px; height: 120px; object-fit: contain; transition: transform .2s ease; }
.pets figure:hover img { transform: translateY(-6px) rotate(-3deg); }
.pets figcaption { font-weight: 600; color: var(--text-2); font-size: 15px; }

/* Ритм */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 36px; }
.step { background: var(--warm); border-radius: var(--radius); padding: 22px; }
.step b.n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 15px; margin-bottom: 12px; }
.step h4 { margin: 0 0 6px; font-size: 19px; }
.step p { margin: 0; color: var(--text-2); font-size: 15px; }

/* Скачать */
.get { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 32px; }
.get .card { text-align: center; }
.get .card .big { font-size: 40px; margin-bottom: 6px; }
.get .card h4 { font-size: 20px; }
.get .card .btn { margin-top: 14px; }
.plus { max-width: 760px; margin: 28px auto 0; background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.plus h4 { margin: 0 0 10px; font-size: 19px; }
.plus ul { margin: 0; padding-inline-start: 20px; color: var(--text-2); }
.plus p { margin: 12px 0 0; color: var(--text-3); font-size: 14px; }

/* Вопросы */
.faq { max-width: 760px; margin: 32px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 4px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 24px; line-height: 1; transition: transform .2s ease; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); margin: 10px 0 0; }

/* Связь */
.contact { max-width: 760px; margin: 0 auto; text-align: center; background: var(--card); border-radius: 32px; padding: 40px 24px; box-shadow: var(--shadow); }
.contact img { width: 110px; margin: 0 auto 8px; }
.contact p { color: var(--text-2); margin: 0 0 18px; }
.contact .mail { display: block; margin-top: 12px; color: var(--text-3); font-size: 15px; }

/* Подвал */
footer { padding: 36px 0 48px; border-top: 1px solid var(--line); }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 14px 0; }
footer .links a { color: var(--text-2); font-size: 15px; }
footer small { color: var(--text-3); }

/* Текстовые страницы */
.doc { max-width: 760px; margin: 40px auto 64px; background: var(--card); border-radius: 28px; padding: 32px 28px; box-shadow: var(--shadow); }
.doc h1 { font-size: clamp(30px, 6vw, 40px); margin: 0 0 4px; letter-spacing: -.02em; }
.doc h2 { font-size: 21px; margin: 28px 0 8px; letter-spacing: 0; }
.doc p, .doc li { color: var(--text-2); }
.doc .muted { color: var(--text-3); font-size: 15px; }

/* Язык: показываем блоки только текущего языка */
html[lang="ru"] [data-only="en"], html[lang="en"] [data-only="ru"] { display: none !important; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .pets img, .faq summary::after { transition: none; } }
@media (max-width: 560px) { .top nav a.navlink { display: none; } section { padding: 56px 0; } .doc { margin: 20px 16px 48px; padding: 24px 20px; } }
