/* Палитра и шрифты — как в презентации «Pet Softly — возможности приложения» */
:root {
  --bg: #f5f4ef;
  --surface: #ffffff;
  --ink: #1b2140;
  --text: #3b4160;
  --muted: #5d6380;
  --dark: #161b36;
  --dark-card: #232a4d;
  --dark-text: #c3c7e0;
  --accent: #4a57d1;
  --accent-dark: #3a46b8;
  --accent-soft: #e4e6fa;
  --accent-light: #9da6f2;
  --warm: #c2611f;
  --radius: 24px;
  --shadow: 0 8px 24px rgba(22, 27, 54, 0.06);
  --shadow-lg: 0 24px 64px rgba(22, 27, 54, 0.18);
  --font-head: "Rubik", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.55; font-size: 17px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; font-weight: 600; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 8px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); max-width: 640px; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }

/* Buttons */
.btn {
  display: inline-block; font: 600 1rem var(--font-body);
  background: var(--accent); color: #fff; padding: 14px 28px; border-radius: 999px;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn--small { padding: 8px 18px; font-size: .9rem; }
.btn--ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.btn--ghost:hover { background: var(--accent-soft); }
.btn--light { background: var(--bg); color: var(--accent-dark); }
.btn--light:hover { background: #fff; }

/* Header */
.header { position: sticky; top: 0; z-index: 10; background: rgba(245, 244, 239, .88); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(27, 33, 64, .06); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font: 700 1.25rem var(--font-head); color: var(--ink); }
.logo img { border-radius: 10px; }
.logo--small { font-size: 1rem; }
.logo--small img { border-radius: 6px; }
.nav { display: flex; align-items: center; gap: 28px; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--accent); }

/* Hero */
.hero { padding: 64px 0 88px; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 700; margin-bottom: 20px; }
.lead { font-size: 1.2rem; color: var(--muted); margin-bottom: 32px; max-width: 540px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__platforms { margin-top: 20px; font-size: .9rem; color: var(--muted); }
.hero__media { position: relative; display: flex; justify-content: center; min-height: 560px; }
.phone { width: 270px; border-radius: 40px; border: 9px solid var(--dark); background: #fff; box-shadow: var(--shadow-lg); position: relative; z-index: 2; }
.phone--back { position: absolute; z-index: 1; left: 58%; top: 56px; width: 240px; transform: rotate(5deg); opacity: .96; }
.hero__media .phone:first-child { margin-right: 120px; transform: rotate(-3deg); }

/* Sections */
.section { padding: 88px 0; }
.section--light { background: #fbfaf7; }
.section h2.center + .grid, .section h2.center + .scenarios, .section h2.center + .feature { margin-top: 40px; }
.section--dark { background: var(--dark); color: var(--dark-text); }
.section--dark h2, .section--dark h3 { color: #f5f4ef; }
.section--dark .eyebrow { color: var(--accent-light); }
.section--accent { background: var(--accent); color: #e4e6fa; }
.section--accent h2 { color: #f5f4ef; }

.grid { display: grid; gap: 20px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card p { color: var(--muted); font-size: .97rem; }
.card--dark { background: var(--dark-card); box-shadow: none; }
.card--dark p { color: var(--dark-text); }

/* Features */
.feature { display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: center; padding: 40px 0; }
.feature--rev .feature__text { order: 2; }
.feature h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 16px; }
.feature ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.feature li { padding-left: 28px; position: relative; }
.feature li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border-radius: 50%; background: var(--accent-soft); box-shadow: inset 0 0 0 3px var(--accent); }
.shot { border-radius: 20px; background: #fff; box-shadow: var(--shadow-lg); }
.shot--wide { margin: 48px auto 0; max-width: 960px; }

/* Scenarios */
.scenarios { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.scenario { background: var(--surface); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); font-size: .95rem; color: var(--muted); }
.scenario__q { font: 600 1.05rem var(--font-head); color: var(--warm); margin-bottom: 8px; }

/* Roadmap */
.roadmap { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; counter-reset: step; }
.step { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border-top: 4px solid var(--accent-soft); }
.step--now { border-top-color: var(--accent); }
.step__tag { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.step--now .step__tag { color: var(--accent); }
.step p:last-child { color: var(--muted); font-size: .95rem; }

/* Status pill */
.status { display: inline-flex; align-items: center; gap: 10px; background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; font-size: .9rem; padding: 6px 14px 6px 12px; border-radius: 999px; margin-bottom: 20px; }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(74, 87, 209, .2); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(74, 87, 209, 0); } }
@media (prefers-reduced-motion: reduce) { .status__dot { animation: none; } }

/* CTA */
.cta { text-align: center; }
.cta p { margin: 0 auto 28px; max-width: 620px; }

/* Footer */
.footer { padding: 28px 0; font-size: .9rem; color: var(--muted); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }

/* Responsive */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { min-height: 0; padding: 16px 0 24px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature--rev { grid-template-columns: 1fr; gap: 24px; }
  .feature--rev .feature__text { order: 0; }
  .roadmap { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .nav a:not(.btn) { display: none; }
  .hero { padding: 32px 0 56px; }
  .section { padding: 56px 0; }
  .grid--4 { grid-template-columns: 1fr; }
  .phone { width: 210px; border-width: 7px; border-radius: 32px; }
  .phone--back { width: 180px; left: 52%; top: 40px; }
  .hero__media .phone:first-child { margin-right: 90px; }
  .roadmap { grid-template-columns: 1fr; }
}
