/* Хвостатые / Forest light — tokens, foundations, components, layout, motion. */
:root {
    color-scheme: dark;
    --surface: #0a1413;
    --panel: #142522;
    --panel-raised: #1c302b;
    --text: #f3f5ed;
    --muted: #b0c1b9;
    --brand: #b8edb0;
    --amber: #eac997;
    --line: #31463e;
    --radius: 28px;
    --ease: cubic-bezier(.2,.7,.2,1);
    --fast: 180ms;
    --enter: 650ms;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body { background: var(--surface); color: var(--text); font-family: 'Segoe UI', Arial, sans-serif; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; height: auto; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 5px; }
::selection { color: var(--surface); background: var(--brand); }
h1, h2, h3 { line-height: 1.12; font-weight: 650; }
h1, h2 { text-wrap: balance; letter-spacing: -.045em; }
h2 { font-size: clamp(34px, 4vw, 56px); margin-bottom: 26px; }
h3 { font-size: 24px; letter-spacing: -.025em; }
p { text-wrap: pretty; }
.container { width: min(1220px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 16px; z-index: 100; padding: 12px 20px; background: var(--brand); color: var(--surface); border-radius: 12px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.section-label, .hero__label, .download-section__label { font-size: 12px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; color: var(--brand); margin-bottom: 24px; }
.section-label { display: flex; align-items: center; gap: 14px; }
.section-label::before { content: ''; width: 26px; height: 1px; background: currentColor; }
/* Navigation */
.header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: #0a1413f2; backdrop-filter: blur(14px); }
.header__inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 28px; position: relative; }
.logo, .footer__logo { display: inline-flex; align-items: center; gap: 12px; font-size: 23px; font-weight: 750; letter-spacing: -.04em; white-space: nowrap; }
.logo img, .footer__logo img { width: 42px; height: 42px; border-radius: 14px; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav a { font-size: 12px; min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); transition: color var(--fast); }
.nav a:hover { color: var(--brand); }
.nav a:last-child { padding-inline: 16px; border: 1px solid #688c70; border-radius: 10px; color: var(--brand); }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.menu-toggle span { width: 20px; height: 2px; background: var(--brand); transition: transform var(--fast), opacity var(--fast); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* Hero: screenshots occupy a reusable media stage; no empty mascot slot. */
.hero { position: relative; overflow: clip; padding: 66px 0 0; background: radial-gradient(ellipse at 76% 40%, #23433588, transparent 52%); }
.hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .14; background-image: linear-gradient(#7ba98a30 1px, transparent 1px), linear-gradient(90deg,#7ba98a30 1px,transparent 1px); background-size: 90px 90px; mask-image: linear-gradient(90deg,transparent,#000); }
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; position: relative; }
.hero__content { padding-bottom: 40px; min-width: 0; z-index: 3; }
.hero__label { display: flex; align-items: center; gap: 10px; font-size: 11px; }
.hero__label::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 16px #b8edb066; }
.hero__name { font-size: 15px; letter-spacing: .05em; color: var(--amber); margin-bottom: 18px; }
.hero h1 { font-size: clamp(46px, 5.25vw, 76px); max-width: 680px; margin-bottom: 26px; }
.hero h1 span { color: var(--brand); }
.hero__text { font-size: 17px; max-width: 460px; color: var(--muted); margin-bottom: 30px; }
.hero-actions { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.button, .download-section__button { display: inline-flex; min-height: 56px; align-items: center; justify-content: center; gap: 20px; padding: 16px 24px; background: var(--brand); color: #122319; border: 1px solid transparent; border-radius: 12px; font-size: 15px; font-weight: 750; transition: background var(--fast), transform var(--fast), box-shadow var(--fast); }
.button::after { content: '↗'; font-size: 22px; line-height: 1; }
.text-link { font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.text-link:hover { color: var(--brand); }
.hero-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; color: var(--muted); font-size: 12px; }
.hero-tags li::before { content: '✓'; color: var(--brand); margin-right: 7px; }
.hero-visual { height: 650px; position: relative; isolation: isolate; }
.stage-orbit { position: absolute; inset: 80px -20px 70px; border: 1px solid #8bb79533; border-radius: 50%; transform: rotate(-23deg); pointer-events: none; }
.stage-orbit::before { content: ''; position: absolute; inset: 35px -24px; border: 1px dashed #8bb79522; border-radius: 50%; }
.stage-orbit::after { content: ''; position: absolute; top: 50%; right: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 26px #eac99799; }
.stage-glow { position: absolute; inset: 80px 0 40px; background: radial-gradient(ellipse,#8bc99930,transparent 65%); pointer-events: none; z-index: -1; }
.hero-shot, .breed-phone, .themes-preview__frame { position: absolute; padding: 6px; border-radius: 32px; background: #1b2421; border: 1px solid #63736a; box-shadow: 0 30px 50px #0007, inset 0 0 0 2px #0b100e; overflow: hidden; }
.hero-shot img, .breed-phone img, .themes-preview__frame img { border-radius: 25px; width: 100%; }
.hero-shot-left { width: 200px; left: 0; top: 115px; transform: rotate(-12deg); z-index: 1; }
.hero-shot-center { width: 250px; left: 50%; top: 30px; transform: translateX(-50%) rotate(-3deg); z-index: 3; }
.hero-shot-right { width: 200px; right: -4px; top: 145px; transform: rotate(12deg); z-index: 2; }
.stage-note { position: absolute; right: 0; top: 8px; font: 11px/1.6 Consolas, monospace; color: var(--muted); letter-spacing: .08em; }
.stage-chip { position: absolute; bottom: 40px; left: 0; z-index: 5; background: #1c302bed; border: 1px solid #64826a; box-shadow: 0 15px 35px #0004; border-radius: 14px; padding: 12px 18px; display: flex; align-items: center; gap: 14px; }
.stage-chip > span { color: var(--brand); font-size: 27px; }
.stage-chip strong { display: block; font-size: 13px; }
.stage-chip small { display: block; font-size: 11px; color: var(--muted); }
.motion-toggle { position: absolute; right: 0; bottom: 18px; z-index: 6; background: transparent; border: 1px solid var(--line); color: var(--muted); padding: 10px 13px; border-radius: 10px; min-height: 44px; font-size: 11px; }
.hero-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 24px; border-top: 1px solid var(--line); margin-top: 20px; color: var(--muted); font-size: 12px; position: relative; }
.hero-bottom span:first-child { color: var(--amber); }
/* Shared section rhythm */
.features, .breeds-section, .facts-section, .favorites-section, .themes-section { padding-block: 112px; position: relative; }
.section-heading { max-width: 750px; margin-bottom: 48px; }
.section-heading > p:last-child, [class$="section__text"] { font-size: 17px; color: var(--muted); max-width: 580px; }
.features { border-top: 1px solid var(--line); background: #0e1a17; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { position: relative; padding: 34px; background: linear-gradient(140deg,#1b3029,#11221d); border: 1px solid var(--line); border-radius: 22px; transition: transform 260ms var(--ease), border-color 260ms; }
.feature-card:nth-child(2) { background: linear-gradient(140deg,#2b2d23,#1a251d); }
.feature-card:nth-child(3) { background: linear-gradient(140deg,#243136,#13231f); }
.feature-index { position: absolute; top: 28px; right: 28px; font: 12px Consolas,monospace; color: var(--muted); }
.feature-icon { width: 52px; height: 52px; display: grid; place-items: center; color: var(--brand); background: #a9dbac12; border: 1px solid #6e957044; border-radius: 16px; margin-bottom: 38px; font-size: 25px; }
.feature-card h3 { margin-bottom: 16px; }
.feature-card p { color: var(--muted); font-size: 15px; }
.feature-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 24px; gap: 20px; color: var(--brand); font-size: 13px; }
.breeds-section__inner, .facts-section__inner, .favorites-section__inner, .themes-section__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.breeds-section { overflow: clip; }
.breeds-benefits { margin-top: 34px; list-style: none; }
.breeds-benefits li { padding-block: 14px; border-top: 1px solid var(--line); font-size: 14px; display: flex; gap: 15px; }
.breeds-benefits li::before { content: '↗'; color: var(--brand); }
.breeds-section__visual { position: relative; height: 640px; border-radius: 50%; background: radial-gradient(ellipse,#83c48a22,transparent 68%); }
.breed-phone--back { width: 230px; left: 0; top: 50px; transform: rotate(-9deg); }
.breed-phone--front { width: 260px; right: 10px; top: 20px; transform: rotate(5deg); }
.breeds-caption { position: absolute; bottom: 0; width: 100%; text-align: center; font-size: 12px; color: var(--muted); }
/* Interactive fact — fixed minimum height avoids jumping as copy changes. */
.facts-section { background: #15231e; border-block: 1px solid var(--line); }
.facts-section__hint { margin-top: 30px; font-size: 14px; color: var(--amber); }
.facts-demo { min-width: 0; }
.facts-demo__card { min-height: 420px; display: flex; flex-direction: column; justify-content: space-between; padding: 34px; background: linear-gradient(145deg,#283c2e,#1b2d24); border: 1px solid #6b8163; border-radius: 24px; box-shadow: 0 25px 70px #0003; position: relative; }
.facts-demo__header { display: flex; justify-content: space-between; gap: 16px; font-size: 11px; letter-spacing: .15em; color: var(--amber); }
.facts-demo__header span:last-child { font-size: 25px; }
.facts-demo__text { font-size: 22px; line-height: 1.55; margin-block: 28px; }
.facts-demo__source { font-size: 12px; color: var(--muted); }
.facts-demo__button { display: flex; width: 100%; justify-content: space-between; align-items: center; min-height: 56px; padding: 16px 22px; margin-top: 16px; border: 1px solid #687f65; border-radius: 12px; background: transparent; color: var(--brand); font-size: 14px; transition: background var(--fast); }
.facts-demo__button::after { content: '↻'; font-size: 22px; }
.facts-demo__button:hover { background: #b8edb012; }
.facts-demo__caption { color: var(--muted); font-size: 12px; margin-top: 18px; text-align: center; }
/* Favorites and theme */
.favorites-section__visual, .themes-preview { display: flex; justify-content: center; position: relative; padding: 32px; background: radial-gradient(ellipse,#45735e33,transparent 68%); }
.favorites-section__visual img { width: 280px; padding: 6px; border: 1px solid #63736a; border-radius: 32px; background: #1b2421; box-shadow: 0 30px 70px #0006; transform: rotate(-5deg); }
.favorites-section__benefits { display: grid; gap: 12px; margin-top: 30px; }
.favorite-benefit { display: flex; align-items: flex-start; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.favorite-benefit__icon { color: var(--brand); font-size: 24px; }
.favorite-benefit h3 { font-size: 17px; margin-bottom: 8px; }
.favorite-benefit p { color: var(--muted); font-size: 14px; }
.themes-section { background: linear-gradient(115deg,#1b2823,#0d1916); border-block: 1px solid var(--line); }
.theme-switcher { display: inline-flex; padding: 6px; gap: 6px; border: 1px solid #536d5b; border-radius: 14px; margin-top: 34px; background: #0e1a17; }
.theme-switcher__button { min-height: 48px; padding: 10px 24px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: 14px; transition: color var(--fast), background var(--fast); }
.theme-switcher__button.is-active { background: var(--brand); color: #122319; }
.themes-section__hint { font-size: 12px; color: var(--muted); margin-top: 16px; }
.themes-preview__frame { position: relative; width: 280px; transform: rotate(5deg); }
/* Real brand asset, secondary to the product. */
.brand-note { display: flex; align-items: center; gap: 24px; padding: 30px 36px; border: 1px solid var(--line); border-radius: 20px; margin-top: 56px; background: #111f1a; }
.brand-note img { width: 64px; height: 64px; border-radius: 20px; flex-shrink: 0; }
.brand-note h3 { font-size: 18px; margin-bottom: 6px; }
.brand-note p { font-size: 14px; color: var(--muted); max-width: 700px; }
.brand-note > span { margin-left: auto; color: var(--amber); font-size: 28px; }
/* Download / footer */
.download-section { padding-block: 100px; }
.download-section__inner { position: relative; overflow: hidden; padding: 76px 36px; border: 1px solid #6b8163; border-radius: 30px; text-align: center; background: radial-gradient(ellipse at 50% 100%,#4e65403d,transparent 70%),#182b22; }
.download-section__label { color: var(--amber); }
.download-section h2 { max-width: 700px; margin-inline: auto; font-size: clamp(40px,5vw,68px); }
.download-section__text { max-width: 560px; margin: 0 auto 32px; }
.download-section__note { margin-top: 22px; color: var(--muted); font-size: 12px; }
.footer { padding: 56px 0 24px; border-top: 1px solid var(--line); }
.footer__main { display: grid; grid-template-columns: 1.3fr 1fr .9fr 1.2fr; gap: 36px; padding-bottom: 48px; }
.footer__main > * { min-width: 0; }
.footer__logo { margin-bottom: 20px; }
.footer p { color: var(--muted); font-size: 13px; }
.footer h3 { font-size: 15px; margin-bottom: 20px; }
.footer__links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer__links a, .footer__app a, .footer__contact a { font-size: 13px; min-height: 32px; display: inline-flex; align-items: center; }
.footer__contact a { overflow-wrap: anywhere; display: block; margin-top: 12px; color: var(--brand); }
.footer a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }
.footer__bottom { padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); display: flex; justify-content: space-between; gap: 16px; font-size: 11px; }
/* Responsive composition */
@media (max-width: 1100px) {
    .header__inner { min-height: 74px; flex-wrap: wrap; gap: 12px; padding-block: 10px; }
    .nav { width: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
    .nav a { padding: 10px 14px; font-size: 14px; }
    .js .menu-toggle { display: flex; }
    .js .nav { display: none; position: absolute; top: calc(100% + 8px); right: 0; width: min(360px,100%); max-height: calc(100dvh - 110px); overflow-y: auto; box-shadow: 0 25px 70px #0009; }
    .js .nav.is-open { display: flex; }
    html:not(.js) .header { position: static; }
    .hero h1 { font-size: 56px; }
    .hero-visual { height: 580px; }
    .hero-shot-center { width: 220px; }
    .hero-shot-left, .hero-shot-right { width: 170px; }
    .hero-shot-right { right: 0; }
    .stage-chip { bottom: 55px; }
    .breeds-section__inner, .facts-section__inner, .favorites-section__inner, .themes-section__inner { gap: 48px; }
    .breed-phone--front { width: 220px; right: 0; }
    .breed-phone--back { width: 190px; }
    .breeds-section__visual { height: 550px; }
    .footer__main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
    .container { width: calc(100% - 48px); }
    .hero { padding-top: 48px; }
    .hero__inner { grid-template-columns: 1fr; gap: 16px; }
    .hero__content { max-width: 630px; padding-bottom: 0; }
    .hero h1 { font-size: clamp(42px,8vw,64px); }
    .hero-visual { width: min(100%,530px); margin-inline: auto; height: 600px; }
    .hero-shot-center { width: 240px; }
    .hero-shot-left, .hero-shot-right { width: 190px; }
    .features, .breeds-section, .facts-section, .favorites-section, .themes-section { padding-block: 76px; }
    .features-grid { grid-template-columns: 1fr; }
    .feature-card { padding: 30px; }
    .feature-icon { margin-bottom: 26px; }
    .breeds-section__inner, .facts-section__inner, .favorites-section__inner, .themes-section__inner { grid-template-columns: 1fr; gap: 42px; }
    .breeds-section__visual { width: min(100%,500px); margin-inline: auto; height: 610px; }
    .breed-phone--front { width: 250px; right: 35px; }
    .breed-phone--back { width: 220px; left: 25px; }
    .favorites-section__visual { order: 2; }
    .favorites-section__content { order: 1; }
    .facts-demo { max-width: 620px; width: 100%; }
    .facts-demo__card { min-height: 370px; }
    .hero-bottom { flex-wrap: wrap; }
    .brand-note { padding: 24px; }
}
@media (max-width: 520px) {
    .container { width: calc(100% - 36px); }
    .logo { font-size: 21px; }
    .logo img { width: 36px; height: 36px; border-radius: 12px; }
    .hero { padding-top: 34px; }
    .hero__label { font-size: 9px; letter-spacing: .08em; margin-bottom: 20px; }
    .hero__name { font-size: 13px; margin-bottom: 12px; }
    .hero h1 { font-size: clamp(38px,10.5vw,54px); margin-bottom: 22px; }
    .hero__text { font-size: 15px; margin-bottom: 24px; }
    .hero-actions { gap: 8px; }
    .hero-actions .button { width: 100%; }
    .text-link { margin-inline: auto; }
    .hero-tags { margin-top: 18px; gap: 6px 12px; font-size: 11px; }
    .hero-visual { height: 500px; margin-top: 12px; }
    .hero-shot-center { width: 194px; top: 24px; }
    .hero-shot-left, .hero-shot-right { width: 143px; top: 90px; }
    .hero-shot-left { left: 6px; transform: rotate(-10deg); }
    .hero-shot-right { right: 6px; transform: rotate(10deg); }
    .stage-note { top: 0; font-size: 8px; }
    .stage-chip { bottom: 34px; left: 0; padding: 9px 12px; gap: 10px; }
    .stage-chip strong { font-size: 11px; }
    .stage-chip small { font-size: 10px; }
    .motion-toggle { bottom: -17px; font-size: 10px; }
    .hero-bottom { margin-top: 36px; font-size: 10px; gap: 8px; padding-block: 20px; }
    .hero-bottom span:last-child { display: none; }
    h2 { font-size: clamp(32px,9vw,42px); }
    .section-label { font-size: 10px; }
    .section-heading > p:last-child, [class$="section__text"] { font-size: 15px; }
    .features, .breeds-section, .facts-section, .favorites-section, .themes-section { padding-block: 62px; }
    .feature-card { padding: 26px; }
    .feature-card h3 { font-size: 23px; }
    .breeds-section__visual { height: 480px; }
    .breed-phone--front { width: 195px; right: 0; }
    .breed-phone--back { width: 165px; left: 5px; }
    .facts-demo__card { padding: 24px; min-height: 430px; }
    .facts-demo__text { font-size: 19px; }
    .favorite-benefit { padding: 18px; }
    .favorites-section__visual, .themes-preview { padding: 20px; }
    .favorites-section__visual img, .themes-preview__frame { width: 240px; }
    .theme-switcher { width: 100%; }
    .theme-switcher__button { flex: 1; padding: 10px; }
    .brand-note { align-items: flex-start; gap: 16px; padding: 20px; }
    .brand-note img { width: 48px; height: 48px; border-radius: 14px; }
    .brand-note h3 { font-size: 16px; }
    .brand-note p { font-size: 12px; }
    .brand-note > span { display: none; }
    .download-section { padding-block: 62px; }
    .download-section__inner { padding: 48px 20px; }
    .download-section h2 { font-size: 38px; }
    .download-section__button { width: 100%; padding-inline: 14px; }
    .footer__main { grid-template-columns: 1fr; gap: 30px; }
    .footer__bottom { flex-direction: column; }
}
/* Motion: transform/opacity only for ambient effects, no layout animation. */
@media (prefers-reduced-motion: no-preference) {
    .reveal-enter { animation: reveal-in var(--enter) var(--ease) both; }
    .feature-card:nth-child(2) { animation-delay: 70ms; }
    .feature-card:nth-child(3) { animation-delay: 140ms; }
    @keyframes reveal-in { from { opacity: .55; translate: 0 20px; } to { opacity: 1; translate: 0 0; } }
    @keyframes float { 50% { translate: 0 -9px; } }
    @keyframes glow { 50% { opacity: .45; scale: 1.06; } }
    @keyframes orbit { 50% { rotate: 5deg; } }
    @media (min-width: 821px) {
        .motion-running .hero-shot-center { animation: float 7s ease-in-out infinite; }
        .motion-running .hero-shot-right { animation: float 9s ease-in-out 1s infinite; }
        .motion-running .stage-glow { animation: glow 8s ease-in-out infinite; }
        .motion-running .stage-orbit { animation: orbit 16s ease-in-out infinite; }
    }
    @media (hover: hover) and (pointer: fine) {
        .feature-card:hover { transform: translateY(-5px); border-color: #799a7c; }
        .button:hover, .download-section__button:hover { transform: translateY(-2px); background: #d0fac6; box-shadow: 0 10px 30px #b8edb018; }
    }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
